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

 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 AAr,Hlb,kfC,dvv,WrX,zmI,HV,rAf,xvN,dI,ilA,uI,hmr,Olm,yW,jN,RmW,TIX,mvW,PV,Gf,blV,LrQ,FX,jb8,GfN,DvA,CIV,cAN,pVm,Uv8,E8f,QbC,NIW,ZlA,fQX,o8I,dw,Wj,xZ,iJ,HNV,bJ,LN,spN,Pj,dQV,WGA,KN,ap,Bwb,ONN,Rwv,Uw,Jkb,gZI,bNN,MQ,LGQ,vZm,jpA,ykI,I1A,fN,Twv,AV,Ywv,FGI,KGl,gL,a1N,ckW,JV,DQm,Te,SwX,CJA,tAb,NwW,MAm,nZX,ZNN,f1r,Ge,$QI,oZX,AVf,HLC,s_8,diN,WBW,rVC,uGf,xim,hMv,RMf,bLr,v1r,LBN,Q_,yVl,FBN,EB,XRr,SB8,cVI,KBm,pRl,a3C,lQ,keI,tV,Mi,nL,Q_Q,fL,UiC,VIW,E1W,sW,l38,tIl,MII,ZLI,n1V,f3C,wRm,o1W,AG,AGX,s7I,dRW,zIv,
en,rG8,eIl,hG,hII,TOC,BOI,mRI,gpC,bxr,PmN,yGb,F3f,DRV,SWX,K3N,ayV,Vnv,Epm,tnI,MnX,fyN,opN,$RA,HVI,kMm,WJr,u9N,OVI,a7,TUN,J2C,g7I,lm,tG,MR,A2,k7,dU,P1I,x7,FJC,SNI,KJI,aKN,c2N,J2,pXI,vX,yA,j_,I4,V_8,E7b,UXV,lKI,t_X,M_C,n7r,ZVA,fKv,o7X,DK,X9,$XQ,Ael,HYI,kOv,saA,dxv,W_b,z4C,UN,l1,t2,NX,nV,rer,ZK,B5r,OYW,o4,R4v,T5W,mxW,Ae,JeQ,gdl,bYI,Hy,yeA,kd,YG8,Pf8,d5,F_N,GOf,XyN,Dxr,SGQ,CfQ,qx,K_8,a88,r5,cef,pyl,uf,By,et,xd,QaI,EdA,Vtv,he,l8l,ttC,N5b,Ra,m_,Je,g5,LY,vy,MtQ,ndm,f8b,wyX,$xX,HC8,Ajm,s8I,kEA,dCb,WAf,zCC,
jt,qIC,rjW,BWW,GO,eCN,xCI,iCI,hCI,OCm,RCN,D8,CY,TW8,aa,cy,mCv,bCv,LAV,vgC,j88,ILv,YIQ,X4V,DCX,SIV,CKN,KAv,aLr,cjI,Egf,V6,UCl,lLX,tBI,MBC,ZCC,Z8,w4I,og8,$CA,ssb,WMV,zcm,q9Q,rwb,uaN,ecW,v3A,ywr,jsV,P5I,G4r,uK,FMC,S9f,adQ,cwV,pTX,Qsr,Vvl,E3l,UZb,ldf,NFN,Mvr,C5I,n38,Z$A,fdf,wTI,o3f,$Zm,Aa8,HAl,sVV,zLV,dUI,uCr,qiI,raN,xUW,iAC,hLV,B0W,RLl,eLX,mUC,jB,JaA,I8,GE,gUI,LtC,vUQ,I58,a5I,Pem,YiW,FtX,DUA,GWf,UUf,QVX,l5N,tCX,N0r,MCf,nUC,f5I,ZAX,weN,oUW,$Um,A3W,sxI,dPI,WFr,zVv,r3V,qDr,glX,SB,bZC,vlI,y3I,jxr,IRQ,YDV,
GPm,FFv,XIV,VJ,EI,DPQ,lK,pI8,NC,Vpb,MC,tpf,Mpb,kiC,wW,zJf,qaN,eJX,uDI,B2W,s9,x4W,iGW,OGI,RJb,T2I,m4V,Jnr,g6N,bGb,v6r,rF,ynI,u5,x3,PC8,mM,Sam,D4A,aq8,b5,yT,p5C,QPr,Vif,E6A,U4I,jv,fqC,ZGV,PT,w5r,Fa,Dd,Afr,H5I,sEV,dGl,zXX,WSb,qYr,tw,RXI,Tef,n$,jEl,LSQ,I$C,wF,FS8,$3,Aa,XLr,DGr,KSQ,pLW,QEC,VFr,He,UGb,Ehm,Z5b,f$I,ohf,s3l,dVr,WaC,zUX,qvb,uWI,B_b,xVA,iTI,hUv,zW,RUA,xU,mVr,JbI,gJQ,LaI,T_b,OTf,bTC,r0,ybC,Plf,I78,Xq8,DVv,SvV,Ka8,dof,Wbm,zjQ,qZl,Ja,uF8,rMQ,Bol,xor,LA,hjl,RjN,jC,YU,IV,bPr,gYV,OP8,IcA,Do8,KbC,
CoA,puW,D5,V8r,EYQ,t8X,Nob,ce,nYb,QM,VM,wuI,AWX,s1I,kyN,zpA,q3V,rWr,uL8,Ei,epV,xnW,i2X,hpr,RpN,TYA,mnX,JWv,ta,nA,LVX,vkC,yWm,Y3b,PgI,Gyl,a6C,cWW,S3Q,Q1C,VLm,Ekl,dj,WI,zP,qP,NY8,MLf,ep,nkI,Z2C,f6X,wN8,$nf,AxN,HHf,sCX,ok8,kCI,OD,WCQ,Bn8,Rx,uVI,eAV,dTI,xTI,mF,hAv,OHC,RAr,Tnv,Jxf,mTb,grb,vrr,bHA,yxX,FCv,DT8,Cif,cxm,aZI,KCQ,pBI,QCv,ErA,lZA,UTC,t1N,PI,M1f,nrb,ZHf,fZf,wBI,$Tf,orI,AZV,H8I,zWQ,dwl,WpI,rZX,up8,BEf,xw8,eWC,i8N,hWf,RWI,mwI,b8f,vB8,LpW,ZR,yZX,TE8,X0l,SHv,C9I,An,KpA,cZr,VcQ,lWl,Uwf,nBb,Z8Q,fWm,
w0f,$wW,dmX,Arf,scW,kKI,WjV,zFA,rrV,qAl,BlQ,u3I,ei,eFN,imI,hFW,mmN,Jn,g2,JrC,bC,gub,bmX,LG,yrX,Y6,P5,Gi,Pkb,FD,XK8,Si,Dmb,SAQ,CkI,Kjv,aP,auN,crX,pKI,VX8,UmI,NlX,nuQ,M4,ZmX,fu8,wKW,ou8,$mQ,A1Q,HFV,sl8,fG,WHr,zYA,qJ8,r1I,u_l,B4N,eYv,xHm,iFN,hYV,OFb,RYC,T48,de,GDf,FHC,WL,zZ,qG,XMA,DHl,SJV,CwN,KHr,aeX,c1b,UHm,ler,tsm,N4X,Msb,eF,iZ,hf,OY,mS,Jf,ge,ZFl,L5,wMr,vL,oII,$Hl,yv,A6W,H0A,sOm,e7f,i0f,m0m,L$8,b0I,x0b,v98,IS8,QOI,D0I,tDm,CyV,U0V,Nub,FZ,n9C,SF,fSQ,wWW,$0f,A7I,H3b,kAI,aE,WuV,zS8,qRI,r7X,ucb,BbX,eSW,
dtQ,hSQ,O3m,RSb,p5,LuQ,v5v,b3m,jyf,IfN,YRC,PcI,KuW,QyN,E5N,MG,Z3A,MwX,n5W,A8N,s9b,kcX,dNX,W0Q,zR8,qtf,sv,RRI,mNI,hRW,ijb,THQ,uUv,gEC,Xnb,vEX,y8C,j9b,EEV,lGC,VOI,ZjX,Q9f,r8l,nEC,L0A,F0m,UNX,J8W,eRV,BHX,xNl,OjA,pnI,LT,B9f,xFI,ihb,hEr,OhI,yc8,GVv,F5A,D7,DFI,K5N,Q5I,pGQ,EHX,UFX,tuQ,N9b,Mub,nHI,fvA,Zhl,Vr,kFC,sIm,Hwf,q5Q,dLA,rvX,zOC,u1I,ByA,hOl,xLl,iwr,ROQ,mL8,JvV,L88,vql,yvr,jIW,Y5V,Psm,nT,F8N,Z7,XlC,Csb,DLf,K8C,QIr,VYI,lhI,NyQ,kY,qo,fhV,wlm,ro,uo,oqQ,Bu,e8,$Lb,xY,AdN,io,H6l,sLf,OZ,ksv,deI,WWI,zeI,qKC,
uO8,rdI,eeb,heb,i6X,O6I,ReX,BKb,TKC,gcl,Jdf,xeI,b6V,LW8,go,vcr,jLW,ydf,IsI,YKW,GsN,PAm,FWV,LP,Def,SKb,XpX,KWN,asV,cdI,Ecm,tKm,fsC,AYI,vu,k5V,dJN,yb,W9V,Pu,Gb,e6v,I0,Dc,xJf,iXr,OX8,R6I,mJf,gVX,bXl,L9I,vV8,I_C,XZI,G5X,jXb,DJC,S8v,a0,F9N,Cpm,Qb,K9I,a_W,cYv,pZC,UJv,QXr,EVf,MaC,nVI,$JA,oV8,sM8,rKI,uoV,eZl,iOQ,hZI,RZX,TSC,mBf,gXN,bOb,LNb,jMX,GjQ,FNI,IIf,DBv,CPC,SXC,XJA,KNl,cKm,pJf,QMN,Vml,EXX,lIf,UBf,NSm,wJI,nXb,Mmb,$BA,o0,$Y,AW,AsN,HfI,swv,kkC,rY,qxX,rsC,ukX,B3I,ug,xk,hk8,RkV,T3X,JsW,Lvm,hW,O3,vzI,R1,
IOC,YxI,Pxr,mV,Sxv,csI,Qwv,VPN,EzA,lOm,tPN,N3b,ZfC,bg,fO8,$3I,L2,A9r,dpW,vN,qhr,ys,Yk,PN,r9r,Btv,urW,xpC,inC,h8m,Onl,e8C,gwN,bn8,vwm,jFm,GaN,PHW,F7v,Dpf,ShN,CHX,K7v,atl,c9m,pFA,Ewf,QFC,C2,ltf,K2,tEI,cN,p2,Ntm,MEC,nwI,Znv,ftV,Qs,wFV,owW,$pI,A$v,snb,ktN,drm,WOm,zv8,r$I,q4I,Vs,B6X,xrl,iiI,hvI,OiI,mrW,gsr,tW,LON,y$W,jnI,IP8,Y4b,PGI,Gtv,FOl,Xof,J$N,biN,DrV,S4b,c$l,pov,QnX,VJv,sSC,W6l,zdN,quW,d2X,iom,Rdf,hdQ,T1V,g2W,L6m,ygC,PS8,YuX,D2V,HB,SuI,CSW,sd,K6X,kr,awr,cgX,pDW,VVX,QSI,E2N,U2v,lwV,tVm,o2W,AqQ,sqN,
HIr,ZoX,MVX,d_m,z1l,e1b,x_b,OIW,bIN,vtb,qT,yqQ,IDX,YMI,Gll,SMr,aDN,Qqm,VhN,EtW,U_I,nt8,lDI,otl,$_m,ASI,sDA,e1,krV,W1A,zg8,qmW,rSX,uPI,BNf,egQ,i4N,hgr,Od,O4b,RgN,mlv,TC,TNb,geX,ySX,gn,jD8,I2V,Ymb,F1C,XYX,PRf,Smm,cS8,pYV,QDr,j1,VGX,tGl,NNC,GC,Z4I,MGr,ner,oel,$lW,AyV,H1b,pH,WLI,zDV,qQW,ryb,uYI,i1A,RDW,O1A,hDQ,TCI,Jyv,gfV,jYQ,b1f,I4r,P$b,YQW,C$C,cyV,QYm,EfC,f48,i9,ofr,shV,dYm,ec,b9,BXl,hPW,iMI,RPA,TXm,JUm,mYC,gOb,bMI,L8,J6I,ePv,OMW,xYf,JZ,yUf,jhm,Ibl,Y7v,DW,PUA,GBf,FlI,X2I,DYI,aN,S7W,abr,p2W,QhC,M$V,
ZMW,fbC,w28,$YW,A0W,n8,sgC,k2C,dcl,WyW,z2m,qpb,uwm,e2I,ikV,h2r,gTb,mcI,bkA,y0X,jgX,HK,IJN,YpC,PVC,Xfr,SpW,DcQ,KyI,c0f,WK,Qgv,V0N,pfb,ETW,UcA,t0r,M0Q,Nsf,nTC,lJ8,Zkf,fJN,wf8,oTW,$cI,ABf,HgV,s68,kGX,zaA,Wfr,qlX,uJI,rBI,zK,Bf8,igl,Tfb,eaN,gLV,bgv,LfI,vLr,Ipb,Slm,CuC,apI,cBv,Jr,ELX,NfA,Zgm,gl,Ik8,fpA,yzf,jr8,YcQ,Scl,vK,CBr,KgI,czI,pxv,QrX,VZA,U6b,lk8,$6X,Zrr,wxV,HKA,Aol,sWf,kUA,WEv,qev,u$I,eQW,xOA,hQI,yol,YeA,GUQ,FEV,XAm,DOv,SeQ,KEX,aYI,QWm,Vgv,Evb,UOA,lYX,tgX,NvQ,Mgm,fYX,$OV,Km,ac,cK,AP8,HvQ,Vc,kqm,
xMN,mMA,RKC,CDI,Kd8,aVm,WdA,eKm,rPX,p$N,QHX,Vor,EjV,hKI,UMC,toV,Mom,fVm,w$f,oc,zhA,rl8,BBl,ehv,iEb,x9W,Rhm,m9I,jBA,vFm,gFQ,ylA,bEQ,IAX,FeI,OJ,Rl,pbm,Keb,VeC,EFf,lAl,teV,mH,NBX,ZEQ,fAl,wbr,oFV,Wkl,dal,YI,e_C,De,isV,h_I,OsA,R_m,TmI,maN,JCX,gm8,bsl,Lkb,vmA,CF,yCX,jvm,ITl,YjV,PEl,Ghv,FkW,XHC,al,DaI,SjN,CEm,KkA,aT8,cCr,pHI,QvA,Vqm,EmI,UaX,lTW,tql,pF,Mqm,ZsI,wHb,AhW,k8v,d8A,WPb,qqV,uhX,BrX,e9l,MH,R9l,h98,TrC,m8l,JhI,LPV,vxI,yhA,IBv,WW,Pvm,k9,FPV,X_r,zn,D88,Sqm,CvI,KPC,ru,Qev,ExA,M6N,NrX,ZbX,fBN,RO,w_m,
oxX,Aml,sZI,k$f,WoX,znl,HUA,qfr,xAA,RnA,TTI,Tn,mAr,JmI,ymv,gGI,Lor,vGN,FoI,Irf,X6m,SfW,KoN,arI,cmf,p6m,QZX,V2I,UAX,lr8,t2X,NTl,M2r,ZUI,w6l,A_I,d18,q0f,u2V,x1N,yu,iJb,hGC,OJ8,RGN,TaI,J_8,gil,bJW,LIb,viI,y_I,jGV,IgQ,Y0N,PbN,GmW,XgX,FIQ,Cbl,ag8,Gn,c_V,Vjl,QGV,lgf,tjN,Naf,ZJv,oiI,wgm,nil,HpA,Aur,zrX,skC,K0,df8,ipI,u8f,BRv,erQ,xfr,hr8,RrA,Opv,aO,cW,vCr,mfr,LTf,bpm,JuI,gCA,Imv,PWQ,FTl,G68,X7r,KTv,CWA,cuI,VTb,UfV,Qkf,lmN,NRQ,tTC,nCC,w7I,U6,oC8,$fA,ANb,dzA,BMV,t6,xzI,h3W,wu,TMb,OBm,R3f,f0,bBI,mzf,JNI,L2m,
yNN,vAW,YrI,P4m,F2V,Xkf,DzQ,Srr,C4C,aNV,cNf,rb,QTX,UzI,lNI,x5,txW,Mxr,sub,TA,wkl,H7W,oAl,$z8,zBl,WXX,BzA,qnA,eBl,xhf,gb,i7b,hBr,O7Q,yw,RBf,bc,JIf,g_X,b7v,LXI,v_Q,jur,G7N,FX8,SnW,CdW,aXb,QuW,cIW,phl,VlN,UhW,lXI,tlQ,NzI,MlX,Z7N,whN,o_X,AQA,$hX,HDX,sAQ,dSl,WZm,hTr,xSN,TVX,mSv,yQQ,jAr,IjA,Y1N,POl,Gpf,DSv,S1m,COW,KZC,cQX,pdC,QAN,Vrr,EQm,USX,trb,NVQ,t7,fjX,ZDm,nQC,Mrv,oQ8,HRI,$Sb,kQC,dsW,zsQ,qkI,rJf,uzI,BGm,ORN,esW,xsX,iRV,RsI,TGX,msV,hsC,Zf,bRC,voW,Lhl,wb,yJr,Izf,Ykr,P_A,jfC,GQf,Fhv,Xcm,DsW,Skl,Kh8,azb,
cJV,pcI,Eov,V7r,M7l,QfQ,$5,noI,Usr,NGC,fzb,wcb,ooI,$sb,AOm,siI,kJv,duI,zxr,qOv,uTA,exI,RxW,hxC,OSC,iSA,xuv,TkC,eO,mub,xE,JOC,g$r,jiN,YOI,PhW,GJv,FxQ,Xrb,DuX,m0,J8,cOC,ChQ,SO8,KxN,fUf,MUv,aUm,Nkr,sQm,kYW,djI,Wsr,zfA,uuf,efA,i_f,O_I,Rfb,T7f,b_b,g4W,LsX,yil,QI,Y_I,PnQ,GYQ,FsX,Xar,Dj8,S_V,Et,Ut,Ksf,aCW,pam,E4f,n4l,$jV,o4r,AXI,sjr,k_A,dbr,WUV,zNf,qVV,ZG,rXb,Otv,RNf,xbW,eNl,hNl,itI,btr,LUI,va8,yXm,jjI,Inb,G_I,P7C,YVr,p9I,anv,QjV,Eal,VRW,lnl,MRl,ZtV,tRf,NZA,k3I,W4N,qTr,ulb,eu8,icI,TPN,mdC,JRQ,L4V,bcr,gSC,
vSl,yRQ,jzV,Iof,YTN,PjN,G3b,F4f,XCr,Ddr,Cj8,K4A,aoN,cRf,pCf,QzQ,ESW,Udb,loW,tQA,NP8,MQC,wCA,oSX,A4I,sJX,HeN,kIl,r9,dkl,WYX,zzA,qLC,BQC,uHm,ezC,xkl,iev,hzW,Oev,RzC,TQm,mkX,J4I,gWl,beI,LY8,vWQ,y48,jJV,YLW,Ix8,PXC,GIb,FYb,XQI,DkV,SLW,CXX,KYI,m5,c4N,pQW,QJC,V4v,EWV,lxW,t4m,NQA,M4r,nW8,ZeC,fxX,oW8,$kf,HqX,Lh,d7I,u7l,qUI,zyQ,WQQ,rFl,x7l,iql,hyA,OqI,ThA,m7b,JFV,bqN,gbN,LQ8,vbA,yFV,YUW,PFX,G9C,FQf,XtN,D7v,KQ8,alI,Dv,Eb8,U7r,tHX,nbI,MHV,Zqr,flW,Su,Kh,obI,ph,QP,sKA,$7v,ADb,Wzf,zlI,qSC,rDV,xDV,hlA,OzA,RlA,Ti8,
mDX,gDI,bzl,Lzv,vDQ,yDl,jKQ,Iif,UF,YSf,P0l,tc,G1r,FzI,Xml,DDV,SSX,C0I,MF,nh,Kzb,aim,Zv,cDC,pmX,QKI,V9A,UD8,liV,Nir,wmI,fiI,Zzv,oDf,$DQ,zHA,sof,koI,dII,HdI,WKC,qPv,rEr,BDW,eHX,w9,hHr,OdQ,RHA,TDQ,mIf,gNI,LKN,joA,Gom,YPm,o5,IHA,SPm,KKl,$H,aHN,cEI,pOv,Qom,VWI,UIV,lHX,NDr,MWC,ZdI,fHf,ApW,stI,dWm,kSW,z58,qo8,rpl,uiW,e5b,xWv,iQ8,h5W,OQb,R5W,T8X,mWW,JpN,bQv,LiN,Yob,PqX,GSC,FiW,Xsv,DWf,us,KiW,cpl,psI,Qtf,V5X,EPb,lEf,t5v,N8V,M5v,ZQl,fEr,wsA,xq,oPW,$WQ,smI,kzA,is,hv,zqC,dql,qyW,BJl,rtN,eqQ,iaI,m8,hqX,Oal,Rq8,
JtW,bar,Jv,vRC,ytX,jmX,IFC,Yyv,Pzr,GzX,FwN,XEf,KwC,aFf,VyN,ctV,Qmm,ERr,UqA,lFW,MyI,nRl,ZaI,wEm,oRl,dgC,kNW,uSl,xgV,X1,i9I,h$r,LFv,Dh,O9W,R$b,mgX,b98,Lcl,GNX,Fcf,X3r,Dgb,SsV,C8f,cHW,p3m,VbX,Ug8,Q2A,EKb,tbV,l0X,MbN,f0m,nKv,w3v,oKv,$gb,ATV,HyN,s$8,d5C,kxX,rTW,e0b,u4f,x5I,iyv,h0V,E5,OyV,R0v,ls,m5W,Tpf,JTI,byV,gnV,j$I,IM8,PNN,ML,FDf,XPA,D5N,Sg8,aMN,pPW,En8,Vzr,U5V,lMN,tzl,Zyr,WqI,$5I,q$8,rLC,BgI,eil,iWr,hiI,OWl,RiN,TgA,m$r,bWV,Lqb,vym,yLQ,Y$b,GuV,Fqm,P6r,D$I,X1v,cLv,p1v,QRm,VSX,Ey8,U$N,lar,NgC,ZWr,faA,
w1r,A5I,$$8,kvm,WnC,qzX,r5I,uKA,BcQ,eoQ,iuf,xyb,OuI,gMI,vMr,Lnv,y5l,jdI,I98,PYN,xc,FnV,OK,DyA,CYA,Knl,VfA,Uyf,Mfv,Zul,f9A,oMX,$yr,AAG,sbw,dvQ,WrA,qCw,BIi,uX0,rA0,Jd,xvA,emG,ilk,hmG,Olw,Rmi,TIA,mvi,JAw,blj,Lr1,v8j,bA,yA1,jbZ,IQ1,YCw,PIp,GfA,XV1,Dvk,SCA,CIj,Kr0,cAA,pVw,Qbw,UvZ,Yc,fQA,lQA,o8J,Akw,qwN,rki,uAN,Bwp,Gs,mQG,MZ,FO,Ds,Jkp,gZw,vZw,jpk,ykw,C6,I1k,YwQ,PJw,G0i;AAr=function(){var A,H;return typeof CSS!=="undefined"&&((H=(A=CSS).supports)==null?void 0:H.call(A,"selector(:has(*))"))};
Hlb=function(A){return A.visibility!=="hidden"&&A.display!=="none"};
kfC=function(A){if(AAr()||A.tagName!=="DETAILS"?!A.matches(sbI):A.querySelector("summary")!==null)return-1;A=A.getAttribute("tabindex")||"0";return Number(A)};
dvv=function(A){return A.some(function(H){return kfC(H)>0})};
WrX=function(A){if(A.textContent||A.ariaLabel)return!0;if(A instanceof HTMLInputElement){if(!A.labels)return!1;A=_.r(A.labels);for(var H=A.next();!H.done;H=A.next())if(H.value.textContent)return!0}return!1};
zmI=function(A){return A.sort(function(H,k){return kfC(k)-kfC(H)})};
_.qCI=function(A){A=Array.from(A.querySelectorAll(sbI)).filter(function(H){return(Hlb(H.style)?Hlb(window.getComputedStyle(H)):!1)&&WrX(H)});
return dvv(A)?zmI(A):A};
_.AA=function(A,H){if(Error.captureStackTrace)Error.captureStackTrace(this,_.AA);else{var k=Error().stack;k&&(this.stack=k)}A&&(this.message=String(A));H!==void 0&&(this.cause=H)};
HV=function(){throw Error("F");};
rAf=function(A,H){H=String.fromCharCode.apply(null,H);return A==null?H:A+H};
xvN=function(A){var H=!1;H=H===void 0?!1:H;if(uXf){if(H&&(BIW?!A.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(A)))throw Error("G");A=(emr||(emr=new TextEncoder)).encode(A)}else{for(var k=0,d=new Uint8Array(3*A.length),W=0;W<A.length;W++){var z=A.charCodeAt(W);if(z<128)d[k++]=z;else{if(z<2048)d[k++]=z>>6|192;else{if(z>=55296&&z<=57343){if(z<=56319&&W<A.length){var u=A.charCodeAt(++W);if(u>=56320&&u<=57343){z=(z-55296)*1024+u-56320+65536;d[k++]=z>>18|
240;d[k++]=z>>12&63|128;d[k++]=z>>6&63|128;d[k++]=z&63|128;continue}else W--}if(H)throw Error("G");z=65533}d[k++]=z>>12|224;d[k++]=z>>6&63|128}d[k++]=z&63|128}}A=k===d.length?d:d.subarray(0,k)}return A};
dI=function(A){_.k8.setTimeout(function(){throw A;},0)};
_.zf=function(A){for(var H=[],k=0,d=0;d<A.length;d++){var W=A.charCodeAt(d);W<128?H[k++]=W:(W<2048?H[k++]=W>>6|192:((W&64512)==55296&&d+1<A.length&&(A.charCodeAt(d+1)&64512)==56320?(W=65536+((W&1023)<<10)+(A.charCodeAt(++d)&1023),H[k++]=W>>18|240,H[k++]=W>>12&63|128):H[k++]=W>>12|224,H[k++]=W>>6&63|128),H[k++]=W&63|128)}return H};
ilA=function(A){for(var H=[],k=0,d=0;k<A.length;){var W=A[k++];if(W<128)H[d++]=String.fromCharCode(W);else if(W>191&&W<224){var z=A[k++];H[d++]=String.fromCharCode((W&31)<<6|z&63)}else if(W>239&&W<365){z=A[k++];var u=A[k++],B=A[k++];W=((W&7)<<18|(z&63)<<12|(u&63)<<6|B&63)-65536;H[d++]=String.fromCharCode(55296+(W>>10));H[d++]=String.fromCharCode(56320+(W&1023))}else z=A[k++],u=A[k++],H[d++]=String.fromCharCode((W&15)<<12|(z&63)<<6|u&63)}return H.join("")};
_.rI=function(A,H){return A.lastIndexOf(H,0)==0};
uI=function(A,H){var k=A.length-H.length;return k>=0&&A.indexOf(H,k)==k};
_.BV=function(A){return/^[\s\xa0]*$/.test(A)};
_.iI=function(A,H){return A.indexOf(H)!=-1};
_.OC=function(A,H){return _.iI(A.toLowerCase(),H.toLowerCase())};
_.JA=function(A,H){var k=0;A=Rb(String(A)).split(".");H=Rb(String(H)).split(".");for(var d=Math.max(A.length,H.length),W=0;k==0&&W<d;W++){var z=A[W]||"",u=H[W]||"";do{z=/(\d*)(\D*)(.*)/.exec(z)||["","","",""];u=/(\d*)(\D*)(.*)/.exec(u)||["","","",""];if(z[0].length==0&&u[0].length==0)break;k=hmr(z[1].length==0?0:parseInt(z[1],10),u[1].length==0?0:parseInt(u[1],10))||hmr(z[2].length==0,u[2].length==0)||hmr(z[2],u[2]);z=z[3];u=u[3]}while(k==0)}return k};
hmr=function(A,H){return A<H?-1:A>H?1:0};
_.bI=function(){var A=_.k8.navigator;return A&&(A=A.userAgent)?A:""};
Olm=function(A){if(!Ll||!vV)return!1;for(var H=0;H<vV.brands.length;H++){var k=vV.brands[H].brand;if(k&&_.iI(k,A))return!0}return!1};
yW=function(A){return _.iI(_.bI(),A)};
jN=function(){return Ll?!!vV&&vV.brands.length>0:!1};
RmW=function(){return jN()?!1:yW("Opera")};
TIX=function(){return jN()?!1:yW("Trident")||yW("MSIE")};
mvW=function(){return jN()?Olm("Microsoft Edge"):yW("Edg/")};
PV=function(){return yW("Firefox")||yW("FxiOS")};
_.JAC=function(){return yW("Safari")&&!(Gf()||(jN()?0:yW("Coast"))||RmW()||(jN()?0:yW("Edge"))||mvW()||(jN()?Olm("Opera"):yW("OPR"))||PV()||yW("Silk")||yW("Android"))};
Gf=function(){return jN()?Olm("Chromium"):(yW("Chrome")||yW("CriOS"))&&!(jN()?0:yW("Edge"))||yW("Silk")};
_.g8N=function(){return yW("Android")&&!(Gf()||PV()||RmW()||yW("Silk"))};
blV=function(A){var H={};A.forEach(function(k){H[k[0]]=k[1]});
return function(k){return H[k.find(function(d){return d in H})]||""}};
LrQ=function(A){var H=_.bI();if(A==="Internet Explorer"){if(TIX())if((A=/rv: *([\d\.]*)/.exec(H))&&A[1])H=A[1];else{A="";var k=/MSIE +([\d\.]+)/.exec(H);if(k&&k[1])if(H=/Trident\/(\d.\d)/.exec(H),k[1]=="7.0")if(H&&H[1])switch(H[1]){case "4.0":A="8.0";break;case "5.0":A="9.0";break;case "6.0":A="10.0";break;case "7.0":A="11.0"}else A="7.0";else A=k[1];H=A}else H="";return H}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");k=[];for(var W;W=d.exec(H);)k.push([W[1],W[2],W[3]||void 0]);
H=blV(k);switch(A){case "Opera":if(RmW())return H(["Version","Opera"]);if(jN()?Olm("Opera"):yW("OPR"))return H(["OPR"]);break;case "Microsoft Edge":if(jN()?0:yW("Edge"))return H(["Edge"]);if(mvW())return H(["Edg"]);break;case "Chromium":if(Gf())return H(["Chrome","CriOS","HeadlessChrome"])}return A==="Firefox"&&PV()||A==="Safari"&&_.JAC()||A==="Android Browser"&&_.g8N()||A==="Silk"&&yW("Silk")?(H=k[2])&&H[1]||"":""};
_.v8V=function(A){if(jN()&&A!=="Silk"){var H=vV.brands.find(function(k){return k.brand===A});
if(!H||!H.version)return NaN;H=H.version.split(".")}else{H=LrQ(A);if(H==="")return NaN;H=H.split(".")}return H.length===0?NaN:Number(H[0])};
FX=function(){return Ll?!!vV&&!!vV.platform:!1};
_.yAQ=function(){return FX()?vV.platform==="Android":yW("Android")};
jb8=function(){return yW("iPhone")&&!yW("iPod")&&!yW("iPad")};
_.XX=function(){return jb8()||yW("iPad")||yW("iPod")};
_.IQQ=function(){return FX()?vV.platform==="macOS":yW("Macintosh")};
_.YCC=function(){return FX()?vV.platform==="Windows":yW("Windows")};
_.PIb=function(){return FX()?vV.platform==="Chrome OS":yW("CrOS")};
_.DQ=function(A){return A[A.length-1]};
GfN=function(A){for(var H=_.Kl,k=typeof A==="string"?A.split(""):A,d=A.length-1;d>=0;d--)if(d in k&&H.call(void 0,k[d],d,A))return d;return-1};
_.VW=function(A,H){return _.ab(A,H)>=0};
_.Frm=function(A,H){_.VW(A,H)||A.push(H)};
_.EC=function(A,H){H=_.ab(A,H);var k;(k=H>=0)&&_.XVQ(A,H);return k};
_.XVQ=function(A,H){Array.prototype.splice.call(A,H,1)};
_.tA=function(A){var H=A.length;if(H>0){for(var k=Array(H),d=0;d<H;d++)k[d]=A[d];return k}return[]};
_.Mv=function(A,H){for(var k=1;k<arguments.length;k++){var d=arguments[k];if(_.Nv(d)){var W=A.length||0,z=d.length||0;A.length=W+z;for(var u=0;u<z;u++)A[W+u]=d[u]}else A.push(d)}};
_.SCN=function(A,H,k,d){Array.prototype.splice.apply(A,DvA(arguments,1))};
DvA=function(A,H,k){return arguments.length<=2?Array.prototype.slice.call(A,H):Array.prototype.slice.call(A,H,k)};
CIV=function(A,H){H=H||A;for(var k=0,d=0,W={};d<A.length;){var z=A[d++],u=_.nl(z)?"o"+_.fl(z):(typeof z).charAt(0)+z;Object.prototype.hasOwnProperty.call(W,u)||(W[u]=!0,H[k++]=z)}H.length=k};
_.aQr=function(A,H,k){k=k||_.Krf;for(var d=0,W=A.length,z;d<W;){var u=d+(W-d>>>1);var B=k(H,A[u]);B>0?d=u+1:(W=u,z=!B)}return z?d:-d-1};
_.wI=function(A,H,k){if(!_.Nv(A)||!_.Nv(H)||A.length!=H.length)return!1;var d=A.length;k=k||cAN;for(var W=0;W<d;W++)if(!k(A[W],H[W]))return!1;return!0};
_.Krf=function(A,H){return A>H?1:A<H?-1:0};
cAN=function(A,H){return A===H};
pVm=function(A,H,k){H=Array.prototype.splice.call(A,H,1);Array.prototype.splice.call(A,k,0,H[0])};
_.ob=function(A,H){H===void 0&&(H=0);QbC();H=VNV[H];for(var k=Array(Math.floor(A.length/3)),d=H[64]||"",W=0,z=0;W<A.length-2;W+=3){var u=A[W],B=A[W+1],h=A[W+2],O=H[u>>2];u=H[(u&3)<<4|B>>4];B=H[(B&15)<<2|h>>6];h=H[h&63];k[z++]=O+u+B+h}O=0;h=d;switch(A.length-W){case 2:O=A[W+1],h=H[(O&15)<<2]||d;case 1:A=A[W],k[z]=H[A>>2]+H[(A&3)<<4|O>>4]+h+d}return k.join("")};
Uv8=function(A){var H="";E8f(A,function(k){H+=String.fromCharCode(k)});
return H};
_.lQX=function(A){var H=[];E8f(A,function(k){H.push(k)});
return H};
_.$8=function(A){var H=A.length,k=H*3/4;k%3?k=Math.floor(k):_.iI("=.",A[H-1])&&(k=_.iI("=.",A[H-2])?k-2:k-1);var d=new Uint8Array(k),W=0;E8f(A,function(z){d[W++]=z});
return W!==k?d.subarray(0,W):d};
E8f=function(A,H){function k(h){for(;d<A.length;){var O=A.charAt(d++),T=Hj[O];if(T!=null)return T;if(!_.BV(O))throw Error("I`"+O);}return h}
QbC();for(var d=0;;){var W=k(-1),z=k(0),u=k(64),B=k(64);if(B===64&&W===-1)break;H(W<<2|z>>4);u!=64&&(H(z<<4&240|u>>2),B!=64&&H(u<<6&192|B))}};
QbC=function(){if(!Hj){Hj={};for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),H=["+/=","+/","-_=","-_.","-_"],k=0;k<5;k++){var d=A.concat(H[k].split(""));VNV[k]=d;for(var W=0;W<d.length;W++){var z=d[W];Hj[z]===void 0&&(Hj[z]=W)}}}};
NIW=function(A){return tNW[A]||""};
ZlA=function(A){if(!MNv)return _.$8(A);A=n88.test(A)?A.replace(n88,NIW):A;A=atob(A);for(var H=new Uint8Array(A.length),k=0;k<A.length;k++)H[k]=A.charCodeAt(k);return H};
fQX=function(A,H){A.__closure__error__context__984382||(A.__closure__error__context__984382={});A.__closure__error__context__984382.severity=H};
_.sw=function(A){A=Error(A);fQX(A,"warning");return A};
o8I=function(A,H){if(A!=null){var k;var d=(k=wVV)!=null?k:wVV={};k=d[A]||0;k>=H||(d[A]=k+1,A=Error(),fQX(A,"incident"),dI(A))}};
dw=function(){return typeof BigInt==="function"};
Wj=function(A,H,k){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(k===void 0?0:k)&&Symbol.for&&A?Symbol.for(A):A!=null?Symbol(A):Symbol():H};
xZ=function(A,H){z0||_.qQ in A||$vQ(A,Akm);A[_.qQ]|=H};
iJ=function(A,H){z0||_.qQ in A||$vQ(A,Akm);A[_.qQ]=H};
HNV=function(A){if(4&A)return 512&A?512:1024&A?1024:0};
bJ=function(A){xZ(A,34);return A};
LN=function(A){xZ(A,8192);return A};
spN=function(A){xZ(A,32);return A};
Pj=function(A,H){return H===void 0?A.copyOnWrite!==YZ&&!!(2&(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.qQ]|0)):!!(2&H)&&A.copyOnWrite!==YZ};
_.SA=function(A,H){if(A!=null)if(typeof A==="string")A=A?new FA(A,XA):_.D1();else if(A.constructor!==FA)if(k0W&&A!=null&&A instanceof Uint8Array)A=A.length?new FA(new Uint8Array(A),XA):_.D1();else{if(!H)throw Error();A=void 0}return A};
dQV=function(A,H){if(typeof H!=="number"||H<0||H>=A.length)throw Error();};
WGA=function(A,H,k){var d=H&128?0:-1,W=A.length,z;if(z=!!W)z=A[W-1],z=z!=null&&typeof z==="object"&&z.constructor===Object;var u=W+(z?-1:0);for(H=H&128?1:0;H<u;H++)k(H-d,A[H]);if(z){A=A[W-1];for(var B in A)!isNaN(B)&&k(+B,A[B])}};
KN=function(A){return A&128?CN:void 0};
_.rkW=function(A){var H=zwm;if(!qwl(A)){var k,d;H=(d=(k=typeof H==="function"?H():H)==null?void 0:k.concat("\n"))!=null?d:"";throw Error("L`"+H+"`"+String(A));}};
ap=function(A){A.isGuard_doNotManuallySetPrettyPlease=!0;return A};
Bwb=function(){var A=uAl;return ap(function(H){for(var k in A)if(H===A[k]&&!/^[0-9]+$/.test(k))return!0;return!1})};
_.cj=function(A){var H=A;if(ewl(H)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(H))throw Error(String(H));}else if(xQC(H)&&!Number.isSafeInteger(H))throw Error(String(H));return iNI?BigInt(A):A=hwC(A)?A?"1":"0":ewl(A)?A.trim()||"0":String(A)};
ONN=function(A,H){if(A.length>H.length)return!1;if(A.length<H.length||A===H)return!0;for(var k=0;k<A.length;k++){var d=A[k],W=H[k];if(d>W)return!1;if(d<W)return!0}};
Rwv=function(A){var H=A>>>0;pN=H;Ew=(A-H)/4294967296>>>0};
Uw=function(A){if(A<0){Rwv(-A);var H=_.r(Twv(pN,Ew));A=H.next().value;H=H.next().value;pN=A>>>0;Ew=H>>>0}else Rwv(A)};
Jkb=function(A){var H=mQr||(mQr=new DataView(new ArrayBuffer(8)));H.setFloat32(0,+A,!0);Ew=0;pN=H.getUint32(0,!0)};
gZI=function(A,H){var k=H*4294967296+(A>>>0);return Number.isSafeInteger(k)?k:_.tk(A,H)};
bNN=function(A,H){return _.cj(dw()?BigInt.asUintN(64,(BigInt(H>>>0)<<BigInt(32))+BigInt(A>>>0)):_.tk(A,H))};
MQ=function(A,H){var k=H&2147483648;k&&(A=~A+1>>>0,H=~H>>>0,A==0&&(H=H+1>>>0));A=gZI(A,H);return typeof A==="number"?k?-A:A:k?"-"+A:A};
LGQ=function(A,H){return dw()?_.cj(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(H))<<BigInt(32))+BigInt.asUintN(32,BigInt(A)))):_.cj(_.Z1(A,H))};
vZm=function(A){var H=pN,k=Ew,d=k>>31;k=(k<<1|H>>>31)^d;A(H<<1^d,k)};
jpA=function(A,H){return ykI(A,H,MQ)};
ykI=function(A,H,k){var d=-(A&1);A=(A>>>1|H<<31)^d;H=H>>>1^d;return k(A,H)};
_.tk=function(A,H){H>>>=0;A>>>=0;if(H<=2097151)var k=""+(4294967296*H+A);else dw()?k=""+(BigInt(H)<<BigInt(32)|BigInt(A)):(k=(A>>>24|H<<8)&16777215,H=H>>16&65535,A=(A&16777215)+k*6777216+H*6710656,k+=H*8147497,H*=2,A>=1E7&&(k+=A/1E7>>>0,A%=1E7),k>=1E7&&(H+=k/1E7>>>0,k%=1E7),k=H+I1A(k)+I1A(A));return k};
I1A=function(A){A=String(A);return"0000000".slice(A.length)+A};
_.Z1=function(A,H){H&2147483648?dw()?A=""+(BigInt(H|0)<<BigInt(32)|BigInt(A>>>0)):(H=_.r(Twv(A,H)),A=H.next().value,H=H.next().value,A="-"+_.tk(A,H)):A=_.tk(A,H);return A};
fN=function(A){if(A.length<16)Uw(Number(A));else if(dw())A=BigInt(A),pN=Number(A&BigInt(4294967295))>>>0,Ew=Number(A>>BigInt(32)&BigInt(4294967295));else{var H=+(A[0]==="-");Ew=pN=0;for(var k=A.length,d=H,W=(k-H)%6+H;W<=k;d=W,W+=6)d=Number(A.slice(d,W)),Ew*=1E6,pN=pN*1E6+d,pN>=4294967296&&(Ew+=Math.trunc(pN/4294967296),Ew>>>=0,pN>>>=0);H&&(H=_.r(Twv(pN,Ew)),A=H.next().value,H=H.next().value,pN=A,Ew=H)}};
Twv=function(A,H){H=~H;A?A=~A+1:H+=1;return[A,H]};
AV=function(A){return Array.prototype.slice.call(A)};
_.HR=function(A,H){throw Error(H===void 0?"unexpected value "+A+"!":H);};
_.sB=function(A){if(A!=null&&typeof A!=="number")throw Error("M`"+typeof A+"`"+A);return A};
_.k1=function(A){if(A==null||typeof A==="number")return A;if(A==="NaN"||A==="Infinity"||A==="-Infinity")return Number(A)};
Ywv=function(A){if(A!=null&&typeof A!=="boolean")throw Error("N`"+_.dL(A)+"`"+A);return A};
_.PJm=function(A){if(A==null||typeof A==="boolean")return A;if(typeof A==="number")return!!A};
_.qi=function(A){switch(typeof A){case "bigint":return!0;case "number":return WR(A);case "string":return G0W.test(A);default:return!1}};
_.rL=function(A){if(!WR(A))throw _.sw("enum");return A|0};
_.uQ=function(A){return A==null?A:WR(A)?A|0:void 0};
FGI=function(A){if(typeof A!=="number")throw _.sw("int32");if(!WR(A))throw _.sw("int32");return A|0};
_.BR=function(A){return A==null?A:FGI(A)};
_.eI=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return WR(A)?A|0:void 0};
_.XjI=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return WR(A)?A>>>0:void 0};
KGl=function(A){var H=void 0;H!=null||(H=_.hV?1024:0);if(!_.qi(A))throw _.sw("int64");var k=typeof A;switch(H){case 512:switch(k){case "string":return Te(A);case "bigint":return String(mB(64,A));default:return DQm(A)}case 1024:switch(k){case "string":return SwX(A);case "bigint":return _.cj(mB(64,A));default:return CJA(A)}case 0:switch(k){case "string":return Te(A);case "bigint":return _.cj(mB(64,A));default:return JV(A)}default:return _.HR(H,"Unknown format requested type for int64")}};
gL=function(A){return A==null?A:KGl(A)};
a1N=function(A){var H=A.length;if(A[0]==="-"?H<20||H===20&&A<="-9223372036854775808":H<19||H===19&&A<="9223372036854775807")return A;fN(A);return _.Z1(pN,Ew)};
ckW=function(A){if(A[0]==="-")var H=!1;else H=A.length,H=H<20?!0:H===20&&A<="18446744073709551615";if(H)return A;fN(A);return _.tk(pN,Ew)};
JV=function(A){A=bQ(A);vR(A)||(Uw(A),A=MQ(pN,Ew));return A};
_.pjV=function(A){A=bQ(A);A>=0&&vR(A)||(Uw(A),A=gZI(pN,Ew));return A};
DQm=function(A){A=bQ(A);vR(A)?A=String(A):(Uw(A),A=_.Z1(pN,Ew));return A};
_.QpN=function(A){A=bQ(A);A>=0&&vR(A)?A=String(A):(Uw(A),A=_.tk(pN,Ew));return A};
Te=function(A){var H=bQ(Number(A));if(vR(H))return String(H);H=A.indexOf(".");H!==-1&&(A=A.substring(0,H));return a1N(A)};
SwX=function(A){var H=bQ(Number(A));if(vR(H))return _.cj(H);H=A.indexOf(".");H!==-1&&(A=A.substring(0,H));return dw()?_.cj(mB(64,BigInt(A))):_.cj(a1N(A))};
CJA=function(A){return vR(A)?_.cj(JV(A)):_.cj(DQm(A))};
_.VAr=function(A){return vR(A)?_.cj(_.pjV(A)):_.cj(_.QpN(A))};
_.EZW=function(A){var H=bQ(Number(A));if(vR(H)&&H>=0)return String(H);H=A.indexOf(".");H!==-1&&(A=A.substring(0,H));return ckW(A)};
_.UQv=function(A){var H=bQ(Number(A));if(vR(H)&&H>=0)return _.cj(H);H=A.indexOf(".");H!==-1&&(A=A.substring(0,H));return dw()?_.cj((0,_.y_)(64,BigInt(A))):_.cj(ckW(A))};
tAb=function(A){if(A==null)return A;if(typeof A==="bigint")return l18(A)?A=Number(A):(A=mB(64,A),A=l18(A)?Number(A):String(A)),A;if(_.qi(A))return typeof A==="number"?JV(A):Te(A)};
NwW=function(A,H){H=H===void 0?!1:H;var k=typeof A;if(A==null)return A;if(k==="bigint")return String(mB(64,A));if(_.qi(A))return k==="string"?Te(A):H?DQm(A):JV(A)};
MAm=function(A){var H=typeof A;if(A==null)return A;if(H==="bigint")return _.cj(mB(64,A));if(_.qi(A))return H==="string"?SwX(A):CJA(A)};
nZX=function(A){var H=typeof A;if(A==null)return A;if(H==="bigint")return _.cj((0,_.y_)(64,A));if(_.qi(A))return H==="string"?_.UQv(A):_.VAr(A)};
ZNN=function(A){if(A==null)return A;var H=typeof A;if(H==="bigint")return String(mB(64,A));if(_.qi(A)){if(H==="string")return Te(A);if(H==="number")return JV(A)}};
f1r=function(A){if(A==null)return A;var H=typeof A;if(H==="bigint")return String((0,_.y_)(64,A));if(_.qi(A)){if(H==="string")return _.EZW(A);if(H==="number")return _.pjV(A)}};
_.I_=function(A){if(typeof A!=="string")throw Error();return A};
Ge=function(A){if(A!=null&&typeof A!=="string")throw Error();return A};
_.FG=function(A){return A==null||typeof A==="string"?A:void 0};
$QI=function(A,H,k,d){if(A!=null&&A[D3]===SI)return A;if(!Array.isArray(A))return k?d&2?H[wjm]||(H[wjm]=oZX(H)):new H:void 0;k=A[_.qQ]|0;d=k|d&32|d&2;d!==k&&iJ(A,d);return new H(A)};
oZX=function(A){A=new A;bJ(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
AVf=function(A,H,k){A=H?FGI(A):_.eI(A);return A==null?k?0:void 0:A|0};
HLC=function(A){return A};
s_8=function(A){return A};
diN=function(A,H,k,d,W,z){A=$QI(A,d,k,z);W&&(A=keI(A));return A};
WBW=function(A){return[A,this.get(A)]};
rVC=function(){return zM8||(zM8=new CL(bJ([]),void 0,void 0,void 0,qBA))};
uGf=function(A){var H=cR(pL);return H?A[H]:void 0};
xim=function(A,H){var k=k===void 0?!1:k;if(cR(BLV)&&cR(pL)&&void 0===BLV){var d=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=d[pL];if(!W)return;if(W=W.reviveUnknownFields)try{W(d,H,eMI);return}catch(z){dI(z)}}k&&(A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(k=cR(pL))&&k in A&&(A=A[k])&&delete A[H])};
hMv=function(A,H){var k=cR(pL),d;z0&&k&&((d=A[k])==null?void 0:d[H])!=null&&o8I(iLI,3)};
RMf=function(A,H){H<100||o8I(OLl,1)};
bLr=function(A,H,k,d){var W=d!==void 0;d=!!d;var z=cR(pL),u;!W&&z0&&z&&(u=A[z])&&TLC(u,RMf);z=[];var B=A.length;u=4294967295;var h=!1,O=!!(H&64),T=O?H&128?0:-1:void 0;if(!(H&1)){var m=B&&A[B-1];m!=null&&typeof m==="object"&&m.constructor===Object?(B--,u=B):m=void 0;if(O&&!(H&128)&&!W){h=!0;var J;u=((J=miQ)!=null?J:HLC)(u-T,T,A,m,void 0)+T}}H=void 0;for(J=0;J<B;J++){var g=A[J];if(g!=null&&(g=k(g,d))!=null)if(O&&J>=u){var v=J-T,y=void 0;((y=H)!=null?y:H={})[v]=g}else z[J]=g}if(m)for(var X in m)B=m[X],
B!=null&&(B=k(B,d))!=null&&(J=+X,g=void 0,O&&!Number.isNaN(J)&&(g=J+T)<u?z[g]=B:(J=void 0,((J=H)!=null?J:H={})[X]=B));H&&(h?z.push(H):z[u]=H);W&&cR(pL)&&(A=uGf(A))&&A instanceof JVC&&(z[pL]=g1Q(A));return z};
v1r=function(A){A[0]=LBN(A[0]);A[1]=LBN(A[1]);return A};
LBN=function(A){switch(typeof A){case "number":return Number.isFinite(A)?A:""+A;case "bigint":return l18(A)?Number(A):""+A;case "boolean":return A?1:0;case "object":if(Array.isArray(A)){var H=A[_.qQ]|0;return A.length===0&&H&1?void 0:bLr(A,H,LBN)}if(A!=null&&A[D3]===SI)return yVl(A);if(A instanceof FA){H=A.JSC$9133_value_;if(H==null)A="";else if(typeof H==="string")A=H;else{if(MNv){for(var k="",d=0,W=H.length-10240;d<W;)k+=String.fromCharCode.apply(null,H.subarray(d,d+=10240));k+=String.fromCharCode.apply(null,
d?H.subarray(d):H);H=btoa(k)}else H=_.ob(H);A=A.JSC$9133_value_=H}return A}if(A instanceof CL)return A=A.size!==0?j_N(A,v1r):void 0,A;return}return A};
Q_=function(A,H){if(H){miQ=H==null||H===HLC||H[I3I]!==YBv?HLC:H;try{return yVl(A)}finally{miQ=void 0}}return yVl(A)};
yVl=function(A){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return bLr(A,A[_.qQ]|0,LBN)};
FBN=function(A){switch(typeof A){case "boolean":return PQI||(PQI=[0,void 0,!0]);case "number":return A>0?void 0:A===0?Ge8||(Ge8=[0,void 0]):[-A,void 0];case "string":return[0,A];case "object":return A}};
EB=function(A,H){return XRr(A,H[0],H[1])};
_.UB=function(A,H,k){return XRr(A,H,k,2048)};
XRr=function(A,H,k,d){d=d===void 0?0:d;if(A==null){var W=32;k?(A=[k],W|=128):A=[];H&&(W=W&-16760833|(H&1023)<<14)}else{if(!Array.isArray(A))throw Error("P");W=A[_.qQ]|0;if(DiI&&1&W)throw Error("Q");2048&W&&!(2&W)&&SB8();if(W&256)throw Error("R");if(W&64)return(W|d)!==W&&iJ(A,W|d),A;if(k&&(W|=128,k!==A[0]))throw Error("S");a:{k=A;W|=64;var z=k.length;if(z){var u=z-1,B=k[u];if(B!=null&&typeof B==="object"&&B.constructor===Object){H=W&128?0:-1;u-=H;if(u>=1024)throw Error("U");for(var h in B)z=+h,z<u&&
(k[z+H]=B[h],delete B[h]);W=W&-16760833|(u&1023)<<14;break a}}if(H){h=Math.max(H,z-(W&128?0:-1));if(h>1024)throw Error("V");W=W&-16760833|(h&1023)<<14}}}iJ(A,W|64|d);return A};
SB8=function(){if(DiI)throw Error("T");o8I(CQb,5)};
cVI=function(A,H){if(typeof A!=="object")return A;if(Array.isArray(A)){var k=A[_.qQ]|0;return A.length===0&&k&1?void 0:KBm(A,k,H)}if(A!=null&&A[D3]===SI)return a3C(A);if(A instanceof CL){H=A.arrayState;if(H&2)return A;if(!A.size)return;k=bJ(j_N(A));if(A.valueCtor)for(A=0;A<k.length;A++){var d=k[A],W=d[1];W==null||typeof W!=="object"?W=void 0:W!=null&&W[D3]===SI?W=a3C(W):Array.isArray(W)?W=KBm(W,W[_.qQ]|0,!!(H&32)):W=void 0;d[1]=W}return k}if(A instanceof FA)return A};
KBm=function(A,H,k){if(H&2)return A;!k||4096&H||16&H?A=lQ(A,H,!1,k&&!(H&16)):(xZ(A,34),H&4&&Object.freeze(A));return A};
pRl=function(A,H,k){A=new A.constructor(H);k&&(A.copyOnWrite=YZ);A.noLegacyNull=YZ;return A};
a3C=function(A){var H=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=H[_.qQ]|0;return Pj(A,k)?A:Q_Q(A,H,k)?pRl(A,H):lQ(H,k)};
lQ=function(A,H,k,d){d!=null||(d=!!(34&H));A=bLr(A,H,cVI,d);d=32;k&&(d|=2);H=H&16769217|d;iJ(A,H);return A};
keI=function(A){var H=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=H[_.qQ]|0;return Pj(A,k)?Q_Q(A,H,k)?pRl(A,H,!0):new A.constructor(lQ(H,k,!1)):A};
tV=function(A){if(A.copyOnWrite!==YZ)return!1;var H=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=lQ(H,H[_.qQ]|0);xZ(H,2048);A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=H;A.copyOnWrite=void 0;A.noLegacyNull=void 0;return!0};
Mi=function(A){if(!tV(A)&&Pj(A,A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.qQ]|0))throw Error();};
nL=function(A,H){H===void 0&&(H=A[_.qQ]|0);H&32&&!(H&4096)&&iJ(A,H|4096)};
Q_Q=function(A,H,k){return k&2?!0:k&32&&!(k&4096)?(iJ(H,k|2),A.copyOnWrite=YZ,!0):!1};
fL=function(A,H,k,d,W){var z=k+(W?0:-1),u=A.length-1;if(u>=1+(W?0:-1)&&z>=u){var B=A[u];if(B!=null&&typeof B==="object"&&B.constructor===Object)return B[k]=d,H}if(z<=u)return A[z]=d,H;if(d!==void 0){var h;u=((h=H)!=null?h:H=A[_.qQ]|0)>>14&1023||536870912;k>=u?d!=null&&(z={},A[u+(W?0:-1)]=(z[k]=d,z)):A[z]=d}return H};
_.Hz=function(A,H,k,d,W){var z=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=z[_.qQ]|0;d=Pj(A,u)?1:d;W=!!W||d===3;d===2&&tV(A)&&(z=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=z[_.qQ]|0);A=VIW(z,H);var B=A===wL?7:A[_.qQ]|0,h=E1W(B,u);var O=4&h?!1:!0;if(O){4&h&&(A=AV(A),B=0,h=AG(h,u),u=fL(z,u,H,A));for(var T=0,m=0;T<A.length;T++){var J=k(A[T]);J!=null&&(A[m++]=J)}m<T&&(A.length=m);k=(h|4)&-513;h=k&=-1025;h&=-4097}h!==B&&(iJ(A,h),2&h&&Object.freeze(A));return A=UiC(A,h,z,
u,H,d,O,W)};
UiC=function(A,H,k,d,W,z,u,B){var h=H;z===1||(z!==4?0:2&H||!(16&H)&&32&d)?sW(H)||(H|=!A.length||u&&!(4096&H)||32&d&&!(4096&H||16&H)?2:256,H!==h&&iJ(A,H),Object.freeze(A)):(z===2&&sW(H)&&(A=AV(A),h=0,H=AG(H,d),d=fL(k,d,W,A)),sW(H)||(B||(H|=16),H!==h&&iJ(A,H)));2&H||!(4096&H||16&H)||nL(k,d);return A};
VIW=function(A,H,k){A=kp(A,H,k);return Array.isArray(A)?A:wL};
E1W=function(A,H){2&H&&(A|=2);return A|1};
sW=function(A){return!!(2&A)&&!!(4&A)||!!(256&A)};
l38=function(A){return _.SA(A,!0)};
tIl=function(A){A=AV(A);for(var H=0;H<A.length;H++){var k=A[H]=AV(A[H]);Array.isArray(k[1])&&(k[1]=bJ(k[1]))}return LN(A)};
_.NLl=function(A,H,k,d,W){var z=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=z[_.qQ]|0;var B=Pj(A,u);a:{!B&&tV(A)&&(z=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u=z[_.qQ]|0);var h=kp(z,H);A=!1;if(h==null){if(B){H=rVC();break a}h=[]}else if(h.constructor===CL)if(h.arrayState&2&&!B)h=j_N(h);else{H=h;break a}else Array.isArray(h)?A=!!((h[_.qQ]|0)&2):h=[];if(B){if(!h.length){H=rVC();break a}A||(A=!0,bJ(h))}else A&&(A=!1,LN(h),h=tIl(h));!A&&u&32&&spN(h);d=new CL(h,k,d,W);u=
fL(z,u,H,d);A||nL(z,u);H=d}!B&&k&&(H.callToMutableOnAccess=!0);return H};
_.dO=function(A,H,k,d){Mi(A);var W=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=W[_.qQ]|0;if(k==null)return fL(W,z,H),A;var u=k===wL?7:k[_.qQ]|0,B=u,h=sW(u),O=h||Object.isFrozen(k);h||(u=0);O||(k=AV(k),B=0,u=AG(u,z),O=!1);u|=5;var T;h=(T=HNV(u))!=null?T:_.hV?1024:0;u|=h;for(T=0;T<k.length;T++){var m=k[T],J=d(m,h);Object.is(m,J)||(O&&(k=AV(k),B=0,u=AG(u,z),O=!1),k[T]=J)}u!==B&&(O&&(k=AV(k),u=AG(u,z)),iJ(k,u));fL(W,z,H,k);return A};
_.zw=function(A,H,k,d,W){Mi(A);var z=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;fL(z,z[_.qQ]|0,H,(d==="0"?Number(k)===0:k===d)?void 0:k,W);return A};
_.qR=function(A,H,k){if(H&2)throw Error();var d=KN(H),W=VIW(A,k,d),z=W===wL?7:W[_.qQ]|0,u=E1W(z,H);if(2&u||sW(u)||16&u)u===z||sW(u)||iJ(W,u),W=AV(W),z=0,u=AG(u,H),fL(A,H,k,W,d);u&=-13;u!==z&&iJ(W,u);return W};
MII=function(A){if(z0){var H;return(H=A[um])!=null?H:A[um]=new Map}if(um in A)return A[um];H=new Map;Object.defineProperty(A,um,{value:H});return H};
ZLI=function(A,H,k,d,W){var z=MII(A),u=n1V(z,A,H,k,W);u!==d&&(u&&(H=fL(A,H,u,void 0,W)),z.set(k,d));return H};
n1V=function(A,H,k,d,W){var z=A.get(d);if(z!=null)return z;for(var u=z=0;u<d.length;u++){var B=d[u];kp(H,B,W)!=null&&(z!==0&&(k=fL(H,k,z,void 0,W)),z=B)}A.set(d,z);return z};
f3C=function(A,H,k,d,W){var z=!1;d=kp(A,d,W,function(u){var B=$QI(u,k,!1,H);z=B!==u&&B!=null;return B});
if(d!=null)return z&&!Pj(d)&&nL(A,H),d};
wRm=function(A,H,k,d,W,z,u,B){var h=Pj(A,k);z=h?1:z;u=!!u||z===3;h=B&&!h;(z===2||h)&&tV(A)&&(H=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=H[_.qQ]|0);A=VIW(H,W);var O=A===wL?7:A[_.qQ]|0,T=E1W(O,k);if(B=!(4&T)){var m=A,J=k,g=!!(2&T);g&&(J|=2);for(var v=!g,y=!0,X=0,D=0;X<m.length;X++){var K=$QI(m[X],d,!1,J);if(K instanceof d){if(!g){var N=Pj(K);v&&(v=!N);y&&(y=N)}m[D++]=K}}D<X&&(m.length=D);T|=4;T=y?T&-4097:T|4096;T=v?T|8:T&-9}T!==O&&(iJ(A,T),2&T&&Object.freeze(A));if(h&&!(8&T||!A.length&&
(z===1||(z!==4?0:2&T||!(16&T)&&32&k)))){sW(T)&&(A=AV(A),T=AG(T,k),k=fL(H,k,W,A));d=A;h=T;for(O=0;O<d.length;O++)m=d[O],T=keI(m),m!==T&&(d[O]=T);h|=8;T=h=d.length?h|4096:h&-4097;iJ(A,T)}return A=UiC(A,T,H,k,W,z,B,u)};
o1W=function(A){A==null&&(A=void 0);return A};
AG=function(A,H){return A=(2&H?A|2:A&-3)&-273};
_.$iI=function(A,H,k,d,W){Mi(A);H=_.Hz(A,H,W,2,!0);var z;W=(z=HNV(H===wL?7:H[_.qQ]|0))!=null?z:_.hV?1024:0;H.push(k(d,W));return A};
AGX=function(A,H,k,d,W,z,u){Mi(A);var B=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=wRm(A,B,B[_.qQ]|0,k,H,2,!0);if(z&&u)W!=null||(W=A.length-1),dQV(A,W),A.splice(W,z),A.length||(A[_.qQ]&=-4097);else{if(z){if(typeof W!=="number"||W<0||W>A.length)throw Error();}else d=d!=null?d:new k;W!=void 0?A.splice(W,z,d):A.push(d);W=k=A===wL?7:A[_.qQ]|0;(d=Pj(d))?(k&=-9,A.length===1&&(k&=-4097)):k|=4096;k!==W&&iJ(A,k);d||nL(B)}};
s7I=function(A,H){if(typeof A==="string")return new Bz(ZlA(A),H);if(Array.isArray(A))return new Bz(new Uint8Array(A),H);if(A.constructor===Uint8Array)return new Bz(A,!1);if(A.constructor===ArrayBuffer)return A=new Uint8Array(A),new Bz(A,!1);if(A.constructor===FA)return H=HxI(A)||new Uint8Array(0),new Bz(H,!0,A);if(A instanceof Uint8Array)return A=A.constructor===Uint8Array?A:new Uint8Array(A.buffer,A.byteOffset,A.byteLength),new Bz(A,!1);throw Error();};
dRW=function(A){switch(typeof A){case "string":kwC(A)}};
zIv=function(A){switch(typeof A){case "string":W3V(A)}};
en=function(){var A=function(){throw Error();};
Object.setPrototypeOf(A,A.prototype);return A};
rG8=function(A,H){var k=k===void 0?qWN:k;return new xp(A,H,k)};
eIl=function(A,H,k,d,W){ufm(A,k,BOI(H,d),W)};
hG=function(A,H,k,d){var W=d[A];if(W)return W;W={};W.binaryFields=d;W.messageMetadata=FBN(d[0]);var z=d[1],u=1;z&&z.constructor===Object&&(W.extensions=z,z=d[++u],typeof z==="function"&&(W.isMessageSet=!0,xRr!=null||(xRr=z),ixI!=null||(ixI=d[u+1]),z=d[u+=2]));for(var B={};z&&hII(z);){for(var h=0;h<z.length;h++)B[z[h]]=z;z=d[++u]}for(h=1;z!==void 0;){typeof z==="number"&&(h+=z,z=d[++u]);var O=void 0;if(z instanceof xp)var T=z;else T=Oxf,u--;z=void 0;if((z=T)==null?0:z.$$isMsg){z=d[++u];O=d;var m=u;
typeof z==="function"&&(z=z(),O[m]=z);O=z}z=d[++u];m=h+1;typeof z==="number"&&z<0&&(m-=z,z=d[++u]);for(;h<m;h++){var J=B[h];O?k(W,h,T,O,J):H(W,h,T,J)}}return d[A]=W};
hII=function(A){return Array.isArray(A)&&!!A.length&&typeof A[0]==="number"&&A[0]>0};
TOC=function(A){return Array.isArray(A)?A[0]instanceof xp?A:[RIm,A]:[A,void 0]};
BOI=function(A,H){if(A instanceof _.OW)return A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(A))return EB(A,H)};
mRI=function(A,H,k,d){var W=k.$$binaryReaderFn;A[H]=d?function(z,u,B){return W(z,u,B,d)}:W};
gpC=function(A,H,k,d,W){var z=k.$$binaryReaderFn,u,B;A[H]=function(h,O,T){return z(h,O,T,B||(B=hG(JGI,mRI,gpC,d).messageMetadata),u||(u=bxr(d)),W)}};
bxr=function(A){var H=A[L3I];if(H!=null)return H;var k=hG(JGI,mRI,gpC,A);H=k.isMessageSet?function(d,W){return xRr(d,W,k)}:function(d,W){for(;vpW(W)&&W.nextWireType_!=4;){var z=W.nextField_,u=k[z];
if(u==null){var B=k.extensions;B&&(B=B[z])&&(B=yGb(B),B!=null&&(u=k[z]=B))}if(u==null||!u(W,d,z)){B=W;u=B.fieldCursor_;j7W(B);if(B.discardUnknownFields)var h=void 0;else{var O=B.decoder_.cursor_-u;B.decoder_.cursor_=u;h=IyC(B.decoder_,O)}O=B=u=void 0;var T=d;h&&((u=(B=(O=T[pL])!=null?O:T[pL]=new JVC)[z])!=null?u:B[z]=[]).push(h)}}if(d=uGf(d))d.reviveUnknownFields=k.binaryFields[YWb];return!0};
A[L3I]=H;A[YWb]=PmN.bind(A);return H};
PmN=function(A,H,k,d){var W=this[JGI],z=this[L3I],u=EB(void 0,W.messageMetadata),B=uGf(A);if(B){var h=!1,O=W.extensions;if(O){W=function(v,y,X){if(X.length!==0)if(O[y])for(v=_.r(X),y=v.next();!y.done;y=v.next()){y=GwN(y.value);try{h=!0,z(u,y)}finally{y.free()}}else d==null||d(A,y,X)};
if(H==null)TLC(B,W);else if(B!=null){var T=B[H];T&&W(B,H,T)}if(h){var m=A[_.qQ]|0;if(m&2&&m&2048&&(k==null||!k.reviveIntoImmutable))throw Error();var J=KN(m),g=function(v,y){if(kp(A,v,J)!=null)switch(k==null?void 0:k.resolutionBehavior){case 1:return;default:throw Error();}y!=null&&(m=fL(A,m,v,y,J));delete B[v]};
H==null?WGA(u,u[_.qQ]|0,function(v,y){g(v,y)}):g(H,kp(u,H,J))}}}};
yGb=function(A){A=TOC(A);var H=A[0].$$binaryReaderFn;if(A=A[1]){var k=bxr(A),d=hG(JGI,mRI,gpC,A).messageMetadata;return function(W,z,u){return H(W,z,u,d,k)}}return H};
F3f=function(A,H,k){A[H]=k.$$binaryWriterFn};
DRV=function(A,H,k,d){var W,z,u=k.$$binaryWriterFn;A[H]=function(B,h,O){return u(B,h,O,z||(z=hG(XzX,F3f,DRV,d).messageMetadata),W||(W=SWX(d)))}};
SWX=function(A){var H=A[Cmv];if(!H){var k=hG(XzX,F3f,DRV,A);H=function(d,W){return K3N(d,W,k)};
A[Cmv]=H}return H};
K3N=function(A,H,k){WGA(A,A[_.qQ]|0,function(d,W){if(W!=null){var z=ayV(k,d);z?z(H,W,d):d<500||o8I(cGm,3)}});
(A=uGf(A))&&TLC(A,function(d,W,z){R7(H,H.encoder_.end());for(d=0;d<z.length;d++)R7(H,HxI(z[d])||new Uint8Array(0))})};
ayV=function(A,H){var k=A[H];if(k)return k;if(k=A.extensions)if(k=k[H]){k=TOC(k);var d=k[0].$$binaryWriterFn;if(k=k[1]){var W=SWX(k),z=hG(XzX,F3f,DRV,k).messageMetadata;k=A.isMessageSet?ixI(z,W):function(u,B,h){return d(u,B,h,z,W)}}else k=d;
return A[H]=k}};
_.pzX=function(A,H,k){if(Array.isArray(H)){var d=H[_.qQ]|0;if(d&4)return H;for(var W=0,z=0;W<H.length;W++){var u=A(H[W]);u!=null&&(H[z++]=u)}z<W&&(H.length=z);A=d|1;k&&(A=(A|4)&-1537);A!==d&&iJ(H,A);k&&A&2&&Object.freeze(H);return H}};
_.Tw=function(A,H,k){return new xp(A,H,k)};
_.Q78=function(A,H,k){return new xp(A,H,k)};
_.m3=function(A,H,k){fL(A,A[_.qQ]|0,H,k,KN(A[_.qQ]|0))};
Vnv=function(A,H,k){H=_.k1(H);H!=null&&(_.JG(A,k,1),A=A.encoder_,k=mQr||(mQr=new DataView(new ArrayBuffer(8))),k.setFloat64(0,+H,!0),pN=k.getUint32(0,!0),Ew=k.getUint32(4,!0),_.gO(A,pN),_.gO(A,Ew))};
Epm=function(A,H,k){H=_.k1(H);H!=null&&(_.JG(A,k,5),A=A.encoder_,Jkb(H),_.gO(A,pN))};
_.Lx=function(A,H,k){H=ZNN(H);if(H!=null&&(dRW(H),H!=null))switch(_.JG(A,k,0),typeof H){case "number":A=A.encoder_;Uw(H);bm(A,pN,Ew);break;case "bigint":k=BigInt.asUintN(64,H);k=new URV(Number(k&BigInt(4294967295)),Number(k>>BigInt(32)));bm(A.encoder_,k.JSC$9176_lo,k.JSC$9176_hi);break;default:k=kwC(H),bm(A.encoder_,k.JSC$9176_lo,k.JSC$9176_hi)}};
tnI=function(A,H,k){H=f1r(H);if(H!=null&&(zIv(H),H!=null))switch(_.JG(A,k,0),typeof H){case "number":A=A.encoder_;Uw(H);bm(A,pN,Ew);break;case "bigint":k=ly8(H);bm(A.encoder_,k.JSC$9174_lo,k.JSC$9174_hi);break;default:k=W3V(H),bm(A.encoder_,k.JSC$9174_lo,k.JSC$9174_hi)}};
MnX=function(A,H,k){H=_.eI(H);H!=null&&H!=null&&(_.JG(A,k,0),_.NO8(A.encoder_,H))};
_.ZxW=function(A,H,k){np8(A,k,f1r(H))};
fyN=function(A,H,k){H=_.PJm(H);H!=null&&(_.JG(A,k,0),A.encoder_.JSC$9178_buffer_.push(H?1:0))};
opN=function(A,H,k){H=_.FG(H);H!=null&&wzI(A,k,xvN(H))};
$RA=function(A,H,k,d,W){ufm(A,k,BOI(H,d),W)};
_.A2I=function(A,H,k){H=H==null||typeof H=="string"||H instanceof FA?H:void 0;H!=null&&wzI(A,k,s7I(H,!0).buffer)};
HVI=function(A,H,k){H=_.XjI(H);H!=null&&H!=null&&(_.JG(A,k,0),yB(A.encoder_,H))};
_.s4l=function(A,H,k){H=_.eI(H);H!=null&&(H=parseInt(H,10),_.JG(A,k,0),_.NO8(A.encoder_,H))};
kMm=function(A,H,k){if(A.nextWireType_!==0)return!1;_.m3(H,k,_.jn(A.decoder_,LGQ));return!0};
_.dXm=function(A,H,k,d){if(A.nextWireType_!==0)return!1;_.I7(H,k,d,_.jn(A.decoder_,LGQ));return!0};
WJr=function(A,H,k){if(A.nextWireType_!==0)return!1;_.m3(H,k,_.jn(A.decoder_,bNN));return!0};
_.qNV=function(A,H,k){if(A.nextWireType_!==1)return!1;_.m3(H,k,ztI(A.decoder_));return!0};
_.Pz=function(A,H){return function(k,d){var W={treatNewDataAsImmutable:!0};d&&Object.assign(W,d);k=GwN(k,void 0,void 0,W);try{var z=new A,u=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;bxr(H)(u,k);var B=z}finally{k.free()}return B}};
_.Ff=function(A){return function(H){return r2I(H,A)}};
u9N=function(A){return function(){return r2I(this,A)}};
_.BUI=function(A){return ap(function(H){return H instanceof A&&!Pj(H)})};
_.Xf=function(A){return function(H){return et8(A,H)}};
OVI=function(A,H){return xXb({child:A,origin:H||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:iV8,getPayloadCase:function(k){return k.getPayloadCase()},
createInitMessage:function(k){var d=new Dy,W=new htA;k=_.Sn(W,1,k);return _.Cx(d,5,Kx,k)}})};
a7=function(A){return{valueOf:A}.valueOf()};
TUN=function(){var A=null;if(!RtX)return A;try{var H=function(k){return k};
A=RtX.createPolicy("goog#html",{createHTML:H,createScript:H,createScriptURL:H})}catch(k){}return A};
J2C=function(){mXf===void 0&&(mXf=TUN());return mXf};
_.px=function(A){var H=J2C();A=H?H.createScriptURL(A):A;return new cz(A)};
_.QB=function(A){if(A instanceof cz)return A.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("$");};
_.VB=function(A){return Object.isFrozen(A)&&Object.isFrozen(A.raw)};
g7I=function(A){return A.toString().indexOf("`")===-1};
lm=function(A){return new _.UW(bVv,A)};
tG=function(A){return A instanceof _.UW};
_.NR=function(A){if(tG(A))return A.privateDoNotAccessOrElseWrappedUrl;throw Error("$");};
MR=function(A){return new LJm(function(H){return H.substr(0,A.length+1).toLowerCase()===A+":"})};
_.nx=function(A,H){H=H===void 0?v7N:H;if(tG(A))return A;for(var k=0;k<H.length;++k){var d=H[k];if(d instanceof LJm&&d.isValid(A))return lm(A)}};
_.fx=function(A,H){H=H===void 0?v7N:H;return _.nx(A,H)||Zy};
_.wO=function(A){var H=window;if(typeof MediaSource!=="undefined"&&A instanceof MediaSource||typeof H.ManagedMediaSource!=="undefined"&&A instanceof H.ManagedMediaSource)return lm(URL.createObjectURL(A));H=A.type;H.toLowerCase()==="application/octet-stream"?H=!0:(H=H.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),H=(H==null?void 0:H.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(H[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(H[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(H[1])||/^font\/[\w-]+$/i.test(H[1])));if(!H)throw Error("$");return lm(URL.createObjectURL(A))};
_.y2f=function(A){for(var H=_.o7.apply(1,arguments),k=[A[0]],d=0;d<H.length;d++)k.push(String(H[d])),k.push(A[d+1]);return lm(k.join(""))};
_.IK8=function(A){if(!j4V){a:{var H=document.createElement("a");try{H.href=A}catch(k){A=void 0;break a}A=H.protocol;A=A===":"||A===""?"https:":A}return A}try{H=new URL(A)}catch(k){return"https:"}return H.protocol};
_.$p=function(A){A instanceof _.UW?A=_.NR(A):A=YNV.test(A)?A:void 0;return A};
A2=function(A,H){H=_.$p(H);H!==void 0&&(A.href=H)};
k7=function(A){var H=J2C();A=H?H.createHTML(A):A;return new HX(A)};
dU=function(A){if(A instanceof HX)return A.privateDoNotAccessOrElseWrappedHtml;throw Error("$");};
_.zM=function(A,H){A.src=_.QB(H).toString()};
P1I=function(A,H){A.setAttribute("sandbox","");for(var k=0;k<H.length;k++)A.sandbox.supports&&!A.sandbox.supports(H[k])||A.sandbox.add(H[k])};
_.qX=function(A,H,k){A.removeAttribute("srcdoc");switch(H){case 0:if(k instanceof cz)throw new GMl("TrustedResourceUrl",0);P1I(A,[]);H=_.$p(k);H!==void 0&&(A.src=H);break;case 1:if(!(k instanceof cz))throw new GMl(typeof k,1);P1I(A,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.zM(A,k);break;case 2:if(k instanceof cz)throw new GMl("TrustedResourceUrl",2);P1I(A,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
H=_.$p(k);H!==void 0&&(A.src=H);break;default:_.HR(H)}};
_.rU=function(A,H,k,d){H=_.$p(H);return H!==void 0?A.open(H,k,d):null};
_.u1=function(A){A=A===void 0?document:A;var H,k;A=(k=(H=A).querySelector)==null?void 0:k.call(H,"script[nonce]");return A==null?"":A.nonce||A.getAttribute("nonce")||""};
_.e_=function(A){var H=J2C();A=H?H.createScript(A):A;return new _.BX(A)};
x7=function(A){if(A instanceof _.BX)return A.privateDoNotAccessOrElseWrappedScript;throw Error("$");};
FJC=function(A){var H=_.u1(A.ownerDocument);H&&A.setAttribute("nonce",H)};
_.i1=function(A,H){A.textContent=x7(H);FJC(A)};
_.h2=function(A,H){A.src=_.QB(H);FJC(A)};
_.ON=function(A,H){if(A.nodeType===1&&/^(script|style)$/i.test(A.tagName))throw Error("$");A.innerHTML=dU(H)};
_.R4=function(A,H,k,d){if(A.length===0)throw Error("$");A=A.map(function(z){if(z instanceof XXX)z=z.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("$");return z});
var W=k.toLowerCase();if(A.every(function(z){return W.indexOf(z)!==0}))throw Error("ba`"+k);
H.setAttribute(k,d)};
_.TM=function(A,H,k){if(H instanceof cz)A.href=_.QB(H).toString(),A.rel=k;else{if(DX8.indexOf(k)===-1)throw Error("ca`"+k);H=_.$p(H);H!==void 0&&(A.href=H,A.rel=k)}};
SNI=function(A){if(A instanceof mJ)return A.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("$");};
_.C1V=function(A,H){H=_.$p(H);H!==void 0&&(A.href=H)};
KJI=function(A){return new Worker(_.QB(A),void 0)};
aKN=function(A){return _.px(A)};
c2N=function(A,H){A&&(H=A.indexOf(H),0<=H&&A.splice(H,1))};
J2=function(A){return typeof A==="function"};
pXI=function(A){return A instanceof LV||A&&"closed"in A&&J2(A.remove)&&J2(A.add)&&J2(A.unsubscribe)};
vX=function(){};
yA=function(A){Q4I(function(){throw A;})};
j_=function(A){return A};
I4=function(){return V_8(_.o7.apply(0,arguments))};
V_8=function(A){return A.length===0?j_:A.length===1?A[0]:function(H){return A.reduce(function(k,d){return d(k)},H)}};
E7b=function(A){var H;return(H=A!=null?A:void 0)!=null?H:Promise};
UXV=function(A,H){return new PX(function(k){var d=0;return H.schedule(function(){d===A.length?k.complete():(k.next(A[d++]),k.closed||this.schedule())})})};
lKI=function(A,H){if(!A)throw Error("da");return new PX(function(k){var d=new LV;d.add(H.schedule(function(){var W=A[Symbol.asyncIterator]();d.add(H.schedule(function(){var z=this;W.next().then(function(u){u.done?k.complete():(k.next(u.value),z.schedule())})}))}));
return d})};
t_X=function(A,H,k){H=H.schedule(function(){try{k.call(this)}catch(d){A.error(d)}},0);
A.add(H)};
M_C=function(A,H){return new PX(function(k){var d;k.add(H.schedule(function(){d=A[NUN]();t_X(k,H,function(){var W=d.next(),z=W.value;W.done?k.complete():(k.next(z),this.schedule())})}));
return function(){var W;return J2((W=d)==null?void 0:W.return)&&d.return()}})};
n7r=function(A,H){return new PX(function(k){var d=new LV;d.add(H.schedule(function(){var W=A[GM]();d.add(W.subscribe({next:function(z){d.add(H.schedule(function(){return k.next(z)}))},
error:function(z){d.add(H.schedule(function(){return k.error(z)}))},
complete:function(){d.add(H.schedule(function(){return k.complete()}))}}))}));
return d})};
ZVA=function(A,H){return new PX(function(k){return H.schedule(function(){return A.then(function(d){k.add(H.schedule(function(){k.next(d);k.add(H.schedule(function(){return k.complete()}))}))},function(d){k.add(H.schedule(function(){return k.error(d)}))})})})};
fKv=function(A){return new TypeError("ea`"+(A!==null&&typeof A==="object"?"an invalid object":"'"+A+"'"))};
o7X=function(A,H){if(A!=null){if(J2(A[GM]))return n7r(A,H);if(wXm(A))return UXV(A,H);if(J2(A==null?void 0:A.then))return ZVA(A,H);if(Symbol.asyncIterator&&J2(A==null?void 0:A[Symbol.asyncIterator]))return lKI(A,H);if(J2(A==null?void 0:A[NUN]))return M_C(A,H)}throw fKv(A);};
DK=function(A,H){return H?o7X(A,H):X9(A)};
X9=function(A){if(A instanceof PX)return A;if(A!=null){if(J2(A[GM]))return $XQ(A);if(wXm(A))return Ael(A);if(J2(A==null?void 0:A.then))return HYI(A);if(Symbol.asyncIterator&&J2(A==null?void 0:A[Symbol.asyncIterator]))return saA(A);if(J2(A==null?void 0:A[NUN]))return kOv(A)}throw fKv(A);};
$XQ=function(A){return new PX(function(H){var k=A[GM]();if(J2(k.subscribe))return k.subscribe(H);throw new TypeError("fa");})};
Ael=function(A){return new PX(function(H){for(var k=0;k<A.length&&!H.closed;k++)H.next(A[k]);H.complete()})};
HYI=function(A){return new PX(function(H){A.then(function(k){H.closed||(H.next(k),H.complete())},function(k){return H.error(k)}).then(null,yA)})};
kOv=function(A){return new PX(function(H){for(var k=A[NUN]();!H.closed;){var d=k.next(),W=d.value;d.done?H.complete():H.next(W)}return function(){return J2(k==null?void 0:k.return)&&k.return()}})};
saA=function(A){return new PX(function(H){dxv(A,H).catch(function(k){return H.error(k)})})};
dxv=function(A,H){var k,d,W,z,u,B;return _.e(function(h){switch(h.nextAddress){case 1:_.S_(h,2,3),z=_.CV(A);case 5:return h.yield(z.next(),8);case 8:d=h.yieldResult;if(d.done){h.jumpTo(3);break}u=d.value;H.next(u);h.jumpTo(5);break;case 3:_.KV(h);_.pV(h,9);if(!d||d.done||!(W=z.return)){h.jumpTo(9);break}return h.yield(W.call(z),9);case 9:_.KV(h,0,0,1);if(k)throw k.error;_.QA(h,10,1);break;case 10:_.QA(h,4);break;case 2:B=_.VA(h);k={error:B};h.jumpTo(3);break;case 4:H.complete(),_.EN(h)}})};
W_b=function(A,H){return H?UXV(A,H):Ael(A)};
z4C=function(A){return J2(A[A.length-1])?A.pop():void 0};
UN=function(A){var H=A[A.length-1];return H&&J2(H.schedule)?A.pop():void 0};
l1=function(){var A=_.o7.apply(0,arguments),H=UN(A);return H?UXV(A,H):W_b(A)};
t2=function(A){var H=J2(A)?A:function(){return A};
return new PX(function(k){return k.error(H())})};
NX=function(A){return function(H){if(J2(H==null?void 0:H.lift))return H.lift(function(k){try{return A(k,this)}catch(d){this.error(d)}});
throw new TypeError("ga");}};
nV=function(){return NX(function(A,H){var k=null;A._refCount++;var d=new MX(H,void 0,void 0,void 0,function(){if(!A||A._refCount<=0||0<--A._refCount)k=null;else{var W=A._connection,z=k;k=null;!W||z&&W!==z||W.unsubscribe();H.unsubscribe()}});
A.subscribe(d);d.closed||(k=A.connect())})};
rer=function(){var A=qGN;var H=H===void 0?0:H;return NX(function(k,d){d.add(A.schedule(function(){return k.subscribe(d)},H))})};
ZK=function(A){return NX(function(H,k){var d=0;H.subscribe(new MX(k,function(W){k.next(A.call(void 0,W,d++))}))})};
B5r=function(A){return ZK(function(H){return ut8(H)?A.apply(null,_.fV(H)):A(H)})};
OYW=function(A){if(A.length===1){var H=A[0];if(e4C(H))return{args:H,keys:null};if(H&&typeof H==="object"&&xxW(H)===iYV)return A=h4W(H),{args:A.map(function(k){return H[k]}),
keys:A}}return{args:A,keys:null}};
o4=function(){var A=_.o7.apply(0,arguments),H=UN(A),k=z4C(A);A=OYW(A);var d=A.args,W=A.keys;if(d.length===0)return DK([],H);H=new PX(R4v(d,H,W?function(z){for(var u={},B=0;B<z.length;B++)u[W[B]]=z[B];return u}:j_));
return k?H.pipe(B5r(k)):H};
R4v=function(A,H,k){k=k===void 0?j_:k;return function(d){T5W(H,function(){for(var W=A.length,z=Array(W),u=W,B=A.map(function(){return!1}),h=!0,O={i$jscomp$220:0};O.i$jscomp$220<W;O={i$jscomp$220:O.i$jscomp$220},O.i$jscomp$220++)T5W(H,function(T){return function(){DK(A[T.i$jscomp$220],H).subscribe(new $7(d,function(m){z[T.i$jscomp$220]=m;
h&&(B[T.i$jscomp$220]=!0,h=!B.every(j_));h||d.next(k(z.slice()))},function(){return--u===0}))}}(O),d)},d)}};
T5W=function(A,H,k){A?k.add(A.schedule(H)):H()};
mxW=function(A,H,k,d){var W=[],z=0,u=0,B=!1,h=function(O){z++;X9(k(O,u++)).subscribe(new MX(H,function(T){H.next(T)},void 0,function(){z--;
for(var T={};W.length&&z<d;T={bufferedValue:void 0})T.bufferedValue=W.shift(),h(T.bufferedValue);!B||W.length||z||H.complete()}))};
A.subscribe(new MX(H,function(O){return z<d?h(O):W.push(O)},void 0,function(){B=!0;
!B||W.length||z||H.complete()}));
return function(){W=null}};
Ae=function(A,H){var k=k===void 0?Infinity:k;if(J2(H))return Ae(function(d,W){return ZK(function(z,u){return H(d,z,W,u)})(X9(A(d,W)))},k);
typeof H==="number"&&(k=H);return NX(function(d,W){return mxW(d,W,A,k)})};
JeQ=function(A){A=A===void 0?Infinity:A;return Ae(j_,A)};
gdl=function(){var A=_.o7.apply(0,arguments);return JeQ(1)(W_b(A,UN(A)))};
bYI=function(A){return new PX(function(H){X9(A()).subscribe(H)})};
Hy=function(A,H,k){if(J2(k)){var d=k;k=void 0}if(d)return Hy(A,H,k).pipe(B5r(d));d=_.r(J2(A.addEventListener)&&J2(A.removeEventListener)?L_v.map(function(u){return function(B){return A[u](H,B,k)}}):J2(A.addListener)&&J2(A.removeListener)?vdf.map(yeA(A,H)):J2(A.on)&&J2(A.off)?jaQ.map(yeA(A,H)):[]);
var W=d.next().value,z=d.next().value;return!W&&wXm(A)?Ae(function(u){return Hy(u,H,k)})(W_b(A)):new PX(function(u){if(!W)throw new TypeError("ha");
var B=function(){var h=_.o7.apply(0,arguments);return u.next(1<h.length?h:h[0])};
W(B);return function(){return z(B)}})};
yeA=function(A,H){return function(k){return function(d){return A[k](H,d)}}};
kd=function(){var A=_.o7.apply(0,arguments),H=UN(A);var k=typeof A[A.length-1]==="number"?A.pop():Infinity;return A.length?A.length===1?X9(A[0]):JeQ(k)(W_b(A,H)):sG};
YG8=function(A){return A.length===1&&I8W(A[0])?A[0]:A};
Pf8=function(){var A=YG8(_.o7.apply(0,arguments));return NX(function(H,k){var d=[H].concat(_.fV(A)),W=function(){if(!k.closed)if(d.length>0){try{var z=X9(d.shift())}catch(B){W();return}var u=new MX(k,void 0,vX,vX);k.add(z.subscribe(u));u.add(W)}else k.complete()};
W()})};
d5=function(A){return NX(function(H,k){var d=0;H.subscribe(new MX(k,function(W){return A.call(void 0,W,d++)&&k.next(W)}))})};
F_N=function(){var A=_.o7.apply(0,arguments);A=YG8(A);return A.length===1?X9(A[0]):new PX(GOf(A))};
GOf=function(A){return function(H){for(var k=[],d={i$jscomp$223:0};k&&!H.closed&&d.i$jscomp$223<A.length;d={i$jscomp$223:d.i$jscomp$223},d.i$jscomp$223++)k.push(X9(A[d.i$jscomp$223]).subscribe(new MX(H,function(W){return function(z){if(k){for(var u=0;u<k.length;u++)u!==W.i$jscomp$223&&k[u].unsubscribe();k=null}H.next(z)}}(d))))}};
XyN=function(){var A=_.o7.apply(0,arguments),H=z4C(A),k=YG8(A);return k.length?new PX(function(d){var W=k.map(function(){return[]}),z=k.map(function(){return!1});
d.add(function(){W=z=null});
for(var u={sourceIndex$jscomp$1:0};!d.closed&&u.sourceIndex$jscomp$1<k.length;u={sourceIndex$jscomp$1:u.sourceIndex$jscomp$1},u.sourceIndex$jscomp$1++)X9(k[u.sourceIndex$jscomp$1]).subscribe(new MX(d,function(B){return function(h){W[B.sourceIndex$jscomp$1].push(h);W.every(function(O){return O.length})&&(h=W.map(function(O){return O.shift()}),d.next(H?H.apply(null,_.fV(h)):h),W.some(function(O,T){return!O.length&&z[T]})&&d.complete())}}(u),void 0,function(B){return function(){z[B.sourceIndex$jscomp$1]=
!0;
!W[B.sourceIndex$jscomp$1].length&&d.complete()}}(u)));
return function(){W=z=null}}):sG};
Dxr=function(A){var H,k,d;return!!A&&typeof A.active==="boolean"&&typeof((H=A.clock)==null?void 0:H.now)==="function"&&((k=A.clock)==null?void 0:k.timeline)!==void 0&&!((d=A.lastMeasurement)==null||!d.timestamp)&&typeof A.equivalentTo==="function"&&typeof A.extrapolateToNow==="function"&&typeof A.extrapolateToTime==="function"&&typeof A.map==="function"&&typeof A.joinWith==="function"};
SGQ=function(A){function H(k){return typeof k==="boolean"||typeof k==="string"||typeof k==="number"||k===void 0||k===null}
return H(A)?!0:Array.isArray(A)?A.every(H):typeof A==="object"?Object.keys(A).every(function(k){return typeof k==="string"})&&Object.values(A).every(function(k){return Array.isArray(k)?k.every(H):H(k)}):!1};
CfQ=function(A){if(SGQ(A))return A;if(Dxr(A))return{lastMeasurement:{value:CfQ(A.lastMeasurement.value),timestamp:Wy(A.lastMeasurement.timestamp,new zO(0,A.lastMeasurement.timestamp.timeline))},active:A.active};try{return JSON.parse(JSON.stringify(A))}catch(H){}return String(A)};
qx=function(A,H){return function(k){return new PX(function(d){return k.subscribe(function(W){A.timeExecution(H,function(){d.next(W)})()},function(W){A.timeExecution(H,function(){d.error(W)})()},function(){A.timeExecution(H,function(){d.complete()})()})})}};
K_8=function(A,H){var k=!1;return new PX(function(d){var W=A.setTimeout(function(){k=!0;d.next(!0);d.complete()},H);
return function(){k||A.clearTimeout(W)}})};
a88=function(A){A=A.global;if(A.fetchLater)return A.fetchLater.bind(A)};
r5=function(A){return NX(function(H,k){var d=null,W=!1,z;d=H.subscribe(new MX(k,void 0,function(u){z=X9(A(u,r5(A)(H)));d?(d.unsubscribe(),d=null,z.subscribe(k)):W=!0}));
W&&(d.unsubscribe(),d=null,z.subscribe(k))})};
cef=function(A,H,k){return function(d,W){var z=k,u=H,B=0;d.subscribe(new MX(W,function(h){var O=B++;u=z?A(u,h,O):(z=!0,h);W.next(u)},void 0,void 0))}};
pyl=function(A){A=A===void 0?null:A;return NX(function(H,k){var d=!1;H.subscribe(new MX(k,function(W){d=!0;k.next(W)},void 0,function(){d||k.next(A);
k.complete()}))})};
uf=function(){return NX(function(A,H){A.subscribe(new MX(H,vX))})};
By=function(A){return NX(function(H,k){H.subscribe(new MX(k,function(){return k.next(A)}))})};
et=function(A){return A<=0?function(){return sG}:NX(function(H,k){var d=0;
H.subscribe(new MX(k,function(W){++d<=A&&(k.next(W),A<=d&&k.complete())}))})};
xd=function(A){var H=H===void 0?j_:H;var k;A=(k=A)!=null?k:QaI;return NX(function(d,W){var z,u=!0;d.subscribe(new MX(W,function(B){var h=H(B);if(u||!A(z,h))u=!1,z=h,W.next(B)}))})};
QaI=function(A,H){return A===H};
EdA=function(A){A=A===void 0?Vtv:A;return NX(function(H,k){var d=!1;H.subscribe(new MX(k,function(W){d=!0;k.next(W)},void 0,function(){return d?k.complete():k.error(A())}))})};
Vtv=function(){return new UxW};
he=function(){var A=_.o7.apply(0,arguments);return function(H){return gdl(H,l1.apply(null,_.fV(A)))}};
l8l=function(A){return NX(function(H,k){var d=0;H.subscribe(new MX(k,function(W){A.call(void 0,W,d++,H)||(k.next(!1),k.complete())},void 0,function(){k.next(!0);
k.complete()}))})};
ttC=function(){return NX(function(A,H){var k=[];A.subscribe(new MX(H,function(d){k.push(d);1<k.length&&k.shift()},void 0,function(){for(var d=_.r(k),W=d.next();!W.done;W=d.next())H.next(W.value);
H.complete()},function(){k=null}))})};
N5b=function(A,H){var k=arguments.length>=2;return function(d){return d.pipe(A?d5(function(W,z){return A(W,z,d)}):j_,ttC(),k?pyl(H):EdA(function(){return new UxW}))}};
Ra=function(A){var H=J2(A)?A:function(){return A};
return J2()?NX(function(k,d){var W=H();(void 0)(W).subscribe(d).add(k.subscribe(W))}):function(k){var d=new OG(k,H);
J2(k==null?void 0:k.lift)&&(d.lift=k.lift);d.source=k;d.subjectFactory=H;return d}};
m_=function(A){var H=new TO(A,void 0,void 0);return function(k){return Ra(function(){return H})(k)}};
Je=function(A,H){return NX(cef(A,H,arguments.length>=2))};
g5=function(){var A=_.o7.apply(0,arguments),H=UN(A);return NX(function(k,d){(H?gdl(A,k,H):gdl(A,k)).subscribe(d)})};
LY=function(A){return NX(function(H,k){var d=null,W=0,z=!1;H.subscribe(new MX(k,function(u){var B;(B=d)==null||B.unsubscribe();B=W++;X9(A(u,B)).subscribe(d=new MX(k,function(h){return k.next(h)},void 0,function(){d=null;
z&&!d&&k.complete()}))},void 0,function(){(z=!0,!d)&&k.complete()}))})};
vy=function(A,H){H=H===void 0?!1:H;return NX(function(k,d){var W=0;k.subscribe(new MX(d,function(z){var u=A(z,W++);(u||H)&&d.next(z);!u&&d.complete()}))})};
MtQ=function(A,H,k){var d=J2(A)||H||k?{next:A,error:H,complete:k}:A;return d?NX(function(W,z){W.subscribe(new MX(z,function(u){var B;(B=d.next)==null||B.call(d,u);z.next(u)},function(u){var B;
(B=d.error)==null||B.call(d,u);z.error(u)},function(){var u;
(u=d.complete)==null||u.call(d);z.complete()}))}):j_};
ndm=function(){var A=_.o7.apply(0,arguments),H=z4C(A);return NX(function(k,d){for(var W=A.length,z=Array(W),u=A.map(function(){return!1}),B=!1,h={i$jscomp$233:0};h.i$jscomp$233<W;h={i$jscomp$233:h.i$jscomp$233},h.i$jscomp$233++)X9(A[h.i$jscomp$233]).subscribe(new MX(d,function(O){return function(T){z[O.i$jscomp$233]=T;
B||u[O.i$jscomp$233]||(u[O.i$jscomp$233]=!0,(B=u.every(j_))&&(u=null))}}(h),void 0,vX));
k.subscribe(new MX(d,function(O){B&&(O=[O].concat(_.fV(z)),d.next(H?H.apply(null,_.fV(O)):O))}))})};
f8b=function(A){var H=ZYb;if(H)for(var k in H)Object.prototype.hasOwnProperty.call(H,k)&&A(H[k],k,H)};
wyX=function(){var A=[];f8b(function(H){A.push(H)});
return A};
$xX=function(A){try{return!!A&&A.location.href!=null&&odV(A,"foo")}catch(H){return!1}};
HC8=function(){return Ll&&vV?vV.mobile:!Ajm()&&(yW("iPod")||yW("iPhone")||yW("Android")||yW("IEMobile"))};
Ajm=function(){return Ll&&vV?!vV.mobile&&(yW("iPad")||yW("Android")||yW("Silk")):yW("iPad")||yW("Android")&&!yW("Mobile")||yW("Silk")};
_.y6=function(A){return new XXX(A[0].toLowerCase())};
s8I=function(A){for(var H=_.o7.apply(1,arguments),k=A[0],d=0;d<A.length-1;d++)k+=String(H[d]),k+=A[d+1];H=document.implementation.createHTMLDocument("");d=H.createElement("style");H.head.appendChild(d);H=d.sheet;H.insertRule(k,0);if(H.cssRules.length===1&&(k=H.cssRules[0],k instanceof CSSStyleRule))return new mJ(k.cssText.replace(/</g,"\\3C "))};
kEA=function(A){try{return new URL(A,window.document.baseURI)}catch(H){return new URL("about:invalid")}};
dCb=function(A,H){var k=H.createRange();k.selectNode(H.body);A=k7(A);return k.createContextualFragment(dU(A))};
WAf=function(A){A=A.nodeName;return typeof A==="string"?A:"FORM"};
zCC=function(A){A=A.nodeType;return A===1||typeof A!=="number"};
jt=function(A,H,k){A.setAttribute(H,k)};
qIC=function(A){return A.parts.map(function(H){var k=H.descriptor;return""+H.url+(k?" "+k:"")}).join(" , ")};
_.Ia=function(A){var H=_.o7.apply(1,arguments);if(H.length===0)return _.px(A[0]);for(var k=A[0],d=0;d<H.length;d++)k+=encodeURIComponent(H[d])+A[d+1];return _.px(k)};
_.Yd=function(A,H){A=_.QB(A).toString();var k=A.split(/[?#]/),d=/[?]/.test(A)?"?"+k[1]:"";return rjW(k[0],d,/[#]/.test(A)?"#"+(d?k[2]:k[1]):"",H)};
rjW=function(A,H,k,d){function W(u,B){u!=null&&(Array.isArray(u)?u.forEach(function(h){return W(h,B)}):(H+=z+encodeURIComponent(B)+"="+encodeURIComponent(u),z="&"))}
var z=H.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(u){return W(u[1],u[0])}):d.forEach(W);
return _.px(A+H+k)};
BWW=function(){var A=x7(uEC).toString();return _.px(URL.createObjectURL(new Blob([A],{type:"text/javascript"})))};
_.Py=function(A,H,k){return Math.min(Math.max(A,H),k)};
GO=function(A,H,k){return A+k*(H-A)};
_.Ft=function(A,H){this.x=A!==void 0?A:0;this.y=H!==void 0?H:0};
_.Xt=function(A,H){this.width=A;this.height=H};
eCN=function(A){var H=[],k=0,d;for(d in A)H[k++]=d;return H};
xCI=function(A,H){for(var k in A)if(A[k]==H)return!0;return!1};
iCI=function(A,H,k){for(var d in A)if(H.call(k,A[d],d,A))return d};
hCI=function(A){if(!A||typeof A!=="object")return A;if(typeof A.clone==="function")return A.clone();if(typeof Map!=="undefined"&&A instanceof Map)return new Map(A);if(typeof Set!=="undefined"&&A instanceof Set)return new Set(A);if(A instanceof Date)return new Date(A.getTime());var H=Array.isArray(A)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(A)||A instanceof DataView?{}:new A.constructor(A.length),k;for(k in A)H[k]=hCI(A[k]);return H};
OCm=function(A){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return OCm.apply(null,arguments[0]);if(H%2)throw Error("na");for(var k={},d=0;d<H;d+=2)k[arguments[d]]=arguments[d+1];return k};
RCN=function(A){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return RCN.apply(null,arguments[0]);for(var k={},d=0;d<H;d++)k[arguments[d]]=!0;return k};
D8=function(A,H,k,d){this.top=A;this.right=H;this.bottom=k;this.left=d};
CY=function(A,H,k,d){this.left=A;this.top=H;this.width=k;this.height=d};
TW8=function(A){A=A.global;if(A.PendingGetBeacon)return A.PendingGetBeacon};
aa=function(A){return function(H){return H.pipe(mCv(A,Ra(new KY)))}};
cy=function(A){return function(H){return H.pipe(mCv(A,m_(1)))}};
mCv=function(A,H){function k(d){return new PX(function(W){return d.subscribe(function(z){pY(A,function(){return void W.next(z)},3)},function(z){pY(A,function(){return void W.error(z)},3)},function(){pY(A,function(){return void W.complete()},3)})})}
return I4(k,rer(),H,nV(),k)};
bCv=function(A){var H=Jj8(A);return H===null?new Q6(null):H.pipe(ZK(function(k){k=k.serialize();if(ggQ)k=_.k8.btoa(k);else{for(var d=[],W=0,z=0;z<k.length;z++){var u=k.charCodeAt(z);u>255&&(d[W++]=u&255,u>>=8);d[W++]=u}k=_.ob(d)}return k}),et(1),cy(A.queue))};
LAV=function(A){var H=H===void 0?{}:H;if(typeof Event==="function")return new Event(A,H);if(typeof document!=="undefined"){var k=document.createEvent("CustomEvent");k.initCustomEvent(A,H.bubbles||!1,H.cancelable||!1,H.detail);return k}throw Error();};
vgC=function(A){return typeof A==="string"?document.getElementById(A):A};
j88=function(A){var H=!1;H=H===void 0?!1:H;if(A.tagName==="IMG"){if(A.complete&&(!A.naturalWidth||!A.naturalHeight))return!0;var k;if(H&&((k=A.style)==null?void 0:k.display)==="none")return!0}var d,W;return yjW.test((d=A.getAttribute("width"))!=null?d:"")&&yjW.test((W=A.getAttribute("height"))!=null?W:"")};
ILv=function(A,H){if(A.tagName==="IMG")return A.naturalWidth&&A.naturalHeight?!0:!1;try{if(A.readyState)var k=A.readyState;else{var d,W;k=(d=A.contentWindow)==null?void 0:(W=d.document)==null?void 0:W.readyState}return k==="complete"}catch(z){return H===void 0?!1:H}};
YIQ=function(A){A||(A=function(H,k,d){H.addEventListener(k,d)});
return A};
X4V=function(A,H){var k=PK8();k=k===void 0?new GE8:k;if(A=vgC(A)){var d=YIQ(d);for(var W=!1,z=function(X){W||(W=!0,H(X))},u,B=2,h=0;h<FAC.length;++h)if(FAC[h]===A.tagName){B=3;
u=[A];break}u||(u=A.querySelectorAll(FAC.join(",")));var O=0,T=0,m=!0,J=A=!1;h={};for(var g=0;g<u.length;h={isImg:void 0},g++){var v=u[g];if(!j88(v))if(h.isImg=v.tagName==="IMG",ILv(v,k.crossDomainLoadedDefault))A=!0,h.isImg&&(m=!0);else{O++;var y=function(X){return function(D){O--;!O&&m&&z(B);X.isImg&&(D=D&&D.type==="error",T--,D||(m=!0),!T&&J&&m&&z(B))}}(h);
d(v,"load",y);h.isImg&&(T++,d(v,"error",y))}}T===0&&(m=!0);u=null;u=_.k8.document.readyState==="complete";if(O===0&&!A&&u)B=5;else if(O||!A){d(_.k8,"load",function(){!k.pendingImagesBlockLoad||!T&&m?z(4):J=!0});
return}z(B)}};
DCX=function(A,H,k){if(A)for(var d=0;A!=null&&d<500&&!k(A);++d)A=H(A)};
SIV=function(A,H){DCX(A,function(k){try{return k===k.parent?null:k.parent}catch(d){}return null},H)};
CKN=function(A,H){if(A.tagName=="IFRAME")H(A);else{A=A.querySelectorAll("IFRAME");for(var k=0;k<A.length&&!H(A[k]);++k);}};
KAv=function(A){return(A=A.ownerDocument)&&(A.parentWindow||A.defaultView)||null};
aLr=function(A,H,k){try{var d=JSON.parse(k.data)}catch(u){}if(typeof d==="object"&&d&&d.type==="creativeLoad"){var W=KAv(A);if(k.source&&W){var z;SIV(k.source,function(u){try{if(u.parent===W)return z=u,!0}catch(B){}});
z&&CKN(A,function(u){if(u.contentWindow===z)return H(d),!0})}}};
cjI=function(A){return typeof A==="string"?document.getElementById(A):A};
Egf=function(){var A={};return A[0]=_.Ia(p4A,"current"),A[1]=_.Ia(Q8I),A[2]=_.Ia(VBW),A};
V6=function(A,H){return A.left===H.left&&A.top===H.top&&A.width===H.width&&A.height===H.height};
UCl=function(A,H){return{left:Math.max(A.left,H.left),top:Math.max(A.top,H.top),width:Math.max(0,Math.min(A.left+A.width,H.left+H.width)-Math.max(A.left,H.left)),height:Math.max(0,Math.min(A.top+A.height,H.top+H.height)-Math.max(A.top,H.top))}};
lLX=function(A,H){return{left:Math.round(A.left+H.x),top:Math.round(A.top+H.y),width:A.width,height:A.height}};
tBI=function(A,H,k,d,W,z,u){var B="";A&&(B+=A+":");k&&(B+="//",H&&(B+=H+"@"),B+=k,d&&(B+=":"+d));W&&(B+=W);z&&(B+="?"+z);u&&(B+="#"+u);return B};
_.UG=function(A){return A.match(NWX)};
_.lf=function(A,H){return A?H?decodeURI(A):decodeURIComponent(A):A};
MBC=function(A){A=_.UG(A)[1]||null;!A&&_.k8.self&&_.k8.self.location&&(A=_.k8.self.location.protocol.slice(0,-1));return A?A.toLowerCase():""};
_.te=function(A){return _.lf(_.UG(A)[3]||null,!0)};
_.Nx=function(A){return _.lf(_.UG(A)[5]||null,!0)};
_.ngX=function(A){var H=A.indexOf("#");return H<0?null:A.slice(H+1)};
ZCC=function(A){A=_.UG(A);return tBI(A[1],A[2],A[3],A[4])};
_.fLm=function(A){A=_.UG(A);return tBI(A[1],null,A[3],A[4])};
_.Mx=function(A){A=_.UG(A);return tBI(null,null,null,null,A[5],A[6],A[7])};
_.nY=function(A){var H=A.indexOf("#");return H<0?A:A.slice(0,H)};
Z8=function(A,H){A=_.UG(A);H=_.UG(H);return A[3]==H[3]&&A[1]==H[1]&&A[4]==H[4]};
w4I=function(A,H){if(A){A=A.split("&");for(var k=0;k<A.length;k++){var d=A[k].indexOf("="),W=null;if(d>=0){var z=A[k].substring(0,d);W=A[k].substring(d+1)}else z=A[k];H(z,W?fY(W):"")}}};
og8=function(A){var H=A.indexOf("#");H<0&&(H=A.length);var k=A.indexOf("?");if(k<0||k>H){k=H;var d=""}else d=A.substring(k+1,H);return[A.slice(0,k),d,A.slice(H)]};
$CA=function(A,H){return H?A?A+"&"+H:H:A};
_.AwN=function(A,H){if(!H)return A;A=og8(A);A[1]=$CA(A[1],H);return A[0]+(A[1]?"?"+A[1]:"")+A[2]};
_.H$X=function(A,H,k){if(Array.isArray(H))for(var d=0;d<H.length;d++)_.H$X(A,String(H[d]),k);else H!=null&&k.push(A+(H===""?"":"="+_.w5(H)))};
_.oa=function(A){var H=[],k;for(k in A)_.H$X(k,A[k],H);return H.join("&")};
_.$d=function(A,H){H=_.oa(H);return _.AwN(A,H)};
_.Aj=function(A,H,k){k=k!=null?"="+_.w5(k):"";return _.AwN(A,H+k)};
ssb=function(A,H,k,d){for(var W=k.length;(H=A.indexOf(k,H))>=0&&H<d;){var z=A.charCodeAt(H-1);if(z==38||z==63)if(z=A.charCodeAt(H+W),!z||z==61||z==38||z==35)return H;H+=W+1}return-1};
_.H4=function(A,H){var k=A.search(k48),d=ssb(A,0,H,k);if(d<0)return null;var W=A.indexOf("&",d);if(W<0||W>k)W=k;d+=H.length+1;return fY(A.slice(d,W!==-1?W:0))};
_.sI=function(A,H){for(var k=A.search(k48),d=0,W,z=[];(W=ssb(A,d,H,k))>=0;)z.push(A.substring(d,W)),d=Math.min(A.indexOf("&",W)+1||k,k);z.push(A.slice(d));return z.join("").replace(dZQ,"$1")};
_.kg=function(A,H,k){return _.Aj(_.sI(A,H),H,k)};
WMV=function(A){var H=og8(window.location.href),k=H[1],d=[];k&&k.split("&").forEach(function(W){var z=W.indexOf("=");z=z>=0?W.slice(0,z):W;A.hasOwnProperty(z)||d.push(W)});
H[1]=$CA(d.join("&"),_.oa(A));return H[0]+(H[1]?"?"+H[1]:"")+H[2]};
zcm=function(A,H,k){if(A&&H!==null&&H!=H.top){if(!H.top)return new _.Xt(-12245933,-12245933);H=H.top}try{return(k===void 0?0:k)?(new _.Xt(H.innerWidth,H.innerHeight)).round():_.dW(H).round()}catch(d){return new _.Xt(-12245933,-12245933)}};
q9Q=function(A,H,k){try{if(A){if(!H.top)return new D8(-12245933,-12245933,-12245933,-12245933);H=H.top}var d=zcm(A,H,k),W=d.height,z=d.width;if(z===-12245933)return new D8(z,z,z,z);var u=W4(zE(H.document)),B=u.x,h=u.y;return new D8(h,B+z,h+W,B)}catch(O){return new D8(-12245933,-12245933,-12245933,-12245933)}};
rwb=function(A){var H;return(H=A.google_tag_data)!=null?H:A.google_tag_data={}};
uaN=function(A){var H,k;return typeof((H=A.navigator)==null?void 0:(k=H.userAgentData)==null?void 0:k.getHighEntropyValues)==="function"};
ecW=function(A){if(!uaN(A))return null;var H=rwb(A);if(H.uach_promise)return H.uach_promise;A=A.navigator.userAgentData.getHighEntropyValues(BFl).then(function(k){H.uach!=null||(H.uach=k);return k});
return H.uach_promise=A};
v3A=function(A){var H;return xZW(i$r(hcf(O$v(RcA(TFI(mZf(Jwv(g3N(new b$b,A.architecture||""),A.bitness||""),A.mobile||!1),A.model||""),A.platform||""),A.platformVersion||""),A.uaFullVersion||""),((H=A.fullVersionList)==null?void 0:H.map(function(k){var d=new LMC;d=_.qC(d,1,k.brand);return _.qC(d,2,k.version)}))||[]),A.wow64||!1)};
ywr=function(A){var H,k;return(k=(H=ecW(A))==null?void 0:H.then(function(d){return v3A(d)}))!=null?k:null};
jsV=function(A,H){return new PX(function(k){var d=!1,W=Array(H.length);W.fill(void 0);var z=new Set,u=new Set,B=function(m,J){A.running?(W[J]=m,z.add(J),d||(d=!0,pY(A,function(){d=!1;k.next(_.tA(W))},1))):k.error(new rW(J))},h=function(m,J){u.add(J);
z.add(J);pY(A,function(){k.error(m)},1)},O=function(m){u.add(m);
pY(A,function(){u.size===H.length&&k.complete()},1)},T=H.map(function(m,J){return m.subscribe(function(g){return void B(g,J)},function(g){return void h(g,J)},function(){return void O(J)})});
return function(){T.forEach(function(m){return void m.unsubscribe()})}})};
P5I=function(A,H,k){function d(){if(H.debugChannel){var X=H.debugChannel,D=X.next;var K={creativeId:H.debugNames.getName(k),requiredSignals:W,signals:Object.assign({},z),hasPrematurelyCompleted:u,errorMessage:B,erroredSignalKey:h};K={specMajor:2,specMinor:0,specPatch:0,timestamp:Wy(H.timeProvider.now(),new zO(0,H.timeProvider.timeline)),instanceId:H.debugNames.getName(H.symbol),creativeState:K};D.call(X,K)}}
for(var W=Object.keys(A),z={},u=!1,B=null,h=null,O={},T=new Set,m=[],J=[],g=_.r(W),v=g.next(),y={};!v.done;y={key$jscomp$396:void 0},v=g.next())y.key$jscomp$396=v.value,v=A[y.key$jscomp$396],v instanceof Q6?(O[y.key$jscomp$396]=v.value,T.add(y.key$jscomp$396),H.debugChannel&&(z[String(y.key$jscomp$396)]=CfQ(v.value))):(v=v.pipe(xd(function(X,D){return Dxr(X)||Dxr(D)?!1:X===D}),ZK(function(X){return function(D){H.debugChannel&&(z[String(X.key$jscomp$396)]=CfQ(D),d());
var K={};return K[X.key$jscomp$396]=D,K}}(y)),r5(function(X){return function(D){if(D instanceof rW)throw new Id8(String(X.key$jscomp$396));
throw D;}}(y)),MtQ(function(X){return function(){T.add(X.key$jscomp$396)}}(y),function(X){return function(D){h=String(X.key$jscomp$396);
B=String(D);d()}}(y),function(X){return function(){T.has(X.key$jscomp$396)||(u=!0,d())}}(y))),J.push(y.key$jscomp$396),m.push(v));
(A=Object.keys(z).length>0)&&d();g=jsV(H.queue,m).pipe(r5(function(X){if(X instanceof rW)throw new Y9r(String(J[X.inputObservableIndex]));throw X;}),ZK(function(X){return Object.freeze(Object.assign.apply(Object,[{},
O].concat(_.fV(X))))}));
return(m=m.length>0)&&A?kd(l1(Object.freeze(O)),g):m?g:l1(Object.freeze(O))};
G4r=function(A,H,k,d,W){return A.performanceMonitor.timeExecution.bind(A.performanceMonitor)(733,function(){var z={};try{return H.pipe(r5(function(u){d(Object.assign({},z,{error:u}));return sG}),Ae(function(u){try{var B=k(A,u)}catch(O){return d(Object.assign({},z,{error:O instanceof Error?O:String(O)})),sG}var h={};
return P5I(B,A,u.symbol).pipe(MtQ(function(O){h=O}),m_(1),nV()).pipe(W,r5(function(O){d(Object.assign({},h,{error:O}));
return sG}),he(void 0),ZK(function(){return!0}))})).pipe(Je(function(u){return u+1},0),r5(function(u){d(Object.assign({},z,{error:u}));
return sG}))}catch(u){return d(Object.assign({},z,{error:u})),sG}})()};
uK=function(A){var H=new Map;if(typeof A!=="object"||A===null)return H;Object.values(A).forEach(function(k){k&&typeof k.extrapolateToNow==="function"&&(H.has(k.clock.timeline)||H.set(k.clock.timeline,k.clock.now()))});
return H};
FMC=function(A,H){return typeof A==="string"?encodeURIComponent(A):typeof A==="number"?String(A):Array.isArray(A)?A.map(function(k){return FMC(k,H)}).join(","):A instanceof zO?A.toString():A&&typeof A.extrapolateToNow==="function"?FMC(A.extrapolateUsingTimestampMap(H).value,H):A===!0?"1":A===!1?"0":A===void 0||A===null?null:A instanceof XT8?DZb(A):[A.top,
A.left,A.top+A.height,A.left+A.width].join()};
S9f=function(A,H){A=Object.entries(A).map(function(k){var d=_.r(k);k=d.next().value;d=d.next().value;d=FMC(d,H);return d===null?"":k+"="+d}).filter(function(k){return k!==""});
return A.length?A.join("&"):""};
adQ=function(A,H){var k=C5I,d=KMC;H=H===void 0?.01:H;return function(W){H>0&&Math.random()<=H&&(A.global.HTMLFencedFrameElement&&A.global.fence&&typeof A.global.fence.reportEvent==="function"&&A.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),W=Object.assign({},W,{errorMessage:W.error instanceof Error&&W.error.message?W.error.message:String(W.error),errorStack:W.error instanceof Error&&W.error.stack?String(W.error.stack):null,errorName:W.error instanceof
Error&&W.error.name?String(W.error.name):null,errorContext:String(A.performanceMonitor.timedFunctionContext),errorEscapedQueryId:W.escapedQueryId}),k(Object.assign({},W,{payloadMapper:function(){return function(z){try{return d(Object.assign({},z))}catch(u){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),uK(W)).forEach(function(z){A.beaconFactory.makeBeacon(z).sendNow()}))}};
cwV=function(){var A=_.o7.apply(0,arguments);return function(H){var k=H.pipe(m_(1),nV());H=A.map(function(d){return k.pipe(d,he(!0))});
return o4(H).pipe(et(1),uf())}};
pTX=function(){var A=_.o7.apply(0,arguments);return function(H){var k=H.pipe(m_(1),nV());H=A.map(function(d){return k.pipe(d,he(!0))});
return kd.apply(null,_.fV(H)).pipe(et(1),uf())}};
Qsr=function(A,H){return function(k){var d=k.pipe(m_(1),nV());k=d.pipe(A,he(!0));d=d.pipe(I4(H,m_(),nV()),he(!0));k=o4([k,d]);return F_N(k,d).pipe(et(1),uf())}};
Vvl=function(A,H,k){k(!0)};
E3l=function(A,H){return I4(LY(function(k){var d=A(k),W=H(k),z={};return d&&W&&z?new PX(function(u){W(d,z,function(B){u.next(Object.assign({},k,{canEmit:B}));u.complete()});
return function(){}}):B4}),d5(function(k){return k.canEmit}))};
UZb=function(A){var H={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(k){return k.pipe(LY(function(d){return new PX(function(W){function z(){B.disconnect();h.unsubscribe()}
var u=A.MutationObserver;if(u&&d.ref!==void 0){var B=new u(function(O){W.next(O)});
B.observe(d.ref,H);var h=d.JSC$9673_released.subscribe(z);return z}})}))}};
ldf=function(A){if(A.measurementDeferralState===3)return null;if(A.timeOnScreenReason!==void 0){var H=A.creativeFound===!1?"n":null;if(H!==null)return H}return A.geometricMeasurementErrors instanceof eB?"msf":A.contextValidationErrors instanceof xg?"c":A.contextVisibilityKnown===!1?"pv":A.geometricMeasurementErrors||A.contextValidationErrors?"x":null};
NFN=function(A,H){return A.replace(tvA,function(k,d){try{var W=_.iK.get(H,d);if(W==null||W.toString()==null)return k;W=W.toString();if(W==""||!_.BV(W==null?"":String(W)))return encodeURIComponent(W).replace(/%2C/g,",")}catch(z){}return k})};
Mvr=function(A,H){var k=Object.assign({},A),d=A.userAgentClientHints;k=(delete k.userAgentClientHints,k);k=A.payloadMapper(k);var W=S9f(k,H);return _.hj(A.urlPrefixes,function(z){var u="";typeof d==="string"&&(u="&"+S9f({uach:d},H));var B={};return NFN(z,(B.VIEWABILITY=W,B))+u})};
C5I=function(A,H){var k=A.payloadMapper(A),d=S9f(k,H);return d?_.hj(A.urlPrefixes,function(W){W=W.indexOf("?")>=0?W:W+"?";W="?&".indexOf(W.slice(-1))>=0?W:W+"&";return W+d}):A.urlPrefixes};
n38=function(){return I4(d5(function(A){return A!==void 0}),ZK(function(A){return A}))};
Z$A=function(A){return I4(ZK(function(){return!0}),g5(!1),cy(A))};
fdf=function(A){return A.length<=0?sG:o4(A.map(function(H){var k=0;return H.pipe(ZK(function(d){return{index:k++,value:d}}))})).pipe(d5(function(H){return H.every(function(k){return k.index===H[0].index})}),ZK(function(H){return H.map(function(k){return k.value})}))};
wTI=function(A,H){A.currentState&&(A.previousState=A.currentState);A.currentState=H;A.previousState&&A.previousState.value?(H=Math.max(0,Wy(H.timestamp,A.previousState.timestamp)),A.totalTime+=H,A.consecutiveTime+=H):A.consecutiveTime=0;return A};
o3f=function(){return I4(Je(wTI,{totalTime:0,consecutiveTime:0}),ZK(function(A){return A.totalTime}))};
$Zm=function(){return I4(Je(wTI,{totalTime:0,consecutiveTime:0}),ZK(function(A){return A.consecutiveTime}))};
Aa8=function(A,H){return function(k){return fdf(H.map(function(d){return k.pipe(A(d))}))}};
HAl=function(){var A;return I4(MtQ(function(H){return void(A=H.timestamp)}),$Zm(),ZK(function(H){return{timestamp:A,
value:Math.round(H)}}))};
sVV=function(A,H){return V6(A.topWindowViewportExternalGeometry,H.topWindowViewportExternalGeometry)&&V6(A.elementGeometry,H.elementGeometry)&&V6(A.exposedViewportLocalGeometry,H.exposedViewportLocalGeometry)&&V6(A.intersectionGeometry,H.intersectionGeometry)&&A.elementGeometrySourceName===H.elementGeometrySourceName&&A.measurementRequests===H.measurementRequests&&A.viewportGeometrySourceName===H.viewportGeometrySourceName&&A.viewportLocalAppOffset.x===H.viewportLocalAppOffset.x&&A.viewportLocalAppOffset.y===
H.viewportLocalAppOffset.y};
zLV=function(A,H){return function(k){return function(d){var W=d.pipe(Ra(new KY),nV());d=k.element.pipe(xd());W=W.pipe(ZK(function(z){return z.value}));
return o4([d,W,H]).pipe(ZK(function(z){var u=_.r(z);z=u.next().value;var B=u.next().value;u=u.next().value;if(z.ref===void 0)var h={top:0,left:0,width:0,height:0};else{h=z.ref.getBoundingClientRect();var O=z.ref,T=A.global,m=new _.Ft(0,0),J=R8(_.TE(O));if(odV(J,"parent")){do{if(J==T)var g=_.mA(O);else g=kWQ(O),g=new _.Ft(g.left,g.top);m.x+=g.x;m.y+=g.y}while(J&&J!=T&&J!=J.parent&&(O=J.frameElement)&&(J=J.parent))}h={top:m.y,left:m.x,width:h.width,height:h.height}}h=lLX(h,B.viewportLocalAppOffset);
T=UCl(h,B.exposedViewportLocalGeometry);m=A.timeProvider.now();J=Object;O=J.assign;if(u!==2||A.inCrossDomainIframe||T.width<=0||T.height<=0)var v=!1;else try{var y=A.document.elementFromPoint(T.left+T.width/2,T.top+T.height/2);v=y?!dUI(y,z):!1}catch(X){v=!1}return{timestamp:m,value:O.call(J,{},B,{elementGeometrySourceName:"geo",intersectionGeometry:v?WtI.intersectionGeometry:T,elementGeometry:h})}}),aa(A.queue))}}};
dUI=function(A,H,k){k=k===void 0?0:k;return A.ref===void 0||H.ref===void 0?!1:A.ref===H.ref||_.Jj(H.ref,function(d){return d===A.ref})?!0:H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView===H.ref.ownerDocument.defaultView.top?!1:k<10&&H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView.frameElement?dUI(A,new gW(H.ref.ownerDocument.defaultView.frameElement),k+1):!0};
uCr=function(A){return function(H){return H.pipe(A.ResizeObserver?qiI(A):raN(A),m_(1),nV())}};
qiI=function(A){return function(H){return H.pipe(LY(function(k){var d=A.ResizeObserver;if(!d||k.ref===void 0)return l1(WtI.elementGeometry);var W=(new PX(function(z){function u(){k.ref!==void 0&&B.unobserve(k.ref);B.disconnect();h.unsubscribe()}
if(k.ref===void 0)return z.complete(),function(){};
var B=new d(function(O){O.forEach(function(T){z.next(T)})});
B.observe(k.ref);var h=k.JSC$9673_released.subscribe(u);return u})).pipe(qx(A.performanceMonitor,736),ZK(function(z){return z.contentRect}));
return kd(l1(k.ref.getBoundingClientRect()),W)}),xd(V6))}};
raN=function(A){return function(H){var k=H.pipe(UZb(A)),d=A.onResize;k=kd(H.pipe(ZK(function(){return LAV("resize")})),k,d);
return o4(H,k).pipe(qx(A.performanceMonitor,737),ZK(function(W){W=_.r(W).next().value;return W.ref===void 0?void 0:W.ref.getBoundingClientRect()}),n38(),xd(V6))}};
xUW=function(A,H){var k=B0W(A,H).pipe(m_(1),nV());return function(d){return function(W){W=W.pipe(LY(function(z){return z.element}),xd());
return o4([k,W]).pipe(LY(function(z){var u=_.r(z);z=u.next().value;u=u.next().value;return eLX(A,z.intersectionObserver,uCr(A),z.observations,d,z.flushRecords,u)}),aa(A.queue))}}};
iAC=function(A){return ZK(function(H){return H.value.viewportGeometrySourceName!=="nio"?H:Object.assign({},H,{value:Object.assign({},H.value,{exposedViewportLocalGeometry:bK(A,!0),topWindowViewportExternalGeometry:bK(A,!0)})})})};
hLV=function(A,H){return l1(H).pipe(A,ZK(function(){return H}))};
B0W=function(A,H){return A.timeProvider.timeline!==OAW?t2(new eB(2)):A.MutationObserver?typeof IntersectionObserver==="undefined"?t2(new eB(0)):(new PX(function(k){var d=new KY,W=new LC(d.next.bind(d),{threshold:[].concat(_.fV(H))});k.next({observations:d.pipe(qx(A.performanceMonitor,735)),intersectionObserver:W,flushRecords:function(z){z=W.takeRecords(z);z.length>0&&d.next(z)}})})).pipe(et(1),m_(1),nV()):t2(new eB(1))};
RLl=function(A){return o7X(A.sort(function(H,k){return H.time-k.time}),qGN)};
eLX=function(A,H,k,d,W,z,u){return new PX(function(B){function h(){v||(v=!0,u.ref!==void 0&&H.unobserve(W,u.ref),T.unsubscribe(),g.unsubscribe(),J.unsubscribe(),y.unsubscribe())}
if(u.ref!==void 0){T0N(H,W);H.observe(W,u.ref);var O=new v4({timestamp:A.timeProvider.now(),value:Object.assign({},WtI,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),T=d.pipe(Ae(function(X){return RLl(X)}),d5(function(X){return X.target===u.ref}),ZK(function(X){return{timestamp:new zO(X.time,OAW),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:X.rootBounds||yJ,topWindowViewportExternalGeometry:X.rootBounds||bK(A,!0),measurementRequests:m,elementGeometrySourceName:"nio",intersectionGeometry:X.intersectionRect,elementGeometry:X.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:X.isIntersecting,isV2Visible:X.isVisible}}}),Ra(O),nV()).subscribe(B),m=new KY,J=m.subscribe(function(){z(W);
B.next({timestamp:A.timeProvider.now(),value:O.value.value});u.ref!==void 0&&(H.unobserve(W,u.ref),H.observe(W,u.ref))}),g=hLV(k,u).subscribe(function(){m.next()}),v=!1,y=u.JSC$9673_released.subscribe(function(){return h()});
return h}})};
mUC=function(A,H){var k=A.getOnBackgrounded().pipe(ZK(function(){return"b"}));
return F_N(H,k).pipe(et(1),cy(A.queue))};
jB=function(A){return function(H){var k;return H.pipe(MtQ(function(d){return void(k=d.timestamp)}),ZK(function(d){return d.value}),A,ZK(function(d){return{timestamp:k,
value:d}}))}};
JaA=function(A){return A.intersectionGeometry.width*A.intersectionGeometry.height/(A.elementGeometry.width*A.elementGeometry.height)};
I8=function(A,H,k){k=k===void 0?function(d,W){return d===W}:k;
return A.timestamp.equals(H.timestamp)&&k(A.value,H.value)};
GE=function(A,H){return H.pipe(ZK(function(k){return new Yg(A.timeProvider,{timestamp:A.timeProvider.now(),value:k})}))};
gUI=function(A){return function(H){return H.pipe(ndm(A),ZK(function(k){var d=_.r(k);k=d.next().value;d=d.next().value;var W=k.value;return{timestamp:k.timestamp,value:W>=1?!0:W<=0?!1:W>=d}}))}};
LtC=function(){return I4(d5(function(A,H){return H>0}),bAb,g5(-1),xd())};
vUQ=function(A,H,k){return A?o4([H,k]).pipe(d5(function(d){var W=_.r(d);d=W.next().value;W=W.next().value;return d.timestamp.equals(W.timestamp)}),ZK(function(d){var W=_.r(d);
d=W.next().value;W=W.next().value;return d.value>W.value?d:W})):H};
I58=function(A){return function(H){var k=H.pipe(yaW),d=H.pipe(jVQ);return A instanceof PX?A.pipe(LY(function(W){return vUQ(W,k,d)})):vUQ(A.value,k,d)}};
a5I=function(A,H,k,d){var W=d.geometryIsOccluded,z=d.exposureThreshold,u=d.wasLargeAdAtRender,B=d.allowLargeAdThreshold,h=d.largeAdExposureThreshold,O=d.mayUseViewportShareExposure,T=d.hasMeasurementStarted;d=d.useIntersectionObserverV2;H=YiW(A,k,H);k=Pem(A,k);d=GWf(H,d);var m=FtX(A,W,O,H),J=m.pipe(ZK(function(p){return p.value}),xd(),cy(A),Je(function(p,M){return Math.max(p,M)},0)),g=m.pipe(ZK(function(p){return p.value}),LtC(),cy(A)),v=H.pipe(XeW,ZK(function(p){return p.value}),et(2),xd(),cy(A));
u=DUA(A,H,u,B);var y=u.pipe(g5(!1),xd(),ZK(function(p){return p?h:z}));
B=m.pipe(gUI(y),xd(),cy(A));var X=o4([B,H]).pipe(d5(function(p){var M=_.r(p);p=M.next().value;M=M.next().value;return p.timestamp.equals(M.timestamp)}),ZK(function(p){var M=_.r(p);
p=M.next().value;M=M.next().value;return{visible:p.value,geometry:M.value.elementGeometry}}),Je(function(p,M){return!M.visible&&p.visible?p:M},{visible:!1,
geometry:yJ}),ZK(function(p){return p.geometry}),g5(yJ),cy(A),xd(V6));
O=O instanceof PX?O.pipe(xd(),By()):B4;y=o4([O,y]).pipe(By());var D=H.pipe(d5(function(p){return p.value.viewportGeometrySourceName!=="ns"&&p.value.elementGeometrySourceName!=="ns"}),Je(function(p){return p+1},0),g5(0),cy(A)),K=k.pipe(By(!0),g5(!1),cy(A));
K=o4([T,K]).pipe(ZK(function(p){var M=_.r(p);p=M.next().value;M=M.next().value;return p&&!M}),cy(A));
var N=H.pipe(SiX,xd()),U=N.pipe(ZK(function(p){return p.value}),Je(function(p,M){return Math.max(p,M)},0),xd(),cy(A));
A=N.pipe(ZK(function(p){return p.value}),LtC(),cy(A));
return{shouldResetExposureSignals:O,shouldResetViewabilitySignals:y,geometrySignals:{readyGeometryWithDefault:H,measurementStrategy:H.pipe(CeN),creativePosition:X.pipe(xd(V6)),visible:B.pipe(xd(I8)),timestampedExposure:m.pipe(xd(I8)),maximumExposure:J,minimumExposure:g,browserSize:H.pipe(KtI,xd(_.wI)),timestampedScreenShare:N,maxScreenShare:U,minScreenShare:A,geometricMeasurementErrors:k,measurementRequests:H.pipe(ZK(function(p){return p.value.measurementRequests})),
isLargeAd:u,geometryIsOccluded:W,hasMeasurementStarted:T,geometryMeasurable:K,validMeasurementCount:D,loadTimeExposure:v,v2VisibilityBitVector:d}}};
Pem=function(A,H){return H.pipe(d5(function(){return!1}),ZK(function(k){return k}),r5(function(k){return FE(new Q6(k),A)}))};
YiW=function(A,H,k){return H.pipe(Pf8(B4),cy(A)).pipe(xd(function(d,W){return I8(d,W,sVV)}),g5({timestamp:k.now(),
value:WtI}),cy(A))};
FtX=function(A,H,k,d){k=d.pipe(I58(k),jB(ZK(function(W){return Math.round(W*100)/100})),cy(A));
return H instanceof Q6?k:o4([k,H]).pipe(ZK(function(W){var z=_.r(W);W=z.next().value;z=z.next().value;return{timestamp:z.timestamp.maximum(W.timestamp),value:z.value?0:W.value}}),xd(I8),cy(A))};
DUA=function(A,H,k,d){H=[H.pipe(ZK(function(W){return W.value.elementGeometry.width*W.value.elementGeometry.height>=242500}))];
k instanceof PX&&H.push(k.pipe(ZK(function(W){return!!W})));
k=o4(H);return d?k.pipe(ZK(function(W){return W.some(function(z){return z})}),g5(!1),xd(),cy(A)):FE(new Q6(!1),A)};
GWf=function(A,H){A=o4([A,H]).pipe(ZK(function(W){var z=_.r(W);W=z.next().value;if(z.next().value&&W.value.isIntersecting)return W.value.isV2Visible}),xd());
var k=A.pipe(ZK(function(W){return W===void 0?!0:W}),Je(function(W,z){return W||!z},!1)),d=A.pipe(Je(function(W,z){return z===void 0?W:z?!1:W!=null?W:!0},void 0),ZK(function(W){return!!W}));
return o4([H,XyN(A,k,d)]).pipe(ZK(function(W){var z=_.r(W);W=z.next().value;var u=_.r(z.next().value);z=u.next().value;var B=u.next().value;u=u.next().value;var h=0;if(!W)return 0;if(z===void 0)return 16;z&&(h|=1);z||(h|=2);B&&(h|=4);u&&(h|=8);return h}))};
UUf=function(A,H,k,d,W){var z=cal.timeThresholdMs;var u=u===void 0?new peN(H,d):u;return(new PX(function(B){var h=k.pipe(g5(void 0),LY(function(){return QVX(W)})).pipe(ZK(function(O){var T=O.value;
O=O.timestamp;var m=T.visible;T=T.consecutiveViewTime;var J=T>=z;J||!m?VC8(u):(O=Math.max(0,Wy(H.now(),O)),EUr(u,Math.max(0,z-T-O)));return J}),Je(function(O,T){return T||O},!1),xd()).subscribe(B);
return function(){u.dispose();h.unsubscribe()}})).pipe(vy(function(B){return!B},!0),cy(A))};
QVX=function(A){return fdf([A,A.pipe(HAl())]).pipe(ZK(function(H){var k=_.r(H);H=k.next().value;k=k.next().value;return{timestamp:H.timestamp,value:{visible:H.value,consecutiveViewTime:k.value}}}),xd(function(H,k){return I8(H,k,function(d,W){return d.consecutiveViewTime===W.consecutiveViewTime&&d.visible===W.visible})}))};
l5N=function(){return I4($Zm(),Je(function(A,H){return Math.max(A,H)},0),ZK(function(A){return Math.round(A)}))};
tCX=function(A){return I4(gUI(l1(A)),l5N())};
N0r=function(A,H){return H instanceof PX?H.pipe(LY(function(k){return(k=k?15:null)?t2(new eB(k)):A})):(H=H.value?15:null)?t2(new eB(H)):A};
MCf=function(A){var H=new eB(13);if(A.length<1)return{chain:sG,capturedErrors:sG};var k=new KY,d=A[0];return{chain:A.slice(1).reduce(function(W,z){return W.pipe(r5(function(u){k.next(u);return z}))},d).pipe(r5(function(W){k.next(W);
return t2(H)}),Ra(new KY),nV()),
capturedErrors:k}};
nUC=function(A,H){var k=A.pipe(Ra(new KY),nV());return LY(function(d){return k.pipe(H(d))})};
f5I=function(A,H){if(A.inCrossDomainIframe)return t2(new eB(6));var k=new KY;return kd(l1({}),H,k).pipe(ZK(function(){return{timestamp:A.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:ZAX(A),topWindowViewportExternalGeometry:bK(A,!0),measurementRequests:k,viewportLocalAppOffset:{x:0,y:0}}}}),aa(A.queue))};
ZAX=function(A){var H=bK(A,!1);if(!A.inIframe||!$xX(A.global.parent)||A.global.parent===A.global)return H;var k=new XE(A.global.parent,A.debugChannel);k.beaconFactory=A.beaconFactory;k=ZAX(k);A=A.global.frameElement.getBoundingClientRect();return UCl(lLX(UCl(k,A),{x:H.left-A.left,y:H.top-A.top}),H)};
weN=function(A){if(A.prerendering)return 3;var H;return(H={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[A.visibilityState||A.webkitVisibilityState||A.mozVisibilityState||""])!=null?H:0};
oUW=function(A){return A.document.JSC$9684_onVisibilityChange.pipe(ZK(function(H){return H==="visible"}),xd(),cy(A.queue))};
$Um=function(A,H,k){var d;return H.pipe(xd(),LY(function(W){return k.pipe(ZK(function(){if(!d){d=!0;try{W.next()}finally{d=!1}}return!0}))}),g5(!1),cy(A.queue))};
A3W=function(A){return I4(jB(ZK(function(H){return H>=1?!0:H<=0?!1:H>=A})),o3f(),ZK(function(H){return Math.round(H)}))};
sxI=function(A,H,k,d,W){var z=HZX;if(z.length>1)for(var u=0;u<z.length-1;u++)if(z[u]<z[u+1])throw Error();u=W.pipe(g5(void 0),LY(function(){return k.pipe(HAl())}),xd(),cy(A));
W=W.pipe(g5(void 0),LY(function(){return k.pipe(l5N())}),xd(),cy(A));
return{totalMeasurementTime:d.pipe(g5(void 0),LY(function(){return H.pipe(ZK(function(B){return{timestamp:B.timestamp,value:!0}}),o3f())}),xd(),cy(A)),
totalUnviewedTime:d.pipe(g5(void 0),LY(function(){return H.pipe(ZK(function(B){return{timestamp:B.timestamp,value:B.value===0}}),o3f())}),xd(),cy(A)),
maxTimeOnScreen:d.pipe(g5(void 0),LY(function(){return H.pipe(Aa8(tCX,z))}),xd(_.wI),cy(A)),
timeOnScreen:d.pipe(g5(void 0),LY(function(){return H.pipe(Aa8(A3W,z),ZK(function(B){return B.map(function(h,O){return O>0?h-B[O-1]:h})}))}),xd(_.wI),cy(A)),
maxConsecutiveViewTime:W,consecutiveViewTime:u.pipe(xd(I8),cy(A))}};
dPI=function(A){var H=!0;H=H===void 0?!1:H;return I4(LY(function(k){return kPI(A.document,k,H)}),cy(A.queue))};
WFr=function(A,H,k){var d=k.pipe(ZK(function(W){return{value:W,timestamp:A.timeProvider.now()}}),xd(I8));
return H instanceof PX?H.pipe(xd(),LY(function(W){return W?FE(new Q6({value:!1,timestamp:A.timeProvider.now()}),A.queue):d})):H.value===!1?d:new Q6(!1)};
zVv=function(A,H,k,d,W,z,u){var B=cal;H=H instanceof PX?H.pipe(g5(!1),xd()):H;var h=!A.isMobile();k=WFr(A,k,d);A=u.measurableCreative.pipe(Z$A(A.queue));return Object.assign({},B,{geometryIsOccluded:k,wasLargeAdAtRender:W,allowLargeAdThreshold:h,mayUseViewportShareExposure:H,hasMeasurementStarted:A,useIntersectionObserverV2:z})};
r3V=function(A,H,k,d,W,z){var u=1;z=z===void 0?!0:z;u=u===void 0?.01:u;var B=B===void 0?A.timeProvider.intervalObservable(100).pipe(cy(A.queue)):B;return A.performanceMonitor.timeExecution(916,function(){return qDr(A,H.pipe(aa(A.queue)),k.pipe(aa(A.queue)),d,W,z,u,B)})()};
qDr=function(A,H,k,d,W,z,u,B){var h=oUW(A).pipe(ZK(function(T){return!T})),O=new uQX(A,[new BjN(A,HZX),
new eVN(A,B)]);B=cwV(xP8,iZI);return G4r(A,H,function(T,m){var J=FE(new Q6(m.element),T.queue).pipe(dPI(T),cy(T.queue)),g={loadedElement:J,shouldMeasure:J.pipe(By(!0)),measurableCreative:J.pipe(ZK(function(p){var M=M===void 0?Symbol():M;return Object.freeze({symbol:M,element:FE(new Q6(p),T.queue)})})),
creativeSearchResult:FE(new Q6("mue"),T.queue)},v=new Q6(!1),y=new Q6(!1),X=new Q6(17),D=new Q6(!1),K=new Q6(!1),N=FE(DL,T.queue);v=O.buildGeometrySource(g,{inApp:v,useV2:!1,requestSource:FE(X,T.queue)}).geometrySource;g=zVv(T,D,y,h,K,N,g);y=a5I(T.queue,T.timeProvider,v,g);g=y.geometrySignals;D=y.shouldResetViewabilitySignals;y=sxI(T.queue,g.timestampedExposure,g.visible,y.shouldResetExposureSignals,D);D=UUf(T.queue,T.timeProvider,D,g.measurementRequests,g.visible);K=k.pipe(d5(function(p){return p===
m.element.ref}),ZK(function(){return"ur"}));
N=K_8(T.timeProvider,W).pipe(By("t"));K=mUC(T,kd(K,N));N=$Um(T,g.measurementRequests,K.pipe(d5(function(p){return p!==null})));
v=K.pipe(d5(function(p){return p!==null}),ZK(function(){return weN(T.global.document)===1}));
var U=hVb(T.document);return Object.assign({},{beaconFactory:new Q6(T.beaconFactory),context:new Q6(T),inferredPingId:new Q6("lidar2"),timeOnScreenPingId:new Q6("lidartos"),binaryContext:new Q6(17),binaryVersion:new Q6(d),requestSource:X,contextValidationErrors:new Q6(T.validate()?null:new xg),contextVisibilityKnown:new Q6(U),payloadMapper:new Q6(KMC),endOfSessionReason:K,timeOnScreenReason:K,requestMeasurementOnEndOfSession:N,hasImpressionFired:OZW,crossDomainIframeState:new Q6(T.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:DL,inFetchLaterBeaconExperiment:DL,isTurtlex:DL,turtlexReportEventData:new Q6(""),reportFencedFrameEvent:B4,isViewableAttributionEnabled:DL,inViewableAttributionExperiment:new Q6(0),fetchBeaconFactory:B4,supportsPendingBeacon:DL,supportsFetchLater:DL,emit:new Q6(Vvl),beginToRenderEvent:new Q6(Symbol()),activeViewUnmeasurableEvent:new Q6(Symbol()),activeViewViewableEvent:new Q6(Symbol()),creativeFound:OZW,immediateUrlPrefixes:new Q6(m.immediateUrls),timeOnScreenUrlPrefixes:new Q6(m.timeOnScreenUrls),
cpmavUrls:B4,viewableRelayUrls:B4,measurementDeferralState:new Q6(2),urlSerializer:new Q6(Mvr),viewUrlSerializer:new Q6(RVr),isCreativeLoaded:J.pipe(Z$A(T.queue)),pageVisible:h.pipe(ZK(function(p){return!p})),
eosPageVisible:v,timestampedExposureHistory:g.timestampedExposure.pipe(Je(function(p,M){p.push(M);return p},[]))},g,{viewable:GE(T,D),
maxTimeOnScreen:GE(T,y.maxTimeOnScreen),timeOnScreen:GE(T,y.timeOnScreen),maxConsecutiveViewTime:GE(T,y.maxConsecutiveViewTime),consecutiveViewTime:y.consecutiveViewTime.pipe(ZK(function(p){return new Yg(T.timeProvider,p)})),
totalMeasurementTime:GE(T,y.totalMeasurementTime),totalUnviewedTime:GE(T,y.totalUnviewedTime),userAgentClientHints:bCv(T),clientOrderPingCounter:new Q6(new XT8)})},adQ(A,u),pTX(z?Qsr(B,Tjb):Qsr(B,mP8),J3A))};
glX=function(A){var H=_.o7.apply(1,arguments).filter(Boolean).join("&");if(!H)return A;var k=A.match(/[?&]adurl=/);return k?A.slice(0,k.index+1)+H+"&"+A.slice(k.index+1):A+(A.indexOf("?")<0?"?":"&")+H};
SB=function(A,H){return H?"&"+A+"="+encodeURIComponent(H):""};
bZC=function(){try{var A,H;return!!((A=window)==null?0:(H=A.top)==null?0:H.location.href)&&!1}catch(k){return!0}};
_.CC=function(A){A&&typeof A.dispose=="function"&&A.dispose()};
_.KC=function(A){for(var H=0,k=arguments.length;H<k;++H){var d=arguments[H];_.Nv(d)?_.KC.apply(null,d):_.CC(d)}};
vlI=function(){var A=LFv();A=A===void 0?"bevasrsg":A;return new Promise(function(H){var k=window===window.top?window:bZC()?window:window.top,d=k[A],W;((W=d)==null?0:W.bevasrs)?H(new a8(d.bevasrs)):(d||(d={},d=(d.nqfbel=[],d),k[A]=d),d.nqfbel.push(function(z){H(new a8(z))}))})};
y3I=function(A){var H={c:A.sq,e:A.boM,mc:A.o1S,me:A.h9o};A.fD&&(H.co={c:A.fD.utr,a:A.fD.xcO,s:A.fD.dVc});return H};
jxr=function(A){var H,k,d={sq:A.c,boM:A.e,o1S:(H=A.mc)!=null?H:!1,h9o:(k=A.me)!=null?k:!1};A.co&&(d.fD={utr:A.co.c,xcO:A.co.a,dVc:A.co.s});return d};
IRQ=function(A){return function(){var H;return _.e(function(k){if(k.nextAddress==1)return k.yield(A(),2);H=k.yieldResult;return k.return({f:function(){return H.xzK()},
c:function(d){return H.ggY(d)},
m:function(d){return H.jS(jxr(d))},
mws:function(d){return H.zUM(jxr(d))}})})}};
YDV=function(A,H){var k=LFv();k=k===void 0?"bevasrsg":k;H={s:function(z){var u;return A.snapshot(Object.assign({},z.c&&{sq:z.c},z.s&&{sLA:z.s},{bJq:(u=z.p)!=null?u:!0}))},
e:function(z){var u;return void((u=A.kKX)==null?void 0:u.call(A,z))},
c:function(z,u){return A.jmM(z,u)},
p:A.sb6,l:function(){return A.r4r()},
wpc:H?IRQ(H):void 0};var d=window===window.top?window:bZC()?window:window.top,W=d[k];if(W){W.bevasrs=H;if(W.nqfbel!==void 0)for(k=_.r(W.nqfbel),d=k.next();!d.done;d=k.next())d=d.value,d(H);W.nqfbel=void 0}else W={},W=(W.bevasrs=H,W.nqfbel=void 0,W),d[k]=W};
GPm=function(A){var H=H===void 0?53:H;var k=[];_.c4(A,Ptr,6,_.pC()).forEach(function(d){_.QJ(d,2)<=H&&k.push(_.QJ(d,1))});
return k};
FFv=function(A){var H=H===void 0?53:H;var k=[];_.c4(A,Ptr,6,_.pC()).forEach(function(d){_.QJ(d,2)>H&&k.push(_.QJ(d,1))});
return k};
XIV=function(A){A.then(function(){},function(){})};
VJ=function(A){return{fieldType:1,fieldName:A}};
EI=function(A){return{fieldType:2,fieldName:A}};
_.UI=function(A){return{fieldType:3,fieldName:A}};
DPQ=function(){function A(){W[0]=1732584193;W[1]=4023233417;W[2]=2562383102;W[3]=271733878;W[4]=3285377520;T=O=0}
function H(m){for(var J=u,g=0;g<64;g+=4)J[g/4]=m[g]<<24|m[g+1]<<16|m[g+2]<<8|m[g+3];for(g=16;g<80;g++)m=J[g-3]^J[g-8]^J[g-14]^J[g-16],J[g]=(m<<1|m>>>31)&4294967295;m=W[0];var v=W[1],y=W[2],X=W[3],D=W[4];for(g=0;g<80;g++){if(g<40)if(g<20){var K=X^v&(y^X);var N=1518500249}else K=v^y^X,N=1859775393;else g<60?(K=v&y|X&(v|y),N=2400959708):(K=v^y^X,N=3395469782);K=((m<<5|m>>>27)&4294967295)+K+D+N+J[g]&4294967295;D=X;X=y;y=(v<<30|v>>>2)&4294967295;v=m;m=K}W[0]=W[0]+m&4294967295;W[1]=W[1]+v&4294967295;W[2]=
W[2]+y&4294967295;W[3]=W[3]+X&4294967295;W[4]=W[4]+D&4294967295}
function k(m,J){if(typeof m==="string"){m=unescape(encodeURIComponent(m));for(var g=[],v=0,y=m.length;v<y;++v)g.push(m.charCodeAt(v));m=g}J||(J=m.length);g=0;if(O==0)for(;g+64<J;)H(m.slice(g,g+64)),g+=64,T+=64;for(;g<J;)if(z[O++]=m[g++],T++,O==64)for(O=0,H(z);g+64<J;)H(m.slice(g,g+64)),g+=64,T+=64}
function d(){var m=[],J=T*8;O<56?k(B,56-O):k(B,64-(O-56));for(var g=63;g>=56;g--)z[g]=J&255,J>>>=8;H(z);for(g=J=0;g<5;g++)for(var v=24;v>=0;v-=8)m[J++]=W[g]>>v&255;return m}
for(var W=[],z=[],u=[],B=[128],h=1;h<64;++h)B[h]=0;var O,T;A();return{reset:A,update:k,digest:d,digestString:function(){for(var m=d(),J="",g=0;g<m.length;g++)J+="0123456789ABCDEF".charAt(Math.floor(m[g]/16))+"0123456789ABCDEF".charAt(m[g]%16);return J}}};
lK=function(A){this.JSC$9931_document_=A||{cookie:""}};
pI8=function(A,H){H=H===void 0?SDr:H;if(!CtW){var k;A=(k=A.navigator)==null?void 0:k.userAgentData;if(!A||typeof A.getHighEntropyValues!=="function"||A.brands&&typeof A.brands.map!=="function")return Promise.reject(Error("va"));KFI((A.brands||[]).map(function(W){var z=new aRr;z=_.qC(z,1,W.brand);return _.qC(z,2,W.version)}));
typeof A.mobile==="boolean"&&_.tj(c3X,2,A.mobile);CtW=A.getHighEntropyValues(H)}var d=new Set(H);return CtW.then(function(W){var z=c3X.clone();d.has("platform")&&_.qC(z,3,W.platform);d.has("platformVersion")&&_.qC(z,4,W.platformVersion);d.has("architecture")&&_.qC(z,5,W.architecture);d.has("model")&&_.qC(z,6,W.model);d.has("uaFullVersion")&&_.qC(z,7,W.uaFullVersion);return z.serialize()}).catch(function(){return c3X.serialize()})};
NC=function(A,H,k,d){this.initialValue_=A;this.maxValue_=H;this.currBaseValue_=this.currValue_=A;this.randomFactor_=k||0;this.backoffFactor_=d||2};
Vpb=function(A,H,k,d,W){this.listener=A;this.proxy=null;this.src=H;this.type=k;this.capture=!!d;this.handler=W;this.key=++Qxm;this.removed=this.callOnce=!1};
MC=function(A){this.src=A;this.listeners={};this.typeCount_=0};
tpf=function(){for(var A;A=ElA.remove();){try{A.fn.call(A.scope)}catch(H){dI(H)}UPV.put(A)}lRb=!1};
_.Njl=function(A){switch(A){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}};
Mpb=function(A){switch(A){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""}};
_.nlQ=function(){};
kiC=function(A,H,k,d){A=ZZI(fR8(wIQ(new _.nC(1828,"0"),A),new olC)).disableWithCredentials();H.length&&$PI(A,AnW(new HGl,H));d!==void 0&&(A.destinationUrl=d);var W=new sP8(1828,"","",!1,"",A.build());_.ZL(W,A);var z=new fC({flush:function(u){try{W.flush(u)}catch(B){k(B)}}});
z.addOnDisposeCallback(function(){setTimeout(function(){try{z.snapshotAndFlush()}finally{W.dispose()}})});
z.invocationLimit=1E5;z.flushInterval=3E4;z.JSC$10100_flushTimer.setInterval(3E4);return z};
wW=function(){var A,H,k;return(k=(A=globalThis.performance)==null?void 0:(H=A.now)==null?void 0:H.call(A))!=null?k:Date.now()};
zJf=function(A,H){if(A.disable)return new d4X;H=H?GPm(H):[];A={cu:A.cu,tSr:A.uZg,euo:A.thE,destinationUrl:A.destinationUrl,vsv:A.vsv,hVW:A.hVW};H=H===void 0?[]:H;return new WRI(A,H)};
qaN=function(A){if(!A)return null;A=_.o8(A,2);return A===null||A===void 0?null:k7(A)};
_.rnC=function(A){if(!A)return null;A=_.o8(A,4);return A===null||A===void 0?null:_.px(A)};
eJX=function(A,H){return H?uDI(H):A?B2W(A):Promise.resolve()};
uDI=function(A){return new Promise(function(H,k){var d=_.$g("SCRIPT"),W=_.rnC(A);_.h2(d,W);d.onload=function(){_.Aw(d);H()};
d.onerror=function(){_.Aw(d);k(Error("Ga"))};
(HT("HEAD")[0]||document.documentElement).appendChild(d)})};
B2W=function(A){return new Promise(function(H){var k=_.$g("SCRIPT");if(A){var d=_.o8(A,6);d=d===null||d===void 0?null:_.e_(d)}else d=null;_.i1(k,d);(HT("HEAD")[0]||document.documentElement).appendChild(k);_.Aw(k);H()})};
s9=function(A,H,k){var d,W=new Promise(function(z){d=setTimeout(z,H)});
return Promise.race([A.finally(function(){return void clearTimeout(d)}),
W.then(k)])};
x4W=function(A,H){try{return globalThis.sessionStorage.setItem(A,H),!0}catch(k){return!1}};
iGW=function(A,H,k,d){H=H===void 0?0:H;k=k===void 0?A.length:k;var W=0;for(d&&(W=iGW(d));H<k;H++)d=typeof A==="string"?A.charCodeAt(H):A[H],W=hJl(31,W)+d|0;return W};
OGI=function(A,H){return[iGW(A,0,A.length>>1,H),iGW(A,A.length>>1)]};
RJb=function(A){var H=_.r(OGI(A,k3));A=H.next().value;H=H.next().value;return A.toString(16)+H.toString(16)};
T2I=function(A,H){var k=OGI(H);A=new Uint32Array(A.buffer);H=A[0];var d=_.r(k);k=d.next().value;d=d.next().value;for(var W=1;W<A.length;W+=2){for(var z=H,u=W,B=k,h=d,O=0;O<22;O++)u=u>>>8|u<<24,u+=z|0,u^=B+38293,z=z<<3|z>>>29,z^=u,h=h>>>8|h<<24,h+=B|0,h^=O+38293,B=B<<3|B>>>29,B^=h;z=[z,u];A[W]^=z[0];W+1<A.length&&(A[W+1]^=z[1])}};
m4V=function(A,H,k,d,W){var z=(4-(k3.length+k.length)%4)%4,u=new Uint8Array(4+z+k3.length+4+k.length),B=new DataView(u.buffer),h=0;B.setUint32(h,Math.random()*4294967295);h=h+4+z;u.set(k3,h);h+=k3.length;B.setUint32(h,W);u.set(k,h+4);T2I(u,d);return A.insert(H,function(O){return void globalThis.sessionStorage.removeItem(O)})?x4W(H,_.ob(u))?"s":"t":"i"};
Jnr=function(A,H){var k=globalThis.sessionStorage.getItem(A);if(!k)return["m"];try{var d=_.$8(k);T2I(d,H)}catch(W){return globalThis.sessionStorage.removeItem(A),["c"]}for(H=4;H<7&&d[H]===0;)H++;for(k=0;k<k3.length;k++)if(d[H++]!==k3[k])return globalThis.sessionStorage.removeItem(A),["d"];k=(new DataView(d.buffer)).getUint32(H);return Math.floor(Date.now()/1E3)>=k?(globalThis.sessionStorage.removeItem(A),["e"]):["a",new Uint8Array(d.buffer,H+4)]};
g6N=function(A){return globalThis.TextEncoder?(new TextEncoder).encode(A):_.zf(A)};
bGb=function(A){var H=A,k;return function(){if(H){var d=H;H=void 0;k=d.apply(this,arguments)}return k}};
v6r=function(A){return ap(function(H){if(H instanceof A)return!0;var k,d,W=H==null?void 0:(k=H.ownerDocument)==null?void 0:(d=k.defaultView)==null?void 0:d[A.name];return LR8(W)&&H instanceof W})};
_.z4=function(A,H,k){_.dF.call(this);this.JSC$10315_listener_=A;this.JSC$10315_interval_=H||0;this.handler_=k;this.callback_=(0,_.WT)(this.JSC$10317_doAction_,this)};
_.qZ=function(A){_.dF.call(this);this.handler_=A;this.JSC$10318_keys_={}};
rF=function(){_.dF.call(this);this.services_={}};
ynI=function(){for(var A=10,H="";A-- >0;)H+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return H};
u5=function(A){_.dF.call(this);this.JSC$10338_domHelper_=A||zE()};
x3=function(A,H,k,d,W){u5.call(this,k);this.JSC$10341_channel_=A;this.protocolVersion_=W||2;this.peerHostname_=H||"*";this.JSC$10341_eventHandler_=new _.qZ(this);this.maybeAttemptToConnectTimer_=new _.BT(100,this.getWindow());this.oneSidedHandshake_=!!d;this.setupAckReceived_=new ev;this.setupAckSent_=new ev;this.JSC$10341_connected_=new ev;this.endpointId_=ynI();this.peerEndpointId_=null;this.oneSidedHandshake_?jPb(this.JSC$10341_channel_)==1?IqW(this.JSC$10341_connected_,this.setupAckReceived_):
IqW(this.JSC$10341_connected_,this.setupAckSent_):(IqW(this.JSC$10341_connected_,this.setupAckReceived_),this.protocolVersion_==2&&IqW(this.JSC$10341_connected_,this.setupAckSent_));YaN(this.JSC$10341_connected_,this.notifyConnected_,this);this.JSC$10341_connected_.callback(!0);this.JSC$10341_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.i5=function(A){A=PC8(A);return _.px(A)};
PC8=function(A){return A===null?"null":A===void 0?"undefined":A};
mM=function(A,H){rF.call(this);for(var k=0,d;d=Gim[k];k++)if(d in A&&!/^https?:\/\//.test(A[d]))throw Error("Sa`"+A[d]+"`"+d);this.cfg_=A;this.name=this.cfg_.cn||ynI();this.JSC$10342_domHelper_=H||zE();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.qZ(this);A.lpu=A.lpu||ZCC(this.JSC$10342_domHelper_.getWindow().location.href)+"/robots.txt";A.ppu=A.ppu||ZCC(A.pu||"")+"/robots.txt";hw[this.name]=this;FRv(window,"unload",X5X)||T4(window,"unload",X5X)};
Sam=function(A){if(A&&A.focus)if(A!==document.activeElement)A.focus();else return D4A(function(){return _.e(function(H){document.activeElement&&document.activeElement.blur();return H.return(D4A(function(){A.focus()}))})})};
_.CCm=function(A){var H=H===void 0?5:H;setTimeout(function(){var k;return _.e(function(d){d.nextAddress==1&&(k=document.activeElement);if(d.nextAddress!=5)return(document.activeElement===k||document.activeElement===document.body)&&H>=0&&A?d.yield(Sam(A),5):d.jumpTo(0);if(document.activeElement===A)return d.return();A=A.parentElement;--H;return d.jumpTo(2)})},15)};
D4A=function(A){return new Promise(function(H){requestAnimationFrame(function(){H(A())})})};
aq8=function(A){if(_.Jw)A(_.Jw);else{var H;((H=KRb)!=null?H:KRb=[]).push(A)}};
b5=function(){!_.Jw&&_.gF&&_.cn8(_.gF());return _.Jw};
_.cn8=function(A){_.Jw=A;var H;(H=KRb)==null||H.forEach(aq8);KRb=void 0};
_.L$=function(A){_.Jw&&_.Jw.beforeLoadModuleCode(A)};
_.vT=function(){_.Jw&&_.Jw.JSC$11378_setLoaded()};
yT=function(A){return l18(A)?Number(A):String(A)};
p5C=function(A){this.action=A;this.wfv=!1};
QPr=function(){};
Vif=function(A,H){p5C.call(this,"set-drive-options");this.appId=A;this.appOrigin=H};
E6A=function(A){p5C.call(this,"visibility");this.visible=A};
U4I=function(A,H){H?A.setAttribute("role",H):A.removeAttribute("role")};
jv=function(A,H,k){Array.isArray(k)&&(k=k.join(" "));var d="aria-"+H;k===""||k==void 0?(lql||(k={},lql=(k.atomic=!1,k.autocomplete="none",k.dropeffect="none",k.haspopup=!1,k.live="off",k.multiline=!1,k.multiselectable=!1,k.orientation="vertical",k.readonly=!1,k.relevant="additions text",k.required=!1,k.sort="none",k.busy=!1,k.disabled=!1,k.hidden=!1,k.invalid="false",k)),k=lql,H in k?A.setAttribute(d,k[H]):A.removeAttribute(d)):A.setAttribute(d,k)};
fqC=function(A,H){var k=tir++,d={measureTask:{id:k,fn:A.measure,context:H},mutateTask:{id:k,fn:A.mutate,context:H},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(d.args||(d.args=[]),d.args.length=0,d.args.push.apply(d.args,arguments),d.args.push(d.state)):d.args&&d.args.length!=0?(d.args[0]=d.state,d.args.length=1):d.args=[d.state];d.isScheduled||(d.isScheduled=!0,N2r[Miv].push(d));n6X||(n6X=!0,window.requestAnimationFrame(ZGV))}};
ZGV=function(){n6X=!1;var A=N2r[Miv],H=A.length;Miv=(Miv+1)%2;for(var k,d=0;d<H;++d){k=A[d];var W=k.measureTask;k.isScheduled=!1;W.fn&&W.fn.apply(W.context,k.args)}for(d=0;d<H;++d)k=A[d],W=k.mutateTask,k.isScheduled=!1,W.fn&&W.fn.apply(W.context,k.args),k.state={};A.length=0};
PT=function(A){_.Is.call(this);this.JSC$10474_element_=A;this.listenKeyIn_=_.Y3(this.JSC$10474_element_,"focus",this,!0);this.listenKeyOut_=_.Y3(this.JSC$10474_element_,"blur",this,!0)};
w5r=function(A,H){this.JSC$10477_element_=A;this.JSC$10477_dom_=H};
Fa=function(A,H){G4.call(this,H);this.useIframeMask_=!!A;this.lastFocus_=null;this.resizeBackgroundTask_=fqC({mutate:this.resizeBackground_},this);fqC({mutate:this.updateModalAndBackground_},this)};
Dd=function(A,H,k){Fa.call(this,H,k);this.JSC$10487_class_=A||"modal-dialog";this.buttons_=(new Xa).addButton(o6C,!0).addButton($4v,!1,!0)};
Afr=function(A,H,k){Dd.call(this,A,H,k)};
H5I=function(A){Sv.call(this,A)};
sEV=function(A){A=A&&A.getWindow()||window;return A.gadgets&&A.gadgets.rpc};
dGl=function(A,H){var k=H&&H.getWindow()||window;if(sEV(H))A();else if(kZW)kZW.push(A);else var d=kZW=[A],W=k.setInterval(function(){if(sEV(H)){k.clearInterval(W);for(var z=0;z<d.length;z++)d[z]();kZW=null}},100)};
zXX=function(A,H){var k=new C$(A);_.ZL(H,k);var d={passive:!1};H.listen(k,"mousewheel",function(W){return void WSb(A,W)},d).listen(A,"scroll",function(W){return void WSb(A,W)},d)};
WSb=function(A,H){var k;a:{for(k=H.target;k;){if(k.nodeType==1){var d=_.K$(k,"overflowY");if(d=="auto"||d=="scroll")break a}k=k.parentNode}k=null}if(!k||!_.as(A,k)||k.scrollHeight==k.clientHeight||H.deltaY>0&&Math.abs(k.scrollTop-(k.scrollHeight-k.clientHeight))<=1||H.deltaY<0&&k.scrollTop==0)H.preventDefault(),H.stopPropagation()};
qYr=function(){var A;if(A=A===void 0?window:A)return A!==A.parent&&A.hasOwnProperty("pangolinIframeGlobals");var H=Error("gb");setTimeout(function(){throw H;},1);
return!1};
tw=function(A,H,k,d,W,z,u,B,h,O){B=B===void 0?!1:B;h=h===void 0?!1:h;O=O===void 0?!1:O;Dd.call(this,void 0,void 0,void 0);Dd.call(this,z?z+" picker modal-dialog":"picker modal-dialog",!0,k);_.H4(A,"protocol");this.iframeManager_=new rfI;this.targetId_=cT();this.rpcToken_=cT();A=_.p$(A);_.QT(A,"hostId");this.useGapi_=!h&&!qYr();B&&_.VT(A,"fv2","true");this.setUrl(A.toString());this.preferredDialogWidth_=d;this.preferredDialogHeight_=W;d!==void 0||W!==void 0?d=!0:(d=_.QT(_.p$(A.toString()),"hostId"),
uZf||(uZf=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),d=!uZf.has(d));this.autoSizeDialog_=d;this.JSC$10505_gadgetsDomHelper_=u||this.JSC$10456_dom_;this.JSC$10505_enablePopover_=O;H&&(u=this.JSC$10505_gadgetsDomHelper_,H=_.QT(_.p$(this.JSC$10507_url_),"grugl")=="true"?Ber:eXV,sEV(u)||(u=u||zE(document),O=u.createElement("SCRIPT"),_.h2(O,H),O.type="text/javascript",u.JSC$9639_document_.body.appendChild(O)));
A=A.toString();H=null;u=A.indexOf("/picker?");u>-1?H=A.substring(0,u+8-1):uI(A,"/picker")&&(H=A);H&&this.setRelayUrl(H+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(A=this.buttons_,A.JSC$10490_element_=this.buttonEl_,A.render()):_.ON(this.buttonEl_,xGW),_.U9(this.buttonEl_,!!this.buttons_))};
RXI=function(A,H){A.name!==void 0?(this.name=A.name,this.code=i5X[A.name]):(this.code=A=A.code,this.name=hXC(A));_.AA.call(this,O5l("%s %s",this.name,H))};
Tef=function(A,H){_.NZ.call(this,A.type,H);this.event_=A};
_.b5l=function(A){var H=H===void 0?mGV:H;var k=_.fl(A),d=function(z){z=_.r(z);z.next();z=MZ(z);return H(k,z)},W=function(z){var u=_.r(z);
z=u.next().value;u=MZ(u);return A.apply(z,u)};
return function(){var z=_.o7.apply(0,arguments),u=this||_.k8,B=Jff.get(u);B||(B={},Jff.set(u,B));return ghV(B,[this].concat(_.fV(z)),W,d)}};
n$=function(A){var H={};A=A.replace(/\r/g,"").split("\n");for(var k=0;k<A.length;k++){var d=A[k],W=d.indexOf(":");W<0||(H[d.substring(0,W)]=d.substring(W+2,d.length))}return H};
jEl=function(A,H){H.id||(H.id="ow"+_.fl(H));A.setAttribute("jsowner",H.id);A.__owner=H;var k=_.Jj(H,LSQ);k&&(vhf.has(k)||vhf.set(k,[]),vhf.get(k).push(A));(k=yfl.get(H))||yfl.set(H,k=[]);k.includes(A)||k.push(A);H.setAttribute("__IS_OWNER",!0)};
LSQ=function(A){return _.Zd(A)?A.getAttribute("jsname")==="coFSxe":!1};
I$C=function(A,H,k){k=k===void 0?function(){}:k;
return A?H():k()};
_.PZX=function(A){var H;return((H=YYI.documentOverride)!=null?H:A).__wizdispatcher};
wF=function(A){var H=f$;f$=A;return H};
FS8=function(A){return A===GZI||(A==null?void 0:A.name)==="\u0275NotFound"};
$3=function(A,H){var k;if((k=A)==null?0:k.isDisposed)throw Error("lb`"+String(A.debugName));for(;A!==void 0;){k=A;if(k.retrieve)return k.retrieve(H,{optional:!0});A=A.parent}return GZI};
Aa=function(A){return{"\u0275prov":{providedIn:"root",token:Symbol(A),factory:void 0,value:void 0}}};
XLr=function(A){var H=f$;if(!H){switch(A===void 0?3:A){case 0:A=Error("kb");break;case 1:A=Error("mb");break;case 2:A=Error("nb");break;default:A=Error("ob")}throw A;}return H};
DGr=function(A){var H=wF(A);A={};return A[Symbol.dispose]=function(){wF(H)},A};
KSQ=function(){var A=XLr(1),H=$3(A,SYC);if(!FS8(H))return H;A=$3(A,CZX);if(!FS8(A))return A.getOptionalAppContext()};
pLW=function(){var A=XLr(1);A=$3(A,a$v);if(!(FS8(A)||A[cfb]&&!A.__hasBeenSet))return A.value};
QEC=function(A,H){H.nextDisposable=void 0;A.tailDisposable?A.tailDisposable.nextDisposable=H:A.childDisposable=H;A.tailDisposable=H};
VFr=function(A,H){var k={};QEC(A,(k[Symbol.dispose]=H,k))};
He=function(A){var H=f$;H&&!H.isDisposed&&(QEC(H,A),A.parent=H)};
UGb=function(A){for(var H=A.childDisposable;H;){var k=H.nextDisposable;Ehm(H);H=k}A.childDisposable=void 0;A.tailDisposable=void 0};
Ehm=function(A){if(!A.isDisposed){A.isDisposed=!0;var H;(H=A[Symbol.dispose])==null||H.call(A);delete A.parent;UGb(A)}};
Z5b=function(A){var H={retrieve:function(k){switch(k.\u0275prov.token){case l$N.\u0275prov.token:var d=A.asyncDeps;break;case a$v.\u0275prov.token:d=A.rootElement;break;case tFI.\u0275prov.token:d=A.modelRootElement;break;case SYC.\u0275prov.token:d=A.appContext;break;case Ne8.\u0275prov.token:d=A.rendererData;break;case MFI.\u0275prov.token:d=A.injectingConstructor;break;case CZX.\u0275prov.token:d=A.dispatcher}if(d)k=d;else a:{for(d=H.parent;d;){var W=d;if(W.retrieve){k=W.retrieve(k);break a}d=
d.parent}d=k.\u0275prov.token;W=nhN[d];W!==void 0?k=W:(W=k.\u0275prov.providedIn,k.\u0275prov.factory?(k=k.\u0275prov.factory(),d&&W==="root"&&(nhN[d]=k)):k=GZI)}return k}};
He(H);return H};
f$I=function(A){if(typeof document!=="undefined"&&document&&document.getElementById&&(A=document.getElementById(A))){var H=A.tagName.toUpperCase();if(H=="SCRIPT"||H=="LINK")return A}return null};
ohf=function(A,H){if((A=A===void 0?"":A)&&H)throw Error("ub");var k="";var d=_.k8._F_jsUrl;(A=H||f$I(A))&&(k=A.src?A.src:A.getAttribute("href"));if(d&&k){if(d!=k)throw Error("vb`"+d+"`"+k);k=d}else k=d||k;if(!wLN(k))throw Error("wb");return k};
s3l=function(){if(!$GQ){$GQ=!0;try{var A=ohf(_.k8._F_jsUrl?"":"base-js")}catch(d){return}var H=Abr(HTV(A)),k=Object.keys(H);k.length!==0&&aq8(function(d){for(var W=_.r(k),z=W.next();!z.done;z=W.next()){z=z.value;for(var u=_.r(Object.keys(H[z])),B=u.next();!B.done;B=u.next())d.addExtraEdge(z,B.value)}})}};
dVr=function(){var A=Object.assign({},kgf);Object.getOwnPropertyNames(kgf).forEach(function(H){si[H]!==void 0&&(A[H]=si[H])});
return A};
WaC=function(A,H){if(si.enablePerformanceTiming){var k,d;(d=(k=performance).mark)==null||d.call(k,A+"Start__"+H)}};
zUX=function(A,H){if(si.enablePerformanceTiming){var k,d;(d=(k=performance).measure)==null||d.call(k,A+"__"+H,A+"Start__"+H)}};
qvb=function(A,H,k){var d;return A&&H?A+"__"+H:(d=A!=null?A:H)!=null?d:k};
uWI=function(A){var H=Object.create(rbv);H.debugName=A;!f$||He(H);return H};
B_b=function(A,H){var k=uWI(H);H=wF(k);try{A(k)}finally{wF(H)}return function(){return void Ehm(k)}};
xVA=function(A){return kU(A)&&eUN in A};
iTI=function(A){for(A=A===void 0?f$:A;A;){if(xVA(A))return A;var H=void 0;A=(H=A.parent)!=null?H:null}return null};
hUv=function(A,H){return Object.is(A,H)};
zW=function(A){var H=We;We=A;return H};
RUA=function(A){if(qU)throw Error("$");if(We!==null){var H=We.producersTail;if(H===void 0||H.producer!==A){var k=void 0,d=We.recomputing;if(d&&(k=H!==void 0?H.nextProducer:We.producers,k!==void 0&&k.producer===A)){We.producersTail=k;k.lastReadVersion=A.version;return}var W=A.consumersTail,z;if(!(z=W===void 0||W.consumer!==We)){if(d){a:{z=We;d=z.producersTail;if(d!==void 0){z=z.producers;do{if(z===W){d=!0;break a}if(z===d)break;z=z.nextProducer}while(z!==void 0)}d=!1}d=!d}z=d}z&&(d=r0(We),k={producer:A,
consumer:We,nextProducer:k,prevConsumer:W,lastReadVersion:A.version,nextConsumer:void 0},We.producersTail=k,H!==void 0?H.nextProducer=k:We.producers=k,d&&OTf(A,k))}}};
xU=function(A){if(!r0(A)||A.dirty)if(A.dirty||A.lastCleanEpoch!==eC)(A.producerMustRecompute(A)||T_b(A))&&A.producerRecomputeValue(A),A.dirty=!1,A.lastCleanEpoch=eC};
mVr=function(A){if(A.consumers!==void 0){var H=qU;qU=!0;try{for(var k=A.consumers;k!==void 0;k=k.nextConsumer){var d=k.consumer;d.dirty||(A=void 0,d.dirty=!0,mVr(d),(A=d.consumerMarkedDirty)==null||A.call(d,d))}}finally{qU=H}}};
JbI=function(){var A;return((A=We)==null?void 0:A.consumerAllowSignalWrites)!==!1};
gJQ=function(A){A&&(A.producersTail=void 0,A.recomputing=!0);return zW(A)};
LaI=function(A){A.recomputing=!1;var H=A.producersTail,k=H!==void 0?H.nextProducer:A.producers;if(k!==void 0){if(r0(A)){do k=bTC(k);while(k!==void 0)}H!==void 0?H.nextProducer=void 0:A.producers=void 0}};
T_b=function(A){for(A=A.producers;A!==void 0;A=A.nextProducer){var H=A.producer,k=A.lastReadVersion;if(k!==H.version)return!0;xU(H);if(k!==H.version)return!0}return!1};
OTf=function(A,H){var k=A.consumersTail,d=r0(A);k!==void 0?(H.nextConsumer=k.nextConsumer,k.nextConsumer=H):(H.nextConsumer=void 0,A.consumers=H);H.prevConsumer=k;A.consumersTail=H;if(!d)for(A=A.producers;A!==void 0;A=A.nextProducer)OTf(A.producer,A)};
bTC=function(A){var H=A.producer,k=A.nextProducer,d=A.nextConsumer,W=A.prevConsumer;A.nextConsumer=void 0;A.prevConsumer=void 0;d!==void 0?d.prevConsumer=W:H.consumersTail=W;if(W!==void 0)W.nextConsumer=d;else if(H.consumers=d,!r0(H))for(A=H.producers;A!==void 0;)A=bTC(A);return k};
r0=function(A){return A.consumerIsAlwaysLive||A.consumers!==void 0};
ybC=function(A){var H=Object.create(vJb);H.computation=A;A=function(){xU(H);RUA(H);if(H.value===ie)throw H.error;return H.value};
A[ha]=H;return A};
Plf=function(A,H){var k=Object.create(j3I);k.value=A;H!==void 0&&(k.equal=H);A=function(){RUA(k);return k.value};
A[ha]=k;return[A,function(d){return I78(k,d)},
function(d){JbI()||Yvl(k);I78(k,d(k.value))}]};
I78=function(A,H){JbI()||Yvl(A);if(!A.equal(A.value,H)){A.value=H;A.version++;eC++;mVr(A);var k;(k=Ggm)==null||k(A)}};
Xq8=function(A,H,k){var d=Object.create(Fam);d.source=A;d.computation=H;k!=void 0&&(d.equal=k);A=function(){xU(d);RUA(d);if(d.value===ie)throw d.error;return d.value};
A[ha]=d;return A};
_.Oi=function(A){var H=zW(null);try{return A()}finally{zW(H)}};
DVv=function(A,H){WaC("signalSet",H.debugName);try{A()}finally{zUX("signalSet",H.debugName)}};
SvV=function(A,H,k){A=Plf(A,H.equals);var d=A[0],W=d[ha];W.debugName=qvb(H.debugName,k,"[signal]");if(!si.enablePerformanceTiming)return A;var z=A[1],u=A[2];return[d,function(B){DVv(function(){return void z(B)},W)},
function(B){DVv(function(){return void u(B)},W)}]};
_.RV=function(A,H,k){return SvV(A,H!=null?H:{},k===void 0?"":k)};
Ka8=function(A,H){var k=_.r(_.RV(A,void 0,"cPpJzc"));A=k.next().value;k=k.next().value;A[ClQ]=k;A[TW]=H;return A};
dof=function(A){return!!A&&typeof A==="object"&&Object.getPrototypeOf(A)===Object.prototype};
Wbm=function(A){return typeof A==="function"&&ClQ in A&&typeof A[ClQ]==="function"};
zjQ=function(A){if(mt(A))return A.map(function(W){return zjQ(W)});
if(dof(A)){var H={};A=_.r(Object.entries(A));for(var k=A.next();!k.done;k=A.next()){var d=_.r(k.value);k=d.next().value;d=d.next().value;H[k]=zjQ(d)}return H}return Wbm(A)?A():A};
qZl=function(A,H){Object.defineProperty(A,TW,{get:function(){return H}})};
Ja=function(A,H){if(mt(A)){var k=A.map(function(z){return Ja(z,H)});
qZl(k,H);return k}if(dof(A)){k={};A=_.r(Object.entries(A));for(var d=A.next();!d.done;d=A.next()){var W=_.r(d.value);d=W.next().value;W=W.next().value;k[d]=Ja(W,H)}qZl(k,H);return k}return Ka8(A,H)};
uF8=function(){var A={height:0,width:0};if(!dof(A))throw Error("Lb");var H=Symbol("Mb");return[Ja(A,H),function(k,d){if(k[TW]===H)if(typeof d==="function"){var W=[].concat(_.fV(zjQ(k)));d=d(W)||W;rMQ(k,[].concat(_.fV(d)))}else rMQ(k,d);else throw Error("Nb");}]};
rMQ=function(A,H){if(Wbm(A))A[ClQ](H);else if(mt(A)&&mt(H))H=Ja(H,A[TW]),A.length=0,A.push.apply(A,_.fV(H));else if((dof(A)||mt(A))&&(mt(H)||typeof H==="object"&&H!==null)){H=_.r(Object.entries(H));for(var k=H.next();!k.done;k=H.next()){var d=_.r(k.value);k=d.next().value;d=d.next().value;var W=A,z=W[k];Object.hasOwn(A,k)?rMQ(z,d):W[k]=Ja(d,A[TW])}}else throw Error("Ob");};
Bol=function(A){return Object.create(Object.assign({},g0,A))};
xor=function(){var A;return(A=ejC)!=null?A:ejC=Bol({consumerAllowSignalWrites:!0})};
_.be=function(A,H,k){k=k===void 0?"":k;A=ybC(A);var d=A[ha];d.debugName=qvb(H==null?void 0:H.debugName,k,"[computed]");(H==null?void 0:H.equals)!=null&&(d.equal=H.equals);return A};
LA=function(A){var H=zW(iPr);try{A()}finally{zW(H)}};
hjl=function(A){return kU(A)&&A.name!==void 0&&A.isReactive!==void 0&&A.parent!==void 0};
RjN=function(A,H,k){var d=OP8(A);ve={name:k?d+" ("+k+")":d,isReactive:A.componentType!==yM,parent:ve};A=H();ve=ve.parent;return A};
jC=function(){var A=ve;return A?A.isReactive:!1};
YU=function(A,H,k){var d=ve;H&&(ve=H);try{return k==null?A():A.call(k)}catch(z){A=z;IV(A,ve);if(A!==ToA){mob=ve;H=[];for(k=f$;k;){var W=void 0;H.push((W=k.debugName)!=null?W:"[context]");W=void 0;k=(W=k.parent)!=null?W:null}JM8=H.reverse()}ToA=A;throw A;}finally{ve=d}};
IV=function(A,H){try{var k=gYV(H);if(k&&!A.componentStack&&(A.componentStack=k,si.enableComponentStacksInErrorMessages)){var d=A.message+"\n\nComponent stack: "+k;A.stack&&(A.stack=A.stack.replace(A.message,d));A.message=d}}catch(W){}};
bPr=function(A){for(var H=0,k="";H<20&&A;)k+="$$XID:"+A.name+"$$ > ",A=A.parent,H++;return k.slice(0,-3)};
gYV=function(A){return hjl(A)||A===null?bPr(A):si.enableContextBasedComponentStacks?iTI(A).getComponentStack().slice(0,20).map(function(H){return"$$XID:"+H+"$$"}).join(" > "):""};
OP8=function(A){return A.debugName||A.name||"[component]"};
IcA=function(A){switch(A.onInitType){case LbC:vYW.schedule(A);break;case yMr:si.enableQueueEffectAndOnInitInitialRuns?j0I.enqueue(A):j0I.schedule(A);break;default:_.HR(A.onInitType)}};
Do8=function(A){if(!A.isDisposed)switch(A.effectType){case Pe:YZQ.schedule(A);break;case PoX:GbA.schedule(A);break;case Fbf:si.enableQueueEffectAndOnInitInitialRuns||A.version!==0?XuW.enqueue(A):XuW.schedule(A);break;default:_.HR(A.effectType)}};
KbC=function(){if(FC>0)si.flushRenderEffectsDuringRender&&YZQ.flush();else{for(var A=_.r(SZC),H=A.next();!H.done;H=A.next())H.value.flush();CoA()}};
CoA=function(){_.e(function(A){if(A.nextAddress==1)return A.yield(Promise.resolve(),2);for(var H=_.r(acb),k=H.next();!k.done;k=H.next())k.value.flush();_.EN(A)})};
puW=function(A){XC=!0;try{for(var H=_.r(A),k=H.next();!k.done;k=H.next()){for(var d=k.value,W=[d],z=d;z.parent!==void 0;)z=z.parent,cMQ(z)&&A.has(z)&&W.push(z);for(;W.length>0;){var u=W.pop();A.delete(u);u.run()}}}finally{XC=!1}};
D5=function(A){FC--;if(A){A=_.r(Q0r);for(var H=A.next();!H.done;H=A.next())H.value.clear()}else FC>0||XC&&!si.flushRenderEffectsDuringRender||KbC()};
V8r=function(A,H,k){A=Object.create(A);H&&(A.fn=H);k&&(A.debugName=k);He(A);A.componentStack=ve;return A};
EYQ=function(A){if(!A.isDisposed){if(qU)throw Error("Sb");var H=wF(A);WaC("effectRun",A.debugName);try{YU(function(){A.dirty=!1;if(!(A.version>0)||T_b(A)){A.version++;var k=gJQ(A);try{A.cleanup(),A.fn()}finally{zW(k),A&&LaI(A)}}},A.componentStack,A)}catch(k){throw si.enableContextBasedComponentStacks&&IV(k),k;
}finally{zUX("effectRun",A.debugName),wF(H)}}};
_.SC=function(A,H){A=V8r(Uov,A,H);Do8(A)};
_.CA=function(A,H){A=V8r(lcI,A,H);Do8(A)};
t8X=function(A){return A};
Nob=function(A,H,k){function d(){return W()}
k=k===void 0?"":k;var W=typeof A==="function"?Xq8(A,t8X,H==null?void 0:H.equals):Xq8(A.source,A.computation,H==null?void 0:H.equals);var z=W[ha];z.debugName=qvb(H==null?void 0:H.debugName,k,"[linkedSignal]");d[ha]=z;return[d,function(u){DVv(function(){xU(z);I78(z,u);z.dirty=!1;z.lastCleanEpoch=eC},z)},
function(u){DVv(function(){xU(z);JbI()||Yvl(z);I78(z,u(z.value));z.dirty=!1;z.lastCleanEpoch=eC},z)}]};
_.aV=function(A){var H=f$;if(H){var k=ve;VFr(H,function(){var d=zW(xor());try{YU(function(){return void A()},k)}catch(W){throw si.enableContextBasedComponentStacks&&IV(W),W;
}finally{zW(d)}})}};
ce=function(A,H){var k={};(H===void 0||H)&&He(k);H=wF(k);try{A(k)}finally{wF(H)}return function(){return void Ehm(k)}};
_.pA=function(A){return typeof A==="function"?A():(A==null?0:A[M8C])?A.get():A};
nYb=function(A){if(f$)throw Error("pb");ce(A,!1)};
QM=function(A,H){A=wF(A);try{return _.Oi(H)}finally{wF(A)}};
VM=function(A,H){var k=gYV(mob),d,W;var z=(W=(d=JM8)==null?void 0:d.slice())!=null?W:[];H={componentStack:k,contextTrace:z,errorSeverity:3,featureFlags:dVr(),tagName:H};return[A,H]};
wuI=function(A,H,k){if(Object.hasOwnProperty.call(ZPW,A)&&(A=ZPW[A],Object.hasOwnProperty.call(A,H)&&(A=A[H],A instanceof Array))){for(var d=null,W=!1,z=0,u=A.length;z<u;++z){var B=A[z],h=B.contingentAttribute;if(!h)return B.contract;d===null&&(d={});h=Object.hasOwnProperty.call(d,h)?d[h]:d[h]=k(h);if(h===B.requiredValue)return B.contract;h==null&&(W=!0)}if(W)return null}H=fcl[H];return typeof H==="number"?H:null};
AWX=function(A,H,k){var d=null;(A=oYm[A])&&(d=A[H]);return typeof d!=="number"&&((A=oYm["*"])&&(d=A[H]),typeof d!=="number")?!1:!0===$ol[d][String(k).toLowerCase()]};
s1I=function(A,H){H=wuI(A.toLowerCase(),H,function(){var d;(d=si.handleError)==null||d.call.apply(d,[si].concat(_.fV(VM(Error("Vb"),A.toLowerCase()))))});
if(H===null)return null;var k;return(k=H2I[H])!=null?k:null};
kyN=function(A,H,k){if(k===null||k===void 0)return k;H=H.toLowerCase();A=s1I(A,H);return A===null?k:A(H,k)};
zpA=function(A){var H=dnr,k=A,d="",W="",z=1;A<0&&(A=-A);if(A===Infinity)A=(Infinity*Math.sign(k)).toString();else{for(var u=0;u<WVI.length;u++){var B=WVI[u];z=H[B];if(A>=z||z<=1&&A>.1*z){d=B;break}}d?(d+="B",W=" "):z=1;A=Math.round(k/z*10)/10+W+d}return A};
q3V=function(){};
rWr=function(A,H){for(;A.length>H;)A.pop()};
uL8=function(A){A=Array(A);rWr(A,0);return A};
Ei=function(A,H,k){if(k==null)A.removeAttribute(H);else{var d;(d=H.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":H.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?A.setAttributeNS(d,H,k):A.setAttribute(H,k)}};
epV=function(A,H,k){A=A.style;if(typeof k==="string")A.cssText=k;else{A.cssText="";for(var d in k)if(BYv.call(k,d)){H=A;var W=d,z=k[d];W.indexOf("-")>=0?H.setProperty(W,z):H[W]=z}}};
xnW=function(A,H,k){var d=typeof k;d==="object"||d==="function"?A[H]=k:Ei(A,H,k)};
i2X=function(){var A=new q3V;A[Ui.default]=xnW;A.style=epV;return A};
hpr=function(A,H,k,d){(d[H]||d[Ui.default])(A,H,k)};
RpN=function(A,H,k){H=new O2l(H,k);return A.__incrementalDOMData=H};
TYA=function(A,H){if(A.__incrementalDOMData)return A.__incrementalDOMData;var k=A.nodeType===1?A.localName:A.nodeName,d=A.nodeType===1?A.getAttribute("key"):null;H=RpN(A,k,A.nodeType===1?d||H:null);if(A.nodeType===1&&(A=A.attributes,k=A.length)){d=H._attrsArr||(H._attrsArr=uL8(k*2));for(var W=0,z=0;W<k;W+=1,z+=2){var u=A[W],B=u.value;d[z]=u.name;d[z+1]=B}}return H};
mnX=function(A,H,k,d,W){return H==k&&d==W};
JWv=function(A){for(var H=le,k=ta();k!==A;){var d=k.nextSibling;H.removeChild(k);NU.deleted.push(k);k=d}};
ta=function(){return MU?MU.nextSibling:le.firstChild};
nA=function(){MU=ta()};
LVX=function(A,H){nA();var k;a:{if(k=MU){do{var d=k,W=A,z=H,u=TYA(d,z);if(gkm(d,W,u.nameOrCtor,z,u.key))break a}while(H&&(k=k.nextSibling))}k=null}k||(A==="#text"?(A=Z5.createTextNode(""),RpN(A,"#text",null)):(k=Z5,d=le,typeof A==="function"?k=new A:k=(d=A==="svg"?"http://www.w3.org/2000/svg":A==="math"?"http://www.w3.org/1998/Math/MathML":d==null||TYA(d).nameOrCtor==="foreignObject"?null:d.namespaceURI)?k.createElementNS(d,A):k.createElement(A),RpN(k,A,H),A=k),NU.created.push(A),k=A);A=k;if(A!==
MU){if(b2A.indexOf(A)>=0)for(H=le,k=A.nextSibling,d=MU;d!==null&&d!==A;)W=d.nextSibling,H.insertBefore(d,k),d=W;else le.insertBefore(A,MU);MU=A}};
vkC=function(A,H){LVX(A,H);le=MU;MU=null;return le};
yWm=function(){JWv(null);MU=le;le=le.parentNode};
Y3b=function(A,H){H=H===void 0?{}:H;var k=H.matches===void 0?mnX:H.matches;return function(d,W,z){var u=NU,B=Z5,h=b2A,O=fA,T=MU,m=le,J=gkm;Z5=d.ownerDocument;NU=new j1A(d);gkm=k;fA=[];MU=null;var g=le=d.parentNode,v,y=I6V.call(d);if((v=y.nodeType===11||y.nodeType===9?y.activeElement:null)&&d.contains(v)){for(y=[];v!==g;)y.push(v),v=v.parentNode||(g?v.host:null);g=y}else g=[];b2A=g;try{return A(d,W,z)}finally{d=NU,w0&&d.deleted.length>0&&w0(d.deleted),Z5=B,NU=u,gkm=J,fA=O,MU=T,le=m,b2A=h}}};
PgI=function(A,H,k,d){oV.push(hpr);oV.push(A);oV.push(H);oV.push(k);oV.push(d)};
Gyl=function(A){LVX("#text",null);var H=MU;var k=TYA(H);if(k.text!==A){k=k.text=A;for(var d=1;d<arguments.length;d+=1)k=(0,arguments[d])(k);H.data!==k&&(H.data=k)}};
a6C=function(A,H,k){if(k===!1&&FVN.has(H))Ei(A,H,null);else if(H!=="idomKey"&&H!=="skip"&&H!=="skipchildren"&&H!=="children"&&H!=="el")if(H.startsWith("on")){if(H[2]!==":")throw Error("Ub`"+H);if(k===void 0||k===null){var d;(d=si.handleError)==null||d.call.apply(d,[si].concat(_.fV(VM(Error("Zb`"+H),A.tagName))));A[H]=void 0}else{var W=H.slice(3);d=jC();if(W==="jsaction"){k=Array.isArray(k)?k:[k];k=_.r(k);for(var z=k.next();!z.done;z=k.next()){z=z.value;if(typeof z!=="object"||z===null||typeof z.selfReg!==
"function")throw Error("bc`"+H);z.selfReg(0,A,d?_.aV:function(){})}}else{if(typeof k!=="object"||k===null)throw Error("$b`"+H+"`"+typeof k);
if(typeof k.getFn!=="function")throw Error("ac`"+H+"`"+Object.keys(k));if(k.selfReg)k.selfReg(0,A,W,d?_.aV:function(){});
else if(d&&A["on"+W]===void 0){var u=k.getFn(0);A.addEventListener(W,u);_.aV(function(){return void A.removeEventListener(W,u)})}else if(d||!XNA.includes(W))A["on"+W]=k.getFn(0)}}}else{if(H.startsWith("data-")&&typeof k==="string")try{k=Dnm(k)}catch(B){k="zSoyz"}typeof k!=="function"||A._disposeEffects!=null?((d=H.startsWith("prop:"))&&(H=H.slice(5)),si.enableAttributeSanitization&&(d&&S3Q(A.tagName)||(k=kyN(A.tagName,H,k))),H==="style"?("function"==typeof _.$U&&k instanceof _.$U&&(k=k.toString()),
Cgl(A,H,k)):d?A[H]=k:KVW(A,H,k)):(A._signalProps||(A._signalProps=[]),A._signalValues||(A._signalValues=[]),A._signalProps.push(H))}};
cWW=function(A,H,k){k=(k===void 0?{}:k).isReactive;if(H==null?0:H.el){var d=H.el,W;(W=d.onRender)==null||W.call(d,A);A._disposeRef||(A._disposeRef=function(){var z;(z=d.onUnmount)==null||z.call(d);delete A._disposeRef},k&&_.aV(function(){var z;
(z=A._disposeRef)==null||z.call(A)}))}};
S3Q=function(A){return A.length>0&&A.includes("-")&&!pNl.includes(A.toLowerCase())};
Q1C=function(A){return kU(A)&&A3 in A};
VLm=function(A){return Q1C(A)?A[A3].flattened:A};
Ekl=function(A,H){var k=_.o7.apply(2,arguments),d;H=(d=H)!=null?d:{};d={};return d.type=A,d.props=H,d.children=k,d[HI]=!0,d};
_.sD=function(A){return A.children};
dj=function(A){var H=UnX!==Ekl;UnX=A?l6b:Ekl;return H};
WI=function(A){return _.nl(A)?"nodeType"in A:!1};
zP=function(){return document.createTextNode("")};
qP=function(A){A=document.createTextNode(String(A));A._isSignalTextNode=!0;return A};
NY8=function(A){return A!=null&&A.contentKind===rj||A instanceof HX||tLI(A)};
MLf=function(A){var H=document.createElement("div");if(tLI(A)&&qaN(A))_.ON(H,qaN(A));else if(A instanceof HX)_.ON(H,A);else if(A!=null&&A.contentKind===rj){if(A.contentKind!==rj)throw Error("Yb");A=k7(A.toString());_.ON(H,A)}A=_.r(H.childNodes);for(var k=A.next();!k.done;k=A.next())k.value._isSafeOrSanitizedHtmlNode=!0;return H};
ep=function(A){A=typeof A;return A==="string"||A==="number"||A==="boolean"};
nkI=function(A){return A instanceof cz||tG(A)||A instanceof mJ||"function"==typeof _.$U&&A instanceof _.$U};
Z2C=function(A,H){var k=A.parentElement;if(!k)return H;k.replaceChild(H,A);return H};
f6X=function(A,H){var k=A[0].parentElement;if(k)if(A[0].previousSibling||A[A.length-1].nextSibling){k.insertBefore(H,A[0]);for(var d=A.length-1;d>=0;d--)k.removeChild(A[d])}else k.textContent="",k.appendChild(H);return H};
wN8=function(A,H){if(A[0].parentElement)for(var k=A[0].parentElement,d=H.length,W=A.length,z=d,u=0,B=0,h=A[W-1].nextSibling,O=null;u<W||B<z;)if(A[u]===H[B])u++,B++;else{for(;A[W-1]===H[z-1];)W--,z--;if(W===u)for(var T=z<d?B?H[B-1].nextSibling:H[z-B]:h;B<z;){var m=H[B++];k.insertBefore(m,T)}else if(z===B)for(;u<W;)T=A[u],O&&O.has(T)||k.removeChild(T),u++;else if(A[u]===H[z-1]&&H[B]===A[W-1])T=A[--W].nextSibling,k.insertBefore(H[B++],A[u++].nextSibling),k.insertBefore(H[--z],T),A[W]=H[z];else{if(!O)for(O=
new Map,T=B;T<z;)O.set(H[T],T++);T=O.get(A[u]);if(T==null)k.removeChild(A[u]),u++;else if(B<T&&T<z){m=u;for(var J=1,g=void 0;++m<W&&m<z&&(g=O.get(A[m]))!=null&&g===T+J;)J++;if(J>T-B)for(m=A[u];B<T;)k.insertBefore(H[B++],m);else k.replaceChild(H[B++],A[u++])}else u++}}return H};
$nf=function(A){if(Array.isArray(A)){if(A.length>1)throw Error("lc`"+A.length+"`"+A.map(ok8).join(", "));A=A[0]}if(A==null)return null;if(!(A instanceof _.BX)){var H,k;if((H=window)==null?0:(k=H.trustedTypes)==null?0:k.isScript(A))throw Error("kc");if(String(A).trim().length===0)return null;throw Error("mc`"+ok8(A));}return A};
AxN=function(A,H){H=$nf(H);H!==null&&_.i1(A,H)};
HHf=function(A){if(Array.isArray(A)){if(A.length>1)throw Error("nc`"+A.length+"`"+A.map(ok8).join(", "));A=A[0]}if(A==null)return null;if(!(A instanceof mJ)){if(String(A).trim().length===0)return null;throw Error("oc`"+ok8(A));}return A};
sCX=function(A,H){H=HHf(H);H!==null&&(A.textContent=SNI(H))};
ok8=function(A){return"("+typeof A+") "+(A!=null&&typeof A==="object"?A.constructor.name:typeof A)+" "+A};
kCI=function(){};
OD=function(A,H){H=H===void 0?{}:H;var k=dTI(),d=!0,W,z=!!si.legacyTriggerSoyRendererEvents;z&&(W=KSQ());_.SC(function(){var u=!d&&H.isControlFlowComponent&&z,B=u?k[A3].flattened[0].parentElement:void 0;d=!1;xl.setUp();H.isControlFlowComponent&&FC++;var h=k[0],O=k[A3].flattened,T=dj(!0);try{var m=A(),J=WCQ(h,m,k);Array.isArray(J)||(k[A3].flattened=[J]);var g=k[A3].flattened;if(O&&(!Array.isArray(O)||O.length!==0)){var v=Array.isArray(O)?O[0]:O,y=v[h3],X=v._disposeEffects;v._disposeEffects=void 0;
v=Array.isArray(g)?g[0]:g;v[h3]=y;v[h3]&&(v[h3].numNodes=v===g?1:g.length);v._disposeEffects=X}k[0]=J;H.isControlFlowComponent&&D5(!1)}catch(D){throw H.isControlFlowComponent&&D5(!0),D;}finally{dj(T),xl.tearDown()}u&&(u=W,u!=null||(u=_.PZX(document).getAppContext()),u.get(zA8).JSC$30132_getEventTarget().dispatchEvent(new qdb(rx8,B,rj)))},H.debugName);
return k};
WCQ=function(A,H,k){for(;typeof H==="function";)H=H();if(H!=null&&H[HI]){var d,W,z;(z=si.handleError)==null||z.call.apply(z,[si].concat(_.fV(VM(Error("pc`"+((d=H.type)==null?void 0:d.TAG_NAME)),(W=H.type)==null?void 0:W.TAG_NAME))))}if(A==null)return H==null?zP():ep(H)?qP(H):nkI(H)?qP(H.toString()):WI(H)?H:H.length===0?zP():uVI(H,k);if(WI(A)){if(H==null)return Z2C(A,zP());if(ep(H))return Bn8(A,H);if(nkI(H))return Bn8(A,H.toString());if(WI(H))return Z2C(A,H);if(H.length===0)return Z2C(A,zP());H=uVI(H,
k);wN8([A],k[A3].flattened);return H}A=Rx(A);if(H==null)return f6X(A,zP());if(ep(H))return f6X(A,qP(H));if(nkI(H))return f6X(A,qP(H.toString()));if(WI(H))return wN8(A,[H])[0];if(H.length===0)return f6X(A,zP());H=uVI(H,k);wN8(A,k[A3].flattened);return H};
Bn8=function(A,H){A.nodeType===Node.TEXT_NODE?A.textContent!==String(H)&&(A.textContent=String(H)):A=Z2C(A,qP(H));return A};
Rx=function(A,H,k){return eAV(A,H!=null?H:[],k===void 0?!1:k)};
uVI=function(A,H){var k=Rx(A,void 0,!0);if(k.length===0)return zP();H[A3].flattened=k;return A};
eAV=function(A,H,k,d,W){H=H===void 0?[]:H;k=k===void 0?!1:k;W=W===void 0?-1:W;if(A==null)return H;if(A instanceof TP){var z=A.render();return eAV(z,H,k,d,W)}if(WI(H)&&H.nodeType===Node.ELEMENT_NODE)switch(H.tagName){case "SCRIPT":AxN(H,A);return;case "STYLE":sCX(H,A);return}ep(A)&&(A=qP(A),d&&k&&(d[W]=A));if(NY8(A)){k=MLf(A);k=Array.from(k.childNodes);k=_.r(k);for(z=k.next();!z.done;z=k.next())xTI(H,z.value);return H}nkI(A)&&(A=qP(A.toString()),d&&k&&(d[W]=A));if(WI(A))return xTI(H,A);if(Array.isArray(A)){for(z=
0;z<A.length;z++)eAV(A[z],H,k,A,z);return H}if(typeof A==="function"){z=OD(function(){var B=A();return B!=null&&!ep(B)&&NY8(B)?(B=MLf(B),Array.from(B.childNodes)):B},{debugName:"qmF2ne",
debugFn:A})[0];if(Array.isArray(z)){k=_.r(z);for(z=k.next();!z.done;z=k.next())xTI(H,z.value);return H}d&&k&&(d[W]=z);return xTI(H,z)}if(A!=null&&A[HI]){d=A;W=dj(!0);var u=UnX;try{z=u.apply(null,[d.type,d.props].concat(_.fV(d.children)))}finally{dj(W)}return eAV(z,H,k)}(u=si.handleError)==null||u.call.apply(u,[si].concat(_.fV(VM(Error("qc")))));return H};
dTI=function(A){var H={};H=Object.assign([],(H[A3]={flattened:[]},H));if(!A)return H;H[0]=uVI(A,H);return H};
xTI=function(A,H){Array.isArray(A)?A.push(H):A.appendChild(H);return A};
mF=function(A){if(!si.enableLazyTsx)return A;if(Array.isArray(A)){for(var H=0;H<A.length;H++)A[H]=mF(A[H]);return A}return A instanceof TP?(A=A.render(),mF(A)):A};
hAv=function(A,H){var k,d,W=OP8(A),z=function(g){d=g;g=dj(!0);var v=zW(J3);WaC("render",W);try{k=mF(A(H))}finally{zUX("render",W),zW(v),dj(g)}};
z=si.enableContextPerComponent?B_b(z,W):ce(z,si.alwaysTrackContexts||!!f$);xVA(d);if(!H.renderedFromIdom){var u=wF(d);try{return iHA(A,H,k),k}finally{wF(u)}}!Q1C(k)&&Array.isArray(k)&&(k=dTI(k));var B=VLm(k);u=Array.isArray(B)?B[0]:B;var h=!1;if(u){var O,T=(O=H==null?void 0:H.idomKey)!=null?O:A;O=B!==u;u._disposeEffects=z;var m=u[h3]||{},J=Q1C(k)?k:m.sourceDynamicRange;Object.assign(m,{key:T,numNodes:O?B.length:1,context:d,higherOrder:!!u[h3],sourceDynamicRange:J});u[h3]=m}else h=!0;(function(){var g=
wF(d);try{iHA(A,H,B)}finally{wF(g)}})();
h&&z();return k};
OHC=function(A){var H={},k;for(k in A)H={prev$jscomp$24:void 0,next$jscomp$34:void 0},H.prev$jscomp$24=gj[k],H.next$jscomp$34=A[k],gj[k]=function(d){return function(){var W=_.o7.apply(0,arguments);d.prev$jscomp$24.apply(null,_.fV(W));d.next$jscomp$34.apply(null,_.fV(W))}}(H)};
RAr=function(){if(jC())throw Error("rc");return bt};
Tnv=function(A,H){if(!A.__unmounted&&H){A.__unmounted=!0;try{A.didUnmount()}catch(W){var k,d;(d=si.handleError)==null||d.call.apply(d,[si].concat(_.fV(VM(W,(k=A.__type)==null?void 0:k.TAG_NAME))))}gj.didUnmount(A);A.el=null;H.__instance&&delete H.__instance}};
Jxf=function(A,H,k){A._signalProps!=null&&A._disposeEffects==null&&((k===void 0?0:k)?A._disposeEffects=ce(function(){return void mTb(A,H)},si.alwaysTrackContexts||!!f$):mTb(A,H))};
mTb=function(A,H){_.SC(function(){for(var k=A._signalProps,d=A._signalValues,W=0;W<k.length;W++){var z=k[W],u=H[z]();d[W]!==u&&(d[W]=u,a6C(A,z,u))}},"e3YVbb")};
grb=function(A,H,k){var d,W=[];A._disposeEffects=ce(function(){_.SC(function(){var z=k();if(z===null||z===void 0)z="";if(ep(z)||z===null)d!=null||(d=document.createTextNode("")),d.parentNode!==A&&(d._isSignalTextNode=!0,A.insertBefore(d,H)),d.textContent=String(z);else if(NY8(z)){for(var u=W.length>0?W[W.length-1].nextSibling:H,B=_.r(W),h=B.next();!h.done;h=B.next())A.removeChild(h.value);z=MLf(z);W=Array.from(z.childNodes);z=_.r(W);for(B=z.next();!B.done;B=z.next())A.insertBefore(B.value,u)}else throw h=
(B=(u=ve)==null?void 0:u.name)!=null?B:"unknown",Error("gc`"+h+"`"+typeof z);},"VvDgC")},si.alwaysTrackContexts||!!f$)};
vrr=function(A,H){var k=_.o7.apply(2,arguments);H!=null||(H={});return!si.enableLazyTsx||ve!=null&&!jC()?bHA(A,H,k):new LCC(A,H,k)};
bHA=function(A,H,k){if(A===_.sD)return k;if(typeof A==="function")return ve&&!jC()&&(H.renderedFromIdom=!0),RjN(A,function(){k.length>0&&(H.children=k.length===1?k[0]:k);if(A.componentType===yM){var z;B_b(function(){var u=H;if(A.componentType!==yM)z=!1;else{u||(u={});var B=new LZ(u,A),h=zW(J3);try{var O=B.render(u)}finally{zW(h)}O instanceof HTMLElement?(O.__instance=B,B.el=O,B.__type=A,A.TAG_NAME=O.tagName.toLowerCase(),gj.didPatch(B),z=O):z=O}},A.name);
if(z)return z}return hAv(A,H)},H.debugInstance);
var d=yxX(A,H),W;for(W in H)a6C(d,W,H[W]);Jxf(d,H);Rx(k,d);cWW(d,H,{isReactive:!0});jCX(d,H);return d};
yxX=function(A,H){A=(IZf.has(A.toLowerCase())?0:YdC.has(A.startsWith("svg:")?A.replace("svg:",""):A))?document.createElementNS("http://www.w3.org/2000/svg",A.startsWith("svg:")?A.replace("svg:",""):A):PiQ(A,H)||document.createElement(A);A[GC8]=!0;return A};
FCv=function(A){if(A){var H;(H=A._disposeRef)==null||H.call(A);var k;(k=A._disposeEffects)==null||k.call(A);A.__instance&&A.__instance instanceof vI&&(H=A.__instance,Tnv(H,A),H instanceof LZ&&H.disposeEffects());for(H=0;H<A.childNodes.length;H++)FCv(A.childNodes[H])}};
DT8=function(A){XBC.push(A)===1&&requestAnimationFrame(function(){setTimeout(function(){var H=[].concat(_.fV(XBC));XBC=[];H=_.r(H);for(var k=H.next();!k.done;k=H.next()){k=k.value;try{for(var d=0;d<k.length;d++)FCv(k[d])}catch(W){d=k=void 0,(d=(k=si).handleError)==null||d.call.apply(d,[k].concat(_.fV(VM(W))))}}})})};
_.x=function(A,H){return UnX.apply(null,[A,H].concat(_.fV(_.o7.apply(2,arguments))))};
_.y$=function(A){return A};
_.jp=function(A){return{isDefault:!0,children:A.children}};
_.R=function(A){var H=A.cond;if(H===void 0)return A.else&&A.else();var k=_.be(function(){return!!H()},void 0,"JHVi8"),d=function(){var z=H();
if(!z){var u;(u=si.handleError)==null||u.call.apply(u,[si].concat(_.fV(VM(SdI.nonNullableCondIsNull()))))}return z},W;
return OD(function(){var z=k(),u;ce(function(){var B=zW(J3);try{u=mF(z?A.then(d):A.else&&A.else())}finally{zW(B)}},!0);
return u},{debugName:(W=A.debugInstance)!=null?W:"RlDudd",
debugFn:A.then,isControlFlowComponent:!0})};
Cif=function(A){return _.R(A)};
_.Ix=function(A){return A.keyBy==="INDEX"?KCQ(A):aZI(A)};
cxm=function(A){A=_.r(A);for(var H=A.next();!H.done;H=A.next()){var k=void 0;(k=H.value)==null||k()}};
aZI=function(A){var H=A.keyBy===void 0||A.keyBy==="REFERENCE",k=H?function(m){return m}:A.keyBy,d=[],W=[],z=[],u=[],B=[],h=[],O=!0;
_.aV(function(){cxm(u)});
var T;return OD(function(){var m=pBI(A),J=m.length;if(J===0){if(d.length===0&&!O)return z;cxm(u);d=m;W=[];for(m=0;m<d.length;m++)W.push(k(d[m]));z=[];u=[];B=[];h=[];A.fallback&&(u[0]=QCv(function(){z[0]=mF(A.fallback())}));
O=!1;return z}for(var g=new V1N,v=d.length-1;v>=0;v--)g.push(W[v],v);v=Array(J);for(var y=Array(J),X=Array(J),D=Array(J),K=Array(H?0:J),N={i$jscomp$454:0};N.i$jscomp$454<J;N={i$jscomp$454:N.i$jscomp$454,item$jscomp$104:void 0,key$jscomp$565:void 0},N.i$jscomp$454++){N.item$jscomp$104=m[N.i$jscomp$454];N.key$jscomp$565=k(N.item$jscomp$104);var U=g.pop(N.key$jscomp$565);U!=null?(X[N.i$jscomp$454]=z[U],y[N.i$jscomp$454]=W[U],v[N.i$jscomp$454]=u[U],D[N.i$jscomp$454]=B[U],H||(K[N.i$jscomp$454]=h[U]),LA(function(p){return function(){D[p.i$jscomp$454](p.i$jscomp$454);
if(!H)K[p.i$jscomp$454](p.item$jscomp$104)}}(N)),delete u[U]):v[N.i$jscomp$454]=QCv(function(p){return function(){var M=_.r(_.RV(p.i$jscomp$454,void 0,"Fqk1zd")),Z=M.next().value;
M=M.next().value;D[p.i$jscomp$454]=M;y[p.i$jscomp$454]=p.key$jscomp$565;if(H)X[p.i$jscomp$454]=mF(A.children(p.item$jscomp$104,Z));else{var WV=_.r(_.RV(p.item$jscomp$104,void 0,"GBj5de"));M=WV.next().value;WV=WV.next().value;K[p.i$jscomp$454]=WV;X[p.i$jscomp$454]=mF(A.children(M,Z))}}}(N))}cxm(u);
d=m;W=y;z=X;u=v;B=D;h=K;O=!1;return X},{debugName:(T=A.debugInstance)!=null?T:"nsTGHd",
debugFn:A.each,isControlFlowComponent:!0})};
KCQ=function(A){var H=[],k=[],d=[],W=[],z=!1;_.aV(function(){cxm(W)});
var u;return OD(function(){var B=pBI(A);z&&B.length>0&&(W.pop()(),H.pop(),z=!1);for(var h=Array(B.length),O={i$jscomp$455:0};O.i$jscomp$455<B.length;O={i$jscomp$455:O.i$jscomp$455},O.i$jscomp$455++)if(O.i$jscomp$455<H.length)H[O.i$jscomp$455]!==B[O.i$jscomp$455]&&(LA(function(m){return function(){return void k[m.i$jscomp$455](B[m.i$jscomp$455])}}(O)),H[O.i$jscomp$455]=B[O.i$jscomp$455]),h[O.i$jscomp$455]=d[O.i$jscomp$455];
else{var T=QCv(function(m){return function(){H[m.i$jscomp$455]=B[m.i$jscomp$455];var J=_.r(_.RV(B[m.i$jscomp$455],void 0,"JMMLmd")),g=J.next().value;J=J.next().value;k[m.i$jscomp$455]=J;h[m.i$jscomp$455]=mF(A.children(g,m.i$jscomp$455))}}(O));
W[O.i$jscomp$455]=T}for(;H.length>B.length;)H.pop(),W.pop()(),k.pop();B.length===0&&!z&&A.fallback&&(O=QCv(function(){h[0]=mF(A.fallback())}),W[0]=O,z=!0);
return d=h},{debugName:(u=A.debugInstance)!=null?u:"nsTGHd",
isControlFlowComponent:!0})};
pBI=function(A){A=A.each();return Array.isArray(A)?A:Array.from(A)};
QCv=function(A){var H=f$;return ce(function(k){var d=zW(J3);try{k.parent=H,A(k)}finally{zW(d)}},!1)};
_.Yl=function(A){var H=ErA(A),k=_.be(function(){return UTC(H)},void 0,"F1PF4"),d;
return OD(function(){var W=k(),z;ce(function(){var u=zW(J3);try{z=mF(W())}finally{zW(u)}});
return z},{debugName:(d=A.debugInstance)!=null?d:"vI1rtf",
isControlFlowComponent:!0})};
ErA=function(A){A=A.children;return Array.isArray(A)?A:[A]};
lZA=function(A){var H=A.props;A=A.getChildren()[0];return H.when?{when:H.when,children:A}:{isDefault:!0,children:A}};
UTC=function(A){var H=function(){return null};
A=_.r(A);for(var k=A.next();!k.done;k=A.next())if(k=k.value,k!=null&&k[HI]&&(k=k.type===_.jp?{isDefault:!0,children:k.children[0]}:{when:k.props.when,children:k.children[0]}),k instanceof TP&&(k=lZA(k)),k.isDefault)H=k.children;else if(k.when())return k.children;return H};
t1N=function(A){var H=null,k,d={get value(){var z,u;(u=(z=W).validateGetValue)==null||u.call(z);return W.__value},set value(z){var u,B;(B=(u=W).validateSetValue)==null||B.call(u,z);W.__value=z;W.__hasBeenSet=!0}},W=(d.__value=null,d.__hasBeenSet=!1,d.__hasErrored=!1,d.onRender=function(z){if(k&&z!==k){k._disposeRef=void 0;var u;(u=H)==null||u()}k=z;H=A(z)||null},d.onUnmount=function(){var z;
(z=H)==null||z();H=W.value=null},d[cfb]=!0,d);
return W};
PI=function(A){return typeof A==="symbol"};
M1f=function(A){var H=RAr();if(H==null)throw NnA.PRIMITIVE_INVALID_HOOK_CALL();var k=H.hookCounter++;H.hooks||(H.hooks=[]);var d=H.hooks;d[k]||(d[k]={key:A,host:H});if(A!==d[k].key){if(H.__type){var W;A=(W=H.__type)==null?void 0:W.name}else A=H instanceof LZ?OP8(H.functionComponent):"<"+H.el.tagName.toLowerCase()+">";throw NnA.OUT_OF_ORDER_HOOK_CALL(A);}return d[k]};
nrb=function(A,H){return!A||A.length!==(H==null?void 0:H.length)||A.some(function(k,d){return k!==H[d]})};
ZHf=function(A,H){if(jC())return A();var k=M1f("useMemoInternal");nrb(k.deps,H)&&(k.deps=H,k.value=A());return k.value};
fZf=function(A,H){return ZHf(A,H)};
_.GP=function(A,H){return wBI(A,!1,H)};
_.FQ=function(A,H){return wBI(A,!0,H)};
wBI=function(A,H,k){return jC()?orI(A,H,k):$Tf(A,H,k)};
$Tf=function(A,H,k){return ZHf(function(){return orI(A,H,k)},[])};
orI=function(A,H,k){var d=t1N(function(W){d.value=W;var z=function(){var u=zW(null);try{return k==null?void 0:k(W)}finally{zW(u)}}();
return function(){z==null||z()}});
d.__expectedTagName=A;d.__optional=H;d.isIdom=!jC();return d};
AZV=function(A,H){var k;H=ce(function(){var d=dj(!0);FC++;try{k=Rx(A()),D5(!1)}catch(W){throw D5(!0),W;}finally{dj(d)}},H===void 0?!1:H);
return[k,H]};
_.DR=function(A,H,k){k!=null||(k={});k=k.appContext;var d=!!si.legacyTriggerSoyRendererEvents;xl.setUp();try{var W=H8I(A,H,k);d&&(H=k,H!=null||(H=_.PZX(document).getAppContext()),H.get(zA8).JSC$30132_getEventTarget().dispatchEvent(new qdb(sNV,A,rj)));xl.log(A);return W}finally{xl.tearDown()}};
H8I=function(A,H,k){var d=YU(function(){var W=zW(J3);try{return ce(function(){var z=_.PZX(_.TE(A)),u;var B=Z5b({rootElement:{value:A},appContext:k||(z==null?void 0:(u=z.getOptionalAppContext)==null?void 0:u.call(z)),dispatcher:z});z=wF(B);B=dj(!0);FC++;try{Rx(H(),A),D5(!1)}catch(h){throw D5(!0),h;}finally{dj(B),wF(z)}},!1)}catch(z){throw si.enableContextBasedComponentStacks&&IV(z),z;
}finally{zW(W)}});
A[kHI]=!0;return function(){A.textContent="";d();A[kHI]=!1}};
_.Sp=function(A){if(cMQ(We)){var H;(H=si.handleError)==null||H.call.apply(H,[si].concat(_.fV(VM(Error("fc")))))}var k=f$,d=ve;IcA({onInitType:yMr,run:function(){if(k&&!k.isDisposed){var W=wF(k);try{YU(function(){return void A()},d)}catch(z){throw si.enableContextBasedComponentStacks&&IV(z),z;
}finally{wF(W)}}}})};
zWQ=function(A){var H=XLr(2),k=new Set;_.aV(function(){return void k.forEach(function(d){return void d()})});
return function(d){var W=wF(H);try{var z=dwl(WpI(A),d);k.add(z);return function(){z();k.delete(z)}}finally{wF(W)}}};
_.qHQ=function(A){var H=A.children;var k=A.root;_.Sp(function(){var d=zWQ(k)(H);_.aV(d)});
return document.createTextNode("")};
dwl=function(A,H){var k=rZX(A);(A=pLW())&&jEl(k,A);xl.setUp();H=_.r(AZV(H,!0));A=H.next().value;var d=H.next().value;H=_.r(A);for(A=H.next();!A.done;A=H.next())k.appendChild(A.value);xl.log(k);xl.tearDown();return function(){d();k.remove()}};
WpI=function(A){if(typeof A==="string")return A=document.querySelector(A),_.rkW(A),A;if(WI(A)&&A.nodeType===Node.ELEMENT_NODE)return A;if(!A.__value&&!A.__optional){var H=NnA.USE_ELEMENT_NOT_ASSIGNED(A.__expectedTagName);A.__hasErrored=!0;throw H;}return A.value};
rZX=function(A){var H=document.createElementNS(A.namespaceURI,A.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return A.appendChild(H)};
up8=function(A,H){var k=M1f("onChange"),d=RAr();nrb(k.deps,H)&&(k.deps=H,k.pendingEffect=A,d.__syncEffects||(d.__syncEffects=[]),d.__syncEffects.push(k))};
BEf=function(A,H){up8(function(){return _.Oi(A)},H)};
_.CZ=function(A){jC()?_.Sp(function(){_.Oi(A)}):up8(function(){return _.Oi(A)},[])};
xw8=function(A){var H=[].concat(_.fV(A));A.length=0;A=_.r(H);for(H=A.next();!H.done;H=A.next()){H=H.value;eWC(H);var k=H.pendingEffect;H.pendingEffect=null;if(k=k==null?void 0:k())H.pendingCleanup=k}};
eWC=function(A){var H=A.pendingCleanup;A.pendingCleanup=null;H==null||H()};
i8N=function(A){return ZHf(function(){return{value:A}},[])};
_.KZ=function(A,H){if(!A)return null;A=Object.keys(A);A=_.r(A);for(var k=A.next();!k.done;k=A.next()){k=k.value;var d=k.toLowerCase();if(d.indexOf(H,d.length-H.length)>-1)return k}return null};
_.cI=function(){var A=arguments,H=_.ax;A.length>1?H[A[0]]=A[1]:A.length===1&&Object.assign(H,A[0])};
_.pZ=function(A,H){return A in _.ax?_.ax[A]:H};
_.Q$=function(A,H){return!!_.pZ(A,H)};
hWf=function(A){var H=_.ax.EXPERIMENT_FLAGS;return H?H[A]:void 0};
RWI=function(A){O8m.forEach(function(H){return H(A)})};
_.ED=function(A){return A&&window.yterr?function(){try{return A.apply(this,arguments)}catch(H){_.V$(H)}}:A};
_.V$=function(A){var H=_.UD("yt.logging.errors.log");H?H(A,"ERROR",void 0,void 0,void 0,void 0,void 0):(H=_.pZ("ERRORS",[]),H.push([A,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.cI("ERRORS",H));RWI(A)};
_.lt=function(A,H,k,d,W){var z=_.UD("yt.logging.errors.log");z?z(A,"WARNING",H,k,d,void 0,W):(z=_.pZ("ERRORS",[]),z.push([A,"WARNING",H,k,d,void 0,W]),_.cI("ERRORS",z))};
mwI=function(A,H){H=A.split(H);for(var k={},d=0,W=H.length;d<W;d++){var z=H[d].split("=");if(z.length===1&&z[0]||z.length===2)try{var u=TE8(z[0]||""),B=TE8(z[1]||"");if(u in k){var h=k[u];Array.isArray(h)?_.Mv(h,B):k[u]=[h,B]}else k[u]=B}catch(J){var O=J,T=z[0],m=String(mwI);O.args=[{key:T,value:z[1],query:A,method:JZI===m?"unchanged":m}];gBI.hasOwnProperty(T)||_.lt(O)}}return k};
b8f=function(A){var H=[];_.iK.forEach(A,function(k,d){var W=_.w5(d);k=Array.isArray(k)?k:[k];_.t3(k,function(z){z==""?H.push(W):H.push(W+"="+_.w5(z))})});
return H.join("&")};
_.NP=function(A){A.charAt(0)==="?"&&(A=A.substring(1));return mwI(A,"&")};
_.MP=function(A){return A.indexOf("?")!==-1?(A=(A||"").split("#")[0],A=A.split("?",2),_.NP(A.length>1?A[1]:A[0])):{}};
_.nZ=function(A,H){return LpW(A,H||{},!0)};
vB8=function(A,H){return LpW(A,H||{},!1)};
LpW=function(A,H,k){var d=A.split("#",2);A=d[0];d=d.length>1?"#"+d[1]:"";var W=A.split("?",2);A=W[0];W=_.NP(W[1]||"");for(var z in H)if(k||!_.iK.containsKey(W,z))W[z]=H[z];return _.$d(A,W)+d};
ZR=function(A){if(!H)var H=window.location.href;var k=_.UG(A)[1]||null,d=_.te(A);return k&&d?Z8(A,H):d?_.te(H)===d&&(Number(_.UG(H)[4]||null)||null)===(Number(_.UG(A)[4]||null)||null):!0};
_.jNW=function(A){A=yZX(A);return A===null?!1:A[0]==="com"&&A[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
yZX=function(A){A=_.te(A);return A!==null?A.split(".").reverse():null};
TE8=function(A){return A&&A.match(IWQ)?A:fY(A)};
_.fZ=function(A){return new YHv(A)};
_.wj=function(){P9N||(P9N=new GHl);return P9N};
X0l=function(){var A=FpX;return function(){var H=_.wj();if(!H.resolve(_.fZ(A))){var k={};H.addProvider((k.provide=A,k.useClass=A,k[ox]=void 0,k))}return H.resolve(A)}};
_.$l=function(A,H){var k,d;_.e(function(W){k=_.wj();return(d=k.resolve(_.fZ(A)))?(H(d),W.return(Promise.resolve(d))):W.return(k.resolve(new DwN(A)).then(function(z){H(z);return z}))})};
_.b=function(A){A=An(A);return typeof A==="string"&&A==="false"?!1:!!A};
_.H5=function(A,H){A=An(A);return A===void 0&&H!==void 0?H:Number(A||0)};
SHv=function(A){A=An(A);return Array.isArray(A)?_.hj(A,function(H){return Number(H||0)}):[Number(A||0)]};
_.k6=function(A){A=An(A);return A!==void 0?String(A):""};
_.d2=function(A){A=An(A);return Array.isArray(A)?_.hj(A,function(H){return String(H||"")}):[String(A||"")]};
C9I=function(){return _.pZ("EXPERIMENTS_TOKEN","")};
An=function(A){return _.pZ("EXPERIMENT_FLAGS",{})[A]};
KpA=function(){for(var A=[],H=_.pZ("EXPERIMENTS_FORCED_FLAGS",{}),k=_.r(Object.keys(H)),d=k.next();!d.done;d=k.next())d=d.value,A.push({key:d,value:String(H[d])});k=_.pZ("EXPERIMENT_FLAGS",{});d=_.r(Object.keys(k));for(var W=d.next();!W.done;W=d.next())W=W.value,W.startsWith("force_")&&H[W]===void 0&&A.push({key:W,value:String(k[W])});return A};
cZr=function(){if(!aWI)return null;var A=aWI();return"open"in A?A:null};
_.p0f=function(A){switch(_.W5(A)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.W5=function(A){return A&&"status"in A?A.status:-1};
_.zi=function(A,H){typeof A==="function"&&(A=_.ED(A));return window.setTimeout(A,H)};
_.q4=function(A,H){typeof A==="function"&&(A=_.ED(A));return window.setInterval(A,H)};
_.r2=function(A){window.clearTimeout(A)};
VcQ=function(A){A=_.MP(A);for(var H=_.r(QNb),k=H.next();!k.done;k=H.next())if(A[k.value]!==void 0)return!0;return!1};
lWl=function(A,H,k,d,W,z,u,B,h){k=k===void 0?"GET":k;d=d===void 0?"":d;B=B===void 0?!1:B;var O=cZr();if(!O)return null;var T=function(){(O&&"readyState"in O?O.readyState:0)===4&&H&&_.ED(H)(O)};
"onloadend"in O?O.addEventListener("loadend",T,!1):O.onreadystatechange=T;_.b("debug_forward_web_query_parameters")&&(A=EBb(A,window.location.search));O.open(k,A,!0);z&&(O.responseType=z);u&&(O.withCredentials=!0);k=k==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(W=Uwf(A,W))for(var m in W)O.setRequestHeader(m,W[m]),"content-type"===m.toLowerCase()&&(k=!1);k&&O.setRequestHeader("Content-Type","application/x-www-form-urlencoded");h&&"onprogress"in O&&(O.onprogress=function(){h(O.responseText)});
if(B&&"setAttributionReporting"in XMLHttpRequest.prototype){A={eventSourceEligible:!0,triggerEligible:!1};try{O.setAttributionReporting(A)}catch(J){_.lt(J)}}O.send(d);return O};
Uwf=function(A,H){H=H===void 0?{}:H;var k=ZR(A),d=_.pZ("INNERTUBE_CLIENT_NAME"),W=_.b("web_ajax_ignore_global_headers_if_set"),z;for(z in tcA){var u=_.pZ(tcA[z]),B=z==="X-Goog-AuthUser"||z==="X-Goog-PageId";z!=="X-Goog-Visitor-Id"||u||(u=_.pZ("VISITOR_DATA"));var h;if(!(h=!u)){if(!(h=k||(_.te(A)?!1:!0))){h=A;var O;if(O=_.b("add_auth_headers_to_remarketing_google_dot_com_ping")&&z==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY"))O=yZX(h),O=O===null?!1:O[1]==="google"?
!0:O[2]==="google"?O[0]==="au"&&O[1]==="com"?!0:O[0]==="uk"&&O[1]==="co"?!0:!1:!1;O&&(h=_.Nx(h)||"",h=h.split("/"),h="/"+(h.length>1?h[1]:""),O=h==="/pagead");h=O?!0:!1}h=!h}h||W&&H[z]!==void 0||d==="TVHTML5_UNPLUGGED"&&B||(H[z]=u)}"X-Goog-EOM-Visitor-Id"in H&&"X-Goog-Visitor-Id"in H&&delete H["X-Goog-Visitor-Id"];if(k||!_.te(A))H["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(k||!_.te(A)){try{var T=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}T&&(H["X-YouTube-Time-Zone"]=
T)}document.location.hostname.endsWith("youtubeeducation.com")||!k&&_.te(A)||(H["X-YouTube-Ad-Signals"]=b8f(NEI()));return H};
_.Mcb=function(A,H){var k=_.te(A);_.b("debug_handle_relative_url_for_query_forward_killswitch")||!k&&ZR(A)&&(k=document.location.hostname);var d=_.Nx(A);d=(k=k&&(k.endsWith("youtube.com")||k.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!k||d)return A;var W=_.NP(H),z={};_.t3(QNb,function(u){W[u]&&(z[u]=W[u])});
return vB8(A,z)};
nBb=function(A,H){H.method="POST";H.postParams||(H.postParams={});return _.uC(A,H)};
Z8Q=function(A,H){var k=_.pZ("XSRF_FIELD_NAME"),d;H.headers&&(d=H.headers["Content-Type"]);return!H.excludeXsrf&&(!_.te(A)||H.withCredentials||_.te(A)===document.location.hostname)&&H.method==="POST"&&(!d||d==="application/x-www-form-urlencoded")&&!(H.postParams&&H.postParams[k])};
_.uC=function(A,H){var k=H.format||"JSON";A=fWm(A,H);var d=w0f(A,H),W=!1,z=oBI(A,function(h){if(!W){W=!0;B&&_.r2(B);var O=_.p0f(h),T=null,m=400<=h.status&&h.status<500,J=500<=h.status&&h.status<600;if(O||m||J)T=$wW(A,k,h,H.convertToSafeHtml);O&&(O=Arf(k,h,T));T=T||{};m=H.context||_.k8;O?H.onSuccess&&H.onSuccess.call(m,h,T):H.onError&&H.onError.call(m,h,T);H.onFinish&&H.onFinish.call(m,h,T)}},H.method,d,H.headers,H.responseType,H.withCredentials,!1,H.onProgress);
d=H.timeout||0;if(H.onTimeout&&d>0){var u=H.onTimeout;var B=_.zi(function(){W||(W=!0,z.abort(),_.r2(B),u.call(H.context||_.k8,z))},d)}return z};
fWm=function(A,H){H.includeDomain&&(A=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+A);var k=_.pZ("XSRF_FIELD_NAME");if(H=H.urlParams)H[k]&&delete H[k],A=_.nZ(A,H);return A};
w0f=function(A,H){var k=_.pZ("XSRF_FIELD_NAME"),d=_.pZ("XSRF_TOKEN"),W=H.postBody||"",z=H.postParams;Z8Q(A,H)&&(z||(z={}),z[k]=d);(_.b("ajax_parse_query_data_only_when_filled")&&z&&Object.keys(z).length>0||z)&&typeof W==="string"&&(W=_.NP(W),_.iK.extend(W,z),W=H.postBodyFormat&&H.postBodyFormat==="JSON"?JSON.stringify(W):_.oa(W));z=W||z&&!_.iK.isEmpty(z);!Hmr&&z&&H.method!=="POST"&&(Hmr=!0,_.V$(Error("Lc")));return W};
$wW=function(A,H,k,d){var W=null;switch(H){case "JSON":try{var z=k.responseText}catch(u){throw d=Error("Mc"),d.params=A,_.lt(d),u;}A=k.getResponseHeader("Content-Type")||"";z&&A.indexOf("json")>=0&&(z.substring(0,5)===")]}'\n"&&(z=z.substring(5)),W=JSON.parse(z));break;case "XML":if(A=(A=k.responseXML)?scW(A):null)W={},_.t3(A.getElementsByTagName("*"),function(u){W[u.tagName]=kKI(u)})}d&&dmX(W);
return W};
dmX=function(A){if(_.nl(A))for(var H in A)H==="html_content"||uI(H,"_html")?A[H]=k7(A[H]):dmX(A[H])};
Arf=function(A,H,k){if(H&&H.status===204)return!0;switch(A){case "JSON":return!!k;case "XML":return Number(k&&k.return_code)===0;case "RAW":return!0;default:return!!k}};
scW=function(A){return A?(A=("responseXML"in A?A.responseXML:A).getElementsByTagName("root"))&&A.length>0?A[0]:null:null};
kKI=function(A){var H="";_.t3(A.childNodes,function(k){H+=k.nodeValue});
return H};
WjV=function(A){if(A.name==="JavaException")return!0;A=A.stack;return A.includes("chrome://")||A.includes("-extension://")||A.includes("webkit-masked-url://")};
zFA=function(A){if(!A.stack)return!0;var H=!A.stack.includes("\n");return H&&A.stack.includes("ErrorType: ")||H&&A.stack.includes("Anonymous function (Unknown script")||A.stack.toLowerCase()==="not available"||A.fileName==="user-script"||A.fileName.startsWith("user-script:")?!0:!1};
_.B5=function(A){_.dF.call(this);this.JSC$10841_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!A};
rrV=function(A,H){var k=A.length,d=0,W=function(){return A.charCodeAt(d++)};
do{var z=qAl(W);if(z===Infinity)break;var u=z>>3;switch(z&7){case 0:z=qAl(W);if(u===H)return z;break;case 1:if(u===H)return;d+=8;break;case 2:z=qAl(W);if(u===H)return A.substr(d,z);d+=z;break;case 5:if(u===H)return;d+=4;break;default:return}}while(d<k)};
qAl=function(A){var H=A(),k=H&127;if(H<128)return k;H=A();k|=(H&127)<<7;if(H<128)return k;H=A();k|=(H&127)<<14;if(H<128)return k;H=A();return H<128?k|(H&127)<<21:Infinity};
BlQ=function(A,H,k,d){if(A)if(Array.isArray(A)){var W=d;for(d=0;d<A.length&&!(A[d]&&(W+=u3I(d,A[d],H,k),W>500));d++);d=W}else if(typeof A==="object")for(W in A){if(A[W]){var z=W;var u=A[W],B=H,h=k;z=typeof u!=="string"||z!=="clickTrackingParams"&&z!=="trackingParams"?0:(u=rrV(atob(u.replace(/-/g,"+").replace(/_/g,"/")),2))?u3I(z+".ve",u,B,h):0;d+=z;d+=u3I(W,A[W],H,k);if(d>500)break}}else k[H]=ei(A),d+=k[H].length;else k[H]=ei(A),d+=k[H].length;return d};
u3I=function(A,H,k,d){k+="."+A;A=ei(H);d[k]=A;return k.length+A.length};
ei=function(A){try{return(typeof A==="string"?A:String(JSON.stringify(A))).substr(0,500)}catch(H){return"unable to serialize "+typeof A+" ("+H.message+")"}};
eFN=function(A){switch(A){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}};
_.iC=function(A,H,k,d,W){_.x6.set(A,H,{maxAge:k,path:"/",domain:d===void 0?"youtube.com":d,secure:W===void 0?!1:W})};
_.xm8=function(A,H,k){_.x6.remove(A,H===void 0?"/":H,k===void 0?"youtube.com":k)};
_.hn=function(){if(!_.x6.isEnabled())return!1;if(!_.x6.isEmpty())return!0;_.x6.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.x6.get("TESTCOOKIESENABLED")!=="1")return!1;_.x6.remove("TESTCOOKIESENABLED");return!0};
imI=function(){var A=_.k8.navigator;return A?A.connection:void 0};
hFW=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}};
_.RFm=function(){var A=imI();if(A){var H=Om8[A.type||"unknown"]||"CONN_UNKNOWN";A=Om8[A.effectiveType||"unknown"]||"CONN_UNKNOWN";H==="CONN_CELLULAR_UNKNOWN"&&A!=="CONN_UNKNOWN"&&(H=A);if(H!=="CONN_UNKNOWN")return H;if(A!=="CONN_UNKNOWN")return A}};
mmN=function(){var A=imI();if(A!=null&&A.effectiveType)return TlA.hasOwnProperty(A.effectiveType)?TlA[A.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.RP=function(){try{return _.Oa(),!0}catch(A){return!1}};
_.Oa=function(A){if(_.pZ("DATASYNC_ID")!==void 0)return _.pZ("DATASYNC_ID");throw new _.Ti("Datasync ID not set",A===void 0?"unknown":A);};
_.mR=function(A){this.mechanism=A};
Jn=function(A){this.mechanism=A};
g2=function(A){this.mechanism=A};
JrC=function(){};
bC=function(A){this.storage_=A;this.cachedIsStorageAvailable_=null};
gub=function(){var A=null;try{A=_.k8.localStorage||null}catch(H){}bC.call(this,A)};
bmX=function(){var A=null;try{A=_.k8.sessionStorage||null}catch(H){}bC.call(this,A)};
LG=function(A,H){this.mechanism_=A;this.JSC$10943_prefix_=H+"::"};
_.v5=function(A){var H=new gub;return H.isAvailable()?A?new LG(H,A):H:null};
_.LjN=function(A){var H=new bmX;return H.isAvailable()?A?new LG(H,A):H:null};
yrX=function(){var A;return(A=vum())==null?void 0:A.get("LAST_RESULT_ENTRY_KEY",!0)};
_.IP=function(A){jcA||(_.yN?_.yN.logError(A):(_.ji.push({type:"ERROR",payload:A}),_.ji.length>10&&_.ji.shift()))};
Y6=function(A,H){jcA||(_.yN?_.yN.logEvent(A,H):(_.ji.push({type:"EVENT",eventType:A,payload:H}),_.ji.length>10&&_.ji.shift()))};
P5=function(A){if(A.indexOf(":")>=0)throw Error("Tc");};
Gi=function(A){return A.substr(0,A.indexOf(":"))||A};
Pkb=function(){return(Iub||YAQ)&&FD("applewebkit")&&!FD("version")&&(!FD("safari")||FD("gsa/"))};
FD=function(A){var H=_.bI();return H?H.toLowerCase().indexOf(A)>=0:!1};
XK8=function(A,H,k,d){H=Gi(H);var W=A instanceof Error?A:Error("Uc`"+A);if(W instanceof XD)return W;A={objectStoreNames:k,dbName:H,dbVersion:d};if(W.name==="QuotaExceededError")return new XD("QUOTA_EXCEEDED",A);if(_.Dq&&W.name==="UnknownError")return new XD("QUOTA_MAYBE_EXCEEDED",A);if(W instanceof GKl)return new XD("MISSING_INDEX",Object.assign({},A,{objectStore:W.objectStore,index:W.index}));if(W.name==="InvalidStateError"&&FjW.some(function(z){return W.message.includes(z)}))return new XD("EXECUTE_TRANSACTION_ON_CLOSED_DB",
A);
if(W.name==="AbortError")return new XD("UNKNOWN_ABORT",A,W.message);W.args=[Object.assign({},A,{name:"IdbError",originalName:W.name})];W.level="WARNING";return W};
Si=function(A,H,k){var d=yrX();return new XD("IDB_NOT_SUPPORTED",{context:{caller:A,publicName:H,version:k,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})};
Dmb=function(A){if(!A)throw Error();throw A;};
SAQ=function(A){return A};
CkI=function(A,H,k){var d=function(){try{A.removeEventListener("success",W),A.removeEventListener("error",z)}catch(u){}},W=function(){H(A.result);
d()},z=function(){k(A.error);
d()};
A.addEventListener("success",W);A.addEventListener("error",z)};
Kjv=function(A){return new Promise(function(H,k){CkI(A,H,k)})};
aP=function(A){return new CG(new KG(function(H,k){CkI(A,H,k)}))};
auN=function(A,H){return new CG(new KG(function(k,d){var W=function(){var z=A?H(A):null;z?z.then(function(u){A=u;W()},d):k()};
W()}))};
crX=function(A,H,k){return new Promise(function(d,W){var z=H!==void 0?self.indexedDB.open(A,H):self.indexedDB.open(A);var u=k.blocked,B=k.blocking,h=k.terminated,O=k.upgrade,T=k.closed,m,J=function(){m||(m=new c5(z.result,{closed:T}));return m};
z.addEventListener("upgradeneeded",function(g){try{if(g.newVersion===null)throw Error("Zc");if(z.transaction===null)throw Error("$c");g.dataLoss&&g.dataLoss!=="none"&&Y6("IDB_DATA_CORRUPTED",{reason:g.dataLossMessage||"unknown reason",dbName:Gi(A)});var v=J(),y=new pG(z.transaction);O&&O(v,function(X){return g.oldVersion<X&&g.newVersion>=X},y);
y.done.catch(function(X){W(X)})}catch(X){W(X)}});
z.addEventListener("success",function(){var g=z.result;B&&g.addEventListener("versionchange",function(){B(J())});
g.addEventListener("close",function(){Y6("IDB_UNEXPECTEDLY_CLOSED",{dbName:Gi(A),dbVersion:g.version});h&&h()});
d(J())});
z.addEventListener("error",function(){W(z.error)});
u&&z.addEventListener("blocked",function(){u()})})};
pKI=function(A,H,k){k=k===void 0?{}:k;return crX(A,H,k)};
_.VN=function(A,H){H=H===void 0?{}:H;var k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return _.S_(u,2),k=self.indexedDB.deleteDatabase(A),d=H,(W=d.blocked)&&k.addEventListener("blocked",function(){W()}),u.yield(Kjv(k),4);
if(u.nextAddress!=2)return _.QN(u,0);z=_.VA(u);throw XK8(z,A,"",-1);})};
VX8=function(A,H){var k;return _.e(function(d){if(d.nextAddress==1)return d.yield(_.Ea(Qcf,H),2);k=d.yieldResult;return d.return(_.Ua(k,["databases"],{enableRetries:!0,mode:"readwrite"},function(W){var z=W.objectStore("databases");return z.get(A.actualName).then(function(u){if(u?A.actualName!==u.actualName||A.publicName!==u.publicName||A.userIdentifier!==u.userIdentifier:1)return z.put(A).then(function(){})})}))})};
_.lC=function(A,H){var k;return _.e(function(d){if(d.nextAddress==1)return A?d.yield(_.Ea(Qcf,H),2):d.return();k=d.yieldResult;return d.return(k.delete("databases",A))})};
_.Eul=function(A,H){var k,d;return _.e(function(W){return W.nextAddress==1?(k=[],W.yield(_.Ea(Qcf,H),2)):W.nextAddress!=3?(d=W.yieldResult,W.yield(_.Ua(d,["databases"],{enableRetries:!0,mode:"readonly"},function(z){k.length=0;return tn(z.objectStore("databases"),{},function(u){A(u.getValue())&&k.push(u.getValue());return u.continue()})}),3)):W.return(k)})};
UmI=function(A,H){return _.Eul(function(k){return k.publicName===A&&k.userIdentifier!==void 0},H)};
NlX=function(){var A,H,k,d;return _.e(function(W){switch(W.nextAddress){case 1:A=yrX();if((H=A)==null?0:H.hasSucceededOnce)return W.return(!0);var z;if(z=luQ)z=/WebKit\/([0-9]+)/.exec(_.bI()),z=!!(z&&parseInt(z[1],10)>=600);z&&(z=/WebKit\/([0-9]+)/.exec(_.bI()),z=!(z&&parseInt(z[1],10)>=602));if(z||N4)return W.return(!1);try{if(k=self,!(k.indexedDB&&k.IDBIndex&&k.IDBKeyRange&&k.IDBObjectStore))return W.return(!1)}catch(u){return W.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return W.return(!1);
_.S_(W,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return W.yield(VX8(d,tXN),4);case 4:return W.yield(_.lC("yt-idb-test-do-not-use",tXN),5);case 5:return W.return(!0);case 2:return _.VA(W),W.return(!1)}})};
nuQ=function(){if(MXr!==void 0)return MXr;jcA=!0;return MXr=NlX().then(function(A){jcA=!1;var H;if((H=vum())!=null&&H.hasLocalStorage()){var k;H={hasSucceededOnce:((k=yrX())==null?void 0:k.hasSucceededOnce)||A};var d;(d=vum())==null||d.set("LAST_RESULT_ENTRY_KEY",H,2592E3,!0)}return A})};
M4=function(){return _.UD("ytglobal.idbToken_")||void 0};
_.Zq=function(){var A=M4();return A?Promise.resolve(A):nuQ().then(function(H){(H=H?tXN:void 0)&&_.nG("ytglobal.idbToken_",H);return H})};
ZmX=function(A){if(!_.RP())throw A=new XD("AUTH_INVALID",{dbName:A}),_.IP(A),A;var H=_.Oa();return{actualName:A+":"+H,publicName:A,userIdentifier:H}};
fu8=function(A,H,k,d){var W,z,u,B,h,O;return _.e(function(T){switch(T.nextAddress){case 1:return z=(W=Error().stack)!=null?W:"",T.yield(_.Zq(),2);case 2:u=T.yieldResult;if(!u)throw B=Si("openDbImpl",A,H),_.b("ytidb_async_stack_killswitch")||(B.stack=B.stack+"\n"+z.substring(z.indexOf("\n")+1)),_.IP(B),B;P5(A);h=k?{actualName:A,publicName:A,userIdentifier:void 0}:ZmX(A);_.S_(T,3);return T.yield(VX8(h,u),5);case 5:return T.yield(pKI(h.actualName,H,d),6);case 6:return T.return(T.yieldResult);case 3:return O=
_.VA(T),_.S_(T,7),T.yield(_.lC(h.actualName,u),9);case 9:_.QN(T,8);break;case 7:_.VA(T);case 8:throw O;}})};
wKW=function(A,H,k){k=k===void 0?{}:k;return fu8(A,H,!1,k)};
ou8=function(A,H,k){k=k===void 0?{}:k;return fu8(A,H,!0,k)};
$mQ=function(A,H){H=H===void 0?{}:H;var k,d;return _.e(function(W){if(W.nextAddress==1)return W.yield(_.Zq(),2);if(W.nextAddress!=3){k=W.yieldResult;if(!k)return W.return();P5(A);d=ZmX(A);return W.yield(_.VN(d.actualName,H),3)}return W.yield(_.lC(d.actualName,k),0)})};
A1Q=function(A,H,k){A=A.map(function(d){return _.e(function(W){return W.nextAddress==1?W.yield(_.VN(d.actualName,H),2):W.yield(_.lC(d.actualName,k),0)})});
return Promise.all(A).then(function(){})};
HFV=function(A){var H=H===void 0?{}:H;var k,d;return _.e(function(W){if(W.nextAddress==1)return W.yield(_.Zq(),2);if(W.nextAddress!=3){k=W.yieldResult;if(!k)return W.return();P5(A);return W.yield(UmI(A,k),3)}d=W.yieldResult;return W.yield(A1Q(d,H,k),0)})};
sl8=function(A,H){H=H===void 0?{}:H;var k;return _.e(function(d){if(d.nextAddress==1)return d.yield(_.Zq(),2);if(d.nextAddress!=3){k=d.yieldResult;if(!k)return d.return();P5(A);return d.yield(_.VN(A,H),3)}return d.yield(_.lC(A,k),0)})};
fG=function(A,H){return kDv(A,H)};
WHr=function(A){return _.Ea(dHW(),A)};
zYA=function(A,H,k,d){var W,z,u;return _.e(function(B){switch(B.nextAddress){case 1:return W={config:A,hashData:H,timestamp:d!==void 0?d:(0,_.w2)()},B.yield(WHr(k),2);case 2:return z=B.yieldResult,B.yield(z.clear("hotConfigStore"),3);case 3:return B.yield(z.put("hotConfigStore",W),4);case 4:return u=B.yieldResult,B.return(u)}})};
qJ8=function(A,H,k,d,W){var z,u,B;return _.e(function(h){switch(h.nextAddress){case 1:return z={config:A,hashData:H,configData:k,timestamp:W!==void 0?W:(0,_.w2)()},h.yield(WHr(d),2);case 2:return u=h.yieldResult,h.yield(u.clear("coldConfigStore"),3);case 3:return h.yield(u.put("coldConfigStore",z),4);case 4:return B=h.yieldResult,h.return(B)}})};
r1I=function(A){var H,k;return _.e(function(d){return d.nextAddress==1?d.yield(WHr(A),2):d.nextAddress!=3?(H=d.yieldResult,k=void 0,d.yield(_.Ua(H,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(W){return _.oP(W.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(z){k=z.getValue()})}),3)):d.return(k)})};
u_l=function(A){var H,k;return _.e(function(d){return d.nextAddress==1?d.yield(WHr(A),2):d.nextAddress!=3?(H=d.yieldResult,k=void 0,d.yield(_.Ua(H,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(W){return _.oP(W.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(z){k=z.getValue()})}),3)):d.return(k)})};
B4N=function(){return _.e(function(A){return A.yield(HFV("ytGcfConfig"),0)})};
eYv=function(){return"INNERTUBE_API_KEY"in _.ax&&"INNERTUBE_API_VERSION"in _.ax};
_.$6=function(){return{innertubeApiKey:_.pZ("INNERTUBE_API_KEY"),innertubeApiVersion:_.pZ("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.pZ("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.pZ("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.pZ("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.pZ("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.pZ("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Q$("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Q$("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.pZ("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.mHQ=function(A){var H={client:{hl:A.innertubeContextHostLanguage,gl:A.innertubeContextGeoLocation,clientName:A.innertubeContextClientName,clientVersion:A.innertubeContextClientVersion,configInfo:A.innertubeContextClientConfigInfo}};navigator.userAgent&&(H.client.userAgent=String(navigator.userAgent));var k=_.k8.devicePixelRatio;k&&k!=1&&(H.client.screenDensityFloat=String(k));k=C9I();k!==""&&(H.client.experimentsToken=k);k=KpA();k.length>0&&(H.request={internalExperimentFlags:k});xHm(A,void 0,H);
iFN(void 0,H);hYV(void 0,H);OFb(A,void 0,H);RYC(void 0,H);_.b("start_client_gcf")&&T48(void 0,H);_.pZ("DELEGATED_SESSION_ID")&&!_.b("pageid_as_header_web")&&(H.user={onBehalfOfUser:_.pZ("DELEGATED_SESSION_ID")});!_.b("fill_delegate_context_in_gel_killswitch")&&(A=_.pZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(H.user=Object.assign({},H.user,{serializedDelegationContext:A}));A=_.pZ("INNERTUBE_CONTEXT");var d;if(_.b("enable_persistent_device_token")&&(A==null?0:(d=A.client)==null?0:d.rolloutToken)){var W;
H.client.rolloutToken=A==null?void 0:(W=A.client)==null?void 0:W.rolloutToken}d=Object;W=d.assign;A=H.client;k={};for(var z=_.r(Object.entries(_.NP(_.pZ("DEVICE","")))),u=z.next();!u.done;u=z.next()){var B=_.r(u.value);u=B.next().value;B=B.next().value;u==="cbrand"?k.deviceMake=B:u==="cmodel"?k.deviceModel=B:u==="cbr"?k.browserName=B:u==="cbrver"?k.browserVersion=B:u==="cos"?k.osName=B:u==="cosver"?k.osVersion=B:u==="cplatform"&&(k.platform=B)}H.client=W.call(d,A,k);return H};
xHm=function(A,H,k){A=A.innertubeContextClientName;if(A==="WEB"||A==="MWEB"||A===1||A===2)if(H){k=_.Af(H,J1V,96)||new J1V;var d=gI8();d=Object.keys(bFW).indexOf(d);d=d===-1?null:d;d!==null&&_.HL(k,3,d);_.Sn(H,96,k)}else k&&(k.client.mainAppWebInfo=(d=k.client.mainAppWebInfo)!=null?d:{},k.client.mainAppWebInfo.webDisplayMode=gI8())};
iFN=function(A,H){var k=_.UD("yt.embedded_player.embed_url");k&&(A?(H=_.Af(A,LHI,7)||new LHI,_.qC(H,4,k),_.Sn(A,7,H)):H&&(H.thirdParty={embedUrl:k}))};
hYV=function(A,H){var k;if(_.b("web_log_memory_total_kbytes")&&((k=_.k8.navigator)==null?0:k.deviceMemory)){var d;k=(d=_.k8.navigator)==null?void 0:d.deviceMemory;A?_.sY(A,95,gL(k*1E6)):H&&(H.client.memoryTotalKbytes=""+k*1E6)}};
OFb=function(A,H,k){if(A.appInstallData)if(H){var d;k=(d=_.Af(H,kh,62))!=null?d:new kh;_.qC(k,6,A.appInstallData);_.Sn(H,62,k)}else k&&(k.client.configInfo=k.client.configInfo||{},k.client.configInfo.appInstallData=A.appInstallData)};
RYC=function(A,H){var k=_.RFm();k&&(A?_.HL(A,61,vIf[k]):H&&(H.client.connectionType=k));_.b("web_log_effective_connection_type")&&(k=mmN())&&(A?_.HL(A,94,y1X[k]):H&&(H.client.effectiveConnectionType=k))};
_.YJf=function(A,H,k){k=k===void 0?{}:k;var d={};_.pZ("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":_.pZ("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":k.visitorData||_.pZ("VISITOR_DATA","")};if(H&&H.includes("www.youtube-nocookie.com"))return d;H=k.authorization||_.pZ("AUTHORIZATION");H||(A?H="Bearer "+_.UD("gapi.auth.getToken")().access_token:(jll.instance||(jll.instance=new jll),A=IeC(),_.b("pageid_as_header_web")||delete A["X-Goog-PageId"],d=Object.assign({},d,A)));H&&(d.Authorization=H);return d};
T48=function(A,H){var k=PwI();if(k){var d=k.coldConfigData,W=k.coldHashData;k=k.hotHashData;if(A){var z;H=(z=_.Af(A,kh,62))!=null?z:new kh;d=_.qC(H,1,d);_.qC(d,3,W).setHotHashData(k);_.Sn(A,62,H)}else H&&(H.client.configInfo=H.client.configInfo||{},d&&(H.client.configInfo.coldConfigData=d),W&&(H.client.configInfo.coldHashData=W),k&&(H.client.configInfo.hotHashData=k))}};
de=function(A){for(var H=A.length;--H>=0;)A[H]=0};
GDf=function(A,H,k,d,W){this.static_tree=A;this.extra_bits=H;this.extra_base=k;this.elems=d;this.max_length=W;this.has_stree=A&&A.length};
FHC=function(A,H){this.dyn_tree=A;this.max_code=0;this.stat_desc=H};
WL=function(A,H){A.pending_buf[A.pending++]=H&255;A.pending_buf[A.pending++]=H>>>8&255};
zZ=function(A,H,k){A.bi_valid>16-k?(A.bi_buf|=H<<A.bi_valid&65535,WL(A,A.bi_buf),A.bi_buf=H>>16-A.bi_valid,A.bi_valid+=k-16):(A.bi_buf|=H<<A.bi_valid&65535,A.bi_valid+=k)};
qG=function(A,H,k){zZ(A,k[H*2],k[H*2+1])};
XMA=function(A,H){var k=0;do k|=A&1,A>>>=1,k<<=1;while(--H>0);return k>>>1};
DHl=function(A,H,k){var d=Array(16),W=0,z;for(z=1;z<=15;z++)d[z]=W=W+k[z-1]<<1;for(k=0;k<=H;k++)W=A[k*2+1],W!==0&&(A[k*2]=XMA(d[W]++,W))};
SJV=function(A){var H;for(H=0;H<286;H++)A.dyn_ltree[H*2]=0;for(H=0;H<30;H++)A.dyn_dtree[H*2]=0;for(H=0;H<19;H++)A.bl_tree[H*2]=0;A.dyn_ltree[512]=1;A.opt_len=A.static_len=0;A.last_lit=A.matches=0};
CwN=function(A){A.bi_valid>8?WL(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf);A.bi_buf=0;A.bi_valid=0};
KHr=function(A,H,k){CwN(A);WL(A,k);WL(A,~k);re.arraySet(A.pending_buf,A.window,H,k,A.pending);A.pending+=k};
aeX=function(A,H,k,d){var W=H*2,z=k*2;return A[W]<A[z]||A[W]===A[z]&&d[H]<=d[k]};
c1b=function(A,H,k){for(var d=A.heap[k],W=k<<1;W<=A.heap_len;){W<A.heap_len&&aeX(H,A.heap[W+1],A.heap[W],A.depth)&&W++;if(aeX(H,d,A.heap[W],A.depth))break;A.heap[k]=A.heap[W];k=W;W<<=1}A.heap[k]=d};
UHm=function(A,H,k){var d=0;if(A.last_lit!==0){do{var W=A.pending_buf[A.d_buf+d*2]<<8|A.pending_buf[A.d_buf+d*2+1];var z=A.pending_buf[A.l_buf+d];d++;if(W===0)qG(A,z,H);else{var u=uZ[z];qG(A,u+256+1,H);var B=pMI[u];B!==0&&(z-=QlC[u],zZ(A,z,B));W--;u=W<256?BL[W]:BL[256+(W>>>7)];qG(A,u,k);B=Vsb[u];B!==0&&(W-=EIC[u],zZ(A,W,B))}}while(d<A.last_lit)}qG(A,256,H)};
ler=function(A,H){var k=H.dyn_tree,d=H.stat_desc.static_tree,W=H.stat_desc.has_stree,z=H.stat_desc.elems,u,B=-1;A.heap_len=0;A.heap_max=573;for(u=0;u<z;u++)k[u*2]!==0?(A.heap[++A.heap_len]=B=u,A.depth[u]=0):k[u*2+1]=0;for(;A.heap_len<2;){var h=A.heap[++A.heap_len]=B<2?++B:0;k[h*2]=1;A.depth[h]=0;A.opt_len--;W&&(A.static_len-=d[h*2+1])}H.max_code=B;for(u=A.heap_len>>1;u>=1;u--)c1b(A,k,u);h=z;do u=A.heap[1],A.heap[1]=A.heap[A.heap_len--],c1b(A,k,1),d=A.heap[1],A.heap[--A.heap_max]=u,A.heap[--A.heap_max]=
d,k[h*2]=k[u*2]+k[d*2],A.depth[h]=(A.depth[u]>=A.depth[d]?A.depth[u]:A.depth[d])+1,k[u*2+1]=k[d*2+1]=h,A.heap[1]=h++,c1b(A,k,1);while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1];u=H.dyn_tree;h=H.max_code;d=H.stat_desc.static_tree;W=H.stat_desc.has_stree;z=H.stat_desc.extra_bits;var O=H.stat_desc.extra_base,T=H.stat_desc.max_length,m,J=0;for(m=0;m<=15;m++)A.bl_count[m]=0;u[A.heap[A.heap_max]*2+1]=0;for(H=A.heap_max+1;H<573;H++){var g=A.heap[H];m=u[u[g*2+1]*2+1]+1;m>T&&(m=T,J++);u[g*2+1]=m;if(!(g>
h)){A.bl_count[m]++;var v=0;g>=O&&(v=z[g-O]);var y=u[g*2];A.opt_len+=y*(m+v);W&&(A.static_len+=y*(d[g*2+1]+v))}}if(J!==0){do{for(m=T-1;A.bl_count[m]===0;)m--;A.bl_count[m]--;A.bl_count[m+1]+=2;A.bl_count[T]--;J-=2}while(J>0);for(m=T;m!==0;m--)for(g=A.bl_count[m];g!==0;)d=A.heap[--H],d>h||(u[d*2+1]!==m&&(A.opt_len+=(m-u[d*2+1])*u[d*2],u[d*2+1]=m),g--)}DHl(k,B,A.bl_count)};
tsm=function(A,H,k){var d,W=-1,z=H[1],u=0,B=7,h=4;z===0&&(B=138,h=3);H[(k+1)*2+1]=65535;for(d=0;d<=k;d++){var O=z;z=H[(d+1)*2+1];++u<B&&O===z||(u<h?A.bl_tree[O*2]+=u:O!==0?(O!==W&&A.bl_tree[O*2]++,A.bl_tree[32]++):u<=10?A.bl_tree[34]++:A.bl_tree[36]++,u=0,W=O,z===0?(B=138,h=3):O===z?(B=6,h=3):(B=7,h=4))}};
N4X=function(A,H,k){var d,W=-1,z=H[1],u=0,B=7,h=4;z===0&&(B=138,h=3);for(d=0;d<=k;d++){var O=z;z=H[(d+1)*2+1];if(!(++u<B&&O===z)){if(u<h){do qG(A,O,A.bl_tree);while(--u!==0)}else O!==0?(O!==W&&(qG(A,O,A.bl_tree),u--),qG(A,16,A.bl_tree),zZ(A,u-3,2)):u<=10?(qG(A,17,A.bl_tree),zZ(A,u-3,3)):(qG(A,18,A.bl_tree),zZ(A,u-11,7));u=0;W=O;z===0?(B=138,h=3):O===z?(B=6,h=3):(B=7,h=4)}}};
Msb=function(A){var H=4093624447,k;for(k=0;k<=31;k++,H>>>=1)if(H&1&&A.dyn_ltree[k*2]!==0)return 0;if(A.dyn_ltree[18]!==0||A.dyn_ltree[20]!==0||A.dyn_ltree[26]!==0)return 1;for(k=32;k<256;k++)if(A.dyn_ltree[k*2]!==0)return 1;return 0};
eF=function(A,H,k){A.pending_buf[A.d_buf+A.last_lit*2]=H>>>8&255;A.pending_buf[A.d_buf+A.last_lit*2+1]=H&255;A.pending_buf[A.l_buf+A.last_lit]=k&255;A.last_lit++;H===0?A.dyn_ltree[k*2]++:(A.matches++,H--,A.dyn_ltree[(uZ[k]+256+1)*2]++,A.dyn_dtree[(H<256?BL[H]:BL[256+(H>>>7)])*2]++);return A.last_lit===A.lit_bufsize-1};
iZ=function(A,H){A.msg=xh[H];return H};
hf=function(A){for(var H=A.length;--H>=0;)A[H]=0};
OY=function(A){var H=A.state,k=H.pending;k>A.avail_out&&(k=A.avail_out);k!==0&&(re.arraySet(A.output,H.pending_buf,H.pending_out,k,A.next_out),A.next_out+=k,H.pending_out+=k,A.total_out+=k,A.avail_out-=k,H.pending-=k,H.pending===0&&(H.pending_out=0))};
mS=function(A,H){var k=A.block_start>=0?A.block_start:-1,d=A.strstart-A.block_start,W=0;if(A.level>0){A.strm.data_type===2&&(A.strm.data_type=Msb(A));ler(A,A.l_desc);ler(A,A.d_desc);tsm(A,A.dyn_ltree,A.l_desc.max_code);tsm(A,A.dyn_dtree,A.d_desc.max_code);ler(A,A.bl_desc);for(W=18;W>=3&&A.bl_tree[nIN[W]*2+1]===0;W--);A.opt_len+=3*(W+1)+5+5+4;var z=A.opt_len+3+7>>>3;var u=A.static_len+3+7>>>3;u<=z&&(z=u)}else z=u=d+5;if(d+4<=z&&k!==-1)zZ(A,H?1:0,3),KHr(A,k,d);else if(A.strategy===4||u===z)zZ(A,2+(H?
1:0),3),UHm(A,RE,TZ);else{zZ(A,4+(H?1:0),3);k=A.l_desc.max_code+1;d=A.d_desc.max_code+1;W+=1;zZ(A,k-257,5);zZ(A,d-1,5);zZ(A,W-4,4);for(z=0;z<W;z++)zZ(A,A.bl_tree[nIN[z]*2+1],3);N4X(A,A.dyn_ltree,k-1);N4X(A,A.dyn_dtree,d-1);UHm(A,A.dyn_ltree,A.dyn_dtree)}SJV(A);H&&CwN(A);A.block_start=A.strstart;OY(A.strm)};
Jf=function(A,H){A.pending_buf[A.pending++]=H};
ge=function(A,H){A.pending_buf[A.pending++]=H>>>8&255;A.pending_buf[A.pending++]=H&255};
ZFl=function(A,H){var k=A.max_chain_length,d=A.strstart,W=A.prev_length,z=A.nice_match,u=A.strstart>A.w_size-262?A.strstart-(A.w_size-262):0,B=A.window,h=A.w_mask,O=A.prev,T=A.strstart+258,m=B[d+W-1],J=B[d+W];A.prev_length>=A.good_match&&(k>>=2);z>A.lookahead&&(z=A.lookahead);do{var g=H;if(B[g+W]===J&&B[g+W-1]===m&&B[g]===B[d]&&B[++g]===B[d+1]){d+=2;for(g++;B[++d]===B[++g]&&B[++d]===B[++g]&&B[++d]===B[++g]&&B[++d]===B[++g]&&B[++d]===B[++g]&&B[++d]===B[++g]&&B[++d]===B[++g]&&B[++d]===B[++g]&&d<T;);
g=258-(T-d);d=T-258;if(g>W){A.match_start=H;W=g;if(g>=z)break;m=B[d+W-1];J=B[d+W]}}}while((H=O[H&h])>u&&--k!==0);return W<=A.lookahead?W:A.lookahead};
L5=function(A){var H=A.w_size,k;do{var d=A.window_size-A.lookahead-A.strstart;if(A.strstart>=H+(H-262)){re.arraySet(A.window,A.window,H,H,0);A.match_start-=H;A.strstart-=H;A.block_start-=H;var W=k=A.hash_size;do{var z=A.head[--W];A.head[W]=z>=H?z-H:0}while(--k);W=k=H;do z=A.prev[--W],A.prev[W]=z>=H?z-H:0;while(--k);d+=H}if(A.strm.avail_in===0)break;W=A.strm;k=A.window;z=A.strstart+A.lookahead;var u=W.avail_in;u>d&&(u=d);u===0?k=0:(W.avail_in-=u,re.arraySet(k,W.input,W.next_in,u,z),W.state.wrap===
1?W.adler=fef(W.adler,k,u,z):W.state.wrap===2&&(W.adler=bZ(W.adler,k,u,z)),W.next_in+=u,W.total_in+=u,k=u);A.lookahead+=k;if(A.lookahead+A.insert>=3)for(d=A.strstart-A.insert,A.ins_h=A.window[d],A.ins_h=(A.ins_h<<A.hash_shift^A.window[d+1])&A.hash_mask;A.insert&&!(A.ins_h=(A.ins_h<<A.hash_shift^A.window[d+3-1])&A.hash_mask,A.prev[d&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=d,d++,A.insert--,A.lookahead+A.insert<3););}while(A.lookahead<262&&A.strm.avail_in!==0)};
wMr=function(A,H){for(var k;;){if(A.lookahead<262){L5(A);if(A.lookahead<262&&H===0)return 1;if(A.lookahead===0)break}k=0;A.lookahead>=3&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,k=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);k!==0&&A.strstart-k<=A.w_size-262&&(A.match_length=ZFl(A,k));if(A.match_length>=3)if(k=eF(A,A.strstart-A.match_start,A.match_length-3),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=3){A.match_length--;
do A.strstart++,A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart;while(--A.match_length!==0);A.strstart++}else A.strstart+=A.match_length,A.match_length=0,A.ins_h=A.window[A.strstart],A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+1])&A.hash_mask;else k=eF(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++;if(k&&(mS(A,!1),A.strm.avail_out===0))return 1}A.insert=A.strstart<2?A.strstart:2;return H===4?(mS(A,
!0),A.strm.avail_out===0?3:4):A.last_lit&&(mS(A,!1),A.strm.avail_out===0)?1:2};
vL=function(A,H){for(var k,d;;){if(A.lookahead<262){L5(A);if(A.lookahead<262&&H===0)return 1;if(A.lookahead===0)break}k=0;A.lookahead>=3&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,k=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);A.prev_length=A.match_length;A.prev_match=A.match_start;A.match_length=2;k!==0&&A.prev_length<A.max_lazy_match&&A.strstart-k<=A.w_size-262&&(A.match_length=ZFl(A,k),A.match_length<=5&&(A.strategy===1||A.match_length===3&&
A.strstart-A.match_start>4096)&&(A.match_length=2));if(A.prev_length>=3&&A.match_length<=A.prev_length){d=A.strstart+A.lookahead-3;k=eF(A,A.strstart-1-A.prev_match,A.prev_length-3);A.lookahead-=A.prev_length-1;A.prev_length-=2;do++A.strstart<=d&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);while(--A.prev_length!==0);A.match_available=0;A.match_length=2;A.strstart++;if(k&&(mS(A,!1),A.strm.avail_out===0))return 1}else if(A.match_available){if((k=
eF(A,0,A.window[A.strstart-1]))&&mS(A,!1),A.strstart++,A.lookahead--,A.strm.avail_out===0)return 1}else A.match_available=1,A.strstart++,A.lookahead--}A.match_available&&(eF(A,0,A.window[A.strstart-1]),A.match_available=0);A.insert=A.strstart<2?A.strstart:2;return H===4?(mS(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(mS(A,!1),A.strm.avail_out===0)?1:2};
oII=function(A,H){for(var k,d,W,z=A.window;;){if(A.lookahead<=258){L5(A);if(A.lookahead<=258&&H===0)return 1;if(A.lookahead===0)break}A.match_length=0;if(A.lookahead>=3&&A.strstart>0&&(d=A.strstart-1,k=z[d],k===z[++d]&&k===z[++d]&&k===z[++d])){for(W=A.strstart+258;k===z[++d]&&k===z[++d]&&k===z[++d]&&k===z[++d]&&k===z[++d]&&k===z[++d]&&k===z[++d]&&k===z[++d]&&d<W;);A.match_length=258-(W-d);A.match_length>A.lookahead&&(A.match_length=A.lookahead)}A.match_length>=3?(k=eF(A,1,A.match_length-3),A.lookahead-=
A.match_length,A.strstart+=A.match_length,A.match_length=0):(k=eF(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++);if(k&&(mS(A,!1),A.strm.avail_out===0))return 1}A.insert=0;return H===4?(mS(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(mS(A,!1),A.strm.avail_out===0)?1:2};
$Hl=function(A,H){for(var k;;){if(A.lookahead===0&&(L5(A),A.lookahead===0)){if(H===0)return 1;break}A.match_length=0;k=eF(A,0,A.window[A.strstart]);A.lookahead--;A.strstart++;if(k&&(mS(A,!1),A.strm.avail_out===0))return 1}A.insert=0;return H===4?(mS(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(mS(A,!1),A.strm.avail_out===0)?1:2};
yv=function(A,H,k,d,W){this.good_length=A;this.max_lazy=H;this.nice_length=k;this.max_chain=d;this.func=W};
A6W=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 re.Buf16(1146);this.dyn_dtree=new re.Buf16(122);this.bl_tree=new re.Buf16(78);hf(this.dyn_ltree);hf(this.dyn_dtree);hf(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new re.Buf16(16);this.heap=new re.Buf16(573);hf(this.heap);this.heap_max=this.heap_len=0;this.depth=new re.Buf16(573);hf(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};
H0A=function(A,H){if(!A||!A.state||H>5||H<0)return A?iZ(A,-2):-2;var k=A.state;if(!A.output||!A.input&&A.avail_in!==0||k.status===666&&H!==4)return iZ(A,A.avail_out===0?-5:-2);k.strm=A;var d=k.last_flush;k.last_flush=H;if(k.status===42)if(k.wrap===2)A.adler=0,Jf(k,31),Jf(k,139),Jf(k,8),k.gzhead?(Jf(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),Jf(k,k.gzhead.time&255),Jf(k,k.gzhead.time>>8&255),Jf(k,k.gzhead.time>>16&255),Jf(k,k.gzhead.time>>
24&255),Jf(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),Jf(k,k.gzhead.os&255),k.gzhead.extra&&k.gzhead.extra.length&&(Jf(k,k.gzhead.extra.length&255),Jf(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(A.adler=bZ(A.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(Jf(k,0),Jf(k,0),Jf(k,0),Jf(k,0),Jf(k,0),Jf(k,k.level===9?2:k.strategy>=2||k.level<2?4:0),Jf(k,3),k.status=113);else{var W=8+(k.w_bits-8<<4)<<8;W|=(k.strategy>=2||k.level<2?0:k.level<6?1:k.level===6?2:3)<<6;k.strstart!==0&&(W|=
32);k.status=113;ge(k,W+(31-W%31));k.strstart!==0&&(ge(k,A.adler>>>16),ge(k,A.adler&65535));A.adler=1}if(k.status===69)if(k.gzhead.extra){for(W=k.pending;k.gzindex<(k.gzhead.extra.length&65535)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>W&&(A.adler=bZ(A.adler,k.pending_buf,k.pending-W,W)),OY(A),W=k.pending,k.pending!==k.pending_buf_size));)Jf(k,k.gzhead.extra[k.gzindex]&255),k.gzindex++;k.gzhead.hcrc&&k.pending>W&&(A.adler=bZ(A.adler,k.pending_buf,k.pending-W,W));k.gzindex===k.gzhead.extra.length&&
(k.gzindex=0,k.status=73)}else k.status=73;if(k.status===73)if(k.gzhead.name){W=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>W&&(A.adler=bZ(A.adler,k.pending_buf,k.pending-W,W)),OY(A),W=k.pending,k.pending===k.pending_buf_size)){var z=1;break}z=k.gzindex<k.gzhead.name.length?k.gzhead.name.charCodeAt(k.gzindex++)&255:0;Jf(k,z)}while(z!==0);k.gzhead.hcrc&&k.pending>W&&(A.adler=bZ(A.adler,k.pending_buf,k.pending-W,W));z===0&&(k.gzindex=0,k.status=91)}else k.status=91;if(k.status===
91)if(k.gzhead.comment){W=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>W&&(A.adler=bZ(A.adler,k.pending_buf,k.pending-W,W)),OY(A),W=k.pending,k.pending===k.pending_buf_size)){z=1;break}z=k.gzindex<k.gzhead.comment.length?k.gzhead.comment.charCodeAt(k.gzindex++)&255:0;Jf(k,z)}while(z!==0);k.gzhead.hcrc&&k.pending>W&&(A.adler=bZ(A.adler,k.pending_buf,k.pending-W,W));z===0&&(k.status=103)}else k.status=103;k.status===103&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&OY(A),
k.pending+2<=k.pending_buf_size&&(Jf(k,A.adler&255),Jf(k,A.adler>>8&255),A.adler=0,k.status=113)):k.status=113);if(k.pending!==0){if(OY(A),A.avail_out===0)return k.last_flush=-1,0}else if(A.avail_in===0&&(H<<1)-(H>4?9:0)<=(d<<1)-(d>4?9:0)&&H!==4)return iZ(A,-5);if(k.status===666&&A.avail_in!==0)return iZ(A,-5);if(A.avail_in!==0||k.lookahead!==0||H!==0&&k.status!==666){d=k.strategy===2?$Hl(k,H):k.strategy===3?oII(k,H):jF[k.level].func(k,H);if(d===3||d===4)k.status=666;if(d===1||d===3)return A.avail_out===
0&&(k.last_flush=-1),0;if(d===2&&(H===1?(zZ(k,2,3),qG(k,256,RE),k.bi_valid===16?(WL(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):k.bi_valid>=8&&(k.pending_buf[k.pending++]=k.bi_buf&255,k.bi_buf>>=8,k.bi_valid-=8)):H!==5&&(zZ(k,0,3),KHr(k,0,0),H===3&&(hf(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),OY(A),A.avail_out===0))return k.last_flush=-1,0}if(H!==4)return 0;if(k.wrap<=0)return 1;k.wrap===2?(Jf(k,A.adler&255),Jf(k,A.adler>>8&255),Jf(k,A.adler>>16&255),Jf(k,A.adler>>24&255),Jf(k,
A.total_in&255),Jf(k,A.total_in>>8&255),Jf(k,A.total_in>>16&255),Jf(k,A.total_in>>24&255)):(ge(k,A.adler>>>16),ge(k,A.adler&65535));OY(A);k.wrap>0&&(k.wrap=-k.wrap);return k.pending!==0?0:1};
sOm=function(A){if(!(this instanceof sOm))return new sOm(A);A=this.options=re.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},A||{});A.raw&&A.windowBits>0?A.windowBits=-A.windowBits:A.gzip&&A.windowBits>0&&A.windowBits<16&&(A.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new knI;this.strm.avail_out=0;var H=this.strm;var k=A.level,d=A.method,W=A.windowBits,z=A.memLevel,u=A.strategy;if(H){var B=1;k===-1&&(k=6);W<0?(B=0,W=-W):W>15&&
(B=2,W-=16);if(z<1||z>9||d!==8||W<8||W>15||k<0||k>9||u<0||u>4)H=iZ(H,-2);else{W===8&&(W=9);var h=new A6W;H.state=h;h.strm=H;h.wrap=B;h.gzhead=null;h.w_bits=W;h.w_size=1<<h.w_bits;h.w_mask=h.w_size-1;h.hash_bits=z+7;h.hash_size=1<<h.hash_bits;h.hash_mask=h.hash_size-1;h.hash_shift=~~((h.hash_bits+3-1)/3);h.window=new re.Buf8(h.w_size*2);h.head=new re.Buf16(h.hash_size);h.prev=new re.Buf16(h.w_size);h.lit_bufsize=1<<z+6;h.pending_buf_size=h.lit_bufsize*4;h.pending_buf=new re.Buf8(h.pending_buf_size);
h.d_buf=h.lit_bufsize;h.l_buf=3*h.lit_bufsize;h.level=k;h.strategy=u;h.method=d;if(H&&H.state){H.total_in=H.total_out=0;H.data_type=2;k=H.state;k.pending=0;k.pending_out=0;k.wrap<0&&(k.wrap=-k.wrap);k.status=k.wrap?42:113;H.adler=k.wrap===2?0:1;k.last_flush=0;if(!d0f){d=Array(16);for(z=u=0;z<28;z++)for(QlC[z]=u,W=0;W<1<<pMI[z];W++)uZ[u++]=z;uZ[u-1]=z;for(z=u=0;z<16;z++)for(EIC[z]=u,W=0;W<1<<Vsb[z];W++)BL[u++]=z;for(u>>=7;z<30;z++)for(EIC[z]=u<<7,W=0;W<1<<Vsb[z]-7;W++)BL[256+u++]=z;for(W=0;W<=15;W++)d[W]=
0;for(W=0;W<=143;)RE[W*2+1]=8,W++,d[8]++;for(;W<=255;)RE[W*2+1]=9,W++,d[9]++;for(;W<=279;)RE[W*2+1]=7,W++,d[7]++;for(;W<=287;)RE[W*2+1]=8,W++,d[8]++;DHl(RE,287,d);for(W=0;W<30;W++)TZ[W*2+1]=5,TZ[W*2]=XMA(W,5);W$W=new GDf(RE,pMI,257,286,15);z7N=new GDf(TZ,Vsb,0,30,15);q6I=new GDf([],r6C,0,19,7);d0f=!0}k.l_desc=new FHC(k.dyn_ltree,W$W);k.d_desc=new FHC(k.dyn_dtree,z7N);k.bl_desc=new FHC(k.bl_tree,q6I);k.bi_buf=0;k.bi_valid=0;SJV(k);k=0}else k=iZ(H,-2);k===0&&(H=H.state,H.window_size=2*H.w_size,hf(H.head),
H.max_lazy_match=jF[H.level].max_lazy,H.good_match=jF[H.level].good_length,H.nice_match=jF[H.level].nice_length,H.max_chain_length=jF[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=2,H.match_available=0,H.ins_h=0);H=k}}else H=-2;if(H!==0)throw Error(xh[H]);A.header&&(H=this.strm)&&H.state&&H.state.wrap===2&&(H.state.gzhead=A.header);if(A.dictionary){var O;typeof A.dictionary==="string"?O=uIX(A.dictionary):BuW.call(A.dictionary)==="[object ArrayBuffer]"?
O=new Uint8Array(A.dictionary):O=A.dictionary;A=this.strm;z=O;u=z.length;if(A&&A.state)if(O=A.state,H=O.wrap,H===2||H===1&&O.status!==42||O.lookahead)H=-2;else{H===1&&(A.adler=fef(A.adler,z,u,0));O.wrap=0;u>=O.w_size&&(H===0&&(hf(O.head),O.strstart=0,O.block_start=0,O.insert=0),k=new re.Buf8(O.w_size),re.arraySet(k,z,u-O.w_size,O.w_size,0),z=k,u=O.w_size);k=A.avail_in;d=A.next_in;W=A.input;A.avail_in=u;A.next_in=0;A.input=z;for(L5(O);O.lookahead>=3;){z=O.strstart;u=O.lookahead-2;do O.ins_h=(O.ins_h<<
O.hash_shift^O.window[z+3-1])&O.hash_mask,O.prev[z&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=z,z++;while(--u);O.strstart=z;O.lookahead=2;L5(O)}O.strstart+=O.lookahead;O.block_start=O.strstart;O.insert=O.lookahead;O.lookahead=0;O.match_length=O.prev_length=2;O.match_available=0;A.next_in=d;A.input=W;A.avail_in=k;O.wrap=H;H=0}else H=-2;if(H!==0)throw Error(xh[H]);this._dict_set=!0}};
e7f=function(A,H){H=H||{};H.gzip=!0;H=new sOm(H);H.push(A,!0);if(H.err)throw H.msg||xh[H.err];return H.result};
i0f=function(A,H){var k=x0b();k&&k.publish.call(k,A.toString(),A,H)};
m0m=function(A,H,k){var d=x0b();if(!d)return 0;var W=d.subscribe(A.toString(),function(z,u){var B=_.UD("ytPubsub2Pubsub2SkipSubKey");B&&B==W||(B=function(){if(h78[W])try{if(u&&A instanceof O0A&&A!=z)try{var h=A.dataClass,O=u;if(!O.args||!O.version)throw Error("bd");try{if(!h.version_){var T=new h;h.version_=T.version}var m=h.version_}catch(J){}if(!m||O.version!=m)throw Error("cd");try{u=Reflect.construct(h,_.tA(O.args))}catch(J){throw J.message="yt.pubsub2.Data.deserialize(): "+J.message,J;}}catch(J){throw J.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+A.toString()+": "+J.message,J;}H.call(k||window,u)}catch(J){_.V$(J)}},R7N[A.toString()]?_.UD("yt.scheduler.instance")?_.IE.addLowPriorityJob(B):_.zi(B,0):B())});
h78[W]=!0;TuQ[A.toString()]||(TuQ[A.toString()]=[]);TuQ[A.toString()].push(W);return W};
L$8=function(){var A=J6I,H=m0m(g9A,function(k){A.apply(void 0,arguments);b0I(H)});
return H};
b0I=function(A){var H=x0b();H&&(typeof A==="number"&&(A=[A]),_.t3(A,function(k){H.unsubscribeByKey(k);delete h78[k]}))};
x0b=function(){return _.UD("ytPubsub2Pubsub2Instance")};
v98=function(A,H,k){k=k===void 0?{sampleRate:.1}:k;Math.random()<Math.min(.02,k.sampleRate/100)&&i0f("meta_logging_csi_event",{timerName:A,timelineData:H})};
_.y6V=function(A){return A?(A=A.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.e_(A):null:null};
_.Yh=function(A){return A?(A=A.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.px(A):null:null};
IS8=function(){jOA||(jOA=_.Yh(_.pZ("WORKER_SERIALIZATION_URL")));return jOA||void 0};
_.Pyb=function(){var A=IS8();Y68||A===void 0||(Y68=KJI(A));return Y68};
_.GnC=function(){return typeof Worker==="function"&&IS8()?!0:!1};
_.S6N=function(){if(_.GnC()&&!F$I){var A=function(k){k=k.data;if(k.op==="gzippedGelBatch"){var d=XWW.get(k.key);d&&(D0I(k.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),XWW.delete(k.key))}},H=_.Pyb();
H&&(H.addEventListener("message",A),H.onerror=function(){XWW.clear()},F$I=!0)}};
QOI=function(A,H,k,d,W){W=W===void 0?!1:W;var z={startTime:(0,_.w2)(),ticks:{},infos:{}};if(PL)try{var u=CyV(H);if(u!=null&&(u>K$W||u<aSm))d(A,k);else{if(_.b("gzip_gel_with_worker")){F$I||_.S6N();var B=_.Pyb();if(B&&!W){XWW.set(c6V,{latencyPayload:z,url:A,options:k,sendFn:d});B.postMessage({op:"gelBatchToGzip",serializedBatch:H,key:c6V});c6V++;return}}var h=e7f(pWm(H));D0I(h,z,A,k,d)}}catch(O){_.lt(O),d(A,k)}else d(A,k)};
D0I=function(A,H,k,d,W){var z=(0,_.w2)();H.ticks.gelc=z;GZ++;_.b("disable_compression_due_to_performance_degredation")&&z-H.startTime>=VDm&&(E9f++,PL=!1);U0V(H);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=A;d.postParams=void 0;W(k,d)};
tDm=function(A){var H=H===void 0?!1:H;var k=k===void 0?!1:k;var d=(0,_.w2)(),W={startTime:d,ticks:{},infos:{}},z=H?_.UD("yt.logging.gzipForFetch",!1):!0;if(PL&&z){if(!A.body)return A;try{var u=k?A.body:typeof A.body==="string"?A.body:JSON.stringify(A.body);z=u;if(!k&&typeof u==="string"){var B=CyV(u);if(B!=null&&(B>K$W||B<aSm))return A;k=H?{level:1}:void 0;z=e7f(pWm(u),k);var h=(0,_.w2)();W.ticks.gelc=h;if(H){GZ++;if((_.b("disable_compression_due_to_performance_degredation")||_.b("disable_compression_due_to_performance_degradation_lr"))&&
h-d>=VDm)if(E9f++,_.b("abandon_compression_after_N_slow_zips_lr")){H=E9f/GZ;var O=lSA/_.H5("compression_disable_point");GZ>0&&GZ%_.H5("compression_disable_point")===0&&H>=O&&(PL=!1)}else PL=!1;U0V(W)}}A.headers=Object.assign({},{"Content-Encoding":"gzip"},A.headers||{});A.body=z;return A}catch(T){return _.lt(T),A}}else return A};
CyV=function(A){try{return(new Blob(A.split(""))).size}catch(H){return _.lt(H),null}};
U0V=function(A){_.b("gel_compression_csi_killswitch")||!_.b("log_gel_compression_latency")&&!_.b("log_gel_compression_latency_lr")||v98("gel_compression",A,{sampleRate:.1})};
Nub=function(){this.blockSize=-1};
FZ=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var A=1;A<this.blockSize;++A)this.pad_[A]=0;this.total_=this.inbuf_=0;this.reset()};
n9C=function(A){A=Object.assign({},A);delete A.Authorization;var H=_.MDW();if(H){var k=new FZ;k.update(_.pZ("INNERTUBE_API_KEY"));k.update(H);A.hash=_.ob(k.digest(),3)}return A};
SF=function(){Z0C||(Z0C=new _.D$("yt.innertube"));return Z0C};
fSQ=function(A,H,k,d){if(d)return null;d=SF().get("nextId",!0)||1;var W=SF().get("requests",!0)||{};W[d]={method:A,request:H,authState:n9C(k),requestTime:Math.round((0,_.w2)())};SF().set("nextId",d+1,86400,!0);SF().set("requests",W,86400,!0);return d};
wWW=function(A){var H=SF().get("requests",!0)||{};delete H[A];SF().set("requests",H,86400,!0)};
$0f=function(A){var H=SF().get("requests",!0);if(H){for(var k in H){var d=H[k];if(!(Math.round((0,_.w2)())-d.requestTime<6E4)){var W=d.authState,z=n9C(_.YJf(!1));_.iK.equals(W,z)&&(W=d.request,"requestTimeMs"in W&&(W.requestTimeMs=Math.round((0,_.w2)())),o9W(A,d.method,W,{}));delete H[k]}}SF().set("requests",H,86400,!0)}};
A7I=function(A){var H;return(A=A==null?void 0:(H=A.error)==null?void 0:H.code)&&A>=400&&A<=599?!1:!0};
H3b=function(A){var H;A=A==null?void 0:(H=A.error)==null?void 0:H.code;return!(A!==400&&A!==415)};
kAI=function(){if(syI)return syI();var A={};syI=fG("LogsDatabaseV2",{objectStores:(A.LogsRequestsStore={addedAtVersion:2},A),shared:!1,upgrade:function(H,k,d){k(2)&&C5(H,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});k(3);k(5)&&(d=d.objectStore("LogsRequestsStore"),d.JSC$11002_wrapped.indexNames.contains("newRequest")&&d.JSC$11002_wrapped.deleteIndex("newRequest"),K5(d,"newRequestV2",["status","interface","timestamp"]));k(7)&&H.JSC$10987_wrapped.objectStoreNames.contains("sapisid")&&H.JSC$10987_wrapped.deleteObjectStore("sapisid");
k(9)&&H.JSC$10987_wrapped.objectStoreNames.contains("SWHealthLog")&&H.JSC$10987_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return syI()};
aE=function(A){return _.Ea(kAI(),A)};
WuV=function(A,H){var k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return k={startTime:(0,_.w2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},u.yield(aE(H),2);if(u.nextAddress!=3)return d=u.yieldResult,W=Object.assign({},A,{options:JSON.parse(JSON.stringify(A.options)),interface:_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),u.yield(d.put("LogsRequestsStore",W),3);z=u.yieldResult;k.ticks.tc=(0,_.w2)();dtQ(k);return u.return(z)})};
zS8=function(A,H){var k,d,W,z,u,B,h,O,T;return _.e(function(m){if(m.nextAddress==1)return k={startTime:(0,_.w2)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},m.yield(aE(H),2);if(m.nextAddress!=3)return d=m.yieldResult,W=_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),z=[A,W,0],u=[A,W,(0,_.w2)()],B=IDBKeyRange.bound(z,u),h="prev",_.b("use_fifo_for_networkless")&&(h="next"),O=void 0,T=A==="NEW"?"readwrite":"readonly",_.b("use_readonly_for_get_most_recent_by_status_killswitch")&&(T="readwrite"),
m.yield(_.Ua(d,["LogsRequestsStore"],{mode:T,enableRetries:!0},function(J){return _.oP(J.objectStore("LogsRequestsStore").index("newRequestV2"),{query:B,direction:h},function(g){g.getValue()&&(O=g.getValue(),A==="NEW"&&(O.status="QUEUED",g.update(O)))})}),3);
k.ticks.tc=(0,_.w2)();dtQ(k);return m.return(O)})};
qRI=function(A,H){var k;return _.e(function(d){if(d.nextAddress==1)return d.yield(aE(H),2);k=d.yieldResult;return d.return(_.Ua(k,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){var z=W.objectStore("LogsRequestsStore");return z.get(A).then(function(u){if(u)return u.status="QUEUED",z.put(u).then(function(){return u})})}))})};
r7X=function(A,H,k,d){k=k===void 0?!0:k;var W;return _.e(function(z){if(z.nextAddress==1)return z.yield(aE(H),2);W=z.yieldResult;return z.return(_.Ua(W,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(u){var B=u.objectStore("LogsRequestsStore");return B.get(A).then(function(h){return h?(h.status="NEW",k&&(h.sendCount+=1),d!==void 0&&(h.options.compress=d),B.put(h).then(function(){return h})):CG.resolve(void 0)})}))})};
ucb=function(A,H){var k;return _.e(function(d){if(d.nextAddress==1)return d.yield(aE(H),2);k=d.yieldResult;return d.return(k.delete("LogsRequestsStore",A))})};
BbX=function(A){var H,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(aE(A),2);H=d.yieldResult;k=(0,_.w2)()-2592E6;return d.yield(_.Ua(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(W){return tn(W.objectStore("LogsRequestsStore"),{},function(z){if(z.getValue().timestamp<=k)return z.delete().then(function(){return z.continue()})})}),0)})};
eSW=function(){_.e(function(A){return A.yield(HFV("LogsDatabaseV2"),0)})};
dtQ=function(A){_.b("nwl_csi_killswitch")||v98("networkless_performance",A,{sampleRate:1})};
_.i3V=function(A){return _.Ea(xtm(),A)};
hSQ=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return d.yield(_.i3V(A),2);H=d.yieldResult;k=(0,_.w2)()-2592E6;return d.yield(_.Ua(H,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(W){return tn(W.objectStore("SWHealthLog"),{},function(z){if(z.getValue().timestamp<=k)return z.delete().then(function(){return z.continue()})})}),0)})};
O3m=function(A){var H;return _.e(function(k){if(k.nextAddress==1)return k.yield(_.i3V(A),2);H=k.yieldResult;return k.yield(H.clear("SWHealthLog"),0)})};
_.cL=function(A,H,k,d,W,z,u){W=W===void 0?"":W;z=z===void 0?!1:z;u=u===void 0?!1:u;if(A)if(k&&!FD("cobalt"))_.lt(new _.Ti("Legacy referrer-scrubbed ping detected")),A&&RSb(A,void 0,{scrubReferrer:!0});else if(W)lWl(A,H,"POST",W,d);else if(_.pZ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||u)lWl(A,H,"GET","",d,void 0,z,u);else{b:{try{c:{var B=new Tbv({url:A});if(B.urlParamValues_.dsh==="1")var h=null;else{var O=B.urlParamValues_.ae;if(O==="1"){var T=B.urlParamValues_.adurl;if(T)try{h={version:3,directUrl:decodeURIComponent(T),
asyncUrl:glX(B.JSC$9789_url_,"act=1","ri=1",mtI(B))};break c}catch(v){}}h=O==="2"?{version:4,directUrl:glX(B.JSC$9789_url_,"dct=1","suid="+B.suid_,"ri=1"),asyncUrl:glX(B.JSC$9789_url_,"act=1","ri=1","suid="+B.suid_)}:null}}if(h){var m=_.Nx(A);var J=!(!m||!m.endsWith("/aclk")||_.H4(A,"ri")!=="1");break b}}catch(v){}J=!1}if(J){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(A,"")){var g=!0;break b}}catch(v){}g=!1}g?(H&&H(),k=!0):k=!1}else k=!1;k||RSb(A,H)}};
RSb=function(A,H,k){k=k===void 0?{}:k;var d=new Image,W=""+J7v++;g5X[W]=d;d.onload=d.onerror=function(){H&&g5X[W]&&H();delete g5X[W]};
k.scrubReferrer&&(d.referrerPolicy="no-referrer");d.src=A};
p5=function(A,H){b3m(A,H==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
LuQ=function(A){var H;return((H=document.featurePolicy)==null?0:H.allowedFeatures().includes("attribution-reporting"))?A+"&nis=6":A+"&nis=5"};
v5v=function(A){if(!A)return!1;try{var H;if(((H=_.NP(A))==null?void 0:H.asm)==="4")return!0}catch(k){_.V$(k)}return!1};
b3m=function(A,H){H?(A=LuQ(A),_.cL(A,void 0,void 0,void 0,"",!0,!0)):_.cL(A)};
jyf=function(){y7A||(y7A=new _.D$("yt.offline"));return y7A};
IfN=function(A){if(_.b("offline_error_handling")){var H=jyf().get("errors",!0)||{};H[A.message]={name:A.name,stack:A.stack};A.level&&(H[A.message].level=A.level);jyf().set("errors",H,2592E3,!0)}};
YRC=function(A,H,k,d){d=d===void 0?!1:d;H=_.b("web_fp_via_jspb")?Object.assign({},H):H;if(_.b("use_request_time_ms_header"))H.headers&&ZR(A)&&(H.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.w2)())));else{var W;if((W=H.postParams)==null?0:W.requestTimeMs)H.postParams.requestTimeMs=Math.round((0,_.w2)())}k&&Object.keys(H).length===0?_.cL(A):H.compress?H.postBody?(typeof H.postBody!=="string"&&(H.postBody=JSON.stringify(H.postBody)),QOI(A,H.postBody,H,_.uC,d)):QOI(A,JSON.stringify(H.postParams),
H,nBb,d):_.uC(A,H)};
PcI=function(A,H){_.b("use_event_time_ms_header")&&ZR(A)&&(H.headers||(H.headers={}),H.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.w2)())));return H};
_.Fum=function(){GAr||(GAr=new _.Qv({logOfflineErrors:!0,enablePolling:!0}));return GAr};
_.X88=function(){return _.te(document.location.toString())!=="www.youtube-nocookie.com"};
_.CcX=function(){return _.UD("ytNetworklessLoggingInitializationOptions")?_.Dtb.isNwlInitialized:_.SRl};
KuW=function(A,H){if(_.b("polymer_on_demand_shady_dom")){var k;var d=(k=A.__shady_native_firstElementChild)!=null?k:A.firstElementChild}else d=A.firstElementChild;for(;d;){if(A=H(d)?d:KuW(d,H))return A;d=d.nextElementSibling}return null};
_.c7I=function(){var A=document;if("visibilityState"in A)return A.visibilityState;var H=afl+"VisibilityState";if(H in A)return A[H]};
_.p8C=function(A,H){var k;Vv(A,function(d){k=H[d];return!!k});
return k};
_.UY=function(A){var H=QyN(A);H?H.focus(void 0):_.EY(A)};
QyN=function(A){return(A=KuW(A,function(H){return _.Zd(H)?Vwm(H)&&!!H.offsetParent:!1}))?A:null};
_.EY=function(A,H){A.hasAttribute("tabindex")||A.setAttribute("tabindex","-1");A.focus(H)};
E5N=function(A,H,k,d){d=d===void 0?{}:d;A.addEventListener&&(H!="mouseenter"||"onmouseenter"in document?H!="mouseleave"||"onmouseenter"in document?H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"):H="mouseout":H="mouseover");return _.iK.findKey(lZ,function(W){var z=typeof W[4]==="boolean"&&W[4]==!!d,u=_.nl(W[4])&&_.nl(d)&&_.iK.equals(W[4],d);return!!W.length&&W[0]==A&&W[1]==H&&W[2]==k&&(z||u)})};
_.NG=function(A,H,k,d){d=d===void 0?{}:d;if(!A||!A.addEventListener&&!A.attachEvent)return"";var W=E5N(A,H,k,d);if(W)return W;W=++Utm.count+"";var z=!(H!="mouseenter"&&H!="mouseleave"||!A.addEventListener||"onmouseenter"in document);var u=z?function(B){B=new tf(B);if(!_.Jj(B.relatedTarget,function(h){return h==A},!0))return B.currentTarget=A,B.type=H,k.call(A,B)}:function(B){B=new tf(B);
B.currentTarget=A;return k.call(A,B)};
u=_.ED(u);A.addEventListener?(H=="mouseenter"&&z?H="mouseover":H=="mouseleave"&&z?H="mouseout":H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"),lf8()||typeof d==="boolean"?A.addEventListener(H,u,d):A.addEventListener(H,u,!!d.capture)):A.attachEvent("on"+H,u);lZ[W]=[A,H,k,u,d];return W};
_.Nbf=function(A,H,k){var d=d===void 0?{}:d;var W=_.NG(A,H,function(){_.twm(W);k.apply(A,arguments)},d)};
_.twm=function(A){A&&(typeof A=="string"&&(A=[A]),_.t3(A,function(H){if(H in lZ){var k=lZ[H],d=k[0],W=k[1],z=k[3];k=k[4];d.removeEventListener?lf8()||typeof k==="boolean"?d.removeEventListener(W,z,k):d.removeEventListener(W,z,!!k.capture):d.detachEvent&&d.detachEvent("on"+W,z);delete lZ[H]}}))};
MG=function(A){this.callback_=A;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(A=0;A<4;A++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.NG(window,"mousemove",(0,_.WT)(this.onMouseMove_,this));this.timerId_=_.q4((0,_.WT)(this.checkPosition_,this),25)};
Z3A=function(){var A={};var H=A.preferMobileEvents===void 0?!1:A.preferMobileEvents;A=A.enableScrollEventListener===void 0?!0:A.enableScrollEventListener;if(_.UD("_lact",window)==null){var k=parseInt(_.pZ("LACT"),10);k=isFinite(k)?Date.now()-Math.max(k,0):-1;_.nG("_lact",k,window);_.nG("_fact",k,window);k==-1&&_.n5();MwX(window,H,A);new MG(function(){n5W("mouse",100)})}};
MwX=function(A,H,k){H=H===void 0?!1:H;k=k===void 0?!0:k;_.NG(A.document,"keydown",_.n5);_.NG(A.document,"keyup",_.n5);_.NG(A.document,"mousedown",_.n5);_.NG(A.document,"mouseup",_.n5);H?_.NG(A,"touchmove",function(){n5W("touchmove",200)},{passive:!0}):(_.NG(A,"resize",function(){n5W("resize",200)}),k&&_.NG(A,"scroll",function(){n5W("scroll",200)}));
_.NG(A.document,"touchstart",_.n5,{passive:!0});_.NG(A.document,"touchend",_.n5,{passive:!0})};
n5W=function(A,H){ffN[A]||(ffN[A]=!0,_.IE.addLowPriorityJob(function(){_.n5();ffN[A]=!1},H))};
_.n5=function(){_.UD("_lact",window)==null&&Z3A();var A=Date.now();_.nG("_lact",A,window);_.UD("_fact",window)==-1&&_.nG("_fact",A,window);(A=_.UD("ytglobal.ytUtilActivityCallback_"))&&A()};
_.Z$=function(){var A=_.UD("_lact",window);return A==null?-1:Math.max(Date.now()-A,0)};
_.$h=function(A,H,k){var d=_.f5();if(d&&H){var W=d.subscribe(A,function(){var z=arguments,u=function(){we[W]&&H.apply&&typeof H.apply=="function"&&H.apply(k||window,z)};
try{_.w8b[A]?u():_.zi(u,0)}catch(B){_.V$(B)}},k);
we[W]=!0;oE[A]||(oE[A]=[]);oE[A].push(W);return W}return 0};
_.o5C=function(A){var H=_.f5();H&&(typeof A==="number"?A=[A]:typeof A==="string"&&(A=[parseInt(A,10)]),_.t3(A,function(k){H.unsubscribeByKey(k);delete we[k]}))};
_.$tm=function(A,H){var k=_.f5();k&&k.publish.apply(k,arguments)};
_.HjA=function(A){var H=_.f5();if(H)if(H.clear(A),A)A8N(A);else for(var k in oE)A8N(k)};
_.f5=function(){return _.k8.ytPubsubPubsubInstance};
A8N=function(A){oE[A]&&(A=oE[A],_.t3(A,function(H){we[H]&&delete we[H]}),A.length=0)};
s9b=function(){var A,H;return"h5vcc"in Ab&&((A=Ab.h5vcc.traceEvent)==null?0:A.traceBegin)&&((H=Ab.h5vcc.traceEvent)==null?0:H.traceEnd)?1:"performance"in Ab&&Ab.performance.mark&&Ab.performance.measure?2:0};
kcX=function(A){var H=s9b();switch(H){case 1:Ab.h5vcc.traceEvent.traceBegin("YTLR",A);break;case 2:Ab.performance.mark(A+"-start");break;case 0:break;default:_.HR(H,"unknown trace type")}};
dNX=function(A){var H=s9b();switch(H){case 1:Ab.h5vcc.traceEvent.traceEnd("YTLR",A);break;case 2:H=A+"-start";var k=A+"-end";Ab.performance.mark(k);Ab.performance.measure(A,H,k);break;case 0:break;default:_.HR(H,"unknown trace type")}};
W0Q=function(A){var H,k;(k=(H=window).onerror)==null||k.call(H,A.message,"",0,0,A)};
zR8=function(A){if(_.b("web_lifecycle_error_handling_killswitch"))return A();try{return A()}catch(H){W0Q(H)}};
qtf=function(A){return[A.auth===void 0?"undefined":A.auth,A.isJspb===void 0?"undefined":A.isJspb,A.cttAuthInfo===void 0?"undefined":A.cttAuthInfo,A.tier===void 0?"undefined":A.tier].join("/")};
_.L=function(A,H){if(A)return A[H.name]};
sv=function(){var A=_.UD("yt.logging.ims");A||(A=new Hq,_.nG("yt.logging.ims",A));return A};
RRI=function(A,H){if(A.endpoint==="log_event"){r8l(A);var k=uUv(A),d=BHX(A.payload)||"",W=eRV(d),z=200;if(W){if(W.enabled===!1&&!_.b("web_payload_policy_disabled_killswitch"))return;z=xNl(W.tier);if(z===400){ijb(A,H);return}}kJ[k]=!0;k={cttAuthInfo:k,isJspb:!1,tier:z};sv().storePayload(k,A.payload);hRW(H,!1,k,OjA(d))}};
mNI=function(A,H,k){if(H.endpoint==="log_event"){r8l(void 0,H);var d=uUv(H,!0),W=eRV(A),z=200;if(W){if(W.enabled===!1&&!_.b("web_payload_policy_disabled_killswitch"))return;z=xNl(W.tier);if(z===400){THQ(A,H,k);return}}kJ[d]=!0;d={cttAuthInfo:d,isJspb:!0,tier:z};sv().storePayload(d,Q_(H.payload));hRW(k,!0,d,OjA(A))}};
hRW=function(A,H,k,d){H=H===void 0?!1:H;d=d===void 0?!1:d;A&&(d_=new A);A=_.H5("tvhtml5_logging_max_batch_ads_fork")||_.H5("tvhtml5_logging_max_batch")||_.H5("web_logging_max_batch")||100;var W=(0,_.w2)(),z=J8W(H,k.tier),u=z.lastDebounceQueueFromLogTimeMs;d&&(z.useVideoStatsEndPoint=!0);d=0;k&&(d=sv().getSequenceCount(k));var B=function(){gEC({writeThenSend:!0},H,k.tier)};
d>=1E3?B():d>=A?bjI||(bjI=L0A(function(){B();bjI=void 0},0)):W-u>=10&&(vEX(H,k.tier),z.lastDebounceQueueFromLogTimeMs=W)};
ijb=function(A,H){if(A.endpoint==="log_event"){_.b("more_accurate_gel_parser")&&sv().storePayload({isJspb:!1},A.payload);r8l(A);var k=uUv(A),d=new Map;d.set(k,[A.payload]);var W=BHX(A.payload)||"";H&&(d_=new H);return new _.Wq(function(z,u){d_&&d_.isReady()?y8C(d,d_,z,u,{bypassNetworkless:!0},!0,OjA(W)):z()})}};
THQ=function(A,H,k){if(H.endpoint==="log_event"){r8l(void 0,H);var d=uUv(H,!0),W=new Map;W.set(d,[Q_(H.payload)]);k&&(d_=new k);return new _.Wq(function(z){d_&&d_.isReady()?j9b(W,d_,z,{bypassNetworkless:!0},!0,OjA(A)):z()})}};
uUv=function(A,H){var k="";if(A.dangerousLogToVisitorSession)k="visitorOnlyApprovedKey";else if(A.cttAuthInfo){if(H===void 0?0:H){H=A.cttAuthInfo.token;k=A.cttAuthInfo;var d=new IGC;k.videoId?d.setVideoId(k.videoId):k.playlistId&&zg(d,2,YtI,Ge(k.playlistId));PLI[H]=d}else H=A.cttAuthInfo,k={},H.videoId?k.videoId=H.videoId:H.playlistId&&(k.playlistId=H.playlistId),Gcb[A.cttAuthInfo.token]=k;k=A.cttAuthInfo.token}return k};
gEC=function(A,H,k){A=A===void 0?{}:A;H=H===void 0?!1:H;new _.Wq(function(d,W){var z=J8W(H,k),u=z.useVideoStatsEndPoint;z.useVideoStatsEndPoint=!1;F0m(z.queueTimer);F0m(z.queueMaxTimer);z.queueMaxTimer=0;d_&&d_.isReady()?k===void 0&&_.b("enable_web_tiered_gel")?Xnb(d,W,A,H,300,u):Xnb(d,W,A,H,k,u):(vEX(H,k),d())})};
Xnb=function(A,H,k,d,W,z){var u=d_;k=k===void 0?{}:k;d=d===void 0?!1:d;W=W===void 0?200:W;z=z===void 0?!1:z;var B=new Map,h=new Map,O={isJspb:d,cttAuthInfo:void 0,tier:W},T={isJspb:d,cttAuthInfo:void 0};if(d){H=_.r(Object.keys(kJ));for(W=H.next();!W.done;W=H.next())W=W.value,h=_.b("enable_web_tiered_gel")?sv().smartExtractMatchingEntries({keys:[O,T],sizeLimit:1E3}):sv().extractMatchingEntries({isJspb:!0,cttAuthInfo:W}),h.length>0&&B.set(W,h),(_.b("web_fp_via_jspb_and_json")&&k.writeThenSend||!_.b("web_fp_via_jspb_and_json"))&&
delete kJ[W];j9b(B,u,A,k,!1,z)}else{B=_.r(Object.keys(kJ));for(O=B.next();!O.done;O=B.next())O=O.value,T=_.b("enable_web_tiered_gel")?sv().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:O,tier:W},{isJspb:!1,cttAuthInfo:O}],sizeLimit:1E3}):sv().extractMatchingEntries({isJspb:!1,cttAuthInfo:O}),T.length>0&&h.set(O,T),(_.b("web_fp_via_jspb_and_json")&&k.writeThenSend||!_.b("web_fp_via_jspb_and_json"))&&delete kJ[O];y8C(h,u,A,H,k,!1,z)}};
vEX=function(A,H){A=A===void 0?!1:A;H=H===void 0?200:H;var k=function(){gEC({writeThenSend:!0},A,H)},d=J8W(A,H),W=d===DNQ||d===Stm?5E3:CLv;
_.b("web_gel_timeout_cap")&&!d.queueMaxTimer&&(W=L0A(function(){k()},W),d.queueMaxTimer=W);
F0m(d.queueTimer);W=_.pZ("LOGGING_BATCH_TIMEOUT",_.H5("web_gel_debounce_ms",1E4));_.b("shorten_initial_gel_batch_timeout")&&K0I&&(W=aGQ);W=L0A(function(){_.H5("gel_min_batch_size")>0?sv().getSequenceCount({cttAuthInfo:void 0,isJspb:A,tier:H})>=c8r&&k():k()},W);
d.queueTimer=W};
y8C=function(A,H,k,d,W,z,u){W=W===void 0?{}:W;var B=Math.round((0,_.w2)()),h=A.size,O=pnI(u);A=_.r(A);var T=A.next();for(u={};!T.done;u={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},T=A.next()){var m=_.r(T.value);T=m.next().value;m=m.next().value;u.batchRequest=_.iK.unsafeClone({context:_.mHQ(H.config_||_.$6())});if(!_.Nv(m)&&!_.b("throw_err_when_logevent_malformed_killswitch")){d();break}u.batchRequest.events=m;
(m=Gcb[T])&&Q9f(u.batchRequest,T,m);delete Gcb[T];u.dangerousLogToVisitorSession=T==="visitorOnlyApprovedKey";VOI(u.batchRequest,B,u.dangerousLogToVisitorSession);EEV(W);u.onSuccess$jscomp$3=function(J){_.b("start_client_gcf")&&_.IE.addLowPriorityJob(function(){return _.e(function(g){return g.yield(UNX(J),0)})});
h--;h||k()};
u.networkFailures=0;u.onError$jscomp$5=function(J){return function(){J.networkFailures++;if(W.bypassNetworkless&&J.networkFailures===1)try{o9W(H,O,J.batchRequest,lGC({writeThenSend:!0},J.dangerousLogToVisitorSession,J.onSuccess$jscomp$3,J.onError$jscomp$5,z)),K0I=!1}catch(g){_.V$(g),d()}h--;h||k()}}(u);
try{o9W(H,O,u.batchRequest,lGC(W,u.dangerousLogToVisitorSession,u.onSuccess$jscomp$3,u.onError$jscomp$5,z)),K0I=!1}catch(J){_.V$(J),d()}}};
j9b=function(A,H,k,d,W,z){d=d===void 0?{}:d;var u=Math.round((0,_.w2)()),B={value:A.size},h=new Map([].concat(_.fV(A)));h=_.r(h);for(var O=h.next();!O.done;O=h.next()){var T=_.r(O.value).next().value,m=A.get(T);O=new qV;var J=H.config_||_.$6(),g=new r_,v=new tOV;_.qC(v,1,J.innertubeContextHostLanguage);_.qC(v,2,J.innertubeContextGeoLocation);_.HL(v,16,J.innertubeContextClientNameFieldNumber);_.qC(v,17,J.innertubeContextClientVersion);if(J.innertubeContextClientConfigInfo){var y=J.innertubeContextClientConfigInfo,
X=new kh;y.coldConfigData&&_.qC(X,1,y.coldConfigData);y.appInstallData&&_.qC(X,6,y.appInstallData);y.coldHashData&&_.qC(X,3,y.coldHashData);y.hotHashData&&X.setHotHashData(y.hotHashData);_.Sn(v,62,X)}(y=_.k8.devicePixelRatio)&&y!=1&&_.sY(v,65,_.sB(y));y=C9I();y!==""&&_.qC(v,54,y);y=KpA();if(y.length>0){X=new NHb;for(var D=0;D<y.length;D++){var K=new ul;K.setKey(y[D].key);zg(K,2,MOv,Ge(y[D].value));Bq(X,15,ul,K)}_.Sn(g,5,X)}xHm(J,v);iFN(g);hYV(v);OFb(J,v);RYC(v);_.b("start_client_gcf")&&T48(v);_.pZ("DELEGATED_SESSION_ID")&&
!_.b("pageid_as_header_web")&&(J=new eM,_.qC(J,3,_.pZ("DELEGATED_SESSION_ID")));!_.b("fill_delegate_context_in_gel_killswitch")&&(y=_.pZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(X=_.Af(g,eM,3)||new eM,J=g,y=_.qC(X,18,y),_.Sn(J,3,y));J=v;y=_.r(Object.entries(_.NP(_.pZ("DEVICE",""))));for(X=y.next();!X.done;X=y.next())D=_.r(X.value),X=D.next().value,D=D.next().value,X==="cbrand"?_.qC(J,12,D):X==="cmodel"?_.qC(J,13,D):X==="cbr"?_.qC(J,87,D):X==="cbrver"?_.qC(J,88,D):X==="cos"?_.qC(J,18,
D):X==="cosver"?_.qC(J,19,D):X==="cplatform"&&_.HL(J,42,eFN(D));g.setClient(v);_.Sn(O,1,g);if(v=PLI[T])a:{if(_.o8(v,xJ(v,YtI,1)))g=1;else if(v.getPlaylistId())g=2;else break a;_.Sn(O,4,v);v=O.getContext()||new r_;J=_.Af(v,eM,3)||new eM;y=new il;y.setToken(T);_.HL(y,1,g);Bq(J,12,il,y);_.Sn(v,3,J)}delete PLI[T];T=T==="visitorOnlyApprovedKey";nEC()||_.hb(O,2,u);!T&&(g=_.pZ("EVENT_ID"))&&(v=ZjX(),J=new fGr,_.qC(J,1,g),_.hb(J,2,v),_.Sn(O,5,J));EEV(d);if(_.b("jspb_serialize_with_worker")&&(g=_.Pyb())&&
d.writeThenSend){_.wn8.set(oEA,{client:H,resolve:k,networklessOptions:d,isIsolated:W,useVSSEndpoint:z,dangerousLogToVisitorSession:T,requestsOutstanding:B});g.postMessage({op:"gelBatchToSerialize",batchRequest:Q_(O),clientEvents:m,key:oEA});oEA++;break}if(m){g=[];for(v=0;v<m.length;v++)try{g.push(new Tg(m[v]))}catch(N){_.V$(new _.Ti("Transport failed to deserialize "+String(m[v])))}m=g}else m=[];m=_.r(m);for(g=m.next();!g.done;g=m.next())Bq(O,3,Tg,g.value);m={startTime:(0,_.w2)(),ticks:{},infos:{}};
O=O.serialize();m.ticks.geljspc=(0,_.w2)();_.b("log_jspb_serialize_latency")&&v98("gel_jspb_serialize",m,{sampleRate:.1});_.$NW(O,H,k,d,W,z,T,B)}};
_.$NW=function(A,H,k,d,W,z,u,B){d=d===void 0?{}:d;B=B===void 0?{value:0}:B;z=pnI(z);d=lGC(d,u,function(h){_.b("start_client_gcf")&&_.IE.addLowPriorityJob(function(){return _.e(function(O){return O.yield(UNX(h),0)})});
B.value--;B.value||k()},function(){B.value--;
B.value||k()},W);
d.headers["Content-Type"]="application/json+protobuf";d.postBodyFormat="JSPB";d.postBody=A;o9W(H,z,"",d);K0I=!1};
EEV=function(A){_.b("always_send_and_write")&&(A.writeThenSend=!1)};
lGC=function(A,H,k,d,W){A={retry:!0,onSuccess:k,onError:d,networklessOptions:A,dangerousLogToVisitorSession:H,bypassMonitoring:!!W,headers:{},postBodyFormat:"",postBody:"",compress:_.b("compress_gel")||_.b("compress_gel_lr")};nEC()&&(A.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.w2)())));return A};
VOI=function(A,H,k){nEC()||(A.requestTimeMs=String(H));_.b("unsplit_gel_payloads_in_logs")&&(A.unsplitGelPayloadsInLogs=!0);!k&&(H=_.pZ("EVENT_ID"))&&(k=ZjX(),A.serializedClientEventId={serializedEventId:H,clientCounter:String(k)})};
ZjX=function(){var A=_.pZ("BATCH_CLIENT_COUNTER")||0;A||(A=Math.floor(Math.random()*65535/2));A++;A>65535&&(A=1);_.cI("BATCH_CLIENT_COUNTER",A);return A};
Q9f=function(A,H,k){if(k.videoId)var d="VIDEO";else if(k.playlistId)d="PLAYLIST";else return;A.credentialTransferTokenTargetId=k;A.context=A.context||{};A.context.user=A.context.user||{};A.context.user.credentialTransferTokens=[{token:H,scope:d}]};
r8l=function(A,H){var k=_.k6("il_payload_scraping")==="enable_il_payload_scraping";if(!_.UD("yt.logging.transport.enableScrapingForTest"))if(k)AcV=[],_.nG("yt.logging.transport.enableScrapingForTest",!0),_.nG("yt.logging.transport.scrapedPayloadsForTesting",AcV),_.nG("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.nG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.nG("yt.logging.transport.scrapeClientEvent",!0);else return;k=_.UD("yt.logging.transport.scrapedPayloadsForTesting");var d=_.UD("yt.logging.transport.payloadToScrape");H&&(H=_.UD("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(H.payload)())&&k.push(H);H=_.UD("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var W=0;W<d.length;W++)if(A&&A.payload[d[W]])if(H)k.push(A.payload);else{var z=void 0;k.push(((z=A)==null?void 0:z.payload)[d[W]])}_.nG("yt.logging.transport.scrapedPayloadsForTesting",
k)};
nEC=function(){return _.b("use_request_time_ms_header")||_.b("lr_use_request_time_ms_header")};
L0A=function(A,H){return _.b("transport_use_scheduler")===!1?_.zi(A,H):_.b("logging_avoid_blocking_during_navigation")||_.b("lr_logging_avoid_blocking_during_navigation")?_.ma(_.IE,function(){if(_.HhC().currentState==="none")A();else{var k={};_.HhC().install((k.none={callback:A},k))}},H):_.ma(_.IE,A,H)};
F0m=function(A){_.b("transport_use_scheduler")?_.IE.cancelJob(A):_.r2(A)};
UNX=function(A){var H,k,d,W,z,u,B,h,O,T,m,J,g,v,y;return _.e(function(X){if(X.nextAddress==1)return d=(H=A)==null?void 0:(k=H.responseContext)==null?void 0:k.globalConfigGroup,W=_.L(d,s5N),u=(z=d)==null?void 0:z.hotHashData,B=_.L(d,kVX),O=(h=d)==null?void 0:h.coldHashData,(T=_.wj().resolve(_.fZ(Jb)))?u?W?X.yield(dFW(T,u,W),3):X.yield(dFW(T,u),3):X.jumpTo(3):X.jumpTo(2);if(X.nextAddress!=2)return O?B?X.yield(W5Q(T,O,B),2):X.yield(W5Q(T,O),2):X.jumpTo(2);J=(m=d)==null?void 0:m.rawFinchStaticConfigGroup;
v=(g=d)==null?void 0:g.finchStaticHashData;if(!v)return J&&_.lt(new _.Ti("Finch config data is present, but hash is missing.")),X.return();y=_.wj().resolve(_.fZ(zEf));return y?X.yield(y.processAndSetFinchConfig({config:J||{},configHash:v||""}),0):((J||v)&&_.lt(new _.Ti("FinchConfigManagerService is not present, but Finch config data is present.")),X.jumpTo(0))})};
J8W=function(A,H){H=H===void 0?200:H;return A?H===300?DNQ:qFv:H===300?Stm:rc8};
eRV=function(A){if(_.b("enable_web_tiered_gel")){A=uBA[A||""];var H,k,d,W=_.wj().resolve(_.fZ(Jb))==null?void 0:(H=g_())==null?void 0:(k=H.loggingHotConfig)==null?void 0:(d=k.eventLoggingConfig)==null?void 0:d.payloadPolicies;if(W)for(H=0;H<W.length;H++)if(W[H].payloadNumber===A)return W[H]}};
BHX=function(A){A=Object.keys(A);A=_.r(A);for(var H=A.next();!H.done;H=A.next())if(H=H.value,uBA[H])return H};
xNl=function(A){switch(A){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}};
OjA=function(A){return A==="gelDebuggingEvent"};
pnI=function(A){return(A===void 0?0:A)&&_.b("vss_through_gel_video_stats")?"video_stats":"log_event"};
LT=function(A,H,k,d){d=d===void 0?{}:d;var W={},z=Math.round(d.timestamp||(0,_.w2)());W.eventTimeMs=z<Number.MAX_SAFE_INTEGER?z:0;W[A]=H;A=_.Z$();W.context={lastActivityMs:String(d.timestamp||!isFinite(A)?-1:A)};d.sequenceGroup&&!_.b("web_gel_sequence_info_killswitch")&&(A=W.context,H=d.sequenceGroup,H={index:B9f(H),groupKey:H},A.sequence=H,d.endOfSequence&&delete bl[d.sequenceGroup]);_.b("web_tag_automated_log_events")&&(W.context.automatedLogEventSource=d.automatedLogEventSource);(d.sendIsolatedPayload?
ijb:RRI)({endpoint:"log_event",payload:W,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},k)};
B9f=function(A){bl[A]=A in bl?bl[A]+1:0;return bl[A]};
_.yr=function(A,H,k){k=k===void 0?{}:k;var d=vq;_.Q$("ytLoggingEventsDefaultDisabled",!1)&&vq===vq&&(d=null);LT(A,H,d,k)};
_.jM=function(){if(_.b("web_fp_via_jspb")){var A=!0;A=A===void 0?!1:A;var H=eEv;eEv=[];if(H){H=_.r(H);for(var k=H.next();!k.done;k=H.next())k=k.value,A?LT(k.payloadName,k.payload,vq,k.options):_.yr(k.payloadName,k.payload,k.options)}gEC(void 0,!0);if(!_.b("web_fp_via_jspb_and_json"))return}gEC(void 0,!1)};
xFI=function(A,H){var k;if((k=H)==null?0:k.componentStack)return H;if(A=A.componentStack)H||(H={}),H.componentStack=A;return H};
ihb=function(){_.t3(_.pZ("ERRORS")||[],function(A){_.I3.apply(null,A)});
_.cI("ERRORS",[])};
_.YJ=function(A){_.I3(A)};
_.Pq=function(A){_.I3(A,"WARNING")};
hEr=function(A){A instanceof Error?_.I3(A):(A=_.nl(A)?JSON.stringify(A):String(A),A=new _.Ti(A),A.name="RejectedPromiseError",_.Pq(A))};
OhI=function(A,H,k,d,W,z){H=H===void 0?"Unknown file":H;k=k===void 0?0:k;var u=!1,B=hWf("log_window_onerror_fraction");if(B&&Math.random()<B)u=!0;else{B=document.getElementsByTagName("script");for(var h=0,O=B.length;h<O;h++)if(B[h].src.indexOf("/debug-")>0){u=!0;break}}u&&(u=!1,W?u=!0:(typeof A==="string"?B=A:ErrorEvent&&A instanceof ErrorEvent?(u=!0,B=A.message,H=A.filename,k=A.lineno,d=A.colno):(B="Unknown error",H="Unknown file",k=0),W=new _.Ti(B),W.name="UnhandledWindowError",W.message=B,W.fileName=
H,W.lineNumber=k,isNaN(d)?delete W.columnNumber:W.columnNumber=d),_.b("wiz_enable_component_stack_propagation_killswitch")||(z=xFI(W,z)),z&&_.Gg(W,z),u?_.I3(W):_.Pq(W))};
_.I3=function(A,H,k,d,W,z,u,B){z=z===void 0?{}:z;z.name=k||_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME",1);z.version=d||_.pZ("INNERTUBE_CONTEXT_CLIENT_VERSION");k=z;H=H===void 0?"ERROR":H;u=u===void 0?!1:u;H=H===void 0?"ERROR":H;u=u===void 0?!1:u;if(A&&(A.hasOwnProperty("level")&&A.level&&(H=A.level),_.b("console_log_js_exceptions")&&(d=[],d.push("Name: "+A.name),d.push("Message: "+A.message),A.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(A.params)),A.hasOwnProperty("args")&&d.push("Error args: "+
JSON.stringify(A.args)),d.push("File name: "+A.fileName),d.push("Stacktrace: "+A.stack),d=d.join("\n"),window.console.log(d,A)),!(REA>=5))){d=[];W=_.r(T9C);for(z=W.next();!z.done;z=W.next()){z=z.value;try{z()&&d.push(z())}catch(X){}}d=[].concat(_.fV(mFI),_.fV(d));var h=Jcf(A);W=h.message||"Unknown Error";z=h.name||"UnknownError";var O=h.stack||A.stacktrace||"Not available";if(O.startsWith(z+": "+W)){var T=O.split("\n");T.shift();O=T.join("\n")}T=h.lineNumber||"Not available";h=h.fileName||"Not available";
var m=0;if(A.hasOwnProperty("args")&&A.args&&A.args.length)for(var J=0;J<A.args.length&&!(m=BlQ(A.args[J],"params."+J,k,m),m>=500);J++);else if(A.hasOwnProperty("params")&&A.params){var g=A.params;if(typeof A.params==="object")for(J in g){if(g[J]){var v="params."+J,y=ei(g[J]);k[v]=y;m+=v.length+y.length;if(m>500)break}}else k.params=ei(g)}if(d.length)for(J=0;J<d.length&&!(m=BlQ(d[J],"params.context."+J,k,m),m>=500);J++);navigator.vendor&&!k.hasOwnProperty("vendor")&&(k["device.vendor"]=navigator.vendor);
J={message:W,name:z,lineNumber:T,fileName:h,stack:O,params:k,sampleWeight:1};k=Number(A.columnNumber);isNaN(k)||(J.lineNumber=J.lineNumber+":"+k);if(A.level==="IGNORED")A=0;else a:{A=gHl();k=_.r(A.messageWeights);for(d=k.next();!d.done;d=k.next())if(d=d.value,J.message&&J.message.match(d.messageRegExp)){A=d.weight;break a}A=_.r(A.callbackWeights);for(k=A.next();!k.done;k=A.next())if(k=k.value,k.callback(J)){A=k.weight;break a}A=1}J.sampleWeight=A;A=_.r(bhQ);for(k=A.next();!k.done;k=A.next())if(k=
k.value,k.patternsForType[J.name])for(W=_.r(k.patternsForType[J.name]),d=W.next();!d.done;d=W.next())if(z=d.value,d=J.message.match(z.regexp)){J.params["params.error.original"]=d[0];W=z.groups;z={};for(T=0;T<W.length;T++)z[W[T]]=d[T+1],J.params["params.error."+W[T]]=d[T+1];J.message=k.messageFn(z);break}J.params||(J.params={});A=gHl();J.params["params.errorServiceSignature"]="msg="+A.messageWeights.length+"&cb="+A.callbackWeights.length;J.params["params.serviceWorker"]="false";_.k8.document&&_.k8.document.querySelectorAll&&
(J.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new FW(L5r,"sample")).constructor!==FW&&(J.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(J);if(J.sampleWeight!==0&&!vHf.has(J.message)){if(u)yc8(H===void 0?"ERROR":H,J);else{H=H===void 0?"ERROR":H;H==="ERROR"?(XW.publish("handleError",J),_.b("record_app_crashed_web")&&j5v===0&&J.sampleWeight===1&&(j5v++,u={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.b("report_client_error_with_app_crash_ks")||
(u.systemHealth={crashData:{clientError:{logMessage:{message:J.message}}}}),_.yr("appCrashed",u)),IvX++):H==="WARNING"&&XW.publish("handleWarning",J);if(_.b("kevlar_gel_error_routing")){u=H;B=B===void 0?{}:B;b:{A=_.r(YFN);for(k=A.next();!k.done;k=A.next())if(FD(k.value.toLowerCase())){A=!0;break b}A=!1}if(A)B=void 0;else{k={stackTrace:J.stack};J.fileName&&(k.filename=J.fileName);A=J.lineNumber&&J.lineNumber.split?J.lineNumber.split(":"):[];A.length!==0&&(A.length!==1||isNaN(Number(A[0]))?A.length!==
2||isNaN(Number(A[0]))||isNaN(Number(A[1]))||(k.lineNumber=Number(A[0]),k.columnNumber=Number(A[1])):k.lineNumber=Number(A[0]));A={level:"ERROR_LEVEL_UNKNOWN",message:J.message,errorClassName:J.name,sampleWeight:J.sampleWeight};u==="ERROR"?A.level="ERROR_LEVEL_ERROR":u==="WARNING"&&(A.level="ERROR_LEVEL_WARNNING");k={isObfuscated:!0,browserStackInfo:k};B.pageUrl=window.location.href;B.kvPairs=[];_.pZ("FEXP_EXPERIMENTS")&&(B.experimentIds=_.pZ("FEXP_EXPERIMENTS"));d=_.pZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!hWf("web_disable_gel_stp_ecatcher_killswitch")&&d)for(W=_.r(Object.keys(d)),z=W.next();!z.done;z=W.next())z=z.value,B.kvPairs.push({key:z,value:String(d[z])});if(d=J.params)for(W=_.r(Object.keys(d)),z=W.next();!z.done;z=W.next())z=z.value,B.kvPairs.push({key:"client."+z,value:String(d[z])});d=_.pZ("SERVER_NAME");W=_.pZ("SERVER_VERSION");d&&W&&(B.kvPairs.push({key:"server.name",value:d}),B.kvPairs.push({key:"server.version",value:W}));(d=_.pZ("PLAYER_CLIENT_VERSION"))&&B.kvPairs.push({key:"client.player.version",
value:d});B={errorMetadata:B,stackTrace:k,logMessage:A}}B&&(_.yr("clientError",B),(u==="ERROR"||_.b("errors_flush_gel_always_killswitch"))&&_.jM())}_.b("suppress_error_204_logging")||yc8(H,J)}try{vHf.add(J.message)}catch(X){}REA++}}};
yc8=function(A,H){var k=H.params||{};A={urlParams:{a:"logerror",t:"jserror",type:H.name,msg:H.message.substr(0,250),line:H.lineNumber,level:A,"client.name":k.name},postParams:{url:_.pZ("PAGE_NAME",window.location.href),file:H.fileName},method:"POST"};k.version&&(A["client.version"]=k.version);if(A.postParams){H.stack&&(A.postParams.stack=H.stack);H=_.r(Object.keys(k));for(var d=H.next();!d.done;d=H.next())d=d.value,A.postParams["client."+d]=k[d];if(k=_.pZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(H=
_.r(Object.keys(k)),d=H.next();!d.done;d=H.next())d=d.value,A.postParams[d]=k[d];(k=_.pZ("LAVA_VERSION"))&&(A.postParams["lava.version"]=k);k=_.pZ("SERVER_NAME");H=_.pZ("SERVER_VERSION");k&&H&&(A.postParams["server.name"]=k,A.postParams["server.version"]=H);(k=_.pZ("PLAYER_CLIENT_VERSION"))&&(A.postParams["client.player.version"]=k)}_.uC(_.pZ("ECATCHER_REPORT_HOST","")+"/error_204",A)};
_.P2l=function(A,H){H=H===void 0?"ERROR":H;var k=k===void 0?{}:k;var d=_.UD("ytbin.polymer.shared.lib.tampering.info");d&&(d=d())&&(k["params.tamperingInfo"]=d.sort().join(","));_.I3(A,H,void 0,void 0,!0,k)};
_.Gg=function(A){var H=_.o7.apply(1,arguments);A.args||(A.args=[]);Array.isArray(A.args)&&A.args.push.apply(A.args,_.fV(H))};
GVv=function(A){A.level="IGNORED"};
F5A=function(A,H){mFI.push(A);H();mFI.pop()};
D7=function(A,H){for(var k in H)H.hasOwnProperty(k)&&(A=_.kg(A,k,H[k]));return A};
_.XGN=function(A,H,k){k=k===void 0?!1:k;if(!A)return null;if(A.adInfoDialogEndpoint||A.backstageImageUploadEndpoint||A.confirmDialogEndpoint||A.clientActionEndpoint||A.createBackstagePostDialogEndpoint||A.createCommentReplyDialogEndpoint||A.flowEndpoint||A.guideBuilderEndpoint||A.liveChatDialogEndpoint||A.modalEndpoint||A.openPopupAction||A.shareEndpoint||A.shareEntityEndpoint||A.showLiveChatItemEndpoint||A.subscriptionManagerEndpoint||A.unlimitedCreateFamilyEndpoint||A.unlimitedFamilyFlowEndpoint||
A.updateCommentDialogEndpoint||A.updateCommentReplyDialogEndpoint||A.userFeedbackEndpoint||A.videoEditorEndpoint||A.ypcCancelSurveyEndpoint)return H=_.H5("polymer_report_client_url_requested_rate"),!k&&Math.random()<H&&_.Pq(new _.Ti("urlForEndpoint used on client endpoint",A)),null;var d=_.H5("polymer_report_missing_web_navigation_endpoint_rate");if(A.liveChatEndpoint||A.liveChatReplayEndpoint)d=0;if(!A.commandMetadata&&!A.clickTrackingParams&&Math.random()<d){var W={},z;for(z in A)W[z]="1";_.Pq(new _.Ti("Missing navigation data",
W))}W="";if(A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url)W=A.commandMetadata.webCommandMetadata.url;else if(A.searchEndpoint)Math.random()<d&&_.Pq(new _.Ti("Should not manually handle search",A)),W="/results?search_query="+encodeURIComponent(A.searchEndpoint.query).replace(/%20/g,"+"),A.searchEndpoint.params&&(W+="&sp="+A.searchEndpoint.params);else if(A.watchEndpoint)Math.random()<d&&_.Pq(new _.Ti("Should not manually handle watch",A)),W="/watch?v="+
A.watchEndpoint.videoId,A.watchEndpoint.playlistId&&(W+="&list="+A.watchEndpoint.playlistId),A.watchEndpoint.index&&(W+="&index="+A.watchEndpoint.index),A.watchEndpoint.startTimeSeconds&&(W+="&t="+A.watchEndpoint.startTimeSeconds);else if(A.browseEndpoint)d=A.browseEndpoint.browseId,(z=A.browseEndpoint.canonicalBaseUrl)?W=z:d&&(W=d.substr(0,2),W=W==="FE"?d==="FEwhat_to_watch"?"/":d==="FEmy_videos"?"/my_videos":"/feed/"+d.substr(2):W==="VL"?"/playlist?list="+d.substr(2):"/channel/"+d),W&&A.browseEndpoint.query&&
(W=D7(W+"/search",{query:A.browseEndpoint.query})),W&&A.browseEndpoint.params&&(W=D7(W,{params:A.browseEndpoint.params}));else{if(A.urlEndpoint)return A.urlEndpoint.url;A.signInEndpoint?(W="https://accounts.google.com/ServiceLogin",d={},_.iK.extend(d,H||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),H=d):A.uploadEndpoint?W="//www.youtube.com/upload":A.liveChatEndpoint?(W=A.liveChatEndpoint,d=_.iK.clone(W),_.nl(W.continuation)&&(z=Object.keys(W.continuation)[0],
d.continuation=W.continuation[z].continuation),W=D7("/youtubei/v1/live_chat/get_live_chat",d)):A.liveChatReplayEndpoint?(W=_.iK.clone(A.liveChatReplayEndpoint),W.currentPlayerState&&(_.iK.extend(W,W.currentPlayerState),delete W.currentPlayerState),W=D7("/youtubei/v1/live_chat/get_live_chat_replay",W)):A.liveChatItemContextMenuEndpoint?W=D7("/youtubei/v1/live_chat/get_item_context_menu",A.liveChatItemContextMenuEndpoint):A.liveChatPurchaseMessageEndpoint?W=D7("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
A.liveChatPurchaseMessageEndpoint):A.openSuperStickerBuyFlowCommand?W=D7("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",A.openSuperStickerBuyFlowCommand):A.videoEditEndpoint?W=D7("/edit",{video_id:A.videoEditEndpoint.videoId}):A.liveDashboardEndpoint?W=A.liveDashboardEndpoint.videoId?D7("/live_dashboard",{v:A.liveDashboardEndpoint.videoId}):"/live_dashboard":A.signalNavigationEndpoint&&A.signalNavigationEndpoint.signal&&A.signalNavigationEndpoint.signal==="WEBCAM"?W="/webcam":A.getPdgBuyFlowCommand&&
(W=D7(A.getPdgBuyFlowCommand.buyflowApiPath,{params:A.getPdgBuyFlowCommand.params}))}return W||k?D7(W,H||{}):(_.Pq(new _.Ti("Error: Can't construct url for endpoint","keys:"+Object.keys(A).sort().join(","),A)),null)};
DFI=function(A){if(A){if(A.browseEndpoint)return!!A.browseEndpoint.nofollow;if(A.watchEndpoint)return!!A.watchEndpoint.nofollow;if(A.urlEndpoint)return!!A.urlEndpoint.nofollow}return!1};
_.C2Q=function(A,H){var k=H+A,d=SFQ.get(k);if(d)return d;A=H+"-"+A.replace(/([A-Z])/g,"-$1").toLowerCase();SFQ.set(k,A);return A};
K5N=function(A){var H=_.KZ(A,"action")||_.KZ(A,"command")||_.KZ(A,"endpoint");if(!H)return null;H=_.C2Q(H,"yt");_.L(A,_.SM)&&(H+="-"+_.L(A,_.SM).signal.toLowerCase().replace(/_/g,"-"));return H};
Q5I=function(A){try{var H=Object.keys(A)}catch(W){return[]}for(var k=0;k<H.length;k++){var d=H[k];if(avV.test(d)||ccV.test(d))return pGQ(A[d])}return[]};
pGQ=function(A){return A.command?[A.command]:A.onExecutionAction?[A.onExecutionAction]:A.onResponseReceivedCommand?[A.onResponseReceivedCommand]:A.updateFlowCommand?[A.updateFlowCommand]:A.clientActions?A.clientActions:A.action?[A.action]:A.actions||A.commands||A.onResponseReceivedActions||A.onResponseReceivedCommands||A.onResponseReceivedEndpoints||[]};
EHX=function(A,H){H=H===void 0?!1:H;var k=_.wj().resolve(_.fZ(CT));k||(k=new Vuf,_.wj().addProvider({provide:CT,useValue:k}));return k&&A&&!_.iK.isEmpty(A)?k.getUrl(A,H):""};
UFX=function(A,H,k){k=k===void 0?"":k;if(H){A.data=H;var d=EHX(H);d?(A2(A,d),DFI(H)||!ZR(d)?A.rel="nofollow":A.removeAttribute("rel"),_.L(H,_.KT)&&_.L(H,_.KT).target==="TARGET_NEW_WINDOW"?A.target="_blank":k?A.target=k:A.removeAttribute("target")):(A.removeAttribute("href"),A.removeAttribute("rel"),A.removeAttribute("target"))}};
_.Qr=function(A,H){var k=f$;if(jC())lvC(A,function(){var z=_.o7.apply(0,arguments);QM(k,function(){H.apply(null,_.fV(z))})});
else{var d=_.a3.getInstance(),W=i8N(H);up8(function(){W.value=H});
_.CZ(function(){var z={},u=_.cq(d,(z[A]=function(){var B=_.o7.apply(0,arguments);QM(k,function(){W.value.apply(W,_.fV(B))})},z));
return function(){var B={};_.pT(d,(B[A]="",B),u)}})}};
tuQ=function(A){var H=f$,k=ve;return{getFn:function(){return function(d){if(!H.isDisposed){var W=function(){return A(d)};
YU(function(){return _.Oi(W)},k)!==!0&&d.stopPropagation()}}}}};
N9b=function(A){if(typeof A.children==="function")return A.children(),null;A=_.r(A.children);for(var H=A.next();!H.done;H=A.next())H=H.value,H();return null};
Mub=function(A){var H;return((H=A.prototype)==null?void 0:H.render)===void 0};
nHI=function(A){var H=Array.isArray(A.items)?A.items:Array.from(A.items);A=A.children;return(Array.isArray(H)?H:Array.from(H)).map(A)};
fvA=function(A,H,k){k=k===void 0?!1:k;YU(function(){return Zhl(A,H,k)})};
Zhl=function(A,H,k){var d=null;FC++;k=(k===void 0?0:k)?wGQ:oHV;try{d=k(A,function(){Vr(H)}),D5(!1)}catch(W){throw D5(!0),W;
}return d===null?A:d};
Vr=function(A){if(A!==void 0&&A!==null)if(A instanceof TP)for(var H=le;ta()!=null&&GC8 in ta()&&H.contains(ta());)nA();else if(Array.isArray(A))for(H=_.r(A),A=H.next();!A.done;A=H.next())Vr(A.value);else if(A instanceof cz||A instanceof mJ||"function"==typeof _.$U&&A instanceof _.$U)Gyl(A.toString());else if(WI(A)){if(ta()!==A){var k,d;H=(d=(k=ve)==null?void 0:k.name)!=null?d:"unknown";throw Error("jc`"+A.tagName+"`"+H);}nA()}else if(A!=null&&A.contentKind===rj||A instanceof HX||tLI(A))for(H=MLf(A),
H=Array.from(H.childNodes),H=_.r(H),A=H.next();!A.done;A=H.next())le.appendChild(A.value),nA();else if(tG(A)&&(A=A.toString()),k=typeof A,k==="boolean"||k==="number"||k==="string")Gyl(A);else if(typeof A==="function"){H=le;var W=ta();W&&(W._isSignalTextNode||W._isSafeOrSanitizedHtmlNode)||grb(H,W,A);nA()}else if(A.type===nHI)Vr(A.type(Object.assign({},A.props,{children:A.children[0]})));else{if(typeof A.type==="string"){a:{A.__open||vkC(A.type,A.props.idomKey);W=le;for(var z in A.props)if(A.props[z]!==
$F8){var u=A.props[z];k=fA;k.push(z);k.push(u)}z=si.attributes;z=z===void 0?Ev:z;u=le;d=TYA(u);k=z;z=fA;d=d._attrsArr||(d._attrsArr=uL8(z.length));for(var B=!d.length||!1,h=0;h<z.length;h+=2){var O=z[h];if(B)d[h]=O;else if(d[h]!==O)break;var T=z[h+1];if(B||d[h+1]!==T)d[h+1]=T,PgI(u,O,T,k)}if(h<z.length||h<d.length){for(h=B=h;h<d.length;h+=2)Uv[d[h]]=d[h+1];for(h=B;h<z.length;h+=2)B=z[h],O=z[h+1],Uv[B]!==O&&PgI(u,B,O,k),d[h]=B,d[h+1]=O,delete Uv[B];rWr(d,z.length);for(H in Uv)PgI(u,H,void 0,k),delete Uv[H]}H=
AvW;AvW=u=oV.length;for(k=H;k<u;k+=5)(0,oV[k])(oV[k+1],oV[k+2],oV[k+3],oV[k+4]);AvW=H;rWr(oV,H);rWr(z,0);Jxf(W,A.props,!0);if((A.props.skip||A.props.skipchildren)&&le.hasChildNodes())MU=le.lastChild;else{if(A.type==="style"&&HHf(A.children)===null){MU=le.lastChild;H=void 0;break a}Vr(A.children)}yWm();A.__open&&(A.__open=!1);cWW(W,A.props);H=W}return H}if(A.type===_.sD)Vr(A.children);else if(!Hwf(A)){H=A;try{sIm(H)}catch(m){A=m,(u=si.handleError)==null||u.call.apply(u,[si].concat(_.fV(VM(A,(W=H.type)==
null?void 0:W.TAG_NAME))))}H.__open&&(yWm(),H.__open=!1)}}};
kFC=function(A,H){var k;Mub(A)?k=new LZ(H,A):k=new A(H);k.__type=A;k.__updateContext={nextState:k.state,isForced:!1};return k};
sIm=function(A){var H=A.type,k=H.TAG_NAME;if(H===N9b)A.props.children=A.children,H(A.props);else{A.children.length>0&&(A.props.children=A.children);var d;(d=A.props).idomKey||(d.idomKey=H);if(k){var W=vkC(k,A.props.idomKey);A.__open=!0;var z=W.__instance}z||(z=kFC(H,A.props),z.props=null,W&&(W.__instance=z,z.el=W));var u;k=((u=z.__updateContext)!=null?u:{nextState:z.state,isForced:!1}).nextState;z.__updateContext=void 0;H.getDerivedStateFromProps&&(k=H.getDerivedStateFromProps(A.props,k));z.props=
A.props;z.state=k;u=function(){var B=z;gj.beforeRender(B);var h=B.render(B.props);h?(B.props.idomKey&&(h.props.idomKey=B.props.idomKey),B=h):B=void 0;if(h=B)if(h.__open=A.__open,B=Vr(h),A.__open=h.__open,!H.TAG_NAME)if(B)H.TAG_NAME=B.tagName.toLowerCase(),B.__instance=z,z.el=B;else{var O;if((O=z.hooks)==null?0:O.length){var T;(T=si.handleError)==null||T.call.apply(T,[si].concat(_.fV(VM(Error("pd")))))}}z.didPatch();gj.didPatch(z)};
(k=z.functionComponent)?RjN(k,u,z.props.debugInstance):u()}};
Hwf=function(A){var H=A.type;if(!Mub(H)||H===N9b||H.componentType===yM)return!1;A.props.children=A.children.length>1?A.children:A.children[0];var k,d=(k=A.props.idomKey)!=null?k:A.type,W;if(ta()&&((W=ta()[h3])==null?void 0:W.key)===d){var z=ta(),u=z[h3];if(!u)throw Error("ic`"+z.tagName);var B;(B=u.updateSignalsFromIdomProps)==null||B.call(u,A.props);dLA(u);return!0}if(W8I.has(H.name))throw B=H.name,H=(u=(z=ve)==null?void 0:z.name)!=null?u:"unknown",Error("hc`"+B+"`"+H);A.props.renderedFromIdom=!0;
(B=RjN(A.type,function(){return hAv(A.type,A.props)},A.props.debugInstance))&&zOC(B);
return!0};
q5Q=function(A){for(var H=0;H<Rx(A).length;H++)nA()};
dLA=function(A){var H=rvX();if(H)q5Q(H);else for(var k=0;k<A.numNodes;k++)(H=rvX())?q5Q(H):nA()};
rvX=function(){var A;return(A=ta()[h3])==null?void 0:A.sourceDynamicRange};
zOC=function(A){A=VLm(A);A=Array.isArray(A)?A:[A];A=_.r(A);for(var H=A.next();!H.done;H=A.next())le.insertBefore(H.value,ta()),nA()};
u1I=function(){var A=RAr(),H=ZHf(function(){return{value:0}},[]);
return[H.value,function(k){if(bt!==null){var d;(d=si.handleError)==null||d.call.apply(d,[si].concat(_.fV(VM(Error("qd")))))}H.value=typeof k==="function"?k(H.value):k;A.__updateContext={nextState:A.state,isForced:!0};k=wF(A.effectContext);d=dj(!1);try{if(A.el){var W,z={},u=(z.props=A.props,z.type=A.__type,z.children=(W=A.props.children)!=null?W:[],z[HI]=!0,z);try{fvA(A.el,u,!0)}catch(O){var B,h;(h=si.handleError)==null||h.call.apply(h,[si].concat(_.fV(VM(O,(B=A.__type)==null?void 0:B.TAG_NAME))))}}}finally{dj(d),
wF(k)}}]};
_.ll=function(A,H){var k=f$,d=function(W){QM(k,function(){H(W)})};
window.addEventListener(A,d,void 0);_.aV(function(){window.removeEventListener(A,d,void 0)})};
_.NV=function(A){var H=f$;return function(k){var d,W=(d=A.observer)!=null?d:_.wj().resolve(tb);d=ByA(k);var z=[];A.showOption&&z.push(W.observe(k,function(){QM(H,function(){A.visibilityCallback(!0,k)})},A.showOption));
A.hideOption&&z.push(W.observe(k,function(){QM(H,function(){A.visibilityCallback(!1,k)})},A.hideOption));
A.prescanOption&&A.prescanCallback&&z.push(W.observe(k,function(){QM(H,function(){A.prescanCallback()})},A.prescanOption));
var u;d.visibilityMonitorKeys=((u=d.visibilityMonitorKeys)!=null?u:[]).concat(z)}};
ByA=function(A){var H;return(H=A.polymerController)!=null?H:A};
hOl=function(A,H){var k=eOI;return _.x(_.sD,null,I$C(si.enableLazyTsx,function(){return _.x(xLl,{id:k,value:A,children:H})},function(){var d=iwr(k,A);
He(d);d=wF(d);try{return H()}finally{wF(d)}}))};
xLl=function(A){var H=A.children;A=iwr(A.id,A.value);He(A);A=wF(A);try{return _.x(_.sD,null,mF(H()))}finally{wF(A)}};
iwr=function(A,H){return Object.assign(Object.create(OwI),{id:A,contextValue:H})};
ROQ=function(A){var H,k=f$;_.SC(function(){var d=wF(k),W=dj(!H);try{if(H)fvA(H,A.children(),!0);else if(H=mF(A.children()),!(H instanceof Element))throw Error("rd");}finally{dj(W),wF(d)}},"i");
return H};
mL8=function(A){var H=new TyC;H.abort(A);return H.signal};
JvV=function(){if(this.aborted){var A;throw(A=this.reason)!=null?A:new DOMException("signal is aborted without reason","AbortError");}};
L88=function(A){var H=new TyC;A=_.r(A);for(var k=A.next();!k.done;k=A.next())if(k=k.value,k.aborted){H.abort(k.reason);break}else gqV.set(H.signal,H),bwb.add(k,H.signal);return H.signal};
vql=function(){for(var A=_.r(bwb.get(this)),H=A.next();!H.done;H=A.next())gqV.get(H.value).abort(this.reason)};
yvr=function(A){var H=new TyC;setTimeout(function(){H.abort(new DOMException("signal timed out","TimeoutError"))},A);
return H.signal};
jIW=function(){var A,H;return{promise:new Promise(function(k,d){A=k;H=d}),
resolve:A,reject:H}};
Y5V=function(A){var H=jIW(),k=H.promise;Ihr.set(A,{promise:k,resolve:H.resolve,reject:H.reject});MV||(MV=[],queueMicrotask(function(){var d=[].concat(_.fV(MV));MV=null;var W=b5().loadMultiple(d);d=_.r(d);for(var z=d.next();!z.done;z=d.next())z=z.value,W[z].then(Ihr.get(z).resolve,Ihr.get(z).reject)}));
MV.push(A);return k};
Psm=function(A,H){this.fn_=A;this.handler_=H};
nT=function(A,H){_.dF.call(this);this.deps_=A;this.JSC$11365_id_=H;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
F8N=function(A){A=A.buf.charCodeAt(A.pos++);return GFb[A]};
Z7=function(A){var H=0,k=0;do{var d=F8N(A);H|=(d&31)<<k;k+=5}while(d&32);return H<0?H+4294967296:H};
XlC=function(A,H,k,d){var W=!0;W=W===void 0?!1:W;H=H===void 0?!1:H;d=d===void 0?{}:d;var z=d.cssRowKey||"",u=d.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("Bd");var B=d.loaderClass||_.o3;A=f$I(A===void 0?"base-js":A);H=new B(aKN(ohf("",A)),z,u,W,H);W=d.useCors||A&&A.hasAttribute("crossorigin");A=d.corsMode||A&&A.getAttribute("crossorigin");
W&&(H.useCors_=W);A&&(H.corsMode_=A);d.urlMaxLength&&(H.urlMaxLength=d.urlMaxLength);k&&(H.insertPos=k);d.fetchPriority&&(H.fetchPriority=d.fetchPriority);var h=b5();h.JSC$10368_loader_=H;h.setBatchModeEnabled(!0);_.$J=d.batchingStrategy==="BATCH"?Y5V:function(O){return Promise.resolve(h.load(O))}};
Csb=function(A,H,k){DLf(A,H);A[H][S58].unshift(k)};
DLf=function(A,H){if(!A[H]||!A[H][S58]){var k=A[H],d=k?[k]:[];A[H]=function(){for(var W=_.r(d),z=W.next();!z.done;z=W.next())z.value.apply(this,arguments)};
A[H][S58]=d}};
K8C=function(A){if(!A)return[];var H=[];A=_.r(A);for(var k=A.next();!k.done;k=A.next())k=k.value,Array.isArray(k)?H.push.apply(H,_.fV(K8C(k))):H.push(k);return H};
_.Hu=function(A,H){if(A&&ah8.test(A)||A==="//")return A;if(cvX===void 0){cvX=!1;try{var k=new URL("b","http://a");k.pathname="c%20d";cvX=k.href==="http://a/c%20d"}catch(d){}}H||(H=document.baseURI||window.location.href);if(cvX)try{return(new URL(A,H)).href}catch(d){return A}AM||(AM=document.implementation.createHTMLDocument("temp"),AM.base=AM.createElement("base"),AM.head.appendChild(AM.base),AM.anchor=AM.createElement("a"),AM.body.appendChild(AM.anchor));AM.base.href=H;AM.anchor.href=A;return AM.anchor.href||
A};
QIr=function(A,H){return A.replace(plv,function(k,d,W,z){return d+"'"+_.Hu(W.replace(/["']/g,""),H)+"'"+z})};
VYI=function(A){return A.substring(0,A.lastIndexOf("/")+1)};
lhI=function(){EqX=!1;for(var A=sZ.length,H=0;H<A;H++){var k=sZ[H];if(k)try{k()}catch(d){setTimeout(function(){throw d;})}}sZ.splice(0,A);
UL8+=A};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(A){console.log("["+A.is+"]: registered")};
NyQ=function(A){tYA.push(A)};
kY=function(A){return MYm[A]||(MYm[A]=A.indexOf("-")<0?A:A.replace(nqm,function(H){return H[1].toUpperCase()}))};
qo=function(A){return MYm[A]||(MYm[A]=A.replace(Zwf,"-$1").toLowerCase())};
fhV=function(A,H){var k=H.parentInfo&&fhV(A,H.parentInfo);if(k)for(A=k.firstChild,k=0;A;A=A.nextSibling){if(H.parentIndex===k++)return A}else return A};
wlm=function(A,H){A=A._methodHost||A;return function(k){if(A[H])A[H](k,k.detail);else console.warn("listener method `"+H+"` not defined")}};
ro=function(A){return A.indexOf(".")>=0};
uo=function(A){var H=A.indexOf(".");return H===-1?A:A.slice(0,H)};
oqQ=function(A,H){return A.indexOf(H+".")===0};
Bu=function(A,H){return H.indexOf(A+".")===0};
e8=function(A,H,k){return H+k.slice(A.length)};
$Lb=function(A,H){return A===H||oqQ(A,H)||Bu(A,H)};
xY=function(A){if(Array.isArray(A)){for(var H=[],k=0;k<A.length;k++)for(var d=A[k].toString().split("."),W=0;W<d.length;W++)H.push(d[W]);return H.join(".")}return A};
AdN=function(A){return Array.isArray(A)?xY(A).split("."):A.toString().split(".")};
io=function(A,H,k){H=AdN(H);for(var d=0;d<H.length;d++){if(!A)return;A=A[H[d]]}k&&(k.path=H.join("."));return A};
H6l=function(A,H,k){var d=AdN(H),W=d[d.length-1];if(d.length>1){for(H=0;H<d.length-1;H++)if(A=A[d[H]],!A)return;A[W]=k}else A[H]=k;return d.join(".")};
sLf=function(A,H,k){var d=A[H];if(!d)d=A[H]={};else if(!A.hasOwnProperty(H)&&(d=A[H]=Object.create(A[H]),k))for(var W in d)for(A=d[W],H=d[W]=Array(A.length),k=0;k<A.length;k++)H[k]=A[k];return d};
OZ=function(A,H,k,d,W,z){if(H){var u=!1,B=hM++,h;for(h in k){var O=W?uo(h):h;if(O=H[O])for(var T=0,m=O.length,J=void 0;T<m&&(J=O[T]);T++)J.info&&J.info.lastRun===B||W&&!ksv(h,J.trigger)||(J.info&&(J.info.lastRun=B),J.fn(A,h,k,d,J.info,W,z),u=!0)}return u}return!1};
ksv=function(A,H){if(H){var k=H.name;return k==A||!(!H.structured||!oqQ(k,A))||!(!H.wildcard||!Bu(k,A))}return!0};
deI=function(A,H,k,d,W){H=typeof W.method==="string"?A[W.method]:W.method;k=W.property;H?H.call(A,A.__data[k],d[k]):W.dynamicFn||console.warn("observer method `"+W.method+"` not defined")};
WWI=function(A,H,k,d){k={value:k,queueProperty:!0};d&&(k.path=d);(0,_.R0)(A).dispatchEvent(new CustomEvent(H,{detail:k}))};
zeI=function(A,H,k,d,W,z){z=(d=(z?uo(H):H)!=H?H:null)?io(A,d):A.__data[H];d&&z===void 0&&(z=k[H]);WWI(A,W.eventName,z,d)};
qKC=function(A,H,k,d,W){k=A.__data[H];Tb&&(k=Tb(k,W.attrName,"attribute",A));A._propertyToAttribute(H,W.attrName,k)};
uO8=function(A){var H=A.constructor.__orderedComputedDeps;if(!H){H=new Map;for(var k=A.__computeEffects,d=rdI(A),W=d.counts,z=d.ready,u=d.total;d=z.shift();)H.set(d,H.size),(d=k[d])&&d.forEach(function(B){B=B.info.methodInfo;--u;--W[B]===0&&z.push(B)});
u!==0&&console.warn("Computed graph for "+A.localName+" incomplete; circular?");A.constructor.__orderedComputedDeps=H}return H};
rdI=function(A){var H=A.__computeInfo,k={};A=A.__computeEffects;var d=[],W=0,z;for(z in H){var u=H[z];W+=k[z]=u.args.filter(function(h){return!h.literal}).length+(u.dynamicFn?1:0)}for(var B in A)H[B]||d.push(B);
return{counts:k,ready:d,total:W}};
eeb=function(A,H,k,d,W){H=BKb(A,H,k,d,W);if(H===mb)return!1;W=W.methodInfo;if(A.__dataHasAccessor&&A.__dataHasAccessor[W])return A._setPendingProperty(W,H,!0);A[W]=H;return!1};
heb=function(A,H,k,d,W,z,u){k.bindings=k.bindings||[];d={kind:d,target:W,parts:z,literal:u,isCompound:z.length!==1};k.bindings.push(d);d.target&&d.kind!="attribute"&&d.kind!="text"&&!d.isCompound&&d.parts[0].mode==="{"&&(k=d.parts[0],z=k.negate,d.listenerEvent=k.event||qo(W)+"-changed",d.listenerNegate=z);W=H.nodeInfoList.length;for(k=0;k<d.parts.length;k++){var B=d.parts[k];B.compoundIndex=k;z=A;u=H;var h=d,O=B,T=W;if(!O.literal)if(h.kind==="attribute"&&h.target[0]==="-")console.warn("Cannot set attribute "+
h.target+' because "-" is not a valid attribute starting character');else for(B=O.dependencies,h={index:T,binding:h,part:O,evaluator:z},O=0;O<B.length;O++)T=B[O],typeof T=="string"&&(T=xeI(T),T.wildcard=!0),z._addTemplatePropertyEffect(u,T.rootProperty,{fn:i6X,info:h,trigger:T})}};
i6X=function(A,H,k,d,W,z,u){u=u[W.index];var B=W.binding,h=W.part;z&&h.source&&H.length>h.source.length&&B.kind=="property"&&!B.isCompound&&u.__isPropertyEffectsClient&&u.__dataHasAccessor&&u.__dataHasAccessor[B.target]?(k=k[H],H=e8(h.source,B.target,H),u._setPendingPropertyOrPath(H,k,!1,!0)&&A._enqueueClient(u)):(H=W.evaluator._evaluateBinding(A,h,H,k,d,z),H!==mb&&(B.isCompound&&(k=u.__dataCompoundStorage[B.target],k[h.compoundIndex]=H,H=k.join("")),B.kind==="attribute"||B.target!=="textContent"&&
(B.target!=="value"||u.localName!=="input"&&u.localName!=="textarea")||(H=H==void 0?"":H),h=H,Tb&&(h=Tb(h,B.target,B.kind,u)),B.kind=="attribute"?A._valueToNodeAttribute(u,h,B.target):(B=B.target,u.__isPropertyEffectsClient&&u.__dataHasAccessor&&u.__dataHasAccessor[B]?u.__readOnly&&u.__readOnly[B]||u._setPendingProperty(B,h)&&A._enqueueClient(u):A._setUnmanagedPropertyToNode(u,B,h))))};
O6I=function(A,H,k){if(k.listenerEvent){var d=k.parts[0];A.addEventListener(k.listenerEvent,function(W){var z=k.target,u=d.source,B=d.negate,h=W.detail,O=h&&h.path;O?(u=e8(z,u,O),W=h&&h.value):W=W.currentTarget[z];H.__readOnly&&H.__readOnly[u]||!H._setPendingPropertyOrPath(u,B?!W:W,!0,!!O)||h&&h.queueProperty||H._invalidateProperties()})}};
ReX=function(A,H,k,d,W,z){z=H.static||z&&(typeof z!=="object"||z[H.methodName]);W={methodName:H.methodName,args:H.args,methodInfo:W,dynamicFn:z};for(var u=0,B=void 0;u<H.args.length&&(B=H.args[u]);u++)B.literal||A._addPropertyEffect(B.rootProperty,k,{fn:d,info:W,trigger:B});z&&A._addPropertyEffect(H.methodName,k,{fn:d,info:W});return W};
BKb=function(A,H,k,d,W){d=A._methodHost||A;var z=d[W.methodName];if(z)return A=A._marshalArgs(W.args,H,k),A===mb?mb:z.apply(d,A);W.dynamicFn||console.warn("method `"+W.methodName+"` not defined")};
TKC=function(A){for(var H="",k=0;k<A.length;k++)H+=A[k].literal||"";return H};
gcl=function(A){if(A=A.match(/([^\s]+?)\(([\s\S]*)\)/)){var H={methodName:A[1],static:!0,args:meN};return A[2].trim()?Jdf(A[2].replace(/\\,/g,"&comma;").split(","),H):H}return null};
Jdf=function(A,H){H.args=A.map(function(k){k=xeI(k);k.literal||(H.static=!1);return k},this);
return H};
xeI=function(A){A=A.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var H={name:A,value:"",literal:!1},k=A[0];k==="-"&&(k=A[1]);k>="0"&&k<="9"&&(k="#");switch(k){case "'":case '"':H.value=A.slice(1,-1);H.literal=!0;break;case "#":H.value=Number(A),H.literal=!0}H.literal||(H.rootProperty=uo(A),H.structured=ro(A),H.structured&&(H.wildcard=A.slice(-2)==".*",H.wildcard&&(H.name=A.slice(0,-2))));return H};
b6V=function(A,H,k){A=io(A,k);A===void 0&&(A=H[k]);return A};
LW8=function(A,H,k,d){d={indexSplices:d};JM&&!A._overrideLegacyUndefined&&(H.splices=d);A.notifyPath(k+".splices",d);A.notifyPath(k+".length",H.length);JM&&!A._overrideLegacyUndefined&&(d.indexSplices=[])};
go=function(A,H,k,d,W,z){LW8(A,H,k,[{index:d,addedCount:W,removed:z,object:H,type:"splice"}])};
vcr=function(A){A=QIr((A.body?A.body:A).textContent,A.baseURI);var H=document.createElement("style");H.textContent=A;return H};
jLW=function(A){A=A.trim().split(/\s+/);for(var H=[],k=0;k<A.length;k++)H.push.apply(H,_.fV(ydf(A[k])));return H};
ydf=function(A){var H=bo.import(A);if(!H)return console.warn("Could not find style data in module named",A),[];if(H._styles===void 0){A=[];A.push.apply(A,_.fV(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H)));var k=H.querySelector("template");k&&A.push.apply(A,_.fV(IsI(k,H.assetpath)));H._styles=A}return H._styles};
IsI=function(A,H){if(!A._styles){for(var k=[],d=A.content.querySelectorAll("style"),W=0;W<d.length;W++){var z=d[W],u=z.getAttribute("include");u&&k.push.apply(k,_.fV(jLW(u).filter(function(B,h,O){return O.indexOf(B)===h})));
H&&(z.textContent=QIr(z.textContent,H));k.push(z)}A._styles=k}return A._styles};
YKW=function(A){return(A=bo.import(A))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(A){var H=[];A=A.querySelectorAll("link[rel=import][type~=css]");for(var k=0;k<A.length;k++){var d=A[k];if(d.import){var W=d.import;if((d=d.hasAttribute("shady-unscoped"))&&!W._unscopedStyle){var z=vcr(W);z.setAttribute("shady-unscoped","");W._unscopedStyle=z}else W._style||(W._style=vcr(W));H.push(d?W._unscopedStyle:W._style)}}return H};
GsN=function(A){A=A.trim().split(/\s+/);for(var H="",k=0;k<A.length;k++)H+=PAm(A[k]);return H};
PAm=function(A){var H=bo.import(A);if(H&&H._cssText===void 0){var k=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H),d=H.querySelector("template");d&&(k+=FWV(d,H.assetpath));H._cssText=k||null}H||console.warn("Could not find style data in module named",A);return H&&H._cssText||""};
FWV=function(A,H){var k="";A=IsI(A,H);for(H=0;H<A.length;H++){var d=A[H];d.parentNode&&d.parentNode.removeChild(d);k+=d.textContent}return k};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(A){var H="";A=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A);for(var k=0;k<A.length;k++)H+=A[k].textContent;return H};
LP=function(A,H){return{index:A,removed:[],addedCount:H}};
Def=function(A,H,k,d){var W=0,z=0,u=0,B=0,h=Math.min(H-W,d-z);if(W==0&&z==0)a:{for(u=0;u<h;u++)if(A[u]!==k[u])break a;u=h}if(H==A.length&&d==k.length){B=A.length;for(var O=k.length,T=0;T<h-u&&XpX(A[--B],k[--O]);)T++;B=T}W+=u;z+=u;H-=B;d-=B;if(H-W==0&&d-z==0)return[];if(W==H){for(H=LP(W,0);z<d;)H.removed.push(k[z++]);return[H]}if(z==d)return[LP(W,H-W)];h=W;u=z;d=d-u+1;B=H-h+1;H=Array(d);for(O=0;O<d;O++)H[O]=Array(B),H[O][0]=O;for(O=0;O<B;O++)H[0][O]=O;for(O=1;O<d;O++)for(T=1;T<B;T++)if(A[h+T-1]===
k[u+O-1])H[O][T]=H[O-1][T-1];else{var m=H[O-1][T]+1,J=H[O][T-1]+1;H[O][T]=m<J?m:J}h=H.length-1;u=H[0].length-1;d=H[h][u];for(A=[];h>0||u>0;)h==0?(A.push(2),u--):u==0?(A.push(3),h--):(B=H[h-1][u-1],O=H[h-1][u],T=H[h][u-1],m=O<T?O<B?O:B:T<B?T:B,m==B?(B==d?A.push(0):(A.push(1),d=B),h--,u--):m==O?(A.push(3),h--,d=O):(A.push(2),u--,d=T));A.reverse();H=void 0;h=[];for(u=0;u<A.length;u++)switch(A[u]){case 0:H&&(h.push(H),H=void 0);W++;z++;break;case 1:H||(H=LP(W,0));H.addedCount++;W++;H.removed.push(k[z]);
z++;break;case 2:H||(H=LP(W,0));H.addedCount++;W++;break;case 3:H||(H=LP(W,0)),H.removed.push(k[z]),z++}H&&h.push(H);return h};
SKb=function(A,H){return Def(A,A.length,H,H.length)};
XpX=function(A,H){return A===H};
KWN=function(A){if(A instanceof CAf)return A.value;throw Error("Jd`"+A);};
asV=function(A,H){for(var k in H)k===null?A.style.removeProperty(k):A.style.setProperty(k,H[k])};
cdI=function(A,H){return(A=window.getComputedStyle(A).getPropertyValue(H))?A.trim():""};
Ecm=function(A){requestAnimationFrame(function(){ppr?ppr(A):(QLA||(QLA=new Promise(function(H){VKI=H}),document.readyState==="complete"?VKI():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&VKI()})),QLA.then(function(){A&&A()}))})};
tKm=function(A){UeW=A&&A.shimcssproperties?!1:lsl||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
fsC=function(A){if(!(NKI.indexOf(A)>-1)&&A!=="touchend"&&MKW&&ncW&&Z6W)return{passive:!0}};
AYI=function(A){for(var H=wpQ?["click"]:NKI,k=0,d;k<H.length;k++)d=H[k],A?(ocN.length=0,document.addEventListener(d,$eN,!0)):document.removeEventListener(d,$eN,!0)};
vu=function(A){var H=A.type;return NKI.indexOf(H)>-1?H==="mousemove"?(H=A.buttons===void 0?1:A.buttons,A instanceof window.MouseEvent&&!HX8&&(H=sXC[A.which]||0),!!(H&1)):(A.button===void 0?0:A.button)===0:!1};
k5V=function(A){if(A.type==="click"){if(A.detail===0)return!0;var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);if(!H.nodeType||H.nodeType!==Node.ELEMENT_NODE)return!0;H=H.getBoundingClientRect();var k=A.pageX;A=A.pageY;return!(k>=H.left&&k<=H.right&&A>=H.top&&A<=H.bottom)}return!1};
dJN=function(A,H,k){A.movefn=H;A.upfn=k;document.addEventListener("mousemove",H);document.addEventListener("mouseup",k)};
yb=function(A){document.removeEventListener("mousemove",A.movefn);document.removeEventListener("mouseup",A.upfn);A.movefn=null;A.upfn=null};
W9V=function(A,H){for(var k=document.elementFromPoint(A,H),d=k;d&&d.shadowRoot&&!window.ShadyDOM;){var W=d;d=d.shadowRoot.elementFromPoint(A,H);if(W===d)break;d&&(k=d)}return k};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var H=z6C(A);return H.length>0?H[0]:A.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var H=A.type,k=A.currentTarget.__polymerGestures;if(k&&(k=k[H])){if(!A.__polymerGesturesHandled&&(A.__polymerGesturesHandled={},H.slice(0,5)==="touch")){var d=A.changedTouches[0];H==="touchstart"&&A.touches.length===1&&(q8b=d.identifier);if(q8b!==d.identifier)return;MKW||(H==="touchstart"||H==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)}d=
A.__polymerGesturesHandled;if(!d.skip){for(var W=0,z;W<j8.length;W++)z=j8[W],k[z.name]&&!d[z.name]&&z.flow&&z.flow.start.indexOf(A.type)>-1&&z.reset&&z.reset();for(W=0;W<j8.length;W++)z=j8[W],k[z.name]&&!d[z.name]&&(d[z.name]=!0,z[H](A))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var H=A.changedTouches[0],k=A.type;if(k==="touchstart")rYI=H.clientX,uMV=H.clientY,Bdl=!1;else if(k==="touchmove"&&!Bdl){Bdl=!0;k="auto";for(var d=z6C(A),W=0,z;W<d.length;W++)if(z=d[W],z.__polymerGesturesTouchAction){k=z.__polymerGesturesTouchAction;break}d=!1;W=Math.abs(rYI-H.clientX);H=Math.abs(uMV-H.clientY);A.cancelable&&(k==="none"?d=!0:k==="pan-x"?d=H>W:k==="pan-y"&&(d=W>H));d?A.preventDefault():
I0("track")}};
Pu=function(A,H,k){return YY[H]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,H,k),!0):!1};
Gb=function(A,H,k){return YY[H]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,H,k),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,H,k){var d=YY[H],W=d.deps,z=d.name,u=A.__polymerGestures;u||(A.__polymerGestures=u={});for(var B=0,h,O;B<W.length;B++)h=W[B],wpQ&&NKI.indexOf(h)>-1&&h!=="click"||((O=u[h])||(u[h]=O={_count:0}),O._count===0&&A.addEventListener(h,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,fsC(h)),O[z]=(O[z]||0)+1,O._count=(O._count||0)+1);A.addEventListener(H,k);d.touchAction&&_.FF(A,d.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,H,k){var d=YY[H],W=d.deps;d=d.name;var z=A.__polymerGestures;if(z)for(var u=0,B,h;u<W.length;u++)B=W[u],(h=z[B])&&h[d]&&(h[d]=(h[d]||1)-1,h._count=(h._count||1)-1,h._count===0&&A.removeEventListener(B,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,fsC(B)));A.removeEventListener(H,k)};
e6v=function(A){j8.push(A);for(var H=0;H<A.emits.length;H++)YY[A.emits[H]]=A};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){for(var H=0,k;H<j8.length;H++){k=j8[H];for(var d=0,W;d<k.emits.length;d++)if(W=k.emits[d],W===A)return k}return null};
_.FF=function(A,H){MKW&&A instanceof HTMLElement&&XF.run(function(){A.style.touchAction=H});
A.__polymerGesturesTouchAction=H};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,H,k){H=new Event(H,{bubbles:!0,cancelable:!0,composed:!0});H.detail=k;(0,_.R0)(A).dispatchEvent(H);H.defaultPrevented&&(A=k.preventer||k.sourceEvent)&&A.preventDefault&&A.preventDefault()};
I0=function(A){A=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A.info&&(A.info.prevent=!0)};
Dc=function(A,H,k,d){H&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,A,{x:k.clientX,y:k.clientY,sourceEvent:k,preventer:d,prevent:function(W){return I0(W)}})};
xJf=function(A,H,k){if(A.prevent)return!1;if(A.started)return!0;k=Math.abs(A.y-k);return Math.abs(A.x-H)>=5||k>=5};
iXr=function(A,H,k){if(H){var d=A.moves[A.moves.length-2],W=A.moves[A.moves.length-1],z=W.x-A.x,u=W.y-A.y,B=0;if(d){var h=W.x-d.x;B=W.y-d.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,"track",{state:A.state,x:k.clientX,y:k.clientY,dx:z,dy:u,ddx:h,ddy:B,sourceEvent:k,hover:function(){return W9V(k.clientX,k.clientY)}})}};
OX8=function(A,H,k){var d=Math.abs(H.clientX-A.x),W=Math.abs(H.clientY-A.y),z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k||H);!z||h6I[z.localName]&&z.hasAttribute("disabled")||!(isNaN(d)||isNaN(W)||d<=25&&W<=25||k5V(H))||A.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,"tap",{x:H.clientX,y:H.clientY,sourceEvent:H,preventer:k})};
R6I=function(A,H,k,d,W){var z;W&&(z=typeof k==="object"&&k!==null)&&(d=A.__dataTemp[H]);d=d!==k&&(d===d||k===k);z&&d&&(A.__dataTemp[H]=k);return d};
mJf=function(){if(S8&&!CP){if(!TdW){TdW=!0;var A=document.createElement("style");A.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(A)}return!0}return!1};
gVX=function(){return JYf};
bXl=function(A,H){JYf=A;Object.setPrototypeOf(A,H.prototype);new H;JYf=null};
L9I=function(A,H){for(var k=0;k<H.length;k++){var d=H[k];if(!!A!=!!d.__hideTemplateChildren__)if(d.nodeType===Node.TEXT_NODE)A?(d.__polymerTextContent__=d.textContent,d.textContent=""):d.textContent=d.__polymerTextContent__;else if(d.localName==="slot")if(A)d.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.R0)((0,_.R0)(d).parentNode).replaceChild(d.__polymerReplaced__,d);else{var W=d.__polymerReplaced__;W&&(0,_.R0)((0,_.R0)(W).parentNode).replaceChild(d,W)}else d.style&&(A?(d.__polymerDisplay__=
d.style.display,d.style.display="none"):d.style.display=d.__polymerDisplay__);d.__hideTemplateChildren__=A;d._showHideChildren&&d._showHideChildren(A)}};
vV8=function(A){return(A=A.__dataHost)&&A._methodHost||A};
I_C=function(A,H,k){var d=k.mutableData?yYQ:KP;a0.mixin&&(d=a0.mixin(d));var W=function(){return d.apply(this,arguments)||this};
_.I(W,d);W.prototype.__templatizeOptions=k;W.prototype._bindTemplate(A);jXb(W,A,H,k);return W};
XZI=function(A,H,k,d){var W=k.forwardHostProp;if(W&&H.hasHostProps){var z=A.localName=="template",u=H.templatizeTemplateClass;if(!u){if(z){var B=k.mutableData?Y88:PpQ;u=function(){return B.apply(this,arguments)||this};
_.I(u,B);u=H.templatizeTemplateClass=u}else{var h=A.constructor;u=function(){return h.apply(this,arguments)||this};
_.I(u,h);u=H.templatizeTemplateClass=u}var O=H.hostProps,T;for(T in O)u.prototype._addPropertyEffect("_host_"+T,u.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:G5X(W)}),u.prototype._createNotifyingProperty("_host_"+T);cu&&d&&F9N(H,k,d)}A.__dataProto&&Object.assign(A.__data,A.__dataProto);if(z)bXl(A,u),A.__dataTemp={},A.__dataPending=null,A.__dataOld=null,A._enableProperties();else{Object.setPrototypeOf(A,u.prototype);H=H.hostProps;for(var m in H)m="_host_"+m,m in A&&(H=A[m],delete A[m],A.__data[m]=
H)}}};
G5X=function(A){return function(H,k,d){A.call(H.__templatizeOwner,k.substring(6),d[k])}};
jXb=function(A,H,k,d){var W=k.hostProps||{},z;for(z in d.instanceProps){delete W[z];var u=d.notifyInstanceProp;u&&A.prototype._addPropertyEffect(z,A.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:DJC(u)})}if(d.forwardHostProp&&H.__dataHost)for(var B in W)k.hasHostProps||(k.hasHostProps=!0),A.prototype._addPropertyEffect(B,A.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:S8v()})};
DJC=function(A){return function(H,k,d){A.call(H.__templatizeOwner,H,k,d[k])}};
S8v=function(){return function(A,H,k){A.__dataHost._setPendingPropertyOrPath("_host_"+H,k[H],!0,!0)}};
a0=function(A,H,k){if(pP&&!vV8(A))throw Error("Pd");k=k||{};if(A.__templatizeOwner)throw Error("Qd");A.__templatizeOwner=H;var d=(H?H.constructor:KP)._parseTemplate(A),W=d.templatizeInstanceClass;W||(W=I_C(A,d,k),d.templatizeInstanceClass=W);var z=vV8(A);XZI(A,d,k,z);k=function(){return W.apply(this,arguments)||this};
_.I(k,W);k.prototype._methodHost=z;k.prototype.__dataHost=A;k.prototype.__templatizeOwner=H;k.prototype.__hostProps=d.hostProps;return k};
F9N=function(A,H,k){k=k.constructor._properties;A=A.propertyEffects;H=H.instanceProps;for(var d in A)if(!(k[d]||H&&H[d]))for(var W=A[d],z=0;z<W.length;z++){var u=W[z].info.part;if(!u.signature||!u.signature.static){console.warn("Property '"+d+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Cpm=function(A,H){for(var k;H;)if(k=H.__dataHost?H:H.__templatizeInstance)if(k.__dataHost!=A)H=k.__dataHost;else return k;else H=(0,_.R0)(H).parentNode;return null};
Qb=function(A){return A.localName==="slot"};
K9I=function(){for(var A=Vb.prototype,H="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),k={},d=0;d<H.length;k={method$jscomp$33:void 0},d++)k.method$jscomp$33=H[d],A[k.method$jscomp$33]=function(W){return function(){return this.node[W.method$jscomp$33].apply(this.node,arguments)}}(k)};
a_W=function(A,H){for(var k={},d=0;d<H.length;k={name$jscomp$450:void 0},d++)k.name$jscomp$450=H[d],Object.defineProperty(A,k.name$jscomp$450,{get:function(W){return function(){return this.node[W.name$jscomp$450]}}(k),
configurable:!0})};
cYv=function(){for(var A=Vb.prototype,H=["textContent","innerHTML","className"],k={},d=0;d<H.length;k={name$jscomp$451:void 0},d++)k.name$jscomp$451=H[d],Object.defineProperty(A,k.name$jscomp$451,{get:function(W){return function(){return this.node[W.name$jscomp$451]}}(k),
set:function(W){return function(z){this.node[W.name$jscomp$451]=z}}(k),
configurable:!0})};
pZC=function(){EZ=document.documentElement.getAttribute("dir");EZ=document.documentElement.getAttribute("dir");for(var A=0;A<UZ.length;A++){var H=UZ[A];H.__autoDirOptOut||H.setAttribute("dir",EZ)}};
UJv=function(){lo=!0;requestAnimationFrame(function(){lo=!1;QXr(VaI);setTimeout(function(){for(var A=0,H=tM.length;A<H;A++)EVf(tM.shift())})})};
QXr=function(A){for(;A.length;)EVf(A.shift())};
EVf=function(A){var H=A[0],k=A[1];A=A[2];try{k.apply(H,A)}catch(d){setTimeout(function(){throw d;})}};
_.l_V=function(A,H,k){lo||UJv();VaI.push([A,H,k])};
_.No=function(A,H,k){lo||UJv();tM.push([A,H,k])};
MaC=function(A,H){H=H===void 0?!1:H;if(!tab||!Ndr||!tab.handlesDynamicScoping)return null;var k=Ndr.ScopingShim;if(!k)return null;var d=k.scopeForNode(A),W=(0,_.R0)(A).getRootNode(),z=function(u){if((0,_.R0)(u).getRootNode()===W){var B=Array.from(tab.nativeMethods.querySelectorAll.call(u,"*"));B.push(u);for(u=0;u<B.length;u++){var h=B[u];if((0,_.R0)(h).getRootNode()===W){var O=k.currentScopeForNode(h);O!==d&&(O!==""&&k.unscopeNode(h,O),k.scopeNode(h,d))}}}};
z(A);return H?(H=new MutationObserver(function(u){for(var B=0;B<u.length;B++)for(var h=u[B],O=0;O<h.addedNodes.length;O++){var T=h.addedNodes[O];T.nodeType===Node.ELEMENT_NODE&&z(T)}}),H.observe(A,{childList:!0,
subtree:!0}),H):null};
nVI=function(){document.body.removeAttribute("unresolved")};
$JA=function(A){var H=A=A.replace(ZXX,"").replace(f_I,""),k=new wZb;k.start=0;k.end=H.length;for(var d=k,W=0,z=H.length;W<z;W++)if(H[W]==="{"){d.rules||(d.rules=[]);var u=d,B=u.rules[u.rules.length-1]||null;d=new wZb;d.start=W+1;d.parent=u;d.previous=B;u.rules.push(d)}else H[W]==="}"&&(d.end=W+1,d=d.parent||k);return oV8(k,A)};
oV8=function(A,H){var k=H.substring(A.start,A.end-1);A.parsedCssText=A.cssText=k.trim();A.parent&&(k=H.substring(A.previous?A.previous.end:A.parent.start,A.start-1),k=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(k),k=k.replace(AKI," "),k=k.substring(k.lastIndexOf(";")+1),k=A.parsedSelector=A.selector=k.trim(),A.atRule=k.indexOf("@")===0,A.atRule?k.indexOf("@media")===0?A.type=4:k.match(HOI)&&(A.type=7,A.keyframesName=A.selector.split(AKI).pop()):k.indexOf("--")===
0?A.type=1E3:A.type=1);if(k=A.rules)for(var d=0,W=k.length,z=void 0;d<W&&(z=k[d]);d++)oV8(z,H);return A};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(A){return A.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var H=arguments[1],k=6-H.length;k--;)H="0"+H;return"\\"+H})};
sM8=function(A,H,k){k=k===void 0?"":k;var d="";if(A.cssText||A.rules){var W=A.rules;if(W&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(W))for(var z=0,u=W.length,B=void 0;z<u&&(B=W[z]);z++)d=sM8(B,H,d);else H?H=A.cssText:(H=A.cssText,H=H.replace(kjm,"").replace(dBX,""),H=H.replace(WNN,"").replace(zZW,"")),(d=H.trim())&&(d="  "+d+"\n")}d&&(A.selector&&(k+=A.selector+" {\n"),k+=d,A.selector&&(k+="}\n\n"));return k};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(A){A=A[0];return!!A&&!!A.selector&&A.selector.indexOf("--")===0};
rKI=function(A){if(A=qXr[A])A._applyShimCurrentVersion=A._applyShimCurrentVersion||0,A._applyShimValidatingVersion=A._applyShimValidatingVersion||0,A._applyShimNextVersion=(A._applyShimNextVersion||0)+1};
uoV=function(A){return A._applyShimCurrentVersion===A._applyShimNextVersion};
eZl=function(A){A._applyShimValidatingVersion=A._applyShimNextVersion;A._validating||(A._validating=!0,BSQ.then(function(){A._applyShimCurrentVersion=A._applyShimNextVersion;A._validating=!1}))};
iOQ=function(A){if(!A)return"";typeof A==="string"&&(A=$JA(A));return sM8(A,xBX)};
hZI=function(A){!A.__cssRules&&A.textContent&&(A.__cssRules=$JA(A.textContent));return A.__cssRules||null};
RZX=function(A,H,k,d){if(A){var W=!1,z=A.type;if(d&&z===4){var u=A.selector.match(OOl);u&&(window.matchMedia(u[1]).matches||(W=!0))}z===1?H(A):k&&z===7?k(A):z===1E3&&(W=!0);if((A=A.rules)&&!W)for(W=0,z=A.length,u=void 0;W<z&&(u=A[W]);W++)RZX(u,H,k,d)}};
TSC=function(A,H){var k=A.indexOf("var(");if(k===-1)return H(A,"","","");a:{var d=0;var W=k+3;for(var z=A.length;W<z;W++)if(A[W]==="(")d++;else if(A[W]===")"&&--d===0)break a;W=-1}d=A.substring(k+4,W);k=A.substring(0,k);A=TSC(A.substring(W+1),H);z=d.indexOf(",");if(z===-1)return H(k,d.trim(),"",A);W=d.substring(0,z).trim();d=d.substring(z+1).trim();return H(k,W,d,A)};
mBf=function(A){if(Mo!==void 0)return Mo;if(A.__cssBuild===void 0){var H=A.getAttribute("css-build");if(H)A.__cssBuild=H;else{a:{H=A.localName==="template"?A.content.firstChild:A.firstChild;if(H instanceof Comment&&(H=H.textContent.trim().split(":"),H[0]==="css-build")){H=H[1];break a}H=""}if(H!==""){var k=A.localName==="template"?A.content.firstChild:A.firstChild;k.parentNode.removeChild(k)}A.__cssBuild=H}}return A.__cssBuild||""};
gXN=function(A,H,k,d){for(var W=H._noAccessors,z=Object.getOwnPropertyNames(H),u=0;u<z.length;u++){var B=z[u];if(!(B in d))if(W)A[B]=H[B];else{var h=Object.getOwnPropertyDescriptor(H,B);h&&(h.configurable=!0,Object.defineProperty(A,B,h))}}for(var O in JKW)H[O]&&(k[O]=k[O]||[],k[O].push(H[O]))};
bOb=function(A,H,k){H=H||[];for(var d=A.length-1;d>=0;d--){var W=A[d];W?Array.isArray(W)?bOb(W,H):H.indexOf(W)<0&&(!k||k.indexOf(W)<0)&&H.unshift(W):console.warn("behavior is null, check for missing or 404 import")}return H};
LNb=function(A,H){for(var k in H){var d=A[k],W=H[k];A[k]=!("value"in W)&&d&&"value"in d?Object.assign({value:d.value},W):W}};
jMX=function(A,H,k){var d={},W=function(){return H.apply(this,arguments)||this};
_.I(W,H);W._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(u)for(var h=0,O;h<u.length;h++)O=u[h],O.properties&&this.createProperties(O.properties),O.observers&&this.createObservers(O.observers,O.properties);A.properties&&this.createProperties(A.properties);A.observers&&this.createObservers(A.observers,A.properties);this._prepareTemplate()}else H._finalizeClass.call(this)};
W.prototype.created=function(){H.prototype.created.call(this);var h=d.created;if(h)for(var O=0;O<h.length;O++)h[O].call(this)};
W.prototype._registered=function(){var h=W.prototype;if(!h.hasOwnProperty("__hasRegisterFinished")){h.__hasRegisterFinished=!0;H.prototype._registered.call(this);S8&&B(h);h=Object.getPrototypeOf(this);var O=d.beforeRegister;if(O)for(var T=0;T<O.length;T++)O[T].call(h);if(O=d.registered)for(T=0;T<O.length;T++)O[T].call(h)}};
W.prototype._applyListeners=function(){H.prototype._applyListeners.call(this);var h=d.listeners;if(h)for(var O=0;O<h.length;O++){var T=h[O];if(T)for(var m in T)this._addMethodEventListenerToNode(this,m,T[m])}};
W.prototype._ensureAttributes=function(){var h=d.hostAttributes;if(h)for(var O=h.length-1;O>=0;O--){var T=h[O],m;for(m in T)this._ensureAttribute(m,T[m])}H.prototype._ensureAttributes.call(this)};
W.prototype.ready=function(){H.prototype.ready.call(this);var h=d.ready;if(h)for(var O=0;O<h.length;O++)h[O].call(this)};
W.prototype.attached=function(){H.prototype.attached.call(this);var h=d.attached;if(h)for(var O=0;O<h.length;O++)h[O].call(this)};
W.prototype.detached=function(){H.prototype.detached.call(this);var h=d.detached;if(h)for(var O=0;O<h.length;O++)h[O].call(this)};
W.prototype.attributeChanged=function(h,O,T){H.prototype.attributeChanged.call(this);var m=d.attributeChanged;if(m)for(var J=0;J<m.length;J++)m[J].call(this,h,O,T)};
_.nP.Object.defineProperties(W,{properties:{configurable:!0,enumerable:!0,get:function(){var h={};if(u)for(var O=0;O<u.length;O++)LNb(h,u[O].properties);LNb(h,A.properties);return h}},
observers:{configurable:!0,enumerable:!0,get:function(){var h=[];if(u)for(var O=0,T;O<u.length;O++)T=u[O],T.observers&&(h=h.concat(T.observers));A.observers&&(h=h.concat(A.observers));return h}}});
if(k){Array.isArray(k)||(k=[k]);var z=H.prototype.behaviors;var u=bOb(k,null,z);W.prototype.behaviors=z?z.concat(k):u}var B=function(h){if(u)for(var O=u,T=0;T<O.length;T++)gXN(h,O[T],d,vXW);gXN(h,A,d,yKb)};
S8||B(W.prototype);W.generatedFrom=A;return W};
GjQ=function(A){var H=typeof A!=="string"?A:{is:A,notifyObserversOnUndefined:!0};H.fastInit===void 0&&(H.fastInit=!0);return function(k){if(!H.disableInheritanceCheck&&Object.getPrototypeOf(k.prototype).constructor!==_.Zc)throw Error("Ud");var d=k.prototype;d.is=H.is;Csb(d,"created",function(){this.hostElement=this;this.polymerController=this});
IIf(d,k,H.fastInit);H.notifyObserversOnUndefined&&(d._overrideLegacyUndefined=!0);if(YXm)for(var W=_.r(Object.getOwnPropertyNames(d)),z=W.next();!z.done;z=W.next()){z=z.value;var u=Object.getOwnPropertyDescriptor(d,z);u.enumerable===!1&&(u.enumerable=!0,Object.defineProperty(d,z,u))}if("template"in k)var B=function(){return k.template};
else H.template!==void 0&&(B=H.template);if(B!==void 0){var h;Object.defineProperty(d,"_template",{get:function(){h===void 0&&(h=B());return h},
set:function(O){h=O},
configurable:!0,enumerable:!0})}Polymer(d);k[PPQ]=d}};
FNI=function(A){A=A===void 0?{}:A;A.fastInit===void 0&&(A.fastInit=!0);return function(H){if(!A.disableInheritanceCheck&&Object.getPrototypeOf(H.prototype).constructor!==fP)throw Error("Vd");IIf(H.prototype,H,A.fastInit)}};
IIf=function(A,H,k){k=k===void 0?!1:k;XJA(H);k?Csb(A,"created",function(){this.disableEnforceFastDefaultValuesCheck||DBv(H,this)}):Csb(A,"ready",function(){for(var d={},W=_.r(K8C(this.behaviors)),z=W.next();!z.done;z=W.next())z=z.value,z.properties&&Object.assign(d,SXC(this,z.properties));
Object.assign(d,SXC(this,this.properties));DBv(H,this);W=_.r(Object.keys(d));for(z=W.next();!z.done;z=W.next())z=z.value,this[z]=d[z]})};
DBv=function(A,H){if(YXm){A=new A;for(var k=_.r(Object.getOwnPropertyNames(A)),d=k.next();!d.done;d=k.next())d=d.value,H[d]=A[d];for(k=H;k&&k!==Object.prototype;k=Object.getPrototypeOf(k)){d=_.r(Object.getOwnPropertyNames(k));for(var W=d.next();!W.done;W=d.next())W=W.value,A.hasOwnProperty(W)||Object.defineProperty(A,W,CPC(H,W))}}else A.apply(H)};
CPC=function(A,H){return{get:function(){var k=A[H];return k instanceof Function?k.bind(A):k},
set:function(k){A[H]=k}}};
SXC=function(A,H){if(!H)return{};for(var k={},d=_.r(Object.keys(H)),W=d.next();!W.done;W=d.next())if(W=W.value,!H[W].readOnly){var z=A[W];z!==void 0&&(k[W]=z)}return k};
XJA=function(A){var H=new A;A=A.prototype.properties||{};for(var k=_.r(Object.keys(A)),d=k.next();!d.done;d=k.next())if(d=d.value,H.hasOwnProperty(d)){var W=A[d];typeof W==="function"&&(A[d]=W={type:W});H[d]!=null&&W.type===Object&&(W.type=KNl(H[d].constructor))}};
KNl=function(A){for(var H=_.r(aIV),k=H.next();!k.done;k=H.next())if(k=k.value,A===k)return k;return Object};
cKm=function(A){return function(H,k){H.behaviors=H.behaviors||[];H.behaviors.push(A||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",H,k).prototype:void 0));Object.defineProperty(H,k,{get:function(){return this},
enumerable:!0,configurable:!0})}};
pJf=function(A){A=A===void 0?{}:A;return function(H,k){H.properties=H.properties||{};A.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?A.type=KNl(Reflect.getMetadata("design:type",H,k)):A.type=String);var d=A,W=H.properties[k];H.properties[k]=W?Object.assign({},W,d):d}};
QMN=function(A){return function(H,k){H.listeners=H.listeners||{};H.listeners[A]=k}};
Vml=function(){var A=_.o7.apply(0,arguments);if(A.length===0)throw Error("Wd");return function(H,k){H.observers=H.observers||[];H.observers.push(k+"("+A.join(",")+")")}};
EXX=function(){var A=_.o7.apply(0,arguments);return function(H,k,d){var W=Object.getOwnPropertyDescriptor(H,k).get,z="__compute__"+k;Object.defineProperty(H,z,{value:W,enumerable:!0});H.properties=H.properties||{};W=H.properties[k];W||(W={},H.properties[k]=W);W.computed=z+"("+A.join(",")+")";d.get=void 0}};
_.wo=function(A,H,k){_.dF.call(this);this.JSC$11634_id_=null;this.usingListeners_=!1;this.JSC$11634_listener_=A;this.handler_=k;this.JSC$11634_win_=H||window;this.callback_=(0,_.WT)(this.JSC$11636_doAction_,this)};
lIf=function(A){var H=UBf(A);if(!H)throw Error("Xd`"+A);return H};
UBf=function(A){var H={};A=String(A);var k=A.charAt(0)=="#"?A:"#"+A;if(tmm.test(k))return H.hex=NSm(k),H.type="hex",H;k=Mmb(A);return k.length?(H.hex=nXb(k[0],k[1],k[2]),H.type="rgb",H):ZOQ&&(A=ZOQ[A.toLowerCase()])?(H.hex=A,H.type="named",H):null};
NSm=function(A){if(!tmm.test(A))throw Error("Zd`"+A);A.length==4&&(A=A.replace(fIl,"#$1$1$2$2$3$3"));return A.toLowerCase()};
wJI=function(A){A=NSm(A);A=parseInt(A.slice(1),16);return[A>>16,A>>8&255,A&255]};
nXb=function(A,H,k){A=Number(A);H=Number(H);k=Number(k);if(A!=(A&255)||H!=(H&255)||k!=(k&255))throw Error("$d`"+A+"`"+H+"`"+k);H=A<<16|H<<8|k;return A<16?"#"+(16777216|H).toString(16).slice(1):"#"+H.toString(16)};
Mmb=function(A){var H=A.match(oXX);if(H){A=Number(H[1]);var k=Number(H[2]);H=Number(H[3]);if(A>=0&&A<=255&&k>=0&&k<=255&&H>=0&&H<=255)return[A,k,H]}return[]};
$BA=function(){};
o0=function(A){this.range_=A};
$Y=function(A){this.range_=A};
AW=function(A){this.range_=A};
AsN=function(A){return _.HN?new AW(A):_.s3?new $Y(A):new o0(A)};
HfI=function(){var A=zE().JSC$9639_document_;return!!(A.webkitIsFullScreen||A.mozFullScreen||A.msFullscreenElement||A.fullscreenElement)};
_.kk=function(){var A=window.getSelection();return A&&swv(A)};
swv=function(A){var H=!1;if(A.createRange)try{var k=A.createRange()}catch(W){return null}else if(A.rangeCount){if(A.rangeCount>1){k=new dY;H=A.rangeCount;for(var d=0;d<H;d++)k.browserRanges_.push(A.getRangeAt(d));return k}k=A.getRangeAt(0);H=kkC(A.anchorNode,A.anchorOffset,A.focusNode,A.focusOffset)}else return null;return d3W(AsN(k),H)};
_.zy=function(A,H){return _.WN(A,H,A,H)};
_.qn=function(A,H,k,d){return _.WN(A,H,k,d)};
kkC=function(A,H,k,d){if(A==k)return d<H;var W;if(A.nodeType==1&&H)if(W=A.childNodes[H])A=W,H=0;else if(_.as(A,k))return!0;if(k.nodeType==1&&d)if(W=k.childNodes[d])k=W,d=0;else if(_.as(k,A))return!1;return(WvI(A,k)||H-d)>0};
rY=function(A,H,k){_.dF.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=A;this.scrollTimer_=new _.BT(50);this.JSC$11713_eventHandler_=new _.qZ(this);this.scrollDelta_=new _.Ft;this.containerIsActuallyContent_=A.tagName==="BODY"||A.tagName==="HTML";this.containerBounds_=zkN(A);this.containerIsActuallyContent_&&(A=_.dW(),this.containerBounds_.height=A.height,this.containerBounds_.width=A.width);this.margin_=H||0;if(H){if(H=this.containerBounds_.clone(),A=this.margin_){var d=
Math.min(A,H.height*.25);H.top+=d;H.height-=2*d;A=Math.min(A,H.width*.25);H.left+=A;H.width-=2*A}}else H=this.containerBounds_;this.scrollBounds_=H;k||this.JSC$11713_eventHandler_.listen(_.TE(this.containerNode_),"mousemove",this.JSC$11715_onMouseMove);this.JSC$11713_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11715_onTick_)};
qxX=function(){};
rsC=function(A){return A%10==1&&A%100!=11?"one":A%10==2&&A%100!=12?"two":A%10==3&&A%100!=13?"few":"other"};
ukX=function(A,H){var k=A|0;if(void 0===H){H=Math;var d=H.min,W=A+"",z=W.indexOf(".");H=d.call(H,z===-1?0:W.length-z-1,3)}d=Math.pow(10,H);A={v:H,f:(A*d|0)%d};return k==1&&A.v==0?"one":"other"};
B3I=function(A,H,k,d,W,z,u,B){this.x0=A;this.y0=H;this.x1=k;this.y1=d;this.x2=W;this.y2=z;this.x3=u;this.y3=B};
ug=function(){_.Is.call(this);this.JSC$11796_name_="closure_frame"+ekl++;this.iframesForDisposal_=[];x3f[this.JSC$11796_name_]=this};
_.BN=function(A){this.errorMessage_=null;this.result_=[];this.JSC$11800_buffer_="";this.stack_=[];this.JSC$11800_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!A||!A.deliverMessageAsRawString)};
_.eL=function(A){this.mechanism=A};
xk=function(A,H){this.JSC$11807_key_=A;this.JSC$11807_value_=H};
_.ig=function(A,H){this.JSC$11813_map_={};this.JSC$11813_keys_=[];this.version_=this.size=0;var k=arguments.length;if(k>1){if(k%2)throw Error("na");for(var d=0;d<k;d+=2)this.set(arguments[d],arguments[d+1])}else A&&this.addAll(A)};
hk8=function(){this.JSC$11816_map_=new _.ig;this.JSC$11816_head_=new ifb("");this.JSC$11816_head_.next=this.JSC$11816_head_.prev=this.JSC$11816_head_};
RkV=function(A){if(A>=55296&&A<=57343||A>1114111)return"\ufffd";A in Ofl&&(A=Ofl[A]);var H="";A>65535&&(A-=65536,H+=String.fromCharCode(A>>>10&1023|55296),A=56320|A&1023);return H+=String.fromCharCode(A)};
T3X=function(A,H){return A<H?1:-1};
JsW=function(){return function(A){return A.charAt(1)==="#"?A.charAt(2)==="X"||A.charAt(2)==="x"?RkV(parseInt(A.substr(3),16)):RkV(parseInt(A.substr(2),10)):m3C[A.slice(1,-1)]}};
Lvm=function(A){return A.slice(1,A.length-1).trim().replace(gzm,function(H){return bfI[H]||" "})};
hW=function(A){return A===32||A===9};
O3=function(A,H){return H<A.length?A.charCodeAt(H):-1};
vzI=function(A){for(;A;){if(A._lastLineBlank)return!0;var H=A.type;if(H==="list"||H==="item")A=A._lastChild;else break}return!1};
R1=function(A){if(ysI.test(A)){var H=1,k=0,d=0;for(A[k]=="|"&&k++;k<A.length;){switch(A[k]){case "|":d=1;break;case " ":break;case "\t":break;default:d&&(d=0,H++)}k++}return jwW.test(A)?-H:H}return 0};
IOC=function(A){return A=="table"||A=="row"||A=="cell"};
YxI=function(){return new Ty("document",[[1,1],[0,0]])};
Pxr=function(){};
mV=function(){var A={safe:!1};A=A||{};A.softbreak=A.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=A};
Sxv=function(A,H){var k="";if(A)if(A=A.toLowerCase(),A===" "||Gkv.test(A))k="space";else if(FvI.test(A))k="esc";else if(A.length==1){if(!H||XSX.test(A))k=A}else k=D3Q.test(A)?A.replace("arrow",""):A=="multiply"?"*":A;return k};
csI=function(A,H){var k=A.hasModifiers;if(H.key)k=Sxv(H.key,k);else if(H.detail&&H.detail.key)k=Sxv(H.detail.key,k);else{k=H.keyIdentifier;var d="";k&&(k in Cxm?d=Cxm[k]:KvI.test(k)?(k=parseInt(k.replace("U+","0x"),16),d=String.fromCharCode(k).toLowerCase()):d=k.toLowerCase());(k=d)||(k=H.keyCode,d="",Number(k)&&(k>=65&&k<=90?d=String.fromCharCode(32+k):k>=112&&k<=123?d="f"+(k-112+1):k>=48&&k<=57?d=String(k-48):k>=96&&k<=105?d=String(k-96):d=aOQ[k]),k=d);k=k||""}return k===A.key&&(!A.hasModifiers||
!!H.shiftKey===!!A.shiftKey&&!!H.ctrlKey===!!A.ctrlKey&&!!H.altKey===!!A.altKey&&!!H.metaKey===!!A.metaKey)};
Qwv=function(A){return A.length===1?{combo:A,key:A,event:"keydown"}:A.split("+").reduce(function(H,k){var d=k.split(":");k=d[0];d=d[1];k in pSr?(H[pSr[k]]=!0,H.hasModifiers=!0):(H.key=k,H.event=d||"keydown");return H},{combo:A.split(":").shift()})};
VPN=function(A){return A.trim().split(" ").map(function(H){return Qwv(H)})};
EzA=function(A,H){if(A&&A.fn){var k=A.fn;A.fn=function(){try{k.apply(this,arguments)}catch(d){if(d instanceof JW)console.warn("Argument '"+d.arg+"'"+(H?" for method '"+H+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw d;}}}return A};
lOm=function(){var A=[],H;var k=k||_.U3l.length;for(H=0;H<8;H++)A[H]=_.U3l[0|Math.random()*k];return A.join("")};
tPN=function(){var A=_.o7.apply(0,arguments);return A.length===0?function(H){return H}:A.length===1?A[0]:A.reduce(function(H,k){return function(){return H(k.apply(null,_.fV(_.o7.apply(0,arguments))))}})};
N3b=function(){var A=_.o7.apply(0,arguments);return function(H){return function(k,d){k=H(k,d);var W=function(){throw Error("Ge");},z={getState:k.getState,
dispatch:function(u){return W.apply(null,[u].concat(_.fV(_.o7.apply(1,arguments))))}};
d=A.map(function(u){return u(z)});
W=tPN.apply(null,_.fV(d))(k.dispatch);return Object.assign({},k,{dispatch:W})}}};
ZfC=function(A){Object.keys(A).forEach(function(H){var k=A[H];if(typeof k(void 0,{type:MPC})==="undefined")throw Error("He`"+H);if(typeof k(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+nzf()})==="undefined")throw Error("Ie`"+H+"`"+MPC);})};
bg=function(A){for(var H=Object.keys(A),k={},d=0;d<H.length;d++){var W=H[d];typeof A[W]==="function"&&(k[W]=A[W])}var z=Object.keys(k);try{ZfC(k)}catch(B){var u=B}return function(B,h){B=B===void 0?{}:B;if(u)throw u;for(var O=!1,T={},m=0;m<z.length;m++){var J=z[m],g=B[J],v=(0,k[J])(g,h);if(typeof v==="undefined")throw B=h&&h.type,Error("Je`"+(B?'"'+String(B)+'"':"(unknown type)")+"`"+J);T[J]=v;O=O||v!==g}return(O=O||z.length!==Object.keys(B).length)?T:B}};
fO8=function(A,H,k){function d(){if(T)throw Error("Ke");return B}
function W(g){if(typeof g!=="function")throw Error("Le`"+typeof g);if(T)throw Error("Me");var v=!0;O===h&&(O=h.slice());O.push(g);return function(){if(v){if(T)throw Error("Ne");v=!1;O===h&&(O=h.slice());var y=O.indexOf(g);O.splice(y,1);h=null}}}
function z(g){if(typeof g!=="object"||g===null)var v=!1;else{for(v=g;Object.getPrototypeOf(v)!==null;)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(g)===v}if(!v)throw Error("Oe`"+typeof g);if(typeof g.type==="undefined")throw Error("Pe");if(T)throw Error("Qe");try{T=!0,B=u(B,g)}finally{T=!1}v=h=O;for(var y=0;y<v.length;y++)(0,v[y])();return g}
if(typeof H==="function"&&typeof k==="function"||typeof k==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof H==="function"&&typeof k==="undefined"&&(k=H,H=void 0);if(typeof k!=="undefined"){if(typeof k!=="function")throw Error("Se`"+typeof k);return k(fO8)(A,H)}if(typeof A!=="function")throw Error("Te`"+typeof A);var u=A,B=H,h=[],O=h,T=!1;z({type:MPC});var m={},J=(m.dispatch=z,m.subscribe=W,m.getState=d,m.replaceReducer=function(g){if(typeof g!=="function")throw Error("Ue`"+
typeof g);u=g;z({type:wSN});return J},m[ozm]=function(){var g={};
return g.subscribe=function(v){function y(){v.next&&v.next(d())}
if(typeof v!=="object"||v===null)throw new TypeError("Ve`"+typeof v);y();return{unsubscribe:W(y)}},g[ozm]=function(){return this},g},m);
return J};
$3I=function(A){function H(){W&&(W=!1,A());z&&d()}
function k(){requestAnimationFrame(H)}
function d(){var B=Date.now();if(W){if(B-u<2)return;z=!0}else W=!0,z=!1,setTimeout(k,20);u=B}
var W=!1,z=!1,u=0;return d};
L2=function(A){return typeof A==="number"?A:parseFloat(A)||0};
A9r=function(A){return _.o7.apply(1,arguments).reduce(function(H,k){return H+L2(A["border-"+k+"-width"])},0)};
dpW=function(A){if(HnI[A])return HnI[A];var H=globalThis[A],k=H.prototype,d=A in sFm?sFm[A]:void 0;d=!(!d||!d.every(function(h){var O,T;return!!((O=Object.getOwnPropertyDescriptor(k,h))==null?0:(T=O.get)==null?0:T.toString().includes("[native code]"))}));
var W=A in kaA?kaA[A]:void 0;W=!(!W||!W.every(function(h){var O;return typeof k[h]==="function"&&((O=k[h])==null?void 0:O.toString().includes("[native code]"))}));
if(d&&W&&!globalThis.Zone)return HnI[A]=H.prototype;try{var z=document.createElement("iframe");document.body.appendChild(z);var u=z.contentWindow;if(!u)return H.prototype;var B=u[A].prototype;document.body.removeChild(z);return B?HnI[A]=B:k}catch(h){return k}};
vN=function(A,H,k){var d=A+"."+String(k);if(W7N[d])return W7N[d].call(H);A=dpW(A);var W;A=(W=Object.getOwnPropertyDescriptor(A,k))==null?void 0:W.get;if(!A)return H[k];W7N[d]=A;return A.call(H)};
qhr=function(A,H){var k="Node."+String(H);if(z88[k])return z88[k].bind(A);var d=dpW("Node")[H];if(typeof d!=="function")return A[H];z88[k]=d;return d.bind(A)};
ys=function(A,H,k){try{if(!(H in A))return function(){};
var d=A[H],W=k(d);typeof W==="function"&&(W.prototype=W.prototype||{},Object.defineProperties(W,{__rrweb_original__:{enumerable:!1,value:d}}));A[H]=W;return function(){A[H]=d}}catch(z){return function(){}}};
Yk=function(A){var H=A&&"host"in A&&"mode"in A&&jL(A)||null;return!!(H&&"shadowRoot"in H&&I1(H)===A)};
PN=function(A){return Object.prototype.toString.call(A)==="[object ShadowRoot]"};
r9r=function(A){A.includes(" background-clip: text;")&&!A.includes(" -webkit-background-clip: text;")&&(A=A.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return A};
Btv=function(A){try{var H=A.rules||A.cssRules;if(!H)return null;var k=A.href;!k&&A.ownerNode&&(k=A.ownerNode.baseURI);var d=Array.from(H,function(W){return urW(W,k)}).join("");
return r9r(d)}catch(W){return null}};
urW=function(A,H){if("styleSheet"in A){try{var k;if(!(k=Btv(A.styleSheet))){var d=A.cssText;if(d.split('"').length<3)k=d;else{var W=["@import","url("+JSON.stringify(A.href)+")"];A.layerName===""?W.push("layer"):A.layerName&&W.push("layer("+A.layerName+")");A.supportsText&&W.push("supports("+A.supportsText+")");A.media.length&&W.push(A.media.mediaText);k=W.join(" ")+";"}}var z=k}catch(u){z=A.cssText}return A.styleSheet.href?e8C(z,A.styleSheet.href):z}z=A.cssText;"selectorText"in A&&A.selectorText.includes(":")&&
(z=z.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return H?e8C(z,H):z};
xpC=function(A){var H=A.element;var k=A.maskInputOptions;var d=A.tagName;var W=A.type;var z=A.value;A=A.maskInputFn;z=z||"";W=W&&W.toLowerCase();if(k[d.toLowerCase()]||W&&k[W])z=A?A(z,H):"*".repeat(z.length);return z};
inC=function(A){var H=A.getContext("2d");if(!H)return!0;for(var k=0;k<A.width;k+=50)for(var d=0;d<A.height;d+=50){var W=H.getImageData;if((new Uint32Array(("__rrweb_original__"in W?W.__rrweb_original__:W).call(H,k,d,Math.min(50,A.width-k),Math.min(50,A.height-d)).data.buffer)).some(function(z){return z!==0}))return!1}return!0};
h8m=function(A){var H=A.type;return A.hasAttribute("data-rr-is-password")?"password":H?H.toLowerCase():null};
Onl=function(A){try{var H=new URL(A,window.location.href)}catch(W){return null}var k,d;return(d=(k=H.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:k[1])!=null?d:null};
e8C=function(A,H){return(A||"").replace(R8b,function(k,d,W,z,u,B){W=W||u||B;d=d||z||"";if(!W)return k;if(TtA.test(W)||mpW.test(W)||J9f.test(W))return"url("+d+W+d+")";if(W[0]==="/")return k=H.indexOf("//")>-1?H.split("/").slice(0,3).join("/"):H.split("/")[0],k=k.split("?")[0],"url("+d+(k+W)+d+")";k=H.split("/");z=W.split("/");k.pop();z=_.r(z);for(W=z.next();!W.done;W=z.next())W=W.value,W!=="."&&(W===".."?k.pop():k.push(W));return"url("+d+k.join("/")+d+")"})};
gwN=function(A,H){return(H=H===void 0?!1:H)?A.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):A.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
bn8=function(A,H){var k=k===void 0?!1:k;H=Array.from(H.childNodes);var d=[],W=0;if(H.length>1&&A&&typeof A==="string")for(var z=gwN(A,k),u=z.length/A.length,B=1;B<H.length;B++)if(H[B].textContent&&typeof H[B].textContent==="string"){for(var h=gwN(H[B].textContent,k),O=3;O<h.length&&(h[O].match(/[a-zA-Z0-9]/)||h.indexOf(h.substring(0,O),1)!==-1);O++);for(;O<h.length;O++){var T=h.substring(0,O),m=z.split(T),J=-1;if(m.length===2)J=m[0].length;else if(m.length>2&&m[0]===""&&H[B-1].textContent!=="")J=
z.indexOf(T,1);else if(m.length===1){T=T.substring(0,T.length-1);m=z.split(T);if(m.length<=1)return d.push(A),d;O=101}else O===h.length-1&&(J=z.indexOf(T));if(m.length>=2&&O>100){var g=H[B-1].textContent;g&&typeof g==="string"&&(J=z.indexOf(T,gwN(g).length));J===-1&&(J=m[0].length)}if(J!==-1){for(h=Math.floor(J/u);h>0&&h<A.length;){W+=1;if(W>50*H.length)return d.push(A),d;O=gwN(A.substring(0,h),k);if(O.length===J){d.push(A.substring(0,h));A=A.substring(h);z=z.substring(J);break}else h=O.length<J?
h+Math.max(1,Math.floor((J-O.length)/u)):h-Math.max(1,Math.floor((O.length-J)*u))}break}}}d.push(A);return d};
vwm=function(){return L7A++};
jFm=function(A){if(A instanceof HTMLFormElement)return"form";A=A.tagName.toLowerCase();return y9l.test(A)?"div":A};
GaN=function(A,H){function k(O){return(O=O.exec(H.substring(d)))?(O=O[0],d+=O.length,O):""}
if(H.trim()==="")return H;for(var d=0,W=[];;){k(Itv);if(d>=H.length)break;var z=k(Yhv);if(z.slice(-1)===",")z=PHW(A,z.substring(0,z.length-1)),W.push(z);else{var u="";z=PHW(A,z);for(var B=!1;;){var h=H.charAt(d);if(h===""){W.push((z+u).trim());break}else if(B)h===")"&&(B=!1);else if(h===","){d+=1;W.push((z+u).trim());break}else h==="("&&(B=!0);u+=h;d+=1}}}return W.join(", ")};
PHW=function(A,H){return H&&H.trim()!==""?F7v(A,H):H};
F7v=function(A,H){var k=XFl.get(A);k||(k=A.createElement("a"),XFl.set(A,k));if(!H)H="";else if(H.startsWith("blob:")||H.startsWith("data:"))return H;A2(k,H);return k.href};
Dpf=function(A,H,k,d){return d?k==="src"||k==="href"&&(H!=="use"||d[0]!=="#")||k==="xlink:href"&&d[0]!=="#"||k==="background"&&(H==="table"||H==="td"||H==="th")?PHW(A,d):k==="srcset"?GaN(A,d):k==="style"?e8C(d,F7v(A)):H==="object"&&k==="data"?PHW(A,d):d:d};
ShN=function(A,H){return(A==="video"||A==="audio")&&H==="autoplay"};
CHX=function(A,H,k){try{if(typeof H==="string"){if(A.classList.contains(H))return!0}else for(var d=A.classList.length;d--;)if(H.test(A.classList[d]))return!0;if(k)return A.matches(k)}catch(W){}return!1};
K7v=function(A,H,k){if(!A)return!1;if(A.nodeType!==A.ELEMENT_NODE)return k?K7v(Gy(A),H,k):!1;for(var d=A.classList.length;d--;)if(H.test(A.classList[d]))return!0;return k?K7v(Gy(A),H,k):!1};
atl=function(A,H,k,d){if(A.nodeType===A.ELEMENT_NODE){if(!FL(A).length)return!1}else{if(XL(A)===null)return!1;A=XL(A)}try{if(typeof H==="string")if(d){if(A.closest("."+H))return!0}else{if(A.classList.contains(H))return!0}else if(K7v(A,H,d))return!0;if(k)if(d){if(A.closest(k))return!0}else if(A.matches(k))return!0}catch(W){}return!1};
c9m=function(A,H,k){var d=A.contentWindow;if(d){var W=!1;try{var z=d.document.readyState}catch(B){return}if(z!=="complete"){var u=setTimeout(function(){W||(H(),W=!0)},k);
A.addEventListener("load",function(){clearTimeout(u);W=!0;H()})}else d.location.href==="about:blank"&&A.src!=="about:blank"&&A.src!==""||setTimeout(H,0),A.addEventListener("load",H)}};
pFA=function(A,H,k){var d=!1;try{var W=A.sheet}catch(u){return}if(!W){var z=setTimeout(function(){d||(H(),d=!0)},k);
A.addEventListener("load",function(){clearTimeout(z);d=!0;H()})}};
Ewf=function(A,H){var k=H.doc,d=H.blockClass,W=H.blockSelector,z=H.needsMask,u=H.inlineStylesheet,B=H.maskInputOptions===void 0?{}:H.maskInputOptions,h=H.maskTextFn,O=H.maskInputFn,T=H.dataURLOptions===void 0?{}:H.dataURLOptions,m=H.inlineImages,J=H.recordCanvas,g=H.keepIframeSrcFn,v=H.newlyAddedElement===void 0?!1:H.newlyAddedElement,y=H.cssCaptured===void 0?!1:H.cssCaptured;H=H.mirror;H.nodeMetaMap.has(k)?(H=H.getId(k),H=H===1?void 0:H):H=void 0;switch(A.nodeType){case A.DOCUMENT_NODE:return A.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:A.compatMode}:{type:0,childNodes:[]};case A.DOCUMENT_TYPE_NODE:return{type:1,name:A.name,publicId:A.publicId,systemId:A.systemId,rootId:H};case A.ELEMENT_NODE:return QFC(A,{doc:k,blockClass:d,blockSelector:W,inlineStylesheet:u,maskInputOptions:B,maskInputFn:O,dataURLOptions:T,inlineImages:m,recordCanvas:J,keepIframeSrcFn:g,newlyAddedElement:v,rootId:H});case A.TEXT_NODE:return u=(d=Gy(A))&&d.tagName,d="",W=u==="STYLE"?!0:void 0,(u=u==="SCRIPT"?!0:void 0)?
d="SCRIPT_PLACEHOLDER":y||(d=VE8(A),W&&d&&(d=e8C(d,F7v(k)))),!W&&!u&&d&&z&&(d=h?h(d,XL(A)):d.replace(/[\S]/g,"*")),{type:3,textContent:d||"",rootId:H};case A.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:H};case A.COMMENT_NODE:return{type:5,textContent:VE8(A)||"",rootId:H};default:return!1}};
QFC=function(A,H){var k=H.doc,d=H.inlineStylesheet,W=H.maskInputOptions===void 0?{}:H.maskInputOptions,z=H.maskInputFn,u=H.dataURLOptions===void 0?{}:H.dataURLOptions,B=H.inlineImages,h=H.recordCanvas,O=H.keepIframeSrcFn,T=H.newlyAddedElement===void 0?!1:H.newlyAddedElement,m=H.rootId;H=CHX(A,H.blockClass,H.blockSelector);for(var J=jFm(A),g={},v=A.attributes.length,y=0;y<v;y++){var X=A.attributes[y];ShN(J,X.name)||(g[X.name]=Dpf(k,J,X.name.toLowerCase(),X.value))}J==="link"&&d&&(d=Array.from(k.styleSheets).find(function(p){return p.href===
A.href}),v=null,d&&(v=Btv(d)),v&&(delete g.rel,delete g.href,g._cssText=v));
J==="style"&&A.sheet&&(d=Btv(A.sheet))&&(A.childNodes.length>1&&(d=bn8(d,A).join("/* rr_split */")),g._cssText=d);if(J==="input"||J==="textarea"||J==="select")d=A.value,v=A.checked,g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&d?g.value=xpC({element:A,type:h8m(A),tagName:J,value:d,maskInputOptions:W,maskInputFn:z}):v&&(g.checked=v);J==="option"&&(A.selected&&!W.select?g.selected=!0:delete g.selected);J==="dialog"&&A.open&&(g.rr_open_mode=A.matches("dialog:modal")?"modal":
"non-modal");J==="canvas"&&h&&(A.__context==="2d"?inC(A)||(g.rr_dataURL=A.toDataURL(u.type,u.quality)):"__context"in A||(W=A.toDataURL(u.type,u.quality),z=k.createElement("canvas"),z.width=A.width,z.height=A.height,z=z.toDataURL(u.type,u.quality),W!==z&&(g.rr_dataURL=W)));if(J==="img"&&B){D6||(D6=k.createElement("canvas"),UpV=D6.getContext("2d"));var D=A.currentSrc||A.getAttribute("src")||"<unknown-src>",K=A.crossOrigin,N=function(){A.removeEventListener("load",N);try{D6.width=A.naturalWidth,D6.height=
A.naturalHeight,UpV.drawImage(A,0,0),g.rr_dataURL=D6.toDataURL(u.type,u.quality)}catch(p){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous";A.complete&&A.naturalWidth!==0?N():A.addEventListener("load",N);return}console.warn("Cannot inline img src="+D+"! Error: "+p)}A.crossOrigin==="anonymous"&&(K?g.crossOrigin=K:A.removeAttribute("crossorigin"))};
A.complete&&A.naturalWidth!==0?N():A.addEventListener("load",N)}if(J==="audio"||J==="video")k=g,k.rr_mediaState=A.paused?"paused":"played",k.rr_mediaCurrentTime=A.currentTime,k.rr_mediaPlaybackRate=A.playbackRate,k.rr_mediaMuted=A.muted,k.rr_mediaLoop=A.loop,k.rr_mediaVolume=A.volume;T||(A.scrollLeft&&(g.rr_scrollLeft=A.scrollLeft),A.scrollTop&&(g.rr_scrollTop=A.scrollTop));H&&(T=A.getBoundingClientRect(),g={class:g.class,rr_width:T.width+"px",rr_height:T.height+"px"});J!=="iframe"||O(g.src)||(A.contentDocument||
(g.rr_src=g.src),delete g.src);var U;try{customElements.get(J)&&(U=!0)}catch(p){}return{type:2,tagName:J,attributes:g,childNodes:[],isSVG:!(A.tagName!=="svg"&&!A.ownerSVGElement)||void 0,needBlock:H,rootId:m,isCustom:U}};
C2=function(A){return A===void 0||A===null?"":A.toLowerCase()};
ltf=function(A,H){return H.comment&&A.type===5||A.type===2&&(H.script&&(A.tagName==="script"||A.tagName==="link"&&(A.attributes.rel==="preload"&&A.attributes.as==="script"||A.attributes.rel==="modulepreload")||A.tagName==="link"&&A.attributes.rel==="prefetch"&&typeof A.attributes.href==="string"&&Onl(A.attributes.href)==="js")||H.headFavicon&&(A.tagName==="link"&&A.attributes.rel==="shortcut icon"||A.tagName==="meta"&&(C2(A.attributes.name).match(/^msapplication-tile(image|color)$/)||C2(A.attributes.name)===
"application-name"||C2(A.attributes.rel)==="icon"||C2(A.attributes.rel)==="apple-touch-icon"||C2(A.attributes.rel)==="shortcut icon"))||A.tagName==="meta"&&(H.headMetaDescKeywords&&C2(A.attributes.name).match(/^description|keywords$/)||H.headMetaSocial&&(C2(A.attributes.property).match(/^(og|twitter|fb):/)||C2(A.attributes.name).match(/^(og|twitter):/)||C2(A.attributes.name)==="pinterest")||H.headMetaRobots&&(C2(A.attributes.name)==="robots"||C2(A.attributes.name)==="googlebot"||C2(A.attributes.name)===
"bingbot")||H.headMetaHttpEquiv&&A.attributes["http-equiv"]!==void 0||H.headMetaAuthorship&&(C2(A.attributes.name)==="author"||C2(A.attributes.name)==="generator"||C2(A.attributes.name)==="framework"||C2(A.attributes.name)==="publisher"||C2(A.attributes.name)==="progid"||C2(A.attributes.property).match(/^article:/)||C2(A.attributes.property).match(/^product:/))||H.headMetaVerification&&(C2(A.attributes.name)==="google-site-verification"||C2(A.attributes.name)==="yandex-verification"||C2(A.attributes.name)===
"csrf-token"||C2(A.attributes.name)==="p:domain_verify"||C2(A.attributes.name)==="verify-v1"||C2(A.attributes.name)==="verification"||C2(A.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
K2=function(A,H){var k=H.doc,d=H.mirror,W=H.blockClass,z=H.blockSelector,u=H.maskTextClass,B=H.maskTextSelector,h=H.skipChild===void 0?!1:H.skipChild,O=H.inlineStylesheet===void 0?!0:H.inlineStylesheet,T=H.maskInputOptions===void 0?{}:H.maskInputOptions,m=H.maskTextFn,J=H.maskInputFn,g=H.slimDOMOptions,v=H.dataURLOptions===void 0?{}:H.dataURLOptions,y=H.inlineImages===void 0?!1:H.inlineImages,X=H.recordCanvas===void 0?!1:H.recordCanvas,D=H.onSerialize,K=H.onIframeLoad,N=H.iframeLoadTimeout===void 0?
5E3:H.iframeLoadTimeout,U=H.onStylesheetLoad,p=H.stylesheetLoadTimeout===void 0?5E3:H.stylesheetLoadTimeout,M=H.keepIframeSrcFn===void 0?function(){return!1}:H.keepIframeSrcFn,Z=H.newlyAddedElement===void 0?!1:H.newlyAddedElement,WV=H.cssCaptured===void 0?!1:H.cssCaptured,hA=H.needsMask,qv=H.preserveWhiteSpace===void 0?!0:H.preserveWhiteSpace;
hA||(hA=atl(A,u,B,hA===void 0));var eN=Ewf(A,{doc:k,mirror:d,blockClass:W,blockSelector:z,needsMask:hA,inlineStylesheet:O,maskInputOptions:T,maskTextFn:m,maskInputFn:J,dataURLOptions:v,inlineImages:y,recordCanvas:X,keepIframeSrcFn:M,newlyAddedElement:Z,cssCaptured:WV});if(!eN)return console.warn(A,"not serialized"),null;Z=d.nodeMetaMap.has(A)?d.getId(A):ltf(eN,g)||!qv&&eN.type===3&&!eN.textContent.replace(/^\s+|\s+$/gm,"").length?-2:L7A++;H=Object.assign(eN,{id:Z});d.add(A,H);if(Z===-2)return null;
D&&D(A);Z=!h;H.type===2&&(Z=Z&&!H.needBlock,delete H.needBlock,(WV=I1(A))&&PN(WV)&&(H.isShadowHost=!0));if((H.type===0||H.type===2)&&Z){g.headWhitespace&&H.type===2&&H.tagName==="head"&&(qv=!1);h={doc:k,mirror:d,blockClass:W,blockSelector:z,needsMask:hA,maskTextClass:u,maskTextSelector:B,skipChild:h,inlineStylesheet:O,maskInputOptions:T,maskTextFn:m,maskInputFn:J,slimDOMOptions:g,dataURLOptions:v,inlineImages:y,recordCanvas:X,preserveWhiteSpace:qv,onSerialize:D,onIframeLoad:K,iframeLoadTimeout:N,
onStylesheetLoad:U,stylesheetLoadTimeout:p,keepIframeSrcFn:M,cssCaptured:!1};if(H.type!==2||H.tagName!=="textarea"||H.attributes.value===void 0)for(H.type===2&&H.attributes._cssText!==void 0&&typeof H.attributes._cssText==="string"&&(h.cssCaptured=!0),Z=_.r(Array.from(FL(A))),WV=Z.next();!WV.done;WV=Z.next())(WV=K2(WV.value,h))&&H.childNodes.push(WV);Z=null;if(A.nodeType===A.ELEMENT_NODE&&(Z=I1(A))){WV=_.r(Array.from(FL(Z)));for(var mr=WV.next();!mr.done;mr=WV.next())if(mr=K2(mr.value,h))PN(Z)&&(mr.isShadow=
!0),H.childNodes.push(mr)}}(h=Gy(A))&&Yk(h)&&PN(h)&&(H.isShadow=!0);H.type===2&&H.tagName==="iframe"&&c9m(A,function(){var Cl=A.contentDocument;Cl&&K&&(Cl=K2(Cl,{doc:Cl,mirror:d,blockClass:W,blockSelector:z,needsMask:hA,maskTextClass:u,maskTextSelector:B,skipChild:!1,inlineStylesheet:O,maskInputOptions:T,maskTextFn:m,maskInputFn:J,slimDOMOptions:g,dataURLOptions:v,inlineImages:y,recordCanvas:X,preserveWhiteSpace:qv,onSerialize:D,onIframeLoad:K,iframeLoadTimeout:N,onStylesheetLoad:U,stylesheetLoadTimeout:p,
keepIframeSrcFn:M}))&&K(A,Cl)},N);
H.type===2&&H.tagName==="link"&&typeof H.attributes.rel==="string"&&(H.attributes.rel==="stylesheet"||H.attributes.rel==="preload"&&typeof H.attributes.href==="string"&&Onl(H.attributes.href)==="css")&&pFA(A,function(){if(U){var Cl=K2(A,{doc:k,mirror:d,blockClass:W,blockSelector:z,needsMask:hA,maskTextClass:u,maskTextSelector:B,skipChild:!1,inlineStylesheet:O,maskInputOptions:T,maskTextFn:m,maskInputFn:J,slimDOMOptions:g,dataURLOptions:v,inlineImages:y,recordCanvas:X,preserveWhiteSpace:qv,onSerialize:D,
onIframeLoad:K,iframeLoadTimeout:N,onStylesheetLoad:U,stylesheetLoadTimeout:p,keepIframeSrcFn:M});Cl&&U(A,Cl)}},p);
return H};
tEI=function(A){var H=document;A=A||{};var k=A.maskAllInputs===void 0?!1:A.maskAllInputs,d=A.slimDOM===void 0?!1:A.slimDOM;return K2(H,{doc:H,mirror:A.mirror===void 0?new a1:A.mirror,blockClass:A.blockClass===void 0?"rr-block":A.blockClass,blockSelector:A.blockSelector===void 0?null:A.blockSelector,maskTextClass:A.maskTextClass===void 0?"rr-mask":A.maskTextClass,maskTextSelector:A.maskTextSelector===void 0?null:A.maskTextSelector,skipChild:!1,inlineStylesheet:A.inlineStylesheet===void 0?!0:A.inlineStylesheet,
maskInputOptions:k===!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}:k===!1?{password:!0}:k,maskTextFn:A.maskTextFn,maskInputFn:A.maskInputFn,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:A.dataURLOptions,
inlineImages:A.inlineImages===void 0?!1:A.inlineImages,recordCanvas:A.recordCanvas===void 0?!1:A.recordCanvas,preserveWhiteSpace:A.preserveWhiteSpace,onSerialize:A.onSerialize,onIframeLoad:A.onIframeLoad,iframeLoadTimeout:A.iframeLoadTimeout,onStylesheetLoad:A.onStylesheetLoad,stylesheetLoadTimeout:A.stylesheetLoadTimeout,keepIframeSrcFn:A.keepIframeSrcFn===void 0?function(){return!1}:A.keepIframeSrcFn,
newlyAddedElement:!1})};
cN=function(A,H,k){k=k===void 0?document:k;var d={capture:!0,passive:!0};k.addEventListener(A,H,d);return function(){return k.removeEventListener(A,H,d)}};
p2=function(A,H,k){k=k===void 0?{}:k;var d=null,W=0;return function(){var z=_.o7.apply(0,arguments),u=Date.now();W||k.leading!==!1||(W=u);var B=H-(u-W),h=this;B<=0||B>H?(d&&(clearTimeout(d),d=null),W=u,A.apply(h,z)):d||k.trailing===!1||(d=setTimeout(function(){W=k.leading===!1?0:Date.now();d=null;A.apply(h,z)},B))}};
Ntm=function(A,H,k,d,W){W=W===void 0?window:W;var z=W.Object.getOwnPropertyDescriptor(A,H);W.Object.defineProperty(A,H,d?k:{set:function(u){var B=this;setTimeout(function(){k.set.call(B,u)},0);
z&&z.set&&z.set.call(this,u)}});
return function(){return Ntm(A,H,z||{},!0)}};
MEC=function(A){var H=A.document,k,d,W,z;return{left:H.scrollingElement?H.scrollingElement.scrollLeft:A.pageXOffset!==void 0?A.pageXOffset:H.documentElement.scrollLeft||(H==null?void 0:H.body)&&((k=XL(H.body))==null?void 0:k.scrollLeft)||(H==null?void 0:(d=H.body)==null?void 0:d.scrollLeft)||0,top:H.scrollingElement?H.scrollingElement.scrollTop:A.pageYOffset!==void 0?A.pageYOffset:(H==null?void 0:H.documentElement.scrollTop)||(H==null?void 0:H.body)&&((W=XL(H.body))==null?void 0:W.scrollTop)||(H==
null?void 0:(z=H.body)==null?void 0:z.scrollTop)||0}};
nwI=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
Znv=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
ftV=function(A){return A?A.nodeType===A.ELEMENT_NODE?A:XL(A):null};
Qs=function(A,H,k,d){if(!A)return!1;A=ftV(A);if(!A)return!1;try{if(typeof H==="string"){if(A.classList.contains(H)||d&&A.closest("."+H)!==null)return!0}else if(K7v(A,H,d))return!0}catch(W){}return k&&(A.matches(k)||d&&A.closest(k)!==null)?!0:!1};
wFV=function(A,H,k){return A.tagName==="TITLE"&&k.headTitleMutations?!0:H.getId(A)===-2};
owW=function(A,H){if(Yk(A))return!1;var k=H.getId(A);return H.has(k)?(k=Gy(A))&&k.nodeType===A.DOCUMENT_NODE?!1:k?owW(k,H):!0:!0};
$pI=function(){var A=A===void 0?window:A;"NodeList"in A&&!A.NodeList.prototype.forEach&&(A.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in A&&!A.DOMTokenList.prototype.forEach&&(A.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
A$v=function(A,H){return!(A.nodeName!=="LINK"||A.nodeType!==A.ELEMENT_NODE||!A.getAttribute||A.getAttribute("rel")!=="stylesheet"||!H.nodeMetaMap.get(A))};
snb=function(A){var H=null,k;"getRootNode"in A&&((k=HiC(A))==null?void 0:k.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&jL(HiC(A))&&(H=jL(HiC(A)));return H};
ktN=function(A){var H=A.ownerDocument;if(H){if(!(H=qhr(H,"contains")(A)))if(H=A.ownerDocument){for(var k;k=snb(A);)A=k;H=qhr(H,"contains")(A)}else H=!1}else H=!1;return H};
drm=function(A,H){A.delete(H);FL(H).forEach(function(k){return drm(A,k)})};
WOm=function(A,H){for(var k=[A];k.length;)A=k.pop(),H.has(A)||(H.add(A),FL(A).forEach(function(d){return k.push(d)}))};
zv8=function(A,H){A.size===0?A=!1:A=(H=Gy(H))?A.has(H):!1;return A};
r$I=function(A,H){return A.size===0?!1:q4I(A,H)};
q4I=function(A,H){return(H=Gy(H))?A.has(H)?!0:q4I(A,H):!1};
Vs=function(A){try{if("composedPath"in A){var H=A.composedPath();if(H.length)return H[0]}else if("path"in A&&A.path.length)return A.path[0]}catch(k){}return A&&A.target};
B6X=function(A,H){var k=new udV;E3.push(k);k.init(A);A=new (dpW("MutationObserver").constructor)(U3(k.processMutations.bind(k)));A.observe(H,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return A};
xrl=function(A){var H=A.mousemoveCb;var k=A.sampling;var d=A.doc;var W=A.mirror;if(k.mousemove===!1)return function(){};
var z=[],u,B=p2(U3(function(O){var T=Date.now()-u;H(z.map(function(m){m.timeOffset-=T;return m}),O);
z=[];u=null}),typeof k.mousemoveCallback==="number"?k.mousemoveCallback:500);
A=U3(p2(U3(function(O){var T=Vs(O),m=O.changedTouches?O.changedTouches[0]:O,J=m.clientX;m=m.clientY;u||(u=evl());z.push({x:J,y:m,id:W.getId(T),timeOffset:evl()-u});B(typeof DragEvent!=="undefined"&&O instanceof DragEvent?12:O instanceof MouseEvent?1:6)}),typeof k.mousemove==="number"?k.mousemove:50,{trailing:!1}));
var h=[cN("mousemove",A,d),cN("touchmove",A,d),cN("drag",A,d)];return U3(function(){h.forEach(function(O){return O()})})};
iiI=function(A){var H=A.mouseInteractionCb;var k=A.doc;var d=A.mirror;var W=A.blockClass;var z=A.blockSelector;A=A.sampling;if(A.mouseInteraction===!1)return function(){};
var u=A.mouseInteraction===!0||A.mouseInteraction===void 0?{}:A.mouseInteraction,B=[],h=null,O=function(T){return function(m){var J=Vs(m);if(!Qs(J,W,z,!0)){var g=null,v=T;if("pointerType"in m){switch(m.pointerType){case "mouse":g=0;break;case "touch":g=2;break;case "pen":g=1}g===2&&(lg[T]===1?v="TouchStart":lg[T]===0&&(v="TouchEnd"))}else m.changedTouches&&(g=2);if(g!==null){if(h=g,v.startsWith("Touch")&&g===2||v.startsWith("Mouse")&&g===0)g=null}else lg[T]===2&&(g=h,h=null);if(m=m.changedTouches?
m.changedTouches[0]:m)J=d.getId(J),U3(H)(Object.assign({},{type:lg[v],id:J,x:m.clientX,y:m.clientY},g!==null&&{pointerType:g}))}}};
Object.keys(lg).filter(function(T){return Number.isNaN(Number(T))&&!T.endsWith("_Departed")&&u[T]!==!1}).forEach(function(T){var m=T.toLowerCase(),J=O(T);
if(window.PointerEvent)switch(lg[T]){case 1:case 0:m=m.replace("mouse","pointer");break;case 7:case 9:return}B.push(cN(m,J,k))});
return U3(function(){B.forEach(function(T){return T()})})};
hvI=function(A){var H=A.scrollCb;var k=A.doc;var d=A.mirror;var W=A.blockClass;var z=A.blockSelector;return cN("scroll",U3(p2(U3(function(u){var B=Vs(u);B&&!Qs(B,W,z,!0)&&(u=d.getId(B),B===k&&k.defaultView?(B=MEC(k.defaultView),H({id:u,x:B.left,y:B.top})):H({id:u,x:B.scrollLeft,y:B.scrollTop}))}),A.sampling.scroll||100)),k)};
OiI=function(A,H){var k=A.viewportResizeCb;var d=-1,W=-1;return cN("resize",U3(p2(U3(function(){var z=nwI(),u=Znv();if(d!==z||W!==u)k({width:Number(u),height:Number(z)}),d=z,W=u}),200)),H.win)};
mrW=function(A){function H(X){var D=Vs(X),K=X.isTrusted,N=D&&D.tagName;D&&N==="OPTION"&&(D=XL(D));if(!(!D||!N||RvV.indexOf(N)<0||Qs(D,u,B,!0)||D.classList.contains(h)||O&&D.matches(O))){var U=D.value,p=!1;X=h8m(D)||"";if(X==="radio"||X==="checkbox")p=D.checked;else if(T[N.toLowerCase()]||T[X])U=xpC({element:D,maskInputOptions:T,tagName:N,type:X,value:U,maskInputFn:m});k(D,g?{text:U,isChecked:p,userTriggered:K}:{text:U,isChecked:p});K=D.name;X==="radio"&&K&&p&&W.querySelectorAll('input[type="radio"][name="'+
K+'"]').forEach(function(M){if(M!==D){var Z=M.value;k(M,g?{text:Z,isChecked:!p,userTriggered:!1}:{text:Z,isChecked:!p})}})}}
function k(X,D){var K=T6Q.get(X);K&&K.text===D.text&&K.isChecked===D.isChecked||(T6Q.set(X,D),X=z.getId(X),U3(d)(Object.assign({},D,{id:X})))}
var d=A.inputCb;var W=A.doc;var z=A.mirror;var u=A.blockClass;var B=A.blockSelector;var h=A.ignoreClass;var O=A.ignoreSelector;var T=A.maskInputOptions;var m=A.maskInputFn;var J=A.sampling;var g=A.userTriggeredOnInput;var v=(J.input==="last"?["change"]:["input","change"]).map(function(X){return cN(X,U3(H),W)}),y=W.defaultView;
if(!y)return function(){v.forEach(function(X){return X()})};
A=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,"value");J=[[y.HTMLInputElement.prototype,"value"],[y.HTMLInputElement.prototype,"checked"],[y.HTMLSelectElement.prototype,"value"],[y.HTMLTextAreaElement.prototype,"value"],[y.HTMLSelectElement.prototype,"selectedIndex"],[y.HTMLOptionElement.prototype,"selected"]];A&&A.set&&v.push.apply(v,_.fV(J.map(function(X){return Ntm(X[0],X[1],{set:function(){U3(H)({target:this,isTrusted:!1})}},!1,y)})));
return U3(function(){v.forEach(function(X){return X()})})};
gsr=function(A){var H=[],k,d,W,z;J$N("CSSGroupingRule")&&((k=A.parentRule)==null?void 0:(d=k.constructor)==null?void 0:d.name)==="CSSGroupingRule"||J$N("CSSMediaRule")&&A.parentRule instanceof CSSMediaRule||J$N("CSSSupportsRule")&&A.parentRule instanceof CSSSupportsRule||J$N("CSSConditionRule")&&((W=A.parentRule)==null?void 0:(z=W.constructor)==null?void 0:z.name)==="CSSConditionRule"?(A=Array.from(A.parentRule.cssRules).indexOf(A),H.unshift(A)):A.parentStyleSheet&&(A=Array.from(A.parentStyleSheet.cssRules).indexOf(A),
H.unshift(A));return H};
tW=function(A,H,k){var d,W;if(!A)return{};A.ownerNode?d=H.getId(A.ownerNode):W=k.getId(A);return{styleId:W,id:d}};
LON=function(A,H){var k=A.styleSheetRuleCb;var d=A.mirror;var W=A.stylesheetManager;var z=H.win;if(!z.CSSStyleSheet||!z.CSSStyleSheet.prototype)return function(){};
var u=z.CSSStyleSheet.prototype.insertRule;z.CSSStyleSheet.prototype.insertRule=new Nn(u,{apply:U3(function(J,g,v){var y=_.r(v),X=y.next().value;y=y.next().value;var D=tW(g,d,W.styleMirror),K=D.id;D=D.styleId;(K&&K!==-1||D&&D!==-1)&&k({id:K,styleId:D,adds:[{rule:X,index:y}]});return J.apply(g,v)})});
z.CSSStyleSheet.prototype.addRule=function(J,g,v){v=v===void 0?this.cssRules.length:v;return z.CSSStyleSheet.prototype.insertRule.apply(this,[J+" { "+g+" }",v])};
var B=z.CSSStyleSheet.prototype.deleteRule;z.CSSStyleSheet.prototype.deleteRule=new Nn(B,{apply:U3(function(J,g,v){var y=_.r(v).next().value,X=tW(g,d,W.styleMirror),D=X.id;X=X.styleId;(D&&D!==-1||X&&X!==-1)&&k({id:D,styleId:X,removes:[{index:y}]});return J.apply(g,v)})});
z.CSSStyleSheet.prototype.removeRule=function(J){return z.CSSStyleSheet.prototype.deleteRule.apply(this,[J])};
if(z.CSSStyleSheet.prototype.replace){var h=z.CSSStyleSheet.prototype.replace;z.CSSStyleSheet.prototype.replace=new Nn(h,{apply:U3(function(J,g,v){var y=_.r(v).next().value,X=tW(g,d,W.styleMirror),D=X.id;X=X.styleId;(D&&D!==-1||X&&X!==-1)&&k({id:D,styleId:X,replace:y});return J.apply(g,v)})})}if(z.CSSStyleSheet.prototype.replaceSync){var O=z.CSSStyleSheet.prototype.replaceSync;
z.CSSStyleSheet.prototype.replaceSync=new Nn(O,{apply:U3(function(J,g,v){var y=_.r(v).next().value,X=tW(g,d,W.styleMirror),D=X.id;X=X.styleId;(D&&D!==-1||X&&X!==-1)&&k({id:D,styleId:X,replaceSync:y});return J.apply(g,v)})})}var T={};
biN("CSSGroupingRule")?T.CSSGroupingRule=z.CSSGroupingRule:(biN("CSSMediaRule")&&(T.CSSMediaRule=z.CSSMediaRule),biN("CSSConditionRule")&&(T.CSSConditionRule=z.CSSConditionRule),biN("CSSSupportsRule")&&(T.CSSSupportsRule=z.CSSSupportsRule));var m={};Object.entries(T).forEach(function(J){var g=_.r(J);J=g.next().value;g=g.next().value;m[J]={insertRule:g.prototype.insertRule,deleteRule:g.prototype.deleteRule};g.prototype.insertRule=new Nn(m[J].insertRule,{apply:U3(function(v,y,X){var D=_.r(X),K=D.next().value;
D=D.next().value;var N=tW(y.parentStyleSheet,d,W.styleMirror),U=N.id;N=N.styleId;(U&&U!==-1||N&&N!==-1)&&k({id:U,styleId:N,adds:[{rule:K,index:[].concat(_.fV(gsr(y)),[D||0])}]});return v.apply(y,X)})});
g.prototype.deleteRule=new Nn(m[J].deleteRule,{apply:U3(function(v,y,X){var D=_.r(X).next().value,K=tW(y.parentStyleSheet,d,W.styleMirror),N=K.id;K=K.styleId;(N&&N!==-1||K&&K!==-1)&&k({id:N,styleId:K,removes:[{index:[].concat(_.fV(gsr(y)),[D])}]});return v.apply(y,X)})})});
return U3(function(){z.CSSStyleSheet.prototype.insertRule=u;z.CSSStyleSheet.prototype.deleteRule=B;h&&(z.CSSStyleSheet.prototype.replace=h);O&&(z.CSSStyleSheet.prototype.replaceSync=O);Object.entries(T).forEach(function(J){var g=_.r(J);J=g.next().value;g=g.next().value;g.prototype.insertRule=m[J].insertRule;g.prototype.deleteRule=m[J].deleteRule})})};
y$W=function(A,H){var k=A.mirror;var d=A.stylesheetManager;var W=null;W=H.nodeName==="#document"?k.getId(H):k.getId(jL(H));var z,u,B;A=H.nodeName==="#document"?(z=H.defaultView)==null?void 0:z.Document:(u=H.ownerDocument)==null?void 0:(B=u.defaultView)==null?void 0:B.ShadowRoot;var h=(A==null?0:A.prototype)?Object.getOwnPropertyDescriptor(A==null?void 0:A.prototype,"adoptedStyleSheets"):void 0;if(W===null||W===-1||!A||!h)return function(){};
Object.defineProperty(H,"adoptedStyleSheets",{configurable:h.configurable,enumerable:h.enumerable,get:function(){var O;return(O=h.get)==null?void 0:O.call(this)},
set:function(O){var T,m=(T=h.set)==null?void 0:T.call(this,O);if(W!==null&&W!==-1)try{vsW(d,O,W)}catch(J){}return m}});
return U3(function(){Object.defineProperty(H,"adoptedStyleSheets",{configurable:h.configurable,enumerable:h.enumerable,get:h.get,set:h.set})})};
jnI=function(A,H){var k=A.styleDeclarationCb;var d=A.mirror;var W=A.ignoreCSSAttributes;var z=A.stylesheetManager;var u=H.win;var B=u.CSSStyleDeclaration.prototype.setProperty;u.CSSStyleDeclaration.prototype.setProperty=new Nn(B,{apply:U3(function(O,T,m){var J=_.r(m),g=J.next().value,v=J.next().value;J=J.next().value;if(W.has(g))return B.apply(T,[g,v,J]);var y,X=tW((y=T.parentRule)==null?void 0:y.parentStyleSheet,d,z.styleMirror);y=X.id;X=X.styleId;(y&&y!==-1||X&&X!==-1)&&k({id:y,styleId:X,set:{property:g,
value:v,priority:J},index:gsr(T.parentRule)});return O.apply(T,m)})});
var h=u.CSSStyleDeclaration.prototype.removeProperty;u.CSSStyleDeclaration.prototype.removeProperty=new Nn(h,{apply:U3(function(O,T,m){var J=_.r(m).next().value;if(W.has(J))return h.apply(T,[J]);var g,v=tW((g=T.parentRule)==null?void 0:g.parentStyleSheet,d,z.styleMirror);g=v.id;v=v.styleId;(g&&g!==-1||v&&v!==-1)&&k({id:g,styleId:v,remove:{property:J},index:gsr(T.parentRule)});return O.apply(T,m)})});
return U3(function(){u.CSSStyleDeclaration.prototype.setProperty=B;u.CSSStyleDeclaration.prototype.removeProperty=h})};
IP8=function(A){var H=A.mediaInteractionCb;var k=A.blockClass;var d=A.blockSelector;var W=A.mirror;var z=A.sampling;A=A.doc;var u=U3(function(h){return p2(U3(function(O){if((O=Vs(O))&&!Qs(O,k,d,!0)){var T=O.currentTime,m=O.volume,J=O.muted,g=O.playbackRate,v=O.loop;H({type:h,id:W.getId(O),currentTime:T,volume:m,muted:J,playbackRate:g,loop:v})}}),z.media||500)}),B=[cN("play",u(0),A),
cN("pause",u(1),A),cN("seeked",u(2),A),cN("volumechange",u(3),A),cN("ratechange",u(4),A)];return U3(function(){B.forEach(function(h){return h()})})};
Y4b=function(A){var H=A.fontCb;A=A.doc;var k=A.defaultView;if(!k)return function(){};
var d=[],W=new WeakMap,z=k.FontFace;k.FontFace=function(u,B,h){var O=new z(u,B,h);W.set(O,{family:u,buffer:typeof B!=="string",descriptors:h,fontSource:typeof B==="string"?B:JSON.stringify(Array.from(new Uint8Array(B)))});return O};
A=ys(A.fonts,"add",function(u){return function(B){setTimeout(U3(function(){var h=W.get(B);h&&(H(h),W.delete(B))}),0);
return u.apply(this,[B])}});
d.push(function(){k.FontFace=z});
d.push(A);return U3(function(){d.forEach(function(u){return u()})})};
PGI=function(A){var H=A.doc,k=A.mirror,d=A.blockClass,W=A.blockSelector,z=A.selectionCb,u=!0;A=U3(function(){var B=H.getSelection();if(B&&!(u&&(B==null?0:B.isCollapsed))){u=B.isCollapsed||!1;for(var h=[],O=B.rangeCount||0,T=0;T<O;T++){var m=B.getRangeAt(T),J=m.startContainer,g=m.startOffset,v=m.endContainer;m=m.endOffset;Qs(J,d,W,!0)||Qs(v,d,W,!0)||h.push({start:k.getId(J),startOffset:g,end:k.getId(v),endOffset:m})}z({ranges:h})}});
A();return cN("selectionchange",A)};
Gtv=function(A){var H=A.doc;var k=A.customElementCb;return(A=H.defaultView)&&A.customElements?ys(A.customElements,"define",function(d){return function(W,z,u){try{k({define:{name:W}})}catch(B){console.warn("Custom element callback failed for "+W)}return d.apply(this,[W,z,u])}}):function(){}};
FOl=function(A,H){var k=A.mutationCb,d=A.mousemoveCb,W=A.mouseInteractionCb,z=A.scrollCb,u=A.viewportResizeCb,B=A.inputCb,h=A.mediaInteractionCb,O=A.styleSheetRuleCb,T=A.styleDeclarationCb,m=A.canvasMutationCb,J=A.fontCb,g=A.selectionCb,v=A.customElementCb;A.mutationCb=function(){var y=_.o7.apply(0,arguments);H.mutation&&H.mutation.apply(H,_.fV(y));k.apply(null,_.fV(y))};
A.mousemoveCb=function(){var y=_.o7.apply(0,arguments);H.mousemove&&H.mousemove.apply(H,_.fV(y));d.apply(null,_.fV(y))};
A.mouseInteractionCb=function(){var y=_.o7.apply(0,arguments);H.mouseInteraction&&H.mouseInteraction.apply(H,_.fV(y));W.apply(null,_.fV(y))};
A.scrollCb=function(){var y=_.o7.apply(0,arguments);H.scroll&&H.scroll.apply(H,_.fV(y));z.apply(null,_.fV(y))};
A.viewportResizeCb=function(){var y=_.o7.apply(0,arguments);H.viewportResize&&H.viewportResize.apply(H,_.fV(y));u.apply(null,_.fV(y))};
A.inputCb=function(){var y=_.o7.apply(0,arguments);H.input&&H.input.apply(H,_.fV(y));B.apply(null,_.fV(y))};
A.mediaInteractionCb=function(){var y=_.o7.apply(0,arguments);H.mediaInteaction&&H.mediaInteaction.apply(H,_.fV(y));h.apply(null,_.fV(y))};
A.styleSheetRuleCb=function(){var y=_.o7.apply(0,arguments);H.styleSheetRule&&H.styleSheetRule.apply(H,_.fV(y));O.apply(null,_.fV(y))};
A.styleDeclarationCb=function(){var y=_.o7.apply(0,arguments);H.styleDeclaration&&H.styleDeclaration.apply(H,_.fV(y));T.apply(null,_.fV(y))};
A.canvasMutationCb=function(){var y=_.o7.apply(0,arguments);H.canvasMutation&&H.canvasMutation.apply(H,_.fV(y));m.apply(null,_.fV(y))};
A.fontCb=function(){var y=_.o7.apply(0,arguments);H.font&&H.font.apply(H,_.fV(y));J.apply(null,_.fV(y))};
A.selectionCb=function(){var y=_.o7.apply(0,arguments);H.selection&&H.selection.apply(H,_.fV(y));g.apply(null,_.fV(y))};
A.customElementCb=function(){var y=_.o7.apply(0,arguments);H.customElement&&H.customElement.apply(H,_.fV(y));v.apply(null,_.fV(y))}};
Xof=function(A,H){H=H===void 0?{}:H;var k=A.doc.defaultView;if(!k)return function(){};
FOl(A,H);var d;A.recordDOM&&(d=B6X(A,A.doc));var W=xrl(A),z=iiI(A),u=hvI(A),B=OiI(A,{win:k}),h=mrW(A),O=IP8(A),T=function(){},m=function(){},J=function(){},g=function(){};
A.recordDOM&&(T=LON(A,{win:k}),m=y$W(A,A.doc),J=jnI(A,{win:k}),A.collectFonts&&(g=Y4b(A)));var v=PGI(A),y=Gtv(A),X=[];A=_.r(A.plugins);for(H=A.next();!H.done;H=A.next())H=H.value,X.push(H.observer(H.callback,k,H.options));return U3(function(){E3.forEach(function(K){return K.reset()});
var D;(D=d)==null||D.disconnect();W();z();u();B();h();O();T();m();J();g();v();y();X.forEach(function(K){return K()})})};
J$N=function(A){return typeof window[A]!=="undefined"};
biN=function(A){return!!(typeof window[A]!=="undefined"&&window[A].prototype&&"insertRule"in window[A].prototype&&"deleteRule"in window[A].prototype)};
DrV=function(A){A=new Uint8Array(A);for(var H="",k=0;k<A.byteLength;k++)H+=String.fromCharCode(A[k]);return btoa(H)};
S4b=function(A,H,k){if(A instanceof Array)return A.map(function(W){return S4b(W,H,k)});
if(A!==null){if(A instanceof Float32Array||A instanceof Float64Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Uint8Array||A instanceof Uint16Array||A instanceof Int16Array||A instanceof Int8Array||A instanceof Uint8ClampedArray)return{rr_type:A.constructor.name,args:[Object.values(A)]};if(A instanceof ArrayBuffer){var d=A.constructor.name;A=DrV(A);return{rr_type:d,base64:A}}if(A instanceof DataView)return{rr_type:A.constructor.name,args:[S4b(A.buffer,H,k),A.byteOffset,A.byteLength]};
if(A instanceof HTMLImageElement)return{rr_type:A.constructor.name,src:A.src};if(A instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:A.toDataURL()};if(A instanceof ImageData)return{rr_type:A.constructor.name,args:[S4b(A.data,H,k),A.width,A.height]};if(CGf(A,H)||typeof A==="object")return d=A.constructor.name,A=KOV(A,H,k),{rr_type:d,index:A}}return A};
c$l=function(A,H,k,d){for(var W=[],z=_.r(Object.getOwnPropertyNames(H.CanvasRenderingContext2D.prototype)),u=z.next(),B={};!u.done;B={prop$jscomp$58:void 0},u=z.next()){B.prop$jscomp$58=u.value;try{if(typeof H.CanvasRenderingContext2D.prototype[B.prop$jscomp$58]==="function"){var h=ys(H.CanvasRenderingContext2D.prototype,B.prop$jscomp$58,function(O){return function(T){return function(){var m=_.o7.apply(0,arguments),J=this;Qs(this.canvas,k,d,!0)||setTimeout(function(){var g=aPA(m,H,J);A(J.canvas,{type:Mn["2D"],
property:O.prop$jscomp$58,args:g})},0);
return T.apply(this,m)}}}(B));
W.push(h)}}catch(O){u=Ntm(H.CanvasRenderingContext2D.prototype,B.prop$jscomp$58,{set:function(T){return function(m){A(this.canvas,{type:Mn["2D"],property:T.prop$jscomp$58,args:[m],setter:!0})}}(B)}),W.push(u)}}return function(){W.forEach(function(O){return O()})}};
pov=function(A,H,k,d){var W=[];try{var z=ys(A.HTMLCanvasElement.prototype,"getContext",function(u){return function(B){var h=_.o7.apply(1,arguments);if(!Qs(this,H,k,!0)){var O=B==="experimental-webgl"?"webgl":B;"__context"in this||(this.__context=O);d&&["webgl","webgl2"].includes(O)&&(h[0]&&typeof h[0]==="object"?(O=h[0],O.preserveDrawingBuffer||(O.preserveDrawingBuffer=!0)):h.splice(0,1,{preserveDrawingBuffer:!0}))}return u.apply(this,[B].concat(_.fV(h)))}});
W.push(z)}catch(u){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){W.forEach(function(u){return u()})}};
QnX=function(A,H,k,d,W,z){for(var u=[],B=_.r(Object.getOwnPropertyNames(A)),h=B.next(),O={};!h.done;O={prop$jscomp$59:void 0},h=B.next())if(O.prop$jscomp$59=h.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(O.prop$jscomp$59))try{if(typeof A[O.prop$jscomp$59]==="function"){var T=ys(A,O.prop$jscomp$59,function(m){return function(J){return function(){var g=_.o7.apply(0,arguments),v=J.apply(this,g);KOV(v,z,this);"tagName"in this.canvas&&!Qs(this.canvas,d,W,!0)&&(g=
aPA(g,z,this),k(this.canvas,{type:H,property:m.prop$jscomp$59,args:g}));return v}}}(O));
u.push(T)}}catch(m){h=Ntm(A,O.prop$jscomp$59,{set:function(J){return function(g){k(this.canvas,{type:H,property:J.prop$jscomp$59,args:[g],setter:!0})}}(O)}),u.push(h)}return u};
VJv=function(A,H,k,d){var W=[];W.push.apply(W,_.fV(QnX(H.WebGLRenderingContext.prototype,1,A,k,d,H)));typeof H.WebGL2RenderingContext!=="undefined"&&W.push.apply(W,_.fV(QnX(H.WebGL2RenderingContext.prototype,2,A,k,d,H)));return function(){W.forEach(function(z){return z()})}};
sSC=function(A){var H=A=A===void 0?{}:A,k=H.emit,d=H.checkoutEveryNms,W=H.checkoutEveryNth,z=H.blockClass===void 0?"rr-block":H.blockClass,u=H.blockSelector===void 0?null:H.blockSelector,B=H.ignoreClass===void 0?"rr-ignore":H.ignoreClass,h=H.ignoreSelector===void 0?null:H.ignoreSelector,O=H.maskTextClass===void 0?"rr-mask":H.maskTextClass,T=H.maskTextSelector===void 0?null:H.maskTextSelector,m=H.inlineStylesheet===void 0?!0:H.inlineStylesheet,J=H.maskAllInputs,g=H.maskInputOptions,v=H.slimDOMOptions,
y=H.maskInputFn,X=H.maskTextFn,D=H.hooks,K=H.packFn,N=H.sampling===void 0?{}:H.sampling,U=H.dataURLOptions===void 0?{}:H.dataURLOptions,p=H.mousemoveWait,M=H.recordDOM===void 0?!0:H.recordDOM,Z=H.recordCanvas===void 0?!1:H.recordCanvas,WV=H.recordCrossOriginIframes===void 0?!1:H.recordCrossOriginIframes,hA=H.recordAfter===void 0?A.recordAfter==="DOMContentLoaded"?A.recordAfter:"load":H.recordAfter,qv=H.userTriggeredOnInput===void 0?!1:H.userTriggeredOnInput,eN=H.collectFonts===void 0?!1:H.collectFonts,
mr=H.inlineImages===void 0?!1:H.inlineImages,Cl=H.plugins,pl=H.keepIframeSrcFn===void 0?function(){return!1}:H.keepIframeSrcFn,UC=H.ignoreCSSAttributes===void 0?new Set([]):H.ignoreCSSAttributes;
n2=H.errorHandler;var hk=WV?window.parent===window:!0,eA=!1;if(!hk)try{window.parent.document&&(eA=!1)}catch(lJ){eA=!0}if(hk&&!k)throw Error("af");if(!hk&&!eA)return function(){};
p!==void 0&&N.mousemove===void 0&&(N.mousemove=p);Z6.reset();var lI=J===!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}:g!==void 0?g:{password:!0},Rp=v===!0||v==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:v==="all",headMetaDescKeywords:v==="all",headTitleMutations:v==="all"}:
v?v:{};$pI();var vj,T0=0,Y1=function(lJ){for(var Ni=_.r(Cl||[]),uJ=Ni.next();!uJ.done;uJ=Ni.next())uJ=uJ.value,uJ.eventProcessor&&(lJ=uJ.eventProcessor(lJ));K&&!eA&&(lJ=K(lJ));return lJ};
f2=function(lJ,Ni){lJ.timestamp=evl();var uJ;((uJ=E3[0])==null?0:uJ.isFrozen())&&lJ.type!==2&&(lJ.type!==3||lJ.data.source!==0)&&E3.forEach(function(OB){return OB.unfreeze()});
hk?k==null||k(Y1(lJ),Ni):eA&&(Ni={type:"rrweb",event:Y1(lJ),origin:window.location.origin,isCheckout:Ni},window.parent.postMessage(Ni,"*"));lJ.type===2?(vj=lJ,T0=0):lJ.type!==3||lJ.data.source===0&&lJ.data.isAttachIframe||(T0++,lJ=d&&lJ.timestamp-vj.timestamp>d,(W&&T0>=W||lJ)&&EsV(!0))};
var ze=function(lJ){f2({type:3,data:Object.assign({},{source:0},lJ)})},Tf=function(lJ){return f2({type:3,
data:Object.assign({},{source:3},lJ)})},QW=function(lJ){return f2({type:3,
data:Object.assign({},{source:9},lJ)})},mG=new UrC({mutationCb:ze,
adoptedStyleSheetCb:function(lJ){return f2({type:3,data:Object.assign({},{source:15},lJ)})}}),nN=new lPb({mirror:Z6,
mutationCb:ze,stylesheetManager:mG,recordCrossOriginIframes:WV,wrappedEmit:f2});A=_.r(Cl||[]);for(H=A.next();!H.done;H=A.next())H=H.value,H.getMirror&&H.getMirror({nodeMirror:Z6,crossOriginIframeMirror:nN.crossOriginIframeMirror,crossOriginIframeStyleMirror:nN.crossOriginIframeStyleMirror});var G0=new tJr;N6C=new MJv({recordCanvas:Z,mutationCb:QW,win:window,blockClass:z,blockSelector:u,mirror:Z6,sampling:N.canvas,dataURLOptions:U});var $Z=new nsf({mutationCb:ze,scrollCb:Tf,bypassOptions:{blockClass:z,
blockSelector:u,maskTextClass:O,maskTextSelector:T,inlineStylesheet:m,maskInputOptions:lI,dataURLOptions:U,maskTextFn:X,maskInputFn:y,recordCanvas:Z,inlineImages:mr,sampling:N,slimDOMOptions:Rp,iframeManager:nN,stylesheetManager:mG,canvasManager:N6C,keepIframeSrcFn:pl,processedNodeManager:G0},mirror:Z6});EsV=function(lJ){lJ=lJ===void 0?!1:lJ;if(M){f2({type:4,data:{href:window.location.href,width:Znv(),height:nwI()}},lJ);mG.reset();$Z.init();E3.forEach(function(uJ){return uJ.lock()});
var Ni=tEI({mirror:Z6,blockClass:z,blockSelector:u,maskTextClass:O,maskTextSelector:T,inlineStylesheet:m,maskAllInputs:lI,maskTextFn:X,maskInputFn:y,slimDOM:Rp,dataURLOptions:U,recordCanvas:Z,inlineImages:mr,onSerialize:function(uJ){uJ.nodeName==="IFRAME"&&Z6.nodeMetaMap.get(uJ)&&ZiI(nN,uJ);A$v(uJ,Z6)&&fPm(mG,uJ);uJ&&I1(uJ)&&woI($Z,I1(uJ),document)},
onIframeLoad:function(uJ,OB){osA(nN,uJ,OB);uJ.contentWindow&&uJ.contentDocument&&$rm($Z,uJ.contentWindow.Element,uJ.contentDocument)},
onStylesheetLoad:function(uJ,OB){Agb(mG,uJ,OB)},
keepIframeSrcFn:pl});Ni?(f2({type:2,data:{node:Ni,initialOffset:MEC(window)}},lJ),E3.forEach(function(uJ){return uJ.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&vsW(mG,document.adoptedStyleSheets,Z6.getId(document))):console.warn("Failed to snapshot the document")}};
try{var F9=[],ww=function(lJ){var Ni;return U3(Xof)({mutationCb:ze,mousemoveCb:function(uJ,OB){return f2({type:3,data:{source:OB,positions:uJ}})},
mouseInteractionCb:function(uJ){return f2({type:3,data:Object.assign({},{source:2},uJ)})},
scrollCb:Tf,viewportResizeCb:function(uJ){return f2({type:3,data:Object.assign({},{source:4},uJ)})},
inputCb:function(uJ){return f2({type:3,data:Object.assign({},{source:5},uJ)})},
mediaInteractionCb:function(uJ){return f2({type:3,data:Object.assign({},{source:7},uJ)})},
styleSheetRuleCb:function(uJ){return f2({type:3,data:Object.assign({},{source:8},uJ)})},
styleDeclarationCb:function(uJ){return f2({type:3,data:Object.assign({},{source:13},uJ)})},
canvasMutationCb:QW,fontCb:function(uJ){return f2({type:3,data:Object.assign({},{source:10},uJ)})},
selectionCb:function(uJ){f2({type:3,data:Object.assign({},{source:14},uJ)})},
customElementCb:function(uJ){f2({type:3,data:Object.assign({},{source:16},uJ)})},
blockClass:z,ignoreClass:B,ignoreSelector:h,maskTextClass:O,maskTextSelector:T,maskInputOptions:lI,inlineStylesheet:m,sampling:N,recordDOM:M,recordCanvas:Z,inlineImages:mr,userTriggeredOnInput:qv,collectFonts:eN,doc:lJ,maskInputFn:y,maskTextFn:X,keepIframeSrcFn:pl,blockSelector:u,slimDOMOptions:Rp,dataURLOptions:U,mirror:Z6,iframeManager:nN,stylesheetManager:mG,shadowDomManager:$Z,processedNodeManager:G0,canvasManager:N6C,ignoreCSSAttributes:UC,plugins:(Cl==null?void 0:(Ni=Cl.filter(function(uJ){return uJ.observer}))==
null?void 0:Ni.map(function(uJ){return{observer:uJ.observer,
options:uJ.options,callback:function(OB){return f2({type:6,data:{plugin:uJ.name,payload:OB}})}}}))||[]},D)};
Hor(nN,function(lJ){try{F9.push(ww(lJ.contentDocument))}catch(Ni){console.warn(Ni)}});
var x1=function(){EsV();F9.push(ww(document))};
document.readyState==="interactive"||document.readyState==="complete"?x1():(F9.push(cN("DOMContentLoaded",function(){f2({type:0,data:{}});hA==="DOMContentLoaded"&&x1()})),F9.push(cN("load",function(){f2({type:1,
data:{}});hA==="load"&&x1()},window)));
return function(){F9.forEach(function(lJ){try{lJ()}catch(Ni){String(Ni).toLowerCase().includes("cross-origin")||console.warn(Ni)}});
G0.destroy();n2=void 0}}catch(lJ){console.warn(lJ)}};
_.Y=function(A,H){H=dU(k7(H));A.innerHTML=H};
W6l=function(A){var H=kLb;H||(H=d2X(),H=kLb=_.iK.transpose(H));H=H[A];return typeof H==="string"?H:_.wY(A)};
zdN=function(A){A=String(A).toLowerCase();var H=d2X()[A];return typeof H==="string"?H:_.o1(A)};
quW=function(A){A=A.toLowerCase();A=d2X()[A];return typeof A==="string"?A:null};
d2X=function(){if(!rgN){for(var A=Object.assign({},uql),H=_.r(B18),k=H.next();!k.done;k=H.next())k=k.value,A[k.toLowerCase()]=k;rgN=A}return rgN};
iom=function(A,H){var k=window.customElements;return k&&k.get(A)||edr[A]===!0?2:H.name==="HTMLUnknownElement"?1:H.name==="HTMLElement"&&x2C.test(A)?3:0};
Rdf=function(A,H){switch(H){case "innerHTML":return hdQ(A)===1?2:null;case "textContent":return A=hdQ(A),A===1||A===6?1:null;default:var k,d;return(d=(k=Oob[A.localName])==null?void 0:k[H])!=null?d:null}};
hdQ=function(A){var H=A.localName,k=iom(H,A.constructor);switch(k){case 0:case 1:return T1V(H,A);case 3:case 2:return 1;default:_.HR(k,"got an unknown element classification")}};
T1V=function(A,H){var k=Object.hasOwnProperty.call(m2v,A)?m2v[A]:null;return k!==null?k:Object.hasOwnProperty.call(JgC,A)&&H instanceof SVGElement?JgC[A]:null};
g2W=function(A,H){return H};
L6m=function(A){return(A=A.split(boX,2))?{url:A[0],metadata:A[1]}:null};
ygC=function(A){var H=String(A.url).replace(v2b,encodeURIComponent);if(A=A.metadata){v2b.lastIndex=0;if(v2b.test(A))return null;H+=" "+A}return H};
PS8=function(A){function H(O){var T=O.localName;if(!O.getAttribute("is")&&iom(T,O.constructor)===2){var m;return(m=h)!=null?m:h=document.createElement("polyresinuncustomized")}(O=B[T])||(O=B[T]=document.createElement(T));return O}
var k=A.reportHandler||void 0,d=A.safeTypesBridge||jSV,W=/^$/;if(A=A.allowedIdentifierPrefixes){A=_.r(A);for(var z=A.next();!z.done;z=A.next())W=new RegExp(W.source+"|^"+_.IwI(z.value))}k&&k(!1,"initResin",null);var u=YuX(W,d,k),B={},h=null;return function(O,T,m){var J=O.nodeType;if(J!==Node.ELEMENT_NODE){if(J===Node.TEXT_NODE){T=O.parentElement;m=!T;if(T&&T.nodeType===Node.ELEMENT_NODE){J=T.localName;var g=iom(J,T.constructor);switch(g){case 0:case 1:T=T1V(J,T);m=T===1||T===6;break;case 3:case 2:m=
!0;break;default:_.HR(g,"got an unknown element classification")}}if(m)return function(D){return""+d(D,"STRING",D)}}return function(D){if(!D&&D!==document.all)return D;
k&&k(!0,"Failed to sanitize "+(O.parentElement&&O.parentElement.nodeName)+" #text node to value "+D,O.parentElement);return $k}}var v=O.localName;
J=H(O);var y=null;switch(m){case "attribute":if(zdN(T)in J)break;return function(D){return D};
case "property":if(T in J){y=Rdf(J,T);break}if((g=quW(T))&&g in J)break;return function(D){return D};
default:_.HR(m,"got an unknown resin type, expected either 'property' or 'attribute'")}var X=m==="attribute"?T.toLowerCase():W6l(T);y||(y=wuI(v,X,function(D){var K=O.getAttribute(D);return!K||/[\[\{]/.test(D)?null:K}));
return function(D){var K=Ax,N=null;if(!D&&D!==document.all)return D;if(y!=null){var U=u[y],p=U.safeType;N=U.safeReplacement;p&&(K=d(D,p,Ax));K===Ax&&(U.filterString?(K=String(d(D,"STRING",D)),K=U.filterString(v,X,K)):U.filterRaw&&(K=U.filterRaw(v,X,D,O)),K===N&&(K=Ax))}K===Ax&&(K=N||$k,k&&k(!0,"Failed to sanitize attribute of <"+v+">: <"+v+" "+X+'="'+D+'">',O));return K}}};
YuX=function(A,H,k){return[,{filterRaw:function(d,W,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:GLl,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:GLl,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:$k,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:F6X,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(d,W,z){z=
String(z).toLowerCase();return AWX(d,W,z)?z:$k},
safeReplacement:$k,safeType:void 0},,{filterRaw:void 0,filterString:function(d,W,z){return A.test(z)?z:$k},
safeReplacement:$k,safeType:"CONSTANT"},{filterRaw:function(d,W,z,u){if(typeof z==="string")var B=(B=z.match(XDv))?B.map(L6m).filter(Boolean):[];else if(Array.isArray(z))B=z;else return GLl;var h=B;B=[];var O=[],T={};if(Array.isArray(h))for(var m=0,J=h.length;m<J;++m){var g=h[m],v=g&&g.url;if(v){var y=H(v,"URL",T);if(y){var X=y!==T;(X?B:O).push({url:X?y:v,metadata:g.metadata})}}}else O.push(h);h=O.length?JSON.stringify(O):null;O=Ax;if(B.length){if(!Array.isArray(B))throw Error();O=B.map(ygC).filter(Boolean).join(" , ")||
Ax}h&&k&&k(!0,"Failed to sanitize attribute value of <"+d+">: <"+d+" "+W+'="'+z+'">: '+h,u);return O===Ax?GLl:O},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
D2V=function(A){var H=PS8(A);return function(k,d,W,z){return z||z===document.all?H(k,d,W)(z):z}};
HB=function(A,H){function k(){function W(B,h,O){for(h=Reflect.getMetadata("parameters",B)||[];h.length<=O;)h.push(null);h[O]=h[O]||[];h[O].push(u);Reflect.defineMetadata(h,B);return B}
var z=_.o7.apply(0,arguments);if(this instanceof k)return d.apply(this,z),this;var u=new (Function.prototype.bind.apply(k,[null].concat(_.fV(z))));W.annotation=u;return W}
var d=SuI(H);k.prototype.toString=function(){return"@"+A};
return k.annotationCls=k};
SuI=function(A){return function(){var H=_.o7.apply(0,arguments),k=this;A.forEach(function(d,W){W=H[W];if(Array.isArray(d))k[d[0]]=W&&W!==void 0?W:d[1];else for(var z in d)k[z]=W&&W[z]!==void 0?W[z]:d[z]})}};
CSW=function(A){return A!==void 0&&A!==null};
sd=function(A){if(typeof A==="string")return A;if(A===void 0||A===null)return""+A;if(A.overriddenName)return A.overriddenName;if(A.name)return A.name;A=A.toString();var H=A.indexOf("\n");return H===-1?A:A.substring(0,H)};
K6X=function(A){A.__forward_ref__=K6X;A.toString=function(){return sd(this())};
return A};
kr=function(A){return typeof A==="function"&&A.hasOwnProperty("__forward_ref__")&&A.__forward_ref__===K6X?A():A};
awr=function(A){return A?A.map(function(H){return new (Function.prototype.bind.apply(H.type.annotationCls,[null].concat(_.fV(H.args?H.args:[]))))}):[]};
cgX=function(A){for(var H=[],k=0;k<A.length;++k){if(H.indexOf(A[k])>-1){H.push(A[k]);break}H.push(A[k])}return H};
pDW=function(A){return A.length>1?" ("+cgX(A.slice().reverse()).map(function(H){return sd(H.token)}).join(" -> ")+")":""};
VVX=function(A,H,k,d){if(d){var W=Error("df``"+(d instanceof Error?d.message:d));W.ngOriginalError=d}else W=Error();W.addKey=QSI;W.keys=[H];W.injectors=[A];W.constructResolvingMessage=k;W.message=W.constructResolvingMessage();W.ngOriginalError=d;return W};
QSI=function(A,H){this.injectors.push(A);this.keys.push(H);this.message=this.constructResolvingMessage()};
E2N=function(A,H){return VVX(A,H,function(){return"No provider for "+sd(this.keys[0].token)+"!"+pDW(this.keys)})};
U2v=function(A,H){return VVX(A,H,function(){return"Cannot instantiate cyclic dependency!"+pDW(this.keys)})};
lwV=function(A,H,k){return VVX(A,k,function(){var d=sd(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+d+"!"+pDW(this.keys)+"."},H)};
tVm=function(A,H){for(var k=[],d=0,W=H.length;d<W;d++){var z=H[d];z&&z.length!=0?k.push(z.map(sd).join(" ")):k.push("?")}return Error("hf`"+sd(A)+"`"+k.join(", ")+"`"+sd(A))};
o2W=function(A){var H=void 0,k=void 0;if(A&&A.useClass!==void 0){H=A.useClass;var d=kr(A.useClass);var W=N1f.factory(d);d=MVX(d)}else A&&A.useExisting!==void 0?(W=function(z){return z},d=[n2C(dn.get(kr(A.useExisting)))]):A&&A.useFactory!==void 0?(W=A.useFactory,d=ZoX(A.useFactory,A.deps)):(k=A.useValue,W=function(){return A.useValue},d=fwW);
return new wDv(W,d,H,k)};
AqQ=function(A){return new $2A(dn.get(kr(A.provide)),[o2W(A)],A.multi)};
sqN=function(A){A=HIr(A,[]).map(AqQ);for(var H=new Map,k=0;k<A.length;k++){var d=A[k],W=H.get(d.key.id);if(W){if(d.multiProvider!==W.multiProvider)throw Error("kf`"+W+"`"+d);if(d.multiProvider)for(var z=0;z<d.resolvedFactories.length;z++)W.resolvedFactories.push(d.resolvedFactories[z]);else H.set(d.key.id,d)}else W=void 0,d.multiProvider?W=new $2A(d.key,d.resolvedFactories.slice(),d.multiProvider):W=d,H.set(d.key.id,W)}return Array.from(H.values())};
HIr=function(A,H){A.forEach(function(k){if(k instanceof klf)H.push({provide:k,useClass:k});else if(k&&typeof k=="object"&&k.provide!==void 0)H.push(k);else if(k instanceof Array)HIr(k,H);else throw Error("gf`"+k);});
return H};
ZoX=function(A,H){if(H){var k=H.map(function(d){return[d]});
return H.map(function(d){return d_m(A,d,k)})}return MVX(A)};
MVX=function(A){var H=N1f.parameters(A);if(!H)return[];if(H.some(function(k){return k==null}))throw tVm(A,H);
return H.map(function(k){return d_m(A,k,H)})};
d_m=function(A,H,k){var d=null,W=!1;if(!Array.isArray(H))return H instanceof Wmr?z1l(H.token,W,null):z1l(H,W,null);for(var z=null,u=0;u<H.length;++u){var B=H[u];if(B instanceof klf)d=B;else if(B instanceof Wmr)d=B.token;else if(B instanceof qMm)W=!0;else if(B instanceof rqV||B instanceof uRI)z=B}d=kr(d);if(d!=null)return z1l(d,W,z);throw tVm(A,k);};
z1l=function(A,H,k){return new BxN(dn.get(kr(A)),H,k)};
e1b=function(A,H){for(var k=Array(A.providers.length),d=0;d<A.providers.length;++d){var W=d;if(d<0||d>=A.providers.length)throw Error("jf`"+d);k[W]=H(A.providers[d])}return k};
x_b=function(A){return typeof A==="function"&&N1f.parameters(A).every(function(H){return!!H})};
OIW=function(A){var H=iIl;h1I.get(A)||h1I.set(A,new H);return h1I.get(A)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(A)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(A)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A,H){var k,d;if(A.contains(H))return!0;A=_.WB(A).querySelectorAll("content,slot");for(k=0;k<A.length;++k){var W=_.WB(A[k]).getDistributedNodes();for(d=0;d<W.length;++d)if(W[d].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W[d],H))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){A.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A)&&A.preventDefault();A.targetTouches&&(A=A.targetTouches[0],R1V=A.pageX,Txl=A.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 A=0,H=zC.length;A<H;A++)document.addEventListener(zC[A],_._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 A=0,H=zC.length;A<H;A++)document.removeEventListener(zC[A],_._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(A){var H=_.WB(A).rootTarget;A.type!=="touchmove"&&m_A!==H&&(m_A=H,JqV=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.WB(A).path));if(!JqV.length)return!0;if(A.type==="touchstart")return!1;A=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(JqV,A.deltaX,A.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){for(var H=[],k=A.indexOf(gtW),d=0;d<=k;d++)if(A[d].nodeType===Node.ELEMENT_NODE){var W=A[d],z=W.style;z.overflow!=="scroll"&&z.overflow!=="auto"&&(z=window.getComputedStyle(W));z.overflow!=="scroll"&&z.overflow!=="auto"||H.push(W)}return H};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A,H,k){if(H||k)for(var d=Math.abs(k)>=Math.abs(H),W=0;W<A.length;W++){var z=A[W];if(d?k<0?z.scrollTop>0:z.scrollTop<z.scrollHeight-z.clientHeight:H<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(A){var H={deltaX:A.deltaX,deltaY:A.deltaY};"deltaX"in A||("wheelDeltaX"in A&&"wheelDeltaY"in A?(H.deltaX=-A.wheelDeltaX,H.deltaY=-A.wheelDeltaY):"wheelDelta"in A?(H.deltaX=0,H.deltaY=-A.wheelDelta):"axis"in A?(H.deltaX=A.axis===1?A.detail:0,H.deltaY=A.axis===2?A.detail:0):A.targetTouches&&(A=A.targetTouches[0],H.deltaX=R1V-A.pageX,H.deltaY=Txl-A.pageY));return H};
bIN=function(A){this.element=A;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
vtb=function(A){this.element=A;this.color=window.getComputedStyle(A).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");_.WB(this.waveContainer).appendChild(this.wave);Lmm(this)};
qT=function(A,H){for(var k in A)if(k.toLowerCase()===H.toLowerCase())return A[k]};
yqQ=function(A,H){for(var k in A)if(k.toLowerCase()===H.toLowerCase()){delete A[k];break}};
IDX=function(A){A=_.iK.clone(A);for(var H=0;H<jqV.length;++H){var k=jqV[H],d=qT(A,k);d&&(A["X-Goog-Upload-Header-"+k]=d,yqQ(A,k))}return A};
YMI=function(A){A=_.iK.clone(A);yqQ(A,"X-Goog-Upload-Status")};
Gll=function(A){return PrA.some(function(H){return H.test(A)})};
SMr=function(A,H){var k;var d=(k=A.formContent)==null?void 0:k.locale;k=d==null?void 0:d.split("-")[0];d=d&&Fmr.includes(d)?d:k&&Fmr.includes(k)?k:void 0;d=(d!=null?d:"en").replaceAll("-","_").toLowerCase();var W;A=((W=A.initializationData)==null?0:W.useNightlyRelease)?"nightly":"live";var z;return(H==null?0:(z=H.getEnableAlohaBinarySplit)==null?0:z.call(H))?_.Ia(XUr,A):_.Ia(D_C,A,d)};
aDN=function(A,H,k,d){if(Crf&&KmQ===H)return Crf;KmQ=H;var W=SMr(A,d);return Crf=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(z,u){var B=_.$g("SCRIPT");_.h2(B,W);B.onload=function(){H.feedbackV2GlobalObject?z(H.feedbackV2GlobalObject):u(Error("nf"))};
B.onerror=function(){u(Error("of`"+W.toString()))};
k.body.appendChild(B)})};
Qqm=function(A,H,k,d){if(cqI&&pUW===H)return cqI;pUW=H;var W=SMr(A,d);return cqI=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(z,u){var B=_.$g("SCRIPT");_.h2(B,W);B.onload=function(){H.feedbackV2GlobalObject?z(H.feedbackV2GlobalObject):u(Error("nf"))};
B.onerror=function(){u(Error("of`"+W.toString()))};
k.body.appendChild(B)})};
VhN=function(A,H,k,d,W){W=W===void 0?!0:W;var z,u,B,h,O;return _.e(function(T){switch(T.nextAddress){case 1:return z=Date.now(),T.yield(aDN(A,k,d,H),2);case 2:u=T.yieldResult;if(!(W||((h=A.initializationData)==null?0:h.useNightlyRelease)||((O=A.initializationData)==null?0:O.isLocalServer))){B=u.initializeFeedbackClient(A,z,H);T.jumpTo(3);break}return T.yield(u.initializeFeedbackClientAsync(A,z,H),4);case 4:B=T.yieldResult;case 3:return B.initiateAloha(),T.return(B)}})};
EtW=function(A,H,k,d){var W,z,u;return _.e(function(B){if(B.nextAddress==1)return W=Date.now(),B.yield(Qqm(A,k,d.document,H),2);if(B.nextAddress!=3)return z=B.yieldResult,B.yield(z.initializeFeedbackClientAsync(A,W,H,d),3);u=B.yieldResult;u.initiateAloha();return B.return(u)})};
U_I=function(A,H,k){var d=!0;d=d===void 0?!0:d;var W,z,u,B,h,O,T,m;return _.e(function(J){W=k||_.k8;if((z=H)==null?0:(B=(u=z).getEnableAlohaBinarySplit)==null?0:B.call(u)){h=W;if(h.isFormOpened)throw new rn;h.isFormOpened=!0;A.callbacks=A.callbacks||{};O=A.callbacks.onClose||function(){};
A.callbacks.onClose=function(g){h.isFormOpened=!1;O(g)};
try{return J.return(EtW(A,H,h,W))}catch(g){throw h.isFormOpened=!1,g;}}else{T=W;if(T.isFormOpened)throw new rn;T.isFormOpened=!0;A.callbacks=A.callbacks||{};m=A.callbacks.onClose||function(){};
A.callbacks.onClose=function(g){T.isFormOpened=!1;m(g)};
try{return J.return(VhN(A,H,T,W.document,d))}catch(g){throw T.isFormOpened=!1,g;}}_.EN(J)})};
nt8=function(A,H){return _.e(function(k){return k.return(new Promise(function(d,W){Number.isInteger(Number(A))&&Number(A)>0?(W=lDI(H!=null?H:"")+"/aloha_form_properties?productId="+A,thm(W,function(z){z=z.target;var u=null;try{var B=JSON,h=B.stringify;if(z.JSC$10109_xhr_){var O=z.JSC$10109_xhr_.responseText;O.indexOf(")]}'\n")==0&&(O=O.substring(5));var T=_.ui(O)}else T=void 0;u=et8(NxI,h.call(B,T))}catch(m){h=new NxI,T=Mhb(),T=_.BB(T,13,!1),T=_.BB(T,14,!0),T=_.BB(T,15,!0),T=_.BB(T,20,!1),u=_.Sn(h,
1,T)}d(u)},"GET","",{},2E3,!0)):W(Error("pf`"+A))}))})};
lDI=function(A){return Gll(A)?A:"https://www.google.com/tools/feedback"};
otl=function(A){A=A.match(new RegExp(ZIV,"gi"))||[];A=_.r(A);for(var H=A.next();!H.done;H=A.next()){H=H.value;a:{var k=_.r(fDC);for(var d=k.next();!d.done;d=k.next())if(d.value.test(H)){k=!1;break a}k=!0}if(!k)a:{k=_.r(wUm);for(d=k.next();!d.done;d=k.next())if(d.value.test(H)){k=!0;break a}k=!1}if(k)return!0}return!1};
$_m=function(A,H){var k={},d=Object.keys(A);d=_.r(d);for(var W=d.next();!W.done;W=d.next())W=W.value,k[W]=H(W,A[W]);return k};
ASI=function(A){switch(A){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"}};
sDA=function(A){if(window.crypto&&window.crypto.getRandomValues)try{var H=Array(A),k=new Uint8Array(A);window.crypto.getRandomValues(k);for(var d=0;d<H.length;d++)H[d]=k[d];return H}catch(z){}H=Array(A);for(k=0;k<A;k++){d=Date.now();for(var W=0;W<d%23;W++)H[k]=Math.random();H[k]=Math.floor(Math.random()*256)}if(H4l)for(k=1,d=0;d<H4l.length;d++)H[k%A]^=H[(k-1)%A]/4^H4l.charCodeAt(d),k++;return H};
e1=function(A){A=sDA(A);for(var H=[],k=0;k<A.length;k++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[k]&63));return H.join("")};
krV=function(){var A=_.k8.ytLoggingDocDocumentNonce_;A||(A=e1(16),_.nG("ytLoggingDocDocumentNonce_",A));return A};
W1A=function(A){A&&_.yr("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:dlV,clientScreenNonce:A})};
zg8=function(A){return _.pZ("client-screen-nonce-store",{})[A===void 0?0:A]};
qmW=function(A,H){H=H===void 0?0:H;var k=_.pZ("client-screen-nonce-store");k||(k={},_.cI("client-screen-nonce-store",k));k[H]=A};
rSX=function(A){A=A===void 0?0:A;return A===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+A};
uPI=function(A){return _.pZ(rSX(A===void 0?0:A))};
_.ii=function(A){return(A=uPI(A===void 0?0:A))?new _.xr({veType:A,youtubeData:void 0,jspbYoutubeData:void 0}):null};
BNf=function(){var A=_.pZ("csn-to-ctt-auth-info");A||(A={},_.cI("csn-to-ctt-auth-info",A));return A};
egQ=function(){return Object.values(_.pZ("client-screen-nonce-store",{})).filter(function(A){return A!==void 0})};
_.hx=function(A){A=zg8(A===void 0?0:A);if(!A&&!_.Q$("USE_CSN_FALLBACK",!0))return null;A||(A="UNDEFINED_CSN");return A?A:null};
i4N=function(A){for(var H=_.r(Object.values(xlm)),k=H.next();!k.done;k=H.next())if(_.hx(k.value)===A)return!0;return!1};
hgr=function(A,H,k){var d=BNf();(k=_.hx(k))&&delete d[k];H&&(d[A]=H)};
Od=function(A){return BNf()[A]};
_.RC=function(A,H,k,d){k=k===void 0?0:k;if(A!==zg8(k)||H!==_.pZ(rSX(k)))if(hgr(A,d,k),qmW(A,k),_.cI(rSX(k),H),H=function(){setTimeout(function(){W1A(A)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(H)}catch(W){H()}else H()};
O4b=function(A,H){H=H===void 0?"":H;var k=[],d;for(d in A)if(A.hasOwnProperty(d)){var W=H!==""?H+"."+d:d;typeof A[d]==="object"?k.push.apply(k,_.fV(O4b(A[d],W))):k.push([W,A[d]])}k.sort();return k};
_.mC=function(A){var H=_.o7.apply(1,arguments);if(!TC(A)||H.some(function(d){return!TC(d)}))throw Error("qf");
H=_.r(H);for(var k=H.next();!k.done;k=H.next())RgN(A,k.value)};
RgN=function(A,H){for(var k in H)if(TC(H[k])){if(k in A&&!TC(A[k]))throw Error("rf");k in A||(A[k]={});RgN(A[k],H[k])}else if(TNb(H[k])){if(k in A&&!TNb(A[k]))throw Error("sf");k in A||(A[k]=[]);mlv(A[k],H[k])}else A[k]=H[k];return A};
mlv=function(A,H){H=_.r(H);for(var k=H.next();!k.done;k=H.next())k=k.value,TC(k)?A.push(RgN({},k)):TNb(k)?A.push(mlv([],k)):A.push(k);return A};
TC=function(A){return typeof A==="object"&&!Array.isArray(A)};
TNb=function(A){return typeof A==="object"&&Array.isArray(A)};
geX=function(A){for(var H=_.r(Object.entries(JSI)),k=H.next();!k.done;k=H.next())if(k=_.r(k.value),k.next(),k=k.next().value,k==="SLI_STATUS_"+A)return k;return"SLI_STATUS_UNKNOWN"};
_.Jx=function(A,H,k,d){return b4l(A,H,function(){return new _.L1f(A,H,k,d)})};
_.vev=function(){return _.Jx("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
ySX=function(){return _.Jx("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
gn=function(){return _.Jx("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
jD8=function(){return _.Jx("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
I2V=function(){return _.Jx("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Ymb=function(){return _.Jx("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
F1C=function(A){A&&(A.dataset?A.dataset[PRf()]="true":_.R4([_.y6(GrQ)],A,"data-loaded","true".toString()))};
XYX=function(A){return A?A.dataset?A.dataset[PRf()]:A.getAttribute("data-loaded"):null};
PRf=function(){return DlN.loaded||(DlN.loaded="loaded".replace(/\-([a-z])/g,function(A,H){return H.toUpperCase()}))};
_.bi=function(A,H,k){Smm(A,H,k===void 0?null:k)};
_.K1N=function(A,H){A&&H&&(A=""+_.fl(H),(A=CRA[A])&&_.o5C(A))};
Smm=function(A,H,k){k=k===void 0?null:k;var d=_.a28(typeof A==="string"?A:A.toString()),W=document.getElementById(d),z=W&&XYX(W),u=W&&!z;z?H&&H():(H&&(z=_.$h(d,H),H=""+_.fl(H),CRA[H]=z),u||(W=cS8(A,d,function(){XYX(W)||(F1C(W),_.$tm(d),_.zi(function(){_.HjA(d)},0))},k)))};
cS8=function(A,H,k,d){d=d===void 0?null:d;var W=_.$g("SCRIPT");W.id=H;W.onload=function(){k&&setTimeout(k,0)};
W.onreadystatechange=function(){switch(W.readyState){case "loaded":case "complete":W.onload()}};
d&&W.setAttribute("nonce",d);_.h2(W,typeof A==="string"?_.i5(A):A);A=document.getElementsByTagName("head")[0]||document.body;A.insertBefore(W,A.firstChild);return W};
_.a28=function(A){var H=document.createElement("a");A2(H,A);return"js-"+LH(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
pYV=function(A){var H=_.pZ("INNERTUBE_HOST_OVERRIDE");H&&(A=String(H)+String(_.Mx(A)));return A};
QDr=function(A){var H={};_.b("json_condensed_response")&&(H.prettyPrint="false");return A=vB8(A,H)};
_.vB=function(A){return ZR(A)?"same-origin":"include"};
_.yS=function(A){return ZR(A)?"same-origin":"cors"};
j1=function(A,H,k){k=k===void 0?{}:k;A={method:H===void 0?"POST":H,mode:_.yS(A),credentials:_.vB(A)};H={};for(var d=_.r(Object.keys(k)),W=d.next();!W.done;W=d.next())W=W.value,k[W]&&(H[W]=k[W]);Object.keys(H).length>0&&(A.headers=H);return A};
_.IC=function(A,H){H=H===void 0?{}:H;return"service:"+A+"/"+Object.keys(H).sort().map(function(k){return k+":"+H[k]}).join("/")};
VGX=function(A){var H,k,d,W;A=(H=_.L(A,_.Yr))==null?void 0:(k=H.watchEndpointSupportedOnesieConfig)==null?void 0:(d=k.html5PlaybackOnesieConfig)==null?void 0:(W=d.commonConfig)==null?void 0:W.url;if(!A)return[];H=new _.PB(A);return H.JSC$10346_domain_?["https://"+H.JSC$10346_domain_+"/generate_204"]:[]};
_.l2W=function(){return EeA()||Pkb()||Ulb&&FD("version/")?!0:_.pZ("EOM_VISITOR_DATA")?!1:!0};
tGl=function(A){var H=A.docid||A.video_id||A.videoId||A.id;if(H)return H;H=A.raw_player_response;H||(A=A.player_response)&&(H=JSON.parse(A));return H&&H.videoDetails&&H.videoDetails.videoId||null};
NNC=function(A){return A.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
GC=function(A){return!isNaN(Number(A))&&!_.BV(A)};
_.DZ=function(A,H,k,d){d=d===void 0?!0:d;var W=_.pZ("VALID_SESSION_TEMPDATA_DOMAINS",[]),z=_.te(window.location.href);z&&W.push(z);z=_.te(A);if(_.VW(W,z)||!z&&_.rI(A,"/"))if(W=document.createElement("a"),A2(W,A),A=W.href)if(A=_.Mx(A),A=_.nY(A))d&&!H.csn&&(H.itct||H.ved)&&(H=Object.assign({csn:_.hx()},H)),k?(k=parseInt(k,10),isFinite(k)&&k>0&&MGr(A,H,k)):MGr(A,H)};
Z4I=function(A){var H=_.pZ("VALID_SESSION_TEMPDATA_DOMAINS",[]),k=_.te(window.location.href);k&&H.push(k);k=_.te(A);if(!(_.VW(H,k)||!k&&_.rI(A,"/")))return null;A=_.Mx(A);(A=_.nY(A))?(A=ner(A),A=(A=_.x6.get(A,void 0)||null)?_.NP(A):{}):A=null;return A};
MGr=function(A,H,k){A=ner(A);H=H?_.oa(H):"";k=k||5;_.l2W()&&_.iC(A,H,k)};
ner=function(A){for(var H=_.r(f2W),k=H.next();!k.done;k=H.next())A=_.sI(A,k.value);return"ST-"+LH(A).toString(36)};
_.wYV=function(A){if(A.requestFullscreen)A=A.requestFullscreen(void 0);else if(A.webkitRequestFullscreen)A=A.webkitRequestFullscreen();else if(A.mozRequestFullScreen)A=A.mozRequestFullScreen();else if(A.msRequestFullscreen)A=A.msRequestFullscreen();else if(A.webkitEnterFullscreen)A=A.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return A instanceof Promise?A:Promise.resolve()};
_.CH=function(A){var H;_.p8C(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.S1()==A&&(H=document):H=A;if(H&&(A=_.p8C(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],H))){A.call(H)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.S1=function(){var A=A===void 0?!1:A;var H=_.p8C(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(A)for(;H&&H.shadowRoot;)H=H.shadowRoot.fullscreenElement;return H?H:null};
_.KH=function(A,H){H=H===void 0?!0:H;A.addEventListener("wheel",oel);A.overscrollConfig={cooldown:H}};
_.aC=function(A){A.overscrollConfig=void 0;A.removeEventListener("wheel",oel)};
oel=function(A){var H=A.deltaY,k=A.target,d=null;if(window.Polymer&&window.Polymer.Element){if(k=A.path||A.composedPath&&A.composedPath()){k=_.r(k);for(var W=k.next();!W.done&&(W=W.value,!$lW(W,H));W=k.next())if(W.overscrollConfig){d=W;break}}}else for(;k&&!$lW(k,H);){if(k.overscrollConfig){d=k;break}k=k.parentElement}d&&(H=d.overscrollConfig,H.cooldown?(d=A.deltaY,k=H.lastDeltaY||0,H.lastDeltaY=d,W=H.lastStopped||0,k&&W&&k>0==d>0?Math.abs(k)>=Math.abs(d)?(d=W+1200,k=!1):(d=W+600,k=!0):(d=Date.now()+
600,k=!0),d>Date.now()&&(A.preventDefault(),k&&(H.lastStopped=Date.now()))):A.preventDefault())};
$lW=function(A,H){return H<0&&A.scrollTop>0||H>0&&A.scrollTop<A.scrollHeight-A.clientHeight-1?(A=getComputedStyle(A).overflowY,A=="auto"||A=="scroll"):!1};
AyV=function(A){cB.initialized=!0;cB.sessionId=A.sessionId||"";cB.enabledSpans=A.enabledSpans;A.shouldSampleFn!=null&&(cB.shouldSampleFn=A.shouldSampleFn)};
H1b=function(A){cB.processors.push(A)};
pH=function(A){return cB.initialized?cB.enabledSpans?cB.enabledSpans[A]:!0:!1};
WLI=function(A,H,k){return pH(A)&&cB.shouldSampleFn(A,H,sYN)?new kdN(A,H,k):dE8};
_.QS=function(A,H,k){if(typeof k==="function"){var d=k;k=void 0}var W=WLI(A,H,k),z;if(((z=k)==null?void 0:z.endTime)!=null)return d&&_.Pq(Error("Df")),W;var u;W!==dE8&&((u=k)==null?void 0:u.active)!==!1&&cB.stack.push(W);if(!d)return W;if(W===dE8)return d(W);try{var B=d(W);if(B instanceof Promise)return B.then(function(h){W.end();return h},function(h){W.end("SPAN_STATUS_ERROR");
throw h;});
W.end();return B}catch(h){throw W.end("SPAN_STATUS_ERROR"),h;}};
zDV=function(){XW.subscribe("handleError",function(A){try{for(var H in VS)try{var k=VS[H];typeof VS[H]==="function"&&(k=k());A.params[H]=typeof VS[H]==="object"?JSON.stringify(k):String(k)}catch(d){_.Pq(d)}}catch(d){_.Pq(d)}})};
qQW=function(){};
ryb=function(A){var H=A.nodeName;if(A.id)return H+="#"+A.id;if(A.classList)for(var k=_.r(A.classList),d=k.next();!d.done;d=k.next())H+="."+d.value;A.parentElement&&(H=ryb(A.parentElement)+" > "+H);return H};
_.Ed=function(A,H,k,d){d||(d={bubbles:!0,cancelable:!1,composed:!0});k!==null&&k!==void 0&&(d.detail=k);var W=new CustomEvent(H,d);_.b("untrack_fire_custom_event_killswitch")?A.dispatchEvent(W):_.Oi(function(){return void A.dispatchEvent(W)});
return W};
uYI=function(A){var H=window,k=function(d){H.removeEventListener("yt-navigate-start",k);return A.call(H,d)};
H.addEventListener("yt-navigate-start",k,void 0)};
_.Ud=function(A,H,k,d){d=d===void 0?!1:d;return _.QS("ytAction",{name:H,nodepath:ryb(A)},function(){var W=new BCQ(H,!!d,k);_.Ed(A,"yt-action",W);return W.returnValue})};
_.li=function(A,H,k){return _.Ud(A,H,k,!0)};
_.NT=function(A,H,k,d){H&&H.length&&H.forEach(function(W){var z=K5N(W);z&&(_.b("handle_service_request_actions")&&W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.sendPost?_.tx(k?k:A,[W]):_.li(A,z,[W,k,d]))})};
_.tx=function(A,H){var k=[A];H&&k.push.apply(k,H);H=_.Ud(A,"yt-service-request",k);return H.length>0&&(H=H[0],_.Ed(A,"yt-service-request-sent",H),H&&H.ajaxPromise)?(H.ajaxPromise.then(function(d){_.Ed(A,"yt-service-request-completed",d)},function(d){_.Ed(A,"yt-service-request-error",{error:d,
params:k})},A),H.ajaxPromise):_.MT()};
_.ZZ=function(A,H){if(_.b("handle_service_request_actions"))_.NT(H,A,H);else{A=_.r(A);for(var k=A.next();!k.done;k=A.next()){k=k.value;var d=void 0;((d=_.L(k,_.nH))==null?0:d.commands)?_.ZZ(_.L(k,_.nH).commands,H):(d=void 0,((d=_.L(k,_.fH))==null?0:d.actions)?_.ZZ(_.L(k,_.fH).actions,H):(d=void 0,((d=_.L(k.commandMetadata,_.wn))==null?0:d.sendPost)?_.tx(H,[k]):_.NT(H,[k],H)))}}};
_.xEC=function(A,H,k){H=H===void 0?{}:H;typeof H==="function"&&(H={callback:H});k||H._c&&H._c.jsl&&H._c.jsl.h||_.iK.extend(H,{_c:{jsl:{h:_.pZ("GAPI_HINT_PARAMS")}}});(H.gapiHintOverride||_.pZ("GAPI_HINT_OVERRIDE"))&&(k=_.MP(document.location.href).gapi_jsh)&&_.iK.extend(H,{_c:{jsl:{h:k}}});eDf(A,H)};
_.$r=function(A,H,k){H=H===void 0?{}:H;A=(A=A in oC?oC[A]:k)||"";k={};for(var d in H){k={key$jscomp$855:k.key$jscomp$855};k.key$jscomp$855=d;var W=function(z){return function(){return String(H[z.key$jscomp$855])}}(k);
A=A.replace(new RegExp("\\$\\{"+k.key$jscomp$855+"\\}","gi"),W);A=A.replace(new RegExp("\\$"+k.key$jscomp$855,"gi"),W)}return A};
_.AZ=function(A,H){return i1A(A in oC?oC[A]:{},H)};
i1A=function(A,H){var k=_.pZ("I18N_PLURAL_RULES");k||(k=function(d){return d==1?"one":"other"});
return(A=A["case"+H]||A[k(H)])?A.replace("#",H.toString()):H+""};
RDW=function(A){var H=hDQ(A),k=document.getElementById(H),d=k&&XYX(k);d||k&&!d||(k=O1A(A,H,function(){if(!XYX(k)){F1C(k);_.$tm(H);var W=_.H0(_.HjA,H);_.zi(W,0)}}))};
O1A=function(A,H,k){var d=document.createElement("link");d.id=H;d.onload=function(){k&&setTimeout(k,0)};
A=_.i5(A);_.TM(d,A,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d};
hDQ=function(A){var H=_.$g("A");A2(H,lm(A));return"css-"+LH(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.mEC=function(A){var H=TCI();A!==H&&(H=_.sH(),!_.b("web_autonav_allow_off_by_default")&&A||_.kB(0,141,!0),_.kB(0,140,!A),H.save())};
TCI=function(){var A=_.sH();return _.b("web_autonav_allow_off_by_default")&&!A.getFlag(141)&&_.pZ("AUTONAV_OFF_BY_DEFAULT")?!1:!A.getFlag(140)};
Jyv=function(A,H){var k,d;A=((k=A.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=k.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(k=0;k<A.length;++k)if(A[k].scope===H)return A[k].token||void 0};
gfV=function(A){for(var H=0,k=0;k<A.length;k++)H=H*31+A.charCodeAt(k),k<A.length-1&&(H%=0x800000000000);return H%1E5};
_.dE=function(A){return _.UD("ytcsi."+(A||"")+"data_")||b1f(A)};
_.LL8=function(A){A=_.dE(A);A.metadata||(A.metadata={});return A.metadata};
_.vfl=function(A){A=_.dE(A);A.tick||(A.tick={});return A.tick};
_.W0=function(A){A=_.dE(A);if(A.gel){var H=A.gel;H.gelInfos||(H.gelInfos={});H.gelTicks||(H.gelTicks={})}else A.gel={gelTicks:{},gelInfos:{}};return A.gel};
_.yyI=function(A){A=_.W0(A);A.gelInfos||(A.gelInfos={});return A.gelInfos};
jYQ=function(A){var H=_.dE(A).nonce;H||(H=e1(16),_.dE(A).nonce=H);return H};
b1f=function(A){var H={tick:{},info:{}};_.nG("ytcsi."+(A||"")+"data_",H);return H};
I4r=function(){var A=_.UD("ytcsi.debug");A||(A=[],_.nG("ytcsi.debug",A),_.nG("ytcsi.reference",{}));return A};
_.zH=function(A){A=A||"";var H=YQW();if(H[A])return H[A];var k=I4r(),d={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};k.push(d);return H[A]=d};
P$b=function(A){A=A||"";var H=YQW();H[A]&&delete H[A];var k=I4r(),d={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};k.push(d);H[A]=d};
YQW=function(){var A=_.UD("ytcsi.reference");if(A)return A;I4r();return _.UD("ytcsi.reference")};
_.FLN=function(A){return GdV[A]||"LATENCY_ACTION_UNKNOWN"};
C$C=function(A,H,k){k=k===void 0?{}:k;var d=!1;_.Q$("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);d=d?null:vq;k=k===void 0?{}:k;var W=Math.round(k.timestamp||(0,_.w2)());_.hb(H,1,W<Number.MAX_SAFE_INTEGER?W:0);W=new XiA;if(k.lact)_.hb(W,1,isFinite(k.lact)?k.lact:-1);else if(k.timestamp)_.hb(W,1,-1);else{var z=_.Z$();_.hb(W,1,isFinite(z)?z:-1)}if(k.sequenceGroup&&!_.b("web_gel_sequence_info_killswitch")){z=k.sequenceGroup;var u=B9f(z),B=new DEI;_.hb(B,2,u);_.qC(B,1,z);_.Sn(W,3,B);k.endOfSequence&&delete SQm[k.sequenceGroup]}_.Sn(H,
33,W);(k.sendIsolatedPayload?THQ:mNI)(A,{endpoint:"log_event",payload:H,cttAuthInfo:k.cttAuthInfo,dangerousLogToVisitorSession:k.dangerousLogToVisitorSession},d)};
_.KLV=function(A,H){_.qw("_start",A,H)};
_.rE=function(A,H){if(!_.b("web_csi_action_sampling_enabled")||!_.dE(H).actionDisabled){var k=_.zH(H||"");_.mC(k.info,A);A.loadType&&(k=A.loadType,_.LL8(H).loadType=k);_.mC(_.yyI(H),A);k=jYQ(H);H=_.dE(H).cttAuthInfo;a4W().info(A,k,H)}};
cyV=function(){var A,H,k,d;return((d=_.wj().resolve(_.fZ(Jb))==null?void 0:(A=g_())==null?void 0:(H=A.loggingHotConfig)==null?void 0:(k=H.csiConfig)==null?void 0:k.debugTicks)!=null?d:[]).map(function(W){return Object.values(W)[0]})};
_.qw=function(A,H,k){if(!_.b("web_csi_action_sampling_enabled")||!_.dE(k).actionDisabled){var d=jYQ(k),W;if(W=_.b("web_csi_debug_sample_enabled")&&d){(_.wj().resolve(_.fZ(Jb))==null?0:g_())&&!piV&&(piV=!0,_.qw("gcfl",(0,_.w2)(),k));var z,u,B;W=(_.wj().resolve(_.fZ(Jb))==null?void 0:(z=g_())==null?void 0:(u=z.loggingHotConfig)==null?void 0:(B=u.csiConfig)==null?void 0:B.debugSampleWeight)||0;if(z=W!==0)b:{z=cyV();if(z.length>0)for(u=0;u<z.length;u++)if(A===z[u]){z=!0;break b}z=!1}z?(W=gfV(d)%W!==0,
_.dE(k).debugTicksExcludedLogged||(z={},z.debugTicksExcluded=W,_.rE(z,k)),_.dE(k).debugTicksExcludedLogged=!0):W=!1}if(!W){A[0]!=="_"&&QYm(A,k,H);W=_.zH(k||"");W.tick[A]=H||(0,_.w2)();if(W.callback&&W.callback[A])for(W=_.r(W.callback[A]),z=W.next();!z.done;z=W.next())z=z.value,z();W=_.W0(k);W.gelTicks&&(W.gelTicks[A]=!0);z=_.vfl(k);W=H||(0,_.w2)();z[A]=W;z=_.dE(k).cttAuthInfo;A==="_start"?a4W().baseline(d,H,z):a4W().tick(A,d,H,z);_.Vdl(k);return W}}};
QYm=function(A,H,k){if(_.u9.mark)if(A.startsWith("mark_")||(A="mark_"+A),H&&(A+=" ("+H+")"),k===void 0||_.b("web_csi_disable_alt_time_performance_mark"))_.u9.mark(A);else{k=_.b("csi_use_performance_navigation_timing")?k-_.u9.timeOrigin:k-(_.u9.timeOrigin||_.u9.timing.navigationStart);try{_.u9.mark(A,{startTime:k})}catch(d){}}};
EfC=function(){var A,H=(A=_.u9.getEntriesByType)==null?void 0:A.call(_.u9,"mark");H&&H.forEach(function(k){if(k.name.startsWith("mark_")){var d;(d=_.u9.clearMarks)==null||d.call(_.u9,k.name)}})};
_.UEC=function(A){var H={},k=function(z,u,B){u=u.match("_rid")?u.split("_rid")[0]:u;typeof B==="number"&&(B=JSON.stringify(B));z.requestIds?z.requestIds.push({endpoint:u,id:B}):z.requestIds=[{endpoint:u,id:B}]};
A=_.r(Object.entries(A));for(var d=A.next();!d.done;d=A.next()){var W=_.r(d.value);d=W.next().value;W=W.next().value;switch(d){case "GetBrowse_rid":k(H,d,W);break;case "GetGuide_rid":k(H,d,W);break;case "GetHome_rid":k(H,d,W);break;case "GetPlayer_rid":k(H,d,W);break;case "GetSearch_rid":k(H,d,W);break;case "GetSettings_rid":k(H,d,W);break;case "GetTrending_rid":k(H,d,W);break;case "GetWatchNext_rid":k(H,d,W);break;case "yt_red":H.isRedSubscriber=!!W;break;case "yt_ad":H.isMonetized=!!W}}return H};
_.l4W=function(A){var H=_.B0("aft",A);if(H)return H;H=_.pZ((A||"")+"TIMING_AFT_KEYS",["ol"]);for(var k=H.length,d=0;d<k;d++){var W=_.B0(H[d],A);if(W)return W}return NaN};
_.tdW=function(A,H){_.nG("ytglobal.timing"+(H||"")+"ready_",A)};
_.B0=function(A,H){if(A=_.vfl(H)[A])return typeof A==="number"?A:A[A.length-1]};
_.Vdl=function(A){var H=_.B0("_start",A),k=_.l4W(A),d=!NCl;H&&k&&d&&(i0f(MdW,new nfI(Math.round(k-H),A)),NCl=!0)};
f48=function(A){b1f(A);Z1W();EfC();A||(_.pZ("TIMING_ACTION")&&_.cI("PREVIOUS_ACTION",_.pZ("TIMING_ACTION")),_.cI("TIMING_ACTION",""))};
_.wi8=function(A){A=A===void 0?{}:A;_.ED(function(){ec();P$b();f48();_.tdW(!1);A.cttAuthInfo&&(_.dE().cttAuthInfo=A.cttAuthInfo);_.cI("TIMING_AFT_KEYS",[]);A.isHot?_.xB({loadType:"hot"}):_.xB({loadType:"warm"});_.cI("TIMING_ACTION","");delete _.pZ("TIMING_INFO",{}).yt_lt;_.ED(_.KLV)(A.startTime,void 0)})()};
_.hZ=function(A,H,k,d){H=H===void 0?{}:H;_.ED(function(){var W=k?k:A;i9(W);var z=H.sampleRate;if(!_.b("web_csi_action_sampling_enabled")||z===void 0||z<=1)z=!1;else{var u=jYQ(W);z=gfV(u)%z!==0}z&&(_.dE(W).actionDisabled=!0);_.zH(W||"").info.actionType=A;H.cttAuthInfo&&(_.dE(W).cttAuthInfo=H.cttAuthInfo);_.cI(W+"TIMING_ACTION",A);_.ED(_.KLV)(H.startTime,W);z={actionType:d||_.FLN(A)};H.logPreviousAction&&(z.previousAction=_.FLN(_.pZ("TIMING_ACTION")));(u=_.hx())&&u!=="UNDEFINED_CSN"&&(z.clientScreenNonce=
u);_.xB(z,W);_.tdW(!0,W)})()};
i9=function(A){_.ED(function(){ec(A);P$b(A);f48(A)})()};
ofr=function(){_.ED(function(){var A=[],H;for(H in _.UD("ytcsi.".slice(0,-1)))H.endsWith("data_")&&A.push(H.slice(0,-5));A=_.r(A);for(H=A.next();!H.done;H=A.next())i9(H.value);ec()})()};
_.AU8=function(A){return _.ED(function(){return _.$El("_start",A)})()};
_.xB=function(A,H,k){_.ED(_.rE)(A,H,k===void 0?!1:k)};
_.OH=function(A,H,k){return _.ED(_.qw)(A,H,k)};
_.$El=function(A,H){return _.ED(function(){var k=_.vfl(H);return A in k})()};
shV=function(A){if(!_.b("universal_csi_network_ticks"))return"";A=_.Nx(A)||"";for(var H=Object.keys(HMl),k=0;k<H.length;k++){var d=H[k];if(A.includes(d))return d}return""};
dYm=function(A){if(!_.b("universal_csi_network_ticks"))return function(){};
var H=HMl[A];return H?(_.RN(H),function(){var k=_.b("universal_csi_network_ticks")?(k=kBX[A])?_.RN(k):!1:!1;return k}):function(){}};
_.RN=function(A,H,k){return _.ED(function(){if(_.$El(A,k))return!1;_.OH(A,H,k);return!0})()};
_.TH=function(A,H,k){_.ED(function(){if(!_.AU8(k)||_.$El(A,k))return!1;_.OH(A,H,k);return!0})()};
_.mp=function(A){return _.ED(_.B0)(A,void 0)};
ec=function(A){_.AU8(A)&&_.OH("aa",void 0,A)};
_.ujI=function(A,H,k,d,W,z,u,B,h,O){var T=Wll();z=new _.xr({veType:H,youtubeData:z,jspbYoutubeData:B});O=JZ({automatedLogEventSource:O},T);W&&(O.cttAuthInfo=W);W={csn:T,pageVe:z.getAsJson()};_.b("expectation_logging")&&h&&h.screenCreatedLoggingExpectations&&(W.screenCreatedLoggingExpectations=h.screenCreatedLoggingExpectations);k&&k.visualElement?(W.implicitGesture={parentCsn:k.clientScreenNonce,gesturedVe:k.visualElement.getAsJson()},u&&(W.implicitGesture.gestureType=u)):k&&_.Pq(new _.Ti("newScreen() parent element does not have a VE - rootVe",
H));d&&(W.cloneCsn=d);A?LT("screenCreated",W,A,O):_.yr("screenCreated",W,O);i0f(g9A,new zPN(T));gE.clear();q7f.clear();rUI.clear();return T};
b9=function(A,H,k,d,W,z){z=z===void 0?{}:z;BXl(A,H,k,[d],W===void 0?!1:W,z)};
BXl=function(A,H,k,d,W,z){W=W===void 0?!1:W;z=z===void 0?{}:z;Object.assign(z,JZ({cttAuthInfo:Od(H)||void 0},H));for(var u=_.r(d),B=u.next();!B.done;B=u.next()){B=B.value;var h=B.getAsJson();(_.iK.isEmpty(h)||!h.trackingParams&&!h.veType)&&_.Pq(Error("Ff"));if(_.b("no_client_ve_attach_unless_shown")){var O=ePv(B,H);if(h.veType&&!q7f.has(O)&&!rUI.has(O)&&!W){if(!_.b("il_attach_cache_limit")||gE.size<1E3){gE.set(O,[A,H,k,B]);return}_.b("il_attach_cache_limit")&&gE.size>1E3&&_.Pq(new _.Ti("IL Attach cache exceeded limit"))}B=
ePv(k,H);gE.has(B)?xYf(k,H):rUI.set(B,!0)}}d=d.filter(function(T){T.csn!==H?(T.csn=H,T=!0):T=!1;return T});
k={csn:H,parentVe:k.getAsJson(),childVes:_.hj(d,function(T){return T.getAsJson()})};
H==="UNDEFINED_CSN"?L8("visualElementAttached",z,k):A?LT("visualElementAttached",k,A,z):_.yr("visualElementAttached",k,z)};
hPW=function(A,H,k,d,W,z,u){iMI(A,H,k,W,u)};
iMI=function(A,H,k,d,W){OMW(k,H);W=JZ({cttAuthInfo:Od(H)||void 0,automatedLogEventSource:W},H);k={csn:H,ve:k.getAsJson(),eventType:1};d&&(k.clientData=d);H==="UNDEFINED_CSN"?L8("visualElementShown",W,k):A?LT("visualElementShown",k,A,W):_.yr("visualElementShown",k,W)};
RPA=function(A,H,k,d){OMW(k,H);var W=JZ({cttAuthInfo:Od(H)||void 0,automatedLogEventSource:void 0},H);k={csn:H,ve:k.getAsJson(),eventType:4};d&&(k.clientData=d);H==="UNDEFINED_CSN"?L8("visualElementShown",W,k):A?LT("visualElementShown",k,A,W):_.yr("visualElementShown",k,W)};
TXm=function(A,H,k,d,W,z){var u=(d=d===void 0?!1:d)?16:8;d=JZ({cttAuthInfo:Od(H)||void 0,endOfSequence:d,automatedLogEventSource:z},H);k={csn:H,ve:k.getAsJson(),eventType:u};W&&(k.clientData=W);H==="UNDEFINED_CSN"?L8("visualElementHidden",d,k):A?LT("visualElementHidden",k,A,d):_.yr("visualElementHidden",k,d)};
JUm=function(A,H,k,d,W,z){mYC(A,H,k,void 0,d,W,z)};
mYC=function(A,H,k,d,W,z,u){OMW(k,H);d=d||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";z=JZ({cttAuthInfo:Od(H)||void 0,automatedLogEventSource:u},H);k={csn:H,ve:k.getAsJson(),gestureType:d};W&&(k.clientData=W);H==="UNDEFINED_CSN"?L8("visualElementGestured",z,k):A?LT("visualElementGestured",k,A,z):_.yr("visualElementGestured",k,z)};
gOb=function(A,H,k,d){var W=JZ({cttAuthInfo:Od(H)||void 0},H);k={csn:H,ve:k.getAsJson(),clientData:d};H==="UNDEFINED_CSN"?L8("visualElementStateChanged",W,k):A?LT("visualElementStateChanged",k,A,W):_.yr("visualElementStateChanged",k,W)};
bMI=function(){var A=sDA(16);for(var H=[],k=0;k<A.length;k++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[k]&63));return H.join("")};
L8=function(A,H,k){Ll8.push({payloadName:A,payload:k,jspbPayload:void 0,options:H});vO8||(vO8=L$8())};
J6I=function(A){if(Ll8){for(var H=_.r(Ll8),k=H.next();!k.done;k=H.next())k=k.value,k.payload&&(k.payload.csn=A.csn,_.yr(k.payloadName,k.payload,k.options));Ll8.length=0}vO8=0};
ePv=function(A,H){return""+A.getAsJson().veType+A.getAsJson().veCounter+H};
OMW=function(A,H){if(_.b("no_client_ve_attach_unless_shown")){var k=ePv(A,H);q7f.set(k,!0);xYf(A,H)}};
xYf=function(A,H){A=ePv(A,H);gE.has(A)&&(H=gE.get(A)||[],b9(H[0],H[1],H[2],H[3],!0),gE.delete(A))};
JZ=function(A,H){_.b("log_sequence_info_on_gel_web")&&(A.sequenceGroup=H);return A};
_.v0=function(A,H,k){_.ED(b9)(void 0,A,H,k)};
_.ym=function(A,H,k){_.ED(BXl)(void 0,A,H,k)};
_.jc=function(A,H){_.ED(hPW)(void 0,A,H,void 0,void 0,void 0)};
_.IN=function(A,H,k){_.ED(function(){_.t3(H,function(d){RPA(void 0,A,d,k)})})()};
_.YB=function(A,H,k,d){_.ED(function(){_.t3(H,function(W){TXm(void 0,A,W,k,d)})})()};
_.P0=function(A,H,k){_.ED(JUm)(void 0,A,H,k,void 0)};
_.GH=function(A,H,k,d){_.ED(mYC)(void 0,A,H,k,d,void 0)};
_.Fp=function(A,H,k){_.ED(gOb)(void 0,A,H,k,void 0)};
yUf=function(A,H){Xp.set(A,H)};
jhm=function(A,H){var k=Object.keys(A);A=new _.Ti("[Command Handler] "+H,{filteredCommandNames:k,originalCommand:A});_.I3(A)};
Ibl=function(A,H){jhm(A,H+" was called but not set")};
Y7v=function(A){return function(){return new A}};
DW=function(A){return function(){return _.wj().resolve(A)}};
PUA=function(A,H){var k=_.L(A,_.SM);if(k&&(k=H[k.signal]))return k();A=_.r(Object.keys(A));for(k=A.next();!k.done;k=A.next())if(k=k.value,H[k]&&(k=H[k]))return k()};
_.Sc=function(A,H,k,d){return{browseEndpoint:{browseId:A},commandMetadata:{webCommandMetadata:{url:H,rootVe:k,webPageType:d===void 0?"WEB_PAGE_TYPE_BROWSE":d}}}};
GBf=function(A,H,k){var d=H=H===void 0?0:H;k=k===void 0?0:k;var W=k-d;return _.C8(A,"PPSV",void 0,void 0,(W>600?0:W<60||k<=0||d/k>.9)?0:H)};
_.C8=function(A,H,k,d,W){var z="/watch?v="+A;A={videoId:A};H&&(A.playlistId=H,z+="&list="+H);d&&(z+="&pp="+d);W&&(A.startTimeSeconds=W,z+="&t="+W+"s");H={watchEndpoint:A,commandMetadata:{webCommandMetadata:{url:z,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};k&&(H.clickTrackingParams=k);d&&(_.L(H,_.Yr).playerParams=d);return H};
FlI=function(A){return{browseEndpoint:{browseId:"VL"+A},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+A,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
X2I=function(A){if(A){var H;if(A){var k=(H=_.L(A.commandMetadata,_.wn))==null?void 0:H.url;H=!(!k||k==="/service_ajax")}else H=!1;if(H)return A;var d;if(A=(d=_.L(A,_.nH))==null?void 0:d.commands)for(d=_.r(A),A=d.next();!A.done;A=d.next())if(A=X2I(A.value))return A}};
_.K8=function(A){return{runs:[{text:A}]}};
DYI=function(A,H){return A&&H?{runs:[{text:A,navigationEndpoint:H}]}:void 0};
aN=function(A){return A?_.K8(A):void 0};
_.c0=function(A){return A?{simpleText:A}:void 0};
_.p8=function(A){var H=A.type;A=A.payload;H={type:H};A!==void 0&&(H.payload=A);return H};
S7W=function(A,H,k){for(var d=Object.assign({},A),W=_.r(Object.keys(H)),z=W.next();!z.done;z=W.next()){z=z.value;var u=A[z],B=H[z];if(B===void 0)delete d[z];else if(u===void 0)d[z]=B;else if(Array.isArray(B)&&Array.isArray(u))d[z]=k?[].concat(_.fV(u),_.fV(B)):B;else if(!Array.isArray(B)&&_.nl(B)&&!Array.isArray(u)&&_.nl(u))d[z]=S7W(u,B,k);else if(typeof B===typeof u)d[z]=B;else return H=new _.Ti("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:z,originalValue:u,updateValue:B}),
_.I3(H),A}return d};
abr=function(A){if(!A.length)return"";try{if(CU8)return CU8.decode(A);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(A)}catch(u){}for(var H=0,k=[],d=A.length;H<d;){for(var W=0;W<1024&&H<d;){var z=A[H++];if(z<128)KlA[W++]=z;else{if(z<224)z=(z&31)<<6|A[H++]&63;else if(z<240)z=(z&15)<<12|(A[H++]&63)<<6|A[H++]&63;else{if(W+1===1024){--H;break}z=(z&7)<<18|(A[H++]&63)<<12|(A[H++]&63)<<6|A[H++]&63;z-=65536;KlA[W++]=55296|z>>10;z=56320|z&1023}KlA[W++]=z}}z=String.fromCharCode.apply(String,
KlA);W<1024&&(z=z.substring(0,W));k.push(z)}return k.join("")};
p2W=function(A,H){var k;if((k=cUf)==null?0:k.encodeInto)return H=cUf.encodeInto(A,H),H.read<A.length?A.length*4:H.written;for(var d=k=0;d<A.length;d++){var W=A.charCodeAt(d);W<128?H[k++]=W:(W<2048?H[k++]=W>>6|192:((W&64512)===55296&&d+1<A.length&&(A.charCodeAt(d+1)&64512)===56320?(W=65536+((W&1023)<<10)+(A.charCodeAt(++d)&1023),H[k++]=W>>18|240,H[k++]=W>>12&63|128):H[k++]=W>>12|224,H[k++]=W>>6&63|128),H[k++]=W&63|128)}return k};
QhC=function(A,H,k){if(H&&k&&k.buffer===H.exports.memory.buffer){var d=H.realloc(k.byteOffset,A);if(d)return new Uint8Array(H.exports.memory.buffer,d,A)}A=H?new Uint8Array(H.exports.memory.buffer,H.malloc(A),A):new Uint8Array(A);k&&A.set(k);return A};
_.Vm=function(A){A=new V$W(new EOX([_.$8(decodeURIComponent(A))]));if(UYX(A,2)){var H=Qm(A);var k=A.pos;var d=A.arrayView;k=k===void 0?0:k;var W=H===void 0?-1:H;k=k===void 0?0:k;W=W===void 0?-1:W;if(d.totalLength&&W){W<0&&(W=d.totalLength-k);d.focus(k);if(!(k-d.arrayPos+W<=d.arrays[d.arrayIdx].length)){var z=d.arrayIdx,u=d.arrayPos;d.focus(k+W-1);u=new Uint8Array(d.arrayPos+d.arrays[d.arrayIdx].length-u);for(var B=0,h=z;h<=d.arrayIdx;h++)u.set(d.arrays[h],B),B+=d.arrays[h].length;d.arrays.splice(z,
d.arrayIdx-z+1,u);d.arrayIdx=0;d.arrayPos=0;d.focus(k)}z=d.arrays[d.arrayIdx];d=new DataView(z.buffer,z.byteOffset+k-d.arrayPos,W)}else d=new DataView(new ArrayBuffer(0));d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);A.pos+=H;H=d}else H=void 0;H=H?abr(H):void 0;A=UYX(A,4)?Qm(A):void 0;d=lbr[A];if(typeof d==="undefined")throw A=new _.Ti("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:A}),_.I3(A),A;return{entityTypeFieldNumber:A,entityType:d,entityId:H}};
_.Nw=function(A,H,k){k=k===void 0?0:k;var d=new t$f;if(cUf)A=cUf.encode(A);else{var W=new Uint8Array(Math.ceil(A.length*1.2)),z=p2W(A,W);W.length<z&&(W=new Uint8Array(z),z=p2W(A,W));W.length>z&&(W=W.subarray(0,z));A=W}A!==void 0&&(l9(d,18),W=A.length,l9(d,W),tZ(d,W),d.buf.set(A,d.pos),d.pos+=W);A=NXX[H];if(typeof A==="undefined")throw k=new _.Ti("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:H}),_.I3(k),k;A!==void 0&&(l9(d,32),l9(d,A));l9(d,40);l9(d,1);H=new Uint8Array(d.buf.buffer,
d.buf.byteOffset,d.pos);return encodeURIComponent(_.ob(H,k))};
M$V=function(A){A=A.key||A.id;if(!A)throw Error("If");return A};
ZMW=function(A,H){A=A===void 0?{}:A;return nOm(A,H)};
fbC=function(A,H,k,d){if(d===void 0)return d=Object.assign({},A[H]||{}),k=(delete d[k],d),d={},Object.assign({},A,(d[H]=k,d));var W={},z={};return Object.assign({},A,(z[H]=Object.assign({},A[H],(W[k]=d,W)),z))};
w28=function(A,H,k,d,W){var z=A[H];if(z==null||!z[k])return A;d=S7W(z[k],d,W==="REPEATED_FIELDS_MERGE_OPTION_APPEND");W={};z={};return Object.assign({},A,(z[H]=Object.assign({},A[H],(W[k]=d,W)),z))};
_.Mw=function(A,H,k){return A[H]?A[H][k]||null:null};
$YW=function(){if(oOI)return oOI();var A={};oOI=fG("PersistentEntityStoreDb",{objectStores:(A.EntityStore={addedAtVersion:1},A.EntityAssociationStore={addedAtVersion:2},A),shared:!1,upgrade:function(H,k){k(1)&&K5(C5(H,"EntityStore",{keyPath:"key"}),"entityType","entityType");k(2)&&(H=C5(H,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),K5(H,"byParentEntityKey","parentEntityKey"),K5(H,"byChildEntityKey","childEntityKey"))},
version:3});return oOI()};
A0W=function(A){return _.Ea($YW(),A)};
n8=function(A){return window.Int32Array?new Int32Array(A):Array(A)};
sgC=function(A){return _.Ea(Hkb(),A)};
k2C=function(A){return new ZW("WRONG_DATA_TYPE",{encoderVersion:A})};
dcl=function(A){return A instanceof Error?new ZW("UNKNOWN_ENCODE_ERROR",{originalMessage:A.message}):new ZW("UNKNOWN_ENCODE_ERROR")};
WyW=function(A){return A instanceof Error?new ZW("UNKNOWN_DECODE_ERROR",{originalMessage:A.message}):new ZW("UNKNOWN_DECODE_ERROR")};
z2m=function(A,H){A=A instanceof ZW?A:H(A);_.I3(A);throw A;};
qpb=function(A){A=(new TextEncoder).encode(A).subarray(0,16);var H=new Uint8Array(16);H.set(A);return H};
uwm=function(A){var H=r08[A];if(H)return H;_.Pq(new _.Ti("Entity model not found.",{entityType:A}))};
_.f8=function(){Bsl||(Bsl=e2I());return Bsl};
e2I=function(){var A,H,k;return _.e(function(d){if(d.nextAddress==1)return _.S_(d,2),d.yield(_.Zq(),4);if(d.nextAddress!=2){A=d.yieldResult;if(!A||!_.RP()||typeof _.k8.BroadcastChannel==="undefined")return d.return();H=new xcf;return d.return(new wE(A,H))}k=_.VA(d);k instanceof Error&&_.I3(k);return d.return()})};
_.oN=function(A,H){var k;return _.e(function(d){if(d.nextAddress==1){k=A.mutations;if(!k||k.length<=0)return d.return();H&&H.dispatch(_.p8({type:"ENTITY_LOADED",payload:k}));return d.yield(ikV(k),2)}k.length=0;_.EN(d)})};
ikV=function(A){var H;return _.e(function(k){return k.nextAddress==1?k.yield(_.f8(),2):(H=k.yieldResult)?k.yield(_.$B(H,"readwrite",function(d){for(var W={},z=_.r(A),u=z.next(),B={};!u.done;B={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},u=z.next())B.mutation$jscomp$8=u.value,B.mutation$jscomp$8.entityKey&&h2r(B.mutation$jscomp$8)&&(B.mutationEntityType$jscomp$3=(0,_.iK.getAnyKey)(B.mutation$jscomp$8.payload),u=void 0,B.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(u=function(h){return function(){return _.OkN(d,
h.mutation$jscomp$8.payload[h.mutationEntityType$jscomp$3],h.mutationEntityType$jscomp$3)}}(B)),B.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(u=function(h){return function(){return R2C(d,h.mutation$jscomp$8.entityKey)}}(B)),B.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(u=function(h){return function(){return Tsl(d,h.mutation$jscomp$8.entityKey,h.mutation$jscomp$8.payload[h.mutationEntityType$jscomp$3],h.mutationEntityType$jscomp$3)}}(B)),u&&(W[B.mutation$jscomp$8.entityKey]=
W[B.mutation$jscomp$8.entityKey]?W[B.mutation$jscomp$8.entityKey].then(u):u()));
return CG.all(Object.values(W))}),0):k.return()})};
h2r=function(A){var H;A=(H=A.options)==null?void 0:H.persistenceOption;return A==="ENTITY_PERSISTENCE_OPTION_PERSIST"||A==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
gTb=function(A,H){var k,d;_.e(function(W){if(W.nextAddress==1)return W.yield(_.f8(),2);if(W.nextAddress!=3)return(k=W.yieldResult)?W.yield(_.$B(k,"readonly",function(z){var u={},B=Object.keys(H).map(function(h){var O=H[h]?[].concat(_.fV(H[h])):[];return mcI(z,h,O,u)});
return CG.all(B).then(function(){return u})}),3):W.return();
d=W.yieldResult;Object.keys(d).length>0&&A.dispatch(J0b(d));_.EN(W)})};
mcI=function(A,H,k,d){return Ar(A,H,k).then(function(W){d[H]=bkA(k,W)})};
bkA=function(A,H){if(H.length!==A.length)throw Error("Lf");return H.reduce(function(k,d,W){k[A[W]]=d;return k},{})};
y0X=function(A){var H=A.filter(function(W){var z;return(W==null?void 0:(z=W.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_COMPLETE"}).length,k=A.filter(function(W){var z;
return(W==null?void 0:(z=W.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_FAILED"}).length,d=A.filter(function(W){var z;
return(W==null?void 0:(z=W.transferEntity)==null?void 0:z.transferState)&&LyA.includes(W.transferEntity.transferState)});
if(!(H||d!=null&&d.length))return 0;H=_.vTV(d)+H;A=A.length-k;return A===0?0:Math.round(H*100/A)/100};
_.vTV=function(A){var H=[];H=H.concat.apply(H,_.fV(A.filter(function(z){return z.streamEntity}).map(function(z){var u=Object.assign({},z.streamEntity),B,h=(B=z.transferEntity)==null?void 0:B.transferState;
u.streamsProgress=u.streamsProgress||[];u.streamsProgress=u.streamsProgress.map(function(O){var T=Object.assign({},O);T.numBytesDownloaded=h==="TRANSFER_STATE_COMPLETE"?O.numTotalBytes:O.numBytesDownloaded;return T});
return u}).map(function(z){return z.streamsProgress})));
var k=A=0;H=_.r(H);for(var d=H.next();!d.done;d=H.next()){var W=d.value;d=Number(W.numBytesDownloaded);W=Number(W.numTotalBytes);k+=isNaN(d)?0:d;A+=isNaN(W)?0:W}return A===0?0:Math.round(k*100/A)/100};
jgX=function(A){if(!A||!A.expirationTimestamp||!A.action)return!1;var H=(0,_.w2)()/1E3;return Number(A.expirationTimestamp)>=H};
HK=function(A){return A&&A.expirationTimestamp&&A.action?jgX(A)&&A.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.sA=function(A){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(A||"TRANSFER_STATE_UNKNOWN")};
IJN=function(A){var H=new t$f;if(A!==void 0){var k=Math.ceil(Math.log2(A.length*4+2)/7);k=k===void 0?2:k;l9(H,10);H.submessagePosStack.push(H.pos);H.submessagePosStack.push(k);H.pos+=k;tZ(H,A.length*1.2);k=p2W(A,H.buf.subarray(H.pos));H.pos+k>H.buf.length&&(tZ(H,k),k=p2W(A,H.buf.subarray(H.pos)));H.pos+=k;A=H.submessagePosStack.pop();k=H.submessagePosStack.pop();for(var d=H.pos-k-A;A--;){var W=A?128:0;H.view.setUint8(k++,d&127|W);d>>=7}}H=new Uint8Array(H.buf.buffer,H.buf.byteOffset,H.pos);return(new TextDecoder("utf-8")).decode(H)};
_.ku=function(A){var H=0;A=_.r(A);for(var k=A.next(),d={};!k.done;d={transferState$jscomp$3:void 0},k=A.next()){var W=k.value,z=void 0;k=(z=W.streamEntity)!=null?z:{};z=void 0;d.transferState$jscomp$3=(z=W.transferEntity)==null?void 0:z.transferState;z=W=void 0;((W=k)==null?0:(z=W.streamsProgress)==null?0:z.length)&&k.streamsProgress.forEach(function(u){return function(B){B=Number(u.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?B.numTotalBytes:B.numBytesDownloaded);isFinite(B)&&(H+=B)}}(d))}return H};
YpC=function(A){return A.some(function(H){var k;if(!(H==null?0:(k=H.transferEntity)==null?0:k.transferState)){var d;return!(H==null?0:(d=H.policyEntity)==null?0:d.action)||H.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return LyA.includes(H.transferEntity.transferState)})};
PVC=function(A,H){if(!H)return!1;if(_.b("of_pb_en_po_ks"))return!0;var k;A=(k=_.Mw(A,"offlineVideoPolicy",_.Nw(H,"offlineVideoPolicy")))!=null?k:void 0;return!!A&&HK(A)};
_.FyX=function(A){var H=["TRANSFER_STATE_COMPLETE"];H=H===void 0?G2Q:H;return A.filter(function(k){var d,W;return H.includes((W=(d=k.transferEntity)==null?void 0:d.transferState)!=null?W:"TRANSFER_STATE_UNKNOWN")})};
Xfr=function(A,H){if(H){var k,d=(k=_.Mw(A,"playbackData",_.Nw(H,"playbackData")))!=null?k:null,W;k=(W=_.Mw(A,"transfer",_.Nw(H,"transfer")))!=null?W:null;var z;W=(z=_.Mw(A,"offlineVideoStreams",_.Nw(H,"offlineVideoStreams")))!=null?z:null;var u;A=(u=_.Mw(A,"offlineVideoPolicy",_.Nw(H,"offlineVideoPolicy")))!=null?u:null;if(d||k||W||A)return{playbackDataEntity:d,transferEntity:k,streamEntity:W,policyEntity:A}}};
_.dl=function(A){var H=A.playbackData;if(!H)return[];var k=[];H=_.r(Object.keys(H));for(var d=H.next();!d.done;d=H.next()){var W=d.value;if(!DcQ(A,_.Vm(W).entityId)&&(d=Xfr(A,_.Vm(W).entityId))){var z=void 0,u=void 0;W=(u=Number((z=_.Mw(A,"playbackData",W))==null?void 0:z.streamDownloadTimestampSeconds))!=null?u:(0,_.w2)();k.push({entity:d,streamDownloadTimestamp:W})}}return k.sort(function(B,h){var O=B.streamDownloadTimestamp,T=h.streamDownloadTimestamp;return T===O?B.entity.streamEntity&&!h.entity.streamEntity?
1:-1:T-O}).map(function(B){return B.entity})};
SpW=function(A){return _.FyX(_.dl(A))};
_.CVV=function(A){return _.dl(A).filter(function(H){var k;if(((k=H.policyEntity)==null?0:k.action)&&H.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var d;if((d=H.transferEntity)==null?0:d.transferState){var W;return LyA.includes((W=H.transferEntity)==null?void 0:W.transferState)}return!0})};
DcQ=function(A,H){var k;return((k=_.Mw(A,"downloadStatusEntity",_.Nw(H,"downloadStatusEntity")))==null?void 0:k.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
KyI=function(A){var H;if(A==null?0:(H=A.playbackDataEntity)==null?0:H.key)return _.Vm(A.playbackDataEntity.key).entityId;var k;if(A==null?0:(k=A.transferEntity)==null?0:k.key)return _.Vm(A.transferEntity.key).entityId;var d;if(A==null?0:(d=A.streamEntity)==null?0:d.key)return _.Vm(A.streamEntity.key).entityId;var W;if(A==null?0:(W=A.policyEntity)==null?0:W.key)return _.Vm(A.policyEntity.key).entityId};
c0f=function(A){var H=new Set,k;A=(k=A.mainDownloadsListEntity)==null?void 0:k[aJC];var d;if(!(A==null?0:(d=A.downloads)==null?0:d.length))return H;var W;A==null||(W=A.downloads)==null||W.forEach(function(z){(z==null?0:z.videoItem)&&H.add(z.videoItem)});
return H};
WK=function(A,H){if(H){var k=_.Mw(A,"mainVideoEntity",_.Nw(H,"mainVideoEntity")),d=_.Mw(A,"downloadStatusEntity",_.Nw(H,"downloadStatusEntity")),W=_.Mw(A,"ytMainChannelEntity",_.Nw(H,"ytMainChannelEntity")),z={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};A=Xfr(A,H);d=(d==null?void 0:d.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.b("woffle_render_failed_download_state_ks")&&(d==null?void 0:d.downloadState)==="DOWNLOAD_STATE_FAILED";!A&&d&&(A=z);if(A&&k&&
W)return Object.assign({},{videoEntity:k,channelEntity:W},A)}};
Qgv=function(A,H){return pfb(A,H)==="TRANSFER_STATE_COMPLETE"&&PVC(A,H)};
V0N=function(A,H){if(!H)return!1;var k;A=(k=_.Mw(A,"playbackData",_.Nw(H,"playbackData")))!=null?k:void 0;return!!A&&!!A.playerResponseJson};
pfb=function(A,H){if(!H)return"TRANSFER_STATE_UNKNOWN";var k=_.Mw(A,"transfer",_.Nw(H,"transfer"));if(k){var d;return(d=k.transferState)!=null?d:"TRANSFER_STATE_UNKNOWN"}k=_.Mw(A,"offlineOrchestrationActionWrapperEntity",_.Nw(H,"offlineOrchestrationActionWrapperEntity"));A=_.Mw(A,"mainVideoEntity",_.Nw(H,"mainVideoEntity"));return k||A?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
ETW=function(A,H){if(!H)return"TRANSFER_STATE_UNKNOWN";if(A=_.Mw(A,"transfer",_.Nw(H,"transfer"))){var k;return(k=A.transferState)!=null?k:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
UcA=function(A,H){return H&&(A=_.Mw(A,"videoPlaybackPositionEntity",_.Nw(H,"videoPlaybackPositionEntity")),A==null?0:A.lastPlaybackPositionSeconds)?Number(A.lastPlaybackPositionSeconds):0};
t0r=function(A,H){return lJ8(A).some(function(k){var d;return(k==null?void 0:(d=k.mainPlaylistEntity)==null?void 0:d.playlistId)===H})};
M0Q=function(A,H,k){var d=Nsf(A,H);if(!d.length)return[];H=[];d=_.r(d);for(var W=d.next();!W.done;W=d.next()){W=W.value;var z=WK(A,W);k&&pfb(A,W)!=="TRANSFER_STATE_COMPLETE"||z&&H.push(z)}return H};
Nsf=function(A,H){if(!H)return[];var k=_.Nw(H,"mainPlaylistEntity"),d;H=(d=A.mainPlaylistEntity)==null?void 0:d[k];d=[];if(H==null||!H.videos)return d;H=_.r(H.videos);for(k=H.next();!k.done;k=H.next()){k=k.value;var W=void 0,z=void 0,u=void 0,B=(W=A)==null?void 0:(z=W.mainPlaylistVideoEntity)==null?void 0:(u=z[k])==null?void 0:u.video;B&&(k=_.Vm(B).entityId)&&d.push(k)}return d};
nTC=function(A,H){if(H){var k=_.Mw(A,"mainPlaylistEntity",_.Nw(H,"mainPlaylistEntity")),d=_.Mw(A,"mainPlaylistDownloadStateEntity",_.Nw(H,"mainPlaylistDownloadStateEntity"));A=_.Mw(A,"ytMainChannelEntity",_.Nw(H,"ytMainChannelEntity"));if(d&&k)return Object.assign({},{mainPlaylistEntity:k,mainPlaylistDownloadStateEntity:d},!!A&&{channelEntity:A})}};
lJ8=function(A){return Zkf(A).sort(function(H,k){return k.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedPlaylistEntities})};
Zkf=function(A){var H=A.mainPlaylistDownloadStateEntity,k=[];if(!H)return k;for(var d=_.r(Object.keys(H)),W=d.next();!W.done;W=d.next()){var z=W.value;W=nTC(A,_.Vm(z).entityId);var u=void 0;z=Number((u=H[z])==null?void 0:u.addedTimestampMillis);u=isNaN(z)?(0,_.w2)():z;W!==void 0&&k.push({downloadedPlaylistEntities:W,addedTimestampMillis:u})}return k};
fJN=function(A){var H,k=(H=A.mainPlaylistVideoEntity)!=null?H:{};return new Set(lJ8(A).reduce(function(d,W){d=d===void 0?[]:d;var z,u;W==null||(z=W.mainPlaylistEntity)==null||(u=z.videos)==null||u.forEach(function(B){var h;(B=(h=k[B])==null?void 0:h.video)&&d.push(B)});
return d},[]))};
wf8=function(A){return"downloadedMusicPlaylistEntities"in A};
oTW=function(A){return"mainPlaylistEntity"in A&&"mainPlaylistDownloadStateEntity"in A};
$cI=function(A){return"videoEntity"in A&&"channelEntity"in A};
ABf=function(A){var H=A.musicPlaylistDownloadMetadataEntity,k=[];if(!H)return k;for(var d=_.r(Object.keys(H)),W=d.next();!W.done;W=d.next()){W=W.value;a:{var z=A,u=_.Vm(W).entityId;if(u){var B=_.Mw(z,"musicPlaylist",_.Nw(u,"musicPlaylist"));z=_.Mw(z,"musicPlaylistDownloadMetadataEntity",_.Nw(u,"musicPlaylistDownloadMetadataEntity"));if(B&&z){B={musicPlaylistEntity:B,musicPlaylistDownloadStateEntity:z};break a}}B=void 0}z=void 0;W=Number((z=H[W])==null?void 0:z.addedTimestampMillis);W=isNaN(W)?(0,_.w2)():
W;B!==void 0&&k.push({downloadedMusicPlaylistEntities:B,addedTimestampMillis:W})}return k};
HgV=function(A){var H=new Set;A=_.r(A);for(var k=A.next();!k.done;k=A.next())if(k=k.value,"musicPlaylistEntity"in k&&"musicPlaylistDownloadStateEntity"in k){k=_.r(k.musicPlaylistEntity.tracks);for(var d=k.next();!d.done;d=k.next())H.add(d.value)}return H};
s68=function(A,H){if(H){var k=_.Mw(A,"musicTrack",_.Nw(H,"musicTrack")),d=_.Mw(A,"musicArtist",_.Nw(H,"musicArtist"))||{};if((A=Xfr(A,H))&&k&&d)return Object.assign({},{musicTrackEntity:k,musicArtistEntity:d},A)}};
kGX=function(A){var H=A.musicTrackDownloadMetadataEntity,k=[];if(!H)return[];H=_.r(Object.keys(H));for(var d=H.next();!d.done;d=H.next()){var W=d.value;d=s68(A,_.Vm(W).entityId);var z=void 0;W=Number((z=_.Mw(A,"musicTrackDownloadMetadataEntity",W))==null?void 0:z.addedTimestampMillis);z=isNaN(W)?(0,_.w2)():W;d!==void 0&&k.push({downloadedMusicEntities:d,addedTimestampMillis:z})}return k};
zaA=function(A,H){if(!H)return[];if(Object.values(dKf).includes(H))return Wfr(A,H);H=_.Nw(H,"musicPlaylist");var k;A=(k=A.musicPlaylist)==null?void 0:k[H];k=[];if(A==null||!A.tracks)return k;A=_.r(A.tracks);for(H=A.next();!H.done;H=A.next())(H=_.Vm(H.value).entityId)&&k.push(H);return k};
Wfr=function(A,H){var k=new Set,d=ABf(A).map(function(z){return z.downloadedMusicPlaylistEntities});
d=HgV(d);d=_.r(d);for(var W=d.next();!W.done;W=d.next())(W=_.Vm(W.value).entityId)&&k.add(W);return qlX(A).downloadedMusicEntities.filter(function(z){var u;if((u=z.musicTrackEntity)!=null&&u.videoId){z=z.musicTrackEntity;if(u=H==="PPOM"?!0:!k.has(z.videoId))b:switch(z=z.musicVideoType,H){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})};
qlX=function(A){var H=kGX(A).sort(function(k,d){return d.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return"downloadedMusicEntities"in k?k.downloadedMusicEntities:wf8(k)?k.downloadedMusicPlaylistEntities:{}});
A=ABf(A).sort(function(k,d){return d.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return"downloadedMusicEntities"in k?k.downloadedMusicEntities:wf8(k)?k.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:H,downloadedMusicPlaylistEntities:A}};
uJI=function(A,H){H=_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?zaA(A,H):Nsf(A,H);if(!H.length)return"TRANSFER_STATE_UNKNOWN";H=H.map(function(k){return ETW(A,k)});
return rBI(H)};
rBI=function(A){var H=new Set(A);if(H.has("TRANSFER_STATE_FAILED")&&H.size===1)return"TRANSFER_STATE_FAILED";H.delete("TRANSFER_STATE_FAILED");if(H.has("TRANSFER_STATE_UNKNOWN")&&H.size===1)return"TRANSFER_STATE_PRE_TRANSFER";H.delete("TRANSFER_STATE_UNKNOWN");if(H.has("TRANSFER_STATE_PRE_TRANSFER")&&H.size===1||H.size===0)return"TRANSFER_STATE_PRE_TRANSFER";A=H.has("TRANSFER_STATE_TRANSFERRING");H=H.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return A||H?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
zK=function(A){var H=A.mainVideoDownloadStateEntity,k=[];if(!H)return[];H=_.r(Object.keys(H));for(var d=H.next();!d.done;d=H.next()){var W=d.value;if(!DcQ(A,_.Vm(W).entityId)){d=WK(A,_.Vm(W).entityId);var z=void 0,u=void 0;W=(u=Number((z=_.Mw(A,"mainVideoDownloadStateEntity",W))==null?void 0:z.addedTimestampMillis))!=null?u:(0,_.w2)();d!==void 0&&k.push({downloadedVideoEntities:d,addedTimestampMillis:W})}}return k};
Bf8=function(A){return zK(A).sort(function(H,k){return k.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedVideoEntities})};
_.xKQ=function(A){var H=fJN(A),k=_.qm(A),d=c0f(A),W=zK(A).filter(function(u){var B,h;if((u==null?void 0:(B=u.downloadedVideoEntities)==null?void 0:(h=B.transferEntity)==null?void 0:h.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var O,T;u=u==null?void 0:(O=u.downloadedVideoEntities)==null?void 0:(T=O.videoEntity)==null?void 0:T.key;return _.b("kevlar_use_library_entity")?u&&(d.has(u)||k[u]):u&&!H.has(u)}),z=Zkf(A).filter(function(u){return uJI(A,u.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.fV(W),_.fV(z)).sort(function(u,B){return B.addedTimestampMillis-u.addedTimestampMillis}).map(function(u){return eaN(u)})};
igl=function(A,H){if(H&&PVC(A,H)){var k,d,W=(d=(k=_.Mw(A,"playbackData",_.Nw(H,"playbackData")))!=null?k:void 0)==null?void 0:d.playerResponseJson;if(W){try{var z=JSON.parse(W);var u=_.Mw(A,"transfer",_.Nw(H,"transfer")),B=UcA(A,H);B&&(z=Object.assign({},z,{playerConfig:Object.assign({},z.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+B*1E3}}})}));z.cotn=u==null?void 0:u.cotn}catch(h){}return z}}};
_.Og8=function(A){var H,k,d;A=(d=(k=((H=A.downloadsPageViewConfigurationEntity)!=null?H:{})[_.rl])==null?void 0:k.smartDownloadsOptInBannerVisibility)!=null?d:{};var W;return(W=_.L(A,haC))!=null?W:{}};
_.qm=function(A){var H,k,d;A=(d=(k=((H=A.mainDownloadsListEntity)!=null?H:{})[_.Rar])==null?void 0:k.downloads)!=null?d:[];H={};k=_.r(A);for(d=k.next();!d.done;d=k.next())A=void 0,H[(A=d.value.videoItem)!=null?A:""]=!0;return H};
Tfb=function(A){var H=_.qm(A);if(Object.keys(H).length===0)return!1;var k=A.mainVideoEntity;if(!k)return!0;k=_.r(Object.keys(k));for(var d=k.next();!d.done;d=k.next()){d=d.value;var W=_.Vm(d).entityId;if(H[d]&&!DcQ(A,W))return!1}return!0};
_.uk=function(A){var H=_.qm(A);return zK(A).sort(function(k,d){return k.addedTimestampMillis-d.addedTimestampMillis}).map(function(k){return k.downloadedVideoEntities}).filter(function(k){var d;
return(k=k==null?void 0:(d=k.videoEntity)==null?void 0:d.key)&&!!H[k]})};
_.JBl=function(A){var H,k,d;A=(d=(k=((H=A.downloadsPageViewConfigurationEntity)!=null?H:{})[_.rl])==null?void 0:k.downloadsUpsellBannerVisibility)!=null?d:{};var W;return(W=_.L(A,mKm))!=null?W:{}};
eaN=function(A){return"downloadedVideoEntities"in A?A.downloadedVideoEntities:"downloadedPlaylistEntities"in A?A.downloadedPlaylistEntities:{}};
gLV=function(A){var H=_.qm(A),k=fJN(A),d=zK(A).filter(function(W){var z,u;return(W=W==null?void 0:(z=W.downloadedVideoEntities)==null?void 0:(u=z.videoEntity)==null?void 0:u.key)&&!H[W]&&!k.has(W)});
A=Zkf(A);return[].concat(_.fV(d),_.fV(A)).sort(function(W,z){return z.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return eaN(W)})};
_.BK=function(A){if(!_.b("kevlar_use_library_entity"))return gLV(A);var H=zK(A).filter(function(d){var W,z;if(W=d=d==null?void 0:(W=d.downloadedVideoEntities)==null?void 0:(z=W.videoEntity)==null?void 0:z.key){var u,B,h;W=((B=(u=A.mainDownloadsListEntity)==null?void 0:u[aJC])==null?0:(h=B.downloads)==null?0:h.length)?c0f(A).has(d):!1}return W}),k=Zkf(A);
return[].concat(_.fV(H),_.fV(k)).sort(function(d,W){return W.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return eaN(d)})};
bgv=function(A){var H=_.qm(A),k=fJN(A);return Bf8(A).filter(function(d){var W;return(d=d==null?void 0:(W=d.videoEntity)==null?void 0:W.key)&&!H[d]&&!k.has(d)})};
LfI=function(A){if(!_.b("kevlar_use_library_entity"))return bgv(A);var H=_.qm(A),k=c0f(A);return Bf8(A).filter(function(d){var W;return(d=d==null?void 0:(W=d.videoEntity)==null?void 0:W.key)&&!H[d]&&k.has(d)})};
vLr=function(A,H){H=_.Nw(H,"settingEntity");var k,d,W;return!!((W=(d=((k=A.settingEntity)!=null?k:{})[H])==null?void 0:d.settingOptionValue)!=null?W:{}).boolValue};
_.eX=function(A){var H=_.uk(A);if(YpC(H))return 0;var k=[];H=_.r(H);for(var d=H.next();!d.done;d=H.next()){d=d.value;var W=void 0,z=void 0;if((W=d)==null?0:(z=W.videoEntity)==null?0:z.key)W=_.Vm(d.videoEntity.key).entityId,d=A,W=_.Nw(W,"mainVideoDownloadStateEntity"),d=_.Mw(d,"mainVideoDownloadStateEntity",W),(d=Number(d==null?void 0:d.addedTimestampMillis))&&k.push(d)}return Math.max.apply(Math,_.fV(k))};
_.xu=function(A){return A.ui.richGridMiniMode};
_.ik=function(A){return A.ui.richGridItemsPerRow};
_.yBW=function(A){return A.ui.richGridSlimItemsPerRow};
_.j6I=function(A){return A.ui.guideIsExpanded};
_.hr=function(A){return A.ui.miniplayerIsActive};
Ipb=function(A){return A.ui.singleOptionSurveyIsActive};
_.OA=function(A){var H;return((H=A.ui)==null?void 0:H.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.YlC=function(A){return _.OA(A)==="WEB_PAGE_TYPE_WATCH"};
_.Pub=function(A){return _.OA(A)==="WEB_PAGE_TYPE_SHORTS"};
_.GGI=function(A){return A.ui.inlinePreviewIsActive};
_.Ffb=function(A){return A.ui.inlinePreviewIsEnabled};
_.XwN=function(A){return A.ui.miniplayerPlaybackState};
_.Rc=function(A){return A.ui.isOnline};
_.DKW=function(A){return A.ui.frostedGlassMode};
_.TK=function(A,H){return pfb(A.entities,H)};
_.mj=function(A,H){return uJI(A.entities,H)};
Slm=function(A,H){var k;if(H){var d;A=(d=_.Mw(A.entities,"offlineVideoPolicy",_.Nw(H,"offlineVideoPolicy")))==null?void 0:d.action}else A=void 0;return(k=A)!=null?k:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
CuC=function(A,H){var k;H?(A=_.Mw(A.entities,"offlineVideoPolicy",_.Nw(H,"offlineVideoPolicy")),A=Number(A==null?void 0:A.expirationTimestamp)):A=void 0;return(k=A)!=null?k:0};
_.Kfm=function(A){return _.dl(A.entities).length};
apI=function(A,H){return WK(A.entities,H)};
cBv=function(A,H){return nTC(A.entities,H)};
Jr=function(A,H){return(A=WK(A.entities,H))?_.vTV([A]):0};
_.pwb=function(A,H){var k=_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(k){var d=A.entities;var W=zaA(d,H);if(W.length){var z=[];W=_.r(W);for(var u=W.next();!u.done;u=W.next())(u=s68(d,u.value))&&z.push(u);d=z}else d=[]}else d=M0Q(A.entities,H);var B;if(k){var h=A.entities;H?(H=_.Nw(H,"musicPlaylist"),h=(B=h.musicPlaylist)==null?void 0:B[H],B=h!=null&&h.tracks?h.tracks.length:0):B=0}else B=A.entities,H?(H=_.Nw(H,"mainPlaylistEntity"),B=(h=B.mainPlaylistEntity)==null?void 0:h[H],B=B!=null&&B.videos?
B.videos.length:0):B=0;return d.length!==B?0:d?y0X(d):0};
_.Q6r=function(A){return A.download.isLeaderTab};
_.V3W=function(A,H,k){if(!H&&k){var d=A.entities;if(k){var W=IJN(k),z,u;H=(u=(z=_.Mw(d,"offlineabilityEntity",_.Nw(W,"offlineabilityEntity")))==null?void 0:z.addToOfflineButtonState)!=null?u:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else z=A.entities,H?(u=IJN(H),H=(W=(d=_.Mw(z,"offlineabilityEntity",_.Nw(u,"offlineabilityEntity")))==null?void 0:d.addToOfflineButtonState)!=null?W:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return H};
ELX=function(A,H){A=A.entities;if(H){H=IJN(H);var k,d;H=(d=(k=_.Mw(A,"offlineabilityEntity",_.Nw(H,"offlineabilityEntity")))==null?void 0:k.addToOfflineButtonState)!=null?d:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else H="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return H};
_.UKI=function(A){var H=A.entities;A=_.Rc(A);var k=vLr(H,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.b("kevlar_modern_downloads_page")&&k)var d=!1;else{var W,z;H=(z=(W=((d=H.downloadsPageViewConfigurationEntity)!=null?d:{})[_.rl])==null?void 0:W.smartDownloadsOptInBannerVisibility)!=null?z:{};d=A?!!H.visibleWithConnection:!!H.visibleWithoutConnection}return d};
_.lp8=function(A){return vLr(A.entities,"SMART_DOWNLOADS_ENABLED")};
_.t3b=function(A){return Tfb(A.entities)};
NfA=function(A){return _.uk(A.entities).every(function(H){var k;return(H==null?void 0:(k=H.transferEntity)==null?void 0:k.transferState)&&!LyA.includes(H.transferEntity.transferState)})};
_.M3I=function(A){var H,k,d,W=(d=(k=((H=A.entities.downloadsPageViewConfigurationEntity)!=null?H:{})[_.rl])==null?void 0:k.downloadsUpsellBannerVisibility)!=null?d:{};return _.Rc(A)?!!W.visibleWithConnection:!!W.visibleWithoutConnection};
_.nLA=function(A,H){return DcQ(A.entities,H)};
Zgm=function(A,H){if(H){var k,d;A=(d=(k=_.Mw(A.entities,"downloadStatusEntity",_.Nw(H,"downloadStatusEntity")))==null?void 0:k.downloadState)!=null?d:"DOWNLOAD_STATE_UNKNOWN"}else A="DOWNLOAD_STATE_UNKNOWN";return A};
gl=function(A,H){return UcA(A.entities,H)};
Ik8=function(A){A=fpA(A);var H=A.hours===void 0?0:A.hours,k=A.minutes===void 0?0:A.minutes,d=A.seconds===void 0?0:A.seconds,W=H>0;A=[];W&&(H=yzf(H),A.push(H));H=W;H=H===void 0?!1:H;k=(["af","be","lt"].includes(bk)||H)&&k<10?jr8().format(k):(new Intl.NumberFormat("en-u-nu-latn")).format(k);A.push(k);k=jr8().format(d);A.push(k);k=":";"da fi id si sr sr-Latn".split(" ").includes(bk)&&(k=".");return A.join(k)};
_.PBr=function(A){A=fpA(A);var H=A.hours===void 0?0:A.hours,k=A.minutes===void 0?0:A.minutes,d=A.seconds===void 0?0:A.seconds;A=[];if(H>0){var W=YcQ().format({hours:H});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(bk)||H>9999)W=W.replace(H.toString(),yzf(H)),bk==="km"&&(W=W.replace(".",","));A.push(W)}k>0&&A.push(YcQ().format({minutes:k}));d>0&&A.push(YcQ().format({seconds:d}));H="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");k=bk=="am"?"{0}\u1363 ":bk=="fa"?"{0}\u060c\u200f ":
bk=="my"?"{0} - ":bk=="th"?"{0} ":bk=="ur"?"{0}\u060c ":bk=="ar"||bk=="ar-XB"?"{0} \u0648":bk=="ja"||bk=="zh-CN"||bk=="zh-HK"||bk=="zh-TW"?"{0}\u3001":"{0}, ";d=bk=="am"?"\u1363 ":bk=="fa"?"\u060c\u200f ":bk=="my"?" - ":bk=="th"?" ":bk=="ur"?"\u060c ":bk=="ar"||bk=="ar-XB"?" \u0648":bk=="ja"||bk=="zh-CN"||bk=="zh-HK"||bk=="zh-TW"?"\u3001":", ";W=bk=="am"?" \u12a5\u1293 {0}":bk=="as"?" \u0986\u09f0\u09c1 {0}":bk=="az"?" v\u0259 {0}":bk=="bn"?" \u098f\u09ac\u0982 {0}":bk=="cs"?" a\u00a0{0}":bk=="de"?
" und {0}":bk=="el"?" \u03ba\u03b1\u03b9 {0}":bk=="eu"?" eta {0}":bk=="fa"?"\u060c \u0648 {0}":bk=="fil"?", at {0}":bk=="gu"?" \u0a85\u0aa8\u0ac7 {0}":bk=="hi"?", \u0914\u0930 {0}":bk=="hu"?" \u00e9s {0}":bk=="hy"?" \u0587 {0}":bk=="id"?", dan {0}":bk=="iw"?" \u05d5-{0}":bk=="ja"?"\u3001{0}":bk=="ka"?" \u10d3\u10d0 {0}":bk=="km"?" \u1793\u17b7\u1784 {0}":bk=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":bk=="ko"?" \ubc0f {0}":bk=="ky"?" \u0436\u0430\u043d\u0430 {0}":bk=="lt"?" ir {0}":bk=="lv"?" un {0}":
bk=="mr"?" \u0906\u0923\u093f {0}":bk=="ms"?" dan {0}":bk=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":bk=="ne"?" \u0930 {0}":bk=="or"?", \u0b13 {0}":bk=="pa"?" \u0a05\u0a24\u0a47 {0}":bk=="ro"?" \u0219i {0}":bk=="si"?", \u0dc3\u0dc4 {0}":bk=="sk"?" a {0}":bk=="sl"?" in {0}":bk=="sq"?" dhe {0}":bk=="sv"?" och {0}":bk=="sw"?" na {0}":bk=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":bk=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":bk=="th"?" \u0e41\u0e25\u0e30{0}":bk=="tr"?" ve {0}":bk=="ur"?
"\u060c \u0627\u0648\u0631 {0}":bk=="uz"?" va {0}":bk=="vi"?" v\u00e0 {0}":bk=="zh-HK"?"\u53ca{0}":bk=="zu"?", ne-{0}":bk=="af"||bk=="nl"?" en {0}":bk=="ar"||bk=="ar-XB"?" \u0648{0}":bk=="be"||bk=="uk"?" \u0456 {0}":bk=="en-GB"||bk=="en-IN"?" and {0}":bk=="en"||bk=="en-XA"?", and {0}":bk=="et"||bk=="fi"?" ja {0}":bk=="fr"||bk=="fr-CA"?" et {0}":bk=="zh-CN"||bk=="zh-TW"?"\u548c{0}":bk=="da"||bk=="is"||bk=="no"?" og {0}":bk=="es"||bk=="es-419"||bk=="es-US"?" y {0}":bk=="bg"||bk=="mk"||bk=="ru"||bk==
"sr"?" \u0438 {0}":bk=="gl"||bk=="it"||bk=="pt-BR"||bk=="pt-PT"?" e {0}":bk=="kk"||bk=="lo"||bk=="ml"||bk=="mn"?", {0}":" i {0}";var z=bk=="am"?"{0} \u12a5\u1293 {1}":bk=="as"?"{0} \u0986\u09f0\u09c1 {1}":bk=="az"?"{0} v\u0259 {1}":bk=="bn"?"{0} \u098f\u09ac\u0982 {1}":bk=="de"?"{0} und {1}":bk=="el"?"{0} \u03ba\u03b1\u03b9 {1}":bk=="eu"?"{0} eta {1}":bk=="fa"?"{0} \u0648 {1}":bk=="fil"?"{0} at {1}":bk=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":bk=="hi"?"{0} \u0914\u0930 {1}":bk=="hu"?"{0} \u00e9s {1}":bk==
"hy"?"{0} \u0587 {1}":bk=="iw"?"{0} \u05d5-{1}":bk=="ja"?"{0}\u3001{1}":bk=="ka"?"{0} \u10d3\u10d0 {1}":bk=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":bk=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":bk=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":bk=="ko"?"{0} \ubc0f {1}":bk=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":bk=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":bk=="lt"?"{0} ir {1}":bk=="lv"?"{0} un {1}":bk=="mr"?"{0} \u0906\u0923\u093f {1}":bk=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":bk=="ne"?"{0} \u0930 {1}":
bk=="or"?"{0} \u0b13 {1}":bk=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":bk=="ro"?"{0} \u0219i {1}":bk=="si"?"{0} \u0dc3\u0dc4 {1}":bk=="sl"?"{0} in {1}":bk=="sq"?"{0} dhe {1}":bk=="sv"?"{0} och {1}":bk=="sw"?"{0} na {1}":bk=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":bk=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":bk=="th"?"{0}\u0e41\u0e25\u0e30{1}":bk=="tr"?"{0} ve {1}":bk=="ur"?"{0} \u0627\u0648\u0631 {1}":bk=="uz"?"{0} va {1}":bk=="vi"?"{0} v\u00e0 {1}":bk=="zh-HK"?"{0}\u53ca{1}":bk==
"zu"?"{0} ne-{1}":bk=="af"||bk=="nl"?"{0} en {1}":bk=="ar"||bk=="ar-XB"?"{0} \u0648{1}":bk=="be"||bk=="uk"?"{0} \u0456 {1}":bk=="cs"||bk=="sk"?"{0} a\u00a0{1}":bk=="et"||bk=="fi"?"{0} ja {1}":bk=="fr"||bk=="fr-CA"?"{0} et {1}":bk=="id"||bk=="ms"?"{0} dan {1}":bk=="ml"||bk=="mn"?"{0}, {1}":bk=="zh-CN"||bk=="zh-TW"?"{0}\u548c{1}":bk=="da"||bk=="is"||bk=="no"?"{0} og {1}":bk=="es"||bk=="es-419"||bk=="es-US"?"{0} y {1}":bk=="bg"||bk=="mk"||bk=="ru"||bk=="sr"?"{0} \u0438 {1}":bk=="en"||bk=="en-GB"||bk==
"en-IN"||bk=="en-XA"?"{0} and {1}":bk=="gl"||bk=="it"||bk=="pt-BR"||bk=="pt-PT"?"{0} e {1}":"{0} i {1}";bk==="sq"?(W=W.replace("dhe","e"),z=z.replace("dhe","e")):bk==="th"?(d=d.replace("{0}"," {0}"),z=z.replace("{0}","{0} "),z=z.replace("{1}"," {1}")):bk==="ne"?d=",":bk==="zh-CN"?d="":H.includes(bk)&&(d=" ");return A.length<2?A.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(bk)?
A.length===2?z.replace("{0}",A[0]).replace("{1}",A[1]):k.replace("{0}",A[0])+A.slice(1,-1).join(d)+W.replace("{0}",A[A.length-1]):A.join(d)};
fpA=function(A){var H=A.hours||0,k=A.minutes||0,d=A.seconds||0;H=d+k*60+H*3600+(A.days||0)*86400+(A.weeks||0)*604800+(A.months||0)*2629800+(A.years||0)*31557600;if(H<=0)return{hours:0,minutes:0,seconds:0};A=H;H=Math.floor(A/3600);A%=3600;k=Math.floor(A/60);d=Math.floor(A%60);return{hours:H,minutes:k,seconds:d}};
yzf=function(A){A=(new Intl.NumberFormat("en-u-nu-latn")).format(A);var H=["fr"],k="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(bk)?A.replace(",","\u00a0"):H.includes(bk)?A.replace(",","\u202f"):k.includes(bk)?A.replace(",","."):A};
jr8=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
YcQ=function(){GXN||(Fgf=Xxl,GXN=new D6I);return GXN};
Scl=function(A){try{return(new _.Lm(5)).format(A)}catch(H){}};
vK=function(A){return{thumbnailOverlayDownloadingRenderer:{state:A}}};
CBr=function(){var A=_.$r("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.K8(A),icon:{iconType:"PLAY_ALL"}}}};
KgI=function(A){A=_.yc(A,2);return bk!=="ru"&&bk!=="es_419"&&bk!=="es-419"&&bk!=="es"&&bk!=="es_US"&&bk!=="es-US"&&bk!=="fr"&&bk!=="pl"&&bk!=="it"&&bk!=="nl"&&bk!=="uk"&&bk!=="fr_CA"&&bk!=="fr-CA"||A===""?A:A[0].toLocaleUpperCase()+A.substring(1)};
czI=function(A){return function(H){var k=A(),d=_.yc(H,k.dateFormat);H=_.yc(H,k.timeFormat);var W=akI.DATETIMEFORMATS[k.joinerStyle];W=W.replace(/'(?!')/g,"");W=W.replace("{0}",H);W=W.replace("{1}",d);return k.capitalize(W)}};
pxv=function(A){return A?typeof A.seconds==="string"&&(A.nanos===void 0||typeof A.nanos==="number"):!1};
QrX=function(A){return new Date(Number(A.seconds)*1E3+(A.nanos||0)*1E-6)};
_.yc=function(A,H){if(typeof A.getTime==="function")A={date:A};else if(pxv(A))A={date:QrX(A)};else if(typeof pxv(A.timestamp)&&typeof A.i18nInternalSecondsEastOfUtc==="number")A={date:QrX(A.timestamp),timeZone:jX(-A.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(A));var k=A;A=k.date;k=k.timeZone;H=VZA(H).format(A,k);bk==="zh-TW"&&(A=k?Number(VZA("H").format(A,k)):A.getHours(),H=A<5?H.replace("\u4e0a\u5348","\u51cc\u6668"):A<8?H.replace("\u4e0a\u5348","\u65e9\u4e0a"):A<12?
H.replace("\u4e0a\u5348","\u4e0a\u5348"):A<13?H.replace("\u4e0b\u5348","\u4e2d\u5348"):A<19?H.replace("\u4e0b\u5348","\u4e0b\u5348"):H.replace("\u4e0b\u5348","\u665a\u4e0a"));return H};
VZA=function(A){if(E0X.has(A))return E0X.get(A);var H=U6b(A);H=lk8(H);tZm!==!0&&(tZm=!0);Nqb=!0;Nqb=!1;H=new Ic(H,akI);E0X.set(A,H);return H};
U6b=function(A){return(new Ic(A,akI)).patternParts_.map(function(H){return H.type===0?"'"+H.text+"'":H.text}).join("")};
lk8=function(A){return bk==="en"||bk==="es_US"||bk==="es-US"?A:A.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(H,k,d){return"H".repeat(k.length)+d})};
$6X=function(A,H){MZQ||(Fgf=Xxl,MZQ=new n0I);var k=MZQ;a:if(A=Zrr(A),H=Zrr(H||new Date),A>H)k=A.getTime()-H.getTime()>6048E5?_.yc(A,1):fkC(A);else{for(var d=0;wxV(A,12*(d+1))<H;)++d;if(d>0)k=k.format(-d,0);else{for(d=0;wxV(A,d+1)<H;)++d;if(d>0)k=k.format(-d,2);else{A=H.getTime()-A.getTime();H=_.r(o0A);for(d=H.next();!d.done;d=H.next()){d=d.value;var W=d.unit,z=Math.floor(A/d.unitDuration);if(z>=(d.threshold===void 0?1:d.threshold)){k=k.format(-z,W);break a}}k=k.format(-0,7)}}}return k};
Zrr=function(A){if(typeof A.getTime==="function")return A;if(pxv(A))return QrX(A);throw Error("Nf`"+JSON.stringify(A));};
wxV=function(A,H){for(var k=0,d;;++k)if(d=new Date(A.getFullYear(),A.getMonth()+H,A.getDate()-k,A.getHours(),A.getMinutes(),A.getSeconds()),d.getMonth()===(A.getMonth()+H)%12)return d};
_.Yu=function(A){return{runs:[{text:A}]}};
_.PK=function(A){if(A&&A.simpleText)return A.simpleText;var H="";if(A&&A.runs)for(var k=0;k<A.runs.length;k++)A.runs[k].text&&(H+=A.runs[k].text);return H};
HKA=function(A,H,k,d){return A.videoEntity&&!A.policyEntity&&k!=="DOWNLOAD_STATE_FAILED"?[vK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:HK(A.policyEntity)&&H!=="TRANSFER_STATE_FAILED"&&H!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?H==="TRANSFER_STATE_PAUSED_BY_USER"?[vK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.sA(H)?[vK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:A.videoEntity.lengthSeconds?Aol(A.videoEntity.lengthSeconds,d):[]:
[vK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
Aol=function(A,H){var k=[{thumbnailOverlayTimeStatusRenderer:{text:_.K8(Ik8({seconds:A})),style:"DEFAULT"}}];H&&(A=H<=0||A<=0?0:H>=A?100:Math.ceil(H*100/A),A>0&&k.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:A}}));return k};
sWf=function(A,H,k,d,W){if(H==="TRANSFER_STATE_UNKNOWN"||!A)return{};if(_.sA(H)||H==="TRANSFER_STATE_PRE_TRANSFER")var z=[vK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var u,B;if(H==="TRANSFER_STATE_COMPLETE"&&((u=A.mainPlaylistEntity)==null?0:(B=u.videos)==null?0:B.length)){var h;A=(z=A.mainPlaylistEntity)==null?void 0:(h=z.videos)==null?void 0:h.length;z=(z=Scl(A))?{thumbnailOverlayBottomPanelRenderer:{text:_.K8(z),icon:{iconType:"PLAYLISTS"}}}:void 0;z=[CBr(),Object.assign({},
z!=null?z:{})]}else z=[]}a:if(H==="TRANSFER_STATE_PRE_TRANSFER")k=aN(_.$r("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE")k=aN(_.$r("WAITING_TO_DOWNLOAD"));else if(_.sA(H))k=Math.floor(k*100).toString(),k=aN(_.$r("DOWNLOADING_PERCENT",{percent:k},"Downloading... "+k+"%"));else{if(d&&(_.b("playlist_is_offline_selector_killswitch")&&(W=_.wj().resolve(_.Qv).isNetworkAvailable()),W)){k=DYI(_.$r("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
FlI(d));break a}k=void 0}H=H==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.$r("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},z.length?{thumbnailOverlays:z}:{},k?{viewPlaylistText:k}:{viewPlaylistText:_.Yu("")},H.length?{badges:H}:{})};
kUA=function(A,H,k,d,W,z){if(H==="TRANSFER_STATE_UNKNOWN"||!A)return{};if(d==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var u=HKA(A,H,d);if(A.videoEntity&&!A.policyEntity&&d!=="DOWNLOAD_STATE_FAILED"){var B=_.$r("WAITING_TO_DOWNLOAD");if(B)return{shortViewCountText:_.Yu(B),publishedTimeText:void 0,thumbnailOverlays:u}}if(!HK(A.policyEntity)){z=A.policyEntity&&!jgX(A.policyEntity)?_.$r("DOWNLOAD_EXPIRED",{},"Download expired"):
_.$r("TRANSFER_FAILED",{},"Download failed");var h;if((h=A.policyEntity)==null?0:h.shortMessageForDisabledAction)z=A.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:aN(z),publishedTimeText:void 0,thumbnailOverlays:u}}if(H==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Yu(_.$r("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:u};if(H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Yu(_.$r("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:u};if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(h=_.$r("WAITING_TO_DOWNLOAD"),d==="DOWNLOAD_STATE_PAUSED"&&(h=_.$r("DOWNLOAD_PAUSED",{},"Download paused")),h))return{shortViewCountText:_.Yu(h),publishedTimeText:void 0,thumbnailOverlays:u};if(_.sA(H))return A=Math.floor(k*100).toString(),{shortViewCountText:_.Yu(_.$r("DOWNLOADING_PERCENT",{percent:A},"Downloading... "+A+"%")),publishedTimeText:void 0,thumbnailOverlays:u};H=void 0;A.videoEntity.publishedTimestampMillis&&
(H=new Date,W&&(H=new Date(W)),H=aN($6X(new Date(Number(A.videoEntity.publishedTimestampMillis)),H)));W=[];_.b("kevlar_woffle_badge_killswitch")||(W=[{metadataBadgeRenderer:{label:_.$r("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var O;A=aN((O=A.videoEntity.localizedStrings)==null?void 0:O.viewCount);return Object.assign({},z?{shortViewCountText:void 0}:{shortViewCountText:A},z?{}:{publishedTimeText:H},{badges:W,thumbnailOverlays:u})};
WEv=function(A,H){A=A===void 0?dOW:A;switch(H.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:H.payload.playlistId,inviteLinkURL:H.payload.inviteLinkUrl};default:return A}};
qev=function(A,H){A=A===void 0?zQr:A;switch(H.type){case "SET_CURRENT_FORM_ID":return H=H.payload.formId,A.currentFormId===H?A:{currentFormId:H,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var k=H.payload;H=k.groupId;k=k.command;if(A.currentFormId){var d=Object.assign({},A.commandsMap);d[H]=k;A=Object.assign({},A,{commandsMap:d})}return A;case "RESET_COMMAND_MAP":return Object.assign({},A,{commandsMap:{}});default:return A}};
u$I=function(A,H){A=A===void 0?roI:A;switch(H.type){case "UPDATE_CANVAS_MODE":return Object.assign({},A,{currentMode:H.payload.currentMode});default:return A}};
eQW=function(A,H){A=A===void 0?Bvl:A;switch(H.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},A,{guideIsExpanded:H.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},A,{scrollAtTop:H.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},A,{guideIsVisibleButNotPersistent:H.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},A,{miniplayerIsActive:H.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},A,{singleOptionSurveyIsActive:H.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},A,{slimlineSurveyRatingSelectedIndex:H.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},A,{richGridMiniMode:H.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},A,{richGridItemsPerRow:H.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},A,{richGridSlimItemsPerRow:H.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},A,{richGridContainerWidth:H.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},A,{richGridStyle:H.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},A,{currentPageType:H.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},A,{inlinePreviewIsActive:H.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},A,{inlinePreviewIsEnabled:H.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},A,{darkModeIsEnabled:H.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
A,{miniplayerPlaybackState:H.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},A,{tabGesturesIsActive:H.payload});case "SET_ONLINE_STATUS":return Object.assign({},A,{isOnline:H.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},A,{chipBarIsSticky:H.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},A,{frostedGlassMode:H.payload});default:return A}};
xOA=function(){return _.b("kevlar_disable_theater_mode_persistence")?!1:_.Q$("START_IN_THEATER_MODE")};
hQI=function(A,H){A=A===void 0?iKN:A;switch(H.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},A,{transcription:H.payload});case "SET_OVERLAY_STATE":return Object.assign({},A,{overlay:H.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return A}};
yol=function(){return bg(Object.assign({},{continuation:OKl,download:RQN,canvas:u$I,reportChannelAbuse:TvI,share:mOl,talkToRecs:JoQ,ui:eQW,voiceSearch:hQI,watch:gvC,ypc:bKV,shorts:LEI,radioButtonGroup:qev,collabInviteLink:WEv},vvA))};
YeA=function(){return _.b("web_player_entities_middleware")?new GK(yol(),[jWr,IYA]):new GK(yol(),[jWr])};
_.F3=function(){PaI||(PaI=YeA());return PaI};
GUQ=function(A,H,k){if(A.length)return{titleText:_.K8(H!=null?H:_.$r("DOWNLOADS",void 0,"Downloads")),contents:A.map(function(d){var W=d.videoEntity;d={videoId:W.videoId,title:aN(W.title),shortBylineText:aN(d.channelEntity.title),thumbnail:W.thumbnail};var z=W.videoId?gl(_.F3().getState(),W.videoId):0;W.videoId&&k?d.navigationEndpoint=_.C8(W.videoId,k,void 0,void 0,z):W.videoId&&(d.navigationEndpoint=GBf(W.videoId,z,W.lengthSeconds));W.lengthSeconds&&(d.thumbnailOverlays=Aol(W.lengthSeconds,z));return{playlistPanelVideoRenderer:d}}),
totalVideos:A.length}};
FEV=function(A){return(A=(0,_.iK.getValueByKeys)(A,"playlistId"))?{playlistId:A}:null};
XAm=function(){return{}};
DOv=function(A,H){return new _.Wq(function(k,d){A.then(function(W){if(W){if(W=H(W))return k(W);d()}},d)})};
SeQ=function(A){var H,k,d,W=(H=A.contents)==null?void 0:(k=H.twoColumnWatchNextResults)==null?void 0:(d=k.autoplay)==null?void 0:d.autoplay,z,u,B;H=(z=A.contents)==null?void 0:(u=z.twoColumnWatchNextResults)==null?void 0:(B=u.playlist)==null?void 0:B.playlist;return W&&H&&H.playlistId?{rawResponse:A,autoplayRenderer:W,playlistPanelRenderer:H,playlistId:H.playlistId}:null};
KEX=function(A){var H=H===void 0?"UNKNOWN_INTERFACE":H;if(A.length===1)return A[0];var k=CaN[H];if(k){k=new RegExp(k);for(var d=_.r(A),W=d.next();!W.done;W=d.next())if(W=W.value,k.exec(W))return W}var z=[];Object.entries(CaN).forEach(function(u){var B=_.r(u);u=B.next().value;B=B.next().value;H!==u&&z.push(B)});
k=new RegExp(z.join("|"));A.sort(function(u,B){return u.length-B.length});
d=_.r(A);for(W=d.next();!W.done;W=d.next())if(W=W.value,!k.exec(W))return W;return A[0]};
_.X3=function(A){return"/youtubei/v1/"+KEX(A)};
_.Du=function(A,H){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:A}}},H!==void 0?{durationHintMs:H}:{})}};
_.SX=function(A,H){return _.Du(_.Yu(A),H)};
aYI=function(A,H){var k={mode:"NORMAL"};A&&(k.autoplayVideo=A.navigationEndpoint,k.nextButtonVideo=A.navigationEndpoint);H&&(k.previousButtonVideo=H.navigationEndpoint);return k};
QWm=function(A,H,k){if(!k||!k.sets)return{sets:[aYI(A,H)]};var d=k.sets.find(function(u){return u.mode==="NORMAL"}),W=(0,_.iK.unsafeClone)(k);
if(!d)return W.sets.push(aYI(A,H)),W;if(!A)return k;d=_.iK.getValueByKeys.apply(null,[d].concat(_.fV(coV)));var z=_.iK.getValueByKeys.apply(null,[A].concat(_.fV(pAl)));if(d===z)return k;W.sets=W.sets.filter(function(u){return u.mode!=="NORMAL"});
W.sets.push(aYI(A,H));return W};
Vgv=function(A){return!!A.playlistPanelVideoRenderer&&!A.playlistPanelVideoRenderer.unplayableText};
Evb=function(A){return!!A.playlistPanelVideoRenderer&&!!A.playlistPanelVideoRenderer.title};
UOA=function(A,H){if(H.contents&&!(A>=H.contents.length)&&(A=H.contents.slice(A).find(Vgv)))return A.playlistPanelVideoRenderer};
lYX=function(A,H){if(H.contents)return(H=H.contents.find(function(k){return!!k.playlistPanelVideoRenderer&&k.playlistPanelVideoRenderer.videoId===A}))?H.playlistPanelVideoRenderer:void 0};
tgX=function(A,H){return H.contents?H.contents.findIndex(function(k){return!!k.playlistPanelVideoRenderer&&k.playlistPanelVideoRenderer.videoId===A}):-1};
NvQ=function(A,H){return H.contents?H.contents.findIndex(function(k){return!!k.playlistPanelVideoRenderer&&k.playlistPanelVideoRenderer.playlistSetVideoId===A}):-1};
Mgm=function(A,H){A.contents&&H!==-1&&A.contents.splice(H,1).length===1&&A.totalVideos!==void 0&&(--A.totalVideos,delete A.videoCountText)};
_.nv8=function(A){var H=[];if(!A||!A.contents)return H;A=_.r(A.contents);for(var k=A.next();!k.done;k=A.next())k=k.value,k.playlistPanelVideoRenderer&&k.playlistPanelVideoRenderer.videoId&&H.push(k.playlistPanelVideoRenderer.videoId);return H};
_.ZKV=function(A){if(A&&A.contents)return(A=A.contents.find(function(H){return!!H.playlistPanelVideoRenderer&&!!H.playlistPanelVideoRenderer.selected})||A.contents[A.currentIndex])?A.playlistPanelVideoRenderer:void 0};
fYX=function(A,H,k,d,W,z,u){W=W===void 0?!1:W;z=z===void 0?!1:z;u=u===void 0?!1:u;if(A.contents&&A.contents.length!==0){d&&(A.contents=A.contents.filter(d));d=A.contents.length;for(var B=0;B<d;B++){var h=A.contents[B].playlistPanelVideoRenderer;h&&(B===H?(z&&delete h.menu,h.indexText=_.Yu("\u25b6")):W||A.isInfinite||h.indexText===void 0?delete h.indexText:h.indexText=_.Yu((B+1+k).toString()))}A.currentIndex=H+k;u&&(delete A.videoCountText,A.totalVideos=d)}};
_.Cm=function(A){A=Uv8(A);if(A){var H=A.length;var k=-6%H;k<0&&(k=H+k);A=A.slice(H-k)+A.slice(0,H-k)}else A="";k="";for(H=0;H<A.length&&A[H]!==wAv;H++)k+=A[H];return k};
_.ovl=function(A,H){var k=document.body;H=H===void 0?function(B){return B}:H;
var d,W=null;A=_.r(A);for(d=A.next();!d.done;d=A.next()){var z=d.value;d="div";z[2]&&(d=H(z[2]));d=document.createElement(d);W||(W=d);var u=z[0];z=z[1];u&&(d.id=H(u));if(z)for(z=_.r(z),u=z.next();!u.done;u=z.next())d.classList.add(H(u.value));k.appendChild(d);k=d}return[W,k]};
$OV=function(A,H){for(var k="",d=0;d<H;d++)k+=A.charAt(Math.floor(Math.random()*A.length));return k};
Km=function(A){return $OV("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",A)};
ac=function(A){return $OV("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",A)};
cK=function(A){return $OV("0123456789",A)};
AP8=function(){var A=performance.now(),H=new Date;var k="2."+H.getFullYear()+String(H.getMonth()+1).padStart(2,"0")+String(H.getDate()).padStart(2,"0");for(var d,W=Math.floor(Math.random()*11)+15,z=[],u=0;u<W;u++)z.push(Math.floor(Math.random()*26476865)+24547720);d=z.join(",");var B=Km(10),h=Km(100),O=Km(102),T=Km(106),m=Km(108),J=Km(11),g=Km(1140),v=Km(123),y=Km(14),X=Km(16),D=Km(1900),K=Km(23),N=Km(26),U=Km(34),p=Km(397),M=Km(44),Z=Km(5),WV=Km(72),hA=Km(74),qv=Km(75),eN=Km(88),mr=Km(91),Cl="rr2---sn-aigl6nze rr3---sn-q4fl6n6s rr5---sn-q4fl6ns6 rr5---sn-q4flrnld rr3---sn-ntq7yns7 rr1---sn-q4fl6n6y rr4---sn-t0a7ln7d rr1---sn-5hne6nsd rr5---sn-q4flrnez rr5---sn-ntq7yney rr1---sn-q4fl6n66 rr4---sn-ntqe6n7r rr2---sn-aigl6nzl rr2---sn-q4flrner rr2---sn-q4fzen7e rr1---sn-hgn7rn7y rr3---sn-q4flrnss rr5---sn-ntqe6nee rr1---sn-q4flrnee rr2---sn-q4fl6nds".split(" ");
var pl=Cl[Math.floor(Math.random()*Cl.length)];var UC=(new Date("2010-01-01")).getTime();var hk=(new Date(UC+Math.random()*((new Date).getTime()-UC))).toISOString().split("T")[0];for(var eA,lI=[],Rp=0;Rp<4;Rp++)lI.push(Math.floor(Math.random()*100));eA=lI.join(".");var vj=Number(cK(5)),T0=Number(cK(6)),Y1=Number(cK(7)),ze=Number(cK(9)),Tf=cK(1),QW=cK(10),mG=cK(16),nN=cK(19),G0=cK(2),$Z=cK(20),F9=cK(21),ww=cK(3),x1=cK(4),lJ=cK(5),Ni=cK(6),uJ=cK(7),OB=cK(8),Ow=cK(9);var NQ=$OV("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Qi=[ac(5),ac(5),ac(5)].join("%2C"),jI=[cK(3),cK(5),cK(5)].join("%2C"),WX=ac(0),Vi=ac(1),iQ=ac(10),o_=ac(108),rO=ac(11),O9=ac(12),a4=ac(13),kl=ac(14),E9=ac(15),gU=ac(16),gY=ac(17),Y8=ac(18),cV=ac(19),ZQ=ac(2),yi=ac(20),LL=ac(22),Yp=ac(23),PR=ac(24),Ip=ac(266),jA=ac(3),V_=ac(30),Wz=ac(34),Jk=ac(35),St=ac(36),Rs=ac(4),EW=ac(40),OI=ac(43),sa=ac(47),GW=ac(5),d0=ac(6),Hn=ac(7),qY=ac(75),fT=ac(8),Jg=ac(80),nm=ac(9),b1="https://www."+ac(12)+".com",WS={},IO={},Y9={},st={},HZ={},zk={},g1={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:d}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:k},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+ac(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:k},{key:"client.name",value:"WEB"},{key:"client.fexp",value:d}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:F9+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+ac(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:EW,ypcGetOfflineUpsellEndpoint:{params:Jg}},trackingParams:Jk+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&cnr="+G0+"&ratebypass=yes&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&c=WEB&txp="+uJ+"&n="+X+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:T0,width:640,height:360,lastModified:mG,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:uJ,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+jI+"&mn="+
Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&cnr="+G0+"&ratebypass=yes&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&c=WEB&txp="+uJ+"&n="+X+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+o_+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:T0,width:1280,
height:720,lastModified:mG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:uJ,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+jI+"&mn="+Qi+"&ms="+
Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+Ow+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Y1,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:Ow,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Y1,approxDurationMs:uJ},{itag:248,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+jI+"&mn="+Qi+"&ms="+Qi+"&mv="+
Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fwebm&ns="+PR+"&gir="+jA+"&clen="+Ow+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:Y1,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:Ow,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Y1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:399,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+Ow+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Y1,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:Ow,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Y1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:136,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+Ow+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Y1,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:Ow,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:T0,approxDurationMs:uJ},{itag:247,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+jI+"&mn="+
Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fwebm&ns="+PR+"&gir="+jA+"&clen="+Ow+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:Y1,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:Ow,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:T0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:398,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+Ow+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Y1,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:Ow,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:T0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:135,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:T0,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:T0,approxDurationMs:uJ},{itag:244,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+jI+"&mn="+
Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fwebm&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+o_+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:T0,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:T0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:397,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:T0,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:T0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:134,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:T0,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:T0,highReplication:!0,approxDurationMs:uJ},{itag:243,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fwebm&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:T0,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:T0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:396,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:T0,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:T0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:133,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:T0,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:T0,approxDurationMs:uJ},{itag:242,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+jI+"&mn="+
Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fwebm&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:T0,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:T0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:395,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:T0,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:T0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:160,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:T0,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:vj,approxDurationMs:uJ},{itag:278,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+jI+"&mn="+
Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fwebm&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:T0,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:vj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:394,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&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="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=video%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:vj,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:vj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uJ},{itag:140,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=audio%2Fmp4&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:T0,
initRange:{start:"0",end:"631"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:T0,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:uJ,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+
G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=audio%2Fwebm&ns="+PR+"&gir="+jA+"&clen="+uJ+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:vj,initRange:{start:"0",end:"265"},indexRange:{start:ww,
end:x1},lastModified:mG,contentLength:uJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:vj,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:uJ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=audio%2Fwebm&ns="+
PR+"&gir="+jA+"&clen="+uJ+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:vj,initRange:{start:"0",end:"265"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:uJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:vj,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:uJ,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+pl+".googlevideo.com/videoplayback?expire="+QW+"&ei="+K+"&ip="+eA+"&id=o-AF"+OI+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+jI+"&mn="+Qi+"&ms="+Qi+"&mv="+Vi+"&mvi="+Tf+"&pl="+G0+"&initcwndbps="+uJ+"&siu="+Tf+"&spc="+M+"&vprv="+Tf+"&svpuc="+Tf+"&mime=audio%2Fwebm&ns="+PR+"&gir="+jA+"&clen="+OB+"&dur="+OB+"&lmt="+mG+"&mt="+QW+"&fvip=3&keepalive="+jA+"&c=WEB&txp="+
uJ+"&n="+gU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:T0,initRange:{start:"0",end:"265"},indexRange:{start:ww,end:x1},lastModified:mG,contentLength:OB,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:T0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:uJ,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="+Ow+"&docid="+J+"&ei="+K+"&feature="+B+"&fexp="+WX+"&ns="+ZQ+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Vi+"&el="+iQ+"&len="+x1+"&of="+LL+
"&uga="+G0+"&vm="+Ip},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Ow+"&docid="+J+"&ei="+K+"&feature="+B+"&fexp="+WX+"&ns="+ZQ+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Vi+"&el="+iQ+"&len="+x1+"&of="+LL+"&uga="+G0+"&vm="+Ip},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Ow+"&docid="+J+"&ei="+K+"&feature="+B+"&fexp="+WX+"&ns="+ZQ+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Vi+"&el="+iQ+"&len="+x1+"&of="+LL+"&uga="+G0+"&vm="+Ip},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+K+"&m="+eN+"&oid="+LL+"&plid="+X+"&pltype="+Hn+"&ptchn="+LL+"&ptk="+y+"&video_id="+J},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Ow+"&docid="+J+"&ei="+K+"&event="+kl+"&feature="+B+"&fexp="+WX+"&ns="+ZQ+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Vi},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
gU+"&ver=2&cmt=1."+ww+"&fmt="+ww+"&fs=0&rt="+lJ+"&euri&lact="+ww+"&cl="+Ow+"&mos="+Tf+"&volume=100&cbrand="+GW+"&cbr="+d0+"&cbrver="+eA+"&c=WEB&cver="+k+"&cplayer=UNIPLAYER&cos="+nm+"&cosver="+uJ+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+G0+"&len="+OB+"&fexp="+Qi+"&feature=g-high-rec&afmt="+ww+"&muted=0&conn=1&docid="+J+"&ei="+K+"&plid="+X+"&vm="+ac(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
J+"&caps="+jA+"&opi="+Ow+"&xoaf="+Tf+"&hl="+ZQ+"&ip="+eA+"&ipbits="+Tf+"&expire="+QW+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+eA+"&key="+jA+"&lang="+Z,name:{simpleText:E9},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+J+"&caps="+jA+"&opi="+Ow+"&xoaf="+Tf+"&hl="+ZQ+"&ip="+eA+"&ipbits="+Tf+"&expire="+QW+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+eA+"&key="+jA+"&kind="+jA+"&lang="+ZQ,name:{simpleText:gY},
vssId:"a.it",languageCode:"it",kind:"asr",isTranslatable:!0,trackName:""}],audioTracks:[{captionTrackIndices:[0,1],defaultCaptionTrackIndex:0,visibility:"UNKNOWN",hasDefaultTrack:!0,captionsInitialState:"CAPTIONS_INITIAL_STATE_OFF_RECOMMENDED"}],translationLanguages:[{languageCode:"af",languageName:{simpleText:"Afrikaans"}},{languageCode:"ak",languageName:{simpleText:"Akan"}},{languageCode:"sq",languageName:{simpleText:"Albanian"}},{languageCode:"am",languageName:{simpleText:"Amharic"}},{languageCode:"ar",
languageName:{simpleText:"Arabic"}},{languageCode:"hy",languageName:{simpleText:"Armenian"}},{languageCode:"as",languageName:{simpleText:"Assamese"}},{languageCode:"ay",languageName:{simpleText:"Aymara"}},{languageCode:"az",languageName:{simpleText:"Azerbaijani"}},{languageCode:"bn",languageName:{simpleText:"Bangla"}},{languageCode:"eu",languageName:{simpleText:"Basque"}},{languageCode:"be",languageName:{simpleText:"Belarusian"}},{languageCode:"bho",languageName:{simpleText:"Bhojpuri"}},{languageCode:"bs",
languageName:{simpleText:"Bosnian"}},{languageCode:"bg",languageName:{simpleText:"Bulgarian"}},{languageCode:"my",languageName:{simpleText:"Burmese"}},{languageCode:"ca",languageName:{simpleText:"Catalan"}},{languageCode:"ceb",languageName:{simpleText:"Cebuano"}},{languageCode:"zh-Hans",languageName:{simpleText:"Chinese (Simplified)"}},{languageCode:"zh-Hant",languageName:{simpleText:"Chinese (Traditional)"}},{languageCode:"co",languageName:{simpleText:"Corsican"}},{languageCode:"hr",languageName:{simpleText:"Croatian"}},
{languageCode:"cs",languageName:{simpleText:"Czech"}},{languageCode:"da",languageName:{simpleText:"Danish"}},{languageCode:"dv",languageName:{simpleText:"Divehi"}},{languageCode:"nl",languageName:{simpleText:"Dutch"}},{languageCode:"en",languageName:{simpleText:"English"}},{languageCode:"eo",languageName:{simpleText:"Esperanto"}},{languageCode:"et",languageName:{simpleText:"Estonian"}},{languageCode:"ee",languageName:{simpleText:"Ewe"}},{languageCode:"fil",languageName:{simpleText:"Filipino"}},{languageCode:"fi",
languageName:{simpleText:"Finnish"}},{languageCode:"fr",languageName:{simpleText:"French"}},{languageCode:"gl",languageName:{simpleText:"Galician"}},{languageCode:"lg",languageName:{simpleText:"Ganda"}},{languageCode:"ka",languageName:{simpleText:"Georgian"}},{languageCode:"de",languageName:{simpleText:"German"}},{languageCode:"el",languageName:{simpleText:"Greek"}},{languageCode:"gn",languageName:{simpleText:"Guarani"}},{languageCode:"gu",languageName:{simpleText:"Gujarati"}},{languageCode:"ht",
languageName:{simpleText:"Haitian Creole"}},{languageCode:"ha",languageName:{simpleText:"Hausa"}},{languageCode:"haw",languageName:{simpleText:"Hawaiian"}},{languageCode:"iw",languageName:{simpleText:"Hebrew"}},{languageCode:"hi",languageName:{simpleText:"Hindi"}},{languageCode:"hmn",languageName:{simpleText:"Hmong"}},{languageCode:"hu",languageName:{simpleText:"Hungarian"}},{languageCode:"is",languageName:{simpleText:"Icelandic"}},{languageCode:"ig",languageName:{simpleText:"Igbo"}},{languageCode:"id",
languageName:{simpleText:"Indonesian"}},{languageCode:"ga",languageName:{simpleText:"Irish"}},{languageCode:"it",languageName:{simpleText:"Italian"}},{languageCode:"ja",languageName:{simpleText:"Japanese"}},{languageCode:"jv",languageName:{simpleText:"Javanese"}},{languageCode:"kn",languageName:{simpleText:"Kannada"}},{languageCode:"kk",languageName:{simpleText:"Kazakh"}},{languageCode:"km",languageName:{simpleText:"Khmer"}},{languageCode:"rw",languageName:{simpleText:"Kinyarwanda"}},{languageCode:"ko",
languageName:{simpleText:"Korean"}},{languageCode:"kri",languageName:{simpleText:"Krio"}},{languageCode:"ku",languageName:{simpleText:"Kurdish"}},{languageCode:"ky",languageName:{simpleText:"Kyrgyz"}},{languageCode:"lo",languageName:{simpleText:"Lao"}},{languageCode:"la",languageName:{simpleText:"Latin"}},{languageCode:"lv",languageName:{simpleText:"Latvian"}},{languageCode:"ln",languageName:{simpleText:"Lingala"}},{languageCode:"lt",languageName:{simpleText:"Lithuanian"}},{languageCode:"lb",languageName:{simpleText:"Luxembourgish"}},
{languageCode:"mk",languageName:{simpleText:"Macedonian"}},{languageCode:"mg",languageName:{simpleText:"Malagasy"}},{languageCode:"ms",languageName:{simpleText:"Malay"}},{languageCode:"ml",languageName:{simpleText:"Malayalam"}},{languageCode:"mt",languageName:{simpleText:"Maltese"}},{languageCode:"mi",languageName:{simpleText:"Maori"}},{languageCode:"mr",languageName:{simpleText:"Marathi"}},{languageCode:"mn",languageName:{simpleText:"Mongolian"}},{languageCode:"ne",languageName:{simpleText:"Nepali"}},
{languageCode:"nso",languageName:{simpleText:"Northern Sotho"}},{languageCode:"no",languageName:{simpleText:"Norwegian"}},{languageCode:"ny",languageName:{simpleText:"Nyanja"}},{languageCode:"or",languageName:{simpleText:"Odia"}},{languageCode:"om",languageName:{simpleText:"Oromo"}},{languageCode:"ps",languageName:{simpleText:"Pashto"}},{languageCode:"fa",languageName:{simpleText:"Persian"}},{languageCode:"pl",languageName:{simpleText:"Polish"}},{languageCode:"pt",languageName:{simpleText:"Portuguese"}},
{languageCode:"pa",languageName:{simpleText:"Punjabi"}},{languageCode:"qu",languageName:{simpleText:"Quechua"}},{languageCode:"ro",languageName:{simpleText:"Romanian"}},{languageCode:"ru",languageName:{simpleText:"Russian"}},{languageCode:"sm",languageName:{simpleText:"Samoan"}},{languageCode:"sa",languageName:{simpleText:"Sanskrit"}},{languageCode:"gd",languageName:{simpleText:"Scottish Gaelic"}},{languageCode:"sr",languageName:{simpleText:"Serbian"}},{languageCode:"sn",languageName:{simpleText:"Shona"}},
{languageCode:"sd",languageName:{simpleText:"Sindhi"}},{languageCode:"si",languageName:{simpleText:"Sinhala"}},{languageCode:"sk",languageName:{simpleText:"Slovak"}},{languageCode:"sl",languageName:{simpleText:"Slovenian"}},{languageCode:"so",languageName:{simpleText:"Somali"}},{languageCode:"st",languageName:{simpleText:"Southern Sotho"}},{languageCode:"es",languageName:{simpleText:"Spanish"}},{languageCode:"su",languageName:{simpleText:"Sundanese"}},{languageCode:"sw",languageName:{simpleText:"Swahili"}},
{languageCode:"sv",languageName:{simpleText:"Swedish"}},{languageCode:"tg",languageName:{simpleText:"Tajik"}},{languageCode:"ta",languageName:{simpleText:"Tamil"}},{languageCode:"tt",languageName:{simpleText:"Tatar"}},{languageCode:"te",languageName:{simpleText:"Telugu"}},{languageCode:"th",languageName:{simpleText:"Thai"}},{languageCode:"ti",languageName:{simpleText:"Tigrinya"}},{languageCode:"ts",languageName:{simpleText:"Tsonga"}},{languageCode:"tr",languageName:{simpleText:"Turkish"}},{languageCode:"tk",
languageName:{simpleText:"Turkmen"}},{languageCode:"uk",languageName:{simpleText:"Ukrainian"}},{languageCode:"ur",languageName:{simpleText:"Urdu"}},{languageCode:"ug",languageName:{simpleText:"Uyghur"}},{languageCode:"uz",languageName:{simpleText:"Uzbek"}},{languageCode:"vi",languageName:{simpleText:"Vietnamese"}},{languageCode:"cy",languageName:{simpleText:"Welsh"}},{languageCode:"fy",languageName:{simpleText:"Western Frisian"}},{languageCode:"xh",languageName:{simpleText:"Xhosa"}},{languageCode:"yi",
languageName:{simpleText:"Yiddish"}},{languageCode:"yo",languageName:{simpleText:"Yoruba"}},{languageCode:"zu",languageName:{simpleText:"Zulu"}}],defaultAudioTrackIndex:0}},videoDetails:{videoId:rO,title:gU,lengthSeconds:"1155",keywords:[E9,O9,iQ,E9],channelId:PR,isOwnerViewing:!1,shortDescription:fT,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+St+"G&rs="+Wz,width:168,height:94},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+St+
"G&rs="+Wz,width:196,height:110},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+St+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+St+"G&rs="+U,width:336,height:188},{url:"https://i.ytimg.com/vi/"+J+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:uJ,author:a4,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:uJ,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
LL+"/featured_channel.jpg?v="+fT,width:40,height:40}]},trackingParams:Jk+"=",navigationEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"/channel/"+PR,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:PR}},channelName:a4,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:yi}]},subscribed:!1,enabled:!0,type:"FREE",channelId:PR,showPreferences:!1,subscribedButtonText:{runs:[{text:Hn}]},unsubscribedButtonText:{runs:[{text:rO}]},
trackingParams:Jk+"=",unsubscribeButtonText:{runs:[{text:nm}]},serviceEndpoints:[{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[PR],params:fT}},{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:EW,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Jk+"=",dialogMessages:[{runs:[{text:fT},
{text:iQ},{text:kl}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Y8}]},serviceEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[PR],params:fT}},accessibility:{label:cV},trackingParams:Jk+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:gU}]},accessibility:{label:kl},
trackingParams:Jk+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:GW}},unsubscribeAccessibility:{accessibilityData:{label:O9}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:OB},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[PR],
params:fT}},unsubscribeCommand:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[PR],params:fT}},addToWatchLaterCommand:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:rO,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:rO}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+J+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+St+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+J+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+rO,width:1280,
height:720},title:{simpleText:d0},description:{simpleText:kl},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+cV,externalChannelId:PR,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:uJ,category:"Travel & Events",publishDate:hk,ownerChannelName:a4,uploadDate:hk}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:fT},trackingParams:Jk+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:EW,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Jk+"="}}],headerText:{simpleText:E9},icon:{infoCardIconRenderer:{trackingParams:Jk+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Jk+"="}},trackingParams:Jk+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Jk+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+rO+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:NQ,interpreterSafeUrl:(WS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+V_+".js",WS),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:GW},{text:rO,bold:!0}]},endpoint:{clickTrackingParams:EW,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:Jk+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:GW}]},actionButton:{buttonRenderer:{text:{runs:[{text:kl}]},navigationEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+J,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
J,target:"TARGET_NEW_WINDOW"}},trackingParams:Jk+"="}},trackingParams:Jk+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+WV+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+WV+"=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:uJ,endMs:uJ,title:{accessibility:{accessibilityData:{label:cV}},simpleText:O9},metadata:{simpleText:Y8},callToAction:{simpleText:gY},dismiss:{simpleText:Y8},endpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"/channel/"+PR,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:PR}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:kl}]},subscribed:!1,enabled:!0,type:"FREE",channelId:PR,showPreferences:!1,
subscribedButtonText:{runs:[{text:a4}]},unsubscribedButtonText:{runs:[{text:cV}]},trackingParams:Jk+"=",unsubscribeButtonText:{runs:[{text:Y8}]},serviceEndpoints:[{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[PR],params:fT}},{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:EW,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Jk+
"=",dialogMessages:[{runs:[{text:GW},{text:gU},{text:Rs}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:yi}]},serviceEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[PR],params:fT}},accessibility:{label:cV},trackingParams:Jk+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:a4}]},
accessibility:{label:O9},trackingParams:Jk+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:iQ}},unsubscribeAccessibility:{accessibilityData:{label:Y8}}}},trackingParams:Jk+"=",isSubscribe:!0,id:$Z}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+St+"G&rs="+U,width:168,height:94},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+St+"G&rs="+Wz,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+St+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+J+"/hqdefault.jpg?sqp=-oaymwE"+St+"G&rs="+U,width:336,height:188},{url:"https://i.ytimg.com/vi/"+J+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:uJ,endMs:uJ,title:{accessibility:{accessibilityData:{label:a4}},simpleText:rO},metadata:{simpleText:fT},endpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
rO,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:rO,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+pl+".googlevideo.com/videoplayback?source=youtube&oeis="+Tf+"&c=WEB&oad="+x1+"&ovd="+x1+"&oaad="+lJ+"&oavd="+lJ+"&ocs="+ww+"&oewis="+Tf+"&oputc="+Tf+"&ofpcc="+Tf+"&siu="+Tf+"&msp="+Tf+"&odepv="+Tf+
"&id=o-AF"+OI+"&ip="+eA+"&initcwndbps="+uJ+"&mt="+QW+"&oweuc="+WX}}}}},trackingParams:Jk+"=",id:$Z,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:cV}},simpleText:Y8},style:"DEFAULT"}}]}}],startMs:uJ,trackingParams:Jk+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Tf,offsetEndMilliseconds:lJ},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ow+";dc_trk_cid="+Ow+";dc_dbm_token="+m+";ord="+QW+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";dc_rui="+Tf+";dc_exteid="+$Z+";dc_av="+ww+";dc_sk="+Tf+";dc_ctype="+G0+";dc_ref=http://www.youtube.com/video/"+rO+";dc_pubid="+Tf+";dc_btype=23?gclid="+mr+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Tf+"&ns="+Tf+"&event="+Tf+"&device="+Tf+"&content_v="+J+"&el="+iQ+"&ei="+K+"&devicever="+k+"&bti="+uJ+"&format="+Ni+"&break_type="+Tf+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Tf+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+eA+"&slot_pos="+Tf+"&slot_len="+Tf+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+jI+"&ad_len="+lJ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
rO+"&aqi="+K+"&ad_rmp="+Tf+"&sli="+Tf}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+
";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+Ni+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+uJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&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"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&ctype="+ww+"&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"+
g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_engaged_view&ctype="+ww+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+Ni+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Ow+";dc_trk_cid="+Ow+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";ord="+Ow+";dc_rui="+Tf+";dc_exteid="+nN+";dc_av="+Tf+";dc_sk="+Tf+";dc_ctype="+G0+";dc_pubid="+Tf+";dc_btype=3?gclid="+mr+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+"&sig="+Yp+"&ad_cpn=[AD_CPN]&id="+d0+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+d0+"&dc_pubid="+Tf+"&dc_exteid="+$Z+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+"&sig="+Yp+"&ad_cpn=[AD_CPN]&id="+d0+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Tf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+d0+"&avm="+Tf+"&dc_pubid="+Tf+"&dc_exteid="+
$Z+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&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="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
O+"&sig="+Yp+"&ad_cpn=[AD_CPN]&id="+d0+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Tf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+d0+"&dc_pubid="+Tf+"&dc_exteid="+$Z+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+Ni+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+Ni+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:EW,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+
ww+"&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/"+J+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Jk+"="},trackingParams:Jk+
"=",templatedCountdown:{templatedAdText:{text:cV,isTemplated:!0,trackingParams:Jk+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:cV,isTemplated:!1,trackingParams:Jk+"="},trackingParams:Jk+"="}},trackingParams:Jk+"=",skipOffsetMilliseconds:5E3}},trackingParams:Jk+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Hn},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jk+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:gU,isTemplated:!1,trackingParams:Jk+"="},trackingParams:Jk+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:kl,isTemplated:!0,trackingParams:Jk+"="}},trackingParams:Jk+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:EW,openPopupAction:{popup:{aboutThisAdRenderer:{url:(IO.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+ZQ+"&origin=www.youtube.com&ata_theme="+Rs,IO),trackingParams:Jk+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Jk+"="}},hoverText:{runs:[{text:cV}]},trackingParams:Jk+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+sa+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jk+"="},headline:{text:Y8,isTemplated:!1,trackingParams:Jk+"="},description:{text:Hn,
trackingParams:Jk+"="},actionButton:{buttonRenderer:{text:{simpleText:yi},navigationEndpoint:{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ow+";dc_trk_cid="+Ow+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";ord="+Ow+";dc_rui="+Tf+";dc_exteid="+$Z+";dc_av="+Tf+";dc_sk="+Tf+";dc_ctype="+G0+";dc_pubid="+Tf+";dc_btype=3?gclid="+mr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jk+"="}},startMs:Tf,trackingParams:Jk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:a4},elementId:Rs}},elementId:GW,trackingParams:Jk+"=",legacyInfoCardVastExtension:cV,sodarExtensionData:{siub:nm,bgub:Y8,scs:Rs,bgp:iQ},externalVideoId:rO,adLayoutLoggingData:{serializedAdServingDataEntry:GW},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+sa+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jk+"="},
headline:{text:nm,isTemplated:!1,trackingParams:Jk+"="},description:{text:gU,isTemplated:!1,trackingParams:Jk+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:fT},navigationEndpoint:{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ow+";dc_trk_cid="+Ow+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";ord="+Ow+";dc_rui="+Tf+";dc_exteid="+
$Z+";dc_av="+Tf+";dc_sk="+Tf+";dc_ctype="+G0+";dc_pubid="+Tf+";dc_btype=3?gclid="+mr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+
Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jk+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Jk+"="}},navigationEndpoint:{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ow+";dc_trk_cid="+
Ow+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";ord="+Ow+";dc_rui="+Tf+";dc_exteid="+$Z+";dc_av="+Tf+";dc_sk="+Tf+";dc_ctype="+G0+";dc_pubid="+Tf+";dc_btype=3?gclid="+mr+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+
v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jk+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Jk+"="},abandonCommands:{commands:[{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&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="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+
Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:EW,commandExecutorCommand:{commands:[{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:yi,isTemplated:!1,trackingParams:Jk+
"="},trackingParams:Jk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Y8},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+uJ+";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="+Ow+";dc_trk_cid="+Ow+";ord="+QW+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";dc_rui="+Tf+";dc_exteid="+$Z+";dc_av="+ww+";dc_sk="+Tf+";dc_ctype="+G0+";dc_ref=http://www.youtube.com/video/"+rO+";dc_pubid="+Tf+";dc_btype=23?gclid="+mr+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Tf+"&ns="+Tf+"&event="+Tf+"&device="+Tf+"&content_v="+J+"&el="+iQ+"&ei="+K+"&devicever="+k+"&bti="+uJ+"&format="+Ni+"&break_type="+Tf+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Tf+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+eA+"&slot_pos="+Tf+"&slot_len="+Tf+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
jI+"&ad_len="+lJ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+rO+"&aqi="+K+"&ad_rmp="+Tf+"&sli="+Tf}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+Ni+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+
N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+uJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&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"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&ctype="+ww+"&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"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_engaged_view&ctype="+ww+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+Ni+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+"&sig="+Yp+"&ad_cpn=[AD_CPN]&id="+
d0+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+d0+"&dc_pubid="+Tf+"&dc_exteid="+$Z+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+
"&sig="+Yp+"&ad_cpn=[AD_CPN]&id="+d0+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Tf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+d0+"&avm="+Tf+"&dc_pubid="+Tf+"&dc_exteid="+$Z+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&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="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+O+"&sig="+Yp+"&ad_cpn=[AD_CPN]&id="+d0+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Tf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+d0+"&dc_pubid="+Tf+"&dc_exteid="+$Z+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+Ni+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+Ni+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+
ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&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/"+J+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Jk+"="},trackingParams:Jk+"=",templatedCountdown:{templatedAdText:{text:fT,isTemplated:!0,trackingParams:Jk+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:gY,isTemplated:!1,trackingParams:Jk+"="},trackingParams:Jk+"="}},
trackingParams:Jk+"=",skipOffsetMilliseconds:5E3}},trackingParams:Jk+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Y8},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jk+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Rs,isTemplated:!1,trackingParams:Jk+"="},trackingParams:Jk+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:gU,
isTemplated:!0,trackingParams:Jk+"="}},trackingParams:Jk+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:EW,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Y9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+ZQ+"&origin=www.youtube.com&ata_theme="+Rs,Y9),trackingParams:Jk+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Jk+"="}},hoverText:{runs:[{text:cV}]},trackingParams:Jk+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+hA+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jk+"="},headline:{text:d0,isTemplated:!1,trackingParams:Jk+"="},description:{text:cV,trackingParams:Jk+"="},actionButton:{buttonRenderer:{text:{simpleText:cV},navigationEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jk+"="}},startMs:Tf,trackingParams:Jk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nm},elementId:GW}},elementId:cV,trackingParams:Jk+"=",legacyInfoCardVastExtension:Y8,sodarExtensionData:{siub:Y8,bgub:yi,scs:Rs,bgp:gU},externalVideoId:rO,adLayoutLoggingData:{serializedAdServingDataEntry:cV},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+hA+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Jk+"="},headline:{text:a4,
isTemplated:!1,trackingParams:Jk+"="},description:{text:O9,isTemplated:!1,trackingParams:Jk+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:yi},navigationEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jk+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Jk+"="}},navigationEndpoint:{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+
Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jk+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Jk+"="},abandonCommands:{commands:[{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&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="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:EW,commandExecutorCommand:{commands:[{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:yi,isTemplated:!1,trackingParams:Jk+"="},trackingParams:Jk+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:O9},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Tf+";dc_exteid="+$Z+";met="+Tf+";ecn"+Tf+"="+Tf+";etm1="+Tf+";eid1="+
uJ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Hn}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:lJ,offsetEndMilliseconds:Ni},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+G0+"&token=ALHj"+p+"&index="+Tf+"&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="+k+"&m_pos_ms="+lJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:iQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Ni,offsetEndMilliseconds:Ni},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+ww+"&token=ALHj"+p+"&index="+Tf+"&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="+
k+"&m_pos_ms="+Ni}},adSlotLoggingData:{serializedSlotAdServingDataEntry:GW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ni,offsetEndMilliseconds:Ni},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+ww+"&token=ALHj"+p+"&index="+Tf+"&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="+
k+"&m_pos_ms="+Ni}},adSlotLoggingData:{serializedSlotAdServingDataEntry:a4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ni,offsetEndMilliseconds:Ni},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+ww+"&token=ALHj"+p+"&index="+Tf+"&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="+
k+"&m_pos_ms="+Ni}},adSlotLoggingData:{serializedSlotAdServingDataEntry:cV}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ni,offsetEndMilliseconds:G0},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+ww+"&token=ALHj"+p+"&index="+Tf+"&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="+
k+"&m_pos_ms="+Ni}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Rs}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:G0,offsetEndMilliseconds:G0},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+K+"&m_pos="+G0+"&token=ALHj"+p+"&index="+Tf+"&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="+
k+"&m_pos_ms="+G0}},adSlotLoggingData:{serializedSlotAdServingDataEntry:GW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:cV,isTemplated:!1,trackingParams:Jk+"="},description:{text:a4,isTemplated:!1,trackingParams:Jk+"="},actionButton:{buttonRenderer:{text:{simpleText:gU},navigationEndpoint:{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Ow+";dc_trk_cid="+Ow+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";ord="+Ow+";dc_rui="+Tf+";dc_exteid="+$Z+";dc_av="+Tf+";dc_sk="+Tf+";dc_ctype="+G0+";dc_pubid="+Tf+";dc_btype=3?gclid="+mr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jk+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+sa+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Jk+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+qv+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Jk+"="},navigationEndpoint:{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ow+";dc_trk_cid="+Ow+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";ord="+Ow+
";dc_rui="+Tf+";dc_exteid="+$Z+";dc_av="+Tf+";dc_sk="+Tf+";dc_ctype="+G0+";dc_pubid="+Tf+";dc_btype=3?gclid="+mr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jk+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:EW,openPopupAction:{popup:{aboutThisAdRenderer:{url:(st.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+ZQ+"&origin=www.youtube.com&ata_theme="+Rs,st),trackingParams:Jk+"="}},popupType:"DIALOG"}},trackingParams:Jk+"="}},hoverText:{runs:[{text:E9}]},trackingParams:Jk+"="}},adVideoId:rO,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:a4},associatedCompositePlayerBytesLayoutId:gU}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:O9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:cV,isTemplated:!1,trackingParams:Jk+"="},description:{text:E9,isTemplated:!1,trackingParams:Jk+"="},actionButton:{buttonRenderer:{text:{simpleText:gU},navigationEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+
v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jk+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+hA+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Jk+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+qY+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Jk+"="},navigationEndpoint:{clickTrackingParams:EW,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+
Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jk+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:EW,openPopupAction:{popup:{aboutThisAdRenderer:{url:(HZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+ZQ+"&origin=www.youtube.com&ata_theme="+Rs,HZ),trackingParams:Jk+"="}},popupType:"DIALOG"}},trackingParams:Jk+"="}},
hoverText:{runs:[{text:fT}]},trackingParams:Jk+"="}},adVideoId:rO,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+rO+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Hn},associatedCompositePlayerBytesLayoutId:gU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:kl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Rs,
isTemplated:!1,trackingParams:Jk+"="},description:{text:iQ,isTemplated:!1,trackingParams:Jk+"="},actionButton:{buttonRenderer:{text:{simpleText:rO},navigationEndpoint:{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ow+";dc_trk_cid="+Ow+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";ord="+Ow+";dc_rui="+Tf+";dc_exteid="+$Z+";dc_av="+Tf+";dc_sk="+Tf+";dc_ctype="+
G0+";dc_pubid="+Tf+";dc_btype=3?gclid="+mr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+
U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Jk+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+sa+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Jk+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+qv+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Jk+
"="},navigationEndpoint:{clickTrackingParams:EW,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Ow+";dc_trk_cid="+Ow+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Tf+";ord="+Ow+";dc_rui="+Tf+";dc_exteid="+$Z+";dc_av="+Tf+";dc_sk="+Tf+";dc_ctype="+G0+";dc_pubid="+Tf+";dc_btype=3?gclid="+mr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+v+"AxAA&ase=2&num="+Tf+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+b1+"&label=video_click_to_advertiser_site&ctype="+ww+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Jk+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:EW,openPopupAction:{popup:{aboutThisAdRenderer:{url:(zk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+D+"&hl="+ZQ+"&origin=www.youtube.com&ata_theme="+Rs,zk),trackingParams:Jk+"="}},popupType:"DIALOG"}},trackingParams:Jk+
"="}},hoverText:{runs:[{text:nm}]},trackingParams:Jk+"="}},adVideoId:rO,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+v+"AxAA&sigh="+J+"&cid="+N+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:a4},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:gU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:a4}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:V_,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:V_,command:{innertubeCommand:{clickTrackingParams:EW,ypcGetOfflineUpsellEndpoint:{params:Jg}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Jk+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:QW,nanos:ze}}}},w_=JSON.stringify(g1),s8=performance.now()-A;return{objectRepresentation:g1,jsonRepresentation:w_,generationTime:s8}};
HvQ=function(A,H){if(A===H)return!0;if(!A||!H||typeof A!==typeof H)return!1;if(A instanceof Array&&H instanceof Array){if(A.length!==H.length)return!1;for(var k=0;k<A.length;k++)if(!HvQ(A[k],H[k]))return!1;return!0}if(typeof A==="object"&&typeof H==="object"&&A&&H){for(k in A)if(!(k in H&&HvQ(A[k],H[k])))return!1;for(var d in H)if(!(d in A))return!1;return!0}return!1};
_.Qc=function(){if(!pm){pm=new fC(new sHX);var A=_.H5("client_streamz_web_flush_count",-1);A!==-1&&(pm.invocationLimit=A)}return pm};
Vc=function(A,H,k,d){if(A===H)return!0;if(Array.isArray(A)&&Array.isArray(H)){if(A.length!==H.length)return!1;for(var W=0;W<A.length;W++)if(!Vc(A[W],H[W],k,d))return!1;return!0}if(A instanceof Set||H instanceof Set){if(A instanceof Set&&H instanceof Set){if(A.size!==H.size)return!1;d=_.r(A.values());for(W=d.next();!W.done;W=d.next())if(!H.has(W.value))return!1;return!0}return!1}if(A instanceof Function){if(d)return!0;A.name===""&&_.I3(Error("Rf"),"ERROR");return!1}if(A instanceof Date&&H instanceof
Date)return A.getTime()===H.getTime();if(A instanceof Object&&H instanceof Object){if(kqm(A)&&kqm(H))try{return A.equals(H)}catch(u){_.I3(Error("Sf`"+u),"ERROR")}W=Object.getOwnPropertyNames(A).filter(function(u){return k?A[u]!==void 0:!0});
var z=Object.getOwnPropertyNames(H).filter(function(u){return k?H[u]!==void 0:!0});
if(W.length!==z.length)return!1;W=_.r(W);for(z=W.next();!z.done;z=W.next())if(z=z.value,!Vc(A[z],H[z],k,d))return!1;return!0}return!1};
kqm=function(A){A=Object.getPrototypeOf(A).equals;return A instanceof Function&&A.length===1};
_.zKf=function(){return _.e(function(A){if(A.nextAddress==1)return dMl!==2?A.jumpTo(2):A.yield(WdA(),3);A.nextAddress!=2&&(dMl=A.yieldResult);return A.return(dMl)})};
_.usr=function(){return _.e(function(A){if(A.nextAddress==1)return _.b("ab_pl_man")?qEI!==2?A.jumpTo(2):A.yield(rPX(),3):A.return(1);A.nextAddress!=2&&(qEI=A.yieldResult);return A.return(qEI)})};
xMN=function(){return _.e(function(A){if(A.nextAddress==1)return _.b("ab_fk_sk_cl")?BAN!==2?A.jumpTo(2):A.yield(eKm(),3):A.return(1);A.nextAddress!=2&&(BAN=A.yieldResult);return A.return(BAN)})};
_.OvW=function(){return _.e(function(A){if(A.nextAddress==1)return _.b("ab_det_apb_b")?ivQ!==2?A.jumpTo(2):A.yield(hKI(),3):A.return(1);A.nextAddress!=2&&(ivQ=A.yieldResult);return A.return(ivQ)})};
mMA=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield(Promise.all([_.zKf(),_.OvW(),_.usr(),xMN()]),2);if(H.nextAddress!=3)return RKC()?H.return(!0):H.yield(_.TAQ(),3);A=H.yieldResult;return H.return(A===0)})};
RKC=function(){var A=!1,H=function(k,d){JPm.increment(d,k);k===0&&(A=!0)};
H(_.gjQ(),"j.s_");H(dMl,"f.i_");H(ivQ,"a.b_");H(qEI,"p.m_");H(BAN,"i.f_");bvW===2&&(bvW=_.LdI(vjC));H(bvW,"e.h_");_.b("ks_det_gpbl")||H(_.yPW(),"p.i_");_.b("ks_get_o_pp")||H(_.jHA(),"g.o_");_.b("ab_deg_unex_thr")||H(_.IVC(),"a.o_");H(YEW,"s.t_");_.b("ab_det_sc_inj_enf")&&H(_.PDv(),"s.i_");H(Gqm,"d.p_");H(_.FdV(_.EA),"o.p_");H(_.X$8()===0?0:_.DMI(),"o.a_");return _.b("debug_sk_em_precheck")?!0:A};
CDI=function(){var A=[].concat(_.fV(SEC));try{var H=AP8();A.push({jsonRepresentation:H.jsonRepresentation,objectRepresentation:H.objectRepresentation})}catch(k){A=[].concat(_.fV(SEC))}return A};
Kd8=function(){var A=["adPlacements","adSlots"];try{return A.filter(function(){return!0}).length!==A.length?0:1}catch(H){return 0}};
_.jHA=function(){if(Kd8()===0)return 0;var A=AP8(),H=A.objectRepresentation,k=(0,_.iK.unsafeClone)(H),d=[];if(H&&typeof H==="object")for(var W in H)d.push(W);else return 4;A=A.objectRepresentation.adPlacements;if(!(A&&A.length>0))return 4;try{if(!HvQ(d,Object.getOwnPropertyNames(H)))return 0}catch(z){return 0}return HvQ(k,H)?1:0};
_.FdV=function(A){if(!A||!A.length||typeof A==="string")return 0;for(var H=Object.getOwnPropertyNames(Object.prototype),k=0;k<A.length;k++)for(var d=_.Cm(A[k]),W=_.r(H),z=W.next();!z.done;z=W.next())if(d===z.value)return 0;return 1};
aVm=function(A){var H=_.Cm(A[1]);if(A[0]===null)return H;A=A[0];for(var k={},d=0;d<A.length;d++){var W=_.Cm(A[d]);if(d===0)k[W]=H;else{var z={};z[W]=k;k=z}}return k};
_.X$8=function(){for(var A=_.UA,H=0;H<A.length;H++){var k=aVm(A[H]),d=[];d.push(k);if(d.length===0)return 0}return 1};
_.DMI=function(){for(var A=_.UA,H={},k=0;k<A.length;H={oOX:void 0},k++){var d=[aVm(A[k])];H.oOX=[];d.forEach(function(W){return function(z){W.oOX[W.oOX.length]=z}}(H));
if(H.oOX.length===0)return 0}return 1};
_.gjQ=function(){for(var A=_.r(CDI()),H=A.next();!H.done;H=A.next()){var k=H.value;H=k.jsonRepresentation;k=k.objectRepresentation;try{var d=JSON.parse(H);if(!Vc(d,k,!1,!1))return 0}catch(W){return 0}}return 1};
_.PDv=function(){try{var A=_.d2("ab_det_sc_inj_val");A.length===1&&A[0]===""&&(A=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var H=document.querySelectorAll("script"),k=_.r(H),d=k.next();!d.done;d=k.next())for(var W=d.value,z=_.r(A),u=z.next();!u.done;u=z.next()){var B=u.value;H=void 0;if((H=W.textContent)==null?0:H.includes(B))return 0}}catch(h){return 4}return 1};
_.TAQ=function(){var A,H,k,d,W,z,u;return _.e(function(B){switch(B.nextAddress){case 1:_.S_(B,2),A=_.r(SEC),H=A.next();case 4:if(H.done)return B.return(1);d=k=H.value;W=d.jsonRepresentation;z=d.objectRepresentation;return B.yield((new Response(W,{status:200})).json(),7);case 7:u=B.yieldResult;if(!Vc(u,z,!1,!1))return B.return(0);H=A.next();B.jumpTo(4);break;case 2:return _.VA(B),B.return(4)}})};
_.IVC=function(){try{btoa("abc")}catch(A){return 0}return 1};
WdA=function(){var A,H,k,d,W,z,u,B,h,O,T;return _.e(function(m){switch(m.nextAddress){case 1:_.S_(m,2),A=_.r(CDI()),H=A.next();case 4:if(H.done)return m.return(1);d=k=H.value;W=d.jsonRepresentation;z=d.objectRepresentation;u=btoa(W);B="data:application/json;base64,"+u;h=new Request(B);Object.defineProperty(h,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(h,"method",{get:function(){return"POST"}});
Object.defineProperty(h,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(h,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(h,"body",{get:function(){return new ReadableStream}});
return m.yield(fetch(h),7);case 7:return O=m.yieldResult,m.yield(O.json(),8);case 8:T=m.yieldResult;if(!Vc(T,z,!1,!1))return m.return(0);H=A.next();m.jumpTo(4);break;case 2:return _.VA(m),m.return(4)}})};
_.LdI=function(A){if(!A||!A.length||typeof A==="string")return 0;for(var H=function(W){return _.Cm(W)},k=2,d=0;d<A.length&&(k=_.cPf(_.ovl(A[d],H)),k!==0);d++);
return k};
_.cPf=function(A){var H=_.r(A);A=H.next().value;H=H.next().value;try{var k=document.createElement("div");document.body.appendChild(k);var d=getComputedStyle(k).display;document.body.removeChild(k);if(d==="none")return 4;var W=getComputedStyle(H).display==="none"?0:1;document.body.removeChild(A);return W}catch(z){return 4}};
eKm=function(){var A,H,k;return _.e(function(d){A=new _.lk;H=document.createElement("button");H.classList.add("ytp-ad-skip-button");H.style.opacity="0";H.style.height="0px";H.style.width="0px";H.style.padding="0px";H.style.border="none";k=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.onclick=function(){A.resolve(0);k()};
document.body.appendChild(H);setTimeout(function(){k();A.resolve(1)},50);
return d.return(A.promise)})};
rPX=function(){var A,H,k,d,W,z,u;return _.e(function(B){A=new _.lk;H=document.createElement("ytd-player");try{document.body.prepend(H)}catch(h){return B.return(4)}k=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.getElementsByTagName("div").length>0?d=H.getElementsByTagName("div")[0]:(d=document.createElement("div"),H.appendChild(d));W=document.createElement("div");d.appendChild(W);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=_.NR(_.wO(u));z.ontimeupdate=function(){k();A.resolve(0)};
W.appendChild(z);z.classList.add("html5-main-video");setTimeout(function(){W.classList.add("ad-interrupting")},200);
setTimeout(function(){k();A.resolve(1)},5E3);
return B.return(A.promise)})};
p$N=function(A){var H=AP8().objectRepresentation.playbackTracking;if(H){var k=[],d;k.push(H==null?void 0:(d=H.videostatsPlaybackUrl)==null?void 0:d.baseUrl);var W;k.push(H==null?void 0:(W=H.videostatsDelayplayUrl)==null?void 0:W.baseUrl);var z;k.push(H==null?void 0:(z=H.videostatsWatchtimeUrl)==null?void 0:z.baseUrl);var u;k.push(H==null?void 0:(u=H.ptrackingUrl)==null?void 0:u.baseUrl);var B;k.push(H==null?void 0:(B=H.qoeUrl)==null?void 0:B.baseUrl);var h;k.push(H==null?void 0:(h=H.atrUrl)==null?
void 0:h.baseUrl);H=_.r(k);for(k=H.next();!k.done;k=H.next())if((k=k.value)&&A.test(k))return k.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
QHX=function(A,H){var k,d;return _.e(function(W){switch(W.nextAddress){case 1:k=[],d=0;case 2:if(!(d<3)){W.jumpTo(4);break}return W.yield(fetch(A,{cache:"no-store",method:H}).then(function(z){k.push(z.status)}).catch(function(){k.push(-1)}),3);
case 3:d++;W.jumpTo(2);break;case 4:return W.return(k)}})};
Vor=function(A){return A.domainLookupStart===0&&A.domainLookupEnd===0&&A.connectStart===0&&A.connectEnd===0||A.duration===0};
EjV=function(A,H,k){k=k===void 0?"GET":k;var d,W,z,u,B,h,O,T,m,J;return _.e(function(g){if(g.nextAddress==1)return g.yield(Promise.all([QHX(A,k),QHX(H,k)]),2);d=g.yieldResult;W=_.r(d);z=W.next().value;u=W.next().value;B=z;h=u;if(Math.min.apply(Math,_.fV(h))!==Math.max.apply(Math,_.fV(h))||Math.min.apply(Math,_.fV(B))!==Math.max.apply(Math,_.fV(B)))return g.return(2);if(Math.min.apply(Math,_.fV(h))===Math.min.apply(Math,_.fV(B)))return g.return(1);T=(O=performance.getEntriesByName(A))==null?void 0:
O[0];J=(m=performance.getEntriesByName(H))==null?void 0:m[0];return T&&J?Vor(J)?g.return(1):Vor(T)?g.return(0):g.return(1):g.return(2)})};
hKI=function(){var A;return _.e(function(H){var k=[];var d;var W,z,u;(W=d=(W=AP8().objectRepresentation.streamingData)==null?void 0:(z=W.formats)==null?void 0:(u=z[0])==null?void 0:u.url)&&W&&!d.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(W=W.replace("initcwndbps","ctier=L&initcwndbps"),W=W.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),d={testUrl:W,baseUrl:d,method:"GET"}):d=void 0;d&&k.push(d);_.b("ab_net_tp_e")&&k.push({testUrl:_.k8.location.origin+"/ad_companion",baseUrl:_.k8.location.origin+
"/generate_204",method:"OPTIONS"});_.b("ab_fix_creator_view_cnt")&&(k.length=0,(d=p$N(/api\/stats\/atr/))&&k.push({testUrl:_.k8.location.origin+d,baseUrl:_.k8.location.origin+"/generate_204",method:"POST"}));_.b("ad_net_pb_pbp")&&(d=p$N(/api\/stats\/qoe/))&&k.push({testUrl:_.k8.location.origin+d,baseUrl:_.k8.location.origin+"/feed/download",method:"GET"});k=k.length!==0?k[Math.floor(Math.random()*k.length)]:void 0;return(A=k)?H.return(EjV(A.testUrl,A.baseUrl,A.method)):H.return(4)})};
_.yPW=function(){if(_.k8.ipK===void 0||_.k8.ipK===null||typeof _.k8.ipK!=="function")return 2;try{return _.k8.ipK()===!0?0:1}catch(A){return 0}};
UMC=function(A){switch(A){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.HR(A,"unknown result type")}};
_.lVC=function(A,H){var k=Number(_.pZ("CATSTAT",0));if(H.gMX===void 0)return k;H=H.gMX;A=UMC(A);return k&~(3<<H)|A<<H};
toV=function(A){var H,k;if((A=(H=A.auxiliaryUi)==null?void 0:(k=H.messageRenderers)==null?void 0:k.bkaEnforcementMessageViewModel)&&A.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return A};
Mom=function(){for(var A=_.r(Object.values(_.NA8)),H=A.next();!H.done;H=A.next())H=H.value,H.vAa&&H.gMX&&_.cI("CATSTAT",_.lVC(2,H))};
_.Mm=function(A,H){A=_.tr("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",A);(H===void 0?0:H)?_.njQ(A,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Nm().logFlowEvent(A,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
fVm=function(){if(!ZvX){if(Polymer.Base){var A=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{A.apply(this,arguments)}catch(m){_.V$(m)}};
var H=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{H.apply(this,arguments)}catch(m){_.V$(m)}};
var k=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{k.apply(this,arguments)}catch(m){_.V$(m)}};
var d=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{d.apply(this,arguments)}catch(m){_.V$(m)}};
var W=Polymer.Base._listen,z=new WeakMap;Polymer.Base._listen=function(m,J,g){var v=function(){try{g.apply(this,arguments)}catch(y){_.V$(y)}};
z.set(g,v);W.call(this,m,J,v)};
var u=Polymer.Base._unlisten;Polymer.Base._unlisten=function(m,J,g){u.call(this,m,J,z.get(g))}}if(Polymer.Async){var B=Polymer.Async,h=B._atEndOfMicrotask;
B._atEndOfMicrotask=function(){try{h.apply(B,arguments)}catch(m){_.V$(m)}}}if(Polymer.RenderStatus){var O=Polymer.RenderStatus,T=O.afterNextRender;
O.afterNextRender=function(m,J,g){T.call(O,m,function(){try{J.apply(this,arguments)}catch(v){_.V$(v)}},g)}}ZvX=!0}};
_.ojC=function(A){var H=A?_.Nx(A):"";if(H){if(H.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(H.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(H.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(H.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(H.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.b("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";H=H.toLowerCase();if(H==="/")return"home";if(H==="/channel_memberships")return"channel-memberships-shopfront";if(H.indexOf("/feed/trending")===0)return"trending";if(H.indexOf("/feed/explore")===0)return"explore";if(H.indexOf("/live")===0)return"live";if(H.indexOf("/results")===0)return"search";if(H.indexOf("/sports")===0)return"sports";if(H.indexOf("/fashion")===0||H.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(H))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(H))return _.b("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/")===0||H.indexOf("/user/")===0||H.indexOf("/gaming")===0||H.indexOf("/post/")===0)return"channel";if(w$f(A))return"show";if(H==="/playlist"||H.indexOf("/playlist/")===0||H==="/view_play_list"||H.indexOf("/view_play_list/")===0||H.indexOf("/show/")===0)return"playlist";if(H==="/companion_canvas")return"companion-canvas";if(H==="/feed/history"||
H.indexOf("/feed/history/")===0)return"history";if(H==="/new")return"labs";if(H==="/feed/subscriptions")return"subscriptions";if(H.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(H==="/history_controls")return"standalone";if(H.indexOf("/account")===0||H==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(H.indexOf("/paid_memberships")===0||H.indexOf("/refund")===0||H.indexOf("/purchases")===0||H.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(H.indexOf("/product")===
0)return"yts-products";if(H.indexOf("/premium")===0||H.indexOf("/musicpremium")===0)return H.indexOf("/premium/offers")===0||H.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(H==="/cart/checkout"||H==="/cart")return"ypc-checkout";if(H.indexOf("/reporthistory")===0)return _.b("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(H.indexOf("/feed/downloads")===0||H.indexOf("/redeem")===0)return"browse";if(H.indexOf("/hashtag")===0)return"hashtag-landing-page";if(H.indexOf("/handle")===
0)return"handle";if(H.indexOf("/source")===0)return"audio-pivot";if(H.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(H.indexOf("/playables")===0)return"playables";if(H.indexOf("/create/live/join")===0)return"open-in-app";if(H.indexOf("/shorts")===0)return"shorts";if(H.indexOf("/feed/channels")===0)return"subscriptions-channels";var k=A?_.Nx(A):"";k&&k.indexOf("/watch")===0&&_.b("web_watch_enable_learning_journey")?(A=_.MP(A),A=!!A.list&&A.list.indexOf("LJPP")===0):A=!1;if(A)return"learning_journey_watch";
if(_.b("enable_new_page_subtypes_for_ai_companion")&&H==="/feed/courses")return"your-courses"}};
_.Zu=function(A){var H,k;(A=(k=_.L(A==null?void 0:A.commandMetadata,_.wn))==null?void 0:k.url)&&(H=_.ojC(A));return H};
w$f=function(A){var H=A?_.Nx(A):"";if(!H)return!1;H=H.toLowerCase();return H.indexOf("/show/")===0||H.indexOf("/playlist")===0&&(A=_.MP(A),A.list&&A.list.indexOf("EL")===0)?!0:!1};
oc=function(A){var H="unknown",k;var d=((k=_.L(A==null?void 0:A.commandMetadata,_.wn))==null?void 0:k.webPageType)||"";d?(k=d.toLowerCase(),k.startsWith("web_page_type_")&&(k=k.slice(14))):k=d;k&&$Mf[k.toUpperCase()]?H=$Mf[k.toUpperCase()]:_.L(A,_.fm)||_.L(A,AlV)?H="browse":_.L(A,_.wl)?H="search":_.L(A,_.Yr)&&(H="watch");H==="watch"&&_.Zu(A||null)==="learning_journey_watch"&&(H="learning_journey_watch");H==="unknown"&&_.Pq(Error("Uf`"+JSON.stringify({clickTrackingParams:A==null?void 0:A.clickTrackingParams,
commandMetadata:A==null?void 0:A.commandMetadata,allEndpointKeys:Object.keys(A||[])})));return H};
_.$u=function(A){if(!_.HEW||A)_.HEW=_.dW();return _.HEW};
_.sBI=function(A){return!!_.L(A,_.Yr)||!!_.L(A,_.A1)&&_.b("kevlar_enable_shorts_prefetch")};
_.kTf=function(A,H){A=_.L(A,_.Yr)||_.L(A,_.A1);return"v"+A.videoId+(A.playlistId?"-pl"+A.playlistId:"")+(H?"-an1":"")+(A.params?"-pr"+A.params:"")};
_.d9l=function(A){var H=new HM(_.pZ("ONE_PICK_URL",""));H.urlParamMap_.set("hostId",A);(A=_.pZ("GAPI_LOCALE"))&&H.urlParamMap_.set("hl",A);(A=_.pZ("SESSION_INDEX"))&&H.urlParamMap_.set("authuser",A);(A=_.pZ("DELEGATED_SESSION_ID"))&&H.urlParamMap_.set("groupId",A);return H};
zhA=function(){var A=_.wj(),H=A.resolve(_.sJ);A=A.resolve(_.kI);return new WeQ(H,A)};
rl8=function(A){if(window.IntersectionObserver)return new qbb(A,400);throw new TypeError("Wf");};
BBl=function(){var A=Hammer.TouchAction,H=A.prototype.preventDefaults;A.prototype.preventDefaults=function(k){var d=this.actions.indexOf("pan-down")>-1;if(!d)return H.call(this,k);if(!uyv){var W=k.srcEvent;k=k.direction;var z;if((z=this.manager)==null?0:z.session.prevented)W.preventDefault();else if(d&&k&Hammer.DIRECTION_DOWN)return this.preventSrc(W)}}};
ehv=function(A){if(!A||A.size===0)return Hammer.DIRECTION_ALL;if(A.size===2){if(A.has("up")&&A.has("down"))return Hammer.DIRECTION_VERTICAL;if(A.has("right")&&A.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(A.size===1){if(A.has("up"))return Hammer.DIRECTION_UP;if(A.has("down"))return Hammer.DIRECTION_DOWN;if(A.has("right"))return Hammer.DIRECTION_RIGHT;if(A.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.qH=function(A,H,k){var d=k&&k>0?k:0;k=d?Date.now()+d*1E3:0;if((d=d?_.d4.getLocalStorage():_.d4.getSessionStorage())&&window.JSON){typeof H!=="string"&&(H=JSON.stringify(H,void 0));try{d.set(A,H,k)}catch(W){d.remove(A)}}};
_.r4=function(A){var H=_.d4.getSessionStorage(),k=_.d4.getLocalStorage();if(!H&&!k||!window.JSON)return null;try{var d=H.get(A)}catch(W){}if(typeof d!=="string")try{d=k.get(A)}catch(W){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(W){}return d};
_.uw=function(A){try{var H=_.d4.getSessionStorage(),k=_.d4.getLocalStorage();H&&H.remove(A);k&&k.remove(A)}catch(d){}};
iEb=function(A){var H=x9W(),k;return _.e(function(d){switch(d.nextAddress){case 1:return _.S_(d,2),d.yield(A.match(H,{cacheName:"yt-appshell-assets"}),4);case 4:k=d.yieldResult;_.QN(d,3);break;case 2:_.VA(d);case 3:return d.return(k)}})};
x9W=function(){var A=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?hhf.registration.scope:OEI;A.endsWith("/")&&(A=A.slice(0,-1));return A+"/app_shell_home"};
Rhm=function(A){A.map(function(H){return H.source}).join("|")};
_.TBI=function(A){return _.e(function(H){return H.return(iEb(A))})};
m9I=function(){var A=window.caches,H;return _.e(function(k){if(k.nextAddress==1)return k.yield(_.TBI(A),2);H=k.yieldResult;return k.return(!!H)})};
jBA=function(){_.e(function(A){if(A.nextAddress==1){if(Jlb)return A.jumpTo(0);Jlb=!0;if(_.b("enable_system_health_primes_monitoring"))return _.q4(gFQ,3E4),bEQ(),A.return();if(!(Math.random()<_.H5("web_system_health_fraction")))return A.jumpTo(0);LeN={heightPixels:screen.height,widthPixels:screen.width};BM&&!isNaN(BM.jsHeapSizeLimit)&&(LeN.memoryTotalKbytes=String(Math.round(BM.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(LeN.devicePixelRatio=window.devicePixelRatio);return A.yield(vFm(),4)}_.q4(gFQ,
3E4);return A.yield(ylA(),0)})};
vFm=function(){return _.e(function(A){if(A.nextAddress==1)return es.intersectionObserverPresent="IntersectionObserver"in window,es.serviceWorkerPresent="serviceWorker"in navigator,es.webSharePresent="share"in navigator,es.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,es.cacheStoragePresent="caches"in window,es.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,es.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
es.webkitTemporaryStoragePresent="webkitTemporaryStorage"in xI&&xI.webkitTemporaryStorage&&"queryUsageAndQuota"in xI.webkitTemporaryStorage,es.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",A.yield(nuQ(),2);es.indexedDbPresent=A.yieldResult;es.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;es.broadcastChannelPresent="BroadcastChannel"in window;es.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(es.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,es.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.EN(A)})};
gFQ=function(){var A=9E4+Math.random()*2E3;_.Z$()>A||(_.b("enable_system_health_primes_monitoring")?bEQ():ylA())};
ylA=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield(IAX(),2);A=H.yieldResult;_.yr("systemHealthCaptured",A);_.EN(H)})};
bEQ=function(){var A={metric:{}},H=Yb8();H.networkEvents.length&&(A.metric.networkEvents=PTI(H));_.yr("systemHealthCaptured",A)};
IAX=function(){var A,H,k,d,W,z,u,B,h,O;return _.e(function(T){switch(T.nextAddress){case 1:A={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)};H=window.screen;_.b("enable_is_extended_monitoring")&&H&&"isExtended"in H&&(A.isExtended=!!H.isExtended);k={metric:{staticContext:LeN,dynamicContext:A,webMetric:GTr,webApiSupport:es}};
if(d=_.hx())k.csn=d;BM&&(k.metric.webMetric.currentHeapKbytes=Math.round(BM.usedJSHeapSize/1E3));window.matchMedia&&(k.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,k.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,k.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in xI&&typeof xI.getBattery==="function")){T.jumpTo(2);break}return T.yield(xI.getBattery(),3);case 3:if(W=
T.yieldResult)k.metric.dynamicContext.chargingStatus=W.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(k.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(es.storageEstimatePresent)return T.yield(navigator.storage.estimate(),8);if(!es.webkitTemporaryStoragePresent){T.jumpTo(5);break}return T.yield(FeI(),7);case 7:z=T.yieldResult;T.jumpTo(5);break;case 8:z=T.yieldResult;case 5:return k.metric.dynamicContext.deviceStorageQuotaMbytes=((u=z)==null?0:u.quota)?String(Math.round(z.quota/
1048576/10)*10):"-1",k.metric.dynamicContext.deviceStorageUsageMbytes=((B=z)==null?0:B.usage)?String(Math.round(z.usage/1048576/10)*10):"-1",h=k.metric.dynamicContext,T.yield(m9I(),9);case 9:return h.hasAppShell=T.yieldResult,O=Yb8(),O.networkEvents.length&&(k.metric.networkEvents=PTI(O)),T.return(k)}})};
FeI=function(){return new Promise(function(A){var H;es.webkitTemporaryStoragePresent&&(H=xI.webkitTemporaryStorage)!=null&&H.queryUsageAndQuota?xI.webkitTemporaryStorage.queryUsageAndQuota(function(k,d){A({usage:k,quota:d})}):A(void 0)})};
_.iw=function(A){A&=16777215;A=[(A&16711680)>>16,(A&65280)>>8,A&255];return nXb(A[0],A[1],A[2])};
_.h1=function(A){A=[(A&16711680)>>>16,(A&65280)>>>8,A&255,(A&4278190080)>>>24];if(!_.XbX(A,function(H){return H===(H&255)}))throw Error("Xf`"+A.join(","));
return"rgba("+A[0]+","+A[1]+","+A[2]+","+(A[3]/255).toFixed(3)+")"};
_.D9C=function(A){return[(A&16711680)>>>16,(A&65280)>>>8,A&255]};
_.SbQ=function(A){A=A.map(function(H){H/=255;return H<=.03928?H/12.92:Math.pow((H+.05)/1.05,2.4)});
return A[0]*.2126+A[1]*.7152+A[2]*.0722};
OJ=function(A,H){A=_.D9C(A);return"rgba("+A[0]+", "+A[1]+", "+A[2]+", "+H+")"};
Rl=function(A){return(A&4278190080)>>>24===0?OJ(A,"1"):_.h1(A)};
_.CTC=function(){try{return!!self.localStorage}catch(A){return!1}};
pbm=function(){if(Keb())_.Pq(Error("Yf"));else{var A=document.createElement("iframe");A.style.display="none";var H=H===void 0?window.location.href:H;var k=_.Yh(_.pZ("PERSIST_IDENTITY_IFRAME_URL"));H=k?k:(new URL(H)).host.indexOf("studio")===0?_.Ia(aAC,"persist_identity"):_.Ia(clW,"persist_identity");_.qX(A,1,H);A.id="persist_identity";var d;(d=document.body)==null||d.appendChild(A)}};
Keb=function(){var A=QBI;A||(A=document.querySelector("#persist_identity"));return A};
VeC=function(){var A=!1;try{A=!!window.sessionStorage.getItem("session_logininfo")}catch(H){A=!0}return(_.pZ("INNERTUBE_CLIENT_NAME")==="WEB"||_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&A};
EFf=function(A,H){if(!VeC())return!1;H||(H=_.pZ("LOGIN_INFO"));return H?(A.session_logininfo=H,!0):!1};
lAl=function(A,H){A=A===void 0?!1:A;if((H===void 0||!H)&&U9r!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Q$("LOG_STICKINESS",!1)){H=_.hx();var k=_.ii(),d={identityStickinessData:{initialState:U9r}};H&&k&&_.Fp(H,k,d)}if(H=Keb())if(k=H.src?(new URL(H.src)).origin:"*",A){var W;(W=H.contentWindow)==null||W.postMessage({action:"clear"},k)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(A=window.sessionStorage.getItem("session_logininfo"))){var z;(z=H.contentWindow)==null||z.postMessage({loginInfo:A},k)}};
_.TD=function(A){A=A===void 0?!0:A;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.cI("LOGIN_INFO",""),A&&window.sessionStorage.setItem("from_switch_account","1"),lAl(!0,A)}catch(H){}};
teV=function(A){A&&(A.startsWith("https://accounts.google.com/AddSession")?_.TD():A.startsWith("https://accounts.google.com/ServiceLogin")?_.TD():A.startsWith("https://myaccount.google.com")&&_.p$(A).getPath().endsWith("/youtubeoptions")&&_.TD())};
mH=function(A,H){teV(A);if(_.Q$("LOGGED_IN",!0)&&VeC()){var k=Z4I(A);k==null&&(k={});EFf(k,H)&&_.DZ(A,k)}};
NBX=function(){function A(H){for(H=H.target;H&&H.nodeName!=="A";)if(H=H.parentNode,!(H&&H instanceof HTMLElement))return;if(H&&!H.hasAttribute("download")&&H.getAttribute("rel")!=="external"&&H.href)return H.href}
document.addEventListener("mousedown",function(H){H.button!==0&&(H=A(H))&&mH(H)});
document.addEventListener("click",function(H){(H=A(H))&&mH(H)})};
ZEQ=function(){var A=new MeN;try{if(_.Q$("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(B){A.increment(5,!1);return}if(_.pZ("LOGIN_INFO")){var H=nFr?nFr:window.location;_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&pbm();var k=Z4I(H.href);k==null&&(k={});var d=k.session_logininfo,W=Number(window.sessionStorage.getItem("stickiness_reload")),z=d===_.pZ("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
W>=2||z)W>=2?A.increment(2,z):z?A.increment(7,z):window.sessionStorage.getItem("session_logininfo")||(A.increment(3,z),U9r="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.pZ("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.pZ("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))A.increment(4,z),window.sessionStorage.removeItem("stickiness_reload");
else if(W<2){window.sessionStorage.setItem("stickiness_reload",String(W+1));var u=H.href;u=_.sI(u,"sttick");mH(u,window.sessionStorage.getItem("session_logininfo"));u=_.nZ(u,{sttick:W});A.increment(W,z);_.C1V(H,u)}}else A.increment(6,!1)}else _.TD(!1)}catch(B){}};
_.J1=function(A,H,k,d,W){H=H===void 0?{}:H;k=k===void 0?"":k;d=d===void 0?window:d;A=_.$d(A,H);mH(A);k=_.fx(A+k,W);_.C1V(d.location,k)};
fAl=function(A){if(A.urlEndpoint){if(A=_.MP(A.urlEndpoint.url),A.adurl)return fY(A.adurl)}else if(A.watchEndpoint)return"//www.youtube.com/watch?v="+A.watchEndpoint.videoId;return null};
wbr=function(A){if(!A||!A.reportingPings)return null;var H={};A.reportingPings.forEach(function(k){k.pingType in H?H[k.pingType].push(k.url):H[k.pingType]=[k.url]});
return{adpings:b8f(H)}};
_.bw=function(A){A=A===void 0?!1:A;var H=_.sH(),k="USER_INTERFACE_THEME_LIGHT";H.getFlag(165)?k="USER_INTERFACE_THEME_DARK":H.getFlag(174)?k="USER_INTERFACE_THEME_LIGHT":_.g4()&&(k="USER_INTERFACE_THEME_DARK");return A?k:oFV()||k};
_.$9W=function(){return!_.b("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.g4=function(){return _.$9W()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.LF=function(){var A=_.sH();return _.$9W()&&!A.getFlag(165)&&!A.getFlag(174)};
oFV=function(){var A=A===void 0?window.location.href:A;if(_.b("kevlar_disable_theme_param"))return null;var H=_.Nx(A);if(_.ACN(H))return"USER_INTERFACE_THEME_DARK";try{var k=_.MP(A).theme;return HsX.get(k)||null}catch(d){}return null};
_.ACN=function(A){return _.b("enable_dark_theme_only_on_shorts")?!(A==null||!A.startsWith("/shorts/")):!1};
_.js=function(A,H,k,d,W){H=H===void 0?!1:H;k=k===void 0?!1:k;var z=_.pZ("INNERTUBE_CONTEXT");if(!z)return _.I3(Error("bg")),{};z=(0,_.iK.unsafeClone)(z);_.b("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=_.pZ("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=_.bw();if(!H){var B=_.RFm();B&&(u.connectionType=B);_.b("web_log_effective_connection_type")&&(B=mmN())&&(z.client.effectiveConnectionType=B)}var h;if(_.b("web_log_memory_total_kbytes")&&((h=_.k8.navigator)==null?0:h.deviceMemory)){var O;h=(O=_.k8.navigator)==null?void 0:O.deviceMemory;z.client.memoryTotalKbytes=""+h*1E6}H&&d&&!_.b("web_it_context_set_original_url_ks")&&
(u.originalUrl=sv8(_.k8.location.href,d).toString());_.b("web_gcf_hashes_innertube")&&(B=PwI())&&(O=B.coldConfigData,h=B.coldHashData,B=B.hotHashData,z.client.configInfo=z.client.configInfo||{},O&&(z.client.configInfo.coldConfigData=O),h&&(z.client.configInfo.coldHashData=h),B&&(z.client.configInfo.hotHashData=B));O=_.MP(_.k8.location.href);!_.b("web_populate_internal_geo_killswitch")&&O.internalcountrycode&&(u.internalGeo=O.internalcountrycode);!_.b("web_populate_client_screen_killswitch")&&W&&(u.clientScreen=
W);u.clientName==="MWEB"||u.clientName==="WEB"?(u.mainAppWebInfo||(u.mainAppWebInfo={}),u.mainAppWebInfo.graftUrl=d||_.k8.location.href,_.b("kevlar_woffle")&&_.vM.instance&&(d=_.vM.instance,u.mainAppWebInfo.pwaInstallabilityStatus=!d.appInstalledEventFired&&d.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),u.mainAppWebInfo.webDisplayMode=gI8(),u.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):u.clientName==="TVHTML5"&&
(!_.b("web_lr_app_quality_killswitch")&&(d=_.pZ("LIVING_ROOM_APP_QUALITY"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{appQuality:d})),d=_.pZ("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(u.tvAppInfo=Object.assign(u.tvAppInfo||{},{certificationScope:d}));!_.b("web_populate_time_zone_itc_killswitch")&&(d=hFW())&&(u.timeZone=d);(d=C9I())?u.experimentsToken=d:delete u.experimentsToken;u=KpA();d=_.khr();d=(0,_.iK.getValues)(d.tokenJars);z.request=Object.assign({},z.request,{internalExperimentFlags:u,consistencyTokenJars:d});
!_.b("web_prequest_context_killswitch")&&(u=_.pZ("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(z.request.externalPrequestContext=u);d=_.sH();u=d.getFlag(58);d=d.get("gsml","");z.user=Object.assign({},z.user);u&&(z.user.enableSafetyMode=u);d&&(z.user.lockedSafetyMode=!0);_.b("warm_op_csn_cleanup")?k&&(H=_.hx())&&(z.clientScreenNonce=H):!H&&(H=_.hx())&&(z.clientScreenNonce=H);A&&(z.clickTracking={clickTrackingParams:A});if(A=_.UD("yt.mdx.remote.remoteClient_"))z.remoteClient=A;_.ya.getInstance().setLocationOnInnerTubeContext(z);
try{var T=NEI(),m=T.bid;delete T.bid;z.adSignalsInfo={params:[],bid:m};for(var J=_.r(Object.entries(T)),g=J.next();!g.done;g=J.next()){var v=_.r(g.value),y=v.next().value,X=v.next().value;T=y;m=X;A=void 0;(A=z.adSignalsInfo.params)==null||A.push({key:T,value:""+m})}var D,K;if(((D=z.client)==null?void 0:D.clientName)==="TVHTML5"||((K=z.client)==null?void 0:K.clientName)==="TVHTML5_UNPLUGGED"){var N=_.pZ("INNERTUBE_CONTEXT");N.adSignalsInfo&&(z.adSignalsInfo.advertisingId=N.adSignalsInfo.advertisingId,
z.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",z.adSignalsInfo.limitAdTracking=N.adSignalsInfo.limitAdTracking)}}catch(U){_.I3(U)}return z};
_.Il=function(){return{isShellLoad:_.Q$("IS_SHELL_LOAD",!1)}};
Wkl=function(){navigator.serviceWorker.getRegistrations().then(function(A){A.forEach(dal)})};
dal=function(A){A&&_.z_l(qjX,A.scope)};
_.z_l=function(A,H){H={scope:H||_.k6("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.QB(A),H)};
YI=function(A,H,k,d){if(H&&H.serializedYpcCujLoggingParams){if(k){var W={};W.transactionErrorType=k;d&&(W.errorMessage=d);H.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:W}}}k={};k.ypcCujContext=H;A=_.tr("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",A,k);_.Nm().logFlowEvent(A,"FLOW_TYPE_YPC_ACQUISITION")}};
_.rCr=function(A,H,k,d){var W={};W.serializedTransactionFlowLoggingParams=H;k&&(W.errorType=k);d&&(W.errorMessage=d);_.yr(A,W);_.jM()};
_.u5l=function(A){A&&_.rCr("transactionFlowStarted",A)};
_.BmW=function(A){A&&_.rCr("transactionFlowCancelled",A)};
_.PM=function(A,H,k){H&&_.rCr("transactionFlowFailed",H,A,k)};
e_C=function(A){var H=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");H&&(H.inert=A)};
_.GD=function(){this.megabloxUrl_=null};
_.F_=function(A){try{var H=xaA==null?void 0:xaA.composedPath(A)}catch(k){H=A.composedPath?A.composedPath():[]}return H&&H.length>0?H:A.composedPath?A.composedPath():[]};
_.X_=function(A){return _.F_(A)[0]};
De=function(A){return A instanceof ShadowRoot?ShadowRoot:A instanceof DocumentFragment?DocumentFragment:A instanceof Document?Document:HTMLElement};
isV=function(A){if(A instanceof Element)return Element.prototype;if(A instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+A);};
h_I=function(A,H){return _.b("sunnydom_native_scoped_query_selectors")?isV(A).querySelector.call(A,H):De(A).prototype.querySelector.call(A,H)};
OsA=function(A,H){return _.b("sunnydom_native_scoped_query_selectors")?isV(A).querySelectorAll.call(A,H):De(A).prototype.querySelectorAll.call(A,H)};
R_m=function(A){var H,k,d;return(d=(k=(H=A.parentElement)!=null?H:A.__shady_native_parentElement)!=null?k:A.__shady_parentElement)!=null?d:null};
TmI=function(A){var H,k,d;return(d=(k=(H=A.parentNode)!=null?H:A.__shady_native_parentNode)!=null?k:A.__shady_parentNode)!=null?d:null};
maN=function(A){var H,k,d;return(d=(k=(H=A.nextSibling)!=null?H:A.__shady_native_nextSibling)!=null?k:A.__shady_nextSibling)!=null?d:null};
JCX=function(A){var H,k,d;return(d=(k=(H=A.previousSibling)!=null?H:A.__shady_native_previousSibling)!=null?k:A.__shady_previousSibling)!=null?d:null};
gm8=function(A){var H,k,d;return(d=(k=(H=A.nextElementSibling)!=null?H:A.__shady_native_nextElementSibling)!=null?k:A.__shady_nextElementSibling)!=null?d:null};
bsl=function(A){var H,k,d;return(d=(k=(H=A.previousElementSibling)!=null?H:A.__shady_native_previousElementSibling)!=null?k:A.__shady_previousElementSibling)!=null?d:null};
Lkb=function(A){var H,k,d;return new Set([].concat(_.fV((H=A.children)!=null?H:[]),_.fV((k=A.__shady_native_children)!=null?k:[]),_.fV((d=A.__shady_children)!=null?d:[])))};
vmA=function(A){var H,k,d;return new Set([].concat(_.fV((H=A.childNodes)!=null?H:[]),_.fV((k=A.__shady_native_childNodes)!=null?k:[]),_.fV((d=A.__shady_childNodes)!=null?d:[])))};
_.Ss=function(A){if(!(A instanceof Element))return null;A=A.classList?Array.from(A.classList):void 0;if(!A)return null;var H=A.indexOf("style-scope");return H>-1&&H+1<A.length?A[H+1]:null};
CF=function(A){if(!(A instanceof HTMLElement))return null;var H=A&&(A.$$||A.polymerController)?A.tagName.toLowerCase():null;return H?H:_.Ss(A)};
yCX=function(A,H){return _.b("sunnydom_native_scoped_query_selectors")?A+".style-scope."+H:A.replace(/[^a-z]*[^\s]+/g,function(k){return k+".style-scope."+H})};
jvm=function(A,H){return H?A.split(",").map(function(k){return yCX(k.trim(),H)}).join(", "):A};
_.KF=function(A){var H,k,d,W;return(W=(d=(k=(H=A.root)!=null?H:A.shadowRoot)!=null?k:A.__shady_native_shadowRoot)!=null?d:A.__shady_shadowRoot)!=null?W:A};
ITl=function(A){var H,k,d;return(d=(k=(H=A.__shady_parentNode)!=null?H:A.__shady_native_parentNode)!=null?k:A.parentNode)!=null?d:null};
YjV=function(A){var H,k;return(k=(H=TmI(A))!=null?H:A.host)!=null?k:null};
PEl=function(A){for(;A&&!(A instanceof HTMLElement);)A=YjV(A);return A};
Ghv=function(A){var H=PEl(A);return A===H?_.Ss(A):H?CF(H):null};
FkW=function(A){return(A=PEl(A))?CF(A):null};
XHC=function(A){if(A instanceof Comment)return!1;if(A instanceof Text){var H,k;if(((k=(H=A.textContent)==null?void 0:H.trim())!=null?k:"")==="")return!1}return!0};
al=function(A,H,k){var d=H(A);for(k=k===void 0?FkW(A):k;d&&(Ghv(d)!==k||!XHC(d));)A=d,d=H(A);return d};
DaI=function(A,H,k){if(!H)return null;A=FkW(A);return Ghv(H)===A&&XHC(H)?H:al(H,k,A)};
SjN=function(A){return al(A,ITl,_.Ss(A))};
CEm=function(A){return al(A,gm8)};
KkA=function(A){return al(A,maN)};
aT8=function(A){return al(A,bsl)};
cCr=function(A){return al(A,JCX)};
pHI=function(A){return DaI(A,A.firstChild||null,maN)};
QvA=function(A){var H,k,d;var W=(d=(k=(H=A.firstElementChild)!=null?H:A.__shady_native_firstElementChild)!=null?k:A.__shady_firstElementChild)!=null?d:null;return DaI(A,W,gm8)};
Vqm=function(A){var H,k,d;var W=(d=(k=(H=A.lastChild)!=null?H:A.__shady_native_lastChild)!=null?k:A.__shady_lastChild)!=null?d:null;return DaI(A,W,JCX)};
EmI=function(A){var H,k,d;var W=(d=(k=(H=A.lastElementChild)!=null?H:A.__shady_native_lastElementChild)!=null?k:A.__shady_lastElementChild)!=null?d:null;return DaI(A,W,bsl)};
UaX=function(A){var H=FkW(A);return Array.from(vmA(A)).filter(function(k){return Ghv(k)===H})};
lTW=function(A){var H=CF(A);return Array.from(Lkb(A)).filter(function(k){return _.Ss(k)===H})};
tql=function(A){if(!A)return null;var H=_.Ss(A);if(!H){var k;return(k=Node.prototype.getRootNode)==null?void 0:k.call(A)}H=H.toUpperCase();for(A=R_m(A);A&&A.tagName!==H;)A=R_m(A);return A?_.KF(A):null};
_.cM=function(A,H,k){if(A instanceof HTMLElement&&_.Ss(A)===k){var d=Array.from(A.classList).indexOf("style-scope");if(d===-1)A.classList.add("style-scope"),A.classList.add(H);else if(!(d+1>=A.classList.length)){d=A.classList[d+1];var W,z;A==null||(W=A.classList)==null||(z=W.replace)==null||z.call(W,d,H)}}if(A instanceof HTMLElement||A instanceof DocumentFragment)for(W=_.r(Lkb(A)),z=W.next();!z.done;z=W.next())_.cM(z.value,H,k);return A};
pF=function(A,H){if(A instanceof HTMLElement&&_.Ss(A)===H){var k=Array.from(A.classList).indexOf("style-scope");k===-1||k+1>=A.classList.length||A.classList.remove("style-scope",A.classList[k+1])}if(A instanceof HTMLElement||A instanceof DocumentFragment){k=_.r(A.children);for(var d=k.next();!d.done;d=k.next())pF(d.value,H)}return A};
_.Nml=function(A,H){return De(A).prototype.appendChild.call(A,H)};
Mqm=function(A,H){if(A===H)return!0;A=vmA(A);return Array.from(A).some(function(k){return Mqm(k,H)})};
_.Va=function(A,H){if(A instanceof Qa)return A;(H==null?0:H.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(A,"ownerDocument")&&Object.defineProperty(A,"ownerDocument",{get:function(){return window.document}});
return new Qa(A)};
ZsI=function(){var A=Qa.prototype,H=[].concat(_.fV(nmX?[]:["getRootNode"]),["setAttribute","removeAttribute"]);H=_.r(H);for(var k=H.next(),d={};!k.done;d={method$jscomp$53:void 0},k=H.next())d.method$jscomp$53=k.value,A[d.method$jscomp$53]=function(W){return function(){return this.host[W.method$jscomp$53].apply(this.host,arguments)}}(d)};
wHb=function(){var A=Qa.prototype,H=[].concat(_.fV(nmX?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.fV(fTl?[]:["querySelector","querySelectorAll"]));H=_.r(H);for(var k=H.next(),d={};!k.done;d={method$jscomp$54:void 0},k=H.next())d.method$jscomp$54=k.value,A[d.method$jscomp$54]=function(W){return function(){return this.root[W.method$jscomp$54].apply(this.root,arguments)}}(d)};
AhW=function(){var A=Qa.prototype,H=[].concat(_.fV(omm?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.fV($aI?[]:["parentNode"]));H=_.r(H);for(var k=H.next(),d={};!k.done;d={prop$jscomp$67:void 0},k=H.next())d.prop$jscomp$67=k.value,Object.defineProperty(A,d.prop$jscomp$67,{get:function(W){return function(){return this.host[W.prop$jscomp$67]}}(d),
configurable:!0})};
k8v=function(){var A=Qa.prototype,H=["activeElement"].concat(_.fV(omm?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.fV(Hbr?[]:["children"]),_.fV(seQ?[]:["lastChild"]));H=_.r(H);for(var k=H.next(),d={};!k.done;d={prop$jscomp$68:void 0},k=H.next())d.prop$jscomp$68=k.value,Object.defineProperty(A,d.prop$jscomp$68,{get:function(W){return function(){return this.root[W.prop$jscomp$68]}}(d),
configurable:!0})};
d8A=function(){for(var A=Qa.prototype,H=_.r(["innerHTML","textContent"]),k=H.next(),d={};!k.done;d={prop$jscomp$69:void 0},k=H.next())d.prop$jscomp$69=k.value,Object.defineProperty(A,d.prop$jscomp$69,{get:function(W){return function(){return this.root[W.prop$jscomp$69]}}(d),
set:function(W){return function(z){this.root[W.prop$jscomp$69]=z}}(d),
configurable:!0})};
WPb=function(A){var H=Qa.prototype;A=_.r(Object.entries(A));for(var k=A.next(),d={};!k.done;d={fn$jscomp$402:void 0},k=A.next()){var W=_.r(k.value);k=W.next().value;W=W.next().value;d.fn$jscomp$402=W;H[k]=function(z){return function(){return z.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.fV(arguments)))}}(d)}};
qqV=function(){for(var A=Qa.prototype,H=_.r(Object.entries(z9X)),k=H.next(),d={};!k.done;d={fn$jscomp$403:void 0},k=H.next()){var W=_.r(k.value);k=W.next().value;W=W.next().value;d.fn$jscomp$403=W;Object.defineProperty(A,k,{get:function(z){return function(){return z.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.fV(arguments)))}}(d),
configurable:!0})}};
_.EJ=function(A){return A instanceof rhm||A instanceof Document?A:new rhm(A)};
uhX=function(){for(var A=rhm.prototype,H=_.r("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),k=H.next(),d={};!k.done;d={method$jscomp$55:void 0},k=H.next())d.method$jscomp$55=k.value,A[d.method$jscomp$55]=function(W){return function(){return HTMLElement.prototype[W.method$jscomp$55].call.apply(HTMLElement.prototype[W.method$jscomp$55],[this.node].concat(_.fV(arguments)))}}(d)};
BrX=function(){for(var A=rhm.prototype,H=_.r("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),k=H.next(),d={};!k.done;d={prop$jscomp$70:void 0},k=H.next())d.prop$jscomp$70=k.value,Object.defineProperty(A,d.prop$jscomp$70,{get:function(W){return function(){var z;return(z=this.node["__shady_native_"+W.prop$jscomp$70])!=null?z:this.node[W.prop$jscomp$70]}}(d),
configurable:!0})};
_.UJ=function(A,H,k){k===void 0&&(k=!A.classList.contains(H));k?A.classList.add(H):A.classList.remove(H)};
_.lw=function(A,H,k){k===void 0&&(k=!A.hasAttribute(H));if(H==="class")throw Error("gg");k?_.EJ(A).setAttribute(H,""):_.EJ(A).removeAttribute(H)};
e9l=function(A){return(A.localName!=="slot"?[]:(0,_.t1)(A).assignedNodes({flatten:!0})).filter(function(H){return H.nodeType===Node.ELEMENT_NODE})};
_.x8W=function(A){return(A=_.Va(A).querySelector("slot"))&&A.localName==="slot"?e9l(A):[]};
_.NH=function(A,H){window.ShadyCSS&&window.ShadyCSS.styleSubtree(A,H)};
MH=function(A,H){var k=H.bind(A);return function(d){k(d,d.detail)}};
_.nF=function(A,H){var k=ibN.get(A);k||(k=new WeakMap,ibN.set(A,k));if(k.has(H))return k.get(H);if(_.b("web_fi_listen_disable_bound_fn_helper")){var d=H.bind(A);A=function(W){d(W,W==null?void 0:W.detail)}}else A=MH(A,H);
k.set(H,A);return A};
R9l=function(A,H){h98(A);A.created[ObQ].push(H)};
h98=function(A){if(!A.created||!A.created[ObQ]){var H=A.created,k=H?[H]:[];A.created=function(){for(var d=_.r(k),W=d.next();!W.done;W=d.next())W.value.apply(this)};
A.created[ObQ]=k}};
TrC=function(A){return function(){var H=_.o7.apply(0,arguments);return function(k,d,W){A.apply(null,_.fV(H))(k,d,W)}}};
m8l=function(){return function(){var A=_.o7.apply(0,arguments);return function(H,k,d){cKm.apply(null,_.fV(A))(H,k,d)}}};
_.P=function(A){return m8l()(A)};
_.G=function(){return TrC(EXX).apply(null,_.fV(_.o7.apply(0,arguments)))};
_.Ze=function(A){return _.b("pbcm_fi_listen_decorators")?JhI(A):TrC(QMN)(A)};
JhI=function(A){return function(H,k){R9l(H,function(){var d=this[k],W=_.b("web_fi_listen_disable_bound_fn_helper")?function(z){d(z,z.detail)}.bind(this):MH(this,d);
gxl.has(A)?Pu(this.hostElement,A,W):this.hostElement.addEventListener(A,W)})}};
_.fF=function(){return TrC(Vml).apply(null,_.fV(_.o7.apply(0,arguments)))};
_.C=function(A){A=A===void 0?{}:A;return TrC(pJf)(A)};
_.w4=function(A){if(A.hostElement&&A!==A.hostElement){var H=_.WB(A.hostElement);H=A.renderIdom?H:H.shadowRoot}H||(A=A.root,H=A instanceof Node?_.WB(A):null);return H};
_.ol=function(A){return bbV?LPV(A):function(H,k){Object.defineProperty(H,k,{get:function(){var d;return(d=_.w4(this))==null?void 0:d.querySelector(A)},
enumerable:!0,configurable:!0})}};
LPV=function(A){return function(H,k){Object.defineProperty(H,k,{get:function(){var d,W=(d=_.Va(this.hostElement))==null?void 0:d.querySelector(A);if(W)return W;var z;return(z=_.w4(this))==null?void 0:z.querySelector(A)},
enumerable:!0,configurable:!0})}};
_.$I=function(A){return bbV?vxI(A):function(H,k){Object.defineProperty(H,k,{get:function(){var d;return(d=_.w4(this))==null?void 0:d.querySelectorAll(A)},
enumerable:!0,configurable:!0})}};
vxI=function(A){return function(H,k){Object.defineProperty(H,k,{get:function(){var d,W=(d=_.Va(this.hostElement))==null?void 0:d.querySelectorAll(A);if(W==null?0:W.length)return W;var z;return(z=_.w4(this))==null?void 0:z.querySelectorAll(A)},
enumerable:!0,configurable:!0})}};
yhA=function(A){return function(H){if(![_.Zc,_.a].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("hg");GjQ(Object.assign({},typeof A!=="string"?A:{is:A,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(H)}};
_.HW=function(){var A=A===void 0?{}:A;return function(H){if(![fP,_.A6].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("ig");FNI(Object.assign({},A,{disableInheritanceCheck:!0}))(H)}};
IBv=function(A,H){jeI[A]!=null||(jeI[A]=new Set);jeI[A].add(H)};
_.s6=function(){var A=_.fF.apply(null,_.fV(_.o7.apply(0,arguments)));return function(H,k){IBv(H.is,k);A(H,k)}};
WW=function(A,H,k){if(k9(A)&&!YqW.has(H)){H=H.replace(/^JSC\$[\d]+_/,"");H=H.replace(/\.\d+(\.|$)/g,function(z,u){return".#"+u});
du[A]!=null||(du[A]={});var d,W;(d=du[A])[W=H]!=null||(d[W]=new Set);du[A][H].has(k)||(du[A][H].add(k),_.yr("polymerPropertyAccessEvent",{componentName:A,propertyName:H,accessType:k}))}};
Pvm=function(){return _.b("polymer_property_access_logging_debug")||_.b("polymer_enable_property_access_logging")};
k9=function(A){if(_.b("polymer_property_access_logging_debug"))return!0;if(!_.b("polymer_enable_property_access_logging"))return!1;G8X||(G8X=Date.now());return(LH(A)+G8X)%100<_.H5("polymer_property_access_logging_percent")};
FPV=function(A,H){return k9(H)&&A.hostElement.loggingStatus?new Proxy(A,{get:function(k,d,W){if(k.hostElement.loggingStatus.bypassProxyController)return k[d];k.hostElement.loggingStatus.isExternalGet=!0;var z=k[d];k.hostElement.loggingStatus.isExternalGet=!1;if(z instanceof Function)return function(){var u=_.o7.apply(0,arguments);try{return k.hostElement.loggingStatus.currentExternalCall=d,WW(H,d,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),z.apply(this===W?k:this,u)}finally{k.hostElement.loggingStatus.currentExternalCall=
void 0}};
WW(H,d,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return z},
set:function(k,d,W){if(k.hostElement.loggingStatus.bypassProxyController)return k[d]=W,!0;k.hostElement.loggingStatus.isRendererStamper?WW(H,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):k.hostElement.loggingStatus.isDeclarativeExternal||WW(H,d,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{k.hostElement.loggingStatus.currentExternalSet=d,k[d]=W}finally{k.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):A};
X_r=function(A,H){A&&A.loggingStatus&&!A.loggingStatus.isDeclarativeExternal&&!A.loggingStatus.isExternalGet&&A.loggingStatus.currentExternalSet!==H&&WW(A.tagName.toLowerCase(),H,"PROPERTY_ACCESS_GET_INTERNAL")};
zn=function(A,H,k){A&&(k||A.loggingStatus&&!A.loggingStatus.isInitializing&&!A.loggingStatus.isDefiningPropertyAccessor&&A.loggingStatus.currentExternalSet!==H)&&WW(A.tagName.toLowerCase(),H,"PROPERTY_ACCESS_SET_INTERNAL")};
D88=function(){return{_definePropertyAccessor:function(A,H){var k=this,d=k.hostElement.loggingStatus;d&&(d.isDefiningPropertyAccessor=!0);var W=k[A];W!==void 0&&(k.__data?k._setPendingProperty(A,W):(k.__dataProto!=null||(k.__dataProto={}),k.__dataProto[A]=W));d&&(d.isDefiningPropertyAccessor=!1);Object.defineProperty(this,A,{get:function(){X_r(k.hostElement,A);return this.__data[A]},
set:function(z){H||this._setPendingProperty(A,z,!0)&&this._invalidateProperties()}})},
created:function(){var A=this._setPendingProperty.bind(this);this._setPendingProperty=function(H,k,d){zn(this.hostElement,H);return A.apply(this,[H,k,d])}}}};
Sqm=function(A){Pvm()&&_.P(q0.prototype)(A.prototype,"__templateBindingLoggingBehavior")};
CvI=function(A,H){if(H.resolvedFactories.length!==A.resolvedFactories.length)return!0;H=_.r(H.resolvedFactories.entries());for(var k=H.next();!k.done;k=H.next()){var d=_.r(k.value);k=d.next().value;d=d.next().value;if(d.providerClass){if(d.providerClass!==A.resolvedFactories[k].providerClass)return!0}else if(d.providerValue){if(d.providerValue!==A.resolvedFactories[k].providerValue)return!0}else if(d.factory!==A.resolvedFactories[k].factory)return!0}return!1};
KPC=function(A,H){A=_.r(A);for(var k=A.next();!k.done;k=A.next())if(k=k.value,k.constructor===Array)KPC(k,H);else{var d=H;d.has(k)||(k.inject&&d.add(k),k.behaviors&&KPC(k.behaviors,d))}};
ru=function(A,H){var k=A[H];A[H]=function(){var d=_.o7.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(k)return k.apply(this,d)}};
Qev=function(){_.uy.Class=function(k,d){k=aBr(k,d);ru(k.prototype,"created");return k};
ru(BW.prototype,"_initializeProperties");ru(_.eD.prototype,"_initializeProperties");if(chA)ru(p_I,"created");else{var A=function(){ru(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))A();else{var H=customElements.define;customElements.define=function(k,d,W){H.call(customElements,k,d,W);k==="tp-yt-iron-list"&&(A(),customElements.define=H)}}}};
ExA=function(A,H){A.prototype.behaviors=A.prototype.behaviors||[];A.prototype.behaviors.unshift(V6I.InjectBehavior);A.prototype.provide=H};
_.h6=function(A){return function(H){if(!A.disableElementRegistration){A.noInjection||ExA(H,A.providers);var k=H.prototype;k.__templateHelpers||cKm(x9.prototype)(k,"__templateHelpers");k=A.is;U8V||(U8V=Date.now());(LH(k)+U8V)%100<_.H5("polymer_log_prop_change_observer_percent")&&cKm(iy.prototype)(H.prototype,"__propertyObserverObserver");H.prototype.behaviors=H.prototype.behaviors||[];H.prototype.behaviors.unshift(_.lBI.YtHostElementBehavior);Sqm(H);yhA({is:A.is,notifyObserversOnUndefined:A.notifyObserversOnUndefined!==
!1,fastInit:A.fastInit,template:A.template,disableEnforceFastDefaultValuesCheck:!0})(H)}}};
_.O6=function(A){return _.h6({is:A.is,template:A.template,disableElementRegistration:A.disableElementRegistration,cssBuildOptOut:A.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
M6N=function(A,H){if(t6b){A=new A;for(var k=_.r(Object.getOwnPropertyNames(A)),d=k.next();!d.done;d=k.next())d=d.value,H[d]=A[d];for(k=H;k&&k!==Object.prototype;k=Object.getPrototypeOf(k)){d=_.r(Object.getOwnPropertyNames(k));for(var W=d.next();!W.done;W=d.next())W=W.value,A.hasOwnProperty(W)||Object.defineProperty(A,W,NrX(H,W))}}else A.apply(H)};
NrX=function(A,H){return{get:function(){var k=A[H];return k instanceof Function?k.bind(A):k},
set:function(k){A[H]=k}}};
ZbX=function(A,H){for(var k=A._noAccessors,d=_.r(Object.getOwnPropertyNames(A)),W=d.next();!W.done;W=d.next())if(W=W.value,!nxv.has(W))if(k)H[W]=A[W];else{var z=Object.getOwnPropertyDescriptor(A,W);z&&(z.configurable=!0,Object.defineProperty(H,W,z))}};
fBN=function(A,H,k){return function(d){if(k){var W=k();d.model=W}if(A[H])A[H](d,d.detail)}};
RO=function(A){var H=[];if(typeof A==="string")A.length>0&&H.push.apply(H,_.fV(A.split(".")));else{A=_.r(A);for(var k=A.next();!k.done;k=A.next())k=k.value,typeof k==="string"?H.push.apply(H,_.fV(k.split("."))):H.push(k)}return H};
w_m=function(A,H){if(H[H.length-1]!=="*"&&H[H.length-1]!=="splices"){for(var k=0;k<H.length;k++){if(!A)return;A=A[H[k]]}return A}};
oxX=function(A,H){if(A.length>H.length)return!1;for(var k=0;k<A.length;k++)if(A[k]!==H[k])return!1;return!0};
Aml=function(A,H,k){if(H.type==="compute"){var d=H.getter.bind(k);var W=H.args}else d=function(){return k[H.method.methodName].apply(k,_.fV(_.o7.apply(0,arguments)))},W=H.method.args;
$8I(A,H.propertyKey,d,W,H.value)};
sZI=function(A,H){if(H.readOnly){var k=Object.getOwnPropertyDescriptor(A.model,H.propertyKey);Object.defineProperty(A.model,H.propertyKey,{get:k.get,set:function(){}});
A.model[HUA(H.propertyKey)]=k.set}};
k$f=function(A,H,k){if(k){var d=H.propertyKey,W=H.selector;H=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.fV(H.selectorArgs.map(function(z){return{type:"path",path:z}})));
$8I(A,d,function(z){var u=_.o7.apply(1,arguments);return W.apply(null,[k.getState()].concat(_.fV(u)))},H)}};
WoX=function(A,H,k){var d=_.wY(H.propertyKey)+"-changed";dAX(A,function(W){var z={value:W.value,queueProperty:!0};W.path.split(".").length>1&&(z.path=W.path);k.dispatchEvent(new CustomEvent(d,{detail:z}))},[{type:"wildcard",
path:H.propertyKey}])};
znl=function(A,H,k){dAX(A,function(){k[H.method.methodName].apply(k,_.fV(_.o7.apply(0,arguments)))},H.method.args)};
HUA=function(A){return"_set"+(A.charAt(0).toUpperCase()+A.slice(1))};
qfr=function(){var A,H=ce(function(k){A=k},!1);
return[A,H]};
xAA=function(A){A=A.trim().replace(rmm,",").replace(uxb,"$1");var H=A[0];H==="-"&&(H=A[1]);if(H>="0"&&H<="9")return{type:"literal",value:Number(A)};if(H==="'"||H==='"')return{type:"literal",value:A.slice(1,-1)};if(H=A.match(BTl)){H=H[1];var k=enA[H];if(k)return{type:k,path:A.slice(0,-(H.length+1))}}return{type:"path",path:A}};
RnA=function(A){var H=A.match(iUl);if(H)return A={methodName:H[1],args:hnN},H[2].trim()&&(H=H[2].replace(OUX,"&comma;").split(","),A.args=H.map(xAA)),A};
TTI=function(A,H,k,d){d=d===void 0?!1:d;H=_.wY(H);var W=Tb;W&&(k=W(k,H,"attribute",A));Tn(A,k,H,d)};
Tn=function(A,H,k,d){H=mAr(H,d===void 0?!1:d);H===void 0?A.removeAttribute(k):A.setAttribute(k,H)};
mAr=function(A,H){switch(typeof A){case "object":case "function":if(A instanceof Date)return A.toString();if(A){if((H===void 0?0:H)&&!_.b("polymer_reflect_objects_as_boolean_killswitch"))return A?"":void 0;H=window.trustedTypes?window.trustedTypes.isHTML(A)||window.trustedTypes.isScript(A)||window.trustedTypes.isScriptURL(A):void 0;if(H)return A;try{return JSON.stringify(A)}catch(k){_.Pq(Error("Eg`"+A))}}break;case "boolean":return A?"":void 0;default:return A!==null&&A!==void 0?A.toString():void 0}};
JmI=function(A){if(A===void 0)throw Error("Fg");return A};
ymv=function(A,H,k,d){var W=gGI(d);if(W.length){d=k;var z="property";bUN.test(k)?z="attribute":k[k.length-1]==="$"&&(k=k.slice(0,-1),z="attribute");var u=Lor(W);u&&z==="attribute"&&(k==="class"&&A.hasAttribute("class")&&(u+=" "+A.getAttribute(k)),Tn(A,u,k));z==="attribute"&&d==="disable-upgrade$"&&A.setAttribute("disable-upgrade","");A.localName==="input"&&d==="value"&&A.setAttribute("value","");A.removeAttribute(d);z==="property"&&(k=_.o1(k));H=JmI(H);vGN(H,z,k,W);return!0}return k.slice(0,3)===
"on-"?(A.removeAttribute(k),(z=H).events!=null||(z.events=[]),H.events.push({name:k.slice(3),value:d}),!0):k==="id"?(H.id=d,!0):!1};
gGI=function(A){for(var H=[],k=0,d;(d=jZW.exec(A))!==null;){d.index>k&&H.push({type:"literal",value:A.slice(k,d.index)});var W=d[1][0];k=!!d[2];d=d[3].trim();if(W==="{")throw Error("Gg");(W=RnA(d))?H.push({type:"method",negate:k,signature:W}):H.push({type:"path",negate:k,path:d});k=jZW.lastIndex}k&&k<A.length&&(A=A.substring(k))&&H.push({type:"literal",value:A});return H};
Lor=function(A){for(var H="",k=0;k<A.length;k++){var d=A[k];d.type==="literal"&&(H+=d.value)}return H};
vGN=function(A,H,k,d){A.bindings!=null||(A.bindings=[]);A.bindings.push({kind:H,target:k,parts:d})};
FoI=function(A,H,k){var d=!1;if(A.localName==="template"){d=k;var W=H.stripWhitespace;W=Irf(A,W===void 0?!1:W);var z=A.content.ownerDocument.createDocumentFragment();W.content=z;z.appendChild(A.content);d&&(d.templateInfo=W);d=!0}else A.localName==="slot"&&(H.hasInsertionPoint=!0);if(A.firstChild&&(W=k,A.localName!=="script"&&A.localName!=="style")){z=0;for(var u=A.firstChild;u;){var B=u;if(B.localName==="template"){var h=B.getAttribute("is");if((u=h==="dom-if")||h==="dom-repeat"){B.removeAttribute("is");
h=B.ownerDocument.createElement("ps-"+h);B.parentNode.replaceChild(h,B);h.appendChild(B);var O=Array.from(B.attributes);O=_.r(O);for(var T=O.next();!T.done;T=O.next())T=T.value,u?YfA.has(T.name)&&Tn(h,T.value,T.name):PMW.has(T.name)?Tn(h,T.value,T.name):G$W.has(T.name),B.removeAttribute(T.name);u=h}else u=B}if(u.nodeType===Node.TEXT_NODE){B=void 0;h=A;for(O=u;((B=O.nextSibling)==null?void 0:B.nodeType)===Node.TEXT_NODE;)T=void 0,(T=O).textContent!=null||(T.textContent=""),O.nextSibling.textContent&&
(O.textContent+=O.nextSibling.textContent),h.removeChild(O.nextSibling);if(H.stripWhitespace&&u.textContent&&!u.textContent.trim()){A.removeChild(u);u=u.nextSibling;continue}}FoI(u,H,{parentIndex:z,parentInfo:W});u.parentNode&&z++;u=u.nextSibling}}var m;if((m=A.hasAttributes)==null?0:m.call(A)){m=k=JmI(k);W=!1;z=Array.from(A.attributes);z=_.r(z);for(B=z.next();!B.done;B=z.next())B=B.value,W=ymv(A,m,B.name,B.value)||W;d=W||d}A.nodeType===Node.TEXT_NODE&&(m=gGI(A.textContent),m.length&&(A.textContent=
Lor(m)||" ",k=JmI(k),vGN(k,"text","textContent",m),d=!0));k&&d&&(k.infoIndex=H.nodeInfoList.push(k)-1)};
Irf=function(A,H){H={nodeInfoList:[],stripWhitespace:(H===void 0?!1:H)||A.hasAttribute("strip-whitespace")};FoI(A.content,H);return H};
X6m=function(A){Object.assign(A,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
SfW=function(A,H,k){H.signalCache!=null||(H.signalCache={});var d=H.signalCache[k];if(!d){var W=k.split(".");d=!DAQ(A,W[0]);if(W.length>1&&d){var z=A.getPathMutationSignal(W);d=function(){var u=QM(A.owner,function(){return A.getWithPath([W[0]])}),B,h=(B=z())==null?void 0:B.value;
return{rootWasDefined:u!==void 0,value:h}}}else d=function(){var u=A.getWithPath(W);
return{rootWasDefined:u!==void 0,value:u}};
H.signalCache[k]=d}return d()};
KoN=function(A,H,k,d,W){H=H.parts.map(function(u,B){if(u.type==="literal"){k.partWasDefined!=null||(k.partWasDefined=[]);var h;(h=k.partWasDefined)[B]||(h[B]=u.value!==void 0);return u.value}var O;if(u.type==="method"){var T,m=(T=(O=k.partWasDefined)==null?void 0:O[B])!=null?T:!1;m||(m=u.signature.args.every(function(v){return v.type==="literal"}));
var J=!1,g=!0;O=u.signature.args.map(function(v){if(v.type==="literal")return v.value;if(v.type!=="path")throw Error("Hg`"+v.type);var y=SfW(A,k,v.path);v=y.value;y=y.rootWasDefined;J||(J=y);g&&(g=y);return v});
m||(m=W===1?g:J);k.partWasDefined!=null||(k.partWasDefined={});k.partWasDefined[B]=m;if(!m)return;O=(B=SfW(A,k,u.signature.methodName).value)&&typeof B==="function"?B.apply(d,O):void 0}else T=SfW(A,k,u.path),O=T.value,k.partWasDefined!=null||(k.partWasDefined={}),(m=k.partWasDefined)[B]||(m[B]=O!==void 0||T.rootWasDefined);u.negate&&(O=!O);return O});
if(H.length===1){var z;return((z=k.partWasDefined)==null?0:z[0])?H[0]:CMI}return H.join("")};
arI=function(A){return typeof A==="object"&&!!A&&"notifyPath"in A&&"canNotifyPath"in A};
cmf=function(A){return typeof A==="object"&&!!A&&"notifyPath"in A};
p6m=function(A){return"polymerController"in A};
QZX=function(A,H){H=""+RO(H)[0];if(arI(A))return A.canNotifyPath(H);if(p6m(A)&&arI(A.polymerController))return A.polymerController.canNotifyPath(H);if(cmf(A)){var k;return!((k=A.properties)==null||!k[H])}if(p6m(A)&&cmf(A.polymerController)){var d;return!((d=A.polymerController.properties)==null||!d[H])}return!1};
V2I=function(A,H,k){arI(A)||cmf(A)?A.notifyPath(H,k):p6m(A)&&(arI(A.polymerController)||cmf(A.polymerController))&&A.polymerController.notifyPath(H,k)};
UAX=function(A,H,k){if(k!==CMI){A.kind==="attribute"||A.target!=="textContent"&&(A.target!=="value"||H.localName!=="input"&&H.localName!=="textarea")||(k=k===void 0?"":k);var d,W=(d=EGb.Polymer)==null?void 0:d.sanitizeDOMValue;W&&(k=W(k,A.target,A.kind,H));if(A.kind==="attribute"){A=A.target;if(A==="class"||A==="name"||A==="slot")H=(0,_.t1)(H);Tn(H,k,A)}else if(A=A.target,k!==H[A]||typeof k==="object")H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!0,WW(H.localName,A,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
H[A]=k,H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!1)}};
lr8=function(A,H,k,d){var W=H.parts[0];if(H.parts.length!==1||W.type!=="path"||!QZX(k,H.target))return!1;var z=_.r(W.path.split(".")),u=z.next().value,B=MZ(z);if(DAQ(A,u))return!1;d.signalCache!=null||(d.signalCache={});z=d.signalCache[W.path];var h;z=(h=z)==null?void 0:h().value;if((z==null?void 0:z.path)!==void 0){d=RO(z.path);var O=RO(W.path);d=[H.target].concat(_.fV(d.slice(O.length-1)));V2I(k,d,W.negate?!z.value:z.value);return!0}var T=m$(A,u);var m=T.getChangeRecordSignal(B),J=!1;z=function(){if(!J){var v=
QM(A.owner,function(){return T.getWithPath([])});
J||(J=v!==void 0)}return{value:m(),rootWasDefined:J}};
d.signalCache[W.path]=z;d.partWasDefined!=null||(d.partWasDefined={});z=z();(O=d.partWasDefined)[0]||(O[0]=z.rootWasDefined);var g=QM(A.owner,function(){return T.getWithPath(B)});
d.partWasDefined[0]&&QM(A.owner,function(){return void UAX(H,k,W.negate?!g:g)});
return!0};
t2X=function(A,H,k,d,W,z){if(!lr8(A,H,k,d)){var u=KoN(A,H,d,W,z);QM(A.owner,function(){return void UAX(H,k,u)})}};
NTl=function(A,H,k,d,W,z){k=_.r(k);for(var u=k.next(),B={};!u.done;B={infoIndex:void 0},u=k.next()){u=u.value;var h=u.bindings;B.infoIndex=u.infoIndex;u=u.parentInfo;if(h){h=_.r(h);for(var O=h.next(),T={};!O.done;T={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},O=h.next()){T.b$jscomp$257=O.value;if(B.infoIndex===void 0)throw Error("Ig");T.bindingCtx$jscomp$4={};A.effect(function(m,J){return function(){W&&!W()||t2X(A,m.b$jscomp$257,H[J.infoIndex],m.bindingCtx$jscomp$4,d,z)}}(T,B))}}u&&NTl(A,H,[u],
d,W,z)}};
M2r=function(A,H){A=(H.parentInfo?M2r(A,H.parentInfo):A).firstChild;for(var k=0;A;A=A.nextSibling)if(H.parentIndex===k++)return A;throw Error("Jg");};
ZUI=function(A,H,k,d){A=document.importNode(A.content,!0);A.__noInsertionPoint=!(d==null?0:d.hasInsertionPoint);for(var W=Array(H.length),z={},u=0;u<H.length;u++){var B=H[u],h=M2r(A,B);W[u]=h;B.id&&(z[B.id]=h);if(B.templateInfo){var O=h.parentElement;O&&(O.templateInfo=B.templateInfo,O.parentSignalProxy=k,O.eventListenerHost=d.eventListenerHost,O.stampingEnabled=d.enabledSignal)}O=void 0;if((O=B.events)==null?0:O.length)for(O=0;O<B.events.length;O++){var T=B.events[O];nGr(d.eventListenerHost,h,T.name,
T.value,d.getModel)}}NTl(k,W,H,d.thisCtx,d.enabledSignal,d.methodInvocationRequirement);return{root:A,nodes:W,nodesById:z}};
w6l=function(A,H){A=A();var k;(k=frb.ShadyCSS)==null||k.prepareTemplate(A,H);H=Irf(A);return{template:A,nodeInfoList:H.nodeInfoList,hasInsertionPoint:H.hasInsertionPoint}};
A_I=function(){oGC=!1;for(var A=J6.length,H=0;H<A;H++){var k=J6[H];if(k)try{k()}catch(d){Promise.resolve().then(function(){throw d;})}}J6.splice(0,A);
$Al+=A};
d18=function(A){oGC||(oGC=!0,HJV.textContent=(sGA++).toString());J6.push(A);return kmW++};
_.L0=function(A,H,k){gu++;A=H?new WIm(gu,A,H,k):new zGV(gu,A);by.set(gu,A);return gu};
q0f=function(A){(A=by.get(A))&&A.cancel()};
u2V=function(A,H){A=r_W.get(A);return A?(H=A.get(H))?H:null:null};
_.vW=function(A,H,k,d){var W=u2V(A,H);if(!W){W=new Bav;var z=r_W.get(A);z||(z=new Map,r_W.set(A,z));z.set(H,W)}A=k.bind(A);W.run(A,d,void 0)};
_.eGI=function(A,H){var k;(k=u2V(A,H))==null||k.cancel()};
x1N=function(A){var H;(H=u2V(A,"doRender"))==null||H.flush()};
yu=function(A){var H;return(H=A.hostElement)!=null?H:A};
iJb=function(A){var H=A.indexOf(".");return H===-1?A:A.slice(0,H)};
hGC=function(A,H,k,d,W,z){z=(W=(d=z?iJb(H):H)?H:null)?A.get(W):A.__data[H];W&&z===void 0&&(z=k[H]);_.Ed(A.hostElement,NNC(d)+"-changed",{value:z,queueProperty:!0,path:W!=null?W:void 0},{bubbles:!1,composed:!1})};
OJ8=function(A,H){A.__isReflecting=!0;TTI(A.hostElement,H,A.__data[H]);A.__isReflecting=!1};
RGN=function(A){if(A._onIronRequestResizeNotifications){var H=A._onIronRequestResizeNotifications.bind(A);A._onIronRequestResizeNotifications=function(k){_.X_(k)!==A.hostElement&&H(k)}}A._ariaActiveAttributeChanged&&(A._ariaActiveAttributeChanged=A._ariaActiveAttributeChanged.bind(A.hostElement));
A._activeChanged&&(A._activeChanged=function(k){A.toggles?Tn(A.hostElement,k?"true":"false",A.ariaActiveAttribute):A.hostElement.removeAttribute(A.ariaActiveAttribute);A._changedButtonState()});
A._asyncClick&&(A._asyncClick=function(){_.L0(function(){A.hostElement.click()},1)});
!A.keyEventTarget||A.keyEventTarget instanceof EventTarget||(A.keyEventTarget=yu(A.keyEventTarget));A._disabledChanged&&(A._disabledChanged=A._disabledChanged.bind(A.hostElement));A._observeItems&&(A._observeItems=function(k){var d=yu(k);return _.WB(d).observeNodes(function(W){A._updateItems();A._updateSelected();_.Ed(d,"iron-items-changed",W,{bubbles:!1,cancelable:!1})})});
A._updateItems&&A._updateItems===_.jD._updateItems&&(A._updateItems=function(){var k=_.WB(A.hostElement).queryDistributedElements(A.selectable||"*");k=Array.prototype.filter.call(k,A._bindFilterItem);A._setItems(k)});
A._computeKeyboardClass&&(A._computeKeyboardClass=function(k){_.UJ(A.hostElement,"keyboard-focus",k)});
A.ensureRipple&&(A.ensureRipple=function(k){if(A.hasRipple&&!A.hasRipple()){if(!A._createRipple)return;A._ripple=A._createRipple();A._ripple.noink=A.noink;var d=A._rippleContainer||A.hostElement;d&&_.Va(d).appendChild(A._ripple)}var W;if(k&&((W=A._ripple)==null?0:W.uiDownAction)){d=_.Va(A._rippleContainer||A.hostElement);var z;W=(z=k.composedPath())==null?void 0:z[0];d.contains(W)&&A._ripple.uiDownAction(k)}});
A._updateMultiselectable&&(A._updateMultiselectable=function(k){k?A.hostElement.setAttribute("aria-multiselectable","true"):A.hostElement.removeAttribute("aria-multiselectable")})};
TaI=function(A,H,k){k=_.r(k);for(var d=k.next();!d.done;d=k.next())M6N(d.value.constructor,A);M6N(H.constructor,A)};
J_8=function(A,H){A=_.r(A);for(var k=A.next();!k.done;k=A.next())if(k=k.value,k.type==="signal"){var d=k.propertyKey;if(H.hasOwnProperty(d)&&H[d]!=null&&k.attributeType===Object){a:{d=H[d].constructor;for(var W=_.r(m1N),z=W.next();!z.done;z=W.next())if(z=z.value,d===z){d=z;break a}d=Object}k.attributeType=d}}};
gil=function(){};
bJW=function(A){var H;return(H=A.hostElement)!=null?H:A};
LIb=function(){throw Error("Ng");};
viI=function(A,H){A.constructor.prototype.useSignals=!0;var k=new A.constructor;TaI(k,A,H.behaviors);J_8(H.reactiveSchemas,k);k={};for(var d=_.r(H.reactiveSchemas),W=d.next();!W.done;W=d.next())W=W.value,W.type==="signal"&&(k[W.propertyKey]=W.attributeType);var z={copyPropertiesToProto:LIb,didRegister:!1,typesForSignals:k},u=["disable-upgrade"].concat(_.fV(H.observedAttributes)),B=function(h){PW.call(this,A,H,z,h)};
_.I(B,PW);_.nP.Object.defineProperties(B,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return u}}});
z.copyPropertiesToProto=function(){for(var h=0;h<H.behaviors.length;h++)ZbX(H.behaviors[h],B.prototype);ZbX(A,B.prototype)};
H.legacyOptimizations||z.copyPropertiesToProto();B.prototype.is=A.is;return B};
y_I=function(A,H){if(Object.getPrototypeOf(H.prototype).constructor!==_.a)throw Error("Og");H.prototype.is=A.is;return viI(H.prototype,A)};
jGV=function(A){return A.type==="compute"||A.type==="computeWithMethod"};
IgQ=function(A){for(var H=A.reactiveSchemas.filter(jGV),k=new Map,d=new Map,W=new Map,z=_.r(H),u=z.next();!u.done;u=z.next())u=u.value,k.set(u.propertyKey,u),d.set(u.propertyKey,[]),W.set(u.propertyKey,0);z=0;H=_.r(H);for(u=H.next();!u.done;u=H.next()){u=u.value;for(var B=_.r(u.type==="computeWithMethod"?u.method.args:u.args),h=B.next();!h.done;h=B.next())h=h.value,h.type!=="literal"&&(h=h.path.split(".")[0],d.has(h)&&(d.get(h).push(u.propertyKey),W.set(u.propertyKey,W.get(u.propertyKey)+1),z++))}u=
[].concat(_.fV(d.keys())).filter(function(O){return W.get(O)===0});
for(H=[];u.length;)for(B=u.shift(),H.push(k.get(B)),B=_.r(d.get(B)),h=B.next();!h.done;h=B.next())h=h.value,W.set(h,W.get(h)-1),z--,W.get(h)===0&&u.push(h);k=A.reactiveSchemas.filter(function(O){return!jGV(O)});
A.reactiveSchemas=[].concat(_.fV(k),_.fV(H))};
Y0N=function(A,H){if(H.properties)for(var k=_.r(Object.entries(H.properties)),d=k.next();!d.done;d=k.next()){var W=_.r(d.value);d=W.next().value;W=W.next().value;A.properties[d]=typeof W==="function"?{type:W}:W}H.observers&&A.observers.push.apply(A.observers,_.fV(H.observers));H.disabledPolySiReactions&&A.disabledPolySiReactions.push.apply(A.disabledPolySiReactions,_.fV(H.disabledPolySiReactions))};
PbN=function(A,H){for(var k=H.length-1;k>=0;k--){var d=H[k];Array.isArray(d)?PbN(A,d):A.indexOf(d)<0&&A.unshift(d)}};
GmW=function(A,H){A.reactiveSchemas=A.reactiveSchemas.filter(function(k){return k.type==="observe"&&H.includes(k.method.methodName)||jGV(k)&&H.includes(k.propertyKey)?!1:!0})};
XgX=function(A,H){var k=H.prototype,d,W,z={is:A.is,reactiveSchemas:[],observedAttributes:[],behaviors:[V6I.InjectBehavior,x9.prototype],disableElementRegistration:A.disableElementRegistration,provide:(d=A.providers)!=null?d:[],reactivityMode:A.reactivityMode,signalProperties:(W=k.signalProperties)!=null?W:[]};"template"in H?z.templateGetter=function(){return H.template}:A.getTemplate&&(z.templateGetter=A.getTemplate);
k.behaviors&&PbN(z.behaviors,k.behaviors);FIQ(z,H);return z};
FIQ=function(A,H){for(var k=H.prototype,d={properties:{},observers:[],disabledPolySiReactions:[]},W=_.r(A.behaviors),z=W.next();!z.done;z=W.next())Y0N(d,z.value);Y0N(d,k);if(A.signalProperties)for(k=_.r(A.signalProperties),W=k.next();!W.done;W=k.next())delete d.properties[W.value];k=_.r(Object.entries(d.properties));for(W=k.next();!W.done;W=k.next()){z=_.r(W.value);W=z.next().value;z=z.next().value;var u=void 0;if((u=A.signalProperties)==null||!u.includes(W)){u=void 0;var B=A,h=z.type;if(!h)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{h=Reflect.getMetadata("design:type",H,W);for(var O=_.r(D1l),T=O.next();!T.done;T=O.next())if(T=T.value,h===T){h=T;break a}h=Object}else h=String;z.computed||z.selector||(B.reactiveSchemas.push({type:"signal",propertyKey:W,value:z.value,attributeType:h,readOnly:z.readOnly}),B.observedAttributes.push(_.wY(W)));z.reflectToAttribute&&B.reactiveSchemas.push({type:"reflect",propertyKey:W});if(z.computed){h=RnA(z.computed);if(!h)throw Error("Pg");B.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:W,method:h,value:z.value})}z.observer&&B.reactiveSchemas.push({type:"observe",method:{methodName:z.observer,args:[{type:"path",path:W}]}});z.notify&&B.reactiveSchemas.push({type:"notify",propertyKey:W});z.selector&&B.reactiveSchemas.push({type:"redux",propertyKey:W,selector:z.selector,selectorArgs:(u=z.selectorArgs)!=null?u:[]})}}S0C&&IgQ(A);H=_.r(d.observers);for(W=H.next();!W.done;W=H.next())k=A,W=W.value,(z=RnA(W))?k.reactiveSchemas.push({type:"observe",method:z}):console.log('Warning: unable to parse observe declaration: "'+
W+'"');GmW(A,d.disabledPolySiReactions)};
Cbl=function(A,H){for(var k=0;k<H.length;k++){var d=H[k],W=void 0;(W=d).showHideApi!=null||(W.showHideApi={});W=void 0;!!A!==!((W=d.showHideApi)==null||!W.hideTemplateChildren)&&(d.nodeType===Node.TEXT_NODE?A?(d.showHideApi.polymerTextContent=d.textContent,d.textContent=""):(W=void 0,d.textContent=(W=d.showHideApi.polymerTextContent)!=null?W:null):d instanceof Element&&d.localName==="slot"?A?(d.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.t1)((0,_.t1)(d).parentNode).replaceChild(d.showHideApi.polymerReplaced,
d)):(W=d.showHideApi.polymerReplaced)&&(0,_.t1)((0,_.t1)(W).parentNode).replaceChild(d,W):d instanceof HTMLElement&&d.style&&(A?(d.showHideApi.polymerDisplay=d.style.display,d.style.display="none"):d.style.display=d.showHideApi.polymerDisplay));d.showHideApi.hideTemplateChildren=A;d.showHideChildren&&d.showHideChildren(A)}};
ag8=function(){if(!KIQ){var A=document.createElement("style");A.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(A);KIQ=!0}};
Gn=function(){return _.b("disable_hidden_dom_if_using_stamper")};
c_V=function(A,H){var k=_.FI().getState();return H?A.apply(null,[k].concat(_.fV(H))):A(k)};
Vjl=function(){if(pgb)return pgb;var A=_.r(_.RV(0,void 0,"MB1Hb")),H=A.next().value;A.next();var k=A.next().value;_.FI().subscribe(function(){QGV(k)});
return pgb=H};
QGV=function(A){EiV||(EiV=!0,Promise.resolve().then(function(){A(function(H){return H+1});
EiV=!1}))};
_.FI=function(){return U1v.getAppStore()};
lgf=function(A,H){return U1v.getSelectFn()(A,H)};
_.XI=function(A){U1v.getDispatchFn()(A)};
tjN=function(A,H){var k={},d;for(d in A)k[d]=H(A[d],d);return k};
_.DS=function(A,H){return function(){var k;return(k=_.pA(A))!=null?k:H}};
_.SD=function(A,H){var k=Object.assign({},A),d;for(d in H)H.hasOwnProperty(d)&&(k[d]=_.DS(A[d],H[d]));return k};
Naf=function(A,H,k,d){A instanceof Element&&(k.debugName||(k.debugName="<"+A.tagName.toLowerCase()+(A.tagName.includes("-")?">":"."+A.className+">")),_.b("ytwiz_enable_debug_component_props")&&(A.debugProps||(A.debugProps=tjN(H,function(W){return function(){return W()}})),H.data===void 0||"data"in A&&!A.isWebComponentWrapper||Object.defineProperty(A.debugProps,"data",{get:function(){return _.pA(H.data)},
set:function(W){var z;d==null||(z=d.data)==null||z.call(d,W)},
enumerable:!0,configurable:!0})))};
_.C0=function(A,H){if(A.length===0&&(H==null||!H.initial))return Nob(A,{debugName:H==null?void 0:H.debugName},"l");var k=_.r(Nob({source:function(){return A()},
computation:function(z,u){return(u==null?0:u.value)?A(u.value):(H==null?0:H.initial)?A(H.initial):z}},{debugName:H==null?void 0:H.debugName},"m")),d=k.next().value,W=k.next().value;
k=k.next().value;return[d,W,k]};
_.c=function(A,H){var k=function(d){return _.QS("ytComponent",{},function(W){var z=MjV={};var u;if(((u=k)==null?0:u.idomCompat)&&d.renderedFromIdom){var B;u=typeof k.idomCompat==="object"?(B=k)==null?void 0:B.idomCompat.callbacks:{};u=_.r(nil(d,u));B=u.next().value;var h=u.next().value;u=u.next().value;var O=ZJv(A,B);z.privateValue=O;MjV=void 0;Naf(O,B,k,h);W.addAttributes({debugName:k.debugName});W=VLm(O);W=Array.isArray(W)?W[0]:W;W[h3]||(W[h3]={});W[h3].updateSignalsFromIdomProps=u;fgV(B,O);return O}u=
tjN(d,wgm);B=ZJv(A,u);Naf(B,u,k);z.privateValue=B;MjV=void 0;W.addAttributes({debugName:k.debugName});fgV(u,B);return B})};
k.debugName=H===void 0?"":H;return k};
ZJv=function(A,H){A=A(H);return mF(A)};
oiI=function(A,H){A[H]||(A=new _.Ti("IDOM interop setter undefined. Key:",H),_.I3(A))};
wgm=function(A,H){return H==="children"||H==="ref"||typeof A==="function"||A===void 0?A:function(){return _.pA(A)}};
nil=function(A,H){var k={},d={},W={},z={},u;for(u in A){z={key$jscomp$954:z.key$jscomp$954};z.key$jscomp$954=u;var B=A[z.key$jscomp$954];if(z.key$jscomp$954==="children"||z.key$jscomp$954==="ref")k[z.key$jscomp$954]=B;else if(typeof B==="function")if(z.key$jscomp$954 in H||B.length>0)W[z.key$jscomp$954]=B,k[z.key$jscomp$954]=function(O){return function(){return W[O.key$jscomp$954].apply(W,_.fV(_.o7.apply(0,arguments)))}}(z);
else if(z.key$jscomp$954==="data"){var h=_.r(_.C0(B,{debugName:z.key$jscomp$954+":cwis"}));B=h.next().value;h=h.next().value;k[z.key$jscomp$954]=B;d[z.key$jscomp$954]=h}else k[z.key$jscomp$954]=B;else A[z.key$jscomp$954]===void 0&&z.key$jscomp$954 in H||(h=_.r(_.RV(A[z.key$jscomp$954],{debugName:z.key$jscomp$954+":cwis"},"eGMajf")),B=h.next().value,h=h.next().value,k[z.key$jscomp$954]=B,d[z.key$jscomp$954]=h)}return[k,d,function(O){var T={},m;for(m in O)T={key$jscomp$953:T.key$jscomp$953,val$jscomp$122:void 0},
T.key$jscomp$953=m,T.val$jscomp$122=O[T.key$jscomp$953],T.key$jscomp$953!=="children"&&T.key$jscomp$953!=="ref"&&(typeof T.val$jscomp$122==="function"?T.key$jscomp$953 in H?W[T.key$jscomp$953]=T.val$jscomp$122:T.val$jscomp$122.length>0&&(W[T.key$jscomp$953]=T.val$jscomp$122,_.Pq(new _.Ti("Callback detected that was not set in the idomCompat callbacks map. Key:",T.key$jscomp$953))):T.key$jscomp$953 in H&&T.val$jscomp$122===void 0||(oiI(d,T.key$jscomp$953),LA(function(J){return function(){d[J.key$jscomp$953](J.val$jscomp$122)}}(T))))}]};
HpA=function(A,H,k){var d=jMX(A.prototype,$1b,A.prototype.behaviors);d.prototype.is=H;d.prototype.localName=H;k&&Aur(d,k);return function(W){W&&(d.prototype.hostElement=W);var z=new d;z.root=z;z.hostElement=W;return z}};
Aur=function(A,H){var k;Object.defineProperty(A.prototype,"_template",{get:function(){k===void 0&&(k=H());return k},
set:function(d){k=d},
configurable:!0,enumerable:!0})};
zrX=function(A,H,k,d){function W(){if(!g){for(var v=new Set,y=_.r(T),X=y.next();!X.done;X=y.next()){X=X.value;for(var D=_.r(Object.getOwnPropertyNames(X)),K=D.next();!K.done;K=D.next()){K=K.value;var N=void 0,U=(N=Object.getOwnPropertyDescriptor(X,K))==null?void 0:N.value;U&&U instanceof Function&&!K0(K)&&(!B[K]||_.b("polymer_forward_method_killswitch"))&&v.add(K)}}y=_.r(Object.entries(Object.getOwnPropertyDescriptors(A.prototype)));for(X=y.next();!X.done;X=y.next())D=_.r(X.value),X=D.next().value,
D=D.next().value,D.value instanceof Function&&!K0(X)&&v.add(X);g=v}return g}
skC(A,H,d==null?void 0:d.providers);IIf(A.prototype,A,!0);var z=HpA(A,H,k),u,B=(u=A.prototype.properties)!=null?u:{},h,O,T=(O=(h=A.prototype.behaviors)==null?void 0:h.flat(Infinity))!=null?O:[];k=_.r(T);for(u=k.next();!u.done;u=k.next())B=Object.assign({},u.value.properties,B);var m=[].concat(_.fV(k6C),_.fV(Object.keys(B).map(function(v){return _.wY(v)}))),J=!1,g;
return{ctor:function(v,y){var X=z(v),D,K;v=[].concat(_.fV((D=d==null?void 0:d.allowedProps)!=null?D:[]),_.fV((K=d==null?void 0:d.allowedPropsFromBehaviors)!=null?K:[]));X.allowedProps=v.length>0?v:void 0;D={};K=_.r(m);for(v=K.next();!v.done;v=K.next())v=v.value,D[v]=_.o1(v);X.__dataAttributes=D;var N=X.ready.bind(X);X.ready=function(){y.beforeReady();N();if(k9(H)&&!J){var U=X.__templateInfo;if(U==null?0:U.hostProps){U=_.r(Object.keys(U.hostProps));for(var p=U.next();!p.done;p=U.next())WW(H,p.value,
"PROPERTY_ACCESS_GET_INTERNAL")}J=!0}};
X._overrideLegacyUndefined=!0;return X},
props:B,observedAttributes:m,getInitialMethods:W,getPropsToForwardBeforeRegister:function(){for(var v=[],y=new Set,X=_.r(Object.keys(B)),D=X.next();!D.done;D=X.next())D=D.value,v.push([D,B[D].readOnly]),y.add(D);X=W();D=_.r(Object.keys(Object.getOwnPropertyDescriptors(A.prototype)));for(var K=D.next();!K.done;K=D.next())K=K.value,!df8(K)||X.has(K)||y.has(K)||(v.push([K,!1]),y.add(K));y=_.r(WTX);for(X=y.next();!X.done;X=y.next())v.push([X.value,!0]);return v},
getPropsToForwardBeforeReady:function(v){for(var y=[],X=_.r(Object.entries(v)),D=X.next();!D.done;D=X.next()){var K=_.r(D.value);D=K.next().value;K=K.next().value;if(df8(D)&&!(K instanceof Function)&&(y.push([D,!1]),k9(H))){var N=K=void 0;(N=(K=v)._createPropertyAccessor)==null||N.call(K,D)}}return y},
shouldForwardProp:df8,shouldLog:k9}};
skC=function(A,H,k){ExA(A,k);A.prototype.behaviors.unshift(q2b);if(Pvm()){if(k9(H)){var d;(d=A.prototype).behaviors!=null||(d.behaviors=[]);A.prototype.behaviors.unshift(D88())}Sqm(A)}_.P(x9.prototype)(A.prototype,"__templateHelpers")};
K0=function(A){return ruv.has(A)||A.startsWith("__compute__")};
df8=function(A){return!K0(A)&&!A.startsWith("_")&&!A.endsWith("_")};
ipI=function(A,H){function k(){var J=h();J=_.r(J);for(var g=J.next();!g.done;g=J.next()){var v=_.r(g.value);g=v.next().value;v=v.next().value;u8f(m.prototype,g,v)}d=!0}
var d=!1,W=A.ctor,z=A.getInitialMethods,u=A.observedAttributes,B=A.getPropsToForwardBeforeReady,h=A.getPropsToForwardBeforeRegister,O=A.shouldForwardProp,T=A.shouldLog,m=function(){var J=HTMLElement.call(this)||this;J.didForwardDynamicProps=!1;J.loggingStatus={};d||k();J.inst=W(J,{beforeReady:function(){J.didForwardDynamicProps||(J.forwardDynamicProps(),J.didForwardDynamicProps=!0)}});
J.controllerProxy=FPV(J.inst,H);J.forwardMethods();return J};
_.I(m,HTMLElement);m.prototype.forwardMethods=function(){for(var J=this,g=_.r(this.inst.getExtraMethodsToForward()),v=g.next(),y={};!v.done;y={method$jscomp$65:void 0},v=g.next()){var X=_.r(v.value);v=X.next().value;X=X.next().value;y.method$jscomp$65=X;this[v]=function(D){return function(){return D.method$jscomp$65.call.apply(D.method$jscomp$65,[J.inst].concat(_.fV(_.o7.apply(0,arguments))))}}(y)}g=_.r(z());
for(y=g.next();!y.done;y=g.next())y=y.value,O(y)&&BRv(this,y),T(H)&&!K0(y)&&erQ(this.inst,y)};
m.prototype.forwardDynamicProps=function(){var J=B(this.inst);J=_.r(J);for(var g=J.next();!g.done;g=J.next()){var v=_.r(g.value);g=v.next().value;v=v.next().value;u8f(this,g,v);T(H)&&!K0(g)&&xfr(this.inst,g)}};
m.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
m.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
m.prototype.attributeChangedCallback=function(J,g,v){this.inst.attributeChangedCallbackWrapper(J,g,v)};
_.nP.Object.defineProperties(m.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return H}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.nP.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return u}}});
customElements.define(H,m)};
u8f=function(A,H,k){A.hasOwnProperty(H)||Object.defineProperty(A,H,{get:function(){var d,W=((d=A.is)!=null?d:A.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||WW(W,H,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,d=this.polymerController[H],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,d},
set:function(d){if(!k){var W,z=((W=A.is)!=null?W:A.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||WW(z,H,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=H,this.loggingStatus.bypassProxyController=!0,this.polymerController[H]!==d&&(W={},this.polymerController.setProperties((W[H]=d,W)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
BRv=function(A,H,k){var d=A.polymerController;A[H]=function(){var W=_.o7.apply(0,arguments);A.loggingStatus.currentExternalCall=H;A.loggingStatus.bypassProxyController=!0;var z,u=((z=A.is)!=null?z:A.tagName).toLowerCase();WW(u,H,"PROPERTY_ACCESS_CALL_EXTERNAL");var B;z=(B=k!=null?k:d[H])==null?void 0:B.call.apply(B,[d].concat(_.fV(W)));A.loggingStatus.currentExternalCall=void 0;A.loggingStatus.bypassProxyController=!1;return z}};
erQ=function(A,H){var k=A.hostElement,d=A[H];A[H]=function(){var W=_.o7.apply(0,arguments);if(k.loggingStatus.currentExternalCall!==H){var z,u=((z=k.is)!=null?z:k.tagName).toLowerCase();WW(u,H,"PROPERTY_ACCESS_CALL_INTERNAL")}return d==null?void 0:d.apply(A,W)}};
xfr=function(A,H){var k=Object.getOwnPropertyDescriptor(A,H);k&&!k.get&&Object.defineProperty(A,H,{get:function(){X_r(A.hostElement,H);return k.value},
set:function(d){zn(A.hostElement,H);k.value=d}})};
hr8=function(A){return _.b("poly_si_dom_repeat_detached_fix_killswitch")||A.tagName!=="PS-DOM-REPEAT"?A.tagName==="DOM-REPEAT":!0};
RrA=function(A,H){var k=Opv(A);A instanceof Element&&k.unshift(A);A=_.r(k.filter(hr8));for(var d=A.next();!d.done;d=A.next()){var W=void 0;d=_.r((W=d.value.__instances)!=null?W:[]);for(W=d.next();!W.done;W=d.next())if(W=W.value,W.root){W=Array.from(W.root.children);W=_.r(W);for(var z=W.next();!z.done;z=W.next())k.push.apply(k,_.fV(RrA(z.value,H)))}}return k.filter(function(u){return u.usePatchedLifecycles&&u.lifecycleIsConnected===H})};
Opv=function(A){var H=null;A instanceof Element?H=Element.prototype.querySelectorAll:A instanceof DocumentFragment&&(H=DocumentFragment.prototype.querySelectorAll);return H?Array.from(H.call(A,"*")):[]};
aO=function(A){_.Oi(function(){for(var H=_.r(RrA(A,!1)),k=H.next();!k.done;k=H.next()){k=k.value;k.lifecycleIsConnected=!0;try{var d=void 0,W=void 0,z=void 0,u=void 0;(d=(u=k.polymerController)!=null?u:k)==null||(z=(W=d).connectedCallback)==null||z.call(W)}catch(B){_.I3(B)}}})};
cW=function(A){_.Oi(function(){for(var H=_.r(RrA(A,!0)),k=H.next();!k.done;k=H.next()){k=k.value;k.lifecycleIsConnected=!1;try{var d=void 0,W=void 0,z=void 0,u=void 0;(d=(u=k.polymerController)!=null?u:k)==null||(z=(W=d).disconnectedCallback)==null||z.call(W)}catch(B){_.I3(B)}}})};
vCr=function(){if(!TRl){TRl=!0;var A=[Node];p0&&A.push(p0.Wrapper);var H=Node.prototype.insertBefore,k=Node.prototype.removeChild;A=_.r(A);for(var d=A.next(),W={};!d.done;W={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},d=A.next())d=d.value,W.nativeInsertBefore=d.prototype.insertBefore,d.prototype.insertBefore=function(u){return function(B,h){if(B instanceof DocumentFragment){var O=Array.from(B.children);B=u.nativeInsertBefore.call(this,B,h);
if(this.isConnected&&u.nativeInsertBefore===H)for(h=_.r(O),O=h.next();!O.done;O=h.next())aO(O.value);return B}O=B instanceof Element&&B.isConnected;h=u.nativeInsertBefore.call(this,B,h);O&&cW(B);this.isConnected&&aO(B);return h}}(W),W.nativeAppendChild=d.prototype.appendChild,d.prototype.appendChild=function(u){return function(B){if(B instanceof DocumentFragment){var h=Array.from(B.children);
B=u.nativeAppendChild.call(this,B);if(this.isConnected){h=_.r(h);for(var O=h.next();!O.done;O=h.next())aO(O.value)}return B}h=B instanceof Element&&B.isConnected;O=u.nativeAppendChild.call(this,B);h&&cW(B);this.isConnected&&aO(B);return O}}(W),W.nativeRemoveChild=d.prototype.removeChild,d.prototype.removeChild=function(u){return function(B){var h=B instanceof Element&&B.isConnected,O=u.nativeRemoveChild.call(this,B);
h&&k===u.nativeRemoveChild&&cW(B);return O}}(W),W.nativeReplaceChild=d.prototype.replaceChild,d.prototype.replaceChild=function(u){return function(B,h){if(B instanceof DocumentFragment){var O=Array.from(B.children);
B=u.nativeReplaceChild.call(this,B,h);if(this.isConnected)for(cW(h),h=_.r(O),O=h.next();!O.done;O=h.next())aO(O.value);return B}O=B instanceof Element&&B.isConnected;var T=this.isConnected,m=u.nativeReplaceChild.call(this,B,h);T&&cW(h);O&&cW(B);T&&aO(B);return m}}(W);
A=[Element];p0&&A.push(p0.Wrapper);A=_.r(A);d=A.next();for(W={};!d.done;W={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},d=A.next())d=d.value,d.prototype.before=mfr(d.prototype.before),d.prototype.after=mfr(d.prototype.after),W.nativeReplaceWith=d.prototype.replaceWith,d.prototype.replaceWith=function(u){return function(){var B=_.o7.apply(0,arguments),h=_.r(JuI(B)),O=h.next().value,
T=h.next().value;h=this.isConnected;u.nativeReplaceWith.apply(this,B);B=_.r(T);for(T=B.next();!T.done;T=B.next())cW(T.value);if(h)for(cW(this),O=_.r(O),h=O.next();!h.done;h=O.next())h=h.value,h instanceof Element&&aO(h)}}(W),W.nativeRemove=d.prototype.remove,d.prototype.remove=function(u){return function(){var B=this.isConnected;
u.nativeRemove.call(this);B&&cW(this)}}(W),W.nativeInsertAdjacentElement=d.prototype.insertAdjacentElement,d.prototype.insertAdjacentElement=function(u){return function(B,h){var O=h.isConnected;
B=u.nativeInsertAdjacentElement.call(this,B,h);O&&cW(h);B.isConnected&&aO(B);return B}}(W),W.nativeSetAttribute=d.prototype.setAttribute,d.prototype.setAttribute=function(u){return function(B,h){var O=gCA(this);
if(!O.usePatchedLifecycles)return u.nativeSetAttribute.call(this,B,h);var T=this.getAttribute(B);u.nativeSetAttribute.call(this,B,h);h=this.getAttribute(B);bpm(O,B,T,h)}}(W),W.nativeRemoveAttribute=d.prototype.removeAttribute,d.prototype.removeAttribute=function(u){return function(B){var h=gCA(this);
if(!h.usePatchedLifecycles)return u.nativeRemoveAttribute.call(this,B);var O=this.getAttribute(B);u.nativeRemoveAttribute.call(this,B);O!==null&&bpm(h,B,O,null)}}(W),W.nativeToggleAttribute=d.prototype.toggleAttribute,d.prototype.toggleAttribute=function(u){return function(B,h){var O=gCA(this);
if(!this.usePatchedLifecycles)return u.nativeToggleAttribute.call(this,B,h);var T=this.getAttribute(B),m=T!==null;h=u.nativeToggleAttribute.call(this,B,h);h!==m&&bpm(O,B,T,h?"":null);return h}}(W);
A=[Document,DocumentFragment,Element,ShadowRoot];p0&&A.push(p0.Wrapper);A=_.r(A);for(W=A.next();!W.done;W=A.next())W=W.value,W.prototype.prepend=mfr(W.prototype.prepend),W.prototype.append=mfr(W.prototype.append);(p0==null?void 0:p0.noPatch)===!0&&LTf();document.readyState==="complete"?aO(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&aO(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||cW(this);z.set.call(this,u);return u}})}};
mfr=function(A){return function(){var H=_.o7.apply(0,arguments),k=_.r(JuI(H)),d=k.next().value;k=k.next().value;A.apply(this,H);H=_.r(k);for(k=H.next();!k.done;k=H.next())cW(k.value);if(this.isConnected)for(d=_.r(d),H=d.next();!H.done;H=d.next())H=H.value,H instanceof Element&&aO(H)}};
LTf=function(){for(var A=_.r(yuA),H=A.next();!H.done;H=A.next()){H=H.value.prototype;for(var k=_.r(jkX),d=k.next();!d.done;d=k.next()){d=d.value;var W=Object.getOwnPropertyDescriptor(H,d);W&&Object.defineProperty(H,"__shady_native_"+d,W)}}};
bpm=function(A,H,k,d){var W,z;if((W=A.polymerController)==null?0:(z=W.observedAttributes)==null?0:z.includes(H))if(A=A.polymerController,A.attributeChangedCallbackWrapper)A.attributeChangedCallbackWrapper.call(A,H,k,d);else{var u;(u=A.attributeChangedCallback)==null||u.call(A,H,k,d)}};
JuI=function(A){var H=[],k=[];A=_.r(A);for(var d=A.next();!d.done;d=A.next())d=d.value,d instanceof Element&&d.isConnected&&k.push(d),d instanceof DocumentFragment?H.push.apply(H,_.fV(Array.from(d.children))):H.push(d);return[H,k]};
gCA=function(A){return!(A instanceof Element)&&A.node instanceof Element?A.node:A};
Imv=function(A,H){var k=H?["children"].concat(_.fV(H)):["children"];H=[];k=_.r(k);for(var d=k.next();!d.done;d=k.next()){var W=d.value;if(A.hasOwnProperty(W)){W==="children"?d=_.x(_.sD,null,A[W]):(d=A[W],d=typeof d==="function"?d():d,d=Array.isArray(d)?d:[d]);d=mF(d).flat();if(W!=="children"){W=NNC(W);for(var z=_.r(d),u=z.next();!u.done;u=z.next())u=u.value,u instanceof Element&&u.setAttribute("slot",W)}H.push(d)}}H.length===0?A=[]:(A=mF(_.x("div",null,H)),A=Array.from(A.childNodes));return A};
PWQ=function(A,H,k){var d={};_.SC(function(){var W={},z;for(z in H)if(H.hasOwnProperty(z)){var u=void 0,B=void 0;if(!(((u=k.slotProps)==null?0:u.includes(z))||z==="children"||((B=k.callbackProps)==null?0:B.includes(z))||z==="ref")&&(u=_.pA(H[z]),d[z]!==u)){d[z]=u;B=void 0;var h=(B=A.hostElement)!=null?B:A;!k.skipHostForwardedProps&&Y2r.has(z)&&(h[z]=u);W[z]=u}}LA(function(){if(A.setProperties)A.setProperties(W);else for(var O=_.r(Object.entries(W)),T=O.next();!T.done;T=O.next()){var m=_.r(T.value);
T=m.next().value;m=m.next().value;A[T]=m}})},"n")};
FTl=function(A,H,k,d){var W=Imv(k,d.slotProps),z=(0,_.t1)(A);W=_.r(W);for(var u=W.next();!u.done;u=W.next())z.appendChild(u.value);PWQ(H,k,d);d=_.r(d.callbackProps||[]);W=d.next();for(z={};!W.done;z={kebabEventName:void 0,eventListener:void 0},W=d.next())u=W=W.value,String(W).substring(0,2)==="on"&&k[u]?(z.kebabEventName=NNC(String(W).substring(2)),z.eventListener=k[u],A.addEventListener(z.kebabEventName,z.eventListener),_.aV(function(T){return function(){A.removeEventListener(T.kebabEventName,T.eventListener)}}(z))):
H[u]=k[u];
if(k.ref){k=_.r(G68(k.ref));var B=k.next().value,h=k.next().value,O=H.attached.bind(H);H.attached=function(){B(A);O()};
_.aV(function(){h()})}};
G68=function(A){if(typeof A==="function"){var H;return[function(k){H=A(k)},
function(){var k;(k=H)==null||k()}]}if(!A.onRender||!A.onUnmount)throw Error("Tg");
return[A.onRender,A.onUnmount]};
X7r=function(A,H){H=H===void 0?{}:H;var k=function(d){var W=document.createElement(A),z;var u=(z=W.polymerController)!=null?z:W;FTl(W,u,d,H);return W};
k.debugName=A;return k};
KTv=function(A,H,k,d,W){d=d===void 0?{}:d;var z=Dfr,u=!1;z?(u=!0,Dfr=void 0):(S2f=H,z=document.createElement(H),S2f=void 0);var B=z;B.usePatchedLifecycles=!0;B.lifecycleIsConnected=!1;z.loggingStatus={};var h=CWA(A,H,z,d,W);_.aV(function(){B.lifecycleIsConnected&&(B.lifecycleIsConnected=!1,h.disconnectedCallback())});
u||(z.__noInsertionPoint=!0,FTl(z,h,k,d));return z};
CWA=function(A,H,k,d,W){W=W===void 0?zrX:W;amI[H]!=null||(amI[H]=W(A,H,d==null?void 0:d.getTemplate,d));var z=amI[H],u=z.ctor;W=z.getInitialMethods;var B=z.getPropsToForwardBeforeReady;A=z.getPropsToForwardBeforeRegister;d=z.shouldForwardProp;var h=z.observedAttributes,O=z.shouldLog,T=u(k,{beforeReady:function(){var m=T;m._takeAttributes?m._takeAttributes():m.setPropertiesFromInitialAttributeValues&&m.setPropertiesFromInitialAttributeValues();m=_.r(B(k.polymerController));for(var J=m.next();!J.done;J=
m.next()){var g=_.r(J.value);J=g.next().value;g=g.next().value;u8f(k,J,g);O(H)&&!K0(J)&&xfr(k.polymerController,J)}k.polymerController=FPV(T,H)}});
k.polymerController=T;k.polymerController.observedAttributes=h;z=_.r(T.getExtraMethodsToForward());for(u=z.next();!u.done;u=z.next())h=_.r(u.value),u=h.next().value,h=h.next().value,BRv(k,u,h);W=_.r(W());for(z=W.next();!z.done;z=W.next())z=z.value,d(z)&&BRv(k,z),O(H)&&!K0(z)&&erQ(T,z);A=_.r(A());for(d=A.next();!d.done;d=A.next())W=_.r(d.value),d=W.next().value,W=W.next().value,u8f(k,d,W);return T};
cuI=function(A){var H=Qu;Qu=A;return H};
VTb=function(A){if(p78.has(A)&&Qu&&Qkf(Qu)===A){var H;(H=Qu)._numRenders!=null||(H._numRenders=0);Qu._numRenders++;if(Qu._numRenders>1)throw Error("Ug");return Qu}};
UfV=function(A){var H=Qkf(A);Qu!==A&&H.includes("-")&&ECI.set(A,!0)};
Qkf=function(A){var H;return(H=A==null?void 0:A.tagName.toLowerCase())!=null?H:""};
lmN=function(A,H){if(A.componentType===yM)throw Error("Vg");p78.add(H);var k=function(){var d=HTMLElement.call(this)||this;d.is=H;if(S2f===H)return d.isInert=!0,d;d.createElement();return d};
_.I(k,HTMLElement);k.prototype.createElement=function(){if(!this.isInert){Dfr=this;var d=_.r(AZV(function(){return _.x(A,null)})).next().value;
Dfr=void 0;X6m(this);return d}};
customElements.define(H,k)};
NRQ=function(A,H,k,d,W){A.prototype.is=H;(d==null?0:d.useSink)?tTC(A,H,k,d,W):(k=zrX(A,H,k,d),ipI(k,H));return A};
tTC=function(A,H,k,d,W){vCr();var z=_.c(function(u){return KTv(A,H,u,Object.assign({},d,{getTemplate:k}),W)},"o");
z.debugName=H;lmN(z,H);return z};
nCC=function(A){return!MTI.has(A)};
w7I=function(A,H,k,d){function W(){if(!m){for(var J=new Set(Zpl),g=_.r(z.behaviors),v=g.next();!v.done;v=g.next()){v=v.value;for(var y=_.r(Object.getOwnPropertyNames(v)),X=y.next();!X.done;X=y.next()){X=X.value;var D=void 0,K=(D=Object.getOwnPropertyDescriptor(v,X))==null?void 0:D.value;K&&K instanceof Function&&(!O[X]||_.b("polymer_forward_method_killswitch"))&&J.add(X)}}g=_.r(Object.entries(Object.getOwnPropertyDescriptors(A.prototype)));for(v=g.next();!v.done;v=g.next())y=_.r(v.value),v=y.next().value,
y=y.next().value,y.value instanceof Function&&J.add(v);m=J}return m}
var z=XgX({is:H,disableElementRegistration:!1,getTemplate:k,providers:d==null?void 0:d.providers,reactivityMode:d==null?void 0:d.reactivityMode},A);if((d==null?0:d.allowedProps)||(d==null?0:d.allowedPropsFromBehaviors)){var u,B;z.allowedProps=[].concat(_.fV((u=d.allowedProps)!=null?u:[]),_.fV((B=d.allowedPropsFromBehaviors)!=null?B:[]))}var h=y_I(z,A);H=h.observedAttributes;var O={};k=_.r(z.reactiveSchemas);for(d=k.next();!d.done;d=k.next())if(d=d.value,d.type==="signal")O[d.propertyKey]={readOnly:d.readOnly},
d.readOnly&&(O[HUA(d.propertyKey)]={readOnly:!0});else if(d.type==="compute"||d.type==="computeWithMethod"||d.type==="redux")O[d.propertyKey]={readOnly:!0};var T=z.reactiveSchemas.length,m;return{ctor:function(J,g){J=new h(J);J.beforeReady=g.beforeReady;return J},
props:O,observedAttributes:H,getInitialMethods:W,getPropsToForwardBeforeRegister:function(){for(var J=[],g=new Set,v=_.r(fmI),y=v.next();!y.done;y=v.next())y=y.value,J.push([y,y!=="observers"&&y!=="properties"]),g.add(y);v=_.r(Object.keys(O));for(y=v.next();!y.done;y=v.next())y=y.value,J.push([y,O[y].readOnly]),g.add(y);v=W();y=_.r(Object.keys(Object.getOwnPropertyDescriptors(A.prototype)));for(var X=y.next();!X.done;X=y.next())X=X.value,!nCC(X)||v.has(X)||g.has(X)||(J.push([X,!1]),g.add(X));J.push(["allowedProps",
!0]);return J},
getPropsToForwardBeforeReady:function(J){var g=[];J=_.r(Object.keys(J));for(var v=J.next();!v.done;v=J.next()){v=v.value;var y=W();nCC(v)&&!y.has(v)&&g.push([v,!1])}J=_.r(z.reactiveSchemas.slice(T));for(v=J.next();!v.done;v=J.next())v=v.value,v.type!=="compute"&&v.type!=="computeWithMethod"&&v.type!=="redux"&&v.type!=="signal"||g.push([v.propertyKey,v.type==="signal"?v.readOnly:!0]);return g},
shouldForwardProp:nCC,shouldLog:k9}};
_.Q=function(A,H,k,d){var W,z,u=(z=(W=d)==null?void 0:W.mode)!=null?z:0;d!=null||(d={});var B;(B=d).reactivityMode!=null||(B.reactivityMode=0);return u===1?NRQ(A,H,k,Object.assign({},d,{useSink:!0}),w7I):NRQ(A,H,k,Object.assign({},d,{useSink:u===2}))};
_.Vu=function(){return function(A,H,k,d){var W,z,u=(z=(W=d)==null?void 0:W.mode)!=null?z:2;d!=null||(d={});var B;(B=d).reactivityMode!=null||(B.reactivityMode=0);if(u===0)throw Error("Wg`"+u);return tTC(A,H,k,d,u===1?w7I:void 0)}};
_.E6=function(A){return _.b("force_all_poly_si_batches")&&A||document.documentElement.hasAttribute("use-signals")?!0:!A||_.b(A+"_holdback_enabled")&&_.b("kevlar_polysi_holdback")?!1:_.b(A)};
U6=function(A){return A?A.icon?A.icon.iconType.toLowerCase():A.customThumbnail?"member":"":""};
oC8=function(A){if(!A)return"";A=_.r(A);for(var H=A.next();!H.done;H=A.next())if((H=H.value)&&H.liveChatAuthorBadgeRenderer&&(H=U6(H.liveChatAuthorBadgeRenderer))&&H!=="verified")return H;return""};
$fA=function(A,H){if(!A)return null;var k;return((k=A.find(function(d){return d&&d.liveChatAuthorBadgeRenderer?U6(d.liveChatAuthorBadgeRenderer)===H:!1}))==null?void 0:k.liveChatAuthorBadgeRenderer)||null};
_.sTf=function(A){var H=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;A=lIf(A);H=lIf(H);var k=wJI(A.hex);H=wJI(H.hex);var d=H[0]/255;var W=H[1]/255,z=H[2]/255,u=Math.max(d,W,z),B=Math.min(d,W,z),h=0,O=0,T=.5*(u+B);u!=B&&(u==d?h=60*(W-z)/(u-B):u==W?h=60*(z-d)/(u-B)+120:u==z&&(h=60*(d-W)/(u-B)+240),O=0<T&&T<=.5?(u-B)/(2*T):(u-B)/(2-2*T));d=[Math.round(h+360)%360,O,T];k=ANb(k,H);for(A=HBC(A.hex);k<4.5;){A=d[2]>=.5?A.darker((4.5-k)/2):A.brighter((4.5-k)/2);k=A.toString();
W=Mmb(k);if(!W.length)throw Error("Yd`"+k);k=W;k=ANb(k,H)}return A.hex()};
ANb=function(A,H){A=_.SbQ(A);H=_.SbQ(H);return(Math.max(A,H)+.05)/(Math.min(A,H)+.05)};
_.ly=function(A){return"#"+("000000"+(A&16777215).toString(16)).slice(-6)};
_.kRr=function(A){for(var H=0,k=0;k<A.length;k++)H=A.charCodeAt(k)+((H<<5)-H);A="#";for(k=0;k<3;k++)A+=("00"+(H>>k*8&255).toString(16)).slice(-2);return A};
dzA=function(A){A=(A||"").split(":");A.length===1&&A.unshift("yt-icons");A[1]=A[1].toLowerCase();return A};
BMV=function(A,H){var k=(H=H===void 0?!1:H)?W2C:z3l,d=H?qrC:rNI;A.getIconNames().forEach(function(W){W=H?W:W.substring(W.indexOf(":")+1);A.name==="yt-icons"?u0l.add(W):W.includes("-filled")?k.add(W):d.add(W)})};
t6=function(A,H,k,d){k=k===void 0?!1:k;d=d===void 0?!1:d;var W,z,u;return _.e(function(B){if(B.nextAddress==1)return B.yield(e3I,2);if(d)return B.return(u0l.has(A));W=k?W2C:z3l;z=k?qrC:rNI;return H?(u=A.includes("-filled")?A:A.concat("-filled"),B.return(W.has(u))):B.return(z.has(A))})};
_.N0=function(A){if(xzI(A))return A.toString();var H=iBr.get(A);if(H)return H;H=A.toLowerCase();var k="yt-icons",d=H.replace(/_/g,"-");switch(A){case "MY_CHANNEL":H="account_circle";break;case "ADD_TO_LIBRARY":H="add";break;case "ALERT_WARN_RED":H="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":H="person_music";break;case "BLOCK_USER":H="block";break;case "CAPTIONS":H="closed_caption";break;case "CLOSED_CAPTION":k="av";H="closed-caption";break;case "COLLECTION":k="maps";H="layers";break;case "CONTACT":k=
"icons";H="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":k="yt-studio-system-icons";H=d.split("creator-studio-")[1];break;case "DISMISSAL":H="close";break;case "DO_NOT_DISTURB":H="block";break;case "DOGFOOD":k="icons";H="pets";break;case "DRAFT":H="paper_corner_folded";
break;case "EMPTY_LIKE":H="like_outline";break;case "EXIT_APP":H="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":H=d;break;case "GAMES":k="ytg";H="my-games";break;case "GO_TO_PAGE":H="arrow-forward";break;case "GROUP":k="social";break;case "HIDE":H="not_interested";break;case "INPUT_COMPONENT":k="icons";H="settings-input-component";break;case "KIDS_BLOCK":H="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":k="ytg";H="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":k=
"ytg";H="membership-post-purchase";break;case "MULTIVIEW":H="screen_multi_view";break;case "MY_LOCATION":k="maps";H=d;break;case "NOTIFICATIONS_INBOX":H="NOTIFICATIONS";break;case "NEXT":H="chevron_right";break;case "OFFLINE":H="power-settings-new";break;case "PAUSE":k="miniplayer";break;case "PAYMENT":k="icons";break;case "PHONE_DOWNLOAD":H="phone_download";break;case "PREMIUM_STANDALONE":k="yt-logos";H="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":k="yt-logos";H="premium_standalone_cairo";
break;case "QUESTION_ANSWER":H="question_answer";break;case "REDEEM":k="icons";H="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":H="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":H="library_add";break;case "SCHOOL":k="yt-sys-icons";H="creator_academy";break;case "SETTINGS_LIGHT":H="settings_applications";break;case "SETTINGS_MATERIAL":H="settings";break;case "SEARCH_HISTORY":H="watch_history";break;case "SHOPPING_BAG":H="bag";break;case "SOCIAL":case "PEOPLE":k=
"yt-icons";H="people";break;case "STAFF_PICK":k="ytg";H="spotlight";break;case "START_DVR":H="add";break;case "STOP_DVR":k="av";H="stop";break;case "TAB_LIKED":H="like";break;case "TAB_INBOX":H="mail";break;case "TERMS_OF_SERVICE":k="icons";H="description";break;case "TRENDING":H="fire";break;case "UNBLOCK_USER":H="remove";break;case "UNPLUGGED_DARK_THEME":k="image";H="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":H="live";break;case "UNPLUGGED_SPORTS":k="ytu";H="visibility-off";break;
case "VIDEOS":k="av";H="play-circle-filled";break;case "YOUTUBE":k="yt-logos";H="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":k="yt-logos-ext";H="yt-logo-red-updated";break;case "YOUTUBE_LOGO":k="yt-logos-ext";H="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":k="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":k="shorts";H=d;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":k="yt-sys-icons";H="youtube_improve_tv";break;case "OUTLINE_BAG":k=
"yt-sys-icons";H="bag";break;case "QUEUE_PLAY_LAST":k="yt-sys-icons";H="list_queue_last";break;case "SLASH_CIRCLE_LEFT":H="slash_circle_left";break;case "SPEED_1_POINT_2X":H="1_point_2x";break;case "SPEED_1_POINT_5X":H="1_point_5x";break;case "SPEED_1_POINT_8X":H="1_point_8x";break;case "SPEED_POINT_2X":H="point_2x";break;case "SPEED_POINT_5X":H="point_5x";break;case "SPEED_POINT_8X":H="point_8x";break;case "SPEED_1X":H="1x";break;case "SPEED_2X":H="2x";break;case "TAB_BOOKMARK":H="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":k="yt-sys-icons";H="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":k="yt-sys-icons";H="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":k="yt-sys-icons",H="tic_tac_toe"}H=k+":"+H;iBr.set(A,H);return H};
xzI=function(A){var H;_.b("kevlar_use_wil_icons")?H=!!_.wj().resolve(_.M0).resolveIcon({iconName:A.toString()}):H=!1;return H};
_.ZS=function(A,H,k,d){k=k===void 0?{}:k;d=d===void 0?!1:d;k===null&&(k={});var W=_.d2("kevlar_command_handler_command_banlist");W=_.r(W);for(var z=W.next();!z.done;z=W.next())if(z=A?A.hasOwnProperty(z.value):void 0,z)return!1;W=_.L(A.commandMetadata,_.wn);return d&&W!=null&&W.url?!1:!H.disableCommandHandlerOverride&&_.n0.instance?(d=_.n0.instance,k.form||(k.form={element:H}),k.form.element||(k.form.element=H),!k.clickedVisualElement&&H.visualElement&&(k.clickedVisualElement=H.visualElement),d.resolveCommand(A,
k),!0):!1};
h3W=function(A,H){A=f0(A);for(var k=_.r(A.visibilityMonitorKeys||[]),d=k.next();!d.done;d=k.next())H.unobserveByKey(d.value);A.visibilityMonitorKeys=void 0};
wu=function(A,H){if(_.hx()){if(_.b("kevlar_vimio_use_shared_monitor"))OBm(A,H.data);else if(!OBm(A,H.data))return;var k=H.data,d=R3f(k);if(_.b("enable_client_ve_spec_logging"))h3W(A,H.observer);else{var W=f0(A);W.trackedParams&&W.trackedParams!==d&&h3W(A,H.observer)}W=f0(A);!k||W.data&&W.data===k||(W.data=k);TMb(A,H);W.trackedParams=d}};
TMb=function(A,H){var k=H.observer;if(!k&&_.b("web_skip_missing_vimio_observer")){var d,W;_.Pq(new _.Ti("VisibilityObserver is not defined.",A.tagName,A.trackedParams,(d=H.data)==null?void 0:d.trackingParams,(W=H.data)==null?void 0:W.loggingDirectives))}else{var z=H.layer,u=H.visibilityCallback||function(){},B=H.prescanCallback,h=f0(A);
d=[];H.showOption&&d.push(k.observe(A,function(){H.skipLogging&&H.skipLogging()||_.oO().reportShown(h,void 0,z,7);u(!0)},H.showOption));
H.hideOption&&d.push(k.observe(A,function(){_.oO().reportHidden(h,void 0,z,7);u(!1)},H.hideOption));
H.prescanOption&&B&&d.push(k.observe(A,function(){B()},H.prescanOption));
h.visibilityMonitorKeys=d}};
OBm=function(A,H){A=f0(A);if(A.visualElement&&!H)return!0;if(!H)return!1;var k=!1;if(_.b("enable_client_ve_spec_logging")){var d,W;k=!!((d=H.loggingDirectives)==null?0:(W=d.clientVeSpec)==null?0:W.uiType)}d=R3f(H);if(!d&&!k)return!1;_.b("mweb_component_visibility_logging")&&(A.veContainer||(A.veContainer={}),A.veContainer.trackingParams=d);if(A.trackedParams&&A.trackedParams===d)return!1;var z;if(_.b("enable_client_ve_spec_logging")&&((z=A.visualElement)==null?0:z.isClientVe())){var u;z=(u=A.visualElement)==
null?void 0:u.getAsJspb();var B,h,O,T;if(_.QJ(z,2)===((B=H.loggingDirectives)==null?void 0:(h=B.clientVeSpec)==null?void 0:h.uiType)&&_.QJ(z,3,-1)===((O=H.loggingDirectives)==null?void 0:(T=O.clientVeSpec)==null?void 0:T.elementIndex))return!1}if(_.b("enable_client_ve_spec_logging")){var m,J;!A.visualElement&&((m=H.loggingDirectives)==null?0:(J=m.clientVeSpec)==null?0:J.uiType)&&(B=H.loggingDirectives.clientVeSpec,H=B.uiType,u=B.elementIndex,B=B.clientYoutubeData,A.visualElement=_.$9(_.A7(),{veType:H,
elementIndex:u,clientYouTubeData:B}))}return!0};
R3f=function(A){if(A==null?0:A.rendererContext){var H=_.L(A.rendererContext,_.H8);if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams}return(A==null?0:A.loggingDirectives)?A.loggingDirectives.trackingParams:A==null?void 0:A.trackingParams};
f0=function(A){var H;return(H=A.polymerController)!=null?H:A};
bBI=function(A){_.oO();if(_.ED(sR().JSC$13061_elementShouldLogGesture).bind(sR())(A,4)){mzf(A);var H=JNI(A);gAv.set(A,H)}};
mzf=function(A){gAv.has(A)&&(gAv.get(A).cancel("untrack hover element"),gAv.delete(A))};
JNI=function(A){var H,k=[],d=!1,W=new _.Wq(function(z,u){T4(A,"mouseenter",_.ED(function(){var B,h,O;return _.e(function(T){if(T.nextAddress==1)return H=(0,_.w2)(),B=L2m(A),k.push(B),h=vAW(A,function(){d=!0;u(Error("Xg"))}),T.yield(B,2);
if(T.nextAddress!=3)return h&&k5(h),O=yNN(A),k.push(O),T.yield(O,3);z();_.EN(T)})}))});
W.then(function(){var z=(0,_.w2)()-H;z=Math.round(z);if(!(500>z||6E5<=z)){var u=A.getScreenLayer?A.getScreenLayer():void 0;u=_.hx(u)||"";var B=jTr(_.oO(),A);_.GH(u,A.visualElement?A.visualElement:_.db(B),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:z}})}bBI(A)},function(){W8&&(W8(),W8=null);
d&&(mzf(A),bBI(A))});
return W};
L2m=function(A){var H;return(new _.Wq(function(k,d){W8=function(){d(Error("Yg"))};
H=_.IE.debounce(_.ED(function(){k5(W);k()}),1,100);
var W=_.Y3(A,"mousemove",H)})).thenCatch(function(){var k=_.IE.cancelDebouncedJobMap.get(H);
k&&_.IE.cancelJob(k)})};
yNN=function(A){var H;return(new _.Wq(function(k,d){W8=function(){d(Error("Zg"))};
H=T4(A,"mouseleave",_.ED(function(){k()}))})).thenCatch(function(){k5(H)})};
vAW=function(A,H){return T4(A,"mouseleave",_.ED(H))};
YrI=function(A){INr&&_.zA.cancel(INr);INr=_.zA.run(function(){_.Ed(A,"yt-visibility-refresh");INr=0})};
P4m=function(A){A=Number(A);return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
F2V=function(A){if(!A)return!1;if(_.L(A,_.GRb))return!0;var H;if(A=(H=_.L(A,_.nH))==null?void 0:H.commands)for(H=_.r(A),A=H.next();!A.done;A=H.next())if(_.L(A.value,_.GRb))return!0;return!1};
Xkf=function(A){var H=!0;H=H===void 0?!0:H;if(!A.useSignals&&!A.experimentalPropertiesChanged||_.b("experimental_templating_behavior_nopatch_killswitch")){var k=A._propertiesChanged;A._propertiesChanged=function(d,W,z){H?A.debounceRender():A.doRender();k&&k.call(A,d,W,z)}}};
DzQ=function(A,H){if(A.useSignals||A.experimentalPropertiesChanged)if(_.b("experimental_templating_behavior_nopatch_killswitch"))A.experimentalPropertiesChanged=function(){};
else return;var k=new Set,d=[A].concat(_.fV(A.behaviors));d=_.r(d);for(var W=d.next();!W.done;W=d.next()){W=W.value;for(var z in W.properties)k.has(z)||(A._addPropertyEffect(z,"function",H),k.add(z))}};
Srr=function(){var A=Polymer.Element,H=A._prepareTemplate;A._prepareTemplate=function(){H.call(this);var k=this.prototype;if(k.experimentalTemplatingInUse&&k.experimentalTemplatingInUse()&&k.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.I3(Error("$g"));else{k=this.template.content.childNodes;for(var d=k.length-1;d>=0;d--){var W=k[d];W.nodeName!=="STYLE"&&W.nodeName!=="LINK"&&W.nodeName!=="SCRIPT"&&W.nodeName!=="#comment"&&W.remove()}}}};
C4C=function(A){var H=!0;H=H===void 0?!0:H;Srr();var k=A.ready;A.ready=function(){this._template=null;k.call(this)};
DzQ(A,H?A.debounceRender:A.doRender)};
aNV=function(A,H,k){if(k===null||k===void 0)return k;var d=wuI(A.tagName.toLowerCase(),H,function(){throw Error("Vb");});
if(d===null)return k;d=K2N[d];var W;if((W=d.isUnwrappable)==null?0:W.call(d,k)){if(d.unwrap)return d.unwrap(k);throw Error("ch");}return d.filterString?d.filterString(A.tagName,H,String(k)):k};
cNf=function(A,H,k){var d=H[H.length-1]!=="$";k=aNV(A,H,k);d?A[H]=k:(d=k==null?null:String(k),Ei(A,H.slice(0,-1),d))};
rb=function(A){_.b("mweb_after_render_to_scheduler")?_.IE.addJob(function(){try{A()}catch(H){_.qt(H)}},8):(pkX.length===0&&requestAnimationFrame(function(){setTimeout(function(){var H=pkX.slice();
pkX.length=0;H=_.r(H);for(var k=H.next();!k.done;k=H.next()){k=k.value;try{k()}catch(d){_.qt(d)}}})}),pkX.push(A))};
QTX=function(A){if(A){var H=A.component;if(H){var k;H==null||(k=H.events)==null||k.publish("DISCONNECTED");var d;H==null||(d=H.onDisconnected)==null||d.call(H)}var W,z;(W=A.__spec)==null||(z=W.didUnmount)==null||z.call(W);for(H=0;H<A.childNodes.length;H++)QTX(A.childNodes[H])}};
_.uc=function(A,H,k){k===void 0?delete A[H.name]:A[H.name]=k};
_.B8=function(A){var H={androidIncludeFontPadding:!1},k=0,d=[],W=[],z=[];if(A.simpleText)return H.content=A.simpleText,H;if(A.runs===void 0)return H.content="",H;A=_.r(A.runs);for(var u=A.next();!u.done;u=A.next()){u=u.value;var B=u.text,h=void 0,O=(h=B)==null?void 0:h.length;if(B&&O){d.push(B);if(u.bold||u.italics||u.strikethrough||u.underline||u.textColor!=null&&u.textColor!==0||u.deemphasize){B=W;h=B.push;var T={startIndex:k,length:O};u.bold&&(T.weightLabel="FONT_WEIGHT_MEDIUM");u.italics&&(T.italic=
!0);u.strikethrough&&(T.strikethrough="LINE_STYLE_SINGLE");u.underline&&(T.underline="LINE_STYLE_SINGLE");u.textColor!=null&&u.textColor!==0?document.documentElement.hasAttribute("dark")?T.fontColor=u.darkModeTextColor||u.textColor:T.fontColor=u.textColor:u.deemphasize&&(document.documentElement.hasAttribute("dark")?T.fontColor=parseInt("ff"+NSm("#aaa").substring(1),16):T.fontColor=parseInt("ff"+NSm("#606060").substring(1),16));h.call(B,T)}u.navigationEndpoint&&(B=z,h=B.push,T={startIndex:k,length:O,
onTap:{innertubeCommand:u.navigationEndpoint}},u.loggingDirectives&&_.uc(T,Vxf,u.loggingDirectives),h.call(B,T));k+=O}}H.content=d.join("");H.styleRuns=W.length?W:void 0;H.commandRuns=z.length?z:void 0;return H};
UzI=function(A){if(A==null||!A.runs)return!0;A=_.r(A.runs);for(var H=A.next();!H.done;H=A.next())if(H=H.value,H.bracket||H.errorUnderline||H.deemphasize||_.L(H,ew)||_.L(H,EAb))return!1;return!0};
lNI=function(A,H){return function(k){var d=H.unit;if(d!==k)throw Error("fh`"+A+"`"+d+"`"+k);return H}};
x5=function(A){if(!((A==null?0:A.value)&&(A==null?0:A.unit)))return"";switch(A.unit){case "DIMENSION_UNIT_FRACTION":var H="%";break;default:H="px"}A=A.value;H==="%"&&(A*=100);return""+A+H};
txW=function(A){try{return A()}catch(H){_.Pq(H)}};
_.h7=function(A){var H=_.L(A,_.ic);if(H)return H;if((H=_.L(A,NMN))&&H.commands)return Mxr(H.commands);if((H=_.L(A,nAI))&&H.commands)return Mxr(H.commands);if((A=_.L(A,ZBW))&&A.identifier&&A.command&&(fN8||(fN8=[]),!fN8.includes(A.identifier)))return fN8.push(A.identifier),_.L(A.command,_.ic)};
Mxr=function(A){if(A.length!==0){var H=[];A=_.r(A);for(var k=A.next();!k.done;k=A.next())(k=_.h7(k.value))&&H.push(k);return{commandExecutorCommand:{commands:H}}}};
_.Ry=function(A){var H=A.defaultTarget,k=A.elementConfig,d=A.elementsCommand,W=A.skipOnClick,z=A.forceNewState,u=A.additionalCommandArgs,B=A.innertubeCommand||_.h7(d);if(B){A={};var h=wkl(B);d=h.navigatingCommand;h=h.href;d&&h?(A.href$=h,oAl(A,d,h,H),_.b("web_atagconfig_pointerdown")&&$z8(A,d),z&&(A["force-new-state$"]=!0)):(A.role$="button",A.href$="javascript:void(0);");_.L(B,AIm)&&(A["aria-haspopup$"]=!0);W||(A.onclick=function(O){var T={};if(H7W(O)){var m=(u==null?void 0:u.clickedVisualElement)||
(u==null?void 0:u.getClickedVisualElement)&&u.getClickedVisualElement();m&&(T={clickedVisualElement:m});T=Object.assign({},{form:{element:O.target,event:O,createScreenConfig:T}},u);O.preventDefault();_.OR(B,T)}});
return Object.assign({},k,A)}};
sub=function(A){if(A.length){if(A.length===1)return A[0];var H={};_.uc(H,_.nH,{commands:A});return H}};
TA=function(A){return A&&A.href$!=="javascript:void(0);"};
wkl=function(A){var H,k=((H=_.L(A,_.nH))==null?void 0:H.commands)||[A];A=_.r(k);for(H=A.next();!H.done;H=A.next()){H=H.value;var d=void 0,W=void 0;k=(W=_.L((d=H)==null?void 0:d.commandMetadata,_.wn))==null?void 0:W.url;_.b("web_remove_web_navigation_endpoint_data")||(d=void 0,k=k||((d=_.L(H,k7I))==null?void 0:d.url));if(k&&k!=="/service_ajax"){if(d=_.nx(k,dhV))return A=_.NR(d),{navigatingCommand:H,href:A};_.Pq(new _.Ti("AttributedString URL could not be sanitized",k))}}return{}};
H7W=function(A){return A.button!==void 0?A.button===0&&!(A.shiftKey||A.altKey||A.metaKey||A.ctrlKey):!(A.shiftKey||A.altKey||A.metaKey||A.ctrlKey)};
oAl=function(A,H,k,d){k=!ZR(k);var W,z,u;if((W=_.L(H,_.fm))!=null&&W.nofollow||(z=_.L(H,_.Yr))!=null&&z.nofollow||(u=_.L(H,_.KT))!=null&&u.nofollow||k)A.rel$="nofollow";var B;H=((B=_.L(H,_.KT))==null?void 0:B.target)==="TARGET_NEW_WINDOW"?"_blank":d===void 0?"":d;A.target$=H};
$z8=function(A,H){H.clickTrackingParams&&(A.params={itct:H.clickTrackingParams});A.onpointerdown=function(k){WXX(k)};
A._data=H};
zBl=function(A){(A.loggingUrls||[]).forEach(function(H){p5(H.baseUrl,H.attributionSrcMode)})};
WXX=function(A){var H=A.currentTarget;A=txW(function(){return H.href});
var k=H.params;A&&_.DZ(A,k||{},8,!0)};
_.mu=function(A,H){(A=_.h7(A))&&_.OR(A,H)};
_.OR=function(A,H){_.$l(_.J7,function(k){H?k.resolveCommand(A,H):k.resolveCommand(A)})};
BzA=function(A,H){var k=["yt-core-attributed-string__link"];H!=null&&H.noLinkColor||((H==null?0:H.isOverlay)?k.push("yt-core-attributed-string__link--overlay-call-to-action-color"):k.push("yt-core-attributed-string__link--call-to-action-color"),(H==null?0:H.linkInheritColor)&&k.push("yt-core-attributed-string--link-inherit-color"));k={className:k.join(" "),tabindex$:"0"};var d=A.onTap||A.onLongPress;if(!d)return k;var W=qnA(A);W&&(k["aria-label$"]=W);H=_.Ry({elementsCommand:d,elementConfig:k,skipOnClick:!(H==
null||!H.skipOnClick),forceNewState:!0});A.onLongPress&&(d=new rIQ(function(){var z=_.h7(A.onLongPress);z&&_.wj().resolve(_.J7).resolveCommand(z)}),H&&u6r(d,H));
return H||k};
qnA=function(A){var H,k;return(H=A.onTapOptions)==null?void 0:(k=H.accessibilityInfo)==null?void 0:k.accessibilityLabel};
eBl=function(A){var H=A;A<=16777215&&(H+=parseInt("ff000000",16));return _.h1(H)};
xhf=function(A){var H=A.isDarkTheme;var k=A.extension;A=A.runColor;var d=void 0;if(k=k==null?void 0:k.colorMap){H=H?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";k=_.r(k);for(var W=k.next();!W.done;W=k.next())if(W=W.value,H===W.key){d=W.value;break}}d==null&&A&&(d=A);if(d)return eBl(d)};
gb=function(A){var H=A.config;var k=A.image;var d=A.imageConfig;var W=A.imageWrapperConfig;var z=A.run;var u=A.tag;var B=A.textLength;var h=A.startIndex===void 0?0:A.startIndex;A=A.length;h===void 0&&(h=0);z={run:z,startIndex:h,endIndex:A!==void 0?h+A:B,tag:u};k&&(z.image=k);d&&(z.imageConfig=d);W&&(z.imageWrapperConfig=W);H&&(z.config=H);return z};
i7b=function(A,H){if(A.weight)return A.weight;switch(A.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 H?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
hBr=function(A){switch(A){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"}};
O7Q=function(A){switch(A){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"}};
yw=function(A,H,k){var d=H;A.content&&k&&(k=A.content.indexOf("\n"),k!==-1&&(d=Math.min(H,k)));if(!A.content||A.content.length<=d)H=A;else if(A.attachmentRuns||A.commandRuns||A.decorationRuns||A.styleRuns||A.paragraphStyleRuns){H=bc(A.content,d);k=d;var W=A.attachmentRuns;if(W){var z=[];W=_.r(W);for(var u=W.next();!u.done;u=W.next())u=Object.assign({},u.value),u.startIndex===void 0||u.startIndex>=k||(u.length||(u.length=0),u.length+u.startIndex>k&&(u.length=k-u.startIndex),z.push(u));k=z}else k=void 0;
z=RBf(d,A.commandRuns);W=d;var B=A.decorationRuns;if(B){u=[];B=_.r(B);for(var h=B.next();!h.done;h=B.next()){h=h.value;var O=_.L(h.textDecorator,L3);if(O&&O.startIndex!==void 0&&!(O.startIndex>=W)){h=Object.assign({},h,{textDecorator:{highlightTextDecorator:Object.assign({},O)}});O=_.L(h.textDecorator,L3);if(!O.length||O.length+O.startIndex>W)O.length=W-O.startIndex;u.push(h)}}W=u}else W=void 0;u=RBf(d,A.styleRuns);if(B=A.paragraphStyleRuns)for(A=[],B=_.r(B),h=B.next();!h.done;h=B.next()){var T=h.value;
h=Object.assign({},T);if(!(h.startIndex===void 0||h.startIndex>=d)){if(!h.length||h.length+h.startIndex>d)h.length=d-h.startIndex;O=[];var m=void 0,J=void 0;if((m=T)==null?0:(J=m.listGroup)==null?0:J.listItems)for(T=_.r(T.listGroup.listItems),m=T.next();!m.done;m=T.next())if(m=Object.assign({},m.value),!(m.startIndex===void 0||m.startIndex>=d)){if(!m.length||m.length+m.startIndex>d)m.length=d-m.startIndex;O.push(m)}O.length>0&&(h.listGroup||(h.listGroup={}),h.listGroup=Object.assign({},h.listGroup,
{listItems:O}));A.push(h)}}else A=void 0;H={content:H,attachmentRuns:k,commandRuns:z,decorationRuns:W,styleRuns:u,paragraphStyleRuns:A}}else H=Object.assign({},A,{content:bc(A.content,d)});return H};
RBf=function(A,H){if(H){var k=[];H=_.r(H);for(var d=H.next();!d.done;d=H.next())if(d=Object.assign({},d.value),!(d.startIndex===void 0||d.startIndex>=A)){if(!d.length||d.length+d.startIndex>A)d.length=A-d.startIndex;k.push(d)}return k}};
bc=function(A,H){var k=H,d;if(d=k>0)d=A.charCodeAt(k-1),d=d>=55296&&d<=56319;d&&(k=A.charCodeAt(k),d=k>=56320&&k<=57343);d&&--H;return A.substring(0,H)};
_.jw=function(A){return(A==null?void 0:A.content)!==void 0};
JIf=function(A){return function(H){var k=A.run;(k.onTap!==void 0||k.onLongPress!==void 0)&&_.L(k,Vxf)&&wu(H,{data:{loggingDirectives:_.L(k,Vxf)},observer:_.wj().resolve(tb),hideOption:TzI,showOption:mhC,layer:H.layer})}};
g_X=function(A){return function(H){for(var k in A)(Ev[k]||Ev[Ui["default"]])(H,k,A[k])}};
b7v=function(A,H,k,d){for(var W=_.r(A.parts),z=W.next();!z.done;z=W.next()){z=z.value;if(typeof z==="string")throw Error("hh");if(z.start<=H&&k<=z.end){b7v(z,H,k,d);return}}A.parts.push({data:d,parts:[],start:H,end:k})};
LXI=function(A,H){for(var k=H.parts.length;k>=0;k--){var d=H.parts[k],W=H.parts[k-1],z=k===H.parts.length?H.end:d.start;W=k===0?H.start:W.end;z!==W&&H.parts.splice(k,0,A.slice(W,z));d&&LXI(A,d)}};
v_Q=function(A){A.sort(function(H,k){if(H.startIndex<k.startIndex)return-1;if(k.startIndex<H.startIndex)return 1;H=H.endIndex-H.startIndex;k=k.endIndex-k.startIndex;return H>k?-1:k>H?1:0})};
_.yII=function(A){var H=A.thumbnails;if(H){A={sources:[]};H=_.r(H);for(var k=H.next();!k.done;k=H.next()){k=k.value;var d={};d.url=k.url;d.width=k.width;d.height=k.height;A.sources.push(d)}return A}};
jur=function(A,H,k,d){if(!H)return A.length>=1?A[A.length-1]:null;if(d)for(var W=_.r(A),z=W.next();!z.done;z=W.next()){z=z.value;var u=void 0,B=(u=z.url)==null?void 0:u.indexOf(d);if(B!==void 0&&B>=0)return z}d=_.r(A);for(W=d.next();!W.done;W=d.next())if(W=W.value,W.width&&W.height&&(k&&W.width>=H||!k&&W.height>=H))return W;for(H=A.length-1;H>=0;H--)if(k&&A[H].width||!k&&A[H].height)return A[H];return A[0]};
_.IXQ=function(A){var H;return(A=(H=A.sources)==null?void 0:H[0])?A.width/A.height:0};
_.Ynm=function(A){if(A.sources){A=_.r(A.sources);for(var H=A.next();!H.done;H=A.next()){H=H.value;var k=void 0;if((k=H.clientResource)==null?0:k.imageName)return H}}};
G7N=function(A){var H={};A=_.L(A.processor,PdV);var k=(A=A==null?void 0:(k=A.imageTint)==null?void 0:k.color)?_.h1(A):void 0;k&&(H.color=k);return H};
FX8=function(A){var H;if((H=A.clientResource)!=null&&H.imageColor)return _.h1(A.clientResource.imageColor)};
_.DhI=function(A,H,k,d,W,z,u){if(!H||H.length===0||H[0].clientResource)return null;if(k&&H[0].url)return H[0].url;d===void 0&&(d=!0);if(d){var B;A=Xhr*(W||(A==null?void 0:(B=A.getBoundingClientRect())==null?void 0:B.width)||0)}else{var h;A=Xhr*(z||(A==null?void 0:(h=A.getBoundingClientRect())==null?void 0:h.height)||0)}H=jur(H,A,d,u);return(H==null?0:H.url)?H.url:(H==null?0:H.imageData)?H.imageData:null};
SnW=function(A,H,k){k=k?[k]:[];A.opacity&&k.push("opacity: "+A.opacity+";");H&&A.placeholderColor?(A=_.h1(A.placeholderColor),k.push("background-color: "+A+";")):k.push("background-color: transparent;");return k.join(" ")};
CdW=function(A,H,k,d,W){var z=["ytCoreImageHost"];H&&z.push(H);k||z.push("ytCoreImageFillParentHeight");d||z.push("ytCoreImageFillParentWidth");switch(A.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")}A.flipForRtlLayout&&z.push("ytCoreImageFlipRtl");
switch(W){case "TOP_START":var u;z.push(((u=document.body)==null?void 0:u.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return z.join(" ")};
aXb=function(A){var H;if(A==null?0:(H=A.clientResource)==null?0:H.imageName){var k;A=(k=A.clientResource)==null?void 0:k.imageName;a:{switch(A){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":k="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":k="yt-logos-ext:yt-logo-updated";break a}k=void 0}return k||KXV.get(A)||A}};
QuW=function(A){return _.b("mweb_wiz_skip_render")?cIW(A):phl(A)};
cIW=function(A){return function(H){var k=vkC("wink-root");MU=le.lastChild;yWm();fvA(k,_.x(A,H))}};
phl=function(A){var H=H===void 0?!1:H;return function(k){if(!H||!_.b("mweb_skip_keto_to_c3_if_no_data")||k.data!==void 0){var d=dj(!1);try{var W=k.children;_.b("mweb_render_outside_patch_killswitch")||le?W?Vr(_.x(A,k,W)):Vr(_.x(A,k)):_.Pq(new _.Ti("ketoToC3 called outside of a patch",{tagName:A.TAG_NAME}))}finally{dj(d)}}}};
VlN=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
UhW=function(A,H){A.onViewportEntered=H;E_N.observe(A)};
lXI=function(){var A={rootMargin:"10%",threshold:.01};_.b("mweb_enable_set_io_root_to_null_safari")?A.root=null:_.b("mweb_enable_set_io_root_to_body_safari")&&(A.root=document.body);return new IntersectionObserver(function(H,k){H.filter(function(d){return d.intersectionRect.height>0}).forEach(function(d){d=d.target;
if(!_.b("mweb_enable_only_update_image_when_connected")||d.isConnected!==!1){var W;(W=d.onViewportEntered)==null||W.call(d);k.unobserve(d)}})},A)};
tlQ=function(A,H,k,d,W){function z(){if(d){var B=d.loadedClass,h=d.notifyOnUnloaded;B&&_.Iy(A,B);h&&A.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function u(){var B=k(H,A);B&&A.getAttribute("src")!==B&&(_.b("mweb_enable_only_update_image_when_connected")&&A.isConnected===!1||B===A.src||(A.src=B),z())}
W=W===void 0?!0:W;A.removeAttribute("src");z();H&&(W?UhW(A,u):u())};
NzI=function(A,H,k){if(!H)return!1;H=k(H,A);k=A.getAttribute("src");return H&&H===k&&A.complete};
MlX=function(A,H){for(var k in H)k==="className"?A.className=H[k]:(Ev[k]||Ev[Ui.default])(A,k,H[k])};
Z7N=function(A,H,k){k=k===void 0?!1:k;var d=A.sources!==void 0?A:_.yII(A);if(d){var W=H.onload;H.onload=function(O){var T=O.target;k&&T.naturalWidth===120||_.Y5(T,"ytCoreImageLoaded");H.notifyOnLoaded&&T.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));W==null||W(O)};
H.targetWidth&&H.preserveWidth&&(H.width=H.targetWidth);H.targetHeight&&H.preserveHeight&&(H.height=H.targetHeight);var z=_.Ynm(d),u=z&&aXb(z),B=G7N(d);if(u)return(A=FX8(z)||B.color)&&(H.color=A),{type:"icon",iconName:u,config:Object.assign({},H,H.alt?{}:{"aria-hidden$":"true"},{"aria-label$":H.alt,role:"img"})};if(A.sources===void 0){H.alt=A.accessibility&&A.accessibility.accessibilityData&&A.accessibility.accessibilityData.label||H.alt;H.style$=SnW(A,H.shouldShowPlaceholder,H.style$);var h;H.isPreloaded=
!((h=_.L(A,n_W))==null||!h.isPreloaded)}H.contentMode&&!d.contentMode&&(d.contentMode=H.contentMode);H.className=CdW(d,H.className,H.preserveHeight,H.preserveWidth,H.objectPosition);H.loadedClass="ytCoreImageLoaded";return{type:"image",image:d,config:H}}};
_.P8=function(){var A=_.o7.apply(0,arguments);return _.FQ(fX8,function(H){var k=A.map(function(d){return d==null?void 0:d(H)});
return function(){return void k.forEach(function(d){return void(d==null?void 0:d())})}})};
whN=function(A,H){var k=H==null?void 0:H.initial;return _.be(function(){_.pA(!0);return k=A(k)},{equals:H==null?void 0:H.isEqual},"rSlKsc")};
o_X=function(A,H){if(A===H)return!0;if(A===void 0||H===void 0)return!1;var k,d,W,z,u,B,h,O;return A.content===H.content&&((k=A.styleRuns)==null?void 0:k.length)===((d=H.styleRuns)==null?void 0:d.length)&&((W=A.commandRuns)==null?void 0:W.length)===((z=H.commandRuns)==null?void 0:z.length)&&((u=A.attachmentRuns)==null?void 0:u.length)===((B=H.attachmentRuns)==null?void 0:B.length)&&((h=A.decorationRuns)==null?void 0:h.length)===((O=H.decorationRuns)==null?void 0:O.length)};
AQA=function(A){return A.parts.map($hX)};
$hX=function(A){if(typeof A==="string")return A;var H=A.data;A=H.image!==void 0&&H.imageConfig!==void 0?_.x("span",{el:_.P8(g_X(A.data.imageWrapperConfig))},_.x(_.GA,Object.assign({},{data:A.data.image},A.data.imageConfig))):_.x(A.data.tag,{el:_.P8(JIf(A.data),g_X(A.data.config))},A.parts.map($hX));return mF(A)};
HDX=function(A,H){return A===H?!0:A===void 0||H===void 0?!1:A.noStyleRuns===H.noStyleRuns&&A.noLinkColor===H.noLinkColor&&A.noEndpoints===H.noEndpoints&&A.headerRuns===H.headerRuns&&A.isOverlay===H.isOverlay&&A.linkInheritColor===H.linkInheritColor&&A.userInput===H.userInput&&A.isHeadline===H.isHeadline};
sAQ=function(A){return function(){var H,k,d,W,z,u,B,h,O,T,m,J,g,v;return{ariaLabel:(H=A.ariaLabel)==null?void 0:H.call(A),className:(k=A.className)==null?void 0:k.call(A),ellipsisTruncate:(d=A.ellipsisTruncate)==null?void 0:d.call(A),isOverlay:(W=A.isOverlay)==null?void 0:W.call(A),linkInheritColor:(z=A.linkInheritColor)==null?void 0:z.call(A),noEndpoints:(u=A.noEndpoints)==null?void 0:u.call(A),noStyleRuns:(B=A.noStyleRuns)==null?void 0:B.call(A),noLinkColor:(h=A.noLinkColor)==null?void 0:h.call(A),
noPreWrap:(O=A.noPreWrap)==null?void 0:O.call(A),noWrap:(T=A.noWrap)==null?void 0:T.call(A),skipOnClick:(m=A.skipOnClick)==null?void 0:m.call(A),userInput:(J=A.userInput)==null?void 0:J.call(A),headerRuns:(g=A.headerRuns)==null?void 0:g.call(A),isHeadline:(v=A.isHeadline)==null?void 0:v.call(A)}}};
dSl=function(A,H){A=new kpv(A,H);_.I3(A);throw A;};
WZm=function(A,H,k){var d=cuI(A);A._numRenders=0;try{var W=AZV(function(){return _.x(H,Object.assign({},k))})}catch(u){var z=function(B){B.args||(B.args=[]);
B.args.push("Error in web component wrapper");B.args.push(A.tagName.toLowerCase());return B};
_.YJ(u instanceof Error?z(u):new kpv("Wiz rendering error",A.tagName.toLowerCase()));throw u;}finally{cuI(d)}return W};
_.Sw=function(A,H,k){function d(T){var m={};T=_.r(T);for(var J=T.next();!J.done;J=T.next()){J=J.value;var g=void 0,v=void 0,y=void 0,X=_.o1((y=(v=(g=J).getAttribute)==null?void 0:v.call(g,"slot"))!=null?y:"children");if(g=m[X])g.push(J);else if(X in z||X==="children")m[X]=[J]}T=_.r(Object.keys(m));X=T.next();for(J={};!X.done;J={content$jscomp$62:void 0},X=T.next())X=X.value,X!=="children"&&(J.content$jscomp$62=m[X],m[X]=function(D){return function(){return D.content$jscomp$62}}(J));
return m}
k=k===void 0?{}:k;A.debugName=H+" (CoW)";var W,z=(W=k.props)!=null?W:{};p78.add(H);var u=zTW();W=function(){var T=u.apply(this,arguments)||this;T.rawProps={};T.queuingRender=!1;T.dispose=function(){};
T.isWebComponentWrapper=!0;T.isReparenting=!1;T.hasRendered=!1;return T};
_.I(W,u);W.prototype.render=function(){this.hasRendered=!0;for(var T=_.r([].concat(_.fV(this.attributes))),m=T.next();!m.done;m=T.next())m=m.value,m.name!=="slot"&&m.name!=="hidden"&&this.removeAttribute(m.name);T=Object.assign({},this.componentProps,this.slotProps);m=_.r(WZm(this,A,T));T=m.next().value;m=m.next().value;!(T[0]instanceof Element)||T.length>1?dSl("Wrapped Wiz components must return a single root element.",H):(T=T[0].tagName.toLowerCase(),T!==H&&dSl("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(T+" !== '"+H),H),this.dispose=m)};
W.prototype.setUpProps=function(){for(var T=this.rawProps,m=this.attributes,J=_.r(Object.keys(z)),g=J.next();!g.done;g=J.next()){g=g.value;var v=void 0;((v=this)==null?0:v[g])&&this[g]!==q1N&&T[g]===void 0&&(T[g]=this[g],(v=Object.getOwnPropertyDescriptor(this.constructor.prototype,g))&&Object.defineProperty(this,g,v))}J=_.r(m);for(g=J.next();!g.done;g=J.next()){v=g.value;g=_.o1(v.name);var y=g==="class"&&!m.getNamedItem("class-name");if(g in z||y)v=v.value===""||v.value==="true"?!0:v.value==="false"?
!1:isNaN(Number(v.value))?v.value:Number(v.value),g!=="class"||T.className?T[g]=v:T.className=v}m={};for(var X in z)z[X]!==_.Fc&&z[X]!==rQN&&(T[X]instanceof Function&&dSl("Function props must be configured as STATIC, not SIGNAL.",H),g=_.r(_.RV(T[X],void 0,"thC4wf")),J=g.next().value,g=g.next().value,m[X]=g,T[X]=J);T=_.r([T,m]);this.componentProps=T.next().value;this.setters=T.next().value;this.slotProps=d(this.childNodes)};
W.prototype.connectedCallback=function(){ECI.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()))};
W.prototype.disconnectedCallback=function(){if(!ECI.has(this)){var T;a:{if(_.Xc)for(T=this;T;){if(_.Df.has(T)){T=!0;break a}T=T.parentElement}T=!1}if(T)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){T=_.r([].concat(_.fV(this.attributes)));for(var m=T.next();!m.done;m=T.next()){m=m.value;var J=void 0;m.name==="slot"||m.name==="hidden"&&((J=k.unsafeExternallySettableAttributes)==null?0:J.has("hidden"))||this.removeAttribute(m.name)}}this.innerText="";X6m(this)}}};
W.prototype._setPendingPropertyOrPath=function(){};
W.prototype.notifyPath=function(){};
_.nP.Object.defineProperties(W.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
var B=Object.keys(z);B.includes("className")&&B.push("class");B=_.r(B);for(var h=B.next(),O={};!h.done;O={prop$jscomp$109:void 0},h=B.next())O.prop$jscomp$109=h.value,h=void 0,((h=k.legacyPolymer)==null?0:h.forwardHostProps)&&Y2r.has(O.prop$jscomp$109)||Object.defineProperty(W.prototype,O.prop$jscomp$109,{set:function(T){return function(m){var J=this;ECI.has(this)||(T.prop$jscomp$109==="class"&&(T.prop$jscomp$109="className"),this.setters?LA(function(){var g,v;return void((v=(g=J.setters)[T.prop$jscomp$109])==
null?void 0:v.call(g,m))}):(this.rawProps[T.prop$jscomp$109]=m,this.queuingRender&&T.prop$jscomp$109==="data"&&m!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(O),
get:unN.has(O.prop$jscomp$109)?void 0:function(){return q1N}});
customElements.define(H,W)};
_.BVN=function(A,H){return(A=_.C3(A,H))?_.NR(_.fx(A)):null};
_.K3=function(A){if(A=_.C3(A,Number.MAX_VALUE,void 0,"width"))return _.fx(A)};
_.C3=function(A,H,k,d){d=d===void 0?"width":d;if(!A||!A.length)return null;if(_.b("kevlar_tuner_should_always_use_device_pixel_ratio")){var W=window.devicePixelRatio;_.b("kevlar_tuner_should_clamp_device_pixel_ratio")?W=Math.min(W,_.H5("kevlar_tuner_clamp_device_pixel_ratio")):_.b("kevlar_tuner_should_use_thumbnail_factor")&&(W=_.H5("kevlar_tuner_thumbnail_factor"));eTX=W}else eTX||(eTX=window.devicePixelRatio);W=eTX;_.b("kevlar_tuner_should_always_use_device_pixel_ratio")?H*=W:W>1&&(H*=W);if(_.b("kevlar_tuner_min_thumbnail_quality"))return A[0].url||
null;W=A.length;if(_.b("kevlar_tuner_max_thumbnail_quality"))return A[W-1].url||null;if(k)for(var z=0;z<W;z++)if(A[z].url.indexOf(k)>=0)return A[z].url||null;for(k=0;k<W;k++)if(A[k][d]>=H)return A[k].url||null;for(H=W-1;H>0;H--)if(A[H][d])return A[H].url||null;return A[0].url||null};
hTr=function(){ay.size?setTimeout(function(){c8(xSN)},0):iDr=0};
xSN=function(){var A=(0,_.w2)(),H=null,k=!1;ay.forEach(function(W){W.loaded=!0;W.loadTime=A;W.pendingPaint=!1;var z=ODI.get(W);z&&z.resolve(A);H=W;k||!W.ftlEligible&&W.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(k=!0)});
var d;((d=H)==null?0:d.markDirty)&&H.markDirty();ay.clear();iDr=0;k&&RTX(A)};
TVX=function(A){ay.add(A);A.pendingPaint=!0;iDr||(iDr=_.p3(_.IE,hTr))};
mSv=function(A){A.loaded=!1;A.loadTime=Infinity;var H=ODI.get(A);H&&(H.reject(Error("nh")),ODI.delete(A));A.pendingPaint&&(ay.delete(A),A.pendingPaint=!1)};
_.JQQ=function(A){var H=A.indexOf(":");return H===-1?{originalName:A}:{originalName:A.substring(0,H),datasyncId:A.substring(H+1)}};
_.bDb=function(){return _.e(function(A){if(gQC!==void 0)return A.return(gQC);gQC=new Promise(function(H){var k;return _.e(function(d){switch(d.nextAddress){case 1:return _.S_(d,2),d.yield(_.Qw.open("test-only"),4);case 4:return d.yield(_.Qw.delete("test-only"),5);case 5:_.QN(d,3);break;case 2:if(k=_.VA(d),k instanceof Error&&k.name==="SecurityError")return H(!1),d.return();case 3:H("caches"in window),_.EN(d)}})});
return A.return(gQC)})};
yQQ=function(){return _.e(function(A){if(A.nextAddress==1)return A.yield(_.bDb(),2);if(!A.yieldResult)return A.return(void 0);LZf||(LZf=new vQb);return A.return(LZf)})};
jAr=function(A){var H,k,d,W;return _.e(function(z){switch(z.nextAddress){case 1:return z.yield(yQQ(),2);case 2:H=z.yieldResult;if(!H)throw Error("ph");return z.yield(H.open("yt-player-local-img"),3);case 3:return k=z.yieldResult,z.yield(k.match(A),4);case 4:d=z.yieldResult;if(!d)throw Error("qh");return z.yield(d.blob(),5);case 5:return W=z.yieldResult,z.return(W)}})};
IjA=function(A,H){for(var k in A)if(A.hasOwnProperty(k)&&H[k])return k;return null};
Y1N=function(A){return"stamp"+A.replace("-","_")+"_"};
POl=function(A){var H=A.match(/\[\[([\w\.]+)\]\]/);if(H&&H.length>1)return H[1];_.I3(Error("sh`"+A));return null};
Gpf=function(A){return A===void 0?_.Q$("REUSE_COMPONENTS",!1):A||!1};
DSv=function(A,H,k){k&&(H.is?(FZQ.has(H)&&(A=FZQ.get(H),k=A.listener,delete H[A.property],k.type==="element"&&H.removeEventListener(k.eventName,k.handler),FZQ.delete(H)),Xd8(H)):H.__proto__==HTMLElement.prototype&&(H=new _.Ti("Rendererstamper removed a non custom element","Stamper: "+A+" element: "+(H&&H.nodeName)),_.Pq(H)))};
S1m=function(A,H,k,d){var W=H.node?H.node:H;_.Va(k).parentNode===W&&(H.removeChild(k),DSv(A,k,d));if(A=Vw.get(k))Vw.delete(k),_.IE.cancelJob(A);k.hidden=!1};
COW=function(A,H,k,d){var W,z=(W=H.polymerController)!=null?W:H;W=H.loggingStatus;try{W&&(W.isRendererStamper=!0);if(typeof k!=="string"){for(var u in k.attributes)k.attributes[u]===!0?H.setAttribute(u,""):k.attributes[u]===!1?H.removeAttribute(u):H.setAttribute(u,k.attributes[u]);for(var B in k.params)z[B]=k.params[B],H!==z&&WW(H.localName,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(var h in k.properties){var O=k.properties[h];if(O){var T=POl(O);z[h]=A.get(T);H!==z&&WW(H.localName,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");
if(h==="on-tap"||h==="on-click"){var m=A.get(T);H.addEventListener("click",m);FZQ.set(H,{property:h,listener:{type:"element",eventName:"click",handler:m}})}}else _.YJ(new _.Ti("Undefined property binding",h))}}k.classListBinding&&k.classListBinding.split(" ").forEach(function(J){J=J.trim();if(J.startsWith("[[")){if(J=POl(J))J=A.get(J),(Array.isArray(J)?J:(J!=null?J:"").split(" ")).forEach(function(g){g&&_.UJ(H,g,!0)})}else J&&_.UJ(H,J,!0)});
z.data=d}finally{W&&(W.isRendererStamper=!1)}if(k=Vw.get(H))H.hidden=!1,Vw.delete(H),_.IE.cancelJob(k)};
KZC=function(A,H,k,d){if(H&&H.children&&(k=H.children[k]))if(_.Q$("DEFERRED_DETACH"))for(;k&&!Vw.has(k);){var W=A,z=H,u=k,B=d;u.hidden=!0;W=_.ma(_.IE,S1m.bind(null,W,z,u,B),0);Vw.set(u,W);k=k.nextElementSibling}else for(;(u=H.lastElementChild)&&(H.removeChild(u),DSv(A,u,d),u!=k););};
_.ER=function(){for(var A=_.o7.apply(0,arguments),H=!0,k=_.r(A),d=k.next();!d.done;d=k.next())if(typeof d.value!=="string"){H=!1;break}return H?A.join(" ").trim()||void 0:function(){for(var W="",z=_.r(A),u=z.next();!u.done;u=z.next())if(u=u.value,typeof u==="function"&&(u=u()),u)if(typeof u==="string")W+=" "+u;else for(var B in u)if(u.hasOwnProperty(B)){var h=u[B];typeof h==="function"&&(h=h());h&&(W+=" "+B)}W=W.trim()||void 0;return _.pA(W)}};
_.ajm=function(A,H){return _.Mw(A.entities,"markersEngagementPanelSyncEntity",H)};
_.UR=function(A,H){return _.Mw(A.entities,"playerStateEntity",H)};
cQX=function(A,H){return _.Mw(A.entities,"fantasyWinProbabilityEntity",H)};
pdC=function(A,H){return _.Mw(A.entities,"fantasyTeamEntity",H)};
QAN=function(A,H){return _.Mw(A.entities,"fantasyPlayerEntity",H)};
Vrr=function(A,H){return _.Mw(A.entities,"booleanEntity",H)};
EQm=function(A,H){return _.Mw(A.entities,"qrCodeEntity",H)};
USX=function(A){return _.Mw(A.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
trb=function(A){var H;return(H=ljX[A])!=null?H:"EVENT_SPAN_TYPE_UNKNOWN"};
NVQ=function(A){return function(H){var k=trb(H.type);return k==="EVENT_SPAN_TYPE_UNKNOWN"?A(H):_.QS("event",{type:k,nodepath:H.target instanceof Element?ryb(H.target):void 0},function(){return A(H)})}};
_.lc=function(A){A&&pH("event")&&(A=NVQ(A));return tuQ(function(H){var k,d=(k=A)==null?void 0:k(H);return typeof d==="boolean"?d:!0})};
t7=function(A){return function(){return A()?A():void 0}};
fjX=function(A){var H=_.GP("animated-rolling-character"),k=i8N(),d=GC(A.character)||GC(A.previousCharacter),W=_.r(u1I()),z=W.next().value,u=W.next().value;_.CZ(function(){if(window.ResizeObserver&&_.b("web_fix_rolling_numbers_zoom_safari")){var B=new _.Nt(function(){var O,T,m=Math.round(((T=(O=H.value.querySelector("div"))==null?void 0:O.getBoundingClientRect().height)!=null?T:0)*100)/100;m&&u(m)},500),h=new ResizeObserver(function(){B.fire()});
h.observe(H.value);return function(){h.disconnect();B.dispose()}}});
up8(function(){var B=_.b("web_fix_rolling_numbers_zoom_safari")?z:A.marginMultiplier;if(B){var h;(h=k.value)==null||h.cancel();d?(h=A.previousCharacter?Number(A.previousCharacter)+10:A.rollUp?0:30,A.shouldAnimate||(h-=Mrv(A,h))):(h=A.rollUp?0:2,A.shouldAnimate||(h-=A.rollUp?-1:1));H.value.style.marginTop="-"+h*B+"px";A.shouldAnimate?k.value=nQC(H.value,A,h,d,B):H.value.style.display=A.character?"":"none"}});
return _.x("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},I$C(d,function(){for(var B=[],h=1;h<30;h++)B.push(_.x("div",null,h%10));return _.x(_.sD,null,_.x("div",null,"\u00a0"),B,_.x("div",null,"\u00a0"))},function(){return ZDm(A.character)}))};
ZDm=function(A){return _.x(_.sD,null,_.x("div",null,"\u00a0"),_.x(_.sD,null,I$C(!A||_.BV(A),function(){return _.x("div",null,"\u00a0")},function(){return _.x("div",null,A)})),_.x("div",null,"\u00a0"))};
nQC=function(A,H,k,d,W){k=new Animation(new KeyframeEffect(A,[{transform:"translateY(0px)"},{transform:"translateY("+(d?Mrv(H,k):H.rollUp?-1:1)*W+"px)"}],wdQ),document.timeline);H.character?(A.style.display="",k.onfinish=null):k.onfinish=function(){A.style.display="none"};
k.play();return k};
Mrv=function(A,H){var k=Number(A.character)+10;if(A.previousCharacter)if(A.character){var d=Number(A.character),W=Number(A.previousCharacter);A=A.rollUp?W<d?k:k+10:W<d?k-10:k}else A=A.rollUp?30:0;else A=A.character==="0"?k:A.rollUp?k-10:k+10;return H-A};
oQ8=function(A){return function(H){var k={},d;for(d in H){var W=void 0,z=void 0;((W=void 0)==null?0:(z=W.callbacks)==null?0:z[d])||(k[d]=H[d])}return _.x(ROQ,null,function(){for(var u in k)H[u]=_.pA(k[u]);H.disableReactiveLogging=!0;return _.x(A,Object.assign({},H))})}};
HRI=function(A,H,k,d,W,z,u){k=new Animation(new KeyframeEffect(A,[{transform:"translateY(0px)"},{transform:"translateY("+(z?$Sb(H,k,d,W):d?-1:1)*u+"px)"}],AJA),document.timeline);H?(A.style.display="",k.onfinish=null):k.onfinish=function(){A.style.display="none"};
k.play();return k};
$Sb=function(A,H,k,d){var W=Number(A)+10;H?A?(A=Number(A),H=Number(H),k=k?H<A?W:W+10:H<A?W-10:W):k=k?30:0:k=A==="0"?W:k?W-10:W+10;return d-k};
kQC=function(A){var H=i8N(),k=i8N();BEf(function(){H.value=A.numberText;k.value=A.numberValue},[A.numberText]);
var d=A.fontSizeMultiplier?A.heightPx*A.fontSizeMultiplier:A.heightPx,W=fZf(function(){if(A.numberText){var u=A.numberText;var B=A.forceRollUp||!k.value||!A.numberValue||k.value<A.numberValue;var h=!!A.shouldAnimate,O=H.value,T=[],m=0,J=0,g=(O?O.replace(/\D/g,"").length:0)-(u?u.replace(/\D/g,"").length:0);O=O?O.split(/(\d)/).filter(Boolean):[];for(u=u.split(/(\d)/).filter(Boolean);g<0;){var v=u[J];T.push({character:v,rollUp:B,marginMultiplier:d,shouldAnimate:h});J++;GC(v)&&g++}for(;m<g;)v=O[m],T.push({previousCharacter:v,
rollUp:B,marginMultiplier:d,shouldAnimate:h}),m++,GC(v)||g++;for(;J<u.length;)g=u[J],v=O[m],GC(g)===GC(v)?(J++,m++):GC(g)?(m++,g=void 0):GC(v)&&(J++,v=void 0),T.push({character:g,previousCharacter:v,rollUp:B,marginMultiplier:d,shouldAnimate:h});B=T}else B=[];return B},[A.numberText]),z=A.numberText?["height: "+d+"px;",
"line-height: "+A.heightPx+"px;"].join(" "):"";return _.x("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:z,dir:"ltr","aria-hidden":"true"},W.map(function(u){return _.x(sf8,Object.assign({},u))}))};
dsW=function(A){switch(A){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}};
_.WhV=function(A,H){if(!A&&!H)return"medium";A=Math.max(A||0,H||0);return A>=256?"large":A>=96?"medium":"small"};
zsQ=function(A){switch(A){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
qkI=function(A){return new KeyframeEffect(A,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
rJf=function(A){return new KeyframeEffect(A,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Mt=function(A){return function(){var H="",k;for(k in A){for(var d=A[k];typeof d==="function";)d=d();d!==void 0&&d!==null&&(H+="; "+k+": "+d)}return H.length>0?_.pA(H.slice(2)):_.pA()}};
uzI=function(A){switch(A){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"}};
BGm=function(A,H){if(H)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(A)switch(A){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"}};
ORN=function(A,H,k,d,W,z,u){var B=esW(A),h=B.disabled,O=B.iconPosition,T=B.style,m=B.focused,J=function(){return!!y()&&O()==="icon-only"},g=function(){return!!y()&&O()==="icon-only-40"},v=function(){return!!y()&&O()==="icon-with-label"},y=function(){return!!H||!(d==null||!d())};
return{type:function(){return T()==="call-to-action-inverse"?"text":T()==="overlay-dark"&&A().type!=="filled"&&A().type!=="tonal"?"tonal":A().type},
shouldFocus:function(){return(m()||(z==null?void 0:z()))&&!h()},
hasIconLeading:function(){return!!y()&&O()==="leading"},
hasIconTrailing:function(){return!!y()&&O()==="trailing"},
hasIconLeadingTrailing:function(){return!!y()&&!!(k||W!=null&&W())&&O()==="leading-trailing"},
hasIconOnly:J,hasIconOnly40:g,hasIconWithLabel:v,iconButton:function(){return J()||g()||v()},
visiblyDisabled:function(){return(h()?"disabled":A().state)==="disabled"||h()},
overrideSmallSizeIcon:function(){return!A().ignoreIconSizeOverride&&xsX(A(),y())},
iconToRender:H?H:function(){return _.x(_.n3,{icon:d,gradientColor:function(){var X;return(X=A().customColors)==null?void 0:X.iconGradientColor},
size:function(){return iRV(A(),!0,A().ignoreIconSizeOverride)},
active:function(){return A().toggled},
iconFilter:function(){return hsC(A())},
animateIcon:u})},
secondaryIconToRender:k?k:function(){return _.x(_.n3,{icon:W,size:function(){return iRV(A(),!0,A().ignoreIconSizeOverride)},
active:function(){return A().toggled},
iconFilter:function(){return hsC(A())}})}}};
esW=function(A){return{size:function(){return A().size},
style:function(){return A().style},
focused:function(){return A().focused},
disabled:function(){return A().disabled},
onTap:function(H){var k,d;return(d=(k=A()).onTap)==null?void 0:d.call(k,H)},
alignByText:function(){return A().alignByText},
aTagConfig:function(){return A().aTagConfig},
customColors:function(){return A().customColors},
segmentedPosition:function(){return A().segmentedPosition},
toggled:function(){return A().toggled},
toggleable:function(){return A().toggleable},
accessibilityLabel:function(){return A().accessibilityLabel},
onToggle:function(H){var k,d;return(d=(k=A()).onToggle)==null?void 0:d.call(k,H)},
iconPosition:function(){return A().iconPosition},
oneOffCustomTextWrap:function(){return A().oneOffCustomTextWrap},
disableTextEllipsis:function(){return A().disableTextEllipsis},
disableBackdropFilter:function(){return A().disableBackdropFilter},
tooltipText:function(){return A().tooltipText},
tooltipShape:function(){return A().tooltipShape},
ariaHidden:function(){return A().ariaHidden},
tabIndex:function(){return A().tabIndex},
buttonText:function(){return A().buttonText},
formattedButtonText:function(){return A().formattedButtonText},
animatedTextProps:function(){return A().animatedTextProps},
onClickRateLimitMs:function(){return A().onClickRateLimitMs}}};
xsX=function(A,H){H=(A.iconPosition==="icon-only"||A.iconPosition==="icon-only-40"||A.iconPosition==="icon-with-label")&&H;return!A.segmentedPosition&&H&&A.size==="S"};
iRV=function(A,H,k){switch(A.size){case "XS":return 16;case "S":return!k&&xsX(A,H)?24:16;default:return 24}};
RsI=function(A){switch(A){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"}};
TGX=function(A){switch(A){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"}};
msV=function(A){switch(A){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"}};
hsC=function(A){if(A.style==="overlay-dark"&&A.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Zf=function(A){return A&&A.endsWith("px")?Number(A.slice(0,-2)):0};
bRC=function(A,H){var k=_.r(_.C0(function(){var W,z;return(z=A())!=null?z:H==null?void 0:(W=H())==null?void 0:W.text})),d=k.next().value;
return[function(W){var z=_.be(function(){var h;return Object.assign({},{location:"bottom",offset:16,delay:1},H==null?void 0:H(),{text:(h=d())!=null?h:""})},void 0,"IJU38d");
_.CA(function(){var h=z();_.Oi(function(){_.IE.addJob(function(){f3.notify(W,h)},4)})},"WlsgZc");
var u=function(){JJQ(W,z())},B=function(){goX()};
W.addEventListener("mouseenter",u);W.addEventListener("focus",u);W.addEventListener("mouseleave",B);W.addEventListener("blur",B);W.addEventListener("tap",B);_.aV(function(){W.removeEventListener("mouseenter",u);W.removeEventListener("mouseleave",B);W.removeEventListener("focus",u);W.removeEventListener("blur",B);W.removeEventListener("tap",B);goX()})},
k.next().value]};
voW=function(A,H){if(!f$){var k;nYb(function(){return k=hOl(A,H)});
return k}A.parent=Lhl();return hOl(A,H)};
Lhl=function(){var A=$3(f$||void 0,eOI);return FS8(A)?void 0:A};
wb=function(A,H){_.OR(A,Object.assign({},H,{forceClickLogging:!0}))};
yJr=function(A){switch(A){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"}};
Izf=function(A,H){var k=_.h7(A==null?void 0:A.onTap),d={};k&&(d.getClickedVisualElement=function(){var W;return jfC(A,k,H==null?void 0:(W=H.value)==null?void 0:W.visualElement)});
d=_.Ry({elementsCommand:A.onTap,forceNewState:!0,additionalCommandArgs:d});return TA(d)?d:void 0};
Ykr=function(A,H,k,d){wb(A,Object.assign({},{form:{element:H,event:k}},d))};
P_A=function(A,H,k,d,W){var z=void 0;return function(u){var B=_.h7(k?A==null?void 0:A.onDisabledTap:A==null?void 0:A.onTap);if(B){var h;z=(h=z)!=null?h:H==null?void 0:H.value;if(B)if(_.b("web_button_vm_click_client_ve_killswitch"))Ykr(B,z,u);else{var O;h=jfC(A,B,(O=z)==null?void 0:O.visualElement);if(W){Ykr(B,W,u,{clickedVisualElement:h,form:{element:W}});return}Ykr(B,z,u,{clickedVisualElement:h})}}d&&d(u)}};
jfC=function(A,H,k){H=H==null?void 0:H.clickTrackingParams;var d,W;A=A==null?void 0:(d=A.loggingDirectives)==null?void 0:(W=d.clientVeSpec)==null?void 0:W.uiType;if(k&&A&&!H)return k};
GQf=function(A){switch(A){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"}};
Fhv=function(A){switch(A){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"}};
Xcm=function(A){switch(A){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"}};
DsW=function(A){switch(A){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"}};
_.oy=function(A){return _.be(function(){Vjl()();return lgf(A)},{debugName:"d8B62c"},"DEXkhd")};
Skl=function(A,H){return _.Mw(A.entities,"engagementToolbarStateEntityPayload",H)};
Kh8=function(A){(A=_.db(A))&&_.C_Q(A)};
_.C_Q=function(A){var H=_.hx();H&&_.jc(H,A)};
azb=function(A,H,k){_.Ud(A,"yt-open-popup-action",[H,k||A])};
cJV=function(A,H){var k=_.KZ(A,"endpoint"),d=_.KZ(A,"action");return(k=d?d:k)&&H&&(k=H.navigationEndpointPopupMap[k])&&(A=_.UD(k,A),(k=_.KZ(A,"renderer"))&&H.supportedPopups.hasOwnProperty(k))?{openPopupAction:{popupType:H.popupTypeMap[k],popup:A}}:null};
pcI=function(A,H,k,d){if(d){var W;k=k==null?void 0:(W=k.data)==null?void 0:W.contents;(W=k instanceof Array&&k.length?k[0]:k)&&(k=_.KZ(W,"renderer"))&&d.supportedPopups.hasOwnProperty(k)&&(H.stopPropagation(),azb(A,{openPopupAction:{popupType:d.popupTypeMap[k],popup:W}}))}};
Eov=function(A,H,k,d){d=d===void 0?!1:d;var W=QfQ(H);if(W){W.href&&mH(W.href);var z=H.button;z=z!==void 0?z===0&&!$5(H):!$5(H);W.data&&z&&V7r(A,W,H,k,d)}};
V7r=function(A,H,k,d,W){W=W===void 0?!1:W;var z=_.H5("pbj_navigate_limit",-1)===0;Usr(H);_.wj().resolve(_.fZ(CT));var u=H.data;if(Object.keys(u).length!==0)if(!_.b("unplugged_web_disable_actions_for_cec_endpoint")&&_.L(u,_.nH))_.b("endpoint_behavior_command_executor_fix_killswitch")||(k.preventDefault(),k.stopPropagation()),_.NT(A,[u],A);else if(d=cJV(u,d))u.loggingUrls&&u.loggingUrls.forEach(function(h){h.baseUrl&&_.cL(h.baseUrl)}),k.preventDefault(),k.stopPropagation(),azb(A,d,H);
else{var B=lzf(0,H.data,k);if(A=H.getForm)A=A(),B.tempData=B.tempData||{},B.tempData=Object.assign({},B.tempData,A);A=_.F_(k);if(d=A.find(function(h){return!!h.visualElement}))B.createScreenConfig=B.createScreenConfig||{},B.createScreenConfig.clickedVisualElement=d.visualElement;
if(!z)if(k.preventDefault(),k.stopPropagation(),_.L(u,_.t7r)&&!W&&_.n0.instance)_.n0.instance.resolveCommand(u,B);else if(_.b("kevlar_command_handler_formatted_string")&&!W&&_.n0.instance&&NGC(u))W=A.find(function(h){return!!h.is})||k.target,k={form:Object.assign({},B,{event:k,
element:W,originatingNode:H})},_.n0.instance.resolveCommand(u,k);else{u=_.F_(k);k=[];for(W=0;W<u.length;W++)(z=u[W].is)&&k.push(z);F5A({parents:k.join(","),text:H.innerText},function(){_.Ed(H,"yt-navigate",B)})}}};
M7l=function(A){if(A=QfQ(A))Usr(A),teV(A.href)};
QfQ=function(A){A=_.F_(A);for(var H,k=0;k<A.length;k++)if(H=A[k],H.tagName==="A"&&H.classList.contains("yt-simple-endpoint")){if(!H.data)break;return H}return null};
$5=function(A){return A.shiftKey||A.altKey||A.metaKey||A.ctrlKey};
noI=function(A,H){var k={itct:H.clickTrackingParams};_.b("kevlar_client_side_screens")&&(!_.L(H,_.A1)||_.b("kevlar_exclude_endpoint_killswitch"))&&(k.endpoint=JSON.stringify(H));_.b("enable_unknown_lact_fix_on_html5")&&_.wj().resolve(_.fZ(_.A8))&&(k.lact=_.Z$());EFf(k);_.DZ(A,k)};
Usr=function(A){A.href&&Object.keys(A.data).length!==0&&noI(A.href,A.data)};
NGC=function(A){for(var H=_.r(ZRI),k=H.next();!k.done;k=H.next())if(A[k.value])return!1;return!0};
fzb=function(){if(kE)return kE;if(window.lottie)return kE=Promise.resolve(window.lottie);var A=_.Yh(_.pZ("LOTTIE_URL"));return A?kE=new Promise(function(H,k){var d=document.createElement("script");d.addEventListener("load",function(){H(lottie)});
d.addEventListener("error",function(W){var z="Lottie library failed to load.";W?W.message&&(z+=" Original description: "+W.message,_.Gg(W,z)):W=Error(z);_.Pq(W);k(W)});
d.setAttribute("async","");_.h2(d,A);document.head.appendChild(d)}):Promise.reject(Error("th"))};
wcb=function(){return kE?kE:fzb()};
ooI=function(A){if(A)switch(A){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.b("kevlar_use_wil_icons"))return A=(A=USX(_.F3().getState()))&&A.animationLightUrl&&A.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:A.animationLightUrl,pathDarkTheme:A.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,A?A:dH.get("LIKE");break;case "LIKE_DELHI_PLAYER":return dH.get("LIKE_DELHI_PLAYER")}};
$sb=function(A){var H=ooI(A);if(H)return H;switch(A){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return dH.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return dH.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return dH.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return dH.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return dH.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return dH.get("NOTIFICATION_BELL")}};
AOm=function(A,H){if(!A.closest)return!1;H=!!ooI(H);return _.pZ("ID_TOKEN")&&H?!!A.closest("segmented-like-dislike-button-view-model")||!!A.closest("yt-player-quick-action-buttons"):!1};
siI=function(A,H){if(!A||HSb)H=!1;else{var k;if(!(k=AOm(A,H)))if(A.closest)if(k=!_.pZ("ID_TOKEN"),A=A.closest("ytd-subscription-notification-toggle-button-renderer-next"),k||!A)k=!1;else{var d;k=((d=A.data)==null?void 0:d.targetId)==="notification-bell"&&H!=="EXPAND_MORE"}else k=!1;H=k}return H};
kJv=function(A){var H,k;return _.e(function(d){switch(d.nextAddress){case 1:return _.S_(d,2),d.yield(fetch(A),4);case 4:return H=d.yieldResult,d.yield(H.json(),5);case 5:return d.return(d.yieldResult);case 2:k=_.VA(d),_.Pq(k),_.EN(d)}})};
duI=function(A,H){var k,d,W;return _.e(function(z){if(z.nextAddress==1)return(k=H?A.pathDarkTheme:A.path)?z.yield(Promise.all([kJv(k),fzb()]),2):z.return();d=z.yieldResult;W=d[0];Wn.set(k,W);_.EN(z)})};
zxr=function(A,H,k,d){function W(u,B){if(H.value===B&&!H.cancelled){for(;A.firstChild;)A.removeChild(A.firstChild);A.classList.add("ytSpecIconShapeHost");u(A,d)}}
var z=_.WxX(_.wj().resolve(_.M0),k);typeof z==="function"?(H.value=null,W(z,null)):(H.value=z,z.then(function(u){W(u,z)}))};
qOv=function(A,H){var k=document.createElement("div"),d=_.DR(k,function(){return _.x(_.R,{cond:A,then:function(W){return _.x(_.zc,{data:W,options:H})}})},"ea");
return[k,d]};
_.qN=function(A,H){if(H){var k={};rOX.forEach(function(d){d=uTA(H,d,"--yt-lightsource-");Object.assign(k,d)});
BkC.forEach(function(d){d=uTA(H,d,"--yt-basic-");Object.assign(k,d)});
_.NH(A,k)}};
uTA=function(A,H,k){var d={};d[k+_.wY(H)]=A&&A[H]?_.h1(A[H]):"";return d};
_.uL=function(A,H,k){rH[A]||(rH[A]={});rH[A][H]=k};
_.Bn=function(A){rH[A]||(rH[A]={});return rH[A]};
exI=function(A){if(!A)return{};var H=A.foregroundTitleColor,k=A.backgroundColor;A=A.borderColor;var d="text";A?d="outline":k&&(d="filled");return{type:d,customColors:{color:H?_.h1(H):void 0,backgroundColor:k?_.h1(k):void 0,borderColor:A?_.h1(A):void 0}}};
RxW=function(A){var H=A.renderer;var k=A.element;var d=A.commandController;var W=A.onTapCallback;var z=A.skipCommandHandling;var u=A.overrides;var B=A.forceIcon;var h=A.forceModernIconButton;var O=A.forceDisabled;var T=A.isSubscribe===void 0?!1:A.isSubscribe;var m=A.isPressed===void 0?!1:A.isPressed;var J=A.useButtonSize===void 0?!1:A.useButtonSize;A=xuv(H);T&&(A.style="mono",A.type="filled");B=!H.icon||!B&&H.text?H.icon?H.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:h?"icon-only":"icon-only-40";B==="icon-only-40"&&(A.type="text");var g;h=Object;T=h.assign;J=iSA(H,J);m=!!H.isSelected||!_.b("web_propagate_is_pressed_killswitch")&&!!m;var v=H.isSelected!==void 0;O=O===void 0?H.isDisabled:O;var y=H.text?_.B8(H.text):void 0;var X,D,K,N=((X=H.accessibilityData)==null?void 0:(D=X.accessibilityData)==null?void 0:D.label)||((K=H.accessibility)==null?void 0:K.label);X=N?N:_.PK(H.text);k=hxC(H,k,d,W,z);d=OSC(H);d!=null&&d.length?(d=_.Ry({innertubeCommand:sub(d),
forceNewState:!0}),d=TA(d)?d:void 0):d=void 0;return T.call(h,{},A,J,{iconPosition:B},u,{focused:!1,toggled:m,toggleable:v,disabled:O,formattedButtonText:y,accessibilityLabel:X,onTap:k,aTagConfig:d},exI((g=H.colorData)==null?void 0:g.basicColorPaletteData),{oneOffCustomTextWrap:H.oneOffCustomTextWrap})};
hxC=function(A,H,k,d,W){return function(z){var u=OSC(A);d(u,z);if(!W){u=_.r(u);for(var B=u.next();!B.done;B=u.next())wb(B.value,{form:{element:H,event:z},commandController:k})}}};
OSC=function(A){var H=[];A.command&&H.push(A.command);A.serviceEndpoint&&H.push(A.serviceEndpoint);A.navigationEndpoint&&H.push(A.navigationEndpoint);return H};
iSA=function(A,H){if(H)switch(A.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(A.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
xuv=function(A){switch(A.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"}}};
TkC=function(A,H){return typeof A!=="object"||A===null?!1:Object.keys(H).every(function(k){return k in A})};
eO=function(A){return Object.fromEntries(Object.keys(A).map(function(H){return[H,H]}))};
mub=function(A,H,k){return $_m(k,function(d,W){return function(z){var u=_.o7.apply(1,arguments);return TkC(z,A)?W.apply(null,[z[H]].concat(_.fV(u))):W.apply(null,[z].concat(_.fV(u)))}})};
xE=function(A){return function(H,k){return mub(A,H,k)}};
JOC=function(A,H){var k;return(k=_.Mw(A,"playlistLoopStateEntity",H))!=null?k:void 0};
g$r=function(A,H){var k;return(k=_.Mw(A,"toggleMenuServiceItemEntity",H))!=null?k:void 0};
_.iL=function(A){return A!=null&&A.watch?A.watch.isTheaterMode:!1};
_.h8=function(A){return A!=null&&A.watch?A.watch.isWatchFullscreen:!1};
_.Ot=function(A){return _.bSr(A)?!0:_.Lxv(A)};
_.bSr=function(A){return A!=null&&A.watch?A.watch.isSwatcherooActive:!1};
_.Lxv=function(A){return A!=null&&A.watch?A.watch.isWatchNarrowWidth:!1};
_.v$X=function(A){return _.iL(A)||_.h8(A)||_.Lxv(A)};
_.yOV=function(A){return A.watch.openEngagementPanels};
_.R9=function(A,H){return _.Mw(A.entities,"likeStatusEntity",H)};
jiN=function(A,H){return _.Mw(A.entities,"likeCountEntity",H)};
_.IUC=function(A,H){return _.Mw(A.entities,"stringEntity",H)};
YOI=function(A,H){return _.Mw(A.entities,"dataFreshnessEntity",H)};
PhW=function(A,H){if(!A)return!1;var k,d=(k=_.L(A,_.fH))==null?void 0:k.signal;if(d&&H.signalEndpointMap)return!!H.signalEndpointMap[d];var W;if((k=(W=_.L(A,_.Tc))==null?void 0:W.request)&&H.continuationEndpointMap)return!!H.continuationEndpointMap[k];for(var z in A)if(H.commandEndpointMap[z])return!0;return!1};
GJv=function(A,H){if(H.streamingEndpointMap)for(var k in A)if(H.streamingEndpointMap[k]&&(A=H.streamingEndpointMap[k]))return A()};
FxQ=function(A,H){var k,d=(k=_.L(A,_.fH))==null?void 0:k.signal;if(d&&H.signalEndpointMap&&(k=H.signalEndpointMap[d]))return k();var W;if((k=(W=_.L(A,_.Tc))==null?void 0:W.request)&&H.continuationEndpointMap&&(W=H.continuationEndpointMap[k]))return W();for(var z in A)if(H.commandEndpointMap[z]&&(A=H.commandEndpointMap[z]))return A()};
Xrb=function(A){var H={"Content-Type":"application/json"};_.pZ("EOM_VISITOR_DATA")?H["X-Goog-EOM-Visitor-Id"]=_.pZ("EOM_VISITOR_DATA"):_.pZ("VISITOR_DATA")&&(H["X-Goog-Visitor-Id"]=_.pZ("VISITOR_DATA"));H["X-Youtube-Bootstrap-Logged-In"]=_.pZ("LOGGED_IN",!1);_.pZ("DEBUG_SETTINGS_METADATA")&&(H["X-Debug-Settings-Metadata"]=_.pZ("DEBUG_SETTINGS_METADATA"));A!=="cors"&&((A=_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(H["X-Youtube-Client-Name"]=A),(A=_.pZ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(H["X-Youtube-Client-Version"]=
A),(A=_.pZ("CHROME_CONNECTED_HEADER"))&&(H["X-Youtube-Chrome-Connected"]=A),(A=_.pZ("DOMAIN_ADMIN_STATE"))&&(H["X-Youtube-Domain-Admin-State"]=A));(A=_.pZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(H["X-YouTube-Lava-Device-Context"]=A);return H};
DuX=function(A,H){H.watchNextResponse||H.reelItemWatchResponse?H.watchNextResponse?A.content=H.watchNextResponse:A.content=H.reelItemWatchResponse:H.playerResponse?A.player=H.playerResponse:H.reelWatchSequenceResponse&&(A.reelSequence=H.reelWatchSequenceResponse)};
m0=function(A){return function(){return new A}};
J8=function(A){var H=_.wj();return function(){return H.resolve(A)}};
_.gH=function(A){if(!A)return null;for(var H=[],k=0;k<A.textSegments.length;k++){var d=A.textSegments[k];d.text?H.push(d):d.emojiId&&H.push({emoji_id:d.emojiId})}return{text_segments:H}};
cOC=function(A,H,k,d,W,z,u){z=z===void 0?[]:z;var B=new _.Lj;B.endpoint=k;if(!k)return _.YJ(new _.Ti("handle undefined endpoint",H.tagName)),B;var h=Q5I(k);h.length&&(_.NT(A,h,H,d),B.actions=h);k.loggingUrls&&k.loggingUrls.forEach(function(T){T.baseUrl&&p5(T.baseUrl,T.attributionSrcMode)});
h=!_.b("web_skip_impression_click_killswitch")&&d&&d.impression;if(k.clickTrackingParams&&!SO8(k)&&!ChQ(H)&&!h&&(h=_.A7(),!_.vn(h,H))){var O=H.getScreenLayer&&H.getScreenLayer();O?h.clickCommand(k,null,O):h.clickCommand(k,null)}h=!1;for(O=0;O<z.length;O++)if((0,z[O])(H,k,d)){h=!0;break}!h&&KxN(k)&&(B.ajaxPromise=aUm(A,H,k,d,W,u));return B};
ChQ=function(A){var H;return(A=(H=A.data)==null?void 0:H.navigationEndpoint)&&!!A.clickTrackingParams};
SO8=function(A){var H=_.L(A,_.fH);if(H&&(H=H.signal)&&prN.indexOf(H)>=0)return!0;for(var k in A)if(Qi8.indexOf(k)>=0)return!0;return!1};
KxN=function(A){var H;if(((H=_.L(A,_.fH))==null?void 0:H.signal)==="CLIENT_SIGNAL")return!1;for(var k in A)if(VUr.indexOf(k)>=0)return!1;A=Object.keys(A);return A.length===1&&A[0]==="loggingUrls"?!1:!0};
fUf=function(A,H,k,d,W,z,u){var B=_.yI.instance;if(B&&_.jO(B,d))var h=_.I9(B,d,W).then(function(T){return(T==null?0:T.data)?T:{data:T}});
else h=A.requestDataForServiceEndpoint(d,W),_.L(d,E$m)||_.L(d,UuX)||_.L(d,_.lUI)||_.L(d,tUX)||_.Pq(new _.Ti("No RequestBuilder for endpoint",d));var O=_.YE();O.promise.thenCatch(function(){var T=_.KZ(d,"action")||_.KZ(d,"command")||_.KZ(d,"endpoint");T&&(T=d[T],T.hasOwnProperty("onFailureAction")?_.NT(H,[T.onFailureAction],k):T.hasOwnProperty("onFailureCommand")&&_.NT(H,T.onFailureCommand,k));h.cancel("Resolver promise rejected")});
h.then(function(T){if(T){var m=T.error;if(m){if(z&&z.onServerError)z.onServerError(d,T);O.reject(new _.Ti("Response error",d,m))}else if(T=T.data)if(m=T.error){if(z&&z.onServerError)z.onServerError(d,T);O.reject(new _.Ti("Returned error",d,m))}else{Nkr(H,k,T,d);MUv(T);if(m=pGQ(T))for(var J=_.r(m),g=J.next();!g.done;g=J.next()){g=g.value;var v=_.wj().resolve(_.fZ(n$m))||ZSf;if(!_.yI.instance||!v.some(function(X){return!!_.L(d,X)})||_.b("kevlar_response_processor_allowlist_killswitch")){var y=v=void 0;
((y=_.L((v=g)==null?void 0:v.commandMetadata,_.wn))==null?0:y.sendPost)?_.tx(H,[g]):_.NT(H,[g],k)}}(J=_.L(T==null?void 0:T.frameworkUpdates,Pn))&&u&&u(J);if(z&&z.onSuccess)z.onSuccess(d,T);O.resolve(new _.Gc(T,m))}}else O.reject(new _.Ti("Invalid service endpoint provided",d))},function(T){O.reject(T)});
return O.promise};
MUv=function(A){var H;(A=(H=_.L(A==null?void 0:A.onResponseReceivedCommand,wrr))==null?void 0:H.continuationItems)&&(A==null?void 0:A.length)===1&&_.L(A[0],o$N)&&_.OH("so_r",void 0,"search_overview_answer")};
aUm=function(A,H,k,d,W,z){var u;return(u=H.getNetworkManager&&H.getNetworkManager()?H.getNetworkManager():_.wj().resolve(_.fZ(_.sJ)))?fUf(u,A,H,k,d,W,z):_.qt("No network manager.")};
Nkr=function(A,H,k,d){if(k=k.trackingParams||k.loggingDirectives&&k.loggingDirectives.trackingParams){var W;(_.L(d,_.FU)||_.L(d,$uX)||_.L(d,AiI))&&d.clickTrackingParams&&(W=_.db(d.clickTrackingParams));var z;d=(z=H.getScreenLayer)==null?void 0:z.call(H);H=_.A7().graftServerVe(k,W,d);_.li(A,"yt-store-grafted-ve-action",[H])}};
_.H_N=function(A){var H=new Image;return new _.Wq(function(k,d){H.addEventListener("load",function(){k()});
H.addEventListener("error",function(){d()});
H.src=A})};
sQm=function(A){return!!A};
kYW=function(A){return!!A};
djI=function(A,H,k){var d=A.rowIndex;d!==void 0&&_.li(A.hostElement,"yt-section-reactive-dismissal",[d,H,k])};
_.XU=function(A,H,k){A=_.r(A);for(var d=A.next();!d.done;d=A.next()){d=d.value;if(d===H)break;for(var W=_.r(k),z=W.next();!z.done;z=W.next())if(z=z.value,d.tagName===z||!_.b("web_event_button_role_check_killswitch")&&d.role==="button"&&z==="BUTTON")return!0}return!1};
_.DG=function(A,H,k){A=_.r(A);for(var d=A.next();!d.done;d=A.next()){d=d.value;if(d===H)break;for(var W=_.r(k),z=W.next();!z.done;z=W.next())if(d.id===z.value)return!0}return!1};
_.Kj=function(){var A=_.wj().resolve(_.fZ(_.SO));return A?(A=A.getCurrentPage())?_.Cj(A):null:null};
_.a9=function(){var A=_.Kj();if(!A){var H=_.wj().resolve(_.fZ(_.SO)),k=H?typeof H:"no page manager";H=H?H.getCurrentPage():null;k=new _.Ti("Player is missing when requested.",k,H?H.tagName:"no page");_.I3(k)}return A};
_.Cj=function(A){return A&&A.getPlayer?A.getPlayer():null};
Wsr=function(A,H){A={args:{raw_player_response:A}};H&&(A.args=Object.assign({},A.args,H));return A};
zfA=function(A){if(A.args){if(A.args.raw_player_response)return A.args.raw_player_response;if(A.args.player_response)return JSON.parse(A.args.player_response)}};
_.q_8=function(A,H){var k={url:"/watch?v="+A.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};A.playlistId&&(k.url+="&list="+A.playlistId);A.playerParams&&(k.url+="&pp="+A.playerParams);A={watchEndpoint:A,commandMetadata:{webCommandMetadata:k}};H&&(A.clickTrackingParams=H);return A};
uuf=function(){return rif||!!_.UD("yt.player.Application")};
efA=function(){return B7f||!!document.querySelector("link#player-css")};
i_f=function(){function A(){rif=!0;xjW.resolve()}
var H,k;return _.e(function(d){xjW||(xjW=new _.lk,uuf()?A():(H=document.createElement("script"),H.addEventListener("load",A),k=_.i5(_.pZ("PLAYER_JS_URL")),_.h2(H,k),document.head.appendChild(H)));return d.return(xjW.promise)})};
O_I=function(){function A(){B7f=!0;hfb.resolve()}
if(!hfb)if(hfb=new _.lk,efA())A();else{var H=document.createElement("link");H.id="player-css";H.addEventListener("load",A);var k=_.i5(_.pZ("PLAYER_CSS_URL"));_.TM(H,k,"stylesheet");document.head.appendChild(H)}return hfb.promise};
Rfb=function(){return uuf()&&efA()?Promise.resolve([]):Promise.all([i_f(),O_I()])};
T7f=function(A,H,k){var d={args:{}};A&&(d.args.raw_player_response=A);H&&(d.args.raw_watch_next_response=H);k&&(d.args=Object.assign({},d.args,k));return d};
b_b=function(A,H,k){var d=!1;d=d===void 0?!0:d;A=typeof A==="string"?_.cn(document,A):A;var W=mjl+"_"+_.fl(A),z=JiV[W];if(z&&d)return g4W(H,k)?z.api.loadVideoByPlayerVars(H.args||null):z.loadNewVideoConfig(H),z.api;z=new pj(A,W,H,k,void 0);JiV[W]=z;z.addOnDisposeCallback(function(){delete JiV[z.getId()]});
return z.api};
g4W=function(A,H){return H&&H.serializedExperimentFlags?H.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):A&&A.args&&A.args.fflags?A.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
LsX=function(){var A=new _.lk;A.resolved=!1;var H=A.resolve;A.resolve=function(k){A.resolved=!0;H(k)};
return A};
yil=function(A){var H={};v4I().install((H.document_disposed={callback:A},H))};
QI=function(A,H){if(!A&&Math.random()<=_.H5("kevlar_unified_player_logging_threshold")){A=Error("vh`"+(H?H:"Unspecified error"));if(_.b("kevlar_unified_player_throw_errors"))throw A;_.Pq(A)}};
_.jQf=function(){var A=_.UD("ytDebugData.callbacks");A||(A={},_.nG("ytDebugData.callbacks",A));return A};
Y_I=function(A,H){var k=_.jQf();if(_.b("web_dd_iu")||ICX.includes(A))k[A]=H};
PnQ=function(){return _.e(function(A){return A.return({isLeader:_.Q6r(_.F3().getState()),c:_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.pZ("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
GYQ=function(){var A;_.e(function(H){if(H.nextAddress==1)return Y_I("APP_STATE",PnQ),H.yield(_.wj().resolve(_.VI),2);A=H.yieldResult;Y_I("PI",function(){return _.e(function(k){return k.return(A.getVideoStats())})});
_.EN(H)})};
FsX=function(A){return!!A&&A.length>0&&A[0].loggingUrls!=null&&A[0].loggingUrls.length>0};
Xar=function(){var A=_.pZ("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(A==null?void 0:A.length)===2?A[1]:null};
Dj8=function(A){if(!A)return[];var H=[];A=_.r(A);for(var k=A.next();!k.done;k=A.next())if(k=k.value,k.loggingUrls){k=_.r(k.loggingUrls);for(var d=k.next();!d.done;d=k.next())d=d.value,d.baseUrl&&H.push(d.baseUrl)}return H};
S_V=function(A){var H=_.nY(_.Mx(_.k8.location.href));A=_.nY(_.Mx(A));return _.b("kevlar_clear_non_displayable_url_params")?H==Et(A):Et(H)==Et(A)};
Et=function(A){var H=_.ngX(A);A=A.slice(0);var k=["frags"];_.b("kevlar_hide_pp_url_param")&&k.push("pp");_.b("kevlar_hide_time_continue_url_param")&&k.push("time_continue");k=_.r(k);for(var d=k.next();!d.done;d=k.next())d=d.value,A=_.sI(_.nY(A),d);return _.nY(A)+(H?"#"+H:"")};
Ut=function(A,H){var k=k===void 0?!0:k;H=Number(H)*1E3;var d=Math.round((0,_.w2)()),W=d.toString();A={innertubeResponse:A,serverDateTimestampMs:W,lastModifiedTimestampMs:W,expireTimestampMs:(d+H).toString(),isProcessed:k};if(k=_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME"))A.clientName=k;return A};
Ksf=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Cnv};
aCW=function(A){return!isNaN(A)&&A>0};
pam=function(){_.b("web_adaptive_repeat_ase")&&ciN&&_.yr("applicationStarted",ciN)};
_.QQA=function(){var A=_.ii(),H=_.hx();H&&A&&_.YB(H,[A],!0)};
E4f=function(A){return A&&VkC.some(function(H){return A.includes(H)})};
n4l=function(A){var H=_.L(A,_.KT);if(!H)return!1;var k=H.url,d=H.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!k)return _.I3(Error("Ah")),!1;if(H.target==="TARGET_NEW_WINDOW"){H={};_.b("resolve_url_parent_tracking_params")&&(!_.te(k)||Z8(window.location.href,k))&&(H={endpoint:A,itct:A.clickTrackingParams});EFf(H);A=null;try{if(d){a:{var W=k,z=H;d=d===void 0?!1:d;z&&_.DZ(W,z);var u=_.fx(W),B=_.NR(u);W!=B&&_.lt(Error("Zf`"+W));W=B;try{if(d){B=W;B=LuQ(B);mH(B);A=_.rU(window,B,"_blank",
"attributionsrc");break a}}catch(J){_.V$(J)}mH(W);A=_.rU(window,u,"_blank")}UjC(_.wj().resolve(lCN),A,k);return!0}}catch(J){_.I3(J)}_.DZ(k,H);H={target:"_blank",noopener:!1};u=window;B=tG(k)?k:_.fx(typeof k.href!="undefined"?k.href:String(k));d=self.crossOriginIsolated!==void 0;A="strict-origin-when-cross-origin";window.Request&&(A=(new Request("/")).referrerPolicy);W=H.noreferrer;if(d&&W&&A==="unsafe-url")throw Error("we");A=W&&!d;W=H.target||k.target;z=[];var h=[],O=!1;for(m in H){var T=H[m];switch(m){case "width":case "height":case "top":case "left":z.push(m+
"="+T);break;case "target":break;case "noopener":case "noreferrer":T?h.push(m):(O=!0,h.push(m+"=false"));break;case "attributionsrc":z.push(m+(T?"="+T:""));break;default:z.push(m+"="+(T?1:0))}}var m=W!==void 0&&!["_blank","_self","_top","_parent",""].includes(W);m=PV()&&m;tkQ&&d&&z.length===0&&h.length>0&&!m&&!O?(h.length===2&&(h=["noreferrer"]),_.rU(u,B,W,h[0]),A=N7r()):(m=z.join(","),_.XX()&&u.navigator&&u.navigator.standalone&&W&&W!="_self"?(m=_.$g("A"),A2(m,B),m.target=W,A&&(m.rel="noreferrer"),
((H=H.attributionsrc)||H==="")&&m.setAttribute("attributionsrc",H),H=document.createEvent("MouseEvent"),H.initMouseEvent("click",!0,!0,u,1),m.dispatchEvent(H),m=N7r()):A?(m=_.rU(u,"",W,m),u=_.NR(B),m&&(m.opener=null,u===""&&(u="javascript:''"),u='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+lL(u)+'">',u=k7(u),(H=m.document)&&H.write&&(H.write(dU(u)),H.close()))):((m=_.rU(u,B,W,m))&&H.noopener&&(m.opener=null),m&&H.noreferrer&&(m.opener=null)),A=m);UjC(_.wj().resolve(lCN),
A,k);return!0}m=_.Nx(k);m=E4f(m)||k==="https://studio.youtube.com/";if(_.te(k)&&!Z8(window.location.href,k)||m)mH(k),ec(),_.J1(k,void 0,void 0,window.top,Mkm);else return _.Pq(new _.Ti("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",A)),!1;return!0};
_.war=function(A,H){H=H===void 0?0:H;if(!(_.L(A,Z_b)||_.L(A,fCC)||_.L(A,_.KT)&&_.L(A,_.KT).url))return!1;var k,d=(k=_.L(A,_.KT))==null?void 0:k.url;k=d?{externalLinkData:{url:d}}:null;return _.A7().clickCommand(A,k,H)};
$jV=function(A,H,k,d,W){W=W===void 0?{}:W;return function(z){var u,B;var h=((u=A.loggingDirectives)==null?0:(B=u.clientVeSpec)==null?0:B.uiType)?_.t8(A.loggingDirectives.clientVeSpec.uiType):void 0;W.clickedVisualElement||(W.clickedVisualElement=h);h=o4r(A,H);k(h,z);h=_.r(h);for(u=h.next();!u.done;u=h.next()){u=u.value;B=d;var O=z,T=W;T.form?T.form.event=O:T.form={element:B,event:O};wb(u,T)}}};
o4r=function(A,H){var k=[];H?(A.toggledCommand&&k.push(A.toggledCommand),A.toggledServiceEndpoint&&k.push(A.toggledServiceEndpoint)):(A.defaultCommand&&k.push(A.defaultCommand),A.defaultServiceEndpoint&&k.push(A.defaultServiceEndpoint),A.defaultNavigationEndpoint&&k.push(A.defaultNavigationEndpoint));return k};
AXI=function(A,H){var k=A.toggledStyle||A.style,d;switch((d=H?k:A.style)==null?void 0:d.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"}}};
_.NN=function(){return _.e(function(A){return A.nextAddress==1?A.yield(_.wj().resolve(_.VI),2):A.return(_.wj().resolve(HtN)())})};
_.MN=function(){return _.wj().resolve(HtN)()};
_.nj=function(){return{lottieEl:void 0}};
sjr=function(A,H){return A.startsWith(H.uniqueId)};
k_A=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return d.yield(_.NN(),2);H=d.yieldResult;if((k=H)==null||!k.addEventListener)return ZG(),d.return();H.addEventListener("onCueRangeEnter",A);_.EN(d)})};
dbr=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return d.yield(_.NN(),2);H=d.yieldResult;if((k=H)==null||!k.removeEventListener)return ZG(),d.return();H.removeEventListener("onCueRangeEnter",A);_.EN(d)})};
WUV=function(A){var H,k,d,W,z;_.e(function(u){if(u.nextAddress==1)return u.yield(_.NN(),2);H=u.yieldResult;if((k=H)==null||!k.addCueRange)return ZG(),u.return();d=_.r(A.timings);for(W=d.next();!W.done;W=d.next())z=W.value,H.addCueRange(A.uniqueId+"-"+z,z/1E3,(z+100)/1E3);_.EN(u)})};
zNf=function(A){var H,k,d,W,z;_.e(function(u){if(u.nextAddress==1)return u.yield(_.NN(),2);H=u.yieldResult;if((k=H)==null||!k.removeCueRange)return ZG(),u.return();d=_.r(A.timings);for(W=d.next();!W.done;W=d.next())z=W.value,H.removeCueRange(A.uniqueId+"-"+z);_.EN(u)})};
qVV=function(){var A,H,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(_.NN(),2);A=d.yieldResult;if((H=A)==null||!H.getPlayerState)return ZG(),d.return();k=A.getPlayerState();return d.return(k===2)})};
ZG=function(){_.Pq(new _.Ti("Smartimation player does not exist or is corrupted"))};
rXb=function(){try{var A;return(A=window.CSS)!=null&&A.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(H){return _.Pq(new _.Ti("Smartimation CSS.supports threw an error")),!1}};
Otv=function(A,H,k,d,W){var z=A.playlistId?ubA:BZX;H=H();k=k();W=!!A.videoId&&W()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.sA(H))return eNl({data:A,actionType:z,disabled:W},k);if(A.videoId&&d())return xbW({data:A,actionType:z,disabled:W});switch(H){case "TRANSFER_STATE_UNKNOWN":return xbW({data:A,actionType:z,disabled:W});case "TRANSFER_STATE_FAILED":return A.videoId?itI({data:A,actionType:z,disabled:W}):hNl({data:A,actionType:z,disabled:W});case "TRANSFER_STATE_COMPLETE":return hNl({data:A,
actionType:z,disabled:W});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return eNl({data:A,actionType:z,disabled:W},k);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return A.videoId?itI({data:A,actionType:z,disabled:W}):xbW({data:A,actionType:z,disabled:W});default:return xbW({data:A,actionType:z,disabled:W})}};
RNf=function(A,H){var k=A.onTapCommand,d=_.h7(k);if(A.videoId&&_.L(d,_.fj))return _.L(d,_.fj).action=H,k;A.playlistId&&_.L(d,_.wH)&&(_.L(d,_.wH).action=H);return k};
xbW=function(A){var H=A.data;var k=A.actionType;A=A.disabled;return{text:TZW,iconType:"OFFLINE_DOWNLOAD",onTap:RNf(H,k.ACTION_ADD),disabled:A}};
eNl=function(A,H){var k=A.data;var d=A.actionType;A=A.disabled;var W="OFFLINE_DOWNLOAD";H>=0&&H<=.1?W="OFFLINE_DOWNLOADING_ZERO":H>.1&&H<=.3?W="OFFLINE_DOWNLOADING_TWENTY":H>.3&&H<=.5?W="OFFLINE_DOWNLOADING_FORTY":H>.5&&H<=.7?W="OFFLINE_DOWNLOADING_SIXTY":H>.7&&H<1?W="OFFLINE_DOWNLOADING_EIGHTY":H===1&&(W="OFFLINE_PIN");return{text:mbm,iconType:W,onTap:RNf(k,d.ACTION_REMOVE_WITH_PROMPT),disabled:A}};
hNl=function(A){var H=A.data;var k=A.actionType;A=A.disabled;return{text:JXr,iconType:"OFFLINE_PIN",onTap:RNf(H,k.ACTION_REMOVE_WITH_PROMPT),disabled:A}};
itI=function(A){var H=A.data;var k=A.actionType;A=A.disabled;return{text:ga8,iconType:"OFFLINE_DOWNLOAD",onTap:RNf(H,k.ACTION_RETRY),disabled:A}};
_.o9=function(A,H){var k=Vjl();return _.be(function(){k();return lgf(A,[_.pA(H)||""])},{debugName:"LUZslf"},"Z105t")};
btr=function(A){var H=_.o9(_.TK,function(){return A().videoId}),k=_.o9(_.mj,function(){return A().playlistId});
return function(){return A().videoId?H:A().playlistId?k:_.r(_.RV("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
LUI=function(A){var H=_.o9(Jr,function(){return A().videoId}),k=_.o9(_.pwb,function(){return A().playlistId});
return function(){return A().videoId?H:A().playlistId?k:_.r(_.RV(0,void 0,"K4tgOc")).next().value}};
va8=function(A){var H=_.o9(_.nLA,function(){return A().videoId});
return function(){return A().videoId?H:_.r(_.RV(!1,void 0,"Oaxwcf")).next().value}};
yXm=function(A){var H=_.o9(ELX,function(){return A().videoId});
return function(){return A().videoId?H:_.r(_.RV("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
jjI=function(){return{}};
_.FUW=function(A,H,k){return{submitForm:function(){var d,W,z,u;return _.e(function(B){if(B.nextAddress==1){d=Inb(A());if(!d)return B.return();if(d.onSubmit)return YVr(H),d.onSubmit(),YVr(k),B.return();if(!d.submitConfig||!d.formData)return B.jumpTo(0);d.disableDuringSubmission&&P7C(A(),!0);YVr(H);return B.yield(G_I(d.submitConfig,d.formData()),3)}W=B.yieldResult;YVr(k);if(((z=W)==null?0:z.submitResult)&&((u=d)==null?0:u.onSubmitResult))d.onSubmitResult(W.submitResult);d.disableDuringSubmission&&P7C(A(),
!1);return B.return()})},
isValid:function(){var d=Inb(A());if(d){var W;return!((W=d.isValid)==null||!W.call(d))}return!0},
isSubmitting:function(){var d,W;return!!((d=Inb(A()))==null?0:(W=d.isSubmitting)==null?0:W.call(d))}}};
_.$E=function(){if(!X9N){var A=_.r(_.RV(new Map,void 0,"Y1XnBc"));X9N=A.next().value;DbW=A.next().value}return X9N};
_.SVQ=function(A){DbW(new Map(A))};
Inb=function(A){if(A)return _.$E()().get(A)};
G_I=function(A,H){var k;return _.e(function(d){return d.nextAddress==1?H?(k=_.wj().resolve(_.fZ(C7m)))&&A.submitId?d.yield(k.submitForm(A.submitId,H,KUb,A.params,A.clickTrackingParams),2):d.return(Promise.reject(Error("Ch"))):d.return(Promise.reject(Error("Bh"))):d.return(d.yieldResult)})};
P7C=function(A,H){if(A){var k=_.$E();k().set(A,Object.assign({},k().get(A),{isSubmitting:function(){return H}}));
_.SVQ(k())}};
YVr=function(A){if(A){var H=_.wj().resolve(_.J7);H&&(A=_.h7(A()))&&H.resolveCommand(A)}};
p9I=function(A,H){H=H===void 0?{shouldPersist:!0}:H;return{useUpdatableData:function(k,d){var W=_.be(function(){return A(k())},void 0,"Gmrblb"),z=anv(k,W,d,H);
_.CA(function(){if(W()!=null){cXb.set(W(),z);var u=W();_.aV(function(){cXb.delete(u)})}},"j4hx9b");
return z},
getData:function(k){var d;return(d=cXb.get(A(k)))==null?void 0:d[0]()},
updateData:function(k,d){k=A(k);k=cXb.get(k);if(!k)return!1;var W=_.r(k);k=W.next().value;W=W.next().value;d=d(k());W(d);return!0}}};
anv=function(A,H,k,d){d=d===void 0?{}:d;var W=_.r(_.C0(function(){var B=A(),h=H();return QjV(B,h,k,d)})),z=W.next().value,u=W.next().value;
return[z,function(B){u(B);var h=H();if(d.shouldPersist&&h!=null){var O,T=(O=k==null?void 0:k.map(function(m){return m()}))!=null?O:[];
_.Ac.set(h,[B,T])}}]};
QjV=function(A,H,k,d){d=d===void 0?{}:d;if(H==null||!d.shouldPersist)return A;d=_.Ac.get(H);if(!d)return A;var W=_.r(d);d=W.next().value;var z=W.next().value,u;W=(u=k==null?void 0:k.map(function(B){return B()}))!=null?u:[];
if((z==null?0:z.length)&&(k==null?0:k.length)&&W.some(function(B,h){return B!==z[h]}))return _.Ac.remove(H),A;
(k==null?0:k.length)&&_.Ac.set(H,[d,W]);return d};
Eal=function(A){var H=_.r(_.RV(!0,void 0,"bKtO6d")),k=H.next().value;H=H.next().value;return VRW(H,function(){var d=mF(A.children());return _.x(_.R,{cond:k,then:function(){return d},
else:A.fallback})})};
VRW=function(A,H){var k=Ubr,d=0;Ubr={addDep:function(){d++;LA(function(){A(!1)})},
removeDep:function(){--d===0&&LA(function(){A(!0)})}};
try{return H()}finally{Ubr=k}};
_.HG=function(A){var H=lnl(A),k=H.data,d=H.mapping,W=H.wrapper;H=H.pendingFallback;var z=function(){return tRf(_.pA(k))},u=function(){var B=z(),h=[];
B=_.r(B);for(var O=B.next();!O.done;O=B.next()){var T=void 0;O=O.value;var m=void 0;for(T in O)if(!(!O).hasOwnProperty(T)){m=T;break}(T=m)&&h.push(T)}return h};
return A.data?_.x(Eal,{fallback:H},function(){return _.x(_.Ix,{each:u},function(B,h){var O=W?function(v){return W(function(){return d[B](v,h)},T,h)}:function(v){return d[B](v,h)};
O.debugName||(O.debugName=String(B));if(!d[String(B)])return document.createComment("");O.componentType!==yM&&NZA(String(B));var T=MRl(z,B,h);if(_.b("web_add_microtask_to_stamper")&&!naW.has(String(B))){var m=_.r(_.RV(!1,void 0,"afb1md")),J=m.next().value,g=m.next().value;Promise.resolve().then(function(){naW.add(String(B));g(!0)});
return _.x(_.R,{cond:J,then:function(){return _.x(O,{data:T})}})}return _.x(O,{data:T})})}):_.x(_.sD,null)};
lnl=function(A){var H=A.targetId||ZtV(A.children);if(!A.data||!H)return Object.assign({},A,{mapping:A.children});var k="stamper-"+fnW++,d=function(){var B;return(B=typeof A.targetId==="function"?A.targetId(k):A.targetId)!=null?B:k};
H=_.r(w9W(function(){var B=tRf(A.data());B.targetId=d;return B})).next().value;
var W=Object.assign({},(_.wj().resolve(_.fZ(oal))||{}).replaceableMapping,A.children);if(A.replacementWrapper){var z=W.notificationTextRenderer,u=W.notificationMultiActionRenderer;z&&(W.notificationTextRenderer=function(B,h){return A.replacementWrapper(z({data:B.data},h))});
u&&(W.notificationMultiActionRenderer=function(B,h){return A.replacementWrapper(u({data:B.data},h))})}return Object.assign({},A,{data:H,
mapping:W,wrapper:function(B,h,O){return voW({targetId:d,stamperIndex:O},A.wrapper?function(){return A.wrapper(B,h,O)}:B)}})};
MRl=function(A,H,k){var d;return _.be(function(){var W=A()[k()];if(W)d=W[H];else return _.Pq(new _.Ti("Stamper failed to find "+String(H)+" at index "+k()+" of data array of length "+(A().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),d;return W[H]},void 0,"Su9U8")};
ZtV=function(A){A=_.r(Object.keys(A));for(var H=A.next();!H.done;H=A.next())if(H=H.value,$bV.includes(H)||ARm.includes(H)||Hcl.includes(H))return!0;return!1};
tRf=function(A){return A?Array.isArray(A)&&A instanceof Array?A:[A]:[]};
NZA=function(A){if(_.b("web_enable_renderer_logger")){var H;(H=_.wj().resolve(_.fZ(szr)))!=null&&H.loggingEnabled&&!H.ids.has(A)&&H.ids.add(A)}};
k3I=function(){var A,H;return(H=(A=_.wj().resolve(_.fZ(_.sF)))==null?void 0:A())!=null?H:!1};
W4N=function(A,H){A=A===void 0?ddr:A;switch(H.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},A,{isOpen:H.payload});default:return A}};
qTr=function(A,H){A=A===void 0?zuI:A;switch(H.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},A,{isAllowed:H.payload});default:return A}};
ulb=function(A,H){A=A===void 0?rRA:A;switch(H.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},A,{errorMessage:H.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},A,{title:H.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},A,{privacy:H.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},A,{isDisabled:H.payload});default:return A}};
eu8=function(A,H){A=A===void 0?BPr:A;switch(H.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},A,{isOpen:H.payload});default:return A}};
icI=function(A,H){A=A===void 0?xdX:A;switch(H.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},A,{isFullscreen:H.payload});case "SET_NAVIGATION_BUTTON":var k=H.payload.targetId,d=Object.assign({},A.navigationButtons);d[k]=H.payload.button;return Object.assign({},A,{navigationButtons:d});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},A,{topPanelId:H.payload});case "SET_SECONDARY_HEADER":return k=H.payload.panelId,d=Object.assign({},A.secondaryHeader),d[k]=H.payload.secondaryHeader,
Object.assign({},A,{secondaryHeader:d});default:return A}};
TPN=function(){return bg(Object.assign({},{voiceSearch:hQI,engagementPanel:icI,bottomSheet:W4N,cinematicSetting:qTr,shorts:LEI,drawerLayout:eu8,createPlaylist:ulb,locationCollection:huC,reportChannel:Ocf,reportForm:Rul},vvA))};
mdC=function(A,H){_.IE.addLowPriorityJob(function(){var k,d,W;return _.e(function(z){switch(z.nextAddress){case 1:return _.S_(z,2),z.yield(fzb(),4);case 4:return z.yield(fetch(A),5);case 5:return k=z.yieldResult,z.yield(k.json(),6);case 6:d=z.yieldResult;Wn.set(A,d);requestAnimationFrame(function(){H(d)});
_.QN(z,0);break;case 2:W=_.VA(z),_.Pq(W),_.EN(z)}})})};
JRQ=function(A){var H={animationConfig:{},listeners:{}},k=function(){A(!0)};
H.listeners.data_failed=k;H.listeners.error=k;H.listeners.data_ready=function(){A(!1)};
return H};
L4V=function(A){var H=A.model;var k=A.subscribed;var d=A.isOverlay;var W=A.element;var z=A.commandController;var u=A.notificationState;if(k){var B,h;var O=(H==null?void 0:(B=H.buttonStyle)==null?void 0:B.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:H==null?void 0:(h=H.unsubscribeButtonContent)==null?void 0:h.buttonText}else{var T;O=H==null?void 0:(T=H.subscribeButtonContent)==null?void 0:T.buttonText}a:{var m;switch(H==null?void 0:(m=H.buttonStyle)==
null?void 0:m.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":B="S";break a;default:B="M"}}a:if(d)d="overlay";else switch(H.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":d="overlay";break a;default:d="mono"}a:if(k)var J="tonal";else switch((J=H.buttonStyle)==null?void 0:J.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":J=
"tonal";break a;default:J="filled"}return{style:d,type:J,state:H.disableSubscribeButton?"disabled":"active",size:B,focused:A.focused,toggled:k,accessibilityLabel:gSC(H,k,u),buttonText:O,iconPosition:H.disableNotificationBell?"none":"leading-trailing",onTap:bcr(H,k,W,z),disableTextEllipsis:!!A.disableTextEllipsis}};
bcr=function(A,H,k,d){return function(W){if(H){var z;var u=A.disableNotificationBell?_.h7(A==null?void 0:(z=A.unsubscribeButtonContent)==null?void 0:z.onTapCommand):_.h7(A==null?void 0:A.onShowSubscriptionOptions)}else{var B;u=_.h7(A==null?void 0:(B=A.subscribeButtonContent)==null?void 0:B.onTapCommand)}u&&wb(u,{form:{element:k==null?void 0:k.value},commandController:d});W.stopPropagation()}};
gSC=function(A,H,k){if(H){if(A==null?0:A.disableNotificationBell){var d;return A==null?void 0:(d=A.unsubscribeButtonContent)==null?void 0:d.accessibilityText}switch(k){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var W;return A==null?void 0:(W=A.bellAccessibilityData)==null?void 0:W.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var z;return A==null?void 0:(z=A.bellAccessibilityData)==null?void 0:z.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var u;return A==null?void 0:(u=
A.bellAccessibilityData)==null?void 0:u.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var B;return A==null?void 0:(B=A.bellAccessibilityData)==null?void 0:B.disabledLabel;default:var h;return A==null?void 0:(h=A.unsubscribeButtonContent)==null?void 0:h.accessibilityText}}else{var O;return A==null?void 0:(O=A.subscribeButtonContent)==null?void 0:O.accessibilityText}};
vSl=function(A,H){return _.Mw(A.entities,"subscriptionStateEntity",H)};
yRQ=function(A,H){return _.Mw(A.entities,"subscriptionNotificationStateEntity",H)};
jzV=function(A,H){return _.Mw(A.entities,"upcomingEventReminderStateEntity",H)};
Iof=function(A,H){return _.Mw(A.entities,"commentEntityPayload",H)};
YTN=function(A,H){return _.Mw(A.entities,"engagementToolbarSurfaceEntityPayload",H)};
PjN=function(A,H){return _.Mw(A.entities,"triStateButtonStateEntityPayload",H)};
G3b=function(A,H){return _.Mw(A.entities,"commerceCartCheckoutButtonEntity",H)};
F4f=function(A,H){return _.Mw(A.entities,"commandEntity",H)};
XCr=function(A){if(A){switch(A){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":A="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":A="NOTIFICATIONS_OFF";break;default:A="NOTIFICATIONS_NONE"}return A}};
Ddr=function(A,H,k){k.subscribed!==H&&((k=k.key)&&_.XI(_.kH("subscriptionStateEntity",k,{key:k,subscribed:H})),A.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:H})),H||_.Ud(A,"yt-unsubscribe-action"))};
Cj8=function(A){A=_.L(_.h7(A),_.d9);var H,k,d,W;return(W=_.L(A==null?void 0:(H=A.panelLoadingStrategy)==null?void 0:(k=H.inlineContent)==null?void 0:(d=k.sheetViewModel)==null?void 0:d.content,STI))==null?void 0:W.listItems};
K4A=function(A,H){if(A.onShowSubscriptionOptions&&H&&(A=Cj8(A.onShowSubscriptionOptions),A!=null&&A.length)){var k=XCr(H);A.forEach(function(d){d=_.L(d,_.WG);var W,z,u,B,h=d==null?void 0:(W=d.leadingImage)==null?void 0:(z=W.sources)==null?void 0:(u=z[0])==null?void 0:(B=u.clientResource)==null?void 0:B.imageName;d&&h&&(d.isSelected=h===k)})}};
aoN=function(A,H,k,d){H&&k?A.style.width=k+"px":!H&&d&&(A.style.width=d+"px")};
cRf=function(A,H,k){var d;(d=A.lottieEl)==null||d.goToAndPlay(0);var W;(W=H.lottieEl)==null||W.goToAndPlay(0);_.zV(_.IE,function(){var z;(z=k.lottieEl)==null||z.goToAndPlay(0)},300)};
pCf=function(A){return!(A==null||!A.iconName||(A==null?0:A.title))};
QzQ=function(A,H,k,d){k&&_.IE.cancelJob(k);k=_.IE.addLowPriorityJob(function(){d(void 0)},5E3);
d(k);H&&A!==(H.likeStatus==="LIKE")&&H.key&&_.XI(_.kH("likeStatusEntity",H.key,{key:H.key,likeStatus:A?"LIKE":"INDIFFERENT",hadUserInteraction:A}))};
_.VQV=function(A,H){return _.Mw(A.entities,"accountLinkStatusEntity",H)};
ESW=function(A,H){return _.Mw(A.entities,"hatsSurveyEntity",H)};
Udb=function(A,H){return _.Mw(A.entities,"hatsSurveyStateEntity",H)};
loW=function(A,H){return _.Mw(A.entities,"quantityIncrementerEntity",H)};
tQA=function(A){switch(A){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}};
NP8=function(A){switch(A){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}};
MQC=function(A){switch(A){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"}};
_.ZcI=function(A){var H=_.H5("web_generic_client_event_wait_period ",0);H||(H=3E5);var k=nSI.get(A);!_.b("enable_web_client_experiment_event_timeout_killswitch")&&k&&(0,_.w2)()-k<H||(nSI.set(A,(0,_.w2)()),_.yr("genericClientExperimentEvent",{eventType:A}))};
_.foA=function(A,H){var k,d,W,z;a:{var u=A.style;if(u===void 0)u=17;else switch(u){case "LIVE":u=18;break a;default:u=17}}return{type:u,text:H?Ik8({seconds:H}):_.PK(A.text),accessibilityText:(k=A.text)==null?void 0:(d=k.accessibility)==null?void 0:(W=d.accessibilityData)==null?void 0:W.label,icon:(z=A.icon)==null?void 0:z.iconType}};
wCA=function(A){switch(A){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
oSX=function(A){if(!A)return"";var H,k=(H=_.wj().resolve(_.fZ(_.sF)))==null?void 0:H(),d;if(!k&&((d=A.vibrantColorPalette)==null?0:d.iconInactiveColor))return OJ(A.vibrantColorPalette.iconInactiveColor,"1");var W;return k&&((W=A.darkColorPalette)==null?0:W.iconInactiveColor)?OJ(A.darkColorPalette.iconInactiveColor,"1"):A.color?OJ(A.color,"1"):A.sampledThumbnailColor?(A=A.sampledThumbnailColor,"rgba("+A.red+","+A.green+","+A.blue+");"):""};
_.qF=function(A,H){if(!A.includes("DATE_PLACEHOLDER"))return A;var k=new Date(0);k.setUTCSeconds(H);return A.replace("DATE_PLACEHOLDER",$d8(k))};
A4I=function(A,H,k){return function(d){var W=A.command;W&&(wb(W,{form:{element:k}}),H([W],d))}};
sJX=function(A,H,k,d,W){return function(z){var u=HeN(A,H);u&&wb(u,{form:{element:k},commandController:d});W&&z.stopPropagation()}};
HeN=function(A,H){if(A.signInEndpoint&&!_.b("web_subscribe_sign_in_endpoint_killswitch"))return A.signInEndpoint;if(H){if(A.serviceEndpoints)return A.serviceEndpoints[1];if(A.onUnsubscribeEndpoints)return A.onUnsubscribeEndpoints[0]}else{if(A.serviceEndpoints)return A.serviceEndpoints[0];if(A.onSubscribeEndpoints)return A.onSubscribeEndpoints[0]}};
kIl=function(A,H){var k,d,W,z;H=H&&((k=A.unsubscribeAccessibility)==null?void 0:(d=k.accessibilityData)==null?void 0:d.label)||((W=A.subscribeAccessibility)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label);return A.longSubscriberCountText?[H,_.PK(A.longSubscriberCountText)].filter(function(u){return u}).join(" "):H};
r9=function(A,H){return H||(A==null?0:A.isChannelDelegate)?"disabled":"active"};
dkl=function(A,H){var k;switch((k=A.style)==null?void 0:k.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:r9(A)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:r9(A)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:r9(A,!0)};case "OVERLAY":return H?{style:"overlay",type:"tonal",state:r9(A)}:{style:"overlay",type:"filled",state:r9(A)};default:return H?{style:"mono",type:"tonal",state:r9(A)}:{style:"mono",type:"filled",state:r9(A)}}};
_.u2=function(){for(var A=[],H=_.r(_.o7.apply(0,arguments)),k=H.next();!k.done;k=H.next())if(k=k.value)if(typeof k==="string")A.push(k);else{k=_.r(Object.entries(k));for(var d=k.next();!d.done;d=k.next()){var W=_.r(d.value);d=W.next().value;(W=W.next().value)&&A.push(d)}}return A.join(" ")};
WYX=function(A){switch(A){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
zzA=function(A){switch(A){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
qLC=function(A,H){var k=A.map(function(d){return d.toString()});
return _.lc(function(d){if(k.includes(d.key)){H&&d.preventDefault();var W;(W=d.currentTarget)==null||W.click()}})};
_.BG=function(){return qLC(["Enter"])};
_.r48=function(){return qLC(["Enter"," "],!0)};
_.eu=function(A){if(A.composedPath)return A.composedPath();if(!A.__composedPath){for(var H=[],k=A.target;k;)H.push(k),k=k.parentNode;H.push(window);A.__composedPath=H}return A.__composedPath};
_.xH=function(A,H,k){A=_.r(A);for(var d=A.next();!d.done;d=A.next()){d=d.value;if(d===H)break;for(var W=_.r(k),z=W.next();!z.done;z=W.next())if(z=z.value,d.tagName===z||d.role==="button"&&z==="BUTTON")return!0}return!1};
BQC=function(A,H){var k,d=(k=H.observer)!=null?k:_.wj().resolve(tb);if(A){k=uHm(A);var W=[];H.showOption&&W.push(d.observe(A,function(){H.visibilityCallback(!0,A)},H.showOption));
H.hideOption&&W.push(d.observe(A,function(){H.visibilityCallback(!1,A)},H.hideOption));
H.prescanOption&&H.prescanCallback&&W.push(d.observe(A,function(){H.prescanCallback()},H.prescanOption));
var z;k.visibilityMonitorKeys=((z=k.visibilityMonitorKeys)!=null?z:[]).concat(W)}};
uHm=function(A){var H;return(H=A.polymerController)!=null?H:A};
_.hc=function(A){return!!_.i2(A)};
_.OF=function(A,H,k,d,W){return function(z){var u=Lhl();_.CA(function(){if(z){ezC(z,A(),W);var B=xkl(z,A(),H,k,d,u);_.aV(B)}},"lrewVd")}};
ezC=function(A,H,k){var d=iev(H),W=hzW(H),z=d&&mhC,u=W&&TzI;(d||W)&&BQC(A,{visibilityCallback:function(B){var h=_.wj().resolve(_.J7);B&&d?(h.resolveCommand(d,{form:{element:k?A:void 0},disableClickTracking:!0}),d=iev(H)):!B&&W&&(h.resolveCommand(W,{form:{element:k?A:void 0},disableClickTracking:!0}),W=hzW(H))},
showOption:z,hideOption:u})};
xkl=function(A,H,k,d,W,z){var u=new Map;if(H=_.i2(H)){var B;A=(d==null?void 0:(B=d.onTap)==null?void 0:B.value)||A;k=Oev(H,A,k==null?void 0:k.onTap,W,z);A.addEventListener("click",k);u.set("click",k)}return function(){for(var h=_.r(u),O=h.next();!O.done;O=h.next()){var T=_.r(O.value);O=T.next().value;T=T.next().value;A.removeEventListener(O,T)}}};
_.i2=function(A){var H;return(A=(H=_.L(A,_.R5))==null?void 0:H.onTap)&&_.h7(A)};
iev=function(A){var H;return(A=(H=_.L(A,_.R5))==null?void 0:H.onVisible)&&_.h7(A)};
hzW=function(A){var H;return(A=(H=_.L(A,_.R5))==null?void 0:H.onHidden)&&_.h7(A)};
Oev=function(A,H,k,d,W){var z=function(B){_.wj().resolve(_.J7).resolveCommand(A,B)},u=function(B){d&&_.xH(_.eu(B),H,d)||z(B.target?{form:{element:B.target,
sourceData:A,mutationContext:W}}:void 0)};
k&&(u=function(B){k(B,z)});
return u};
RzC=function(A){switch(A){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}};
TQm=function(A){var H=A.numAvatarsInCluster;switch(A.clusterSize){case "small":return H===2?22:18;case "40":return H===2?24:22;default:return H===2?24:20}};
mkX=function(A,H){return function(k){var d=Object.keys(H);_.CA(function(){if(A!=null&&A()){for(var W=_.r(d),z=W.next();!z.done;z=W.next())z=z.value,k.addEventListener(z,H[z]);_.aV(function(){for(var u=_.r(d),B=u.next();!B.done;B=u.next())B=B.value,k.removeEventListener(B,H[B])})}},"bXZGfe")}};
J4I=function(A){switch(TQm(A)){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""}};
gWl=function(A){switch(A){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""}};
beI=function(A){switch(TQm(A)){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""}};
LY8=function(A){switch(A){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""}};
vWQ=function(A){switch(A){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}};
y48=function(A){return A==="medium"||A==="48"||A==="large"||A==="extra-large"||A==="extra-extra-large"||A==="giant"};
jJV=function(A){return!!((A==null?0:A.includes(3))||(A==null?0:A.includes(5)))};
YLW=function(A){var H=A.data;return{size:Ix8(H.avatarImageSize),type:H.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:A.onTap,decorations:A.decorations||[],badgeText:A.badgeText,accessibilityText:A.accessibilityText,avatarButtonCustomClassName:A.avatarButtonCustomClassName,clusterLayoutConfig:A.clusterLayoutConfig}};
Ix8=function(A){switch(A){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"}};
PXC=function(A){switch(A){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}};
GIb=function(A){switch(A){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""}};
FYb=function(A){var H=A.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",k,d=A.avatars&&A.avatars.length>0?(k=_.L(A.avatars[0],_.TV))==null?void 0:k.avatarImageSize:"AVATAR_SIZE_UNKNOWN";k=PXC(d)||0;if(H){var W,z=(W=A.avatarClusterSize)!=null?W:"AVATAR_SIZE_M";H=PXC(z);var u,B,h=Math.min((B=(u=A.avatars)==null?void 0:u.length)!=null?B:0,4),O;return{avatars:((O=A.avatars)==null?void 0:O.slice(0,4))||[],avatarSizeInPx:k,avatarStackStyle:{width:H+"px",height:H+"px",position:"relative"},avatarStyle:function(m){var J=
TQm({clusterSize:Ix8(z),numAvatarsInCluster:h,avatarIndex:m});var g=PXC(z);h===3&&m===2?(g=(g-J)/2,g=(_.pZ("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*g):g=void 0;return{position:"absolute",top:h===2&&m===1||h===3&&m===2||h===4&&m>=2?"0":void 0,bottom:h===2&&m===0||h>2&&m<2?"0":void 0,left:h===2&&m===1||h>2&&(m===1||m===3)?"0":void 0,right:h<=3&&m===0||h===4&&(m===0||m===2)?"0":void 0,transform:g?"translateX("+g+"px)":void 0,width:J+"px",height:J+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(m){return{clusterSize:Ix8(A.avatarClusterSize),numAvatarsInCluster:h,avatarIndex:m}},
avatarButtonCustomClassName:void 0}}var T;return{avatars:((T=A.avatars)==null?void 0:T.slice())||[],avatarSizeInPx:k,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:GIb(d),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
XQI=function(A,H,k){return function(){wb(A,{form:{element:H},commandController:k})}};
DkV=function(A){switch(A){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
SLW=function(A){switch(A){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"}};
CXX=function(A){if("accessibilityText"in A)return A.accessibilityText||"";if("title"in A){var H,k,d;return((H=A.title)==null?void 0:(k=H.accessibility)==null?void 0:(d=k.accessibilityData)==null?void 0:d.label)||""}if("accessibility"in A){var W,z;return((W=A.accessibility)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label)||""}return""};
KYI=function(A){return"inlinePlayerData"in A};
m5=function(A){return new axW(A)};
c4N=function(A){switch(A){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"}};
pQW=function(A){switch(A){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;case "BADGE_TIMELY":return 5;default:return 0}};
QJC=function(A){switch(A){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}};
V4v=function(A){return function(H){A&&(A.thumbnailElRef=H.thumbnailElRef,A.thumbnail=H.thumbnail,A.thumbnailOverlays=H.thumbnailOverlays,A.thumbnailSize=H.thumbnailSize)}};
EWV=function(A){switch(A){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
lxW=function(A){var H=_.r(_.RV(!1,void 0,"E6wDDe")),k=H.next().value,d=H.next().value;_.CZ(function(){var W=A==null?void 0:A();if(W){var z=_.wj().resolve(_.fZ(UkI));if(z){var u={triggeringElement:W,onDwellTriggeredFn:function(){d(!0)},
onDwellEndFn:function(){d(!1)}};
z.registerElement(u);_.aV(function(){_.Jc(z,u)})}}});
return k};
t4m=function(A){if(A.querySelector("img")){var H=A.querySelector("img");H.addEventListener("error",function(){jAr(H.src).then(function(k){(k=_.wO(k).toString())?H.src=k:H.removeAttribute("src")}).catch(function(){H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
NQA=function(A,H,k){k?k(H):_.mu(H,A.target?{form:{element:A.target}}:void 0)};
_.g9=function(A,H,k,d){return function(W){_.CA(function(){function z(T){T=T.composedPath();T=_.r(T);for(var m=T.next();!m.done;m=T.next()){m=m.value;if(m===W)break;if(m.className.indexOf("HostIsClickableAdComponent")>=0||m.tagName==="A".toString()||m.tagName==="BUTTON".toString())return!0}return!1}
var u=new Map,B,h=(B=A())==null?void 0:B.onTap;if(h){B=function(T){z(T)||NQA(T,h,H)};
var O=function(T){z(T)||T.key!=="Enter"||NQA(T,h,H)};
(k==null?0:k())||_.b("enable_web_home_top_landscape_image_layout_level_click")?(W.addEventListener("tap",B),u.set("tap",B)):(W.addEventListener("click",B),u.set("click",B));if(d==null?0:d())W.addEventListener("keydown",O),u.set("keydown",O)}_.aV(function(){for(var T=_.r(u),m=T.next();!m.done;m=T.next()){var J=_.r(m.value);m=J.next().value;J=J.next().value;W.removeEventListener(m,J)}})},"D7XqOc")}};
M4r=function(A,H){var k,d=(k=A.interaction)==null?void 0:k.onTap;if(A=_.Ry({elementsCommand:d,forceNewState:!0,skipOnClick:!0}))return A.onclick=function(W){H7W(W)&&(W.preventDefault(),d&&NQA(W,d,H))},TA(A)?A:void 0};
nW8=function(A){switch(A){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
ZeC=function(A){switch(A){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"}};
fxX=function(A){switch(A){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"}};
_.wQI=function(A){return _.b("rich_grid_enable_dynamic_offset")&&A?Math.max((A-_.H5("rich_grid_dynamic_offset_anchor_width",1300))/100*_.H5("rich_grid_dynamic_offset_offset_per_100",10),_.H5("rich_grid_dynamic_offset_lower_bound",-60)):0};
oW8=function(A,H){switch(H){case 4:return 16;case 1:return A<528?16:A<1024?32:48;case 2:return(A>=528?16:8)/2;case 3:return(A<528?16:A<1024?32:48)+(A>=528?16:8)/2;default:return 0}};
$kf=function(A){var H=A.originalContainerWidth;var k=A.sizing;var d=A.standardUnit;if(A.isCompactList&&H<528)return 1;switch(k){case "STANDARD":return d;case "COMPACT":return d+1;case "EXTRA_COMPACT":return _.b("web_responsive_extra_compact_2x")?d*2:_.b("web_responsive_current")?d===1?2:d%2===0?d/2*3:d+2:d<4?d*2:Math.ceil(d*3/2);case "MINI":return d>1?d*2:3;default:return d}};
HqX=function(A){var H=A.containerWidth;var k=A.peek;var d=A.gutter;var W=A.numItems;A=A.ignoreMaxWidthLimit;H=k?Math.max((H-k-d*W)/W,0):Math.max((H-d*(W-1))/W,0);return A?H:Math.min(H,AFV)};
_.b2=function(A){var H=A.containerWidth;var k=A.hasPeek;var d=A.sizing;var W=A.marginSettings;var z=A.isCompactList;var u=A.enableFullBleedForSingleCol;var B=A.standardUnitMinWidth;d=d||"STANDARD";k=!!k;A=H>=528?16:8;var h=k?H>=528?48:24:0;W=oW8(H,W);var O=Math.max(H-W*2,0);B=Math.min(Math.max(Math.floor((O-h+A)/((B!=null?B:sUr)+_.wQI(H)+A)),1),6);var T=(u=!!u&&B===1)||B===1&&d!=="STANDARD";k=k||T?O:Math.min(O,(AFV+A)*B-A);d=$kf({originalContainerWidth:H,sizing:d,standardUnit:B,isCompactList:z});
return{itemWidth:HqX({containerWidth:k,peek:h,gutter:A,numItems:d,ignoreMaxWidthLimit:T}),gutter:A,maxContainerWidth:k,numItems:d,margin:u?0:W,contentMargin:oW8(H,1),typographyBump:HqX({containerWidth:k,peek:h,gutter:A,numItems:B,ignoreMaxWidthLimit:T})>400&&!(z&&H<528),standardUnit:B}};
Lh=function(A){switch(A){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.k9A=function(A){if(A){var H;if((H=A.responsiveContainerConfiguration)==null?0:H.responsiveSize)return Lh(A.responsiveContainerConfiguration.responsiveSize);if(A.layoutSizing)switch(A.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"}}};
d7I=function(A){if(A.fullbleed)return 1;switch(A.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
u7l=function(A,H,k,d,W,z,u,B,h){a:if(A===4&&d==="LOCKUP_CONTENT_TYPE_SOURCE")var O=1;else switch(A){case 3:O=1;break a;default:O=0}var T=WQQ(A,d);a:switch(A){case 4:z=!!(z&&z<100);break a;default:z=!1}a:switch(A){case 3:case 4:var m=d==="LOCKUP_CONTENT_TYPE_CHANNEL"||d==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:m=!1}return{metadataOnThumbnail:T,isOverlay:B||T,isCard:zyQ(d,u),sizing:H!=null?H:"STANDARD",typographyBump:k!=null?k:!1,isTiny:z,isCentered:m,isCollection:qUI(d),arrangement:O,addMarginForFullbleed:A===
1&&d!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:A===1&&d==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:rFl(d,W,h),disableRounding:A===5||zyQ(d,u)||A===1&&d==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:qUI(d)?2:0,useLegacyTypography:!(h==null||!h.useLegacyTypography),useRichGridLegacyTypography:!(h==null||!h.useRichGridLegacyTypography)&&!_.b("web_enable_typography_bump"),compactMetadata:O===0&&d==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:h==null?void 0:h.onFocusEffect,titleMaxLines:d==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
qUI=function(A){switch(A){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}};
zyQ=function(A,H){if(H&&A==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(A){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
WQQ=function(A,H){if(H==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(A){case 5:return!0;case 4:return!1;default:return!1}};
rFl=function(A,H,k){if(H&&(k==null||!k.alwaysRespectPodcastShowAspectRatio||A!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(A){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}};
_.vG=function(A){if(A){var H;return((H=_.wj().resolve(_.fZ(_.sF)))==null?0:H())?A.darkThemeImage:A.image}};
x7l=function(A,H,k,d,W,z){if(W&&z&&H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:W,height:z};if(!k)return{};W=k.size;k=k.allowFullWidth;if(H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&k)return{fullWidth:!0};if(W===void 0)return{};switch(A){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:W,height:W};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:W,height:1/BhX*W};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:W*
eyW,height:W};default:return(d==null?0:d.height)&&(d==null?0:d.width)?d.width/d.height>1?{maxWidth:W*eyW}:{maxWidth:W}:{maxWidth:W}}};
iql=function(A){var H;return A&&((H=_.vG(A.themedImage))!=null?H:A.image)};
hyA=function(A){var H;return A==null?void 0:(H=A.sources)==null?void 0:H[0]};
OqI=function(A){switch(A){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"}};
_.RyA=function(A){if(A)return"content-id-"+A};
ThA=function(A){switch(A.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"}}};
m7b=function(A){var H=_.yP.currentPageSubTypeSelector(_.FI().getState())||"";return A?A+H:""};
JFV=function(A){switch(A){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
bqN=function(A){var H=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],k=_.r(_.RV(void 0,void 0,"JrqNsb")),d=k.next().value,W=k.next().value,z=_.r(_.RV(void 0,void 0,"rWytse"));k=z.next().value;var u=z.next().value;z=_.r(_.RV(void 0,void 0,"DHRqxe"));var B=z.next().value,h=z.next().value;return{touchFeedbackEvents:{pointerUpEvent:d,pointerDownEvent:k,pointerLeaveEvent:B},touchFeedbackOnPointerUp:_.lc(function(O){gbN(_.eu(O),H)||(W(O),u(void 0),h(void 0))}),
touchFeedbackOnPointerDown:_.lc(function(O){A==null||A(O);gbN(_.eu(O),H)||(u(O),W(void 0),h(void 0))}),
touchFeedbackOnPointerLeave:_.lc(function(O){gbN(_.eu(O),H)||(h(O),u(void 0),W(void 0))})}};
gbN=function(A,H){H=H===void 0?[]:H;H=[].concat(_.fV(H),["BUTTON".toString()]);A=_.r(A);for(var k=A.next();!k.done;k=A.next()){k=k.value;for(var d=_.r(H),W=d.next();!W.done;W=d.next())if(k.tagName===W.value)return!0}return!1};
LQ8=function(A){switch(A){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"}};
vbA=function(A){return A.scrollHeight-A.offsetHeight>1};
yFV=function(A,H){var k;return yw(A,((k=A.content)==null?void 0:k.length)||0,!H)};
YUW=function(A,H,k,d,W,z){if(!H||jUN){var u;return yw(A,((u=A.content)==null?void 0:u.length)||0,!0)}H=d.value;if(!k.value||!H||!A.content)return A;k=0;d=A.content.length;u=0;IlW||(IlW=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var B=IlW;for(W=W*z*B;k<=d;)z=Math.floor(k+(d-k)/2),B=yw(A,z)||A,H.firstChild&&(H.firstChild.textContent=B.content),H.scrollHeight>W?d=z-1:(u=z,k=z+1);return yw(A,u)};
PFX=function(A,H){var k,d;return(((k=A.content)==null?void 0:k.length)||0)>(((d=H.content)==null?void 0:d.length)||0)};
G9C=function(A,H,k,d,W,z){var u=_.GP("truncated-text-content"),B=_.GP("truncated-text-content"),h=_.GP("button"),O=_.GP("button"),T=_.GP("button"),m=_.wj().resolve(_.ju),J=_.r(_.C0(function(){return yFV(A(),W())})),g=J.next().value,v=J.next().value;
J=_.r(_.C0(function(){return PFX(A(),g())}));
var y=J.next().value,X=J.next().value,D=null;_.CA(function(){function K(){if(u.value&&h.value&&T.value){var p=z()?A():YUW(A(),W(),u,B,H(),k());v(p);requestAnimationFrame(function(){if(u.value&&h.value&&T.value){var M=vbA(u.value)||PFX(A(),p);X(M);if(!d()){var Z=vbA(u.value),WV=k(),hA=u.value,qv=h.value,eN=T.value,mr=m==="rtl";if(hA&&qv){var Cl=qv.offsetLeft;mr&&(Cl=hA.offsetWidth-qv.offsetWidth-qv.offsetLeft);if(M){M=qv.offsetWidth;qv=hA.offsetWidth;var pl=Z?qv-M-70:Cl-70;WV="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
WV+"rem,\n      #000 "+WV+"rem,\n      #000 100%), linear-gradient(\n      to "+((mr?"left":"right")+",\n      #000 0px,\n      #000 "+pl+"px,\n      transparent "+(Z?qv-M:pl+70)+"px)");hA.style.setProperty("-webkit-mask-image",WV);hA.style.setProperty("mask-image",WV)}else hA.style.setProperty("-webkit-mask-image",""),hA.style.setProperty("mask-image","");Z?mr?(eN.style.setProperty("left","0"),eN.style.setProperty("right","unset")):(eN.style.setProperty("left",""),eN.style.setProperty("right","0")):
mr?(eN.style.setProperty("left","unset"),eN.style.setProperty("right",Cl+"px")):(eN.style.setProperty("left",Cl+"px"),eN.style.setProperty("right","unset"))}}}})}}
var N,U;(N=D)==null||(U=N.stop)==null||U.call(N);N=new _.Nt(K,17);K();D=N},"KjwIxd");
_.CZ(function(){v(yFV(A(),W()));X(PFX(A(),g()));var K=function(){IlW=void 0;var U,p;(U=D)==null||(p=U.fire)==null||p.call(U)};
if(window.ResizeObserver){var N=new ResizeObserver(K);N.observe(u.value);_.aV(function(){var U,p;(U=D)==null||(p=U.stop)==null||p.call(U);N.disconnect()})}else window.addEventListener("resize",K),_.aV(function(){var U,p;
(U=D)==null||(p=U.stop)==null||p.call(U);window.removeEventListener("resize",K)})});
return{isTruncated:y,displayText:g,contentRef:u,hiddenRef:B,placeholderTruncationTextRef:h,hiddenTruncationTextRef:O,truncationTextRef:T}};
FQf=function(A){return{content:A!=null?A:""}};
XtN=function(A){return _.h7(A.onTap)||_.i2(A.rendererContext)};
D7v=function(A){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:A.overflowMenuA11yLabel,onTap:function(H){H.preventDefault();H.stopPropagation();if(A.overflowMenuOnTap){var k=_.Ry({elementsCommand:A.overflowMenuOnTap,forceNewState:!0});if(k==null?0:k.onclick)k.onclick(H)}}}};
_.I5=function(A,H,k,d,W){d=d===void 0?{}:d;if(!W||Math.random()<5E-4){H=H||null;k=k||null;A=A instanceof Error?A:new _.Ti(A);if(A.args)for(var z=_.r(A.args),u=z.next();!u.done;u=z.next())u=u.value,u instanceof Object&&(d=Object.assign({},u,d));d.category="H5 Ads Control Flow";H&&(d.slot=H?"slot:  "+H.slotType:"");k&&(d.layout=k?"layout:  "+k.layoutType:"",d.layoutId=k.layoutId);W&&(d.known_error_aggressively_sampled=!0);A.args=[d];_.Pq(A)}};
_.SUb=function(A,H){H=_.Du(H);_.Ud(A,"yt-open-popup-action",[H,A])};
_.YH=function(A,H){_.SUb(A,_.Yu(H))};
KQ8=function(A){if(!A)return"";if(CFV[A])return CFV[A];PG||(PG=_.$g("A"));PG.href!==A&&A2(PG,A);var H=PG.pathname;CFV[A]=H.startsWith("/")?H:"/"+H;return CFV[A]};
alI=function(){var A=KQ8(window.location.href);if(A==="/")return"home";if(A.startsWith("/results"))return"search";if(A.startsWith("/watch"))return"watch";if(A.startsWith("/shorts"))return"shorts";if(A.startsWith("/hashtag"))return"hashtag";if(A.startsWith("/create_channel"))return"create_channel";if(A.startsWith("/@")||A.startsWith("/user/")||A.startsWith("/channel/"))return"channel";if(A.startsWith("/experiments"))return"experiments";if(A.startsWith("/sponsor_channel"))return"sponsorship";if(A.startsWith("/select_site"))return"settings";
if(A.startsWith("/locate"))return"locate";if(A.startsWith("/redeem"))return"redeem";if(A.startsWith("/musicpremium")||A.startsWith("/premium")||A.startsWith("/red"))return"premium";if(A.startsWith("/paid_memberships"))return"paid_memberships";if(A.startsWith("/oops"))return"oops";if(A.startsWith("/clip"))return"clip";var H;return(GV==null?void 0:(H=GV.response)==null?void 0:H.page)==="404"?"404":A.startsWith("/feed/history")?"history":A.startsWith("/feed/library")?"library":A.startsWith("/feed/subscriptions")?
"subscriptions":A.startsWith("/feed/trending")?"trending":A.startsWith("/feed/news_destination")?"news":A.startsWith("/playlist")?"playlist":A.startsWith("/minor_moment")?"minor_moment":A.startsWith("/playable/")||A.match("^/playables/(?!saved).")?"mini_app":A.startsWith("/playables")?"playables":A.startsWith("/create/live/join")?"open_in_app":A.startsWith("/feed/explore")?"explore":"browse"};
_.XB=function(){var A=GV==null?void 0:GV.response,H=A==null?void 0:A.endpoint;if(!H)return(A==null?void 0:A.page)==="watch"?"watch":alI();var k;A=(k=_.L(H==null?void 0:H.commandMetadata,_.wn))==null?void 0:k.webPageType;k=!1;if(A&&!cFV.includes(A))switch(A){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 d;return((d=_.L(H==null?void 0:H.commandMetadata,_.wn))==null?0:d.url)&&KQ8(_.L(H.commandMetadata,_.wn).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var W;return(H=(W=_.L(H,_.fm))==null?void 0:W.browseId)?pt8[H]||"browse":"browse";default:k=!0}if(_.L(H,_.FB)||_.L(H,QUV))return"sponsorship";W=KQ8(window.location.href);if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/create_channel"))return"create_channel";
if(_.L(H,_.KT)&&W.startsWith("/shorts"))return"shorts";if(_.L(H,_.KT)&&W.startsWith("/watch"))return"watch";k&&(H=new _.Ti("Unsupported mWeb page type",{pathname:W,webPageType:A}),_.I3(H));return"browse"};
Dv=function(A,H,k,d){return A&&H?A!==k||H!==d?(_.I5(Error("Lh"),void 0,void 0,{"stored-slot":A,"stored-layout":H,"latest-slot":k,"latest-layout":d}),!1):!0:!1};
Eb8=function(A,H,k){return A({targetId:H},function(d){return k.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},d,{contents:[k.continuationItems?_.L(k.continuationItems[0],VHI):{}]}):k.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},d,{header:k.continuationItems?k.continuationItems[0]:void 0}):Object.assign({},d,{contents:k.continuationItems?k.continuationItems:[]})})};
U7r=function(A,H,k,d){if(H=H.trackingParams){var W,z=(W=k.getScreenLayer)==null?void 0:W.call(k);k=_.hx(z);W=_.ii(z);if(k&&W){var u=_.db(H);_.b("combine_ve_grafts")?A.graftServerVe(H,W,z):_.v0(k,W,u);d==null||d(u)}}};
tHX=function(A){var H;return((H=llI.get(A))==null?void 0:H.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
nbI=function(A,H){var k={type:H.slotType,controlFlowManagerLayer:NhQ.get(H.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H.slotEntryTrigger&&(k.entryTriggerType=H.slotEntryTrigger.triggerType);H.slotPhysicalPosition!==1&&(k.slotPhysicalPosition=H.slotPhysicalPosition);if(A){k.debugData={slotId:H.slotId};if(A=H.slotEntryTrigger)k.debugData.slotEntryTriggerData=MHV(A);A=H.slotFulfillmentTriggers;k.debugData.fulfillmentTriggerData=[];A=_.r(A);for(var d=A.next();!d.done;d=A.next())k.debugData.fulfillmentTriggerData.push(MHV(d.value));
H=H.slotExpirationTriggers;k.debugData.expirationTriggerData=[];H=_.r(H);for(A=H.next();!A.done;A=H.next())k.debugData.expirationTriggerData.push(MHV(A.value))}return k};
MHV=function(A,H){var k={type:A.triggerType};H!=null&&(k.category=H);A.triggeringSlotId!=null&&(k.triggerSourceData||(k.triggerSourceData={}),k.triggerSourceData.associatedSlotId=A.triggeringSlotId);A.triggeringLayoutId!=null&&(k.triggerSourceData||(k.triggerSourceData={}),k.triggerSourceData.associatedLayoutId=A.triggeringLayoutId);return k};
Zqr=function(A,H,k,d){H={opportunityType:H};A&&(d||k)&&(d=_.hj(d||[],function(W){return nbI(A,W)}),H.debugData=Object.assign({},k&&k.length>0?{associatedSlotId:k}:{},d.length>0?{slots:d}:{}));
return H};
flW=function(A){return Su(A.opportunityAdapterMap).concat(Su(A.triggerAdapterMap)).concat(Su(A.fulfillmentAdapterFactoryMap)).concat(Su(A.slotAdapterFactoryMap)).concat(Su(A.layoutRenderingAdapterFactoryMap))};
Su=function(A){var H=[];A=_.r(A.values());for(var k=A.next();!k.done;k=A.next())k=k.value,k.isAdsControlFlowEventListener&&H.push(k);return H};
Kh=function(A){var H=A.slotId,k=A.slotType,d=A.slotPhysicalPosition;return H===void 0?new Ch("Cannot construct a slot due to the missing id.",{adSlotMetadata:A}):k===void 0?new Ch("Cannot construct a slot due to the missing type.",{adSlotMetadata:A}):d===void 0?new Ch("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:A}):{slotId:H,slotType:k,slotPhysicalPosition:d,managerLayer:"external",adSlotLoggingData:A.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new wtf}};
obI=function(A){var H=A.layoutId,k=A.layoutType;return H===void 0?new a5("Cannot construct a layout due to the missing id.",{adLayoutMetadata:A}):k===void 0?new a5("Cannot construct a layout due to the missing type.",{adLayoutMetadata:A}):{layoutId:H,layoutType:k,managerLayer:"external",adLayoutLoggingData:A.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new wtf,interactionLoggingAdsClientData:{}}};
ph=function(A,H){if(H&&($7v(H.viewableCommand)||$7v(H.endOfSessionCommand))){var k=ADb(H==null?void 0:H.viewableCommand);H=ADb(H==null?void 0:H.endOfSessionCommand);if(!cG){var d=_.H5("custom_active_view_tos_timeout_ms");cG=d>0&&d!==36E5?new HzA(sKA(),d):new HzA(sKA())}k1A(cG,A);dDf(cG,A,k,H)}};
QP=function(A){cG&&k1A(cG,A)};
sKA=function(){var A=_.pZ("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(A==null?void 0:A.length)===2?A[1]:null};
$7v=function(A){A=_.h7(A);return!(A==null||!A.loggingUrls)&&A.loggingUrls.length>0};
ADb=function(A){if(!A)return[];var H=[],k,d;((d=(k=_.h7(A))==null?void 0:k.loggingUrls)!=null?d:[]).forEach(function(W){W.baseUrl&&H.push(W.baseUrl)});
return H};
Wzf=function(A){if(_.b("stop_av_measurement_on_detach"))return function(){QP(A)}};
zlI=function(A){return function(){_.b("stop_av_measurement_on_detach")&&QP(A)}};
qSC=function(A){if(_.b("stop_av_measurement_on_detach"))return function(){QP(A)}};
rDV=function(A){return A.shorts.isDesktopSmallWidth};
_.uvm=function(A){return A.shorts.isShortsActive};
_.BiI=function(A){return A.shorts.isWatchWhileMode};
_.VP=function(A){return A.shorts.isFullscreen};
_.EF=function(A){return A.shorts.isShortsPipActive};
xDV=function(A){var H,k;if(A=(H=_.L(A.reelsAdCardButtoned,elW))==null?void 0:(k=H.animatedRenderingConfig)==null?void 0:k.easeOutSeconds)return A+"s"};
hlA=function(A,H,k){return _.e(function(d){return d.return(new Promise(function(W){var z=new Image;z.onload=function(){W(new izr(A,H,k,z.naturalWidth,z.naturalHeight))};
z.src=k.toString()}))})};
OzA=function(A,H){return Math.round(A/1E-5)===Math.round(H/1E-5)};
RlA=function(A,H){return Math.round(A/1E-5)===Math.round(H/1E-5)};
Ti8=function(A,H){return A.year===H.year&&A.month===H.month&&A.day===H.day};
mDX=function(A,H){return A.year!==H.year?A.year<H.year:A.month!==H.month?A.month<H.month:A.day<H.day};
gDI=function(A){return A.day===JDN(A.year,A.month)?A.month===11?{year:A.year+1,month:0,day:1}:{year:A.year,month:A.month+1,day:1}:{year:A.year,month:A.month,day:A.day+1}};
bzl=function(){var A=new Date,H={year:A.getFullYear(),month:A.getMonth(),day:A.getDate()};return{start:H,end:{year:A.getFullYear()+2,month:A.getMonth(),day:A.getDate()},selectedDate:gDI(H)}};
Lzv=function(A){return(new Ic(2)).format(new Date(A.year,A.month,A.day))};
vDQ=function(A){return{year:A.getFullYear(),month:A.getMonth(),day:A.getDate()}};
yDl=function(A,H){A=(A+(Number(H.utcOffsetSec)+(new Date(A*1E3)).getTimezoneOffset()*60))*1E3;H=vDQ(new Date(A));return{date:H,secondsSinceMidnight:Math.floor((A-(new Date(H.year,H.month,H.day)).getTime())/1E3)}};
jKQ=function(A,H){H=H.months.findIndex(function(k){return k.year===A.year&&k.month===A.month});
return H>=0?H:void 0};
Iif=function(A){if(!A)return!1;try{if(A.host&&A.host.tagName==="YT-FORMATTED-STRING"&&A.host.id==="contenteditable-textarea"||A.nodeType===Node.ELEMENT_NODE&&A.tagName==="YTD-COMMENTBOX")return!0}catch(H){return!1}return Iif(A.parentNode)};
UF=function(A){return A?!(A.tagName!=="A"||!A.href||!A.classList.contains("yt-simple-endpoint")):!1};
YSf=function(A){return A?A.tagName==="IMG"&&A.classList.contains("emoji"):!1};
P0l=function(A,H,k){if(!A)return null;var d=UF(A);if(d&&k)return H=A.pathname.substring(A.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(d&&!k)return document.createTextNode("");if(YSf(A))return k=A.alt,A=A.dataset.emojiId,!A&&H&&(H=_.l2(H,k))&&H.isCustomEmoji&&(A=H.emojiId),A?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+A+">"):document.createTextNode(k);d=A.cloneNode(!1);for(var W=0;W<A.childNodes.length;++W){var z=P0l(A.childNodes[W],H,k);z&&d.appendChild(z)}return d};
tc=function(A){return A?UF(A)?A:tc(A.lastChild):null};
G1r=function(A){return A?UF(A)?A:G1r(A.firstChild):null};
FzI=function(A){if(!A)return null;for(var H=A.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=tc(H))?A=H:A=(A=A.parentNode)?tc(A.previousElementSibling):null;return A};
Xml=function(A){if(!A)return null;for(var H=A.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=G1r(H))?H:Xml(A.parentNode)};
DDV=function(A){var H=_.kk(),k=H.JSC$11667_getStartNode();if(!Iif(k.parentNode))return null;H=H.JSC$11667_getStartOffset();if(k.nodeType===Node.TEXT_NODE){var d=_.Jj(k,UF);if(d){if(A&&H===0||!A&&H===k.length)return d}else{if(A&&H===k.length)return!k||k.nodeName==="BR"||k.nextElementSibling&&_.NF(k.nextElementSibling,"display")==="block"?null:G1r(k.nextElementSibling);if(!A&&H===0)return k?tc(k.previousElementSibling):null}}if(k.nodeType===Node.ELEMENT_NODE)if(A){if(0<=H&&H<k.childNodes.length)return G1r(k.childNodes[H])}else if(0<
H&&H<=k.childNodes.length)return tc(k.childNodes[H-1]);return null};
SSX=function(A,H,k){if(!A)return null;if(A.nodeType===Node.TEXT_NODE)if(k){var d=FzI(A);if(d&&!/^\s+\S/.test(A.wholeText.substr(0,H)))return d}else if((d=Xml(A))&&!/\S\s+/.test(A.wholeText.substr(H,A.wholeText.length)))return d;return A.nodeType===Node.ELEMENT_NODE?k?FzI(A.childNodes[H]):Xml(A.childNodes[H]):SSX(A.parentNode,H,k)};
C0I=function(A){if(A.hasChildNodes())switch(A.tagName){case "DIV":case "A":case "SPAN":var H="";for(A=A.firstChild;A;A=A.nextSibling)H+=C0I(A);return H;default:return""}else switch(A.nodeType){case 3:return A.textContent;default:return""}};
MF=function(A,H){return A.year===H.year&&A.month===H.month&&A.day===H.day};
nh=function(A,H){return A.year!==H.year?A.year<H.year:A.month!==H.month?A.month<H.month:A.day<H.day};
Kzb=function(A){return{year:A.getFullYear(),month:A.getMonth(),day:A.getDate()}};
aim=function(A){var H=KgI;H=H===void 0?KgI:H;H(new Date(A.year,A.month,A.day))};
Zv=function(A){return Kzb(new Date(Number(A.seconds)*1E3))};
cDC=function(A){return A.year!==void 0&&A.month!==void 0&&A.day!==void 0};
pmX=function(A){return A.start!==void 0&&A.end!==void 0};
QKI=function(A){return pmX(A)?A.start:A};
V9A=function(A){return pmX(A)?A.end:void 0};
UD8=function(A,H){for(var k=[],d=new Date(A.start.year,A.start.month);d.getFullYear()<A.end.year||d.getFullYear()===A.end.year&&d.getMonth()<=A.end.month;){var W=k,z=W.push,u=d.getFullYear(),B=d.getMonth(),h=A,O=H,T=void 0,m=[],J=Object.freeze({extraCssClass:"invisible"}),g=new Date(u,B),v=Kzb(g);g=g.getDay();for(var y=Kzb(new Date);v.month===B;){g!==EDW&&T||(T=Array.from({length:7}).fill(J),m.push(T));var X={date:{year:u,month:B,day:v.day},extraCssClass:"",debugClass:""};X.extraCssClass=O(X.date,
v,y,h).trim();T[(g-EDW+7)%7]=X;v=v.day===JDN(v.year,v.month)?v.month===11?{year:v.year+1,month:0,day:1}:{year:v.year,month:v.month+1,day:1}:{year:v.year,month:v.month,day:v.day+1};g=(g+1)%7}z.call(W,{weeks:m,monthLabel:fh.SHORTMONTHS[B]+" "+u,year:u,month:B,monthLabelExtraCssClass:m[0][2]===J?"shift-down-label":""});d.setMonth(d.getMonth()+1)}return k};
liV=function(A,H){H=H.months.findIndex(function(k){return k.year===A.year&&k.month===A.month});
return H>=0?H:void 0};
Nir=function(A,H){a:{var k=k===void 0?[2,3]:k;k=_.r(k);for(var d=k.next();!d.done;d=k.next()){var W=new Date;if((new t9X(d.value)).parse(H,W,{validate:!0})){W.setHours(0,0,0,0);H=W;break a}}H=null}if(!H)return{isValid:!1,value:void 0};H=Kzb(H);k=A.end;return nh(H,A.start)||nh(k,H)?{isValid:!1,value:void 0}:{isValid:!0,value:H}};
wmI=function(A){var H=M9f;H=H===void 0?nDW:H;var k=A.columnsToShow||[],d=Zzv(A.columnDimensions,A.columnsToShow,A.leftFloatingColumns,H);return k.map(function(W,z){var u=A.columns[W];if(u===void 0)throw Error("Rh");var B=d?d[z]:"";var h=A.getCustomTooltip?A.getCustomTooltip(W,u.headerTooltipParagraphs):u.headerTooltipParagraphs;var O=fiI(A,W);return{type:W,index:z,style:B,classes:O,headerName:u.headerName||"",headerIcon:u.headerIcon,headerTooltipParagraphs:h||[],headerTooltipHelpContext:u.headerTooltipHelpContext,
sortOrders:u.sortOrders||[],selectionState:u.isSelectionCheckbox?A.selectionState:void 0}})};
fiI=function(A,H){var k=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],d=A.columns[H];if(d===void 0)return"";var W=k.includes("DEFAULTS")&&d.cssClass?[d.cssClass]:[];if(k.includes("SORTING")){d.sortOrders&&d.sortOrders.length&&W.push("sortable");if(A.sorting&&A.sorting.columnType===H)a:switch(A.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var z="column-sorted";break a;default:z=""}else z="";z&&W.push(z)}k.includes("FLOATING")&&(H=A.columnsToShow.indexOf(H),A.leftFloatingColumns&&H<A.leftFloatingColumns&&
W.push("floating-column"),A.leftFloatingColumns&&H===A.leftFloatingColumns-1&&W.push("last-floating-column"));k.includes("RIGHT_ALIGN")&&d.rightAlignHeader&&W.push("right-align");return W.filter(function(u){return u}).join(" ")};
Zzv=function(A,H,k,d){k=k===void 0?0:k;d=d===void 0?nDW:d;if(A){var W=[],z=0;oDf(A,H,d).forEach(function(u,B){var h="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&&(h=[h,"max-width:"+u.maxWidth+"px;"].join(""));z>0&&B<k&&(h=[h,"left:"+z+"px;"].join(""));W.push(h);z+=u.minWidth+u.paddingLeft+u.paddingRight});
return W}};
oDf=function(A,H,k){k=k===void 0?nDW:k;return H.map(function(d,W){d=A&&A[d]||{};var z=W===0?k.paddingLeftFirstColumn:k.padding;d.paddingLeft!==void 0&&(z=d.paddingLeft);W=W===H.length-1?k.paddingRightLastColumn:k.padding;d.paddingRight!==void 0&&(W=d.paddingRight);return{paddingLeft:z,paddingRight:W,minWidth:d.minWidth!==void 0?d.minWidth:k.minWidth,maxWidth:d.maxWidth!==void 0?d.maxWidth:k.maxWidth,flexGrow:d.flexGrow!==void 0?d.flexGrow:k.flexGrow}})};
$DQ=function(A){var H=A.reduce(function(d,W){var z=W.columnId,u={};W.headerText&&(u.headerName=_.PK(W.headerText));W.rightAlignHeader&&(u.rightAlignHeader=W.rightAlignHeader);var B;if((B=W.headerIcon)==null?0:B.iconType)u.headerIcon=_.N0(W.headerIcon.iconType);d[z]=u;return d},{}),k=A.filter(function(d){return!d.hideColumn}).map(function(d){return d.columnId});
A=A.filter(function(d){return!!d.dimensions}).reduce(function(d,W){d[W.columnId]=W.dimensions;
return d},{});
return{columns:H,columnsToShow:k,columnDimensions:A}};
_.AEv=function(A){return A?A.simpleText?A.simpleText:A.runs?A.runs.map(function(H){return H.text}).join(""):"":""};
zHA=function(A){var H=A.data;var k=A.onTap;var d=A.isSelected;var W=A.onFocusIn;if(!H)return{};A=HdI(H);d===void 0&&(d=H==null?void 0:H.isSelected);var z;return{text:sof(H,A),startIcon:(z=H.icon)==null?void 0:z.iconType,state:d?0:2,type:0,style:koI(H),onTap:dII(H,k),accessibilityLabel:WKC(H,A),onFocusIn:function(){return W==null?void 0:W()}}};
sof=function(A,H){if(!H)return A.text?_.AEv(A.text):void 0};
koI=function(A){var H;switch((H=A.style)==null?void 0:H.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
dII=function(A,H){return function(k){H==null||H(k,A)}};
HdI=function(A){A=A.style&&A.style.styleType;return!jUN&&A==="STYLE_EXPLORE_LAUNCHER_CHIP"};
WKC=function(A,H){if(H){var k,d,W;return(W=(k=A.accessibilityData)==null?void 0:(d=k.accessibilityData)==null?void 0:d.label)!=null?W:sof(A,!1)}};
qPv=function(){var A;return[function(H,k,d){return _.Ed(A,H,k,d)},
function(H){A=H}]};
rEr=function(A,H){return _.Mw(A.entities,"chipEntity",H)};
BDW=function(A,H,k,d){return function(){var W=ueb.has(A.displayType)&&A.selected,z=W&&A.deselectCommand?A.deselectCommand:A.tapCommand;!z||W&&d||_.mu(z,{form:{element:H==null?void 0:H.value}});k==null||k()}};
eHX=function(A,H){H=H==null?void 0:H.stepStates;if(A&&H){var k,d;return(k=H[A])==null?void 0:(d=k.userQuery)==null?void 0:d.userQuery}};
w9=function(A){return{signalAction:{signal:A}}};
hHr=function(){return _.pZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?xIV:_.idl};
OdQ=function(A,H){A=A===void 0?"SOFT_RELOAD_PAGE":A;H=H===void 0?49504:H;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.K8(_.$r("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:H}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:A}}]}}}};
RHA=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.K8(_.$r("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:hHr()}};
TDQ=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.K8(_.$r("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:hHr()}};
mIf=function(A,H){var k=_.K8(_.$r("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),d=_.K8(_.$r("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),W={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.K8(_.$r("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};W.serviceEndpoint=A?A:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[w9("SOFT_RELOAD_PAGE")]}};return{title:k,bodyText:d,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:W},
style:{value:H!=null?H:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
gNI=function(A){A=A===void 0?{}:A;return{title:_.K8(A.localizedZeroStateTitleText===void 0?"":A.localizedZeroStateTitleText),bodyText:_.K8(A.localizedZeroStateMessage===void 0?"":A.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.K8(A.localizedZeroStateButtonText===void 0?"":A.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[JEf]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
LKN=function(A){A=A===void 0?{}:A;return{title:_.K8(A.localizedOptInBannerTitleText===void 0?"":A.localizedOptInBannerTitleText),titleLength:19,subtitle:_.K8(A.localizedOptInMessage===void 0?"":A.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.K8(_.$r("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:_.K8(_.$r("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:[bdW]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
joA=function(A,H){var k=H=H===void 0?{}:H;H=k.offlineTitleText===void 0?"":k.offlineTitleText;var d=k.offlineDescriptionText===void 0?"":k.offlineDescriptionText,W=k.formattedSupplementalText,z=k.actionButtonText===void 0?"":k.actionButtonText,u=k.titleText===void 0?"":k.titleText;k=k.descriptionText===void 0?"":k.descriptionText;var B={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"}}}}};A||(u=H,k=d,B={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:_.K8(u),titleLength:u.length,overrideTitleMaxFontSize:30,subtitle:_.K8(k),supplementalText:W,primaryButton:{buttonViewModel:B},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[vNl]},darkTileImage:{thumbnails:[yE8]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.P3Q=function(A,H,k,d,W,z,u,B,h,O,T){W=W===void 0?!1:W;z=z===void 0?!1:z;u=u===void 0?0:u;B=B===void 0?-Infinity:B;h=h===void 0?!1:h;O=O===void 0?!1:O;T=T===void 0?!1:T;var m=[],J=_.K8(_.$r("SMART_DOWNLOADS",void 0,"Smart downloads")),g=_.K8(IHA(u,B,A.length));B=u=void 0;O?u={statementBannerRenderer:joA(T,d)}:W?A.length>0?B=YPm(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.b("kevlar_manual_downloads_above"),J,g):h?B={alertBannerViewModel:{heading:{content:k.localizedOptInBannerTitleText===
void 0?"":k.localizedOptInBannerTitleText},body:{content:k.localizedPromptMessage===void 0?"":k.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.$r("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.$r("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:_.Rar}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:z&&(B={backgroundPromoRenderer:{bodyText:_.K8(_.$r("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&&(B={alertBannerViewModel:{heading:{content:k.localizedOptInBannerTitleText===void 0?"":k.localizedOptInBannerTitleText},body:{content:k.localizedOptInMessage===void 0?"":k.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.$r("TURN_ON",void 0,"Turn on"),accessibilityText:_.$r("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}}}}}});k=_.K8(_.$r("YOUR_DOWNLOADS",void 0,"Your downloads"));d=void 0;H.length>0?(d=void 0,_.b("kevlar_display_downloads_numbers")&&(d=_.K8(_.AZ("VIDEO_COUNT",H.length))),d=YPm(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,k,d)):W||A.length||
O||(d={backgroundPromoRenderer:{bodyText:_.K8(_.$r("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?m.push({richSectionRenderer:{content:u}}):B&&!_.b("kevlar_manual_downloads_above")&&m.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
d&&m.push({richSectionRenderer:{content:d,loggingDirectives:{clientVeSpec:{uiType:51721}}}});B&&_.b("kevlar_manual_downloads_above")&&m.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(H.length>0||W&&A.length>0&&!O)&&m.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.K8(_.$r("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:m}};
_.FKb=function(A){return Gom(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.XOf=function(A){return Gom(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Gom=function(A,H){var k=[];A=YPm(A,H,!0);k.push({richSectionRenderer:{content:A}});return{contents:k}};
YPm=function(A,H,k,d,W){k=k===void 0?!1:k;var z="RESPONSIVE_SIZE_STANDARD";_.b("kevlar_standard_rich_grid_on_offline_home")&&H==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?z="RESPONSIVE_SIZE_STANDARD":_.b("kevlar_modern_downloads_compact")?z="RESPONSIVE_SIZE_COMPACT":_.b("kevlar_modern_downloads_extra_compact")?z="RESPONSIVE_SIZE_EXTRA_COMPACT":_.b("kevlar_modern_downloads_tiny")&&(z="RESPONSIVE_SIZE_TINY");A={isExpanded:k,contents:o5(A),entitySelectorType:H,responsiveContainerConfiguration:{responsiveSize:z}};
d&&(A.title=d);W&&(A.subtitle=W);k||(_.b("kevlar_smart_downloads_show_more_button")?(A.showMoreButton={buttonRenderer:{accessibility:{label:_.$r("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.K8(_.$r("SHOW_MORE",void 0,"Show more"))}},A.showLessButton={buttonRenderer:{accessibility:{label:_.$r("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.K8(_.$r("SHOW_LESS",void 0,"Show less"))}}):(A.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.$r("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}}}},A.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.$r("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}}}},A.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.$r("VIEW_ALL",void 0,"View all"),accessibilityText:_.$r("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:_.Sc("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:A}};
o5=function(A){var H=[];A=_.r(A);for(var k=A.next();!k.done;k=A.next())if(k=k.value,$cI(k)){var d=H,W=d.push;var z=void 0;if(k==null?0:(z=k.videoEntity)==null?0:z.videoId){z=gl(_.F3().getState(),k.videoEntity.videoId);var u=_.F3().getState();var B=_.Nw(k.videoEntity.videoId,"mainVideoEntity");u=!!_.qm(u.entities)[B];u={videoId:k.videoEntity.videoId,title:aN(k.videoEntity.title),shortBylineText:aN(k.channelEntity.title),thumbnail:k.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:u&&_.b("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:GBf(k.videoEntity.videoId,z,k.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.$r("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};k.videoEntity.lengthSeconds&&(u.thumbnailOverlays=Aol(k.videoEntity.lengthSeconds,z));u.isWatched=z>0;_.b("kevlar_modern_downloads_page")&&(u.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:k.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.$r("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},u.badges=void 0);k=u}else k={};W.call(d,{richItemRenderer:{content:{videoRenderer:k},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(oTW(k)){d=H;W=d.push;var h=B=z=void 0,O=void 0,T=void 0,m=void 0,J=void 0,g=void 0,v=void 0,y=void 0,X=void 0,D=void 0;u=k.mainPlaylistEntity.playlistId;var K=k==null?void 0:(D=k.mainPlaylistEntity)==null?void 0:(X=D.thumbnailStyleData)==null?void 0:(y=X[0])==null?void 0:(v=y.value)==null?void 0:(g=v.collageThumbnail)==
null?void 0:g.coverThumbnail;if(u&&K){g=FlI(u);!_.b("enable_offline_playlist_page")&&(k==null?0:(J=k.mainPlaylistEntity)==null?0:J.videos)&&(J=k==null?void 0:(m=k.mainPlaylistEntity)==null?void 0:(T=m.videos)==null?void 0:T[0],T=_.Vm(J).entityId,T=JSON.parse(T).videoId,T!==void 0&&(g=gl(_.F3().getState(),T),g=_.C8(T,u,void 0,void 0,g)));T=[];if(k==null?0:(O=k.mainPlaylistEntity)==null?0:(h=O.videos)==null?0:h.length)h=CBr(),O=Object,T=O.assign,m=(m=Scl(k==null?void 0:k.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.K8(m),icon:{iconType:"PLAYLISTS"}}}:void 0,T=[h,T.call(O,{},(B=m)!=null?B:{})];k={playlistId:u,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:K}},navigationEndpoint:g,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:T,title:aN(k.mainPlaylistEntity.title),shortBylineText:aN(k==null?void 0:(z=k.channelEntity)==null?void 0:z.title),badges:[{metadataBadgeRenderer:{label:_.$r("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.b("kevlar_modern_downloads_page")&&(k.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:DIQ,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:u,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.$r("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},k.badges=void 0)}else k=void 0;W.call(d,{richItemRenderer:{content:{playlistRenderer:k},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return H};
IHA=function(A,H,k){A=A?zpA(A):"";H!==void 0&&isFinite(H)?H===0?H=_.$r("UPDATING",void 0,"Updating..."):(H=$6X(new Date(H),new Date),H=_.$r("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var d="";A&&H&&(d=" \u2022 ");if(k&&_.b("kevlar_display_downloads_numbers")){k=_.AZ("VIDEO_COUNT",k);if(A||H)d=" \u2022 ";return k+d+A+d+H}return A+d+H};
SPm=function(A){return lJ8(A.entities).length};
_.C3I=function(A,H,k){var d=Lh(A.responsiveSize),W;A=!((W=A.responsiveMap)==null||!W.some(function(z){return z.containerSize==="CONTAINER_SIZE_NARROW"&&z.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:k,containerWidth:H,sizing:d,enableFullBleedForSingleCol:!1,isCompactList:d==="COMPACT"&&A}};
KKl=function(A,H){return _.Mw(A.entities,"votingEntity",H)};
$H=function(A){if(A){var H;return((H=_.wj().resolve(_.fZ(_.sF)))==null?0:H())?A.darkTheme:A.lightTheme}};
aHN=function(A,H){if(A.simpleText)return Object.assign({},A,{simpleText:bc(A.simpleText,H)});if(!A.runs)return A;for(var k=Object.assign({},A,{runs:[]}),d=0,W=_.r(A.runs),z=W.next();!z.done;z=W.next())if(z=z.value,z.text)if(d+z.text.length<=H)k.runs.push(z),d+=z.text.length;else return k.runs.push(Object.assign({},z,{text:bc(z.text,H-d)})),k;return A};
cEI=function(A,H){return _.Mw(A.entities,"chipBarStateEntity",H)};
pOv=function(A){switch(A){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""}};
Qom=function(A,H){return{triggeringElement:A,onDwellTriggeredFn:function(){var k={triggeringElement:A,loadVideoPreviewEventData:H},d=document.querySelector(".video-preview");d&&d.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:k}))},
onDwellEndFn:function(){var k=document.querySelector(".video-preview");k&&k.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
VWI=function(A){var H=_.wj().resolve(_.fZ(UkI));return function(k){var d=function(){var W=A(k);return H&&W?Qom(k,W):null};
_.CA(function(){var W=d();H&&W&&Promise.resolve().then(function(){H.registerElement(W)});
_.aV(function(){H&&W&&Promise.resolve().then(function(){_.Jc(H,W)})})},"p0smCb")}};
UIV=function(A){var H=A.dataset.resizeObserverId;if(H)return H;H=""+ENI++;return A.dataset.resizeObserverId=H};
lHX=function(A){A=_.r(A);for(var H=A.next();!H.done;H=A.next()){H=H.value;var k=UIV(H.target),d=Object.assign({},{target:H.target},Av.get(k));if(d!=null&&d.contentRect?d.contentRect.width!==H.contentRect.width||d.contentRect.height!==H.contentRect.height:1)for(Av.set(k,{borderBoxSize:H.borderBoxSize,contentBoxSize:H.contentBoxSize,contentRect:H.contentRect,devicePixelContentBoxSize:H.devicePixelContentBoxSize}),k=_.r(Hl.get(k)||[]),d=k.next();!d.done;d=k.next())d=d.value,d(H)}};
NDr=function(A,H){var k=UIV(A);Hl.has(k)||Hl.set(k,new Set);Hl.get(k).add(H);Av.has(k)&&H(Object.assign({},{target:A},Av.get(k)));s5||(s5=new tWC(lHX));H=s5;H.observe(A)};
MWC=function(A,H){var k=UIV(A);Hl.has(k)&&(Hl.get(k).delete(H),Hl.get(k).size===0&&(Hl.delete(k),Av.delete(k),s5.unobserve(A),delete A.dataset.resizeObserverId));Hl.size===0&&s5&&(s5.disconnect(),s5=void 0)};
ZdI=function(A,H){var k=_.wj().resolve(tb);return nN8.map(function(d){return k.observe(A,H,d)})};
fHf=function(A){var H=_.wj().resolve(tb);A.forEach(function(k){H.unobserveByKey(k)})};
_.kq=function(A){var H=_.r(uF8()),k=H.next().value,d=H.next().value,W=Object.assign({},wOV,A),z=oNv(function(u){var B=u.contentRect.height;if((u=u.contentRect.width)||B||W.canHaveZeroSize)k.width()===u&&k.height()===B||d(k,{height:B,width:u})},W.throttleMs);
return[k,function(u){var B=[];W.useVisibilityObserver&&(B=ZdI(u,function(h,O){requestAnimationFrame(function(){O==="visible"?NDr(u,z):MWC(u,z)})}));
B.length||NDr(u,z);return function(){B.length&&(fHf(B),B.length=0);MWC(u,z)}}]};
_.dy=function(A,H){var k=_.r(_.RV(!1,void 0,"YLPUhc")),d=k.next().value,W=k.next().value,z=!1,u;return function(B){if(u)return _.x(u,Object.assign({},B));if(!z){z=!0;var h=Ubr;h==null||h.addDep();A().then(function(O){u=O;W(!0);h==null||h.removeDep()}).catch(function(O){h==null||h.removeDep();
if(H==null?0:H.debugName){var T,m=new _.Ti("failed to load chunk",H.debugName,O==null?void 0:(T=O.toString)==null?void 0:T.call(O));_.I3(m)}else _.I3(O);throw O;})}return _.x(_.R,{cond:d,
then:function(){return _.x(u,Object.assign({},B))}})}};
ApW=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("dpUCFd"),2);A=_.$Im;return H.return(A)})};
stI=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("U9vrqd"),2);A=HQC;return H.return(A)})};
dWm=function(A,H,k,d,W){A=H?A.switchOffCommand:A.switchOnCommand;if(d&&W)kSW(A,k,W);else{var z,u;(z=_.Ry({elementsCommand:A}))==null||(u=z.onclick)==null||u.call(z,k)}};
kSW=function(A,H,k){A=_.Ry({elementsCommand:A,additionalCommandArgs:{commandController:{onSuccess:function(){k(!1)},
onServerError:function(){k(!1)}}}});
if(A==null?0:A.onclick)A.onclick(H),k(!0)};
z58=function(A){if(A)return _.L(A,WiV)};
qo8=function(A){if(A)switch(A){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}};
_.Wl=function(A){var H=_.b(A);VS["counterfactuals."+A]=String(H);return H};
rpl=function(A,H){if(!((A==null?0:A.entitySelectorType)&&(A==null?0:A.entityKey)))return{};switch(A.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var k,d=(k=_.MN())==null?void 0:k.getOption("captions","track"),W,z=typeof(d==null?void 0:d.translationLanguage)==="object"&&((W=d.translationLanguage)==null?void 0:W.languageName)||(d==null?void 0:d.displayName)||"";return{data:Object.assign({},!!z&&{selectionText:{content:z}},!!z&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},
{isDisabled:typeof d==="undefined"})};case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.Wl("web_shorts_audio_track_picker")){var u;W=((u=_.MN())==null?void 0:u.getAudioTrack())||void 0;k=W==null?void 0:(z=W.getLanguageInfo())==null?void 0:z.getName();W={data:Object.assign({},{selectionText:{content:k}},k&&!(W==null?0:(d=W.getLanguageInfo())==null?0:d.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else W={};return W;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return d=
A!=null&&A.entityKey?(d=_.UR(H,A.entityKey))?{isHidden:(d==null?void 0:d.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},d;default:return{}}};
uiW=function(A,H){return function(k){var d=function(W){_.xH(_.eu(W),k,H)||A(W)};
k.addEventListener("click",d);return function(){k.removeEventListener("click",d)}}};
_.B8v=function(A){return function(){return _.L(A(),_.zF)}};
e5b=function(A){switch(A){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}};
xWv=function(A){return e5b(A==null?void 0:A.all)};
iQ8=function(A){var H={};(A=A==null?void 0:A.padding)&&(H.padding=e5b(A.vertical)+"px "+e5b(A.horizontal)+"px");return H};
h5W=function(A){switch(A){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
OQb=function(A){switch(A){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"}};
R5W=function(A){switch(A){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"}};
T8X=function(A,H){if(H)return{containerStyles:iQ8(H),itemStyles:function(k,d){var W={flex:"1"},z=H==null?void 0:H.flexDirection;b:switch(z){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":k=!!k;break b;default:k=!!d}k||(k=_.pZ("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",z==="FLEX_DIRECTION_ROW"||z==="FLEX_DIRECTION_ROW_REVERSE"?(z=xWv(H==null?void 0:H.gap)+"px",k?W["margin-left"]=z:W["margin-right"]=z):W["margin-bottom"]=xWv(H==null?void 0:H.gap)+"px",W.flex=
"1");return W},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(H==null?void 0:H.flexDirection)==="FLEX_DIRECTION_ROW"||(H==null?void 0:H.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
mWW=function(A){return A<528?"CONTAINER_SIZE_NARROW":A<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
JpN=function(A,H){A=_.r(A.responsiveMap||[]);for(var k=A.next();!k.done;k=A.next())if(k=k.value,k.containerSize===H)return k.containerType};
_.gPI=function(A,H){if(H){var k=H.responsiveSize;A=mWW(A);var d=JpN(H,A);if(d&&k){a:{if(d==="CONTAINER_TYPE_VERTICAL_LIST")if(k==="RESPONSIVE_SIZE_STANDARD"){if(A!=="CONTAINER_SIZE_NARROW"){var W="50%";break a}}else{W=A==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}W=void 0}return{responsiveSize:k,containerSize:A,containerType:d,force16By9ThumbnailAspectRatio:!H.enableContentSpecificAspectRatio,contentPreviewWidth:W,fullbleed:(d==="CONTAINER_TYPE_VERTICAL_LIST"||d==="CONTAINER_TYPE_GRID")&&A===
"CONTAINER_SIZE_NARROW"&&!1}}}};
bQv=function(A,H){var k={};switch(H){case "CONTAINER_TYPE_VERTICAL_LIST":k["flex-direction"]="column";k.padding="0 "+A.margin+"px";break;case "CONTAINER_TYPE_GRID":k["flex-direction"]="row";k.flex="none";k["flex-wrap"]="wrap";k.width=A.maxContainerWidth?A.maxContainerWidth+A.gutter+"px":void 0;k.padding="0 "+(A.margin-A.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":k["flex-direction"]="row",k.flex="none",k["overflow-x"]="auto",k.width=A.maxContainerWidth?A.maxContainerWidth+"px":void 0,
k.padding="0 "+A.margin+"px"}return k};
LiN=function(A,H){if(H){var k=JpN(H,mWW(A));a:switch(k){case "CONTAINER_TYPE_GRID":var d=3;break a;default:d=1}d=_.C3I(H,A,d);var W=_.b2(d);return{containerLayoutConfig:_.gPI(A,H),containerStyles:bQv(W,k),itemStyles:function(z,u){z={};switch(k){case "CONTAINER_TYPE_VERTICAL_LIST":u||(z["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":z.width=W.itemWidth+"px";z["margin-right"]=W.gutter/2+"px";z["margin-left"]=W.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":z.width=W.itemWidth+
"px",z.flex="none",u||(z["margin-right"]=W.gutter+"px")}return z}}}};
Yob=function(A,H,k){if(H)return[vPW];switch(A){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[qL];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return k?[qL]:[ypf,qL];case "TRANSFER_STATE_PAUSED_BY_USER":return[jtv,qL];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[IEm,qL];default:return[vPW]}};
PqX=function(A,H,k,d){return Yob(A,H,d).map(function(W){var z=W.text,u=W.iconType,B=W.videoAction;W=W.playlistAction;z=z?{content:z}:void 0;u=u&&{sources:[{clientResource:{imageName:u}}]};var h=(0,_.iK.unsafeClone)(k);if(h){var O=_.L(h,_.fj),T=_.L(h,_.wH);O&&B?O.action=B:T&&W&&(T.action=W)}return{title:z,leadingImage:u,rendererContext:h&&{commandContext:{onTap:{innertubeCommand:h}}}}})};
GSC=function(A){A=_.i2(A.rendererContext);var H;return(H=_.L(A,_.wH))==null?void 0:H.playlistId};
FiW=function(A){var H;return(H=A.listItems)==null?void 0:H.some(function(k){var d;return _.hc((d=_.L(k,_.WG))==null?void 0:d.rendererContext)})};
Xsv=function(A,H){var k;(k=A[(H+1)%A.length])==null||k.focus()};
DWf=function(A,H){var k=A.length,d;(d=A[H===-1?k-1:(H-1+k)%k])==null||d.focus()};
_.ry=function(A){var H=_.wj().resolve(_.fZ(_.sF));return H!=null&&H()?A.darkThemeColorPalette:A.lightThemeColorPalette};
_.Bl=function(A){return{primaryTextColor:us(A,0),secondaryTextColor:us(A,1),optionColor:us(A,2),backgroundColor:us(A,3),videoBackgroundColor:us(A,4)}};
us=function(A,H){if(A){switch(H){case 0:A=A.primaryTitleColor;break;case 1:A=A.secondaryTitleColor;break;case 2:A=A.surgeColor;break;case 3:A=A.section2Color;break;case 4:A=A.section3Color;break;default:return}if(A)return _.iw(A)}};
KiW=function(A){var H=A.element;var k=A.veType;var d=A.storedVisualElement===void 0?null:A.storedVisualElement;var W=A.elementIndex===void 0?0:A.elementIndex;A=A.clientYouTubeData;var z=_.hx();z!==Sor&&(CqX.clear(),Sor=z);if(H.visualElement&&CqX.has(H.visualElement))return null;if(d&&CqX.has(d))return H.visualElement=d,null;k=_.$9(_.A7(),{veType:k,elementIndex:W,clientYouTubeData:A});if(!k)return null;H.visualElement=k;CqX.add(k);return k};
_.eY=function(A,H,k,d){k=k===void 0?null:k;d=d===void 0?aEC:d;var W=W===void 0?null:W;rb(function(){if(H){k instanceof Function&&(k=k());var z=KiW({element:H,veType:A,storedVisualElement:k,clientYouTubeData:void 0});z&&(wu(H,{data:W,observer:_.wj().resolve(tb),hideOption:TzI,showOption:mhC,layer:H.layer}),d(z))}})};
cpl=function(A){return A?_.h1(A):""};
psI=function(A){return(A==null?void 0:A.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
Qtf=function(A,H){return _.Mw(A.entities,"videoOverviewAsyncDataEntity",H)};
V5X=function(A,H){var k;return"linear-gradient(to bottom, "+((k=H==null?void 0:H.map(function(d){var W=A?d.darkThemeColor:d.lightThemeColor;return W?_.h1(W)+" "+((d==null?void 0:d.startLocation)||0)*100+"%":"transparent"}))==null?void 0:k.join(", "))+")"};
EPb=function(A,H,k,d,W){if(!((d==null?0:d.height)&&(d==null?0:d.width)))return{size:0};var z=d.width;d=d.height;if(W)return H==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&z>d?{size:312/eyW}:H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(k!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||A!==1&&A!==2||H!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&H!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&H!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(H==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||d===z)switch(A){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||d>z)switch(A){case 1:case 3:return{size:240*BhX};default:return{size:360*BhX}}switch(A){case 1:case 2:return{size:1/eyW*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.UWX=function(A){if(!("matchMedia"in window))return _.lt(Error("Sh")),function(){return!1};
var H=window.matchMedia(A);A=_.r(_.RV(H.matches,void 0,"waIHpe"));var k=A.next().value,d=A.next().value,W=function(z){d(z.matches)};
H.addEventListener?(H.addEventListener("change",W),_.aV(function(){H.removeEventListener("change",W)})):H.addListener&&(H.addListener(W),_.aV(function(){H.removeListener(W)}));
return k};
lEf=function(A){return A==="IMAGE_BANNER_STYLE_INSET"||A==="IMAGE_BANNER_STYLE_UNKNOWN"};
t5v=function(){if(!("matchMedia"in window))return _.lt(Error("Sh")),function(){return 0};
var A=window.matchMedia("(max-width: 527.9px)"),H=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),k=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),d=window.matchMedia("(min-width: 1024px)"),W=_.r(_.RV(A.matches,void 0,"TmIKcb")),z=W.next().value,u=W.next().value;W=_.r(_.RV(H.matches,void 0,"Z0fTKd"));var B=W.next().value,h=W.next().value;W=_.r(_.RV(k.matches,void 0,"w4xy7b"));var O=W.next().value,T=W.next().value;W=_.r(_.RV(d.matches,void 0,"DrbNC"));var m=W.next().value,
J=W.next().value,g=function(D){u(D.matches)},v=function(D){h(D.matches)},y=function(D){T(D.matches)},X=function(D){J(D.matches)};
_.CZ(function(){A.addEventListener?(A.addEventListener("change",g),H.addEventListener("change",v),k.addEventListener("change",y),d.addEventListener("change",X)):A.addListener&&(A.addListener(g),H.addListener(v),k.addListener(y),d.addListener(X));_.aV(function(){A.removeEventListener?(A.removeEventListener("change",g),H.removeEventListener("change",v),k.removeEventListener("change",y),d.removeEventListener("change",X)):A.removeListener&&(A.removeListener(g),H.removeListener(v),k.removeListener(y),
d.removeListener(X))})});
return function(){return z()?1:B()?2:O()?3:m()?4:0}};
N8V=function(A){var H=0;A=_.r([A.title,A.metadata,A.actions,A.description,A.attribution]);for(var k=A.next();!k.done;k=A.next())k.value&&H++;return H};
M5v=function(A){return A===1||A===2?1:0};
ZQl=function(A){A=(new nPN).parse(A);return(new mV).render(A).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(H){var k=H.split(":").map(Number),d=0,W=0;if(k.length===3)k=_.r(k),d=k.next().value,W=k.next().value,k=k.next().value;else if(k.length===2)k=_.r(k),W=k.next().value,k=k.next().value;else if(k.length===1)k=_.r(k).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(d*3600+W*60+k)+'" role="button">'+H+"</span>"})};
fEr=function(A){A=_.r(A.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var H=A.next(),k={};!H.done;k={clickHandler$jscomp$5:void 0},H=A.next()){H=H.value;k.clickHandler$jscomp$5=function(W){W=Number(W.target.getAttribute("data-time"));if(isNaN(W))throw Error("Uh");var z;(z=_.MN())==null||z.seekTo(W,!0)};
var d=function(W){return function(z){z.key!=="Enter"&&z.key!=="Space"||(0,W.clickHandler$jscomp$5)(z)}}(k);
H.setAttribute("tabindex","0");H.removeEventListener("click",k.clickHandler$jscomp$5);H.removeEventListener("keydown",d);H.addEventListener("click",k.clickHandler$jscomp$5);H.addEventListener("keydown",d)}};
wsA=function(){return _.x("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.x(xq,{percentWidth:100}),_.x(xq,{animationDelay:200}),_.x(xq,{animationDelay:400}),_.x(xq,{animationDelay:600}),_.x(xq,{animationDelay:800,percentWidth:60}),_.x("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.x(xq,{percentWidth:100}),_.x(xq,{animationDelay:200}),_.x(xq,{animationDelay:400}),_.x(xq,{animationDelay:600,percentWidth:50}))};
xq=function(A){return _.x("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(A.percentWidth===void 0?100:A.percentWidth)+"%"},_.x("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(A.animationDelay===void 0?0:A.animationDelay)+"ms"}))};
oPW=function(){var A=_.r(_.RV(function(){return""},void 0,"dXJHWc")),H=A.next().value;
return[function(){return H()()},
A.next().value]};
$WQ=function(A,H){A=A?zpA(A):"";H!==void 0&&isFinite(H)?H===0?H=_.$r("UPDATING",void 0,"Updating..."):(H=$6X(new Date(H),new Date),H=_.$r("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var k="";A&&H&&(k=" \u2022 ");return _.K8(A+k+H)};
smI=function(A,H,k,d,W,z){H=H===void 0?0:H;var u=Atm[H],B=u.title,h=u.iconType,O=u.topButtonRenderer,T=u.sectionClientVE;u=u.videoClientVE;var m;if(H!==1||A.length){k=[];A=_.r(A);for(d=A.next();!d.done;d=A.next()){var J=d.value;if($cI(J))k.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:J.videoEntity.videoId,title:aN(J.videoEntity.title),shortBylineText:aN(J.channelEntity.title),thumbnail:J.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:J.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.$r("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:u}}}}}});else if(oTW(J)){d=k;var g=d.push;var v=void 0,y=void 0,X=void 0,D=void 0,K=void 0,N=void 0,U=void 0,p=void 0,M=J.mainPlaylistEntity.playlistId,Z=J==null?void 0:(p=J.mainPlaylistEntity)==null?void 0:(U=p.thumbnailStyleData)==null?void 0:(N=U[0])==null?void 0:(K=N.value)==null?void 0:(D=K.collageThumbnail)==null?void 0:D.coverThumbnail;D=FlI(M);if(!_.b("enable_offline_playlist_page")&&
(J==null?0:(X=J.mainPlaylistEntity)==null?0:X.videos)){b:{X=J==null?void 0:(y=J.mainPlaylistEntity)==null?void 0:y.videos;y=_.F3().getState().entities;if(X!=null&&X.length&&y)for(X=_.r(X),K=X.next();!K.done;K=X.next())if(K=_.Vm(K.value).entityId,(K=JSON.parse(K).videoId)&&ETW(y,K)==="TRANSFER_STATE_COMPLETE"){y=K;break b}y=""}y!==void 0&&(D=gl(_.F3().getState(),y),D=_.C8(y,M,void 0,void 0,D))}y=DYI(_.$r("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),FlI(M));J=M&&Z&&y?{playlistId:M,navigationEndpoint:D,
viewPlaylistText:y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Z}},title:aN(J.mainPlaylistEntity.title),shortBylineText:aN(J==null?void 0:(v=J.channelEntity)==null?void 0:v.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:HaI,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:M,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.$r("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:u}}}:
void 0;g.call(d,{gridPlaylistRenderer:J})}}u={gridRenderer:{items:k}};H===1&&(m=$WQ(W,z))}else if(d){var WV=_.K8((g=k==null?void 0:k.localizedPromptMessage)!=null?g:"");u={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.K8(_.$r("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Rar}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.K8(_.$r("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};m=$WQ(W,z)}else WV=_.K8(_.$r("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
u={};return{contents:[{shelfRenderer:{title:B,titleAnnotation:m,icon:{iconType:h},subtitle:WV,content:u,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:O}]}}}}],loggingDirectives:{clientVeSpec:{uiType:T}}}};
kzA=function(A,H,k,d,W,z,u,B,h,O,T){k=k===void 0?{}:k;d=d===void 0?{}:d;W=W===void 0?!1:W;z=z===void 0?!1:z;u=u===void 0?!1:u;B=B===void 0?!1:B;h=h===void 0?!1:h;O=O===void 0?0:O;T=T===void 0?-Infinity:T;if(!(H.length||A.length||W||B))return z?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:gNI(k)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.K8(_.$r("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 m=[];A.length&&m.push(smI(A,0));B?m.push({contents:[{statementBannerRenderer:joA(h,d)}]}):W?m.push(smI(H,1,k,u,O,T)):z&&m.push({contents:[{statementBannerRenderer:LKN(k)}]});(W&&H.length||A.length)&&m.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.K8(_.$r("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 m.map(function(J){return{itemSectionRenderer:J}})};
is=function(A,H){if(typeof A!=="object")return null;A=_.r(Object.entries(A));for(var k=A.next();!k.done;k=A.next()){var d=_.r(k.value);k=d.next().value;d=d.next().value;if(k===H)return k;if(d=is(d,H))return k+"."+d}return null};
hv=function(A){var H=A.content;return(A=A.styleRuns)&&H?{runs:A.map(function(k){var d={text:H.slice(k.startIndex,k.startIndex+k.length)};k.fontColor&&(d.textColor=k.fontColor);return d})}:{simpleText:H}};
zqC=function(A,H,k,d){var W=dql;d&&(A.quantity=d);if(!A.quantity||!A.maxQuantity)return{};d=A.minusButton;var z=A.plusButton,u,B,h,O;return{value:A.quantity,maxValue:A.maxQuantity,onChangeCallback:function(T){W(A,T)},
minusLabel:(u=_.L(d,WwQ))==null?void 0:u.label,minimumReachedLabel:(B=_.L(d,WwQ))==null?void 0:B.limitReachedLabel,plusLabel:(h=_.L(z,WwQ))==null?void 0:h.label,maximumReachedLabel:(O=_.L(z,WwQ))==null?void 0:O.limitReachedLabel,disabled:H,onRemoveCommand:k}};
dql=function(A,H){var k=A.quantityIncrementerEntityKey;if(k){var d={};d.quantity=H;_.XI(_.O5("quantityIncrementerEntity",k,d));A.onChangeCommand&&_.mu(A.onChangeCommand)}};
qyW=function(A){if(A)return A===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(A).overflowY)?A:qyW(A.parentElement)};
BJl=function(A,H){(A=rtN(A))&&((_.b("enable_mini_app_command_handler_mweb_fix")?0:H)?uNf.push({command:A,sourceData:{},commandContext:void 0}):_.wj().resolve(_.J7).resolveCommand(A))};
rtN=function(A){return _.L(A,_.ic)};
eqQ=function(){var A=window.performance.timeOrigin+window.performance.now(),H=(new _.RI).setSeconds(A/1E9);return _.zw(H,2,_.BR(A%1E9),0)};
iaI=function(A,H){var k;A=(k=_.L(_.L(A,_.ic),xqA))==null?void 0:k.methodName;var d,W;(k=window.youtubewebview||((d=window.webkit)==null?void 0:(W=d.messageHandlers)==null?void 0:W.youtubewebview))&&A&&(d=new TF,A=_.qC(d,1,A),A=_.ob(A.JSC$12869_serializeBinary()),H=_.ob(H),k.postMessage(A+","+H))};
m8=function(A,H,k){var d=_.L(_.L(A,_.ic),xqA);d&&(H&&(d.serializedAdditionalMetadata=_.ob(H)),k&&(d.messageId=k),BJl(A,!0))};
hqX=function(A,H,k){setTimeout(function(){_.zM(A,H)},k)};
Oal=function(A){switch(A){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"}};
Rq8=function(){return!!_.pZ("ID_TOKEN")};
JtW=function(A){return A instanceof Error&&A.cause instanceof TJf&&A.cause.rpcErrorCode!==void 0?!mq8.includes(A.cause.rpcErrorCode):!0};
bar=function(){return _.$d(gRf,{authuser:""+(_.pZ("SESSION_INDEX")||0)})};
Jv=function(A,H,k,d){k=k===void 0?"MINI_APP_SDK_API_UNSPECIFIED":k;d=d===void 0?"":d;var W=new _.Ti;k={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:d,sdkApi:k};A instanceof Error&&(W.message=A.message,W.name=A.name,A.cause instanceof TJf&&A.cause.rpcErrorCode!==void 0&&(k.rpcErrorCode=A.cause.rpcErrorCode));var z;(z=H.onError)==null||z.call(H,{loggingError:W,metadata:k})};
vRC=function(A,H,k,d){switch(A){case "MINI_APP_SOURCE_GAMESNACKS":return new yG(H,k,d);default:return new LwV(H,k,d)}};
ytX=function(A){switch(A){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"}};
jmX=function(A){switch(A){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"}};
IFC=function(A){switch(A){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";case 15:return"MINI_APP_SDK_API_OPEN_CONTENT";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
Yyv=function(){return Math.floor(Math.random()*4)+1};
Pzr=function(A,H,k,d){A=_.r(Object.entries(A));for(var W=A.next(),z={};!W.done;z={message$jscomp$995:void 0},W=A.next()){var u=_.r(W.value);W=u.next().value;u=u.next().value;z.message$jscomp$995=u;H.push(setTimeout(function(B){return function(){d(!1);k(B.message$jscomp$995.text)}}(z),z.message$jscomp$995.delayMs));
Number(W)>0&&H.push(setTimeout(function(){d(!0)},z.message$jscomp$995.delayMs-400))}};
GzX=function(A,H,k){k=k===void 0?aEC:k;if(A){var d=_.wj().resolve(tb);d||_.b("mweb_no_observer_killswitch")?wu(A,{data:H,observer:d,visibilityCallback:k,hideOption:TzI,showOption:mhC,layer:A.layer}):_.Pq(new _.Ti("Warning: monitorVisibility called with null observer",A.tagName,H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams))}else _.Pq(new _.Ti("Warning: monitorVisibility called with null element",H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams,H==null?void 0:
H.rendererContext))};
FwN=function(A,H){var k=k===void 0?aEC:k;_.b("mweb_fix_monitor_visibility_after_render")?A&&rb(function(){GzX(A,H,k)}):rb(function(){GzX(A,H,k)})};
XEf=function(A,H){var k=document.createElement("ytd-engagement-panel-section-list-renderer");k.data=A;var d=H!=null?H:{};A=d.isPersistentPanel;H=d.hideDelayMs;d=d.overscrollContain;A=Object.assign({},A&&{isPersistentPanel:A},H&&{hideDelayMs:H},d&&{overscrollContain:d});Object.assign(k,A);return k};
KwC=function(A){Dqb||(Dqb=SyI(new _.Lm(1,void 0,void 0,CzV),0));var H=Dqb.format(Math.floor(A));H=bk==="be"||bk==="bg"||bk==="es"||bk==="et"||bk==="hu"||bk==="ka"||bk==="lv"||bk==="pl"||bk==="pt-PT"||bk==="sq"?H.replace(new RegExp("^(\\d)"+CzV.GROUP_SEP.replace(".","\\.")+"(\\d+("+CzV.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):H;return A>=1E3&&A<=9999&&H[1]==="."&&(bk==="sl"||bk==="it")?H.replace(".",""):H};
_.pEb=function(A,H,k){return window.spf&&!_.b("web_disable_spfjs_client")?aFf(A,H,k):ctV(A,H)};
aFf=function(A,H,k){var d=null,W=(new _.Wq(function(z,u){var B={};if(H){B.method=H.method;var h=H.postParams||{};Z8Q(A,H)&&(h[_.pZ("XSRF_FIELD_NAME")]=_.pZ("XSRF_TOKEN"));B.postData=_.oa(h);H.type&&(B.type=H.type);h=H.headers}B.headers=Uwf(A,h);_.b("debug_forward_web_query_parameters")&&(A=_.Mcb(A,window.location.search));B.experimental_headers=B.headers;B.onError=function(O){O.err&&O.xhr&&(O.err.params={url:O.xhr.responseURL,response:O.xhr.responseText.substr(0,64)});u(O.err)};
B.onPartDone=function(O){k&&k.call(null,O.part)};
B.onDone=function(O){var T=Qmm(O.response,"xsrf_token");Z8(window.location.href,A)&&T&&_.cI("XSRF_TOKEN",T);if(T=Qmm(O.response,"service_worker_killswitch"))_.cI("SERVICE_WORKER_KILLSWITCH",T),Wkl();z(O.response)};
d=spf.request(A,B)})).then(VyN);
W.thenCatch(function(z){var u=z instanceof _.jY,B=z&&z.hasOwnProperty("params")&&z.params.response?z.params.response:"";z instanceof Error&&(B?u?GVv(z):B===')]}\'\n{"reload":"now"}'?GVv(z):(ERr(z,A,B),UqA(z,B)?_.Pq(z):_.I3(z)):GVv(z));d&&d.abort()});
return W};
VyN=function(A){if(A.type==="multipart"){var H=A.timing;A=A.parts.reduce(function(k,d){Object.assign(k,d);return k},{});
A.timing=A.timing||{};Object.assign(A.timing,H);A.type="reduced"}return A};
ctV=function(A,H){H=H===void 0?{}:H;var k=null,d=new _.Wq(function(W,z){H.onFinish=function(u){if(u.readyState===XMLHttpRequest.DONE)if(u.status===200){if(u.responseType!=="json"){var B=u.response;B.substring(0,5)===")]}'\n"&&(B=B.substring(5));try{var h=JSON.parse(B)}catch(O){h=O}}else h=u.response;h instanceof Error?z(h):(B=Qmm(h,"xsrf_token"),Z8(window.location.href,A)&&B&&_.cI("XSRF_TOKEN",B),u=u.responseURL,window.performance&&window.performance.getEntriesByName?(B=window.performance.getEntriesByName(u).pop())?
u={responseStart:(0,_.w2)()-(B.responseEnd-B.responseStart)}:(Math.random()<.01&&(B=Error("gi"),B.params=u,_.Pq(B)),u={responseStart:-1}):u={responseStart:0},h.timing=h.timing||{},Object.assign(h.timing,u),W(h))}else z(Error("fi`"+u.status))};
(k=_.uC(A,H))||z(Error("fi`"+k.status))});
d.thenCatch(function(W){W instanceof Error&&(ERr(W,A),UqA(W)&&(W.level="WARNING"))});
_.b("cancel_pending_navs")&&d.thenCatch(function(){k.abort()});
return d};
Qmm=function(A,H){var k=A[H],d=A.parts;A.type==="multipart"&&d&&(k=(A=d.find(function(W){return H in W}))&&A[H]);
return k};
ERr=function(A,H,k){var d=A.message||"";H={original:d,url:H};if(k)if(d=d.match(/position:?\s*(\d+)/)){d=d&&Number(d[1])?Number(d[1]):0;var W=Math.max(d-25,0);H.position=d;H.response=k.substring(W,d+25)}else H.response=k.substring(0,50);_.Gg(A,H);try{A.message="JSON parse error"}catch(z){}};
UqA=function(A,H){A=A.message||"";A=!!(A.indexOf("<")>=0||A.indexOf("end of ")>=0||A.indexOf("Unterminated string")>=0||A.indexOf("Unexpected EOF"));if(!A&&H)for(var k=H.length,d=!1,W=0;W<k;W++)if(d&&H[W]==="\\")W++;else if(H[W]==='"')d=!d;else if(H[W]==="<"&&!d){A=!0;break}return A};
lFW=function(){return document.documentElement.hasAttribute("dark")};
_.ty8=function(A,H){if(A!=="GFEEDBACK"&&A!=="GUIDED_HELP")_.V$(Error("hi`"+A));else{var k=_.wj().resolve(_.fZ(_.SO));if(k&&(k=k.getCurrentPage())&&k.getServiceTrackingParams&&(k=k.getServiceTrackingParams()))for(var d=0,W;W=k[d++];)if(W.service===A){if(A=W.params)for(k=0;d=A[k++];)H[d.key]=d.value;break}}};
_.NJA=function(A){var H=_.Kj();H&&(H=H.getPlayer())&&(H.pauseVideo(),A.playback_id=H.getVideoData().cpn,A.eid=H.getVideoData().eventId,Object.assign(A,H.getFeedbackProductData()))};
MyI=function(){var A={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.pZ("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(A.enableAnonymousFeedback=!0);_.pZ("SESSION_INDEX")&&(A.authuser=String(_.pZ("SESSION_INDEX")));_.b("enable_pageid_for_feedback")&&_.pZ("DELEGATED_SESSION_ID")&&(A.pageId=String(_.pZ("DELEGATED_SESSION_ID")));return A};
_.II=function(A){_.b("enable_ypc_spinners")&&_.Ud(A,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},A])};
_.Yq=function(A){_.b("enable_ypc_spinners")&&_.Ud(A,"yt-close-popup-action",["yt-loading-renderer"])};
nRl=function(A){return new Promise(function(H,k){_.OR({verifyCommand:{recaptchaToken:A.recaptchaResponse}},{commandController:{onSuccess:function(d,W){W||k("ChallengeService did not return a response.");var z;H({challengeCompleted:(z=W.verified)!=null?z:!1})},
onServerError:function(d,W){k(W)}}})})};
ZaI=function(A,H,k,d){H({recaptchaResponse:d}).then(function(W){W.challengeCompleted?_.hn()?(k(3),_.wj().resolve(_.J7).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:A}})):k(2):k(4)},function(){k(4)})};
wEm=function(A,H,k){_.bi(_.Ia(fFv,_.pZ("HL")),function(){var d;(d=window.grecaptcha)==null||d.ready(function(){var W=window.grecaptcha;W?(k(W.render(A,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:ZaI.bind(null,A,nRl,H)})),H(1)):H(4)})})};
oRl=function(A,H){return function(){switch(H()){case 0:return A().captchaLoadingMessage;case 1:return A().challengeReason;case 3:return A().captchaSuccessfulMessage;case 2:return A().captchaCookieSetFailureMessage;case 4:return A().captchaFailedMessage;default:return A().challengeReason}}()};
_.Pl=function(){if(!$qN){var A=document.querySelector("#player.skeleton");A&&(_.Aw(A),$qN=!0)}};
_.H9b=function(){return AHr=RKC()};
dgC=function(){return _.e(function(A){return s2C!==void 0?A.return():A.yield(kNW(),0)})};
kNW=function(){return _.e(function(A){if(A.nextAddress==1)return A.yield(mMA(),2);AHr=A.yieldResult;s2C=_.IE.addLowPriorityJob(kNW,5E3);_.EN(A)})};
uSl=function(A){var H=H===void 0?WcI:H;var k,d,W=(k=A.responseContext)==null?void 0:(d=k.mainAppWebResponseContext)==null?void 0:d.trackingParam;if(!W){H.increment("MISSING");var z,u,B,h,O,T;_.Pq(new _.Ti("282054944_a",{ttu:!!((z=A.responseContext)==null?0:(u=z.mainAppWebResponseContext)==null?0:u.loggedOut),weh:((B=A.responseContext)==null?void 0:B.mainAppWebResponseContext)===void 0,bVg:A.responseContext===void 0,cp:(h=A.playabilityStatus)==null?void 0:h.contextParams,aBw:(((O=A.streamingData)==
null?void 0:O.formats)||[]).length>0,g35:(((T=A.streamingData)==null?void 0:T.adaptiveFormats)||[]).length>0,os:!!A.offlineState,cotn:A.cotn}));return 2}k="";try{k=z$r(W)}catch(g){return H.increment("C_ERROR"),_.I3(g),2}try{var m=_.lQX(k);var J=qsN(m)}catch(g){return H.increment("P_ERROR"),_.I3(g),2}J=_.c4(J,rHA,1,_.pC());W=[];J=_.r(J);for(m=J.next();!m.done;m=J.next())d=m.value,m=d.getPath(),k=(0,_.iK.getValueByKeys)(A,m.split(".")),k=String(k===void 0||k===null?"":k),d=d.getValue()||"",z=/[+\-\/_]/g,
k.replace(z,"")!==d.replace(z,"")&&(H.increment("MISMATCH"),_.b("ab_mis_log_err")&&(k=new _.Ti("282054944_p",{m0E:m,g:String(k),e:String(d)}),_.I3(k)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(m)||(m.match(/enforcementMessageViewModel/i)?W.push(3):W.push(2)));if(W.length>0)return Math.max.apply(Math,_.fV(W));H.increment("SUCCESS");return 1};
xgV=function(A){var H=new GF;if(A.interpreterJavascript){var k=_.y6V(A.interpreterJavascript);k=x7(k).toString();var d=new B$I;_.qC(d,6,k);_.Sn(H,1,d,CN)}else A.interpreterUrl&&(k=_.Yh(A.interpreterUrl),k=_.QB(k).toString(),d=new _.e$I,_.qC(d,4,k),_.Sn(H,2,d,CN));A.interpreterHash&&_.F1(H,3,A.interpreterHash,CN);A.program&&_.F1(H,4,A.program,CN);A.globalName&&_.F1(H,5,A.globalName,CN);A.clientExperimentsStateBlob&&_.F1(H,7,A.clientExperimentsStateBlob,CN);return H};
X1=function(A){var H={};A=_.r(A.split("&"));for(var k=A.next();!k.done;k=A.next())k=k.value.split("="),k.length===2&&(H[k[0]]=k[1]);return H};
i9I=function(A){return Number(A.t)||7200};
h$r=function(){var A=A===void 0?window:A;var H,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(vlI(),2);H=A;k=H.bgevmc;if(!k)throw Error("li");return d.return({pause:function(){k.p()},
resume:function(){k.r()},
checkForRefresh:function(){return k.cr()}})})};
LFv=function(){if(_.b("bg_st_hr"))return"havuokmhhs-0";var A,H=((A=globalThis.performance)==null?void 0:A.timeOrigin)||0;return"havuokmhhs-"+Math.floor(H)};
Dh=function(A){window.bgens=A};
O9W=function(){return new Promise(function(A){var H=window;H.ntpevasrs!==void 0?A(new SY(H.ntpevasrs)):(H.ntpqfbel===void 0&&(H.ntpqfbel=[]),H.ntpqfbel.push(function(k){A(new SY(k))}))})};
R$b=function(A){if(_.b("attmusi")&&_.b("attmusi_ue")){A={s:A.vMY.bind(A),ir:A.qGA.bind(A)};var H=window;H.attmp=A;if(H.attmq!==void 0)for(var k=_.r(H.attmq),d=k.next();!d.done;d=k.next())d=d.value,d(A);H.attmq=void 0}else H=A.vMY.bind(A),_.nG("yt.aba.att",H),A=A.qGA.bind(A),_.nG("yt.aba.att2",A)};
mgX=function(A){switch(_.Nx(A.input)){case _.X3(T$f):var H={};return H.encryptedVideoId=A.innerTubeRequest.externalVideoId,H}return{}};
b98=function(A){switch(_.Nx(A.input)){case _.X3(T$f):if(_.b("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.X3(JHI):if(_.b("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.X3(Cw):if(_.b("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&A.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.X3(gKl):var H,k;if(_.b("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((k=_.L((H=A.config)==null?void 0:H.command,_.FU))==null?0:k.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.vKf=function(A){var H;if(A.playlistVideoRenderer&&((H=A.playlistVideoRenderer)==null?0:H.engagementBar))return Lcl(A.playlistVideoRenderer.engagementBar);if(_.L(A,Kw)){var k;if(A=(k=_.L(A,Kw))==null?void 0:k.engagementBar)return Lcl(A)}return""};
Lcl=function(A){if(!A)return"";A=_.L(A,_.yHI);if(A==null||!A.actions)return"";A=_.r(A.actions);for(A=A.next();!A.done;A=A.next()){A=_.L(A.value,_.j2V);var H=void 0;if((H=A)==null||!H.itemId)break;return A.itemId}return""};
_.I0N=function(A){var H;if(A.playlistVideoRenderer&&((H=A.playlistVideoRenderer)==null?0:H.videoId))return A.playlistVideoRenderer.videoId;if(_.L(A,Kw)){var k,d;if(A=(k=_.L(A,Kw))==null?void 0:(d=k.playlistItemData)==null?void 0:d.videoId)return A}return""};
_.Ysm=function(A){var H;if(A.playlistVideoRenderer&&((H=A.playlistVideoRenderer)==null?0:H.voteCount))return A.playlistVideoRenderer.voteCount;if(_.L(A,Kw)){var k,d;if(A=(k=_.L(A,Kw))==null?void 0:(d=k.playlistItemData)==null?void 0:d.voteCount)return A}return 0};
_.aI=function(A,H){return _.Mw(A.entities,"flowStateEntity",H)};
GNX=function(A,H,k,d){var W=void 0;A=_.r(A[H.iconName]||[]);for(var z=A.next();!z.done;z=A.next()){z=z.value;var u=H.iconSize;var B=H.iconStyle;u=!u||u===z[2];var h=P8C[z[0]];d&&d!==z[1]||!u||B&&B!==h?B=!1:W?(B=P8C[z[0]],B=!!H.iconStyle||B==="youtube_outline",u=W.version<=z[1],B=(!!H.iconSize||z[2]===24)&&B&&u):B=!0;B&&(W={name:H.iconName,style:P8C[z[0]],size:z[2],version:z[1],allowMirroring:!!z[3],url:k(H.iconName,z)})}return W};
Fcf=function(A,H,k,d){return A+(""+P8C[k[0]]+((d===void 0?0:d)?"_experimental":"")+"/"+H+"/v"+k[1]+"/")+(k[2]+"px.svg")};
X3r=function(A){return _.pZ("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.pZ("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":A};
Dgb=function(A,H){return Fcf("https://fonts.gstatic.com/s/i/",A,H)};
SsV=function(A,H){return Fcf("https://fonts.gstatic.com/s/i/",A,H,!0)};
C8f=function(A,H){return Fcf("https://www.gstatic.com/youtube/img/icons/web/",A,H)};
cHW=function(A){var H=A.enabled;var k=A.itemPlaybackModel;var d=A.thumbnailElRef;var W=A.containerElRef;var z=A.options;var u;_.CA(function(){var B=W==null?void 0:W.value;var h,O=(h=d())==null?void 0:h.value,T=k();h=z();if(H&&T&&B&&O&&(h==null?0:h.thumbnail)){var m={data:T,hostElement:B},J,g,v=[].concat(_.fV((J=h.thumbnailOverlays)!=null?J:[]),_.fV((g=T.overlays)!=null?g:[]));g=T.itemPlaybackOptions;J=(g==null?void 0:g.enableRoundedPlayer)||h.enableRounding;g=g==null?void 0:g.disableTimeStatusOverlay;
var y,X,D=(y=T.inlinePlayerData)==null?void 0:y.onVisible,K=(X=T.inlinePlayerData)==null?void 0:X.onSelect;X=h.thumbnail;y=h.accessibilityText||"";T=(T=_.L(D,KcX))&&T.playerDescriptors?T.playerDescriptors:void 0;if(T){D=[];for(K=0;K<T.length;K++){var N=void 0;D.push({inlinePlaybackEndpoint:T[K].inlinePlaybackEndpoint,navigationEndpoint:T[K].navigationEndpoint,thumbnail:(N=T[K].thumbnail)!=null?N:X,thumbnailOverlays:T[K].thumbnailOverlays?T[K].thumbnailOverlays:v,accessibilityText:y})}v=D}else v={inlinePlaybackEndpoint:_.h7(D),
navigationEndpoint:_.h7(K),thumbnail:X,thumbnailOverlays:v,accessibilityText:y};B={mediaRenderer:m,lockupElement:B,thumbnailElement:O,videoPreviewOpts:{videoPreviewData:v,thumbnailSize:h.thumbnailSize,enableRounding:J,mouseleaveCallback:h.mouseleaveCallback,hideTimeDisplay:g}}}else B=void 0;if(B){var U;(U=u)==null||cl(U);u=m5(B);var p,M;((p=k())==null?0:(M=p.inlinePlayerData)==null?0:M.forceImpAutoplay)&&a0C(u)}},"mM6F9");
_.aV(function(){var B;(B=u)==null||cl(B)})};
p3m=function(A){A=atob(A);for(var H=[],k=0;k<A.length;k++)H.push(A.charCodeAt(k));return new Blob([new Uint8Array(H)],{type:"image/png"})};
VbX=function(A,H,k,d){d=d===void 0?"INSERTION_POSITION_UNSPECIFIED":d;return A({targetId:H},function(W){var z,u=(z=W.contents)!=null?z:[];z=k!=null?k:[];var B=Q2A(u);switch(d){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},W,{contents:[].concat(_.fV(u.slice(0,B)),_.fV(z),_.fV(u.slice(B+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},W,{contents:[].concat(_.fV(z),_.fV(u))});case "INSERTION_POSITION_LAST":return Object.assign({},W,{contents:[].concat(_.fV(u),_.fV(z))});
default:return W}})};
Ug8=function(A,H,k,d,W){W=W===void 0?"RELATIVE_INSERTION_POSITION_AFTER":W;return A({targetId:H},function(z){var u,B=(u=z.contents)!=null?u:[];u=EKb(B,k);if(u<0)return z;u=W==="RELATIVE_INSERTION_POSITION_BEFORE"?u:u+1;return Object.assign({},z,{contents:[].concat(_.fV(B.slice(0,u)),_.fV(d),_.fV(B.slice(u)))})})};
Q2A=function(A){var H=A.findIndex(function(k){return _.L(k,_.pw)});
return H>=0?H:A.length};
EKb=function(A,H){return A.findIndex(function(k){a:{k=_.r(Object.values(k));for(var d=k.next();!d.done;d=k.next())if((d=d.value)&&d.targetId){k=d.targetId;break a}k=""}return k===H})};
tbV=function(A,H,k){return A({targetId:H},function(d){var W,z=(W=d.contents)!=null?W:[];return Object.assign({},d,{contents:l0X(z,k)})})};
l0X=function(A,H){return A.filter(function(k){var d=H.includes;a:{k=_.r(Object.values(k));for(var W=k.next();!W.done;W=k.next())if((W=W.value)&&W.targetId){k=W.targetId;break a}k=""}return!d.call(H,k||"")})};
_.N$C=function(A,H){return{engagementPanelSectionListRenderer:{panelIdentifier:A,identifier:H,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
MbN=function(A,H){A=A.getAvailableAudioTracks();if(A.length)return A==null?void 0:A.find(function(k){var d;return(k==null?void 0:(d=k.getLanguageInfo())==null?void 0:d.getId())===H})};
_.Z9r=function(A){var H,k=(H=A.getOption("captions","tracklist",{includeAsr:!0}))!=null?H:[];return k=nKv(k,A)};
f0m=function(A){return A.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
nKv=function(A,H){H=f0m(H);if(H==null||!H.length)return A;var k=H.filter(function(u){return u});
H=A.filter(function(u){return u.languageCode.startsWith("en")});
k=_.r(k);for(var d=k.next();!d.done;d=k.next())if(d=d.value,H.length){var W=H[0],z=Object.assign({},W);W.languageCode!==d.languageCode&&(z.displayName=W.languageName+" >> "+d.languageName,z.translationLanguage=d,A.push(z))}return A};
w3v=function(A,H,k){A=_.Z9r(A);if(A.length)return k?A.find(function(d){if(typeof(d==null?void 0:d.translationLanguage)==="object"){var W;return((W=d.translationLanguage)==null?void 0:W.languageCode)===H}return!1}):A==null?void 0:A.find(function(d){return d.languageCode===H})};
oKv=function(A){return A.getOption("captions","tracklist",{includeAsr:!0})};
$gb=function(A){var H=A.getAvailableAudioTracks();if(H!=null&&H.length){var k=A.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.fV(H.map(function(d){return{listItemViewModel:{title:{content:d.getLanguageInfo().getName()},isSelected:d.getLanguageInfo().getId()===(k==null?void 0:k.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:d.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
ATV=function(A){return A.getOption("captions","tracklist",{includeAsr:!0})};
HyN=function(A){var H=ATV(A);if(H==null?0:H.length)return H;A.loadModule("captions");return ATV(A)};
s$8=function(A){var H=A.getOption("captions","track");if(H)return H;A.loadModule("captions");return A.getOption("captions","track")};
d5C=function(A){var H=HyN(A);if(H!=null&&H.length){var k=s$8(A),d;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.$r("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(k==null?0:k.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.fV(H.map(function(W){return{listItemViewModel:{title:{content:W.displayName},
isSelected:W.displayName===(k==null?void 0:k.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:W.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.$r("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!k.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!k.translationLanguage&&{selectionText:{content:(k==null?void 0:(d=k.translationLanguage)==null?void 0:d.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[kxX(A)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
kxX=function(A){var H=f0m(A);if(H==null||!H.length)throw Error("Hi");var k=s$8(A);A=H.filter(function(d){return!d.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.fV(A.map(function(d){var W;return{listItemViewModel:{title:{content:d.languageName},isSelected:d.languageName===(k==null?void 0:(W=k.translationLanguage)==null?void 0:W.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:d.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
rTW=function(A){return new Promise(function(H,k){if(A===void 0)_.I3(Error("Li"),"ERROR"),k(Error("Li"));else{k=new _.WDb;var d=_.z0v();k=k.init();var W=_.qgC(_.pZ("YPC_MB_URL"),!0);Promise.all([k,W]).then(function(){var z=_.QG.payments.business.integration.ClientTokenFactory.createClientToken(A,d);H(z)})}})};
e0b=function(A,H,k,d,W,z,u){var B=_.YE();k=k.replace(/-/g,"+").replace(/_/g,"/");var h=_.sH().get("hl"),O=_.VG(_.GD),T=H==null?void 0:H.element;T&&_.II(T);u4f(H,!0);_.Bpl(O,k,B.resolve,function(){T&&_.Yq(T)},function(m){T&&_.Yq(T);
B.reject(m)},h,d?function(m){d&&_.I9(A,d,{backend_analytics:m})}:void 0,B.resolve,W,z,u);
return B.promise};
u4f=function(A,H){!(A=A==null?void 0:A.element)||A.tagName!=="YT-BUTTON-RENDERER"&&A.tagName!=="YTD-BUTTON-RENDERER"||(A.disabled=H)};
x5I=function(){var A=_.$r("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.K8(A),actionButton:{buttonRenderer:TDQ()}}},popupType:"TOAST"}};
iyv=function(){var A=_.$r("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.K8(A),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
h0V=function(A){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:A}]}}};
E5=function(A,H,k,d){var W;return _.e(function(z){if(z.nextAddress==1)return _.S_(z,2),z.yield(A,4);if(z.nextAddress!=2)return(W=_.dl(H.getState().entities).length>0)?z.return({title:_.K8(_.$r("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.K8(_.$r("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:RHA()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
z.return(mIf(k,d));_.VA(z);return z.return(mIf(k,d))})};
OyV=function(A,H){return H?H==="PPSV"||t0r(A,H):!1};
R0v=function(A){A.responseContext||(A.responseContext={});A.responseContext.maxAgeSeconds=0;return A};
ls=function(A){var H;return _.e(function(k){return k.nextAddress==1?k.yield(Tpf(A,"service:topbar:fallback"),2):(H=k.yieldResult)&&_.U5(H)?k.return(R0v(_.U5(H))):k.return()})};
m5W=function(A){var H;return _.e(function(k){return k.nextAddress==1?k.yield(Tpf(A,"service:downloads_settings:fallback"),2):(H=k.yieldResult)&&_.U5(H)?k.return(H):k.return()})};
Tpf=function(A,H){var k;return _.e(function(d){if(d.nextAddress==1)return A?d.yield(A.get(H),2):d.return();k=d.yieldResult;return!k||!_.U5(k)||!isNaN(Number(k.data.expireTimestampMs))&&k.isExpired()?d.return():d.return(k)})};
JTI=function(A){var H=_.wj().resolve(tv).getState().entities;return A.playlistId?OyV(H,A.playlistId):!1};
byV=function(A){var H=_.H5("web_pbj_log_warning_rate",0);H=H>0&&Math.random()<H;if(!_.L(A,_.A1))return H&&_.Pq(Error("ej")),!1;var k;return _.b("shorts_controller_retrieve_seedless_sequence_v2")&&((k=_.L(A,_.A1))==null?void 0:k.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:gnV(A)?!0:(H&&_.Pq(Error("fj")),!1)};
gnV=function(A){var H=(_.L(A,_.Yr)||_.L(A,_.A1)).videoId;if(!H||!LDV.test(H))return!1;var k;return(A=(k=_.L(A.commandMetadata,_.wn))==null?void 0:k.url)&&(A.includes(H)||A.startsWith("/clip"))?!0:!1};
_.yT8=function(){var A=_.sH();return A.getFlag(192)?A.getFlag(190):!(_.Wl("web_watch_cinematics_disabled_by_default")||_.Wl("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&vnm())};
_.NL=function(A,H,k){var d={};d.currentUrl=H;d.vis=A.vis!==void 0?A.vis:0;d.splay=!1;H=_.sH();d.autoCaptionsDefaultOn=H.getFlag(66);H.getFlag(141)?H.getFlag(140)?d.autonavState="STATE_OFF":d.autonavState="STATE_ON":d.autonavState="STATE_NONE";d.html5Preference="HTML5_PREF_WANTS";isNaN(_.pZ("STS"))||(d.signatureTimestamp=_.pZ("STS"));A.autonav&&(d.autoplay=!0,d.autonav=!0);A.mutedAutoplay&&(d.autoplay=!0,d.mutedAutoplay=!0);A.inlinePlayback&&(d.autoplay=!0,d.autonav=!1,d.isInlineUnmutedPlayback=!!A.inlineUnmuted);
d.referer=k;d.lactMilliseconds=A.lact!==void 0?A.lact.toString():"-1";_.b("enable_unknown_lact_fix_on_html5")&&d.lactMilliseconds==="-1"&&_.Pq(new _.Ti("Unknown LACT is set in playbackContext.",{"lact in tempData":A.lact||"undefined",autonav:A.autonav||"undefined"}));A={};H.getFlag(194)&&(A.hasShownAmbientMode=!0);H.getFlag(192)&&(A.hasToggledOffAmbientMode=!0);_.yT8()&&(A.watchAmbientModeEnabled=!0);d.watchAmbientModeContext=A;return d};
j$I=function(A){var H={},k=A.pbis||0;k&&(H.playbackBeginsInSeconds=k);A.prefetch_reason&&A.prefetch_reason==="hc_pbis"&&(H.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return H};
IM8=function(A,H){var k;if(H==null?0:(k=H.requestTemplate)==null?0:k.panelId)A.panelId=H.requestTemplate.panelId;var d;if(H==null?0:(d=H.requestTemplate)==null?0:d.params)A.params=H.requestTemplate.params};
PNN=function(){if(YgW)return YgW();var A=!_.b("idb_response_store_auth_killswitch"),H={};YgW=fG("yt-it-response-store",{objectStores:(H.ResponseStore={addedAtVersion:1},H),shared:!A,upgrade:function(k,d){d(1)&&(k=C5(k,"ResponseStore",{keyPath:["key","clientName"]}),K5(k,"byExpiration","expireTimestampMs"),K5(k,"byInterface","clientName"))},
version:1});return YgW()};
ML=function(A){return _.Ea(PNN(),A)};
FDf=function(A,H){var k;return _.e(function(d){return d.nextAddress==1?d.yield(_.Zq(),2):(k=d.yieldResult)?d.return(new Gxl(A,H,k)):d.return()})};
XPA=function(A){var H=Object.keys(A)[0];if(H)return A.screenExit&&(H=H+";"+A.screenExit.screen),H};
D5N=function(A){var H=new Map;A=_.r(A);for(var k=A.next();!k.done;k=A.next())k=k.value,k!=null&&(H.has(k.taskType)||H.set(k.taskType,[]),H.get(k.taskType).push(k));return H};
Sg8=function(A){A=[].concat(_.fV(A)).sort(function(k,d){return k-d});
var H=Math.floor(A.length/2);return A.length%2?A[H]:(A[H-1]+A[H])/2};
aMN=function(A,H){A=A===void 0?OhI:A;H=H===void 0?{}:H;_.nG("yt.logging.errors.log",_.I3);ihb();CNI(gHl(),H);window.onerror=A;KDQ=hEr;window.addEventListener("unhandledrejection",function(k){if(k.reason instanceof Error){var d=k.reason;_.Gg(d,{source:"unhandledrejection"});d.name==="AbortError"&&(d.level="WARNING")}hEr(k.reason);k.preventDefault()})};
_.cT8=function(A){var H,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z,WV,hA,qv,eN,mr,Cl,pl,UC,hk,eA,lI,Rp,vj,T0,Y1,ze,Tf;return _.e(function(QW){if(QW.nextAddress==1)return QW.yield(_.$B(A,{mode:"readonly",enableRetries:!0},function(mG){return Ar(mG,"playbackData").then(function(nN){var G0=nN.map(function(x1){return x1.transfer}).filter(function(x1){return!!x1}),$Z=nN.map(function(x1){return x1.offlineVideoPolicy}).filter(function(x1){return!!x1}),F9=nN.filter(function(x1){return!!x1.key}).map(function(x1){return _.Nw(_.Vm(x1.key).entityId,
"downloadStatusEntity")});
G0=Ar(mG,"transfer",G0);$Z=Ar(mG,"offlineVideoPolicy",$Z);F9=Ar(mG,"downloadStatusEntity",F9);var ww=G0.then(function(x1){x1=x1.reduce(function(lJ,Ni){(Ni==null?0:Ni.offlineVideoStreams)&&lJ.push.apply(lJ,_.fV(Ni.offlineVideoStreams));return lJ},[]).filter(function(lJ){return!!lJ});
return Ar(mG,"offlineVideoStreams",x1)});
return CG.all([G0,$Z,ww,F9]).then(function(x1){var lJ=_.r(x1);x1=lJ.next().value;var Ni=lJ.next().value;var uJ=lJ.next().value;lJ=lJ.next().value;return[nN,x1,Ni,uJ,lJ]})})}),2);
if(QW.nextAddress!=3)return H=QW.yieldResult,QW.yield(_.$B(A,{mode:"readonly",enableRetries:!0},function(mG){return Ar(mG,"mainDownloadsListEntity").then(function(nN){var G0,$Z;return($Z=(G0=nN[0])==null?void 0:G0.downloads)!=null?$Z:[]})}),3);
k=QW.yieldResult;d=_.r(H);W=d.next().value;z=d.next().value;u=d.next().value;B=d.next().value;h=d.next().value;O=W;T=z;m=u;J=B;g=h;v={};y={};X={};D={};K={};N=[];U=_.r(T);for(p=U.next();!p.done;p=U.next())(M=p.value)&&(v[M.key]=M);Z=_.r(m);for(WV=Z.next();!WV.done;WV=Z.next())(hA=WV.value)&&(y[hA.key]=hA);qv=_.r(g);for(eN=qv.next();!eN.done;eN=qv.next())(mr=eN.value)&&(X[mr.key]=mr);Cl=_.r(J);for(pl=Cl.next();!pl.done;pl=Cl.next())(UC=pl.value)&&(D[UC.key]=UC);hk=_.r(k);for(eA=hk.next();!eA.done;eA=
hk.next())lI=eA.value,Rp=void 0,K[(Rp=lI.videoItem)!=null?Rp:""]=!0,lI.videoItem&&(T0=vj=void 0,Y1=(T0=(vj=_.Vm(lI.videoItem))==null?void 0:vj.entityId)!=null?T0:"",N.push({externalVideoId:Y1}));ze=O.filter(function(mG){if(!mG||!mG.key||!mG.offlineVideoPolicy)return!1;mG=_.Vm(mG.key).entityId;mG=_.Nw(mG,"downloadStatusEntity");var nN;return!(mG&&((nN=X[mG])==null?void 0:nN.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Tf=ze.map(function(mG){var nN=v[mG.transfer],G0=[];if(nN==null?0:nN.offlineVideoStreams)for(var $Z=_.r(nN.offlineVideoStreams),F9=$Z.next();!F9.done;F9=$Z.next())(F9=D[F9.value])&&G0.push(F9);$Z=y[mG.offlineVideoPolicy];F9=K;var ww=mG==null?void 0:mG.playerResponseTimestamp,x1=_.Vm($Z.key).entityId;mG=_.Nw(x1,"mainVideoEntity");if($Z.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var lJ="OFFLINE_VIDEO_STATE_DISABLED";$Z.expirationTimestamp&&Number($Z.expirationTimestamp)<Date.now()/1E3&&(lJ="OFFLINE_VIDEO_STATE_EXPIRED")}else if($Z.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")lJ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(nN==null?void 0:nN.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":lJ="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":lJ="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":lJ="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":lJ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":lJ="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":lJ="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:lJ="OFFLINE_VIDEO_STATE_UNKNOWN"}if(lJ==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(nN==null?void 0:nN.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":lJ="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":lJ="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":lJ=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}x1={id:x1,videoState:lJ};if(nN==null?0:nN.cotn)x1.cotn=nN.cotn;if(nN==null?0:nN.maximumDownloadQuality)x1.selectedVideoQuality=nN==null?void 0:nN.maximumDownloadQuality;if(nN==null?0:nN.lastProgressTimeMs)x1.lastProgressTimeMs=nN.lastProgressTimeMs;ww&&(x1.playerResponseSavedTimeMs=String(Number(ww)*1E3));nN=String;ww=0;G0=_.r(G0);for(lJ=G0.next();!lJ.done;lJ=G0.next())if(lJ=lJ.value,lJ.streamsProgress){lJ=_.r(lJ.streamsProgress);for(var Ni=lJ.next();!Ni.done;Ni=
lJ.next()){var uJ=void 0;ww+=Number((uJ=Ni.value.numBytesDownloaded)!=null?uJ:0)}}x1.downloadedBytes=nN(ww);x1.selectedOfflineMode=F9[mG]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";$Z.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(x1.offlinePlaybackDisabledReason=$Z.offlinePlaybackDisabledReason);return x1});
return QW.return({offlineVideos:Tf,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:N}}})})};
pPW=function(){var A;return _.e(function(H){return H.nextAddress==1?H.yield(_.f8(),2):(A=H.yieldResult)?H.return(_.cT8(A)):H.return({state:"PES Unavailable"})})};
En8=function(){var A,H,k,d;return _.e(function(W){if(W.nextAddress==1)return W.yield(_.f8(),2);if(W.nextAddress!=3)return(A=W.yieldResult)?W.yield(Q$8(A),3):W.return({state:"PES Unavailable"});H=W.yieldResult;k={};d=H.reduce(function(z,u){z[u.key]=u;return z},k);
return W.return(Vzr(d))})};
Vzr=function(A){for(var H={},k=[],d=_.r(Object.keys(A)),W=d.next();!W.done;W=d.next()){var z=W.value;W=A[z];var u=void 0;if(((u=W)==null?void 0:u.entityType)==="mainVideoEntity"){delete A[z];var B=W.data;W={};if(B){var h=void 0;u=(h=B.videoId)!=null?h:"vid-"+z;z=A;W.video=B;delete W.video.formattedDescription;delete W.video.thumbnail;B.owner&&(h=z[B.owner],h==null?0:h.data)&&(delete z[h.key],W.video.owner=h.data,delete W.video.owner.avatar);if(B=B.downloadState)if(h=z[B],h==null?0:h.data)if(delete z[B],
B=h.data.playbackData)if(h=z[B],h!=null&&h.data){delete z[B];B=h.data;delete B.playerResponseJson;W.playbackData=B;if(B.transfer&&(h=z[B.transfer],h==null?0:h.data)){delete z[h.key];var O=h.data;W.transfer=O;h=[];O=_.r(O.offlineVideoStreams||[]);for(var T=O.next();!T.done;T=O.next())if(T=z[T.value])delete z[T.key],h.push(T.data);h&&(W.streams=h)}(B=B.offlineVideoPolicy)&&(B=z[B])&&B.data&&(delete z[B.key],W.offlineVideoPolicy=B.data)}H[u]=W}}else W&&W.entityType==="offlineOrchestrationActionWrapperEntity"&&
W.data&&(delete A[W.key],u=W.data,z=void 0,k.push({id:u.rootActionId,type:((z=u.actionProto)==null?void 0:z.actionType)||"",entity:W}))}H.wrapperEntities=k;Object.keys(A).length>0&&(H.unknownKeys=A);return H};
U5V=function(){var A,H,k,d,W,z,u,B,h;return _.e(function(O){if(O.nextAddress==1)return A=(new _.D$("")).hasLocalStorage(),d=!!((H=_.k8.crypto)==null?0:(k=H.subtle)==null?0:k.importKey),W=!!_.k8.BroadcastChannel,z=!!_.k8.navigator.locks,O.yield(nuQ(),2);u=O.yieldResult;B=A&&d&&W&&z&&u;h={isSupported:B};if(B)return O.return(h);h.missingBrowserFeatures=[];u||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");A||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
d||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");W||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");z||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return O.return(h)})};
lMN=function(A,H,k,d){var W=!1,z={contentId:void 0,contentType:"video"};H=_.r(Object.entries(H));for(var u=H.next();!u.done;u=H.next()){var B=_.r(u.value);u=B.next().value;B=B.next().value;A.includes(u)&&!k.has(B)?(z.contentId=B,k.add(B),W=!0):u==="contentType"?B==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(z.contentType="playlist"):typeof B==="object"&&B!==null&&lMN(A,B,k,d)}W&&d.push(z)};
tzl=function(){var A;return!((A=nw?nw:null)==null||!A.window)};
_.nnQ=function(A){if(_.NpW()){var H=_.MzA().mediaSession;try{H.setActionHandler("enterpictureinpicture",function(k){A(k)})}catch(k){}}};
_.NpW=function(){return!(!nw||!nw)&&Gf()&&_.v8V("Chromium")>=120};
Zyr=function(A){for(var H=[],k=_.r(document.styleSheets),d=k.next(),W={};!d.done;W={node$jscomp$779:void 0},d=k.next())W.node$jscomp$779=d.value.ownerNode,W.node$jscomp$779&&(W.node$jscomp$779 instanceof HTMLStyleElement||W.node$jscomp$779 instanceof HTMLLinkElement)&&H.push(new Promise(function(z){return function(u){var B=z.node$jscomp$779.cloneNode(!0);B.onload=function(){u()};
B.onerror=function(){_.Pq(Error("xj"));u()};
A.document.head.appendChild(B)}}(W)));
return Promise.all(H)};
WqI=function(A){var H=[_.y6(fMQ),_.y6(wPQ),_.y6(onI)];$5I(window.document.documentElement,A.document.documentElement,[_.y6(ALb),_.y6(HWl),_.y6(sRN),_.y6(kuI),_.y6(d$r)]);$5I(window.document.body,A.document.body,H)};
$5I=function(A,H,k){A=_.r(A.attributes);for(var d=A.next();!d.done;d=A.next())if(d=d.value)try{_.R4(k,H,d.name,d.value)}catch(W){}};
q$8=function(A,H){A=new _.Zh(A.document.documentElement);A.start(zib,H);return A};
rLC=function(A){var H=A.document.documentElement;H.addEventListener("click",function(k){Eov(H,k)});
H.addEventListener("touchstart",function(k){M7l(k)});
H.addEventListener("mousedown",function(k){M7l(k)})};
BgI=function(A,H,k,d){d=d===void 0?!1:d;H=new ugm(H||A,k||A);return{x:A.x+((d===void 0?0:d)?H.lengthX*-1:H.lengthX)*.2,y:A.y+((d===void 0?0:d)?H.lengthY*-1:H.lengthY)*.2}};
eil=function(A){if(!A)return!1;var H=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",k,d,W,z=(W=(k=A.errorScreen)==null?void 0:k.playerLegacyDesktopYpcTrailerRenderer)!=null?W:(d=A.errorScreen)==null?void 0:d.ypcTrailerRenderer;return!!H||!!z};
_.x$V=function(A,H){if(!A)return!1;var k,d=(k=A.errorScreen)==null?void 0:k.playerLegacyDesktopYpcOfferRenderer,W;H=!!(H==null?0:(W=H.playerOverlayRenderer)==null?0:W.gatedActionsOverlayRenderer);return!!eil(A)||!!d||!!H};
iWr=function(A){return ssb(A,0,"gclid",A.search(k48))>=0||ssb(A,0,"gad_source",A.search(k48))>=0};
hiI=function(A){var H=[],k=0;return{clear:function(){k=H.length=0},
push:function(d){H[k]=d;k=(k+1)%A},
iterate:function(){return function W(){var z,u,B,h;return _.fw(W,function(O){switch(O.nextAddress){case 1:_.pV(O,2),z=H.length,u=0;case 4:if(!(u<z)){O.jumpTo(2);break}B=k+u;h=_.wy;return O.yield(H[B%z],7);case 7:h(O.yieldResult);u++;O.jumpTo(4);break;case 2:_.KV(O),_.QA(O,0)}})}()}}};
OWl=function(A){A.eventsToIgnore||(A.eventsToIgnore=[]);var H=A.eventsToIgnore.map(trb),k=new Set(H),d=hiI(A.bufferSize);return{flush:function(){var W=Array.from(d.iterate());d.clear();W=W.map(function(z){return{name:z.name,timestamp:z.startTime,attributes:z.attributes}});
return JSON.stringify(W)},
onSpanStart:function(W){W.name==="event"&&k.has(W.attributes.type)||d.push(W)}}};
RiN=function(A){A=OWl(A);var H=A.flush;H1b({onSpanStart:A.onSpanStart});XW.subscribe("handleError",function(k){try{k.params.breadcrumbs=H()}catch(d){_.I3(d,"WARNING")}})};
TgA=function(){i9("web_tracing_action");_.hZ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
m$r=function(){i9("web_tracing_action");_.hZ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
bWV=function(A,H,k,d){if(H===void 0){JLC||(m$r(),setInterval(m$r,6E5),JLC=!0);var W="web_tracing_action"}else W=H;var z,u=((z=A.endTime)!=null?z:A.startTime)-A.startTime;z={};k=gyQ(A.name,u,A.startTime,{webTracing:(z[A.name]=A.attributes,z)},k,W,{spanStatus:A.status,rootSpanNonce:void 0});if(A.children)for(A=_.r(A.children),W=A.next();!W.done;W=A.next())bWV(W.value,H,k,d||k)};
Lqb=function(A){var H=qQW.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(k){k.data&&typeof k.data==="object"&&(k=k.data,k.from==="extension"&&k.app==="yt.telemetry"&&(H("Received message from extension",k),A.onMessage(k)))});
return function(k,d){k={app:"yt.telemetry",from:"app",key:k,payload:d};H("Sending message to extension",k);window.postMessage(k,"*")}};
vym=function(){var A=A===void 0?3E3:A;var H=Lqb({onMessage:function(){}}),k=[];
return{onSpanEnd:function(d){d.parentId==null&&k.push(d)===1&&setTimeout(function(){var W=[].concat(_.fV(k));k.length=0;H("spansReported",{spans:W})},A)}}};
yLQ=function(A){A=A===void 0?400:A;var H=[],k=[];return{start:function(){return sSC({checkoutEveryNth:A,emit:function(d,W){W&&(H=k,k=[]);k.push(d)},
blockSelector:'img, video, audio, source, picture, [style*="background"][style*="url"]',maskAllInputs:!0,maskTextSelector:"*"})},
getRecording:function(){return[].concat(_.fV(H),_.fV(k))}}};
Y$b=function(){(new jRV({sessionReplayEvents:_.H5("web_tracing_session_replay",0)})).subscribe(function(A){if(A.sessionReplayEvents>0)try{var H=yLQ(A.sessionReplayEvents);H.start();var k=console.log;window.exportSessionReplay=function(){var d=JSON.stringify(H.getRecording(),null,2);d=Ia8(new Blob([d],{type:"text/plain"}));var W=document.createElement("a");W.download="session_replay.json";W.dataset.downloadurl=["application/json",W.download,W.href].join(":");W.style.display="none";W.href=d;W.click();
URL.revokeObjectURL(d);k("View replay at go/yt-session-replay-viewer")}}catch(d){_.Pq(Error("zj"))}})};
GuV=function(){var A=window.fetch;window.fetch=function(){var H=_.o7.apply(0,arguments),k=_.r(H),d=k.next().value;k=k.next().value;var W=_.QS("httpEvent",{method:(k===void 0?{}:k).method||"GET",path:P6r(d),type:"fetch"},{active:!1});return A.apply(null,_.fV(H)).then(function(z){W.addAttributes({statusCode:z.status,statusText:z.statusText});W.end();return z}).catch(function(z){W.end("SPAN_STATUS_ERROR");
throw z;})}};
Fqm=function(){var A=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(k,d,W,z,u){var B=this;W=W===void 0?!0:W;this._requestData={method:k,url:d.toString()};this.addEventListener("load",function(){var h=B._span;h==null||h.addAttributes({statusCode:B.status,responseContentLength:B.responseText.length});h==null||h.end()});
this.addEventListener("error",function(){var h=B._span;h==null||h.addAttributes({statusCode:B.status,statusText:B.statusText});h==null||h.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var h=B._span;h==null||h.addAttributes({statusCode:B.status,aborted:!0});h==null||h.end()});
A.apply(this,[k,d,W,z,u])};
XMLHttpRequest.prototype.send=function(k){var d=this._requestData||{method:"N/A",url:"N/A"};this._span=_.QS("httpEvent",{method:d.method,path:P6r(d.url),type:"xhr"},{active:!1});H.apply(this,[k])}};
P6r=function(A){try{if(A instanceof URL)return A.pathname;A instanceof Request&&(A=A.url);return(new URL(A,"https://youtube.com")).pathname}catch(H){return"<unable to parse path>"}};
D$I=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var A=window.performance.getEntriesByType("navigation");if(A.length>0){var H=A[0],k=window.performance.timeOrigin;_.QS("pageLoad",{navigationType:X1v(H.type),unloadEventStart:Math.round(H.unloadEventStart),unloadEventEnd:Math.round(H.unloadEventEnd),domInteractive:Math.round(H.domInteractive),domContentLoadedEventStart:Math.round(H.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(H.domContentLoadedEventEnd),
domComplete:Math.round(H.domComplete),loadEventStart:Math.round(H.loadEventStart),loadEventEnd:Math.round(H.loadEventEnd),redirectCount:H.redirectCount},{active:!1,startTime:k+H.startTime,endTime:k+H.loadEventEnd})}}catch(d){}})};
X1v=function(A){switch(A){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"}};
cLv=function(){for(var A=S$X.value,H={},k=_.r(A.enabledSpansArray),d=k.next();!d.done;d=k.next())H[d.value]=!0;AyV({sessionId:krV(),enabledSpans:H,shouldSampleFn:function(W,z,u){if(C6N){var B;return W==="shortToShort"||(u==null?void 0:(B=u.rootSpan())==null?void 0:B.name)==="shortToShort"}return!0}});
zDV();pH("pageLoad")&&D$I();pH("httpEvent")&&(GuV(),Fqm());A.exportToCsi&&H1b(KqI);A.exportToDevTools&&H1b(vym());A.maxBreadcrumbs>0&&RiN({eventsToIgnore:aaI,bufferSize:A.maxBreadcrumbs})};
p1v=function(A){return new Promise(function(H){window.setTimeout(H,A)})};
QRm=function(A){var H={bicf:function(z){A.fwS=z},
blc:function(){return A.getLatestChallengeResponse()},
bcr:function(z){A.gEZ.push(z)}},k=window;
k.ntpevasrs=H;if(k.ntpqfbel!==void 0)for(var d=_.r(k.ntpqfbel),W=d.next();!W.done;W=d.next())W=W.value,W(H);k.ntpqfbel=void 0};
VSX=function(A){return _.e(function(H){if(H.nextAddress==1)return _.S_(H,2),H.yield(A.xzK(),4);if(H.nextAddress!=2)return _.QN(H,0);_.VA(H);_.EN(H)})};
Ey8=function(A){var H,k;(H=A.ytcsi)==null||(k=H.tick)==null||k.call(H,"pot_ist")};
U$N=function(A){if(A instanceof Error){var H=_.UD("yt.logging.errors.log");H&&H(A,"WARNING")}};
lar=function(A){try{var H=JSON.parse(A);if(H.bgChallenge)return H}catch(k){}};
NgC=function(){var A=window,H={networkStatusManagerPromise:_.wj().resolve(new DwN(_.Qv)),initialChallengeSli:_.b("wpo_att_sli")?new _.L1f("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};A=A===void 0?window:A;var k=A.ytAtR,d;H==null||(d=H.initialChallengeSli)==null||_.oI(d);if(k){if(k=lar(k)){var W;H==null||(W=H.initialChallengeSli)==null||_.$q(W,"SUCCESS");tS8(k,H)}A.ytAtR=void 0}else A.ytAtRC=function(z){if(z=lar(z)){var u;H==null||(u=H.initialChallengeSli)==null||
_.$q(u,"SUCCESS");tS8(z,H);A.ytAtRC=void 0}}};
ZWr=function(){if(MSm)return MSm;try{var A=_.$g("IFRAME");_.zM(A,_.Ia(nyC));A.sandbox.add("allow-same-origin");A.style.display="none";document.body.appendChild(A);return MSm=A}catch(H){A=new _.Ti("Failed to create sandbox iframe"),_.I3(A)}};
faA=function(){return function(A,H){_.pZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[A]=H}};
w1r=function(){return function(A,H){var k={};k[A]=H;A=_.ED(_.UEC)(k);Object.keys(A).length>0&&_.xB(A)}};
A5I=function(){if(_.c7I()==="hidden")var A="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.c7I()==="visible"&&(A="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",oyX=null);A&&$$8(A)};
$$8=function(A){if(A==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||A==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Huf===A)return;Huf=A}var H=9E4+Math.random()*2E3;if(A!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Z$()>H)&&_.c7I()==="visible"){H=-1;oyX&&(H=Math.round((0,_.w2)()-oyX));var k=String;var d=_.UD("_fact",window);d=d==null||d==-1?-1:Math.max(Date.now()-d,0);_.yr("foregroundHeartbeat",{firstActivityMs:k(d),clientDocumentNonce:dlV,index:String(sdA),lastEventDeltaMs:String(H),trigger:A});
_.nG("_fact",-1,window);sdA++;oyX=(0,_.w2)()}};
kvm=function(A,H,k,d,W,z){H=new Uint8Array(H);if(A.length===0)return H;var u=0;W=W!=null?W:A.length-1;for(var B=k;B<=W;B++){var h=A[B],O=B===k?d:0,T=void 0,m=B===W?(T=z)!=null?T:h.length:h.length;h=h.subarray(O,m);H.set(h,u);u+=h.length}return H};
WnC=function(){typeof window.queueMicrotask!=="function"&&(window.queueMicrotask=function(A){return dyv.then(A)})};
_.zoN=function(){try{return!!self.sessionStorage}catch(A){return!1}};
qzX=function(){var A=navigator;return new Promise(function(H,k){var d;(d=A.webkitTemporaryStorage)!=null&&d.queryUsageAndQuota?A.webkitTemporaryStorage.queryUsageAndQuota(function(W,z){H({usage:W,quota:z})},function(W){k(W)}):k(Error("Ij"))})};
r5I=function(A,H){var k={errorSeverity:H.errorSeverity.toString(),wizFeatureFlags:Object.entries(H.featureFlags).join("\n")};xFI(H,k);H=H.errorSeverity;H===3?_.I3(A,"ERROR",void 0,void 0,void 0,k):H===2&&_.I3(A,"WARNING",void 0,void 0,void 0,k);_.b("cow_if_errors_in_popup")&&H===3&&A.message.indexOf("<If>")!==-1&&window.alert(A.message)};
uKA=function(A,H){var k=Xp.get(A)||{layerNode:H};k.layerNode=H;yUf(A,k);A.getScreenLayer=function(){return Ad(k.layerNode)}};
BcQ=function(A){var H;A=A.parentNode;for(var k;A&&((H=Xp.get(A))==null||!H.isRenderer)&&!((k=A.polymerController)!=null?k:A).isRenderer_;)A=A.parentNode||A.host;if(H=A)return Xp.get(H)};
eoQ=function(A){if(A){Xp.delete(A);var H=_.wj().resolve(tb);h3W(A,H)}};
iuf=function(A,H,k){if(k===void 0?0:k){if(k=A.getAttribute("client-ve-type"),H.data&&!H.disableReactiveLogging||k)_.SC(function(){xyb(A,_.pA(H.data))},"Hg"),_.aV(function(){return void eoQ(A)})}else typeof H.data!=="function"&&xyb(A,H.data)};
xyb=function(A,H){hof++;OuI(A,H)&&_.IE.addJob(function(){_.Hp(_.IE,function(){if(OuI(A,H)&&A.ownerDocument.documentElement===document.documentElement&&A){var k;if(A.getAttribute("layer")){var d=k=Number(A.getAttribute("layer")),W=Xp.get(A);W?W.layerNode.layer=d:uKA(A,new Ror(d));(d=BcQ(A))&&(W=Xp.get(A))!=null&&(W.layerNode.parent=d.layerNode)}else if(k=Xp.get(A))k=Ad(k.layerNode);else{k=Ad;d=new Ror;if(W=BcQ(A))d.parent=W.layerNode;uKA(A,d);k=k(d)}k!=null||(k=0);d=A.getAttribute("client-ve-type");
W=Number(d);var z=!1;d=!1;var u=Xp.get(A),B;if((B=u)&&!(B=u[TcA]!==H)&&(B=W)){var h;B=((h=Xp.get(A))==null?void 0:h.clientVeType)===void 0}B&&(u[TcA]=H,z=d=u.isRenderer=!0);Xp.has(A)&&(Xp.get(A).clientVeType=W);A.visualElement&&(d=!0);if(_.b("wiz_next_ld_fix_client_ve_spec")){var O;h=((O=_.L(H==null?void 0:H.rendererContext,_.H8))==null?void 0:O.loggingDirectives)||(H==null?void 0:H.loggingDirectives)}else h=H==null?void 0:H.loggingDirectives;h&&h.clientVeSpec&&(O=mym(_.oO(),A),O=_.J5f(_.A7(),h,O||
void 0,k))&&(A.visualElement=O);!A.visualElement&&W&&z&&(A.veType=W,O=void 0,_.b("wiz_next_client_ve_parent_fix")&&(O=mym(_.oO(),A)),O=_.$9(_.A7(),A,O,k),A.visualElement=O);d&&(O=_.wj().resolve(tb),wu(A,{data:H,observer:O,layer:k,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
OuI=function(A,H){return(H==null?0:H.trackingParams)||(H==null?0:H.loggingDirectives)||_.L(H==null?void 0:H.rendererContext,_.H8)||A.getAttribute("client-ve-type")?!0:!1};
gMI=function(A,H,k){A.componentType!==yM&&k instanceof HTMLElement&&H&&!_.b("cow_logging_in_component_wrapper")&&iuf(k,H,!0)};
vMr=function(){if(!buW){buW=!0;var A=_.b("enable_wiz_context_per_component")||!1;A=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.b("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:A,enableContextBasedComponentStacks:A},{handleError:r5I,enableComponentStacksInErrorMessages:!1});Object.assign(si,A);Lnv();PiQ=VTb;jCX=UfV}};
Lnv=function(){_.b("cow_logging_in_component_wrapper")?(fgV=function(A,H){H instanceof HTMLElement&&iuf(H,A,!0)},iHA=function(){}):(fgV=function(){},iHA=gMI)};
y5l=function(A,H,k){H=H===void 0?{}:H;var d,W=(d=_.L(A.commandMetadata,_.wn))==null?void 0:d.url;d=H.form||{};!k||d.element||d.skipDefaultElement||(H.form=H.form||{},H.form.element=k);if(W&&W!=="/service_ajax")return{type:0,command:A,form:H.form};if(_.b("kevlar_service_command_check")){if(_.jO(_.wj().resolve(_.kI),A))return Object.assign({},{type:1,command:A},H)}else{var z;if((z=_.L(A.commandMetadata,_.wn))==null?0:z.apiUrl)return Object.assign({},{type:1,command:A},H)}return{type:2,command:A,form:H.form}};
jdI=function(A){if(A.form){var H=A.form,k=Object.assign({},H);H=H.element;k=(delete k.element,k);if(H)return[_.tx(H,[A.command,k,A.commandController])]}return[]};
I98=function(A){if(A.form){var H=A.form,k=Object.assign({},H);H=H.element;k=(delete k.element,k);H&&_.NT(H,[A.command],H,k)}};
PYN=function(A,H,k){var d=new Yzv(A,H),W=new sK(A,H,k);A={"/youtubei/v1/browse":new kc(A,H,k),"/youtubei/v1/player":d,"/youtubei/v1/navigation/resolve_url":new dK,"/youtubei/v1/next":W,"/youtubei/v1/guide":new Wp(k),"/youtubei/v1/search":new zs(A,H,k),"/youtubei/v1/reel/reel_item_watch":new qe(A,H,k),"/youtubei/v1/get_watch":new rK(d,W)};A["/youtubei/v1/account/account_menu"]=new uA;A["/youtubei/v1/notification/get_notification_menu"]=new Bp;return A};
xc=function(){var A=_.wj().resolve(_.eK);return Promise.resolve(GvN(A,_.k8.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
FnV=function(A){return A&&(A=_.lf(_.ngX(A)))?(new URLSearchParams(A)).get("service"):null};
OK=function(A,H){_.p3(_.iA(),function(){_.OH("adl")});
_.wj().resolve(Xvm)(H);A=A.root;A.loadData&&A.loadData(H);(H==null?0:H.response)?_.$q(jD8(),"SUCCESS"):_.Pq(new _.Ti("Lifecycle: No response in data",_.Q$("IS_SHELL_LOAD"),H?H.page:"NO_PAGE",H?H.endpoint:"NO_ENDPOINT"));A.polymerController.$["page-manager"].lazyPrepareCriticalPages((H==null?void 0:H.page)||"",H.endpoint);var k,d;((d=_.L(H==null?void 0:(k=H.endpoint)==null?void 0:k.commandMetadata,_.wn))==null?0:d.webPageType)&&_.F3().dispatch(_.hd(_.L(H.endpoint.commandMetadata,_.wn).webPageType))};
DyA=function(){var A,H;return _.e(function(k){switch(k.nextAddress){case 1:A=window;if(!A.getDataPromise){k.jumpTo(2);break}_.S_(k,3);return k.yield(A.getDataPromise(),5);case 5:return k.return(k.yieldResult);case 3:return _.VA(k),k.yield(xc(),6);case 6:return k.return(k.yieldResult);case 2:if(A.getInitialData)return H=A.getInitialData(),A.getInitialData=void 0,k.return(H);throw Error("Kj`"+_.k8.location.href);}})};
CYA=function(){_.cI("CSI_SERVICE_NAME","youtube");_.xB({loadType:"cold"});_.b("kevlar_log_lcp")&&Szm(function(A){_.OH("lcp",A.value)})};
Knl=function(){var A=_.H4(document.location.href,"enable");A&&A.indexOf("scraper")>-1&&_.cI("ADD_SCRAPER_ATTRIBUTES",!0)};
VfA=function(A){var H=A.root;A=[a9I,c5V,_.RL];_.b("web_feedback_endpoint_autolog_allowlist_killswitch")&&A.push(_.Ts,pvv);Qdr(function(k,d){return y5l(k,d,H)},function(k){if(!k.command)return[];
var d;((d=k.form)==null?0:d.element)?k.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},k.form,{endpoint:k.command})})):H.handleNavigate(k);return[]},A);
_.wj().addProvider({provide:_.J7,useValue:_.n0.instance})};
Uyf=function(){var A={},H={},k;for(k in EMm){var d=_.r(_.RV(EMm[k],void 0,"e17Ccb"));A[k]=d.next().value;H[k]=d.next().value}return[A,function(W){for(var z in W){var u=void 0;(u=H[z])==null||u(W[z])}}]};
_.Ncm=function(A,H){var k=!1;k=k===void 0?!1:k;var d=_.iK.getValueByKeys(A,"contents","twoColumnWatchNextResults","results","results","contents"),W=_.iK.getValueByKeys(A,"contents","twoColumnWatchNextResults","playlist","playlist")||null;k&&(W=null);var z=k=null;if(W)k=_.iK.getValueByKeys(W,"titleText"),z=_.iK.unsafeClone(_.iK.getValueByKeys(W,"longBylineText")),d="",z&&(d=_.PK(z)),z=_.Yu(d);else if(d){d=_.r(d);for(var u=d.next();!u.done;u=d.next())u=u.value,u.videoPrimaryInfoRenderer&&(k=_.iK.getValueByKeys.apply(_.iK,
[u].concat(_.fV(l9v)))),u.videoSecondaryInfoRenderer&&(z=_.iK.getValueByKeys.apply(_.iK,[u].concat(_.fV(tfv))))}else _.lt(Error("Pj"));var B;A.currentVideoEndpoint?B=A.currentVideoEndpoint:_.lt(Error("Qj"));var h;H&&(h=_.iK.getValueByKeys(H,"playabilityStatus","miniplayer","miniplayerRenderer"));A={miniplayerTitle:k,miniplayerSubtitle:z,watchEndpoint:B,playlistData:W};h&&(A.miniplayerRenderer=h);return A};
Mfv=function(A){if(A)return _.B8(A)};
_.nMC=function(){return{isFullscreen:function(){throw Error("Rj");},
toggleFullscreen:function(){throw Error("Sj");},
exitFullscreen:function(){throw Error("Tj");},
isAutonavEnabled:function(){throw Error("Uj");},
setAutonavEnabled:function(){throw Error("Vj");},
isAutoplaySetExplicitly:function(){throw Error("Wj");}}};
Zul=function(A){return A.videoDuration?A.numTaps>1&&A.tapDirection!==0?_.Py(A.draggedTime/A.videoDuration,0,1):_.Py((A.playedTime||0)/A.videoDuration,0,1):0};
f9A=function(A){return A.videoDuration?A.isDragging||A.numTaps>1&&A.tapDirection!==0?_.Py(A.draggedTime/A.videoDuration,0,1):_.Py((A.playedTime||0)/A.videoDuration,0,1):0};
oMX=function(A){var H,k,d;return _.L(A==null?void 0:(H=A.markersMap)==null?void 0:(k=H.find(function(W){return W.key==="HEATSEEKER"}))==null?void 0:(d=k.value)==null?void 0:d.heatmap,wvX)};
$yr=function(A){var H,k;return(k=(H=oMX(A))==null?void 0:H.heatMarkersDecorations)!=null?k:[]};
AAG=function(A){if(_.b("mweb_supported_chapters_killswitch"))return!0;var H;return!!(A==null?0:(H=A.markersMap)==null?0:H.find(function(k){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(k.key)}))};
_.Hlp=function(A){var H=Object,k=H.assign,d;A={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(d=A==null?void 0:A.getPlayerState())!=null?d:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return k.call(H,{},{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},A,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
sbw=function(A){return function(H){var k=A(),d,W=(d=k.playerApi)==null?void 0:d.getPlayerState();H&&H!==k.playerState&&(H===1||H===2)&&k.setState({playerState:W})}};
dvQ=function(A){return function(H){var k=A(),d=k.playerApi;d&&(H==null?void 0:H.type)==="newdata"&&(kfw&&(clearTimeout(kfw),kfw=void 0),_.b("web_shorts_use_progress_state_for_gapless")?(H=d==null?void 0:d.getProgressState(H==null?void 0:H.playertype),H=H.seekableEnd-H.seekableStart):H=d==null?void 0:d.getDuration(H==null?void 0:H.playertype),k.setState({playedTime:0,videoDuration:H}))}};
WrA=function(A){return function(H){var k=A(),d=k.playerApi;if(d){var W=d.getPresentingPlayerType();_.b("web_shorts_use_progress_state_for_gapless")?(d=d.getProgressState(W),d=d.seekableEnd-d.seekableStart):d=d.getDuration(W);k.setState({playedTime:H,videoDuration:d})}}};
qCw=function(A){_.eY(112394,A,function(){return zmw},function(H){zmw=H})};
BIi=function(A,H){if(!A)return[];var k,d,W;A=((k=A.markersMap)==null?void 0:(d=k.find(function(z){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(z.key)}))==null?void 0:(W=d.value)==null?void 0:W.chapters)||[];
!rA0(A)||(H==null?0:H.ignoreStub)||(A=[uX0()].concat(_.fV(A)));return A};
uX0=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
rA0=function(A){if(A.length===0)return!1;var H;return((H=_.L(A[0],mW))==null?void 0:H.timeRangeStartMillis)!==0};
Jd=function(A){return A?A.timeRangeStartMillis||0:0};
xvA=function(A,H){if(A.isDragging&&H)return A=emG(A,H),A===-1?uX0():BIi(H)[A]};
emG=function(A,H){return A.isDragging&&H?BIi(H,{ignoreStub:!0}).findIndex(function(k,d,W){k=ilk(A);return hmG(k,W,d).scrubberHovering}):-1};
ilk=function(A){return Object.assign({},A,{videoDuration:A.videoDuration*1E3,playedTime:A.playedTime*1E3,draggedTime:A.draggedTime*1E3})};
hmG=function(A,H,k){var d=Jd(_.L(H[k],mW));H=Jd(_.L(H[k+1],mW))||A.videoDuration;k=A.isDragging;var W;if(W=A.isDragging)W=A.draggedTime,W=W!==null&&W>=d&&W<H;var z=A.playedTime;return z!==null&&z>=d&&z<H?{videoPosition:"active",isScrubbing:k,scrubberHovering:W}:A.playedTime<d?{videoPosition:"pending",isScrubbing:k,scrubberHovering:W}:{videoPosition:"seen",isScrubbing:k,scrubberHovering:W}};
Olw=function(A,H){return A.videoPosition==="seen"||(H===void 0?0:H)>0};
Rmi=function(A,H,k){H=A/H.storyboardInterval;var d=BIi(k);if(!d.length)return-H*72;k=0;d=_.r(d);for(var W=d.next();!W.done;W=d.next())if(Jd(_.L(W.value,mW))/1E3<A)k++;else break;return-(H*72)-k*56};
TIA=function(A){return A?A.width/A.columns:0};
mvi=function(A){return A.isHovering?A.hoveredTime:A.draggedTime};
JAw=function(A,H){A=A.draggedTime*1E3;return A>=H.visibleTimeRangeStartMillis&&A<=H.visibleTimeRangeEndMillis};
_.g8A=function(A){if(A===void 0||Number.isNaN(A))return"--:--";var H=Math.abs(Math.floor(A)),k=Math.floor(H/86400),d=Math.floor(H%86400/3600),W=Math.floor(H%3600/60);H=Math.floor(H%60);var z="";k>0&&(z+=k+":",d<10&&(z+="0"));if(k>0||d>0)z+=d+":",W<10&&(z+="0");z+=W+":";H<10&&(z+="0");z+=H;return A>=0?z:"-"+z};
blj=function(A,H){return function(){var k=mvi(A());var d=H();var W=A().playerApi;if(W&&W.getNumberOfStoryboardLevels()!==0){var z=W.getStoryboardFrameIndex(k,1);z!==-1?d=W.getStoryboardFrame(z,1):(k=W.getStoryboardFrameIndex(k,0),W=W.getStoryboardFrame(k,0),d&&W&&(W.height*=3,W.width*=3),d=W)}else d=null;if(!d)return null;H()&&(d.width=90*d.columns,d.height=160*d.rows);return d}};
_.gK=function(A){if(!A||A.getVideoData)return A};
Lr1=function(){var A;return{playerApi:(A=_.MN())!=null?A:void 0}};
v8j=function(A,H){var k,d,W;_.e(function(z){if(z.nextAddress==1)return(k=H)!=null?(d=k,z.jumpTo(2)):z.yield(_.NN(),3);z.nextAddress!=2&&(d=z.yieldResult);if(W=d)W.unMute(!0),W.setVolume(A,!0);_.EN(z)})};
bA=function(A,H){A&&(A.value=""+H,A.style.setProperty("--gradient-percent",H+"%"))};
yA1=function(A){var H;return(H=A==null?void 0:A.value)!=null?H:0};
jbZ=function(){var A;_.e(function(H){if(H.nextAddress==1)return H.yield(_.NN(),2);A=H.yieldResult;if(!A)return H.return();A.isMuted()?A.unMute(!0):A.mute(!0);_.EN(H)})};
IQ1=function(A){var H=_.wj().resolve(_.L6).getPlayerElement();H&&A&&(A===1?H.pause():H.play())};
YCw=function(A){return!!_.L(A,_.vp)||!!_.L(A,_.yj)};
PIp=function(A){_.li(A,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
GfA=function(A){_.li(A,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
XV1=function(A){return _.DR(A.document.body,function(){return _.x(Frw,null)},"sh")};
Dvk=function(){var A;return(A=navigator.userActivation)==null?void 0:A.isActive};
SCA=function(){var A=window.performance.getEntriesByType("navigation");return A?A.map(function(H){return H.type}).includes("reload"):!1};
CIj=function(A,H){H=H===void 0?!1:H;var k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return H||!_.b("kevlar_shorts_seedless_retry_initial_load")||(k=window,d=!(!k.getDataPromise&&!k.getInitialData),d)?u.yield(DyA(),2):(setTimeout(CIj.bind(window,A,!0),1E3),u.return());if(u.nextAddress!=3)return W=u.yieldResult,u.yield(Kr0(W),3);z=u.yieldResult;OK(A,z);_.EN(u)})};
Kr0=function(A){var H;if((H=A.response)==null||!H.replacementEndpoint)return _.MT(A);H=_.wj().resolve(_.eK);A=A.response;_.L(A.replacementEndpoint,_.A1)&&A.sequenceContinuation&&(_.L(A.replacementEndpoint,_.A1).sequenceParams=A.sequenceContinuation);return jK(H,A.replacementEndpoint,{},_.k8.location.href,"shorts",function(){},function(){return!1})};
cAA=function(A){var H=_.wj().resolve(aQG);A.playerResponse&&H.handleResponse(A.playerResponse);A.response&&H.handleResponse(A.response)};
pVw=function(A){var H=_.F3(),k,d=_.L((k=A.response)==null?void 0:k.frameworkUpdates,Pn),W;k=_.L((W=A.playerResponse)==null?void 0:W.frameworkUpdates,Pn);var z;A=_.L((z=A.reelWatchSequenceResponse)==null?void 0:z.frameworkUpdates,Pn);d&&_.oN(d,H);k&&_.oN(k,H);A&&_.oN(A,H)};
Qbw=function(A){var H;_.b("enable_redirect_linking_for_desktop_web_client")&&((H=window.location.hash)==null?0:H.includes("redirect_state"))&&A.url&&(A.url=A.url.toString()+window.location.hash)};
UvZ=function(A){var H=_.wj(),k=H.resolve(_.eK);H=H.resolve(_.VNj);A.endpoint&&(k=E80(k,A.endpoint),k.content&&A.response&&_.IL(H,A.response,k.content),k.player&&A.playerResponse&&_.IL(H,A.playerResponse,k.player),k.reelSequence&&A.reelWatchSequenceResponse&&_.IL(H,A.reelWatchSequenceResponse,k.reelSequence))};
Yc=function(A,H){_.b("web_enable_chunk_prediction")&&lQA(H);cAA(H);pVw(H);var k;(H==null?0:H.url)&&((k=window.location.hash)==null?0:k.includes("redirect_state"))&&(Qbw(H),(k=FnV(H.url))&&_.Ud(A.root,"yt-initialize-third-party",[k,H]));UvZ(H);k=_.wj();var d=k.resolve(tNi);H.playerResponse&&k.resolve(NIi).handleResponse(H.playerResponse);if(H.playerResponse){k=void 0;if(_.b("ab_v_vid_sig")&&H.endpoint){var W,z=(W=_.L(H.endpoint,_.Yr))!=null?W:_.L(H.endpoint,_.A1);z&&(k=z.videoId)}MNQ(d,H.playerResponse,
k)}H.playerResponse&&toV(H.playerResponse)&&_.b("web_enable_ab_rsp_cl")?dgC().then(function(){n8Z(d,H.playerResponse);OK(A,H)}):OK(A,H)};
fQA=function(A){if(A=A.root.data){var H=_.wj().resolve(Zlk);A.endpoint&&(A.response&&H.handleResponse(A.response,void 0,document.querySelector("ytd-app")),A.playerResponse&&H.handleResponse(A.playerResponse),A.reelWatchSequenceResponse&&H.handleResponse(A.reelWatchSequenceResponse))}};
lQA=function(A){A.response&&_.wj().resolve(wVj).handleResponse(A.response)};
o8J=function(A){var H,k,d,W,z,u;return _.e(function(B){switch(B.nextAddress){case 1:H=window;if(!H.getDataPromise){B.jumpTo(2);break}_.S_(B,3);return B.yield(H.getDataPromise(),5);case 5:k=B.yieldResult;Yc(A,k);_.QN(B,4);break;case 3:return _.VA(B),B.yield(xc(),6);case 6:d=B.yieldResult,_.b("web_enable_chunk_prediction")&&lQA(d),OK(A,d);case 4:return B.return();case 2:if(!_.b("sw_nav_preload_pbj")){B.jumpTo(7);break}H.fetchInitialData=function(){var h;return _.e(function(O){if(O.nextAddress==1)return O.yield(xc(),
2);h=O.yieldResult;_.b("web_enable_chunk_prediction")&&lQA(h);OK(A,h);_.EN(O)})};
if(H.getInitialData){H.loadInitialData=function(h){Yc(A,h)};
W=H.getInitialData();H.getInitialData=void 0;Yc(A,W);B.jumpTo(8);break}H.fetchInitialData=void 0;return B.yield(xc(),9);case 9:z=B.yieldResult,_.b("web_enable_chunk_prediction")&&lQA(z),OK(A,z);case 8:return B.return();case 7:H.getInitialData?(u=H.getInitialData(),H.getInitialData=void 0,Yc(A,u)):H.loadInitialData=function(h){Yc(A,h)},_.EN(B)}})};
Akw=function(){var A=new $v1;_.cn8(A);A.registerInitializationCallback(function(){XlC(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
A.registerCallback("error",function(H,k,d){_.V$(Error("$j`"+k+"`"+d))})};
qwN=typeof Object.create=="function"?Object.create:function(A){var H=function(){};
H.prototype=A;return new H};
rki=typeof Object.defineProperties=="function"?Object.defineProperty:function(A,H,k){if(A==Array.prototype||A==Object.prototype)return A;A[H]=k.value;return A};
uAN=function(A){A=["object"==typeof globalThis&&globalThis,A,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var H=0;H<A.length;++H){var k=A[H];if(k&&k.Math==Math)return k}throw Error("a");};
_.nP=uAN(this);Bwp="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.nP.BigInt64Array&&(Bwp.push("BigInt64"),Bwp.push("BigUint64"));var xQw=function(A,H){if(H)for(var k=0;k<Bwp.length;k++)ewN(Bwp[k]+"Array.prototype."+A,H)},Pp=function(A,H){H&&ewN(A,H)},ewN=function(A,H){var k=_.nP;
A=A.split(".");for(var d=0;d<A.length-1;d++){var W=A[d];if(!(W in k))return;k=k[W]}A=A[A.length-1];d=k[A];H=H(d);H!=d&&H!=null&&rki(k,A,{configurable:!0,writable:!0,value:H})},iNJ=function(){function A(){function k(){}
new k;Reflect.construct(k,[],function(){});
return new k instanceof k}
if(typeof Reflect!="undefined"&&Reflect.construct){if(A())return Reflect.construct;var H=Reflect.construct;return function(k,d,W){k=H(k,d);W&&Reflect.setPrototypeOf(k,W.prototype);return k}}return function(k,d,W){W===void 0&&(W=k);
W=qwN(W.prototype||Object.prototype);return Function.prototype.apply.call(k,W,d)||W}}(),hww;
if(typeof Object.setPrototypeOf=="function")hww=Object.setPrototypeOf;else{var ONA;a:{var RwQ={a:!0},TwQ={};try{TwQ.__proto__=RwQ;ONA=TwQ.a;break a}catch(A){}ONA=!1}hww=ONA?function(A,H){A.__proto__=H;if(A.__proto__!==H)throw new TypeError("b`"+A);return A}:null}Gs=hww;
_.I=function(A,H){A.prototype=qwN(H.prototype);A.prototype.constructor=A;if(Gs)Gs(A,H);else for(var k in H)if(k!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(H,k);d&&Object.defineProperty(A,k,d)}else A[k]=H[k];A.superClass_=H.prototype};
mQG=function(A){var H=0;return function(){return H<A.length?{done:!1,value:A[H++]}:{done:!0}}};
_.r=function(A){var H=typeof Symbol!="undefined"&&Symbol.iterator&&A[Symbol.iterator];if(H)return H.call(A);if(typeof A.length=="number")return{next:mQG(A)};throw Error("c`"+String(A));};
MZ=function(A){for(var H,k=[];!(H=A.next()).done;)k.push(H.value);return k};
_.fV=function(A){return A instanceof Array?A:MZ(_.r(A))};
_.XO=function(A){return FO(A,A)};
FO=function(A,H){A.raw=H;Object.freeze&&(Object.freeze(A),Object.freeze(H));return A};
Ds=function(A,H){return Object.prototype.hasOwnProperty.call(A,H)};
Jkp=function(A){if(A==null)throw new TypeError("d");return Object(A)};
gZw=typeof Object.assign=="function"?Object.assign:function(A,H){A=Jkp(A);for(var k=1;k<arguments.length;k++){var d=arguments[k];if(d)for(var W in d)Ds(d,W)&&(A[W]=d[W])}return A};
Pp("Object.assign",function(A){return A||gZw});
var SK=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},bNA=function(A){if(A.isRunning_)throw new TypeError("f");
A.isRunning_=!0};
SK.prototype.JSC$9025_next_=function(A){this.yieldResult=A};
var LG1=function(A,H){A.abruptCompletion_={exception:H,isException:!0};A.nextAddress=A.catchAddress_||A.finallyAddress_};
SK.prototype.return=function(A){this.abruptCompletion_={return:A};this.nextAddress=this.finallyAddress_};
SK.prototype.yield=function(A,H){this.nextAddress=H;return{value:A}};
SK.prototype.jumpTo=function(A){this.nextAddress=A};
_.EN=function(A){A.nextAddress=0};
_.S_=function(A,H,k){A.catchAddress_=H;k!=void 0&&(A.finallyAddress_=k)};
_.pV=function(A,H){A.catchAddress_=0;A.finallyAddress_=H||0};
_.QN=function(A,H,k){A.nextAddress=H;A.catchAddress_=k||0};
_.VA=function(A,H){A.catchAddress_=H||0;H=A.abruptCompletion_.exception;A.abruptCompletion_=null;return H};
_.KV=function(A,H,k,d){d?A.finallyContexts_[d]=A.abruptCompletion_:A.finallyContexts_=[A.abruptCompletion_];A.catchAddress_=H||0;A.finallyAddress_=k||0};
_.QA=function(A,H,k){k=A.finallyContexts_.splice(k||0)[0];(k=A.abruptCompletion_=A.abruptCompletion_||k)?k.isException?A.nextAddress=A.catchAddress_||A.finallyAddress_:k.jumpTo!=void 0&&A.finallyAddress_<k.jumpTo?(A.nextAddress=k.jumpTo,A.abruptCompletion_=null):A.nextAddress=A.finallyAddress_:A.nextAddress=H};
vZw=function(A){this.JSC$9030_context_=new SK;this.program_=A};
jpk=function(A,H){bNA(A.JSC$9030_context_);var k=A.JSC$9030_context_.yieldAllIterator_;if(k)return ykw(A,"return"in k?k["return"]:function(d){return{value:d,done:!0}},H,A.JSC$9030_context_.return);
A.JSC$9030_context_.return(H);return C6(A)};
ykw=function(A,H,k,d){try{var W=H.call(A.JSC$9030_context_.yieldAllIterator_,k);if(!(W instanceof Object))throw new TypeError("e`"+W);if(!W.done)return A.JSC$9030_context_.isRunning_=!1,W;var z=W.value}catch(u){return A.JSC$9030_context_.yieldAllIterator_=null,LG1(A.JSC$9030_context_,u),C6(A)}A.JSC$9030_context_.yieldAllIterator_=null;d.call(A.JSC$9030_context_,z);return C6(A)};
C6=function(A){for(;A.JSC$9030_context_.nextAddress;)try{var H=A.program_(A.JSC$9030_context_);if(H)return A.JSC$9030_context_.isRunning_=!1,{value:H.value,done:!1}}catch(k){A.JSC$9030_context_.yieldResult=void 0,LG1(A.JSC$9030_context_,k)}A.JSC$9030_context_.isRunning_=!1;if(A.JSC$9030_context_.abruptCompletion_){H=A.JSC$9030_context_.abruptCompletion_;A.JSC$9030_context_.abruptCompletion_=null;if(H.isException)throw H.exception;return{value:H.return,done:!0}}return{value:void 0,done:!0}};
I1k=function(A){this.next=function(H){bNA(A.JSC$9030_context_);A.JSC$9030_context_.yieldAllIterator_?H=ykw(A,A.JSC$9030_context_.yieldAllIterator_.next,H,A.JSC$9030_context_.JSC$9025_next_):(A.JSC$9030_context_.JSC$9025_next_(H),H=C6(A));return H};
this.throw=function(H){bNA(A.JSC$9030_context_);A.JSC$9030_context_.yieldAllIterator_?H=ykw(A,A.JSC$9030_context_.yieldAllIterator_["throw"],H,A.JSC$9030_context_.JSC$9025_next_):(LG1(A.JSC$9030_context_,H),H=C6(A));return H};
this.return=function(H){return jpk(A,H)};
this[Symbol.iterator]=function(){return this}};
_.fw=function(A,H){H=new I1k(new vZw(H));Gs&&A.prototype&&Gs(H,A.prototype);return H};
YwQ=function(A){function H(d){return A.next(d)}
function k(d){return A.throw(d)}
return new Promise(function(d,W){function z(u){u.done?d(u.value):Promise.resolve(u.value).then(H,k).then(z,W)}
z(A.next())})};
_.e=function(A){return YwQ(new I1k(new vZw(A)))};
Pp("Symbol",function(A){if(A)return A;var H=function(z,u){this.$jscomp$symbol$id_=z;rki(this,"description",{configurable:!0,writable:!0,value:u})};
H.prototype.toString=function(){return this.$jscomp$symbol$id_};
var k="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,W=function(z){if(this instanceof W)throw new TypeError("g");return new H(k+(z||"")+"_"+d++,z)};
return W});
Pp("Symbol.iterator",function(A){if(A)return A;A=Symbol("h");rki(Array.prototype,A,{configurable:!0,writable:!0,value:function(){return PJw(mQG(this))}});
return A});
Pp("Symbol.asyncIterator",function(A){return A?A:Symbol("i")});
PJw=function(A){A={next:A};A[Symbol.iterator]=function(){return this};
return A};
_.CV=function(A){var H=A[Symbol.asyncIterator];return H!==void 0?H.call(A):new G0i(_.r(A))};
G0i=function(A){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return A};
this.next=function(H){return Promise.resolve(A.next(H))};
this["throw"]=function(H){return new Promise(function(k,d){var W=A["throw"];W!==void 0?k(W.call(A,H)):(k=A["return"],k!==void 0&&k.call(A),d(new TypeError("j")))})};
A["return"]!==void 0&&(this["return"]=function(H){return Promise.resolve(A["return"](H))})};
_.o7=function(){for(var A=Number(this),H=[],k=A;k<arguments.length;k++)H[k-A]=arguments[k];return H};
_.wy=function(A){return A};
Pp("globalThis",function(A){return A||_.nP});
Pp("Reflect",function(A){return A?A:{}});
Pp("Reflect.construct",function(){return iNJ});
Pp("Reflect.setPrototypeOf",function(A){return A?A:Gs?function(H,k){try{return Gs(H,k),!0}catch(d){return!1}}:null});
Pp("Promise",function(A){function H(){this.batch_=null}
function k(u){return u instanceof W?u:new W(function(B){B(u)})}
if(A&&(typeof _.nP.PromiseRejectionEvent!=="undefined"||!_.nP.Promise||_.nP.Promise.toString().indexOf("[native code]")===-1))return A;H.prototype.asyncExecute=function(u){if(this.batch_==null){this.batch_=[];var B=this;this.asyncExecuteFunction(function(){B.executeBatch_()})}this.batch_.push(u)};
var d=_.nP.setTimeout;H.prototype.asyncExecuteFunction=function(u){d(u,0)};
H.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var u=this.batch_;this.batch_=[];for(var B=0;B<u.length;++B){var h=u[B];u[B]=null;try{h()}catch(O){this.asyncThrow_(O)}}}this.batch_=null};
H.prototype.asyncThrow_=function(u){this.asyncExecuteFunction(function(){throw u;})};
var W=function(u){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var B=this.createResolveAndReject_();try{u(B.resolve,B.reject)}catch(h){B.reject(h)}};
W.prototype.createResolveAndReject_=function(){function u(O){return function(T){h||(h=!0,O.call(B,T))}}
var B=this,h=!1;return{resolve:u(this.resolveTo_),reject:u(this.JSC$9062_reject_)}};
W.prototype.resolveTo_=function(u){if(u===this)this.JSC$9062_reject_(new TypeError("n"));else if(u instanceof W)this.settleSameAsPromise_(u);else{a:switch(typeof u){case "object":var B=u!=null;break a;case "function":B=!0;break a;default:B=!1}B?this.resolveToNonPromiseObj_(u):this.fulfill_(u)}};
W.prototype.resolveToNonPromiseObj_=function(u){var B=void 0;try{B=u.then}catch(h){this.JSC$9062_reject_(h);return}typeof B=="function"?this.settleSameAsThenable_(B,u):this.fulfill_(u)};
W.prototype.JSC$9062_reject_=function(u){this.settle_(2,u)};
W.prototype.fulfill_=function(u){this.settle_(1,u)};
W.prototype.settle_=function(u,B){if(this.state_!=0)throw Error("o`"+u+"`"+B+"`"+this.state_);this.state_=u;this.result_=B;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
W.prototype.scheduleUnhandledRejectionCheck_=function(){var u=this;d(function(){if(u.notifyUnhandledRejection_()){var B=_.nP.console;typeof B!=="undefined"&&B.error(u.result_)}},1)};
W.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var u=_.nP.CustomEvent,B=_.nP.Event,h=_.nP.dispatchEvent;if(typeof h==="undefined")return!0;typeof u==="function"?u=new u("unhandledrejection",{cancelable:!0}):typeof B==="function"?u=new B("unhandledrejection",{cancelable:!0}):(u=_.nP.document.createEvent("CustomEvent"),u.initCustomEvent("unhandledrejection",!1,!0,u));u.promise=this;u.reason=this.result_;return h(u)};
W.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 H;W.prototype.settleSameAsPromise_=function(u){var B=this.createResolveAndReject_();u.callWhenSettled_(B.resolve,B.reject)};
W.prototype.settleSameAsThenable_=function(u,B){var h=this.createResolveAndReject_();try{u.call(B,h.resolve,h.reject)}catch(O){h.reject(O)}};
W.prototype.then=function(u,B){function h(J,g){return typeof J=="function"?function(v){try{O(J(v))}catch(y){T(y)}}:g}
var O,T,m=new W(function(J,g){O=J;T=g});
this.callWhenSettled_(h(u,O),h(B,T));return m};
W.prototype.catch=function(u){return this.then(void 0,u)};
W.prototype.callWhenSettled_=function(u,B){function h(){switch(O.state_){case 1:u(O.result_);break;case 2:B(O.result_);break;default:throw Error("p`"+O.state_);}}
var O=this;this.onSettledCallbacks_==null?z.asyncExecute(h):this.onSettledCallbacks_.push(h);this.isRejectionHandled_=!0};
W.resolve=k;W.reject=function(u){return new W(function(B,h){h(u)})};
W.race=function(u){return new W(function(B,h){for(var O=_.r(u),T=O.next();!T.done;T=O.next())k(T.value).callWhenSettled_(B,h)})};
W.all=function(u){var B=_.r(u),h=B.next();return h.done?k([]):new W(function(O,T){function m(v){return function(y){J[v]=y;g--;g==0&&O(J)}}
var J=[],g=0;do J.push(void 0),g++,k(h.value).callWhenSettled_(m(J.length-1),T),h=B.next();while(!h.done)})};
return W});
var K6=function(A,H,k){if(A==null)throw new TypeError("q`"+k);if(H instanceof RegExp)throw new TypeError("r`"+k);return A+""};
Pp("String.prototype.startsWith",function(A){return A?A:function(H,k){var d=K6(this,H,"startsWith"),W=d.length,z=H.length;k=Math.max(0,Math.min(k|0,d.length));for(var u=0;u<z&&k<W;)if(d[k++]!=H[u++])return!1;return u>=z}});
Pp("Object.setPrototypeOf",function(A){return A||Gs});
Pp("Symbol.dispose",function(A){return A?A:Symbol("s")});
Pp("SuppressedError",function(A){function H(k,d,W){if(!(this instanceof H))return new H(k,d,W);W=Error(W);"stack"in W&&(this.stack=W.stack);this.message=W.message;this.error=k;this.suppressed=d}
if(A)return A;_.I(H,Error);H.prototype.name="SuppressedError";return H});
Pp("Array.from",function(A){return A?A:function(H,k,d){k=k!=null?k:function(B){return B};
var W=[],z=typeof Symbol!="undefined"&&Symbol.iterator&&H[Symbol.iterator];if(typeof z=="function"){H=z.call(H);for(var u=0;!(z=H.next()).done;)W.push(k.call(d,z.value,u++))}else for(z=H.length,u=0;u<z;u++)W.push(k.call(d,H[u],u));return W}});
var FGJ=function(A,H,k){A instanceof String&&(A=String(A));for(var d=A.length,W=0;W<d;W++){var z=A[W];if(H.call(k,z,W,A))return{i:W,v:z}}return{i:-1,v:void 0}};
Pp("Array.prototype.find",function(A){return A?A:function(H,k){return FGJ(this,H,k).v}});
Pp("WeakMap",function(A){function H(){}
function k(h){var O=typeof h;return O==="object"&&h!==null||O==="function"}
function d(h){if(!Ds(h,z)){var O=new H;rki(h,z,{value:O})}}
function W(h){var O=Object[h];O&&(Object[h]=function(T){if(T instanceof H)return T;Object.isExtensible(T)&&d(T);return O(T)})}
if(function(){if(!A||!Object.seal)return!1;try{var h=Object.seal({}),O=Object.seal({}),T=new A([[h,2],[O,3]]);if(T.get(h)!=2||T.get(O)!=3)return!1;T.delete(h);T.set(O,4);return!T.has(h)&&T.get(O)==4}catch(m){return!1}}())return A;
var z="$jscomp_hidden_"+Math.random();W("freeze");W("preventExtensions");W("seal");var u=0,B=function(h){this.JSC$9070_id_=(u+=Math.random()+1).toString();if(h){h=_.r(h);for(var O;!(O=h.next()).done;)O=O.value,this.set(O[0],O[1])}};
B.prototype.set=function(h,O){if(!k(h))throw Error("t");d(h);if(!Ds(h,z))throw Error("u`"+h);h[z][this.JSC$9070_id_]=O;return this};
B.prototype.get=function(h){return k(h)&&Ds(h,z)?h[z][this.JSC$9070_id_]:void 0};
B.prototype.has=function(h){return k(h)&&Ds(h,z)&&Ds(h[z],this.JSC$9070_id_)};
B.prototype.delete=function(h){return k(h)&&Ds(h,z)&&Ds(h[z],this.JSC$9070_id_)?delete h[z][this.JSC$9070_id_]:!1};
return B});
Pp("Map",function(A){if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var B=Object.seal({x:4}),h=new A(_.r([[B,"s"]]));if(h.get(B)!="s"||h.size!=1||h.get({x:4})||h.set({x:4},"t")!=h||h.size!=2)return!1;var O=h.entries(),T=O.next();if(T.done||T.value[0]!=B||T.value[1]!="s")return!1;T=O.next();return T.done||T.value[0].x!=4||T.value[1]!="t"||!O.next().done?!1:!0}catch(m){return!1}}())return A;
var H=new WeakMap,k=function(B){this[0]={};this[1]=z();this.size=0;if(B){B=_.r(B);for(var h;!(h=B.next()).done;)h=h.value,this.set(h[0],h[1])}};
k.prototype.set=function(B,h){B=B===0?0:B;var O=d(this,B);O.list||(O.list=this[0][O.id]=[]);O.entry?O.entry.value=h:(O.entry={next:this[1],previous:this[1].previous,head:this[1],key:B,value:h},O.list.push(O.entry),this[1].previous.next=O.entry,this[1].previous=O.entry,this.size++);return this};
k.prototype.delete=function(B){B=d(this,B);return B.entry&&B.list?(B.list.splice(B.index,1),B.list.length||delete this[0][B.id],B.entry.previous.next=B.entry.next,B.entry.next.previous=B.entry.previous,B.entry.head=null,this.size--,!0):!1};
k.prototype.clear=function(){this[0]={};this[1]=this[1].previous=z();this.size=0};
k.prototype.has=function(B){return!!d(this,B).entry};
k.prototype.get=function(B){return(B=d(this,B).entry)&&B.value};
k.prototype.entries=function(){return W(this,function(B){return[B.key,B.value]})};
k.prototype.keys=function(){return W(this,function(B){return B.key})};
k.prototype.values=function(){return W(this,function(B){return B.value})};
k.prototype.forEach=function(B,h){for(var O=this.entries(),T;!(T=O.next()).done;)T=T.value,B.call(h,T[1],T[0],this)};
k.prototype[Symbol.iterator]=k.prototype.entries;var d=function(B,h){var O=h&&typeof h;O=="object"||O=="function"?H.has(h)?O=H.get(h):(O=""+ ++u,H.set(h,O)):O="p_"+h;var T=B[0][O];if(T&&Ds(B[0],O))for(B=0;B<T.length;B++){var m=T[B];if(h!==h&&m.key!==m.key||h===m.key)return{id:O,list:T,index:B,entry:m}}return{id:O,list:T,index:-1,entry:void 0}},W=function(B,h){var O=B[1];
return PJw(function(){if(O){for(;O.head!=B[1];)O=O.previous;for(;O.next!=O.head;)return O=O.next,{done:!1,value:h(O)};O=null}return{done:!0,value:void 0}})},z=function(){var B={};
return B.previous=B.next=B.head=B},u=0;
return k});
Pp("Set",function(A){if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),d=new A(_.r([k]));if(!d.has(k)||d.size!=1||d.add(k)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var W=d.entries(),z=W.next();if(z.done||z.value[0]!=k||z.value[1]!=k)return!1;z=W.next();return z.done||z.value[0]==k||z.value[0].x!=4||z.value[1]!=z.value[0]?!1:W.next().done}catch(u){return!1}}())return A;
var H=function(k){this.JSC$9084_map_=new Map;if(k){k=_.r(k);for(var d;!(d=k.next()).done;)this.add(d.value)}this.size=this.JSC$9084_map_.size};
H.prototype.add=function(k){k=k===0?0:k;this.JSC$9084_map_.set(k,k);this.size=this.JSC$9084_map_.size;return this};
H.prototype.delete=function(k){k=this.JSC$9084_map_.delete(k);this.size=this.JSC$9084_map_.size;return k};
H.prototype.clear=function(){this.JSC$9084_map_.clear();this.size=0};
H.prototype.has=function(k){return this.JSC$9084_map_.has(k)};
H.prototype.entries=function(){return this.JSC$9084_map_.entries()};
H.prototype.values=function(){return this.JSC$9084_map_.values()};
H.prototype.keys=H.prototype.values;H.prototype[Symbol.iterator]=H.prototype.values;H.prototype.forEach=function(k,d){var W=this;this.JSC$9084_map_.forEach(function(z){return k.call(d,z,z,W)})};
return H});
Pp("Math.log2",function(A){return A?A:function(H){return Math.log(H)/Math.LN2}});
Pp("Object.values",function(A){return A?A:function(H){var k=[],d;for(d in H)Ds(H,d)&&k.push(H[d]);return k}});
Pp("Object.is",function(A){return A?A:function(H,k){return H===k?H!==0||1/H===1/k:H!==H&&k!==k}});
Pp("Array.prototype.includes",function(A){return A?A:function(H,k){var d=this;d instanceof String&&(d=String(d));var W=d.length;k=k||0;for(k<0&&(k=Math.max(k+W,0));k<W;k++){var z=d[k];if(z===H||Object.is(z,H))return!0}return!1}});
Pp("String.prototype.includes",function(A){return A?A:function(H,k){return K6(this,H,"includes").indexOf(H,k||0)!==-1}});
Pp("Object.entries",function(A){return A?A:function(H){var k=[],d;for(d in H)Ds(H,d)&&k.push([d,H[d]]);return k}});
Pp("Number.isFinite",function(A){return A?A:function(H){return typeof H!=="number"?!1:!isNaN(H)&&H!==Infinity&&H!==-Infinity}});
Pp("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Pp("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Pp("Number.isInteger",function(A){return A?A:function(H){return Number.isFinite(H)?H===Math.floor(H):!1}});
Pp("Number.isSafeInteger",function(A){return A?A:function(H){return Number.isInteger(H)&&Math.abs(H)<=Number.MAX_SAFE_INTEGER}});
Pp("String.prototype.endsWith",function(A){return A?A:function(H,k){var d=K6(this,H,"endsWith");k===void 0&&(k=d.length);k=Math.max(0,Math.min(k|0,d.length));for(var W=H.length;W>0&&k>0;)if(d[--k]!=H[--W])return!1;return W<=0}});
var XjJ=function(A,H){A instanceof String&&(A+="");var k=0,d=!1,W={next:function(){if(!d&&k<A.length){var z=k++;return{value:H(z,A[z]),done:!1}}d=!0;return{done:!0,value:void 0}}};
W[Symbol.iterator]=function(){return W};
return W};
Pp("Array.prototype.entries",function(A){return A?A:function(){return XjJ(this,function(H,k){return[H,k]})}});
Pp("Math.trunc",function(A){return A?A:function(H){H=Number(H);if(isNaN(H)||H===Infinity||H===-Infinity||H===0)return H;var k=Math.floor(Math.abs(H));return H<0?-k:k}});
Pp("Number.isNaN",function(A){return A?A:function(H){return typeof H==="number"&&isNaN(H)}});
Pp("Array.prototype.keys",function(A){return A?A:function(){return XjJ(this,function(H){return H})}});
Pp("Array.prototype.values",function(A){return A?A:function(){return XjJ(this,function(H,k){return k})}});
Pp("Array.prototype.fill",function(A){return A?A:function(H,k,d){var W=this.length||0;k<0&&(k=Math.max(0,W+k));if(d==null||d>W)d=W;d=Number(d);d<0&&(d=Math.max(0,W+d));for(k=Number(k||0);k<d;k++)this[k]=H;return this}});
xQw("fill",function(A){return A?A:Array.prototype.fill});
Pp("Object.fromEntries",function(A){return A?A:function(H){var k={};if(!(Symbol.iterator in H))throw new TypeError("v`"+H);H=H[Symbol.iterator].call(H);for(var d=H.next();!d.done;d=H.next()){d=d.value;if(Object(d)!==d)throw new TypeError("w");k[d[0]]=d[1]}return k}});
Pp("String.prototype.replaceAll",function(A){return A?A:function(H,k){if(H instanceof RegExp&&!H.global)throw new TypeError("x");return H instanceof RegExp?this.replace(H,k):this.replace(new RegExp(String(H).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),k)}});
Pp("Object.getOwnPropertySymbols",function(A){return A?A:function(){return[]}});
Pp("String.prototype.repeat",function(A){return A?A:function(H){var k=K6(this,null,"repeat");if(H<0||H>1342177279)throw new RangeError("y");H|=0;for(var d="";H;)if(H&1&&(d+=k),H>>>=1)k+=k;return d}});
Pp("Array.prototype.findIndex",function(A){return A?A:function(H,k){return FGJ(this,H,k).i}});
Pp("Array.prototype.flatMap",function(A){return A?A:function(H,k){var d=[];Array.prototype.forEach.call(this,function(W,z){W=H.call(k,W,z,this);Array.isArray(W)?d.push.apply(d,W):d.push(W)});
return d}});
Pp("String.prototype.codePointAt",function(A){return A?A:function(H){var k=K6(this,null,"codePointAt"),d=k.length;H=Number(H)||0;if(H>=0&&H<d){H|=0;var W=k.charCodeAt(H);if(W<55296||W>56319||H+1===d)return W;H=k.charCodeAt(H+1);return H<56320||H>57343?W:(W-55296)*1024+H+9216}}});
Pp("String.fromCodePoint",function(A){return A?A:function(H){for(var k="",d=0;d<arguments.length;d++){var W=Number(arguments[d]);if(W<0||W>1114111||W!==Math.floor(W))throw new RangeError("z`"+W);W<=65535?k+=String.fromCharCode(W):(W-=65536,k+=String.fromCharCode(W>>>10&1023|55296),k+=String.fromCharCode(W&1023|56320))}return k}});
Pp("String.prototype.trimLeft",function(A){function H(){return this.replace(/^[\s\xa0]+/,"")}
return A||H});
Pp("String.prototype.trimStart",function(A){return A||String.prototype.trimLeft});
Pp("String.prototype.padStart",function(A){return A?A:function(H,k){var d=K6(this,null,"padStart");H-=d.length;k=k!==void 0?String(k):" ";return(H>0&&k?k.repeat(Math.ceil(H/k.length)).substring(0,H):"")+d}});
Pp("Promise.prototype.finally",function(A){return A?A:function(H){return this.then(function(k){return Promise.resolve(H()).then(function(){return k})},function(k){return Promise.resolve(H()).then(function(){throw k;
})})}});
Pp("Math.imul",function(A){return A?A:function(H,k){H=Number(H);k=Number(k);var d=H&65535,W=k&65535;return d*W+((H>>>16&65535)*W+d*(k>>>16&65535)<<16>>>0)|0}});
Pp("Object.hasOwn",function(A){return A?A:function(H,k){return Object.prototype.hasOwnProperty.call(H,k)}});
var DQw=function(A){A=Math.trunc(A)||0;A<0&&(A+=this.length);if(!(A<0||A>=this.length))return this[A]};
Pp("Array.prototype.at",function(A){return A?A:DQw});
xQw("at",function(A){return A?A:DQw});
Pp("String.prototype.at",function(A){return A?A:DQw});
Pp("Math.sign",function(A){return A?A:function(H){H=Number(H);return H===0||isNaN(H)?H:H>0?1:-1}});
Pp("Array.prototype.flat",function(A){return A?A:function(H){H=H===void 0?1:H;var k=[];Array.prototype.forEach.call(this,function(d){Array.isArray(d)&&H>0?(d=Array.prototype.flat.call(d,H-1),k.push.apply(k,d)):k.push(d)});
return k}});
Pp("String.raw",function(A){return A?A:function(H,k){H=Jkp(H);for(var d=H.raw,W=d.length,z="",u=0;u<W;++u)z+=d[u],u+1<W&&u+1<arguments.length&&(z+=String(arguments[u+1]));return z}});
Pp("WeakSet",function(A){if(function(){if(!A||!Object.seal)return!1;try{var k=Object.seal({}),d=Object.seal({}),W=new A([k]);if(!W.has(k)||W.has(d))return!1;W.delete(k);W.add(d);return!W.has(k)&&W.has(d)}catch(z){return!1}}())return A;
var H=function(k){this.JSC$9099_map_=new WeakMap;if(k){k=_.r(k);for(var d;!(d=k.next()).done;)this.add(d.value)}};
H.prototype.add=function(k){this.JSC$9099_map_.set(k,!0);return this};
H.prototype.has=function(k){return this.JSC$9099_map_.has(k)};
H.prototype.delete=function(k){return this.JSC$9099_map_.delete(k)};
return H});
Pp("Reflect.ownKeys",function(A){return A?A:function(H){var k=[],d=Object.getOwnPropertyNames(H);H=Object.getOwnPropertySymbols(H);for(var W=0;W<d.length;W++)(d[W].substring(0,14)=="jscomp_symbol_"?H:k).push(d[W]);return k.concat(H)}});
Pp("Object.getOwnPropertyDescriptors",function(A){return A?A:function(H){for(var k={},d=Reflect.ownKeys(H),W=0;W<d.length;W++)k[d[W]]=Object.getOwnPropertyDescriptor(H,d[W]);return k}});
Pp("Promise.allSettled",function(A){function H(d){return{status:"fulfilled",value:d}}
function k(d){return{status:"rejected",reason:d}}
return A?A:function(d){var W=this;d=Array.from(d,function(z){return W.resolve(z).then(H,k)});
return W.all(d)}});
Pp("Number.parseInt",function(A){return A||parseInt});
var SwA=function(A,H,k){A instanceof String&&(A=String(A));for(var d=A.length-1;d>=0;d--){var W=A[d];if(H.call(k,W,d,A))return{i:d,v:W}}return{i:-1,v:void 0}};
Pp("Array.prototype.findLastIndex",function(A){return A?A:function(H,k){return SwA(this,H,k).i}});
xQw("findLastIndex",function(A){return A?A:function(H,k){return SwA(this,H,k).i}});
_._DumpException=window._DumpException||function(A){throw A;};
window._DumpException=_._DumpException;var CJk=window.ytcsi;CJk&&typeof CJk.tick==="function"&&CJk.tick("rses_dpj");var KGN,aL,cp,p6,a1A,cki,pjj,QpA,cR,VAG;KGN=KGN||{};_.k8=this||self;_.nG=function(A,H,k){A=A.split(".");k=k||_.k8;for(var d;A.length&&(d=A.shift());)A.length||H===void 0?k[d]&&k[d]!==Object.prototype[d]?k=k[d]:k=k[d]={}:k[d]=H};
aL=function(A,H){var k=_.UD("WIZ_global_data.oxN3nb");A=k&&k[A];return A!=null?A:H};
cp=_.k8._F_toggles_default_kevlar_base||[];p6=function(){};
p6.get=function(){return null};
_.$J=null;_.UD=function(A,H){A=A.split(".");H=H||_.k8;for(var k=0;k<A.length;k++)if(H=H[A[k]],H==null)return null;return H};
_.Qj=function(A){A.instance_=void 0;A.getInstance=function(){return A.instance_?A.instance_:A.instance_=new A}};
_.dL=function(A){var H=typeof A;return H!="object"?H:A?Array.isArray(A)?"array":H:"null"};
_.Nv=function(A){var H=_.dL(A);return H=="array"||H=="object"&&typeof A.length=="number"};
_.nl=function(A){var H=typeof A;return H=="object"&&A!=null||H=="function"};
_.fl=function(A){return Object.prototype.hasOwnProperty.call(A,a1A)&&A[a1A]||(A[a1A]=++cki)};
a1A="closure_uid_"+(Math.random()*1E9>>>0);cki=0;pjj=function(A,H,k){return A.call.apply(A.bind,arguments)};
QpA=function(A,H,k){if(!A)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var W=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(W,d);return A.apply(H,W)}}return function(){return A.apply(H,arguments)}};
_.WT=function(A,H,k){_.WT=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?pjj:QpA;return _.WT.apply(null,arguments)};
_.H0=function(A,H){var k=Array.prototype.slice.call(arguments,1);return function(){var d=k.slice();d.push.apply(d,arguments);return A.apply(this,d)}};
_.Vj=function(){return Date.now()};
cR=function(A){return A};
_.EK=function(A,H){function k(){}
k.prototype=H.prototype;A.superClass_=H.prototype;A.prototype=new k;A.prototype.constructor=A;A.base=function(d,W,z){for(var u=Array(arguments.length-2),B=2;B<arguments.length;B++)u[B-2]=arguments[B];return H.prototype[W].apply(d,u)}};
VAG=function(A){return A};var EZi,UQQ;_.E=function(A,H,k,d){var W=arguments.length,z=W<3?H:d===null?d=Object.getOwnPropertyDescriptor(H,k):d,u;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")z=Reflect.decorate(A,H,k,d);else for(var B=A.length-1;B>=0;B--)if(u=A[B])z=(W<3?u(z):W>3?u(H,k,z):u(H,k))||z;W>3&&z&&Object.defineProperty(H,k,z)};
_.l=function(A,H){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(A,H)};
EZi=function(A,H){if(H!==null&&H!==void 0){if(typeof H!=="object"&&typeof H!=="function")throw new TypeError("B");if(k===void 0){if(!Symbol.dispose)throw new TypeError("D");var k=H[Symbol.dispose]}if(typeof k!=="function")throw new TypeError("E");A.stack.push({value:H,dispose:k,async:!1})}return H};
UQQ=function(A){function H(z){A.error=A.hasError?new SuppressedError(z,A.error,"An error was suppressed during disposal."):z;A.hasError=!0}
function k(){for(;d=A.stack.pop();)try{if(!d.async&&W===1)return W=0,A.stack.push(d),Promise.resolve().then(k);if(d.dispose){var z=d.dispose.call(d.value);if(d.async)return W|=2,Promise.resolve(z).then(k,function(u){H(u);return k()})}else W|=1}catch(u){H(u)}if(W===1)return A.hasError?Promise.reject(A.error):Promise.resolve();
if(A.hasError)throw A.error;}
var d,W=0;k()};var l1Z="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(" ");AAr()&&l1Z.push("details:not(:has(summary))");var sbI=l1Z.join(",");_.EK(_.AA,Error);_.AA.prototype.name="CustomError";var tAp;var Nwi=void 0,MAw,nZA=typeof TextDecoder!=="undefined",emr,BIW=typeof String.prototype.isWellFormed==="function",uXf=typeof TextEncoder!=="undefined";var Rb=String.prototype.trim?function(A){return A.trim()}:function(A){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(A)[1]},ZNA=/&/g,f1G=/</g,wjw=/>/g,oZA=/"/g,$QJ=/'/g,AV0=/\x00/g,HLw=/[\x00&<>"']/;var UK=!!(cp[0]>>17&1),lA=!!(cp[0]&4096),s_Z=!!(cp[0]>>18&1),keJ=!!(cp[0]&8),diA=!!(cp[0]&2),WBi=!!(cp[0]&4),zMZ=!!(cp[0]&16),qBk=!!(cp[0]&256),rVw=!!(cp[0]&32),uG0=!!(cp[0]&1024);var BLj,Ll,eMw,xiw,iLJ,tkQ,DiI;BLj=aL(1,!0);Ll=UK?s_Z:aL(610401301,!1);eMw=UK?lA||!keJ:aL(772657768,!0);xiw=UK?diA:aL(513659523,!1);iLJ=UK?lA||!WBi:aL(568333945,!0);tkQ=UK?zMZ:aL(1331761403,!1);DiI=UK?lA||!qBk:aL(748402147,!0);_.td=UK?lA||!rVw:aL(824648567,!0);_.hV=UK?lA||!uG0:aL(824656860,BLj);var vV,hMQ=_.k8.navigator;vV=hMQ?hMQ.userAgentData||null:null;var Vv;_.ab=function(A,H){return Array.prototype.indexOf.call(A,H,void 0)};
_.t3=function(A,H,k){Array.prototype.forEach.call(A,H,k)};
_.Ne=function(A,H,k){return Array.prototype.filter.call(A,H,k)};
_.hj=function(A,H,k){return Array.prototype.map.call(A,H,k)};
Vv=function(A,H,k){return Array.prototype.some.call(A,H,k)};
_.XbX=function(A,H,k){return Array.prototype.every.call(A,H,k)};var Me=function(A){Me[" "](A);return A};
Me[" "]=function(){};
var odV=function(A,H){try{return Me(A[H]),!0}catch(k){}return!1},ghV=function(A,H,k,d){d=d?d(H):H;
return Object.prototype.hasOwnProperty.call(A,d)?A[d]:A[d]=k(H)};var OLN,N4,RM0,TLw,JVw,g11,Ulb,bLG,LBA,v1G,jUN,j_A,I3w,FBA,XRG,DiJ;_.MzA=function(){return _.k8.navigator||null};
OLN=RmW();_.n6=TIX();N4=yW("Edge");RM0=N4||_.n6;_.s3=yW("Gecko")&&!(_.OC(_.bI(),"WebKit")&&!yW("Edge"))&&!(yW("Trident")||yW("MSIE"))&&!yW("Edge");_.HN=_.OC(_.bI(),"WebKit")&&!yW("Edge");TLw=_.HN&&yW("Mobile");_.mi1=_.IQQ();JVw=_.YCC();g11=(FX()?vV.platform==="Linux":yW("Linux"))||_.PIb();Ulb=_.yAQ();bLG=jb8();LBA=yW("iPad");v1G=yW("iPod");_.yVN=_.XX();jUN=_.OC(_.bI(),"KaiOS");j_A=function(){var A=_.k8.document;return A?A.documentMode:void 0};
a:{var YBQ="",PQw=function(){var A=_.bI();if(_.s3)return/rv:([^\);]+)(\)|;)/.exec(A);if(N4)return/Edge\/([\d\.]+)/.exec(A);if(_.n6)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(A);if(_.HN)return/WebKit\/(\S+)/.exec(A);if(OLN)return/(?:Version)[ \/]?(\S+)/.exec(A)}();
PQw&&(YBQ=PQw?PQw[1]:"");if(_.n6){var GeZ=j_A();if(GeZ!=null&&GeZ>parseFloat(YBQ)){I3w=String(GeZ);break a}}I3w=YBQ}FBA=I3w;XRG={};_.Zs=function(A){return ghV(XRG,A,function(){return _.JA(FBA,A)>=0})};
if(_.k8.document&&_.n6){var SBZ=j_A();DiJ=SBZ?SBZ:parseInt(FBA,10)||void 0}else DiJ=void 0;_.CQp=DiJ;var Iub,YAQ,KBw;_.f6=PV();Iub=jb8()||yW("iPod");YAQ=yW("iPad");KBw=_.g8N();_.wK=Gf();_.Dq=_.JAC()&&!_.XX();var VNV={},Hj=null,ggQ=_.s3||_.HN||typeof _.k8.btoa=="function";var k0W=typeof Uint8Array!=="undefined",MNv=!_.n6&&typeof btoa==="function",n88=/[-_.]/g,tNW={"-":"+",_:"/",".":"="},XA={};var FA,cVw;FA=function(A,H){if(H!==XA)throw Error("K");this.JSC$9133_value_=A;if(A!=null&&A.length===0)throw Error("J");};
_.D1=function(){return a3w||(a3w=new FA(null,XA))};
cVw=function(A){return new Uint8Array(HxI(A)||0)};
FA.prototype.isEmpty=function(){return this.JSC$9133_value_==null};
FA.prototype.sizeBytes=function(){var A=HxI(this);return A?A.length:0};
var HxI=function(A){if(XA!==XA)throw Error("K");var H=A.JSC$9133_value_;H==null||k0W&&H!=null&&H instanceof Uint8Array||(typeof H==="string"?H=ZlA(H):(_.dL(H),H=null));return H==null?H:A.JSC$9133_value_=H},a3w;var wVV=void 0;var z0=typeof Symbol==="function"&&typeof Symbol()==="symbol",pRN=Wj("jas",void 0,!0),wjm=Wj(void 0,"0di"),um=Wj(void 0,"1oa"),pL=Wj(void 0,Symbol()),iLI=Wj(void 0,"0ub"),OLl=Wj(void 0,"0ubs"),cGm=Wj(void 0,"0ubsb"),CQb=Wj(void 0,"0actk"),D3=Wj("m_m","messagePrototypeMarker",!0),I3I=Wj(void 0,"vps"),BLV=Wj();var Akm,$vQ,wL,Q_1;Akm={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};$vQ=Object.defineProperties;_.qQ=z0?pRN:"internalArrayState";Q_1=[];iJ(Q_1,7);wL=Object.freeze(Q_1);var SI={},YZ={},VIi=function(A,H,k){this.iterable=A;this.mapper=H;this.thisArg=k};
VIi.prototype.next=function(){var A=this.iterable.next();A.done||(A.value=this.mapper.call(this.thisArg,A.value));return A};
VIi.prototype[Symbol.iterator]=function(){return this};
var E1i=Object.freeze({}),CN={};var zwm=void 0,qwl=ap(function(A){return A!==null&&A!==void 0});var xQC=ap(function(A){return typeof A==="number"}),ewl=ap(function(A){return typeof A==="string"}),hwC=ap(function(A){return typeof A==="boolean"}),Uiw=ap(function(A){return A!=null&&typeof A==="object"&&typeof A.then==="function"}),LR8=ap(function(A){return typeof A==="function"}),kU=ap(function(A){return!!A&&(typeof A==="object"||typeof A==="function")});var iNI=typeof _.k8.BigInt==="function"&&typeof _.k8.BigInt(0)==="bigint";var l18=ap(function(A){return iNI?A>=l3Z&&A<=tIN:A[0]==="-"?ONN(A,NLN):ONN(A,MIJ)}),NLN=Number.MIN_SAFE_INTEGER.toString(),l3Z=iNI?BigInt(Number.MIN_SAFE_INTEGER):void 0,MIJ=Number.MAX_SAFE_INTEGER.toString(),tIN=iNI?BigInt(Number.MAX_SAFE_INTEGER):void 0;var n1j=typeof Uint8Array.prototype.slice==="function",pN=0,Ew=0,mQr;var mB,vR,WR,bQ,G0W;mB=typeof BigInt==="function"?BigInt.asIntN:void 0;_.y_=typeof BigInt==="function"?BigInt.asUintN:void 0;vR=Number.isSafeInteger;WR=Number.isFinite;bQ=Math.trunc;G0W=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var YBv={};var qBA={},ZLw=function(){try{var A=function(){return iNJ(Map,[],this.constructor)};
_.I(A,Map);Me(new A);return!1}catch(H){return!0}}(),oL=function(){this.JSC$9152_map_=new Map};
_.q=oL.prototype;_.q.get=function(A){return this.JSC$9152_map_.get(A)};
_.q.set=function(A,H){this.JSC$9152_map_.set(A,H);this.size=this.JSC$9152_map_.size;return this};
_.q.delete=function(A){A=this.JSC$9152_map_.delete(A);this.size=this.JSC$9152_map_.size;return A};
_.q.clear=function(){this.JSC$9152_map_.clear();this.size=this.JSC$9152_map_.size};
_.q.has=function(A){return this.JSC$9152_map_.has(A)};
_.q.entries=function(){return this.JSC$9152_map_.entries()};
_.q.keys=function(){return this.JSC$9152_map_.keys()};
_.q.values=function(){return this.JSC$9152_map_.values()};
_.q.forEach=function(A,H){return this.JSC$9152_map_.forEach(A,H)};
oL.prototype[Symbol.iterator]=function(){return this.entries()};
var $c=function(){if(ZLw)return Object.setPrototypeOf(oL.prototype,Map.prototype),Object.defineProperties(oL.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),oL;var A=function(){return iNJ(Map,[],this.constructor)};
_.I(A,Map);return A}(),CL=function(A,H,k,d){k=k===void 0?s_8:k;
d=d===void 0?s_8:d;var W=$c.call(this)||this;W.arrayState=A[_.qQ]|0;W.valueCtor=H;W.keyToApi=k;W.valueToApi=W.valueCtor?diN:d;for(var z=0;z<A.length;z++){var u=A[z],B=k(u[0],!1,!0),h=u[1];H?h===void 0&&(h=null):h=d(u[1],!1,!0,void 0,void 0,W.arrayState);$c.prototype.set.call(W,B,h)}return W};
_.I(CL,$c);var f3w=function(A){if(A.arrayState&2)throw Error("O");},j_N=function(A,H){return LN(Array.from($c.prototype.entries.call(A),H))};
_.q=CL.prototype;_.q.clear=function(){f3w(this);$c.prototype.clear.call(this)};
_.q.delete=function(A){f3w(this);return $c.prototype.delete.call(this,this.keyToApi(A,!0,!1))};
_.q.entries=function(){if(this.valueCtor){var A=$c.prototype.keys.call(this);A=new VIi(A,WBW,this)}else A=$c.prototype.entries.call(this);return A};
_.q.values=function(){if(this.valueCtor){var A=$c.prototype.keys.call(this);A=new VIi(A,CL.prototype.get,this)}else A=$c.prototype.values.call(this);return A};
_.q.forEach=function(A,H){this.valueCtor?$c.prototype.forEach.call(this,function(k,d,W){A.call(H,W.get(d),d,W)}):$c.prototype.forEach.call(this,A,H)};
_.q.set=function(A,H){f3w(this);A=this.keyToApi(A,!0,!1);return A==null?this:H==null?($c.prototype.delete.call(this,A),this):$c.prototype.set.call(this,A,this.valueToApi(H,!0,!0,this.valueCtor,!1,this.arrayState))};
_.q.has=function(A){return $c.prototype.has.call(this,this.keyToApi(A,!1,!1))};
_.q.get=function(A){A=this.keyToApi(A,!1,!1);var H=$c.prototype.get.call(this,A);if(H!==void 0){var k=this.valueCtor;return k?(k=this.valueToApi(H,!1,!0,k,this.callToMutableOnAccess,this.arrayState),k!==H&&$c.prototype.set.call(this,A,k),k):H}};
CL.prototype[Symbol.iterator]=function(){return this.entries()};
CL.prototype.toJSON=void 0;var zM8;var JVC=function(){},TLC=function(A,H){for(var k in A)!isNaN(k)&&H(A,+k,A[k])},g1Q=function(A){var H=new JVC;
TLC(A,function(k,d,W){H[d]=AV(W)});
H.reviveUnknownFields=A.reviveUnknownFields;return H},eMI={reviveIntoImmutable:!0};var miQ;var PQI,Ge8;var wRw,kp,zg,xJ,o1i,rd,Bq,$iJ,Hxw,ip,s7w,hY,T5,m9;wRw=_.cj(0);_.AY={};_.kV=function(A,H,k,d,W){H=kp(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H,k,W);if(H!==null||d&&A.noLegacyNull!==YZ)return H};
kp=function(A,H,k,d){if(H===-1)return null;var W=H+(k?0:-1),z=A.length-1;if(!(z<1+(k?0:-1))){if(W>=z){var u=A[z];if(u!=null&&typeof u==="object"&&u.constructor===Object){k=u[H];var B=!0}else if(W===z)k=u;else return}else k=A[W];if(d&&k!=null){d=d(k);if(d==null)return d;if(!Object.is(d,k))return B?u[H]=d:A[W]=d,d}return k}};
_.sY=function(A,H,k,d){Mi(A);var W=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;fL(W,W[_.qQ]|0,H,k,d);return A};
_.dd=function(A,H,k){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return f3C(A,A[_.qQ]|0,H,k)!==void 0};
_.WZ=function(A,H,k,d){var W=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return f3C(W,W[_.qQ]|0,H,xJ(A,d,k))!==void 0};
_.pC=function(A){return A===E1i?2:4};
_.z5=function(A,H){A=_.kV(A,H,void 0,void 0,l38);return A==null?_.D1():A};
zg=function(A,H,k,d){Mi(A);var W=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=W[_.qQ]|0;if(d==null){var u=MII(W);if(n1V(u,W,z,k)===H)u.set(k,0);else return A}else z=ZLI(W,z,k,H);fL(W,z,H,d);return A};
_.I7=function(A,H,k,d){var W=A[_.qQ]|0,z=KN(W);W=ZLI(A,W,k,H,z);fL(A,W,H,d,z)};
xJ=function(A,H,k){return _.qJ(A,H)===k?k:-1};
_.qJ=function(A,H){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return n1V(MII(A),A,void 0,H,void 0)};
o1i=function(A,H,k){var d=A[_.qQ]|0,W=KN(d),z=kp(A,k,W);if(z!=null&&z[D3]===SI){if(!Pj(z))return tV(z),z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var u=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(z)&&(u=z);if(u){var B=u[_.qQ]|0;B&2&&(u=lQ(u,B))}u=EB(u,H);u!==z&&fL(A,d,k,u,W);return u};
_.Af=function(A,H,k,d){var W=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=W[_.qQ]|0;H=f3C(W,z,H,k,d);if(H==null)return H;z=W[_.qQ]|0;if(!Pj(A,z)){var u=keI(H);u!==H&&(tV(A)&&(W=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=W[_.qQ]|0),H=u,z=fL(W,z,k,H,d),nL(W,z))}return H};
_.c4=function(A,H,k,d){var W=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wRm(A,W,W[_.qQ]|0,H,k,d,!1,!0)};
_.Sn=function(A,H,k,d){k=o1W(k);_.sY(A,H,k,d);k&&!Pj(k)&&nL(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
_.Cx=function(A,H,k,d){d=o1W(d);zg(A,H,k,d);d&&!Pj(d)&&nL(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
rd=function(A,H,k){Mi(A);var d=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=d[_.qQ]|0;if(k==null)return fL(d,W,H),A;for(var z=k===wL?7:k[_.qQ]|0,u=z,B=sW(z),h=B||Object.isFrozen(k),O=!0,T=!0,m=0;m<k.length;m++){var J=k[m];B||(J=Pj(J),O&&(O=!J),T&&(T=J))}B||(z=O?13:5,z=T?z&-4097:z|4096);h&&z===u||(k=AV(k),u=0,z=AG(z,W));z!==u&&iJ(k,z);W=fL(d,W,H,k);2&z||!(4096&z||16&z)||nL(d,W);return A};
Bq=function(A,H,k,d){AGX(A,H,k,d);return A};
$iJ=function(A,H,k){AGX(A,H,up,void 0,k,1,!0);return A};
_.AGA=function(A,H){return _.hV?tAb(_.kV(A,H,void 0,void 0,MAm)):tAb(_.kV(A,H))};
_.BZ=function(A,H,k){return _.hV?_.kV(A,H,void 0,k,MAm):MAm(_.kV(A,H,void 0,k))};
_.ea=function(A,H,k){return _.hV?_.kV(A,H,void 0,k,nZX):nZX(_.kV(A,H,void 0,k))};
_.xV=function(A,H){var k=k===void 0?!1:k;var d;return(d=_.PJm(_.kV(A,H)))!=null?d:k};
_.QJ=function(A,H,k){k=k===void 0?0:k;var d;return(d=_.eI(_.kV(A,H)))!=null?d:k};
Hxw=function(A,H){var k=k===void 0?0:k;A=_.XjI(_.kV(A,H));return A!=null?A:k};
ip=function(A,H,k){k=k===void 0?wRw:k;var d;return(d=_.BZ(A,H))!=null?d:k};
s7w=function(A){var H=H===void 0?wRw:H;var k;return(k=_.ea(A,23))!=null?k:H};
hY=function(A,H){var k=k===void 0?0:k;var d;return(d=_.kV(A,H,void 0,void 0,_.k1))!=null?d:k};
_.O8=function(A,H,k,d){k=k===void 0?"":k;var W;return(W=_.FG(_.kV(A,H,d)))!=null?W:k};
_.RX=function(A,H){var k=k===void 0?0:k;var d;return(d=_.uQ(_.kV(A,H)))!=null?d:k};
T5=function(A,H){var k=k===void 0?"0":k;A=_.hV?NwW(_.kV(A,H,void 0,void 0,MAm)):NwW(_.kV(A,H),!0);return A!=null?A:k};
_.kww=function(A,H,k){A=_.Hz(A,H,_.FG,3,!0);dQV(A,k);return A[k]};
m9=function(A,H,k){return _.O8(A,xJ(A,k,H))};
_.JY=function(A,H,k,d){return _.Af(A,H,xJ(A,d,k),void 0)};
_.o8=function(A,H){return _.FG(_.kV(A,H,void 0,_.AY))};
_.tj=function(A,H,k){return _.sY(A,H,Ywv(k))};
_.BB=function(A,H,k){return _.zw(A,H,Ywv(k),!1)};
_.gd=function(A,H,k){return _.sY(A,H,_.BR(k))};
_.hb=function(A,H,k){return _.sY(A,H,gL(k))};
_.qC=function(A,H,k){return _.sY(A,H,Ge(k))};
_.F1=function(A,H,k,d){return _.zw(A,H,Ge(k),"",d)};
_.HL=function(A,H,k){return _.sY(A,H,k==null?k:_.rL(k))};
_.bp=function(A,H,k){return _.zw(A,H,k==null?k:_.rL(k),0)};var Bz=function(A,H,k){this.buffer=A;if(k&&!H)throw Error();this.JSC$9164_isImmutable=H};var dRi=function(A,H,k,d){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9167_start_=0;this.init(A,H,k,d)},zIQ,LX,qWA,ztI,rGZ,ufw,BOw,eIN,IyC,W3j;
_.q=dRi.prototype;_.q.init=function(A,H,k,d){var W=d===void 0?{}:d;d=W.aliasBytesFields===void 0?!1:W.aliasBytesFields;W=W.treatNewDataAsImmutable===void 0?!1:W.treatNewDataAsImmutable;this.aliasBytesFields=d;this.treatNewDataAsImmutable=W;A&&(A=s7I(A,this.treatNewDataAsImmutable),this.bytes_=A.buffer,this.bytesAreImmutable_=A.JSC$9164_isImmutable,this.JSC$9167_start_=H||0,this.end_=k!==void 0?this.JSC$9167_start_+k:this.bytes_.length,this.cursor_=this.JSC$9167_start_)};
_.q.free=function(){this.clear();W3j.length<100&&W3j.push(this)};
_.q.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9167_start_=0;this.aliasBytesFields=!1};
_.q.reset=function(){this.cursor_=this.JSC$9167_start_};
_.q.atEnd=function(){return this.cursor_==this.end_};
_.jn=function(A,H){var k=0,d=0,W=0,z=A.bytes_,u=A.cursor_;do{var B=z[u++];k|=(B&127)<<W;W+=7}while(W<32&&B&128);if(W>32)for(d|=(B&127)>>4,W=3;W<32&&B&128;W+=7)B=z[u++],d|=(B&127)<<W;LX(A,u);if(!(B&128))return H(k>>>0,d>>>0);throw Error();};
zIQ=function(A){return _.jn(A,function(H,k){return ykI(H,k,LGQ)})};
LX=function(A,H){A.cursor_=H;if(H>A.end_)throw Error();};
_.yV=function(A){var H=A.bytes_,k=A.cursor_,d=H[k++],W=d&127;if(d&128&&(d=H[k++],W|=(d&127)<<7,d&128&&(d=H[k++],W|=(d&127)<<14,d&128&&(d=H[k++],W|=(d&127)<<21,d&128&&(d=H[k++],W|=d<<28,d&128&&H[k++]&128&&H[k++]&128&&H[k++]&128&&H[k++]&128&&H[k++]&128)))))throw Error();LX(A,k);return W};
_.ja=function(A){var H=A.bytes_,k=A.cursor_,d=H[k],W=H[k+1],z=H[k+2];H=H[k+3];LX(A,A.cursor_+4);return(d<<0|W<<8|z<<16|H<<24)>>>0};
qWA=function(A){var H=_.ja(A);A=_.ja(A);return gZI(H,A)};
ztI=function(A){var H=_.ja(A);A=_.ja(A);return bNN(H,A)};
rGZ=function(A){var H=_.ja(A);A=(H>>31)*2+1;var k=H>>>23&255;H&=8388607;return k==255?H?NaN:A*Infinity:k==0?A*1.401298464324817E-45*H:A*Math.pow(2,k-150)*(H+8388608)};
ufw=function(A){var H=_.ja(A),k=_.ja(A);A=(k>>31)*2+1;var d=k>>>20&2047;H=4294967296*(k&1048575)+H;return d==2047?H?NaN:A*Infinity:d==0?A*4.9E-324*H:A*Math.pow(2,d-1075)*(H+4503599627370496)};
BOw=function(A){for(var H=0,k=A.cursor_,d=k+10,W=A.bytes_;k<d;){var z=W[k++];H|=z;if((z&128)===0)return LX(A,k),!!(H&127)}throw Error();};
eIN=function(A,H){if(H<0)throw Error();var k=A.cursor_;H=k+H;if(H>A.end_)throw Error();A.cursor_=H;return k};
IyC=function(A,H){if(H==0)return _.D1();var k=eIN(A,H);A.aliasBytesFields&&A.bytesAreImmutable_?k=A.bytes_.subarray(k,k+H):(A=A.bytes_,H=k+H,k=k===H?new Uint8Array(0):n1j?A.slice(k,H):new Uint8Array(A.subarray(k,H)));return k.length==0?_.D1():new FA(k,XA)};
W3j=[];var ixw=function(A,H,k,d){if(W3j.length){var W=W3j.pop();W.init(A,H,k,d);A=W}else A=new dRi(A,H,k,d);this.decoder_=A;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;xRG(this,d)},xRG=function(A,H){H=H===void 0?{}:H;
A.discardUnknownFields=H.discardUnknownFields===void 0?!1:H.discardUnknownFields},GwN=function(A,H,k,d){if(hIJ.length){var W=hIJ.pop();
xRG(W,d);W.decoder_.init(A,H,k,d);return W}return new ixw(A,H,k,d)},vpW,j7W,IX,Ox0,hIJ;
ixw.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;hIJ.length<100&&hIJ.push(this)};
ixw.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
vpW=function(A){if(A.decoder_.atEnd())return!1;A.fieldCursor_=A.decoder_.cursor_;var H=_.yV(A.decoder_)>>>0,k=H>>>3;H&=7;if(!(H>=0&&H<=5))throw Error();if(k<1)throw Error();A.nextField_=k;A.nextWireType_=H;return!0};
j7W=function(A){switch(A.nextWireType_){case 0:A.nextWireType_!=0?j7W(A):BOw(A.decoder_);break;case 1:A=A.decoder_;LX(A,A.cursor_+8);break;case 2:if(A.nextWireType_!=2)j7W(A);else{var H=_.yV(A.decoder_)>>>0;A=A.decoder_;LX(A,A.cursor_+H)}break;case 5:A=A.decoder_;LX(A,A.cursor_+4);break;case 3:H=A.nextField_;do{if(!vpW(A))throw Error();if(A.nextWireType_==4){if(A.nextField_!=H)throw Error();break}j7W(A)}while(1);break;default:throw Error();}};
IX=function(A,H,k){var d=A.decoder_.end_,W=_.yV(A.decoder_)>>>0;W=A.decoder_.cursor_+W;var z=W-d;z<=0&&(A.decoder_.end_=W,k(H,A,void 0,void 0,void 0),z=W-A.decoder_.cursor_);if(z)throw Error();A.decoder_.cursor_=W;A.decoder_.end_=d;return H};
Ox0=function(A){var H=_.yV(A.decoder_)>>>0;A=A.decoder_;var k=eIN(A,H);A=A.bytes_;if(nZA){var d=A,W;(W=MAw)||(W=MAw=new TextDecoder("utf-8",{fatal:!0}));H=k+H;d=k===0&&H===d.length?d:d.subarray(k,H);try{var z=W.decode(d)}catch(O){if(Nwi===void 0){try{W.decode(new Uint8Array([128]))}catch(T){}try{W.decode(new Uint8Array([97])),Nwi=!0}catch(T){Nwi=!1}}!Nwi&&(MAw=void 0);throw O;}}else{z=k;H=z+H;k=[];for(var u=null,B,h;z<H;)B=A[z++],B<128?k.push(B):B<224?z>=H?HV():(h=A[z++],B<194||(h&192)!==128?(z--,
HV()):k.push((B&31)<<6|h&63)):B<240?z>=H-1?HV():(h=A[z++],(h&192)!==128||B===224&&h<160||B===237&&h>=160||((W=A[z++])&192)!==128?(z--,HV()):k.push((B&15)<<12|(h&63)<<6|W&63)):B<=244?z>=H-2?HV():(h=A[z++],(h&192)!==128||(B<<28)+(h-144)>>30!==0||((W=A[z++])&192)!==128||((d=A[z++])&192)!==128?(z--,HV()):(B=(B&7)<<18|(h&63)<<12|(W&63)<<6|d&63,B-=65536,k.push((B>>10&1023)+55296,(B&1023)+56320))):HV(),k.length>=8192&&(u=rAf(u,k),k.length=0);z=rAf(u,k)}return z};
_.RIw=function(A){var H=_.yV(A.decoder_)>>>0;return IyC(A.decoder_,H)};
_.TOw=function(A,H,k){var d=_.yV(A.decoder_)>>>0;for(d=A.decoder_.cursor_+d;A.decoder_.cursor_<d;)k.push(H(A.decoder_))};
hIJ=[];var mRw=function(A,H){this.JSC$9174_lo=A>>>0;this.JSC$9174_hi=H>>>0},ly8=function(A){A=BigInt.asUintN(64,A);
return new mRw(Number(A&BigInt(4294967295)),Number(A>>BigInt(32)))},W3V=function(A){if(!A)return JGJ||(JGJ=new mRw(0,0));
if(!/^\d+$/.test(A))return null;fN(A);return new mRw(pN,Ew)},JGJ,URV=function(A,H){this.JSC$9176_lo=A>>>0;
this.JSC$9176_hi=H>>>0},kwC=function(A){if(!A)return gpw||(gpw=new URV(0,0));
if(!/^-?\d+$/.test(A))return null;fN(A);return new URV(pN,Ew)},gpw;var YV=function(){this.JSC$9178_buffer_=[]},bm,yB,bxG;
YV.prototype.length=function(){return this.JSC$9178_buffer_.length};
YV.prototype.end=function(){var A=this.JSC$9178_buffer_;this.JSC$9178_buffer_=[];return A};
bm=function(A,H,k){for(;k>0||H>127;)A.JSC$9178_buffer_.push(H&127|128),H=(H>>>7|k<<25)>>>0,k>>>=7;A.JSC$9178_buffer_.push(H)};
yB=function(A,H){for(;H>127;)A.JSC$9178_buffer_.push(H&127|128),H>>>=7;A.JSC$9178_buffer_.push(H)};
_.NO8=function(A,H){if(H>=0)yB(A,H);else{for(var k=0;k<9;k++)A.JSC$9178_buffer_.push(H&127|128),H>>=7;A.JSC$9178_buffer_.push(1)}};
bxG=function(A,H){fN(H);vZm(function(k,d){bm(A,k>>>0,d>>>0)})};
YV.prototype.writeUint8=function(A){this.JSC$9178_buffer_.push(A>>>0&255)};
_.gO=function(A,H){A.JSC$9178_buffer_.push(H>>>0&255);A.JSC$9178_buffer_.push(H>>>8&255);A.JSC$9178_buffer_.push(H>>>16&255);A.JSC$9178_buffer_.push(H>>>24&255)};
YV.prototype.writeInt8=function(A){this.JSC$9178_buffer_.push(A>>>0&255)};var L3J,R7,np8,wzI,ufm;L3J=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new YV};
R7=function(A,H){H.length!==0&&(A.blocks_.push(H),A.totalLength_+=H.length)};
_.vpi=function(A,H){_.JG(A,H,2);H=A.encoder_.end();R7(A,H);H.push(A.totalLength_);return H};
_.yGp=function(A,H){var k=H.pop();for(k=A.totalLength_+A.encoder_.length()-k;k>127;)H.push(k&127|128),k>>>=7,A.totalLength_++;H.push(k);A.totalLength_++};
_.JG=function(A,H,k){yB(A.encoder_,H*8+k)};
np8=function(A,H,k){if(k!=null)switch(zIv(k),_.JG(A,H,1),typeof k){case "number":A=A.encoder_;Rwv(k);_.gO(A,pN);_.gO(A,Ew);break;case "bigint":k=ly8(k);A=A.encoder_;H=k.JSC$9174_hi;_.gO(A,k.JSC$9174_lo);_.gO(A,H);break;default:k=W3V(k),A=A.encoder_,H=k.JSC$9174_hi,_.gO(A,k.JSC$9174_lo),_.gO(A,H)}};
wzI=function(A,H,k){_.JG(A,H,2);yB(A.encoder_,k.length);R7(A,A.encoder_.end());R7(A,k)};
ufm=function(A,H,k,d){k!=null&&(H=_.vpi(A,H),d(k,A),_.yGp(A,H))};var qWN,j7i,Iyw,YWp,PmA,F30,XzA,SWA,CmQ;qWN=en();j7i=en();Iyw=en();YWp=en();PmA=en();_.GwA=en();_.PZ=en();F30=en();XzA=en();_.DRj=en();SWA=en();CmQ=en();_.K3A=en();_.ayj=en();_.OW=function(A,H,k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A,H,k)};
_.OW.prototype.toJSON=function(){return Q_(this)};
_.OW.prototype.serialize=function(A){return JSON.stringify(Q_(this,A))};
var et8=function(A,H){if(H==null||H=="")return new A;H=JSON.parse(H);if(!Array.isArray(H))throw Error("W");return new A(spN(H))};
_.OW.prototype.getExtension=function(A){hMv(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A.fieldIndex);xim(this,A.fieldIndex);return A.ctor?A.isRepeated?A.getExtensionFn(this,A.ctor,A.fieldIndex,_.pC(),A.JSC$9189_hasMessageId):A.getExtensionFn(this,A.ctor,A.fieldIndex,A.JSC$9189_hasMessageId):A.isRepeated?A.getExtensionFn(this,A.fieldIndex,_.pC(),A.JSC$9189_hasMessageId):A.getExtensionFn(this,A.fieldIndex,A.defaultValue,A.JSC$9189_hasMessageId)};
_.OW.prototype.clone=function(){var A=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=A[_.qQ]|0;return Q_Q(this,A,H)?pRl(this,A,!0):new this.constructor(lQ(A,H,!1))};
_.OW.prototype[D3]=SI;_.OW.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var xp=function(A,H,k){this.$$binaryReaderFn=A;this.$$binaryWriterFn=H;A=cR(qWN);this.$$isMsg=!!A&&k===A||!1},Oxf=rG8(function(A,H,k,d,W){if(A.nextWireType_!==2)return!1;
IX(A,o1i(H,d,k),W);return!0},eIl),RIm=rG8(function(A,H,k,d,W){if(A.nextWireType_!==2)return!1;
IX(A,o1i(H,d,k),W);return!0},eIl),XzX=Symbol(),JGI=Symbol(),L3I=Symbol(),Cmv=Symbol(),YWb=Symbol(),xRr,ixI;var cGw,r2I,pzA,G5,Q7Z,VnQ,Epw,URj,XM,tnw,NOZ,MnA,npZ,Zxi,wzw,opA,$Rk,A2w,HVJ,s4N;cGw=_.cj(0);r2I=function(A,H){var k=new L3J;K3N(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k,hG(XzX,F3f,DRV,H));R7(k,k.encoder_.end());A=new Uint8Array(k.totalLength_);H=k.blocks_;for(var d=H.length,W=0,z=0;z<d;z++){var u=H[z];A.set(u,W);W+=u.length}k.blocks_=[A];return A};
pzA=rG8(function(A,H,k,d,W){if(A.nextWireType_!==2)return!1;A=IX(A,EB([void 0,void 0],d),W);A=AV(A);d=H[_.qQ]|0;W=KN(d);if(d&2)throw Error();var z=kp(H,k,W);if(z instanceof CL)(z.arrayState&2)!=0?(z=j_N(z),z.push(A),fL(H,d,k,z,W)):(H=z,k=H.keyToApi(A[0],!1,!0),A=A[1],A=H.valueCtor?A===void 0?null:A:H.valueToApi(A,!1,!0,void 0,!1,H.arrayState),$c.prototype.set.call(H,k,A));else if(Array.isArray(z)){var u=z[_.qQ]|0;u&8192||iJ(z,u|=8192);u&2&&(z=tIl(z),fL(H,d,k,z,W));z.push(A)}else fL(H,d,k,LN([A]),
W);return!0},function(A,H,k,d,W){if(H instanceof CL)H.forEach(function(B,h){ufm(A,k,EB([h,
B],d),W)});
else if(Array.isArray(H)){for(var z=0;z<H.length;z++){var u=H[z];Array.isArray(u)&&ufm(A,k,EB(u,d),W)}LN(H)}});
G5=_.Tw(function(A,H,k){if(A.nextWireType_!==1)return!1;_.m3(H,k,ufw(A.decoder_));return!0},Vnv,CmQ);
Q7Z=_.Tw(function(A,H,k,d){if(A.nextWireType_!==1)return!1;_.I7(H,k,d,ufw(A.decoder_));return!0},Vnv,CmQ);
VnQ=_.Tw(function(A,H,k){if(A.nextWireType_!==5)return!1;_.m3(H,k,rGZ(A.decoder_));return!0},Epm,SWA);
Epw=_.Q78(function(A,H,k){if(A.nextWireType_!==5&&A.nextWireType_!==2)return!1;H=_.qR(H,H[_.qQ]|0,k);A.nextWireType_==2?_.TOw(A,rGZ,H):H.push(rGZ(A.decoder_));return!0},function(A,H,k){H=_.pzX(_.k1,H,!0);
if(H!=null&&H.length)for(_.JG(A,k,2),yB(A.encoder_,H.length*4),k=0;k<H.length;k++){var d=A.encoder_;Jkb(H[k]);_.gO(d,pN)}},SWA);
URj=_.Tw(function(A,H,k,d){if(A.nextWireType_!==5)return!1;_.I7(H,k,d,rGZ(A.decoder_));return!0},Epm,SWA);
_.lyZ=_.Tw(function(A,H,k){if(_.td)return kMm(A,H,k);if(A.nextWireType_!==0)return!1;_.m3(H,k,_.jn(A.decoder_,_.Z1));return!0},_.Lx,_.PZ);
_.FM=_.Tw(function(A,H,k){if(_.td)return kMm(A,H,k);if(A.nextWireType_!==0)return!1;_.m3(H,k,_.jn(A.decoder_,MQ));return!0},_.Lx,_.PZ);
XM=_.Tw(function(A,H,k){if(_.td)return A.nextWireType_!==0?H=!1:(A=_.jn(A.decoder_,LGQ),_.m3(H,k,A===cGw?void 0:A),H=!0),H;if(A.nextWireType_!==0)return!1;A=_.jn(A.decoder_,MQ);_.m3(H,k,A===0?void 0:A);return!0},_.Lx,_.PZ);
tnw=_.Tw(function(A,H,k,d){if(_.td)return _.dXm(A,H,k,d);if(A.nextWireType_!==0)return!1;_.I7(H,k,d,_.jn(A.decoder_,MQ));return!0},_.Lx,_.PZ);
NOZ=_.Tw(function(A,H,k){if(_.td)return WJr(A,H,k);if(A.nextWireType_!==0)return!1;_.m3(H,k,_.jn(A.decoder_,_.tk));return!0},tnI,F30);
_.D_=_.Tw(function(A,H,k){if(_.td)return WJr(A,H,k);if(A.nextWireType_!==0)return!1;_.m3(H,k,_.jn(A.decoder_,gZI));return!0},tnI,F30);
_.Sa=_.Tw(function(A,H,k){if(A.nextWireType_!==0)return!1;_.m3(H,k,_.yV(A.decoder_));return!0},MnX,YWp);
MnA=_.Tw(function(A,H,k){if(A.nextWireType_!==0)return!1;A=_.yV(A.decoder_);_.m3(H,k,A===0?void 0:A);return!0},MnX,YWp);
npZ=_.Tw(function(A,H,k,d){if(A.nextWireType_!==0)return!1;_.I7(H,k,d,_.yV(A.decoder_));return!0},MnX,YWp);
Zxi=_.Tw(function(A,H,k){if(_.td)return _.qNV(A,H,k);if(A.nextWireType_!==1)return!1;_.m3(H,k,qWA(A.decoder_));return!0},_.ZxW,_.DRj);
_.fyA=_.Q78(function(A,H,k){if(_.td)return A.nextWireType_!==1&&A.nextWireType_!==2?A=!1:(H=_.qR(H,H[_.qQ]|0,k),A.nextWireType_==2?_.TOw(A,ztI,H):H.push(ztI(A.decoder_)),A=!0),A;if(A.nextWireType_!==1&&A.nextWireType_!==2)return!1;H=_.qR(H,H[_.qQ]|0,k);A.nextWireType_==2?_.TOw(A,qWA,H):H.push(qWA(A.decoder_));return!0},function(A,H,k){H=_.pzX(f1r,H,!1);
if(H!=null)for(var d=0;d<H.length;d++)np8(A,k,H[d])},_.DRj);
_.CX=_.Tw(function(A,H,k){if(A.nextWireType_!==0)return!1;_.m3(H,k,BOw(A.decoder_));return!0},fyN,j7i);
_.KX=_.Tw(function(A,H,k){if(A.nextWireType_!==0)return!1;A=BOw(A.decoder_);_.m3(H,k,A===!1?void 0:A);return!0},fyN,j7i);
wzw=_.Tw(function(A,H,k,d){if(A.nextWireType_!==0)return!1;_.I7(H,k,d,BOw(A.decoder_));return!0},fyN,j7i);
_.aX=_.Tw(function(A,H,k){if(A.nextWireType_!==2)return!1;_.m3(H,k,Ox0(A));return!0},opN,Iyw);
_.cZ=_.Tw(function(A,H,k){if(A.nextWireType_!==2)return!1;A=Ox0(A);_.m3(H,k,A===""?void 0:A);return!0},opN,Iyw);
_.pX=_.Tw(function(A,H,k,d){if(A.nextWireType_!==2)return!1;_.I7(H,k,d,Ox0(A));return!0},opN,Iyw);
opA=_.Q78(function(A,H,k){if(A.nextWireType_!==2)return!1;A=Ox0(A);_.qR(H,H[_.qQ]|0,k).push(A);return!0},function(A,H,k){H=_.pzX(_.FG,H,!0);
if(H!=null)for(var d=0;d<H.length;d++){var W=A,z=k,u=H[d];u!=null&&wzI(W,z,xvN(u))}},Iyw);
$Rk=void 0;$Rk=$Rk===void 0?qWN:$Rk;_.QV=new xp(function(A,H,k,d,W){if(A.nextWireType_!==2)return!1;d=EB(void 0,d);_.qR(H,H[_.qQ]|0,k).push(d);IX(A,d,W);return!0},function(A,H,k,d,W){if(Array.isArray(H)){for(var z=0;z<H.length;z++)$RA(A,H[z],k,d,W);
A=H[_.qQ]|0;A&1||iJ(H,A|1)}},$Rk);
_.VV=rG8(function(A,H,k,d,W,z){if(A.nextWireType_!==2)return!1;var u=H[_.qQ]|0;ZLI(H,u,z,k,KN(u));H=o1i(H,d,k);IX(A,H,W);return!0},$RA);
_.E8=_.Tw(function(A,H,k){if(A.nextWireType_!==2)return!1;_.m3(H,k,_.RIw(A));return!0},_.A2I,_.K3A);
A2w=_.Tw(function(A,H,k,d){if(A.nextWireType_!==2)return!1;_.I7(H,k,d,_.RIw(A));return!0},_.A2I,_.K3A);
_.U8=_.Tw(function(A,H,k){if(A.nextWireType_!==0)return!1;_.m3(H,k,_.yV(A.decoder_)>>>0);return!0},HVI,PmA);
HVJ=_.Tw(function(A,H,k,d){if(A.nextWireType_!==0)return!1;_.I7(H,k,d,_.yV(A.decoder_)>>>0);return!0},HVI,PmA);
_.lp=_.Tw(function(A,H,k){if(A.nextWireType_!==0)return!1;_.m3(H,k,_.yV(A.decoder_));return!0},_.s4l,_.ayj);
_.tY=_.Tw(function(A,H,k){if(A.nextWireType_!==0)return!1;A=_.yV(A.decoder_);_.m3(H,k,A===0?void 0:A);return!0},_.s4l,_.ayj);
s4N=_.Tw(function(A,H,k){if(_.td)return A.nextWireType_!==0?A=!1:(_.m3(H,k,zIQ(A.decoder_)),A=!0),A;if(A.nextWireType_!==0)return!1;_.m3(H,k,_.jn(A.decoder_,jpA));return!0},function(A,H,k){H=ZNN(H);
if(H!=null&&(dRW(H),H!=null))switch(_.JG(A,k,0),typeof H){case "number":A=A.encoder_;k=H;H=k<0;k=Math.abs(k)*2;Rwv(k);k=pN;var d=Ew;H&&(k==0?d==0?d=k=4294967295:(d--,k=4294967295):k--);pN=k;Ew=d;bm(A,pN,Ew);break;case "bigint":A=A.encoder_;H=H<<BigInt(1)^H>>BigInt(63);pN=Number(BigInt.asUintN(32,H));Ew=Number(BigInt.asUintN(32,H>>BigInt(32)));bm(A,pN,Ew);break;default:bxG(A.encoder_,H)}},XzA);var WJG=function(){var A=kMw,H=dXw;this.fieldIndex=175237375;this.ctor=H;this.isRepeated=0;this.getExtensionFn=_.Af;this.defaultValue=void 0;this.JSC$9189_hasMessageId=A.messageId!=null?CN:void 0};
WJG.prototype.register=function(){Me(this)};var ztJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(ztJ,_.OW);var qNj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(qNj,_.OW);var htA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(htA,_.OW);var r2J=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(r2J,_.OW);var u9A=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(u9A,_.OW);var BUw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(BUw,_.OW);var etZ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(etZ,_.OW);etZ.prototype.getData=function(){return _.z5(this,2)};var xXp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(xXp,_.OW);var iVZ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(iVZ,_.OW);iVZ.prototype.getStyle=function(){return _.Af(this,ztJ,1)};var Dy=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Dy,_.OW);Dy.prototype.getPayloadCase=function(){return _.qJ(this,Kx)};
Dy.prototype.getStyle=function(){return _.JY(this,iVZ,6,Kx)};
var htk=function(){var A=new Dy,H=new u9A;return _.Cx(A,7,Kx,H)},OVJ=function(){var A=new Dy,H=new BUw;
return _.Cx(A,8,Kx,H)},Kx=[1,
2,3,4,5,6,7,8];var RtA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(RtA,_.OW);var TUA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(TUA,_.OW);var mX0=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(mX0,_.OW);var J2w=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(J2w,_.OW);var g7J=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(g7J,_.OW);var bVQ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(bVQ,_.OW);var LJw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(LJw,_.OW);var v7A=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(v7A,_.OW);v7A.prototype.getData=function(){return _.z5(this,2)};var y20=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(y20,_.OW);var iV8=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(iV8,_.OW);iV8.prototype.getPayloadCase=function(){return _.qJ(this,NJ)};
var NJ=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var MJ=function(A,H){A=Error.call(this,A);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.code=H===void 0?2:H};
_.I(MJ,Error);var j4j=Promise;var IKZ=function(A){this.channelPromise=A};
IKZ.prototype.send=function(A,H,k){this.channelPromise.then(function(d){d.send(A,H,k)})};var YNj=function(A,H){this.data=A;this.channel=H};
YNj.prototype.reply=function(A,H,k){this.channel.send(A,H,k)};var P1J=function(A){this.JSC$9255_port_=A};
P1J.prototype.send=function(A,H,k){k=k===void 0?[]:k;var d=new MessageChannel;GMN(d.port1,H);this.JSC$9255_port_.postMessage(A,[d.port2].concat(k))};
var FJw=function(A,H){GMN(A,H);return new P1J(A)},GMN=function(A,H){H&&(A.onmessage=function(k){H(new YNj(k.data,FJw(k.ports[0])))})};var XXA=function(A){this.verifier_=A};
XXA.prototype.verify=function(A){return this.verifier_(A)};
var DXZ=function(A){var H=Object.create(null);(typeof A==="string"?[A]:A).forEach(function(k){if(k==="null")throw Error("Y");H[k]=!0});
return function(k){return H[k]===!0}};_.SNJ=function(){if(!_.k8.addEventListener||!Object.defineProperty)return!1;var A=!1,H=Object.defineProperty({},"passive",{get:function(){A=!0}});
try{var k=function(){};
_.k8.addEventListener("test",k,H);_.k8.removeEventListener("test",k,H)}catch(d){}return A}();var C1j;_.nX=function(A){var H=A.destination;var k=A.iframe;var d=A.origin;var W=A.channelName===void 0?"ZNWN1d":A.channelName;var z=A.onMessage===void 0?void 0:A.onMessage;A=A.onEstablished===void 0?void 0:A.onEstablished;return C1j({destination:H,getSource:function(){return k.contentWindow},
originVerifier:d instanceof XXA?d:typeof d==="function"?new XXA(d):new XXA(DXZ(d)),channelName:W,onMessage:z,onEstablished:A})};
C1j=function(A){var H=A.destination;var k=A.getSource;var d=A.originVerifier;var W=A.token===void 0?void 0:A.token;var z=A.channelName;var u=A.onMessage===void 0?void 0:A.onMessage;var B=A.onEstablished===void 0?void 0:A.onEstablished;return new IKZ(new j4j(function(h,O){var T=function(m){m.source&&m.source===k()&&d.verify(m.origin)&&(m.data.n||m.data)===z&&(H.removeEventListener("message",T,!1),W&&m.data.t!==W?O(Error("Z`"+z+"`"+W+"`"+m.data.t)):(h(FJw(m.ports[0],u)),B&&B(m)))};
H.addEventListener("message",T,!1)}))};var KJJ=function(A){try{A()}catch(H){dI(H)}};var c2A=function(A){var H=this;var k=A.getMessageType;var d=A.onUnregisteredMessage===void 0?function(){}:A.onUnregisteredMessage;
var W=A.onBeforeRegisteredMessage===void 0?function(){}:A.onBeforeRegisteredMessage;
A=A.onAfterRegisteredMessage===void 0?function(){}:A.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=k;this.onUnregisteredMessage_=d;this.onBeforeRegisteredMessage_=W;this.onAfterRegisteredMessage_=A;this.onMessage=function(z){return aKA(H,z)}};
c2A.prototype.register=function(A,H){this.registry_.set(A,H);return this};
var aKA=function(A,H){var k=A.getMessageType_(H.data),d=A.registry_.get(k);d?(KJJ(function(){return A.onBeforeRegisteredMessage_(H,k)}),KJJ(function(){return d(H)}),KJJ(function(){return A.onAfterRegisteredMessage_(H,k)})):KJJ(function(){return A.onUnregisteredMessage_(H,k)})};var pXw=function(A){this.JSC$9272_channel_=A},V_Z,E7p;
pXw.prototype.send=function(A,H,k){this.JSC$9272_channel_.send(Q_(A),H,k)};
_.Q4w=function(A,H){return function(k){var d=new A(k.data);return H(new YNj(d,k.channel))}};
V_Z=function(A){return function(H){return A(new YNj(H.data,new pXw(H.channel)))}};
E7p=function(A,H){return V_Z(_.Q4w(A,H))};var UXj=function(A,H,k,d){this.registry=A;this.delegate=H;this.receiveMessageConstructor=k;this.createInitMessage=d;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},xXb=function(A){var H=new c2A({getMessageType:A.getPayloadCase});
return new UXj(H,new pXw(_.nX({iframe:A.child,destination:window,origin:A.origin,channelName:A.channelName,onMessage:E7p(A.receiveMessageConstructor,H.onMessage)})),A.receiveMessageConstructor,A.createInitMessage)},lKw=function(A,H){A.createInitMessage=H};
UXj.prototype.send=function(A){if(!this.initialised)throw new MJ("Attempted to send a message before initialisation.");this.delegate.send(A)};
var t_A=function(A,H){return _.e(function(k){if(!A.initialised)throw new MJ("Attempted to send a message before initialisation.");return k.return(new Promise(function(d){A.delegate.send(H,E7p(A.receiveMessageConstructor,d))}))})};
UXj.prototype.init=function(){var A=this;return _.e(function(H){if(A.initialised)throw new MJ("Attempted to initialise twice. The SDK can only be initialised once.");if(A.createInitMessage!==void 0){var k=A.delegate,d=k.send,W=A.createInitMessage;var z=new qNj;var u=[].concat(_.fV(A.features));z=_.dO(z,1,u,_.rL);d.call(k,W.call(A,z))}A.initialised=!0;_.EN(H)})};
var Z_=function(A,H){if(A.initialised)throw new MJ('Attempted to set up API "'+H+'" after initialisation. All APIs must be set up before initialising the SDK.');A.features.add(H);return A.registry};
_.nP.Object.defineProperties(UXj.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var NUA=function(A){this.channel=A;this.registered=!1};
NUA.prototype.update=function(A){if(this.channel.isInitialised){if(!this.registered)throw new MJ("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var H=new Dy;var k=new r2J;k=_.tj(k,1,A);H=_.Cx(H,2,Kx,k);this.channel.send(H)}else this.register();this.JSC$9286_audioEnabled=A};
NUA.prototype.register=function(){Z_(this.channel,1);this.registered=!0};
NUA.prototype.isAudioEnabled=function(){return this.JSC$9286_audioEnabled};var M_w=function(A){this.channel=A};
_.q=M_w.prototype;_.q.onFirstFrameReady=function(A){Z_(this.channel,2).register(11,function(H){H=_.JY(H.data,RtA,11,NJ);if(!H)throw new MJ("Unexpectedly nonexistent GameFirstFrameReadyEvent");A(_.O8(H,1))})};
_.q.onReady=function(A){Z_(this.channel,2).register(4,function(H){H=_.JY(H.data,mX0,4,NJ);if(!H)throw new MJ("Unexpectedly nonexistent GameReadyEvent");A(_.O8(H,1))})};
_.q.onLevelComplete=function(A){Z_(this.channel,2).register(5,function(H){H=_.JY(H.data,J2w,5,NJ);if(!H)throw new MJ("Unexpectedly nonexistent LevelCompleteEvent");A(_.O8(H,1),_.QJ(H,2))})};
_.q.onGameOver=function(A){Z_(this.channel,2).register(6,function(H){H=_.JY(H.data,TUA,6,NJ);if(!H)throw new MJ("Unexpectedly nonexistent GameOverEvent");A(_.O8(H,1))})};
_.q.pause=function(){var A=this;if(!this.channel.isInitialised)return Z_(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new MJ("Using unregistered Game Feature: pause.");var H=htk();return new Promise(function(k){return _.e(function(d){if(d.nextAddress==1)return d.yield(t_A(A.channel,H),2);k();_.EN(d)})})};
_.q.resume=function(){var A=this;if(!this.channel.isInitialised)return Z_(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new MJ("Using unregistered Game Feature: resume.");var H=OVJ();return new Promise(function(k){return _.e(function(d){if(d.nextAddress==1)return d.yield(t_A(A.channel,H),2);k();_.EN(d)})})};var n7G=function(A){this.channel=A};
n7G.prototype.onReady=function(A){Z_(this.channel,5).register(8,function(H){if(!_.JY(H.data,g7J,8,NJ))throw new MJ("Unexpectedly nonexistent PageReadyEvent");A()})};var ZVk=function(A){this.channel=A};
ZVk.prototype.onChange=function(A){Z_(this.channel,3).register(7,function(H){H=_.JY(H.data,bVQ,7,NJ);if(!H)throw new MJ("Unexpectedly nonexistent ScoreEvent");A(_.O8(H,1),_.QJ(H,2))})};var fKQ={load:function(){throw new MJ("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new MJ("Storage used, but storage.onSave() listener not set!");}},wXw=function(A){this.channel=A;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},o7A=function(A){Z_(A.channel,4).register(2,fKQ.load).register(3,fKQ.save);
A.initialSetupDone=!0};
wXw.prototype.onLoad=function(A){this.initialSetupDone||o7A(this);this.loadRegistered||(this.loadRegistered=!0,Z_(this.channel,4).register(2,function(H){var k,d,W;return _.e(function(z){if(z.nextAddress==1){k=_.JY(H.data,LJw,2,NJ);if(!k)throw new MJ("Unexpectedly nonexistent StorageLoad");d=_.O8(k,1);return z.yield(A(d),2)}W=z.yieldResult;var u=H.reply,B=new Dy;var h=new etZ;h=_.qC(h,1,d);h=_.sY(h,2,_.SA(W,!1));B=_.Cx(B,3,Kx,h);u.call(H,B);_.EN(z)})}))};
wXw.prototype.onSave=function(A){this.initialSetupDone||o7A(this);this.saveRegistered||(this.saveRegistered=!0,Z_(this.channel,4).register(3,function(H){var k,d,W;return _.e(function(z){if(z.nextAddress==1){k=_.JY(H.data,v7A,3,NJ);if(!k)throw new MJ("Unexpectedly nonexistent StorageSave");d=_.O8(k,1);W=cVw(k.getData());return z.yield(A(d,W),2)}var u=H.reply,B=new Dy;var h=new xXp;h=_.qC(h,1,d);B=_.Cx(B,4,Kx,h);u.call(H,B);_.EN(z)})}))};var $X1=function(A){this.channel=A};
$X1.prototype.update=function(A){if(!this.channel.features.has(6))throw new MJ("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var H=new Dy,k=new iVZ;A=_.Sn(k,1,A);H=_.Cx(H,6,Kx,A);this.channel.send(H)};
$X1.prototype.register=function(){Z_(this.channel,6)};var AeN=function(A){this.channel=A;this.userActivityLoggingIntervalMs=0};
AeN.prototype.onUserActivity=function(A,H){this.userActivityLoggingIntervalMs=H;Z_(this.channel,7).register(9,function(k){if(!_.JY(k.data,y20,9,NJ))throw new MJ("Unexpectedly nonexistent ClickEvent");A()})};var HYJ=function(A){var H=this;this.channel=A;this.init=this.channel.init.bind(this.channel);this.page=new n7G(this.channel);this.game=new M_w(this.channel);this.audio=new NUA(this.channel);this.score=new ZVk(this.channel);this.storage=new wXw(this.channel);this.style=new $X1(this.channel);this.userActivity=new AeN(this.channel);lKw(this.channel,function(k){var d=new htA;k=_.Sn(d,1,k);k=_.gd(k,3,H.userActivity.userActivityLoggingIntervalMs);d=H.audio.isAudioEnabled();d!==void 0&&_.tj(k,2,d);d=new Dy;
return _.Cx(d,5,Kx,k)})};var sak=function(){this.timedFunctionContext=0};
sak.prototype.timeExecution=function(A,H){var k=this;return function(){var d=_.o7.apply(0,arguments);k.timedFunctionContext=A;return H.apply(null,_.fV(d))}};var kOQ=function(){var A={};this.priorityTasks=(A[3]=[],A[2]=[],A[1]=[],A);this.isFlushing=!1},pY=function(A,H,k){var d=dxQ(A,k);
A.priorityTasks[k].push(H);d&&A.priorityTasks[k].length===1&&A.flush()},dxQ=function(A,H){return Object.keys(A.priorityTasks).map(function(k){return Number(k)}).filter(function(k){return!isNaN(k)&&k>H}).every(function(k){return A.priorityTasks[k].length===0})};
kOQ.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(A){return A.length>0});)W_p(this,3),W_p(this,2),W_p(this,1)}catch(A){throw Object.values(this.priorityTasks).forEach(function(H){return void H.splice(0,H.length)}),A;
}finally{this.isFlushing=!1}}};
var W_p=function(A,H){for(;dxQ(A,H)&&A.priorityTasks[H].length>0;)A.priorityTasks[H][0](),A.priorityTasks[H].shift()};
_.nP.Object.defineProperties(kOQ.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(A){return A.length>0})}}});var bVv={};var z4w=globalThis.trustedTypes,RtX=z4w,mXf;var cz=function(A){this.privateDoNotAccessOrElseWrappedResourceUrl=A};
cz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var qGA,reG,utZ,B5G,e4w,xxi,iYj,h4i;qGA=_.XO([""]);reG=FO(["\x00"],["\\0"]);utZ=FO(["\n"],["\\n"]);B5G=FO(["\x00"],["\\u0000"]);e4w=_.XO([""]);xxi=FO(["\x00"],["\\0"]);iYj=FO(["\n"],["\\n"]);h4i=FO(["\x00"],["\\u0000"]);_.OYi=g7I(function(A){return A(qGA)})||g7I(function(A){return A(reG)})||g7I(function(A){return A(utZ)})||g7I(function(A){return A(B5G)});
_.R4Q=_.VB(e4w)&&_.VB(xxi)&&_.VB(iYj)&&_.VB(h4i);var Zy;_.UW=function(A,H){this.privateDoNotAccessOrElseWrappedUrl=H};
_.UW.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.T5i=lm("about:blank");Zy=lm("about:invalid#zClosurez");var LJm=function(A){this.isValid=A},mxi=new LJm(function(A){return/^[^:]*([/?#]|$)/.test(A)}),Je1=MR("data"),gdN=MR("http"),bYw=MR("https"),L_Q=MR("ftp"),vd0=MR("mailto"),yek=MR("intent"),ja1=MR("vnd.youtube"),v7N=[Je1,
gdN,bYw,vd0,L_Q,mxi],j4V=a7(function(){return typeof URL==="function"}),I8i=["data:",
"http:","https:","mailto:","ftp:"],YNV=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var HX=function(A){this.privateDoNotAccessOrElseWrappedHtml=A};
HX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var xGW=a7(function(){return new HX(z4w?z4w.emptyHTML:"")});var YGZ={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"},GMl=function(A,H){var k=Error.call(this,A+" cannot be used with intent "+YGZ[H]);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.type=A;this.intent=H;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.I(GMl,Error);_.BX=function(A){this.privateDoNotAccessOrElseWrappedScript=A};
_.BX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var XXX=function(A){this.privateDoNotAccessOrElseWrappedAttributePrefix=A};
XXX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var DX8="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var mJ=function(A){this.privateDoNotAccessOrElseWrappedStyleSheet=A};
mJ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var Jcf=function(A){var H=_.UD("window.location.href");A==null&&(A='Unknown Error of type "null/undefined"');if(typeof A==="string")return{message:A,name:"Unknown error",lineNumber:"Not available",fileName:H,stack:"Not available"};var k=!1;try{var d=A.lineNumber||A.line||"Not available"}catch(u){d="Not available",k=!0}try{var W=A.fileName||A.filename||A.sourceURL||_.k8.$googDebugFname||H}catch(u){W="Not available",k=!0}H=PfZ(A);if(!(!k&&A.lineNumber&&A.fileName&&A.stack&&A.message&&A.name)){k=A.message;
if(k==null){if(A.constructor&&A.constructor instanceof Function){if(A.constructor.name)k=A.constructor.name;else if(k=A.constructor,fX[k])k=fX[k];else{k=String(k);if(!fX[k]){var z=/function\s+([^\(]+)/m.exec(k);fX[k]=z?z[1]:"[Anonymous]"}k=fX[k]}k='Unknown Error of type "'+k+'"'}else k="Unknown Error of unknown type";typeof A.toString==="function"&&Object.prototype.toString!==A.toString&&(k+=": "+A.toString())}return{message:k,name:A.name||"UnknownError",lineNumber:d,fileName:W,stack:H||"Not available"}}return{message:A.message,
name:A.name,lineNumber:A.lineNumber,fileName:A.fileName,stack:H}},PfZ=function(A,H){H||(H={});
H[GO0(A)]=!0;var k=A.stack||"",d=A.cause;d&&!H[GO0(d)]&&(k+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(k+=typeof d==="string"?d:d.message+"\n"),k+=PfZ(d,H));A=A.errors;if(Array.isArray(A)){d=1;var W;for(W=0;W<A.length&&!(d>4);W++)H[GO0(A[W])]||(k+="\nInner error "+d++ +": ",A[W].stack&&A[W].stack.indexOf(A[W].toString())==0||(k+=typeof A[W]==="string"?A[W]:A[W].message+"\n"),k+=PfZ(A[W],H));W<A.length&&(k+="\n... "+(A.length-W)+" more inner errors")}return k},GO0=function(A){var H=
"";
typeof A.toString==="function"&&(H=""+A);return H+A.stack},fX={};var O5l,fY,lL,F_A,XyA,SG1,cT,LH,K_Z;O5l=function(A,H){for(var k=A.split("%s"),d="",W=Array.prototype.slice.call(arguments,1);W.length&&k.length>1;)d+=k.shift()+W.shift();return d+k.join("%s")};
_.w5=function(A){return encodeURIComponent(String(A))};
fY=function(A){return decodeURIComponent(A.replace(/\+/g," "))};
lL=function(A){HLw.test(A)&&(A.indexOf("&")!=-1&&(A=A.replace(ZNA,"&amp;")),A.indexOf("<")!=-1&&(A=A.replace(f1G,"&lt;")),A.indexOf(">")!=-1&&(A=A.replace(wjw,"&gt;")),A.indexOf('"')!=-1&&(A=A.replace(oZA,"&quot;")),A.indexOf("'")!=-1&&(A=A.replace($QJ,"&#39;")),A.indexOf("\x00")!=-1&&(A=A.replace(AV0,"&#0;")));return A};
_.DxG=function(A){return _.iI(A,"&")?"document"in _.k8?F_A(A):XyA(A):A};
F_A=function(A){var H={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var k=_.k8.document.createElement("div");return A.replace(SG1,function(d,W){var z=H[d];if(z)return z;W.charAt(0)=="#"&&(W=Number("0"+W.slice(1)),isNaN(W)||(z=String.fromCharCode(W)));z||(_.ON(k,k7(d+" ")),z=k.firstChild.nodeValue.slice(0,-1));return H[d]=z})};
XyA=function(A){return A.replace(/&([^;]+);/g,function(H,k){switch(k){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return k.charAt(0)!="#"||(k=Number("0"+k.slice(1)),isNaN(k))?H:String.fromCharCode(k)}})};
SG1=/&([^;\s<&]+);?/g;_.IwI=function(A){return String(A).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Cf1=String.prototype.repeat?function(A,H){return A.repeat(H)}:function(A,H){return Array(H+1).join(A)};
_.wd=function(A,H){if(!Number.isFinite(A))return String(A);A=String(A);var k=A.indexOf(".");k===-1&&(k=A.length);var d=A[0]==="-"?"-":"";d&&(A=A.substring(1));return d+(0,_.Cf1)("0",Math.max(0,H-k))+A};
cT=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Vj()).toString(36)};
LH=function(A){for(var H=0,k=0;k<A.length;++k)H=31*H+A.charCodeAt(k)>>>0;return H};
_.o1=function(A){return String(A).replace(/\-([a-z])/g,function(H,k){return k.toUpperCase()})};
_.wY=function(A){return String(A).replace(/([A-Z])/g,"-$1").toLowerCase()};
K_Z=function(A){return A.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(H,k,d){return k+d.toUpperCase()})};var a8Z=function(){this.names=new Map};
a8Z.prototype.getName=function(A){var H=this.names.get(A);if(H)return H;var k;H=(k=A.description)!=null?k:cT();this.names.set(A,H);return H};var ce0=function(A){var H=Error.call(this,A?A.length+" errors occurred during unsubscription:\n"+A.map(function(k,d){return d+1+") "+k.toString()}).join("\n  "):"");
this.message=H.message;"stack"in H&&(this.stack=H.stack);this.errors=A;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.I(ce0,Error);var LV=function(A){this.initialTeardown=A;this.closed=!1;this._teardowns=this._parentage=null};
_.q=LV.prototype;
_.q.unsubscribe=function(){if(!this.closed){this.closed=!0;var A=this._parentage;if(Array.isArray(A))for(var H=_.r(A),k=H.next();!k.done;k=H.next())k.value.remove(this);else A==null||A.remove(this);H=this.initialTeardown;if(J2(H))try{H()}catch(z){var d=z instanceof ce0?z.errors:[z]}var W=this._teardowns;if(W)for(this._teardowns=null,H=_.r(W),k=H.next();!k.done;k=H.next()){k=k.value;try{J2(k)?k():k.unsubscribe()}catch(z){k=void 0,d=(k=d)!=null?k:[],z instanceof ce0?d=[].concat(_.fV(d),_.fV(z.errors)):
d.push(z)}}if(d)throw new ce0(d);}};
_.q.add=function(A){if(A&&A!==this)if(this.closed)J2(A)?A():A.unsubscribe();else{if(A instanceof LV){if(A.closed||A._hasParent(this))return;A._addParent(this)}var H;(this._teardowns=(H=this._teardowns)!=null?H:[]).push(A)}};
_.q._hasParent=function(A){var H=this._parentage;return H===A||Array.isArray(H)&&H.includes(A)};
_.q._addParent=function(A){var H=this._parentage;this._parentage=Array.isArray(H)?(H.push(A),H):H?[H,A]:A};
_.q._removeParent=function(A){var H=this._parentage;H===A?this._parentage=null:Array.isArray(H)&&c2N(H,A)};
_.q.remove=function(A){var H=this._teardowns;H&&c2N(H,A);A instanceof LV&&A._removeParent(this)};
var pyN=new LV;pyN.closed=!0;LV.JSC$9382_EMPTY=pyN;var Q4I=function(){setTimeout.apply(null,_.fV(_.o7.apply(0,arguments)))};var oX=function(A){LV.call(this);this.JSC$9387_isStopped=!1;this.destination=A instanceof oX?A:new $V(!A||J2(A)?{next:A!=null?A:void 0}:A);pXI(A)&&A.add(this)};
_.I(oX,LV);oX.JSC$9382_EMPTY=LV.JSC$9382_EMPTY;oX.create=function(A,H,k){return new AK(A,H,k)};
_.q=oX.prototype;_.q.next=function(A){this.JSC$9387_isStopped||this._next(A)};
_.q.error=function(A){this.JSC$9387_isStopped||(this.JSC$9387_isStopped=!0,this._error(A))};
_.q.complete=function(){this.JSC$9387_isStopped||(this.JSC$9387_isStopped=!0,this._complete())};
_.q.unsubscribe=function(){this.closed||(this.JSC$9387_isStopped=!0,LV.prototype.unsubscribe.call(this))};
_.q._next=function(A){this.destination.next(A)};
_.q._error=function(A){this.destination.error(A);this.unsubscribe()};
_.q._complete=function(){this.destination.complete();this.unsubscribe()};
var $V=function(A){this.partialObserver=A};
$V.prototype.next=function(A){var H=this.partialObserver;if(H.next)try{H.next(A)}catch(k){yA(k)}};
$V.prototype.error=function(A){var H=this.partialObserver;if(H.error)try{H.error(A)}catch(k){yA(k)}else yA(A)};
$V.prototype.complete=function(){var A=this.partialObserver;if(A.complete)try{A.complete()}catch(H){yA(H)}};
var AK=function(A,H,k){oX.call(this);var d;J2(A)||!A?d={next:A!=null?A:void 0,error:H!=null?H:void 0,complete:k!=null?k:void 0}:d=A;this.destination=new $V(d)};
_.I(AK,oX);AK.JSC$9382_EMPTY=oX.JSC$9382_EMPTY;AK.create=oX.create;var GM=typeof Symbol==="function"&&Symbol.observable||"@@observable";var PX=function(A){A&&(this._subscribe=A)};
_.q=PX.prototype;_.q.lift=function(A){var H=new PX;H.source=this;H.operator=A;return H};
_.q.subscribe=function(A,H,k){A=A&&A instanceof oX||A&&J2(A.next)&&J2(A.error)&&J2(A.complete)&&pXI(A)?A:new AK(A,H,k);H=this.operator;k=this.source;A.add(H?H.call(A,k):k?this._subscribe(A):this._trySubscribe(A));return A};
_.q._trySubscribe=function(A){try{return this._subscribe(A)}catch(H){A.error(H)}};
_.q.forEach=function(A,H){var k=this;H=E7b(H);return new H(function(d,W){var z=k.subscribe(function(u){try{A(u)}catch(B){W(B),z==null||z.unsubscribe()}},W,d)})};
_.q._subscribe=function(A){var H;return(H=this.source)==null?void 0:H.subscribe(A)};
PX.prototype[GM]=function(){return this};
PX.prototype.pipe=function(){var A=_.o7.apply(0,arguments);return A.length?V_8(A)(this):this};
PX.create=function(A){return new PX(A)};var QaJ=function(){var A=Error.call(this,"object unsubscribed");this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.I(QaJ,Error);var KY=function(){this.observers=[];this.hasError=this.JSC$9403_isStopped=this.closed=!1;this.thrownError=null};
_.I(KY,PX);_.q=KY.prototype;_.q.lift=function(A){var H=new HJ(this,this);H.operator=A;return H};
_.q._throwIfClosed=function(){if(this.closed)throw new QaJ;};
_.q.next=function(A){this._throwIfClosed();if(!this.JSC$9403_isStopped){var H=this.observers.slice();H=_.r(H);for(var k=H.next();!k.done;k=H.next())k.value.next(A)}};
_.q.error=function(A){this._throwIfClosed();if(!this.JSC$9403_isStopped){this.hasError=this.JSC$9403_isStopped=!0;this.thrownError=A;for(var H=this.observers;H.length;)H.shift().error(A)}};
_.q.complete=function(){this._throwIfClosed();if(!this.JSC$9403_isStopped){this.JSC$9403_isStopped=!0;for(var A=this.observers;A.length;)A.shift().complete()}};
_.q.unsubscribe=function(){this.JSC$9403_isStopped=this.closed=!0;this.observers=null};
_.q._trySubscribe=function(A){this._throwIfClosed();return PX.prototype._trySubscribe.call(this,A)};
_.q._subscribe=function(A){this._throwIfClosed();this._checkFinalizedStatuses(A);return this._innerSubscribe(A)};
_.q._innerSubscribe=function(A){var H=this,k=this.JSC$9403_isStopped,d=this.observers;return this.hasError||k?LV.JSC$9382_EMPTY:(d.push(A),new LV(function(){return c2N(H.observers,A)}))};
_.q._checkFinalizedStatuses=function(A){var H=this.thrownError,k=this.JSC$9403_isStopped;this.hasError?A.error(H):k&&A.complete()};
KY.create=function(A,H){return new HJ(A,H)};
var HJ=function(A,H){KY.call(this);this.destination=A;this.source=H};
_.I(HJ,KY);HJ.create=KY.create;HJ.prototype.next=function(A){var H,k;(H=this.destination)==null||(k=H.next)==null||k.call(H,A)};
HJ.prototype.error=function(A){var H,k;(H=this.destination)==null||(k=H.error)==null||k.call(H,A)};
HJ.prototype.complete=function(){var A,H;(A=this.destination)==null||(H=A.complete)==null||H.call(A)};
HJ.prototype._subscribe=function(A){var H,k;return(k=(H=this.source)==null?void 0:H.subscribe(A))!=null?k:LV.JSC$9382_EMPTY};var v4=function(A){KY.call(this);this._value=A};
_.I(v4,KY);v4.create=KY.create;v4.prototype._subscribe=function(A){var H=KY.prototype._subscribe.call(this,A);!H.closed&&A.next(this._value);return H};
v4.prototype.getValue=function(){var A=this.thrownError,H=this._value;if(this.hasError)throw A;this._throwIfClosed();return H};
v4.prototype.next=function(A){KY.prototype.next.call(this,this._value=A)};
_.nP.Object.defineProperties(v4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var sG=new PX(function(A){return A.complete()});var NUN=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var wXm=function(A){return A&&typeof A.length==="number"&&typeof A!=="function"};var VtQ={now:function(){return(VtQ.delegate||Date).now()},
delegate:void 0};var TO=function(A,H,k){A=A===void 0?Infinity:A;H=H===void 0?Infinity:H;k=k===void 0?VtQ:k;KY.call(this);this.bufferSize=A;this.windowTime=H;this.timestampProvider=k;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=H===Infinity;this.bufferSize=Math.max(1,A);this.windowTime=Math.max(1,H)};
_.I(TO,KY);TO.create=KY.create;TO.prototype.next=function(A){var H=this.buffer,k=this.infiniteTimeWindow,d=this.timestampProvider,W=this.windowTime;this.JSC$9403_isStopped||(H.push(A),!k&&H.push(d.now()+W));Edk(this);KY.prototype.next.call(this,A)};
TO.prototype._subscribe=function(A){this._throwIfClosed();Edk(this);for(var H=this._innerSubscribe(A),k=this.infiniteTimeWindow,d=this.buffer.slice(),W=0;W<d.length&&!A.closed;W+=k?1:2)A.next(d[W]);this._checkFinalizedStatuses(A);return H};
var Edk=function(A){var H=A.bufferSize,k=A.timestampProvider,d=A.buffer;A=A.infiniteTimeWindow;var W=(A?1:2)*H;H<Infinity&&W<d.length&&d.splice(0,d.length-W);if(!A){H=k.now();k=0;for(A=1;A<d.length&&d[A]<=H;A+=2)k=A;k&&d.splice(0,k+1)}};var l8N=function(A,H){H=H===void 0?Uxi:H;this.schedulerActionCtor=A;this.now=H};
l8N.prototype.schedule=function(A,H,k){H=H===void 0?0:H;return(new this.schedulerActionCtor(this,A)).schedule(k,H)};
var Uxi=VtQ.now;var UxW=function(){var A=Error.call(this,"no elements in sequence");this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.I(UxW,Error);var MX=function(A,H,k,d,W){oX.call(this,A);this.onUnsubscribe=W;H&&(this._next=function(z){try{H(z)}catch(u){this.destination.error(u)}});
k&&(this._error=function(z){try{k(z)}catch(u){this.destination.error(u)}this.unsubscribe()});
d&&(this._complete=function(){try{d()}catch(z){this.destination.error(z)}this.unsubscribe()})};
_.I(MX,oX);MX.JSC$9382_EMPTY=oX.JSC$9382_EMPTY;MX.create=oX.create;MX.prototype.unsubscribe=function(){var A;this.closed||(A=this.onUnsubscribe)!=null&&A.call(this);oX.prototype.unsubscribe.call(this)};var OG=function(A,H){this.source=A;this.subjectFactory=H;this._subject=null;this._refCount=0;this._connection=null};
_.I(OG,PX);OG.create=PX.create;OG.prototype._subscribe=function(A){return ttw(this).subscribe(A)};
var ttw=function(A){var H=A._subject;if(!H||H.JSC$9403_isStopped)A._subject=A.subjectFactory();return A._subject};
OG.prototype._teardown=function(){this._refCount=0;var A=this._connection;this._subject=this._connection=null;A==null||A.unsubscribe()};
OG.prototype.connect=function(){var A=this,H=this._connection;if(!H){H=this._connection=new LV;var k=ttw(this);H.add(this.source.subscribe(new MX(k,void 0,function(d){A._teardown();k.error(d)},function(){A._teardown();
k.complete()},function(){return A._teardown()})));
H.closed&&(this._connection=null,H=LV.JSC$9382_EMPTY)}return H};var ut8=Array.isArray;var e4C=Array.isArray,N5p=Object,xxW=N5p.getPrototypeOf,iYV=N5p.prototype,h4W=N5p.keys;var $7=function(A,H,k){oX.call(this,A);this._next=H;this.shouldComplete=k};
_.I($7,oX);$7.JSC$9382_EMPTY=oX.JSC$9382_EMPTY;$7.create=oX.create;$7.prototype._complete=function(){this.shouldComplete()?oX.prototype._complete.call(this):this.unsubscribe()};var vdf=["addListener","removeListener"],L_v=["addEventListener","removeEventListener"],jaQ=["on","off"];var sX=function(){LV.call(this)};
_.I(sX,LV);sX.JSC$9382_EMPTY=LV.JSC$9382_EMPTY;sX.prototype.schedule=function(){return this};var Mt1=function(A,H){return setInterval.apply(null,[A,H].concat(_.fV(_.o7.apply(2,arguments))))};var kX=function(A,H){LV.call(this);this.scheduler=A;this.work=H;this.pending=!1};
_.I(kX,sX);kX.JSC$9382_EMPTY=sX.JSC$9382_EMPTY;kX.prototype.schedule=function(A,H){H=H===void 0?0:H;if(this.closed)return this;this.state=A;A=this.id;var k=this.scheduler;A!=null&&(this.id=ndw(this,A,H));this.pending=!0;this.delay=H;this.id=this.id||this.requestAsyncId(k,this.id,H);return this};
kX.prototype.requestAsyncId=function(A,H,k){k=k===void 0?0:k;return Mt1(A.flush.bind(A,this),k)};
var ndw=function(A,H,k){k=k===void 0?0:k;if(k!=null&&A.delay===k&&A.pending===!1)return H;clearInterval(H)};
kX.prototype.execute=function(A,H){if(this.closed)return Error("ia");this.pending=!1;if(A=this._execute(A,H))return A;this.pending===!1&&this.id!=null&&(this.id=ndw(this,this.id,null))};
kX.prototype._execute=function(A){var H=!1;try{this.work(A)}catch(d){H=!0;var k=!!d&&d||Error(d)}if(H)return this.unsubscribe(),k};
kX.prototype.unsubscribe=function(){if(!this.closed){var A=this.id,H=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;c2N(H,this);A!=null&&(this.id=ndw(this,A,null));this.delay=null;sX.prototype.unsubscribe.call(this)}};var ZYp=function(A,H){H=H===void 0?Uxi:H;l8N.call(this,A,H);this.actions=[];this.active=!1;this.scheduled=void 0};
_.I(ZYp,l8N);ZYp.prototype.flush=function(A){var H=this.actions;if(this.active)H.push(A);else{var k;this.active=!0;do if(k=A.execute(A.state,A.delay))break;while(A=H.shift());this.active=!1;if(k){for(;A=H.shift();)A.unsubscribe();throw k;}}};var B4=new PX(vX);var I8W=Array.isArray;var dS=function(A,H){kX.call(this,A,H);this.scheduler=A;this.work=H};
_.I(dS,kX);dS.JSC$9382_EMPTY=kX.JSC$9382_EMPTY;dS.prototype.schedule=function(A,H){H=H===void 0?0:H;if(H>0)return kX.prototype.schedule.call(this,A,H);this.delay=H;this.state=A;this.scheduler.flush(this);return this};
dS.prototype.execute=function(A,H){return H>0||this.closed?kX.prototype.execute.call(this,A,H):this._execute(A,H)};
dS.prototype.requestAsyncId=function(A,H,k){k=k===void 0?0:k;return k!=null&&k>0||k==null&&this.delay>0?kX.prototype.requestAsyncId.call(this,A,H,k):A.flush(this)};var f8p=function(){ZYp.apply(this,arguments)};
_.I(f8p,ZYp);var qGN=new f8p(dS);var wyA=function(){this.performanceMonitor=new sak;this.queue=new kOQ;this.internalSymbol=Symbol();this.debugNames=new a8Z};
wyA.prototype.getOnBackgrounded=function(){return B4};
_.nP.Object.defineProperties(wyA.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var WJ=function(A,H){H=Error.call(this,H?A+": "+H:String(A));this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=A;this.__proto__=WJ.prototype;this.name=String(A)};
_.I(WJ,Error);var eB=function(A){WJ.call(this,1E3,'sfr:"'+A+'"');this.measurementStrategyFailureReason=A;this.__proto__=eB.prototype};
_.I(eB,WJ);var xg=function(){WJ.call(this,1003);this.__proto__=xg.prototype};
_.I(xg,WJ);var zj=function(){WJ.call(this,1009);this.__proto__=zj.prototype};
_.I(zj,WJ);var odj=function(){WJ.call(this,1011);this.__proto__=odj.prototype};
_.I(odj,WJ);var $xA=function(){WJ.call(this,1007);this.__proto__=xg.prototype};
_.I($xA,WJ);var rW=function(A){WJ.call(this,1004,String(A));this.inputObservableIndex=A;this.__proto__=rW.prototype};
_.I(rW,WJ);var Id8=function(A){WJ.call(this,1010,A);this.__proto__=Y9r.prototype};
_.I(Id8,WJ);var Y9r=function(A){WJ.call(this,1005,A);this.__proto__=Y9r.prototype};
_.I(Y9r,WJ);var Ajw=function(A){var H=_.o7.apply(1,arguments),k=this;this.orderedFactories=[];this.orderedFactories.push(A);H.forEach(function(d){k.orderedFactories.push(d)})};
Ajw.prototype.isSupported=function(A){return this.orderedFactories.some(function(H){return H.isSupported(A)})};
Ajw.prototype.makeBeacon=function(A,H){for(var k=0;k<this.orderedFactories.length;k++)if(this.orderedFactories[k].isSupported(H))return this.orderedFactories[k].makeBeacon(A,H);throw new zj;};var OAW=Symbol("ja"),HCZ=Symbol("ka"),zO=function(A,H){this.value=A;this.timeline=H},Wy=function(A,H){if(H.timeline!==A.timeline)throw new $xA;
return A.value-H.value};
_.q=zO.prototype;_.q.equals=function(A){return Wy(this,A)===0};
_.q.maximum=function(A){if(A.timeline!==this.timeline)throw new $xA;return this.value>=A.value?this:A};
_.q.round=function(){return new zO(Math.round(this.value),this.timeline)};
_.q.add=function(A){return new zO(this.value+A,this.timeline)};
_.q.toString=function(){return String(this.value)};var qB=function(A,H){this.context=A;this.JSC$9509_pinger=H};
qB.prototype.isSupported=function(A){return this.JSC$9509_pinger.isSupported(A)};
qB.prototype.makeBeacon=function(A,H){if(!this.isSupported(H))throw new zj;return new rS(this.context,this.JSC$9509_pinger,H!=null?H:void 0,A)};
var rS=function(A,H,k,d){var W=this;this.JSC$9515_pinger=H;this.properties=k;this.url=d;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var z;this.method=(z=k==null?void 0:k.beaconMethod)!=null?z:"GET";this.backgroundedSubscription=A.getOnBackgrounded().subscribe(function(){W.sendNow()})};
rS.prototype.deactivate=function(){this.internalIsPending=!1};
rS.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9515_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var A,H;this.JSC$9515_pinger.pingWithHeadersAndBody((A=this.properties)!=null?A:{},this.customHeaders,(H=this.body)!=null?H:"",this.url)}else this.JSC$9515_pinger.ping(this.url);this.internalIsPending=!1}catch(k){}else this.internalIsPending=!1};
rS.prototype.setHeader=function(A,H){this.customHeaders.set(A,H)};
_.nP.Object.defineProperties(rS.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var kEk=function(){for(var A=_.r(_.o7.apply(0,arguments)),H=A.next();!H.done;H=A.next())if(H=H.value,H.available()){this.timeProvider=H;return}this.timeProvider=new s8w};
_.q=kEk.prototype;_.q.available=function(){return this.timeProvider.available()};
_.q.now=function(){return this.timeProvider.now()};
_.q.setTimeout=function(A,H){return this.timeProvider.setTimeout(A,H)};
_.q.clearTimeout=function(A){this.timeProvider.clearTimeout(A)};
_.q.interval=function(A,H){var k=this.intervalObservable(A).subscribe(H);return function(){return void k.unsubscribe()}};
_.q.intervalObservable=function(A){return this.timeProvider.intervalObservable(A)};
_.nP.Object.defineProperties(kEk.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var s8w=function(){this.timeline=Symbol()};
_.q=s8w.prototype;_.q.available=function(){return!1};
_.q.now=function(){return new zO(0,this.timeline)};
_.q.setTimeout=function(){return 0};
_.q.clearTimeout=function(){};
_.q.interval=function(){return function(){}};
_.q.intervalObservable=function(){return B4};var uP=function(A,H){this.intrinsicFunctionNamespace=A;this.performanceMonitor=H};
_.q=uP.prototype;_.q.setTimeout=function(A,H){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,A),H)};
_.q.clearTimeout=function(A){this.intrinsicFunctionNamespace.clearTimeout(A)};
_.q.interval=function(A,H){var k=this.intervalObservable(A).subscribe(H);return function(){return void k.unsubscribe()}};
_.q.intervalObservable=function(A){var H=this;return new PX(function(k){var d=0,W=H.intrinsicFunctionNamespace.setInterval(function(){k.next(d++)},A);
return function(){H.intrinsicFunctionNamespace.clearInterval(W)}})};
_.q.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var dCp=function(A,H){uP.call(this,A,H);this.timeline=HCZ};
_.I(dCp,uP);dCp.prototype.now=function(){return new zO(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
dCp.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&uP.prototype.available.call(this)};var WA0=function(A,H){uP.call(this,A,H);this.timeline=OAW};
_.I(WA0,uP);WA0.prototype.now=function(){return new zO(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
WA0.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&uP.prototype.available.call(this)};var qIw=function(A){this.context=A;if(zCw===void 0)a:{var H,k,d=(H=A.global)==null?void 0:(k=H.document)==null?void 0:k.createElement("meta");if(d)try{d.httpEquiv="origin-trial";d.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";A.global.document.head.append(d);zCw=d;break a}catch(W){}zCw=void 0}},
zCw;
qIw.prototype.isSupported=function(A){return a88(this.context)!==void 0&&!(A==null||!A.endOfSession)&&!BJ(this.context)&&!(A==null?0:A.attributionEnabled)&&!(A==null?0:A.customHeaders)&&!(A==null?0:A.customBody)};
qIw.prototype.makeBeacon=function(A,H){if(!this.isSupported(H))throw new zj;return new em(this.context,A,H)};
var em=function(A,H,k){this.context=A;this.properties=k;this.JSC$9542_urlWithoutToken=H;var d;this.beaconMethod=(d=k==null?void 0:k.beaconMethod)!=null?d:"GET";A=a88(this.context);if(A===void 0)throw Error();this.fetchLater=A;rji(this,uEw(this))},rji=function(A,H){A.beaconResult&&A.beaconResult.activated||(A.beaconAbort=new AbortController,A.beaconResult=A.fetchLater(H,{method:A.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:A.beaconAbort.signal,activateAfter:96E4}))},uEw=function(A){A=A.JSC$9542_urlWithoutToken;
return(A.slice(-1)[0]==="&"?A:A+"&")+"flapi=1"};
em.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
em.prototype.sendNow=function(){};
em.prototype.setHeader=function(){};
_.nP.Object.defineProperties(em.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9542_urlWithoutToken},
set:function(A){this.JSC$9542_urlWithoutToken=A;A=uEw(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);rji(this,A)}},
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 BWi=function(A){this.context=A};
BWi.prototype.isSupported=function(){return!BJ(this.context)&&!!this.context.global.fetch};
BWi.prototype.ping=function(){var A=this;return kd.apply(null,_.fV(_.o7.apply(0,arguments).map(function(H){return DK(A.context.global.fetch(H,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(ZK(function(k){return k.status===200}))}))).pipe(l8l(function(H){return H}),N5b())};
BWi.prototype.pingWithHeadersAndBody=function(A,H,k){for(var d=_.o7.apply(3,arguments),W=this,z=new Headers,u=_.r(H.entries()),B=u.next();!B.done;B=u.next()){var h=_.r(B.value);B=h.next().value;h=h.next().value;z.set(B,h)}var O,T=(O=A.keepAlive)!=null?O:!1;kd.apply(null,_.fV(d.map(function(m){return DK(W.context.global.fetch(m,Object.assign({},{method:String(A.beaconMethod),cache:"no-cache"},T?{keepalive:!0}:{},{mode:"no-cors",headers:z,body:k}))).pipe(ZK(function(J){return J.status===200}))}))).pipe(l8l(function(m){return m}),
N5b())};var eCA,oNv,xCJ;_.xX=function(){};
_.Kl=function(A){return A};
eCA=function(A){var H=H||0;return function(){return A.apply(this,Array.prototype.slice.call(arguments,0,H))}};
_.iP=function(A){var H=!1,k;return function(){H||(k=A(),H=!0);return k}};
_.hK=function(A,H){var k=0;return function(d){_.k8.clearTimeout(k);var W=arguments;k=_.k8.setTimeout(function(){A.apply(void 0,W)},H)}};
oNv=function(A,H){var k=0,d=!1,W=[],z=function(){k=0;d&&(d=!1,u())},u=function(){k=_.k8.setTimeout(z,H);
var B=W;W=[];A.apply(void 0,B)};
return function(B){W=arguments;k?d=!0:u()}};
xCJ=function(A,H){var k=0,d=function(){k=0};
return function(W){k||(k=_.k8.setTimeout(d,H),A.apply(void 0,arguments))}};var OX=function(A,H,k,d,W){this.allowedElements=A;this.elementPolicies=H;this.allowedGlobalAttributes=k;this.globalAttributePolicies=d;this.globallyAllowedAttributePrefixes=W},iCw=function(A,H,k){k=A.elementPolicies.get(k);
return(k==null?0:k.has(H))?k.get(H):A.allowedGlobalAttributes.has(H)?{policyAction:1}:(k=A.globalAttributePolicies.get(H))?k:A.globallyAllowedAttributePrefixes&&[].concat(_.fV(A.globallyAllowedAttributePrefixes)).some(function(d){return H.indexOf(d)===0})?{policyAction:1}:{policyAction:0}};var hCJ="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(" "),
OCw=[["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}]])]],RCA="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(" "),
TWZ=[["dir",{policyAction:3,conditions:a7(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:a7(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:a7(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:a7(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],mCQ=new OX(new Set(hCJ),new Map(OCw),new Set(RCA),new Map(TWZ)),JjZ=new OX(new Set(hCJ.concat(["BUTTON",
"INPUT"])),new Map(OCw),new Set(a7(function(){return RCA.concat(["class","id","name"])})),new Map(a7(function(){return TWZ.concat([["style",
{policyAction:1}]])})));var gg1,bCQ,vgw;gg1=function(A,H,k,d,W){this.JSC$9599_sanitizerTable=A;this.styleElementSanitizer=H;this.styleAttributeSanitizer=k;this.JSC$9599_resourceUrlPolicy=d;this.JSC$9599_navigationUrlPolicy=W;this.changes=[]};
_.LAj=function(A,H){var k=document.implementation.createHTMLDocument("");A=bCQ(A,H,k);k=k.body;k.appendChild(A);k=(new XMLSerializer).serializeToString(k);k=k.slice(k.indexOf(">")+1,k.lastIndexOf("</"));return k7(k)};
bCQ=function(A,H,k){H=dCb(H,k);H=document.createTreeWalker(H,5,function(B){if(B.nodeType===3)B=1;else if(zCC(B))if(B=WAf(B),B===null)B=2;else{var h=A.JSC$9599_sanitizerTable;B=B!=="FORM"&&(h.allowedElements.has(B)||h.elementPolicies.has(B))?1:2}else B=2;return B});
for(var d=H.nextNode(),W=k.createDocumentFragment(),z=W;d!==null;){var u=void 0;if(d.nodeType===3)A.styleElementSanitizer&&z.nodeName==="STYLE"?(d=A.styleElementSanitizer(d.data),u=A.createTextNode(d)):u=A.createTextNode(d.data);else if(zCC(d))u=vgw(A,d,k);else throw Error("$");z.appendChild(u);if(d=H.firstChild())z=u;else for(;!(d=H.nextSibling())&&(d=H.parentNode());)z=z.parentNode}return W};
gg1.prototype.createTextNode=function(A){return document.createTextNode(A)};
vgw=function(A,H,k){var d,W=WAf(H);k=k.createElement(W);H=H.attributes;for(var z=_.r(H),u=z.next();!u.done;u=z.next()){var B=u.value;u=B.name;B=B.value;var h=iCw(A.JSC$9599_sanitizerTable,u,W);a:{if(d=h.conditions){d=_.r(d);for(var O=d.next();!O.done;O=d.next()){var T=_.r(O.value);O=T.next().value;T=T.next().value;var m=void 0;if((O=(m=H.getNamedItem(O))==null?void 0:m.value)&&!T.has(O)){d=!1;break a}}}d=!0}if(d)switch(h.policyAction){case 1:jt(k,u,B);break;case 2:throw Error();case 3:jt(k,u,B.toLowerCase());
break;case 4:A.styleAttributeSanitizer?(B=A.styleAttributeSanitizer(B),jt(k,u,B)):jt(k,u,B);break;case 5:A.JSC$9599_resourceUrlPolicy?(h={type:2,attributeName:u,elementName:W},B=kEA(B),(B=A.JSC$9599_resourceUrlPolicy(B,h))&&jt(k,u,B.toString())):jt(k,u,B);break;case 6:if(A.JSC$9599_resourceUrlPolicy){h={type:2,attributeName:u,elementName:W};d=[];B=_.r(B.split(","));for(O=B.next();!O.done;O=B.next())T=_.r(O.value.trim().split(/\s+/,2)),O=T.next().value,T=T.next().value,d.push({url:O,descriptor:T});
B={parts:[]};d=_.r(d);for(O=d.next();!O.done;O=d.next())O=O.value,T=kEA(O.url),(T=A.JSC$9599_resourceUrlPolicy(T,h))&&B.parts.push({url:T.toString(),descriptor:O.descriptor});jt(k,u,qIC(B))}else jt(k,u,B);break;case 7:h=B;if(A.JSC$9599_navigationUrlPolicy){h={type:2,attributeName:u,elementName:W};B=kEA(B);B=A.JSC$9599_navigationUrlPolicy(B,h);if(B===null)break;h=B.toString()}B=h;h=_.IK8(B);h=h!==void 0&&I8i.indexOf(h.toLowerCase())!==-1?B:"about:invalid#zClosurez";jt(k,u,h)}}return k};
_.yji=a7(function(){return new gg1(mCQ)});
_.j8Z=a7(function(){return new gg1(JjZ)});var ILQ=function(){this.calledBuild=!1;this.JSC$9611_sanitizerTable=mCQ},YI1=function(){ILQ.apply(this,arguments)};
_.I(YI1,ILQ);YI1.prototype.build=function(){if(this.calledBuild)throw Error("ma");this.calledBuild=!0;return new gg1(this.JSC$9611_sanitizerTable,void 0,void 0,this.JSC$9611_resourceUrlPolicy,this.JSC$9611_navigationUrlPolicy)};var PKZ=/[^#]*/;var ZYb={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"},GEZ=_.iP(function(){return wyX()}),
X4j=function(){var A=FAw("IFRAME"),H={};
_.t3(GEZ(),function(k){A.sandbox&&A.sandbox.supports&&A.sandbox.supports(k)&&(H[k]=!0)});
return H},FAw=function(A,H){H=H===void 0?document:H;
return H.createElement(String(A).toLowerCase())};_.q=_.Ft.prototype;_.q.clone=function(){return new _.Ft(this.x,this.y)};
_.q.equals=function(A){return A instanceof _.Ft&&(this==A?!0:this&&A?this.x==A.x&&this.y==A.y:!1)};
_.q.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.q.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.q.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.q.translate=function(A,H){A instanceof _.Ft?(this.x+=A.x,this.y+=A.y):(this.x+=Number(A),typeof H==="number"&&(this.y+=H));return this};
_.q.scale=function(A,H){this.x*=A;this.y*=typeof H==="number"?H:A;return this};_.q=_.Xt.prototype;_.q.clone=function(){return new _.Xt(this.width,this.height)};
_.q.area=function(){return this.width*this.height};
_.q.aspectRatio=function(){return this.width/this.height};
_.q.isEmpty=function(){return!this.area()};
_.q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.q.scale=function(A,H){this.width*=A;this.height*=typeof H==="number"?H:A;return this};var DCA;_.iK={};DCA="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.iK.add=function(A,H,k){if(A!==null&&H in A)throw Error("oa`"+H);A[H]=k};
_.iK.clear=function(A){for(var H in A)delete A[H]};
_.iK.clone=function(A){var H={},k;for(k in A)H[k]=A[k];return H};
_.iK.contains=function(A,H){return xCI(A,H)};
_.iK.containsKey=function(A,H){return A!==null&&H in A};
_.iK.containsValue=xCI;_.iK.create=OCm;_.iK.createImmutableView=function(A){var H=A;Object.isFrozen&&!Object.isFrozen(A)&&(H=Object.create(A),Object.freeze(H));return H};
_.iK.createSet=RCN;_.iK.equals=function(A,H){for(var k in A)if(!(k in H)||A[k]!==H[k])return!1;for(var d in H)if(!(d in A))return!1;return!0};
_.iK.every=function(A,H,k){for(var d in A)if(!H.call(k,A[d],d,A))return!1;return!0};
_.iK.extend=function(A,H){for(var k,d,W=1;W<arguments.length;W++){d=arguments[W];for(k in d)A[k]=d[k];for(var z=0;z<DCA.length;z++)k=DCA[z],Object.prototype.hasOwnProperty.call(d,k)&&(A[k]=d[k])}};
_.iK.filter=function(A,H,k){var d={},W;for(W in A)H.call(k,A[W],W,A)&&(d[W]=A[W]);return d};
_.iK.findKey=iCI;_.iK.findValue=function(A,H,k){return(H=iCI(A,H,k))&&A[H]};
_.iK.forEach=function(A,H,k){for(var d in A)H.call(k,A[d],d,A)};
_.iK.get=function(A,H,k){return A!==null&&H in A?A[H]:k};
_.iK.getAllPropertyNames=function(A,H,k){if(!A)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return eCN(A);for(var d={};A&&(A!==Object.prototype||H)&&(A!==Function.prototype||k);){for(var W=Object.getOwnPropertyNames(A),z=0;z<W.length;z++)d[W[z]]=!0;A=Object.getPrototypeOf(A)}return eCN(d)};
_.iK.getAnyKey=function(A){for(var H in A)return H};
_.iK.getAnyValue=function(A){for(var H in A)return A[H]};
_.iK.getCount=function(A){var H=0,k;for(k in A)H++;return H};
_.iK.getKeys=eCN;_.iK.getSuperClass=function(A){return(A=Object.getPrototypeOf(A.prototype))&&A.constructor};
_.iK.getValueByKeys=function(A,H){var k=_.Nv(H),d=k?H:arguments;for(k=k?0:1;k<d.length;k++){if(A==null)return;A=A[d[k]]}return A};
_.iK.getValues=function(A){var H=[],k=0,d;for(d in A)H[k++]=A[d];return H};
_.iK.isEmpty=function(A){for(var H in A)return!1;return!0};
_.iK.isImmutableView=function(A){return!!Object.isFrozen&&Object.isFrozen(A)};
_.iK.map=function(A,H,k){var d={},W;for(W in A)d[W]=H.call(k,A[W],W,A);return d};
_.iK.remove=function(A,H){var k;(k=H in A)&&delete A[H];return k};
_.iK.set=function(A,H,k){A[H]=k};
_.iK.setIfUndefined=function(A,H,k){return H in A?A[H]:A[H]=k};
_.iK.setWithReturnValueIfNotSet=function(A,H,k){if(H in A)return A[H];k=k();return A[H]=k};
_.iK.some=function(A,H,k){for(var d in A)if(H.call(k,A[d],d,A))return!0;return!1};
_.iK.transpose=function(A){var H={},k;for(k in A)H[A[k]]=k;return H};
_.iK.unsafeClone=hCI;var FW=function(A,H){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=A===L5r&&H||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=SIj};
FW.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var CKA=function(A){return A instanceof FW&&A.constructor===FW&&A.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===SIj?A.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},SIj={},L5r={};
new FW(L5r,"");var zE,HT,Tj,KAQ,p4k,cjJ,R8,VBi,UCN,Eg0,bP,lLA,WvI,fLw,ZCw,w4w,ogZ,$Ck,AwA,Vwm,H$A,k4Z,dZ1,ssp,RM;zE=function(A){return A?new RM(_.TE(A)):tAp||(tAp=new RM)};
_.cn=function(A,H){return typeof H==="string"?A.getElementById(H):H};
HT=function(A,H){return(H||document).getElementsByTagName(String(A))};
_.aLG=function(A){return KAQ("yt-formatted-string","paper-input-input",A)};
Tj=function(A,H,k,d){A=d||A;return(H=H&&H!="*"?String(H).toUpperCase():"")||k?A.querySelectorAll(H+(k?"."+k:"")):A.getElementsByTagName("*")};
KAQ=function(A,H,k){var d=document,W=A&&A!="*"?String(A).toUpperCase():"";return W||H?(k||d).querySelector(W+(H?"."+H:"")):Tj(d,A,H,k)[0]||null};
p4k=function(A,H){_.iK.forEach(H,function(k,d){d=="style"?A.style.cssText=k:d=="class"?A.className=k:d=="for"?A.htmlFor=k:cjJ.hasOwnProperty(d)?A.setAttribute(cjJ[d],k):_.rI(d,"aria-")||_.rI(d,"data-")?A.setAttribute(d,k):A[d]=k})};
cjJ={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"};_.dW=function(A){A=(A||window).document;A=A.compatMode=="CSS1Compat"?A.documentElement:A.body;return new _.Xt(A.clientWidth,A.clientHeight)};
_.Q8J=function(A){var H=_.mN(A);A=A.defaultView;return new _.Ft((A==null?void 0:A.pageXOffset)||H.scrollLeft,(A==null?void 0:A.pageYOffset)||H.scrollTop)};
_.mN=function(A){return A.scrollingElement?A.scrollingElement:_.HN||A.compatMode!="CSS1Compat"?A.body||A.documentElement:A.documentElement};
R8=function(A){return A?A.defaultView:window};
_.JK=function(A,H,k){return VBi(document,arguments)};
VBi=function(A,H){var k=H[1],d=Eg0(A,String(H[0]));k&&(typeof k==="string"?d.className=k:Array.isArray(k)?d.className=k.join(" "):p4k(d,k));H.length>2&&UCN(A,d,H,2);return d};
UCN=function(A,H,k,d){function W(B){B&&H.appendChild(typeof B==="string"?A.createTextNode(B):B)}
for(;d<k.length;d++){var z=k[d];if(!_.Nv(z)||_.nl(z)&&z.nodeType>0)W(z);else{a:{if(z&&typeof z.length=="number"){if(_.nl(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}_.t3(u?_.tA(z):z,W)}}};
_.$g=function(A){return Eg0(document,A)};
Eg0=function(A,H){H=String(H);A.contentType==="application/xhtml+xml"&&(H=H.toLowerCase());return A.createElement(H)};
_.gS=function(){return document.createTextNode("\n")};
bP=function(A){if(A.nodeType!=1)return!1;switch(A.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};
lLA=function(A,H){UCN(_.TE(A),A,arguments,1)};
_.LO=function(A){for(var H;H=A.firstChild;)A.removeChild(H)};
_.vJ=function(A,H){H.parentNode&&H.parentNode.insertBefore(A,H)};
_.yZ=function(A,H){H.parentNode&&H.parentNode.insertBefore(A,H.nextSibling)};
_.Aw=function(A){return A&&A.parentNode?A.parentNode.removeChild(A):null};
_.tBw=function(A,H){var k=H.parentNode;k&&k.replaceChild(A,H)};
_.NWA=function(A){var H,k=A.parentNode;if(k&&k.nodeType!=11)if(A.removeNode)A.removeNode(!1);else{for(;H=A.firstChild;)k.insertBefore(H,A);_.Aw(A)}};
_.jm=function(A){return A.children!=void 0?A.children:Array.prototype.filter.call(A.childNodes,function(H){return H.nodeType==1})};
_.ngA=function(A){return A.nextElementSibling!==void 0?A.nextElementSibling:_.MBw(A.nextSibling,!0)};
_.MBw=function(A,H){for(;A&&A.nodeType!=1;)A=H?A.nextSibling:A.previousSibling;return A};
_.Zd=function(A){return _.nl(A)&&A.nodeType==1};
_.as=function(A,H){if(!A||!H)return!1;if(A.contains&&H.nodeType==1)return A==H||A.contains(H);if(typeof A.compareDocumentPosition!="undefined")return A==H||!!(A.compareDocumentPosition(H)&16);for(;H&&A!=H;)H=H.parentNode;return H==A};
WvI=function(A,H){if(A==H)return 0;if(A.compareDocumentPosition)return A.compareDocumentPosition(H)&2?1:-1;if("sourceIndex"in A||A.parentNode&&"sourceIndex"in A.parentNode){var k=A.nodeType==1,d=H.nodeType==1;if(k&&d)return A.sourceIndex-H.sourceIndex;var W=A.parentNode,z=H.parentNode;return W==z?ZCw(A,H):!k&&_.as(W,H)?-1*fLw(A,H):!d&&_.as(z,A)?fLw(H,A):(k?A.sourceIndex:W.sourceIndex)-(d?H.sourceIndex:z.sourceIndex)}d=_.TE(A);k=d.createRange();k.selectNode(A);k.collapse(!0);A=d.createRange();A.selectNode(H);
A.collapse(!0);return k.compareBoundaryPoints(_.k8.Range.START_TO_END,A)};
fLw=function(A,H){var k=A.parentNode;if(k==H)return-1;for(;H.parentNode!=k;)H=H.parentNode;return ZCw(H,A)};
ZCw=function(A,H){for(;H=H.previousSibling;)if(H==A)return-1;return 1};
w4w=function(A){var H,k=arguments.length;if(!k)return null;if(k==1)return arguments[0];var d=[],W=Infinity;for(H=0;H<k;H++){for(var z=[],u=arguments[H];u;)z.unshift(u),u=u.parentNode;d.push(z);W=Math.min(W,z.length)}z=null;for(H=0;H<W;H++){u=d[0][H];for(var B=1;B<k;B++)if(u!=d[B][H])return z;z=u}return z};
_.TE=function(A){return A.nodeType==9?A:A.ownerDocument||A.document};
ogZ=function(A){return A.contentDocument||A.contentWindow.document};
_.IM=function(A,H){if("textContent"in A)A.textContent=H;else if(A.nodeType==3)A.data=String(H);else if(A.firstChild&&A.firstChild.nodeType==3){for(;A.lastChild!=A.firstChild;)A.removeChild(A.lastChild);A.firstChild.data=String(H)}else _.LO(A),A.appendChild(_.TE(A).createTextNode(String(H)))};
$Ck={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};AwA={IMG:" ",BR:"\n"};Vwm=function(A){var H;A.tagName=="A"&&A.hasAttribute("href")||A.tagName=="INPUT"||A.tagName=="TEXTAREA"||A.tagName=="SELECT"||A.tagName=="BUTTON"?H=!A.disabled&&(!A.hasAttribute("tabindex")||H$A(A)):H=A.hasAttribute("tabindex")&&H$A(A);return H};
H$A=function(A){A=A.tabIndex;return typeof A==="number"&&A>=0&&A<32768};
k4Z=function(A){var H=[];ssp(A,H,!0);A=H.join("");A=A.replace(/ \xAD /g," ").replace(/\xAD/g,"");A=A.replace(/\u200B/g,"");A=A.replace(/ +/g," ");A!=" "&&(A=A.replace(/^\s*/,""));return A};
dZ1=function(A){var H=[];ssp(A,H,!1);return H.join("")};
ssp=function(A,H,k){if(!(A.nodeName in $Ck))if(A.nodeType==3)k?H.push(String(A.nodeValue).replace(/(\r\n|\r|\n)/g,"")):H.push(A.nodeValue);else if(A.nodeName in AwA)H.push(AwA[A.nodeName]);else for(A=A.firstChild;A;)ssp(A,H,k),A=A.nextSibling};
_.WMj=function(A,H,k){if(!H&&!k)return null;var d=H?String(H).toUpperCase():null;return _.Jj(A,function(W){return(!d||W.nodeName==d)&&(!k||typeof W.className==="string"&&_.VW(W.className.split(/\s+/),k))},!0)};
_.Jj=function(A,H,k){A&&!k&&(A=A.parentNode);for(k=0;A;){if(H(A))return A;A=A.parentNode;k++}return null};
RM=function(A){this.JSC$9639_document_=A||_.k8.document||document};
_.q=RM.prototype;_.q.getElement=function(A){return _.cn(this.JSC$9639_document_,A)};
_.q.$=RM.prototype.getElement;_.q.getElementsByTagName=function(A,H){return(H||this.JSC$9639_document_).getElementsByTagName(String(A))};
_.q.getElementsByTagNameAndClass=function(A,H,k){return Tj(this.JSC$9639_document_,A,H,k)};
_.q.$$=RM.prototype.getElementsByTagNameAndClass;_.q.setProperties=p4k;_.q.JSC$9641_createDom=function(A,H,k){return VBi(this.JSC$9639_document_,arguments)};
_.q.createElement=function(A){return Eg0(this.JSC$9639_document_,A)};
_.q.createTextNode=function(A){return this.JSC$9639_document_.createTextNode(String(A))};
_.q.getWindow=function(){return this.JSC$9639_document_.defaultView};
var W4=function(A){return _.Q8J(A.JSC$9639_document_)};
_.q=RM.prototype;_.q.appendChild=function(A,H){A.appendChild(H)};
_.q.append=lLA;_.q.canHaveChildren=bP;_.q.removeNode=_.Aw;_.q.getChildren=_.jm;_.q.contains=_.as;_.q.isFocusable=Vwm;_.q=D8.prototype;_.q.getWidth=function(){return this.right-this.left};
_.q.getHeight=function(){return this.bottom-this.top};
_.q.clone=function(){return new D8(this.top,this.right,this.bottom,this.left)};
_.q.contains=function(A){return this&&A?A instanceof D8?A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom:A.x>=this.left&&A.x<=this.right&&A.y>=this.top&&A.y<=this.bottom:!1};
_.q.expand=function(A,H,k,d){_.nl(A)?(this.top-=A.top,this.right+=A.right,this.bottom+=A.bottom,this.left-=A.left):(this.top-=A,this.right+=Number(H),this.bottom+=Number(k),this.left-=Number(d));return this};
_.q.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};
_.q.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};
_.q.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};
_.q.translate=function(A,H){A instanceof _.Ft?(this.left+=A.x,this.right+=A.x,this.top+=A.y,this.bottom+=A.y):(this.left+=A,this.right+=A,typeof H==="number"&&(this.top+=H,this.bottom+=H));return this};
_.q.scale=function(A,H){H=typeof H==="number"?H:A;this.left*=A;this.right*=A;this.top*=H;this.bottom*=H;return this};_.q=CY.prototype;_.q.clone=function(){return new CY(this.left,this.top,this.width,this.height)};
_.q.boundingRect=function(A){var H=Math.max(this.left+this.width,A.left+A.width),k=Math.max(this.top+this.height,A.top+A.height);this.left=Math.min(this.left,A.left);this.top=Math.min(this.top,A.top);this.width=H-this.left;this.height=k-this.top};
_.q.contains=function(A){return A instanceof _.Ft?A.x>=this.left&&A.x<=this.left+this.width&&A.y>=this.top&&A.y<=this.top+this.height:this.left<=A.left&&this.left+this.width>=A.left+A.width&&this.top<=A.top&&this.top+this.height>=A.top+A.height};
_.q.distance=function(A){var H=A.x<this.left?this.left-A.x:Math.max(A.x-(this.left+this.width),0);A=A.y<this.top?this.top-A.y:Math.max(A.y-(this.top+this.height),0);return Math.sqrt(H*H+A*A)};
_.q.getSize=function(){return new _.Xt(this.width,this.height)};
_.q.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};
_.q.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};
_.q.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};
_.q.translate=function(A,H){A instanceof _.Ft?(this.left+=A.x,this.top+=A.y):(this.left+=A,typeof H==="number"&&(this.top+=H));return this};
_.q.scale=function(A,H){H=typeof H==="number"?H:A;this.left*=A;this.width*=A;this.top*=H;this.height*=H;return this};var q91,Gj,kWQ,PJ,eci,BFN,xZi,zkN,i$G,O$Q;_.YX=function(A,H,k){if(typeof H==="string")(H=_.zcw(A,H))&&(A.style[H]=k);else for(var d in H){k=A;var W=H[d],z=_.zcw(k,d);z&&(k.style[z]=W)}};
q91={};_.zcw=function(A,H){var k=q91[H];if(!k){var d=_.o1(H);k=d;A.style[d]===void 0&&(d=(_.HN?"Webkit":_.s3?"Moz":null)+K_Z(d),A.style[d]!==void 0&&(k=d));q91[H]=k}return k};
_.NF=function(A,H){var k=_.TE(A);return k.defaultView&&k.defaultView.getComputedStyle&&(A=k.defaultView.getComputedStyle(A,null))?A[H]||A.getPropertyValue(H)||"":""};
_.K$=function(A,H){return _.NF(A,H)||(A.currentStyle?A.currentStyle[H]:null)||A.style&&A.style[H]};
_.rwp=function(A){return _.K$(A,"position")};
Gj=function(A,H,k){if(H instanceof _.Ft){var d=H.x;H=H.y}else d=H,H=k;A.style.left=PJ(d,!1);A.style.top=PJ(H,!1)};
kWQ=function(A){try{return A.getBoundingClientRect()}catch(H){return{left:0,top:0,right:0,bottom:0}}};
_.mA=function(A){var H=_.TE(A),k=new _.Ft(0,0);if(A==(H?_.TE(H):document).documentElement)return k;A=kWQ(A);H=W4(zE(H));k.x=A.left+H.x;k.y=A.top+H.y;return k};
_.uaA=function(A,H,k){if(H instanceof _.Xt)k=H.height,H=H.width;else if(k==void 0)throw Error("pa");A.style.width=PJ(H,!0);A.style.height=PJ(k,!0)};
PJ=function(A,H){typeof A=="number"&&(A=(H?Math.round(A):A)+"px");return A};
eci=function(A){return BFN(A)};
BFN=function(A){var H=xZi;if(_.K$(A,"display")!="none")return H(A);var k=A.style,d=k.display,W=k.visibility,z=k.position;k.visibility="hidden";k.position="absolute";k.display="inline";A=H(A);k.display=d;k.position=z;k.visibility=W;return A};
xZi=function(A){var H=A.offsetWidth,k=A.offsetHeight,d=_.HN&&!H&&!k;return(H===void 0||d)&&A.getBoundingClientRect?(A=kWQ(A),new _.Xt(A.right-A.left,A.bottom-A.top)):new _.Xt(H,k)};
zkN=function(A){var H=_.mA(A);A=BFN(A);return new CY(H.x,H.y,A.width,A.height)};
i$G=function(A,H){A=A.style;"opacity"in A?A.opacity=H:"MozOpacity"in A?A.MozOpacity=H:"filter"in A&&(A.filter=H===""?"":"alpha(opacity="+Number(H)*100+")")};
_.U9=function(A,H){A.style.display=H?"":"none"};
_.hc0=function(A){return"rtl"==_.K$(A,"direction")};
O$Q=function(A){var H=_.NF(A,"marginLeft"),k=_.NF(A,"marginRight"),d=_.NF(A,"marginTop");A=_.NF(A,"marginBottom");return new D8(parseFloat(d),parseFloat(k),parseFloat(A),parseFloat(H))};
_.Rck=function(A){var H=_.NF(A,"borderLeftWidth"),k=_.NF(A,"borderRightWidth"),d=_.NF(A,"borderTopWidth");A=_.NF(A,"borderBottomWidth");return new D8(parseFloat(d),parseFloat(k),parseFloat(A),parseFloat(H))};var Fo=function(A){this.context=A};
Fo.prototype.isSupported=function(A){return(A==null?0:A.attributionEnabled)||(A==null?void 0:A.beaconMethod)==="POST"||(A==null?0:A.customHeaders)||(A==null?0:A.customBody)||(A==null?0:A.keepAlive)?!1:!BJ(this.context)};
Fo.prototype.ping=function(){var A=this;return l1(_.o7.apply(0,arguments).map(function(H){try{var k=A.context.global,d=!1;d=d===void 0?!1:d;k.google_image_requests||(k.google_image_requests=[]);var W=FAw("IMG",k.document);d&&(W.attributionSrc="");W.src=H;k.google_image_requests.push(W);return!0}catch(z){return!1}}).every(function(H){return H}))};
Fo.prototype.pingWithHeadersAndBody=function(A,H,k){this.ping.apply(this,_.fV(_.o7.apply(3,arguments)))};var TFw=function(A){this.context=A};
TFw.prototype.isSupported=function(A){return mZ0&&!BJ(this.context)&&TW8(this.context)!==void 0&&!(A==null?0:A.attributionEnabled)&&(A==null?void 0:A.beaconMethod)!=="POST"&&!(A==null?0:A.customHeaders)&&!(A==null?0:A.customBody)};
TFw.prototype.makeBeacon=function(A,H){if(!this.isSupported(H))throw new zj;return new Xo(this.context,A)};
var mZ0=!1,Xo=function(A,H){this.context=A;this.JSC$9660_urlWithoutToken=H;A=TW8(this.context);if(A===void 0)throw Error();this.wrappedBeacon=new A(JwQ(this),{})},JwQ=function(A){A=A.JSC$9660_urlWithoutToken;
return(A.slice(-1)[0]==="&"?A:A+"&")+"pbapi=1"};
Xo.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Xo.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Xo.prototype.setHeader=function(){};
_.nP.Object.defineProperties(Xo.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9660_urlWithoutToken},
set:function(A){this.JSC$9660_urlWithoutToken=A;this.wrappedBeacon.setURL(JwQ(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(A){if(A!=="GET")throw new zj;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var g3A=function(A){this.context=A};
g3A.prototype.isSupported=function(A){if((A==null?0:A.attributionEnabled)||(A==null?void 0:A.beaconMethod)==="GET"||(A==null?0:A.customHeaders)||(A==null?0:A.customBody)||(A==null?0:A.keepAlive))return!1;var H;return!BJ(this.context)&&((H=this.context.global.navigator)==null?void 0:H.sendBeacon)!==void 0};
g3A.prototype.ping=function(){var A=this;return l1(_.o7.apply(0,arguments).map(function(H){var k;return(k=A.context.global.navigator)==null?void 0:k.sendBeacon(H)}).every(function(H){return H}))};
g3A.prototype.pingWithHeadersAndBody=function(A,H,k){this.ping.apply(this,_.fV(_.o7.apply(3,arguments)))};var Q6=function(A){this.value=A},FE=function(A,H){return l1(A.value).pipe(cy(H))},DL=new Q6(!1),OZW=new Q6(!0);var gW=function(A){this.value=A;this.releasedSubject=new KY};
gW.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.nP.Object.defineProperties(gW.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9673_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var FAC=["FRAME","IMG","IFRAME"],yjW=/^[01](px)?$/,GE8=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},PK8=function(){var A=new GE8;
A.crossDomainLoadedDefault=!0;A.pendingImagesBlockLoad=!0;return A};var b$p=function(A,H){var k=cjI(A);if(k)if(k.onCreativeLoad)k.onCreativeLoad(H);else{var d=H?[H]:[],W=function(z){for(var u=0;u<d.length;++u)try{d[u](1,z)}catch(B){}d={push:function(B){B(1,z)}}};
k.onCreativeLoad=function(z){d.push(z)};
k.setAttribute("data-creative-load-listener","");k.addEventListener("creativeLoad",function(z){W(z.detail)});
_.k8.addEventListener("message",function(z){aLr(k,W,z)})}};var DI=function(A,H){var k=this;this.global=A;this.parentContext=H;this.JSC$9684_onVisibilityChange=this.document?kd(l1(!0),Hy(this.document,"visibilitychange")).pipe(qx(this.parentContext.performanceMonitor,748),ZK(function(){return k.getVisibilityState()}),xd()):l1("visible");
this.document?Hy(this.document,"DOMContentLoaded").pipe(qx(this.parentContext.performanceMonitor,739),et(1)):l1(LAV("DOMContentLoaded"))},hVb=function(A){return A.document!==null&&A.document.visibilityState!==void 0};
DI.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
DI.prototype.querySelector=function(A){return this.document?this.document.querySelector(A):null};
DI.prototype.querySelectorAll=function(A){return this.document?_.tA(this.document.querySelectorAll(A)):[]};
DI.prototype.elementFromPoint=function(A,H){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;A=this.document.elementFromPoint(A,H);return A===null?null:new gW(A)};
var kPI=function(A,H,k){k=k===void 0?!1:k;if(H.ref===void 0||!A.document)return l1(H).pipe(qx(A.parentContext.performanceMonitor,749));var d=new TO(1),W=function(){d.next(H)};
k||b$p(H.ref,W);X4V(H.ref,W);return d.pipe(qx(A.parentContext.performanceMonitor,749),et(1))};
_.nP.Object.defineProperties(DI.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return odV(this.global,"document")?this.global.document||null:null}}});var p4A=_.XO(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Q8I=_.XO(["./reach_worklet.js"]),VBW=_.XO(["./reach_worklet.js"]),LMw=_.XO(["./reach_worklet.html"]),v3k=_.XO(["./reach_worklet.js"]),ywG=_.XO(["./reach_worklet.js"]);_.Ia(LMw);_.Ia(v3k);_.Ia(ywG);var yJ={left:0,top:0,width:0,height:0};var NWX=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),k48=/#|$/,dZQ=/[?&]($|#)/;var LMC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(LMC,_.OW);var b$b=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(b$b,_.OW);var O$v=function(A,H){return _.qC(A,2,H)},g3N=function(A,H){return _.qC(A,3,H)};
b$b.prototype.getModel=function(){return _.O8(this,4)};
var TFI=function(A,H){return _.qC(A,4,H)},hcf=function(A,H){return _.qC(A,5,H)},Jwv=function(A,H){return _.qC(A,9,H)},i$r=function(A,H){return rd(A,10,H)},xZW=function(A,H){return _.tj(A,11,H)},RcA=function(A,H){return _.qC(A,1,H)},mZf=function(A,H){return _.tj(A,7,H)};var BFl="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var XE=function(A,H,k,d){A=A===void 0?window:A;H=H===void 0?null:H;k=k===void 0?new sak:k;d=d===void 0?Egf():d;wyA.call(this);var W=this;this.global=A;this.debugChannel=H;this.performanceMonitor=k;this.onPageHide=bYI(function(){return Hy(W.global,"pagehide")}).pipe(qx(this.performanceMonitor,941));
this.onLoad=bYI(function(){return Hy(W.global,"load")}).pipe(qx(this.performanceMonitor,738),et(1));
this.onResize=bYI(function(){return Hy(W.global,"resize")}).pipe(qx(this.performanceMonitor,741));
this.onMessage=bYI(function(){return Hy(W.global,"message")}).pipe(qx(this.performanceMonitor,740));
this.document=new DI(this.global,this);this.timeProvider=new kEk(new WA0(this.intrinsicFunctionNamespace,this.performanceMonitor),new dCp(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Ajw(new qIw(this),new TFw(this),new qB(this,new BWi(this)),new qB(this,new g3A(this)),new qB(this,new Fo(this)))};
_.I(XE,wyA);XE.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(A){return A}};
var BJ=function(A){var H=A.global;return!!A.global.HTMLFencedFrameElement&&!!H.fence&&typeof H.fence.reportEvent==="function"};
_.q=XE.prototype;_.q.reportFencedFrameEvent=function(A){BJ(this)&&this.global.fence.reportEvent(A)};
_.q.getOnBackgrounded=function(){return this.onPageHide.pipe(qx(this.performanceMonitor,942),cy(this.queue),ZK(function(){}))};
_.q.postMessage=function(A,H,k){k=k===void 0?[]:k;this.global.postMessage(A,H,k)};
_.q.getWidth=function(){return $xX(this.global)?this.global.width:0};
_.q.getHeight=function(){return $xX(this.global)?this.global.height:0};
_.q.isMobile=function(){return Ajm()||HC8()};
var bK=function(A,H){try{var k=q9Q(H,A.global,A.isMobile());return{left:k.left,top:k.top,width:k.getWidth(),height:k.getHeight()}}catch(d){return yJ}};
XE.prototype.validate=function(){var A=this.beaconFactory.isSupported()||BJ(this);return this.global&&this.timeProvider.available()&&A};
var Jj8=function(A){return(A=ywr(A.global))?DK(A):null};
_.nP.Object.defineProperties(XE.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(A){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(A){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!$xX(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}}});_.jsj=!_.n6&&!_.JAC();var RVr=function(A){return A};var mP8=function(A){return A.pipe(d5(function(H){var k=H.endOfSessionReason;var d;return((d=H.viewable)==null?void 0:d.extrapolateToNow().value)||k!=void 0}),et(1),uf())};var XT8=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},DZb=function(A){var H=A.sequenceNumber.toString(10).padStart(2,"0");
H=""+A.startTime+H;A.sequenceNumber<99&&A.sequenceNumber++;return H};var iZI=I4(vy(function(A){return A.endOfSessionReason===void 0}),ZK(function(A){return Object.assign({},A,{timestamps:uK(A)})}),d5(function(A){var H=A.viewable;
A=A.timestamps;var k;return(k=H==null?void 0:H.extrapolateUsingTimestampMap(A).value)!=null?k:!1}),ZK(function(A){var H=A.beaconFactory;
var k=A.timestampedExposureHistory;var d=A.timeOnScreen;var W=A.binaryContext;A=A.timestamps;if(H===void 0||k===void 0||d===void 0||W===void 0)return!1;if(d.extrapolateUsingTimestampMap(A).value.every(function(z){return z>=0}))return!0;
k=k.map(function(z){return z.timestamp+":"+z.value}).join(",");
d=S9f({bin:W,tos:d},A);H.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+d+("&eh="+k)).sendNow();return!0}),vy(function(A){return!A}),uf());var KMC=function(A){return{id:A.pingId,mcvt:A.maxConsecutiveViewTime,p:A.creativePosition,asp:A.adSpeedPosition,tm:A.totalMeasurementTime,tu:A.totalUnviewedTime,mtos:A.maxTimeOnScreen,tos:A.timeOnScreen,v:A.binaryVersion,bin:A.binaryContext,avms:A.measurementStrategy,bs:A.browserSize,mc:A.maximumExposure,"if":A.crossDomainIframeState,vu:A.delayedImpressionJsState,app:A.inApp,mse:A.mraidError,mtop:A.mraidSituation,itpl:A.injectedTemplateId,adk:A.adKey,exk:A.awbidKey,rs:A.requestSource,la:A.isLargeAd,
cr:A.isContentRecommendationAd,uach:A.userAgentClientHints,vs:A.viewState,r:A.reasonCode,pay:A.hasCpmavUrl,co:A.clientPingOrderCounter,rst:A.adRenderStartTime,rpt:A.adRenderPeriodTime,isd:A.initialScrollDepth,lsd:A.loadedScrollDepth,context:A.errorContext,msg:A.errorMessage,stack:A.errorStack,name:A.errorName,ec:A.hasElementChanged,sfr:A.strategyFailureReasons,met:A.creativeSearchResult,wmsd:A.webMeasurementStartDiagnostic,pv:A.pageVisible,epv:A.eosPageVisible,pbe:A.inStatefulBeaconExperiment,fle:A.inFetchLaterBeaconExperiment,
vae:A.inViewableAttributionExperiment,spb:A.supportsPendingBeacon,sfl:A.supportsFetchLater,ffslot:A.isFencedFrameSlotTurtlex,reach:A.sharedStorageReachMode,io2:A.v2VisibilityBitVector,rxdbg:A.rxDebugger,omida:A.omidAppId,omidp:A.omidPartner,omidpv:A.omidPartnerVersion,omidor:A.omidOcclusionReasons,omidv:A.omidVersion,omids:A.omidSessionType,omidam:A.omidAccessMode,omidct:A.omidCreativeType,omidia:A.omidInApp,omiddc:A.omidDeviceCategory,omidlat:A.omidLastActivity,omiddit:A.omidDeviceIdleTime,qid:A.errorEscapedQueryId}};var Tjb=function(A){var H=[];return A.pipe(ZK(function(k){var d=k.beaconFactory,W=k.fetchBeaconFactory,z=k.timeOnScreen,u=k.timeOnScreenUrlPrefixes,B=k.payloadMapper,h=k.timeOnScreenPingId,O=k.timeOnScreenReason,T=k.urlSerializer,m=k.viewable,J=k.hasImpressionFired,g=k.inStatefulBeaconExperiment,v=k.supportsPendingBeacon,y=k.supportsFetchLater,X=k.turtlexReportEventData;if(!k.geometryMeasurable||!J||k.maxTimeOnScreen===void 0||z===void 0||u===void 0||B===void 0||h===void 0||T===void 0||d===void 0)return!1;
if(k.isTurtlex){if(O===void 0)return!1;u=k.reportFencedFrameEvent;if(!u)return!1;u({eventType:"active-view-time-on-screen",eventData:X!=null?X:"",destination:["buyer"]});return!0}if(!(g||y||O))return!1;X=uK(k);var D;m=(D=m==null?void 0:m.extrapolateUsingTimestampMap(X).value)!=null?D:!1;D=T(Object.assign({},k,{pingId:h,viewState:m?4:3,reasonCode:O!=null?O:"u",payloadMapper:B,urlPrefixes:u}),X);if(g){for(;H.length>u.length;)k=void 0,(k=H.shift())==null||k.deactivate();D.forEach(function(N,U){U>=H.length?
H.push(d.makeBeacon(N)):H[U].url=N});
return v&&W&&O!==void 0?(D.forEach(function(N){W.makeBeacon(N).sendNow()}),!0):O!==void 0}if(v&&W&&O!==void 0)return D.forEach(function(N){W.makeBeacon(N).sendNow()}),!0;
if(y&&W){for(;H.length>u.length;)v=void 0,(v=H.shift())==null||v.deactivate();var K=T(Object.assign({},k,{pingId:h,viewState:m?4:3,reasonCode:O!=null?O:"u",payloadMapper:B,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),X)[0];D.forEach(function(N,U){U>=H.length?H.push(d.makeBeacon(K,{endOfSession:!0})):H[U].url=K});
return O!==void 0?(D.forEach(function(N){W.makeBeacon(N).sendNow()}),!0):O!==void 0}return O!==void 0?(D.forEach(function(N){d.makeBeacon(N).sendNow()}),!0):!1}),vy(function(k){return!k}),uf())};var J3A=I4(d5(function(A){return A.immediateUrlPrefixes!==void 0&&A.payloadMapper!==void 0&&A.urlSerializer!==void 0&&A.inferredPingId!==void 0&&A.beaconFactory!==void 0}),d5(function(A){return ldf(A)!==null}),E3l(function(A){return A.activeViewUnmeasurableEvent},function(A){return A.emit}),ZK(function(A){if(A.isTurtlex){var H=A.reportFencedFrameEvent;
if(H){var k;H({eventType:"active-view-unmeasurable",eventData:(k=A.turtlexReportEventData)!=null?k:"",destination:["buyer"]})}}else{k=void 0;var d=ldf(A);if(d==="x"){var W,z=(W=A.geometricMeasurementErrors)!=null?W:A.contextValidationErrors;z&&(H=z.stack,k=z.message)}A.urlSerializer(Object.assign({},A,{urlPrefixes:A.immediateUrlPrefixes,payloadMapper:A.payloadMapper,pingId:A.inferredPingId,viewState:2,reasonCode:d,errorMessage:k,errorStack:H}),uK(A)).forEach(function(u){A.beaconFactory.makeBeacon(u).sendNow()})}}),
et(1),uf());var tvA=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var xP8=I4(d5(function(A){return A.payloadMapper!==void 0&&A.immediateUrlPrefixes!==void 0&&A.urlSerializer!==void 0&&A.inferredPingId!==void 0&&A.beaconFactory!==void 0}),ZK(function(A){return Object.assign({},A,{timestamps:uK(A)})}),d5(function(A){var H=A.viewable;
var k=A.hasImpressionFired;A=A.timestamps;var d;return!!k&&((d=H==null?void 0:H.extrapolateUsingTimestampMap(A).value)!=null?d:!1)}),E3l(function(A){return A.activeViewViewableEvent},function(A){return A.emit}),ZK(function(A){var H=A.beaconFactory,k=A.turtlexReportEventData;
if(A.isTurtlex){var d=A.reportFencedFrameEvent;if(!d)return!1;d({eventType:"active-view-viewable",eventData:k!=null?k:"",destination:["buyer"]});return!0}k=A.urlSerializer(Object.assign({},A,{urlPrefixes:A.immediateUrlPrefixes,payloadMapper:A.payloadMapper,pingId:A.inferredPingId,viewState:4,reasonCode:"v"}),A.timestamps);(d=A.cpmavUrls)&&d.length>0&&A.viewUrlSerializer&&A.viewUrlSerializer(d,A).forEach(function(W){H.makeBeacon(W).sendNow()});
(d=A.viewableRelayUrls)&&d.length>0&&A.viewUrlSerializer&&A.viewUrlSerializer(d,A).forEach(function(W){H.makeBeacon(W).sendNow()});
k.forEach(function(W){H.makeBeacon(W,{attributionEnabled:A.isViewableAttributionEnabled}).sendNow()});
return!0}),vy(function(A){return!A}),uf());var KtI=ZK(function(A){return[A.value.topWindowViewportExternalGeometry.width,A.value.topWindowViewportExternalGeometry.height]});var LC=function(A,H){this.callback=A;this.options=H;this.intersectionObserverV2=this.intersectionObserverV1=null},T0N=function(A,H){H?A.intersectionObserverV2||(H=Object.assign({},A.options,{delay:100,
trackVisibility:!0}),A.intersectionObserverV2=new IntersectionObserver(A.callback,H)):A.intersectionObserverV1||(A.intersectionObserverV1=new IntersectionObserver(A.callback,A.options))},IdZ=function(A,H){A=H?A.intersectionObserverV2:A.intersectionObserverV1;
if(!A)throw new odj;return A};
LC.prototype.observe=function(A,H){IdZ(this,A).observe(H)};
LC.prototype.unobserve=function(A,H){IdZ(this,A).unobserve(H)};
LC.prototype.disconnect=function(A){IdZ(this,A).disconnect()};
LC.prototype.takeRecords=function(A){return IdZ(this,A).takeRecords()};var WtI={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:yJ,topWindowViewportExternalGeometry:yJ,measurementRequests:new KY,elementGeometrySourceName:"ns",elementGeometry:yJ,intersectionGeometry:yJ,viewportLocalAppOffset:{x:0,y:0}};var yaW=jB(I4(ZK(function(A){var H;return(H=A.exposureOverride)!=null?H:JaA(A)}),ZK(function(A){return isFinite(A)?A:0}))),XeW=jB(I4(ZK(function(A){var H;
return(H=A.exposureOverride)!=null?H:JaA(A)}),ZK(function(A){return isFinite(A)?A:-1})));var Sm=function(A,H){this.a=A;this.b=H;if(A.clock.timeline!==H.clock.timeline)throw Error();};
Sm.prototype.equivalentTo=function(A){return A instanceof Sm?this.a.equivalentTo(A.a)&&this.b.equivalentTo(A.b):!1};
Sm.prototype.extrapolateToTime=function(A){var H=this.a.extrapolateToTime(A).value,k=this.b.extrapolateToTime(A).value;return{timestamp:A,value:[H,k]}};
_.nP.Object.defineProperties(Sm.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 A=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),H=this.a.lastMeasurement.timestamp.equals(A)?this.a.lastMeasurement.value:this.a.extrapolateToTime(A).value,k=this.b.lastMeasurement.timestamp.equals(A)?this.b.lastMeasurement.value:this.b.extrapolateToTime(A).value;return{timestamp:A,value:[H,k]}}}});var CO=function(A,H){this.input=A;this.mapFunction=H;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
CO.prototype.equivalentTo=function(A){return A instanceof CO?this.input.equivalentTo(A.input)&&this.mapFunction===A.mapFunction:!1};
CO.prototype.extrapolateToTime=function(A){A=this.input.extrapolateToTime(A);return{timestamp:A.timestamp,value:this.mapFunction(A.value)}};
_.nP.Object.defineProperties(CO.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var KO=function(){};
KO.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
KO.prototype.extrapolateUsingTimestampMap=function(A){var H=this.clock.timeline,k,d=(k=A.get(H))!=null?k:this.clock.now();A.set(H,d);return this.extrapolateToTime(d)};
KO.prototype.map=function(A){return new Y9G(this,A)};
KO.prototype.joinWith=function(A){return new P5J(this,A)};
var P5J=function(){Sm.apply(this,arguments);this.map=KO.prototype.map;this.joinWith=KO.prototype.joinWith;this.extrapolateToNow=KO.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=KO.prototype.extrapolateUsingTimestampMap};
_.I(P5J,Sm);var Y9G=function(){CO.apply(this,arguments);this.map=KO.prototype.map;this.joinWith=KO.prototype.joinWith;this.extrapolateToNow=KO.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=KO.prototype.extrapolateUsingTimestampMap};
_.I(Y9G,CO);var Yg=function(A,H){this.lastMeasurement=H;this.extrapolateToNow=KO.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=KO.prototype.extrapolateUsingTimestampMap;this.map=KO.prototype.map;this.joinWith=KO.prototype.joinWith;this.clock=A};
Yg.prototype.equivalentTo=function(A){return A.active};
Yg.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.nP.Object.defineProperties(Yg.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var CeN=ZK(function(A){if(A.value.viewportGeometrySourceName==="omid"){if(A.value.elementGeometrySourceName==="nio")return"omio";if(A.value.elementGeometrySourceName==="geo")return"omgeo"}return A.value.elementGeometrySourceName==="geo"||A.value.elementGeometrySourceName==="nio"?A.value.viewportGeometrySourceName:A.value.elementGeometrySourceName});var bAb=I4(d5(function(A){return!isNaN(A)}),Je(function(A,H){return isNaN(A)?H:Math.min(A,H)},NaN),xd());var jVQ=jB(I4(ZK(function(A){return A.intersectionGeometry.width*A.intersectionGeometry.height/(A.exposedViewportLocalGeometry.width*A.exposedViewportLocalGeometry.height)}),ZK(function(A){return isFinite(A)?Math.min(1,A):0})));var SiX=I4(jB(ZK(function(A){A=A.exposureOverride?A.elementGeometry.width*A.elementGeometry.height*A.exposureOverride/(A.topWindowViewportExternalGeometry.width*A.topWindowViewportExternalGeometry.height):A.intersectionGeometry.width*A.intersectionGeometry.height/(A.topWindowViewportExternalGeometry.width*A.topWindowViewportExternalGeometry.height);return isFinite(A)?A:0})));var peN=function(A,H){var k=this;this.timeProvider=A;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=H.pipe(xd()).subscribe(function(d){VC8(k);k.measurementRequestObserver=d})},EUr=function(A,H){VC8(A);
A.lastMeasurementRequest=A.timeProvider.setTimeout(function(){var k;return void((k=A.measurementRequestObserver)==null?void 0:k.next())},H)},VC8=function(A){A.lastMeasurementRequest!==null&&A.timeProvider.clearTimeout(A.lastMeasurementRequest);
A.lastMeasurementRequest=null};
peN.prototype.dispose=function(){VC8(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var G4G=function(){};var uQX=function(A,H){this.context=A;this.strategies=H};
_.I(uQX,G4G);uQX.prototype.buildGeometrySource=function(A,H){var k=this.strategies.map(function(z){return z.buildGeometrySource(A,H)}),d=MCf(k.map(function(z){return z.geometrySource})),W=d.capturedErrors.pipe(FMw());
return{geometrySource:d.chain.pipe(cy(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:W,strategyErrors:d.capturedErrors}].concat(_.fV(k.map(function(z){return z.additionalOutputs}))))}};
var FMw=function(){return Je(function(A,H){H instanceof eB?A.push(H.measurementStrategyFailureReason):A.push(-1);return A},[])};var eVN=function(A,H){this.context=A;this.poller=H};
_.I(eVN,G4G);eVN.prototype.buildGeometrySource=function(A,H){var k=nUC(f5I(this.context,this.poller),zLV(this.context,H.requestSource));return{geometrySource:N0r(A.measurableCreative.pipe(k),H.inApp),additionalOutputs:{}}};var BjN=function(A,H,k){k=k===void 0?xUW(A,H):k;this.context=A;this.intersectionObserverStrategy=k};
_.I(BjN,G4G);BjN.prototype.buildGeometrySource=function(A,H){var k=this.intersectionObserverStrategy(H.useV2);return{geometrySource:N0r(A.measurableCreative.pipe(k,iAC(this.context)),H.inApp),additionalOutputs:{}}};var XTZ=function(A,H,k){var d=d===void 0?Symbol():d;this.element=A;this.immediateUrls=H;this.timeOnScreenUrls=k;this.symbol=d};var cal=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),HZX=Object.freeze([1,.75,cal.exposureThreshold,cal.largeAdExposureThreshold,0]);var HzA=function(A,H){H=H===void 0?36E5:H;var k=k===void 0?!0:k;this.creatives=new KY;this.elementsToUnregister=new KY;this.elementMap=new Map;var d=new XE(window,null);d.beaconFactory=new qB(d,new Fo(d));r3V(d,this.creatives,this.elementsToUnregister,A,H,k).subscribe()},dDf=function(A,H,k,d){if(!A.elementMap.has(H)){var W=new gW(H);
A.elementMap.set(H,W);A.creatives.next(new XTZ(W,k,d))}},k1A=function(A,H){A.elementsToUnregister.next(H);
var k=A.elementMap.get(H);k!==void 0&&(k.release(),A.elementMap.delete(H))};var Tbv=function(A){var H=A.url;A=A.uaDataValues;this.JSC$9789_url_=H;this.uaDataValues_=A;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var k=/[?&]([^&=]+)=([^&]*)/g;A=k.exec(H);)this.urlParamValues_[A[1]]=A[2]},mtI=function(A){A=A.uaDataValues_;
if(!A)return"";var H=SB("uap",A.platform)+SB("uapv",A.platformVersion)+SB("uafv",A.uaFullVersion)+SB("uaa",A.architecture)+SB("uam",A.model)+SB("uab",A.bitness);A.fullVersionList&&(H+="&uafvl="+encodeURIComponent(A.fullVersionList.map(function(k){return encodeURIComponent(k.brand)+";"+encodeURIComponent(k.version)}).join("|")));
A.wow64!=null&&(H+="&uaw="+Number(A.wow64));return H.slice(1)};var DZp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(DZp,_.OW);DZp.prototype.getId=function(){return _.O8(this,1)};var aM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(aM,_.OW);aM.prototype.getSeconds=function(){return ip(this,1)};
aM.prototype.setSeconds=function(A){return _.zw(this,1,gL(A),"0")};_.RI=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(_.RI,_.OW);_.RI.prototype.getSeconds=function(){return ip(this,1)};
_.RI.prototype.setSeconds=function(A){return _.zw(this,1,gL(A),"0")};
_.S90=function(A){var H=Number(T5(A,1));A=_.QJ(A,2);return new Date(H*1E3+A/1E6)};var cJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(cJ,_.OW);cJ.prototype.getUrl=function(){return _.O8(this,1)};
cJ.prototype.setUrl=function(A){return _.F1(this,1,A)};
cJ.prototype.getHeight=function(){return _.QJ(this,2)};
cJ.prototype.getWidth=function(){return _.QJ(this,3)};var pO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(pO,_.OW);pO.prototype.getAspectRatio=function(){return hY(this,1)};
pO.prototype.getDuration=function(){return _.Af(this,aM,2)};var C5w=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(C5w,_.OW);var KMw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(KMw,_.OW);var ad1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(ad1,_.OW);var cwj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(cwj,_.OW);var pTA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(pTA,_.OW);var QsG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(QsG,_.OW);var VvN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(VvN,_.OW);var E3N=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(E3N,_.OW);var UZp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(UZp,_.OW);var QZ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(QZ,_.OW);var VZ=[2,4,5,6,7];var ld0=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(ld0,_.OW);var up=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(up,_.OW);_.q=up.prototype;_.q.getId=function(){return _.Af(this,DZp,1)};
_.q.getName=function(){return _.O8(this,2)};
_.q.setDescription=function(A){return _.F1(this,3,A)};
_.q.getUrl=function(){return _.O8(this,8)};
_.q.setUrl=function(A){return _.F1(this,8,A)};
var EX=function(A){return _.c4(A,cJ,10,_.pC())};
up.prototype.getOwner=function(A){return _.kww(this,40,A)};
var UX=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(UX,_.OW);_.lP=[0,XM,MnA];_.tK=[0,XM,MnA];var tvk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(tvk,_.OW);var NB=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(NB,_.OW);NB.prototype.getStatus=function(){return _.RX(this,1)};
NB.prototype.removeItem=function(A){return $iJ(this,2,A)};var NFA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(NFA,_.OW);NFA.prototype.getName=function(){return _.O8(this,8)};var MB=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(MB,_.OW);MB.prototype.getCommand=function(){return _.RX(this,1)};
MB.prototype.getSource=function(){return _.Af(this,NFA,2)};
MB.prototype.setVisible=function(A){return _.BB(this,5,A)};
MB.prototype.removeItem=function(A){return $iJ(this,7,A)};var MvG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(MvG,_.OW);MvG.prototype.getCommand=function(){return _.RX(this,1)};
MvG.prototype.removeItem=function(A){return $iJ(this,4,A)};
var n3Z=_.Xf(MvG);var nO=function(A,H,k){k=k===void 0?Error():k;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=A;H+=":";k instanceof Error?(this.message=H+k.message,this.stack=k.stack||""):(this.message=H+String(k),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.I(nO,Error);_.dF=function(){this.JSC$9847_disposed_=this.JSC$9847_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.dF.prototype.JSC$9847_disposed_=!1;_.dF.prototype.isDisposed=function(){return this.JSC$9847_disposed_};
_.dF.prototype.dispose=function(){this.JSC$9847_disposed_||(this.JSC$9847_disposed_=!0,this.disposeInternal())};
_.dF.prototype[Symbol.dispose]=function(){this.dispose()};
_.ZL=function(A,H){A.addOnDisposeCallback(_.H0(_.CC,H))};
_.dF.prototype.addOnDisposeCallback=function(A,H){this.JSC$9847_disposed_?H!==void 0?A.call(H):A():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),H&&(A=A.bind(H)),this.onDisposeCallbacks_.push(A))};
_.dF.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var ZI=function(A){_.dF.call(this);this.wpc=A};
_.I(ZI,_.dF);ZI.prototype.xzK=function(){return this.wpc.f()};
ZI.prototype.ggY=function(A){return this.wpc.c(A)};
ZI.prototype.jS=function(A){return this.wpc.m(y3I(A))};
ZI.prototype.zUM=function(A){return this.wpc.mws(y3I(A))};
var a8=function(A){_.dF.call(this);var H=this;this.vm=A;this.lxa="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.sPo=void 0;this.sb6=this.vm.p;this.gmt=this.kKX.bind(this);this.addOnDisposeCallback(function(){return void Z$k(H)})};
_.I(a8,_.dF);var fd0=function(A){var H;return _.e(function(k){if(k.nextAddress==1){if(!A.vm.wpc)throw new nO(30,"NWA");return A.r8X?k.return(A.r8X):k.yield(A.vm.wpc(),2)}H=k.yieldResult;A.r8X=new ZI(H);return k.return(A.r8X)})};
a8.prototype.snapshot=function(A){return this.vm.s(Object.assign({},A.sq&&{c:A.sq},A.sLA&&{s:A.sLA},A.gl1!==void 0&&{p:A.gl1}))};
a8.prototype.kKX=function(A){this.vm.e(A)};
a8.prototype.jmM=function(A,H){return this.vm.c(A,H,!1)};
var Z$k=function(A){A.sPo!==void 0&&(A.lxa.forEach(function(H){var k;(k=A.sPo)==null||k.removeEventListener(H,A.gmt)}),A.sPo=void 0)};
a8.prototype.r4r=function(){return this.vm.l()};var fO=function(){_.dF.apply(this,arguments);this.dXU=1};
_.I(fO,_.dF);fO.prototype.share=function(){if(this.isDisposed())throw Error("qa");this.dXU++;return this};
fO.prototype.dispose=function(){--this.dXU||_.dF.prototype.dispose.call(this)};var wTJ=function(A){this.ipL=A;A.addNewEventMetric("/client_streamz/bg/frs",_.UI("mk"))};
wTJ.prototype.record=function(A,H){this.ipL.record("/client_streamz/bg/frs",A,H)};
var o30=function(A){this.t19=A;A.addNewEventMetric("/client_streamz/bg/wrl",_.UI("mn"),EI("ac"),EI("sc"),_.UI("rk"),_.UI("mk"))};
o30.prototype.record=function(A,H,k,d,W,z){this.t19.record("/client_streamz/bg/wrl",A,H,k,d,W,z)};
var $Zw=function(A){this.nMZ=A;A.addNewCounter("/client_streamz/bg/ec",_.UI("en"),_.UI("mk"))};
$Zw.prototype.increment=function(A,H){this.nMZ.JSC$10100_incrementCounter("/client_streamz/bg/ec",A,H)};
var AaZ=function(A){this.fzw=A;A.addNewEventMetric("/client_streamz/bg/el",_.UI("en"),_.UI("mk"))};
AaZ.prototype.record=function(A,H,k){this.fzw.record("/client_streamz/bg/el",A,H,k)};
var HAN=function(A){this.zd9=A;A.addNewCounter("/client_streamz/bg/cec",EI("ec"),_.UI("mk"))};
HAN.prototype.increment=function(A,H){this.zd9.JSC$10100_incrementCounter("/client_streamz/bg/cec",A,H)};
var sVj=function(A){this.oM4=A;A.addNewCounter("/client_streamz/bg/po/csc",EI("cs"),_.UI("mk"))};
sVj.prototype.increment=function(A,H){this.oM4.JSC$10100_incrementCounter("/client_streamz/bg/po/csc",A,H)};
var kW1=function(A){this.hdj=A;A.addNewCounter("/client_streamz/bg/po/ctav",_.UI("av"),_.UI("mk"))};
kW1.prototype.increment=function(A,H){this.hdj.JSC$10100_incrementCounter("/client_streamz/bg/po/ctav",A,H)};
var dUw=function(A){this.qbw=A;A.addNewCounter("/client_streamz/bg/po/cwsc",_.UI("su"),_.UI("mk"))};
dUw.prototype.increment=function(A,H){this.qbw.JSC$10100_incrementCounter("/client_streamz/bg/po/cwsc",A,H)};var HGl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(HGl,_.OW);var AnW=function(A,H){return _.dO(A,3,H,FGI)};var Wtw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Wtw,_.OW);var zLj=[1,2,3];var qiJ=[0,zLj,_.pX,npZ,wzw];var raA=[0,_.QV,[0,G5,_.FM]];var uCG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(uCG,_.OW);var B0i=[1,2,3];var eLA=[0,B0i,tnw,Q7Z,_.VV,raA];var xUi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(xUi,_.OW);var iAw=[0,_.QV,qiJ,eLA];var hLj=[0,_.aX];var OAi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(OAi,_.OW);var RLN=[0,_.aX,-1,_.CX];var T0A=[0,_.aX,-1,_.Sa,_.CX];var mUw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(mUw,_.OW);var Jak=[1,2,3];var gUw=[0,Jak,_.VV,RLN,_.VV,T0A,_.VV,hLj];var bAp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(bAp,_.OW);bAp.prototype.JSC$9920_serializeBinary=u9N([0,_.aX,gUw,opA,_.QV,iAw,Zxi,_.fyA]);var Ltw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Ltw,_.OW);var jV1=function(A){var H=new bAp;H=_.qC(H,1,A.JSC$10036_metricName);var k=vU1(A);H=_.dO(H,3,k,_.I_);k=[];for(var d=[],W=_.r(A.cellMap.keys()),z=W.next();!z.done;z=W.next())d.push(z.value.split(","));for(W=0;W<d.length;W++){z=d[W];for(var u=A.cellType,B=A.getCells(z)||[],h=[],O=0;O<B.length;O++){var T=B[O],m=T&&T.cellValue;T=new uCG;switch(u){case 3:m=Number(m);Number.isFinite(m)&&zg(T,1,B0i,gL(m));break;case 2:zg(T,2,B0i,_.sB(Number(m)))}h.push(T)}u=h;for(B=0;B<u.length;B++){h=u[B];O=new xUi;h=_.Sn(O,
2,h);O=[];T=yai(A);for(m=0;m<T.length;m++){var J=T[m],g=z[m],v=new Wtw;switch(J){case 3:zg(v,1,zLj,Ge(String(g)));break;case 2:J=Number(g);Number.isFinite(J)&&zg(v,2,zLj,_.BR(J));break;case 1:zg(v,3,zLj,Ywv(g==="true"))}O.push(v)}rd(h,1,O);k.push(h)}}rd(H,4,k);return H};var I5Z=function(A){if(!A)return"";if(/^about:(?:blank|srcdoc)$/.test(A))return window.origin||"";A.indexOf("blob:")===0&&(A=A.substring(5));A=A.split("#")[0].split("?")[0];A=A.toLowerCase();A.indexOf("//")==0&&(A=window.location.protocol+A);/^[\w\-]*:\/\//.test(A)||(A=window.location.href);var H=A.substring(A.indexOf("://")+3),k=H.indexOf("/");k!=-1&&(H=H.substring(0,k));k=A.substring(0,A.indexOf("://"));if(!k)throw Error("ra`"+A);if(k!=="http"&&k!=="https"&&k!=="chrome-extension"&&k!=="moz-extension"&&
k!=="file"&&k!=="android-app"&&k!=="chrome-search"&&k!=="chrome-untrusted"&&k!=="chrome"&&k!=="app"&&k!=="devtools")throw Error("sa`"+k);A="";var d=H.indexOf(":");if(d!=-1){var W=H.substring(d+1);H=H.substring(0,d);if(k==="http"&&W!=="80"||k==="https"&&W!=="443")A=":"+W}return k+"://"+H+A};var Pew=function(A,H,k){var d=String(_.k8.location.href);return d&&A&&H?[H,Yii(I5Z(d),A,k||null)].join(" "):null},Yii=function(A,H,k){var d=[],W=[];
if((Array.isArray(k)?2:1)==1)return W=[H,A],_.t3(d,function(B){W.push(B)}),GW0(W.join(" "));
var z=[],u=[];_.t3(k,function(B){u.push(B.key);z.push(B.value)});
k=Math.floor((new Date).getTime()/1E3);W=z.length==0?[k,H,A]:[z.join(":"),k,H,A];_.t3(d,function(B){W.push(B)});
A=GW0(W.join(" "));A=[k,A];u.length==0||A.push(u.join(""));return A.join("_")},GW0=function(A){var H=DPQ();
H.update(A);return H.digestString().toLowerCase()};var FtA;_.q=lK.prototype;_.q.isEnabled=function(){if(!_.k8.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};
_.q.set=function(A,H,k){var d=!1;if(typeof k==="object"){var W=k.sameSite;d=k.secure||!1;var z=k.domain||void 0;var u=k.path||void 0;var B=k.maxAge}if(/[;=\s]/.test(A))throw Error("ta`"+A);if(/[;\r\n]/.test(H))throw Error("ua`"+H);B===void 0&&(B=-1);k=z?";domain="+z:"";u=u?";path="+u:"";d=d?";secure":"";B=B<0?"":B==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+B*1E3)).toUTCString();this.JSC$9931_document_.cookie=A+"="+H+k+u+B+d+(W!=null?";samesite="+W:"")};
_.q.get=function(A,H){for(var k=A+"=",d=(this.JSC$9931_document_.cookie||"").split(";"),W=0,z;W<d.length;W++){z=Rb(d[W]);if(z.lastIndexOf(k,0)==0)return z.slice(k.length);if(z==A)return""}return H};
_.q.remove=function(A,H,k){var d=this.containsKey(A);this.set(A,"",{maxAge:0,path:H,domain:k});return d};
_.q.getKeys=function(){return FtA(this).keys};
_.q.getValues=function(){return FtA(this).values};
_.q.isEmpty=function(){return!this.JSC$9931_document_.cookie};
_.q.getCount=function(){return this.JSC$9931_document_.cookie?(this.JSC$9931_document_.cookie||"").split(";").length:0};
_.q.containsKey=function(A){return this.get(A)!==void 0};
_.q.containsValue=function(A){for(var H=FtA(this).values,k=0;k<H.length;k++)if(H[k]==A)return!0;return!1};
_.q.clear=function(){for(var A=FtA(this).keys,H=A.length-1;H>=0;H--)this.remove(A[H])};
FtA=function(A){A=(A.JSC$9931_document_.cookie||"").split(";");for(var H=[],k=[],d,W,z=0;z<A.length;z++)W=Rb(A[z]),d=W.indexOf("="),d==-1?(H.push(""),k.push(W)):(H.push(W.substring(0,d)),k.push(W.substring(d+1)));return{keys:H,values:k}};
_.x6=new lK(typeof document=="undefined"?null:document);var EeA,Xei;EeA=function(){var A=_.k8.__SAPISID||_.k8.__APISID||_.k8.__3PSAPISID||_.k8.__1PSAPISID||_.k8.__OVERRIDE_SID;if(A)return!0;typeof document!=="undefined"&&(A=new lK(document),A=A.get("SAPISID")||A.get("APISID")||A.get("__Secure-3PAPISID")||A.get("__Secure-1PAPISID"));return!!A};
Xei=function(A,H,k,d){(A=_.k8[A])||typeof document==="undefined"||(A=(new lK(document)).get(H));return A?Pew(A,k,d):null};
_.MDW=function(A){var H=I5Z(_.k8==null?void 0:_.k8.location.href),k=[];if(EeA()){H=H.indexOf("https:")==0||H.indexOf("chrome-extension:")==0||H.indexOf("chrome-untrusted://new-tab-page")==0||H.indexOf("moz-extension:")==0;var d=H?_.k8.__SAPISID:_.k8.__APISID;d||typeof document==="undefined"||(d=new lK(document),d=d.get(H?"SAPISID":"APISID")||d.get("__Secure-3PAPISID"));(d=d?Pew(d,H?"SAPISIDHASH":"APISIDHASH",A):null)&&k.push(d);H&&((H=Xei("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",A))&&k.push(H),
(A=Xei("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",A))&&k.push(A))}return k.length==0?null:k.join(" ")};var DUk=function(){this.minSize=1024};
DUk.prototype.compress=function(A){var H,k,d,W;return _.e(function(z){switch(z.nextAddress){case 1:return H=new CompressionStream("gzip"),k=(new Response(H.readable)).arrayBuffer(),d=H.writable.getWriter(),z.yield(d.write((new TextEncoder).encode(A)),2);case 2:return z.yield(d.close(),3);case 3:return W=Uint8Array,z.yield(k,4);case 4:return z.return(new W(z.yieldResult))}})};
DUk.prototype.isSupported=function(A){return A<this.minSize?!1:typeof CompressionStream!=="undefined"};var SiA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(SiA,_.OW);var wS=function(A,H){this.intervalMs=A;this.callback=H;this.enabled=!1;this.nowFn=function(){return _.Vj()};
this.lastTimeMs=this.nowFn()};
wS.prototype.setInterval=function(A){this.intervalMs=A;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
wS.prototype.start=function(){var A=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){A.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
wS.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
wS.prototype.tick=function(){var A=this;if(this.enabled){var H=Math.max(this.nowFn()-this.lastTimeMs,0);H<this.intervalMs*.8?this.timer=setTimeout(function(){A.tick()},this.intervalMs-H):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var CeA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(CeA,_.OW);var KtJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(KtJ,_.OW);var a5w=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(a5w,_.OW);a5w.prototype.getTransmissionType=function(){return _.RX(this,1)};
a5w.prototype.getRetryCount=function(){return _.QJ(this,3)};var aRr=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(aRr,_.OW);var oM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(oM,_.OW);var KFI=function(A){rd(c3X,1,A)};
oM.prototype.getModel=function(){return _.O8(this,6)};
var caN=_.Xf(oM);var peA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(peA,_.OW);var SDr=["platform","platformVersion","architecture","model","uaFullVersion"],c3X=new oM,CtW=null;var $X=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I($X,_.OW);var QVA=function(A){return _.HL(A,1,1)};var VCZ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A,4)};
_.I(VCZ,_.OW);_.As=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A,36)};
_.I(_.As,_.OW);_.As.prototype.getExperimentIds=function(){return _.Af(this,SiA,16)};var EUG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A,19)};
_.I(EUG,_.OW);EUG.prototype.setLogSource=function(A){return _.HL(this,2,A)};
EUG.prototype.setScheduler=function(A){return _.HL(this,10,A)};var l5A=function(A,H){this.isServiceWorkerScope=H=H===void 0?!1:H;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new EUG;Number.isInteger(A)&&this.logRequest.setLogSource(A);H||(this.locale=document.documentElement.getAttribute("lang"));UU0(this,new $X)};
l5A.prototype.setLogSource=function(A){this.logRequest.setLogSource(A);return this};
var UU0=function(A,H){_.Sn(A.logRequest,1,H);_.RX(H,1)||QVA(H);A.isServiceWorkerScope||(H=HS(A),_.O8(H,5)||_.qC(H,5,A.locale));A.uach&&(H=HS(A),_.Af(H,oM,9)||_.Sn(H,9,A.uach))},tCA=function(A,H){A.transmissionType=H},N0G=function(A){var H=H===void 0?SDr:H;
var k=A.isServiceWorkerScope?void 0:R8();k?pI8(k,H).then(function(d){A.uach=caN(d!=null?d:"[]");d=HS(A);_.Sn(d,9,A.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},HS=function(A){var H=_.Af(A.logRequest,$X,1);
H||(H=new $X,UU0(A,H));A=H;H=_.Af(A,peA,11);H||(H=new peA,_.Sn(A,11,H));return H};
l5A.prototype.build=function(A,H,k,d,W,z){H=H===void 0?0:H;k=k===void 0?0:k;d=d===void 0?null:d;W=W===void 0?0:W;z=z===void 0?0:z;if(!this.isServiceWorkerScope){var u=HS(this);var B=new a5w;B=_.HL(B,1,this.transmissionType);B=_.tj(B,2,this.isFinal);k=_.gd(B,3,k>0?k:void 0);k=_.gd(k,4,W>0?W:void 0);k=_.gd(k,5,z>0?z:void 0);W=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;z=W[_.qQ]|0;k=Pj(k,z)?k:Q_Q(k,W,z)?pRl(k,W):new k.constructor(lQ(W,z,!0));_.Sn(u,10,k)}u=this.logRequest.clone();k=Date.now().toString();
u=_.sY(u,4,gL(k));A=A.slice();A=rd(u,3,A);d&&(u=new CeA,d=_.gd(u,13,d),u=new KtJ,d=_.Sn(u,2,d),u=new VCZ,d=_.Sn(u,1,d),d=_.HL(d,2,9),_.Sn(A,18,d));H&&_.hb(A,14,H);return A};NC.prototype.currBackoffCount_=0;NC.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
NC.prototype.getValue=function(){return this.currValue_};
var MC0=function(A){A.currBaseValue_=Math.min(A.maxValue_,A.currBaseValue_*A.backoffFactor_);A.currValue_=Math.min(A.maxValue_,A.currBaseValue_+(A.randomFactor_?Math.round(A.randomFactor_*(Math.random()-.5)*2*A.currBaseValue_):0));A.currBackoffCount_++};var kMw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A,8)};
_.I(kMw,_.OW);var nUw=_.Xf(kMw);var dXw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(dXw,_.OW);var sx;sx=new WJG;var kz=function(A){_.dF.call(this);var H=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$10009_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$10009_sendBeaconApiEnabled=!1;this.logSource=A.logSource;this.getAuthHeaderValue=
A.getAuthHeaderValue||function(){};
this.logRequestBuilder=new l5A(A.logSource,A.isServiceWorkerScope);this.network=A.network||null;this.productID=A.productID||null;this.bufferSize=1E3;this.clearcutUrl=A.urlOverride||null;this.sessionIndex=A.sessionIndex||null;this.disableAutomaticFlush=A.disableAutomaticFlush||!1;this.withCredentials=!A.disableWithCredentials;this.isServiceWorkerScope=A.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!R8()&&!!R8().navigator&&R8().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(ZAA())).searchParams&&!!(new URL(ZAA())).searchParams.set;var k=QVA(new $X);UU0(this.logRequestBuilder,k);this.flushBackoff=new NC(1E4,3E5,.1);A=f5J(this,A.backgroundJobDeferrer);this.JSC$10009_flushTimer=new wS(this.flushBackoff.getValue(),A);this.backupTimer=new wS(6E5,A);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){weA(H);
var d;(d=H.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){weA(H);
var d;(d=H.metalogService)==null||d.flush()}))};
_.I(kz,_.dF);var f5J=function(A,H){return A.isBrowserSupported?H?function(){H().then(function(){A.flush()})}:function(){A.flush()}:function(){}};
kz.prototype.disposeInternal=function(){weA(this);this.JSC$10009_flushTimer.stop();this.backupTimer.stop();_.dF.prototype.disposeInternal.call(this)};
var oUi=function(A){A.clearcutUrl||(A.clearcutUrl=ZAA());try{return(new URL(A.clearcutUrl)).toString()}catch(H){return(new URL(A.clearcutUrl,R8().location.origin)).toString()}};
kz.prototype.dispatch=function(A){if(A instanceof _.As)this.log(A);else try{var H=new _.As,k=A.serialize();var d=_.qC(H,8,k);this.log(d)}catch(W){d3(this,4,1)}};
var d3=function(A,H,k){A.metalogService&&A.metalogService.increment(H,k)};
kz.prototype.log=function(A){d3(this,2,1);if(this.isBrowserSupported){A=A.clone();var H=this.sequencePosition++;A=_.hb(A,21,H);this.componentId&&_.qC(A,26,this.componentId);H=A;if(NwW(_.kV(H,1))==null){var k=Date.now();k=Number.isFinite(k)?k.toString():"0";_.sY(H,1,gL(k))}_.AGA(H,15)!=null||_.hb(H,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(k=this.experimentIds.clone(),_.Sn(H,16,k));d3(this,1,1);H=this.pendingEvents.length-this.bufferSize+1;H>0&&(this.pendingEvents.splice(0,H),this.numLogsDroppedSinceLastFlush+=
H,d3(this,3,H));this.pendingEvents.push(A);this.disableAutomaticFlush||this.JSC$10009_flushTimer.enabled||this.JSC$10009_flushTimer.start()}};
kz.prototype.flush=function(A,H){var k=this;if(this.pendingEvents.length===0)A&&A();else if(this.JSC$10009_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,$Uw(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)H&&H("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?tCA(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var W=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)H&&H("stale-auth-token");else{this.pendingEvents=[];this.JSC$10009_flushTimer.enabled&&this.JSC$10009_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;d=z.serialize();var B;this.JSC$10009_compressor&&this.JSC$10009_compressor.isSupported(d.length)&&
(B=this.JSC$10009_compressor.compress(d));var h=A3i(this,d,u),O=function(J){k.flushBackoff.reset();k.JSC$10009_flushTimer.setInterval(k.flushBackoff.getValue());if(J){var g=null;try{var v=JSON.stringify(JSON.parse(J.replace(")]}'\n","")));g=nUw(v)}catch(y){}g&&(J=Number(ip(g,1,_.cj("-1"))),J>0&&(k.startWaitingMs=Date.now(),k.noFlushUntilMs=k.startWaitingMs+J),hMv(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,sx.fieldIndex),xim(g,sx.fieldIndex),g=sx.ctor?sx.getExtensionFn(g,sx.ctor,sx.fieldIndex,
sx.JSC$9189_hasMessageId):sx.getExtensionFn(g,sx.fieldIndex,null,sx.JSC$9189_hasMessageId),g=g===null?void 0:g)&&(g=_.QJ(g,1,-1),g!==-1&&(k.flushBackoff=new NC(g<1?1:g,3E5,.1),k.JSC$10009_flushTimer.setInterval(k.flushBackoff.getValue())))}A&&A();k.numRetriesSinceLastSuccessfulFlush=0},T=function(J,g){var v=_.c4(z,_.As,3,_.pC());
var y=Number(ip(z,14));MC0(k.flushBackoff);k.JSC$10009_flushTimer.setInterval(k.flushBackoff.getValue());J===401&&u&&(k.lastFailedAuth=u);y&&(k.numLogsDroppedSinceLastFlush+=y);g===void 0&&(g=k.isRetryable(J));g&&(k.pendingEvents=v.concat(k.pendingEvents),k.disableAutomaticFlush||k.JSC$10009_flushTimer.enabled||k.JSC$10009_flushTimer.start());d3(k,7,1);H&&H("net-send-failed",J);++k.numRetriesSinceLastSuccessfulFlush},m=function(){k.network&&k.network.send(h,O,T)};
B?B.then(function(J){d3(k,5,W);h.requestHeaders["Content-Encoding"]="gzip";h.requestHeaders["Content-Type"]="application/binary";h.body=J;h.bodyType=2;m()},function(){d3(k,6,W);
m()}):m()}}}};
var A3i=function(A,H,k){k=k===void 0?null:k;var d=d===void 0?A.withCredentials:d;var W={},z=new URL(oUi(A));k&&(W.Authorization=k);A.sessionIndex&&(W["X-Goog-AuthUser"]=A.sessionIndex,z.searchParams.set("authuser",A.sessionIndex));A.pageId&&(Object.defineProperty(W,"X-Goog-PageId",{value:A.pageId}),z.searchParams.set("pageId",A.pageId));return{url:z.toString(),body:H,bodyType:1,requestHeaders:W,requestType:"POST",withCredentials:d,timeoutMillis:A.timeoutMillis}},weA=function(A){A.logRequestBuilder.isFinal=
!0;
A.flush();A.logRequestBuilder.isFinal=!1},$Uw=function(A){HZA(A,function(H,k){H=new URL(H);
H.searchParams.set("format","json");var d=!1;try{d=R8().navigator.sendBeacon(H.toString(),k.serialize())}catch(W){}d||(A.isSendBeaconSupported=!1);return d})},HZA=function(A,H){if(A.pendingEvents.length!==0){var k=new URL(oUi(A));
k.searchParams.delete("format");var d=A.getAuthHeaderValue();d&&k.searchParams.set("auth",d);k.searchParams.set("authuser",A.sessionIndex||"0");for(d=0;d<10&&A.pendingEvents.length;++d){var W=A.pendingEvents.slice(0,32),z=A.logRequestBuilder.build(W,A.numLogsDroppedSinceLastFlush,A.numRetriesSinceLastSuccessfulFlush,A.productID,A.persistedLogRecoveredCount,A.persistedLogExpiredCount);if(!H(k.toString(),z)){++A.numRetriesSinceLastSuccessfulFlush;break}A.numLogsDroppedSinceLastFlush=0;A.numRetriesSinceLastSuccessfulFlush=
0;A.persistedLogRecoveredCount=0;A.persistedLogExpiredCount=0;A.pendingEvents=A.pendingEvents.slice(W.length)}A.JSC$10009_flushTimer.enabled&&A.JSC$10009_flushTimer.stop()}};
kz.prototype.isRetryable=function(A){return 500<=A&&A<600||A===401||A===0};
var ZAA=function(){return"https://play.google.com/log?format=json&hasfast=true"};var sxw=function(){this.abortSupported=typeof AbortController!=="undefined"};
sxw.prototype.send=function(A,H,k){var d=this,W,z,u,B,h,O,T,m,J,g;return _.e(function(v){switch(v.nextAddress){case 1:return z=(W=d.abortSupported?new AbortController:void 0)?setTimeout(function(){W.abort()},A.timeoutMillis):void 0,_.S_(v,2,3),u=Object.assign({},{method:A.requestType,
headers:Object.assign({},A.requestHeaders)},A.body&&{body:A.body},A.withCredentials&&{credentials:"include"},{signal:A.timeoutMillis&&W?W.signal:null}),v.yield(fetch(A.url,u),5);case 5:B=v.yieldResult;if(B.status!==200){(h=k)==null||h(B.status);v.jumpTo(3);break}if((O=H)==null){v.jumpTo(7);break}return v.yield(B.text(),8);case 8:O(v.yieldResult);case 7:case 3:_.KV(v);clearTimeout(z);_.QA(v,0);break;case 2:T=_.VA(v);switch((m=T)==null?void 0:m.name){case "AbortError":(J=k)==null||J(408);break;default:(g=
k)==null||g(400)}v.jumpTo(3)}})};
sxw.prototype.getTransmissionType=function(){return 4};_.nC=function(A,H){H=H===void 0?"0":H;_.dF.call(this);this.logSource=A;this.sessionIndex=H;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$10027_clearExperimentIds=this.productID=null;this.JSC$10027_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.I(_.nC,_.dF);var wIQ=function(A,H){A.buildLabel=H;return A},fR8=function(A,H){A.network=H;
return A},$PI=function(A,H){A.JSC$10027_clearExperimentIds=H},ZZI=function(A){A.JSC$10027_sendBeaconApiEnabled=!0;
return A};
_.nC.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.nC.prototype.build=function(){this.network||(this.network=new sxw);var A=new kz({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.MDW,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.ZL(this,A);if(this.buildLabel){var H=this.buildLabel,k=
HS(A.logRequestBuilder);_.qC(k,7,H)}A.JSC$10009_compressor=new DUk;this.componentId&&(A.componentId=this.componentId);this.productID&&(A.productID=this.productID);this.pageId&&(A.pageId=this.pageId);this.JSC$10027_clearExperimentIds&&((k=this.JSC$10027_clearExperimentIds)?(A.experimentIds||(A.experimentIds=new SiA),H=A.experimentIds,k=k.serialize(),_.qC(H,4,k)):A.experimentIds&&_.sY(A.experimentIds,4));this.JSC$10027_sendBeaconApiEnabled&&(A.JSC$10009_sendBeaconApiEnabled=A.isSendBeaconSupported);
N0G(A.logRequestBuilder);this.bufferSize&&(A.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(A);return A};var sP8=function(A,H,k,d,W,z,u){A=A===void 0?-1:A;H=H===void 0?"":H;k=k===void 0?"":k;d=d===void 0?!1:d;W=W===void 0?"":W;_.dF.call(this);this.logSource=A;this.componentId=H;z?H=z:(A=new _.nC(A,"0"),A.componentId=H,_.ZL(this,A),k!==""&&(A.destinationUrl=k),d&&(A.serviceWorkerScopeEnabled=!0),W&&wIQ(A,W),u&&fR8(A,u),H=A.build());this.JSC$10031_transport=H};
_.I(sP8,_.dF);sP8.prototype.flush=function(A){A=A||[];if(A.length){for(var H=new Ltw,k=[],d=0;d<A.length;d++){var W=A[d],z=jV1(W);k.push(z);W.clear()}rd(H,1,k);this.JSC$10031_transport.dispatch(H);this.JSC$10031_transport.flush()}};var kPw=function(A){this.cellValue=A};var q3=function(A,H,k){this.JSC$10036_metricName=A;this.cellType=H;this.fields=k||[];this.cellMap=new Map},yai=function(A){return A.fields.map(function(H){return H.fieldType})},vU1=function(A){return A.fields.map(function(H){return H.fieldName})};
_.q=q3.prototype;_.q.addCell=function(A){var H=_.o7.apply(1,arguments),k=this.getCells(H);k?k.push(new kPw(A)):this.JSC$10036_setCell(A,H)};
_.q.JSC$10036_setCell=function(A){var H=this.JSC$10036_getKey(_.o7.apply(1,arguments));this.cellMap.set(H,[new kPw(A)])};
_.q.getCells=function(){var A=this.JSC$10036_getKey(_.o7.apply(0,arguments));return this.cellMap.has(A)?this.cellMap.get(A):void 0};
_.q.getCell=function(){var A=this.getCells(_.o7.apply(0,arguments));return A&&A.length?A[0]:void 0};
_.q.clear=function(){this.cellMap.clear()};
_.q.JSC$10036_getKey=function(){var A=_.o7.apply(0,arguments);return A?A.join(","):"key"};var dPJ=function(A,H){q3.call(this,A,3,H)};
_.I(dPJ,q3);dPJ.prototype.JSC$10039_incrementCounterBy=function(A){var H=_.o7.apply(1,arguments),k=0,d=this.getCell(H);d&&(k=d.cellValue);this.JSC$10036_setCell(k+A,H)};var WFG=function(A,H){q3.call(this,A,2,H)};
_.I(WFG,q3);WFG.prototype.record=function(A){this.addCell(A,_.o7.apply(1,arguments))};_.r3=function(A){this.id=A};
_.r3.prototype.toString=function(){return this.id};_.NZ=function(A,H){this.type=A instanceof _.r3?String(A):A;this.currentTarget=this.target=H;this.defaultPrevented=this.propagationStopped_=!1};
_.NZ.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.NZ.prototype.preventDefault=function(){this.defaultPrevented=!0};_.ux=function(A,H){_.NZ.call(this,A?A.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;A&&this.init(A,H)};
_.EK(_.ux,_.NZ);
_.ux.prototype.init=function(A,H){var k=this.type=A.type,d=A.changedTouches&&A.changedTouches.length?A.changedTouches[0]:null;this.target=A.target||A.srcElement;this.currentTarget=H;H=A.relatedTarget;H||(k=="mouseover"?H=A.fromElement:k=="mouseout"&&(H=A.toElement));this.relatedTarget=H;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=_.HN||A.offsetX!==void 0?A.offsetX:A.layerX,
this.offsetY=_.HN||A.offsetY!==void 0?A.offsetY:A.layerY,this.clientX=A.clientX!==void 0?A.clientX:A.pageX,this.clientY=A.clientY!==void 0?A.clientY:A.pageY,this.screenX=A.screenX||0,this.screenY=A.screenY||0);this.button=A.button;this.keyCode=A.keyCode||0;this.key=A.key||"";this.charCode=A.charCode||(k=="keypress"?A.keyCode:0);this.ctrlKey=A.ctrlKey;this.altKey=A.altKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.pointerId=A.pointerId||0;this.pointerType=A.pointerType;this.state=A.state;
this.timeStamp=A.timeStamp;this.event_=A;A.defaultPrevented&&_.ux.superClass_.preventDefault.call(this)};
_.ux.prototype.isButton=function(A){return this.event_.button==A};
_.ux.prototype.stopPropagation=function(){_.ux.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.ux.prototype.preventDefault=function(){_.ux.superClass_.preventDefault.call(this);var A=this.event_;A.preventDefault?A.preventDefault():A.returnValue=!1};var zVQ="closure_listenable_"+(Math.random()*1E6|0),BS=function(A){return!(!A||!A[zVQ])};var Qxm=0;var qDG=function(A){A.removed=!0;A.listener=null;A.proxy=null;A.src=null;A.handler=null};MC.prototype.add=function(A,H,k,d,W){var z=A.toString();A=this.listeners[z];A||(A=this.listeners[z]=[],this.typeCount_++);var u=r3j(A,H,d,W);u>-1?(H=A[u],k||(H.callOnce=!1)):(H=new Vpb(H,this.src,z,!!d,W),H.callOnce=k,A.push(H));return H};
MC.prototype.remove=function(A,H,k,d){A=A.toString();if(!(A in this.listeners))return!1;var W=this.listeners[A];H=r3j(W,H,k,d);return H>-1?(qDG(W[H]),_.XVQ(W,H),W.length==0&&(delete this.listeners[A],this.typeCount_--),!0):!1};
var uQA=function(A,H){var k=H.type;if(!(k in A.listeners))return!1;var d=_.EC(A.listeners[k],H);d&&(qDG(H),A.listeners[k].length==0&&(delete A.listeners[k],A.typeCount_--));return d};
MC.prototype.removeAll=function(A){A=A&&A.toString();var H=0,k;for(k in this.listeners)if(!A||k==A){for(var d=this.listeners[k],W=0;W<d.length;W++)++H,qDG(d[W]);delete this.listeners[k];this.typeCount_--}return H};
MC.prototype.getListener=function(A,H,k,d){A=this.listeners[A.toString()];var W=-1;A&&(W=r3j(A,H,k,d));return W>-1?A[W]:null};
MC.prototype.hasListener=function(A,H){var k=A!==void 0,d=k?A.toString():"",W=H!==void 0;return _.iK.some(this.listeners,function(z){for(var u=0;u<z.length;++u)if(!(k&&z[u].type!=d||W&&z[u].capture!=H))return!0;return!1})};
var r3j=function(A,H,k,d){for(var W=0;W<A.length;++W){var z=A[W];if(!z.removed&&z.listener==H&&z.capture==!!k&&z.handler==d)return W}return-1};var BjA,eVA,xPZ,hVp,OZi,T4,k5,FRv,RVG,Tjp,eP,mPZ,iZJ;BjA="closure_lm_"+(Math.random()*1E6|0);eVA={};xPZ=0;_.Y3=function(A,H,k,d,W){if(d&&d.once)return T4(A,H,k,d,W);if(Array.isArray(H)){for(var z=0;z<H.length;z++)_.Y3(A,H[z],k,d,W);return null}k=iZJ(k);return BS(A)?A.listen(H,k,_.nl(d)?!!d.capture:!!d,W):hVp(A,H,k,!1,d,W)};
hVp=function(A,H,k,d,W,z){if(!H)throw Error("wa");var u=_.nl(W)?!!W.capture:!!W,B=eP(A);B||(A[BjA]=B=new MC(A));k=B.add(H,k,d,u,z);if(k.proxy)return k;d=OZi();k.proxy=d;d.src=A;d.listener=k;if(A.addEventListener)_.SNJ||(W=u),W===void 0&&(W=!1),A.addEventListener(H.toString(),d,W);else if(A.attachEvent)A.attachEvent(RVG(H.toString()),d);else if(A.addListener&&A.removeListener)A.addListener(d);else throw Error("xa");xPZ++;return k};
OZi=function(){var A=Tjp,H=function(k){return A.call(H.src,H.listener,k)};
return H};
T4=function(A,H,k,d,W){if(Array.isArray(H)){for(var z=0;z<H.length;z++)T4(A,H[z],k,d,W);return null}k=iZJ(k);return BS(A)?A.listenOnce(H,k,_.nl(d)?!!d.capture:!!d,W):hVp(A,H,k,!0,d,W)};
_.xz=function(A,H,k,d,W){if(Array.isArray(H))for(var z=0;z<H.length;z++)_.xz(A,H[z],k,d,W);else d=_.nl(d)?!!d.capture:!!d,k=iZJ(k),BS(A)?A.unlisten(H,k,d,W):A&&(A=eP(A))&&(H=A.getListener(H,k,d,W))&&k5(H)};
k5=function(A){if(typeof A==="number"||!A||A.removed)return!1;var H=A.src;if(BS(H))return uQA(H.eventTargetListeners_,A);var k=A.type,d=A.proxy;H.removeEventListener?H.removeEventListener(k,d,A.capture):H.detachEvent?H.detachEvent(RVG(k),d):H.addListener&&H.removeListener&&H.removeListener(d);xPZ--;(k=eP(H))?(uQA(k,A),k.typeCount_==0&&(k.src=null,H[BjA]=null)):qDG(A);return!0};
FRv=function(A,H,k,d,W){k=iZJ(k);d=!!d;return BS(A)?A.getListener(H,k,d,W):A?(A=eP(A))?A.getListener(H,k,d,W):null:null};
RVG=function(A){return A in eVA?eVA[A]:eVA[A]="on"+A};
Tjp=function(A,H){if(A.removed)A=!0;else{H=new _.ux(H,this);var k=A.listener,d=A.handler||A.src;A.callOnce&&k5(A);A=k.call(d,H)}return A};
eP=function(A){A=A[BjA];return A instanceof MC?A:null};
mPZ="__closure_events_fn_"+(Math.random()*1E9>>>0);iZJ=function(A){if(typeof A==="function")return A;A[mPZ]||(A[mPZ]=function(H){return A.handleEvent(H)});
return A[mPZ]};_.Is=function(){_.dF.call(this);this.eventTargetListeners_=new MC(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.EK(_.Is,_.dF);_.Is.prototype[zVQ]=!0;_.q=_.Is.prototype;_.q.setParentEventTarget=function(A){this.parentEventTarget_=A};
_.q.addEventListener=function(A,H,k,d){_.Y3(this,A,H,k,d)};
_.q.removeEventListener=function(A,H,k,d){_.xz(this,A,H,k,d)};
_.q.dispatchEvent=function(A){var H,k=this.parentEventTarget_;if(k)for(H=[];k;k=k.parentEventTarget_)H.push(k);k=this.actualEventTarget_;var d=A.type||A;if(typeof A==="string")A=new _.NZ(A,k);else if(A instanceof _.NZ)A.target=A.target||k;else{var W=A;A=new _.NZ(d,k);_.iK.extend(A,W)}W=!0;var z;if(H)for(z=H.length-1;!A.propagationStopped_&&z>=0;z--){var u=A.currentTarget=H[z];W=J3k(u,d,!0,A)&&W}A.propagationStopped_||(u=A.currentTarget=k,W=J3k(u,d,!0,A)&&W,A.propagationStopped_||(W=J3k(u,d,!1,A)&&
W));if(H)for(z=0;!A.propagationStopped_&&z<H.length;z++)u=A.currentTarget=H[z],W=J3k(u,d,!1,A)&&W;return W};
_.q.disposeInternal=function(){_.Is.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.q.listen=function(A,H,k,d){return this.eventTargetListeners_.add(String(A),H,!1,k,d)};
_.q.listenOnce=function(A,H,k,d){return this.eventTargetListeners_.add(String(A),H,!0,k,d)};
_.q.unlisten=function(A,H,k,d){return this.eventTargetListeners_.remove(String(A),H,k,d)};
_.q.removeAllListeners=function(A){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(A):0};
var J3k=function(A,H,k,d){H=A.eventTargetListeners_.listeners[String(H)];if(!H)return!0;H=H.concat();for(var W=!0,z=0;z<H.length;++z){var u=H[z];if(u&&!u.removed&&u.capture==k){var B=u.listener,h=u.handler||u.src;u.callOnce&&uQA(A.eventTargetListeners_,u);W=B.call(h,d)!==!1&&W}}return W&&!d.defaultPrevented};
_.Is.prototype.getListener=function(A,H,k,d){return this.eventTargetListeners_.getListener(String(A),H,k,d)};
_.Is.prototype.hasListener=function(A,H){return this.eventTargetListeners_.hasListener(A!==void 0?String(A):void 0,H)};var ix=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(A){return A&&AsyncContext.Snapshot.wrap(A)}:function(A){return A};var glA=function(A,H){this.create_=A;this.reset_=H;this.occupants_=0;this.JSC$10071_head_=null};
glA.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var A=this.JSC$10071_head_;this.JSC$10071_head_=A.next;A.next=null}else A=this.create_();return A};
glA.prototype.put=function(A){this.reset_(A);this.occupants_<100&&(this.occupants_++,A.next=this.JSC$10071_head_,this.JSC$10071_head_=A)};var bZw=function(){this.workTail_=this.workHead_=null};
bZw.prototype.add=function(A,H){var k=UPV.get();k.set(A,H);this.workTail_?this.workTail_.next=k:this.workHead_=k;this.workTail_=k};
bZw.prototype.remove=function(){var A=null;this.workHead_&&(A=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),A.next=null);return A};
var UPV=new glA(function(){return new LFQ},function(A){return A.reset()}),LFQ=function(){this.next=this.scope=this.fn=null};
LFQ.prototype.set=function(A,H){this.fn=A;this.scope=H;this.next=null};
LFQ.prototype.reset=function(){this.next=this.scope=this.fn=null};var vlw,lRb,ElA,y3w;lRb=!1;ElA=new bZw;_.hs=function(A,H){vlw||y3w();lRb||(vlw(),lRb=!0);ElA.add(A,H)};
y3w=function(){var A=Promise.resolve(void 0);vlw=function(){A.then(tpf)}};var jxG=function(A){A.prototype.$goog_Thenable=!0},IR1=function(A){if(!A)return!1;
try{return!!A.$goog_Thenable}catch(H){return!1}};var YDj,PtG,GPw,XIj,DP1,SDG,c3A,Vpp,tp0,UPj,KDQ;_.Wq=function(A,H){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(A!=_.xX)try{var k=this;A.call(H,function(d){k.resolve_(2,d)},function(d){k.resolve_(3,d)})}catch(d){this.resolve_(3,d)}};
YDj=function(){this.next=this.context=this.JSC$10082_onRejected=this.JSC$10082_onFulfilled=this.child=null;this.always=!1};
YDj.prototype.reset=function(){this.context=this.JSC$10082_onRejected=this.JSC$10082_onFulfilled=this.child=null;this.always=!1};
PtG=new glA(function(){return new YDj},function(A){A.reset()});
GPw=function(A,H,k){var d=PtG.get();d.JSC$10082_onFulfilled=A;d.JSC$10082_onRejected=H;d.context=k;return d};
_.MT=function(A){if(A instanceof _.Wq)return A;var H=new _.Wq(_.xX);H.resolve_(2,A);return H};
_.qt=function(A){return new _.Wq(function(H,k){k(A)})};
XIj=function(A,H,k){FFQ(A,H,k,null)||_.hs(_.H0(H,A))};
_.Ox=function(A){return new _.Wq(function(H,k){var d=A.length,W=[];if(d)for(var z=function(O,T){d--;W[O]=T;d==0&&H(W)},u=function(O){k(O)},B,h=0;h<A.length;h++)B=A[h],XIj(B,_.H0(z,h),u);
else H(W)})};
DP1=function(A){return new _.Wq(function(H){var k=A.length,d=[];if(k)for(var W=function(B,h,O){k--;d[B]=h?{fulfilled:!0,value:O}:{fulfilled:!1,reason:O};k==0&&H(d)},z,u=0;u<A.length;u++)z=A[u],XIj(z,_.H0(W,u,!0),_.H0(W,u,!1));
else H(d)})};
SDG=function(A){return new _.Wq(function(H,k){var d=A.length,W=[];if(d)for(var z=function(O){H(O)},u=function(O,T){d--;
W[O]=T;d==0&&k(W)},B,h=0;h<A.length;h++)B=A[h],XIj(B,z,_.H0(u,h));
else H(void 0)})};
_.YE=function(){var A,H,k=new _.Wq(function(d,W){A=d;H=W});
return new Cti(k,A,H)};
_.Wq.prototype.then=function(A,H,k){return KFw(this,ix(typeof A==="function"?A:null),ix(typeof H==="function"?H:null),k)};
jxG(_.Wq);c3A=function(A,H,k,d){aRG(A,GPw(H||_.xX,k||null,d))};
_.Rw=function(A,H){H=ix(H);H=GPw(H,H);H.always=!0;aRG(A,H);return A};
_.Wq.prototype.finally=function(A){var H=this;A=ix(A);return new _.Wq(function(k,d){c3A(H,function(W){A();k(W)},function(W){A();
d(W)})})};
_.Wq.prototype.thenCatch=function(A,H){return KFw(this,null,ix(A),H)};
_.Wq.prototype.catch=_.Wq.prototype.thenCatch;_.Wq.prototype.cancel=function(A){if(this.state_==0){var H=new _.jY(A);_.hs(function(){pIZ(this,H)},this)}};
var pIZ=function(A,H){if(A.state_==0)if(A.parent_){var k=A.parent_;if(k.callbackEntries_){for(var d=0,W=null,z=null,u=k.callbackEntries_;u&&(u.always||(d++,u.child==A&&(W=u),!(W&&d>1)));u=u.next)W||(z=u);W&&(k.state_==0&&d==1?pIZ(k,H):(z?(d=z,d.next==k.callbackEntriesTail_&&(k.callbackEntriesTail_=d),d.next=d.next.next):Qxw(k),Vpp(k,W,3,H)))}A.parent_=null}else A.resolve_(3,H)},aRG=function(A,H){A.callbackEntries_||A.state_!=2&&A.state_!=3||Elk(A);
A.callbackEntriesTail_?A.callbackEntriesTail_.next=H:A.callbackEntries_=H;A.callbackEntriesTail_=H},KFw=function(A,H,k,d){var W=GPw(null,null,null);
W.child=new _.Wq(function(z,u){W.JSC$10082_onFulfilled=H?function(B){try{var h=H.call(d,B);z(h)}catch(O){u(O)}}:z;
W.JSC$10082_onRejected=k?function(B){try{var h=k.call(d,B);h===void 0&&B instanceof _.jY?u(B):z(h)}catch(O){u(O)}}:u});
W.child.parent_=A;aRG(A,W);return W.child};
_.Wq.prototype.unblockAndFulfill_=function(A){this.state_=0;this.resolve_(2,A)};
_.Wq.prototype.unblockAndReject_=function(A){this.state_=0;this.resolve_(3,A)};
_.Wq.prototype.resolve_=function(A,H){this.state_==0&&(this===H&&(A=3,H=new TypeError("ya")),this.state_=1,FFQ(H,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=H,this.state_=A,this.parent_=null,Elk(this),A!=3||H instanceof _.jY||UPj(this,H)))};
var FFQ=function(A,H,k,d){if(A instanceof _.Wq)return c3A(A,H,k,d),!0;if(IR1(A))return A.then(H,k,d),!0;if(_.nl(A))try{var W=A.then;if(typeof W==="function")return lRp(A,W,H,k,d),!0}catch(z){return k.call(d,z),!0}return!1},lRp=function(A,H,k,d,W){var z=!1,u=function(h){z||(z=!0,k.call(W,h))},B=function(h){z||(z=!0,d.call(W,h))};
try{H.call(A,u,B)}catch(h){B(h)}},Elk=function(A){A.executing_||(A.executing_=!0,_.hs(A.executeCallbacks_,A))},Qxw=function(A){var H=null;
A.callbackEntries_&&(H=A.callbackEntries_,A.callbackEntries_=H.next,H.next=null);A.callbackEntries_||(A.callbackEntriesTail_=null);return H};
_.Wq.prototype.executeCallbacks_=function(){for(var A;A=Qxw(this);)Vpp(this,A,this.state_,this.result_);this.executing_=!1};
Vpp=function(A,H,k,d){if(k==3&&H.JSC$10082_onRejected&&!H.always)for(;A&&A.hadUnhandledRejection_;A=A.parent_)A.hadUnhandledRejection_=!1;if(H.child)H.child.parent_=null,tp0(H,k,d);else try{H.always?H.JSC$10082_onFulfilled.call(H.context):tp0(H,k,d)}catch(W){KDQ.call(null,W)}PtG.put(H)};
tp0=function(A,H,k){H==2?A.JSC$10082_onFulfilled.call(A.context,k):A.JSC$10082_onRejected&&A.JSC$10082_onRejected.call(A.context,k)};
UPj=function(A,H){A.hadUnhandledRejection_=!0;_.hs(function(){A.hadUnhandledRejection_&&KDQ.call(null,H)})};
KDQ=dI;_.jY=function(A){_.AA.call(this,A)};
_.EK(_.jY,_.AA);_.jY.prototype.name="cancel";var Cti=function(A,H,k){this.promise=A;this.resolve=H;this.reject=k};var Tk;_.BT=function(A,H){_.Is.call(this);this.JSC$10094_interval_=A||1;this.timerObject_=H||_.k8;this.boundTick_=(0,_.WT)(this.tick_,this);this.last_=_.Vj()};
_.EK(_.BT,_.Is);_.q=_.BT.prototype;_.q.enabled=!1;_.q.JSC$10096_timer_=null;_.q.setInterval=function(A){this.JSC$10094_interval_=A;this.JSC$10096_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10096_timer_&&this.stop()};
_.q.tick_=function(){if(this.enabled){var A=_.Vj()-this.last_;A>0&&A<this.JSC$10094_interval_*.8?this.JSC$10096_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10094_interval_-A):(this.JSC$10096_timer_&&(this.timerObject_.clearTimeout(this.JSC$10096_timer_),this.JSC$10096_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.q.start=function(){this.enabled=!0;this.JSC$10096_timer_||(this.JSC$10096_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10094_interval_),this.last_=_.Vj())};
_.q.stop=function(){this.enabled=!1;this.JSC$10096_timer_&&(this.timerObject_.clearTimeout(this.JSC$10096_timer_),this.JSC$10096_timer_=null)};
_.q.disposeInternal=function(){_.BT.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Tk=function(A,H,k){if(typeof A==="function")k&&(A=(0,_.WT)(A,k));else if(A&&typeof A.handleEvent=="function")A=(0,_.WT)(A.handleEvent,A);else throw Error("za");return Number(H)>2147483647?-1:_.k8.setTimeout(A,H||0)};
_.NjN=function(A){var H=null;return(new _.Wq(function(k,d){H=Tk(function(){k(void 0)},A);
H==-1&&d(Error("Aa"))})).thenCatch(function(k){_.k8.clearTimeout(H);
throw k;})};var fC=function(A){_.dF.call(this);this.streamzLogger=A;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10100_flushTimer=new _.BT(this.flushInterval);this.JSC$10100_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.ZL(this,this.JSC$10100_flushTimer)};
_.I(fC,_.dF);fC.prototype.sendIsolatedPayload=function(A){this.shouldSendIsolatedPayload=A;this.invocationLimit=1};
var Mpp=function(A){A.JSC$10100_flushTimer.enabled||A.JSC$10100_flushTimer.start();A.invocationCount++;A.invocationCount>=A.invocationLimit&&A.snapshotAndFlush()};
fC.prototype.snapshotAndFlush=function(){var A=this.metricMap.values();A=[].concat(_.fV(A)).filter(function(H){return H.cellMap.size});
A.length&&this.streamzLogger.flush(A,this.shouldSendIsolatedPayload);nl1(A);this.invocationCount=0;this.JSC$10100_flushTimer.enabled&&this.JSC$10100_flushTimer.stop()};
fC.prototype.addNewCounter=function(A){var H=_.o7.apply(1,arguments);this.metricMap.has(A)||this.metricMap.set(A,new dPJ(A,H))};
fC.prototype.addNewEventMetric=function(A){var H=_.o7.apply(1,arguments);this.metricMap.has(A)||this.metricMap.set(A,new WFG(A,H))};
var ZZw=function(A,H){return A.disabledMetrics.has(H)?void 0:A.metricMap.get(H)};
fC.prototype.JSC$10100_incrementCounter=function(A){this.JSC$10100_incrementCounterBy(A,1,_.o7.apply(1,arguments))};
fC.prototype.JSC$10100_incrementCounterBy=function(A,H){var k=_.o7.apply(2,arguments),d=ZZw(this,A);d&&d instanceof dPJ&&(d.JSC$10039_incrementCounterBy(H,k),Mpp(this))};
fC.prototype.record=function(A,H){var k=_.o7.apply(2,arguments),d=ZZw(this,A);d&&d instanceof WFG&&(d.record(H,k),Mpp(this))};
var nl1=function(A){for(var H=0;H<A.length;H++)A[H].clear()};_.mv=function(A,H,k){k=k===void 0?{}:k;H=Error.call(this,H);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=A;this.metadata=k;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.I(_.mv,Error);_.mv.prototype.toString=function(){var A="RpcError("+(Mpb(this.code)||String(this.code))+")";this.message&&(A+=": "+this.message);return A};_.fRZ=_.k8.JSON.parse;_.Js=_.k8.JSON.stringify;_.ui=_.k8.JSON.parse;_.wI1=function(A){switch(A){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 olw=function(A){switch(A){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var $Pw,Ani=function(){};
_.EK(Ani,_.nlQ);Ani.prototype.createInstance=function(){return new XMLHttpRequest};
$Pw=new Ani;_.g3=function(A){_.Is.call(this);this.headers=new Map;this.JSC$10109_xmlHttpFactory_=A||null;this.JSC$10109_active_=!1;this.JSC$10109_xhr_=null;this.JSC$10109_lastUri_="";this.JSC$10109_lastErrorCode_=0;this.JSC$10109_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10109_timeoutId_=null;this.responseType_="";this.JSC$10109_withCredentials_=!1};
_.EK(_.g3,_.Is);var HGN=/^https?$/i,sPZ=["POST","PUT"],kiw=[],thm=function(A,H,k,d,W,z,u){var B=new _.g3;kiw.push(B);H&&B.listen("complete",H);B.listenOnce("ready",B.cleanupSend_);z&&(B.timeoutInterval_=Math.max(0,z));u&&(B.JSC$10109_withCredentials_=u);B.send(A,k,d,W)};
_.g3.prototype.cleanupSend_=function(){this.dispose();_.EC(kiw,this)};
_.g3.prototype.send=function(A,H,k,d){if(this.JSC$10109_xhr_)throw Error("Ba`"+this.JSC$10109_lastUri_+"`"+A);H=H?H.toUpperCase():"GET";this.JSC$10109_lastUri_=A;this.JSC$10109_lastError_="";this.JSC$10109_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10109_active_=!0;this.JSC$10109_xhr_=this.createXhr();this.JSC$10109_xhr_.onreadystatechange=ix((0,_.WT)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10109_xhr_.open(H,String(A),!0),this.inOpen_=!1}catch(u){d4A(this,u);return}A=
k||"";k=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var W in d)k.set(W,d[W]);else if(typeof d.keys==="function"&&typeof d.get==="function"){W=_.r(d.keys());for(var z=W.next();!z.done;z=W.next())z=z.value,k.set(z,d.get(z))}else throw Error("Ca`"+String(d));d=Array.from(k.keys()).find(function(u){return"content-type"==u.toLowerCase()});
W=_.k8.FormData&&A instanceof _.k8.FormData;!_.VW(sPZ,H)||d||W||k.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");H=_.r(k);for(d=H.next();!d.done;d=H.next())k=_.r(d.value),d=k.next().value,k=k.next().value,this.JSC$10109_xhr_.setRequestHeader(d,k);this.responseType_&&(this.JSC$10109_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10109_xhr_&&this.JSC$10109_xhr_.withCredentials!==this.JSC$10109_withCredentials_&&(this.JSC$10109_xhr_.withCredentials=this.JSC$10109_withCredentials_);
try{this.JSC$10109_timeoutId_&&(clearTimeout(this.JSC$10109_timeoutId_),this.JSC$10109_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10109_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10109_xhr_.send(A),this.inSend_=!1}catch(u){d4A(this,u)}};
_.g3.prototype.createXhr=function(){return this.JSC$10109_xmlHttpFactory_?this.JSC$10109_xmlHttpFactory_.createInstance():$Pw.createInstance()};
_.g3.prototype.timeout_=function(){typeof KGN!="undefined"&&this.JSC$10109_xhr_&&(this.JSC$10109_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10109_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var d4A=function(A,H){A.JSC$10109_active_=!1;A.JSC$10109_xhr_&&(A.inAbort_=!0,A.JSC$10109_xhr_.abort(),A.inAbort_=!1);A.JSC$10109_lastError_=H;A.JSC$10109_lastErrorCode_=5;WRJ(A);zJ0(A)},WRJ=function(A){A.errorDispatched_||(A.errorDispatched_=!0,A.dispatchEvent("complete"),A.dispatchEvent("error"))};
_.g3.prototype.abort=function(A){this.JSC$10109_xhr_&&this.JSC$10109_active_&&(this.JSC$10109_active_=!1,this.inAbort_=!0,this.JSC$10109_xhr_.abort(),this.inAbort_=!1,this.JSC$10109_lastErrorCode_=A||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),zJ0(this))};
_.g3.prototype.disposeInternal=function(){this.JSC$10109_xhr_&&(this.JSC$10109_active_&&(this.JSC$10109_active_=!1,this.inAbort_=!0,this.JSC$10109_xhr_.abort(),this.inAbort_=!1),zJ0(this,!0));_.g3.superClass_.disposeInternal.call(this)};
_.g3.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)qaA(this);else this.onReadyStateChangeEntryPoint_()};
_.g3.prototype.onReadyStateChangeEntryPoint_=function(){qaA(this)};
var qaA=function(A){if(A.JSC$10109_active_&&typeof KGN!="undefined")if(A.inSend_&&_.bx(A)==4)setTimeout(A.onReadyStateChange_.bind(A),0);else if(A.dispatchEvent("readystatechange"),A.isComplete()){A.JSC$10109_active_=!1;try{if(A.isSuccess())A.dispatchEvent("complete"),A.dispatchEvent("success");else{A.JSC$10109_lastErrorCode_=6;try{var H=_.bx(A)>2?A.JSC$10109_xhr_.statusText:""}catch(k){H=""}A.JSC$10109_lastError_=H+" ["+A.getStatus()+"]";WRJ(A)}}finally{zJ0(A)}}},zJ0=function(A,H){if(A.JSC$10109_xhr_){A.JSC$10109_timeoutId_&&
(clearTimeout(A.JSC$10109_timeoutId_),A.JSC$10109_timeoutId_=null);
var k=A.JSC$10109_xhr_;A.JSC$10109_xhr_=null;H||A.dispatchEvent("ready");try{k.onreadystatechange=null}catch(d){}}};
_.g3.prototype.isActive=function(){return!!this.JSC$10109_xhr_};
_.g3.prototype.isComplete=function(){return _.bx(this)==4};
_.g3.prototype.isSuccess=function(){var A=this.getStatus(),H;if(!(H=olw(A))){if(A=A===0)A=MBC(String(this.JSC$10109_lastUri_)),A=!HGN.test(A);H=A}return H};
_.bx=function(A){return A.JSC$10109_xhr_?A.JSC$10109_xhr_.readyState:0};
_.q=_.g3.prototype;_.q.getStatus=function(){try{return _.bx(this)>2?this.JSC$10109_xhr_.status:-1}catch(A){return-1}};
_.q.getResponseText=function(){try{return this.JSC$10109_xhr_?this.JSC$10109_xhr_.responseText:""}catch(A){return""}};
_.q.getResponse=function(){try{if(!this.JSC$10109_xhr_)return null;if("response"in this.JSC$10109_xhr_)return this.JSC$10109_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10109_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10109_xhr_)return this.JSC$10109_xhr_.mozResponseArrayBuffer}return null}catch(A){return null}};
_.q.getAllResponseHeaders=function(){return this.JSC$10109_xhr_&&_.bx(this)>=2?this.JSC$10109_xhr_.getAllResponseHeaders()||"":""};
_.q.getLastError=function(){return typeof this.JSC$10109_lastError_==="string"?this.JSC$10109_lastError_:String(this.JSC$10109_lastError_)};var olC=function(){};
olC.prototype.send=function(A,H,k){H=H===void 0?function(){}:H;
k=k===void 0?function(){}:k;
thm(A.url,function(d){d=d.target;d.isSuccess()?H(d.getResponseText()):k(d.getStatus())},A.requestType,A.body,A.requestHeaders,A.timeoutMillis,A.withCredentials)};
olC.prototype.getTransmissionType=function(){return 1};var rnw=function(A,H){this.oUa=A;this.event=H;this.startTime=wW()},d4X;
rnw.prototype.done=function(){this.oUa.a1(this.event,wW()-this.startTime)};
var Lf=function(){fO.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.I(Lf,fO);_.vS=function(A,H,k){var d=wW();H=H();A.a1(k,wW()-d);return H};
d4X=function(){Lf.apply(this,arguments)};
_.I(d4X,Lf);_.q=d4X.prototype;_.q.hTY=function(){};
_.q.pw=function(){};
_.q.a1=function(){};
_.q.logError=function(){};
_.q.b0=function(){};
_.q.zq0=function(){};
_.q.nDv=function(){};
_.q.fLP=function(){};
var uDJ=function(A){Lf.call(this);var H=this;this.nz=A;this.TEST_ONLY={nzT:function(){return H.nz},
getExperimentIds:function(){return H.nz.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void H.nz.dispose()})};
_.I(uDJ,Lf);_.q=uDJ.prototype;_.q.update=function(A){this.nz.dispose();this.nz=A};
_.q.pw=function(A){this.nz.pw(A)};
_.q.a1=function(A,H){this.nz.a1(A,H)};
_.q.logError=function(A){this.nz.logError(A)};
_.q.b0=function(){this.nz.b0()};
_.q.zq0=function(A){this.nz.zq0(A)};
_.q.nDv=function(A){this.nz.nDv(A)};
_.q.fLP=function(A){this.nz.fLP(A)};
_.q.hTY=function(A){this.nz.hTY(A)};
var B2i=function(A,H){_.dF.call(this);var k=this;this.callback=A;this.nEy=H;this.uto=-H;this.addOnDisposeCallback(function(){return void clearTimeout(k.timer)})};
_.I(B2i,_.dF);var eJA=function(A){if(A.timer===void 0){var H=Math.max(0,A.uto+A.nEy-wW());A.timer=setTimeout(function(){try{A.callback()}finally{A.uto=wW(),A.timer=void 0}},H)}},x4i=function(A,H){Lf.call(this);
this.metrics=A;this.cu=H};
_.I(x4i,Lf);_.q=x4i.prototype;_.q.hTY=function(A){this.metrics.jVk.record(A,this.cu)};
_.q.pw=function(A){this.metrics.eventCount.increment(A,this.cu)};
_.q.a1=function(A,H){this.metrics.dOa.record(H,A,this.cu)};
_.q.logError=function(A){this.metrics.errorCount.increment(A,this.cu)};
_.q.zq0=function(A){this.metrics.i68.increment(A,this.cu)};
_.q.nDv=function(A){this.metrics.j3L.increment(A,this.cu)};
_.q.fLP=function(A){this.metrics.kqE.increment(A,this.cu)};
var WRI=function(A,H){H=H===void 0?[]:H;var k={cu:A.cu||"_",tSr:A.tSr||[],euo:A.euo|0,destinationUrl:A.destinationUrl,vsv:A.vsv||function(){},
hVW:A.hVW||function(z,u){return kiC(z,u,k.vsv,k.destinationUrl)}},d=k.hVW("53",k.tSr.concat(H));
x4i.call(this,{jVk:new wTJ(d),errorCount:new HAN(d),eventCount:new $Zw(d),dOa:new AaZ(d),r9w:new o30(d),i68:new sVj(d),j3L:new kW1(d),kqE:new dUw(d)},k.cu);var W=this;this.TEST_ONLY={getExperimentIds:function(){return W.options.tSr.concat(W.ekb).sort(function(z,u){return z-u})}};
this.options=k;this.service=d;this.avB=!A.hVW;this.flushDebouncer=new B2i(function(){return void W.service.snapshotAndFlush()},k.euo);
this.addOnDisposeCallback(function(){W.flushDebouncer.dispose();W.avB&&W.service.dispose()});
(this.ekb=H.slice()).sort(_.Krf)};
_.I(WRI,x4i);WRI.prototype.b0=function(){eJA(this.flushDebouncer)};var B$I=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(B$I,_.OW);_.e$I=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(_.e$I,_.OW);var GF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A,0,GF.messageId)};
_.I(GF,_.OW);var iGi=_.BUI(GF);GF.messageId="bfkj";var Ptr=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Ptr,_.OW);var hJN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(hJN,_.OW);var OGJ=_.Xf(hJN);_.lk=function(){var A=this;this.promise=new Promise(function(H,k){A.resolve=H;A.reject=k})};_.yh=function(A){_.dF.call(this);var H=this;this.nSK=Math.floor(Math.random()*200);this.abY=new hJN;if("challenge"in A&&iGi(A.challenge)){var k=_.O8(A.challenge,4,void 0,CN);var d=_.O8(A.challenge,5,void 0,CN);_.O8(A.challenge,7,void 0,CN)&&(this.abY=OGJ(_.O8(A.challenge,7,void 0,CN)))}else k=A.program,d=A.globalName;this.addOnDisposeCallback(function(){var v,y,X;return _.e(function(D){if(D.nextAddress==1)return D.yield(H.cuX,2);v=D.yieldResult;y=v.cSE;(X=y)==null||X();_.EN(D)})});
this.ta=zJf(A.fjM||{},this.abY);_.ZL(this,this.ta);var W=new _.lk;this.cuX=W.promise;this.ta.pw("t");var z=this.ta.share(),u=new rnw(z,"t"),B=function(v,y,X,D){if(!H.ta.isDisposed()){var K="k";y?K="h":X&&(K="u");K!=="k"?D!==0&&(H.ta.pw(K),H.ta.a1(K,v)):H.nSK<=0?(H.ta.pw(K),H.ta.a1(K,v),H.nSK=Math.floor(Math.random()*200)):H.nSK--}},h=function(v,y,X,D){Promise.resolve().then(function(){u.done();
z.b0();z.dispose();W.resolve({xkb:v,cSE:y,a9g:X,bML:D})})};
if(!_.k8[d])throw this.ta.logError(25),Error("Da");if(!_.k8[d].a)throw this.ta.logError(26),Error("Ea");try{var O=_.k8[d].a;d=[];for(var T=[],m=GPm(this.abY),J=0;J<m.length;J++)d.push(m[J]),T.push(1);var g=FFv(this.abY);for(m=0;m<g.length;m++)d.push(g[m]),T.push(2);this.rZ8=_.r(O(k,h,!0,A.atb,B,[d,T],_.O8(this.abY,5),!1)).next().value;this.sb6=W.promise.then(function(){})}catch(v){throw this.ta.logError(28),v;
}};
_.I(_.yh,_.dF);_.yh.prototype.snapshot=function(A){if(this.isDisposed())throw Error("Fa");this.ta.pw("n");var H=this.ta.share();return this.cuX.then(function(k){var d=k.xkb;return new Promise(function(W){var z=new rnw(H,"n");d(function(u){z.done();H.hTY(u.length);H.b0();H.dispose();W(u)},[A.sq,
A.sLA,A.hTc,A.gl1])})})};
_.yh.prototype.kKX=function(A){this.cuX.then(function(H){var k;(k=H.a9g)==null||k(A)})};
_.yh.prototype.jmM=function(A,H){return this.cuX.then(function(k){var d;return(d=k.bML)==null?void 0:d(A,H,!1)})};
_.yh.prototype.r4r=function(){return this.ta.share()};var RJp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(RJp,_.OW);var tLI=_.BUI(RJp);var T2w=function(){this.promises={};this.kV1=null},m4j=function(){T2w.instance||(T2w.instance=new T2w);
return T2w.instance},g6A=function(A,H){return JnG(A,_.Af(H,B$I,1,CN),_.Af(H,_.e$I,2,CN),_.O8(H,3,void 0,CN))},JnG=function(A,H,k,d){if(!H&&!k)return Promise.resolve();
if(!d)return eJX(H,k);var W;(W=A.promises)[d]||(W[d]=new Promise(function(z,u){eJX(H,k).then(function(){A.kV1=d;z()},function(B){delete A.promises[d];
u(B)})}));
return A.promises[d]};var bGp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(bGp,_.OW);var LRZ=function(A,H){return _.F1(A,1,H)},v6G=function(A,H){return _.F1(A,2,H)};var jP=function(A){_.dF.call(this);var H=this;this.options=A;this.qvW=new _.lk;this.sb6=this.qvW.promise;this.uSX=new _.lk;this.dpS=1;this.ajP=new _.lk;this.d66=[];this.isPaused=!1;this.dJd=A.dJd||function(){};
this.cHv=new uDJ(zJf(A.fjM||{}));ynw(this,A.xT,A.kvU,A.quq,A.nS4,Object.assign({},jPp,A.yEr||{}));this.addOnDisposeCallback(function(){return void Iqi(H)})};
_.I(jP,_.dF);jP.prototype.snapshot=function(A){var H=this;return _.e(function(k){switch(k.nextAddress){case 1:if(H.isDisposed())throw Error("Fa");if(H.qS||H.lN7){k.jumpTo(2);break}return k.yield(H.uSX.promise,2);case 2:if(!H.qS){k.jumpTo(4);break}return k.yield(H.qS.snapshot(A),5);case 5:return k.return(k.yieldResult);case 4:throw H.lN7;}})};
jP.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.xZ&&this.xZ.pause())};
jP.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.xZ&&this.xZ.resume())};
jP.prototype.checkForRefresh=function(){var A=this;return _.e(function(H){if(A.isDisposed())throw Error("Fa");var k;if(k=A.xZ)k=A.xZ,k.isExpired()?(YaA(k),k.resolver(0),k=!0):k=!1,k=!k;return k?H.jumpTo(0):H.yield(A.ajP.promise,0)})};
var Giw=function(A){var H;return _.e(function(k){if(A.isDisposed())throw Error("Fa");(H=A.xZ)==null||PCZ(H);return k.yield(A.ajP.promise,0)})},Iqi=function(A){A.lN7=Error("Ha");
A.uSX.resolve();XIV(A.qvW.promise);A.qvW.reject(Error("Ha"));A.cHv.dispose();Promise.all(A.d66).then(function(){var k;return _.e(function(d){(k=A.qS)==null||k.dispose();A.qS=void 0;_.EN(d)})});
A.d66=[];var H;(H=A.xZ)==null||PCZ(H);XIV(A.ajP.promise);A.ajP.reject(Error("Ha"))};
jP.prototype.kKX=function(A){var H,k;(H=this.qS)==null||(k=H.kKX)==null||k.call(H,A)};
jP.prototype.jmM=function(A,H){var k,d,W;return(W=(k=this.qS)==null?void 0:(d=k.jmM)==null?void 0:d.call(k,A,H))!=null?W:Promise.resolve()};
var FRQ=function(A,H){var k=A.dJd;A.dJd=function(){k();H()}},X5A=function(A,H){A.isDisposed()||(A.qS=H,A.cHv.update(H.r4r()),A.uSX.resolve(),A.qvW.resolve(void 0),A.dJd())};
jP.prototype.handleError=function(A){if(!this.isDisposed()){this.lN7=A;this.uSX.resolve();var H,k;(k=(H=this.options).mzT)==null||k.call(H,A)}};
var D4k=function(A,H){H&&(Promise.all(A.d66).then(function(){return void H.dispose()}),A.d66=[])},Iw=function(A,H){A.dpS=H;
var k,d;(d=(k=A.options).yAB)==null||d.call(k,H)},Saw=function(A){A.isDisposed()||(A.ajP.resolve(),A.ajP=new _.lk)},ynw=function(A,H,k,d,W,z){d=d===void 0?m4j():d;
W=W===void 0?Promise.resolve(void 0):W;var u,B,h,O,T,m,J,g,v,y,X,D;_.e(function(K){switch(K.nextAddress){case 1:return K.yield(0,3);case 3:B=null;if(!u){K.jumpTo(6);break}Iw(A,7);_.S_(K,7);return K.yield(s9(u.snapshot({}),z.vOt,function(){return Promise.resolve("E:CTO")}),9);
case 9:B=K.yieldResult;_.QN(K,6);break;case 7:_.VA(K),B="E:UCE";case 6:h=void 0,O=u?z.rBL:z.cBF,T=new NC(O,z.mOb,z.w5c,z.aRc),m=1;case 10:if(!(m<=z.maxAttempts)){K.jumpTo(12);break}if(m===1){K.jumpTo(13);break}Iw(A,0);A.xZ=new Yz(T.getValue(),z.b0X,z.qYc);return K.yield(A.xZ.promise,14);case 14:J=K.yieldResult,A.xZ=void 0,J===1?(m=1,T.reset()):MC0(T);case 13:_.S_(K,15);g=void 0;if(k){g=k;K.jumpTo(17);break}Iw(A,5);v=d.kV1;return K.yield(s9(CCw(H,v,B),z.pno,function(){return Promise.reject(Error("Ia"))}),
18);
case 18:g=K.yieldResult;case 17:return Iw(A,3),K.yield(s9(g6A(d,g),z.jC8,function(){return Promise.reject(Error("Ja"))}),19);
case 19:return Iw(A,8),K.yield(W,20);case 20:return y=new _.yh({challenge:g,fjM:A.options.fjM,atb:A.options.atb}),K.yield(s9(y.sb6,z.o9y,function(){return Promise.reject(Error("Ka"))}),21);
case 21:h=y;K.jumpTo(12);break;case 15:X=_.VA(K),A.handleError(X),Saw(A);case 11:m++;K.jumpTo(10);break;case 12:if(A.isDisposed()){K.jumpTo(5);break}h&&(k=void 0,D4k(A,u),u=h,X5A(A,h),Saw(A));Iw(A,2);A.xZ=new Yz(z.xDB,z.b0X,z.qYc);A.isPaused&&A.xZ.pause();return K.yield(A.xZ.promise,22);case 22:A.xZ=void 0;if(A.isDisposed()){K.jumpTo(5);break}K.jumpTo(3);break;case 5:(D=u)==null||D.dispose(),_.EN(K)}})};
jP.prototype.r4r=function(){return this.cHv.share()};
var jPp={xDB:432E5,b0X:3E5,qYc:10,vOt:1E4,pno:3E4,jC8:3E4,o9y:6E4,cBF:1E3,rBL:6E4,mOb:6E5,w5c:.25,aRc:2,maxAttempts:10},Yz=function(A,H,k){var d=this;this.endTimeMs=0;this.igX=null;this.isPaused=!1;this.tick=function(){if(!d.isPaused){var W=d.endTimeMs-Date.now();W<=d.xVc?(d.igX=null,d.resolver(0)):d.igX=setTimeout(d.tick,Math.min(W,d.b0X))}};
this.b0X=H;this.xVc=k;this.promise=new Promise(function(W){d.resolver=W});
KRp(this,A)},KRp=function(A,H){A.endTimeMs=Date.now()+H;
A.tick()};
Yz.prototype.pause=function(){this.isPaused||(this.isPaused=!0,YaA(this))};
Yz.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var PCZ=function(A){YaA(A);A.endTimeMs=0;A.isPaused=!1;A.resolver(1)},YaA=function(A){A.igX&&(clearTimeout(A.igX),A.igX=null)};
Yz.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var aqZ,hJl=(aqZ=Math.imul)!=null?aqZ:function(A,H){return A*H|0},k3=[196,
200,224,18],PS=function(A,H,k){k=k===void 0?[]:k;this.maxItems=A;this.qR=H===void 0?0:H;this.o1=k},cnZ=function(A){var H=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!H)return new PS(A);var k=H.split(",");if(k.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new PS(A);H=k.slice(1);H.length===1&&H[0]===""&&(H=[]);k=Number(k[0]);return isNaN(k)||k<0||k>H.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new PS(A)):new PS(A,k,H)};
PS.prototype.serialize=function(){return String(this.qR)+","+this.o1.join()};
PS.prototype.insert=function(A,H){var k=void 0;if(this.o1[this.qR]!==A){var d=this.o1.indexOf(A);d!==-1?(this.o1.splice(d,1),d<this.qR&&this.qR--,this.o1.splice(this.qR,0,A)):(k=this.o1[this.qR],this.o1[this.qR]=A)}this.qR=(this.qR+1)%this.maxItems;A=x4W("iU5q-!O9@$",this.serialize());k&&A&&H(k);return A};
var p5w=function(A,H){this.c1W=H;try{var k=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){k=!1}k&&(this.index=cnZ(A))},QPG=function(A,H,k,d,W){var z=A.index?_.vS(A.c1W,function(){return m4V(A.index,RJb(H),k,d,W)},"W"):"u";
A.c1W.fLP(z)},Vi0=function(A,H,k){var d=_.r(A.index?_.vS(A.c1W,function(){return Jnr(RJb(H),k)},"R"):["u"]),W=d.next().value;
d=d.next().value;A.c1W.nDv(W);return d};var E6k={toString:function(A){var H=[],k=0;A-=-2147483648;H[k++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(A%52);for(A=Math.floor(A/52);A>0;)H[k++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(A%62),A=Math.floor(A/62);return H.join("")}};var tiG=function(A){A=U4J(A);for(var H=2654435769,k=2654435769,d=314159265,W=A.length,z=W,u=0,B=function(){H-=k;H-=d;H^=d>>>13;k-=d;k-=H;k^=H<<8;d-=H;d-=k;d^=k>>>13;H-=k;H-=d;H^=d>>>12;k-=d;k-=H;k^=H<<16;d-=H;d-=k;d^=k>>>5;H-=k;H-=d;H^=d>>>3;k-=d;k-=H;k^=H<<10;d-=H;d-=k;d^=k>>>15};z>=12;z-=12,u+=12)H+=lqN(A,u),k+=lqN(A,u+4),d+=lqN(A,u+8),B();
d+=W;switch(z){case 11:d+=A[u+10]<<24;case 10:d+=A[u+9]<<16;case 9:d+=A[u+8]<<8;case 8:k+=A[u+7]<<24;case 7:k+=A[u+6]<<16;case 6:k+=A[u+5]<<8;case 5:k+=A[u+4];case 4:H+=A[u+3]<<24;case 3:H+=A[u+2]<<16;case 2:H+=A[u+1]<<8;case 1:H+=A[u]}B();return E6k.toString(d)},U4J=function(A){for(var H=[],k=0;k<A.length;k++)H.push(A.charCodeAt(k));
return H},lqN=function(A,H){return A[H]+(A[H+1]<<8)+(A[H+2]<<16)+(A[H+3]<<24)};var Gk=function(A){_.dF.call(this);this.zQ=A;this.bIA=new _.lk};
_.I(Gk,_.dF);var N2G=function(A,H){var k=setTimeout(function(){A.bIA.resolve()},H);
A.addOnDisposeCallback(function(){return void clearTimeout(k)})};
Gk.prototype.zUM=function(A,H){var k=this.jS(A);H==null||H(k);return _.vS(this.zQ,function(){return _.ob(k,2)},this.z9M)};
var MiQ=function(A,H,k,d){return _.vS(A.zQ,function(){return k?A.zUM(H,d):A.jS(H,d)},A.otX)},n6A=function(A,H,k,d){Gk.call(this,A);
this.oEc=H;this.qyy=k;this.otX="m";this.z9M="x";this.hET=0;N2G(this,d)};
_.I(n6A,Gk);n6A.prototype.jS=function(A,H){var k=this;this.zQ.pw(this.otX);++this.hET>=this.qyy&&this.bIA.resolve();var d=A();A=_.vS(this.zQ,function(){return k.oEc(d)},"C");
if(A===void 0)throw new nO(17,"YNJ:Undefined");if(!(A instanceof Uint8Array))throw new nO(18,"ODM:Invalid");H==null||H(A);return A};
var ZGj=function(A,H,k){Gk.call(this,A);this.cpb=H;this.otX="f";this.z9M="z";N2G(this,k)};
_.I(ZGj,Gk);ZGj.prototype.jS=function(){return this.cpb};
var fqw=function(A,H,k){Gk.call(this,A);this.uYo=H;this.otX="w";this.z9M="z";N2G(this,k)};
_.I(fqw,Gk);fqw.prototype.jS=function(){var A=this;return _.vS(this.zQ,function(){return _.$8(A.uYo)},"d")};
fqw.prototype.zUM=function(){return this.uYo};
var w5G=function(A,H){Gk.call(this,A);this.error=H;this.otX="e";this.z9M="y"};
_.I(w5G,Gk);var o6w=function(A,H){var k=(H(A.error.message)+":"+H(A.error.stack)).substring(0,2048);H=k.length+1;k=g6N(k);var d=new Uint8Array(4+k.length);d.set([42,H&127|128,H>>7,A.error.code]);d.set(k,4);return d};
w5G.prototype.jS=function(){if(this.lvt)return this.lvt;this.lvt=o6w(this,function(A){return"_"+tiG(A)});
return o6w(this,function(A){return A})};
var $4Q=function(A,H,k){Gk.call(this,A);this.zNg=H;this.clientState=k;this.otX="S";this.z9M="q"};
_.I($4Q,Gk);$4Q.prototype.jS=function(){var A=Math.floor(Date.now()/1E3),H=[Math.random()*255,Math.random()*255],k=H.concat([this.zNg&255,this.clientState],[A>>24&255,A>>16&255,A>>8&255,A&255]);A=new Uint8Array(2+k.length);A[0]=34;A[1]=k.length;A.set(k,2);k=A.subarray(2);for(var d=H=H.length;d<k.length;++d)k[d]^=k[d%H];this.zQ.zq0(this.clientState);return A};var AfG={sp9:3E4,lxy:2E4},Fk=function(A){_.dF.call(this);var H=this;this.lB6=new _.lk;this.otP=0;this.eC=void 0;this.state=2;this.vm=A.vm;this.xT=A.xT;this.yEr=Object.assign({},AfG,A.yEr||{});this.yr=A.vm.r4r();var k;this.onError=(k=A.onError)!=null?k:function(){};
this.lzO=A.lzO||!1;if(H5J(A)){var d=this.vm;this.pbR=function(){return Giw(d).catch(function(u){u=H.reportError(new nO(H.hb?20:32,"TRG:Disposed",u));H.eC=u;var B;(B=H.hb)==null||B.dispose();H.hb=void 0;H.lB6.reject(u)})};
FRQ(d,function(){return void sEj(H)});
d.dpS===2&&sEj(this)}else this.pbR=A.xGq,sEj(this);var W=this.yr.share();W.pw("o");var z=new rnw(W,"o");this.lB6.promise.then(function(){z.done();W.b0();W.dispose()},function(){return void W.dispose()});
this.addOnDisposeCallback(function(){H.hb?(H.hb.dispose(),H.hb=void 0):H.eC?H.yr.b0():(H.eC=H.reportError(new nO(32,"TNP:Disposed")),H.yr.b0(),H.lB6.reject(H.eC))});
_.ZL(this,this.yr)};
_.I(Fk,_.dF);Fk.prototype.xzK=function(){return this.lB6.promise};
var kZi=function(A,H){if(!(H instanceof nO))if(H instanceof _.mv){var k=Error(H.toString());k.stack=H.stack;H=new nO(11,"EBH:Error",k)}else H=new nO(12,"BSO:Unknown",H);return A.reportError(H)},sEj=function(A){var H,k,d,W,z,u,B,h,O,T,m,J,g,v,y;
return _.e(function(X){switch(X.nextAddress){case 1:H=void 0;A.otP++;k=new _.lk;A.vm instanceof jP&&A.vm.d66.push(k.promise);if(!A.lzO){X.jumpTo(2);break}d=new _.lk;setTimeout(function(){return void d.resolve()});
return X.yield(d.promise,2);case 2:return W=A.yr.share(),_.S_(X,4,5),A.state=5,z={},u=[],X.yield(s9(A.vm.snapshot({sq:z,hTc:u}),A.yEr.lxy,function(){return Promise.reject(new nO(15,"MDA:Timeout"))}),7);
case 7:B=X.yieldResult;if(A.isDisposed())throw new nO(A.hb?20:32,"MDA:Disposed");h=u[0];A.state=6;return X.yield(s9(dGN(A.xT,B),A.yEr.sp9,function(){return Promise.reject(new nO(10,"BWB:Timeout"))}),8);
case 8:O=X.yieldResult;if(A.isDisposed())throw new nO(A.hb?20:32,"BWB:Disposed");A.state=7;H=_.vS(W,function(){var K=WSp(A,O,k,h);K.bIA.promise.then(function(){return void A.pbR()});
return K},"i");
case 5:_.KV(X);W.dispose();_.QA(X,6);break;case 4:T=_.VA(X);(m=H)==null||m.dispose();if(!A.eC){J=kZi(A,T);k.resolve();var D;if(D=A.vm instanceof jP&&A.otP<2)a:if(T instanceof nO)D=T.code!==32&&T.code!==20&&T.code!==10;else{if(T instanceof _.mv)switch(T.code){case 2:case 13:case 14:case 4:break;default:D=!1;break a}D=!0}if(D)return g=(1+Math.random()*.25)*(A.hb?6E4:1E3),v=setTimeout(function(){return void A.pbR()},g),A.addOnDisposeCallback(function(){return void clearTimeout(v)}),X.return();
A.eC=J}W.logError(A.hb?13:14);A.lB6.reject(A.eC);return X.return();case 6:A.state=8,A.otP=0,(y=A.hb)==null||y.dispose(),A.hb=H,A.lB6.resolve(),_.EN(X)}})},WSp=function(A,H,k,d){var W=Hxw(H,2)*1E3;
if(W<=0)throw new nO(31,"TTM:Invalid");if(_.O8(H,4))return new fqw(A.yr,_.O8(H,4),W);if(!Hxw(H,3))return new ZGj(A.yr,cVw(_.z5(H,1)),W);if(!d)throw new nO(4,"PMD:Undefined");d=d(cVw(_.z5(H,1)));if(typeof d!=="function")throw new nO(16,"APF:Failed");A.pF2=Math.floor((Date.now()+W)/1E3);A=new n6A(A.yr,d,Hxw(H,3),W);A.addOnDisposeCallback(function(){return void k.resolve()});
return A};
Fk.prototype.jS=function(A){return zXA(this,Object.assign({},A),!1)};
Fk.prototype.zUM=function(A){return zXA(this,Object.assign({},A),!0)};
Fk.prototype.ggY=function(A){if(A>150)return!1;try{return this.cache=new p5w(A,this.yr),!0}catch(H){return this.reportError(new nO(22,"GBJ:init",H)),!1}};
Fk.prototype.reportError=function(A){this.yr.logError(A.code);this.onError(A);return A};
var qYG=function(A,H){H=H instanceof nO?H:new nO(5,"TVD:error",H);return A.reportError(H)},zXA=function(A,H,k){try{if(A.isDisposed())throw new nO(21,"BNT:disposed");
if(!A.hb&&A.eC)throw A.eC;var d,W;return(W=(d=rfJ(A,H,k))!=null?d:uZ0(A,H,k))!=null?W:BeG(A,H,k)}catch(z){if(!H.h9o)throw qYG(A,z);return eXj(A,k,z)}},rfJ=function(A,H,k){var d;
return(d=A.hb)==null?void 0:MiQ(d,function(){return xGi(A,H)},k,function(W){var z;
if(A.hb instanceof n6A&&((z=H.fD)==null?0:z.dVc))try{var u;(u=A.cache)==null||QPG(u,xGi(A,H),W,H.fD.utr,A.pF2-120)}catch(B){A.reportError(new nO(24,"ELX:write",B))}})},uZ0=function(A,H,k){var d;
if((d=H.fD)!=null&&d.xcO)try{var W,z=(W=A.cache)==null?void 0:Vi0(W,xGi(A,H),H.fD.utr);return z?k?_.vS(A.yr,function(){return _.ob(z,2)},"a"):z:void 0}catch(u){A.reportError(new nO(23,"RXO:read",u))}},BeG=function(A,H,k){var d={stack:[],
error:void 0,hasError:!1};try{if(!H.o1S)throw new nO(29,"SDF:notready");return MiQ(EZi(d,new $4Q(A.yr,0,A.state)),function(){return xGi(A,H)},k)}catch(W){d.error=W,d.hasError=!0}finally{UQQ(d)}},eXj=function(A,H,k){var d={stack:[],
error:void 0,hasError:!1};try{var W=qYG(A,k);return MiQ(EZi(d,new w5G(A.yr,W)),function(){return[]},H)}catch(z){d.error=z,d.hasError=!0}finally{UQQ(d)}},xGi=function(A,H){return H.boM?H.boM:H.sq?_.vS(A.yr,function(){return H.boM=g6N(H.sq)},"c"):[]},H5J=function(A){return ap(function(H){if(!kU(H))return!1;
for(var k=_.r(Object.entries(A)),d=k.next();!d.done;d=k.next()){var W=_.r(d.value);d=W.next().value;W=W.next().value;if(!(d in H)){if(W.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!W(H[d]))return!1}return!0})}({vm:function(A){return ap(function(H){return H instanceof A})}(jP)},"");var i5A=function(){var A=_.Qc();this.JSC$10228_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",VJ("cookie_enabled"),VJ("cookie_3p_enabled"),_.UI("browser"))};
i5A.prototype.increment=function(A,H,k){this.JSC$10228_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",A,H,k)};
var MeN=function(){var A=_.Qc();this.JSC$10252_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",EI("tick"),VJ("from_st_cookie"))};
MeN.prototype.increment=function(A,H){this.JSC$10252_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",A,H)};
var hXw=function(){var A=_.Qc();this.JSC$10258_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.UI("status"))};
hXw.prototype.increment=function(A){this.JSC$10258_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",A)};
var O5N=function(){var A=_.Qc();this.JSC$10261_streamzService=A;A.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.UI("stage"),VJ("is_using_ytd_player"),VJ("has_expandable_tiles"))};
O5N.prototype.increment=function(A,H,k){this.JSC$10261_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",A,H,k)};
var RXw=function(){var A=_.Qc();this.JSC$10264_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/response_signature",_.UI("check_status"))};
RXw.prototype.increment=function(A){this.JSC$10264_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/web/response_signature",A)};
var Te0=function(){var A=_.Qc();this.JSC$10267_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.UI("sig"),EI("de"))};
Te0.prototype.increment=function(A,H){this.JSC$10267_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/web/e_sig_log",A,H)};
var mGj=function(){var A=_.Qc();this.JSC$10270_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.UI("sig"),EI("de"))};
mGj.prototype.increment=function(A,H){this.JSC$10270_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/web/e_sig_en",A,H)};
_.Jf0=function(){var A=_.Qc();this.JSC$10273_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.UI("action"))};
_.Jf0.prototype.increment=function(A){this.JSC$10273_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/web/enforcement_intent",A)};var Xk=window;var ghj=(new Date).getTime();_.iK.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.iK.createSet("action","cite","data","formaction","href","manifest","poster","src");var b5N=function(A){this.servicePromise_=A;A.then((0,_.WT)(function(){},this),function(){},this)},LS1=function(A,H,k){A.servicePromise_.then(function(d){var W=d[H];
if(!W)throw Error("La`"+H);return W.apply(d,k)})},jEN=function(A,H,k){for(var d=Array(arguments.length-2),W=2;W<arguments.length;W++)d[W-2]=arguments[W];
W=vh0(A,H).then(function(z){return z.apply(null,d)},function(z){z=Error("Ma`"+H+"`"+A+"`"+z,{cause:z});
delete yfN[H];return _.qt(z)});
return new b5N(W)},yfN={},vh0=function(A,H){var k=yfN[H];
if(k)return k;k=(k=_.UD(H))?_.MT(k):(new _.Wq(function(d,W){var z=(new RM(document)).createElement("SCRIPT");z.async=!0;_.h2(z,_.px(CKA(A)));z.onload=z.onreadystatechange=function(){z.readyState&&z.readyState!="loaded"&&z.readyState!="complete"||d()};
z.onerror=function(u){W(Error("Na`"+H+"`"+A,{cause:u}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(z)})).then(function(){var d=_.UD(H);
if(!d)throw Error("Oa`"+H+"`"+A);return d});
return yfN[H]=k};var I$w={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},PZA=function(){var A=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=bGb(function(){return _.e(function(H){if(H.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?H.return(Promise.resolve()):H.yield(YYw(A),2);A.rsaForList.length>
0&&document.addEventListener("click",A.requestAccessForHelpPanel);_.EN(H)})});
this.requestAccessForHelpPanel=function(){if(!(A.rsaForPromises.length>0)){for(var H=_.r(A.rsaForList),k=H.next();!k.done;k=H.next()){k=k.value;try{A.rsaForPromises.push(document.requestStorageAccessFor(k))}catch(d){}}Promise.all(A.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){A.reset()})}}};
PZA.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var YYw=function(A){var H,k,d,W;return _.e(function(z){switch(z.nextAddress){case 1:H=_.r(Object.values(I$w)),k=H.next();case 2:if(k.done){z.jumpTo(0);break}d=k.value;_.S_(z,5);return z.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),7);case 7:W=z.yieldResult;W.state!=="granted"&&A.rsaForList.push(d);_.QN(z,3);break;case 5:_.VA(z);z.jumpTo(0);break;case 3:k=H.next(),z.jumpTo(2)}})};(new PZA).initialize();var GZJ=function(A){this.JSC$10287_loader_=A};
GZJ.prototype.startHelp=function(A){LS1(this.JSC$10287_loader_,"startHelp",arguments)};
GZJ.prototype.JSC$10289_loadChatSupport=function(A){LS1(this.JSC$10287_loader_,"loadChatSupport",arguments)};
var XLG=function(A,H){H=H||{};A=jEN(FSZ,"help.service.Lazy.create",A,{apiKey:H.apiKey||H.apiKey,asxUiUri:H.asxUiUri||H.asxUiUri,environment:H.environment||H.environment,flow:H.flow||H.flow,frdProductData:H.frdProductData||H.frdProductData,frdProductDataSerializedJspb:H.frdProductDataSerializedJspb||H.frdProductDataSerializedJspb,helpCenterPath:H.helpCenterPath||H.helpCenterPath,locale:H.locale||H.locale||"en-US".replace(/-/g,"_"),nonce:H.nonce||H.nonce,productData:H.productData||H.productData,receiverUri:H.receiverUri||
H.receiverUri,renderApiUri:H.renderApiUri||H.renderApiUri,theme:H.theme||H.theme,window:H.window||H.window});return new GZJ(A)},FSZ=new FW(L5r,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var DGG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(DGG,_.OW);var SYw=_.Xf(DGG);var CZA=[0,_.cZ,XM,MnA];_.KS1=new function(A,H,k,d){this.configType=A;this.flagName=k;this.defaultValue=d;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 cfp=function(){this.retriever=_.wj().resolve(a$Q)};_.QG={get payments(){return window.payments}};v6r(Node);v6r(Element);var pLi=v6r(HTMLElement);v6r(SVGElement);var QEw,VFG,Cf,Ehw;QEw=function(A){return typeof A.className=="string"?A.className:A.getAttribute&&A.getAttribute("class")||""};
VFG=function(A){return A.classList?A.classList:QEw(A).match(/\S+/g)||[]};
_.DO=function(A,H){typeof A.className=="string"?A.className=H:A.setAttribute&&A.setAttribute("class",H)};
_.SP=function(A,H){return A.classList?A.classList.contains(H):_.VW(VFG(A),H)};
_.Y5=function(A,H){if(A.classList)A.classList.add(H);else if(!_.SP(A,H)){var k=QEw(A);_.DO(A,k+(k.length>0?" "+H:H))}};
Cf=function(A,H){if(A.classList)Array.prototype.forEach.call(H,function(W){_.Y5(A,W)});
else{var k={};Array.prototype.forEach.call(VFG(A),function(W){k[W]=!0});
Array.prototype.forEach.call(H,function(W){k[W]=!0});
H="";for(var d in k)H+=H.length>0?" "+d:d;_.DO(A,H)}};
_.Iy=function(A,H){A.classList?A.classList.remove(H):_.SP(A,H)&&_.DO(A,Array.prototype.filter.call(VFG(A),function(k){return k!=H}).join(" "))};
Ehw=function(A,H){A.classList?Array.prototype.forEach.call(H,function(k){_.Iy(A,k)}):_.DO(A,Array.prototype.filter.call(VFG(A),function(k){return!_.VW(H,k)}).join(" "))};var UGp=function(A){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=A.document},NeZ=function(A,H){l$A(A);
var k=document.createElement("div"),d;(d=H.parentNode)==null||d.insertBefore(k,H);k.tabIndex=0;k.id="fc-focus-trap-pre-div";k=document.createElement("div");var W;(W=H.parentNode)==null||W.insertBefore(k,H.nextSibling);k.tabIndex=0;k.id="fc-focus-trap-post-div";var z=tFJ(A,H),u=tFJ(A,H,!0);z&&u&&(A.focusChangeHandler=function(){var B=A.document.activeElement;if(B)if(_.as(H,B))A.previouslyFocusedElement=B;else if(B===A.document.activeElement)switch(A.previouslyFocusedElement){case z:u.focus();A.previouslyFocusedElement=
u;break;default:z.focus(),A.previouslyFocusedElement=z}},A.document.addEventListener("focus",A.focusChangeHandler,!0),A.document.addEventListener("focusin",A.focusChangeHandler))},l$A=function(A){A.focusChangeHandler&&(document.removeEventListener("focus",A.focusChangeHandler,!0),document.removeEventListener("focusin",A.focusChangeHandler),A.focusChangeHandler=null);
var H;(H=document.getElementById("fc-focus-trap-pre-div"))==null||H.remove();var k;(k=document.getElementById("fc-focus-trap-post-div"))==null||k.remove()},MFJ=function(A,H,k,d,W){k=k===void 0?!0:k;
var z;W=(z=W===void 0?null:W)!=null?z:tFJ(A,H,d===void 0?!1:d);W!==null&&(W.focus(),k&&NeZ(A,H))};
UGp.prototype.disableButton=function(A,H){H=H===void 0?null:H;A.disabled=!0;H&&_.Y5(A,H)};
var tFJ=function(A,H,k){k=k===void 0?!1:k;if(Vwm(H)&&!k)return H;var d=k?[].slice.call(H.children,0).reverse():H.children;d=_.r(d);for(var W=d.next();!W.done;W=d.next())if(W=W.value,pLi(W)&&(W=tFJ(A,W,k)))return W;return Vwm(H)&&k?H:null};var nhA=function(A){this.originalBodyOverflow="";this.JSC$10314_domHelper=zE(A);var H;this.isScrollingEnabled=((H=this.JSC$10314_domHelper.JSC$9639_document_.body)==null?void 0:H.style.overflow)!=="hidden"};
nhA.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10314_domHelper.JSC$9639_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.EK(_.z4,_.dF);_.q=_.z4.prototype;_.q.JSC$10317_id_=0;_.q.disposeInternal=function(){_.z4.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10315_listener_;delete this.handler_};
_.q.start=function(A){this.stop();this.JSC$10317_id_=Tk(this.callback_,A!==void 0?A:this.JSC$10315_interval_)};
_.q.stop=function(){this.isActive()&&_.k8.clearTimeout(this.JSC$10317_id_);this.JSC$10317_id_=0};
_.q.fire=function(){this.stop();this.JSC$10317_doAction_()};
_.q.isActive=function(){return this.JSC$10317_id_!=0};
_.q.JSC$10317_doAction_=function(){this.JSC$10317_id_=0;this.JSC$10315_listener_&&this.JSC$10315_listener_.call(this.handler_)};_.EK(_.qZ,_.dF);var Z5p=[];_.qZ.prototype.listen=function(A,H,k,d){Array.isArray(H)||(H&&(Z5p[0]=H.toString()),H=Z5p);for(var W=0;W<H.length;W++){var z=_.Y3(A,H[W],k||this.handleEvent,d||!1,this.handler_||this);if(!z)break;this.JSC$10318_keys_[z.key]=z}return this};
_.qZ.prototype.listenOnce=function(A,H,k,d){return f$w(this,A,H,k,d)};
var f$w=function(A,H,k,d,W,z){if(Array.isArray(k))for(var u=0;u<k.length;u++)f$w(A,H,k[u],d,W,z);else{H=T4(H,k,d||A.handleEvent,W,z||A.handler_||A);if(!H)return A;A.JSC$10318_keys_[H.key]=H}return A};
_.qZ.prototype.unlisten=function(A,H,k,d,W){if(Array.isArray(H))for(var z=0;z<H.length;z++)this.unlisten(A,H[z],k,d,W);else if(A=FRv(A,H,k||this.handleEvent,_.nl(d)?!!d.capture:!!d,W||this.handler_||this))k5(A),delete this.JSC$10318_keys_[A.key];return this};
_.qZ.prototype.removeAll=function(){_.iK.forEach(this.JSC$10318_keys_,function(A,H){this.JSC$10318_keys_.hasOwnProperty(H)&&k5(A)},this);
this.JSC$10318_keys_={}};
_.qZ.prototype.disposeInternal=function(){_.qZ.superClass_.disposeInternal.call(this);this.removeAll()};
_.qZ.prototype.handleEvent=function(){throw Error("Pa");};_.EK(rF,_.dF);rF.prototype.connect=function(A){A&&A()};
rF.prototype.isConnected=function(){return!0};
rF.prototype.registerService=function(A,H,k){this.services_[A]={callback:H,objectPayload:!!k}};
rF.prototype.getService=function(A,H){var k=this.services_[A];return k?k:this.defaultService_?{callback:_.H0(this.defaultService_,A),objectPayload:_.nl(H)}:null};
var wLA=function(A,H){if(H&&typeof A==="string")try{return JSON.parse(A)}catch(k){return null}else if(!H&&typeof A!=="string")return _.Js(A);return A};
rF.prototype.disposeInternal=function(){rF.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 ev=function(A,H){this.sequence_=[];this.onCancelFunction_=A;this.defaultScope_=H||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};
ev.prototype.cancel=function(A){if(this.fired_)this.result_ instanceof ev&&this.result_.cancel();else{if(this.parent_){var H=this.parent_;delete this.parent_;A?H.cancel(A):(H.branches_--,H.branches_<=0&&H.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Kf(this))}};
ev.prototype.continue_=function(A,H){this.blocked_=!1;oh0(this,A,H)};
var oh0=function(A,H,k){A.fired_=!0;A.result_=k;A.hadError_=!H;$G1(A)},HTj=function(A){if(A.fired_){if(!A.silentlyCanceled_)throw new AbG(A);
A.silentlyCanceled_=!1}};
ev.prototype.callback=function(A){HTj(this);oh0(this,!0,A)};
ev.prototype.errback=function(A){HTj(this);oh0(this,!1,A)};
var YaN=function(A,H,k){aw(A,H,null,k)};
ev.prototype.finally=function(A){var H=this;return s3N(new Promise(function(k,d){aw(H,function(W){A();k(W)},function(W){A();
d(W)})}))};
var aw=function(A,H,k,d){var W=A.fired_;W||(H===k?H=k=ix(H):(H=ix(H),k=ix(k)));A.sequence_.push([H,k,d]);W&&$G1(A)};
ev.prototype.then=function(A,H,k){var d,W,z=new _.Wq(function(u,B){W=u;d=B});
aw(this,W,function(u){u instanceof Kf?z.cancel():d(u);return kg0},this);
return z.then(A,H,k)};
jxG(ev);var IqW=function(A,H){H instanceof ev?YaN(A,(0,_.WT)(H.branch,H)):YaN(A,function(){return H})};
ev.prototype.branch=function(A){var H=new ev;aw(this,H.callback,H.errback,H);A&&(H.parent_=this,this.branches_++);return H};
ev.prototype.isError=function(A){return A instanceof Error};
var dVG=function(A){return Vv(A.sequence_,function(H){return typeof H[1]==="function"})},kg0={},$G1=function(A){if(A.unhandledErrorId_&&A.fired_&&dVG(A)){var H=A.unhandledErrorId_,k=Waw[H];
k&&(_.k8.clearTimeout(k.JSC$10335_id_),delete Waw[H]);A.unhandledErrorId_=0}A.parent_&&(A.parent_.branches_--,delete A.parent_);H=A.result_;for(var d=k=!1;A.sequence_.length&&!A.blocked_;){var W=A.sequence_.shift(),z=W[0],u=W[1];W=W[2];if(z=A.hadError_?u:z)try{var B=z.call(W||A.defaultScope_,H);B===kg0&&(B=void 0);B!==void 0&&(A.hadError_=A.hadError_&&(B==H||A.isError(B)),A.result_=H=B);if(IR1(H)||typeof _.k8.Promise==="function"&&H instanceof _.k8.Promise)d=!0,A.blocked_=!0}catch(h){H=h,A.hadError_=
!0,dVG(A)||(k=!0)}}A.result_=H;d&&(B=(0,_.WT)(A.continue_,A,!0),d=(0,_.WT)(A.continue_,A,!1),H instanceof ev?(aw(H,B,d),H.blocking_=!0):H.then(B,d));k&&(H=new zUA(H),Waw[H.JSC$10335_id_]=H,A.unhandledErrorId_=H.JSC$10335_id_)},s3N=function(A){var H=new ev;
A.then(function(k){H.callback(k)},function(k){H.errback(k)});
return H},AbG=function(){_.AA.call(this)};
_.EK(AbG,_.AA);AbG.prototype.message="Deferred has already fired";AbG.prototype.name="AlreadyCalledError";var Kf=function(){_.AA.call(this)};
_.EK(Kf,_.AA);Kf.prototype.message="Deferred was canceled";Kf.prototype.name="CanceledError";var zUA=function(A){this.JSC$10335_id_=_.k8.setTimeout((0,_.WT)(this.throwError,this),0);this.JSC$10335_error_=A};
zUA.prototype.throwError=function(){delete Waw[this.JSC$10335_id_];throw this.JSC$10335_error_;};
var Waw={};var qvp={1:"NativeMessagingTransport"},Gim=["pu","lru","pru","lpu","ppu"];_.EK(u5,_.dF);u5.prototype.transportType=0;u5.prototype.getWindow=function(){return this.JSC$10338_domHelper_.getWindow()};
u5.prototype.getName=function(){return qvp[String(this.transportType)]||""};_.EK(x3,u5);x3.prototype.peerProtocolVersion_=null;x3.prototype.initialized_=!1;x3.prototype.transportType=1;var rbQ={};x3.prototype.sendTimerId_=0;
var eUA=function(A){var H=A.event_.data;if(typeof H!=="string")return!1;var k=H.indexOf("|"),d=H.indexOf(":");if(k==-1||d==-1)return!1;var W=H.substring(0,k);k=H.substring(k+1,d);H=H.substring(d+1);if(d=hw[W])return d.xpcDeliver(k,H,A.event_.origin),!0;d=uWw(H)[0];for(var z in hw){var u=hw[z];if(jPb(u)==1&&!u.isConnected()&&k=="tp"&&(d=="SETUP"||d=="SETUP_NTPV2")&&B_p(u,A.event_.origin))return delete hw[u.name],u.name=W,hw[W]=u,u.xpcDeliver(k,H),!0}return!1},xVk=function(A){A.protocolVersion_!=2||
A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=2||A.send("tp","SETUP_NTPV2,"+A.endpointId_);
A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=1||A.send("tp","SETUP")},iTJ=function(A,H){if(A.protocolVersion_!=2||A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=2||H!=2){if(A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=1||H!=1)return;
A.send("tp","SETUP_ACK")}else A.send("tp","SETUP_ACK_NTPV2");A.setupAckSent_.fired_||A.setupAckSent_.callback(!0)},hUQ=function(A,H){H>A.peerProtocolVersion_&&(A.peerProtocolVersion_=H);
A.peerProtocolVersion_==1&&(A.setupAckSent_.fired_||A.oneSidedHandshake_||A.setupAckSent_.callback(!0),A.peerEndpointId_=null)};
_.q=x3.prototype;_.q.connect=function(){var A=this.getWindow(),H=_.fl(A),k=rbQ[H];typeof k!=="number"&&(k=0);k==0&&_.Y3(A.postMessage?A:A.document,"message",eUA,!1,x3);rbQ[H]=k+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.q.maybeAttemptToConnect_=function(){var A=jPb(this.JSC$10341_channel_)==0;this.oneSidedHandshake_&&A||this.JSC$10341_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),xVk(this))};
_.q.send=function(A,H){var k=this.JSC$10341_channel_.peerWindowObject_;k&&(this.send=function(d,W){var z=this,u=this.JSC$10341_channel_.name;this.sendTimerId_=Tk(function(){z.sendTimerId_=0;try{var B=k.postMessage?k:k.document;B.postMessage&&B.postMessage(u+"|"+d+":"+W,z.peerHostname_)}catch(h){}},0)},this.send(A,H))};
_.q.notifyConnected_=function(){var A=this.JSC$10341_channel_,H=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;A.isConnected()||A.connectionDelay_&&A.connectionDelay_.isActive()||(A.state_=2,_.CC(A.connectionDelay_),H!==void 0?(A.connectionDelay_=new _.z4(A.connectCb_,H),A.connectionDelay_.start()):(A.connectionDelay_=null,A.connectCb_()))};
_.q.disposeInternal=function(){if(this.initialized_){var A=this.getWindow(),H=_.fl(A),k=rbQ[H];rbQ[H]=k-1;k==1&&_.xz(A.postMessage?A:A.document,"message",eUA,!1,x3)}this.sendTimerId_&&(_.k8.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.CC(this.JSC$10341_eventHandler_);delete this.JSC$10341_eventHandler_;_.CC(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10341_connected_.cancel();delete this.JSC$10341_connected_;delete this.send;x3.superClass_.disposeInternal.call(this)};
var uWw=function(A){A=A.split(",");A[1]=A[1]||null;return A};var RUk;_.cS=function(A){if(A.getValues&&typeof A.getValues=="function")return A.getValues();if(typeof Map!=="undefined"&&A instanceof Map||typeof Set!=="undefined"&&A instanceof Set)return Array.from(A.values());if(typeof A==="string")return A.split("");if(_.Nv(A)){for(var H=[],k=A.length,d=0;d<k;d++)H.push(A[d]);return H}return _.iK.getValues(A)};
_.OT0=function(A){if(A.getKeys&&typeof A.getKeys=="function")return A.getKeys();if(!A.getValues||typeof A.getValues!="function"){if(typeof Map!=="undefined"&&A instanceof Map)return Array.from(A.keys());if(!(typeof Set!=="undefined"&&A instanceof Set)){if(_.Nv(A)||typeof A==="string"){var H=[];A=A.length;for(var k=0;k<A;k++)H.push(k);return H}return _.iK.getKeys(A)}}};
RUk=function(A,H,k){if(A.forEach&&typeof A.forEach=="function")A.forEach(H,k);else if(_.Nv(A)||typeof A==="string")Array.prototype.forEach.call(A,H,k);else for(var d=_.OT0(A),W=_.cS(A),z=W.length,u=0;u<z;u++)H.call(k,W[u],d&&d[u],A)};var sv8,ts,M3,vJp,T_p,JbJ,mVG,LaJ,gJ1;
_.PB=function(A,H){this.JSC$10346_domain_=this.userInfo_=this.scheme_="";this.JSC$10346_port_=null;this.fragment_=this.JSC$10346_path_="";this.JSC$10346_ignoreCase_=!1;var k;A instanceof _.PB?(this.JSC$10346_ignoreCase_=H!==void 0?H:A.JSC$10346_ignoreCase_,_.pf(this,A.scheme_),this.userInfo_=A.userInfo_,_.Qh(this,A.JSC$10346_domain_),_.Vh(this,A.JSC$10346_port_),_.Ex(this,A.getPath()),_.Ux(this,A.JSC$10346_queryData_.clone()),_.lx(this,A.fragment_)):A&&(k=_.UG(String(A)))?(this.JSC$10346_ignoreCase_=
!!H,_.pf(this,k[1]||"",!0),this.userInfo_=ts(k[2]||""),_.Qh(this,k[3]||"",!0),_.Vh(this,k[4]),_.Ex(this,k[5]||"",!0),_.Ux(this,k[6]||"",!0),_.lx(this,k[7]||"",!0)):(this.JSC$10346_ignoreCase_=!!H,this.JSC$10346_queryData_=new _.N3(null,this.JSC$10346_ignoreCase_))};
_.PB.prototype.toString=function(){var A=[],H=this.scheme_;H&&A.push(M3(H,T_p,!0),":");var k=this.JSC$10346_domain_;if(k||H=="file")A.push("//"),(H=this.userInfo_)&&A.push(M3(H,T_p,!0),"@"),A.push(_.w5(k).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),k=this.JSC$10346_port_,k!=null&&A.push(":",String(k));if(k=this.getPath())this.JSC$10346_domain_&&k.charAt(0)!="/"&&A.push("/"),A.push(M3(k,k.charAt(0)=="/"?mVG:JbJ,!0));(k=this.JSC$10346_queryData_.toString())&&A.push("?",k);(k=this.fragment_)&&A.push("#",
M3(k,gJ1));return A.join("")};
_.PB.prototype.resolve=function(A){var H=this.clone(),k=!!A.scheme_;k?_.pf(H,A.scheme_):k=!!A.userInfo_;k?H.userInfo_=A.userInfo_:k=!!A.JSC$10346_domain_;k?_.Qh(H,A.JSC$10346_domain_):k=A.JSC$10346_port_!=null;var d=A.getPath();if(k)_.Vh(H,A.JSC$10346_port_);else if(k=!!A.JSC$10346_path_){if(d.charAt(0)!="/")if(this.JSC$10346_domain_&&!this.JSC$10346_path_)d="/"+d;else{var W=H.getPath().lastIndexOf("/");W!=-1&&(d=H.getPath().slice(0,W+1)+d)}W=d;if(W==".."||W==".")d="";else if(_.iI(W,"./")||_.iI(W,
"/.")){d=_.rI(W,"/");W=W.split("/");for(var z=[],u=0;u<W.length;){var B=W[u++];B=="."?d&&u==W.length&&z.push(""):B==".."?((z.length>1||z.length==1&&z[0]!="")&&z.pop(),d&&u==W.length&&z.push("")):(z.push(B),d=!0)}d=z.join("/")}else d=W}k?_.Ex(H,d):k=A.JSC$10346_queryData_.toString()!=="";k?_.Ux(H,A.JSC$10346_queryData_.clone()):k=!!A.fragment_;k&&_.lx(H,A.fragment_);return H};
_.PB.prototype.clone=function(){return new _.PB(this)};
_.pf=function(A,H,k){A.scheme_=k?ts(H,!0):H;A.scheme_&&(A.scheme_=A.scheme_.replace(/:$/,""));return A};
_.Qh=function(A,H,k){A.JSC$10346_domain_=k?ts(H,!0):H;return A};
_.Vh=function(A,H){if(H){H=Number(H);if(isNaN(H)||H<0)throw Error("Qa`"+H);A.JSC$10346_port_=H}else A.JSC$10346_port_=null;return A};
_.PB.prototype.getPath=function(){return this.JSC$10346_path_};
_.Ex=function(A,H,k){A.JSC$10346_path_=k?ts(H,!0):H;return A};
_.Ux=function(A,H,k){H instanceof _.N3?(A.JSC$10346_queryData_=H,bTw(A.JSC$10346_queryData_,A.JSC$10346_ignoreCase_)):(k||(H=M3(H,LaJ)),A.JSC$10346_queryData_=new _.N3(H,A.JSC$10346_ignoreCase_));return A};
_.VT=function(A,H,k){A.JSC$10346_queryData_.set(H,k);return A};
_.QT=function(A,H){return A.JSC$10346_queryData_.get(H)};
_.lx=function(A,H,k){A.fragment_=k?ts(H):H;return A};
_.nf=function(A){_.VT(A,"zx",cT());return A};
_.p$=function(A,H){return A instanceof _.PB?A.clone():new _.PB(A,H)};
sv8=function(A,H){A instanceof _.PB||(A=_.p$(A));H instanceof _.PB||(H=_.p$(H));return A.resolve(H)};
ts=function(A,H){return A?H?decodeURI(A.replace(/%25/g,"%2525")):decodeURIComponent(A):""};
M3=function(A,H,k){return typeof A==="string"?(A=encodeURI(A).replace(H,vJp),k&&(A=A.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),A):null};
vJp=function(A){A=A.charCodeAt(0);return"%"+(A>>4&15).toString(16)+(A&15).toString(16)};
T_p=/[#\/\?@]/g;JbJ=/[#\?:]/g;mVG=/[#\?]/g;LaJ=/[#\?@]/g;gJ1=/#/g;_.N3=function(A,H){this.count_=this.keyMap_=null;this.encodedQuery_=A||null;this.JSC$10347_ignoreCase_=!!H};
_.ZO=function(A){A.keyMap_||(A.keyMap_=new Map,A.count_=0,A.encodedQuery_&&w4I(A.encodedQuery_,function(H,k){A.add(fY(H),k)}))};
_.q=_.N3.prototype;_.q.getCount=function(){_.ZO(this);return this.count_};
_.q.add=function(A,H){_.ZO(this);this.encodedQuery_=null;A=ff(this,A);var k=this.keyMap_.get(A);k||this.keyMap_.set(A,k=[]);k.push(H);this.count_+=1;return this};
_.q.remove=function(A){_.ZO(this);A=ff(this,A);return this.keyMap_.has(A)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(A).length,this.keyMap_.delete(A)):!1};
_.q.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.q.isEmpty=function(){_.ZO(this);return this.count_==0};
_.q.containsKey=function(A){_.ZO(this);A=ff(this,A);return this.keyMap_.has(A)};
_.q.containsValue=function(A){var H=this.getValues();return _.VW(H,A)};
_.q.forEach=function(A,H){_.ZO(this);this.keyMap_.forEach(function(k,d){k.forEach(function(W){A.call(H,W,d,this)},this)},this)};
_.q.getKeys=function(){_.ZO(this);for(var A=Array.from(this.keyMap_.values()),H=Array.from(this.keyMap_.keys()),k=[],d=0;d<H.length;d++)for(var W=A[d],z=0;z<W.length;z++)k.push(H[d]);return k};
_.q.getValues=function(A){_.ZO(this);var H=[];if(typeof A==="string")this.containsKey(A)&&(H=H.concat(this.keyMap_.get(ff(this,A))));else{A=Array.from(this.keyMap_.values());for(var k=0;k<A.length;k++)H=H.concat(A[k])}return H};
_.q.set=function(A,H){_.ZO(this);this.encodedQuery_=null;A=ff(this,A);this.containsKey(A)&&(this.count_-=this.keyMap_.get(A).length);this.keyMap_.set(A,[H]);this.count_+=1;return this};
_.q.get=function(A,H){if(!A)return H;A=this.getValues(A);return A.length>0?String(A[0]):H};
_.ybw=function(A,H,k){A.remove(H);k.length>0&&(A.encodedQuery_=null,A.keyMap_.set(ff(A,H),_.tA(k)),A.count_+=k.length)};
_.N3.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var A=[],H=Array.from(this.keyMap_.keys()),k=0;k<H.length;k++){var d=H[k],W=_.w5(d);d=this.getValues(d);for(var z=0;z<d.length;z++){var u=W;d[z]!==""&&(u+="="+_.w5(d[z]));A.push(u)}}return this.encodedQuery_=A.join("&")};
_.N3.prototype.clone=function(){var A=new _.N3;A.encodedQuery_=this.encodedQuery_;this.keyMap_&&(A.keyMap_=new Map(this.keyMap_),A.count_=this.count_);return A};
var ff=function(A,H){H=String(H);A.JSC$10347_ignoreCase_&&(H=H.toLowerCase());return H},bTw=function(A,H){H&&!A.JSC$10347_ignoreCase_&&(_.ZO(A),A.encodedQuery_=null,A.keyMap_.forEach(function(k,d){var W=d.toLowerCase();
d!=W&&(this.remove(d),_.ybw(this,W,k))},A));
A.JSC$10347_ignoreCase_=H};
_.N3.prototype.extend=function(A){for(var H=0;H<arguments.length;H++)RUk(arguments[H],function(k,d){this.add(d,k)},this)};_.EK(mM,rF);var j3w=RegExp("^%*tp$"),I7Z=RegExp("^%+tp$");_.q=mM.prototype;_.q.connectionDelay_=null;_.q.peerWindowDeferred_=null;_.q.transport_=null;_.q.state_=1;_.q.isConnected=function(){return this.state_==2};
_.q.peerWindowObject_=null;_.q.iframeElement_=null;_.q.getConfig=function(){return this.cfg_};
_.q.connect=function(A){this.connectCb_=A||_.xX;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?YaN(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.q.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10342_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var A=this.iframeElement_.contentWindow;A||(A=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=A}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ua");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$10342_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new x3(this,this.cfg_.ph,this.JSC$10342_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Ta");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.q.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.CC(this.transport_);this.connectCb_=this.transport_=null;_.CC(this.connectionDelay_);this.connectionDelay_=null};
_.q.send=function(A,H){if(this.isConnected()){try{var k=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(W){k=!1}if(k){_.nl(H)&&(H=_.Js(H));k=this.transport_;var d=k.send;j3w.test(A)&&(A="%"+A);A=A.replace(/[%:|]/g,encodeURIComponent);d.call(k,A,H)}else this.close()}};
_.q.xpcDeliver=function(A,H,k){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.WT)(this.xpcDeliver,this,A,H,k));else if(B_p(this,k)&&!this.isDisposed()&&this.state_!=3)if(A&&A!="tp")this.isConnected()&&(A=A.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),A=I7Z.test(A)?A.substring(1):A,A=this.getService(A,H))&&(H=wLA(H,A.objectPayload),H!=null&&A.callback(H));else switch(A=this.transport_,k=uWw(H),H=k[1],k[0]){case "SETUP_ACK":hUQ(A,1);A.setupAckReceived_.fired_||A.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":A.protocolVersion_==2&&(hUQ(A,2),A.setupAckReceived_.fired_||A.setupAckReceived_.callback(!0));break;case "SETUP":hUQ(A,1);iTJ(A,1);break;case "SETUP_NTPV2":A.protocolVersion_==2&&(k=A.peerProtocolVersion_,hUQ(A,2),iTJ(A,2),k!=1&&A.peerEndpointId_==null||A.peerEndpointId_==H||xVk(A),A.peerEndpointId_=H)}};
var jPb=function(A){var H=A.cfg_.role;return typeof H==="number"?H:window.parent==A.peerWindowObject_?1:0},B_p=function(A,H){var k=A.cfg_.ph;
return _.BV(H==null?"":String(H))||_.BV(k==null?"":String(k))||H==A.cfg_.ph};
mM.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete hw[this.name];_.CC(this.peerLoadHandler_);delete this.peerLoadHandler_;mM.superClass_.disposeInternal.call(this)};
var X5X=function(){for(var A in hw)_.CC(hw[A])},hw={};var Pl0=function(A,H){this.win=A;this.allowAdsHttpEndpoint=H;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10356_domHelper=zE(A);this.scrollManager=new nhA(A);this.accessibilityManager=new UGp(A);YvN(this)},YvN=function(A){var H=function(){A.allowAdsPopup&&A.allowAdsPopup.style.setProperty("display","none","important");
A.wallElement.style.setProperty("display","","important");l$A(A.accessibilityManager);MFJ(A.accessibilityManager,A.wallElement.querySelector(".fc-dialog-container"),!1,!1,A.wallElement.querySelector(".fc-button-whitelist"));A.scrollManager.enableScrolling()};
A.allowAdsPopup=A.JSC$10356_domHelper.JSC$9641_createDom("DIV",{"class":"fc-whitelist-root"});A.allowAdsPopup.style.setProperty("display","none","important");A.JSC$10356_domHelper.appendChild(A.JSC$10356_domHelper.JSC$9639_document_.body,A.allowAdsPopup);var k=A.JSC$10356_domHelper.JSC$9641_createDom("DIV",{"class":"fc-dialog-overlay"});A.JSC$10356_domHelper.appendChild(A.allowAdsPopup,k);var d=A.JSC$10356_domHelper.JSC$9641_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:H});A.JSC$10356_domHelper.appendChild(A.allowAdsPopup,
d);k=A.JSC$10356_domHelper.JSC$9641_createDom("IFRAME");k.className="fc-whitelist-dialog";k.frameBorder="0";k.id="fc-whitelist-iframe";k.tabIndex="0";_.zM(k,A.allowAdsHttpEndpoint);A.JSC$10356_domHelper.appendChild(d,k);d={};d.pu=_.QB(A.allowAdsHttpEndpoint).toString();d.tp=1;d.cn="fc-whitelist-channel";d.ifrid=k.id;d.osh=!0;A.allowAdsCrossPageChannel=new mM(d);A.allowAdsCrossPageChannel.registerService("close",H);A.allowAdsCrossPageChannel.registerService("refresh",function(){A.win.location.reload()});
A.allowAdsCrossPageChannel.registerService("resize",function(W){if(W){var z=A.allowAdsPopup.querySelector(".fc-whitelist-dialog");W.width&&z.style.setProperty("width",W.width,"important");W.height&&z.style.setProperty("height",W.height,"important")}},!0);
A.allowAdsCrossPageChannel.connect()};
Pl0.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10356_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var w3=window,ow=document,Ggw=w3.location,Faw=function(){},XqZ=/\[native code\]/,$z=function(A,H,k){return A[H]=A[H]||k},DVQ=function(A){A=A.sort();
for(var H=[],k=void 0,d=0;d<A.length;d++){var W=A[d];W!=k&&H.push(W);k=W}return H},A9=function(){var A;
if((A=Object.create)&&XqZ.test(A))A=A(null);else{A={};for(var H in A)A[H]=void 0}return A},HF=$z(w3,"gapi",{});var sh={};sh=$z(w3,"___jsl",A9());$z(sh,"I",0);$z(sh,"hel",10);var Svj=function(){var A=Ggw.href;if(sh.dpo)var H=sh.h;else{H=sh.h;var k=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(A=A&&(k.exec(A)||d.exec(A)))try{H=decodeURIComponent(A[2])}catch(W){}}return H},Cl1=function(A){var H=$z(sh,"PQ",[]);
sh.PQ=[];var k=H.length;if(k===0)A();else for(var d=0,W=function(){++d===k&&A()},z=0;z<k;z++)H[z](W)},KaZ=function(A){return $z($z(sh,"H",A9()),A,A9())};var kw=function(A){this.JSC$10358_obj_=A};
kw.prototype.value=function(){return this.JSC$10358_obj_};
kw.prototype.getWidth=function(){return this.JSC$10358_obj_.width};
kw.prototype.getHeight=function(){return this.JSC$10358_obj_.height};
kw.prototype.getStyle=function(){return this.JSC$10358_obj_.style};var a7N=function(A){this.JSC$10361_obj_=A||{}};
_.q=a7N.prototype;_.q.value=function(){return this.JSC$10361_obj_};
_.q.setUrl=function(A){this.JSC$10361_obj_.url=A;return this};
_.q.getUrl=function(){return this.JSC$10361_obj_.url};
_.q.getStyle=function(){return this.JSC$10361_obj_.style};
_.q.getId=function(){return this.JSC$10361_obj_.id};
_.q.getContext=function(){return this.JSC$10361_obj_.context};
var cbj=function(A){A.JSC$10361_obj_.attributes=A.JSC$10361_obj_.attributes||{};return new kw(A.JSC$10361_obj_.attributes)};var pqN=function(){a7N.apply(this,arguments)};
_.I(pqN,a7N);var Q31=$z(sh,"perf",A9());$z(Q31,"g",A9());var VMJ=$z(Q31,"i",A9());$z(Q31,"r",[]);A9();A9();var UVp=function(A,H,k){H&&H.length>0&&(H=EJw(H),k&&k.length>0&&(H+="___"+EJw(k)),H.length>28&&(H=H.substr(0,28)+(H.length-28)),k=H,H=$z(VMJ,"_p",A9()),$z(H,k,A9())[A]=(new Date).getTime(),H=Q31.r,typeof H==="function"?H(A,"_p",k):H.push([A,"_p",k]))},EJw=function(A){return A.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var l7w=A9(),tMA=[],dt=function(A){throw Error("Va`"+A);};
tMA.push(["jsl",function(A){for(var H in A)if(Object.prototype.hasOwnProperty.call(A,H)){var k=A[H];typeof k=="object"?sh[H]=$z(sh,H,[]).concat(k):$z(sh,H,k)}if(H=A.u)A=$z(sh,"us",[]),A.push(H),(H=/^https:(.*)$/.exec(H))&&A.push("http:"+H[1])}]);
var N_A=/^(\/[a-zA-Z0-9_\-]+)+$/,MMw=[/\/amp\//,/\/amp$/,/^\/amp$/],nJk=/^[a-zA-Z0-9\-_\.,!]+$/,ZTA=/^gapi\.loaded_[0-9]+$/,f7J=/^[a-zA-Z0-9,._-]+$/,AMJ=function(A,H,k,d,W){var z=A.split(";"),u=z.shift(),B=l7w[u],h=null;B?h=B(z,H,k,d):dt("no hint processor for: "+u);h||dt("failed to generate load url");H=h;k=H.match(wqJ);(d=H.match(oJA))&&d.length===1&&$Vw.test(H)&&k&&k.length===1||dt("failed sanity: "+A);try{A="?";if(W&&W.length>0){CIV(W);var O=W.join(",");h=h+"?le="+O;A="&"}if(sh.rol){var T=sh.ol;
T&&T.length&&(h=""+h+A+"ol="+T.length)}}catch(m){}return h},kbN=function(A,H,k,d){A=HP0(A);
ZTA.test(k)||dt("invalid_callback");H=s0w(H);d=d&&d.length?s0w(d):null;var W=function(z){return encodeURIComponent(z).replace(/%2C/g,",")};
return[encodeURIComponent(A.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",W(A.version),"/m=",W(H),d?"/exm="+W(d):"","/rt=j/sv=1/d=1/ed=1",A.activeMods?"/am="+W(A.activeMods):"",A.resourceSig?"/rs="+W(A.resourceSig):"",A.zcms?"/t="+W(A.zcms):"","/cb=",W(k)].join("")},HP0=function(A){A.charAt(0)!=="/"&&dt("relative path");
for(var H=A.substring(1).split("/"),k=[];H.length;){A=H.shift();if(!A.length||A.indexOf(".")==0)dt("empty/relative directory");else if(A.indexOf("=")>0){H.unshift(A);break}k.push(A)}A={};for(var d=0,W=H.length;d<W;++d){var z=H[d].split("="),u=decodeURIComponent(z[0]),B=decodeURIComponent(z[1]);z.length==2&&u&&B&&(A[u]=A[u]||B)}H="/"+k.join("/");N_A.test(H)||dt("invalid_prefix");k=0;for(d=MMw.length;k<d;++k)MMw[k].test(H)&&dt("invalid_prefix");k=do0(A,"k",!0);d=do0(A,"am");W=do0(A,"rs");A=do0(A,"t");
return{pathPrefix:H,version:k,activeMods:d,resourceSig:W,zcms:A}},s0w=function(A){for(var H=[],k=0,d=A.length;k<d;++k){var W=A[k].replace(/\./g,"_").replace(/-/g,"_");
f7J.test(W)&&H.push(W)}return H.join(",")},do0=function(A,H,k){A=A[H];
!A&&k&&dt("missing: "+H);if(A){if(nJk.test(A))return A;dt("invalid: "+H)}return null},$Vw=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,oJA=/\/cb=/g,wqJ=/\/\//g;
l7w.m=function(A,H,k,d){(A=A[0])||dt("missing_hint");return"https://apis.google.com"+kbN(A,H,k,d)};
var Wbw=decodeURI("%73cript"),zj1=/^[-+_0-9\/A-Za-z]+={0,2}$/,qZN=function(A,H){for(var k=[],d=0;d<A.length;++d){var W=A[d],z;if(z=W){a:{for(z=0;z<H.length;z++)if(H[z]===W)break a;z=-1}z=z<0}z&&k.push(W)}return k},rM1=function(){var A=sh.nonce;
return A!==void 0?A&&A===String(A)&&A.match(zj1)?A:sh.nonce=null:ow.querySelector?(A=ow.querySelector("script[nonce]"))?(A=A.nonce||A.getAttribute("nonce")||"",A&&A===String(A)&&A.match(zj1)?sh.nonce=A:sh.nonce=null):null:null},ejw=function(A){if(ow.readyState!="loading")uFZ(A);
else{var H=rM1(),k="";H!==null&&(k=' nonce="'+H+'"');A="<"+Wbw+' src="'+encodeURI(A)+'"'+k+"></"+Wbw+">";ow.write(BoN?BoN.createHTML(A):A)}},uFZ=function(A){var H=ow.createElement(Wbw);
H.setAttribute("src",BoN?BoN.createScriptURL(A):A);A=rM1();A!==null&&H.setAttribute("nonce",A);H.async="true";(A=ow.getElementsByTagName(Wbw)[0])?A.parentNode.insertBefore(H,A):(ow.head||ow.body||ow.documentElement).appendChild(H)},iPG=function(A,H,k){xoG(function(){var d=H===Svj()?$z(HF,"_",A9()):A9();
d=$z(KaZ(H),"_",d);A(d)},k)},eDf=function(A,H){var k=H||{};
typeof H=="function"&&(k={},k.callback=H);var d=(H=k)&&H._c;if(d)for(var W=0;W<tMA.length;W++){var z=tMA[W][0],u=tMA[W][1];u&&Object.prototype.hasOwnProperty.call(d,z)&&u(d[z],A,H)}H=[];A?H=A.split(":"):k.features&&(H=k.features);if(!(A=k.h)&&(A=Svj(),!A))throw Error("Wa");hjN(H||[],k,A)},hjN=function(A,H,k){A=DVQ(A)||[];
var d=H.callback,W=H.config,z=H.timeout,u=H.ontimeout,B=H.onerror,h=void 0;typeof B=="function"&&(h=B);var O=null,T=!1;if(z&&!u||!z&&u)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";B=$z(KaZ(k),"r",[]).sort();var m=$z(KaZ(k),"L",[]).sort(),J=sh.le||[],g=[].concat(B),v=function(N,U){if(T)return 0;w3.clearTimeout(O);m.push.apply(m,y);var p=((HF||{}).config||{}).update;p?p(W):W&&$z(sh,"cu",[]).push(W);if(U){UVp("me0",N,g);try{iPG(U,k,h)}finally{UVp("me1",N,g)}}return 1};
z>0&&(O=w3.setTimeout(function(){T=!0;u()},z));
var y=qZN(A,m);if(y.length){y=qZN(A,B);var X=$z(sh,"CP",[]),D=X.length;X[D]=function(N){if(!N)return 0;UVp("ml1",y,g);var U=function(M){X[D]=null;v(y,N)&&Cl1(function(){d&&d();M()})},p=function(){var M=X[D+1];
M&&M()};
D>0&&X[D-1]?X[D]=function(){U(p)}:U(p)};
if(y.length){var K="loaded_"+sh.I++;HF[K]=function(N){X[D](N);HF[K]=null};
A=AMJ(k,y,"gapi."+K,B,J);B.push.apply(B,y);UVp("ml0",y,g);H.sync||w3.___gapisync?ejw(A):uFZ(A)}else X[D](Faw)}else v(y)&&d&&d()},OPZ;
var RjA=null,Tok=_.k8.trustedTypes;if(Tok&&Tok.createPolicy){try{RjA=Tok.createPolicy("goog#gapi",{createHTML:VAG,createScript:VAG,createScriptURL:VAG})}catch(A){_.k8.console&&_.k8.console.error(A.message)}OPZ=RjA}else OPZ=RjA;var BoN=OPZ,xoG=function(A,H){if(sh.hee&&sh.hel>0)try{return A()}catch(k){H&&H(k),sh.hel--,eDf("debug_error",function(){try{window.___jsl.hefn(k)}catch(d){throw k;}})}else try{return A()}catch(k){throw H&&H(k),k;
}},mop=HF.load;
mop&&$z(sh,"ol",[]).push(mop);HF.load=function(A,H){return xoG(function(){return eDf(A,H)})};var KRb;var gYj=function(){var A=A||[];this.dependencies_=[];JMZ(this,A)};
gYj.prototype.toString=function(){return"MpJwZc"};
gYj.prototype.getModuleId=function(){return"MpJwZc"};
var JMZ=function(A,H){var k=!1;k=k===void 0?!1:k;A.dependencies_=A.dependencies_.concat(H);k&&H.map(function(d){return d.getModuleId()}).forEach(function(d){aq8(function(W){W.addExtraEdge("MpJwZc",d)})})};var zA8=new gYj;var sNV=new _.r3("a"),rx8=new _.r3("c"),qdb=function(A,H,k){_.NZ.call(this,A,H);this.node=H;this.kind=k};
_.I(qdb,_.NZ);var bPG=function(){this.JSC$10374_keys_={};this.urlPrefix_="";this.JSC$10374_queryData_={}};
bPG.prototype.toString=function(){var A=this.urlPrefix_+Lbw(this),H=_.oa(this.JSC$10374_queryData_),k="";H!=""&&(k="?"+H);return A+k};
var vYi=function(A){A=WF(A,"md");return!!A&&A!=="0"},Lbw=function(A){var H=[],k=function(d){A.JSC$10374_keys_[d]!==void 0&&H.push(d+"="+A.JSC$10374_keys_[d])};
vYi(A)?(k("md"),k("k"),k("ck"),k("am"),k("rs"),k("gssmodulesetproto"),k("slk"),k("dti")):(k("sdch"),k("k"),k("ck"),k("am"),k("amc"),k("rt"),"d"in A.JSC$10374_keys_||za(A,"d","0"),k("d"),k("exm"),k("excm"),(A.JSC$10374_keys_.excm||A.JSC$10374_keys_.exm)&&H.push("ed=1"),k("im"),k("dg"),k("sm"),WF(A,"br")!="1"&&WF(A,"br")!="0"||k("br"),k("br-d"),WF(A,"rb")=="1"&&k("rb"),WF(A,"zs")!=="0"&&k("zs"),yMG(A)!==""&&k("wt"),k("gssmodulesetproto"),k("ujg"),k("sp"),k("rs"),k("cb"),k("ee"),k("slk"),k("dti"),k("m"));
return H.join("/")},WF=function(A,H){return A.JSC$10374_keys_[H]?A.JSC$10374_keys_[H]:null},za=function(A,H,k){k?A.JSC$10374_keys_[H]=k:delete A.JSC$10374_keys_[H]},j0J=function(A,H){A.urlPrefix_=H},Ick=function(A,H){H&&H.length>0?(H.sort(),za(A,"exm",H.join(","))):za(A,"exm",null)},YZ1=function(A,H){H&&H.length>0?(H.sort(),za(A,"excm",H.join(","))):za(A,"excm",null)},PoA=function(A){return(A=WF(A,"m"))?A.split(","):[]},yMG=function(A){switch(WF(A,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Gbk=function(A,H){var k=Object.keys(H).filter(function(d){return!!Object.keys(H[d]).length}).map(function(d){var W=Object.keys(H[d]);
W.length>1&&W.sort();return d+":"+W.join(",")});
k.sort();za(A,"ee",k.join(";"))},Abr=function(A){var H=WF(A,"ee");
if(!H)return{};A={};H=_.r(H.split(";"));for(var k=H.next();!k.done;k=H.next()){var d=_.r(k.value.split(":"));k=d.next().value;d=d.next().value;A[k]={};d=_.r(d.split(","));for(var W=d.next();!W.done;W=d.next())A[k][W.value]=!0}return A},Fb0=function(A){delete A.JSC$10374_keys_.m;
delete A.JSC$10374_keys_.exm;delete A.JSC$10374_keys_.ed};
bPG.prototype.clone=function(){var A=new bPG;A.JSC$10374_keys_=Object.assign({},this.JSC$10374_keys_);A.urlPrefix_=this.urlPrefix_;A.JSC$10374_queryData_=Object.assign({},this.JSC$10374_queryData_);return A};
var HTV=function(A,H){H=H===void 0?!0:H;var k=Xui(A),d=new bPG,W=_.UG(k)[5];_.iK.forEach(DoZ,function(u){var B=W.match("/"+u+"=([^/]+)");B&&za(d,u,B[1])});
var z="";z=A.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";j0J(d,A.substr(0,A.indexOf(z)+z.length));if(!H)return d;(A=_.UG(k)[6]||null)&&w4I(A,function(u,B){d.JSC$10374_queryData_[u]=B});
return d},wLN=function(A){A=_.Nx(Xui(A));
return A===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(A)?/\/k=/.test(A):!1},Xui=function(A){return A.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?A.substr(65):A},DoZ={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",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"},SZw=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.qp=function(A){this.JSC$10386_id_=A;this.opts={}};
_.qp.prototype.JSC$10388_setLabel=function(A){this.label_=A||void 0;return this};
_.qp.prototype.addUploadMetadata=function(A,H){var k=this.opts.data||{};k[A]=H;this.opts.data=k;return this};
var Cok=function(A){var H=_.iK.filter(A.opts,function(k){return k!==null});
H=_.iK.isEmpty(H)?null:H;A=[A.JSC$10386_id_,A.label_,H];H=GfN(A);return A=A.slice(0,H+1)};
_.qp.prototype.toString=function(){var A=Cok(this);return"("+_.hj(A,function(H){return JSON.stringify(H)}).join(",")+")"};
_.qp.prototype.getId=function(){return this.JSC$10386_id_};
_.qp.prototype.getOptions=function(){return _.iK.clone(this.opts)};var rt=function(){_.qp.call(this,"image-search")};
_.I(rt,_.qp);rt.prototype.setSize=function(A){this.opts.imgsz=A;return this};
rt.prototype.JSC$10388_setLabel=function(A){_.qp.prototype.JSC$10388_setLabel.call(this,A);return this};
rt.prototype.addUploadMetadata=function(A,H){_.qp.prototype.addUploadMetadata.call(this,A,H);return this};var uH=function(){_.qp.call(this,"maps")};
_.I(uH,_.qp);uH.prototype.setZoom=function(A){this.opts.zoom=A;return this};
uH.prototype.JSC$10388_setLabel=function(A){_.qp.prototype.JSC$10388_setLabel.call(this,A);return this};
uH.prototype.addUploadMetadata=function(A,H){_.qp.prototype.addUploadMetadata.call(this,A,H);return this};_.BF=function(){_.qp.call(this,"photos")};
_.I(_.BF,_.qp);_.BF.prototype.JSC$10388_setLabel=function(A){_.qp.prototype.JSC$10388_setLabel.call(this,A);return this};
_.BF.prototype.addUploadMetadata=function(A,H){_.qp.prototype.addUploadMetadata.call(this,A,H);return this};var eE=function(){_.qp.call(this,"url")};
_.I(eE,_.qp);var Kbw=function(){var A=new eE;A.opts.type="video";A.opts.site="youtube.com";return A};
eE.prototype.JSC$10388_setLabel=function(A){_.qp.prototype.JSC$10388_setLabel.call(this,A);return this};
eE.prototype.addUploadMetadata=function(A,H){_.qp.prototype.addUploadMetadata.call(this,A,H);return this};var xw=function(){_.qp.call(this,"video-search")};
_.I(xw,_.qp);var acp=function(){var A=new xw;A.opts.site="youtube.com";return A};
xw.prototype.JSC$10388_setLabel=function(A){_.qp.prototype.JSC$10388_setLabel.call(this,A);return this};
xw.prototype.addUploadMetadata=function(A,H){_.qp.prototype.addUploadMetadata.call(this,A,H);return this};var cM1=function(){_.qp.call(this,"web")};
_.I(cM1,_.qp);cM1.prototype.JSC$10388_setLabel=function(A){_.qp.prototype.JSC$10388_setLabel.call(this,A);return this};
cM1.prototype.addUploadMetadata=function(A,H){_.qp.prototype.addUploadMetadata.call(this,A,H);return this};var iH=function(){this.items_=[];this.opts={}},pui=function(A){switch(A){case "image-search":return new rt;
case "maps":return new uH;case "photos":return new _.BF;case "url":return new eE;case "video-search":return new xw;case "web":return new cM1}return new _.qp(A)};
iH.prototype.addView=function(A){this.items_.push(typeof A==="string"?pui(A):A);return this};
var Q0G=function(A){return"("+_.hj(A.items_,function(H){return H.toString()}).join(",")+")"};
iH.prototype.toString=function(){return Q0G(this)};
iH.prototype.getViews=function(A,H){H=H===void 0?[]:H;for(var k=this.items_,d=0;d<k.length;d++){var W=k[d];W instanceof iH?W.getViews(A,H):W.getId()==A&&H.push(W)}return H};
iH.prototype.getOptions=function(){return _.iK.clone(this.opts)};var Sv=function(A){this.basePickerUrl_=A||"https://docs.google.com/picker";this.nav_=new iH};
Sv.prototype.nav_=null;Sv.prototype.addView=function(A){this.nav_.addView(A);return this};
Sv.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Sv.prototype.getViews=function(A){return this.nav_.getViews(A)};
_.V8G=function(A,H){A.callback_=H;return A};var EY1=new Map;EY1.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");EY1.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");EY1.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var UoQ=new Set;UoQ.add("application/vnd.google-apps.kix");UoQ.add("application/vnd.google-apps.ritz");UoQ.add("application/vnd.google-apps.punch");var H2w=function(A,H,k){var d=k&&_.O8(k,1);k=lcw(k);var W=A[0].getId();switch(_.RX(W,2)){case 13:return t8A(A,H,d,k);case 3:return Nop(A,H,d,k);case 10:return M8w(A,H,d,k);case 27:return M8w(A,H,d,k);case 12:return nYp(A,H);case 2:return ZPi(A,H,d,k);case 5:return fcN(A,H,d,k);case 9:return wuJ(A,H,d,k);case 6:return oYw(A,H,d,k);case 25:return $oN(A,H,d,k);case 1:return _.dd(A[0],C5w,26)?AWA(A,H,d,k):M8w(A,H,d,k);default:return{}}},oYw=function(A,H,k,d){A=A.map(function(W){return{id:W.getId().getId(),
serviceId:"youtube",name:W.getName(),description:_.O8(W,3),type:h9(W),lastEditedUtc:_.S90(_.Af(W,_.RI,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:W.getUrl(),embedUrl:_.O8(W,13),thumbnails:Oh(EX(W))}});
return{action:H,docs:A,viewToken:d,view:k||"youtube",v2Translated:!0}},ZPi=function(A,H,k,d){var W=A.map(function(z){var u=z.getId().getId(),B=_.O8(z,7),h=z.getName(),O=h9(z),T=_.S90(_.Af(z,_.RI,12)).getTime(),m=z.getUrl(),J=Number(s7w(z)),g=_.O8(z,3),v=_.O8(z,11),y=Oh(EX(z));
var X=_.Af(z,UX,21);X=_.xV(X,1);var D=_.Af(z,UX,21);D=_.O8(D,10);var K=_.O8(z,13);var N=_.Af(z,UX,21);N=_.xV(N,9);var U=_.Af(z,UX,21);U=_.O8(U,11);u={id:u,serviceId:"docs",mimeType:B,name:h,type:O,lastEditedUtc:T,url:m,sizeBytes:J,description:g,iconUrl:v,thumbnails:y,isShared:X,downloadUrl:D,embedUrl:K,copyable:N,resourceKey:U};B=_.Af(z,UX,21);_.xV(B,12)&&(u.uploadState="success",u.isNew=!0);B=_.Af(z,UX,21);_.dd(B,pO,3)&&(z=_.Af(z,UX,21),z=_.Af(z,pO,3),_.dd(z,aM,2)&&(B=yT(z.getDuration().getSeconds()),
h=z.getDuration(),h=_.QJ(h,2),u.duration=B+h/1E9),u.aspectRatio=z.getAspectRatio());return u});
return{action:H,docs:W,viewToken:d,view:k||"all",extraUserInputs:s1w(A),v2Translated:!0}},fcN=function(A,H,k,d){A=A.map(function(W){var z=_.Af(W,ld0,15);
z=_.Af(z,cJ,1);Bq(W,10,cJ,z);return{id:W.getId().getId(),serviceId:"web",mimeType:_.O8(W,7),name:W.getName(),type:h9(W),url:W.getUrl(),description:_.O8(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oh(EX(W))}});
return{action:H,docs:A,viewToken:d,view:k||"image-search",v2Translated:!0}},wuJ=function(A,H,k,d){A=A.map(function(W){return{serviceId:"url",
name:EX(W)[0].getUrl().split("/").pop(),type:h9(W),mimeType:_.O8(W,7),url:W.getUrl(),description:_.O8(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oh(EX(W))}});
return{action:H,docs:A,viewToken:d,view:k||"url",v2Translated:!0}},AWA=function(A,H,k,d){A=A.map(function(W){return{id:W.getId().getId(),
serviceId:"picasa",name:W.getName(),type:h9(W),description:_.O8(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oh(EX(W))}});
return{action:H,docs:A,viewToken:d,view:k||"webcam",v2Translated:!0}},M8w=function(A,H,k,d){return{action:H,
docs:A.map(kyA),viewToken:d,view:dnG(k||"upload",A),extraUserInputs:s1w(A),v2Translated:!0}},dnG=function(A,H){return H.some(function(k){var d;
return((d=_.Af(k,QZ,30))==null?void 0:_.RX(d,3))===9})?A+"/gmailphotos":A},Nop=function(A,H,k,d){var W=A.map(function(z){var u={id:z.getId().getId(),
serviceId:"picasa",mimeType:_.O8(z,7),name:z.getName(),type:h9(z),lastEditedUtc:_.S90(_.Af(z,_.RI,12)).getTime(),url:z.getUrl(),sizeBytes:Number(s7w(z)),description:_.O8(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oh(EX(z)),mediaKey:z.getId().getId(),parentId:_.O8(z,4)},B,h=(B=_.Af(z,cwj,18))==null?void 0:_.Af(B,ad1,3);h&&(u.latitude=hY(h,1),u.longitude=hY(h,2));var O;z=(O=_.Af(z,cwj,18))==null?void 0:ip(O,6);O=z!=null?yT(z):void 0;O&&(u.version=
O);return u});
return{action:H,docs:W,viewToken:d,view:k||"photos",extraUserInputs:s1w(A),v2Translated:!0}},t8A=function(A,H,k,d){A=A.map(function(W){return{id:W.getId().getId(),
serviceId:"et",name:EX(W)[0].getUrl().split("/").pop(),description:_.O8(W,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oh(EX(W),"etjpg")}});
return{action:H,docs:A,viewToken:d,view:k||"et",v2Translated:!0}},$oN=function(A,H,k,d){A=A.map(function(W){var z=W.getId().getId(),u=d["2"];
return{id:z,serviceId:u.type!=="gmail_themes"&&u.parent==="6226252643674576769"?"picasa":"static_themes",name:W.getName(),mimeType:_.O8(W,7),type:h9(W),description:_.O8(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:W.getUrl(),embedUrl:W.getUrl(),thumbnails:Oh(EX(W))}});
return{action:H,docs:A,viewToken:d,view:k||"photos",v2Translated:!0}},nYp=function(A,H){A=A.map(function(k){var d=_.Af(k,KMw,27);
d=_.Hz(d,1,_.FG,_.pC())[0];return{id:k.getId().getId(),serviceId:"contacts",mimeType:_.O8(k,7),name:k.getName(),description:_.O8(k,3),url:"mailto:"+d,thumbnail:[{url:_.O8(k,11)}],email:d}});
return{action:H,docs:A,view:"contacts",v2Translated:!0}},lcw=function(A){if(!A)return{};
var H=_.O8(A,3);H=H&&JSON.parse(H)||{};return{0:_.O8(A,1),1:_.O8(A,2),2:H}},Oh=function(A,H){H=H===void 0?"":H;
if(!A.length)return null;H=="etjpg"&&(A=A.filter(function(k){return k.getUrl().includes("w1200-h300")}));
return A.map(function(k){return{url:k.getUrl(),height:k.getHeight(),width:k.getWidth(),type:H}})},s1w=function(A){return{isAttachment:A.some(function(H){return _.xV(H,31)})}},kyA=function(A){var H,k={id:(H=A.getId())==null?void 0:H.getId(),
serviceId:WVw(A),mimeType:_.O8(A,7),name:A.getName(),type:h9(A),sizeBytes:Number(s7w(A)),description:_.O8(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Oh(EX(A)),isNew:!0};if(H=_.Af(A,QZ,30)){k.dataUrl=_.O8(H,1)||null;a:{var d=_.Af(A,QZ,30);switch(_.RX(d,3)){case 9:d=_.JY(d,E3N,2,VZ);d={remoteRefs:d&&_.O8(d,1)};break a;case 10:case 15:d=_.JY(d,VvN,4,VZ);var W=EX(A);d={photo_id:d&&_.O8(d,1),media_key:A.getId().getId(),media_type:_.RX(A,6)===1?1:2,image_url:W&&
W[0].getUrl(),width:W&&String(W[0].getWidth()),height:W&&String(W[0].getHeight())};break a}d=null}k.uploadMetadata=d;k.uploadId=_.O8(H,9)||null;k.uploadState=zpk(H)||null}(d=H&&_.JY(H,VvN,4,VZ))&&(k.id=_.O8(d,1));(d=H&&_.JY(H,UZp,5,VZ))&&(k.contentId=_.O8(d,1));(d=H&&_.JY(H,pTA,7,VZ))&&(k.contentId=_.O8(d,1));(d=H&&_.JY(H,QsG,6,VZ))&&(k.contentId=_.O8(d,1));(H==null?void 0:_.RX(H,3))===1&&(k.mediaKey=A.getId().getId());return k},WVw=function(A){var H;
switch(((H=_.Af(A,QZ,30))==null?void 0:_.RX(H,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},h9=function(A){switch(_.RX(A,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 _.O8(A,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},zpk=function(A){switch(A==null?void 0:_.RX(A,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 BYQ,q3j,rWG,uLZ;_.epj=function(A,H){var k=H||{};H=k.document||document;var d=_.QB(A).toString(),W=(new RM(H)).createElement("SCRIPT"),z={script_:W,timeout_:void 0},u=new ev(q3j,z),B=null,h=k.timeout!=null?k.timeout:5E3;h>0&&(B=window.setTimeout(function(){rWG(W,!0);u.errback(new uLZ(1,"Timeout reached for loading script "+d))},h),z.timeout_=B);
W.onload=W.onreadystatechange=function(){W.readyState&&W.readyState!="loaded"&&W.readyState!="complete"||(rWG(W,k.cleanupWhenDone||!1,B),u.callback(null))};
W.onerror=function(){rWG(W,!0,B);u.errback(new uLZ(0,"Error while loading script "+d))};
z=k.attributes||{};_.iK.extend(z,{type:"text/javascript",charset:"UTF-8"});p4k(W,z);_.h2(W,A);BYQ(H).appendChild(W);return u};
BYQ=function(A){var H=HT("HEAD",A);return H&&H.length!==0?H[0]:A.documentElement};
q3j=function(){if(this&&this.script_){var A=this.script_;A&&A.tagName=="SCRIPT"&&rWG(A,!0,this.timeout_)}};
rWG=function(A,H,k){k!=null&&_.k8.clearTimeout(k);A.onload=function(){};
A.onerror=function(){};
A.onreadystatechange=function(){};
H&&window.setTimeout(function(){_.Aw(A)},0)};
uLZ=function(A,H){var k="Jsloader error (code #"+A+")";H&&(k+=": "+H);_.AA.call(this,k);this.code=A};
_.EK(uLZ,_.AA);var xni=_.XO(["https://apis.google.com/js/api.js"]),i2A=_.Ia(xni),TYk=function(A,H,k){k=k===void 0?{}:k;var d=!1,W=hpG(A,H,k).then(function(u){d=!0;return u}),z=_.NjN(5E3).then(function(){return d?hpG(A,H,k):O2N(H,k).then(function(u){return RpA(u,A)})});
return SDG([W,z])},hpG=function(A,H,k){k=k===void 0?{}:k;
return mnA(H,k).then(function(d){return RpA(d,A)})},RpA=function(A,H){var k=_.rI(H,"gapi.")?H.slice(5):H;
return A[k]?_.MT(A[k]):new _.Wq(function(d,W){var z=Tk(function(){W(Error("Za"))},3E4);
A.load(H,{callback:function(){_.k8.clearTimeout(z);d(A[k])},
onerror:function(u){_.k8.clearTimeout(z);W(u)}})})},mnA=function(A,H){H=H===void 0?{}:H;
return A.gapi&&A.gapi.load?_.MT(A.gapi):O2N(A,H)},O2N=function(A,H){H=H===void 0?{}:H;
return _.epj(i2A,{document:A.document,attributes:H}).then(function(){return A.gapi})},JWQ=function(){};
JWQ.prototype.load=function(A,H,k){H=H===void 0?window:H;k=k===void 0?{}:k;var d=Date.now();return TYk(A,H,k).then(function(W){var z=Date.now();return{library:W,loadStartMs:d,loadEndMs:z}},function(W){throw W instanceof Error?W:Error(String(W));
})};var rfI=function(){_.dF.call(this);this.gapiLoader_=new JWQ;this.origin_=null;this.gapiPickerIframeResolver_=_.YE();this.gapiIframesResolver_=_.YE();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.I(rfI,_.dF);var gkw=function(A,H){var k=k===void 0?{}:k;var d=_.UD("gapi.iframes",H);return d?(A=Date.now(),_.MT({library:d,loadStartMs:A,loadEndMs:A})):A.gapiLoader_.load("gapi.iframes",H,k)},b2k=function(A,H,k,d,W,z){var u=!1;
u=u===void 0?!1:u;gkw(A,R8(H.ownerDocument)).then(function(B){var h=B.library;A.gapiIframesResolver_.resolve(h);B=A.gapiPickerIframeResolver_;var O=B.resolve,T=u;T=T===void 0?!1:T;var m={};m["host-message-handler"]=k;A.hostMessageHandlerInternal_=m;var J=_.p$(d);J=_.p$(J);J=_.Vh(_.Qh(_.pf(new _.PB,J.scheme_),J.JSC$10346_domain_),J.JSC$10346_port_).toString();A.origin_=J;J=(new pqN).setUrl(d);J.JSC$10361_obj_.where=H;J.JSC$10361_obj_.allowPost=T;J.JSC$10361_obj_.messageHandlers=m;T=_.UD("makeWhiteListIframesFilter",
h)([A.origin_]);J.JSC$10361_obj_.messageHandlersFilter=T;W!=null&&(J.JSC$10361_obj_.id=W);z!=null&&(J.JSC$10361_obj_.rpctoken=z);T=cbj(J);T.JSC$10358_obj_.style={display:"block","min-width":"100%",width:"1px"};T.JSC$10358_obj_.height="100%";cbj(J).value().allow="camera 'src' "+A.origin_;h=h.getContext().openChild(J.value());O.call(B,h)},function(B){A.gapiIframesResolver_.reject(B);
A.gapiPickerIframeResolver_.reject(B)});
return A.gapiPickerIframeResolver_.promise},LVA=function(A,H){return _.Ox([A.gapiIframesResolver_.promise,
A.gapiPickerIframeResolver_.promise]).then(function(k){var d=_.r(k);k=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",H,void 0,_.UD("makeWhiteListIframesFilter",k)([A.origin_])):_.qt(Error("$a"))})};
rfI.prototype.disposeInternal=function(){vkw(this);_.dF.prototype.disposeInternal.call(this)};
var vkw=function(A){A.gapiPickerIframeResolver_.promise.then(function(H){H&&(H.unregister("host-message-handler"),delete A.hostMessageHandlerInternal_["host-message-handler"])})};var yWw=function(){this.nextId=0};var I6j=function(A,H){switch(A.action){case "select-contacts":A=j1k(A.contacts);break;case "visibility":A=A.visible;var k=new MB;A=_.bp(k,1,7).setVisible(A);k={};k["iframe-command"]=A.serialize();A=k;break;default:A=null}return A?LVA(H,A):_.MT()},j1k=function(A){if(!A||A.length==0)return null;
var H=new MB;_.bp(H,1,11);var k=new yWw;A.forEach(function(d){if(d.email){var W=new up;W=_.F1(W,2,d.name?d.name:d.email);var z=new KMw;d=_.$iI(z,1,_.I_,d.email,_.FG);d=_.Sn(W,27,d);W=new DZp;z=":"+(k.nextId++).toString(36);W=_.F1(W,1,z);W=_.bp(W,2,12);d=_.Sn(d,1,W)}else d=null;d&&Bq(H,7,up,d)});
A={};A["iframe-command"]=H.serialize();return A};_.Y3p=function(){if(JVw){var A=/Windows NT ([0-9.]+)/;return(A=A.exec(_.bI()))?A[1]:"0"}return _.mi1?(A=/1[0|1][_.][0-9_.]+/,(A=A.exec(_.bI()))?A[0].replace(/_/g,"."):"10"):Ulb?(A=/Android\s+([^\);]+)(\)|;)/,(A=A.exec(_.bI()))?A[1]:""):bLG||LBA||v1G?(A=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(A=A.exec(_.bI()))?A[1].replace(/_/g,"."):""):""}();var RF;RF=function(A){return(A=A.exec(_.bI()))?A[1]:""};
_.PgJ=function(){if(_.f6)return RF(/Firefox\/([0-9.]+)/);if(_.n6||N4||OLN)return FBA;if(_.wK){if(_.XX()||_.IQQ()){var A=RF(/CriOS\/([0-9.]+)/);if(A)return A}return RF(/Chrome\/([0-9.]+)/)}if(_.Dq&&!_.XX())return RF(/Version\/([0-9.]+)/);if(Iub||YAQ){if(A=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.bI()))return A[1]+"."+A[2]}else if(KBw)return(A=RF(/Android\s+([0-9.]+)/))?A:RF(/Version\/([0-9.]+)/);return""}();_.Qj(QPr);QPr.prototype.nextId_=0;_.Ta=function(A){return":"+(A.nextId_++).toString(36)};var G4=function(A){_.Is.call(this);this.JSC$10456_dom_=A||zE();this.JSC$10456_id_=null;this.inDocument_=!1;this.JSC$10456_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.EK(G4,_.Is);G4.prototype.idGenerator_=QPr.getInstance();G4.prototype.getId=function(){return this.JSC$10456_id_||(this.JSC$10456_id_=_.Ta(this.idGenerator_))};
G4.prototype.getElement=function(){return this.JSC$10456_element_};
var m7=function(A){A.googUiComponentHandler_||(A.googUiComponentHandler_=new _.qZ(A));return A.googUiComponentHandler_},GyN=function(A,H){if(A==H)throw Error("ab");
var k;if(k=H&&A.parent_&&A.JSC$10456_id_){k=A.parent_;var d=A.JSC$10456_id_;k=k.childIndex_&&d?_.iK.get(k.childIndex_,d)||null:null}if(k&&A.parent_!=H)throw Error("ab");A.parent_=H;G4.superClass_.setParentEventTarget.call(A,H)};
G4.prototype.setParentEventTarget=function(A){if(this.parent_&&this.parent_!=A)throw Error("bb");G4.superClass_.setParentEventTarget.call(this,A)};
G4.prototype.JSC$10458_createDom=function(){this.JSC$10456_element_=this.JSC$10456_dom_.createElement("DIV")};
G4.prototype.render=function(A){FVA(this,A)};
var FVA=function(A,H,k){if(A.inDocument_)throw Error("cb");A.JSC$10456_element_||A.JSC$10458_createDom();H?H.insertBefore(A.JSC$10456_element_,k||null):A.JSC$10456_dom_.JSC$9639_document_.body.appendChild(A.JSC$10456_element_);A.parent_&&!A.parent_.inDocument_||A.enterDocument()};
_.q=G4.prototype;_.q.decorate=function(A){if(this.inDocument_)throw Error("cb");if(A&&this.canDecorate(A)){this.wasDecorated_=!0;var H=_.TE(A);this.JSC$10456_dom_&&this.JSC$10456_dom_.JSC$9639_document_==H||(this.JSC$10456_dom_=zE(A));this.decorateInternal(A);this.enterDocument()}else throw Error("db");};
_.q.canDecorate=function(){return!0};
_.q.decorateInternal=function(A){this.JSC$10456_element_=A};
_.q.enterDocument=function(){this.inDocument_=!0;XNk(this,function(A){!A.inDocument_&&A.getElement()&&A.enterDocument()})};
_.q.exitDocument=function(){XNk(this,function(A){A.inDocument_&&A.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.q.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);XNk(this,function(A){A.dispose()});
!this.wasDecorated_&&this.JSC$10456_element_&&_.Aw(this.JSC$10456_element_);this.parent_=this.model_=this.JSC$10456_element_=this.childIndex_=this.children_=null;G4.superClass_.disposeInternal.call(this)};
_.q.getModel=function(){return this.model_};
_.q.addChild=function(A,H){var k=this.children_?this.children_.length:0;if(A.inDocument_&&(H||!this.inDocument_))throw Error("cb");if(k<0||k>(this.children_?this.children_.length:0))throw Error("eb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);A.parent_==this?(_.iK.set(this.childIndex_,A.getId(),A),_.EC(this.children_,A)):_.iK.add(this.childIndex_,A.getId(),A);GyN(A,this);_.SCN(this.children_,k,0,A);A.inDocument_&&this.inDocument_&&A.parent_==this?(H=this.getContentElement(),
(H.childNodes[k]||null)!=A.getElement()&&(A.getElement().parentElement==H&&H.removeChild(A.getElement()),k=H.childNodes[k]||null,H.insertBefore(A.getElement(),k))):H?(this.JSC$10456_element_||this.JSC$10458_createDom(),k=this.children_?this.children_[k+1]||null:null,FVA(A,this.getContentElement(),k?k.JSC$10456_element_:null)):this.inDocument_&&!A.inDocument_&&A.JSC$10456_element_&&A.JSC$10456_element_.parentNode&&A.JSC$10456_element_.parentNode.nodeType==1&&A.enterDocument()};
_.q.getContentElement=function(){return this.JSC$10456_element_};
var XNk=function(A,H){A.children_&&A.children_.forEach(H,void 0)};
G4.prototype.removeChild=function(A,H){if(A){var k=typeof A==="string"?A:A.getId();A=this.childIndex_&&k?_.iK.get(this.childIndex_,k)||null:null;k&&A&&(_.iK.remove(this.childIndex_,k),_.EC(this.children_,A),H&&(A.exitDocument(),A.JSC$10456_element_&&_.Aw(A.JSC$10456_element_)),GyN(A,null))}if(!A)throw Error("fb");return A};_.EK(Vif,p5C);_.EK(E6A,p5C);var lql;_.iK.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Dnw;_.J9=function(A,H,k){_.Is.call(this);this.target=A;this.handle=H||A;this.limits=k||new CY(NaN,NaN,NaN,NaN);this.JSC$10461_document_=_.TE(A);this.JSC$10461_eventHandler_=new _.qZ(this);_.ZL(this,this.JSC$10461_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;_.Y3(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Dnw};
_.EK(_.J9,_.Is);Dnw=_.k8.document&&_.k8.document.documentElement&&!!_.k8.document.documentElement.setCapture&&!!_.k8.document.releaseCapture;_.S31=function(A,H){A.hysteresisDistanceSquared_=Math.pow(H,2)};
_.q=_.J9.prototype;_.q.setEnabled=function(A){this.enabled_=A};
_.q.disposeInternal=function(){_.J9.superClass_.disposeInternal.call(this);_.xz(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10461_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10461_document_.releaseCapture();this.handle=this.target=null};
_.q.startDrag=function(A){var H=A.type=="mousedown";if(!this.enabled_||this.dragging_||H&&(!A.isButton(0)||_.mi1&&A.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new gt("start",this,A.clientX,A.clientY,A)))this.dragging_=!0,H&&A.preventDefault();else return;else H&&A.preventDefault();H=this.JSC$10461_document_;var k=H.documentElement,d=!this.useSetCapture_;this.JSC$10461_eventHandler_.listen(H,["touchmove","mousemove"],this.handleMove_,
{capture:d,passive:!1});this.JSC$10461_eventHandler_.listen(H,["touchend","mouseup"],this.endDrag,d);this.useSetCapture_?(k.setCapture(!1),this.JSC$10461_eventHandler_.listen(k,"losecapture",this.endDrag)):this.JSC$10461_eventHandler_.listen(R8(H),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10461_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,d);this.clientX=this.startX=A.clientX;this.clientY=this.startY=A.clientY;this.screenX=A.screenX;this.screenY=A.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=W4(zE(this.JSC$10461_document_))}};
_.q.endDrag=function(A,H){this.JSC$10461_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10461_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new gt("end",this,A.clientX,A.clientY,A,CgN(this,this.deltaX),KVi(this,this.deltaY),H||A.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.q.handleMove_=function(A){if(this.enabled_){var H=A.clientX-this.clientX,k=A.clientY-this.clientY;this.clientX=A.clientX;this.clientY=A.clientY;this.screenX=A.screenX;this.screenY=A.screenY;if(!this.dragging_){var d=this.startX-this.clientX,W=this.startY-this.clientY;if(d*d+W*W>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new gt("start",this,A.clientX,A.clientY,A)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(A);return}}k=a6w(this,H,k);H=k.x;k=k.y;this.dragging_&&this.dispatchEvent(new gt("beforedrag",
this,A.clientX,A.clientY,A,H,k))&&(cWi(this,A,H,k),A.preventDefault())}};
var a6w=function(A,H,k){var d=W4(zE(A.JSC$10461_document_));H+=d.x-A.pageScroll.x;k+=d.y-A.pageScroll.y;A.pageScroll=d;A.deltaX+=H;A.deltaY+=k;return new _.Ft(CgN(A,A.deltaX),KVi(A,A.deltaY))};
_.J9.prototype.onScroll_=function(A){var H=a6w(this,0,0);A.clientX=this.clientX;A.clientY=this.clientY;cWi(this,A,H.x,H.y)};
var cWi=function(A,H,k,d){A.target.style.left=k+"px";A.target.style.top=d+"px";A.dispatchEvent(new gt("drag",A,H.clientX,H.clientY,H,k,d))},CgN=function(A,H){var k=A.limits;
A=isNaN(k.left)?null:k.left;k=isNaN(k.width)?0:k.width;return Math.min(A!=null?A+k:Infinity,Math.max(A!=null?A:-Infinity,H))},KVi=function(A,H){var k=A.limits;
A=isNaN(k.top)?null:k.top;k=isNaN(k.height)?0:k.height;return Math.min(A!=null?A+k:Infinity,Math.max(A!=null?A:-Infinity,H))};
_.J9.prototype.isDragging=function(){return this.dragging_};
var gt=function(A,H,k,d,W,z,u){_.NZ.call(this,A);this.clientX=k;this.clientY=d;this.browserEvent=W;this.left=z!==void 0?z:H.deltaX;this.top=u!==void 0?u:H.deltaY};
_.EK(gt,_.NZ);var bH=function(A){this.JSC$10468_map_=new Map;var H=arguments.length;if(H>1){if(H%2)throw Error("na");for(var k=0;k<H;k+=2)this.set(arguments[k],arguments[k+1])}else A&&this.addAll(A)};
_.q=bH.prototype;_.q.getCount=function(){return this.JSC$10468_map_.size};
_.q.getValues=function(){return Array.from(this.JSC$10468_map_.values())};
_.q.getKeys=function(){return Array.from(this.JSC$10468_map_.keys())};
_.q.containsKey=function(A){return this.JSC$10468_map_.has(A)};
_.q.containsValue=function(A){return this.getValues().some(function(H){return H==A})};
_.q.equals=function(A,H){var k=this;H=H===void 0?function(d,W){return d===W}:H;
return this===A?!0:this.JSC$10468_map_.size!=A.getCount()?!1:this.getKeys().every(function(d){return H(k.JSC$10468_map_.get(d),A.get(d))})};
_.q.isEmpty=function(){return this.JSC$10468_map_.size==0};
_.q.clear=function(){this.JSC$10468_map_.clear()};
_.q.remove=function(A){return this.JSC$10468_map_.delete(A)};
_.q.get=function(A,H){return this.JSC$10468_map_.has(A)?this.JSC$10468_map_.get(A):H};
_.q.set=function(A,H){this.JSC$10468_map_.set(A,H);return this};
_.q.addAll=function(A){if(A instanceof bH){A=_.r(A.JSC$10468_map_);for(var H=A.next();!H.done;H=A.next()){var k=_.r(H.value);H=k.next().value;k=k.next().value;this.JSC$10468_map_.set(H,k)}}else if(A)for(A=_.r(Object.entries(A)),H=A.next();!H.done;H=A.next())k=_.r(H.value),H=k.next().value,k=k.next().value,this.JSC$10468_map_.set(H,k)};
_.q.forEach=function(A,H){var k=this;H=H===void 0?this:H;this.JSC$10468_map_.forEach(function(d,W){return A.call(H,d,W,k)})};
_.q.clone=function(){return new bH(this)};(function(){for(var A=["ms","moz","webkit","o"],H,k=0;H=A[k]&&!_.k8.requestAnimationFrame;++k)_.k8.requestAnimationFrame=_.k8[H+"RequestAnimationFrame"],_.k8.cancelAnimationFrame=_.k8[H+"CancelAnimationFrame"]||_.k8[H+"CancelRequestAnimationFrame"];if(!_.k8.requestAnimationFrame){var d=0;_.k8.requestAnimationFrame=function(W){var z=(new Date).getTime(),u=Math.max(0,16-(z-d));d=z+u;return _.k8.setTimeout(function(){W(z+u)},u)};
_.k8.cancelAnimationFrame||(_.k8.cancelAnimationFrame=function(W){clearTimeout(W)})}})();
var N2r=[[],[]],Miv=0,n6X=!1,tir=0;var pNN=_.XO(["about:blank"]),Q1w=_.XO(["javascript:undefined"]),VLw=_.Ia(pNN);_.QB(VLw);var EkN=_.Ia(Q1w);_.QB(EkN);_.EK(PT,_.Is);PT.prototype.handleEvent=function(A){var H=new _.ux(A.event_);H.type=A.type=="focusin"||A.type=="focus"?"focusin":"focusout";this.dispatchEvent(H)};
PT.prototype.disposeInternal=function(){PT.superClass_.disposeInternal.call(this);k5(this.listenKeyIn_);k5(this.listenKeyOut_);delete this.JSC$10474_element_};_.EK(Fa,G4);_.q=Fa.prototype;_.q.focusHandler_=null;_.q.visible_=!1;_.q.bgEl_=null;_.q.bgIframeEl_=null;_.q.tabCatcherElement_=null;_.q.backwardTabWrapInProgress_=!1;_.q.getCssClass=function(){return"goog-modalpopup"};
_.q.getBackgroundElement=function(){return this.bgEl_};
_.q.JSC$10458_createDom=function(){Fa.superClass_.JSC$10458_createDom.call(this);var A=this.getElement(),H=Rb(this.getCssClass()).split(" ");Cf(A,H);A.tabIndex=0;_.U9(A,!1);UnA(this);l6p(this)};
var UnA=function(A){if(A.useIframeMask_&&!A.bgIframeEl_){var H=A.JSC$10456_dom_.JSC$9641_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.zM(H,VLw);A.bgIframeEl_=H;A.bgIframeEl_.className=A.getCssClass()+"-bg";_.U9(A.bgIframeEl_,!1);i$G(A.bgIframeEl_,0)}A.bgEl_||(A.bgEl_=A.JSC$10456_dom_.JSC$9641_createDom("DIV",A.getCssClass()+"-bg"),_.U9(A.bgEl_,!1))},l6p=function(A){A.tabCatcherElement_||(A.tabCatcherElement_=A.JSC$10456_dom_.createElement("SPAN"),_.U9(A.tabCatcherElement_,
!1),A.tabCatcherElement_.tabIndex=0,A.tabCatcherElement_.style.position="absolute")};
_.q=Fa.prototype;_.q.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.q.canDecorate=function(A){return!!A&&A.tagName=="DIV"};
_.q.decorateInternal=function(A){Fa.superClass_.decorateInternal.call(this,A);A=Rb(this.getCssClass()).split(" ");Cf(this.getElement(),A);UnA(this);l6p(this);this.getElement().tabIndex=0;_.U9(this.getElement(),!1)};
_.q.enterDocument=function(){this.bgIframeEl_&&_.vJ(this.bgIframeEl_,this.getElement());_.vJ(this.bgEl_,this.getElement());Fa.superClass_.enterDocument.call(this);_.yZ(this.tabCatcherElement_,this.getElement());this.focusHandler_=new PT(this.JSC$10456_dom_.JSC$9639_document_);m7(this).listen(this.focusHandler_,"focusin",this.onFocus);tLJ(this,!1)};
_.q.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.CC(this.focusHandler_);Fa.superClass_.exitDocument.call(this);_.Aw(this.bgIframeEl_);_.Aw(this.bgEl_);_.Aw(this.tabCatcherElement_)};
_.q.setVisible=function(A){if(A!=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_&&tLJ(this,A),A){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10456_dom_.JSC$9639_document_.activeElement}catch(W){}this.updateModalAndBackground_();m7(this).listen(this.JSC$10456_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10456_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);NYZ(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)T4(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){m7(this).unlisten(this.JSC$10456_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10456_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)T4(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var H=this.JSC$10456_dom_,k=H.JSC$9639_document_.body,d=H.JSC$9639_document_.activeElement||k;if(!this.lastFocus_||this.lastFocus_==k){this.lastFocus_=null;break a}(d==k||H.contains(this.getElement(),d))&&this.lastFocus_.focus()}catch(W){}this.lastFocus_=
null}}};
var tLJ=function(A,H){A.modalAriaVisibilityHelper_||(A.modalAriaVisibilityHelper_=new w5r(A.JSC$10456_element_,A.JSC$10456_dom_));A=A.modalAriaVisibilityHelper_;if(H){A.hiddenElements_||(A.hiddenElements_=[]);H=A.JSC$10477_dom_.getChildren(A.JSC$10477_dom_.JSC$9639_document_.body);for(var k=0;k<H.length;k++){var d=H[k],W;if(W=d!=A.JSC$10477_element_)W=d.getAttribute("aria-hidden"),W=!(W==null||W==void 0?0:String(W));W&&(jv(d,"hidden",!0),A.hiddenElements_.push(d))}}else if(A.hiddenElements_){for(H=
0;H<A.hiddenElements_.length;H++)A.hiddenElements_[H].removeAttribute("aria-hidden");A.hiddenElements_=null}};
Fa.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var NYZ=function(A,H){A.bgIframeEl_&&_.U9(A.bgIframeEl_,H);A.bgEl_&&_.U9(A.bgEl_,H);_.U9(A.getElement(),H);_.U9(A.tabCatcherElement_,H)};
_.q=Fa.prototype;_.q.onShow=function(){this.dispatchEvent("show")};
_.q.onHide=function(){NYZ(this,!1);this.dispatchEvent("hide")};
_.q.isVisible=function(){return this.visible_};
_.q.focus=function(){this.focusElement_()};
_.q.resizeBackground_=function(){this.bgIframeEl_&&_.U9(this.bgIframeEl_,!1);this.bgEl_&&_.U9(this.bgEl_,!1);var A=this.JSC$10456_dom_.JSC$9639_document_;var H=_.dW(R8(this.JSC$10456_dom_.JSC$9639_document_)||window);var k=Math.max(H.width,Math.max(A.body.scrollWidth,A.documentElement.scrollWidth));A=Math.max(H.height,Math.max(A.body.scrollHeight,A.documentElement.scrollHeight));this.bgIframeEl_&&(_.U9(this.bgIframeEl_,!0),_.uaA(this.bgIframeEl_,k,A));this.bgEl_&&(_.U9(this.bgEl_,!0),_.uaA(this.bgEl_,
k,A))};
_.q.reposition=function(){var A;if(_.rwp(this.getElement())=="fixed")var H=A=0;else H=W4(this.JSC$10456_dom_),A=H.x,H=H.y;var k=eci(this.getElement());var d=_.dW(R8(this.JSC$10456_dom_.JSC$9639_document_)||window);A=Math.max(A+d.width/2-k.width/2,0);H=Math.max(H+d.height/2-k.height/2,0);Gj(this.getElement(),A,H);Gj(this.tabCatcherElement_,A,H)};
_.q.onFocus=function(A){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():A.target==this.tabCatcherElement_&&Tk(this.focusElement_,0,this)};
_.q.focusElement_=function(){try{this.getElement().focus()}catch(A){}};
_.q.disposeInternal=function(){_.CC(this.popupShowTransition_);this.popupShowTransition_=null;_.CC(this.popupHideTransition_);this.popupHideTransition_=null;_.CC(this.bgShowTransition_);this.bgShowTransition_=null;_.CC(this.bgHideTransition_);this.bgHideTransition_=null;Fa.superClass_.disposeInternal.call(this)};_.EK(Dd,Fa);_.q=Dd.prototype;_.q.escapeToCancel_=!0;_.q.hasTitleCloseButton_=!0;_.q.modal_=!0;_.q.draggable_=!0;_.q.backgroundElementOpacity_=.5;_.q.title_="";_.q.JSC$10489_dragger_=null;_.q.JSC$10489_disposeOnHide_=!1;_.q.titleEl_=null;_.q.titleTextEl_=null;_.q.titleTextId_=null;_.q.titleCloseEl_=null;_.q.contentEl_=null;_.q.buttonEl_=null;_.q.getCssClass=function(){return this.JSC$10487_class_};
_.q.setTitle=function(A){this.title_=A;this.titleTextEl_&&_.IM(this.titleTextEl_,A)};
_.q.getTitle=function(){return this.title_};
_.q.getContent=function(){return""};
_.q.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var ML0=function(A){A.getElement()||A.render();return A.getElement()};
Dd.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Dd.superClass_.getBackgroundElement.call(this)};
var nkw=function(A,H){A.backgroundElementOpacity_=H;A.getElement()&&(H=A.getBackgroundElement())&&i$G(H,A.backgroundElementOpacity_)};
Dd.prototype.setDraggable=function(A){this.draggable_=A;Z2w(this,A&&this.inDocument_)};
Dd.prototype.handleDrag=function(){};
var Z2w=function(A,H){var k=Rb(A.JSC$10487_class_+"-title-draggable").split(" ");A.getElement()&&(H?Cf(A.titleEl_,k):Ehw(A.titleEl_,k));H&&!A.JSC$10489_dragger_?(H=new _.J9(A.getElement(),A.titleEl_),A.JSC$10489_dragger_=H,Cf(A.titleEl_,k),_.Y3(A.JSC$10489_dragger_,"start",A.setDraggerLimits_,!1,A),_.Y3(A.JSC$10489_dragger_,"drag",A.handleDrag,!1,A)):!H&&A.JSC$10489_dragger_&&(A.JSC$10489_dragger_.dispose(),A.JSC$10489_dragger_=null)};
_.q=Dd.prototype;
_.q.JSC$10458_createDom=function(){Dd.superClass_.JSC$10458_createDom.call(this);var A=this.getElement(),H=this.JSC$10456_dom_;this.titleTextId_=this.getId();var k=this.getId()+".contentEl";this.titleEl_=H.JSC$9641_createDom("DIV",this.JSC$10487_class_+"-title",this.titleTextEl_=H.JSC$9641_createDom("SPAN",{className:this.JSC$10487_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=H.JSC$9641_createDom("SPAN",this.JSC$10487_class_+"-title-close"));lLA(A,this.titleEl_,this.contentEl_=
H.JSC$9641_createDom("DIV",{className:this.JSC$10487_class_+"-content",id:k}),this.buttonEl_=H.JSC$9641_createDom("DIV",this.JSC$10487_class_+"-buttons"));U4I(this.titleTextEl_,"heading");U4I(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;jv(this.titleCloseEl_,"label","Close");U4I(A,"dialog");jv(A,"labelledby",this.titleTextId_||"");_.U9(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(A=this.buttons_,A.JSC$10490_element_=this.buttonEl_,A.render());_.U9(this.buttonEl_,!!this.buttons_);
nkw(this,this.backgroundElementOpacity_)};
_.q.decorateInternal=function(A){Dd.superClass_.decorateInternal.call(this,A);A=this.getElement();var H=this.JSC$10487_class_+"-content";this.contentEl_=Tj(document,null,H,A)[0];this.contentEl_||(this.contentEl_=this.JSC$10456_dom_.JSC$9641_createDom("DIV",H),A.appendChild(this.contentEl_));H=this.JSC$10487_class_+"-title";var k=this.JSC$10487_class_+"-title-text",d=this.JSC$10487_class_+"-title-close";(this.titleEl_=Tj(document,null,H,A)[0])?(this.titleTextEl_=Tj(document,null,k,this.titleEl_)[0],
this.titleCloseEl_=Tj(document,null,d,this.titleEl_)[0]):(this.titleEl_=this.JSC$10456_dom_.JSC$9641_createDom("DIV",H),A.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=k4Z(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.JK("SPAN",{className:k,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;jv(A,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10456_dom_.JSC$9641_createDom("SPAN",d),this.titleEl_.appendChild(this.titleCloseEl_));_.U9(this.titleCloseEl_,this.hasTitleCloseButton_);H=this.JSC$10487_class_+"-buttons";(this.buttonEl_=Tj(document,null,H,A)[0])?(this.buttons_=new Xa(this.JSC$10456_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10456_dom_.JSC$9641_createDom("DIV",H),A.appendChild(this.buttonEl_),this.buttons_&&(A=this.buttons_,A.JSC$10490_element_=this.buttonEl_,A.render()),_.U9(this.buttonEl_,
!!this.buttons_));nkw(this,this.backgroundElementOpacity_)};
_.q.enterDocument=function(){Dd.superClass_.enterDocument.call(this);m7(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);m7(this).listen(this.buttonEl_,"click",this.onButtonClick_);Z2w(this,this.draggable_);m7(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var A=this.getElement();U4I(A,"dialog");this.titleTextEl_.id!==""&&jv(A,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){A=this.JSC$10456_dom_;
var H=this.getBackgroundElement();A.removeNode(this.bgIframeEl_);A.removeNode(H)}this.isVisible()&&tLJ(this,!1)}};
_.q.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Z2w(this,!1);Dd.superClass_.exitDocument.call(this)};
_.q.setVisible=function(A){A!=this.isVisible()&&(this.inDocument_||this.render(),Dd.superClass_.setVisible.call(this,A))};
_.q.onShow=function(){Dd.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.q.onHide=function(){Dd.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10489_disposeOnHide_&&this.dispose()};
_.q.setDraggerLimits_=function(){var A=this.JSC$10456_dom_.JSC$9639_document_,H=_.dW(R8(A)||window),k=Math.max(A.body.scrollWidth,H.width);A=Math.max(A.body.scrollHeight,H.height);var d=eci(this.getElement());_.rwp(this.getElement())=="fixed"?this.JSC$10489_dragger_.limits=new CY(0,0,Math.max(0,H.width-d.width),Math.max(0,H.height-d.height)):this.JSC$10489_dragger_.limits=new CY(0,0,k-d.width,A-d.height)};
_.q.onTitleCloseClick_=function(){f6A(this)};
var f6A=function(A){if(A.hasTitleCloseButton_){var H=A.buttons_,k=H&&H.cancelButton_;k?(H=H.get(k),A.dispatchEvent(new Ln(k,H))&&A.setVisible(!1)):A.setVisible(!1)}},wNZ=function(A){A.hasTitleCloseButton_=!1;
A.titleCloseEl_&&_.U9(A.titleCloseEl_,A.hasTitleCloseButton_)};
Dd.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Dd.superClass_.disposeInternal.call(this)};
Dd.prototype.onButtonClick_=function(A){a:{for(A=A.target;A!=null&&A!=this.buttonEl_;){if(A.tagName=="BUTTON")break a;A=A.parentNode}A=null}if(A&&!A.disabled){A=A.name;var H=this.buttons_.get(A);this.dispatchEvent(new Ln(A,H))&&this.setVisible(!1)}};
Dd.prototype.onKey_=function(A){var H=!1,k=!1,d=this.buttons_,W=A.target;if(A.type=="keydown")if(this.escapeToCancel_&&A.keyCode==27){var z=d&&d.cancelButton_;W=W.tagName=="SELECT"&&!W.disabled;z&&!W?(k=!0,H=d.get(z),H=this.dispatchEvent(new Ln(z,H))):W||(H=!0)}else{if(A.keyCode==9&&A.shiftKey&&W==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(T){}Tk(this.resetBackwardTabWrap_,0,this)}}else if(A.keyCode==13){if(W.tagName=="BUTTON"&&!W.disabled)z=W.name;
else if(W==this.titleCloseEl_)f6A(this);else if(d){var u=d.defaultButton_,B;if(B=u)a:{B=HT("BUTTON",d.JSC$10490_element_);for(var h,O=0;h=B[O];O++)if(h.name==u||h.id==u){B=h;break a}B=null}W=(W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="A")&&!W.disabled;!B||B.disabled||W||(z=u)}z&&d&&(k=!0,H=this.dispatchEvent(new Ln(z,String(d.get(z)))))}else W!=this.titleCloseEl_||A.keyCode!=32&&A.key!=" "||f6A(this);if(H||k)A.stopPropagation(),A.preventDefault();H&&this.setVisible(!1)};
var Ln=function(A,H){this.type="dialogselect";this.key=A;this.caption=H};
_.EK(Ln,_.NZ);var Xa=function(A){bH.call(this);A||zE();this.cancelButton_=this.JSC$10490_element_=this.defaultButton_=null};
_.EK(Xa,bH);_.q=Xa.prototype;_.q.clear=function(){bH.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.q.set=function(A,H,k,d){bH.prototype.set.call(this,A,H);k&&(this.defaultButton_=A);d&&(this.cancelButton_=A);return this};
_.q.addButton=function(A,H,k){return this.set(A.key,A.caption,H,k)};
_.q.render=function(){if(this.JSC$10490_element_){_.ON(this.JSC$10490_element_,xGW);var A=zE(this.JSC$10490_element_);this.forEach(function(H,k){H=A.JSC$9641_createDom("BUTTON",{name:k},H);k==this.defaultButton_&&(H.className="goog-buttonset-default");this.JSC$10490_element_.appendChild(H)},this)}};
_.q.decorate=function(A){if(A&&A.nodeType==1){this.JSC$10490_element_=A;A=HT("BUTTON",this.JSC$10490_element_);for(var H,k,d,W=0;H=A[W];W++)if(k=H.name||H.id,d=k4Z(H)||H.value,k){var z=W==0;this.set(k,d,z,H.name=="cancel");z&&_.Y5(H,"goog-buttonset-default")}}};
_.q.getElement=function(){return this.JSC$10490_element_};
var o6C={key:"ok",caption:"OK"},$4v={key:"cancel",caption:"Cancel"},okZ={key:"yes",caption:"Yes"},$n0={key:"no",caption:"No"},AxA={key:"save",caption:"Save"},HH0={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Xa).addButton(o6C,!0,!0),(new Xa).addButton(o6C,!0).addButton($4v,!1,!0),(new Xa).addButton(okZ,!0).addButton($n0,!1,!0),(new Xa).addButton(okZ).addButton($n0,!0).addButton($4v,!1,!0),(new Xa).addButton(HH0).addButton(AxA).addButton($4v,!0,!0));_.EK(Afr,Dd);_.EK(H5I,Sv);var sCA=_.XO(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),kCJ=_.XO(["//apis.google.com/js/rpc.js"]),eXV=_.Ia(sCA),Ber=_.Ia(kCJ),kZW=null;var C$=function(A,H){_.Is.call(this);this.JSC$10499_element_=A;A=_.Zd(this.JSC$10499_element_)?this.JSC$10499_element_:this.JSC$10499_element_?this.JSC$10499_element_.body:null;this.isRtl_=!!A&&_.hc0(A);this.listenKey_=_.Y3(this.JSC$10499_element_,_.s3?"DOMMouseScroll":"mousewheel",this,H)};
_.EK(C$,_.Is);C$.prototype.handleEvent=function(A){var H=0,k=0,d=A.event_;d.type=="mousewheel"?(A=dTJ(-d.wheelDelta),d.wheelDeltaX!==void 0?(H=dTJ(-d.wheelDeltaX),k=dTJ(-d.wheelDeltaY)):k=A):(A=d.detail,A>100?A=3:A<-100&&(A=-3),d.axis!==void 0&&d.axis===d.HORIZONTAL_AXIS?H=A:k=A);typeof this.maxDeltaX_==="number"&&(H=_.Py(H,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(k=_.Py(k,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(H=-H);H=new WC1(A,d,H,k);this.dispatchEvent(H)};
var dTJ=function(A){return _.HN&&(_.mi1||g11)&&A%40!=0?A:A/40};
C$.prototype.disposeInternal=function(){C$.superClass_.disposeInternal.call(this);k5(this.listenKey_);this.listenKey_=null};
var WC1=function(A,H,k,d){_.ux.call(this,H);this.type="mousewheel";this.detail=A;this.deltaX=k;this.deltaY=d};
_.EK(WC1,_.ux);_.VG=function(A){var H="instance_";if(A.instance_&&A.hasOwnProperty(H))return A.instance_;H=new A;return A.instance_=H};var uZf;var zAZ=_.XO(["https://about:blank"]),qdp=_.XO(['javascript:""']),rxZ=_.XO(["about:blank"]);_.EK(tw,Afr);_.q=tw.prototype;_.q.JSC$10507_url_="";_.q.JSC$10507_iframe_=null;_.q.iframeLoaded_=!1;_.q.loadedFired_=!1;_.q.callback_=function(){};
_.q.enterDocument=function(){tw.superClass_.enterDocument.call(this);zXX(this.getBackgroundElement(),m7(this))};
_.q.render=function(A){var H=this;tw.superClass_.render.call(this,A);this.useGapi_?gkw(this.iframeManager_,window).then(function(){return uVw(H)}).then(null,function(){H.callback_({action:"error"})}):BnZ(this);
this.JSC$10505_enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),ML0(this).setAttribute("popover","manual"))};
var uVw=function(A){var H=A.JSC$10456_dom_.JSC$9641_createDom("div",["picker-dialog-content","picker-frame"]);_.U9(H,!1);A.getContentElement().appendChild(H);return b2k(A.iframeManager_,H,function(k){var d=n3Z(k["iframe-command"]);switch(d.getCommand()){case 1:k=A.callback_;d=_.Af(d,NB,2);var W="";switch(d.getStatus()){case 2:W="cancel";break;case 1:W="picked";break;case 3:W="error"}var z=_.c4(d,up,2,_.pC(E1i));d=z.length===0?{action:W}:H2w(z,W,_.Af(d,tvk,7));k.call(A,d);A.setVisible(!1);break;case 4:wNZ(A);
A.callback_({action:"loaded"});break;case 7:case 8:k=A.callback_;a:{W=d.getCommand();z=_.Af(d,NB,2);switch(W){case 7:W="uploadScheduled";break;case 8:W="uploadStateChange";break;default:d={};break a}d=_.c4(z,up,2,_.pC(E1i));if(d.length===0)d={action:W};else{var u=_.Af(z,tvk,7);z=u&&_.O8(u,1);u=lcw(u);d=M8w(d,W,z,u)}}k.call(A,d)}},A.JSC$10507_url_,A.targetId_,A.rpcToken_).then(function(k){A.JSC$10507_iframe_=k.getIframeEl();
eAj(A);_.U9(A.JSC$10507_iframe_.parentElement,!0);_.Y5(A.getElement(),"picker-dialog");xTw(A);return k})},BnZ=function(A){A.JSC$10507_iframe_=A.JSC$10456_dom_.JSC$9641_createDom("IFRAME",{id:A.targetId_,
name:A.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.zM(A.JSC$10507_iframe_,iHk(A));_.Y5(A.getElement(),"picker-dialog");A.getContentElement().appendChild(A.JSC$10507_iframe_);m7(A).listen(A.JSC$10507_iframe_,"load",function(){return void eAj(A)});
A.JSC$10507_iframe_.src=A.JSC$10507_url_;xTw(A)},OHw=function(A){hAQ(A,(0,_.WT)(function(H){H.setAuthToken(this.targetId_,this.rpcToken_)},A))},xTw=function(A){var H=_.QT(_.p$(A.JSC$10507_url_),"title");
H&&A.setTitle(H)},iHk=function(A){return _.v8V("Internet Explorer")>=7&&_.rI(A.JSC$10507_url_,"https")?_.Ia(zAZ):_.n6?_.Ia(qdp):_.Ia(rxZ)},eAj=function(A){OHw(A);
A.iframeLoaded_=!0;A.JSC$10507_iframe_.tabIndex=0;A.isVisible()&&A.focus()};
tw.prototype.handleKeydown_=function(A){A.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),A.stopPropagation(),A.preventDefault())};
var hAQ=function(A,H){var k=A.JSC$10505_gadgetsDomHelper_;dGl(function(){H(k.getWindow().gadgets.rpc)},k)};
tw.prototype.setUrl=function(A){A=_.VT(new _.PB(A),"rpcService",this.targetId_);_.VT(A,"rpctoken",this.rpcToken_);_.lx(A,"rpctoken="+this.rpcToken_);_.pf(A,"https");this.JSC$10507_url_=A.toString();this.JSC$10507_iframe_&&(this.JSC$10507_iframe_.src=this.JSC$10507_url_)};
var RAG=function(A,H){A.callback_=H;hAQ(A,(0,_.WT)(function(k){k.register(this.targetId_,(0,_.WT)(this.handlePickerAction_,this))},A))};
tw.prototype.handlePickerAction_=function(A){var H=A.action;H=="loaded"&&(this.loadedFired_=!0,TnQ(this,new E6A(this.isVisible())),mTp(this),wNZ(this),m7(this).unlisten(this.JSC$10456_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10507_iframe_.tabIndex=0);H!="picked"&&H!="cancel"||this.setVisible(!1);this.callback_(A)};
var mTp=function(A){A.JSC$10507_appId_&&TnQ(A,new Vif(A.JSC$10507_appId_,window.location.protocol+"//"+window.location.host))};
tw.prototype.setRelayUrl=function(A){hAQ(this,(0,_.WT)(function(H){H.setRelayUrl(this.targetId_,A)},this))};
var TnQ=function(A,H){A.useGapi_&&I6j(H,A.iframeManager_).then(null,function(){A.callback_({action:"error"})});
hAQ(A,(0,_.WT)(function(k){k.call(this.targetId_,"picker",null,H)},A))};
tw.prototype.resizePicker_=function(){var A=R8(this.JSC$10456_dom_.JSC$9639_document_)||window;if(_.QT(_.p$(this.JSC$10507_url_),"ignoreLimits")=="true")A=new _.Xt(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.QT(_.p$(this.JSC$10507_url_),"shadeDialog")=="true"){var H=ML0(this);H=O$Q(H);var k=_.dW(A);A=k.width-80;k=k.height-40;H&&(A-=H.left?H.left:0,A-=H.right?H.right:0,k-=H.top?H.top:0,k-=H.bottom?H.bottom:0);A=new _.Xt(A>0?A:0,k>0?k:0)}else(H=this.preferredDialogWidth_)?(H=Math.max(320,
Math.min(1051,H)),(k=this.preferredDialogHeight_)||(k=_.dW(A).height*.85),k=Math.max(480,Math.min(650,k))):(H=_.dW(A),k=H.width*.618,k=k<H.height?Math.round(Math.max(480,Math.min(650,k*.85))):Math.round(Math.max(480,Math.min(650,H.height*.85))),H=Math.round(k/.618)),A=_.dW(A),H=Math.min(H,Math.max(A.width,320)),k=Math.min(k,Math.max(A.height,480)),A=new _.Xt(H,k);_.uaA(this.getContentElement(),A);this.reposition()};
tw.prototype.reposition=function(){if(_.QT(_.p$(this.JSC$10507_url_),"shadeDialog")=="true"){var A=eci(this.getElement()),H=_.dW(this.JSC$10456_dom_.getWindow());A=Math.floor(H.width/2-A.width/2);H=ML0(this);if(H=O$Q(H)){var k=H.left?H.left:0;k+=H.right?H.right:0;A=Math.floor(A-k/2)}A=A>0?A:0;H=W4(this.JSC$10456_dom_).y;Gj(this.getElement(),A,H)}else tw.superClass_.reposition.call(this)};
tw.prototype.setVisible=function(A){if(A!=this.isVisible()){if(this.autoSizeDialog_){var H=this.JSC$10456_dom_.getWindow();A?(this.resizePicker_(),m7(this).listen(H,"resize",this.resizePicker_),this.iframeLoaded_||m7(this).listen(H,"keydown",this.handleKeydown_)):(m7(this).unlisten(H,"resize",this.resizePicker_),this.iframeLoaded_||m7(this).unlisten(H,"keydown",this.handleKeydown_))}if(this.JSC$10505_enablePopover_){H=this.getBackgroundElement();var k=ML0(this);"showPopover"in k&&(A?(H.showPopover(),
k.showPopover()):(H.hidePopover(),k.hidePopover()))}}tw.superClass_.setVisible.call(this,A);TnQ(this,new E6A(A))};
tw.prototype.focus=function(){tw.superClass_.focus.call(this);if(this.JSC$10507_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10507_iframe_.focus()}catch(A){}};var HM=function(A,H){H=H===void 0?tw:H;Sv.call(this,A);this.pickerConstructor=H;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(A=window.location.origin)||(A=window.location.protocol+"//"+window.location.host);A&&this.urlParamMap_.set("origin",A);this.postProcessors_=[]};
_.I(HM,H5I);HM.prototype.JSC$10512_disposeOnHide_=!1;
HM.prototype.build=function(){this.JSC$10413_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10413_appId_);this.getRelayUrl()||this.setRelayUrl(_.Ex(_.lx(_.Ux(_.p$(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("hb");var A=new this.pickerConstructor(Jx0(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1,!1);A.JSC$10489_disposeOnHide_=this.JSC$10512_disposeOnHide_;
A.JSC$10507_appId_=this.JSC$10413_appId_;A.loadedFired_&&mTp(A);RAG(A,this.callback_);return A};
var grp=function(A){A.urlParamMap_.set("multiselectEnabled","true");return A};
_.q=HM.prototype;_.q.getHeight=function(){return this.dialogHeight_};
_.q.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.q.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.q.getTitle=function(){return this.urlParamMap_.get("title")};
_.q.getWidth=function(){return this.dialogWidth_};
var bHk=function(A){A.JSC$10512_disposeOnHide_=void 0;return A};
HM.prototype.setRelayUrl=function(A){this.urlParamMap_.set("parent",A);return this};
var LCw=function(A,H){A.urlParamMap_.set("selectButtonLabel",H);return A};
HM.prototype.setSize=function(A,H){this.dialogWidth_=A;this.dialogHeight_=H;return this};
HM.prototype.setTitle=function(A){this.urlParamMap_.set("title",A);return this};
var Jx0=function(A){A.postProcessors_.length&&A.urlParamMap_.set("pp",JSON.stringify(A.postProcessors_));A.urlParamMap_.set("nav",Q0G(A.nav_));var H=new _.PB(A.getBaseUrl());A.urlParamMap_.forEach(function(k,d){_.VT(H,d,k)});
return H};_.EK(RXI,_.AA);var hXC=function(A){var H=_.iK.findKey(i5X,function(k){return A==k});
if(H===void 0)throw Error("jb`"+A);return H},vF={},i5X=(vF.AbortError=3,vF.EncodingError=5,vF.InvalidModificationError=9,vF.InvalidStateError=7,vF.NotFoundError=1,vF.NotReadableError=4,vF.NoModificationAllowedError=6,vF.PathExistsError=12,vF.QuotaExceededError=10,vF.SecurityError=2,vF.SyntaxError=8,vF.TypeMismatchError=11,vF);_.EK(Tef,_.NZ);var vrG=function(A,H,k){k===void 0&&(k=A.size);return A.slice?A.slice(H,k):null};var Jff=new WeakMap,mGV=function(A,H){A=[A];for(var k=H.length-1;k>=0;--k)A.push(typeof H[k],H[k]);return A.join("\v")};_.b5l(function(){if(!_.k8.Blob)return!1;var A=new Uint8Array(100);try{var H=new Blob([A])}catch(k){return!1}return H.size!=100?!1:!0});
var yxA=_.b5l(function(){if(!_.k8.Blob)return!1;var A=new Uint8Array(100);try{var H=new Blob([A])}catch(k){return!1}return vrG(H,0,1)===null?!1:!0});try{var jCA,IZ0,Ydw=(IZ0=(jCA=window)==null?void 0:jCA.top)!=null?IZ0:_.k8;Ydw.U3bHHf!=null||(Ydw.U3bHHf=0);Ydw.U3bHHf++}catch(A){_.k8.U3bHHf!=null||(_.k8.U3bHHf=0),_.k8.U3bHHf++};var yfl=new WeakMap;var vhf=new WeakMap;var YYI={};var f$=void 0;var GZI=Symbol("rb");var tFI=Aa("WizInjectionContext_ModelRootElement"),Ne8=Aa("WizInjectionContext_RendererData"),MFI=Aa("WizInjectionContext_InjectingConstructor"),SYC=Aa("WizInjectionContext_AppContext"),CZX=Aa("WizInjectionContext_Dispatcher"),a$v=Aa("WizInjectionContext_RootElement"),l$N=Aa("WizInjectionContext_AsyncDeps");var HI=Symbol("sb");var TP=function(){this.afterRenderCallbacks=null},cfb=Symbol("tb"),vI=function(A){this.props=A;
this.__unmounted=!1};
vI.prototype.didPatch=function(){};
vI.prototype.didMount=function(){};
vI.prototype.didUnmount=function(){};
vI.prototype.didUpdate=function(){};var nhN={};var $GQ=!1;var kgf={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:xiw,enableContextPerComponent:xiw,enableLazyTsx:iLJ,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:eMw,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var si=Object.assign({},{attributes:{},handleError:function(A){throw A;}},kgf);var Pi1=Symbol("xb"),Pe=Symbol("yb"),Fbf=Symbol("zb"),PoX=Symbol("Ab"),cMQ=ap(function(A){return kU(A)&&Pi1 in A});var eUN=Symbol("Bb"),y4={},rbv=(y4[eUN]=!0,y4.debugName="[component]",y4.getComponentStack=function(){for(var A=[],H=this;H;)xVA(H)&&A.push(H.debugName),H=H.parent;return A},y4.registerSignal=function(){},y4.registerEffect=function(){},y4);var We=null,qU=!1,eC=1,ha=Symbol("Fb"),g0={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 jE=Symbol("Gb"),IF=Symbol("Hb"),ie=Symbol("Ib"),vJb=Object.assign({},g0,{value:jE,dirty:!0,error:null,equal:hUv,kind:"computed",producerMustRecompute:function(A){return A.value===jE||A.value===IF},
producerRecomputeValue:function(A){if(A.value===IF)throw Error("$");var H=A.value;A.value=IF;var k=gJQ(A),d=!1;try{var W=A.computation();zW(null);d=H!==jE&&H!==ie&&W!==ie&&A.equal(H,W)}catch(z){W=ie,A.error=z}finally{zW(k),A&&LaI(A)}d?A.value=H:(A.value=W,A.version++)}});var GCZ=Object.assign({},g0,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Yvl=function(){throw Error();};var Ggm=null,j3I=Object.assign({},g0,{equal:hUv,value:void 0,kind:"signal"});var Fam=Object.assign({},g0,{value:jE,dirty:!0,error:null,equal:hUv,kind:"linkedSignal",producerMustRecompute:function(A){return A.value===jE||A.value===IF},
producerRecomputeValue:function(A){if(A.value===IF)throw Error("$");var H=A.value;A.value=IF;var k=gJQ(A);try{var d=A.source();var W=A.computation(d,H===jE||H===ie?void 0:{source:A.sourceValue,value:H});A.sourceValue=d}catch(z){W=ie,A.error=z}finally{zW(k),A&&LaI(A)}H!==jE&&W!==ie&&A.equal(H,W)?A.value=H:(A.value=W,A.version++)}});Object.assign({},g0,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(A){A.schedule!==null&&A.schedule(A.ref)},
cleanupFn:function(){}});var ClQ=Symbol("Jb"),TW=Symbol("Kb");var mt=Array.isArray;var ejC;var FCQ={},iPr=Bol(Object.assign({},{consumerAllowSignalWrites:!0},FCQ)),J3=Bol(Object.assign({},{consumerAllowSignalWrites:!0},FCQ));var yM=Symbol("Pb");var ve=null,ToA,mob=null,JM8;var FC=0,XC=!1,Yw=function(){this.queue=new Set};
Yw.prototype.schedule=function(A){this.queue.add(A)};
Yw.prototype.remove=function(A){this.queue.delete(A)};
Yw.prototype.clear=function(){this.queue.clear()};
var yMr=Symbol("Qb"),LbC=Symbol("Rb"),PF=function(){Yw.apply(this,arguments)};
_.I(PF,Yw);PF.prototype.flush=function(){if(this.queue.size){XC=!0;for(var A=_.r(this.queue),H=A.next();!H.done;H=A.next()){H=H.value;this.queue.delete(H);try{H.run()}catch(k){XBw(k)}}XC=!1}};
var DTZ=function(){PF.apply(this,arguments)};
_.I(DTZ,PF);var vYW=new DTZ,Sdw=function(){PF.apply(this,arguments)};
_.I(Sdw,PF);Sdw.prototype.schedule=function(A){return _.e(function(H){if(H.nextAddress==1)return H.yield(Promise.resolve(),2);A.run();_.EN(H)})};
Sdw.prototype.enqueue=function(A){this.queue.add(A)};
var j0I=new Sdw,Ga=function(){Yw.apply(this,arguments)};
_.I(Ga,Yw);Ga.prototype.flush=function(){this.queue.size&&puW(this.queue)};
var Ci0=function(){Ga.apply(this,arguments)};
_.I(Ci0,Ga);Ci0.prototype.schedule=function(A){A.version===0?A.run():this.queue.add(A)};
Ci0.prototype.flush=function(){if(this.queue.size)if(si.flushRenderEffectsDuringRender){var A=this.queue;this.queue=new Set;puW(A)}else puW(this.queue)};
var YZQ=new Ci0,KC1=function(){Ga.apply(this,arguments)};
_.I(KC1,Ga);KC1.prototype.schedule=function(A){return _.e(function(H){if(H.nextAddress==1)return H.yield(Promise.resolve(),2);A.run();_.EN(H)})};
KC1.prototype.enqueue=function(A){this.queue.add(A)};
var XuW=new KC1,aZJ=function(){Ga.apply(this,arguments)};
_.I(aZJ,Ga);var GbA=new aZJ,SZC=[YZQ,vYW,GbA],acb=[j0I,XuW],cxw=[YZQ,GbA,XuW],Q0r=[].concat(_.fV(SZC),_.fV(acb)),pBJ=[];Ggm=function(){KbC();for(var A=_.r(pBJ),H=A.next();!H.done;H=A.next())H=H.value,H()};
var XBw=dI;var Fr={},QCQ=Object.assign({},GCZ,(Fr[Pi1]=!0,Fr.effectType=Pe,Fr.isResettableContext=!0,Fr.consumerMarkedDirty=Do8,Fr.run=function(){EYQ(this)},Fr.cleanup=function(){UGb(this)},Fr.componentStack=void 0,Fr.debugName="[effect]",Fr.destroy=function(){if(r0(this))for(var A=this.producers;A!==void 0;)A=bTC(A);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;A=_.r(cxw);for(var H=A.next();!H.done;H=A.next())H.value.remove(this);Ehm(this)},Fr[Symbol.dispose]=function(){this.destroy()},Fr)),V1A=Object.assign({},QCQ,{version:1,
dirty:!1});var Uov=Object.assign({},QCQ,{effectType:Pe});var lcI=Object.assign({},QCQ,{effectType:Fbf});var M8C=Symbol("Tb");var FVN=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 fcl={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},ZPW=
{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}]}},m2v={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},$ol=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],oYm={"*":{async:1,dir:0,loading:2,target:3}};var Erk=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Xr={},H2I=(Xr[1]=null,Xr[2]=function(A,H){return H instanceof HX?dU(H):Zy.toString()},Xr[3]=function(A,H){return tG(H)?_.NR(H):Erk.test(String(H))?String(H):Zy.toString()},Xr[4]=function(A,H){return H instanceof cz?_.QB(H):Zy.toString()},Xr[5]=function(A,H){return String(H)},Xr[7]=null,Xr[8]=null,Xr[10]=null,Xr);var $F8=Symbol("Wb");var WVI="Y Z E P T G M K  m u n".split(" "),dnr={"":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};_.UTw=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 rj={};RegExp.prototype.hasOwnProperty("sticky");var Dnm=function(A){A=String(A);for(var H=function(d,W,z){for(var u=Math.min(W.length-z,d.length),B=0;B<u;B++){var h=W[z+B];if(d[B]!==("A"<=h&&h<="Z"?h.toLowerCase():h))return!1}return!0},k=0;(k=A.indexOf("<",k))!=-1;){if(H("\x3c/script",A,k)||H("\x3c!--",A,k))return"zSoyz";
k+=1}return A};var Ui={default:"__default"};var BYv=Object.prototype.hasOwnProperty;q3V.prototype=Object.create(null);var Ev=i2X();var w0=null;var j1A=function(A){this.created=[];this.deleted=[];this.node=A};var I6V=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var A=this,H=A;A;)H=A,A=A.parentNode;return H};var O2l=function(A,H){this._attrsArr=null;this.nameOrCtor=A;this.key=H;this.text=void 0};var NU=null,MU=null,le=null,Z5=null,b2A=[],gkm=mnX,fA=[],oHV=function(A){return Y3b(function(H,k,d){le=MU=H;MU=null;k(d);JWv(null);MU=le;le=le.parentNode;return H},A)}(),wGQ=function(A){return Y3b(function(H,k,d){var W={nextSibling:H};
MU=W;k(d);le&&JWv(H.nextSibling);return W===MU?null:MU},A)}();var oV=[],AvW=0;var Uv=new q3V;var lZk=i2X(),KVW=lZk[Ui.default],Cgl=lZk.style,XNA=["focusin","focusout"],pNl="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var iHA=function(){},PiQ=function(){},jCX=function(){};var A3=Symbol("dc");var l6b,UnX=Ekl;var h3=Symbol("ec");var YdC=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(" ")),
IZf=new Set(["a","font","script","style","title"]);var xl={setUp:kCI,tearDown:kCI,log:kCI,logNodeRange:kCI,graft:function(A,H){H()}};var gj={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var bt=null,LZ=function(A,H){vI.call(this,A);var k=this;this.functionComponent=H;this.hooks=[];this.hookCounter=0;this.disposeEffects=ce(function(d){k.effectContext=d;_.aV(function(){Tnv(k,k.el)})},si.alwaysTrackContexts||!!f$)};
_.I(LZ,vI);LZ.prototype.render=function(A){var H=bt;bt=this;this.hookCounter=0;var k=zW(J3),d=wF(this.effectContext);try{return WaC("render",this.componentName),this.functionComponent(A)}finally{zUX("render",this.componentName),wF(d),zW(k),bt=H}};
_.nP.Object.defineProperties(LZ.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return OP8(this.functionComponent)}}});var GC8=Symbol("sc"),LCC=function(A,H,k){this.afterRenderCallbacks=null;this.kind=A;this.props=H;this.children=k};
_.I(LCC,TP);LCC.prototype.render=function(){var A=bHA(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var H=_.r(this.afterRenderCallbacks),k=H.next();!k.done;k=H.next())k=k.value,A=k(A);return A};
LCC.prototype.getChildren=function(){return this.children};var XBC=[];Yvl=function(A){throw Error("qb`"+A.debugName);};
(function(){var A=w0;w0=function(H){A==null||A(H);DT8(H)}})();Object.assign({},V1A,{effectType:Pe,elementRef:null,attributes:null,fn:function(){var A=this.elementRef;var H;A.element!=null||(A.element=(H=A.document.getElementById(A.value))!=null?H:void 0);A=A.element;for(H=this.attributes;H;){var k=H.signal();k!==H.prevValue&&(H.prevValue=k,H.namespace===1?A[H.name]=k:FVN.has(H.name)?Ei(A,H.name,k?"":null):Ei(A,H.name,k));H=H.next}}});_.y$.debugName="tbhMcf";_.jp.debugName="zyMFzb";Object.assign({},V1A,{effectType:Pe});_.R.debugName="RlDudd";var SdI={nonNullableCondIsNull:function(){return Error("vc")}};var V1N=function(){this.map=new Map};
V1N.prototype.push=function(A,H){var k=this.map;k.has(A)&&(this.multi||(this.multi=new Map),this.multi.set(H,k.get(A)));k.set(A,H)};
V1N.prototype.pop=function(A){var H=this.map,k=H.get(A),d;k!==void 0&&((d=this.multi)==null?0:d.has(k))?(H.set(A,this.multi.get(k)),this.multi.delete(k)):H.delete(A);return k};_.Ix.debugName="nsTGHd";_.Yl.debugName="vI1rtf";var NnA={OUT_OF_ORDER_HOOK_CALL:function(A){return Error("wc`"+A)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(A,H){return Error("Ac`"+((H===void 0?0:H)?"IDOM":"Reactive")+"`"+(PI(A)?A.description:A))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(A,H){return Error("Bc`"+(PI(A)?A.description:A)+"`"+H)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(A){return Error("Cc`"+(PI(A)?A.description:A))},
USE_ELEMENT_NOT_ASSIGNED:function(A){return Error("Dc`"+(PI(A)?A.description:A))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(A){return Error("Ec`"+(PI(A)?A.description:A))}};var fX8=Symbol("Fc");l6b=vrr;l6b=vrr;var kHI=Symbol("Gc");OHC({beforeRender:function(A){var H=wF(A.effectContext);try{var k;((k=A.__syncEffects)==null?0:k.length)&&xw8(A.__syncEffects)}finally{wF(H)}},
didPatch:function(A){var H=wF(A.effectContext);try{var k;((k=A.__syncEffects)==null?0:k.length)&&xw8(A.__syncEffects)}finally{wF(H)}},
didUnmount:function(A){var H;((H=A.hooks)==null?0:H.length)&&A.hooks.forEach(eWC)}});var t1A,Nnk,M10;t1A=_.k8.window;_.ax=(t1A==null?void 0:(Nnk=t1A.yt)==null?void 0:Nnk.config_)||(t1A==null?void 0:(M10=t1A.ytcfg)==null?void 0:M10.data_)||{};_.nG("yt.config_",_.ax);var nrp={},O8m=[];_.Ti=function(A){var H=_.o7.apply(1,arguments);var k=Error.call(this,A);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.args=[].concat(_.fV(H));Object.setPrototypeOf(this,this.constructor.prototype)};
_.I(_.Ti,Error);var BCQ=function(A,H,k){this.actionName=A;this.optionalAction=H===void 0?!1:H;this.args=k===void 0?null:k;this.returnValue=[]};_.Dt=function(A){this.name=A};_.SM=new _.Dt("signalAction");var IWQ=/^[\w.]*$/,gBI={q:!0,search_query:!0},JZI=String(mwI);var ox;ox=Symbol("Hc");_.SE=function(A){this.name=A};
_.SE.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var YHv=function(A){this.key=A},DwN=function(A){this.deferredKey=A},GHl=function(){var A=this;
this.providers=new Map;this.JSC$10812_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(A.providers)}}};
GHl.prototype.addProvider=function(A){this.providers.set(A.provide,A);var H=this.JSC$10812_deferred.get(A.provide);if(H)try{H.resolver(this.resolve(A.provide))}catch(k){H.rejector(k)}};
GHl.prototype.resolve=function(A){return A instanceof DwN?ZH0(this,A):A instanceof YHv?fZ0(this,A.key,[],!0):fZ0(this,A,[])};
var ZH0=function(A,H){H=H.deferredKey;if(A.JSC$10812_deferred.has(H))return A.JSC$10812_deferred.get(H).promise;var k={};k.promise=new Promise(function(d,W){k.resolver=d;k.rejector=W});
A.JSC$10812_deferred.set(H,k);return k.promise},fZ0=function(A,H,k,d){d=d===void 0?!1:d;
if(k.indexOf(H)>-1)throw Error("Ic`"+H);if(A.cachedValues.has(H))return A.cachedValues.get(H);if(!A.providers.has(H)){if(d)return;throw Error("Jc`"+H);}d=A.providers.get(H);k.push(H);if(d.useValue!==void 0)var W=d.useValue;else if(d.useFactory)W=d[ox]?wBJ(A,d[ox],k):[],W=d.useFactory.apply(d,_.fV(W));else if(d.useClass){W=d.useClass;var z=W[ox]?wBJ(A,W[ox],k):[];W=new (Function.prototype.bind.apply(W,[null].concat(_.fV(z))))}else throw Error("Kc`"+H);k.pop();d.skipCache||A.cachedValues.set(H,W);return W},
wBJ=function(A,H,k){return H?H.map(function(d){return d instanceof YHv?fZ0(A,d.key,k,!0):fZ0(A,d,k)}):[]};var P9N;var CT=new _.SE("ENDPOINT_HANDLER_TOKEN");_.KT=new _.Dt("urlEndpoint");var orw=function(){this.data=[];this.cachedPackedInt52=-1};
orw.prototype.set=function(A,H){H=H===void 0?!0:H;0<=A&&A<52&&Number.isInteger(A)&&this.data[A]!==H&&(this.data[A]=H,this.cachedPackedInt52=-1)};
orw.prototype.get=function(A){return!!this.data[A]};
var $T0=function(A){A.cachedPackedInt52===-1&&(A.cachedPackedInt52=A.data.reduce(function(H,k,d){return H+(k?Math.pow(2,d):0)},0));
return A.cachedPackedInt52};var NEI=function(A){var H=AZj;A=A===void 0?_.UD("yt.ads.biscotti.lastId_")||"":A;var k=Object,d=k.assign,W={};W.dt=ghj;W.flash="0";a:{try{var z=H.JSC$10818_win_.top.location.href}catch(Z){z=2;break a}z=z?z===H.doc_.location.href?0:1:2}W=(W.frm=z,W);try{W.u_tz=-(new Date).getTimezoneOffset();try{var u=Xk.history.length}catch(Z){u=0}W.u_his=u;var B;W.u_h=(B=Xk.screen)==null?void 0:B.height;var h;W.u_w=(h=Xk.screen)==null?void 0:h.width;var O;W.u_ah=(O=Xk.screen)==null?void 0:O.availHeight;var T;W.u_aw=
(T=Xk.screen)==null?void 0:T.availWidth;var m;W.u_cd=(m=Xk.screen)==null?void 0:m.colorDepth}catch(Z){}u=H.JSC$10818_win_;try{var J=u.screenX;var g=u.screenY}catch(Z){}try{var v=u.outerWidth;var y=u.outerHeight}catch(Z){}try{var X=u.innerWidth;var D=u.innerHeight}catch(Z){}try{var K=u.screenLeft;var N=u.screenTop}catch(Z){}try{X=u.innerWidth,D=u.innerHeight}catch(Z){}try{var U=u.screen.availWidth;var p=u.screen.availTop}catch(Z){}J=[K,N,J,g,U,p,v,y,X,D];g=zcm(!1,H.JSC$10818_win_.top);v={};var M=M===
void 0?_.k8:M;y=new orw;"SVGElement"in M&&"createElementNS"in M.document&&y.set(0);X=X4j();X["allow-top-navigation-by-user-activation"]&&y.set(1);X["allow-popups-to-escape-sandbox"]&&y.set(2);M.crypto&&M.crypto.subtle&&y.set(3);"TextDecoder"in M&&"TextEncoder"in M&&y.set(4);M=$T0(y);H=(v.bc=M,v.bih=g.height,v.biw=g.width,v.brdim=J.join(),v.vis=weN(H.doc_),v.wgl=!!Xk.WebGLRenderingContext,v);k=d.call(k,W,H);k.ca_type="image";A&&(k.bid=A);return k},AZj=new function(){var A=window.document;
this.JSC$10818_win_=window;this.doc_=A};
_.nG("yt.ads_.signals_.getAdSignalsString",function(A){return b8f(NEI(A))});_.Vj();navigator.userAgent.indexOf(" (CrKey ");var aWI="XMLHttpRequest"in _.k8?function(){return new XMLHttpRequest}:null;var H8w="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),sNj=[].concat(_.fV(H8w),["client_dev_set_cookie"]);var tcA={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"},QNb="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(_.fV(H8w)),Hmr=!1,EBb=_.Mcb,oBI=lWl;var bhQ=[{messageFn:function(A){return"Cannot read property '"+A.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(A){return"Cannot call '"+A.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(A){return A.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var kHw={messageWeights:[],callbackWeights:[{callback:WjV,weight:500},{callback:zFA,weight:500}]};var dwN=function(){this.callbackWeights=[];this.messageWeights=[]},WpJ,gHl=function(){if(!WpJ){var A=WpJ=new dwN;
A.messageWeights.length=0;A.callbackWeights.length=0;CNI(A,kHw)}return WpJ},CNI=function(A,H){H.messageWeights&&A.messageWeights.push.apply(A.messageWeights,H.messageWeights);
H.callbackWeights&&A.callbackWeights.push.apply(A.callbackWeights,H.callbackWeights)};_.EK(_.B5,_.dF);_.B5.prototype.subscribe=function(A,H,k){var d=this.topics_[A];d||(d=this.topics_[A]=[]);var W=this.JSC$10841_key_;this.subscriptions_[W]=A;this.subscriptions_[W+1]=H;this.subscriptions_[W+2]=k;this.JSC$10841_key_=W+3;d.push(W);return W};
var zW1=function(A){var H=XW,k=!1,d=H.subscribe("handleError",function(W){k||(k=!0,this.unsubscribeByKey(d),A.apply(void 0,arguments))},H)};
_.B5.prototype.unsubscribe=function(A,H,k){if(A=this.topics_[A]){var d=this.subscriptions_;if(A=A.find(function(W){return d[W+1]==H&&d[W+2]==k}))return this.unsubscribeByKey(A)}return!1};
_.B5.prototype.unsubscribeByKey=function(A){var H=this.subscriptions_[A];if(H){var k=this.topics_[H];this.publishDepth_!=0?(this.pendingKeys_.push(A),this.subscriptions_[A+1]=function(){}):(k&&_.EC(k,A),delete this.subscriptions_[A],delete this.subscriptions_[A+1],delete this.subscriptions_[A+2])}return!!H};
_.B5.prototype.publish=function(A,H){var k=this.topics_[A];if(k){var d=Array(arguments.length-1),W=arguments.length,z;for(z=1;z<W;z++)d[z-1]=arguments[z];if(this.async_)for(z=0;z<k.length;z++)W=k[z],qH1(this.subscriptions_[W+1],this.subscriptions_[W+2],d);else{this.publishDepth_++;try{for(z=0,W=k.length;z<W&&!this.isDisposed();z++){var u=k[z];this.subscriptions_[u+1].apply(this.subscriptions_[u+2],d)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;k=this.pendingKeys_.pop();)this.unsubscribeByKey(k)}}return z!=
0}return!1};
var qH1=function(A,H,k){_.hs(function(){A.apply(H,k)})};
_.B5.prototype.clear=function(A){if(A){var H=this.topics_[A];H&&(H.forEach(this.unsubscribeByKey,this),delete this.topics_[A])}else this.subscriptions_.length=0,this.topics_={}};
_.B5.prototype.getCount=function(A){if(A){var H=this.topics_[A];return H?H.length:0}A=0;for(H in this.topics_)A+=this.getCount(H);return A};
_.B5.prototype.disposeInternal=function(){_.B5.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var XW=new _.B5;var kh=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(kh,_.OW);kh.prototype.getColdHashData=function(){return _.O8(this,3)};
kh.prototype.getHotHashData=function(){return _.O8(this,5)};
kh.prototype.setHotHashData=function(A){return _.qC(this,5,A)};var J1V=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(J1V,_.OW);var tOV=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(tOV,_.OW);_.q=tOV.prototype;_.q.getDeviceId=function(){return _.O8(this,6)};
_.q.getExperimentIds=function(A){var H=_.Hz(this,9,_.eI,3,!0);dQV(H,A);return H[A]};
_.q.getPlayerType=function(){return _.RX(this,36)};
_.q.setHomeGroupInfo=function(A){return _.Sn(this,81,A)};
_.q.clearLocationPlayabilityToken=function(){return _.sY(this,89)};var ul=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(ul,_.OW);ul.prototype.setKey=function(A){return _.qC(this,1,A)};
ul.prototype.getValue=function(){return m9(this,2,MOv)};
var MOv=[2,3,4,5,6];var rZA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(rZA,_.OW);rZA.prototype.setTrackingParams=function(A){return _.sY(this,1,_.SA(A,!1))};var NHb=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(NHb,_.OW);var LHI=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(LHI,_.OW);LHI.prototype.getExperimentIds=function(A){var H=_.Hz(this,5,_.XjI,3,!0);dQV(H,A);return H[A]};var il=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(il,_.OW);il.prototype.getToken=function(){return _.o8(this,2)};
il.prototype.setToken=function(A){return _.qC(this,2,A)};var eM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(eM,_.OW);eM.prototype.setSafetyMode=function(A){return _.HL(this,5,A)};var r_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(r_,_.OW);r_.prototype.setClient=function(A){return _.Sn(this,1,A)};var bFW={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 gI8;_.vM=function(){var A=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.k8.addEventListener("beforeinstallprompt",function(H){H.preventDefault();A.deferredInstallPrompt=H});
_.k8.addEventListener("appinstalled",function(){A.appInstalledEventFired=!0},{once:!0})};
gI8=function(){if(!_.k8.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.k8.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.k8.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.k8.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.k8.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(A){return"WEB_DISPLAY_MODE_UNKNOWN"}};var jll=function(){this.syncHeaders=!0},IeC=function(A){var H={},k=[];
"USER_SESSION_ID"in _.ax&&k.push({key:"u",value:_.pZ("USER_SESSION_ID")});if(k=_.MDW(k))H.Authorization=k,k=A=A==null?void 0:A.sessionIndex,k===void 0&&(k=Number(_.pZ("SESSION_INDEX",0)),k=isNaN(k)?0:k),_.b("voice_search_auth_header_removal")||(H["X-Goog-AuthUser"]=k.toString()),"INNERTUBE_HOST_OVERRIDE"in _.ax||(H["X-Origin"]=window.location.origin),A===void 0&&"DELEGATED_SESSION_ID"in _.ax&&(H["X-Goog-PageId"]=_.pZ("DELEGATED_SESSION_ID"));return H};var upZ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Cn=_.UD("ytglobal.prefsUserPrefsPrefs_")||{},BE0;_.nG("ytglobal.prefsUserPrefsPrefs_",Cn);_.Kn=function(){this.cookieName=_.pZ("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.pZ("ALT_PREF_COOKIE_DOMAIN","youtube.com");var A=_.x6.get(this.cookieName,void 0);A&&this.parse(A)};
_.sH=function(){BE0||(BE0=new _.Kn);return BE0};
_.Kn.prototype.get=function(A,H){eWw(A);xwZ(A);A=Cn[A]!==void 0?Cn[A].toString():null;return A!=null?A:H?H:""};
_.Kn.prototype.set=function(A,H){eWw(A);xwZ(A);if(H==null)throw Error("Nc");Cn[A]=H.toString()};
_.Kn.prototype.getFlag=function(A){return!!((i8A("f"+(Math.floor(A/31)+1))||0)&1<<A%31)};
_.kB=function(A,H,k){A="f"+(Math.floor(H/31)+1);H=1<<H%31;var d=i8A(A)||0;d=k?d|H:d&~H;d===0?delete Cn[A]:(k=d.toString(16),Cn[A]=k.toString())};
_.Kn.prototype.remove=function(A){eWw(A);xwZ(A);delete Cn[A]};
_.Kn.prototype.save=function(){var A=!0;_.b("web_secure_pref_cookie_killswitch")&&(A=!1);_.iC(this.cookieName,this.dump(),63072E3,this.cookieDomain,A)};
_.Kn.prototype.clear=function(){_.iK.clear(Cn)};
_.Kn.prototype.dump=function(){var A=[],H;for(H in Cn)Cn.hasOwnProperty(H)&&A.push(H+"="+encodeURIComponent(String(Cn[H])));return A.join("&")};
var xwZ=function(A){if(/^f([1-9][0-9]*)$/.test(A))throw Error("Oc`"+A);},eWw=function(A){if(!/^\w+$/.test(A))throw Error("Pc`"+A);
},i8A=function(A){A=Cn[A]!==void 0?Cn[A].toString():null;
return A!=null&&/^[A-Fa-f0-9]+$/.test(A)?parseInt(A,16):null};
_.Kn.prototype.parse=function(A){A=decodeURIComponent(A).split("&");for(var H=0;H<A.length;H++){var k=A[H].split("="),d=k[0];(k=k[1])&&(Cn[d]=k.toString())}};var Om8={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"},vIf={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},y1X={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},TlA={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var c8;_.aF=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.ma=function(A,H,k){return A.addJob(H,0,k)};
_.aF.prototype.addLowPriorityJob=function(A,H){return this.addJob(A,1,H)};
_.zV=function(A,H,k){return A.addJob(H,2,k)};
_.Hp=function(A,H,k){return A.addJob(H,3,k)};
_.p3=function(A,H,k){return A.addJob(H,4,k)};
c8=function(A){var H=_.UD("yt.scheduler.instance.addImmediateJob");H?H(A):A()};
_.aF.prototype.debounce=function(A,H,k){var d=this,W=0,z=function(){W&&d.cancelJob(W);W=d.addJob(A,H,k);d.cancelDebouncedJobMap.set(z,W)};
return z};
_.aF.prototype.cancelThrottle=function(A){(A=this.cancelThrottledJobMap.get(A))&&A()};var cF=function(){_.aF.apply(this,arguments)},hW0;
_.I(cF,_.aF);_.iA=function(){cF.instance||(cF.instance=new cF);return cF.instance};
cF.prototype.addJob=function(A,H,k){k!==void 0&&Number.isNaN(Number(k))&&(k=void 0);var d=_.UD("yt.scheduler.instance.addJob");return d?d(A,H,k):k===void 0?(A(),NaN):_.zi(A,k||0)};
cF.prototype.cancelJob=function(A){if(A===void 0||!Number.isNaN(Number(A))){var H=_.UD("yt.scheduler.instance.cancelJob");H?H(A):_.r2(A)}};
cF.prototype.start=function(){var A=_.UD("yt.scheduler.instance.start");A&&A()};
cF.prototype.pause=function(){var A=_.UD("yt.scheduler.instance.pause");A&&A()};
hW0=function(){_.iA();var A=_.UD("yt.scheduler.instance.setPriorityThreshold");A&&A(4)};
_.IE=_.iA();_.mR.prototype.set=function(A,H){H===void 0?this.mechanism.remove(A):this.mechanism.set(A,_.Js(H))};
_.mR.prototype.get=function(A){try{var H=this.mechanism.get(A)}catch(k){return}if(H!==null)try{return JSON.parse(H)}catch(k){throw"Storage: Invalid value was encountered";}};
_.mR.prototype.remove=function(A){this.mechanism.remove(A)};_.EK(Jn,_.mR);var O8w=function(A){this.data=A},RWw=function(A){return A===void 0||A instanceof O8w?A:new O8w(A)};
Jn.prototype.set=function(A,H){Jn.superClass_.set.call(this,A,RWw(H))};
Jn.prototype.getWrapper=function(A){A=Jn.superClass_.get.call(this,A);if(A===void 0||A instanceof Object)return A;throw"Storage: Invalid value was encountered";};
Jn.prototype.get=function(A){if(A=this.getWrapper(A)){if(A=A.data,A===void 0)throw"Storage: Invalid value was encountered";}else A=void 0;return A};_.EK(g2,Jn);_.TEZ=function(A){var H=A.creation;A=A.expiration;return!!A&&A<_.Vj()||!!H&&H>_.Vj()};
g2.prototype.set=function(A,H,k){if(H=RWw(H)){if(k){if(k<_.Vj()){g2.prototype.remove.call(this,A);return}H.expiration=k}H.creation=_.Vj()}g2.superClass_.set.call(this,A,H)};
g2.prototype.getWrapper=function(A,H){var k=g2.superClass_.getWrapper.call(this,A);if(k)if(!H&&_.TEZ(k))g2.prototype.remove.call(this,A);else return k};var pn=function(){};
pn.prototype.next=function(){return Q4};
var Q4={done:!0,value:void 0},V4=function(A){return{value:A,done:!1}};
pn.prototype.__iterator__=function(){return this};
_.mww=function(A){if(A instanceof pn)return A;if(typeof A.__iterator__=="function")return A.__iterator__(!1);if(_.Nv(A)){var H=0,k=new pn;k.next=function(){for(;;){if(H>=A.length)return Q4;if(H in A)return V4(A[H++]);H++}};
return k}throw Error("Qc");};var JZw=function(A){if(A instanceof Eh||A instanceof Uh||A instanceof lH)return A;if(typeof A.next=="function")return new Eh(function(){return A});
if(typeof A[Symbol.iterator]=="function")return new Eh(function(){return A[Symbol.iterator]()});
if(typeof A.__iterator__=="function")return new Eh(function(){return A.__iterator__()});
throw Error("Rc");},Eh=function(A){this.func_=A};
Eh.prototype.__iterator__=function(){return new Uh(this.func_())};
Eh.prototype[Symbol.iterator]=function(){return new lH(this.func_())};
Eh.prototype.toEs6=function(){return new lH(this.func_())};
var Uh=function(A){this.JSC$10925_iter_=A};
_.I(Uh,pn);Uh.prototype.next=function(){return this.JSC$10925_iter_.next()};
Uh.prototype[Symbol.iterator]=function(){return new lH(this.JSC$10925_iter_)};
Uh.prototype.toEs6=function(){return new lH(this.JSC$10925_iter_)};
var lH=function(A){Eh.call(this,function(){return A});
this.JSC$10928_iter_=A};
_.I(lH,Eh);lH.prototype.next=function(){return this.JSC$10928_iter_.next()};var t9=function(){};
_.EK(t9,JrC);t9.prototype.getCount=function(){for(var A=0,H=_.r(this),k=H.next();!k.done;k=H.next())A++;return A};
t9.prototype[Symbol.iterator]=function(){return JZw(this.__iterator__(!0)).toEs6()};
t9.prototype.clear=function(){var A=Array.from(this);A=_.r(A);for(var H=A.next();!H.done;H=A.next())this.remove(H.value)};_.EK(bC,t9);_.q=bC.prototype;_.q.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var A=this.storage_;if(A)try{A.setItem("__sak","1");A.removeItem("__sak");var H=!0}catch(k){H=k instanceof DOMException&&(k.name==="QuotaExceededError"||k.code===22||k.code===1014||k.name==="NS_ERROR_DOM_QUOTA_REACHED")&&A&&A.length!==0}else H=!1;this.cachedIsStorageAvailable_=H}return this.cachedIsStorageAvailable_};
_.q.set=function(A,H){Np(this);try{this.storage_.setItem(A,H)}catch(k){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.q.get=function(A){Np(this);A=this.storage_.getItem(A);if(typeof A!=="string"&&A!==null)throw"Storage mechanism: Invalid value was encountered";return A};
_.q.remove=function(A){Np(this);this.storage_.removeItem(A)};
_.q.getCount=function(){Np(this);return this.storage_.length};
_.q.__iterator__=function(A){Np(this);var H=0,k=this.storage_,d=new pn;d.next=function(){if(H>=k.length)return Q4;var W=k.key(H++);if(A)return V4(W);W=k.getItem(W);if(typeof W!=="string")throw"Storage mechanism: Invalid value was encountered";return V4(W)};
return d};
_.q.clear=function(){Np(this);this.storage_.clear()};
_.q.key=function(A){Np(this);return this.storage_.key(A)};
var Np=function(A){if(A.storage_==null)throw Error("Sc");A.isAvailable()||dI(Error("Sc"))};_.EK(gub,bC);_.EK(bmX,bC);_.EK(LG,t9);LG.prototype.set=function(A,H){this.mechanism_.set(this.JSC$10943_prefix_+A,H)};
LG.prototype.get=function(A){return this.mechanism_.get(this.JSC$10943_prefix_+A)};
LG.prototype.remove=function(A){this.mechanism_.remove(this.JSC$10943_prefix_+A)};
LG.prototype.__iterator__=function(A){var H=this.mechanism_[Symbol.iterator](),k=this,d=new pn;d.next=function(){var W=H.next();if(W.done)return W;for(W=W.value;W.slice(0,k.JSC$10943_prefix_.length)!=k.JSC$10943_prefix_;){W=H.next();if(W.done)return W;W=W.value}return V4(A?W.slice(k.JSC$10943_prefix_.length):k.mechanism_.get(W))};
return d};_.D$=function(A){this.expiringStorage_=(A=_.v5(A))?new g2(A):null;this.JSC$10947_domain_=document.domain||window.location.hostname};
_.q=_.D$.prototype;_.q.hasLocalStorage=function(){return!!this.expiringStorage_};
_.q.set=function(A,H,k,d){k=k||31104E3;this.remove(A);if(this.hasLocalStorage())try{this.expiringStorage_.set(A,H,Date.now()+k*1E3);return}catch(z){}var W="";if(d)try{W=escape(_.Js(H))}catch(z){return}else W=escape(H);_.iC(A,W,k,this.JSC$10947_domain_)};
_.q.get=function(A,H){var k=void 0,d=!this.hasLocalStorage();if(!d)try{k=this.expiringStorage_.get(A)}catch(W){d=!0}if(d&&(k=_.x6.get(A,void 0))&&(k=unescape(k),H))try{k=JSON.parse(k)}catch(W){this.remove(A),k=void 0}return k};
_.q.remove=function(A){this.hasLocalStorage()&&this.expiringStorage_.remove(A);_.xm8(A,"/",this.JSC$10947_domain_)};
_.q.getCreationTime=function(A){return this.hasLocalStorage()&&(A=(this.expiringStorage_.getWrapper(A)||{}).creation,typeof A==="number")?A:null};var vum=function(){var A;return function(){A||(A=new _.D$("ytidb"));return A}}();var jcA;_.ji=[];jcA=!1;var luQ=Iub||YAQ;var Mp={},gBw=(Mp.AUTH_INVALID="No user identifier specified.",Mp.EXPLICIT_ABORT="Transaction was explicitly aborted.",Mp.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Mp.MISSING_INDEX="Index not created.",Mp.MISSING_OBJECT_STORES="Object stores not created.",Mp.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Mp.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Mp.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Mp.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Mp.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Mp.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Mp.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Mp),nn={},b80=(nn.AUTH_INVALID="ERROR",nn.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",nn.EXPLICIT_ABORT="IGNORED",
nn.IDB_NOT_SUPPORTED="ERROR",nn.MISSING_INDEX="WARNING",nn.MISSING_OBJECT_STORES="ERROR",nn.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",nn.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",nn.QUOTA_EXCEEDED="WARNING",nn.QUOTA_MAYBE_EXCEEDED="WARNING",nn.UNKNOWN_ABORT="WARNING",nn.INCOMPATIBLE_DB_VERSION="WARNING",nn),Zt={},Lpi=(Zt.AUTH_INVALID=!1,Zt.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Zt.EXPLICIT_ABORT=!1,Zt.IDB_NOT_SUPPORTED=!1,Zt.MISSING_INDEX=!1,Zt.MISSING_OBJECT_STORES=!1,Zt.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Zt.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Zt.QUOTA_EXCEEDED=!1,Zt.QUOTA_MAYBE_EXCEEDED=!0,Zt.UNKNOWN_ABORT=!0,Zt.INCOMPATIBLE_DB_VERSION=!1,Zt),XD=function(A,H,k,d,W){H=H===void 0?{}:H;k=k===void 0?gBw[A]:k;d=d===void 0?b80[A]:d;W=W===void 0?Lpi[A]:W;_.Ti.call(this,k,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:A},H));this.type=A;this.message=k;this.level=d;this.retryable=W;Object.setPrototypeOf(this,XD.prototype)};
_.I(XD,_.Ti);var vBZ=function(A,H){XD.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:H,foundObjectStores:A},gBw.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,vBZ.prototype)};
_.I(vBZ,XD);var GKl=function(A,H){var k=Error.call(this);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.index=A;this.objectStore=H;Object.setPrototypeOf(this,GKl.prototype)};
_.I(GKl,Error);var FjW=["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 KG=function(A){this.executor=A},CG=function(A){var H=this;
this.state={status:"PENDING"};this.JSC$10975_onFulfilled=[];this.JSC$10975_onRejected=[];A=A.executor;var k=function(W){if(H.state.status==="PENDING"){H.state={status:"FULFILLED",value:W};W=_.r(H.JSC$10975_onFulfilled);for(var z=W.next();!z.done;z=W.next())z=z.value,z()}},d=function(W){if(H.state.status==="PENDING"){H.state={status:"REJECTED",
reason:W};W=_.r(H.JSC$10975_onRejected);for(var z=W.next();!z.done;z=W.next())z=z.value,z()}};
try{A(k,d)}catch(W){d(W)}};
CG.all=function(A){return new CG(new KG(function(H,k){var d=[],W=A.length;W===0&&H(d);for(var z={i$jscomp$472:0};z.i$jscomp$472<A.length;z={i$jscomp$472:z.i$jscomp$472},++z.i$jscomp$472)CG.resolve(A[z.i$jscomp$472]).then(function(u){return function(B){d[u.i$jscomp$472]=B;W--;W===0&&H(d)}}(z)).catch(function(u){k(u)})}))};
CG.resolve=function(A){return new CG(new KG(function(H,k){A instanceof CG?A.then(H,k):H(A)}))};
CG.reject=function(A){return new CG(new KG(function(H,k){k(A)}))};
CG.prototype.then=function(A,H){var k=this,d=A!=null?A:SAQ,W=H!=null?H:Dmb;return new CG(new KG(function(z,u){k.state.status==="PENDING"?(k.JSC$10975_onFulfilled.push(function(){yZA(k,k,d,z,u)}),k.JSC$10975_onRejected.push(function(){jNi(k,k,W,z,u)})):k.state.status==="FULFILLED"?yZA(k,k,d,z,u):k.state.status==="REJECTED"&&jNi(k,k,W,z,u)}))};
CG.prototype.catch=function(A){return this.then(void 0,A)};
var yZA=function(A,H,k,d,W){try{if(A.state.status!=="FULFILLED")throw Error("Vc");var z=k(A.state.value);z instanceof CG?IW1(A,H,z,d,W):d(z)}catch(u){W(u)}},jNi=function(A,H,k,d,W){try{if(A.state.status!=="REJECTED")throw Error("Wc");
var z=k(A.state.reason);z instanceof CG?IW1(A,H,z,d,W):d(z)}catch(u){W(u)}},IW1=function(A,H,k,d,W){H===k?W(new TypeError("Xc")):k.then(function(z){z instanceof CG?IW1(A,H,z,d,W):d(z)},function(z){W(z)})};var fn;fn=window;_.w2=fn.ytcsi&&fn.ytcsi.now?fn.ytcsi.now:fn.performance&&fn.performance.timing&&fn.performance.now&&fn.performance.timing.navigationStart?function(){return fn.performance.timing.navigationStart+fn.performance.now()}:function(){return(new Date).getTime()};var c5=function(A,H){this.JSC$10987_wrapped=A;this.options=H;this.transactionCount=0;this.startedMs=Math.round((0,_.w2)());this.hasUnknownAbortedTransaction=!1},wt=function(){return _.b("idb_immediate_commit")},GHN,FpA,A$,SHQ;
c5.prototype.add=function(A,H,k){return _.Ua(this,[A],{mode:"readwrite",enableRetries:!0,commit:wt()},function(d){return d.objectStore(A).add(H,k)})};
c5.prototype.clear=function(A){return _.Ua(this,[A],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore(A).clear()})};
c5.prototype.close=function(){this.JSC$10987_wrapped.close();var A;((A=this.options)==null?0:A.closed)&&this.options.closed()};
c5.prototype.count=function(A,H){return _.Ua(this,[A],{mode:"readonly",enableRetries:!0,commit:wt()},function(k){return k.objectStore(A).count(H)})};
var C5=function(A,H,k){A=A.JSC$10987_wrapped.createObjectStore(H,k);return new oF(A)};
c5.prototype.delete=function(A,H){return _.Ua(this,[A],{mode:"readwrite",enableRetries:!0,commit:wt()&&!(H instanceof IDBKeyRange)},function(k){return k.objectStore(A).delete(H)})};
var YHQ=function(A,H){return _.Ua(A,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(k){return k.objectStore("ResponseStore").index("byInterface").delete(H)})};
c5.prototype.get=function(A,H){return _.Ua(this,[A],{mode:"readonly",enableRetries:!0,commit:wt()},function(k){return k.objectStore(A).get(H)})};
c5.prototype.getAll=function(A,H,k){return _.Ua(this,[A],{mode:"readonly",enableRetries:!0},function(d){return d.objectStore(A).getAll(H,k)})};
c5.prototype.put=function(A,H,k){return _.Ua(this,[A],{mode:"readwrite",enableRetries:!0,commit:wt()},function(d){return d.objectStore(A).put(H,k)})};
c5.prototype.objectStoreNames=function(){return Array.from(this.JSC$10987_wrapped.objectStoreNames)};
_.Ua=function(A,H,k,d){var W,z,u,B,h,O,T,m,J,g,v,y;return _.e(function(X){switch(X.nextAddress){case 1:var D={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof k==="string"?D.mode=k:Object.assign(D,k);W=D;A.transactionCount++;z=W.enableRetries?3:1;u=0;case 2:if(B){X.jumpTo(4);break}u++;h=Math.round((0,_.w2)());_.S_(X,5);O=A.JSC$10987_wrapped.transaction(H,W.mode);D=X.yield;var K=!!W.commit;var N=new pG(O);K=P9A(N,d,K);return D.call(X,K,7);case 7:return T=X.yieldResult,m=Math.round((0,_.w2)()),
GHN(A,h,m,u,void 0,H.join(),W),X.return(T);case 5:J=_.VA(X);g=Math.round((0,_.w2)());v=XK8(J,A.JSC$10987_wrapped.name,H.join(),A.JSC$10987_wrapped.version);if((y=v instanceof XD&&!v.retryable)||u>=z)GHN(A,h,g,u,v,H.join(),W),B=v;X.jumpTo(2);break;case 4:return X.return(Promise.reject(B))}})};
GHN=function(A,H,k,d,W,z,u){H=k-H;W?(W instanceof XD&&(W.type==="QUOTA_EXCEEDED"||W.type==="QUOTA_MAYBE_EXCEEDED")&&Y6("QUOTA_EXCEEDED",{dbName:Gi(A.JSC$10987_wrapped.name),objectStoreNames:z,transactionCount:A.transactionCount,transactionMode:u.mode}),W instanceof XD&&W.type==="UNKNOWN_ABORT"&&(k-=A.startedMs,k<0&&k>=2147483648&&(k=0),Y6("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:z,transactionDuration:H,transactionCount:A.transactionCount,dbDuration:k}),A.hasUnknownAbortedTransaction=!0),
FpA(A,!1,d,z,H,u.tag),_.IP(W)):FpA(A,!0,d,z,H,u.tag)};
FpA=function(A,H,k,d,W,z){Y6("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:A.hasUnknownAbortedTransaction,duration:W,isSuccessful:H,tryCount:k,tag:z===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":z})};
c5.prototype.getName=function(){return this.JSC$10987_wrapped.name};
var oF=function(A){this.JSC$11002_wrapped=A};
oF.prototype.add=function(A,H){return aP(this.JSC$11002_wrapped.add(A,H))};
oF.prototype.autoIncrement=function(){return this.JSC$11002_wrapped.autoIncrement};
oF.prototype.clear=function(){return aP(this.JSC$11002_wrapped.clear()).then(function(){})};
var K5=function(A,H,k){A.JSC$11002_wrapped.createIndex(H,k,{unique:!1})};
oF.prototype.count=function(A){return aP(this.JSC$11002_wrapped.count(A))};
var X0N=function(A,H){return tn(A,{query:H},function(k){return k.delete().then(function(){return k.continue()})}).then(function(){})};
oF.prototype.delete=function(A){return A instanceof IDBKeyRange?X0N(this,A):aP(this.JSC$11002_wrapped.delete(A))};
oF.prototype.get=function(A){return aP(this.JSC$11002_wrapped.get(A))};
oF.prototype.getAll=function(A,H){return"getAll"in IDBObjectStore.prototype?aP(this.JSC$11002_wrapped.getAll(A,H)):DwA(this,A,H)};
var DwA=function(A,H,k){var d=[];return tn(A,{query:H},function(W){if(!(k!==void 0&&d.length>=k))return d.push(W.getValue()),W.continue()}).then(function(){return d})};
oF.prototype.index=function(A){try{return new $w(this.JSC$11002_wrapped.index(A))}catch(H){if(H instanceof Error&&H.name==="NotFoundError")throw new GKl(A,this.JSC$11002_wrapped.name);throw H;}};
oF.prototype.getName=function(){return this.JSC$11002_wrapped.name};
oF.prototype.keyPath=function(){return this.JSC$11002_wrapped.keyPath};
oF.prototype.put=function(A,H){return aP(this.JSC$11002_wrapped.put(A,H))};
var tn=function(A,H,k){A=A.JSC$11002_wrapped.openCursor(H.query,H.direction);return SHQ(A).then(function(d){return auN(d,k)})},pG=function(A){var H=this;
this.JSC$11010_wrapped=A;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(k,d){H.JSC$11010_wrapped.addEventListener("complete",function(){k()});
H.JSC$11010_wrapped.addEventListener("error",function(W){W.currentTarget===W.target&&d(H.JSC$11010_wrapped.error)});
H.JSC$11010_wrapped.addEventListener("abort",function(){var W=H.JSC$11010_wrapped.error;if(W)d(W);else if(!H.aborted){W=XD;for(var z=H.JSC$11010_wrapped.objectStoreNames,u=[],B=0;B<z.length;B++){var h=z.item(B);if(h===null)throw Error("Yc");u.push(h)}W=new W("UNKNOWN_ABORT",{objectStoreNames:u.join(),dbName:H.JSC$11010_wrapped.db.name,mode:H.JSC$11010_wrapped.mode});d(W)}})})},P9A=function(A,H,k){var d=new Promise(function(W,z){try{var u=H(A);
k&&A.commit();u.then(function(B){W(B)}).catch(z)}catch(B){z(B),A.abort()}});
return Promise.all([d,A.done]).then(function(W){return _.r(W).next().value})};
pG.prototype.abort=function(){this.JSC$11010_wrapped.abort();this.aborted=!0;throw new XD("EXPLICIT_ABORT");};
pG.prototype.commit=function(){if(!this.aborted){var A,H;(H=(A=this.JSC$11010_wrapped).commit)==null||H.call(A)}};
pG.prototype.objectStore=function(A){A=this.JSC$11010_wrapped.objectStore(A);var H=this.objectStoreCache.get(A);H||(H=new oF(A),this.objectStoreCache.set(A,H));return H};
var $w=function(A){this.JSC$11012_wrapped=A};
$w.prototype.count=function(A){return aP(this.JSC$11012_wrapped.count(A))};
$w.prototype.delete=function(A){return _.oP(this,{query:A},function(H){return H.delete().then(function(){return H.continue()})})};
$w.prototype.get=function(A){return aP(this.JSC$11012_wrapped.get(A))};
$w.prototype.getAll=function(A,H){return"getAll"in IDBIndex.prototype?aP(this.JSC$11012_wrapped.getAll(A,H)):C9J(this,A,H)};
var C9J=function(A,H,k){var d=[];return _.oP(A,{query:H},function(W){if(!(k!==void 0&&d.length>=k))return d.push(W.getValue()),W.continue()}).then(function(){return d})};
$w.prototype.keyPath=function(){return this.JSC$11012_wrapped.keyPath};
$w.prototype.unique=function(){return this.JSC$11012_wrapped.unique};
_.oP=function(A,H,k){A=A.JSC$11012_wrapped.openCursor(H.query===void 0?null:H.query,H.direction===void 0?"next":H.direction);return SHQ(A).then(function(d){return auN(d,k)})};
A$=function(A,H){this.request=A;this.cursor=H};
SHQ=function(A){return aP(A).then(function(H){return H?new A$(A,H):null})};
A$.prototype.continue=function(A){this.cursor.continue(A);return SHQ(this.request)};
A$.prototype.delete=function(){return aP(this.cursor.delete()).then(function(){})};
A$.prototype.getValue=function(){return this.cursor.value};
A$.prototype.update=function(A){return aP(this.cursor.update(A))};var Ho=function(A,H){this.name=A;this.options=H;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Kpk;
Ho.prototype.openDb=function(A,H,k){k=k===void 0?{}:k;return pKI(A,H,k)};
Ho.prototype.delete=function(A){A=A===void 0?{}:A;return _.VN(this.name,A)};
Kpk=function(A,H){return new XD("INCOMPATIBLE_DB_VERSION",{dbName:A.name,oldVersion:A.options.version,newVersion:H})};
_.Ea=function(A,H){if(!H)throw Si("openWithToken",Gi(A.name));return A.open()};
Ho.prototype.open=function(){var A=this;if(!this.isCompatible)throw Kpk(this);if(this.connectionPromise)return this.connectionPromise;var H,k=function(){A.connectionPromise===H&&(A.connectionPromise=void 0)},d={blocking:function(z){z.close()},
closed:k,terminated:k,upgrade:this.options.upgrade},W=function(){var z,u,B,h,O,T,m,J,g,v;return _.e(function(y){switch(y.nextAddress){case 1:return u=(z=Error().stack)!=null?z:"",_.S_(y,2),y.yield(A.openDb(A.name,A.options.version,d),4);case 4:for(var X=B=y.yieldResult,D=A.options,K=[],N=_.r(Object.keys(D.objectStores)),U=N.next();!U.done;U=N.next()){U=U.value;var p=D.objectStores[U],M=p.removedAtVersion===void 0?Number.MAX_VALUE:p.removedAtVersion;!(X.JSC$10987_wrapped.version>=p.addedAtVersion)||
X.JSC$10987_wrapped.version>=M||X.JSC$10987_wrapped.objectStoreNames.contains(U)||K.push(U)}h=K;if(h.length===0){y.jumpTo(5);break}O=Object.keys(A.options.objectStores);T=B.objectStoreNames();if(A.timesReopenedToFixMissingObjectStore<_.H5("ytidb_reopen_db_retries",0))return A.timesReopenedToFixMissingObjectStore++,B.close(),_.IP(new XD("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:A.name,expectedObjectStores:O,foundObjectStores:T})),y.return(W());if(!(A.timesDeletedToFixMissingObjectStore<_.H5("ytidb_remake_db_retries",
1))){y.jumpTo(6);break}A.timesDeletedToFixMissingObjectStore++;return y.yield(A.delete(),7);case 7:return _.IP(new XD("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:A.name,expectedObjectStores:O,foundObjectStores:T})),y.return(W());case 6:throw new vBZ(T,O);case 5:return y.return(B);case 2:m=_.VA(y);if(m instanceof DOMException?m.name!=="VersionError":"DOMError"in self&&m instanceof DOMError?m.name!=="VersionError":!(m instanceof Object&&"message"in m)||m.message!=="An attempt was made to open a database using a lower version than the existing version."){y.jumpTo(8);
break}return y.yield(A.openDb(A.name,void 0,Object.assign({},d,{upgrade:void 0})),9);case 9:J=y.yieldResult;g=J.JSC$10987_wrapped.version;if(A.options.version!==void 0&&g>A.options.version+1)throw J.close(),A.isCompatible=!1,Kpk(A,g);return y.return(J);case 8:throw k(),m instanceof Error&&!_.b("ytidb_async_stack_killswitch")&&(m.stack=m.stack+"\n"+u.substring(u.indexOf("\n")+1)),XK8(m,A.name,"",(v=A.options.version)!=null?v:-1);}})};
return this.connectionPromise=H=W()};var Qcf=new Ho("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(A,H){H(1)&&C5(A,"databases",{keyPath:"actualName"})}});var MXr,tXN=new function(){}(new function(){});new _.lk;var aWw=function(A,H){Ho.call(this,A,H);this.options=H;P5(A)};
_.I(aWw,Ho);var kDv=function(A,H){var k;return function(){k||(k=new aWw(A,H));return k}};
aWw.prototype.openDb=function(A,H,k){k=k===void 0?{}:k;return(this.options.shared?ou8:wKW)(A,H,Object.assign({},k))};
aWw.prototype.delete=function(A){A=A===void 0?{}:A;return(this.options.shared?sl8:$mQ)(this.name,A)};var cZG={},dHW=fG("ytGcfConfig",{objectStores:(cZG.coldConfigStore={addedAtVersion:1},cZG.hotConfigStore={addedAtVersion:1},cZG),shared:!1,upgrade:function(A,H){H(1)&&(K5(C5(A,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),K5(C5(A,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var p00=function(){_.dF.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var A=_.UD("yt.gcf.config.hotUpdateCallbacks");A?(this.localHotConfigJobQueue=[].concat(_.fV(A)),this.sharedHotConfigJobQueue=A):(this.sharedHotConfigJobQueue=[],_.nG("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.I(p00,_.dF);p00.prototype.disposeInternal=function(){for(var A=_.r(this.localHotConfigJobQueue),H=A.next();!H.done;H=A.next()){var k=this.sharedHotConfigJobQueue;H=k.indexOf(H.value);H>=0&&k.splice(H,1)}this.localHotConfigJobQueue.length=0;_.dF.prototype.disposeInternal.call(this)};var Jb=function(){var A=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new p00;this.TEST_ONLY={initializeConfigDb:function(){A.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return A.coldGlobalConfigGroup},
setHotConfigGroup:function(H){QNp(A,H)},
setHotHashData:function(H){A.setHotHashData(H)},
setColdConfigGroup:function(H){Vc1(A,H)},
getColdHashData:function(){return A.coldHashData},
getHotHashData:function(){return A.hotHashData},
getHotConfigGroup:function(){return A.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return EBp()},
getExportedHotConfigGroup:function(){return s4()},
getExportedColdHashData:function(){return _.UD("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.UD("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Uw0(A)},
resetInstance:function(){A.setHotHashData(void 0);lWN(A);delete Jb.instance},
setDebounceTimer:function(H){A.debounceTimer=H},
getDebounceTimer:function(){return A.debounceTimer}}},tck=function(){if(!Jb.instance){var A=new Jb;
Jb.instance=A}return Jb.instance},nBp=function(A){var H;
_.e(function(k){if(k.nextAddress==1)return _.b("start_client_gcf")||_.b("delete_gcf_config_db")?_.b("start_client_gcf")?k.yield(_.Zq(),3):k.jumpTo(2):k.return();k.nextAddress!=2&&((H=k.yieldResult)&&_.RP()&&!_.b("delete_gcf_config_db")?(A.isConfigDbInitialized=!0,Uw0(A)):(NEw(A),Mcp(A)));return _.b("delete_gcf_config_db")?k.yield(B4N(),0):k.jumpTo(0)})},g_=function(){var A;
return(A=s4())!=null?A:_.pZ("RAW_HOT_CONFIG_GROUP")},Z81=function(A){var H,k,d,W,z,u;
return _.e(function(B){switch(B.nextAddress){case 1:if(A.hotGlobalConfigGroup)return B.return(s4());if(!A.isConfigDbInitialized)return H=Si("getHotConfig IDB not initialized"),_.lt(H),B.return(Promise.reject(H));k=M4();d=_.pZ("TIME_CREATED_MS");if(!k){W=Si("getHotConfig token error");_.lt(W);B.jumpTo(2);break}return B.yield(u_l(k),3);case 3:if((z=B.yieldResult)&&z.timestamp>d)return QNp(A,z.config),A.setHotHashData(z.hashData),B.return(s4());case 2:Mcp(A);if(!(k&&A.hotGlobalConfigGroup&&A.hotHashData)){B.jumpTo(4);
break}return B.yield(zYA(A.hotGlobalConfigGroup,A.hotHashData,k,d),4);case 4:return A.hotGlobalConfigGroup?B.return(s4()):(u=new _.Ti("Config not available in ytConfig"),_.lt(u),B.return(Promise.reject(u)))}})},w00=function(A){var H,k,d,W,z,u;
return _.e(function(B){switch(B.nextAddress){case 1:if(A.coldGlobalConfigGroup)return B.return(EBp());if(!A.isConfigDbInitialized)return H=Si("getColdConfig IDB not initialized"),_.lt(H),B.return(Promise.reject(H));k=M4();d=_.pZ("TIME_CREATED_MS");if(!k){W=Si("getColdConfig");_.lt(W);B.jumpTo(2);break}return B.yield(r1I(k),3);case 3:if((z=B.yieldResult)&&z.timestamp>d)return Vc1(A,z.config),fWw(A,z.configData),lWN(A,z.hashData),B.return(EBp());case 2:NEw(A);if(!(k&&A.coldGlobalConfigGroup&&A.coldHashData&&
A.configData)){B.jumpTo(4);break}return B.yield(qJ8(A.coldGlobalConfigGroup,A.coldHashData,A.configData,k,d),4);case 4:return A.coldGlobalConfigGroup?B.return(EBp()):(u=new _.Ti("Config not available in ytConfig"),_.lt(u),B.return(Promise.reject(u)))}})},Uw0=function(A){if(!A.hotGlobalConfigGroup||!A.coldGlobalConfigGroup){if(!M4()){var H=Si("scheduleGetConfigs");
_.lt(H)}A.initJob||(A.initJob=_.IE.addLowPriorityJob(function(){return _.e(function(k){switch(k.nextAddress){case 1:return _.S_(k,2),k.yield(Z81(A),4);case 4:_.QN(k,3);break;case 2:_.VA(k);case 3:return _.S_(k,5),k.yield(w00(A),7);case 7:_.QN(k,6);break;case 5:_.VA(k);case 6:A.initJob&&(A.initJob=0),_.EN(k)}})},100))}},dFW=function(A,H,k){var d,W,z;
return _.e(function(u){switch(u.nextAddress){case 1:if(!_.b("start_client_gcf")){u.jumpTo(0);break}k&&QNp(A,k);A.setHotHashData(H);d=M4();if(!d){u.jumpTo(3);break}if(k){u.jumpTo(4);break}return u.yield(u_l(d),5);case 5:W=u.yieldResult,k=(z=W)==null?void 0:z.config;case 4:return u.yield(zYA(k,H,d),3);case 3:if(k)for(var B=k,h=_.r(A.configUpdateService.sharedHotConfigJobQueue),O=h.next();!O.done;O=h.next())O=O.value,O(B);_.EN(u)}})},W5Q=function(A,H,k){var d,W,z,u;
return _.e(function(B){if(B.nextAddress==1){if(!_.b("start_client_gcf"))return B.jumpTo(0);lWN(A,H);return(d=M4())?k?B.jumpTo(4):B.yield(r1I(d),5):B.jumpTo(0)}B.nextAddress!=4&&(W=B.yieldResult,k=(z=W)==null?void 0:z.config);if(!k)return B.jumpTo(0);u=k.configData;return B.yield(qJ8(k,H,u,d),0)})},PwI=function(){var A=tck(),H=(0,_.w2)()-A.debounceTimer;
if(!(A.debounceTimer!==0&&H<_.H5("send_config_hash_timer"))){H=_.UD("yt.gcf.config.coldConfigData");var k=_.UD("yt.gcf.config.hotHashData"),d=_.UD("yt.gcf.config.coldHashData");H&&k&&d&&(A.debounceTimer=(0,_.w2)());return{coldConfigData:H,hotHashData:k,coldHashData:d}}},NEw=function(A){Vc1(A,_.pZ("RAW_COLD_CONFIG_GROUP"));
lWN(A,_.pZ("SERIALIZED_COLD_HASH_DATA"));var H;fWw(A,(H=A.coldGlobalConfigGroup)==null?void 0:H.configData)},Mcp=function(A){QNp(A,_.pZ("RAW_HOT_CONFIG_GROUP"));
A.setHotHashData(_.pZ("SERIALIZED_HOT_HASH_DATA"))},QNp=function(A,H){A.hotGlobalConfigGroup=H;
_.nG("yt.gcf.config.hotConfigGroup",A.hotGlobalConfigGroup||null)},Vc1=function(A,H){A.coldGlobalConfigGroup=H;
_.nG("yt.gcf.config.coldConfigGroup",A.coldGlobalConfigGroup||null)};
Jb.prototype.setHotHashData=function(A){this.hotHashData=A;_.nG("yt.gcf.config.hotHashData",this.hotHashData||null)};
var lWN=function(A,H){A.coldHashData=H;_.nG("yt.gcf.config.coldHashData",A.coldHashData||null)},fWw=function(A,H){A.configData=H;
_.nG("yt.gcf.config.coldConfigData",A.configData||null)},s4=function(){return _.UD("yt.gcf.config.hotConfigGroup")},EBp=function(){return _.UD("yt.gcf.config.coldConfigGroup")};var re={},oBw=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";re.assign=function(A){for(var H=Array.prototype.slice.call(arguments,1);H.length;){var k=H.shift();if(k){if(typeof k!=="object")throw new TypeError("ad`"+k);for(var d in k)Object.prototype.hasOwnProperty.call(k,d)&&(A[d]=k[d])}}return A};
re.shrinkBuf=function(A,H){if(A.length===H)return A;if(A.subarray)return A.subarray(0,H);A.length=H;return A};
var $wi={arraySet:function(A,H,k,d,W){if(H.subarray&&A.subarray)A.set(H.subarray(k,k+d),W);else for(var z=0;z<d;z++)A[W+z]=H[k+z]},
flattenChunks:function(A){var H,k;var d=k=0;for(H=A.length;d<H;d++)k+=A[d].length;var W=new Uint8Array(k);d=k=0;for(H=A.length;d<H;d++){var z=A[d];W.set(z,k);k+=z.length}return W}},Ar0={arraySet:function(A,H,k,d,W){for(var z=0;z<d;z++)A[W+z]=H[k+z]},
flattenChunks:function(A){return[].concat.apply([],A)}};
re.setTyped=function(){oBw?(re.Buf8=Uint8Array,re.Buf16=Uint16Array,re.Buf32=Int32Array,re.assign(re,$wi)):(re.Buf8=Array,re.Buf16=Array,re.Buf32=Array,re.assign(re,Ar0))};
re.setTyped();var HmG=!0;try{new Uint8Array(1)}catch(A){HmG=!1}
var uIX=function(A){var H,k,d=A.length,W=0;for(H=0;H<d;H++){var z=A.charCodeAt(H);if((z&64512)===55296&&H+1<d){var u=A.charCodeAt(H+1);(u&64512)===56320&&(z=65536+(z-55296<<10)+(u-56320),H++)}W+=z<128?1:z<2048?2:z<65536?3:4}var B=new re.Buf8(W);for(H=k=0;k<W;H++)z=A.charCodeAt(H),(z&64512)===55296&&H+1<d&&(u=A.charCodeAt(H+1),(u&64512)===56320&&(z=65536+(z-55296<<10)+(u-56320),H++)),z<128?B[k++]=z:(z<2048?B[k++]=192|z>>>6:(z<65536?B[k++]=224|z>>>12:(B[k++]=240|z>>>18,B[k++]=128|z>>>12&63),B[k++]=
128|z>>>6&63),B[k++]=128|z&63);return B};var fef={};fef=function(A,H,k,d){var W=A&65535|0;A=A>>>16&65535|0;for(var z;k!==0;){z=k>2E3?2E3:k;k-=z;do W=W+H[d++]|0,A=A+W|0;while(--z);W%=65521;A%=65521}return W|A<<16|0};for(var bZ={},ks,sci=[],kKJ=0;kKJ<256;kKJ++){ks=kKJ;for(var dmA=0;dmA<8;dmA++)ks=ks&1?3988292384^ks>>>1:ks>>>1;sci[kKJ]=ks}bZ=function(A,H,k,d){k=d+k;for(A^=-1;d<k;d++)A=A>>>8^sci[(A^H[d])&255];return A^-1};var xh={};xh={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 pMI=[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],Vsb=[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],r6C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nIN=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],RE=Array(576);de(RE);var TZ=Array(60);de(TZ);var BL=Array(512);de(BL);var uZ=Array(256);de(uZ);var QlC=Array(29);de(QlC);var EIC=Array(30);de(EIC);var W$W,z7N,q6I,d0f=!1;var jF;
jF=[new yv(0,0,0,0,function(A,H){var k=65535;for(k>A.pending_buf_size-5&&(k=A.pending_buf_size-5);;){if(A.lookahead<=1){L5(A);if(A.lookahead===0&&H===0)return 1;if(A.lookahead===0)break}A.strstart+=A.lookahead;A.lookahead=0;var d=A.block_start+k;if(A.strstart===0||A.strstart>=d)if(A.lookahead=A.strstart-d,A.strstart=d,mS(A,!1),A.strm.avail_out===0)return 1;if(A.strstart-A.block_start>=A.w_size-262&&(mS(A,!1),A.strm.avail_out===0))return 1}A.insert=0;if(H===4)return mS(A,!0),A.strm.avail_out===0?3:
4;A.strstart>A.block_start&&mS(A,!1);return 1}),
new yv(4,4,8,4,wMr),new yv(4,5,16,8,wMr),new yv(4,6,32,32,wMr),new yv(4,4,16,16,vL),new yv(8,16,32,32,vL),new yv(8,16,128,128,vL),new yv(8,32,128,256,vL),new yv(32,128,258,1024,vL),new yv(32,258,258,4096,vL)];var knI={};knI=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 BuW=Object.prototype.toString;
sOm.prototype.push=function(A,H){var k=this.strm,d=this.options.chunkSize;if(this.ended)return!1;var W=H===~~H?H:H===!0?4:0;typeof A==="string"?k.input=uIX(A):BuW.call(A)==="[object ArrayBuffer]"?k.input=new Uint8Array(A):k.input=A;k.next_in=0;k.avail_in=k.input.length;do{k.avail_out===0&&(k.output=new re.Buf8(d),k.next_out=0,k.avail_out=d);A=H0A(k,W);if(A!==1&&A!==0)return Wjj(this,A),this.ended=!0,!1;if(k.avail_out===0||k.avail_in===0&&(W===4||W===2))if(this.options.to==="string"){var z=re.shrinkBuf(k.output,
k.next_out);H=z;z=z.length;if(z<65537&&(H.subarray&&HmG||!H.subarray))H=String.fromCharCode.apply(null,re.shrinkBuf(H,z));else{for(var u="",B=0;B<z;B++)u+=String.fromCharCode(H[B]);H=u}this.chunks.push(H)}else H=re.shrinkBuf(k.output,k.next_out),this.chunks.push(H)}while((k.avail_in>0||k.avail_out===0)&&A!==1);if(W===4)return(k=this.strm)&&k.state?(d=k.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?A=iZ(k,-2):(k.state=null,A=d===113?iZ(k,-3):0)):A=-2,Wjj(this,A),this.ended=
!0,A===0;W===2&&(Wjj(this,0),k.avail_out=0);return!0};
var Wjj=function(A,H){H===0&&(A.result=A.options.to==="string"?A.chunks.join(""):re.flattenChunks(A.chunks));A.chunks=[];A.err=H;A.msg=A.strm.msg};var zFk=typeof TextEncoder!=="undefined"?new TextEncoder:null,pWm=zFk?function(A){return zFk.encode(A)}:function(A){A=_.zf(A);
for(var H=new Uint8Array(A.length),k=0;k<H.length;k++)H[k]=A[k];return H};var HMl={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},kBX={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var d6=function(A,H){this.version=A;this.args=H};
d6.prototype.serialize=function(){return{version:this.version,args:this.args}};var O0A=function(A,H){this.topic=A;this.dataClass=H};
O0A.prototype.toString=function(){return this.topic};var qAN=_.UD("ytPubsub2Pubsub2Instance")||new _.B5;_.B5.prototype.subscribe=_.B5.prototype.subscribe;_.B5.prototype.unsubscribeByKey=_.B5.prototype.unsubscribeByKey;_.B5.prototype.publish=_.B5.prototype.publish;_.B5.prototype.clear=_.B5.prototype.clear;_.nG("ytPubsub2Pubsub2Instance",qAN);var h78=_.UD("ytPubsub2Pubsub2SubscribedKeys")||{};_.nG("ytPubsub2Pubsub2SubscribedKeys",h78);var TuQ=_.UD("ytPubsub2Pubsub2TopicToKeys")||{};_.nG("ytPubsub2Pubsub2TopicToKeys",TuQ);
var R7N=_.UD("ytPubsub2Pubsub2IsAsync")||{};_.nG("ytPubsub2Pubsub2IsAsync",R7N);_.nG("ytPubsub2Pubsub2SkipSubKey",null);var Y68=void 0,jOA=void 0;var K$W=_.H5("max_body_size_to_compress",5E5),aSm=_.H5("min_body_size_to_compress",500),PL=!0,E9f=0,GZ=0,VDm=_.H5("compression_performance_threshold_lr",250),lSA=_.H5("slow_compressions_before_abandon_count",4),F$I=!1,XWW=new Map,c6V=1;_.EK(FZ,Nub);FZ.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 rrj=function(A,H,k){k||(k=0);var d=A.W_;if(typeof H==="string")for(var W=0;W<16;W++)d[W]=H.charCodeAt(k)<<24|H.charCodeAt(k+1)<<16|H.charCodeAt(k+2)<<8|H.charCodeAt(k+3),k+=4;else for(W=0;W<16;W++)d[W]=H[k]<<24|H[k+1]<<16|H[k+2]<<8|H[k+3],k+=4;for(H=16;H<80;H++)k=d[H-3]^d[H-8]^d[H-14]^d[H-16],d[H]=(k<<1|k>>>31)&4294967295;H=A.chain_[0];k=A.chain_[1];W=A.chain_[2];for(var z=A.chain_[3],u=A.chain_[4],B,h,O=0;O<80;O++)O<40?O<20?(B=z^k&(W^z),h=1518500249):(B=k^W^z,h=1859775393):O<60?(B=k&W|z&(k|W),
h=2400959708):(B=k^W^z,h=3395469782),B=(H<<5|H>>>27)+B+u+h+d[O]&4294967295,u=z,z=W,W=(k<<30|k>>>2)&4294967295,k=H,H=B;A.chain_[0]=A.chain_[0]+H&4294967295;A.chain_[1]=A.chain_[1]+k&4294967295;A.chain_[2]=A.chain_[2]+W&4294967295;A.chain_[3]=A.chain_[3]+z&4294967295;A.chain_[4]=A.chain_[4]+u&4294967295};
FZ.prototype.update=function(A,H){if(A!=null){H===void 0&&(H=A.length);for(var k=H-this.blockSize,d=0,W=this.buf_,z=this.inbuf_;d<H;){if(z==0)for(;d<=k;)rrj(this,A,d),d+=this.blockSize;if(typeof A==="string")for(;d<H;){if(W[z]=A.charCodeAt(d),++z,++d,z==this.blockSize){rrj(this,W);z=0;break}}else for(;d<H;)if(W[z]=A[d],++z,++d,z==this.blockSize){rrj(this,W);z=0;break}}this.inbuf_=z;this.total_+=H}};
FZ.prototype.digest=function(){var A=[],H=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var k=this.blockSize-1;k>=56;k--)this.buf_[k]=H&255,H/=256;rrj(this,this.buf_);for(k=H=0;k<5;k++)for(var d=24;d>=0;d-=8)A[H]=this.chain_[k]>>d&255,++H;return A};var Z0C;var zt=function(A){var H=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(T){H.databaseToken=T},
triggerThrottle:function(){H.throttledSend()},
cancelThrottle:function(){H.cancelThrottledSend()},
immediateSend:function(T){return _.e(function(m){return m.yield(H.immediateSend(T),0)})},
requestWithinAgeLimit:function(T,m){return H.requestWithinAgeLimit(T,m)},
retryQueuedRequests:function(){H.retryQueuedRequests()}};
var k;this.throttleTimeout=(k=A.throttleTimeout)!=null?k:100;var d;this.retryMaxAttempts=(d=A.retryMaxAttempts)!=null?d:1;var W;this.requestAgeLimitMs=(W=A.requestAgeLimitMs)!=null?W:2592E6;var z;this.queuedRequestAgeLimitMs=(z=A.queuedRequestAgeLimitMs)!=null?z:12E4;var u;this.retryDelayMs=(u=A.retryDelayMs)!=null?u:5E3;var B;this.databaseToken=(B=A.databaseToken)!=null?B:void 0;this.enableCleaning=!!A.enableCleaning;var h;this.cleaningRate=(h=A.cleaningRate)!=null?h:.1;var O;this.potentialEsfErrorLimit=
(O=A.potentialEsfErrorLimit)!=null?O:10;A.handleError&&(this.handleError=A.handleError);A.handleWarning&&(this.handleWarning=A.handleWarning);A.disableYtIdbTransactions&&(this.disableYtIdbTransactions=A.disableYtIdbTransactions);A.bypassDbTokenDependency&&(this.bypassDbTokenDependency=A.bypassDbTokenDependency);this.getBooleanFlag=A.getBooleanFlag;this.jobManager=A.jobManager;this.logsStore=A.logsStore;this.networkManager=A.networkManager;this.sendFn=A.sendFn;this.onlineEvent=A.onlineEvent;this.offlineEvent=
A.offlineEvent;Wo(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&u3J(this)},u3J=function(A){Wo(A)&&!A.disableYtIdbTransactions&&(A.initialized=!0,A.enableCleaning&&Math.random()<=A.cleaningRate&&A.logsStore.cleanLogsStore(A.databaseToken),A.retryQueuedRequests(),A.networkManager.isNetworkAvailable()&&A.throttledSend(),A.networkManager.listen(A.onlineEvent,A.throttledSend.bind(A)),A.networkManager.listen(A.offlineEvent,A.cancelThrottledSend.bind(A)))};
_.q=zt.prototype;_.q.writeThenSend=function(A,H){var k=this;H=H===void 0?{}:H;if(Wo(this)&&this.initialized){var d={url:A,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(d,this.databaseToken).then(function(W){d.id=W;k.networkManager.isNetworkAvailable()&&k.immediateSend(d)}).catch(function(W){k.immediateSend(d);
Bl1(k,W)})}else this.sendFn(A,H)};
_.q.sendThenWrite=function(A,H,k){var d=this;H=H===void 0?{}:H;if(Wo(this)&&this.initialized){var W={url:A,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(W.skipRetry=k);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!W.skipRetry){if(!W.skipRetry){var z=H.onError?H.onError:function(){};
H.onError=function(u,B){return _.e(function(h){if(h.nextAddress==1)return h.yield(d.logsStore.set(W,d.databaseToken).catch(function(O){Bl1(d,O)}),2);
z(u,B);_.EN(h)})}}this.sendFn(A,H,W.skipRetry)}else this.logsStore.set(W,this.databaseToken).catch(function(u){d.sendFn(A,H,W.skipRetry);
Bl1(d,u)})}else this.sendFn(A,H,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&k)};
_.q.sendAndWrite=function(A,H){var k=this;H=H===void 0?{}:H;if(Wo(this)&&this.initialized){var d={url:A,options:H,timestamp:this.now(),status:"NEW",sendCount:0},W=!1,z=H.onSuccess?H.onSuccess:function(){};
d.options.onSuccess=function(u,B){d.id!==void 0?k.logsStore.deleteRequest(d.id,k.databaseToken):W=!0;k.networkManager.networkStatusHint&&k.getBooleanFlag&&k.getBooleanFlag("vss_network_hint")&&k.networkManager.networkStatusHint(!0);z(u,B)};
this.sendFn(d.url,d.options,void 0,!0);this.logsStore.set(d,this.databaseToken).then(function(u){d.id=u;W&&k.logsStore.deleteRequest(d.id,k.databaseToken)}).catch(function(u){Bl1(k,u)})}else this.sendFn(A,H,void 0,!0)};
_.q.throttledSend=function(){var A=this;if(!Wo(this))throw Error("dd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var H;return _.e(function(k){if(k.nextAddress==1)return k.yield(A.logsStore.getMostRecentByStatus("NEW",A.databaseToken),2);if(k.nextAddress!=3)return H=k.yieldResult,H?k.yield(A.immediateSend(H),3):(A.cancelThrottledSend(),k.return());A.intervalJob&&(A.intervalJob=0,A.throttledSend());_.EN(k)})},this.throttleTimeout))};
_.q.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.q.immediateSend=function(A){var H=this,k;return _.e(function(d){switch(d.nextAddress){case 1:if(!Wo(H))throw Error("ed");if(A.id===void 0){d.jumpTo(2);break}return d.yield(H.logsStore.markAsQueued(A.id,H.databaseToken),3);case 3:(k=d.yieldResult)||H.handleWarning(Error("fd"));case 2:if(H.requestWithinAgeLimit(A,H.requestAgeLimitMs)){d.jumpTo(4);break}H.handleWarning(Error("gd"));if(A.id===void 0){d.jumpTo(5);break}return d.yield(H.logsStore.deleteRequest(A.id,H.databaseToken),5);case 5:return d.return();
case 4:A.skipRetry||(A=eFA(H,A));if(!A){d.jumpTo(0);break}if(!A.skipRetry||A.id===void 0){d.jumpTo(8);break}return d.yield(H.logsStore.deleteRequest(A.id,H.databaseToken),8);case 8:H.sendFn(A.url,A.options,!!A.skipRetry),_.EN(d)}})};
var eFA=function(A,H){if(!Wo(A))throw Error("hd");var k=H.options.onError?H.options.onError:function(){};
H.options.onError=function(W,z){var u,B,h,O;return _.e(function(T){switch(T.nextAddress){case 1:u=A7I(z);(B=H3b(z))&&A.getBooleanFlag&&A.getBooleanFlag("web_enable_error_204")&&A.handleError(Error("id"),H.url,z);if(!(A.getBooleanFlag&&A.getBooleanFlag("nwl_consider_error_code")&&u||A.getBooleanFlag&&!A.getBooleanFlag("nwl_consider_error_code")&&A.potentialEsfErrorCounter<=A.potentialEsfErrorLimit)){T.jumpTo(2);break}if(!A.networkManager.sendNetworkCheckRequest){T.jumpTo(3);break}return T.yield(A.networkManager.sendNetworkCheckRequest(),
3);case 3:if(A.networkManager.isNetworkAvailable()){T.jumpTo(2);break}k(W,z);if(!A.getBooleanFlag||!A.getBooleanFlag("nwl_consider_error_code")||((h=H)==null?void 0:h.id)===void 0){T.jumpTo(6);break}return T.yield(A.logsStore.resetRequest(H.id,A.databaseToken,!1),6);case 6:return T.return();case 2:if(A.getBooleanFlag&&A.getBooleanFlag("nwl_consider_error_code")&&!u&&A.potentialEsfErrorCounter>A.potentialEsfErrorLimit)return T.return();A.potentialEsfErrorCounter++;if(((O=H)==null?void 0:O.id)===void 0){T.jumpTo(8);
break}return H.sendCount<A.retryMaxAttempts?T.yield(A.logsStore.resetRequest(H.id,A.databaseToken,!0,B?!1:void 0),12):T.yield(A.logsStore.deleteRequest(H.id,A.databaseToken),8);case 12:A.jobManager.addLowPriorityJob(function(){A.networkManager.isNetworkAvailable()&&A.throttledSend()},A.retryDelayMs);
case 8:k(W,z),_.EN(T)}})};
var d=H.options.onSuccess?H.options.onSuccess:function(){};
H.options.onSuccess=function(W,z){var u;return _.e(function(B){if(B.nextAddress==1)return((u=H)==null?void 0:u.id)===void 0?B.jumpTo(2):B.yield(A.logsStore.deleteRequest(H.id,A.databaseToken),2);A.networkManager.networkStatusHint&&A.getBooleanFlag&&A.getBooleanFlag("vss_network_hint")&&A.networkManager.networkStatusHint(!0);d(W,z);_.EN(B)})};
return H};
zt.prototype.requestWithinAgeLimit=function(A,H){A=A.timestamp;return this.now()-A>=H?!1:!0};
zt.prototype.retryQueuedRequests=function(){var A=this;if(!Wo(this))throw Error("jd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(H){H&&!A.requestWithinAgeLimit(H,A.queuedRequestAgeLimitMs)?A.jobManager.addLowPriorityJob(function(){return _.e(function(k){if(k.nextAddress==1)return H.id===void 0?k.jumpTo(2):k.yield(A.logsStore.resetRequest(H.id,A.databaseToken),2);A.retryQueuedRequests();_.EN(k)})}):A.networkManager.isNetworkAvailable()&&A.throttledSend()})};
var Bl1=function(A,H){A.writeError&&!A.networkManager.isNetworkAvailable()?A.writeError(H):A.handleError(H)},Wo=function(A){return!!A.databaseToken||A.bypassDbTokenDependency};var syI;var uBA={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,tvhtml5DeviceStorageStats:535,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,dnaRecapScreenshotEvent:534,
mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539};var xmZ={},xtm=fG("ServiceWorkerLogsDatabase",{objectStores:(xmZ.SWHealthLog={addedAtVersion:1},xmZ),shared:!0,upgrade:function(A,H){H(1)&&K5(C5(A,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var g5X={},J7v=0;var y7A;var qr=function(A){_.Is.call(this);var H=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=A!=null?A:{addLowPriorityJob:function(W,z){return setTimeout(W,z)},
cancelJob:function(W){clearTimeout(W)}};
var k,d;this.isOnline=(d=(k=window.navigator)==null?void 0:k.onLine)!=null?d:!0;this.onNavigatorChange=function(){return _.e(function(W){return W.yield(imw(H),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||hFi(this)};
_.I(qr,_.Is);qr.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete qr.instance};
qr.prototype.isNetworkAvailable=function(){return this.isOnline};
var hFi=function(A){A.pollingJob=A.jobManager.addLowPriorityJob(function(){var H;return _.e(function(k){if(k.nextAddress==1)return A.isOnline?((H=window.navigator)==null?0:H.onLine)?k.jumpTo(3):k.yield(imw(A),3):k.yield(imw(A),3);hFi(A);_.EN(k)})},3E4)},imw=function(A,H){return A.networkRequestPromise?A.networkRequestPromise:A.networkRequestPromise=new Promise(function(k){var d,W,z,u;
return _.e(function(B){switch(B.nextAddress){case 1:return d=window.AbortController?new window.AbortController:void 0,z=(W=d)==null?void 0:W.signal,u=!1,_.S_(B,2,3),d&&(A.abortTimeoutKey=A.jobManager.addLowPriorityJob(function(){d.abort()},H||2E4)),B.yield(fetch("/generate_204",{method:"HEAD",
signal:z}),5);case 5:u=!0;case 3:_.KV(B);A.networkRequestPromise=void 0;A.abortTimeoutKey&&(A.jobManager.cancelJob(A.abortTimeoutKey),A.abortTimeoutKey=0);u!==A.isOnline&&(A.isOnline=u,A.isOnline?A.dispatchEvent("networkstatus-online"):A.dispatchEvent("networkstatus-offline"));k(u);_.QA(B,0);break;case 2:_.VA(B),u=!1,B.jumpTo(3)}})})};var r6=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},OmZ=function(){if(!r6.instance){var A=_.UD("yt.networkRequestMonitor.instance")||new r6;
_.nG("yt.networkRequestMonitor.instance",A);r6.instance=A}return r6.instance};
r6.prototype.requestComplete=function(A,H){H&&(this.anyRequestHasSucceeded=!0);A=this.removeParams(A);this.requestMap.get(A)||this.requestMap.set(A,H)};
r6.prototype.isEndpointCFR=function(A){A=this.removeParams(A);return(A=this.requestMap.get(A))?!1:A===!1&&this.anyRequestHasSucceeded?!0:null};
r6.prototype.removeParams=function(A){return A.split("?")[0]};
r6.prototype.removeParams=r6.prototype.removeParams;r6.prototype.isEndpointCFR=r6.prototype.isEndpointCFR;r6.prototype.requestComplete=r6.prototype.requestComplete;r6.getInstance=OmZ;var uG=function(){_.Is.call(this);var A=this;this.shouldFlushErrors=!1;qr.instance||(qr.instance=new qr(_.IE));this.sharedNetworkStatusManager=qr.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(A.shouldFlushErrors&&_.b("offline_error_handling")){var H=jyf().get("errors",!0);if(H){for(var k in H)if(H[k]){var d=new _.Ti(k,"sent via offline_errors");d.name=H[k].name;d.stack=H[k].stack;d.level=H[k].level;_.V$(d)}jyf().set("errors",{},2592E3,!0)}}})};
_.I(uG,_.Is);var RFw=function(){if(!uG.instance){var A=_.UD("yt.networkStatusManager.instance")||new uG;_.nG("yt.networkStatusManager.instance",A);uG.instance=A}return uG.instance};
_.q=uG.prototype;_.q.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.q.networkStatusHint=function(A){this.sharedNetworkStatusManager.isOnline=A};
_.q.getWindowStatus=function(){var A=window.navigator.onLine;return A===void 0?!0:A};
_.q.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.q.listen=function(A,H){return this.sharedNetworkStatusManager.listen(A,H)};
_.q.sendNetworkCheckRequest=function(A){return imw(this.sharedNetworkStatusManager,A)};
uG.prototype.sendNetworkCheckRequest=uG.prototype.sendNetworkCheckRequest;uG.prototype.listen=uG.prototype.listen;uG.prototype.enableErrorFlushing=uG.prototype.enableErrorFlushing;uG.prototype.getWindowStatus=uG.prototype.getWindowStatus;uG.prototype.networkStatusHint=uG.prototype.networkStatusHint;uG.prototype.isNetworkAvailable=uG.prototype.isNetworkAvailable;uG.getInstance=RFw;_.Qv=function(A){A=A===void 0?{}:A;_.Is.call(this);var H=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=RFw();var k=_.UD("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);k&&(A.rateLimit?(this.rateLimit=A.rateLimit,k("networkstatus-online",function(){Tlk(H,"publicytnetworkstatus-online")}),k("networkstatus-offline",function(){Tlk(H,"publicytnetworkstatus-offline")})):(k("networkstatus-online",function(){H.dispatchEvent("publicytnetworkstatus-online")}),k("networkstatus-offline",
function(){H.dispatchEvent("publicytnetworkstatus-offline")})))};
_.I(_.Qv,_.Is);_.Qv.prototype.isNetworkAvailable=function(){var A=_.UD("yt.networkStatusManager.instance.isNetworkAvailable");return A?A.bind(this.nsmInstance)():!0};
_.Qv.prototype.networkStatusHint=function(A){var H=_.UD("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);H&&H(A)};
_.Qv.prototype.sendNetworkCheckRequest=function(A){var H=this,k;return _.e(function(d){k=_.UD("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(H.nsmInstance);return _.b("skip_network_check_if_cfr")&&OmZ().isEndpointCFR("generate_204")?d.return(new Promise(function(W){var z;H.networkStatusHint(((z=window.navigator)==null?void 0:z.onLine)||!0);W(H.isNetworkAvailable())})):k?d.return(k(A)):d.return(!0)})};
var Tlk=function(A,H){A.rateLimit?A.lastJobTime?(_.IE.cancelJob(A.schedulerJob),A.schedulerJob=_.IE.addLowPriorityJob(function(){A.lastPublicSignalSent!==H&&(A.dispatchEvent(H),A.lastPublicSignalSent=H,A.lastJobTime=(0,_.w2)())},A.rateLimit-((0,_.w2)()-A.lastJobTime))):(A.dispatchEvent(H),A.lastPublicSignalSent=H,A.lastJobTime=(0,_.w2)()):A.dispatchEvent(H)};var GAr,Bo=function(){zt.call(this,{logsStore:{cleanLogsStore:BbX,deleteRequest:ucb,getMostRecentByStatus:zS8,markAsQueued:qRI,resetRequest:r7X,set:WuV},networkManager:_.Fum(),handleError:function(A,H,k){var d,W=k==null?void 0:(d=k.error)==null?void 0:d.code;if(W===400||W===415){var z;A=new _.Ti(A.message,H,k==null?void 0:(z=k.error)==null?void 0:z.code);_.lt(A,void 0,void 0,void 0,!0)}else _.V$(A)},
handleWarning:_.lt,sendFn:YRC,now:_.w2,writeError:IfN,jobManager:_.iA(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.H5("potential_esf_error_limit",10),getBooleanFlag:_.b,disableYtIdbTransactions:!(_.RP()&&_.X88())});this.initializationPromise=new _.lk;_.b("networkless_immediately_drop_all_requests")&&eSW();sl8("LogsDatabaseV2")};
_.I(Bo,zt);_.Jrw=function(){var A=_.UD("yt.networklessRequestController.instance");A||(A=new Bo,_.nG("yt.networklessRequestController.instance",A),_.b("networkless_logging")&&_.Zq().then(function(H){A.databaseToken=H;u3J(A);A.initializationPromise.resolve();A.enableCleaning&&Math.random()<=A.cleaningRate&&A.databaseToken&&hSQ(A.databaseToken);_.b("networkless_immediately_drop_sw_health_store")&&mmA(A)}));
return A};
Bo.prototype.writeThenSend=function(A,H){H||(H={});H=PcI(A,H);_.RP()||(this.initialized=!1);zt.prototype.writeThenSend.call(this,A,H)};
Bo.prototype.sendThenWrite=function(A,H,k){H||(H={});H=PcI(A,H);_.RP()||(this.initialized=!1);zt.prototype.sendThenWrite.call(this,A,H,k)};
Bo.prototype.sendAndWrite=function(A,H){H||(H={});H=PcI(A,H);_.RP()||(this.initialized=!1);zt.prototype.sendAndWrite.call(this,A,H)};
Bo.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var mmA=function(A){var H;_.e(function(k){if(!A.databaseToken)throw H=Si("clearSWHealthLogsDb"),H;return k.return(O3m(A.databaseToken).catch(function(d){A.handleError(d)}))})};_.SRl=!1;_.Dtb=_.k8.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.SRl};_.nG("ytNetworklessLoggingInitializationOptions",_.Dtb);var vq=function(A){var H=this;this.config_=null;A?this.config_=A:eYv()&&(this.config_=_.$6());_.ma(_.IE,function(){$0f(H)},5E3)};
vq.prototype.isReady=function(){!this.config_&&eYv()&&(this.config_=_.$6());return!!this.config_};
var o9W=function(A,H,k,d){!_.pZ("VISITOR_DATA")&&H!=="visitor_id"&&Math.random()<.01&&_.lt(new _.Ti("Missing VISITOR_DATA when sending innertube request.",H,k,d));if(!A.isReady()){var W=new _.Ti("innertube xhrclient not ready",H,k,d);_.V$(W);throw W;}var z={headers:d.headers||{},method:"POST",postParams:k,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(m,J){if(d.onSuccess)d.onSuccess(J)},
onFetchSuccess:function(m){if(d.onSuccess)d.onSuccess(m)},
onProgress:function(m){if(d.onProgress)d.onProgress(m)},
onError:function(m,J){if(d.onError)d.onError(J)},
onFetchError:function(m){if(d.onError)d.onError(m)},
timeout:d.timeout,withCredentials:!0,compress:d.compress};z.headers["Content-Type"]||(z.headers["Content-Type"]="application/json");var u="";(W=A.config_.innertubeHostOverride)&&(u=W);var B=A.config_.innertubeUseThirdPartyAuth||!1,h=_.YJf(B,u,d);Object.assign(z.headers,h);z.headers.Authorization&&!u&&B&&(z.headers["x-origin"]=window.location.origin);var O=_.nZ(u+("/youtubei/"+A.config_.innertubeApiVersion+"/"+H),{alt:"json"}),T=function(m){m=m===void 0?!1:m;var J;if(d.retry&&u!="www.youtube-nocookie.com"&&
(m||_.b("skip_ls_gel_retry")||z.headers["Content-Type"]!=="application/json"||(J=fSQ(H,k,h,B)),J)){var g=z.onSuccess,v=z.onFetchSuccess;z.onSuccess=function(D,K){wWW(J);g(D,K)};
k.onFetchSuccess=function(D,K){wWW(J);v(D,K)}}try{if(m&&d.retry&&!d.networklessOptions.bypassNetworkless)z.method="POST",d.networklessOptions.writeThenSend?_.Jrw().writeThenSend(O,z):_.Jrw().sendAndWrite(O,z);
else if(d.compress){var y=!d.networklessOptions.writeThenSend;if(z.postBody){var X=z.postBody;typeof X!=="string"&&(X=JSON.stringify(z.postBody));QOI(O,X,z,_.uC,y)}else QOI(O,JSON.stringify(z.postParams),z,nBb,y)}else nBb(O,z)}catch(D){if(D.name==="InvalidAccessError")J&&(wWW(J),J=0),_.lt(Error("kd"));else throw D;}J&&_.ma(_.IE,function(){$0f(A)},5E3)};
_.CcX()?nuQ().then(function(m){T(m)}):T(!1)};var DEI=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(DEI,_.OW);var gup=0,afl=_.HN?"webkit":_.s3?"moz":_.n6?"ms":OLN?"o":"";_.nG("ytDomDomGetNextId",_.UD("ytDomDomGetNextId")||function(){return++gup});var bmA={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},tf=function(A){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(A=
A||window.event){this.event=A;for(var H in A)H in bmA||(this[H]=A[H]);this.scale=A.scale;this.rotation=A.rotation;var k=A.target||A.srcElement;k&&k.nodeType==3&&(k=k.parentNode);this.target=k;var d=A.relatedTarget;if(d)try{d=d.nodeName?d:null}catch(W){d=null}else this.type=="mouseover"?d=A.fromElement:this.type=="mouseout"&&(d=A.toElement);this.relatedTarget=d;this.clientX=A.clientX!=void 0?A.clientX:A.pageX;this.clientY=A.clientY!=void 0?A.clientY:A.pageY;this.keyCode=A.keyCode?A.keyCode:A.which;
this.charCode=A.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=A.altKey;this.ctrlKey=A.ctrlKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.pageX_=A.pageX;this.pageY_=A.pageY}}catch(W){}},LjA=function(A){if(document.body&&document.documentElement){var H=document.body.scrollTop+document.documentElement.scrollTop;
A.pageX_=A.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);A.pageY_=A.clientY+H}};
tf.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
tf.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
tf.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var lZ=_.k8.ytEventsEventsListeners||{};_.nG("ytEventsEventsListeners",lZ);var Utm=_.k8.ytEventsEventsCounter||{count:0};_.nG("ytEventsEventsCounter",Utm);var lf8=_.iP(function(){var A=!1;try{var H=Object.defineProperty({},"capture",{get:function(){A=!0}});
window.addEventListener("test",null,H)}catch(k){}return A});_.EK(MG,_.dF);MG.prototype.onMouseMove_=function(A){A.pageX_===void 0&&LjA(A);var H=A.pageX_;A.pageY_===void 0&&LjA(A);this.position_=new _.Ft(H,A.pageY_)};
MG.prototype.checkPosition_=function(){if(this.position_){var A=(0,_.w2)();if(this.previousTime_!=0){var H=this.previousPosition_,k=this.position_,d=H.x-k.x;H=H.y-k.y;d=Math.sqrt(d*d+H*H)/(A-this.previousTime_);this.cycles_[this.index_]=Math.abs((d-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(k=H=0;k<4;k++)H+=this.cycles_[k]||0;H>=3&&this.callback_();this.previousVelocity_=d}this.previousTime_=A;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
MG.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.twm(this.mouseListenerKey_)};var ffN={};var kVX=new _.Dt("rawColdConfigGroup");var s5N=new _.Dt("rawHotConfigGroup");var vuw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(vuw,_.OW);var XiA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(XiA,_.OW);var Tg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A,500)};
_.I(Tg,_.OW);Tg.prototype.getPayloadCase=function(){return _.qJ(this,yrA)};
Tg.prototype.getContext=function(){return _.Af(this,XiA,33)};
var yrA=[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,536,537,538,539];var fGr=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(fGr,_.OW);var IGC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(IGC,_.OW);IGC.prototype.setVideoId=function(A){return zg(this,1,YtI,Ge(A))};
IGC.prototype.getPlaylistId=function(){return _.o8(this,xJ(this,YtI,2))};
var YtI=[1,2];var qV=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(qV,_.OW);qV.prototype.getContext=function(){return _.Af(this,r_,1)};
qV.prototype.getTier=function(){return _.RX(this,7)};
qV.prototype.getRetryCount=function(){return _.QJ(this,11)};var jck,we,oE;jck=_.k8.ytPubsubPubsubInstance||new _.B5;we=_.k8.ytPubsubPubsubSubscribedKeys||{};oE=_.k8.ytPubsubPubsubTopicToKeys||{};_.w8b=_.k8.ytPubsubPubsubIsSynchronous||{};_.B5.prototype.subscribe=_.B5.prototype.subscribe;_.B5.prototype.unsubscribeByKey=_.B5.prototype.unsubscribeByKey;_.B5.prototype.publish=_.B5.prototype.publish;_.B5.prototype.clear=_.B5.prototype.clear;_.nG("ytPubsubPubsubInstance",jck);_.nG("ytPubsubPubsubTopicToKeys",oE);_.nG("ytPubsubPubsubIsSynchronous",_.w8b);
_.nG("ytPubsubPubsubSubscribedKeys",we);var Ab=window;var eJ=_.b("web_enable_lifecycle_monitoring")&&s9b()!==0,Iup=_.b("web_enable_lifecycle_monitoring");var YA1=function(A){var H=this;var k=k===void 0?0:k;var d=d===void 0?_.iA():d;this.JSC$11208_defaultPriority=k;this.scheduler=d;this.completedResolver=new _.lk;this.scheduledPayloads=A;for(A={i$jscomp$496:0};A.i$jscomp$496<this.scheduledPayloads.length;A={payload$jscomp$20:void 0,i$jscomp$496:A.i$jscomp$496},A.i$jscomp$496++)A.payload$jscomp$20=this.scheduledPayloads[A.i$jscomp$496],k=function(W){return function(){W.payload$jscomp$20.job();H.scheduledPayloads[W.i$jscomp$496].processed=!0;H.scheduledPayloads.every(function(z){return z.processed===
!0})&&H.completedResolver.resolve()}}(A),d=this.getPriority(A.payload$jscomp$20),d=this.scheduler.addJob(k,d),this.scheduledPayloads[A.i$jscomp$496]=Object.assign({},A.payload$jscomp$20,{job:k,
jobId:d})};
YA1.prototype.flushJobs=function(){var A=this,H=Array.from(this.scheduledPayloads.keys()).sort(function(d,W){return A.getPriority(A.scheduledPayloads[W])-A.getPriority(A.scheduledPayloads[d])});
H=_.r(H);for(var k=H.next();!k.done;k=H.next())k=this.scheduledPayloads[k.value],k.jobId===void 0||k.processed||(this.scheduler.cancelJob(k.jobId),this.scheduler.addJob(k.job,10))};
YA1.prototype.cancel=function(){for(var A=_.r(this.scheduledPayloads),H=A.next();!H.done;H=A.next())H=H.value,H.jobId===void 0||H.processed||this.scheduler.cancelJob(H.jobId),H.processed=!0;this.completedResolver.resolve()};
YA1.prototype.getPriority=function(A){var H;return(H=A.priority)!=null?H:this.JSC$11208_defaultPriority};var xs=function(A){this.state=A;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};eJ&&kcX(this.state)};
xs.prototype.install=function(A){this.plugins.push(A);return this};
xs.prototype.uninstall=function(){var A=this;_.o7.apply(0,arguments).forEach(function(H){H=A.plugins.indexOf(H);H>-1&&A.plugins.splice(H,1)})};
xs.prototype.transition=function(A,H){var k=this;eJ&&dNX(this.state);var d=this.transitions.find(function(z){return Array.isArray(z.from)?z.from.find(function(u){return u===k.state&&z.to===A}):z.from===k.state&&z.to===A});
if(d){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Pkp(this,A,H);this.state=A;eJ&&kcX(this.state);d=d.action.bind(this);var W=this.plugins.filter(function(z){return z[A]}).map(function(z){return z[A]});
d(GKN(this,W),H)}else throw Error("ld`"+this.state+"`"+A);};
var GKN=function(A,H){var k=H.filter(function(W){return Fji(A,W)===10}),d=H.filter(function(W){return Fji(A,W)!==10});
return A.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var W=_.o7.apply(0,arguments);return _.e(function(z){if(z.nextAddress==1)return z.yield(A.runImmediateJobsAsync.apply(A,[k].concat(_.fV(W))),2);A.setJobSetWithScheduledJobs.apply(A,[d].concat(_.fV(W)));_.EN(z)})}:function(){var W=_.o7.apply(0,arguments);
A.runImmediateJobsSync.apply(A,[k].concat(_.fV(W)));A.setJobSetWithScheduledJobs.apply(A,[d].concat(_.fV(W)))}};
xs.prototype.runImmediateJobsSync=function(A){var H=_.o7.apply(1,arguments);_.iA();for(var k=_.r(A),d=k.next(),W={};!d.done;W={lifecycle$jscomp$2:void 0},d=k.next())W.lifecycle$jscomp$2=d.value,c8(function(z){return function(){XKZ(z.lifecycle$jscomp$2.name);zR8(function(){return z.lifecycle$jscomp$2.callback.apply(z.lifecycle$jscomp$2,_.fV(H))});
iG(z.lifecycle$jscomp$2.name)}}(W))};
xs.prototype.runImmediateJobsAsync=function(A){var H=_.o7.apply(1,arguments),k,d,W,z;return _.e(function(u){u.nextAddress==1&&(_.iA(),k=_.r(A),d=k.next(),W={});if(u.nextAddress!=3){if(d.done)return u.jumpTo(0);W.lifecycle$jscomp$3=d.value;W.asyncJobCompletion=void 0;z=function(B){return function(){XKZ(B.lifecycle$jscomp$3.name);var h=zR8(function(){return B.lifecycle$jscomp$3.callback.apply(B.lifecycle$jscomp$3,_.fV(H))});
Uiw(h)?B.asyncJobCompletion=_.b("web_lifecycle_error_handling_killswitch")?h.then(function(){iG(B.lifecycle$jscomp$3.name)}):h.then(function(){iG(B.lifecycle$jscomp$3.name)},function(O){W0Q(O);
iG(B.lifecycle$jscomp$3.name)}):iG(B.lifecycle$jscomp$3.name)}}(W);
c8(z);return W.asyncJobCompletion?u.yield(W.asyncJobCompletion,3):u.jumpTo(3)}W={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};d=k.next();return u.jumpTo(2)})};
xs.prototype.setJobSetWithScheduledJobs=function(A){var H=_.o7.apply(1,arguments),k=this,d=A.map(function(W){return{job:function(){XKZ(W.name);zR8(function(){return W.callback.apply(W,_.fV(H))});
iG(W.name)},
priority:Fji(k,W)}});
d.length&&(this.jobSet=new YA1(d))};
var Fji=function(A,H){var k,d;return(d=(k=A.overridePriority)!=null?k:H.priority)!=null?d:0},XKZ=function(A){eJ&&A&&kcX(A)},iG=function(A){eJ&&A&&dNX(A)},Pkp=function(A,H,k){Iup&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+A.constructor.name+"] '"+A.state+"' to '"+H+"'"),console.log("with message: ",k),console.groupEnd())};
_.nP.Object.defineProperties(xs.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Dmp=function(A){xs.call(this,A===void 0?"none":A);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(){}}]},SA1;
_.I(Dmp,xs);Dmp.prototype.runApplicationNavigationBegin=function(A,H){var k=this;this.navigationTimer=_.ma(_.IE,function(){k.currentState==="application_navigating"&&k.transition("none")},5E3);
A(H==null?void 0:H.event)};
Dmp.prototype.runApplicationNavigationEnd=function(A,H){this.navigationTimer&&(_.IE.cancelJob(this.navigationTimer),this.navigationTimer=null);A(H==null?void 0:H.event)};
_.HhC=function(){SA1||(SA1=new Dmp);return SA1};var AcV=[];_.nG("yt.logging.transport.getScrapedGelPayloads",function(){return AcV});var Hq=function(){var A=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return A.totalEntries}}};
Hq.prototype.storePayload=function(A,H){A=qtf(A);this.store[A]?this.store[A].push(H):(this.memoizedKeySequences={},this.store[A]=[H]);this.totalEntries++;_.b("more_accurate_gel_parser")&&(H=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(H));return A};
Hq.prototype.smartExtractMatchingEntries=function(A){if(!A.keys.length)return[];for(var H=CkJ(this,A.keys.splice(0,1)[0]),k=[],d=0;d<H.length;d++)this.store[H[d]]&&A.sizeLimit&&(this.store[H[d]].length<=A.sizeLimit?(k.push.apply(k,_.fV(this.store[H[d]])),delete this.store[H[d]]):k.push.apply(k,_.fV(this.store[H[d]].splice(0,A.sizeLimit))));this.totalEntries-=k.length;(A==null?0:A.sizeLimit)&&k.length<(A==null?void 0:A.sizeLimit)&&(A.sizeLimit-=k.length,k.push.apply(k,_.fV(this.smartExtractMatchingEntries(A))));
return k};
Hq.prototype.extractMatchingEntries=function(A){A=CkJ(this,A);for(var H=[],k=0;k<A.length;k++)this.store[A[k]]&&(H.push.apply(H,_.fV(this.store[A[k]])),delete this.store[A[k]]);this.totalEntries-=H.length;return H};
Hq.prototype.getSequenceCount=function(A){A=CkJ(this,A);for(var H=0,k=0;k<A.length;k++){var d=void 0;H+=((d=this.store[A[k]])==null?void 0:d.length)||0}return H};
var CkJ=function(A,H){var k=qtf(H);if(A.memoizedKeySequences[k])return A.memoizedKeySequences[k];var d=Object.keys(A.store)||[];if(d.length<=1&&qtf(H)===d[0])return d;for(var W=[],z=0;z<d.length;z++){var u=d[z].split("/");if(KjQ(H.auth,u[0])){var B=H.isJspb;KjQ(B===void 0?"undefined":B?"true":"false",u[1])&&KjQ(H.cttAuthInfo,u[2])&&(B=H.tier,B=B===void 0?"undefined":JSON.stringify(B),KjQ(B,u[3])&&W.push(d[z]))}}return A.memoizedKeySequences[k]=W},KjQ=function(A,H){return A===void 0||A==="undefined"?
!0:A===H};
Hq.prototype.getSequenceCount=Hq.prototype.getSequenceCount;Hq.prototype.extractMatchingEntries=Hq.prototype.extractMatchingEntries;Hq.prototype.smartExtractMatchingEntries=Hq.prototype.smartExtractMatchingEntries;Hq.prototype.storePayload=Hq.prototype.storePayload;var zEf=new _.SE("FinchConfigManagerService");var aGQ,CLv,c8r,d_,auA,rc8,qFv,Stm,DNQ,bjI,K0I,oEA,Gcb;aGQ=_.H5("initial_gel_batch_timeout",2E3);CLv=_.H5("gel_queue_timeout_max_ms",6E4);c8r=_.H5("gel_min_batch_size",5);d_=void 0;auA=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
rc8=new auA;qFv=new auA;Stm=new auA;DNQ=new auA;K0I=!0;oEA=1;_.wn8=new Map;Gcb=_.k8.ytLoggingTransportTokensToCttTargetIds_||{};_.nG("ytLoggingTransportTokensToCttTargetIds_",Gcb);var PLI=_.k8.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.nG("ytLoggingTransportTokensToJspbCttTargetIds_",PLI);var kJ={};var bl=_.k8.ytLoggingGelSequenceIdObj_||{};_.nG("ytLoggingGelSequenceIdObj_",bl);var eEv=[];var vHf=new Set,REA=0,IvX=0,j5v=0,mFI=[],T9C=[],YFN=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Vuf=function(){};
Vuf.prototype.getUrl=function(A,H){H=H===void 0?!1:H;return A.hasOwnProperty("shareEndpoint")?null:_.XGN(A,null,H)};
var lzf=function(A,H,k){A={endpoint:H,actions:[]};k=(k.path?k.path[0]:k.target).icon||"";H=k.indexOf(":");H>0&&(k=k.substr(H+1));k&&A.actions.push(k);return A};var ccV=/Command$/,avV=/Endpoint$/,SFQ=new Map;var crA,pKw;crA=1;_.a3=function(){this.actionRoutingMap=new Map};
_.a3.prototype.triggerAction=function(A){var H=new BCQ(A,!1,_.o7.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.a3.prototype.triggerOptionalAction=function(A){var H=new BCQ(A,!0,_.o7.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.h$=function(A,H,k){H.forEach(function(d){var W=K5N(d);W&&A.triggerOptionalAction(W,d,k,void 0)})};
_.a3.prototype.handleAction=function(A){var H=this.actionRoutingMap.get(A.actionName);H&&pKw(A,H);A.optionalAction||A.returnValue.length!==0||(A=new _.Ti("Unhandled action",A.actionName),_.lt(A))};
pKw=function(A,H){H.forEach(function(k){var d=null;k?d=k.apply(null,A.args):(k=Error("md"),k.params=A.actionName,_.V$(k));A.returnValue.push(d)})};
_.cq=function(A,H,k){k||(k=crA++);for(var d=_.r(Object.keys(H)),W=d.next();!W.done;W=d.next()){W=W.value;var z=A.actionRoutingMap.get(W);z||(z=new Map,A.actionRoutingMap.set(W,z));A.registerActionHandler(k,W,H[W],z)}return k};
_.a3.prototype.registerActionHandler=function(A,H,k,d){d.set(A,_.ED(k))};
_.pT=function(A,H,k){H=_.r(Object.keys(H));for(var d=H.next();!d.done;d=H.next())(d=A.actionRoutingMap.get(d.value))&&d.delete(k)};
_.Qj(_.a3);var lvC=function(A,H){var k=_.a3.getInstance();_.CZ(function(){var d={},W=_.cq(k,(d[A]=H,d));_.aV(function(){var z={};_.pT(k,(z[A]="",z),W)})})};l6b=vrr;var W8I=new Set(["For","If","Match","Watch"]),Qc0={},VXZ=(Qc0[Ui.default]=function(){return a6C},Qc0.style=function(){return a6C},Qc0),EuN;
for(EuN in VXZ)si.attributes[EuN]=VXZ[EuN](si.attributes[EuN]);var tb=new _.SE("VISIBILITY_OBSERVER");var OwI={retrieve:function(A){return this.id.\u0275prov.token===A.\u0275prov.token?this.contextValue:this?$3(this,this.id):GZI}};var UmJ=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(A){}var lu1=typeof WeakRef==="function";var tXA=function(A){this.value=A};
tXA.prototype.deref=function(){return this.value};
var NlA=lu1?WeakRef:tXA,MXG=function(A){this.newKeyHandler=A;this.map=new WeakMap};
MXG.prototype.add=function(A,H){this.map.has(A)||(this.newKeyHandler(A),this.map.set(A,[]));this.map.get(A).push(new NlA(H))};
MXG.prototype.get=function(A){var H=this;return function d(){var W,z,u,B,h,O,T,m,J,g,v;return _.fw(d,function(y){switch(y.nextAddress){case 1:_.pV(y,2);W=H.map.get(A);if(!W)return y.return();z=0;u=_.r(W);B=u.next();case 4:if(B.done){y.jumpTo(6);break}h=B.value;O=h.deref();if(!O){y.jumpTo(5);break}z++;T=_.wy;return y.yield(O,8);case 8:T(y.yieldResult);case 5:B=u.next();y.jumpTo(4);break;case 6:if(2*z<W.length){m=0;J=_.r(W);for(g=J.next();!g.done;g=J.next())v=g.value,v.deref()&&(W[m++]=v);W.length=
m}case 2:_.KV(y),_.QA(y,0)}})}()};var nu1=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},bwb=new MXG(function(A){A.addEventListener("abort",vql,{once:!0})}),gqV=new WeakMap,ZmA=function(A){A=A===void 0?O4:A;
this.signal=new A};
ZmA.prototype.abort=function(A){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=A,A=new Event("abort"),this.signal.dispatchEvent(A))};
var O4=function(){this.target=nu1();this.aborted=!1;this.onabort=null};
O4.prototype.throwIfAborted=function(){JvV.call(this)};
O4.prototype.addEventListener=function(A,H,k){this.target.addEventListener(A,H,k)};
O4.prototype.removeEventListener=function(A,H,k){this.target.removeEventListener(A,H,k)};
O4.prototype.dispatchEvent=function(A){if(this.onabort&&A.type==="abort")this.onabort(A);return this.target.dispatchEvent(A)};
O4.abort=mL8;O4.timeout=yvr;O4.any=L88;var TyC=UmJ?AbortController:ZmA,Rn=UmJ?AbortSignal:O4;typeof Rn.abort!=="function"&&(Rn.abort=mL8);typeof Rn.prototype.throwIfAborted!=="function"&&(Rn.prototype.throwIfAborted=JvV);typeof Rn.any!=="function"&&(Rn.any=L88);typeof Rn.timeout!=="function"&&(Rn.timeout=yvr);var MV=null,Ihr=new Map;var fuZ=function(A){A=A.clone();Fb0(A);za(A,"dg",null);za(A,"d","0");Ick(A,null);YZ1(A,null);return A},wKi=!0,ouZ=function(A,H,k){var d=k===void 0?{}:k;
k=d.cssRowKey===void 0?void 0:d.cssRowKey;var W=d.combinedSignature===void 0?void 0:d.combinedSignature;var z=d.extraEdges===void 0?void 0:d.extraEdges;d=d.callback===void 0?void 0:d.callback;za(A,"m",H.join(","));z&&Gbk(A,z);k&&(za(A,"ck",k),W?za(A,"rs",W):wKi&&(wKi=!1));if(d){if(d!=null&&!SZw.test(d))throw Error("Ya`"+d);za(A,"cb",d)}A=A.toString();_.rI(A,"/")&&(A=ZCC(document.location.href)+A);return _.px(A)};var A11=function(A){return $m1(A).then(function(H){return JSON.parse(H.responseText)})},$m1=function(A){var H={},k=H.xmlHttpFactory?H.xmlHttpFactory.createInstance():$Pw.createInstance();
return(new _.Wq(function(d,W){var z;try{k.open("GET",A,!0)}catch(h){W(new Tt("Error opening XHR: "+h.message,A,k))}k.onreadystatechange=function(){if(k.readyState==4){_.k8.clearTimeout(z);var h;!(h=olw(k.status))&&(h=k.status===0)&&(h=MBC(A),h=!(h=="http"||h=="https"||h==""));h?d(k):W(new HFj(k.status,A,k))}};
k.onerror=function(){W(new Tt("Network error",A,k))};
if(H.headers)for(var u in H.headers){var B=H.headers[u];B!=null&&k.setRequestHeader(u,B)}H.withCredentials&&(k.withCredentials=H.withCredentials);H.responseType&&(k.responseType=H.responseType);H.mimeType&&k.overrideMimeType(H.mimeType);H.timeoutMs>0&&(z=_.k8.setTimeout(function(){k.onreadystatechange=function(){};
k.abort();W(new slZ(A,k))},H.timeoutMs));
try{k.send(null)}catch(h){k.onreadystatechange=function(){},_.k8.clearTimeout(z),W(new Tt("Error sending XHR: "+h.message,A,k))}})).thenCatch(function(d){d instanceof _.jY&&k.abort();
throw d;})},Tt=function(A,H,k){_.AA.call(this,A+", url="+H);
this.url=H;this.xhr=k};
_.EK(Tt,_.AA);Tt.prototype.name="XhrError";var HFj=function(A,H,k){Tt.call(this,"Request Failed, status="+A,H,k);this.status=A};
_.EK(HFj,Tt);HFj.prototype.name="XhrHttpError";var slZ=function(A,H){Tt.call(this,"Request timed out",A,H)};
_.EK(slZ,Tt);slZ.prototype.name="XhrTimeoutError";p6=p6||{};var mO=function(){_.dF.call(this)};
_.EK(mO,_.dF);mO.prototype.initialize=function(){};Psm.prototype.execute=function(A){this.fn_&&(this.fn_.call(this.handler_||null,A),this.fn_=this.handler_=null)};
Psm.prototype.abort=function(){this.handler_=this.fn_=null};
p6.ModuleLoadCallback=Psm;_.EK(nT,_.dF);nT.prototype.moduleConstructor_=mO;nT.prototype.module_=null;nT.prototype.getId=function(){return this.JSC$11365_id_};
nT.prototype.registerCallback=function(A,H){return J$(this.onloadCallbacks_,A,H)};
var kDQ=function(A,H){J$(A.onErrorCallbacks_,H)},J$=function(A,H,k){H=new p6.ModuleLoadCallback(H,k);
A.push(H);return H};
nT.prototype.isLoaded=function(){return!!this.module_};
nT.prototype.onLoad=function(A){var H=new this.moduleConstructor_;H.initialize(A());this.module_=H;H=(H=dHi(this.earlyOnloadCallbacks_,A()))||dHi(this.onloadCallbacks_,A());H||(this.onErrorCallbacks_.length=0);return H};
nT.prototype.onError=function(A){(A=dHi(this.onErrorCallbacks_,A))&&dI(Error("sd`"+A));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var dHi=function(A,H){for(var k=[],d=0;d<A.length;d++)try{A[d].execute(H)}catch(W){dI(W),k.push(W)}A.length=0;return k.length?k:null};
nT.prototype.disposeInternal=function(){nT.superClass_.disposeInternal.call(this);_.CC(this.module_)};
p6.ModuleInfo=nT;var WHG,eYQ,u_N,B4A,qJZ,r1w,RYw,hYj,OFp;
_.o3=function(A,H,k,d,W){d=d===void 0?!1:d;W=W===void 0?!1:W;var z=z===void 0?!0:z;this.scsReferenceUrl_=HTV(_.QB(A).toString(),z);this.cssRowKey_=H;this.combinedSignature_=k;this.useNegativeLoading_=d;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(A=WF(this.scsReferenceUrl_,"excm"))?A.split(","):[];this.shouldScanForCss_=W;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;s3l();_.g6(this,PoA(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
WHG=function(A,H){if(H.href||H.getAttribute("data-href"))if(H=H.href||H.getAttribute("data-href"),wLN(H)&&!HTV(H).urlPrefix_.endsWith("_/js/")){H=PoA(HTV(H));H=_.r(H);for(var k=H.next();!k.done;k=H.next())k=k.value,A.loadedCssModuleList_.includes(k)||A.loadedCssModuleList_.push(k)}};
_.o3.prototype.loadModules=function(A,H,k){var d=k===void 0?{}:k;H=d.extraEdges;k=d.onError;var W=d.onSuccess;d=d.forceReload;if(!A)throw Error("td");if(this.shouldScanForCss_){for(var z=_.r(document.getElementsByTagName("style")),u=z.next();!u.done;u=z.next())WHG(this,u.value);z=_.r(document.getElementsByTagName("link"));for(u=z.next();!u.done;u=z.next())WHG(this,u.value)}zYk(this,qJZ(this,A),H,k,W,d)};
var zYk=function(A,H,k,d,W,z){d=d===void 0?function(){}:d;
W=W===void 0?function(){}:W;
z=z===void 0?!1:z;r1w(A,H,function(u,B,h){h=h===void 0?B:h;A.enableFallbackFetch&&z?A.loadWithFetch(u,B,d,W,h):A.load(u,B,d,W,h,k)},k)||d(-1)};
_.o3.prototype.loadWithFetch=function(){_.e(function(){throw Error("ud");})};
_.o3.prototype.maybeSetAdditionalFields=function(){};
eYQ=function(A,H,k){if(A.useNegativeLoading_){var d=A.scsReferenceUrl_;A={cssRowKey:A.cssRowKey_,combinedSignature:A.combinedSignature_,extraEdges:k,requestedModuleIds:u_N(A),requestedCssModuleIds:B4A(A)};var W=A===void 0?{}:A;A=W.requestedModuleIds===void 0?[]:W.requestedModuleIds;k=W.requestedCssModuleIds===void 0?[]:W.requestedCssModuleIds;var z=W.cssRowKey===void 0?void 0:W.cssRowKey;var u=W.combinedSignature===void 0?void 0:W.combinedSignature;var B=W.extraEdges===void 0?void 0:W.extraEdges;
W=W.callback===void 0?void 0:W.callback;d=fuZ(d);za(d,"d","1");Ick(d,A);YZ1(d,k);H=ouZ(d,H,{cssRowKey:z,combinedSignature:u,extraEdges:B,callback:W})}else d=A.scsReferenceUrl_,A={cssRowKey:A.cssRowKey_,combinedSignature:A.combinedSignature_,requestedModuleIds:u_N(A),requestedCssModuleIds:B4A(A)},B=A===void 0?{}:A,A=B.requestedCssModuleIds===void 0?[]:B.requestedCssModuleIds,k=B.cssRowKey===void 0?void 0:B.cssRowKey,z=B.combinedSignature===void 0?void 0:B.combinedSignature,u=B.extraEdges===void 0?
void 0:B.extraEdges,B=B.callback===void 0?void 0:B.callback,d=fuZ(d),YZ1(d,A),H=ouZ(d,H,{cssRowKey:k,combinedSignature:z,extraEdges:u,callback:B});return H};
_.g6=function(A,H){for(var k=!1,d=[],W=0;W<H.length;++W){var z=H[W];A.requestedModuleMap_[z]||(A.requestedModuleMap_[z]=!0,A.requestedModuleList_.push(z),k=!0,d.push(z))}k&&(A.requestedModuleListSorted_=!1)};
_.bG=function(A,H){for(var k=[],d=0;d<H.length;++d){var W=H[d];A.requestedModuleMap_[W]&&(delete A.requestedModuleMap_[W],_.EC(A.requestedModuleList_,W),k.push(W))}};
_.o3.prototype.load=function(A,H,k,d,W){W=W===void 0?H:W;_.QB(A);var z=this.useCors_,u=this.corsMode_,B=this.fetchPriority,h=_.$g("SCRIPT");_.h2(h,A);z&&(h.crossOrigin=u);h.async=!1;B&&h.setAttribute("fetchpriority",B);_.g6(this,H);_.xHw(this,A,h,H,k,d,W)};
_.xHw=function(A,H,k,d,W,z,u){u=u===void 0?d:u;A.lastScript_=k;A.insertPos.insertBefore(k,A.insertPos.firstChild);_.iFA(k,d,function(){k.parentElement.removeChild(k);A.lastScript_==k&&(A.lastScript_=null);z()},function(B){k.parentElement.removeChild(k);
A.lastScript_==k&&(A.lastScript_=null);_.bG(A,B);A.pendingModuleGraphUpdate_?A.pendingModuleGraphUpdate_.then(function(){W(-1,H)}):W(-1,H)},u)};
_.iFA=function(A,H,k,d,W){W=W===void 0?H:W;var z=H.length,u=function(){z=0;A.onload=null;A.onerror=null;B=function(){}},B=function(){u();
var O=W.filter(function(T){return!b5().getModuleInfo(T).isLoaded()});
O.length!==0?d(O,"Response was successful but was missing module(s) "+O+"."):k()},h=function(){z--;
z==0&&B()};
H.forEach(function(O){O=b5().getModuleInfo(O);O.isLoaded()?h():(J$(O.earlyOnloadCallbacks_,h),kDQ(O,h))});
A.onload=function(){return B()};
A.onerror=function(){u();d(H)}};
u_N=function(A){A.requestedModuleListSorted_||(A.requestedModuleListSorted_=!0,A.requestedModuleList_.sort());return A.requestedModuleList_};
B4A=function(A){A=A.loadedCssModuleList_;A.sort();return A};
qJZ=function(A,H){return H.filter(function(k){return!A.requestedModuleMap_[k]})};
r1w=function(A,H,k,d){if(A.pendingModuleGraphUpdate_)return A.pendingModuleGraphUpdate_.then(function(){r1w(A,H,k,d)}),!0;
if(!A.useNegativeLoading_){var W=[],z=Object.assign({},A.requestedModuleMap_);hYj(A,H,function(T){W.push(T.getId())},d,function(T){return!T.isLoaded()},z);
H=W}for(z=0;z<H.length;){for(var u=H.length-z,B=z==0?H:H.slice(z,H.length),h=eYQ(A,B,d),O=_.QB(h).toString();O.length>A.urlMaxLength;)if(u>1)u-=Math.ceil((O.length-A.urlMaxLength)/6),u=Math.max(u,1),B=H.slice(z,z+u),h=eYQ(A,B,d),O=_.QB(h).toString();else return A.useNegativeLoading_?(A.useNegativeLoading_=!1,A.pendingModuleGraphUpdate_=OFp(A).then(function(T){RYw(A,T,d)}),r1w(A,H.slice(z),k,d)):!1;
z+=u;A.useNegativeLoading_?k(h,B):k(h,B,z===H.length?H:[])}return!0};
RYw=function(A,H,k){b5().setAllModuleInfoString((H||{}).moduleGraph);hYj(A,u_N(A),function(d){_.g6(A,[d.getId()])},k);
A.pendingModuleGraphUpdate_=null};
hYj=function(A,H,k,d,W,z){z=z===void 0?{}:z;var u=b5();H=_.r(H);for(var B=H.next();!B.done;B=H.next()){B=B.value;var h=u.getModuleInfo(B);if(!(z[B]||W&&!W(h))){z[B]=!0;var O=h.deps_||[];if(d){var T=[];d[B]&&(T=Object.keys(d[B]));O=O.concat(T)}hYj(A,O,k,d,W,z);k(h)}}};
OFp=function(A){A=A.scsReferenceUrl_.clone();Fb0(A);za(A,"dg",null);za(A,"md","1");return A11(A.toString())};var GFb=new Uint8Array(123);var T4Z=[];var mH1=function(){this.JSC$10368_loader_=null};
_.q=mH1.prototype;_.q.setBatchModeEnabled=function(){};
_.q.setAllModuleInfoString=function(){};
_.q.addExtraEdge=function(){throw Error("vd");};
_.q.removeExtraEdge=function(){throw Error("wd");};
_.q.getModuleContext=function(){return null};
_.q.isActive=function(){return!1};
_.q.isUserActive=function(){return!1};
_.q.registerInitializationCallback=function(){};
_.q.registerCallback=function(){};var Li=function(A,H,k,d,W){var z=Error.call(this);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.name="ModuleLoadFailure";this.type=A;this.status=H;this.requestedModuleIds=k;this.url=d;this.cause=W;this.message=this.toString()};
_.I(Li,Error);Li.prototype.toString=function(){return J1j(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var J1j=function(A){switch(A.type){case Li.Type.UNAUTHORIZED:return"Unauthorized";case Li.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Li.Type.TIMEOUT:return"Timed out";case Li.Type.OLD_CODE_GONE:return"Out of date module id";case Li.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+A.type}};
p6.ModuleLoadFailure=Li;p6.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var vo=function(){this.moduleIds_=this.JSC$10368_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11383_extraEdges_={};this.JSC$11383_callbackMap_={};this.JSC$11383_currentlyLoadingModule_=this.baseModuleInfo_=new p6.ModuleInfo([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new ev;this.isDisposed_=this.userLastActive_=this.lastActive_=
this.batchModeEnabled_=!1};
_.EK(vo,mH1);var gIZ=function(A,H){_.AA.call(this,"Error loading "+A+": "+H)};
_.EK(gIZ,_.AA);vo.prototype.setBatchModeEnabled=function(A){this.batchModeEnabled_=A};
vo.prototype.setAllModuleInfoString=function(A,H){if(!(this instanceof vo))this.setAllModuleInfoString(A,H);else if(typeof A==="string"){if(A.startsWith("d$")){A=A.substring(2);for(var k=[],d=0,W=A.indexOf("/"),z=0,u=!1,B=0;;){var h=u?A.substring(z):A.substring(z,W);if(h.length===0)d++,z="sy"+d.toString(36),h=[];else{var O=h.indexOf(":");if(O<0)z=h,h=[];else if(O===h.length-1)z=h.substring(0,O),h=Array(k[B-1]);else{z=h.substring(0,O);h=h.substring(O+1).split(",");O=B;for(var T=0;T<h.length;T++)O-=
h[T].length===0?1:Number(h[T]),h[T]=k[O]}O=0;if(z.length===0)O=1;else if(z.charAt(0)==="+"||z.charAt(0)==="-")O=Number(z);O!==0&&(d+=O,z="sy"+d.toString(36))}k.push(z);bFi(this,z,h);if(u)break;z=W+1;W=A.indexOf("/",z);W===-1&&(u=!0);B++}this.moduleIds_=k}else if(A.startsWith("p$"))LHw(this,A);else{A=A.split("/");k=[];for(d=0;d<A.length;d++){B=A[d].split(":");W=B[0];u=[];if(B[1])for(u=B[1].split(","),B=0;B<u.length;B++)u[B]=k[parseInt(u[B],36)];k.push(W);bFi(this,W,u)}this.moduleIds_=k}H&&H.length?
(_.Mv(this.loadingModuleIds_,H),this.lastInitialModuleId_=_.DQ(H)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11383_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11383_currentlyLoadingModule_=null,(H=this.baseModuleInfo_.onLoad((0,_.WT)(this.getModuleContext,this)))&&H.length&&vI0(this,new p6.ModuleLoadFailure(p6.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,H[0])),y8(this))}};
var LHw=function(A,H){var k=H.substring(2);for(H=0;H<64;H++)GFb["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(H)]=H;var d={buf:k,pos:0};Z7(d);var W=Z7(d),z=Z7(d)+1;H=Array(W);var u=Array(W),B=Array(W);z=Array(z);var h=0,O=0,T=d.pos,m=d.buf.indexOf("|",d.pos);d.pos=m+1;for(m=0;m<W;m++){var J=Z7(d),g=J&2,v=J&1;J>>>=2;v?(h+=J>>>1^-(J&1),J="sy"+h.toString(36)):(v=T,T+=J,J=k.substring(v,T));H[m]=J;g&&(z[O++]=J)}z[O]="";d.pos++;O=W&-2;k=W&1;for(h=0;h<O;h+=2)T=F8N(d),B[h]=
T&7,B[h+1]=T>>>3&7;k&&(k=F8N(d),B[O]=k&7);d.pos++;for(O=0;O<W;O++)B[O]===7&&(B[O]=Z7(d));d.pos++;for(k=O=0;k<W;k++){h=B[k];T=h===0?T4Z:Array(h);u[k]=T;m=O;for(g=0;g<h;g++)m-=Z7(d),T[g]=z[m];z[O]===H[k]&&O++}for(d=0;d<H.length;d++)bFi(A,H[d],u[d]);A.moduleIds_=H};
_.q=vo.prototype;_.q.getModuleInfo=function(A){return this.moduleInfoMap[A]};
_.q.addExtraEdge=function(A,H){var k=this.getModuleInfo(A);k&&k.isLoaded()?this.load(H):(this.JSC$11383_extraEdges_[A]||(this.JSC$11383_extraEdges_[A]={}),this.JSC$11383_extraEdges_[A][H]=!0)};
_.q.removeExtraEdge=function(A,H){if(this.JSC$11383_extraEdges_[A]){delete this.JSC$11383_extraEdges_[A][H];for(var k in this.JSC$11383_extraEdges_[A])return;delete this.JSC$11383_extraEdges_[A]}};
_.q.isActive=function(){return this.loadingModuleIds_.length>0};
_.q.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var y8=function(A){var H=A.lastActive_,k=A.isActive();k!=H&&(A.executeCallbacks_(k?"active":"idle"),A.lastActive_=k);H=A.isUserActive();H!=A.userLastActive_&&(A.executeCallbacks_(H?"userActive":"userIdle"),A.userLastActive_=H)},bFi=function(A,H,k){A.moduleInfoMap[H]?(A=A.moduleInfoMap[H].deps_,A!=k&&A.splice.apply(A,[0,
A.length].concat(_.fV(k)))):A.moduleInfoMap[H]=new p6.ModuleInfo(k,H)},jlN=function(A,H,k){var d=[];
CIV(H,d);H=[];for(var W={},z=0;z<d.length;z++){var u=d[z],B=A.getModuleInfo(u);if(!B)throw Error("xd`"+u);var h=new ev;W[u]=h;B.isLoaded()?h.callback(null):(y1A(A,u,B,!!k,h),A.isModuleLoading(u)||H.push(u))}H.length>0&&(A.loadingModuleIds_.length===0?A.loadModules_(H):(A.requestedModuleIdsQueue_.push(H),y8(A)));return W},y1A=function(A,H,k,d,W){k.registerCallback(W.callback,W);
kDQ(k,function(z){W.errback(new gIZ(H,z))});
A.isModuleLoading(H)?d&&(Iew(A,H),y8(A)):d&&Iew(A,H)};
vo.prototype.loadModules_=function(A,H,k){var d=this;H=H===void 0?0:H;var W=YJ0(this,A);this.loadingModuleIds_=W;this.requestedLoadingModuleIds_=this.batchModeEnabled_?A:_.tA(W);y8(this);if(W.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,W);A=this.JSC$10368_loader_;if(!A)throw Error("yd");if(Object.keys(this.JSC$11383_extraEdges_).length>0&&!A.supportsExtraEdges)throw Error("zd");k=(0,_.WT)(A.loadModules,A,_.tA(W),this.moduleInfoMap,{extraEdges:this.JSC$11383_extraEdges_,
forceReload:!!k,onError:function(z,u,B){var h=d.requestedLoadingModuleIds_;z=z!=null?z:void 0;var O=H;B=B===void 0?!1:B;B=(B===void 0?0:B)?0:(O===void 0?0:O)+1;O=_.tA(W);d.requestedLoadingModuleIds_=h;W.forEach(_.H0(_.EC,d.requestedModuleIds_),d);z==401?(vI0(d,new p6.ModuleLoadFailure(p6.ModuleLoadFailure.Type.UNAUTHORIZED,z)),d.requestedModuleIdsQueue_.length=0):z==410?(PwJ(d,new p6.ModuleLoadFailure(p6.ModuleLoadFailure.Type.OLD_CODE_GONE,z)),GD0(d)):B>=3?(PwJ(d,new p6.ModuleLoadFailure(p6.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
z,O,u)),GD0(d)):d.loadModules_(d.requestedLoadingModuleIds_,B,z==8001||!1)},
onTimeout:(0,_.WT)(this.handleLoadTimeout_,this)});(A=Math.pow(H,2)*5E3)?_.k8.setTimeout(k,A):k()}};
var YJ0=function(A,H){H=H.filter(function(W){return A.moduleInfoMap[W].isLoaded()?(_.k8.setTimeout(function(){return Error("Ad`"+W)},0),!1):!0});
for(var k=[],d=0;d<H.length;d++)k=k.concat(FHw(A,H[d]));CIV(k);return!A.batchModeEnabled_&&k.length>1?(H=k.shift(),A.requestedModuleIdsQueue_=k.map(function(W){return[W]}).concat(A.requestedModuleIdsQueue_),[H]):k},FHw=function(A,H){var k=_.iK.createSet(A.requestedModuleIds_),d=[];
k[H]||d.push(H);H=[H];for(var W=0;W<H.length;W++)for(var z=A.getModuleInfo(H[W]).deps_,u=z.length-1;u>=0;u--){var B=z[u];A.getModuleInfo(B).isLoaded()||k[B]||(d.push(B),H.push(B))}d.reverse();CIV(d);return d};
vo.prototype.JSC$11378_setLoaded=function(){if(this.JSC$11383_currentlyLoadingModule_){var A=this.JSC$11383_currentlyLoadingModule_.getId(),H=[];if(this.JSC$11383_extraEdges_[A]){for(var k=_.r(Object.keys(this.JSC$11383_extraEdges_[A])),d=k.next();!d.done;d=k.next()){d=d.value;var W=this.getModuleInfo(d);W&&!W.isLoaded()&&(this.removeExtraEdge(A,d),H.push(d))}this.loadMultiple(H)}this.isDisposed()||((H=this.moduleInfoMap[A].onLoad((0,_.WT)(this.getModuleContext,this)))&&H.length&&vI0(this,new p6.ModuleLoadFailure(p6.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,H[0])),_.EC(this.userInitiatedLoadingModuleIds_,A),_.EC(this.loadingModuleIds_,A),this.loadingModuleIds_.length===0&&GD0(this),this.lastInitialModuleId_&&A==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),y8(this),this.JSC$11383_currentlyLoadingModule_=null)}};
vo.prototype.isModuleLoading=function(A){if(_.VW(this.loadingModuleIds_,A))return!0;for(var H=0;H<this.requestedModuleIdsQueue_.length;H++)if(_.VW(this.requestedModuleIdsQueue_[H],A))return!0;return!1};
vo.prototype.load=function(A,H){return jlN(this,[A],H)[A]};
vo.prototype.loadMultiple=function(A){return jlN(this,A)};
var Iew=function(A,H){_.VW(A.userInitiatedLoadingModuleIds_,H)||A.userInitiatedLoadingModuleIds_.push(H)};
vo.prototype.beforeLoadModuleCode=function(A){var H=this;this.JSC$11383_currentlyLoadingModule_&&this.JSC$11383_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11378_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[A]&&XMk(this,this.moduleInfoMap[A].deps_||[],function(k){k.module_=new mO;_.EC(H.loadingModuleIds_,k.getId())},function(k){return!k.isLoaded()});
this.JSC$11383_currentlyLoadingModule_=this.getModuleInfo(A)};
vo.prototype.registerInitializationCallback=function(A){this.JSC$11383_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new p6.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11383_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);J$(this.JSC$11383_currentlyLoadingModule_.earlyOnloadCallbacks_,A)};
vo.prototype.handleLoadTimeout_=function(){PwJ(this,new p6.ModuleLoadFailure(p6.ModuleLoadFailure.Type.TIMEOUT));GD0(this)};
var PwJ=function(A,H){A.requestedLoadingModuleIds_.length>1?A.requestedModuleIdsQueue_=A.requestedLoadingModuleIds_.map(function(k){return[k]}).concat(A.requestedModuleIdsQueue_):vI0(A,H)},vI0=function(A,H){var k=A.requestedLoadingModuleIds_;
A.loadingModuleIds_.length=0;for(var d=[],W=0;W<A.requestedModuleIdsQueue_.length;W++){var z=A.requestedModuleIdsQueue_[W].filter(function(h){var O=FHw(this,h);return Vv(k,function(T){return _.VW(O,T)})},A);
_.Mv(d,z)}for(W=0;W<k.length;W++)_.Frm(d,k[W]);for(W=0;W<d.length;W++){for(z=0;z<A.requestedModuleIdsQueue_.length;z++)_.EC(A.requestedModuleIdsQueue_[z],d[W]);_.EC(A.userInitiatedLoadingModuleIds_,d[W])}if(W=A.JSC$11383_callbackMap_.error)for(z=0;z<W.length;z++)for(var u=W[z],B=0;B<d.length;B++)u("error",d[B],H);for(d=0;d<k.length;d++)if(A.moduleInfoMap[k[d]])A.moduleInfoMap[k[d]].onError(H);A.requestedLoadingModuleIds_.length=0;y8(A)},GD0=function(A){for(;A.requestedModuleIdsQueue_.length;){var H=
A.requestedModuleIdsQueue_.shift().filter(function(k){return!this.getModuleInfo(k).isLoaded()},A);
if(H.length>0){A.loadModules_(H);return}}y8(A)};
vo.prototype.registerCallback=function(A,H){Array.isArray(A)||(A=[A]);for(var k=0;k<A.length;k++){var d=A[k],W=H,z=this.JSC$11383_callbackMap_;z[d]||(z[d]=[]);z[d].push(W)}};
vo.prototype.executeCallbacks_=function(A){for(var H=this.JSC$11383_callbackMap_[A],k=0;H&&k<H.length;k++)H[k](A)};
var XMk=function(A,H,k,d,W){d=d===void 0?function(){return!0}:d;
W=W===void 0?{}:W;H=_.r(H);for(var z=H.next();!z.done;z=H.next()){z=z.value;var u=A.getModuleInfo(z);!W[z]&&d(u)&&(W[z]=!0,XMk(A,u.deps_||[],k,d,W),k(u))}};
vo.prototype.dispose=function(){_.KC(_.iK.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11383_callbackMap_={};this.isDisposed_=!0};
vo.prototype.isDisposed=function(){return this.isDisposed_};
_.gF=function(){return new vo};var DHN=[5E3,2E4],$v1=function(){this.JSC$10368_loader_=null;this.JSC$11391_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11391_queue_=[];this.JSC$11391_extraEdges_=Object.create(null);this.JSC$11391_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.I($v1,mH1);_.q=$v1.prototype;_.q.setAllModuleInfoString=function(){this.JSC$11391_currentlyLoadingModule_&&this.JSC$11391_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11378_setLoaded()};
_.q.getModuleInfo=function(A){var H=this.JSC$11391_moduleInfoMap_[A];H||(H=new p6.ModuleInfo([],A),this.JSC$11391_moduleInfoMap_[A]=H);return H};
_.q.addExtraEdge=function(A,H){this.getModuleInfo(A).isLoaded()?this.load(H):(this.JSC$11391_extraEdges_[A]||(this.JSC$11391_extraEdges_[A]={}),this.JSC$11391_extraEdges_[A][H]=!0)};
_.q.removeExtraEdge=function(A,H){if(this.JSC$11391_extraEdges_[A]){delete this.JSC$11391_extraEdges_[A][H];for(var k in this.JSC$11391_extraEdges_[A])return;delete this.JSC$11391_extraEdges_[A]}};
_.q.isModuleLoading=function(A){return!!this.loadingModules_[A]};
_.q.load=function(A){SJj(this,[A]);return CwA(this,A)};
_.q.loadMultiple=function(A){var H=this,k=Object.create(null),d=[];A.forEach(function(W){k[W]||(k[W]=CwA(H,W),d.push(W))});
SJj(this,d);return k};
_.q.beforeLoadModuleCode=function(A){var H;((H=this.JSC$11391_currentlyLoadingModule_)==null?void 0:H.getId())==="synthetic_module_overhead"&&this.JSC$11378_setLoaded();var k,d;KHG(this,(d=(k=this.JSC$11391_moduleInfoMap_[A])==null?void 0:k.deps_)!=null?d:[],function(W){W.module_=new mO},function(W){return!W.isLoaded()});
this.JSC$11391_currentlyLoadingModule_=this.getModuleInfo(A)};
_.q.JSC$11378_setLoaded=function(){if(this.JSC$11391_currentlyLoadingModule_){var A=this.JSC$11391_currentlyLoadingModule_.getId(),H=[];if(this.JSC$11391_extraEdges_[A]){for(var k=_.r(Object.keys(this.JSC$11391_extraEdges_[A])),d=k.next();!d.done;d=k.next())d=d.value,this.getModuleInfo(d).isLoaded()||(this.removeExtraEdge(A,d),H.push(d));this.loadMultiple(H)}this.JSC$11391_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11391_currentlyLoadingModule_=null;(!this.isModuleLoading(A)&&/^sy[0-9a-z]{0,4}$/.test(A)||A==="synthetic_module_overhead")&&delete this.JSC$11391_moduleInfoMap_[A];this.unsetModulesAsLoading(A)}};
_.q.registerInitializationCallback=function(A){this.JSC$11391_currentlyLoadingModule_||(this.JSC$11391_moduleInfoMap_.synthetic_module_overhead=new p6.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11391_currentlyLoadingModule_=this.JSC$11391_moduleInfoMap_.synthetic_module_overhead);J$(this.JSC$11391_currentlyLoadingModule_.earlyOnloadCallbacks_,A)};
_.q.setModulesAsLoading=function(){var A=this;_.o7.apply(0,arguments).forEach(function(H){A.loadingModules_[H]=!0})};
_.q.unsetModulesAsLoading=function(){var A=this;_.o7.apply(0,arguments).forEach(function(H){delete A.loadingModules_[H]})};
var CwA=function(A,H){return new _.Wq(function(k,d){var W=A.getModuleInfo(H);W.isLoaded()?k(null):(W.registerCallback(function(){k(null)}),kDQ(W,function(z){var u="Error loading "+H+": "+z;
z instanceof p6.ModuleLoadFailure&&z.url&&(u=u+", requested url: "+z.url.toString());d(Error(u))}))})},SJj=function(A,H){H=H.filter(function(k){return!A.isModuleLoading(k)&&!A.getModuleInfo(k).isLoaded()});
H.length>0&&(A.setModulesAsLoading.apply(A,_.fV(H)),A.JSC$11391_queue_.push(H),aeA(A))},aeA=function(A){for(var H={};A.activeLoads_<Infinity&&A.JSC$11391_queue_.length>0;H={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})H.ids$jscomp$37=A.JSC$11391_queue_.shift().filter(function(k){return!A.getModuleInfo(k).isLoaded()}),H.ids$jscomp$37.length>0&&(A.activeLoads_++,H.finishLoad=function(k){return function(){A.activeLoads_--;
aeA(A);k.finishLoad=function(){}}}(H),_.Ox(H.ids$jscomp$37.map(function(k){return CwA(A,k)})).then(function(k){return function(){(0,k.finishLoad)()}}(H)),H.attempt$jscomp$6=0,H.load$jscomp$1=function(k){return function(){if(Object.keys(A.JSC$11391_extraEdges_).length>0&&!A.JSC$10368_loader_.supportsExtraEdges)throw Error("zd");
A.JSC$10368_loader_.loadModules(k.ids$jscomp$37,A.JSC$11391_moduleInfoMap_,{extraEdges:A.JSC$11391_extraEdges_,onError:function(d,W){var z=DHN[k.attempt$jscomp$6++];z!==void 0?setTimeout(function(){(0,k.load$jscomp$1)()},z):(A.unsetModulesAsLoading.apply(A,_.fV(k.ids$jscomp$37)),(0,k.finishLoad)(),k.ids$jscomp$37.forEach(function(u){u=A.getModuleInfo(u);
if(!u.isLoaded())u.onError(new p6.ModuleLoadFailure(p6.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,d,k.ids$jscomp$37,W))}))}})}}(H),(0,H.load$jscomp$1)())},KHG=function(A,H,k,d,W){d=d===void 0?function(){return!0}:d;
W=W===void 0?{}:W;H=_.r(H);for(var z=H.next();!z.done;z=H.next()){z=z.value;var u=A.getModuleInfo(z);!W[z]&&d(u)&&(W[z]=!0,KHG(A,u.deps_||[],k,d,W),k(u))}};var c1p=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var S58=Symbol("Cd");window.JSCompiler_renameProperty=function(A){return A};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var pMJ=!c1p||HTMLElement.es5Shimmed||_.k8.Reflect===void 0||_.k8.customElements===void 0||_.k8.customElements.polyfillWrapFlushCallback||!1,Qlw,zTW=function(){var A=HTMLElement;if(pMJ)return A;if(Qlw!==void 0)return Qlw;var H=_.k8.Reflect,k=function(){return H.construct(A,[],this.constructor)};
k.prototype=A.prototype;k.prototype.constructor=k;k.es5Shimmed=!0;Object.setPrototypeOf(k,A);return Qlw=k},Vsp=!1;pMJ||Vsp||(Vsp=!0,_.k8.HTMLElement=zTW());/*

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 plv=/(url\()([^)]*)(\))/g,ah8=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,cvX,AM;var CP=!window.ShadyDOM||!window.ShadyDOM.inUse,EIw=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),UHw=!window.customElements.polyfillWrapFlushCallback,leG;if(leG=CP&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var tsw=new CSSStyleSheet;tsw.replaceSync("");var N4A=document.createElement("div");N4A.attachShadow({mode:"open"});N4A.shadowRoot.adoptedStyleSheets=[tsw];leG=N4A.shadowRoot.adoptedStyleSheets[0]===tsw}catch(A){leG=!1}
var Msp=leG,nIA=window.Polymer&&window.Polymer.rootPath||VYI(document.baseURI||window.location.href),Tb=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Z6W=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,pP=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ZFN=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,S8=window.Polymer&&window.Polymer.legacyOptimizations||!1,cu=window.Polymer&&window.Polymer.legacyWarnings||!1,fe0=window.Polymer&&window.Polymer.syncInitialRender||
!1,JM=window.Polymer&&window.Polymer.legacyUndefined||!1,wMG=window.Polymer&&window.Polymer.orderedComputed||!1,jJ=window.Polymer&&window.Polymer.removeNestedTemplates||!1,In=window.Polymer&&window.Polymer.fastDomIf||!1,Ys=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,oIJ=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,$HN=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Po={},A6i={},bo=function(){return HTMLElement.apply(this,arguments)||this};
_.I(bo,HTMLElement);bo.import=function(A,H){return A?(A=Po[A]||A6i[A.toLowerCase()])&&H?A.querySelector(H):A:null};
bo.prototype.attributeChangedCallback=function(A,H,k){H!==k&&this.register()};
bo.prototype.register=function(A){if(A=A||this.id){if(pP&&(Po[A]||A6i[A.toLowerCase()])!==void 0)throw Po[A]=A6i[A.toLowerCase()]=null,Error("Dd`"+A);this.id=A;Po[A]=A6i[A.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.nP.Object.defineProperties(bo.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var A=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;A=_.Hu(this.getAttribute("assetpath")||"",A.baseURI);this.__assetpath=VYI(A)}return this.__assetpath}}});
_.nP.Object.defineProperties(bo,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
bo["import"]=bo.import;bo.prototype.modules=Po;customElements.define("dom-module",bo);var H0k=0,UL8=0,sZ=[],sOw=0,EqX=!1,knw=document.createTextNode(""),d00,XF;(new window.MutationObserver(lhI)).observe(knw,{characterData:!0});_.Gt={after:function(A){return{run:function(H){return window.setTimeout(H,A)},
cancel:function(H){window.clearTimeout(H)}}},
run:function(A,H){return window.setTimeout(A,H)},
cancel:function(A){window.clearTimeout(A)}};
_.zA={run:function(A){return window.requestAnimationFrame(A)},
cancel:function(A){window.cancelAnimationFrame(A)}};
d00={run:function(A){return window.requestIdleCallback?window.requestIdleCallback(A):window.setTimeout(A,16)},
cancel:function(A){window.cancelIdleCallback?window.cancelIdleCallback(A):window.clearTimeout(A)}};
XF={run:function(A){EqX||(EqX=!0,knw.textContent=sOw++);sZ.push(A);return H0k++},
cancel:function(A){var H=A-UL8;if(H>=0){if(!sZ[H])throw Error("Ed`"+A);sZ[H]=null}}};var W$i=0,Fd=function(A){var H=A.__mixinApplications;H||(H=new WeakMap,A.__mixinApplications=H);var k=W$i++;return function(d){var W=d.__mixinSet;if(W&&W[k])return d;var z=H,u=z.get(d);u||(u=A(d),z.set(d,u),d=Object.create(u.__mixinSet||W||null),d[k]=!0,u.__mixinSet=d);return u}};_.R0=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(A){return ShadyDOM.patch(A)}:function(A){return A};var z7A=Fd(function(A){var H=function(){var k=A.call(this)||this;k.__dataEnabled=!1;k.__dataReady=!1;k.__dataInvalid=!1;k.__data={};k.__dataPending=null;k.__dataOld=null;k.__dataInstanceProps=null;k.__dataCounter=0;k.__serializing=!1;k._initializeProperties();return k};
_.I(H,A);H.createProperties=function(k){var d=this.prototype,W;for(W in k)W in d||d._createPropertyAccessor(W)};
H.attributeNameForProperty=function(k){return k.toLowerCase()};
H.typeForProperty=function(){};
H.prototype._createPropertyAccessor=function(k,d){this._addPropertyToAttributeMap(k);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[k]||(this.__dataHasAccessor[k]=!0,this._definePropertyAccessor(k,d))};
H.prototype._addPropertyToAttributeMap=function(k){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var d=this.__dataAttributes[k];d||(d=this.constructor.attributeNameForProperty(k),this.__dataAttributes[d]=k);return d};
H.prototype._definePropertyAccessor=function(k,d){Object.defineProperty(this,k,{get:function(){return this.__data[k]},
set:d?function(){}:function(W){this._setPendingProperty(k,W,!0)&&this._invalidateProperties()}})};
H.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
H.prototype._initializeProperties=function(){for(var k in this.__dataHasAccessor)this.hasOwnProperty(k)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[k]=this[k],delete this[k])};
H.prototype._initializeInstanceProperties=function(k){Object.assign(this,k)};
H.prototype._setProperty=function(k,d){this._setPendingProperty(k,d)&&this._invalidateProperties()};
H.prototype._getProperty=function(k){return this.__data[k]};
H.prototype._setPendingProperty=function(k,d){var W=this.__data[k],z=this._shouldPropertyChange(k,d,W);z&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||k in this.__dataOld||(this.__dataOld[k]=W),this.__data[k]=d,this.__dataPending[k]=d);return z};
H.prototype._isPropertyPending=function(k){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(k))};
H.prototype._invalidateProperties=function(){var k=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,XF.run(function(){k.__dataInvalid&&(k.__dataInvalid=!1,k._flushProperties())}))};
H.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
H.prototype._flushProperties=function(){this.__dataCounter++;var k=this.__data,d=this.__dataPending,W=this.__dataOld;this._shouldPropertiesChange(k,d,W)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(k,d,W));this.__dataCounter--};
H.prototype._shouldPropertiesChange=function(k,d){return!!d};
H.prototype._propertiesChanged=function(){};
H.prototype._shouldPropertyChange=function(k,d,W){return W!==d&&(W===W||d===d)};
H.prototype.attributeChangedCallback=function(k,d,W,z){d!==W&&this._attributeToProperty(k,W);A.prototype.attributeChangedCallback&&A.prototype.attributeChangedCallback.call(this,k,d,W,z)};
H.prototype._attributeToProperty=function(k,d,W){if(!this.__serializing){var z=this.__dataAttributes;k=z&&z[k]||k;this[k]=this._deserializeValue(d,W||this.constructor.typeForProperty(k))}};
H.prototype._propertyToAttribute=function(k,d,W){this.__serializing=!0;W=arguments.length<3?this[k]:W;this._valueToNodeAttribute(this,W,d||this.constructor.attributeNameForProperty(k));this.__serializing=!1};
H.prototype._valueToNodeAttribute=function(k,d,W){d=this._serializeValue(d);if(W==="class"||W==="name"||W==="slot")k=(0,_.R0)(k);d===void 0?k.removeAttribute(W):k.setAttribute(W,d===""&&window.trustedTypes?window.trustedTypes.emptyScript:d)};
H.prototype._serializeValue=function(k){switch(typeof k){case "boolean":return k?"":void 0;default:return k!=null?k.toString():void 0}};
H.prototype._deserializeValue=function(k,d){switch(d){case Boolean:return k!==null;case Number:return Number(k);default:return k}};
return H});var q6J=0,tYA=[];var r6w=Fd(function(A){function H(z){z=Object.getPrototypeOf(z);return z.prototype instanceof W?z:null}
function k(z){if(!z.hasOwnProperty("__ownProperties")){var u=null;if(z.hasOwnProperty("properties")){var B=z.properties;if(B){u={};for(var h in B){var O=B[h];u[h]=typeof O==="function"?{type:O}:O}}}z.__ownProperties=u}return z.__ownProperties}
var d=z7A(A),W=function(){return d.apply(this,arguments)||this};
_.I(W,d);W.finalize=function(){if(!this.hasOwnProperty("__finalized")){var z=H(this);z&&z.finalize();this.__finalized=!0;this._finalizeClass()}};
W._finalizeClass=function(){var z=k(this);z&&this.createProperties(z)};
W.typeForProperty=function(z){return(z=this._properties[z])&&z.type};
W.prototype._initializeProperties=function(){q6J++;this.constructor.finalize();d.prototype._initializeProperties.call(this)};
W.prototype.connectedCallback=function(){d.prototype.connectedCallback&&d.prototype.connectedCallback.call(this);this._enableProperties()};
W.prototype.disconnectedCallback=function(){d.prototype.disconnectedCallback&&d.prototype.disconnectedCallback.call(this)};
_.nP.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var z=this;if(!this.hasOwnProperty("__observedAttributes")){NyQ(this.prototype);var u=this._properties;this.__observedAttributes=u?Object.keys(u).map(function(B){return z.prototype._addPropertyToAttributeMap(B)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var z=H(this);this.__properties=Object.assign({},z&&z._properties,k(this))}return this.__properties}}});
return W});var MYm={},nqm=/-[a-z]/g,Zwf=/([A-Z])/g;for(var uIA={},Bui=HTMLElement.prototype;Bui;){for(var e70=Object.getOwnPropertyNames(Bui),x0p=0;x0p<e70.length;x0p++)uIA[e70[x0p]]=!0;Bui=Object.getPrototypeOf(Bui)}var i00=window.trustedTypes?function(A){return trustedTypes.isHTML(A)||trustedTypes.isScript(A)||trustedTypes.isScriptURL(A)}:function(){return!1},h7Z=Fd(function(A){var H=z7A(A);
A=function(){return H.apply(this,arguments)||this};
_.I(A,H);A.createPropertiesForAttributes=function(){for(var k=this.observedAttributes,d=0;d<k.length;d++)this.prototype._createPropertyAccessor(kY(k[d]))};
A.attributeNameForProperty=function(k){return qo(k)};
A.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);H.prototype._initializeProperties.call(this)};
A.prototype._initializeProtoProperties=function(k){for(var d in k)this._setProperty(d,k[d])};
A.prototype._ensureAttribute=function(k,d){this.hasAttribute(k)||this._valueToNodeAttribute(this,d,k)};
A.prototype._serializeValue=function(k){switch(typeof k){case "object":if(k instanceof Date)return k.toString();if(k){if(i00(k))return k;try{return JSON.stringify(k)}catch(d){return""}}default:return H.prototype._serializeValue.call(this,k)}};
A.prototype._deserializeValue=function(k,d){switch(d){case Object:try{var W=JSON.parse(k)}catch(z){W=k}break;case Array:try{W=JSON.parse(k)}catch(z){W=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+k)}break;case Date:W=isNaN(k)?String(k):Number(k);W=new Date(W);break;default:W=H.prototype._deserializeValue.call(this,k,d)}return W};
A.prototype._definePropertyAccessor=function(k,d){if(!uIA[k]){var W=this[k];W!==void 0&&(this.__data?this._setPendingProperty(k,W):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[k]=W))}H.prototype._definePropertyAccessor.call(this,k,d)};
A.prototype._hasAccessor=function(k){return this.__dataHasAccessor&&this.__dataHasAccessor[k]};
A.prototype._isPropertyPending=function(k){return!!(this.__dataPending&&k in this.__dataPending)};
return A});var O0k={"dom-if":!0,"dom-repeat":!0},R7A=!1,Tu1=!1,m0w=function(){var A=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(H){return H}});
return function(H,k,d){k=k.getAttribute(d);A&&d.startsWith("on-")?H.setAttribute(d,A.createScript(k,d)):H.setAttribute(d,k)}}(),J6w=Fd(function(A){var H=function(){return A.apply(this,arguments)||this};
_.I(H,A);H._parseTemplate=function(k,d){if(!k._templateInfo){var W=k._templateInfo={};W.nodeInfoList=[];W.nestedTemplate=!!d;W.stripWhiteSpace=d&&d.stripWhiteSpace||k.hasAttribute&&k.hasAttribute("strip-whitespace");this._parseTemplateContent(k,W,{parent:null})}return k._templateInfo};
H._parseTemplateContent=function(k,d,W){return this._parseTemplateNode(k.content,d,W)};
H._parseTemplateNode=function(k,d,W){var z=!1;k.localName!="template"||k.hasAttribute("preserve-content")?k.localName==="slot"&&(d.hasInsertionPoint=!0):z=this._parseTemplateNestedTemplate(k,d,W)||z;if(!R7A){R7A=!0;var u=document.createElement("textarea");u.placeholder="a";Tu1=u.placeholder===u.textContent}Tu1&&k.localName==="textarea"&&k.placeholder&&k.placeholder===k.textContent&&(k.textContent=null);k.firstChild&&this._parseTemplateChildNodes(k,d,W);k.hasAttributes&&k.hasAttributes()&&(z=this._parseTemplateNodeAttributes(k,
d,W)||z);return z||W.noted};
H._parseTemplateChildNodes=function(k,d,W){if(k.localName!=="script"&&k.localName!=="style")for(var z=k.firstChild,u=0,B;z;z=B){if(z.localName=="template"){var h=z.getAttribute("is");if(h&&O0k[h])for(B=z,B.removeAttribute("is"),z=B.ownerDocument.createElement(h),B.parentNode.replaceChild(z,B),z.appendChild(B);B.attributes.length;)h=B.attributes[0].name,m0w(z,B,h),B.removeAttribute(h)}B=z.nextSibling;if(z.nodeType===Node.TEXT_NODE){for(h=B;h&&h.nodeType===Node.TEXT_NODE;)z.textContent+=h.textContent,
B=h.nextSibling,k.removeChild(h),h=B;if(d.stripWhiteSpace&&!z.textContent.trim()){k.removeChild(z);continue}}h={parentIndex:u,parentInfo:W};this._parseTemplateNode(z,d,h)&&(h.infoIndex=d.nodeInfoList.push(h)-1);z.parentNode&&u++}};
H._parseTemplateNestedTemplate=function(k,d,W){d=this._parseTemplate(k,d);(d.content=k.content.ownerDocument.createDocumentFragment()).appendChild(k.content);W.templateInfo=d;return!0};
H._parseTemplateNodeAttributes=function(k,d,W){for(var z=!1,u=Array.from(k.attributes),B=u.length-1,h;h=u[B];B--)z=this._parseTemplateNodeAttribute(k,d,W,h.name,h.value)||z;return z};
H._parseTemplateNodeAttribute=function(k,d,W,z,u){return z.slice(0,3)==="on-"?(k.removeAttribute(z),W.events=W.events||[],W.events.push({name:z.slice(3),value:u}),!0):z==="id"?(W.id=u,!0):!1};
H._contentForTemplate=function(k){var d=k._templateInfo;return d&&d.content||k.content};
H.prototype._stampTemplate=function(k,d){k&&!k.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(k);d=d||this.constructor._parseTemplate(k);var W=d.nodeInfoList;k=document.importNode(d.content||k.content,!0);k.__noInsertionPoint=!d.hasInsertionPoint;var z=k.nodeList=Array(W.length);k.$={};for(var u=0,B=W.length,h=void 0;u<B&&(h=W[u]);u++){var O=z[u]=fhV(k,h);h.id&&(k.$[h.id]=O);var T=O,m=h,J=d;m.templateInfo&&(T._templateInfo=m.templateInfo,T._parentTemplateInfo=
J);if(h.events&&h.events.length)for(T=0,m=h.events,J=void 0;T<m.length&&(J=m[T]);T++)this._addMethodEventListenerToNode(O,J.name,J.value,this)}return k};
H.prototype._addMethodEventListenerToNode=function(k,d,W,z){W=wlm(z||k,W);this._addEventListenerToNode(k,d,W);return W};
H.prototype._addEventListenerToNode=function(k,d,W){k.addEventListener(d,W)};
H.prototype._removeEventListenerFromNode=function(k,d,W){k.removeEventListener(d,W)};
return H});var hM=0,mb=[],g9k={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},b0J=/[A-Z]/,L$Z=function(A,H,k,d,W){var z=W?uo(A):A;if(H=H[z])for(z=0;z<H.length;z++){var u=H[z];if(u.info.lastRun!==hM&&(!W||ksv(A,u.trigger))){u.info.lastRun=hM;u=u.info;for(var B=k,h=d,O=0,T=B.length-1,m=-1;O<=T;){var J=O+T>>1,g=h.get(B[J].methodInfo)-h.get(u.methodInfo);if(g<0)O=J+1;else if(g>0)T=J-1;else{m=J;break}}m<
0&&(m=T+1);B.splice(m,0,u)}}},meN=[],v9Z=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"),DP=Fd(function(A){var H=J6w(h7Z(A));
A=function(){var k=H.call(this)||this;k.__isPropertyEffectsClient=!0;return k};
_.I(A,H);A.prototype._initializeProperties=function(){H.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};
A.prototype._registerHost=function(){if(Xd.length){var k=Xd[Xd.length-1];k._enqueueClient(this);this.__dataHost=k}};
A.prototype._initializeProtoProperties=function(k){this.__data=Object.create(k);this.__dataPending=Object.create(k);this.__dataOld={}};
A.prototype._initializeInstanceProperties=function(k){var d=this.__readOnly,W;for(W in k)d&&d[W]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[W]=this.__dataPending[W]=k[W])};
A.prototype._addPropertyEffect=function(k,d,W){this._createPropertyAccessor(k,d=="__readOnly");var z=sLf(this,d,!0)[k];z||(z=this[d][k]=[]);z.push(W)};
A.prototype._removePropertyEffect=function(k,d,W){k=sLf(this,d,!0)[k];W=k.indexOf(W);W>=0&&k.splice(W,1)};
A.prototype._hasPropertyEffect=function(k,d){d=this[d];return!(!d||!d[k])};
A.prototype._hasReadOnlyEffect=function(k){return this._hasPropertyEffect(k,"__readOnly")};
A.prototype._hasNotifyEffect=function(k){return this._hasPropertyEffect(k,"__notifyEffects")};
A.prototype._hasReflectEffect=function(k){return this._hasPropertyEffect(k,"__reflectEffects")};
A.prototype._hasComputedEffect=function(k){return this._hasPropertyEffect(k,"__computeEffects")};
A.prototype._setPendingPropertyOrPath=function(k,d,W,z){if(z||uo(Array.isArray(k)?k[0]:k)!==k){if(!z&&(z=io(this,k),k=H6l(this,k,d),!k||!H.prototype._shouldPropertyChange.call(this,k,d,z)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(k,d,W)){if(W=this.__dataLinkedPaths)for(var u in W)z=W[u],Bu(u,k)?(z=e8(u,z,k),this._setPendingPropertyOrPath(z,d,!0,!0)):Bu(z,k)&&(z=e8(z,u,k),this._setPendingPropertyOrPath(z,d,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[k])return this._setPendingProperty(k,
d,W);this[k]=d}return!1};
A.prototype._setUnmanagedPropertyToNode=function(k,d,W){if(W!==k[d]||typeof W=="object")d==="className"&&(k=(0,_.R0)(k)),k[d]=W};
A.prototype._setPendingProperty=function(k,d,W){var z=this.__dataHasPaths&&ro(k);if(this._shouldPropertyChange(k,d,(z?this.__dataTemp:this.__data)[k])){this.__dataPending||(this.__dataPending={},this.__dataOld={});k in this.__dataOld||(this.__dataOld[k]=this.__data[k]);z?this.__dataTemp[k]=d:this.__data[k]=d;this.__dataPending[k]=d;if(z||this.__notifyEffects&&this.__notifyEffects[k])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[k]=W;return!0}return!1};
A.prototype._setProperty=function(k,d){this._setPendingProperty(k,d,!0)&&this._invalidateProperties()};
A.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
A.prototype._enqueueClient=function(k){this.__dataPendingClients=this.__dataPendingClients||[];k!==this&&this.__dataPendingClients.push(k)};
A.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
A.prototype.__enableOrFlushClients=function(){var k=this.__dataPendingClients;if(k){this.__dataPendingClients=null;for(var d=0;d<k.length;d++){var W=k[d];W.__dataEnabled?W.__dataPending&&W._flushProperties():W._enableProperties()}}};
A.prototype._readyClients=function(){this.__enableOrFlushClients()};
A.prototype.setProperties=function(k,d){for(var W in k)!d&&this.__readOnly&&this.__readOnly[W]||this._setPendingPropertyOrPath(W,k[W],!0);this._invalidateProperties()};
A.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
A.prototype._propertiesChanged=function(k,d,W){k=this.__dataHasPaths;this.__dataHasPaths=!1;var z;if(z=this.__computeEffects)if(wMG){hM++;var u=uO8(this),B=[],h;for(h in d)L$Z(h,z,B,u,k);for(;h=B.shift();)eeb(this,"",d,W,h)&&L$Z(h.methodInfo,z,B,u,k);Object.assign(W,this.__dataOld);Object.assign(d,this.__dataPending);this.__dataPending=null}else for(u=d;OZ(this,z,u,W,k);)Object.assign(W,this.__dataOld),Object.assign(d,this.__dataPending),u=this.__dataPending,this.__dataPending=null;z=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(d,W,k);this._flushClients();OZ(this,this.__reflectEffects,d,W,k);OZ(this,this.__observeEffects,d,W,k);if(z){u=this.__notifyEffects;B=hM++;for(var O in z)if(z[O]){if(h=u){var T=u;h=B;var m=O,J=d,g=W,v=k,y=!1,X=v?uo(m):m;if(T=T[X]){X=0;for(var D=T.length,K=void 0;X<D&&(K=T[X]);X++)K.info&&K.info.lastRun===h||v&&!ksv(m,K.trigger)||(K.info&&(K.info.lastRun=h),K.fn(this,m,J,g,K.info,v,void 0),y=!0)}h=y}if(h)var N=!0;else{if(h=k)h=O,m=d,J=uo(h),J!==
h?(J=qo(J)+"-changed",WWI(this,J,m[h],h),h=!0):h=!1;h&&(N=!0)}}var U;N&&(U=this.__dataHost)&&U._invalidateProperties&&U._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
A.prototype._propagatePropertyChanges=function(k,d,W){this.__propagateEffects&&OZ(this,this.__propagateEffects,k,d,W);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,k,d,W)};
A.prototype._runEffectsForTemplate=function(k,d,W,z){var u=this,B=function(h,O){OZ(u,k.propertyEffects,h,W,O,k.nodeList);for(var T=k.firstChild;T;T=T.nextSibling)u._runEffectsForTemplate(T,h,W,O)};
k.runEffects?k.runEffects(B,d,z):B(d,z)};
A.prototype.linkPaths=function(k,d){k=xY(k);d=xY(d);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[k]=d};
A.prototype.unlinkPaths=function(k){k=xY(k);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[k]};
A.prototype.notifySplices=function(k,d){var W={path:""};k=io(this,k,W);LW8(this,k,W.path,d)};
A.prototype.get=function(k,d){return io(d||this,k)};
A.prototype.set=function(k,d,W){W?H6l(W,k,d):this.__readOnly&&this.__readOnly[k]||this._setPendingPropertyOrPath(k,d,!0)&&this._invalidateProperties()};
A.prototype.push=function(k){var d=_.o7.apply(1,arguments),W={path:""},z=io(this,k,W),u=z.length,B=z.push.apply(z,_.fV(d));d.length&&go(this,z,W.path,u,d.length,[]);return B};
A.prototype.pop=function(k){var d={path:""};k=io(this,k,d);var W=!!k.length,z=k.pop();W&&go(this,k,d.path,k.length,0,[z]);return z};
A.prototype.splice=function(k,d,W){var z=_.o7.apply(3,arguments),u={path:""},B=io(this,k,u);d<0?d=B.length-Math.floor(-d):d&&(d=Math.floor(d));var h=arguments.length===2?B.splice(d):B.splice.apply(B,[d,W].concat(_.fV(z)));(z.length||h.length)&&go(this,B,u.path,d,z.length,h);return h};
A.prototype.shift=function(k){var d={path:""};k=io(this,k,d);var W=!!k.length,z=k.shift();W&&go(this,k,d.path,0,0,[z]);return z};
A.prototype.unshift=function(k){var d=_.o7.apply(1,arguments),W={path:""},z=io(this,k,W),u=z.unshift.apply(z,_.fV(d));d.length&&go(this,z,W.path,0,d.length,[]);return u};
A.prototype.notifyPath=function(k,d){if(arguments.length==1){var W={path:""};d=io(this,k,W);W=W.path}else W=Array.isArray(k)?xY(k):k;this._setPendingPropertyOrPath(W,d,!0,!0)&&this._invalidateProperties()};
A.prototype._createReadOnlyProperty=function(k,d){this._addPropertyEffect(k,"__readOnly");d&&(this["_set"+(k[0].toUpperCase()+k.substring(1))]=function(W){this._setProperty(k,W)})};
A.prototype._createPropertyObserver=function(k,d,W){var z={property:k,method:d,dynamicFn:!!W};this._addPropertyEffect(k,"__observeEffects",{fn:deI,info:z,trigger:{name:k}});W&&this._addPropertyEffect(d,"__observeEffects",{fn:deI,info:z,trigger:{name:d}})};
A.prototype._createMethodObserver=function(k,d){var W=gcl(k);if(!W)throw Error("Fd`"+k);ReX(this,W,"__observeEffects",BKb,null,d)};
A.prototype._createNotifyingProperty=function(k){this._addPropertyEffect(k,"__notifyEffects",{fn:zeI,info:{eventName:qo(k)+"-changed",property:k}})};
A.prototype._createReflectedProperty=function(k){var d=this.constructor.attributeNameForProperty(k);d[0]==="-"?console.warn("Property "+k+" cannot be reflected to attribute "+d+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(k,"__reflectEffects",{fn:qKC,info:{attrName:d}})};
A.prototype._createComputedProperty=function(k,d,W){var z=gcl(d);if(!z)throw Error("Gd`"+d);d=ReX(this,z,"__computeEffects",eeb,k,W);sLf(this,"__computeInfo")[k]=d};
A.prototype._marshalArgs=function(k,d,W){for(var z=this.__data,u=[],B=0,h=k.length;B<h;B++){var O=k[B],T=O.name,m=O.structured,J=O.wildcard,g=O.value;O.literal||(J?(O=Bu(T,d),m=b6V(z,W,O?d:T),g={path:O?d:T,value:m,base:O?io(z,T):m}):g=m?b6V(z,W,T):z[T]);if(JM&&!this._overrideLegacyUndefined&&g===void 0&&k.length>1)return mb;u[B]=g}return u};
A.addPropertyEffect=function(k,d,W){this.prototype._addPropertyEffect(k,d,W)};
A.createPropertyObserver=function(k,d,W){this.prototype._createPropertyObserver(k,d,W)};
A.createMethodObserver=function(k,d){this.prototype._createMethodObserver(k,d)};
A.createNotifyingProperty=function(k){this.prototype._createNotifyingProperty(k)};
A.createReadOnlyProperty=function(k,d){this.prototype._createReadOnlyProperty(k,d)};
A.createReflectedProperty=function(k){this.prototype._createReflectedProperty(k)};
A.createComputedProperty=function(k,d,W){this.prototype._createComputedProperty(k,d,W)};
A.bindTemplate=function(k){return this.prototype._bindTemplate(k)};
A.prototype._bindTemplate=function(k,d){var W=this.constructor._parseTemplate(k),z=this.__preBoundTemplateInfo==W;if(!z)for(var u in W.propertyEffects)this._createPropertyAccessor(u);d?(W=Object.create(W),W.wasPreBound=z,this.__templateInfo?(k=k._parentTemplateInfo||this.__templateInfo,d=k.lastChild,W.parent=k,k.lastChild=W,(W.previousSibling=d)?d.nextSibling=W:k.firstChild=W):this.__templateInfo=W):this.__preBoundTemplateInfo=W;return W};
A._addTemplatePropertyEffect=function(k,d,W){(k.hostProps=k.hostProps||{})[d]=!0;k=k.propertyEffects=k.propertyEffects||{};(k[d]=k[d]||[]).push(W)};
A.prototype._stampTemplate=function(k,d){d=d||this._bindTemplate(k,!0);Xd.push(this);k=H.prototype._stampTemplate.call(this,k,d);Xd.pop();d.nodeList=k.nodeList;if(!d.wasPreBound)for(var W=d.childNodes=[],z=k.firstChild;z;z=z.nextSibling)W.push(z);k.templateInfo=d;W=d.nodeList;z=d.nodeInfoList;if(z.length)for(var u=0;u<z.length;u++){var B=W[u],h=z[u].bindings;if(h)for(var O=0;O<h.length;O++){var T=h[O],m=B,J=T;if(J.isCompound){for(var g=m.__dataCompoundStorage||(m.__dataCompoundStorage={}),v=J.parts,
y=Array(v.length),X=0;X<v.length;X++)y[X]=v[X].literal;v=J.target;g[v]=y;J.literal&&J.kind=="property"&&(v==="className"&&(m=(0,_.R0)(m)),m[v]=J.literal)}O6I(B,this,T)}B.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(d,this.__data,null,!1),this._flushClients());return k};
A.prototype._removeBoundDom=function(k){k=k.templateInfo;var d=k.previousSibling,W=k.nextSibling,z=k.parent;d?d.nextSibling=W:z&&(z.firstChild=W);W?W.previousSibling=d:z&&(z.lastChild=d);k.nextSibling=k.previousSibling=null;k=k.childNodes;for(d=0;d<k.length;d++)W=k[d],(0,_.R0)((0,_.R0)(W).parentNode).removeChild(W)};
A._parseTemplateNode=function(k,d,W){var z=H._parseTemplateNode.call(this,k,d,W);if(k.nodeType===Node.TEXT_NODE){var u=this._parseBindings(k.textContent,d);u&&(k.textContent=TKC(u)||" ",heb(this,d,W,"text","textContent",u),z=!0)}return z};
A._parseTemplateNodeAttribute=function(k,d,W,z,u){var B=this._parseBindings(u,d);if(B){u=z;var h="property";b0J.test(z)?h="attribute":z[z.length-1]=="$"&&(z=z.slice(0,-1),h="attribute");var O=TKC(B);O&&h=="attribute"&&(z=="class"&&k.hasAttribute("class")&&(O+=" "+k.getAttribute(z)),k.setAttribute(z,O));h=="attribute"&&u=="disable-upgrade$"&&k.setAttribute(z,"");k.localName==="input"&&u==="value"&&k.setAttribute(u,"");k.removeAttribute(u);h==="property"&&(z=kY(z));heb(this,d,W,h,z,B,O);return!0}return H._parseTemplateNodeAttribute.call(this,
k,d,W,z,u)};
A._parseTemplateNestedTemplate=function(k,d,W){var z=H._parseTemplateNestedTemplate.call(this,k,d,W),u=k.parentNode,B=W.templateInfo,h=u.localName==="dom-if",O=u.localName==="dom-repeat";jJ&&(h||O)&&(u.removeChild(k),W=W.parentInfo,W.templateInfo=B,W.noted=!0,z=!1);k=B.hostProps;if(In&&h)k&&(d.hostProps=Object.assign(d.hostProps||{},k),jJ||(W.parentInfo.noted=!0));else for(var T in k)heb(this,d,W,"property","_host_"+T,[{mode:"{",source:T,dependencies:[T],hostProp:!0}]);return z};
A._parseBindings=function(k,d){for(var W=[],z=0,u;(u=v9Z.exec(k))!==null;){u.index>z&&W.push({literal:k.slice(z,u.index)});z=u[1][0];var B=!!u[2];u=u[3].trim();var h=!1,O="",T=-1;z=="{"&&(T=u.indexOf("::"))>0&&(O=u.substring(T+2),u=u.substring(0,T),h=!0);T=gcl(u);var m=[];if(T){var J=T,g=J.args;J=J.methodName;for(var v=0;v<g.length;v++){var y=g[v];y.literal||m.push(y)}if((g=d.dynamicFns)&&g[J]||T.static)m.push(J),T.dynamicFn=!0}else m.push(u);W.push({source:u,mode:z,negate:B,customEvent:h,signature:T,
dependencies:m,event:O});z=v9Z.lastIndex}z&&z<k.length&&(k=k.substring(z))&&W.push({literal:k});return W.length?W:null};
A._evaluateBinding=function(k,d,W,z,u,B){k=d.signature?BKb(k,W,z,u,d.signature):W!=d.source?io(k,d.source):B&&ro(W)?io(k,W):k.__data[W];d.negate&&(k=!k);return k};
_.nP.Object.defineProperties(A.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return g9k}}});
return A}),Xd=[];var y6j=window.ShadyCSS&&window.ShadyCSS.cssBuild,SJ=Fd(function(A){function H(d,W,z,u){if(!y6j){for(var B=W.content.querySelectorAll("style"),h=IsI(W),O=YKW(z),T=W.content.firstElementChild,m=0;m<O.length;m++){var J=O[m];J.textContent=d._processStyleText(J.textContent,u);W.content.insertBefore(J,T)}for(T=O=0;T<h.length;T++)m=h[T],J=B[O],J!==m?(m=m.cloneNode(!0),J.parentNode.insertBefore(m,J)):O++,m.textContent=d._processStyleText(m.textContent,u)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(W,
z);if($HN&&y6j&&Msp&&(W=W.content.querySelectorAll("style"))){var g="";Array.from(W).forEach(function(v){g+=v.textContent;v.parentNode.removeChild(v)});
d._styleSheet=new CSSStyleSheet;d._styleSheet.replaceSync(g)}}
var k=r6w(DP(A));A=function(){return k.call(this)||this};
_.I(A,k);A._finalizeClass=function(){k._finalizeClass.call(this);var d;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(d=this.__ownObservers)&&this.createObservers(d,this._properties);this._prepareTemplate()};
A._prepareTemplate=function(){var d=this.template;d&&(typeof d==="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):S8||(d=d.cloneNode(!0)));this.prototype._template=d};
A.createProperties=function(d){for(var W in d){var z=this.prototype,u=W,B=d[W],h=d;B.computed&&(B.readOnly=!0);B.computed&&(z._hasReadOnlyEffect(u)?console.warn("Cannot redefine computed property '"+u+"'."):z._createComputedProperty(u,B.computed,h));B.readOnly&&!z._hasReadOnlyEffect(u)?z._createReadOnlyProperty(u,!B.computed):B.readOnly===!1&&z._hasReadOnlyEffect(u)&&console.warn("Cannot make readOnly property '"+u+"' non-readOnly.");B.reflectToAttribute&&!z._hasReflectEffect(u)?z._createReflectedProperty(u):
B.reflectToAttribute===!1&&z._hasReflectEffect(u)&&console.warn("Cannot make reflected property '"+u+"' non-reflected.");B.notify&&!z._hasNotifyEffect(u)?z._createNotifyingProperty(u):B.notify===!1&&z._hasNotifyEffect(u)&&console.warn("Cannot make notify property '"+u+"' non-notify.");B.observer&&z._createPropertyObserver(u,B.observer,h[B.observer]);z._addPropertyToAttributeMap(u)}};
A.createObservers=function(d,W){for(var z=this.prototype,u=0;u<d.length;u++)z._createMethodObserver(d[u],W)};
A.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);k.prototype._initializeProperties.call(this);this.rootPath=nIA;this.importPath=this.constructor.importPath;var d=this.constructor;if(!d.hasOwnProperty("__propertyDefaults")){d.__propertyDefaults=null;var W=d._properties,z;for(z in W){var u=W[z];"value"in u&&(d.__propertyDefaults=d.__propertyDefaults||{},d.__propertyDefaults[z]=u)}}if(d=d.__propertyDefaults)for(var B in d)W=d[B],
this._canApplyPropertyDefault(B)&&(W=typeof W.value=="function"?W.value.call(this):W.value,this._hasAccessor(B)?this._setPendingProperty(B,W,!0):this[B]=W)};
A.prototype._canApplyPropertyDefault=function(d){return!this.hasOwnProperty(d)};
A._processStyleText=function(d,W){return QIr(d,W)};
A._finalizeTemplate=function(d){var W=this.prototype._template;if(W&&!W.__polymerFinalized){W.__polymerFinalized=!0;var z=this.importPath;z=z?_.Hu(z):"";H(this,W,d,z);this.prototype._bindTemplate(W)}};
A.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);k.prototype.connectedCallback.call(this)};
A.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);k.prototype.ready.call(this)};
A.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));k.prototype._readyClients.call(this)};
A.prototype._attachDom=function(d){var W=(0,_.R0)(this);if(W.attachShadow)return d?(W.shadowRoot||(W.attachShadow({mode:"open",shadyUpgradeFragment:d}),W.shadowRoot.appendChild(d),this.constructor._styleSheet&&(W.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),fe0&&window.ShadyDOM&&window.ShadyDOM.flushInitial(W.shadowRoot),W.shadowRoot):null;throw Error("Id");};
A.prototype.updateStyles=function(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)};
A.prototype.resolveUrl=function(d,W){!W&&this.importPath&&(W=_.Hu(this.importPath));return _.Hu(d,W)};
A._parseTemplateContent=function(d,W,z){W.dynamicFns=W.dynamicFns||this._properties;return k._parseTemplateContent.call(this,d,W,z)};
A._addTemplatePropertyEffect=function(d,W,z){!cu||W in this._properties||z.info.part.signature&&z.info.part.signature.static||z.info.part.hostProp||d.nestedTemplate||console.warn("Property '"+W+"' used in template but not declared in 'properties'; attribute will not be observed.");return k._addTemplatePropertyEffect.call(this,d,W,z)};
_.nP.Object.defineProperties(A,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var d=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof d==="function"&&(d=d());if(d===void 0){if(d=this.hasOwnProperty("is")){d=this.is;var W=null;if(d&&(!pP||ZFN)&&(W=bo.import(d,"template"),pP&&!W))throw Error("Hd`"+d);d=W}d=d||Object.getPrototypeOf(this.prototype).constructor.template}this._template=d}return this._template},
set:function(d){this._template=d}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var d=this.importMeta;d?this._importPath=VYI(d.url):this._importPath=(d=bo.import(this.is))&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return A});var jOk=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(A){return A}}),CAf=function(A,H){ISZ(A,H);
this.value=H.reduce(function(k,d,W){return k+KWN(d)+A[W+1]},A[0]).toString()},ISZ;
CAf.prototype.toString=function(){return this.value};
_.Y6Z=function(A){var H=_.o7.apply(1,arguments);ISZ(A,H);var k=document.createElement("template");H=H.reduce(function(d,W,z){if(W instanceof HTMLTemplateElement)W=W.innerHTML;else if(W instanceof CAf)W=KWN(W);else throw Error("Kd`"+W);return d+W+A[z+1]},A[0]);
jOk&&(H=jOk.createHTML(H));k.innerHTML=H;return k};
ISZ=function(A,H){if(!Array.isArray(A)||!Array.isArray(A.raw)||H.length!==A.length-1)throw new TypeError("Ld");};var Ci=SJ(HTMLElement);var Pyp=Fd(function(A){var H=SJ(A);A=function(){var k=H.call(this)||this;k.__lastItems=null;k.__lastMulti=null;k.__selectedMap=null;return k};
_.I(A,H);A.prototype.__updateSelection=function(k,d){var W=d.path;W=="items"?(d=d.base||[],W=this.__lastItems,k!==this.__lastMulti&&this.clearSelection(),W&&(W=SKb(d,W),this.__applySplices(W)),this.__lastItems=d,this.__lastMulti=k):d.path=="items.splices"?this.__applySplices(d.value.indexSplices):(k=W.slice(6),d=parseInt(k,10),k.indexOf(".")<0&&k==d&&this.__deselectChangedIdx(d))};
A.prototype.__applySplices=function(k){for(var d=this,W=this.__selectedMap,z={},u=0;u<k.length;z={s$jscomp$109:void 0},u++){z.s$jscomp$109=k[u];W.forEach(function(T){return function(m,J){m<T.s$jscomp$109.index||(m>=T.s$jscomp$109.index+T.s$jscomp$109.removed.length?W.set(J,m+T.s$jscomp$109.addedCount-T.s$jscomp$109.removed.length):W.set(J,-1))}}(z));
for(var B=0;B<z.s$jscomp$109.addedCount;B++){var h=z.s$jscomp$109.index+B;W.has(this.items[h])&&W.set(this.items[h],h)}}this.__updateLinks();var O=0;W.forEach(function(T,m){T<0?(d.multi?d.splice("selected",O,1):d.selected=d.selectedItem=null,W.delete(m)):O++})};
A.prototype.__updateLinks=function(){var k=this;this.__dataLinkedPaths={};if(this.multi){var d=0;this.__selectedMap.forEach(function(W){W>=0&&k.linkPaths("items."+W,"selected."+d++)})}else this.__selectedMap.forEach(function(W){k.linkPaths("selected","items."+W);
k.linkPaths("selectedItem","items."+W)})};
A.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
A.prototype.isSelected=function(k){return this.__selectedMap.has(k)};
A.prototype.isIndexSelected=function(k){return this.isSelected(this.items[k])};
A.prototype.__deselectChangedIdx=function(k){var d=this,W=this.__selectedIndexForItemIndex(k);if(W>=0){var z=0;this.__selectedMap.forEach(function(u,B){W==z++&&d.deselect(B)})}};
A.prototype.__selectedIndexForItemIndex=function(k){if(k=this.__dataLinkedPaths["items."+k])return parseInt(k.slice(9),10)};
A.prototype.deselect=function(k){var d=this.__selectedMap.get(k);if(d>=0){this.__selectedMap.delete(k);var W;this.multi&&(W=this.__selectedIndexForItemIndex(d));this.__updateLinks();this.multi?this.splice("selected",W,1):this.selected=this.selectedItem=null}};
A.prototype.deselectIndex=function(k){this.deselect(this.items[k])};
A.prototype.select=function(k){this.selectIndex(this.items.indexOf(k))};
A.prototype.selectIndex=function(k){var d=this.items[k];this.isSelected(d)?this.toggle&&this.deselectIndex(k):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(d,k),this.__updateLinks(),this.multi?this.push("selected",d):this.selected=this.selectedItem=d)};
_.nP.Object.defineProperties(A,{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 A}),Gnw=Pyp(Ci),Ki=function(){return Gnw.apply(this,arguments)||this};
_.I(Ki,Gnw);_.nP.Object.defineProperties(Ki,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Ki.is,Ki);var F$J=window.Polymer;window.Polymer=function(A){return window.Polymer._polymerFn(A)};
F$J&&Object.assign(Polymer,F$J);Polymer._polymerFn=function(){throw Error("Md");};/*

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:QIr,resolveUrl:_.Hu,pathFromUrl:VYI};Polymer.DomModule=bo;Polymer.Async={timeOut:_.Gt,animationFrame:_.zA,idlePeriod:d00,microTask:XF};Polymer.dedupingMixin=Fd;Polymer.wrap=_.R0;Polymer.PropertiesChanged=z7A;Polymer.telemetry={instanceCount:q6J,incrementInstanceCount:function(){q6J++},
registrations:tYA,register:NyQ,dumpRegistrations:function(){tYA.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=r6w;Polymer.CaseMap={dashToCamelCase:kY,camelToDashCase:qo};Polymer.PropertyAccessors=h7Z;Polymer.TemplateStamp=J6w;Polymer.Path={isPath:ro,root:uo,isAncestor:oqQ,isDescendant:Bu,translate:e8,matches:$Lb,normalize:xY,split:AdN,get:io,set:H6l,isDeep:ro};Polymer.Settings={useShadow:CP,useNativeCSSProperties:EIw,useNativeCustomElements:UHw,get rootPath(){return nIA},setRootPath:function(A){nIA=A},
get sanitizeDOMValue(){return Tb},setSanitizeDOMValue:function(A){Tb=A},
get passiveTouchGestures(){return Z6W},setPassiveTouchGestures:function(A){Z6W=A},
get strictTemplatePolicy(){return pP},setStrictTemplatePolicy:function(A){pP=A},
get allowTemplateFromDomModule(){return ZFN},setAllowTemplateFromDomModule:function(A){ZFN=A},
get legacyOptimizations(){return S8},setLegacyOptimizations:function(A){S8=A},
get syncInitialRender(){return fe0},setSyncInitialRender:function(A){fe0=A},
get legacyUndefined(){return JM},setLegacyUndefined:function(A){JM=A},
get legacyWarnings(){return cu},setLegacyWarnings:function(A){cu=A},
get orderedComputed(){return wMG},setOrderedComputed:function(A){wMG=A},
get fastDomIf(){return In},setFastDomIf:function(A){In=A},
get removeNestedTemplates(){return jJ},setRemoveNestedTemplates:function(A){jJ=A},
get suppressTemplateNotifications(){return Ys},setSuppressTemplateNotifications:Ys};Polymer.rootPath!==void 0&&(nIA=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Tb=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Z6W=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(pP=Polymer.strictTemplatePolicy);ZFN=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(S8=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(fe0=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(JM=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(cu=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(wMG=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(In=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(jJ=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Ys=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Tb},
set:function(A){Tb=A}});Polymer.PropertyEffects=DP;Polymer.StyleGather={stylesFromModules:jLW,stylesFromModule:ydf,stylesFromTemplate:IsI,stylesFromModuleImports:YKW,cssFromModules:GsN,cssFromModule:PAm,cssFromTemplate:FWV,cssFromModuleImports:function(A){return(A=bo.import(A))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A):""}};Polymer.ElementMixin=SJ;Polymer.updateStyles=function(A){window.ShadyCSS&&window.ShadyCSS.styleDocument(A)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:SKb};Polymer.html=_.Y6Z;Polymer.htmlLiteral=function(A){return new CAf(A,_.o7.apply(1,arguments))};Polymer.Element=Ci;Polymer.ArraySelectorMixin=Pyp;Polymer.ArraySelector=Ki;var XWi=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,D0w=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,OOl=/@media\s(.*)/;var QLA=null,ppr=window.HTMLImports&&window.HTMLImports.whenReady||null,VKI;var S6A=null,an=null,co=function(){this.customStyles=[];this.enqueued=!1;Ecm(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Cyj=function(A){!A.enqueued&&an&&(A.enqueued=!0,Ecm(an))};
co.prototype.addCustomStyle=function(A){A.__seenByShadyCSS||(A.__seenByShadyCSS=!0,this.customStyles.push(A),Cyj(this))};
co.prototype.getStyleForCustomStyle=function(A){if(A.__shadyCSSCachedStyle)return A.__shadyCSSCachedStyle;var H;A.getStyle?H=A.getStyle():H=A;return H};
co.prototype.processStyles=function(){for(var A=this.customStyles,H=0;H<A.length;H++){var k=A[H];if(!k.__shadyCSSCachedStyle){var d=this.getStyleForCustomStyle(k);d&&(d=d.__appliedElement||d,S6A&&S6A(d),k.__shadyCSSCachedStyle=d)}}return A};
co.prototype.addCustomStyle=co.prototype.addCustomStyle;co.prototype.getStyleForCustomStyle=co.prototype.getStyleForCustomStyle;co.prototype.processStyles=co.prototype.processStyles;Object.defineProperties(co.prototype,{transformCallback:{get:function(){return S6A},
set:function(A){S6A=A}},
validateCallback:{get:function(){return an},
set:function(A){var H=!1;an||(H=!0);an=A;H&&Cyj(this)}}});var lsl=!(window.ShadyDOM&&window.ShadyDOM.inUse),UeW,Mo;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Mo=window.ShadyCSS.cssBuild);var K$i=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?UeW=window.ShadyCSS.nativeCss:window.ShadyCSS?(tKm(window.ShadyCSS),window.ShadyCSS=void 0):tKm(window.WebComponents&&window.WebComponents.flags);var xBX=UeW;var aSw=new co;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(A,H){aSw.processStyles();asV(A,H)},
styleElement:function(){aSw.processStyles()},
styleDocument:function(A){aSw.processStyles();asV(document.body,A)},
getComputedStyleValue:function(A,H){return cdI(A,H)},
flushCustomStyles:function(){},
nativeCss:xBX,nativeShadow:lsl,cssBuild:Mo,disableRuntime:K$i});window.ShadyCSS.CustomStyleInterface=aSw;var c6j=window.ShadyCSS.CustomStyleInterface,pi=function(){var A=HTMLElement.call(this)||this;A._style=null;c6j.addCustomStyle(A);return A};
_.I(pi,HTMLElement);pi.prototype.getStyle=function(){if(this._style)return this._style;var A=this.querySelector("style");if(!A)return null;this._style=A;var H=A.getAttribute("include");H&&(A.removeAttribute("include"),A.textContent=GsN(H)+A.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
pi.prototype.getStyle=pi.prototype.getStyle;window.customElements.define("custom-style",pi);Polymer.CustomStyle=pi;var Q8=function(){this._timer=this._callback=this._asyncModule=null},V8,QOJ;
Q8.prototype.setConfig=function(A,H){var k=this;this._asyncModule=A;this._callback=H;this._timer=this._asyncModule.run(function(){k._timer=null;V8.delete(k);k._callback()})};
Q8.prototype.cancel=function(){this.isActive()&&(pWw(this),V8.delete(this))};
var pWw=function(A){A.isActive()&&(A._asyncModule.cancel(A._timer),A._timer=null)};
Q8.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Q8.prototype.isActive=function(){return this._timer!=null};
_.E4=function(A,H,k){A instanceof Q8?pWw(A):A=new Q8;A.setConfig(H,k);return A};
V8=new Set;_.U4=function(A){V8.add(A)};
QOJ=function(){var A=!!V8.size;V8.forEach(function(H){try{H.flush()}catch(k){setTimeout(function(){throw k;})}});
return A};var MKW=typeof document.head.style.touchAction==="string",NKI=["mousedown","mousemove","mouseup","click"],sXC=[0,1,4,2],VDw;try{VDw=(new MouseEvent("test",{buttons:1})).buttons===1}catch(A){VDw=!1}var HX8=VDw,ncW=!1;(function(){try{var A=Object.defineProperty({},"passive",{get:function(){ncW=!0}});
window.addEventListener("test",null,A);window.removeEventListener("test",null,A)}catch(H){}})();
var wpQ=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),ocN=[],E90={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},h6I={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},$eN=function(A){var H=A.sourceCapabilities;if(!H||H.firesTouchEvents)if(A.__polymerGesturesHandled={skip:!0},A.type==="click"){H=!1;for(var k=z6C(A),d=0;d<k.length;d++){if(k[d].nodeType===Node.ELEMENT_NODE)if(k[d].localName==="label")ocN.push(k[d]);
else if(E90[k[d].localName]){var W=k[d];var z=Array.prototype.slice.call(W.labels||[]);if(!z.length){z=[];try{var u=W.getRootNode();if(W.id){var B=u.querySelectorAll("label[for = '"+W.id+"']");for(W=0;W<B.length;W++)z.push(B[W])}}catch(h){}}for(W=0;W<z.length;W++)H=H||ocN.indexOf(z[W])>-1}if(k[d]===U0j)return}H||(A.preventDefault(),A.stopPropagation())}},U0j=null,lG=null,rYI=0,uMV=0,q8b=-1,Bdl=!1;
document.addEventListener("touchend",function(A){lG||AYI(!0);U0j=z6C(A)[0];lG=_.E4(lG,_.Gt.after(2500),function(){AYI();lG=U0j=null})},ncW?{passive:!0}:!1);
var z6C=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(A){return A.composedPath&&A.composedPath()||[]},YY={},j8=[];
e6v({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){yb(this.info)},
mousedown:function(A){if(vu(A)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),k=this;dJN(this.info,function(d){vu(d)||(Dc("up",H,d),yb(k.info))},function(d){vu(d)&&Dc("up",H,d);
yb(k.info)});
Dc("down",H,A)}},
touchstart:function(A){Dc("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),A.changedTouches[0],A)},
touchend:function(A){Dc("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),A.changedTouches[0],A)}});
e6v({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(A){this.moves.length>2&&this.moves.shift();this.moves.push(A)},
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;yb(this.info)},
mousedown:function(A){if(vu(A)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),k=this,d=function(W){var z=W.clientX,u=W.clientY;xJf(k.info,z,u)&&(k.info.state=k.info.started?W.type==="mouseup"?"end":"track":"start",k.info.state==="start"&&I0("tap"),k.info.addMove({x:z,y:u}),vu(W)||(k.info.state="end",yb(k.info)),H&&iXr(k.info,H,W),k.info.started=!0)};
dJN(this.info,d,function(W){k.info.started&&d(W);yb(k.info)});
this.info.x=A.clientX;this.info.y=A.clientY}},
touchstart:function(A){A=A.changedTouches[0];this.info.x=A.clientX;this.info.y=A.clientY},
touchmove:function(A){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A=A.changedTouches[0];var k=A.clientX,d=A.clientY;xJf(this.info,k,d)&&(this.info.state==="start"&&I0("tap"),this.info.addMove({x:k,y:d}),iXr(this.info,H,A),this.info.state="track",this.info.started=!0)},
touchend:function(A){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A=A.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:A.clientX,y:A.clientY}),iXr(this.info,H,A))}});
e6v({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(A){vu(A)&&(this.info.x=A.clientX,this.info.y=A.clientY)},
click:function(A){vu(A)&&OX8(this.info,A)},
touchstart:function(A){A=A.changedTouches[0];this.info.x=A.clientX;this.info.y=A.clientY},
touchend:function(A){OX8(this.info,A.changedTouches[0],A)}});var lSk=Fd(function(A){var H=function(){return A.apply(this,arguments)||this};
_.I(H,A);H.prototype._addEventListenerToNode=function(k,d,W){Pu(k,d,W)||A.prototype._addEventListenerToNode.call(this,k,d,W)};
H.prototype._removeEventListenerFromNode=function(k,d,W){Gb(k,d,W)||A.prototype._removeEventListenerFromNode.call(this,k,d,W)};
return H});var t$=Fd(function(A){var H=function(){return A.apply(this,arguments)||this};
_.I(H,A);H.prototype._shouldPropertyChange=function(k,d,W){return R6I(this,k,d,W,!0)};
return H}),tDw=Fd(function(A){var H=function(){return A.apply(this,arguments)||this};
_.I(H,A);H.prototype._shouldPropertyChange=function(k,d,W){return R6I(this,k,d,W,this.mutableData)};
_.nP.Object.defineProperties(H,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return H});
t$._mutablePropertyChange=R6I;var TdW=!1;var Nup=lSk(tDw(DP(HTMLElement))),Nr=function(){var A=Nup.call(this)||this;if(pP)throw Error("Nd");A.root=null;A.$=null;A.__children=null;return A};
_.I(Nr,Nup);_.q=Nr.prototype;_.q.attributeChangedCallback=function(){this.mutableData=!0};
_.q.connectedCallback=function(){mJf()||(this.style.display="none");this.render()};
_.q.disconnectedCallback=function(){this.__removeChildren()};
_.q.__insertChildren=function(){(0,_.R0)((0,_.R0)(this).parentNode).insertBefore(this.root,this)};
_.q.__removeChildren=function(){if(this.__children)for(var A=0;A<this.__children.length;A++)this.root.appendChild(this.__children[A])};
_.q.render=function(){var A=this;if(!this.__children){var H=H||this.querySelector("template");if(!H){var k=new MutationObserver(function(){if(H=A.querySelector("template"))k.disconnect(),A.render();else throw Error("Od");});
k.observe(this,{childList:!0});return}this.root=this._stampTemplate(H);this.$=this.root.$;this.__children=[];for(var d=this.root.firstChild;d;d=d.nextSibling)this.__children[this.__children.length]=d;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.nP.Object.defineProperties(Nr,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Nr);Polymer.Debouncer=Q8;Polymer.Gestures={gestures:YY,recognizers:j8,deepTargetFind:W9V,addListener:Pu,removeListener:Gb,register:e6v,setTouchAction:_.FF,prevent:I0,resetMouseCanceller:function(){lG&&lG.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Pu,remove:Gb};Polymer.GestureEventListeners=lSk;Polymer.MutableData=t$;Polymer.OptionalMutableData=tDw;Polymer.DomBind=Nr;_.Mr=function(){do{var A=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var H=QOJ()}while(A||H)};var JYf=null;gVX.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:gVX,writable:!0}});var PpQ=DP(gVX),Y88=t$(PpQ),MDi=DP(function(){}),KP=function(A){var H=MDi.call(this)||this;
H._configureProperties(A);H.root=H._stampTemplate(H.__dataHost);var k=[];H.children=k;for(var d=H.root.firstChild;d;d=d.nextSibling)k.push(d),d.__templatizeInstance=H;H.__templatizeOwner&&H.__templatizeOwner.__hideTemplateChildren__&&H._showHideChildren(!0);k=H.__templatizeOptions;(A&&k.instanceProps||!k.instanceProps)&&H._enableProperties();return H};
_.I(KP,MDi);_.q=KP.prototype;_.q._configureProperties=function(A){if(this.__templatizeOptions.forwardHostProp)for(var H in this.__hostProps)this._setPendingProperty(H,this.__dataHost["_host_"+H]);for(var k in A)this._setPendingProperty(k,A[k])};
_.q.forwardHostProp=function(A,H){this._setPendingPropertyOrPath(A,H,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.q._addEventListenerToNode=function(A,H,k){var d=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(A,H,function(z){z.model=d;k(z)});
else{var W=this.__dataHost.__dataHost;W&&W._addEventListenerToNode(A,H,k)}};
_.q._showHideChildren=function(A){L9I(A,this.children)};
_.q._setUnmanagedPropertyToNode=function(A,H,k){A.__hideTemplateChildren__&&A.nodeType==Node.TEXT_NODE&&H=="textContent"?A.__polymerTextContent__=k:MDi.prototype._setUnmanagedPropertyToNode.call(this,A,H,k)};
_.q.dispatchEvent=function(){return!0};
_.nP.Object.defineProperties(KP.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var A=this.__parentModel;if(!A){var H;A=this;do A=A.__dataHost.__dataHost;while((H=A.__templatizeOptions)&&!H.parentModel);this.__parentModel=A}return A}}});
var yYQ=t$(KP);var ni=function(){var A=Ci.call(this)||this;A.__renderDebouncer=null;A._lastIf=!1;A.__hideTemplateChildren__=!1;return A};
_.I(ni,Ci);_.q=ni.prototype;_.q.__debounceRender=function(){var A=this;this.__renderDebouncer=_.E4(this.__renderDebouncer,XF,function(){return A.__render()});
_.U4(this.__renderDebouncer)};
_.q.disconnectedCallback=function(){Ci.prototype.disconnectedCallback.call(this);var A=(0,_.R0)(this).parentNode;A&&(A.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.R0)(A).host)||this.__teardownInstance()};
_.q.connectedCallback=function(){Ci.prototype.connectedCallback.call(this);mJf()||(this.style.display="none");this.if&&this.__debounceRender()};
_.q.__ensureTemplate=function(){var A=this;if(!this.__template){var H=this._templateInfo?this:(0,_.R0)(this).querySelector("template");if(!H){var k=new MutationObserver(function(){if((0,_.R0)(A).querySelector("template"))k.disconnect(),A.__render();else throw Error("Rd");});
k.observe(this,{childList:!0});return!1}this.__template=H}return!0};
_.q.__ensureInstance=function(){var A=(0,_.R0)(this).parentNode;if(this.__hasInstance()){var H=this.__getInstanceNodes();if(H&&H.length&&(0,_.R0)(this).previousSibling!==H[H.length-1])for(var k=0,d=void 0;k<H.length&&(d=H[k]);k++)(0,_.R0)(A).insertBefore(d,this)}else{if(!A||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(A)}return!0};
_.q.render=function(){_.Mr()};
_.q.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Ys&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.q.__hasInstance=function(){};
_.q.__getInstanceNodes=function(){};
_.q.__createAndInsertInstance=function(){};
_.q.__teardownInstance=function(){};
_.q._showHideChildren=function(){};
_.nP.Object.defineProperties(ni,{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:ni.prototype.__debounceRender},restamp:{type:Boolean,observer:ni.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var n9w=function(){var A=ni.call(this)||this;A.__instance=null;A.__syncInfo=null;return A};
_.I(n9w,ni);_.q=n9w.prototype;_.q.__hasInstance=function(){return!!this.__instance};
_.q.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.q.__createAndInsertInstance=function(A){var H=this,k=this.__dataHost||this;if(pP&&!this.__dataHost)throw Error("Pd");var d=k._bindTemplate(this.__template,!0);d.runEffects=function(W,z,u){var B=H.__syncInfo;if(H.if)B&&(H.__syncInfo=null,H._showHideChildren(),z=Object.assign(B.changedProps,z)),W(z,u);else if(H.__instance)if(B||(B=H.__syncInfo={runEffects:W,changedProps:{}}),u)for(var h in z)W=uo(h),B.changedProps[W]=H.__dataHost[W];else Object.assign(B.changedProps,z)};
this.__instance=k._stampTemplate(this.__template,d);(0,_.R0)(A).insertBefore(this.__instance,this)};
_.q.__syncHostProperties=function(){var A=this.__syncInfo;A&&(this.__syncInfo=null,A.runEffects(A.changedProps,!1))};
_.q.__teardownInstance=function(){var A=this.__dataHost||this;this.__instance&&(A._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.q._showHideChildren=function(){var A=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==A&&(this.__instance.__hidden=A,L9I(A,this.__instance.templateInfo.childNodes));A||this.__syncHostProperties()};
var Z0w=function(){var A=ni.call(this)||this;A.__ctor=null;A.__instance=null;A.__invalidProps=null;return A};
_.I(Z0w,ni);_.q=Z0w.prototype;_.q.__hasInstance=function(){return!!this.__instance};
_.q.__getInstanceNodes=function(){return this.__instance.children};
_.q.__createAndInsertInstance=function(A){this.__ctor||(this.__ctor=a0(this.__template,this,{mutableData:!0,forwardHostProp:function(H,k){this.__instance&&(this.if?this.__instance.forwardHostProp(H,k):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[uo(H)]=!0))}}));
this.__instance=new this.__ctor;(0,_.R0)(A).insertBefore(this.__instance.root,this)};
_.q.__teardownInstance=function(){if(this.__instance){var A=this.__instance.children;if(A&&A.length){var H=(0,_.R0)(A[0]).parentNode;if(H){H=(0,_.R0)(H);for(var k=0,d=void 0;k<A.length&&(d=A[k]);k++)H.removeChild(d)}}this.__instance=this.__invalidProps=null}};
_.q.__syncHostProperties=function(){var A=this.__invalidProps;if(A){this.__invalidProps=null;for(var H in A)this.__instance._setPendingProperty(H,this.__dataHost[H]);this.__instance._flushProperties()}};
_.q._showHideChildren=function(){var A=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==A&&(this.__instance.__hidden=A,this.__instance._showHideChildren(A));A||this.__syncHostProperties()};
_.eD=In?n9w:Z0w;customElements.define(_.eD.is,_.eD);Polymer.enqueueDebouncer=_.U4;Polymer.flush=_.Mr;Polymer.Templatize={templatize:a0,modelForElement:Cpm};Polymer.TemplateInstanceBase=KP;Polymer.DomIf=_.eD;var fS1=tDw(Ci),BW=function(){var A=fS1.call(this)||this;A.__instances=[];A.__renderDebouncer=null;A.__itemsIdxToInstIdx={};A.__chunkCount=null;A.__renderStartTime=null;A.__itemsArrayChanged=!1;A.__shouldMeasureChunk=!1;A.__shouldContinueChunking=!1;A.__chunkingId=0;A.__sortFn=null;A.__filterFn=null;A.__observePaths=null;A.__ctor=null;A.__isDetached=!0;A.template=null;return A};
_.I(BW,fS1);_.q=BW.prototype;_.q.disconnectedCallback=function(){fS1.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var A=0;A<this.__instances.length;A++)this.__detachInstance(A);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.q.connectedCallback=function(){fS1.prototype.connectedCallback.call(this);mJf()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var A=(0,_.R0)((0,_.R0)(this).parentNode),H=0;H<this.__instances.length;H++)this.__attachInstance(H,A);this.__chunkingId&&this.__render()}};
_.q.__ensureTemplatized=function(){var A=this;if(!this.__ctor){var H=this.template=this._templateInfo?this:this.querySelector("template");if(!H){var k=new MutationObserver(function(){if(A.querySelector("template"))k.disconnect(),A.__render();else throw Error("Sd");});
k.observe(this,{childList:!0});return!1}var d={};d[this.as]=!0;d[this.indexAs]=!0;d[this.itemsIndexAs]=!0;this.__ctor=a0(H,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:d,forwardHostProp:function(W,z){for(var u=this.__instances,B=0,h=void 0;B<u.length&&(h=u[B]);B++)h.forwardHostProp(W,z)},
notifyInstanceProp:function(W,z,u){$Lb(this.as,z)&&(W=W[this.itemsIndexAs],z==this.as&&(this.items[W]=u),z=e8(this.as,"items."+W,z),this.notifyPath(z,u))}})}return!0};
_.q.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.q.__functionFromPropertyValue=function(A){if(typeof A==="string"){var H=this.__getMethodHost();return function(){return H[A].apply(H,arguments)}}return A};
_.q.__sortChanged=function(A){this.__sortFn=this.__functionFromPropertyValue(A);this.items&&this.__debounceRender(this.__render)};
_.q.__filterChanged=function(A){this.__filterFn=this.__functionFromPropertyValue(A);this.items&&this.__debounceRender(this.__render)};
_.q.__computeFrameTime=function(A){return Math.ceil(1E3/A)};
_.q.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.q.__handleObservedPaths=function(A){if(this.__sortFn||this.__filterFn)if(!A)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var H=this.__observePaths,k=0;k<H.length;k++)A.indexOf(H[k])===0&&this.__debounceRender(this.__render,this.delay)};
_.q.__itemsChanged=function(A){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(A.path,A.value)||(A.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.q.__debounceRender=function(A,H){H=H===void 0?0:H;this.__renderDebouncer=_.E4(this.__renderDebouncer,H>0?_.Gt.after(H):XF,A.bind(this));_.U4(this.__renderDebouncer)};
_.q.render=function(){this.__debounceRender(this.__render);_.Mr()};
_.q.__render=function(){var A=this;if(this.__ensureTemplatized()){var H=this.items||[],k=this.__sortAndFilterItems(H),d=this.__calculateLimit(k.length);this.__updateInstances(H,d,k);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){A.__chunkingId=null;A.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Ys&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.q.__sortAndFilterItems=function(A){for(var H=this,k=Array(A.length),d=0;d<A.length;d++)k[d]=d;this.__filterFn&&(k=k.filter(function(W,z,u){return H.__filterFn(A[W],z,u)}));
this.__sortFn&&k.sort(function(W,z){return H.__sortFn(A[W],A[z])});
return k};
_.q.__calculateLimit=function(A){var H=A,k=this.__instances.length;if(this.initialCount){var d;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(H=Math.min(A,this.initialCount),this.__chunkCount=(d=Math.max(H-k,0))||1):(d=Math.min(Math.max(A-k,0),this.__chunkCount),H=Math.min(k+d,A));this.__shouldMeasureChunk=d===this.__chunkCount;this.__shouldContinueChunking=H<A;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return H};
_.q.__continueChunking=function(){if(this.__shouldMeasureChunk){var A=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/A*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.q.__updateInstances=function(A,H,k){var d=this.__itemsIdxToInstIdx={},W;for(W=0;W<H;W++){var z=this.__instances[W],u=k[W],B=A[u];d[u]=W;z?(z._setPendingProperty(this.as,B),z._setPendingProperty(this.indexAs,W),z._setPendingProperty(this.itemsIndexAs,u),z._flushProperties()):this.__insertInstance(B,W,u)}for(A=this.__instances.length-1;A>=W;A--)this.__detachAndRemoveInstance(A)};
_.q.__detachInstance=function(A){A=this.__instances[A];for(var H=(0,_.R0)(A.root),k=0;k<A.children.length;k++)H.appendChild(A.children[k]);return A};
_.q.__attachInstance=function(A,H){H.insertBefore(this.__instances[A].root,this)};
_.q.__detachAndRemoveInstance=function(A){this.__detachInstance(A);this.__instances.splice(A,1)};
_.q.__stampInstance=function(A,H,k){var d={};d[this.as]=A;d[this.indexAs]=H;d[this.itemsIndexAs]=k;return new this.__ctor(d)};
_.q.__insertInstance=function(A,H,k){A=this.__stampInstance(A,H,k);k=(k=this.__instances[H+1])?k.children[0]:this;(0,_.R0)((0,_.R0)(this).parentNode).insertBefore(A.root,k);return this.__instances[H]=A};
_.q._showHideChildren=function(A){for(var H=0;H<this.__instances.length;H++)this.__instances[H]._showHideChildren(A)};
_.q.__handleItemPath=function(A,H){var k=A.slice(6),d=k.indexOf(".");A=d<0?k:k.substring(0,d);if(A==parseInt(A,10)){k=d<0?"":k.substring(d+1);this.__handleObservedPaths(k);if(A=this.__instances[this.__itemsIdxToInstIdx[A]])A._setPendingPropertyOrPath(this.as+(k?"."+k:""),H,!1,!0),A._flushProperties();return!0}};
_.q.itemForElement=function(A){return(A=this.modelForElement(A))&&A[this.as]};
_.q.indexForElement=function(A){return(A=this.modelForElement(A))&&A[this.indexAs]};
_.q.modelForElement=function(A){return Cpm(this.template,A)};
_.nP.Object.defineProperties(BW,{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:BW.prototype.__sortChanged},filter:{type:Function,observer:BW.prototype.__filterChanged},observe:{type:String,observer:BW.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Ys,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.*)"]}}});
BW.prototype._setRenderedItemCount=function(){};
customElements.define(BW.is,BW);Polymer.DomRepeat=BW;var wWi=function(A,H){var k=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=A;this.callback=H;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){k._schedule()};
this.connect();this._schedule()},o9i=function(A){var H=(0,_.R0)(A);
if(Qb(A))return H.assignedNodes({flatten:!0});A=[];for(var k=0;k<H.childNodes.length;k++){var d=H.childNodes[k];Qb(d)?A.push.apply(A,_.fV((0,_.R0)(d).assignedNodes({flatten:!0}))):A.push(d)}return A};
_.q=wWi.prototype;_.q.connect=function(){var A=this;Qb(this._target)?this._listenSlots([this._target]):(0,_.R0)(this._target).children&&(this._listenSlots((0,_.R0)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(H){A._processMutations(H)}):(this._nativeChildrenObserver=new MutationObserver(function(H){A._processMutations(H)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.q.disconnect=function(){Qb(this._target)?this._unlistenSlots([this._target]):(0,_.R0)(this._target).children&&(this._unlistenSlots((0,_.R0)(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};
_.q._schedule=function(){var A=this;this._scheduled||(this._scheduled=!0,XF.run(function(){return A.flush()}))};
_.q._processMutations=function(A){this._processSlotMutations(A);this.flush()};
_.q._processSlotMutations=function(A){if(A)for(var H=0;H<A.length;H++){var k=A[H];k.addedNodes&&this._listenSlots(k.addedNodes);k.removedNodes&&this._unlistenSlots(k.removedNodes)}};
_.q.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 A={target:this._target,addedNodes:[],removedNodes:[]},H=o9i(this._target),k=SKb(H,this._effectiveNodes),d=0,W=void 0;d<k.length&&(W=k[d]);d++)for(var z=0,u=void 0;z<W.removed.length&&(u=W.removed[z]);z++)A.removedNodes.push(u);
d=0;for(W=void 0;d<k.length&&(W=k[d]);d++)for(z=W.index;z<W.index+W.addedCount;z++)A.addedNodes.push(H[z]);this._effectiveNodes=H;H=!1;if(A.addedNodes.length||A.removedNodes.length)H=!0,this.callback.call(this._target,A);return H};
_.q._listenSlots=function(A){for(var H=0;H<A.length;H++){var k=A[H];Qb(k)&&k.addEventListener("slotchange",this._boundSchedule)}};
_.q._unlistenSlots=function(A){for(var H=0;H<A.length;H++){var k=A[H];Qb(k)&&k.removeEventListener("slotchange",this._boundSchedule)}};var ZP=Element.prototype,$00=ZP.matches||ZP.matchesSelector||ZP.mozMatchesSelector||ZP.msMatchesSelector||ZP.oMatchesSelector||ZP.webkitMatchesSelector,A7J=function(A,H){return $00.call(A,H)},Vb=function(A){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(A);
this.node=A},dt1;
_.q=Vb.prototype;_.q.observeNodes=function(A){return new wWi(this.node,A)};
_.q.unobserveNodes=function(A){A.disconnect()};
_.q.notifyObserver=function(){};
_.q.deepContains=function(A){if((0,_.R0)(this.node).contains(A))return!0;var H=A;for(A=A.ownerDocument;H&&H!==A&&H!==this.node;)H=(0,_.R0)(H).parentNode||(0,_.R0)(H).host;return H===this.node};
_.q.getOwnerRoot=function(){return(0,_.R0)(this.node).getRootNode()};
_.q.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.R0)(this.node).assignedNodes({flatten:!0}):[]};
_.q.getDestinationInsertionPoints=function(){for(var A=[],H=(0,_.R0)(this.node).assignedSlot;H;)A.push(H),H=(0,_.R0)(H).assignedSlot;return A};
_.q.importNode=function(A,H){return(0,_.R0)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(A,H)};
_.q.getEffectiveChildNodes=function(){return o9i(this.node)};
_.q.queryDistributedElements=function(A){for(var H=this.getEffectiveChildNodes(),k=[],d=0,W=H.length,z=void 0;d<W&&(z=H[d]);d++)z.nodeType===Node.ELEMENT_NODE&&A7J(z,A)&&k.push(z);return k};
_.nP.Object.defineProperties(Vb.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var A=this.node;return A._activeElement!==void 0?A._activeElement:A.activeElement}}});
var fi=function(A){this.event=A};
_.nP.Object.defineProperties(fi.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 H3p=Vb;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var syw=window.ShadyDOM.Wrapper,kAw=function(){return syw.apply(this,arguments)||this};
_.I(kAw,syw);Object.getOwnPropertyNames(Vb.prototype).forEach(function(A){A!="activeElement"&&A!="constructor"&&(kAw.prototype[A]=Vb.prototype[A])});
a_W(kAw.prototype,["classList"]);H3p=kAw;Object.defineProperties(fi.prototype,{localTarget:{get:function(){var A=this.event.currentTarget;A=A&&_.WB(A).getOwnerRoot();for(var H=this.path,k=0;k<H.length;k++){var d=H[k];if(_.WB(d).getOwnerRoot()===A)return d}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else K9I(),a_W(Vb.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),cYv();dt1=H3p;_.WB=function(A){A=A||document;if(A instanceof H3p)return A;if(A instanceof fi)return A;var H=A.__domApi;H||(A instanceof Event?H=new fi(A):H=new H3p(A),A.__domApi=H);return H};var Wuj=/:host\(:dir\((ltr|rtl)\)\)/g,zSZ=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,qRw=/:dir\((?:ltr|rtl)\)/,r7A=!(!window.ShadyDOM||!window.ShadyDOM.inUse),UZ=[],w6=null,EZ="",ucp=Fd(function(A){r7A||w6||(EZ=document.documentElement.getAttribute("dir"),w6=new MutationObserver(pZC),w6.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var H=h7Z(A);A=function(){var k=H.call(this)||this;k.__autoDirOptOut=!1;return k};
_.I(A,H);A._processStyleText=function(k,d){k=H._processStyleText.call(this,k,d);!r7A&&qRw.test(k)&&(k=this._replaceDirInCssText(k),this.__activateDir=!0);return k};
A._replaceDirInCssText=function(k){k=k.replace(Wuj,':host([dir="$1"])');return k=k.replace(zSZ,':host([dir="$2"]) $1')};
A.prototype.ready=function(){H.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
A.prototype.connectedCallback=function(){H.prototype.connectedCallback&&H.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(w6&&w6.takeRecords().length&&pZC(),UZ.push(this),this.__autoDirOptOut||this.setAttribute("dir",EZ))};
A.prototype.disconnectedCallback=function(){H.prototype.disconnectedCallback&&H.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var k=UZ.indexOf(this);k>-1&&UZ.splice(k,1)}};
A.__activateDir=!1;return A});var BbA=function(A){for(;A;){var H=Object.getOwnPropertyDescriptor(A,"observedAttributes");if(H)return H.get;A=Object.getPrototypeOf(A.prototype).constructor}return function(){return[]}};
Fd(function(A){var H=SJ(A),k=BbA(H);A=function(){return H.call(this)||this};
_.I(A,H);A.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:H.prototype._initializeProperties.call(this)};
A.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
A.prototype._canApplyPropertyDefault=function(d){return H.prototype._canApplyPropertyDefault.call(this,d)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(d))};
A.prototype.attributeChangedCallback=function(d,W,z,u){d=="disable-upgrade"?this.__isUpgradeDisabled&&z==null&&(H.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.R0)(this).isConnected&&H.prototype.connectedCallback.call(this)):H.prototype.attributeChangedCallback.call(this,d,W,z,u)};
A.prototype.connectedCallback=function(){this.__isUpgradeDisabled||H.prototype.connectedCallback.call(this)};
A.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||H.prototype.disconnectedCallback.call(this)};
_.nP.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k.call(this).concat("disable-upgrade")}}});
return A});var lo=!1,VaI=[],tM=[];var tab=window.ShadyDOM,Ndr=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",nVI):document.readyState==="interactive"||document.readyState==="complete"?nVI():window.addEventListener("DOMContentLoaded",nVI);var wZb=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=""},ZXX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,f_I=/@import[^;]*;/gim,kjm=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,dBX=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,WNN=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,zZW=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,HOI=/^@[^\s]*keyframes/,
AKI=/\s+/g;var qXr={};var BSQ=Promise.resolve();var eSi=new Set;var xtw=/;\s*/m,i3j=/^\s*(initial)|(inherit)\s*$/,hS1=/\s*!important/,O3w=function(){this._map={}};
O3w.prototype.set=function(A,H){A=A.trim();this._map[A]={properties:H,dependants:{}}};
O3w.prototype.get=function(A){A=A.trim();return this._map[A]||null};
var RSp=null,on=function(){this._measureElement=this._currentElement=null;this._map=new O3w};
_.q=on.prototype;_.q.detectMixin=function(A){A=D0w.test(A)||XWi.test(A);D0w.lastIndex=0;XWi.lastIndex=0;return A};
_.q.transformTemplate=function(A,H){if(A._gatheredStyle===void 0){var k=[];for(var d=A.content.querySelectorAll("style"),W=0;W<d.length;W++){var z=d[W];if(z.hasAttribute("shady-unscoped")){if(!lsl){var u=z.textContent;if(!eSi.has(u)){eSi.add(u);var B=document.createElement("style");B.setAttribute("shady-unscoped","");B.textContent=u;document.head.appendChild(B)}z.parentNode.removeChild(z)}}else k.push(z.textContent),z.parentNode.removeChild(z)}(k=k.join("").trim())?(d=document.createElement("style"),
d.textContent=k,A.content.insertBefore(d,A.content.firstChild),k=d):k=null;A._gatheredStyle=k}return(A=A._gatheredStyle)?this.JSC$11591_transformStyle(A,H):null};
_.q.JSC$11591_transformStyle=function(A,H){H=H===void 0?"":H;var k=hZI(A);this.transformRules(k,H);A.textContent=iOQ(k);return k};
_.q.transformCustomStyle=function(A){var H=this,k=hZI(A);RZX(k,function(d){d.selector===":root"&&(d.selector="html");H.transformRule(d)});
A.textContent=iOQ(k);return k};
_.q.transformRules=function(A,H){var k=this;this._currentElement=H;RZX(A,function(d){k.transformRule(d)});
this._currentElement=null};
_.q.transformRule=function(A){A.cssText=TbQ(this,A.parsedCssText,A);A.selector===":root"&&(A.selector=":host > *")};
var TbQ=function(A,H,k){H=H.replace(XWi,function(d,W,z,u){return A._produceCssProperties(d,W,z,u,k)});
return A._consumeCssProperties(H,k)};
_.q=on.prototype;_.q._getInitialValueForProperty=function(A){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(A)};
_.q._fallbacksFromPreviousRules=function(A){for(var H=this,k=A;k.parent;)k=k.parent;var d={},W=!1;RZX(k,function(z){(W=W||z===A)||z.selector===A.selector&&Object.assign(d,H._cssTextToMap(z.parsedCssText))});
return d};
_.q._consumeCssProperties=function(A,H){for(var k;k=D0w.exec(A);){var d=k[0],W=k[1];k=k.index;var z=k+d.indexOf("@apply"),u=k+d.length;d=A.slice(0,z);A=A.slice(u);z=H?this._fallbacksFromPreviousRules(H):{};Object.assign(z,this._cssTextToMap(d));W=this._atApplyToCssProperties(W,z);A=d+W+A;D0w.lastIndex=k+W.length}return A};
_.q._atApplyToCssProperties=function(A,H){A=A.replace(xtw,"");var k=[],d=this._map.get(A);d||(this._map.set(A,{}),d=this._map.get(A));if(d){this._currentElement&&(d.dependants[this._currentElement]=!0);var W,z=d.properties;for(W in z){var u=H&&H[W];d=[W,": var(",A,"_-_",W];u&&d.push(",",u.replace(hS1,""));d.push(")");hS1.test(z[W])&&d.push(" !important");k.push(d.join(""))}}return k.join("; ")};
_.q._replaceInitialOrInherit=function(A,H){var k=i3j.exec(H);k&&(H=k[1]?this._getInitialValueForProperty(A):"apply-shim-inherit");return H};
_.q._cssTextToMap=function(A,H){H=H===void 0?!1:H;A=A.split(";");for(var k,d,W={},z=0;z<A.length;z++)if(k=A[z])d=k.split(":"),d.length>1&&(k=d[0].trim(),d=d.slice(1).join(":"),H&&(d=this._replaceInitialOrInherit(k,d)),W[k]=d);return W};
_.q._invalidateMixinEntry=function(A){if(RSp)for(var H in A.dependants)H!==this._currentElement&&RSp(H)};
_.q._produceCssProperties=function(A,H,k,d,W){var z=this;k&&TSC(k,function(v,y){y&&z._map.get(y)&&(d="@apply "+y+";")});
if(!d)return A;var u=this._consumeCssProperties(""+d,W);W=A.slice(0,A.indexOf("--"));var B=u=this._cssTextToMap(u,!0),h=this._map.get(H),O=h&&h.properties;O?B=Object.assign(Object.create(O),u):this._map.set(H,B);var T=[],m,J=!1;for(m in B){var g=u[m];g===void 0&&(g="initial");!O||m in O||(J=!0);T.push(H+"_-_"+m+": "+g)}J&&this._invalidateMixinEntry(h);h&&(h.properties=B);k&&(W=A+";"+W);return W+T.join("; ")+";"};
on.prototype.detectMixin=on.prototype.detectMixin;on.prototype.transformStyle=on.prototype.JSC$11591_transformStyle;on.prototype.transformCustomStyle=on.prototype.transformCustomStyle;on.prototype.transformRules=on.prototype.transformRules;on.prototype.transformRule=on.prototype.transformRule;on.prototype.transformTemplate=on.prototype.transformTemplate;on.prototype._separator="_-_";Object.defineProperty(on.prototype,"invalidCallback",{get:function(){return RSp},
set:function(A){RSp=A}});var $s=new on,mtJ=function(){this.customStyleInterface=null;$s.invalidCallback=rKI},Ag=function(A){!A.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(A.customStyleInterface=window.ShadyCSS.CustomStyleInterface,A.customStyleInterface.transformCallback=function(H){$s.transformCustomStyle(H)},A.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){A.customStyleInterface.enqueued&&A.flushCustomStyles()})})};
_.q=mtJ.prototype;_.q.prepareTemplate=function(A,H){Ag(this);mBf(A)===""&&(qXr[H]=A,H=$s.transformTemplate(A,H),A._styleAst=H)};
_.q.flushCustomStyles=function(){Ag(this);if(this.customStyleInterface){var A=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var H=0;H<A.length;H++){var k=this.customStyleInterface.getStyleForCustomStyle(A[H]);k&&$s.transformCustomStyle(k)}this.customStyleInterface.enqueued=!1}}};
_.q.styleSubtree=function(A,H){Ag(this);H&&asV(A,H);if(A.shadowRoot)for(this.styleElement(A),A=A.shadowRoot.children||A.shadowRoot.childNodes,H=0;H<A.length;H++)this.styleSubtree(A[H]);else for(A=A.children||A.childNodes,H=0;H<A.length;H++)this.styleSubtree(A[H])};
_.q.styleElement=function(A){Ag(this);var H=A.localName,k;H?H.indexOf("-")>-1?k=H:k=A.getAttribute&&A.getAttribute("is")||"":k=A.is;H=qXr[k];if(!(H&&mBf(H)!==""||!H||uoV(H))){if(uoV(H)||H._applyShimValidatingVersion!==H._applyShimNextVersion)this.prepareTemplate(H,k),eZl(H);if(A=A.shadowRoot)if(A=A.querySelector("style"))A.__cssRules=H._styleAst,A.textContent=iOQ(H._styleAst)}};
_.q.styleDocument=function(A){Ag(this);this.styleSubtree(document.body,A)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var HD=new mtJ,J7Q=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(A,H){HD.flushCustomStyles();HD.prepareTemplate(A,H)},
prepareTemplateStyles:function(A,H,k){window.ShadyCSS.prepareTemplate(A,H,k)},
prepareTemplateDom:function(){},
styleSubtree:function(A,H){HD.flushCustomStyles();HD.styleSubtree(A,H)},
styleElement:function(A){HD.flushCustomStyles();HD.styleElement(A)},
styleDocument:function(A){HD.flushCustomStyles();HD.styleDocument(A)},
getComputedStyleValue:function(A,H){return cdI(A,H)},
flushCustomStyles:function(){HD.flushCustomStyles()},
nativeCss:xBX,nativeShadow:lsl,cssBuild:Mo,disableRuntime:K$i};J7Q&&(window.ShadyCSS.CustomStyleInterface=J7Q)}window.ShadyCSS.ApplyShim=$s;var g5A;g5A=window.ShadyCSS;_.su=Fd(function(A){A=lSk(SJ(A));var H=y6j?A:ucp(A),k=BbA(H),d={x:"pan-x",y:"pan-y",none:"none",all:"auto"};A=function(){return H.call(this)||this};
_.I(A,H);A.prototype.created=function(){};
A.prototype.__attributeReaction=function(W,z,u){(this.__dataAttributes&&this.__dataAttributes[W]||W==="disable-upgrade")&&this.attributeChangedCallback(W,z,u,null)};
A.prototype.setAttribute=function(W,z){if(oIJ&&!this._legacyForceObservedAttributes){var u=this.getAttribute(W);H.prototype.setAttribute.call(this,W,z);this.__attributeReaction(W,u,String(z))}else H.prototype.setAttribute.call(this,W,z)};
A.prototype.removeAttribute=function(W){if(oIJ&&!this._legacyForceObservedAttributes){var z=this.getAttribute(W);H.prototype.removeAttribute.call(this,W);this.__attributeReaction(W,z,null)}else H.prototype.removeAttribute.call(this,W)};
A.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
A.prototype._canApplyPropertyDefault=function(W){return H.prototype._canApplyPropertyDefault.call(this,W)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(W))};
A.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(H.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
A.prototype.attached=function(){};
A.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(H.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
A.prototype.detached=function(){};
A.prototype.attributeChangedCallback=function(W,z,u,B){z!==u&&(W=="disable-upgrade"?this.__isUpgradeDisabled&&u==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.R0)(this).isConnected&&this.connectedCallback()):(H.prototype.attributeChangedCallback.call(this,W,z,u,B),this.attributeChanged(W,z,u)))};
A.prototype.attributeChanged=function(){};
A.prototype._initializeProperties=function(){if(S8&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var W=Object.getPrototypeOf(this);W.hasOwnProperty("__hasRegisterFinished")||(this._registered(),W.__hasRegisterFinished=!0);H.prototype._initializeProperties.call(this);this.root=this;this.created();oIJ&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
A.prototype._takeAttributes=function(){for(var W=this.attributes,z=0,u=W.length;z<u;z++){var B=W[z];this.__attributeReaction(B.name,null,B.value)}};
A.prototype._registered=function(){};
A.prototype.ready=function(){this._ensureAttributes();H.prototype.ready.call(this)};
A.prototype._ensureAttributes=function(){};
A.prototype._applyListeners=function(){};
A.prototype.serialize=function(W){return this._serializeValue(W)};
A.prototype.deserialize=function(W,z){return this._deserializeValue(W,z)};
A.prototype.reflectPropertyToAttribute=function(W,z,u){this._propertyToAttribute(W,z,u)};
A.prototype.serializeValueToAttribute=function(W,z,u){this._valueToNodeAttribute(u||this,W,z)};
A.prototype.extend=function(W,z){if(!W||!z)return W||z;for(var u=Object.getOwnPropertyNames(z),B=0,h=void 0;B<u.length&&(h=u[B]);B++){var O=Object.getOwnPropertyDescriptor(z,h);O&&Object.defineProperty(W,h,O)}return W};
A.prototype.mixin=function(W,z){for(var u in z)W[u]=z[u];return W};
A.prototype.chainObject=function(W,z){W&&z&&W!==z&&(W.__proto__=z);return W};
A.prototype.instanceTemplate=function(W){W=this.constructor._contentForTemplate(W);return document.importNode(W,!0)};
A.prototype.fire=function(W,z,u){u=u||{};z=z===null||z===void 0?{}:z;W=new Event(W,{bubbles:u.bubbles===void 0?!0:u.bubbles,cancelable:!!u.cancelable,composed:u.composed===void 0?!0:u.composed});W.detail=z;(0,_.R0)(u.node||this).dispatchEvent(W);return W};
A.prototype.listen=function(W,z,u){W=W||this;var B=this.__boundListeners||(this.__boundListeners=new WeakMap),h=B.get(W);h||(h={},B.set(W,h));B=z+u;h[B]||(h[B]=this._addMethodEventListenerToNode(W,z,u,this))};
A.prototype.unlisten=function(W,z,u){W=W||this;var B=this.__boundListeners&&this.__boundListeners.get(W);u=z+u;var h=B&&B[u];h&&(this._removeEventListenerFromNode(W,z,h),B[u]=null)};
A.prototype.setScrollDirection=function(W,z){_.FF(z||this,d[W]||"auto")};
A.prototype.$$=function(W){return this.root.querySelector(W)};
A.prototype.distributeContent=function(){var W=_.WB(this);window.ShadyDOM&&W.shadowRoot&&ShadyDOM.flush()};
A.prototype.getEffectiveChildNodes=function(){return _.WB(this).getEffectiveChildNodes()};
A.prototype.queryDistributedElements=function(W){return _.WB(this).queryDistributedElements(W)};
A.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(W){return W.nodeType===Node.ELEMENT_NODE})};
A.prototype.getEffectiveTextContent=function(){for(var W=this.getEffectiveChildNodes(),z=[],u=0,B;B=W[u];u++)B.nodeType!==Node.COMMENT_NODE&&z.push(B.textContent);return z.join("")};
A.prototype.queryEffectiveChildren=function(W){return(W=this.queryDistributedElements(W))&&W[0]};
A.prototype.queryAllEffectiveChildren=function(W){return this.queryDistributedElements(W)};
A.prototype.getContentChildNodes=function(W){return(W=this.root.querySelector(W||"slot"))?_.WB(W).getDistributedNodes():[]};
A.prototype.getContentChildren=function(W){return this.getContentChildNodes(W).filter(function(z){return z.nodeType===Node.ELEMENT_NODE})};
A.prototype.isLightDescendant=function(W){return this!==W&&(0,_.R0)(this).contains(W)&&(0,_.R0)(this).getRootNode()===(0,_.R0)(W).getRootNode()};
A.prototype.isLocalDescendant=function(W){return this.root===(0,_.R0)(W).getRootNode()};
A.prototype.scopeSubtree=function(W,z){return MaC(W,z===void 0?!1:z)};
A.prototype.getComputedStyleValue=function(W){return g5A.getComputedStyleValue(this,W)};
A.prototype.debounce=function(W,z,u){this._debouncers=this._debouncers||{};return this._debouncers[W]=_.E4(this._debouncers[W],u>0?_.Gt.after(u):XF,z.bind(this))};
A.prototype.isDebouncerActive=function(W){this._debouncers=this._debouncers||{};W=this._debouncers[W];return!(!W||!W.isActive())};
A.prototype.flushDebouncer=function(W){this._debouncers=this._debouncers||{};(W=this._debouncers[W])&&W.flush()};
A.prototype.cancelDebouncer=function(W){this._debouncers=this._debouncers||{};(W=this._debouncers[W])&&W.cancel()};
A.prototype.async=function(W,z){return z>0?_.Gt.run(W.bind(this),z):~XF.run(W.bind(this))};
A.prototype.cancelAsync=function(W){W<0?XF.cancel(~W):_.Gt.cancel(W)};
A.prototype.create=function(W,z){W=document.createElement(W);if(z)if(W.setProperties)W.setProperties(z);else for(var u in z)W[u]=z[u];return W};
A.prototype.elementMatches=function(W,z){return A7J(z||this,W)};
A.prototype.toggleAttribute=function(W,z){var u=this;arguments.length===3&&(u=arguments[2]);arguments.length==1&&(z=!u.hasAttribute(W));if(z)return(0,_.R0)(u).setAttribute(W,""),!0;(0,_.R0)(u).removeAttribute(W);return!1};
A.prototype.toggleClass=function(W,z,u){u=u||this;arguments.length==1&&(z=!u.classList.contains(W));z?u.classList.add(W):u.classList.remove(W)};
A.prototype.transform=function(W,z){z=z||this;z.style.webkitTransform=W;z.style.transform=W};
A.prototype.translate3d=function(W,z,u,B){this.transform("translate3d("+W+","+z+","+u+")",B||this)};
A.prototype.arrayDelete=function(W,z){if(Array.isArray(W)){if(z=W.indexOf(z),z>=0)return W.splice(z,1)}else if(z=io(this,W).indexOf(z),z>=0)return this.splice(W,z,1);return null};
A.prototype._logger=function(W,z){Array.isArray(z)&&z.length===1&&Array.isArray(z[0])&&(z=z[0]);switch(W){case "log":case "warn":case "error":console[W].apply(console,_.fV(z))}};
A.prototype._log=function(){this._logger("log",_.o7.apply(0,arguments))};
A.prototype._warn=function(){this._logger("warn",_.o7.apply(0,arguments))};
A.prototype._error=function(){this._logger("error",_.o7.apply(0,arguments))};
A.prototype._logf=function(W){return["[%s::%s]",this.is,W].concat(_.fV(_.o7.apply(1,arguments)))};
_.nP.Object.defineProperties(A.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var W=(0,_.R0)(this).getRootNode();return W instanceof DocumentFragment?W.host:W}}});
_.nP.Object.defineProperties(A,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return oIJ&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],NyQ(this.prototype)),this.__observedAttributes):k.call(this).concat("disable-upgrade")}}});
A.prototype.is="";return A});Polymer.FlattenedNodesObserver=wWi;Polymer.DomApi=dt1;Polymer.EventApi=fi;Polymer.dom=_.WB;Polymer.dom.matchesSelector=A7J;Polymer.dom.flush=_.Mr;Polymer.dom.addDebouncer=_.U4;Polymer.DirMixin=ucp;Polymer.RenderStatus={beforeNextRender:_.l_V,afterNextRender:_.No,flush:function(){for(;VaI.length||tM.length;)QXr(VaI),QXr(tM);lo=!1}};Polymer.LegacyElementMixin=_.su;var b3w;b3w=t$._mutablePropertyChange;var Lu1={properties:{mutableData:Boolean},_shouldPropertyChange:function(A,H,k){return b3w(this,A,H,k,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(A,H,k){return b3w(this,A,H,k,!0)}};
Polymer.OptionalMutableDataBehavior=Lu1;var JKW={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},yKb={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},vXW=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},yKb),v5Q=(0,_.su)(HTMLElement),aBr=function(A,H){A||console.warn("Polymer.Class requires `info` argument");H=H?H(v5Q):v5Q;H=jMX(A,H,A.behaviors);H.is=H.prototype.is=
A.is;return H};Polymer.Class=aBr;Polymer.mixinBehaviors=function(A,H){return jMX({},(0,_.su)(H),A)};
Polymer.GenerateClassFromInfo=jMX;_.uy=function(A){var H=typeof A==="function"?A:_.uy.Class(A);A._legacyForceObservedAttributes&&(H.prototype._legacyForceObservedAttributes=A._legacyForceObservedAttributes);customElements.define(H.is,H);return H};
_.uy.Class=aBr;Polymer._polymerFn=_.uy;var y7k=window.onLegacyPolymerFunctionDefinedCallback;y7k&&y7k();var p_I={templatize:function(A,H){this._templatizerTemplate=A;this.ctor=a0(A,this,{mutableData:!!H,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(A){return new this.ctor(A)},
modelForElement:function(A){return Cpm(this._templatizerTemplate,A)}};Polymer.Templatizer=p_I;_.k2=(0,_.su)(HTMLElement).prototype;Polymer.Base=_.k2;var YXm=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Zc=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.I(_.Zc,PolymerFakeBaseClass);var fP=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.I(fP,PolymerFakeBaseClass);var PPQ=Symbol("Td"),aIV=[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 jy0=jy0||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},IfA;(function(A){function H(U,p,M){var Z=N.get(U);if(!Z){if(!M)return;Z=new D;N.set(U,Z)}U=Z.get(p);if(!U){if(!M)return;U=new D;Z.set(p,U)}return U}
function k(U,p,M){if(d(U,p,M))return!0;p=J(p);return p!==null?k(U,p,M):!1}
function d(U,p,M){p=H(p,M,!1);return p===void 0?!1:!!p.has(U)}
function W(U,p,M){if(d(U,p,M))return z(U,p,M);p=J(p);if(p!==null)return W(U,p,M)}
function z(U,p,M){p=H(p,M,!1);if(p!==void 0)return p.get(U)}
function u(U,p){var M=B(U,p);U=J(U);if(U===null)return M;var Z=u(U,p);if(Z.length<=0)return M;if(M.length<=0)return Z;p=new K;U=[];M=_.r(M);for(var WV=M.next();!WV.done;WV=M.next())WV=WV.value,p.has(WV)||(p.add(WV),U.push(WV));M=_.r(Z);for(Z=M.next();!Z.done;Z=M.next())Z=Z.value,p.has(Z)||(p.add(Z),U.push(Z));return U}
function B(U,p){U=H(U,p,!1);var M=[];U&&U.forEach(function(Z,WV){return M.push(WV)});
return M}
function h(U){return U===void 0}
function O(U){return typeof U==="object"?U!==null:typeof U==="function"}
function T(U){return typeof U==="function"}
function m(U){return typeof U==="symbol"?U:String(U)}
function J(U){var p=Object.getPrototypeOf(U);if(typeof U!=="function"||U===X||p!==X)return p;var M=Object.getPrototypeOf(U.prototype);if(M==null||M===Object.prototype)return p;M=M.constructor;return typeof M!=="function"||M===U?p:M}
function g(){function U(){this._keys=[];this._values=[];this._cache=p}
var p={};U.prototype={get size(){return this._keys.length},has:function(M){return M===this._cache?!0:this._find(M)>=0?(this._cache=M,!0):!1},
get:function(M){var Z=this._find(M);if(Z>=0)return this._cache=M,this._values[Z]},
set:function(M,Z){this.delete(M);this._keys.push(M);this._values.push(Z);this._cache=M;return this},
delete:function(M){M=this._find(M);return M>=0?(this._keys.splice(M,1),this._values.splice(M,1),this._cache=p,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=p},
forEach:function(M){for(var Z=this.size,WV=0;WV<Z;++WV){var hA=this._keys[WV],qv=this._values[WV];this._cache=hA;M.call(this,qv,hA,this)}},
_find:function(M){for(var Z=this._keys,WV=Z.length,hA=0;hA<WV;++hA)if(Z[hA]===M)return hA;return-1}};
return U}
function v(){function U(){this._map=new D}
U.prototype={get size(){return this._map.length},has:function(p){return this._map.has(p)},
add:function(p){this._map.set(p,p);return this},
delete:function(p){return this._map.delete(p)},
clear:function(){this._map.clear()},
forEach:function(p,M){this._map.forEach(p,M)}};
return U}
function y(){function U(){this._key=M()}
function p(mr,Cl){for(var pl=0;pl<Cl;++pl)mr[pl]=Math.random()*255|0}
function M(){do{if(WV)var mr=WV.randomBytes(16);else typeof Uint8Array==="function"?(mr=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(mr):p(mr,16)):(mr=Array(16),p(mr,16));mr[6]=mr[6]&79|64;mr[8]=mr[8]&191|128;for(var Cl="",pl=0;pl<16;++pl){var UC=mr[pl];if(pl===4||pl===6||pl===8)Cl+="-";UC<16&&(Cl+="0");Cl+=UC.toString(16).toLowerCase()}mr="@@WeakMap@@"+Cl}while(hA.call(qv,mr));qv[mr]=!0;return mr}
function Z(mr,Cl){if(!hA.call(mr,eN)){if(!Cl)return;Object.defineProperty(mr,eN,{value:Object.create(null)})}return mr[eN]}
var WV=typeof global!=="undefined"&&typeof jy0==="object"&&typeof require==="function"&&require("crypto"),hA=Object.prototype.hasOwnProperty,qv={},eN=M();U.prototype={has:function(mr){return(mr=Z(mr,!1))?this._key in mr:!1},
get:function(mr){if(mr=Z(mr,!1))return mr[this._key]},
set:function(mr,Cl){Z(mr,!0)[this._key]=Cl;return this},
delete:function(mr){return(mr=Z(mr,!1))&&this._key in mr?delete mr[this._key]:!1},
clear:function(){this._key=M()}};
return U}
var X=Object.getPrototypeOf(Function),D=typeof Map==="function"?Map:g(),K=typeof Set==="function"?Set:v(),N=new (typeof WeakMap==="function"?WeakMap:y());A.decorate=function(U,p,M,Z){if(h(Z)){if(h(M)){if(!Array.isArray(U))throw new TypeError;if(!T(p))throw new TypeError;for(M=U.length-1;M>=0;--M)if(Z=(0,U[M])(p),!h(Z)){if(!T(Z))throw new TypeError;p=Z}return p}if(!Array.isArray(U))throw new TypeError;if(!O(p))throw new TypeError;M=m(M);for(Z=U.length-1;Z>=0;--Z)(0,U[Z])(p,M)}else{if(Array.isArray(U))if(O(p)){if(h(M))throw new TypeError;
if(!O(Z))throw new TypeError;}else throw new TypeError;else throw new TypeError;M=m(M);for(var WV=U.length-1;WV>=0;--WV){var hA=(0,U[WV])(p,M,Z);if(!h(hA)){if(!O(hA))throw new TypeError;Z=hA}}return Z}};
A.metadata=function(U,p){return function(M,Z){if(h(Z)){if(!T(M))throw new TypeError;H(M,void 0,!0).set(U,p)}else{if(!O(M))throw new TypeError;Z=m(Z);H(M,Z,!0).set(U,p)}}};
A.defineMetadata=function(U,p){var M;if(O(p))h(M)||(M=m(M));else throw new TypeError;H(p,M,!0).set("parameters",U)};
A.hasMetadata=function(U,p,M){if(O(p))h(M)||(M=m(M));else throw new TypeError;return k(U,p,M)};
A.hasOwnMetadata=function(U,p,M){if(O(p))h(M)||(M=m(M));else throw new TypeError;return d(U,p,M)};
A.getMetadata=function(U,p,M){if(O(p))h(M)||(M=m(M));else throw new TypeError;return W(U,p,M)};
A.getOwnMetadata=function(U,p,M){if(O(p))h(M)||(M=m(M));else throw new TypeError;return z(U,p,M)};
A.getMetadataKeys=function(U,p){if(O(U))h(p)||(p=m(p));else throw new TypeError;return u(U,p)};
A.getOwnMetadataKeys=function(U,p){if(O(U))h(p)||(p=m(p));else throw new TypeError;return B(U,p)};
A.deleteMetadata=function(U,p,M){if(O(p))h(M)||(M=m(M));else throw new TypeError;var Z=H(p,M,!1);if(!h(Z)){if(!Z.delete(U))return!1;if(Z.size>0)return!0;U=N.get(p);U.delete(M);if(U.size>0)return!0;N.delete(p);return!0}};
(function(U){if(typeof U.Reflect!=="undefined"){if(U.Reflect!==A)for(var p in A)U.Reflect[p]=A[p]}else U.Reflect=A})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(IfA||(IfA={}));var hhf=self;var YRw=[0,_.Sa,_.aX,_.Sa];var Pcw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Pcw,_.OW);var GAG=_.Pz(Pcw,[0,_.E8,_.QV,YRw,_.aX,_.lp]);var X8Z=[0,_.U8,-3,_.lp,_.E8,_.Sa,_.lyZ,_.U8,NOZ,VnQ,G5,_.CX,_.Sa,function(){return Fuw},
_.aX],Fuw=[0,_.QV,function(){return X8Z},
_.E8,14,_.U8];_.EK(_.wo,_.dF);_.q=_.wo.prototype;_.q.start=function(){this.stop();this.usingListeners_=!1;var A=Dtp(this),H=SRN(this);A&&!H&&this.JSC$11634_win_.mozRequestAnimationFrame?(this.JSC$11634_id_=_.Y3(this.JSC$11634_win_,"MozBeforePaint",this.callback_),this.JSC$11634_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11634_id_=A&&H?A.call(this.JSC$11634_win_,this.callback_):this.JSC$11634_win_.setTimeout(eCA(this.callback_),20)};
_.q.stop=function(){if(this.isActive()){var A=Dtp(this),H=SRN(this);A&&!H&&this.JSC$11634_win_.mozRequestAnimationFrame?k5(this.JSC$11634_id_):A&&H?H.call(this.JSC$11634_win_,this.JSC$11634_id_):this.JSC$11634_win_.clearTimeout(this.JSC$11634_id_)}this.JSC$11634_id_=null};
_.q.fire=function(){this.stop();this.JSC$11636_doAction_()};
_.q.isActive=function(){return this.JSC$11634_id_!=null};
_.q.JSC$11636_doAction_=function(){this.usingListeners_&&this.JSC$11634_id_&&k5(this.JSC$11634_id_);this.JSC$11634_id_=null;this.JSC$11634_listener_.call(this.handler_,_.Vj())};
_.q.disposeInternal=function(){this.stop();_.wo.superClass_.disposeInternal.call(this)};
var Dtp=function(A){A=A.JSC$11634_win_;return A.requestAnimationFrame||A.webkitRequestAnimationFrame||A.mozRequestAnimationFrame||A.oRequestAnimationFrame||A.msRequestAnimationFrame||null},SRN=function(A){A=A.JSC$11634_win_;
return A.cancelAnimationFrame||A.cancelRequestAnimationFrame||A.webkitCancelRequestAnimationFrame||A.mozCancelRequestAnimationFrame||A.oCancelRequestAnimationFrame||A.msCancelRequestAnimationFrame||null};_.Nt=function(A,H,k){_.dF.call(this);this.JSC$11637_listener_=k!=null?A.bind(k):A;this.JSC$11637_interval_=H;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11637_timer_=null};
_.I(_.Nt,_.dF);_.q=_.Nt.prototype;_.q.fire=function(A){this.args_=arguments;this.JSC$11637_timer_||this.pauseCount_?this.shouldFire_=!0:CcA(this)};
_.q.stop=function(){this.JSC$11637_timer_&&(_.k8.clearTimeout(this.JSC$11637_timer_),this.JSC$11637_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.q.pause=function(){this.pauseCount_++};
_.q.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11637_timer_||(this.shouldFire_=!1,CcA(this))};
_.q.disposeInternal=function(){_.dF.prototype.disposeInternal.call(this);this.stop()};
var CcA=function(A){A.JSC$11637_timer_=Tk(function(){A.JSC$11637_timer_=null;A.shouldFire_&&!A.pauseCount_&&(A.shouldFire_=!1,CcA(A))},A.JSC$11637_interval_);
var H=A.args_;A.args_=null;A.JSC$11637_listener_.apply(null,H)};var Kui=function(A,H){this.childIterator_=A[_.k8.Symbol.iterator]();this.mapFn_=H};
Kui.prototype[Symbol.iterator]=function(){return this};
Kui.prototype.next=function(){var A=this.childIterator_.next();return{value:A.done?void 0:this.mapFn_.call(void 0,A.value),done:A.done}};
var afN=function(A,H){return new Kui(A,H)};var ZOQ={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 fIl=/#(.)(.)(.)/,tmm=/^#(?:[0-9a-f]{3}){1,2}$/i,oXX=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var c7w={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},fh=c7w;fh=c7w;var JDN,p8w,QyA;JDN=function(A,H){switch(H){case 1:return A%4!=0||A%100==0&&A%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
p8w=function(A,H,k,d,W){A=new Date(A,H,k);W=W||0;return A.valueOf()+(((d!==void 0?d:3)-W+7)%7-((A.getDay()+6)%7-W+7)%7)*864E5};
_.d1=function(A,H,k){typeof A==="number"?(this.date=QyA(A,H||0,k||1),Vww(this,k||1)):_.nl(A)?(this.date=QyA(A.getFullYear(),A.getMonth(),A.getDate()),Vww(this,A.getDate())):(this.date=new Date(_.Vj()),A=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Vww(this,A))};
QyA=function(A,H,k){H=new Date(A,H,k);A>=0&&A<100&&H.setFullYear(H.getFullYear()-1900);return H};
_.q=_.d1.prototype;_.q.firstDayOfWeek_=fh.FIRSTDAYOFWEEK;_.q.firstWeekCutOffDay_=fh.FIRSTWEEKCUTOFFDAY;_.q.clone=function(){var A=new _.d1(this.date);A.firstDayOfWeek_=this.firstDayOfWeek_;A.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return A};
_.q.getFullYear=function(){return this.date.getFullYear()};
_.q.getYear=function(){return this.getFullYear()};
_.q.getMonth=function(){return this.date.getMonth()};
_.q.getDate=function(){return this.date.getDate()};
_.q.getTime=function(){return this.date.getTime()};
_.q.getDay=function(){return this.date.getDay()};
_.q.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.q.getUTCMonth=function(){return this.date.getUTCMonth()};
_.q.getUTCDate=function(){return this.date.getUTCDate()};
_.q.getUTCDay=function(){return this.date.getDay()};
_.q.getUTCHours=function(){return this.date.getUTCHours()};
_.q.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.q.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.q.set=function(A){this.date=new Date(A.getFullYear(),A.getMonth(),A.getDate())};
_.q.setFullYear=function(A){this.date.setFullYear(A)};
_.q.setYear=function(A){this.setFullYear(A)};
_.q.setMonth=function(A){this.date.setMonth(A)};
_.q.setDate=function(A){this.date.setDate(A)};
_.q.setTime=function(A){this.date.setTime(A)};
_.q.setUTCFullYear=function(A){this.date.setUTCFullYear(A)};
_.q.setUTCMonth=function(A){this.date.setUTCMonth(A)};
_.q.setUTCDate=function(A){this.date.setUTCDate(A)};
_.q.add=function(A){if(A.years||A.months){var H=this.getMonth()+A.months+A.years*12,k=this.getYear()+Math.floor(H/12);H%=12;H<0&&(H+=12);var d=Math.min(JDN(k,H),this.getDate());this.setDate(1);this.setFullYear(k);this.setMonth(H);this.setDate(d)}A.days&&(k=this.getYear(),H=k>=0&&k<=99?-1900:0,A=new Date((new Date(k,this.getMonth(),this.getDate(),12)).getTime()+A.days*864E5),this.setDate(1),this.setFullYear(A.getFullYear()+H),this.setMonth(A.getMonth()),this.setDate(A.getDate()),Vww(this,A.getDate()))};
_.q.JSC$11650_toIsoString=function(A){var H=this.getFullYear(),k=H<0?"-":H>=1E4?"+":"";return[k+_.wd(Math.abs(H),k?6:4),_.wd(this.getMonth()+1,2),_.wd(this.getDate(),2)].join(A?"-":"")};
_.q.equals=function(A){return!(!A||this.getYear()!=A.getYear()||this.getMonth()!=A.getMonth()||this.getDate()!=A.getDate())};
_.q.toString=function(){return this.JSC$11650_toIsoString()};
var Vww=function(A,H){A.getDate()!=H&&A.date.setUTCHours(A.date.getUTCHours()+(A.getDate()<H?1:-1))};
_.d1.prototype.valueOf=function(){return this.date.valueOf()};var zL=function(A,H,k,d,W){this.reversed=!!H;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!k;A&&WD(this,A,d);this.depth=W!=void 0?W:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.EK(zL,pn);var WD=function(A,H,k,d){if(A.node=H)A.tagType=typeof k==="number"?k:A.node.nodeType!=1?0:A.reversed?-1:1;typeof d==="number"&&(A.depth=d)};
_.q=zL.prototype;_.q.JSC$11665_copyFrom=function(A){this.node=A.node;this.tagType=A.tagType;this.depth=A.depth;this.reversed=A.reversed;this.constrained=A.constrained};
_.q.clone=function(){return new zL(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.q.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Q4;var A=this.node;var H=this.reversed?-1:1;if(this.tagType==H){var k=this.reversed?A.lastChild:A.firstChild;k?WD(this,k):WD(this,A,H*-1)}else(k=this.reversed?A.previousSibling:A.nextSibling)?WD(this,k):WD(this,A.parentNode,H*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(A=this.node)?V4(A):Q4};
_.q.equals=function(A){return A.node==this.node&&(!this.node||A.tagType==this.tagType)};
_.q.splice=function(A){var H=this.node,k=this.reversed?1:-1;this.tagType==k&&(this.tagType=k*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;zL.prototype.next.call(this);this.reversed=!this.reversed;k=_.Nv(arguments[0])?arguments[0]:arguments;for(var d=k.length-1;d>=0;d--)_.yZ(k[d],H);_.Aw(H)};var E5A=function(){},q2=function(A){for(var H=[],k=A.getTextRangeCount(),d=0;d<k;d++)H.push(A.getTextRange(d));
return H};
E5A.prototype.isReversed=function(){return!1};
E5A.prototype.getWindow=function(){return R8(_.TE(this.JSC$11667_getStartNode()))};
var Utw=function(A,H){zL.call(this,A,H,!0)};
_.EK(Utw,zL);var r1=function(A,H,k,d,W){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!W;if(A){this.startNode_=A;this.startOffset_=H;this.endNode_=k;this.endOffset_=d;if(A.nodeType==1&&A.tagName!="BR")if(A=A.childNodes,H=A[H])this.startNode_=H,this.startOffset_=0;else{A.length&&(this.startNode_=_.DQ(A));var z=!0}k.nodeType==1&&((this.endNode_=k.childNodes[d])?this.endOffset_=0:this.endNode_=k)}zL.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);z&&this.next()};
_.EK(r1,Utw);_.q=r1.prototype;_.q.JSC$11673_getStartNode=function(){return this.startNode_};
_.q.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)};
_.q.next=function(){return this.isLast()?Q4:r1.superClass_.next.call(this)};
_.q.JSC$11665_copyFrom=function(A){this.startNode_=A.startNode_;this.endNode_=A.endNode_;this.startOffset_=A.startOffset_;this.endOffset_=A.endOffset_;this.isReversed_=A.isReversed_;r1.superClass_.JSC$11665_copyFrom.call(this,A)};
_.q.clone=function(){var A=new r1(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);A.JSC$11665_copyFrom(this);return A};$BA.prototype.__iterator__=function(){return new r1(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};_.EK(o0,$BA);var lfZ=function(A){var H=_.TE(A).createRange();if(A.nodeType==3)H.setStart(A,0),H.setEnd(A,A.length);else if(bP(A)||A.nodeType==3){for(var k,d=A;(k=d.firstChild)&&(bP(k)||k.nodeType==3);)d=k;H.setStart(d,0);for(d=A;(k=d.lastChild)&&(bP(k)||k.nodeType==3);)d=k;H.setEnd(d,d.nodeType==1?d.childNodes.length:d.length)}else k=A.parentNode,A=Array.prototype.indexOf.call(k.childNodes,A),H.setStart(k,A),H.setEnd(k,A+1);return H},tww=function(A,H,k,d){var W=_.TE(A).createRange();
W.setStart(A,H);W.setEnd(k,d);return W};
_.q=o0.prototype;_.q.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.q.getContainer=function(){return this.range_.commonAncestorContainer};
_.q.compareBrowserRangeEndpoints=function(A,H,k){return this.range_.compareBoundaryPoints(k==1?H==1?_.k8.Range.START_TO_START:_.k8.Range.START_TO_END:H==1?_.k8.Range.END_TO_START:_.k8.Range.END_TO_END,A)};
_.q.isCollapsed=function(){return this.range_.collapsed};
_.q.select=function(A){this.selectInternal(R8(_.TE(this.range_.startContainer)).getSelection(),A)};
_.q.selectInternal=function(A){A.removeAllRanges();A.addRange(this.range_)};
_.q.insertNode=function(A,H){var k=this.range_.cloneRange();k.collapse(H);k.insertNode(A);k.detach();return A};
_.q.collapse=function(A){this.range_.collapse(A)};_.EK($Y,o0);$Y.prototype.selectInternal=function(A,H){!H||this.isCollapsed()?$Y.superClass_.selectInternal.call(this,A,H):(A.collapse(this.range_.endContainer,this.range_.endOffset),A.extend(this.range_.startContainer,this.range_.startOffset))};_.EK(AW,o0);AW.prototype.compareBrowserRangeEndpoints=function(A,H,k){return AW.superClass_.compareBrowserRangeEndpoints.call(this,A,H,k)};
AW.prototype.selectInternal=function(A,H){H?A.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):A.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var uS=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},d3W;
_.EK(uS,E5A);d3W=function(A,H){var k=new uS;k.browserRangeWrapper_=A;k.isReversed_=!!H;return k};
_.Nb0=function(A){A=_.HN?new AW(lfZ(A)):_.s3?new $Y(lfZ(A)):new o0(lfZ(A));return d3W(A)};
_.WN=function(A,H,k,d){var W=new uS;W.isReversed_=kkC(A,H,k,d);if(_.Zd(A)&&!bP(A)){var z=A.parentNode;H=Array.prototype.indexOf.call(z.childNodes,A);A=z}_.Zd(k)&&!bP(k)&&(z=k.parentNode,d=Array.prototype.indexOf.call(z.childNodes,k),k=z);W.isReversed_?(W.startNode_=k,W.startOffset_=d,W.endNode_=A,W.endOffset_=H):(W.startNode_=A,W.startOffset_=H,W.endNode_=k,W.endOffset_=d);return W};
_.q=uS.prototype;_.q.clone=function(){var A=new uS;A.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();A.startNode_=this.startNode_;A.startOffset_=this.startOffset_;A.endNode_=this.endNode_;A.endOffset_=this.endOffset_;A.isReversed_=this.isReversed_;return A};
_.q.JSC$11667_getType=function(){return"text"};
_.q.getBrowserRangeObject=function(){return BD(this).range_};
_.q.getTextRangeCount=function(){return 1};
_.q.getTextRange=function(){return this};
var BD=function(A){var H;if(!(H=A.browserRangeWrapper_)){H=A.JSC$11667_getStartNode();var k=A.JSC$11667_getStartOffset(),d=A.JSC$11667_getEndNode(),W=A.JSC$11667_getEndOffset();H=_.HN?new AW(tww(H,k,d,W)):_.s3?new $Y(tww(H,k,d,W)):new o0(tww(H,k,d,W));H=A.browserRangeWrapper_=H}return H};
_.q=uS.prototype;_.q.getContainer=function(){return BD(this).getContainer()};
_.q.JSC$11667_getStartNode=function(){return this.startNode_||(this.startNode_=BD(this).range_.startContainer)};
_.q.JSC$11667_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=BD(this).range_.startOffset};
_.q.JSC$11667_getEndNode=function(){return this.endNode_||(this.endNode_=BD(this).range_.endContainer)};
_.q.JSC$11667_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=BD(this).range_.endOffset};
_.q.isReversed=function(){return this.isReversed_};
_.q.JSC$11667_containsRange=function(A,H){if(A.JSC$11667_getType()=="text"){var k=BD(this);A=BD(A);H=H&&!A.isCollapsed();A=A.range_;k=H?k.compareBrowserRangeEndpoints(A,0,1)>=0&&k.compareBrowserRangeEndpoints(A,1,0)<=0:k.compareBrowserRangeEndpoints(A,0,0)>=0&&k.compareBrowserRangeEndpoints(A,1,1)<=0}else k=!1;return k};
_.q.isCollapsed=function(){return BD(this).isCollapsed()};
_.q.JSC$11667_getText=function(){return BD(this).range_.toString()};
_.q.__iterator__=function(){return new r1(this.JSC$11667_getStartNode(),this.JSC$11667_getStartOffset(),this.JSC$11667_getEndNode(),this.JSC$11667_getEndOffset())};
_.q.select=function(){BD(this).select(this.isReversed_)};
_.q.JSC$11667_removeContents=function(){var A=BD(this).range_;A.extractContents();if(A.startContainer.hasChildNodes()&&(A=A.startContainer.childNodes[A.startOffset])){var H=A.previousSibling;dZ1(A)==""&&_.Aw(A);H&&dZ1(H)==""&&_.Aw(H)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.q.insertNode=function(A,H){A=BD(this).insertNode(A,H);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return A};
_.q.collapse=function(A){A=this.isReversed()?!A:A;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(A);A?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var MwA=function(){};
_.EK(MwA,E5A);MwA.prototype.JSC$11667_containsRange=function(A,H){var k=q2(this);A=q2(A);return(H?Vv:_.XbX)(A,function(d){return Vv(k,function(W){return W.JSC$11667_containsRange(d,H)})})};
MwA.prototype.insertNode=function(A,H){H?_.vJ(A,this.JSC$11667_getStartNode()):_.yZ(A,this.JSC$11667_getEndNode());return A};var n5i,Z3k=zE().JSC$9639_document_.documentElement;n5i=Z3k.requestFullscreen?"fullscreenchange":Z3k.webkitRequestFullscreen?"webkitfullscreenchange":Z3k.mozRequestFullScreen?"mozfullscreenchange":Z3k.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var dY=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.EK(dY,MwA);_.q=dY.prototype;_.q.clone=function(){var A=new dY;A.browserRanges_=_.tA(this.browserRanges_);return A};
_.q.JSC$11667_getType=function(){return"mutli"};
_.q.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.q.getTextRangeCount=function(){return this.browserRanges_.length};
_.q.getTextRange=function(A){this.ranges_[A]||(this.ranges_[A]=d3W(AsN(this.browserRanges_[A])));return this.ranges_[A]};
_.q.getContainer=function(){if(!this.container_){for(var A=[],H=this.getTextRangeCount(),k=0;k<H;k++)A.push(this.getTextRange(k).getContainer());this.container_=w4w.apply(null,A)}return this.container_};
var eV=function(A){A.sortedRanges_||(A.sortedRanges_=q2(A),A.sortedRanges_.sort(function(H,k){var d=H.JSC$11667_getStartNode();H=H.JSC$11667_getStartOffset();var W=k.JSC$11667_getStartNode();k=k.JSC$11667_getStartOffset();return d==W&&H==k?0:kkC(d,H,W,k)?1:-1}));
return A.sortedRanges_};
_.q=dY.prototype;_.q.JSC$11667_getStartNode=function(){return eV(this)[0].JSC$11667_getStartNode()};
_.q.JSC$11667_getStartOffset=function(){return eV(this)[0].JSC$11667_getStartOffset()};
_.q.JSC$11667_getEndNode=function(){return _.DQ(eV(this)).JSC$11667_getEndNode()};
_.q.JSC$11667_getEndOffset=function(){return _.DQ(eV(this)).JSC$11667_getEndOffset()};
_.q.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.q.JSC$11667_getText=function(){return q2(this).map(function(A){return A.JSC$11667_getText()}).join("")};
_.q.__iterator__=function(){return new x2(this)};
_.q.select=function(){var A=this.getWindow().getSelection();A.removeAllRanges();for(var H=this.getTextRangeCount(),k=0;k<H;k++)A.addRange(this.getTextRange(k).getBrowserRangeObject())};
_.q.JSC$11667_removeContents=function(){q2(this).forEach(function(A){A.JSC$11667_removeContents()})};
_.q.collapse=function(A){if(!this.isCollapsed()){var H=A?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;H.collapse(A);this.ranges_=[H];this.sortedRanges_=[H];this.browserRanges_=[H.getBrowserRangeObject()]}};
var x2=function(A){this.iterators_=null;this.currentIdx_=0;A&&(this.iterators_=eV(A).map(function(H){return _.mww(H)}));
zL.call(this,A?this.JSC$11673_getStartNode():null,!1,!0)};
_.EK(x2,Utw);_.q=x2.prototype;_.q.JSC$11673_getStartNode=function(){return this.iterators_[0].JSC$11673_getStartNode()};
_.q.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.q.next=function(){for(;this.currentIdx_<this.iterators_.length;){var A=this.iterators_[this.currentIdx_],H=A.next();if(H.done)this.currentIdx_++;else return WD(this,A.node,A.tagType,A.depth),H}return Q4};
_.q.JSC$11665_copyFrom=function(A){this.iterators_=_.tA(A.iterators_);x2.superClass_.JSC$11665_copyFrom.call(this,A)};
_.q.clone=function(){var A=new x2(null);A.JSC$11665_copyFrom(this);return A};var iS=function(){_.Is.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.WT)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.WT)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.WT)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.WT)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.WT)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.WT)(this.dispatchProgressEvent_,this)};
_.EK(iS,_.Is);iS.prototype.abort=function(){try{this.reader_.abort()}catch(A){throw new RXI(A,"aborting read");}};
iS.prototype.getError=function(){return this.reader_.error&&new RXI(this.reader_.error,"reading file")};
iS.prototype.dispatchProgressEvent_=function(A){this.dispatchEvent(new Tef(A,this))};
iS.prototype.disposeInternal=function(){iS.superClass_.disposeInternal.call(this);delete this.reader_};
var w8p=function(A){var H=new iS,k=ffA(H);H.reader_.readAsArrayBuffer(A);return k},o5w=function(A){var H=new iS,k=ffA(H);
H.reader_.readAsDataURL(A);return k},ffA=function(A){var H=new ev;
A.listen("loadend",_.H0(function(k,d){var W=d.reader_.result,z=d.getError();W==null||z?k.errback(z):k.callback(W);d.dispose()},H,A));
return H};var hg=function(){_.Is.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11707_eventHandler_=new _.qZ(this);this.JSC$11707_isInitialized_=!1};
_.EK(hg,_.Is);var $tw=new _.r3("d"),A8A=new _.r3("beforedragstart"),Hjk=new _.r3("dragstart"),s9p=new _.r3("beforedragmove"),kcA=new _.r3("dragmove"),dNA=new _.r3("beforedragend"),W01=new _.r3("dragend"),zRZ=new _.r3("e");hg.prototype.isDragging=function(){return!!this.JSC$11707_dragger_};
var qt0=function(A,H){H.dlgGrowthDirection_=0;H.dlgDragHoverClass_=void 0;H.dlgDragPermission=0;A.dragLists_.push(H)},r8N=function(A,H){A.getHandleForDragItem_=H};
hg.prototype.init=function(){if(!this.JSC$11707_isInitialized_){for(var A=this.dragLists_.length,H=0;H<A;H++)for(var k=_.jm(this.dragLists_[H]),d=k.length,W=0;W<d;++W){var z=k[W],u=this.getHandleForDragItem_(z),B=_.fl(u);this.dragItemForHandle_[B]=z;this.dragItemHoverClasses_&&(this.JSC$11707_eventHandler_.listen(z,"mouseover",this.handleDragItemMouseover_),this.JSC$11707_eventHandler_.listen(z,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11707_eventHandler_.listen(u,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11707_eventHandler_.listen(u,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(z);this.JSC$11707_eventHandler_.listen(u,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11707_isInitialized_=!0}};
hg.prototype.disposeInternal=function(){this.JSC$11707_eventHandler_.dispose();for(var A=this.dragLists_.length,H=0;H<A;H++){var k=this.dragLists_[H];k.dlgGrowthDirection_=void 0;k.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;uUQ(this);hg.superClass_.disposeInternal.call(this)};
var BHA=function(A,H){for(var k=A.dragLists_.length,d=0;d<k;d++){var W=A.dragLists_[d];W.dlgBounds_=zkN(W)}k=A.dragItems_.length;for(d=0;d<k;d++)W=A.dragItems_[d],W!=H&&(W.dlgBounds_=zkN(W))};
_.q=hg.prototype;
_.q.handlePotentialDragStart_=function(A){var H=_.fl(A.currentTarget);H=this.dragItemForHandle_[H];if(H.parentElement.dlgDragPermission!=2){this.currDragItem_=H;a:{H=this.currDragItem_;for(var k=H.cloneNode(!0),d=HT("TEXTAREA",H),W=HT("TEXTAREA",k),z=0;z<d.length;z++)W[z].value=d[z].value;switch(H.tagName){case "TR":H=_.JK("TABLE",null,_.JK("TBODY",null,k));break a;case "TD":case "TH":H=_.JK("TABLE",null,_.JK("TBODY",null,_.JK("TR",null,k)));break a;case "TEXTAREA":k.value=H.value;default:H=k;break a}H=
void 0}this.draggerEl_=H;this.draggerElClasses_&&Cf(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.TE(this.currDragItem_).body.appendChild(this.draggerEl_);k=_.mA(this.currDragItem_);H=this.draggerEl_;d=_.mA(H);if(k instanceof _.Ft){var u=k.y;k=k.x}Gj(H,H.offsetLeft+(k-d.x),H.offsetTop+(Number(u)-d.y));this.JSC$11707_dragger_=new _.J9(this.draggerEl_);_.S31(this.JSC$11707_dragger_,this.hysteresisDistance_);
_.Y3(this.JSC$11707_dragger_,"start",this.handleDragStart_,!1,this);_.Y3(this.JSC$11707_dragger_,"end",this.handleDragEnd_,!1,this);_.Y3(this.JSC$11707_dragger_,"earlycancel",this.JSC$11709_cleanup_,!1,this);this.dispatchEvent(new Ou($tw,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11707_dragger_));this.JSC$11707_dragger_.startDrag(A)}};
_.q.handleDragStart_=function(A){if(this.dispatchEvent(new Ou(A8A,this,A.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.ngA(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Cf(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var H=BFN(this.draggerEl_);this.draggerEl_.halfWidth=H.width/2;this.draggerEl_.halfHeight=H.height/2;H=this.draggerEl_.getBoundingClientRect();
var k=A.clientY,d=CgN(this.JSC$11707_dragger_,A.clientX);if(d>H.right){var W=this.currDragItem_.getBoundingClientRect();this.JSC$11707_dragger_.deltaX=d-(d-W.left)/W.width*H.width}k=KVi(this.JSC$11707_dragger_,k);k>H.bottom&&(this.JSC$11707_dragger_.deltaY+=k-H.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";BHA(this,this.currDragItem_);this.currDragItem_.style.display="";_.Y3(this.JSC$11707_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Ou(Hjk,
this,A.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11707_dragger_))}else A.preventDefault(),this.JSC$11709_cleanup_()};
_.q.handleDragMove_=function(A){var H=_.mA(this.draggerEl_);H=new _.Ft(H.x+this.draggerEl_.halfWidth,H.y+this.draggerEl_.halfHeight);a:{var k=null;if(this.currDragItem_.style.display!="none"){k=this.currDragItem_.parentNode;var d=zkN(k);if(eRj(H,d))break a}d=this.dragLists_.length;for(var W=0;W<d;W++){var z=this.dragLists_[W];if(z!=k&&eRj(H,z.dlgBounds_)){k=z;break a}}k=null}if(k){if(k==null)throw Error("ae");d=0;W=!1;z=void 0;switch(k.dlgGrowthDirection_){case 0:d=H.y;var u=xNN;var B=ijp;break;case 4:W=
!0;case 2:d=H.x;u=hRi;B=ijp;break;case 5:W=!0;case 3:d=H.x,u=Ojk,B=RRw}for(var h=null,O,T=_.jm(k),m=T.length,J=0;J<m;J++){var g=T[J];if(g!=this.currDragItem_){var v=u(g.dlgBounds_);if(W){var y=TH1(g,H);z===void 0&&(z=y);B(d,v)&&(O==void 0||y<z||y==z&&(B(v,O)||v==O))&&(h=g,O=v);y<z&&(z=y)}else B(d,v)&&(O==void 0||B(v,O))&&(h=g,O=v)}}u=h!==null&&TH1(h,H)>z?null:h}else u=null;if(!this.dispatchEvent(new Ou(s9p,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11707_dragger_,H,k,u)))return!1;if(k&&k.dlgDragPermission!=
1)this.currDragItem_.parentNode==k&&_.ngA(this.currDragItem_)==u||k.insertBefore(this.currDragItem_,u),this.currDragItem_.style.display="",k.dlgDragHoverClass_&&_.Y5(k,k.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",B=this.dragLists_.length,O=0;O<B;O++)d=this.dragLists_[O],d.dlgDragHoverClass_&&_.Iy(d,d.dlgDragHoverClass_);k!=this.currHoverList_&&(this.currHoverList_=k,BHA(this,this.currDragItem_));this.dispatchEvent(new Ou(kcA,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11707_dragger_,
H,k,u));return!1};
_.q.JSC$11709_cleanup_=function(){uUQ(this);this.JSC$11707_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var A=this.dragLists_.length,H=0;H<A;H++)this.dragLists_[H].dlgBounds_=null;A=this.dragItems_.length;for(H=0;H<A;H++)this.dragItems_[H].dlgBounds_=null};
_.q.handleDragEnd_=function(A){if(!this.dispatchEvent(new Ou(dNA,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11707_dragger_)))return!1;uUQ(this);this.dispatchEvent(new Ou(W01,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11707_dragger_));this.JSC$11709_cleanup_();return!0};
var uUQ=function(A){_.CC(A.JSC$11707_dragger_);var H=A.draggerEl_&&A.draggerEl_.parentElement;A.draggerEl_&&_.Aw(A.draggerEl_);A.currDragItem_&&A.currDragItem_.style.display=="none"&&(A.origList_.insertBefore(A.currDragItem_,A.origNextItem_),A.currDragItem_.style.display="");A.currDragItemClasses_&&A.currDragItem_?Ehw(A.currDragItem_,A.currDragItemClasses_||[]):A.currDragItem_&&(A.currDragItem_.style.visibility="");for(var k=A.dragLists_.length,d=0;d<k;d++){var W=A.dragLists_[d];W.dlgDragHoverClass_&&
_.Iy(W,W.dlgDragHoverClass_)}H&&A.dispatchEvent(new Ou(zRZ,A,null,A.currDragItem_,A.draggerEl_,A.JSC$11707_dragger_))};
_.q=hg.prototype;_.q.getHandleForDragItem_=function(A){return A};
_.q.handleDragItemMouseover_=function(A){Cf(A.currentTarget,this.dragItemHoverClasses_||[])};
_.q.handleDragItemMouseout_=function(A){Ehw(A.currentTarget,this.dragItemHoverClasses_||[])};
_.q.handleDragItemHandleMouseover_=function(A){Cf(A.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.q.handleDragItemHandleMouseout_=function(A){Ehw(A.currentTarget,this.dragItemHandleHoverClasses_||[])};
var eRj=function(A,H){return A.x>H.left&&A.x<H.left+H.width&&A.y>H.top&&A.y<H.top+H.height},TH1=function(A,H){A=A.dlgBounds_;
return Math.abs(H.y-(A.top+(A.height-1)/2))},xNN=function(A){return A.top+A.height-1},hRi=function(A){return A.left+A.width-1},Ojk=function(A){return A.left||0},ijp=function(A,H){return A<H},RRw=function(A,H){return A>H},Ou=function(A,H,k,d,W,z){_.NZ.call(this,A);
this.event=k;this.currDragItem=d;this.draggerEl=W;this.JSC$11711_dragger=z};
_.EK(Ou,_.NZ);_.EK(rY,_.dF);var mNw=new _.Ft(0,0);rY.prototype.JSC$11715_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
rY.prototype.JSC$11715_onMouseMove=function(A){var H=this.containerIsActuallyContent_?mNw:W4(zE(this.containerNode_)),k=this.horizontalScrolling_?this.calculateScrollDelta(A.clientX+H.x,this.scrollBounds_.left,this.scrollBounds_.width):0,d=this.calculateScrollDelta(A.clientY+H.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=k;this.scrollDelta_.y=d;!(k=!k&&!d)&&(k=this.constrainScroll_)&&(k=A.clientX+H.x,A=A.clientY+H.y,H=this.containerBounds_,k=!(H.left<=k&&H.left+H.width>=
k&&H.top<=A&&H.top+H.height>=A));k?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
rY.prototype.calculateScrollDelta=function(A,H,k){var d=0;A<H?d=-8:A>H+k&&(d=8);return d};
rY.prototype.disposeInternal=function(){rY.superClass_.disposeInternal.call(this);this.JSC$11713_eventHandler_.dispose();this.scrollTimer_.dispose()};var J8i={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"}}},RS=J8i;RS=J8i;var TL={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 jX=function(A){if(typeof A=="number"){var H=new qxX;H.standardOffset_=A;var k=A;if(k==0)k="Etc/GMT";else{var d=["Etc/GMT",k<0?"-":"+"];k=Math.abs(k);d.push(Math.floor(k/60)%100);k%=60;k!=0&&d.push(":",_.wd(k,2));k=d.join("")}H.timeZoneId_=k;k=A;k==0?k="UTC":(d=["UTC",k<0?"+":"-"],k=Math.abs(k),d.push(Math.floor(k/60)%100),k%=60,k!=0&&d.push(":",k),k=d.join(""));A=gEw(A);H.tzNames_=[k,k];H.tzNamesExt_={STD_LONG_NAME_GMT:A,STD_GENERIC_LOCATION:A};H.transitions_=[];return H}H=new qxX;H.timeZoneId_=
A.id;H.standardOffset_=-A.std_offset;H.tzNames_=A.names;H.tzNamesExt_=A.names_ext;H.transitions_=A.transitions;return H},gEw=function(A){var H=["GMT"];
H.push(A<=0?"+":"-");A=Math.abs(A);H.push(_.wd(Math.floor(A/60)%100,2),":",_.wd(A%60,2));return H.join("")},bjw=function(A,H){H=Date.UTC(H.getUTCFullYear(),H.getUTCMonth(),H.getUTCDate(),H.getUTCHours(),H.getUTCMinutes())/36E5;
for(var k=0;k<A.transitions_.length&&H>=A.transitions_[k];)k+=2;return k==0?0:A.transitions_[k-1]},L0k=function(A,H){A=A.standardOffset_-bjw(A,H);
return A===-1440?0:A};var Ic=function(A,H){this.patternParts_=[];this.JSC$11726_dateTimeSymbols_=H||fh;typeof A=="number"?vEA(this,A):y8w(this,A)},j9p=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],m6=function(A){return A.getHours?A.getHours():0},y8w=function(A,H){for(Nqb&&(H=H.replace(/\u200f/g,""));H;){for(var k=H,d=0;d<j9p.length;++d){var W=H.match(j9p[d]);
if(W){var z=W[0];H=H.substring(z.length);d==0&&(z=="''"?z="'":(z=z.substring(1,W[1]=="'"?z.length-1:z.length),z=z.replace(/''/g,"'")));A.patternParts_.push({text:z,type:d});break}}if(k===H)throw Error("be`"+H);}};
Ic.prototype.format=function(A,H){if(!A)throw Error("ce");var k=H?(A.getTimezoneOffset()-L0k(H,A))*6E4:0,d=k?new Date(A.getTime()+k):A,W=d;H&&d.getTimezoneOffset()!=A.getTimezoneOffset()&&(d=new Date(d.getTime()+(d.getTimezoneOffset()-A.getTimezoneOffset())*6E4),W=new Date(A.getTime()+(k+(k>0?-864E5:864E5))));k=[];for(var z=0;z<this.patternParts_.length;++z){var u=this.patternParts_[z].text;1==this.patternParts_[z].type?k.push(IGw(this,u,A,d,W,H)):k.push(u)}return k.join("")};
var vEA=function(A,H){if(H<4)var k=A.JSC$11726_dateTimeSymbols_.DATEFORMATS[H];else if(H<8)k=A.JSC$11726_dateTimeSymbols_.TIMEFORMATS[H-4];else if(H<12)k=A.JSC$11726_dateTimeSymbols_.DATETIMEFORMATS[H-8],k=k.replace("{1}",A.JSC$11726_dateTimeSymbols_.DATEFORMATS[H-8]),k=k.replace("{0}",A.JSC$11726_dateTimeSymbols_.TIMEFORMATS[H-8]);else if(H===12)k=A.JSC$11726_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(H===13)k=A.JSC$11726_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{vEA(A,10);return}y8w(A,k)},bS=function(A,H){H=String(H);
A=A.JSC$11726_dateTimeSymbols_||fh;if(A.ZERODIGIT!==void 0&&!tZm){for(var k=[],d=0;d<H.length;d++){var W=H.charCodeAt(d);k.push(48<=W&&W<=57?String.fromCharCode(A.ZERODIGIT+W-48):H.charAt(d))}H=k.join("")}return H},tZm=!1,Nqb=!1,PLw=function(A,H,k,d){k=k.getFullYear();
k<=0&&d&&(k=1-k);return bS(A,Ytw(k,H))},Ytw=function(A,H){H==2&&(A%=100);
A<0&&H++;return _.wd(A,H)},Lo=function(A){if(!(A.getHours&&A.getSeconds&&A.getMinutes))throw Error("de");
},Gcp=function(A,H){Lo(H);
H=m6(H);return A.JSC$11726_dateTimeSymbols_.AMPMS[H>=12&&H<24?1:0]},IGw=function(A,H,k,d,W,z){var u=H.length;
switch(H.charAt(0)){case "G":return k=d.getFullYear()>0?1:0,u>=4?A.JSC$11726_dateTimeSymbols_.ERANAMES[k]:A.JSC$11726_dateTimeSymbols_.ERAS[k];case "y":return PLw(A,u,d,!0);case "Y":return k=(new Date(p8w(d.getFullYear(),d.getMonth(),d.getDate(),A.JSC$11726_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,A.JSC$11726_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),u==2&&(k%=100),bS(A,Ytw(k,u));case "u":return PLw(A,u,d,!1);case "M":a:switch(k=d.getMonth(),u){case 5:u=A.JSC$11726_dateTimeSymbols_.NARROWMONTHS[k];
break a;case 4:u=A.JSC$11726_dateTimeSymbols_.MONTHS[k];break a;case 3:u=A.JSC$11726_dateTimeSymbols_.SHORTMONTHS[k];break a;default:u=bS(A,_.wd(k+1,u))}return u;case "k":return Lo(W),bS(A,_.wd(m6(W)||24,u));case "S":return bS(A,(W.getMilliseconds()/1E3).toFixed(Math.min(3,u)).slice(2)+(u>3?_.wd(0,u-3):""));case "E":return k=d.getDay(),u>=4?A.JSC$11726_dateTimeSymbols_.WEEKDAYS[k]:A.JSC$11726_dateTimeSymbols_.SHORTWEEKDAYS[k];case "a":return Gcp(A,W);case "b":return Gcp(A,W);case "B":return Gcp(A,
W);case "h":return Lo(W),bS(A,_.wd(m6(W)%12||12,u));case "K":return Lo(W),bS(A,_.wd(m6(W)%12,u));case "H":return Lo(W),bS(A,_.wd(m6(W),u));case "c":a:switch(k=d.getDay(),u){case 5:u=A.JSC$11726_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[k];break a;case 4:u=A.JSC$11726_dateTimeSymbols_.STANDALONEWEEKDAYS[k];break a;case 3:u=A.JSC$11726_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[k];break a;default:u=bS(A,_.wd(k,1))}return u;case "L":a:switch(k=d.getMonth(),u){case 5:u=A.JSC$11726_dateTimeSymbols_.STANDALONENARROWMONTHS[k];
break a;case 4:u=A.JSC$11726_dateTimeSymbols_.STANDALONEMONTHS[k];break a;case 3:u=A.JSC$11726_dateTimeSymbols_.STANDALONESHORTMONTHS[k];break a;default:u=bS(A,_.wd(k+1,u))}return u;case "Q":return k=Math.floor(d.getMonth()/3),u<4?A.JSC$11726_dateTimeSymbols_.SHORTQUARTERS[k]:A.JSC$11726_dateTimeSymbols_.QUARTERS[k];case "d":return bS(A,_.wd(d.getDate(),u));case "m":return Lo(W),bS(A,_.wd(W.getMinutes?W.getMinutes():0,u));case "s":return Lo(W),bS(A,_.wd(W.getSeconds(),u));case "v":return(z||jX(k.getTimezoneOffset())).timeZoneId_;
case "V":return A=z||jX(k.getTimezoneOffset()),u<=2?A.timeZoneId_:bjw(A,k)>0?A.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?A.tzNamesExt_.DST_GENERIC_LOCATION:A.tzNamesExt_.DST_GENERIC_LOCATION:A.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?A.tzNamesExt_.STD_GENERIC_LOCATION:A.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return k=p8w(W.getFullYear(),W.getMonth(),W.getDate(),A.JSC$11726_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,A.JSC$11726_dateTimeSymbols_.FIRSTDAYOFWEEK),bS(A,_.wd(Math.floor(Math.round((k-(new Date((new Date(k)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,u));case "z":return A=z||jX(k.getTimezoneOffset()),u<4?A.tzNames_[bjw(A,k)>0?2:0]:A.tzNames_[bjw(A,k)>0?3:1];case "Z":return H=z||jX(k.getTimezoneOffset()),u<4?(u=-L0k(H,k),A=[u<0?"-":"+"],u=Math.abs(u),A.push(_.wd(Math.floor(u/60)%100,2),_.wd(u%60,2)),u=A.join("")):u=bS(A,gEw(L0k(H,k))),u;default:return""}};var F0w=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Xnp=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,t9X=function(A){this.patternParts_=[];this.JSC$11735_dateTimeSymbols_=fh;if(typeof A=="number"){A>11&&(A=10);if(A<4)var H=this.JSC$11735_dateTimeSymbols_.DATEFORMATS[A];else A<8?H=this.JSC$11735_dateTimeSymbols_.TIMEFORMATS[A-4]:(H=this.JSC$11735_dateTimeSymbols_.DATETIMEFORMATS[A-8],H=H.replace("{1}",this.JSC$11735_dateTimeSymbols_.DATEFORMATS[A-8]),H=H.replace("{0}",this.JSC$11735_dateTimeSymbols_.TIMEFORMATS[A-
8]));DN1(this,H)}else DN1(this,A)},DN1=function(A,H){for(var k=!1,d="",W=0;W<H.length;W++){var z=H.charAt(W);
if(F0w.test(z))for(d.length>0&&(A.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1}),d=""),A.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});W<H.length-1&&H.charAt(W+1)==" ";)W++;else if(k)z=="'"?W+1<H.length&&H.charAt(W+1)=="'"?(d+="'",W++):k=!1:d+=z;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(z)>=0){d.length>0&&(A.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1}),d="");for(var u=H.charAt(W),B=W+1;B<H.length&&H.charAt(B)==u;)B++;u=B-W;u<=0?B=!1:(B="MydhHmsSDkK".indexOf(z),
B=B>0||B==0&&u<3);A.patternParts_.push({text:z,count:u,abutStart:!1,numeric:B});W+=u-1}else z=="'"?W+1<H.length&&H.charAt(W+1)=="'"?(d+="'",W++):k=!0:d+=z}d.length>0&&A.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1});H=!1;for(k=0;k<A.patternParts_.length;k++)A.patternParts_[k].numeric?!H&&k+1<A.patternParts_.length&&A.patternParts_[k+1].numeric&&(H=!0,A.patternParts_[k].abutStart=!0):H=!1};
t9X.prototype.parse=function(A,H,k){var d=!1,W=!1;k&&(d=k.predictive||!1,W=k.validate||!1);if(d)for(k=0;k<this.patternParts_.length;k++){var z=this.patternParts_[k];if(z.count>0&&("abBhHkKm".indexOf(z.text.charAt(0))<0||z.count>2||z.abutStart))throw Error("ee`"+z.text.charAt(0));}z=new Stw;k=[0];z.dayPeriodIndex=-1;for(var u=0;u<this.patternParts_.length&&!(d&&k[0]>=A.length);u++){if(this.patternParts_[u].count==0){a:{var B=A;var h=k,O=this.patternParts_[u],T=d;if(O.text.match(F0w)!=null){if(O=h[0],
CLQ(B,h),h[0]>O){B=!0;break a}}else{if(B.indexOf(O.text,h[0])==h[0]){h[0]+=O.text.length;B=!0;break a}if(T&&O.text.indexOf(B.substring(h[0]))==0){h[0]+=B.length-h[0];B=!0;break a}}B=!1}if(B)continue;return 0}if(this.patternParts_[u].abutStart){a:{h=A;O=k;T=u;var m=O[0],J=0;for(B=T;B<this.patternParts_.length;B++){var g=this.patternParts_[B],v=g.count;if(v===0)break;if(B==T&&(v-=J,J++,v==0)){B=0;break a}var y=B>T&&g.numeric,X=O[0];if(!K0w(this,h,O,g,v,z,!1)||y&&O[0]-X<v)B=T-1,O[0]=m}B-=T}if(B<=0)return 0;
u+=B-1}else if(!K0w(this,A,k,this.patternParts_[u],0,z,d))return 0}a:{A=W;if(H==null)throw Error("fe");z.era!=void 0&&z.year!=void 0&&z.era==0&&z.year>0&&(z.year=-(z.year-1));z.year!=void 0&&H.setFullYear(z.year);d=H.getDate();H.setDate(1);z.month!=void 0&&H.setMonth(z.month);z.day!=void 0?H.setDate(z.day):(W=JDN(H.getFullYear(),H.getMonth()),H.setDate(d>W?W:d));typeof H.setHours==="function"&&(z.hours==void 0&&(z.hours=H.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)),H.setHours(z.hours));typeof H.setMinutes==="function"&&z.minutes!=void 0&&H.setMinutes(z.minutes);typeof H.setSeconds==="function"&&z.seconds!=void 0&&H.setSeconds(z.seconds);typeof H.setMilliseconds==="function"&&z.milliseconds!=void 0&&H.setMilliseconds(z.milliseconds);if(A&&(z.year&&z.year!=H.getFullYear()||z.month&&z.month!=
H.getMonth()||z.day&&z.day!=H.getDate()||z.hours&&z.hours>=24||z.minutes&&z.minutes>=60||z.seconds&&z.seconds>=60||z.milliseconds&&z.milliseconds>=1E3))H=!1;else{z.tzOffset!=void 0&&H.setTime(H.getTime()+(z.tzOffset-H.getTimezoneOffset())*60*1E3);z.ambiguousYear&&(A=new Date,A.setFullYear(A.getFullYear()-80),H.getTime()<A.getTime()&&H.setFullYear(A.getFullYear()+100));if(z.dayOfWeek!=void 0)if(z.day==void 0)z=(7+z.dayOfWeek-H.getDay())%7,z>3&&(z-=7),A=H.getMonth(),H.setDate(H.getDate()+z),H.getMonth()!=
A&&H.setDate(H.getDate()+(z>0?-7:7));else if(z.dayOfWeek!=H.getDay()){H=!1;break a}H=!0}}return H?k[0]:0};
var K0w=function(A,H,k,d,W,z,u){CLQ(H,k);if(d.numeric&&W>0&&k[0]+W>H.length)return!1;switch(d.text.charAt(0)){case "G":return vD(H,k,[A.JSC$11735_dateTimeSymbols_.ERAS],function(B){return z.era=B}),!0;
case "M":case "L":return aG1(A,H,k,W,d,z);case "E":return vD(H,k,[A.JSC$11735_dateTimeSymbols_.WEEKDAYS,A.JSC$11735_dateTimeSymbols_.SHORTWEEKDAYS],function(B){return z.dayOfWeek=B});
case "B":case "b":return W=[],A=[[].concat(A.JSC$11735_dateTimeSymbols_.AMPMS)],W.push("isAm"),W.push("isPm"),H=vD(H,k,A,function(B){return z.dayPeriodIndex=B},u),z.dayPeriodName=W[z.dayPeriodIndex],u?H:!0;
case "a":return H=vD(H,k,[A.JSC$11735_dateTimeSymbols_.AMPMS],function(B){return z.ampm=B},u),u?H:!0;
case "y":return c8G(A,H,k,d,W,z);case "Q":return vD(H,k,[A.JSC$11735_dateTimeSymbols_.QUARTERS,A.JSC$11735_dateTimeSymbols_.SHORTQUARTERS],function(B){z.month=B*3;z.day=1});
case "d":return yK(A,H,k,d,W,function(B){z.day=B}),!0;
case "S":return pnJ(A,H,k,W,z);case "h":case "K":case "H":case "k":return H=yK(A,H,k,d,W,function(B){z.hours=d.text.charAt(0)==="h"&&B===12?0:B},u),u?H:!0;
case "m":return H=yK(A,H,k,d,W,function(B){z.minutes=B},u),u?H:!0;
case "s":return yK(A,H,k,d,W,function(B){z.seconds=B}),!0;
case "z":case "Z":case "v":return Q90(A,H,k,z);default:return!1}},c8G=function(A,H,k,d,W,z){var u=k[0];
W=jV(A,H,k,W);W===null&&(W=jV(A,H,k,0,!0));if(W===null)return!1;W>=0&&k[0]-u==2&&d.count==2?(A=W,H=(new Date).getFullYear()-80,k=H%100,z.ambiguousYear=A==k,A+=Math.floor(H/100)*100+(A<k?100:0),z.year=A):z.year=W;return!0},aG1=function(A,H,k,d,W,z){return W.numeric&&yK(A,H,k,W,d,function(u){z.month=u-1})?!0:vD(H,k,[A.JSC$11735_dateTimeSymbols_.MONTHS,
A.JSC$11735_dateTimeSymbols_.STANDALONEMONTHS,A.JSC$11735_dateTimeSymbols_.SHORTMONTHS,A.JSC$11735_dateTimeSymbols_.STANDALONESHORTMONTHS],function(u){z.month=u})},pnJ=function(A,H,k,d,W){var z=k[0];
A=jV(A,H,k,d);if(A===null)return!1;k=k[0]-z;W.milliseconds=k<3?A*Math.pow(10,3-k):Math.round(A/Math.pow(10,k-3));return!0},Q90=function(A,H,k,d){H.indexOf("GMT",k[0])==k[0]&&(k[0]+=3);
if(k[0]>=H.length)return d.tzOffset=0,!0;var W=k[0],z=jV(A,H,k,0,!0);if(z===null)return!1;if(k[0]<H.length&&H.charAt(k[0])==":"){var u=z*60;k[0]++;z=jV(A,H,k,0);if(z===null)return!1;u+=z}else u=z,u=u<24&&k[0]-W<=3?u*60:u%100+u/100*60;d.tzOffset=-u;return!0},yK=function(A,H,k,d,W,z,u){u=u||!1;
var B=k[0];A=jV(A,H,k,W);if(A===null)return!1;if(u&&k[0]-B<d.count){if(k[0]<H.length)return!1;A*=Math.pow(10,d.count-(k[0]-B))}z(A);return!0},vD=function(A,H,k,d,W){W=W||!1;
for(var z,u=0;u<k.length;u++){z=H;for(var B=k[u],h=W,O=0,T=null,m=A.substring(z[0]).toLowerCase(),J=0;J<B.length;J++){var g=B[J].toLowerCase();if(h&&g.indexOf(m)==0){O=m.length;T=J;break}B[J].length>O&&m.indexOf(g)==0&&(O=B[J].length,T=J)}T!==null&&(z[0]+=O);z=T;if(z!==null)return d(z),!0}return!1},CLQ=function(A,H){(A=A.substring(H[0]).match(Xnp))&&(H[0]+=A[0].length)},jV=function(A,H,k,d,W){H=d>0?H.substring(0,k[0]+d):H;
W=W||!1;if(A.JSC$11735_dateTimeSymbols_.ZERODIGIT){d=[];for(var z=k[0];z<H.length;z++){var u=H.charCodeAt(z)-A.JSC$11735_dateTimeSymbols_.ZERODIGIT;d.push(0<=u&&u<=9?String.fromCharCode(u+48):H.charAt(z))}H=d.join("")}else H=H.substring(k[0]);A=H.match(new RegExp("^"+(W?"[+-]?":"")+"\\d+"));if(!A)return null;k[0]+=A[0].length;return parseInt(A[0],10)},Stw=function(){};
Stw.prototype.ambiguousYear=!1;var VOw;
VOw={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 EEj={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}"]};
EEj={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 UNA=function(){var A={type:"unit",style:"narrow"};this.listType_=A&&A.type?A.type:"conjunction";this.listStyle_=A&&A.style?A.style:"long";this.listSymbols_=EEj;A=0;switch(this.listStyle_){case "short":A=1;break;case "narrow":A=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[A];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[A];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[A];this.listEndPattern_=
this.listSymbols_.AND_END[A];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[A];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[A];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[A];this.listEndPattern_=this.listSymbols_.OR_END[A];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[A],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[A],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[A],this.listEndPattern_=this.listSymbols_.UNIT_END[A]}};
UNA.prototype.format=function(A){return lGw(this,A)};
var lGw=function(A,H){var k=H.length;switch(k){case 0:return"";case 1:return String(H[0]);case 2:return A.listTwoPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1]))}for(var d=A.listStartPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1])),W=2;W<k-1;++W)d=A.listMiddlePattern_.replace("{0}",d).replace("{1}",String(H[W]));return A.listEndPattern_.replace("{0}",d).replace("{1}",String(H[k-1]))};var tOj={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"},NHp=tOj,MOQ=tOj;MOQ=NHp=tOj;var ZjA,IS,PD,SyI,Y2,nEw;
_.Lm=function(A,H,k,d){var W;if(W=H){a:if(H&&H.length===3){for(W=0;W<3;W++){var z=H[W];if(z<"A"||z>"Z"&&z<"a"||z>"z"){W=!1;break a}}W=!0}else W=!1;W=!W}if(W)throw new TypeError("ge");this.intlCurrencyCode_=H?H.toUpperCase():null;this.currencyStyle_=k||0;this.overrideNumberFormatSymbols_=d||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_=IS(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof A==="number")switch(A){case 1:Y2(this,IS(this).DECIMAL_PATTERN);break;case 2:Y2(this,IS(this).SCIENTIFIC_PATTERN);break;case 3:Y2(this,IS(this).PERCENT_PATTERN);break;case 4:A=IS(this).CURRENCY_PATTERN;H=["0"];if(k=
TL[PD(this)]){k=k[0]&7;if(k>0)for(H.push("."),d=0;d<k;d++)H.push("0");A=A.replace(/0.00/g,H.join(""))}Y2(this,A);break;case 5:nEw(this,1);break;case 6:nEw(this,2);break;default:throw Error("je");}else Y2(this,A)};
ZjA=!1;IS=function(A){return A.overrideNumberFormatSymbols_||(ZjA?MOQ:NHp)};
PD=function(A){return A.intlCurrencyCode_||IS(A).DEF_CURRENCY_CODE};
SyI=function(A,H){if(H>308)throw Error("ie`"+H);A.maximumFractionDigits_=H;return A};
Y2=function(A,H){var k=[0];A.positivePrefix_=fGG(A,H,k);for(var d=k[0],W=-1,z=0,u=0,B=0,h=-1,O=H.length,T=!0;k[0]<O&&T;k[0]++)switch(H.charAt(k[0])){case "#":u>0?B++:z++;h>=0&&W<0&&h++;break;case "0":if(B>0)throw Error("pe`"+H);u++;h>=0&&W<0&&h++;break;case ",":h>0&&A.groupingArray_.push(h);h=0;break;case ".":if(W>=0)throw Error("qe`"+H);W=z+u+B;break;case "E":if(A.useExponentialNotation_)throw Error("re`"+H);A.useExponentialNotation_=!0;A.minExponentDigits_=0;k[0]+1<O&&H.charAt(k[0]+1)=="+"&&(k[0]++,
A.useSignForPositiveExponent_=!0);for(;k[0]+1<O&&H.charAt(k[0]+1)=="0";)k[0]++,A.minExponentDigits_++;if(z+u<1||A.minExponentDigits_<1)throw Error("se`"+H);T=!1;break;default:k[0]--,T=!1}u==0&&z>0&&W>=0&&(u=W,u==0&&u++,B=z-u,z=u-1,u=1);if(W<0&&B>0||W>=0&&(W<z||W>z+u)||h==0)throw Error("te`"+H);B=z+u+B;A.maximumFractionDigits_=W>=0?B-W:0;W>=0&&(A.minimumFractionDigits_=z+u-W,A.minimumFractionDigits_<0&&(A.minimumFractionDigits_=0));A.minimumIntegerDigits_=(W>=0?W:B)-z;A.useExponentialNotation_&&(A.maximumIntegerDigits_=
z+A.minimumIntegerDigits_,A.maximumFractionDigits_==0&&A.minimumIntegerDigits_==0&&(A.minimumIntegerDigits_=1));A.groupingArray_.push(Math.max(0,h));A.decimalSeparatorAlwaysShown_=W==0||W==B;d=k[0]-d;A.positiveSuffix_=fGG(A,H,k);k[0]<H.length&&H.charAt(k[0])==";"?(k[0]++,A.multiplier_!=1&&(A.negativePercentSignExpected_=!0),A.negativePrefix_=fGG(A,H,k),k[0]+=d,A.negativeSuffix_=fGG(A,H,k)):(A.negativePrefix_+=A.positivePrefix_,A.negativeSuffix_+=A.positiveSuffix_)};
nEw=function(A,H){A.compactStyle_=H;Y2(A,IS(A).DECIMAL_PATTERN);A.minimumFractionDigits_=0;SyI(A,2);if(A.minimumFractionDigits_>0)throw Error("he");A.significantDigits_=2};
_.Lm.prototype.parse=function(A,H){H=H||[0];if(this.compactStyle_!==0)throw Error("ke");A=A.replace(/ |\u202f/g,"\u00a0");var k=A.indexOf(this.positivePrefix_,H[0])==H[0],d=A.indexOf(this.negativePrefix_,H[0])==H[0];k&&d&&(this.positivePrefix_.length>this.negativePrefix_.length?d=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(k=!1));k?H[0]+=this.positivePrefix_.length:d&&(H[0]+=this.negativePrefix_.length);if(A.indexOf(IS(this).INFINITY,H[0])==H[0]){H[0]+=IS(this).INFINITY.length;var W=
Infinity}else{W=A;var z=!1,u=!1,B=!1,h=-1,O=1,T=IS(this).DECIMAL_SEP,m=IS(this).GROUP_SEP,J=IS(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");m=m.replace(/\u202f/g,"\u00a0");for(var g="";H[0]<W.length;H[0]++){var v=W.charAt(H[0]),y=wnZ(this,v);if(y>=0&&y<=9)g+=y,B=!0;else if(v==T.charAt(0)){if(z||u)break;g+=".";z=!0}else if(v==m.charAt(0)&&("\u00a0"!=m.charAt(0)||H[0]+1<W.length&&wnZ(this,W.charAt(H[0]+1))>=0)){if(z||u)break}else if(v==J.charAt(0)){if(u)break;g+="E";u=!0;h=H[0]}else if(v==
"+"||v=="-"){if(B&&h!=H[0]-1)break;g+=v}else if(this.multiplier_==1&&v==IS(this).PERCENT.charAt(0)){if(O!=1)break;O=100;if(B){H[0]++;break}}else if(this.multiplier_==1&&v==IS(this).PERMILL.charAt(0)){if(O!=1)break;O=1E3;if(B){H[0]++;break}}else break}this.multiplier_!=1&&(O=this.multiplier_);W=parseFloat(g)/O}if(k){if(A.indexOf(this.positiveSuffix_,H[0])!=H[0])return NaN;H[0]+=this.positiveSuffix_.length}else if(d){if(A.indexOf(this.negativeSuffix_,H[0])!=H[0])return NaN;H[0]+=this.negativeSuffix_.length}return d?
-W:W};
_.Lm.prototype.format=function(A){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(A))return IS(this).NAN;var H=[];var k=A;if(this.compactStyle_==0)k=GL;else{k=Math.abs(k);var d=oEk(this,k<=1?0:$Ni(k)).divisorBase;k=oEk(this,d+$Ni(Acj(this,Fq(k,-d)).intValue))}A=Fq(A,-k.divisorBase);(d=A<0||A==0&&1/A<0)?k.negative_prefix?H.push(k.negative_prefix):(H.push(k.prefix),H.push(this.negativePrefix_)):(H.push(k.prefix),H.push(this.positivePrefix_));if(isFinite(A))if(A*=
d?-1:1,A*=this.multiplier_,this.useExponentialNotation_){var W=A;if(W==0)Hhw(this,W,this.minimumIntegerDigits_,H),s5A(this,0,H);else{var z=Math.floor(Math.log(W)/Math.log(10)+2E-15);W=Fq(W,-z);var u=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(u=z%this.maximumIntegerDigits_,u<0&&(u=this.maximumIntegerDigits_+u),W=Fq(W,u),z-=u,u=1):this.minimumIntegerDigits_<1?(z++,W=Fq(W,-1)):(z-=this.minimumIntegerDigits_-1,W=Fq(W,this.minimumIntegerDigits_-
1));Hhw(this,W,u,H);s5A(this,z,H)}}else Hhw(this,A,this.minimumIntegerDigits_,H);else H.push(IS(this).INFINITY);d?k.negative_suffix?H.push(k.negative_suffix):(isFinite(A)&&H.push(k.suffix),H.push(this.negativeSuffix_)):(isFinite(A)&&H.push(k.suffix),H.push(this.positiveSuffix_));return H.join("")};
var Acj=function(A,H){var k=Fq(H,A.maximumFractionDigits_);A.significantDigits_>0&&(k=kVA(k,A.significantDigits_,A.maximumFractionDigits_));k=Math.round(k);if(isFinite(k)){var d=Math.floor(Fq(k,-A.maximumFractionDigits_));k=Math.floor(k-Fq(d,A.maximumFractionDigits_));if(k<0||k>=Fq(1,A.maximumFractionDigits_))d=Math.round(H),k=0}else d=H,k=0;return{intValue:d,fracValue:k}},Hhw=function(A,H,k,d){if(A.minimumFractionDigits_>A.maximumFractionDigits_)throw Error("me");
d||(d=[]);H=Acj(A,H);var W=H.intValue,z=H.fracValue,u=A.minimumFractionDigits_>0||z>0||!1;H=A.minimumFractionDigits_;u&&(H=A.minimumFractionDigits_);for(var B="",h=W;h>1E20;)B="0"+B,h=Math.round(Fq(h,-1));B=h+B;var O=IS(A).DECIMAL_SEP;h=IS(A).ZERO_DIGIT.codePointAt(0);var T=B.length,m=0;if(W>0||k>0){for(W=T;W<k;W++)d.push(String.fromCodePoint(h));if(A.groupingArray_.length>=2)for(k=1;k<A.groupingArray_.length;k++)m+=A.groupingArray_[k];k=T-m;if(k>0){W=A.groupingArray_;m=T=0;for(var J,g=IS(A).GROUP_SEP,
v=B.length,y=0;y<v;y++)if(d.push(String.fromCodePoint(h+Number(B.charAt(y)))),v-y>1)if(J=W[m],y<k){var X=k-y;(J===1||J>0&&X%J===1)&&d.push(g)}else m<W.length&&(y===k?m+=1:J===y-k-T+1&&(d.push(g),T+=J,m+=1))}else{k=B;B=A.groupingArray_;W=IS(A).GROUP_SEP;J=k.length;g=[];for(T=B.length-1;T>=0&&J>0;T--){m=B[T];for(v=0;v<m&&J-v-1>=0;v++)g.push(String.fromCodePoint(h+Number(k.charAt(J-v-1))));J-=m;J>0&&g.push(W)}d.push.apply(d,g.reverse())}}else u||d.push(String.fromCodePoint(h));(A.decimalSeparatorAlwaysShown_||
u)&&d.push(O);z=String(z);u=z.split("e+");u.length==2&&(z=String(kVA(parseFloat(u[0]),A.significantDigits_,1)),z=z.replace(".",""),z+=(0,_.Cf1)("0",parseInt(u[1],10)-z.length+1));A.maximumFractionDigits_+1>z.length&&(z="1"+(0,_.Cf1)("0",A.maximumFractionDigits_-z.length)+z);for(A=z.length;z.charAt(A-1)=="0"&&A>H+1;)A--;for(H=1;H<A;H++)d.push(String.fromCodePoint(h+Number(z.charAt(H))))},s5A=function(A,H,k){k.push(IS(A).EXP_SYMBOL);
H<0?(H=-H,k.push(IS(A).MINUS_SIGN)):A.useSignForPositiveExponent_&&k.push(IS(A).PLUS_SIGN);H=""+H;for(var d=IS(A).ZERO_DIGIT,W=H.length;W<A.minExponentDigits_;W++)k.push(d);A=d.codePointAt(0)-dFi;for(d=0;d<H.length;d++)k.push(String.fromCodePoint(A+H.codePointAt(d)))},wnZ=function(A,H){H=H.codePointAt(0);
if(48<=H&&H<58)return H-48;A=IS(A).ZERO_DIGIT.codePointAt(0);return A<=H&&H<A+10?H-A:-1},dFi="0".codePointAt(0),fGG=function(A,H,k){for(var d="",W=!1,z=H.length;k[0]<z;k[0]++){var u=H.charAt(k[0]);
if(u=="'")k[0]+1<z&&H.charAt(k[0]+1)=="'"?(k[0]++,d+="'"):W=!W;else if(W)d+=u;else switch(u){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":if(k[0]+1<z&&H.charAt(k[0]+1)=="\u00a4")k[0]++,d+=PD(A);else switch(A.currencyStyle_){case 0:u=PD(A);d+=u in TL?TL[u][1]:u;break;case 2:u=PD(A);var B=TL[u];d+=B?u==B[1]?u:u+" "+B[1]:u;break;case 1:u=PD(A),d+=u in TL?TL[u][2]:u}break;case "%":if(!A.negativePercentSignExpected_&&A.multiplier_!=1)throw Error("ne");if(A.negativePercentSignExpected_&&
A.multiplier_!=100)throw Error("oe");A.multiplier_=100;A.negativePercentSignExpected_=!1;d+=IS(A).PERCENT;break;case "\u2030":if(!A.negativePercentSignExpected_&&A.multiplier_!=1)throw Error("ne");if(A.negativePercentSignExpected_&&A.multiplier_!=1E3)throw Error("oe");A.multiplier_=1E3;A.negativePercentSignExpected_=!1;d+=IS(A).PERMILL;break;default:d+=u}}return d},GL={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},oEk=function(A,H){A=A.compactStyle_==1?RS.COMPACT_DECIMAL_SHORT_PATTERN:RS.COMPACT_DECIMAL_LONG_PATTERN;A==null&&(A=RS.COMPACT_DECIMAL_SHORT_PATTERN);if(H<3)return GL;H=Math.min(14,H);var k=A[Fq(1,H)];for(--H;!k&&H>=3;)k=A[Fq(1,H)],H--;if(!k)return GL;k=k.other;var d=A="",W=k.indexOf(";");W>=0&&(k=k.substring(0,W),W=k.substring(W+1))&&(d=/([^0]*)(0+)(.*)/.exec(W),A=d[1],d=d[3]);return k&&k!="0"?(k=/([^0]*)(0+)(.*)/.exec(k))?{divisorBase:H+
1-(k[2].length-1),negative_prefix:A,negative_suffix:d,prefix:k[1],suffix:k[3]}:GL:GL},$Ni=function(A){if(!isFinite(A))return A>0?A:0;
for(var H=0;(A/=10)>=1;)H++;return H},Fq=function(A,H){if(!A||!isFinite(A)||H==0)return A;
A=String(A).split("e");return parseFloat(A[0]+"e"+(parseInt(A[1]||0,10)+H))},W51=function(A,H){return A&&isFinite(A)?Fq(Math.round(Fq(A,H)),-H):A},kVA=function(A,H,k){if(!A)return A;
H=H-$Ni(A)-1;return H<-k?W51(A,-k):W51(A,H)};var zE0,qFQ=zE0=zE0=rsC;var rcZ,Fgf=rcZ=rcZ=ukX;var xFJ=function(A){this.JSC$11776_pattern_=A;this.parsedPattern_=this.literals_=this.initialLiterals_=null;A=NHp;var H=RS;if(uBk!==A||B90!==H)uBk=A,B90=H,eEQ=new _.Lm(1);this.numberFormatter_=eEQ},uBk=null,B90=null,eEQ=null,ihp=RegExp("'([{}#].*?)'","g"),hEG=RegExp("''","g");
xFJ.prototype.format=function(A){if(this.JSC$11776_pattern_){this.initialLiterals_=[];var H=Ohw(this,this.JSC$11776_pattern_);this.parsedPattern_=REk(this,H);this.JSC$11776_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.tA(this.initialLiterals_),H=[],T9w(this,this.parsedPattern_,A,!1,H),A=H.join("");this.literals_.length>0;)A=A.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else A="";return A};
var T9w=function(A,H,k,d,W){for(var z=0;z<H.length;z++)switch(H[z].type){case 4:W.push(H[z].value);break;case 3:var u=H[z].value;var B=A,h=W,O=k[u];O===void 0?h.push("Undefined parameter - "+u):(B.literals_.push(O),h.push(B.buildPlaceholder_(B.literals_)));break;case 2:u=H[z].value;B=A;h=k;O=d;var T=W,m=u.argumentIndex;h[m]===void 0?T.push("Undefined parameter - "+m):(m=u[h[m]],m===void 0&&(m=u.other),T9w(B,m,h,O,T));break;case 0:u=H[z].value;mFw(A,u,k,Fgf,d,W);break;case 1:u=H[z].value,mFw(A,u,k,
qFQ,d,W)}},mFw=function(A,H,k,d,W,z){var u=H.argumentIndex,B=H.argumentOffset,h=+k[u];
isNaN(h)?z.push("Undefined or invalid parameter - "+u):(B=h-B,u=H[k[u]],u===void 0&&(d=d(Math.abs(B)),u=H[d],u===void 0&&(u=H.other)),H=[],T9w(A,u,k,W,H),k=H.join(""),W?z.push(k):(A=A.numberFormatter_.format(B),z.push(k.replace(/#/g,A))))},Ohw=function(A,H){var k=A.initialLiterals_,d=A.buildPlaceholder_.bind(A);
H=H.replace(hEG,function(){k.push("'");return d(k)});
return H=H.replace(ihp,function(W,z){k.push(z);return d(k)})},Jc0=function(A){var H=0,k=[],d=[],W=/[{}]/g;
W.lastIndex=0;for(var z;z=W.exec(A);){var u=z.index;z[0]=="}"?(k.pop(),k.length==0&&(z={type:1},z.value=A.substring(H,u),d.push(z),H=u+1)):(k.length==0&&(H=A.substring(H,u),H!=""&&d.push({type:0,value:H}),H=u+1),k.push("{"))}A=A.substring(H);A!=""&&d.push({type:0,value:A});return d},gHN=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,bh1=/^\s*(\w+)\s*,\s*selectordinal\s*,/,L5G=/^\s*(\w+)\s*,\s*select\s*,/,REk=function(A,H){var k=[];
H=Jc0(H);for(var d=0;d<H.length;d++){var W={};if(0==H[d].type)W.type=4,W.value=H[d].value;else if(1==H[d].type){var z=H[d].value;switch(gHN.test(z)?0:bh1.test(z)?1:L5G.test(z)?2:/^\s*\w+\s*/.test(z)?3:5){case 2:W.type=2;W.value=vH0(A,H[d].value);break;case 0:W.type=0;W.value=ycZ(A,H[d].value);break;case 1:W.type=1;W.value=j5Q(A,H[d].value);break;case 3:W.type=3,W.value=H[d].value}}k.push(W)}return k},vH0=function(A,H){var k="";
H=H.replace(L5G,function(B,h){k=h;return""});
var d={};d.argumentIndex=k;H=Jc0(H);for(var W=0;W<H.length;){var z=H[W].value;W++;var u=void 0;1==H[W].type&&(u=REk(A,H[W].value));d[z.replace(/\s/g,"")]=u;W++}return d},ycZ=function(A,H){var k="",d=0;
H=H.replace(gHN,function(h,O,T){k=O;T&&(d=parseInt(T,10));return""});
var W={};W.argumentIndex=k;W.argumentOffset=d;H=Jc0(H);for(var z=0;z<H.length;){var u=H[z].value;z++;var B=void 0;1==H[z].type&&(B=REk(A,H[z].value));W[u.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=B;z++}return W},j5Q=function(A,H){var k="";
H=H.replace(bh1,function(B,h){k=h;return""});
var d={};d.argumentIndex=k;d.argumentOffset=0;H=Jc0(H);for(var W=0;W<H.length;){var z=H[W].value;W++;var u=void 0;1==H[W].type&&(u=REk(A,H[W].value));d[z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=u;W++}return d};
xFJ.prototype.buildPlaceholder_=function(A){return"\ufddf_"+(A.length-1).toString(10)+"_"};var D6I=function(){var A={style:1},H=IvA;this.style_=(A==null?void 0:A.style)||0;this.durationSymbols_=H||VOw},YFA=function(A,H){switch(H){default:case "years":return A.durationSymbols_.YEAR;
case "months":return A.durationSymbols_.MONTH;case "weeks":return A.durationSymbols_.WEEK;case "days":return A.durationSymbols_.DAY;case "hours":return A.durationSymbols_.HOUR;case "minutes":return A.durationSymbols_.MINUTE;case "seconds":return A.durationSymbols_.SECOND}},Xq=function(A,H,k){a:{k=YFA(A,k);
switch(A.style_){case 1:if(k.LONG!=void 0){A=k.LONG;break a}case 2:if(k.NARROW!=void 0){A=k.NARROW;break a}default:A=k.SHORT;break a}A=void 0}return A?(new xFJ("{DURATION_VALUE,plural,"+A+"}")).format({DURATION_VALUE:H}):""};
D6I.prototype.format=function(A){var H=[],k=A.years,d=A.months,W=A.weeks,z=A.days,u=A.hours,B=A.minutes;A=A.seconds;k!=null&&H.push(Xq(this,k,"years"));d!=null&&H.push(Xq(this,d,"months"));W!=null&&H.push(Xq(this,W,"weeks"));z!=null&&H.push(Xq(this,z,"days"));u!=null&&H.push(Xq(this,u,"hours"));B!=null&&H.push(Xq(this,B,"minutes"));A!=null&&H.push(Xq(this,A,"seconds"));return(new UNA).format(H)};var P2N;
P2N={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 n0I=function(){this.rdtfSymbols_=GVQ||P2N;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
n0I.prototype.format=function(A,H){a:{H=F5k(this,H);switch(this.style_){case 2:if(H.NARROW!=void 0){H=H.NARROW;break a}case 1:if(H.SHORT!=void 0){H=H.SHORT;break a}default:H=H.LONG;break a}H=void 0}if(!this.alwaysNumeric_&&H&&H.R&&H.R[""+A])A=H.R[""+A];else if(H){var k=Math.abs(A);A=(new xFJ("{N,plural,"+(A>0||A==0&&1/A==Infinity?H.F:H.P)+"}")).format({N:k})}else A="";return A};
var F5k=function(A,H){switch(H){default:case 0:return A.rdtfSymbols_.YEAR;case 1:return A.rdtfSymbols_.QUARTER;case 2:return A.rdtfSymbols_.MONTH;case 3:return A.rdtfSymbols_.WEEK;case 4:return A.rdtfSymbols_.DAY;case 5:return A.rdtfSymbols_.HOUR;case 6:return A.rdtfSymbols_.MINUTE;case 7:return A.rdtfSymbols_.SECOND}};B3I.prototype.clone=function(){return new B3I(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
B3I.prototype.equals=function(A){return this.x0==A.x0&&this.y0==A.y0&&this.x1==A.x1&&this.y1==A.y1&&this.x2==A.x2&&this.y2==A.y2&&this.x3==A.x3&&this.y3==A.y3};
var XGA=function(A,H){if(H==0)return A.x0;if(H==1)return A.x3;var k=GO(A.x0,A.x1,H),d=GO(A.x1,A.x2,H);A=GO(A.x2,A.x3,H);k=GO(k,d,H);d=GO(d,A,H);return GO(k,d,H)},DFJ=function(A,H){var k=(H-A.x0)/(A.x3-A.x0);
if(k<=0)return 0;if(k>=1)return 1;for(var d=0,W=1,z=0,u=0;u<8;u++){z=XGA(A,k);var B=(XGA(A,k+1E-6)-z)/1E-6;if(Math.abs(z-H)<1E-6)return k;if(Math.abs(B)<1E-6)break;else z<H?d=k:W=k,k-=(z-H)/B}for(u=0;Math.abs(z-H)>1E-6&&u<8;u++)z<H?(d=k,k=(k+W)/2):(W=k,k=(k+d)/2),z=XGA(A,k);return k};var Dw;_.EK(ug,_.Is);var x3f={},ekl=0,SF1=function(A,H){var k=zE(A);RUk(H,function(d,W){Array.isArray(d)||(d=[d]);_.t3(d,function(z){z=k.JSC$9641_createDom("INPUT",{type:"hidden",name:W,value:z});A.appendChild(z)})})};
_.q=ug.prototype;_.q.JSC$11798_form_=null;_.q.JSC$11798_iframe_=null;_.q.iframeName_=null;_.q.nextIframeId_=0;_.q.JSC$11798_active_=!1;_.q.complete_=!1;_.q.success_=!1;_.q.lastContent_=null;_.q.JSC$11798_lastErrorCode_=0;_.q.iframeDisposalTimer_=null;
_.q.send=function(A,H,k,d){if(this.JSC$11798_active_)throw Error("ue");A=new _.PB(A);H=H?H.toUpperCase():"GET";k&&_.nf(A);Dw||(Dw=_.JK("FORM"),Dw.acceptCharset="utf-8",k=Dw.style,k.position="absolute",k.visibility="hidden",k.top=k.left="-10px",k.width=k.height="10px",k.overflow="hidden",document.body.appendChild(Dw));this.JSC$11798_form_=Dw;H=="GET"&&SF1(this.JSC$11798_form_,A.JSC$10346_queryData_);d&&SF1(this.JSC$11798_form_,d);k=A.toString();k=PC8(k);d=this.JSC$11798_form_;k=_.$p(lm(k));k!==void 0&&
(d.action=k);this.JSC$11798_form_.method=H;C21(this);K5A(this)};
_.q.abort=function(A){if(this.JSC$11798_active_){var H=SV(this);if(H)if(BS(H))H.removeAllListeners(void 0);else if(H=eP(H)){var k=0,d;for(d in H.listeners)for(var W=H.listeners[d].concat(),z=0;z<W.length;++z)k5(W[z])&&++k}this.success_=this.JSC$11798_active_=this.complete_=!1;this.JSC$11798_lastErrorCode_=A||7;this.dispatchEvent("abort");avj(this)}};
_.q.disposeInternal=function(){this.JSC$11798_active_&&this.abort();ug.superClass_.disposeInternal.call(this);this.JSC$11798_iframe_&&ccj(this);K5A(this);this.JSC$11798_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11798_form_=null;this.JSC$11798_lastErrorCode_=0;delete x3f[this.JSC$11796_name_]};
_.q.isComplete=function(){return this.complete_};
_.q.isSuccess=function(){return this.success_};
_.q.isActive=function(){return this.JSC$11798_active_};
_.q.getResponseText=function(){return this.lastContent_};
_.q.getLastError=function(){return _.wI1(this.JSC$11798_lastErrorCode_)};
var C21=function(A){A.JSC$11798_active_=!0;A.complete_=!1;A.JSC$11798_lastErrorCode_=0;A.iframeName_=A.JSC$11796_name_+"_"+(A.nextIframeId_++).toString(36);A.JSC$11798_iframe_=zE(A.JSC$11798_form_).JSC$9641_createDom("IFRAME",{name:A.iframeName_,id:A.iframeName_});var H=A.JSC$11798_iframe_.style;H.visibility="hidden";H.width=H.height="10px";H.display="none";_.HN?H.marginTop=H.marginLeft="-10px":(H.position="absolute",H.top=H.left="-10px");zE(A.JSC$11798_form_).JSC$9639_document_.body.appendChild(A.JSC$11798_iframe_);
H=A.iframeName_+"_inner";var k=ogZ(A.JSC$11798_iframe_);if(document.baseURI){var d=lL(H);d='<head><base href="'+lL(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>';d=k7(d)}else d=lL(H),d=k7('<body><iframe id="'+d+'" name="'+d+'"></iframe>');k.write(dU(d));_.Y3(k.getElementById(H),"load",A.onIframeLoaded_,!1,A);d=HT("TEXTAREA",A.JSC$11798_form_);for(var W=0,z=d.length;W<z;W++){var u=d[W].value;dZ1(d[W])!=u&&(_.IM(d[W],u),d[W].value=u)}d=k.importNode(A.JSC$11798_form_,!0);
d.target=H;d.action=A.JSC$11798_form_.action;k.body.appendChild(d);W=HT("SELECT",A.JSC$11798_form_);z=HT("SELECT",d);u=0;for(var B=W.length;u<B;u++)for(var h=HT("OPTION",W[u]),O=HT("OPTION",z[u]),T=0,m=h.length;T<m;T++)O[T].selected=h[T].selected;W=HT("INPUT",A.JSC$11798_form_);z=HT("INPUT",d);u=0;for(B=W.length;u<B;u++)if(W[u].type=="file"&&W[u].value!=z[u].value){A.JSC$11798_form_.target=H;d=A.JSC$11798_form_;break}try{A.errorHandled_=!1,d.submit(),k.close(),_.s3&&setTimeout(A.testForFirefoxSilentError_.bind(A),
250)}catch(J){_.xz(k.getElementById(H),"load",A.onIframeLoaded_,!1,A),k.close(),Co(A,2)}};
ug.prototype.onIframeLoaded_=function(){_.xz(SV(this),"load",this.onIframeLoaded_,!1,this);try{var A=this.JSC$11798_iframe_?ogZ(SV(this)):null;this.complete_=!0;this.JSC$11798_active_=!1;try{var H=A.body;this.lastContent_=H.textContent||H.innerText}catch(W){var k=1}var d;k||typeof this.errorChecker_!="function"||(d=this.errorChecker_(A))&&(k=4);k?Co(this,k):(this.success_=!0,this.JSC$11798_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),avj(this))}catch(W){Co(this,1)}};
var Co=function(A,H){A.errorHandled_||(A.success_=!1,A.JSC$11798_active_=!1,A.complete_=!0,A.JSC$11798_lastErrorCode_=H,A.dispatchEvent("complete"),A.dispatchEvent("error"),avj(A),A.errorHandled_=!0)},avj=function(A){ccj(A);
K5A(A);A.JSC$11798_form_=null;A.dispatchEvent("ready")},ccj=function(A){var H=A.JSC$11798_iframe_;
H&&(H.onreadystatechange=null,H.onload=null,H.onerror=null,A.iframesForDisposal_.push(H));A.iframeDisposalTimer_&&(clearTimeout(A.iframeDisposalTimer_),A.iframeDisposalTimer_=null);_.s3?A.iframeDisposalTimer_=setTimeout(A.disposeIframes_.bind(A),2E3):A.disposeIframes_();A.JSC$11798_iframe_=null;A.iframeName_=null};
ug.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var A=this.iframesForDisposal_.pop();_.Aw(A)}};
var K5A=function(A){A.JSC$11798_form_&&A.JSC$11798_form_==Dw&&_.LO(A.JSC$11798_form_)},SV=function(A){return A.JSC$11798_iframe_?ogZ(A.JSC$11798_iframe_).getElementById(A.iframeName_+"_inner"):null};
ug.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11798_active_){var A=this.JSC$11798_iframe_?ogZ(SV(this)):null;A&&!odV(A,"documentUri")?(_.xz(SV(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Co(this,3):Co(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Ko=function(A){return A=="\r"||A=="\n"||A==" "||A=="\t"};_.BN.prototype.isInputValid=function(){return this.streamState_!=3};
_.BN.prototype.done=function(){return this.streamState_===2};
var aS=function(A,H,k){A.streamState_=3;A.errorMessage_="The stream is broken @"+A.JSC$11800_pos_+"/"+k+". With input:\n"+H;throw Error(A.errorMessage_);};
_.BN.prototype.acceptsBinaryInput=function(){return!1};
_.BN.prototype.parse=function(A){function H(){for(;m<A.length;)if(_.Ko(A[m]))m++,z.JSC$11800_pos_++;else break;return m<h}
function k(){for(var g;;){g=A[m++];if(!g)break;z.JSC$11800_pos_++;switch(z.state_){case 0:g==="{"?z.state_=2:g==="["?z.state_=4:_.Ko(g)||aS(z,A,m);continue;case 7:case 2:if(_.Ko(g))continue;if(z.state_===7)u.push(8);else if(g==="}"){W("{}");z.state_=d();continue}else u.push(3);g==='"'?z.state_=6:aS(z,A,m);continue;case 8:case 3:if(_.Ko(g))continue;g===":"?(z.state_===3&&(u.push(3),z.depth_++),z.state_=1):g==="}"?(z.depth_--,W(),z.state_=d()):g===","?(z.state_===3&&u.push(3),z.state_=7):aS(z,A,m);
continue;case 4:case 1:if(_.Ko(g))continue;if(z.state_===4)if(z.depth_++,z.state_=1,g==="]"){z.depth_--;if(z.depth_===0){z.state_=5;return}W("[]");z.state_=d();continue}else u.push(5);g==='"'?z.state_=6:g==="{"?z.state_=2:g==="["?z.state_=4:g==="t"?z.state_=9:g==="f"?z.state_=12:g==="n"?z.state_=16:g!=="-"&&("0123456789".indexOf(g)!==-1?z.state_=20:aS(z,A,m));continue;case 5:if(g===",")u.push(5),z.state_=1,z.depth_===1&&(T=m);else if(g==="]"){z.depth_--;if(z.depth_===0)return;W();z.state_=d()}else if(_.Ko(g))continue;
else aS(z,A,m);continue;case 6:var v=m;a:for(;;){for(;z.unicodeCount_>0;)if(g=A[m++],z.unicodeCount_===4?z.unicodeCount_=0:z.unicodeCount_++,!g)break a;if(g==='"'&&!z.slashed_){z.state_=d();break}if(g==="\\"&&!z.slashed_&&(z.slashed_=!0,g=A[m++],!g))break;if(z.slashed_)if(z.slashed_=!1,g==="u"&&(z.unicodeCount_=1),g=A[m++])continue;else break;B.lastIndex=m;g=B.exec(A);if(!g){m=A.length+1;break}m=g.index+1;g=A[g.index];if(!g)break}z.JSC$11800_pos_+=m-v;continue;case 9:if(!g)continue;g==="r"?z.state_=
10:aS(z,A,m);continue;case 10:if(!g)continue;g==="u"?z.state_=11:aS(z,A,m);continue;case 11:if(!g)continue;g==="e"?z.state_=d():aS(z,A,m);continue;case 12:if(!g)continue;g==="a"?z.state_=13:aS(z,A,m);continue;case 13:if(!g)continue;g==="l"?z.state_=14:aS(z,A,m);continue;case 14:if(!g)continue;g==="s"?z.state_=15:aS(z,A,m);continue;case 15:if(!g)continue;g==="e"?z.state_=d():aS(z,A,m);continue;case 16:if(!g)continue;g==="u"?z.state_=17:aS(z,A,m);continue;case 17:if(!g)continue;g==="l"?z.state_=18:
aS(z,A,m);continue;case 18:if(!g)continue;g==="l"?z.state_=d():aS(z,A,m);continue;case 19:g==="."?z.state_=20:aS(z,A,m);continue;case 20:if("0123456789.eE+-".indexOf(g)!==-1)continue;else m--,z.JSC$11800_pos_--,z.state_=d();continue;default:aS(z,A,m)}}}
function d(){var g=u.pop();return g!=null?g:1}
function W(g){z.depth_>1||(g||(g=T===-1?z.JSC$11800_buffer_+A.substring(O,m):A.substring(T,m)),z.deliverMessageAsRawString_?z.result_.push(g):z.result_.push(JSON.parse(g)),T=m)}
for(var z=this,u=z.stack_,B=z.stringInputPattern_,h=A.length,O=0,T=-1,m=0;m<h;)switch(z.streamState_){case 3:return aS(z,A,m),null;case 2:return H()&&aS(z,A,m),null;case 0:if(H()){var J=A[m++];z.JSC$11800_pos_++;if(J==="["){z.streamState_=1;O=m;z.state_=4;continue}else aS(z,A,m)}return null;case 1:return k(),z.depth_===0&&z.state_==5?(z.streamState_=2,z.JSC$11800_buffer_=A.substring(m)):z.JSC$11800_buffer_=T===-1?z.JSC$11800_buffer_+A.substring(O):A.substring(T),z.result_.length>0?(J=z.result_,z.result_=
[],J):null}return null};_.EK(_.eL,g2);xk.prototype.getValue=function(){return this.JSC$11807_value_};
xk.prototype.clone=function(){return new xk(this.JSC$11807_key_,this.JSC$11807_value_)};var cD=function(A){this.nodes_=[];if(A)a:{if(A instanceof cD){var H=A.getKeys();A=A.getValues();if(this.getCount()<=0){for(var k=this.nodes_,d=0;d<H.length;d++)k.push(new xk(H[d],A[d]));break a}}else H=_.iK.getKeys(A),A=_.iK.getValues(A);for(k=0;k<H.length;k++)this.insert(H[k],A[k])}};
_.q=cD.prototype;_.q.insert=function(A,H){var k=this.nodes_;k.push(new xk(A,H));A=k.length-1;H=this.nodes_;for(k=H[A];A>0;){var d=A-1>>1;if(H[d].JSC$11807_key_>k.JSC$11807_key_)H[A]=H[d],A=d;else break}H[A]=k};
_.q.remove=function(){var A=this.nodes_,H=A.length,k=A[0];if(!(H<=0)){if(H==1)A.length=0;else{A[0]=A.pop();A=0;H=this.nodes_;for(var d=H.length,W=H[A];A<d>>1;){var z=A*2+1,u=A*2+2;z=u<d&&H[u].JSC$11807_key_<H[z].JSC$11807_key_?u:z;if(H[z].JSC$11807_key_>W.JSC$11807_key_)break;H[A]=H[z];A=z}H[A]=W}return k.getValue()}};
_.q.peek=function(){var A=this.nodes_;if(A.length!=0)return A[0].getValue()};
_.q.getValues=function(){for(var A=this.nodes_,H=[],k=A.length,d=0;d<k;d++)H.push(A[d].getValue());return H};
_.q.getKeys=function(){for(var A=this.nodes_,H=[],k=A.length,d=0;d<k;d++)H.push(A[d].JSC$11807_key_);return H};
_.q.containsValue=function(A){return this.nodes_.some(function(H){return H.getValue()==A})};
_.q.containsKey=function(A){return this.nodes_.some(function(H){return H.JSC$11807_key_==A})};
_.q.clone=function(){return new cD(this)};
_.q.getCount=function(){return this.nodes_.length};
_.q.isEmpty=function(){return this.nodes_.length===0};
_.q.clear=function(){this.nodes_.length=0};_.q=_.ig.prototype;_.q.getCount=function(){return this.size};
_.q.getValues=function(){po(this);for(var A=[],H=0;H<this.JSC$11813_keys_.length;H++)A.push(this.JSC$11813_map_[this.JSC$11813_keys_[H]]);return A};
_.q.getKeys=function(){po(this);return this.JSC$11813_keys_.concat()};
_.q.containsKey=function(A){return this.has(A)};
_.q.has=function(A){return QK(this.JSC$11813_map_,A)};
_.q.containsValue=function(A){for(var H=0;H<this.JSC$11813_keys_.length;H++){var k=this.JSC$11813_keys_[H];if(QK(this.JSC$11813_map_,k)&&this.JSC$11813_map_[k]==A)return!0}return!1};
_.q.equals=function(A,H){if(this===A)return!0;if(this.size!=A.getCount())return!1;H=H||pG1;po(this);for(var k,d=0;k=this.JSC$11813_keys_[d];d++)if(!H(this.get(k),A.get(k)))return!1;return!0};
var pG1=function(A,H){return A===H};
_.ig.prototype.isEmpty=function(){return this.size==0};
_.ig.prototype.clear=function(){this.JSC$11813_map_={};this.version_=this.size=this.JSC$11813_keys_.length=0};
_.ig.prototype.remove=function(A){return this.delete(A)};
_.ig.prototype.delete=function(A){return QK(this.JSC$11813_map_,A)?(delete this.JSC$11813_map_[A],--this.size,this.version_++,this.JSC$11813_keys_.length>2*this.size&&po(this),!0):!1};
var po=function(A){if(A.size!=A.JSC$11813_keys_.length){for(var H=0,k=0;H<A.JSC$11813_keys_.length;){var d=A.JSC$11813_keys_[H];QK(A.JSC$11813_map_,d)&&(A.JSC$11813_keys_[k++]=d);H++}A.JSC$11813_keys_.length=k}if(A.size!=A.JSC$11813_keys_.length){H={};for(d=k=0;k<A.JSC$11813_keys_.length;){var W=A.JSC$11813_keys_[k];QK(H,W)||(A.JSC$11813_keys_[d++]=W,H[W]=1);k++}A.JSC$11813_keys_.length=d}};
_.q=_.ig.prototype;_.q.get=function(A,H){return QK(this.JSC$11813_map_,A)?this.JSC$11813_map_[A]:H};
_.q.set=function(A,H){QK(this.JSC$11813_map_,A)||(this.size+=1,this.JSC$11813_keys_.push(A),this.version_++);this.JSC$11813_map_[A]=H};
_.q.addAll=function(A){if(A instanceof _.ig)for(var H=A.getKeys(),k=0;k<H.length;k++)this.set(H[k],A.get(H[k]));else for(H in A)this.set(H,A[H])};
_.q.forEach=function(A,H){for(var k=this.getKeys(),d=0;d<k.length;d++){var W=k[d],z=this.get(W);A.call(H,z,W,this)}};
_.q.clone=function(){return new _.ig(this)};
_.q.transpose=function(){for(var A=new _.ig,H=0;H<this.JSC$11813_keys_.length;H++){var k=this.JSC$11813_keys_[H];A.set(this.JSC$11813_map_[k],k)}return A};
_.q.keys=function(){return JZw(this.__iterator__(!0)).toEs6()};
_.q.values=function(){return JZw(this.__iterator__(!1)).toEs6()};
_.q.entries=function(){var A=this;return afN(this.keys(),function(H){return[H,A.get(H)]})};
_.q.__iterator__=function(A){po(this);var H=0,k=this.version_,d=this,W=new pn;W.next=function(){if(k!=d.version_)throw Error("ve");if(H>=d.JSC$11813_keys_.length)return Q4;var z=d.JSC$11813_keys_[H++];return V4(A?z:d.JSC$11813_map_[z])};
return W};
var QK=function(A,H){return Object.prototype.hasOwnProperty.call(A,H)};var Q5w=function(A,H){if(H=A.JSC$11816_map_.get(H))H.remove(),A.insert_(H);return H};
_.q=hk8.prototype;_.q.get=function(A,H){return(A=Q5w(this,A))?A.value:H};
_.q.set=function(A,H){var k=Q5w(this,A);k?k.value=H:(k=new ifb(A,H),this.JSC$11816_map_.set(A,k),this.insert_(k))};
_.q.peek=function(){return this.JSC$11816_head_.next.value};
_.q.shift=function(){return Vu0(this,this.JSC$11816_head_.next)};
_.q.pop=function(){return Vu0(this,this.JSC$11816_head_.prev)};
_.q.remove=function(A){return(A=this.JSC$11816_map_.get(A))?(this.removeNode(A),!0):!1};
_.q.removeNode=function(A){A.remove();this.JSC$11816_map_.remove(A.key)};
_.q.getCount=function(){return this.JSC$11816_map_.getCount()};
_.q.isEmpty=function(){return this.JSC$11816_map_.isEmpty()};
_.q.getKeys=function(){return this.map(function(A,H){return H})};
_.q.getValues=function(){return this.map(function(A){return A})};
_.q.contains=function(A){return this.some(function(H){return H==A})};
_.q.containsKey=function(A){return this.JSC$11816_map_.containsKey(A)};
_.q.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11816_head_.prev)};
_.q.forEach=function(A,H){for(var k=this.JSC$11816_head_.next;k!=this.JSC$11816_head_;k=k.next)A.call(H,k.value,k.key,this)};
_.q.map=function(A,H){for(var k=[],d=this.JSC$11816_head_.next;d!=this.JSC$11816_head_;d=d.next)k.push(A.call(H,d.value,d.key,this));return k};
_.q.some=function(A,H){for(var k=this.JSC$11816_head_.next;k!=this.JSC$11816_head_;k=k.next)if(A.call(H,k.value,k.key,this))return!0;return!1};
_.q.every=function(A,H){for(var k=this.JSC$11816_head_.next;k!=this.JSC$11816_head_;k=k.next)if(!A.call(H,k.value,k.key,this))return!1;return!0};
_.q.insert_=function(A){A.next=this.JSC$11816_head_.next;A.prev=this.JSC$11816_head_;this.JSC$11816_head_.next=A;for(A.next.prev=A;this.getCount()>100;)this.removeNode(this.JSC$11816_head_.prev)};
var Vu0=function(A,H){A.JSC$11816_head_!=H&&A.removeNode(H);return H.value},ifb=function(A,H){this.key=A;
this.value=H};
ifb.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var EHA=function(){cD.apply(this,arguments)};
_.I(EHA,cD);EHA.prototype.enqueue=function(A,H){this.insert(A,H)};var UFA=function(){var A=Error();A.name="SecurityError";throw A;},N7r=function(){return{get opener(){return null},
get closed(){return!0},get location(){UFA()},get document(){UFA()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Ofl={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 m3C={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 lvw={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(m3C).join("|");var tu1=function(){function A(B){B.substr(-1)!==";"&&(B+=";");return u(B)}
for(var H=Object.keys(lvw).sort(T3X),k=Object.keys(m3C).sort(T3X),d=0,W=0;d<k.length;d++)H[W]===k[d]?(k[d]+=";?",W++):k[d]+=";";var z=new RegExp("&(?:"+k.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=JsW();return function(B){return String(B).replace(z,A)}}();/*

 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 N9p={};var Mup=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"),nHJ=/[\\&]/,ZhN=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),fvk=RegExp('[&<>"]',"g"),wG1=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),oHj=function(A){return A.charCodeAt(0)===92?A.charAt(1):tu1(A)},$FZ=function(A){return nHJ.test(A)?A.replace(ZhN,oHj):A},Avi=function(A){try{var H,k="";
if(typeof W!=="string"){var d=W;var W=";/?:@&=+$,-_.!~*'()#"}typeof d==="undefined"&&(d=!0);var z,u=N9p[W];if(u)var B=u;else{u=N9p[W]=[];for(z=0;z<128;z++){var h=String.fromCharCode(z);/^[0-9a-z]$/i.test(h)?u.push(h):u.push("%"+("0"+z.toString(16).toUpperCase()).slice(-2))}for(z=0;z<W.length;z++)u[W.charCodeAt(z)]=W[z];B=u}var O=0;for(H=A.length;O<H;O++){var T=A.charCodeAt(O);if(d&&T===37&&O+2<H&&/^[0-9a-f]{2}$/i.test(A.slice(O+1,O+3)))k+=A.slice(O,O+3),O+=2;else if(T<128)k+=B[T];else if(T>=55296&&
T<=57343){if(T>=55296&&T<=56319&&O+1<H){var m=A.charCodeAt(O+1);if(m>=56320&&m<=57343){k+=encodeURIComponent(A[O]+A[O+1]);O++;continue}}k+="%EF%BF%BD"}else k+=encodeURIComponent(A[O])}return k}catch(J){return A}},Hw0=function(A){switch(A){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return A}},VK=function(A,H){return fvk.test(A)?H?A.replace(wG1,Hw0):A.replace(fvk,Hw0):A};/*

 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 Eu;if(String.fromCodePoint)Eu=function(A){try{return String.fromCodePoint(A)}catch(H){if(H instanceof RangeError)return String.fromCharCode(65533);throw H;}};
else{var sIw=String.fromCharCode,kFw=Math.floor;Eu=function(){var A=[],H=-1,k=arguments.length;if(!k)return"";for(var d="";++H<k;){var W=Number(arguments[H]);if(!isFinite(W)||W<0||W>1114111||kFw(W)!==W)return String.fromCharCode(65533);if(W<=65535)A.push(W);else{W-=65536;var z=(W>>10)+55296;W=W%1024+56320;A.push(z,W)}if(H+1===k||A.length>16384)d+=sIw.apply(null,A),A.length=0}return d}};var dLk=function(A){this.root=this.current=A;this.entering=!0};
dLk.prototype.next=function(){var A=this.current,H=this.entering;if(A===null)return null;a:switch(A._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 k=!0;break a;default:k=!1}H&&k?A._firstChild?(this.current=A._firstChild,this.entering=!0):this.entering=!1:A===this.root?this.current=null:A._next===null?(this.current=
A._parent,this.entering=!1):(this.current=A._next,this.entering=!0);return{entering:H,node:A}};
var Ty=function(A,H){this._type=A;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=H;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};
Ty.prototype.appendChild=function(A){A.unlink();A._parent=this;this._lastChild?(this._lastChild._next=A,A._prev=this._lastChild):this._firstChild=A;this._lastChild=A};
Ty.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 W8w=function(A,H){H.unlink();H._next=A._next;H._next&&(H._next._prev=H);H._prev=A;A._next=H;H._parent=A._parent;H._next||(H._parent._lastChild=H)};
Ty.prototype.insertBefore=function(A){A.unlink();A._prev=this._prev;A._prev&&(A._prev._next=A);A._next=this;this._prev=A;A._parent=this._parent;A._prev||(A._parent._firstChild=A)};
_.nP.Object.defineProperties(Ty.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(A){this._literal=A}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(A){this._destination=A}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(A){this._title=A}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(A){this._info=A}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(A){this._level=A}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(A){this._listData.type=A}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(A){this._listData.tight=A}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(A){this._listData.start=A}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(A){this._onEnter=A}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(A){this._onExit=A}}});var gzm=/[ \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,
bfI={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 zOw=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]/),
q51=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),rvA=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),u1w=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),Byk=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),eOw=/`+/,xLN=/^`+/,iwG=/\.\.\./g,hON=/--+/g,Oww=/^<([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])?)*)>/,
RO1=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Tyw=/^ *(?:\n *)?/,mLZ=/^[ \t\n\x0b\x0c\x0d]/,Jvj=/[ \t\n\x0b\x0c\x0d]+/g,gqj=/^\s/,bwp=/ *$/,L8Z=/^ */,vqN=/^ *(?:\n|$)/,yvG=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),jIi=/^[^\n`\[\]\\!<&*_'"]+/m,Uu=function(A){var H=new Ty("text");H._literal=A;return H},lS=function(A){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=A||{}};
lS.prototype.match=function(A){A=A.exec(this.subject.slice(this.pos));if(A===null)return null;this.pos+=A.index+A[0].length;return A[0]};
lS.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var tg=function(A){A.match(Tyw);return!0},IhG=function(A,H,k){var d=0;
var W=A.pos;if(H===39||H===34)d++,A.pos++;else for(;A.peek()===H;)d++,A.pos++;if(d===0)d=null;else{var z=W===0?"\n":A.subject.charAt(W-1);var u=A.peek();u=u===-1?"\n":Eu(u);var B=gqj.test(u);u=zOw.test(u);var h=gqj.test(z);var O=zOw.test(z);z=!B&&!(u&&!h&&!O);B=!h&&!(O&&!B&&!u);H===95?(h=z&&(!B||O),u=B&&(!z||u)):(h=H===39||H===34?z&&!B:z,u=B);A.pos=W;d={numdelims:d,can_open:h,can_close:u}}if(!d)return!1;W=d.numdelims;u=A.pos;A.pos+=W;u=H===39?"\u2019":H===34?"\u201c":A.subject.slice(u,A.pos);u=Uu(u);
k.appendChild(u);A.delimiters={cc:H,numdelims:W,origdelims:W,node:u,previous:A.delimiters,next:null,can_open:d.can_open,can_close:d.can_close};A.delimiters.previous!==null&&(A.delimiters.previous.next=A.delimiters);return!0},Y5j=function(A,H){H.previous!==null&&(H.previous.next=H.next);
H.next===null?A.delimiters=H.previous:H.next.previous=H.previous},Psw=function(A,H){var k,d,W=[],z=!1;
W[95]=H;W[42]=H;W[39]=H;W[34]=H;for(k=A.delimiters;k!==null&&k.previous!==H;)k=k.previous;for(;k!==null;){var u=k.cc;if(k.can_close){var B=k.previous;for(d=!1;B!==null&&B!==H&&B!==W[u];){z=(k.can_open||B.can_close)&&(B.origdelims+k.origdelims)%3===0;if(B.cc===k.cc&&B.can_open&&!z){d=!0;break}B=B.previous}var h=k;if(u===42||u===95)if(d){var O=k.numdelims>=2&&B.numdelims>=2?2:1;var T=B.node;var m=k.node;B.numdelims-=O;k.numdelims-=O;T._literal=T._literal.slice(0,T._literal.length-O);m._literal=m._literal.slice(0,
m._literal.length-O);var J=new Ty(O===1?"emph":"strong");for(O=T._next;O&&O!==m;){var g=O._next;O.unlink();J.appendChild(O);O=g}W8w(T,J);O=B;g=k;O.next!==g&&(O.next=g,g.previous=O);B.numdelims===0&&(T.unlink(),Y5j(A,B));k.numdelims===0&&(m.unlink(),B=k.next,Y5j(A,k),k=B)}else k=k.next;else u===39?(k.node._literal="\u2019",d&&(B.node._literal="\u2018"),k=k.next):u===34&&(k.node._literal="\u201d",d&&(B.node.literal="\u201c"),k=k.next);d||z||(W[u]=h.previous,h.can_open||Y5j(A,h))}else k=k.next}for(;A.delimiters!==
null&&A.delimiters!==H;)Y5j(A,A.delimiters)},GFp=function(A){A=A.match(q51);
return A===null?null:$FZ(A.substr(1,A.length-2))},F8A=function(A){var H=A.match(rvA);
if(H===null){H=A.pos;for(var k=0,d;(d=A.peek())!==-1;)if(d===92)A.pos+=1,A.peek()!==-1&&(A.pos+=1);else if(d===40)A.pos+=1,k+=1;else if(d===41)if(k<1)break;else A.pos+=1,--k;else if(mLZ.exec(Eu(d))!==null)break;else A.pos+=1;H=A.subject.substr(H,A.pos-H);return Avi($FZ(H))}return Avi($FZ(H.substr(1,H.length-2)))},Xlw=function(A){A=A.match(yvG);
return A===null||A.length>1001?0:A.length},DL0=function(A,H,k,d){A.brackets!==null&&(A.brackets.bracketAfter=!0);
A.brackets={node:H,previous:A.brackets,previousDelimiter:A.delimiters,index:k,image:d,active:!0}},S5Z=function(A,H){var k;
return(k=A.match(jIi))?(A.options.smart?H.appendChild(Uu(k.replace(iwG,"\u2026").replace(hON,function(d){var W=0,z=0;d.length%3===0?z=d.length/3:d.length%2===0?W=d.length/2:d.length%3===2?(W=1,z=(d.length-2)/3):(W=2,z=(d.length-4)/3);d="";var u;for(u=0;u<z;u++)d+="\u2014";for(u=0;u<W;u++)d+="\u2013";return d}))):H.appendChild(Uu(k)),!0):!1},Csp=function(A,H,k){A.subject=H;
A.pos=0;H=A.pos;var d=Xlw(A);if(d===0)return 0;var W=A.subject.substr(0,d);if(A.peek()===58)A.pos++;else return A.pos=H,0;tg(A);d=F8A(A);if(d===null||d.length===0)return A.pos=H,0;var z=A.pos;tg(A);var u=GFp(A);u===null&&(u="",A.pos=z);var B=!0;A.match(vqN)===null&&(u===""?B=!1:(u="",A.pos=z,B=A.match(vqN)!==null));if(!B)return A.pos=H,0;W=Lvm(W);if(W==="")return A.pos=H,0;k[W]||(k[W]={destination:d,title:u});return A.pos-H},K8w=function(A,H){var k,d=A.peek();
if(d===-1)return!1;switch(d){case 10:A.pos+=1;if((k=H._lastChild)&&k.type==="text"&&k._literal[k._literal.length-1]===" "){var W=k._literal[k._literal.length-2]===" ";k._literal=k._literal.replace(bwp,"");H.appendChild(new Ty(W?"linebreak":"softbreak"))}else H.appendChild(new Ty("softbreak"));A.match(L8Z);k=!0;break;case 92:k=A.subject;A.pos+=1;A.peek()===10?(A.pos+=1,k=new Ty("linebreak"),H.appendChild(k)):u1w.test(k.charAt(A.pos))?(H.appendChild(Uu(k.charAt(A.pos))),A.pos+=1):H.appendChild(Uu("\\"));
k=!0;break;case 96:a:if(k=A.match(xLN),k===null)k=!1;else{W=A.pos;for(var z;(z=A.match(eOw))!==null;)if(z===k){z=new Ty("code");z._literal=A.subject.slice(W,A.pos-k.length).trim().replace(Jvj," ");H.appendChild(z);k=!0;break a}A.pos=W;H.appendChild(Uu(k));k=!0}break;case 42:case 95:k=IhG(A,d,H);break;case 39:case 34:k=A.options.smart&&IhG(A,d,H);break;case 91:k=A.pos;A.pos+=1;W=Uu("[");H.appendChild(W);DL0(A,W,k,!1);k=!0;break;case 33:k=A.pos;A.pos+=1;A.peek()===91?(A.pos+=1,W=Uu("!["),H.appendChild(W),
DL0(A,W,k+1,!0)):H.appendChild(Uu("!"));k=!0;break;case 93:var u,B=!1,h;A.pos+=1;var O=A.pos;W=A.brackets;if(W===null)H.appendChild(Uu("]"));else if(W.active){k=W.image;var T=A.pos;A.peek()===40&&(A.pos++,tg(A)&&(z=F8A(A))!==null&&tg(A)&&(mLZ.test(A.subject.charAt(A.pos-1))&&(u=GFp(A)),1)&&tg(A)&&A.peek()===41?(A.pos+=1,B=!0):A.pos=T);if(!B){var m=A.pos,J=Xlw(A);J>2?h=A.subject.slice(m,m+J):W.bracketAfter||(h=A.subject.slice(W.index,O));J===0&&(A.pos=T);h&&(h=A.refmap[Lvm(h)])&&(z=h.destination,u=
h.title,B=!0)}if(B){O=new Ty(k?"image":"link");O._destination=z;O._title=u||"";for(z=W.node._next;z;)u=z._next,z.unlink(),O.appendChild(z),z=u;H.appendChild(O);Psw(A,W.previousDelimiter);A.brackets=A.brackets.previous;W.node.unlink();if(!k)for(W=A.brackets;W!==null;)W.image||(W.active=!1),W=W.previous}else A.brackets=A.brackets.previous,A.pos=O,H.appendChild(Uu("]"))}else H.appendChild(Uu("]")),A.brackets=A.brackets.previous;k=!0;break;case 60:(k=A.match(Oww))?(k=k.slice(1,k.length-1),W=new Ty("link"),
W._destination=Avi("mailto:"+k),W._title="",W.appendChild(Uu(k)),H.appendChild(W),k=!0):(k=A.match(RO1))?(k=k.slice(1,k.length-1),W=new Ty("link"),W._destination=Avi(k),W._title="",W.appendChild(Uu(k)),H.appendChild(W),k=!0):k=!1;k||(k=A.match(Mup),k===null?k=!1:(W=new Ty("html_inline"),W._literal=k,H.appendChild(W),k=!0));break;case 38:(k=A.match(Byk))?(H.appendChild(Uu(tu1(k))),k=!0):k=!1;break;default:k=S5Z(A,H)}k||(A.pos+=1,H.appendChild(Uu(Eu(d))));return!0};
lS.prototype.parseInlines=function(A){this.subject=A._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;K8w(this,A););A._string_content=null;Psw(this,null)};
lS.prototype.parse=lS.prototype.parseInlines;var ahZ=[/./,/^<(?: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")],cvA=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],plQ=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,QIG=/^[#`~*+_=<>0-9-\|]|\|/,VYJ=/[^ \t\f\v\r\n]/,EqA=/^[*+-]/,ULZ=/^(\d{1,9})([.)])/,lhw=/^#{1,6}(?:[ \t]+|$)/,tYk=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Ny1=/^(?:`{3,}|~{3,})(?= *$)/,MYw=/^(?:=+|-+)[ \t]*$/,nqw=/\r\n|\n|\r/,ysI=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,jwW=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Zw0={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(A){return A!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(A,H){for(A=H._firstChild;A;){if(vzI(A)&&A._next){H._listData.tight=!1;break}for(var k=A._firstChild;k;){if(vzI(k)&&(A._next||k._next)){H._listData.tight=!1;break}k=k._next}A=A._next}},
canContain:function(A){return A==="item"},
acceptsLines:!1},block_quote:{continue:function(A){var H=A.currentLine;if(A.indented||O3(H,A.nextNonspace)!==62)return 1;N2(A);M2(A,1,!1);hW(O3(H,A.offset))&&M2(A,1,!0);return 0},
finalize:function(){},
canContain:function(A){return A!=="item"},
acceptsLines:!1},item:{continue:function(A,H){if(A.blank){if(H._firstChild==null)return 1;N2(A)}else if(A.indent>=H._listData.markerOffset+H._listData.padding)M2(A,H._listData.markerOffset+H._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(A){return A!=="item"&&!IOC(A)},
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(A,H){var k=A.currentLine,d=A.indent;if(H._isFenced){if((d=d<=3&&k.charAt(A.nextNonspace)===H._fenceChar&&k.slice(A.nextNonspace).match(Ny1))&&d[0].length>=H._fenceLength)return A.finalize(H,A.lineNumber),2;for(H=H._fenceOffset;H>0&&hW(O3(k,A.offset));)M2(A,1,!0),H--}else if(d>=4)M2(A,4,!0);else if(A.blank)N2(A);else return 1;return 0},
finalize:function(A,H){if(H._isFenced){var k=H._string_content,d=k.indexOf("\n");A=k.slice(0,d);k=k.slice(d+1);H.info=$FZ(A.trim());H._literal=k}else H._literal=H._string_content.replace(/(\n *)+$/,"\n");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(A,H){return!A.blank||H._htmlBlockType!==6&&H._htmlBlockType!==7?0:1},
finalize:function(A,H){H._literal=H._string_content.replace(/(\n *)+$/,"");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(A){return A.blank?1:0},
finalize:function(A,H){for(var k,d=!1;O3(H._string_content,0)===91&&(k=Csp(A.inlineParser,H._string_content,A.refmap));)H._string_content=H._string_content.slice(k),d=!0;d&&!VYJ.test(H._string_content)&&H.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(A){return R1(A.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(A){return A=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(A,H){if(!H._rowIsDelimiter){A=H._isHeader?"th":"td";for(var k=H._parent._tableColumns,d=H._string_content,W=0,z="",u,B=H._sourcepos[0][0];W<d.length;){switch(d[W]){case "|":u&&(u._string_content=z.trim(),z="",u=null,k--,k<=0&&(W=d.length));break;default:if(!u){u=new Ty(A,[[B,W],[B,W]]);var h=H._parent._columnAlignment,O=H._parent._tableColumns-k;h&&O<=h.length&&O>=0&&(u._alignment=h[O]);H.appendChild(u)}z+=d[W];u._sourcepos[1][1]=W}W++}u&&(u._string_content=z.trim());H._string_content=
""}},
canContain:function(A){return A!=="row"},
acceptsLines:!1}},fhj=[function(A){if(A.indented||O3(A.currentLine,A.nextNonspace)!==62)return 0;N2(A);M2(A,1,!1);hW(O3(A.currentLine,A.offset))&&M2(A,1,!0);no(A);A.addChild("block_quote",A.nextNonspace);return 1},
function(A){var H;if(!A.indented&&(H=A.currentLine.slice(A.nextNonspace).match(lhw))){N2(A);M2(A,H[0].length,!1);no(A);var k=A.addChild("heading",A.nextNonspace);k.level=H[0].trim().length;k._string_content=A.currentLine.slice(A.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");M2(A,A.currentLine.length-A.offset);return 2}return 0},
function(A){var H;if(!A.indented&&(H=A.currentLine.slice(A.nextNonspace).match(tYk))){var k=H[0].length;no(A);var d=A.addChild("code_block",A.nextNonspace);d._isFenced=!0;d._fenceLength=k;d._fenceChar=H[0][0];d._fenceOffset=A.indent;N2(A);M2(A,k,!1);return 2}return 0},
function(A,H){if(!A.indented&&O3(A.currentLine,A.nextNonspace)===60){var k=A.currentLine.slice(A.nextNonspace),d;for(d=1;d<=7;d++)if(ahZ[d].test(k)&&(d<7||H.type!=="paragraph"))return no(A),A.addChild("html_block",A.offset)._htmlBlockType=d,2}return 0},
function(A,H){var k;if(!A.indented&&H.type==="paragraph"&&(k=A.currentLine.slice(A.nextNonspace).match(MYw))){no(A);var d=new Ty("heading",H.sourcepos);d.level=k[0][0]==="="?1:2;d._string_content=H._string_content;W8w(H,d);H.unlink();A.tip=d;M2(A,A.currentLine.length-A.offset,!1);return 2}return 0},
function(A){return!A.indented&&plQ.test(A.currentLine.slice(A.nextNonspace))?(no(A),A.addChild("thematic_break",A.nextNonspace),M2(A,A.currentLine.length-A.offset,!1),2):0},
function(A,H){var k,d;if(!(d=A.indented&&H.type!=="list")){a:{var W=H,z=A.currentLine.slice(A.nextNonspace);d={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:A.indent};if(k=z.match(EqA))d.type="bullet",d.bulletChar=k[0][0];else{if(!(k=z.match(ULZ))||W.type==="paragraph"&&k[1]!=="1"){k=null;break a}d.type="ordered";d.start=parseInt(k[1],10);d.delimiter=k[2]}var u=O3(A.currentLine,A.nextNonspace+k[0].length);if(u!==-1&&u!==9&&u!==32||W.type==="paragraph"&&!A.currentLine.slice(A.nextNonspace+
k[0].length).match(VYJ))k=null;else{N2(A);M2(A,k[0].length,!0);W=A.column;z=A.offset;do M2(A,1,!0),u=O3(A.currentLine,A.offset);while(A.column-W<5&&hW(u));u=O3(A.currentLine,A.offset)===-1;var B=A.column-W;B>=5||B<1||u?(d.padding=k[0].length+1,A.column=W,A.offset=z,hW(O3(A.currentLine,A.offset))&&M2(A,1,!0)):d.padding=k[0].length+B;k=d}}d=!k}if(d)return 0;no(A);(d=A.tip.type!=="list")||(H=H._listData,d=!(H.type===k.type&&H.delimiter===k.delimiter&&H.bulletChar===k.bulletChar));d&&(H=A.addChild("list",
A.nextNonspace),H._listData=k);H=A.addChild("item",A.nextNonspace);H._listData=k;return 1},
function(A){var H;return((H=A.options.shouldParseIndentAsCodeBlock)!=null?H:1)&&A.indented&&A.tip.type!=="paragraph"&&!A.blank?(M2(A,4,!0),no(A),A.addChild("code_block",A.offset),2):0},
function(A,H){var k=R1(A.currentLine),d=R1(A.lookahead);if(k!==0&&d<0&&Math.abs(k)==Math.abs(d)&&!IOC(H.type)){no(A);H=A.addChild("table",A.nextNonspace);H._tableRows=1;H._tableColumns=Math.abs(k);k=A.lookahead;if(jwW.test(k)){d=[];for(var W=0,z=!1,u=0,B=void 0;W<k.length;){var h=u>=3;switch(k[W]){case "-":u++;break;case "|":z&&(d.push(B),B=void 0,u=0);z=!0;break;case ":":B||h||(B="left"),!B&&h&&(B="right"),B==="left"&&h&&(B="center")}W++}k=d}else k=void 0;H._columnAlignment=k;H=A.addChild("row",
A.nextNonspace);H._isHeader=!0;M2(A,A.currentLine.length-A.offset,!1);H._string_content=A.currentLine;return 1}return 0},
function(A,H){if(H.type=="table"&&R1(A.currentLine)!==0){no(A);var k=H;H=A.addChild("row",A.nextNonspace);R1(A.currentLine)<0?H._rowIsDelimiter=!0:k._tableRows+=1;M2(A,A.currentLine.length-A.offset,!1);H._string_content=A.currentLine;return 2}return 0}],nPN=function(){var A={shouldParseIndentAsCodeBlock:!1};
A=A===void 0?{}:A;this.lastMatchedContainer=this.doc=YxI();this.refmap={};this.lastLineLength=0;this.inlineParser=new lS(A);this.options=A;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=Zw0;this.blockStarts=fhj},wlw=function(A){A.partiallyConsumedTab&&(A.offset+=1,A.tip._string_content+=" ".repeat(4-A.column%
4));
A.tip._string_content+=A.currentLine.slice(A.offset)+"\n"};
nPN.prototype.addChild=function(A,H){for(;!this.blocks[this.tip.type].canContain(A);)this.finalize(this.tip,this.lineNumber-1);A=new Ty(A,[[this.lineNumber,H+1],[0,0]]);A._string_content="";this.tip.appendChild(A);return this.tip=A};
var no=function(A){if(!A.allClosed){for(;A.oldtip!==A.lastMatchedContainer;){var H=A.oldtip._parent;A.finalize(A.oldtip,A.lineNumber-1);A.oldtip=H}A.allClosed=!0}},M2=function(A,H,k){for(var d=A.currentLine,W,z;H>0&&(z=d[A.offset]);)z==="\t"?(W=4-A.column%4,k?(A.partiallyConsumedTab=W>H,W=W>H?H:W,A.column+=W,A.offset+=A.partiallyConsumedTab?0:1,H-=W):(A.partiallyConsumedTab=!1,A.column+=W,A.offset+=1,--H)):(A.partiallyConsumedTab=!1,A.offset+=1,A.column+=1,--H)},N2=function(A){A.offset=A.nextNonspace;
A.column=A.nextNonspaceColumn;A.partiallyConsumedTab=!1},oq1=function(A){for(var H=A.currentLine,k=A.offset,d=A.column,W;(W=H.charAt(k))!=="";)if(W===" ")k++,d++;
else if(W==="\t")k++,d+=4-d%4;else break;A.blank=W==="\n"||W==="\r"||W==="";A.nextNonspace=k;A.nextNonspaceColumn=d;A.indent=A.nextNonspaceColumn-A.column;A.indented=A.indent>=4};
nPN.prototype.finalize=function(A,H){var k=A._parent;A._open=!1;A.sourcepos[1]=[H,this.lastLineLength];this.blocks[A.type].finalize(this,A);this.tip=k};
nPN.prototype.parse=function(A){this.tip=this.doc=YxI();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!A)return this.doc;this.options.time&&console.time("preparing input");var H=A.split(nqw),k=H.length;A.charCodeAt(A.length-1)===10&&--k;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(A=0;A<k;A++)a:{var d=void 0,W=H[A],z=H[A+1],u=!0,B=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;W.indexOf("\x00")!==-1&&(W=W.replace(/\0/g,"\ufffd"));this.currentLine=W;for(this.lookahead=z;(d=B._lastChild)&&d._open;){B=d;oq1(this);switch(this.blocks[B.type].continue(this,B)){case 0:break;case 1:u=!1;break;case 2:this.lastLineLength=W.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!u){B=B._parent;break}}this.allClosed=B===this.oldtip;this.lastMatchedContainer=
B;d=B.type!=="paragraph"&&Zw0[B.type].acceptsLines;z=this.blockStarts;for(u=z.length;!d;){oq1(this);if(!this.indented&&!QIG.test(W.slice(this.nextNonspace))){N2(this);break}for(var h=0;h<u;){var O=z[h](this,B);if(O===1){B=this.tip;break}else if(O===2){B=this.tip;d=!0;break}else h++}if(h===u){N2(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){no(this);this.blank&&B.lastChild&&(B.lastChild._lastLineBlank=!0);d=B.type;z=this.blank&&!(d==="block_quote"||d==="code_block"&&B._isFenced||
d==="item"&&!B._firstChild&&B.sourcepos[0][0]===this.lineNumber);for(u=B;u;)u._lastLineBlank=z,u=u._parent;this.blocks[d].acceptsLines?(wlw(this),d==="html_block"&&B._htmlBlockType>=1&&B._htmlBlockType<=5&&cvA[B._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(B,this.lineNumber)):this.offset<W.length&&!this.blank&&(this.addChild("paragraph",this.offset),N2(this),wlw(this))}else wlw(this);this.lastLineLength=W.length}for(;this.tip;)this.finalize(this.tip,k);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");W=new dLk(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;k=W.next();)H=k.node,A=H.type,k.entering||A!=="paragraph"&&A!=="heading"&&A!=="th"&&A!="td"||this.inlineParser.parse(H);this.options.time&&console.timeEnd("inline parsing");return this.doc};Pxr.prototype.render=function(A){A=new dLk(A);var H;this.buffer="";for(this.lastOut="\n";H=A.next();){var k=H.node.type;if(this[k])this[k](H.node,H.entering)}return this.buffer};
Pxr.prototype.out=function(A){Zw(this,A)};
var Zw=function(A,H){A.buffer+=H;A.lastOut=H};
Pxr.prototype.cr=function(){this.lastOut!=="\n"&&Zw(this,"\n")};var $Lp=/^javascript:|vbscript:|file:|data:/i,AdA=/^data:image\/(?:png|gif|jpeg|webp)/i,H6N=function(A){return $Lp.test(A)&&!AdA.test(A)};
mV.prototype=Object.create(Pxr.prototype);_.q=mV.prototype;_.q.text=function(A){this.out(A.literal)};
_.q.html_inline=function(A){this.options.safe?Zw(this,"\x3c!-- raw HTML omitted --\x3e"):Zw(this,A.literal)};
_.q.html_block=function(A){this.cr();this.options.safe?Zw(this,"\x3c!-- raw HTML omitted --\x3e"):Zw(this,A.literal);this.cr()};
_.q.softbreak=function(){Zw(this,this.options.softbreak)};
_.q.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.q.link=function(A,H){var k=this.attrs(A);H?(this.options.safe&&H6N(A.destination)||k.push(["href",VK(A.destination,!0)]),A.title&&k.push(["title",VK(A.title,!0)]),this.tag("a",k)):this.tag("/a")};
_.q.image=function(A,H){H?(this.disableTags===0&&(this.options.safe&&H6N(A.destination)?Zw(this,'<img src="" alt="'):Zw(this,'<img src="'+VK(A.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(A.title&&Zw(this,'" title="'+VK(A.title,!0)),Zw(this,'" />')))};
_.q.emph=function(A,H){this.tag(H?"em":"/em")};
_.q.strong=function(A,H){this.tag(H?"strong":"/strong")};
_.q.paragraph=function(A,H){var k=A.parent.parent;A=this.attrs(A);k!==null&&k.type==="list"&&k.listTight||(H?(this.cr(),this.tag("p",A)):(this.tag("/p"),this.cr()))};
_.q.heading=function(A,H){var k="h"+A.level;A=this.attrs(A);H?(this.cr(),this.tag(k,A)):(this.tag("/"+k),this.cr())};
_.q.code=function(A){this.tag("code");this.out(A.literal);this.tag("/code")};
_.q.code_block=function(A){var H=A.info?A.info.split(/\s+/):[],k=this.attrs(A);H.length>0&&H[0].length>0&&k.push(["class","language-"+VK(H[0],!0)]);this.cr();this.tag("pre");this.tag("code",k);this.out(A.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.q.thematic_break=function(A){A=this.attrs(A);this.cr();this.tag("hr",A,!0);this.cr()};
_.q.block_quote=function(A,H){A=this.attrs(A);H?(this.cr(),this.tag("blockquote",A)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.q.list=function(A,H){var k=A.listType==="bullet"?"ul":"ol",d=this.attrs(A);H?(A=A.listStart,A!==null&&A!==1&&d.push(["start",A.toString()]),this.cr(),this.tag(k,d)):(this.cr(),this.tag("/"+k));this.cr()};
_.q.item=function(A,H){A=this.attrs(A);H?this.tag("li",A):(this.tag("/li"),this.cr())};
_.q.custom_inline=function(A,H){H&&A.onEnter?Zw(this,A.onEnter):!H&&A.onExit&&Zw(this,A.onExit)};
_.q.custom_block=function(A,H){this.cr();H&&A.onEnter?Zw(this,A.onEnter):!H&&A.onExit&&Zw(this,A.onExit);this.cr()};
_.q.table=function(A,H){A=this.attrs(A);H?(this.cr(),this.tag("table",A)):(this.tag("/table"),this.cr())};
_.q.row=function(A,H){A._rowIsDelimiter||(A=this.attrs(A),H?this.tag("tr",A):this.tag("/tr"))};
_.q.td=function(A,H){var k=this.attrs(A);A._alignment&&k.push(["align",A._alignment]);H?this.tag("td",k):this.tag("/td")};
_.q.th=function(A,H){var k=this.attrs(A);A._alignment&&k.push(["align",A._alignment]);H?this.tag("th",k):this.tag("/th")};
_.q.out=function(A){Zw(this,VK(A,!1))};
_.q.tag=function(A,H,k){if(!(this.disableTags>0)){this.buffer+="<"+A;if(H&&H.length>0){A=0;for(var d;(d=H[A])!==void 0;)this.buffer+=" "+d[0]+'="'+d[1]+'"',A++}k&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.q.attrs=function(A){var H=[];this.options.sourcepos&&(A=A.sourcepos)&&H.push(["data-sourcepos",String(A[0][0])+":"+String(A[0][1])+"-"+String(A[1][0])+":"+String(A[1][1])]);return H};
mV.prototype.text=mV.prototype.text;mV.prototype.html_inline=mV.prototype.html_inline;mV.prototype.html_block=mV.prototype.html_block;mV.prototype.softbreak=mV.prototype.softbreak;mV.prototype.linebreak=mV.prototype.linebreak;mV.prototype.link=mV.prototype.link;mV.prototype.image=mV.prototype.image;mV.prototype.emph=mV.prototype.emph;mV.prototype.strong=mV.prototype.strong;mV.prototype.paragraph=mV.prototype.paragraph;mV.prototype.heading=mV.prototype.heading;mV.prototype.code=mV.prototype.code;
mV.prototype.code_block=mV.prototype.code_block;mV.prototype.thematic_break=mV.prototype.thematic_break;mV.prototype.block_quote=mV.prototype.block_quote;mV.prototype.list=mV.prototype.list;mV.prototype.item=mV.prototype.item;mV.prototype.custom_inline=mV.prototype.custom_inline;mV.prototype.custom_block=mV.prototype.custom_block;mV.prototype.table=mV.prototype.table;mV.prototype.row=mV.prototype.row;mV.prototype.td=mV.prototype.td;mV.prototype.th=mV.prototype.th;mV.prototype.out=mV.prototype.out;
mV.prototype.tag=mV.prototype.tag;mV.prototype.attrs=mV.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 sL0,ksQ,HBC;(function(){function A(S,F){return S<F?-1:S>F?1:S>=F?0:NaN}
function H(S){return function(F,V){return A(S(F),V)}}
function k(){for(var S=0,F=arguments.length,V={},sC;S<F;++S){if(!(sC=arguments[S]+"")||sC in V)throw Error("xe`"+sC);V[sC]=[]}return new d(V)}
function d(S){this._=S}
function W(S,F){return S.trim().split(/^|\s+/).map(function(V){var sC="",x8=V.indexOf(".");x8>=0&&(sC=V.slice(x8+1),V=V.slice(0,x8));if(V&&!F.hasOwnProperty(V))throw Error("ye`"+V);return{type:V,name:sC}})}
function z(S,F,V){for(var sC=0,x8=S.length;sC<x8;++sC)if(S[sC].name===F){S[sC]=cPe;S=S.slice(0,sC).concat(S.slice(sC+1));break}V!=null&&S.push({name:F,value:V});return S}
function u(S){var F=S,V=F.indexOf(":");V>=0&&(F=S.slice(0,V))!=="xmlns"&&(S=S.slice(V+1));return gy.hasOwnProperty(F)?{space:gy[F],local:S}:S}
function B(S){return function(){var F=this.ownerDocument,V=this.namespaceURI;return V==="http://www.w3.org/1999/xhtml"&&F.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?F.createElement(S):F.createElementNS(V,S)}}
function h(S){return function(){return this.ownerDocument.createElementNS(S.space,S.local)}}
function O(S){S=u(S);return(S.local?h:B)(S)}
function T(){}
function m(S){return S==null?T:function(){return this.querySelector(S)}}
function J(S){return Array(S.length)}
function g(S,F){this.ownerDocument=S.ownerDocument;this.namespaceURI=S.namespaceURI;this._next=null;this._parent=S;this.__data__=F}
function v(S){return function(){return S}}
function y(S,F,V,sC,x8,gI){for(var Ib=0,SN,rw=F.length,kZ=gI.length;Ib<kZ;++Ib)(SN=F[Ib])?(SN.__data__=gI[Ib],sC[Ib]=SN):V[Ib]=new g(S,gI[Ib]);for(;Ib<rw;++Ib)if(SN=F[Ib])x8[Ib]=SN}
function X(S,F,V,sC,x8,gI,Ib){var SN,rw,kZ={},Bj=F.length,gw=gI.length,op=Array(Bj),KL;for(SN=0;SN<Bj;++SN)if(rw=F[SN])op[SN]=KL="$"+Ib.call(rw,rw.__data__,SN,F),KL in kZ?x8[SN]=rw:kZ[KL]=rw;for(SN=0;SN<gw;++SN)KL="$"+Ib.call(S,gI[SN],SN,gI),(rw=kZ[KL])?(sC[SN]=rw,rw.__data__=gI[SN],kZ[KL]=null):V[SN]=new g(S,gI[SN]);for(SN=0;SN<Bj;++SN)(rw=F[SN])&&kZ[op[SN]]===rw&&(x8[SN]=rw)}
function D(S,F){return S<F?-1:S>F?1:S>=F?0:NaN}
function K(S){return function(){this.removeAttribute(S)}}
function N(S){return function(){this.removeAttributeNS(S.space,S.local)}}
function U(S,F){return function(){this.setAttribute(S,F)}}
function p(S,F){return function(){this.setAttributeNS(S.space,S.local,F)}}
function M(S,F){return function(){var V=F.apply(this,arguments);V==null?this.removeAttribute(S):this.setAttribute(S,V)}}
function Z(S,F){return function(){var V=F.apply(this,arguments);V==null?this.removeAttributeNS(S.space,S.local):this.setAttributeNS(S.space,S.local,V)}}
function WV(S){return function(){this.style.removeProperty(S)}}
function hA(S,F,V){return function(){this.style.setProperty(S,F,V)}}
function qv(S,F,V){return function(){var sC=F.apply(this,arguments);sC==null?this.style.removeProperty(S):this.style.setProperty(S,sC,V)}}
function eN(S,F){return S.style.getPropertyValue(F)||(S.ownerDocument&&S.ownerDocument.defaultView||S.document&&S||S.defaultView).getComputedStyle(S,null).getPropertyValue(F)}
function mr(S){return function(){delete this[S]}}
function Cl(S,F){return function(){this[S]=F}}
function pl(S,F){return function(){var V=F.apply(this,arguments);V==null?delete this[S]:this[S]=V}}
function UC(){this.textContent=""}
function hk(S){return function(){this.textContent=S}}
function eA(S){return function(){var F=S.apply(this,arguments);this.textContent=F==null?"":F}}
function lI(){this.innerHTML=""}
function Rp(S){return function(){this.innerHTML=S}}
function vj(S){return function(){var F=S.apply(this,arguments);this.innerHTML=F==null?"":F}}
function T0(){return null}
function Y1(){var S=this.parentNode;S&&S.removeChild(this)}
function ze(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Tf(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function QW(S,F,V){S=mG(S,F,V);return function(sC){var x8=sC.relatedTarget;x8&&(x8===this||x8.compareDocumentPosition(this)&8)||S.call(this,sC)}}
function mG(S,F,V){return function(){S.call(this,this.__data__,F,V)}}
function nN(S){return S.trim().split(/^|\s+/).map(function(F){var V="",sC=F.indexOf(".");sC>=0&&(V=F.slice(sC+1),F=F.slice(0,sC));return{type:F,name:V}})}
function G0(S){return function(){var F=this.__on;if(F){for(var V=0,sC=-1,x8=F.length,gI;V<x8;++V)(gI=F[V],S.type&&gI.type!==S.type||gI.name!==S.name)?F[++sC]=gI:this.removeEventListener(gI.type,gI.listener,gI.capture);++sC?F.length=sC:delete this.__on}}}
function $Z(S,F,V){var sC=ZrG.hasOwnProperty(S.type)?QW:mG;return function(x8,gI,Ib){x8=this.__on;var SN;gI=sC(F,gI,Ib);if(x8){Ib=0;for(var rw=x8.length;Ib<rw;++Ib)if((SN=x8[Ib]).type===S.type&&SN.name===S.name){this.removeEventListener(SN.type,SN.listener,SN.capture);this.addEventListener(SN.type,SN.listener=gI,SN.capture=V);SN.value=F;return}}this.addEventListener(S.type,gI,V);SN={type:S.type,name:S.name,value:F,listener:gI,capture:V};x8?x8.push(SN):this.__on=[SN]}}
function F9(S,F,V){var sC=S.ownerDocument&&S.ownerDocument.defaultView||S.document&&S||S.defaultView,x8=sC.CustomEvent;typeof x8==="function"?x8=new x8(F,V):(x8=sC.document.createEvent("Event"),V?(x8.initEvent(F,V.bubbles,V.cancelable),x8.detail=V.detail):x8.initEvent(F,!1,!1));S.dispatchEvent(x8)}
function ww(S,F){return function(){return F9(this,S,F)}}
function x1(S,F){return function(){return F9(this,S,F.apply(this,arguments))}}
function lJ(S,F){this._groups=S;this._parents=F}
function Ni(){return new lJ([[document.documentElement]],p$I)}
function uJ(){this._="@"+(++QHG).toString(36)}
function OB(S,F,V){S.prototype=F.prototype=V;V.constructor=S}
function Ow(S,F){S=Object.create(S.prototype);for(var V in F)S[V]=F[V];return S}
function NQ(){}
function Qi(S){var F;S=(S+"").trim().toLowerCase();return(F=VoB.exec(S))?(F=parseInt(F[1],16),new o_(F>>8&15|F>>4&240,F>>4&15|F&240,(F&15)<<4|F&15,1)):(F=EjR.exec(S))?jI(parseInt(F[1],16)):(F=UMB.exec(S))?new o_(F[1],F[2],F[3],1):(F=lVB.exec(S))?new o_(F[1]*255/100,F[2]*255/100,F[3]*255/100,1):(F=toR.exec(S))?WX(F[1],F[2],F[3],F[4]):(F=NA1.exec(S))?WX(F[1]*255/100,F[2]*255/100,F[3]*255/100,F[4]):(F=MoM.exec(S))?O9(F[1],F[2]/100,F[3]/100,1):(F=nj3.exec(S))?O9(F[1],F[2]/100,F[3]/100,F[4]):fkw.hasOwnProperty(S)?
jI(fkw[S]):S==="transparent"?new o_(NaN,NaN,NaN,0):null}
function jI(S){return new o_(S>>16&255,S>>8&255,S&255,1)}
function WX(S,F,V,sC){sC<=0&&(S=F=V=NaN);return new o_(S,F,V,sC)}
function Vi(S){S instanceof NQ||(S=Qi(S));if(!S)return new o_;S=S.rgb();return new o_(S.r,S.g,S.b,S.opacity)}
function iQ(S,F,V,sC){return arguments.length===1?Vi(S):new o_(S,F,V,sC==null?1:sC)}
function o_(S,F,V,sC){this.r=+S;this.g=+F;this.b=+V;this.opacity=+sC}
function rO(S){S=Math.max(0,Math.min(255,Math.round(S)||0));return(S<16?"0":"")+S.toString(16)}
function O9(S,F,V,sC){sC<=0?S=F=V=NaN:V<=0||V>=1?S=F=NaN:F<=0&&(S=NaN);return new E9(S,F,V,sC)}
function a4(S){if(S instanceof E9)return new E9(S.h,S.s,S.l,S.opacity);S instanceof NQ||(S=Qi(S));if(!S)return new E9;if(S instanceof E9)return S;S=S.rgb();var F=S.r/255,V=S.g/255,sC=S.b/255,x8=Math.min(F,V,sC),gI=Math.max(F,V,sC),Ib=NaN,SN=gI-x8,rw=(gI+x8)/2;SN?(Ib=F===gI?(V-sC)/SN+(V<sC)*6:V===gI?(sC-F)/SN+2:(F-V)/SN+4,SN/=rw<.5?gI+x8:2-gI-x8,Ib*=60):SN=rw>0&&rw<1?0:Ib;return new E9(Ib,SN,rw,S.opacity)}
function kl(S,F,V,sC){return arguments.length===1?a4(S):new E9(S,F,V,sC==null?1:sC)}
function E9(S,F,V,sC){this.h=+S;this.s=+F;this.l=+V;this.opacity=+sC}
function gU(S,F,V){return(S<60?F+(V-F)*S/60:S<180?V:S<240?F+(V-F)*(240-S)/60:F)*255}
function gY(S){if(S instanceof Y8)return new Y8(S.l,S.a,S.b,S.opacity);if(S instanceof Ip){if(isNaN(S.h))return new Y8(S.l,0,0,S.opacity);var F=S.h*wxj;return new Y8(S.l,Math.cos(F)*S.c,Math.sin(F)*S.c,S.opacity)}S instanceof o_||(S=Vi(S));var V=LL(S.r),sC=LL(S.g),x8=LL(S.b);F=cV(.2225045*V+.7168786*sC+.0606169*x8);if(V===sC&&sC===x8)var gI=V=F;else gI=cV((.4360747*V+.3850649*sC+.1430804*x8)/.96422),V=cV((.0139322*V+.0971045*sC+.7141733*x8)/.82521);return new Y8(116*F-16,500*(gI-F),200*(F-V),S.opacity)}
function Y8(S,F,V,sC){this.l=+S;this.a=+F;this.b=+V;this.opacity=+sC}
function cV(S){return S>ZvG?Math.pow(S,1/3):S/o0k+$6A}
function ZQ(S){return S>ld?S*S*S:o0k*(S-$6A)}
function yi(S){return 255*(S<=.0031308?12.92*S:1.055*Math.pow(S,1/2.4)-.055)}
function LL(S){return(S/=255)<=.04045?S/12.92:Math.pow((S+.055)/1.055,2.4)}
function Yp(S){if(S instanceof Ip)return new Ip(S.h,S.c,S.l,S.opacity);S instanceof Y8||(S=gY(S));if(S.a===0&&S.b===0)return new Ip(NaN,0,S.l,S.opacity);var F=Math.atan2(S.b,S.a)*AoN;return new Ip(F<0?F+360:F,Math.sqrt(S.a*S.a+S.b*S.b),S.l,S.opacity)}
function PR(S,F,V,sC){return arguments.length===1?Yp(S):new Ip(S,F,V,sC==null?1:sC)}
function Ip(S,F,V,sC){this.h=+S;this.c=+F;this.l=+V;this.opacity=+sC}
function jA(S,F,V,sC){if(arguments.length===1){var x8=S;if(x8 instanceof V_)x8=new V_(x8.h,x8.s,x8.l,x8.opacity);else{x8 instanceof o_||(x8=Vi(x8));var gI=x8.g/255,Ib=x8.b/255,SN=(HKk*Ib+x8.r/255*-1.7884503806-3.5172982438*gI)/(HKk+-1.7884503806-3.5172982438);Ib-=SN;var rw=(1.97294*(gI-SN)- -.29227*Ib)/-.90649;Ib=(gI=Math.sqrt(rw*rw+Ib*Ib)/(1.97294*SN*(1-SN)))?Math.atan2(rw,Ib)*AoN-120:NaN;x8=new V_(Ib<0?Ib+360:Ib,gI,SN,x8.opacity)}}else x8=new V_(S,F,V,sC==null?1:sC);return x8}
function V_(S,F,V,sC){this.h=+S;this.s=+F;this.l=+V;this.opacity=+sC}
function Wz(S,F,V,sC,x8){var gI=S*S,Ib=gI*S;return((1-3*S+3*gI-Ib)*F+(4-6*gI+3*Ib)*V+(1+3*S+3*gI-3*Ib)*sC+Ib*x8)/6}
function Jk(S){return function(){return S}}
function St(S,F){return function(V){return S+V*F}}
function Rs(S,F,V){return S=Math.pow(S,V),F=Math.pow(F,V)-S,V=1/V,function(sC){return Math.pow(S+sC*F,V)}}
function EW(S,F){var V=F-S;return V?St(S,V>180||V<-180?V-360*Math.round(V/360):V):Jk(isNaN(S)?F:S)}
function OI(S){return(S=+S)===1?sa:function(F,V){return V-F?Rs(F,V,S):Jk(isNaN(F)?V:F)}}
function sa(S,F){var V=F-S;return V?St(S,V):Jk(isNaN(S)?F:S)}
function GW(S){return function(F){var V=F.length,sC=Array(V),x8=Array(V),gI=Array(V),Ib;for(Ib=0;Ib<V;++Ib){var SN=iQ(F[Ib]);sC[Ib]=SN.r||0;x8[Ib]=SN.g||0;gI[Ib]=SN.b||0}sC=S(sC);x8=S(x8);gI=S(gI);SN.opacity=1;return function(rw){SN.r=sC(rw);SN.g=x8(rw);SN.b=gI(rw);return SN+""}}}
function d0(S,F){return S=+S,F-=S,function(V){return S+F*V}}
function Hn(S){return function(){return S}}
function qY(S){return function(F){return S(F)+""}}
function fT(S,F){var V=wwr.lastIndex=oLb.lastIndex=0,sC,x8,gI,Ib=-1,SN=[],rw=[];S+="";for(F+="";(sC=wwr.exec(S))&&(x8=oLb.exec(F));)(gI=x8.index)>V&&(gI=F.slice(V,gI),SN[Ib]?SN[Ib]+=gI:SN[++Ib]=gI),(sC=sC[0])===(x8=x8[0])?SN[Ib]?SN[Ib]+=x8:SN[++Ib]=x8:(SN[++Ib]=null,rw.push({i:Ib,x:d0(sC,x8)})),V=oLb.lastIndex;V<F.length&&(gI=F.slice(V),SN[Ib]?SN[Ib]+=gI:SN[++Ib]=gI);return SN.length<2?rw[0]?qY(rw[0].x):Hn(F):(F=rw.length,function(kZ){for(var Bj=0,gw;Bj<F;++Bj)SN[(gw=rw[Bj]).i]=gw.x(kZ);return SN.join("")})}
function Jg(S,F,V,sC,x8,gI){var Ib,SN,rw;if(Ib=Math.sqrt(S*S+F*F))S/=Ib,F/=Ib;if(rw=S*V+F*sC)V-=S*rw,sC-=F*rw;if(SN=Math.sqrt(V*V+sC*sC))V/=SN,sC/=SN,rw/=SN;S*sC<F*V&&(S=-S,F=-F,rw=-rw,Ib=-Ib);return{translateX:x8,translateY:gI,rotate:Math.atan2(F,S)*sW0,skewX:Math.atan(rw)*sW0,scaleX:Ib,scaleY:SN}}
function nm(S,F,V,sC){function x8(kZ){return kZ.length?kZ.pop()+" ":""}
function gI(kZ,Bj,gw,op,KL,Gw){kZ!==gw||Bj!==op?(KL=KL.push("translate(",null,F,null,V),Gw.push({i:KL-4,x:d0(kZ,gw)},{i:KL-2,x:d0(Bj,op)})):(gw||op)&&KL.push("translate("+gw+F+op+V)}
function Ib(kZ,Bj,gw,op){kZ!==Bj?(kZ-Bj>180?Bj+=360:Bj-kZ>180&&(kZ+=360),op.push({i:gw.push(x8(gw)+"rotate(",null,sC)-2,x:d0(kZ,Bj)})):Bj&&gw.push(x8(gw)+"rotate("+Bj+sC)}
function SN(kZ,Bj,gw,op){kZ!==Bj?op.push({i:gw.push(x8(gw)+"skewX(",null,sC)-2,x:d0(kZ,Bj)}):Bj&&gw.push(x8(gw)+"skewX("+Bj+sC)}
function rw(kZ,Bj,gw,op,KL,Gw){kZ!==gw||Bj!==op?(KL=KL.push(x8(KL)+"scale(",null,",",null,")"),Gw.push({i:KL-4,x:d0(kZ,gw)},{i:KL-2,x:d0(Bj,op)})):gw===1&&op===1||KL.push(x8(KL)+"scale("+gw+","+op+")")}
return function(kZ,Bj){var gw=[],op=[];kZ=S(kZ);Bj=S(Bj);gI(kZ.translateX,kZ.translateY,Bj.translateX,Bj.translateY,gw,op);Ib(kZ.rotate,Bj.rotate,gw,op);SN(kZ.skewX,Bj.skewX,gw,op);rw(kZ.scaleX,kZ.scaleY,Bj.scaleX,Bj.scaleY,gw,op);kZ=Bj=null;return function(KL){for(var Gw=-1,wU=op.length,cX;++Gw<wU;)gw[(cX=op[Gw]).i]=cX.x(KL);return gw.join("")}}}
function b1(S){return function(F,V){var sC=S((F=kl(F)).h,(V=kl(V)).h),x8=sa(F.s,V.s),gI=sa(F.l,V.l),Ib=sa(F.opacity,V.opacity);return function(SN){F.h=sC(SN);F.s=x8(SN);F.l=gI(SN);F.opacity=Ib(SN);return F+""}}}
function WS(S){return function(F,V){var sC=S((F=PR(F)).h,(V=PR(V)).h),x8=sa(F.c,V.c),gI=sa(F.l,V.l),Ib=sa(F.opacity,V.opacity);return function(SN){F.h=sC(SN);F.c=x8(SN);F.l=gI(SN);F.opacity=Ib(SN);return F+""}}}
function IO(S){return function sC(V){function x8(gI,Ib){var SN=S((gI=jA(gI)).h,(Ib=jA(Ib)).h),rw=sa(gI.s,Ib.s),kZ=sa(gI.l,Ib.l),Bj=sa(gI.opacity,Ib.opacity);return function(gw){gI.h=SN(gw);gI.s=rw(gw);gI.l=kZ(Math.pow(gw,V));gI.opacity=Bj(gw);return gI+""}}
V=+V;x8.gamma=sC;return x8}(1)}
function Y9(){return bT||(kUk(st),bT=Ve.now()+a7l)}
function st(){bT=0}
function HZ(){this._call=this._time=this._next=null}
function zk(S,F,V){var sC=new HZ;sC.restart(S,F,V);return sC}
function g1(){bT=(cbV=Ve.now())+a7l;tI=Ey=0;try{Y9();++tI;for(var S=pql,F;S;)(F=bT-S._time)>=0&&S._call.call(null,F),S=S._next;--tI}finally{tI=0;S=pql;for(var V=Infinity;S;)if(S._call){V>S._time&&(V=S._time);var sC=S;S=S._next}else F=S._next,S._next=null,S=sC?sC._next=F:pql=F;Uy=sC;s8(V);bT=0}}
function w_(){var S=Ve.now(),F=S-cbV;F>1E3&&(a7l-=F,cbV=S)}
function s8(S){tI||(Ey&&(Ey=clearTimeout(Ey)),S-bT>24?(S<Infinity&&(Ey=setTimeout(g1,S-Ve.now()-a7l)),lz&&(lz=clearInterval(lz))):(lz||(cbV=Ve.now(),lz=setInterval(w_,1E3)),tI=1,kUk(g1)))}
function Bf(S,F,V){var sC=new HZ;F=F==null?0:+F;sC.restart(function(x8){sC.stop();S(x8+F)},F,V);
return sC}
function Ak(S,F,V,sC,x8,gI){var Ib=S.__transition;if(!Ib)S.__transition={};else if(V in Ib)return;Y7(S,V,{name:F,index:sC,group:x8,on:fVM,tween:w$e,time:gI.time,delay:gI.delay,duration:gI.duration,ease:gI.ease,timer:null,state:0})}
function R_(S,F){S=Z3(S,F);if(S.state>0)throw Error("ze");return S}
function XG(S,F){S=Z3(S,F);if(S.state>2)throw Error("Ae");return S}
function Z3(S,F){S=S.__transition;if(!S||!(S=S[F]))throw Error("Be");return S}
function Y7(S,F,V){function sC(rw){var kZ,Bj;if(V.state!==1)return gI();for(op in Ib){var gw=Ib[op];if(gw.name===V.name){if(gw.state===3)return Bf(sC);gw.state===4?(gw.state=6,gw.timer.stop(),gw.on.call("interrupt",S,S.__data__,gw.index,gw.group),delete Ib[op]):+op<F&&(gw.state=6,gw.timer.stop(),delete Ib[op])}}Bf(function(){V.state===3&&(V.state=4,V.timer.restart(x8,V.delay,V.time),x8(rw))});
V.state=2;V.on.call("start",S,S.__data__,V.index,V.group);if(V.state===2){V.state=3;SN=Array(Bj=V.tween.length);var op=0;for(kZ=-1;op<Bj;++op)if(gw=V.tween[op].value.call(S,S.__data__,V.index,V.group))SN[++kZ]=gw;SN.length=kZ+1}}
function x8(rw){rw=rw<V.duration?V.ease.call(null,rw/V.duration):(V.timer.restart(gI),V.state=5,1);for(var kZ=-1,Bj=SN.length;++kZ<Bj;)SN[kZ].call(null,rw);V.state===5&&(V.on.call("end",S,S.__data__,V.index,V.group),gI())}
function gI(){V.state=6;V.timer.stop();delete Ib[F];for(var rw in Ib)return;delete S.__transition}
var Ib=S.__transition,SN;Ib[F]=V;V.timer=zk(function(rw){V.state=1;V.timer.restart(sC,V.delay,V.time);V.delay<=rw&&sC(rw-V.delay)},0,V.time)}
function EG(S,F){var V,sC;return function(){var x8=XG(this,S),gI=x8.tween;if(gI!==V){sC=V=gI;gI=0;for(var Ib=sC.length;gI<Ib;++gI)if(sC[gI].name===F){sC=sC.slice();sC.splice(gI,1);break}}x8.tween=sC}}
function l5(S,F,V){var sC,x8;if(typeof V!=="function")throw Error();return function(){var gI=XG(this,S),Ib=gI.tween;if(Ib!==sC){x8=(sC=Ib).slice();Ib={name:F,value:V};for(var SN=0,rw=x8.length;SN<rw;++SN)if(x8[SN].name===F){x8[SN]=Ib;break}SN===rw&&x8.push(Ib)}gI.tween=x8}}
function EH(S,F,V){var sC=S._id;S.each(function(){var x8=XG(this,sC);(x8.value||(x8.value={}))[F]=V.apply(this,arguments)});
return function(x8){return Z3(x8,sC).value[F]}}
function bs(S,F){var V;return(typeof F==="number"?d0:F instanceof Qi?dOi:(V=Qi(F))?(F=V,dOi):fT)(S,F)}
function LE(S){return function(){this.removeAttribute(S)}}
function Q3Q(S){return function(){this.removeAttributeNS(S.space,S.local)}}
function VMI(S,F,V){var sC,x8;return function(){var gI=this.getAttribute(S);return gI===V?null:gI===sC?x8:x8=F(sC=gI,V)}}
function tt(S,F,V){var sC,x8;return function(){var gI=this.getAttributeNS(S.space,S.local);return gI===V?null:gI===sC?x8:x8=F(sC=gI,V)}}
function EJm(S,F,V){var sC,x8,gI;return function(){var Ib=V(this);if(Ib==null)return void this.removeAttribute(S);var SN=this.getAttribute(S);return SN===Ib?null:SN===sC&&Ib===x8?gI:gI=F(sC=SN,x8=Ib)}}
function Nq(S,F,V){var sC,x8,gI;return function(){var Ib=V(this);if(Ib==null)return void this.removeAttributeNS(S.space,S.local);var SN=this.getAttributeNS(S.space,S.local);return SN===Ib?null:SN===sC&&Ib===x8?gI:gI=F(sC=SN,x8=Ib)}}
function Mq(S,F){function V(){var sC=this,x8=F.apply(sC,arguments);return x8&&function(gI){sC.setAttributeNS(S.space,S.local,x8(gI))}}
V._value=F;return V}
function UVb(S,F){function V(){var sC=this,x8=F.apply(sC,arguments);return x8&&function(gI){sC.setAttribute(S,x8(gI))}}
V._value=F;return V}
function ojB(S,F){return function(){R_(this,S).delay=+F.apply(this,arguments)}}
function $Me(S,F){return F=+F,function(){R_(this,S).delay=F}}
function AlR(S,F){return function(){XG(this,S).duration=+F.apply(this,arguments)}}
function HE_(S,F){return F=+F,function(){XG(this,S).duration=F}}
function sBQ(S,F){if(typeof F!=="function")throw Error();return function(){XG(this,S).ease=F}}
function kTe(S){return(S+"").trim().split(/^|\s+/).every(function(F){var V=F.indexOf(".");V>=0&&(F=F.slice(0,V));return!F||F==="start"})}
function d9L(S,F,V){var sC,x8,gI=kTe(F)?R_:XG;return function(){var Ib=gI(this,S),SN=Ib.on;if(SN!==sC)(x8=(sC=SN).copy()).on(F,V);Ib.on=x8}}
function We3(S){return function(){var F=this.parentNode,V;for(V in this.__transition)if(+V!==S)return;F&&F.removeChild(this)}}
function zhV(S,F){var V,sC,x8;return function(){var gI=eN(this,S),Ib=(this.style.removeProperty(S),eN(this,S));return gI===Ib?null:gI===V&&Ib===sC?x8:x8=F(V=gI,sC=Ib)}}
function qb_(S){return function(){this.style.removeProperty(S)}}
function rl1(S,F,V){var sC,x8;return function(){var gI=eN(this,S);return gI===V?null:gI===sC?x8:x8=F(sC=gI,V)}}
function uyi(S,F,V){var sC,x8,gI;return function(){var Ib=eN(this,S),SN=V(this);SN==null&&(SN=(this.style.removeProperty(S),eN(this,S)));return Ib===SN?null:Ib===sC&&SN===x8?gI:gI=F(sC=Ib,x8=SN)}}
function BBL(S,F,V){function sC(){var x8=this,gI=F.apply(x8,arguments);return gI&&function(Ib){x8.style.setProperty(S,gI(Ib),V)}}
sC._value=F;return sC}
function ehi(S){return function(){this.textContent=S}}
function x9_(S){return function(){var F=S(this);this.textContent=F==null?"":F}}
function e0(S,F,V,sC){this._groups=S;this._parents=F;this._name=V;this._id=sC}
function $K8(S){return{type:S}}
function Azr(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function l7I(){}
function WEQ(S,F){var V=new l7I;if(S instanceof l7I)S.each(function(Ib,SN){V.set(SN,Ib)});
else if(Array.isArray(S)){var sC=-1,x8=S.length,gI;if(F==null)for(;++sC<x8;)V.set(sC,S[sC]);else for(;++sC<x8;)V.set(F(gI=S[sC],sC,S),gI)}else if(S)for(sC in S)V.set(sC,S[sC]);return V}
function tMX(){}
function zQG(S){return function(F){for(var V={},sC=0;sC<S.length;sC++)V[S[sC]]=F[sC]||"";return V}}
function iE_(S,F){var V=zQG(S);return function(sC,x8){return F(V(sC),x8,S)}}
function hhe(S){var F=Object.create(null),V=[];S.forEach(function(sC){for(var x8 in sC)x8 in F||V.push(F[x8]=x8)});
return V}
function qeQ(S){function F(Ib,SN){function rw(){if(Gw)return HrW;if(wU)return wU=!1,row;var Ov,ue=gw,FV;if(Ib.charCodeAt(ue)===34){for(;gw++<Bj&&Ib.charCodeAt(gw)!==34||Ib.charCodeAt(++gw)===34;);(Ov=gw)>=Bj?Gw=!0:(FV=Ib.charCodeAt(gw++))===10?wU=!0:FV===13&&(wU=!0,Ib.charCodeAt(gw)===10&&++gw);return Ib.slice(ue+1,Ov-1).replace(/""/g,'"')}for(;gw<Bj;){if((FV=Ib.charCodeAt(Ov=gw++))===10)wU=!0;else if(FV===13)wU=!0,Ib.charCodeAt(gw)===10&&++gw;else if(FV!==gI)continue;return Ib.slice(ue,Ov)}return Gw=
!0,Ib.slice(ue,Bj)}
var kZ=[],Bj=Ib.length,gw=0,op=0,KL,Gw=Bj<=0,wU=!1;Ib.charCodeAt(Bj-1)===10&&--Bj;for(Ib.charCodeAt(Bj-1)===13&&--Bj;(KL=rw())!==HrW;){for(var cX=[];KL!==row&&KL!==HrW;)cX.push(KL),KL=rw();SN&&(cX=SN(cX,op++))==null||kZ.push(cX)}return kZ}
function V(Ib){return Ib.map(sC).join(S)}
function sC(Ib){return Ib==null?"":x8.test(Ib)?'"'+Ib.replace(/"/g,'""')+'"':Ib}
var x8=new RegExp('["'+S+"\n\r]"),gI=S.charCodeAt(0);return{parse:function(Ib,SN){var rw,kZ;Ib=F(Ib,function(Bj,gw){if(rw)return rw(Bj,gw-1);kZ=Bj;rw=SN?iE_(Bj,SN):zQG(Bj)});
Ib.columns=kZ||[];return Ib},
parseRows:F,format:function(Ib,SN){SN==null&&(SN=hhe(Ib));return[SN.map(sC).join(S)].concat(Ib.map(function(rw){return SN.map(function(kZ){return sC(rw[kZ])}).join(S)})).join("\n")},
formatRows:function(Ib){return Ib.map(V).join("\n")}}}
function OEL(S){if(!S.ok)throw Error("Ce`"+S.status+"`"+S.statusText);return S.text()}
function u$w(S){return function(F,V,sC){arguments.length===2&&typeof V==="function"&&(sC=V,V=void 0);return fetch(F,V).then(OEL).then(function(x8){return S(x8,sC)})}}
function BvN(S,F,V,sC){if(isNaN(F)||isNaN(V))return S;var x8,gI=S._root;sC={data:sC};var Ib=S._x0,SN=S._y0,rw=S._x1,kZ=S._y1,Bj,gw,op,KL,Gw;if(!gI)return S._root=sC,S;for(;gI.length;)if((op=F>=(Bj=(Ib+rw)/2))?Ib=Bj:rw=Bj,(KL=V>=(gw=(SN+kZ)/2))?SN=gw:kZ=gw,x8=gI,!(gI=gI[Gw=KL<<1|op]))return x8[Gw]=sC,S;var wU=+S._x.call(null,gI.data);var cX=+S._y.call(null,gI.data);if(F===wU&&V===cX)return sC.next=gI,x8?x8[Gw]=sC:S._root=sC,S;do x8=x8?x8[Gw]=Array(4):S._root=Array(4),(op=F>=(Bj=(Ib+rw)/2))?Ib=Bj:rw=
Bj,(KL=V>=(gw=(SN+kZ)/2))?SN=gw:kZ=gw;while((Gw=KL<<1|op)===(op=(cX>=gw)<<1|wU>=Bj));return x8[op]=gI,x8[Gw]=sC,S}
function WM(S,F,V,sC,x8){this.node=S;this.x0=F;this.y0=V;this.x1=sC;this.y1=x8}
function RhM(S){return S[0]}
function TBQ(S){return S[1]}
function sr8(S,F,V,sC,x8,gI){this._x=S;this._y=F;this._x0=V;this._y0=sC;this._x1=x8;this._y1=gI;this._root=void 0}
function eQi(S){for(var F={data:S.data},V=F;S=S.next;)V=V.next={data:S.data};return F}
function N_X(S,F){if((F=(S=F?S.toExponential(F-1):S.toExponential()).indexOf("e"))<0)return null;var V=S.slice(0,F);return[V.length>1?V[0]+V.slice(2):V,+S.slice(F+1)]}
function m9Q(S){return S=N_X(Math.abs(S)),S?S[1]:NaN}
function Jl_(S,F){return function(V,sC){for(var x8=V.length,gI=[],Ib=0,SN=S[0],rw=0;x8>0&&SN>0;){rw+SN+1>sC&&(SN=Math.max(1,sC-rw));gI.push(V.substring(x8-=SN,x8+SN));if((rw+=SN+1)>sC)break;SN=S[Ib=(Ib+1)%S.length]}return gI.reverse().join(F)}}
function gF3(S){return function(F){return F.replace(/[0-9]/g,function(V){return S[+V]})}}
function kXV(S){return new d6I(S)}
function d6I(S){if(!(F=bE3.exec(S)))throw Error("De`"+S);var F;this.fill=F[1]||" ";this.align=F[2]||">";this.sign=F[3]||"-";this.symbol=F[4]||"";this.zero=!!F[5];this.width=F[6]&&+F[6];this.comma=!!F[7];this.precision=F[8]&&+F[8].slice(1);this.trim=!!F[9];this.type=F[10]||""}
function xOk(S,F){F=N_X(S,F);if(!F)return S+"";S=F[0];F=F[1];return F<0?"0."+Array(-F).join("0")+S:S.length>F+1?S.slice(0,F+1)+"."+S.slice(F+1):S+Array(F-S.length+2).join("0")}
function iKA(S){return S}
function LeI(S){function F(SN){function rw(sN){var XZ=FV,$1=bL,vz,im;if(ue==="c")$1=Be(sN)+$1,sN="";else{sN=+sN;var a_=sN<0;sN=Be(Math.abs(sN),cX);if(Ov){var ut=sN.length,Wu=1,R3=-1;a:for(;Wu<ut;++Wu)switch(sN[Wu]){case ".":R3=vz=Wu;break;case "0":R3===0&&(R3=Wu);vz=Wu;break;default:if(!+sN[Wu])break a;R3>0&&(R3=0)}sN=R3>0?sN.slice(0,R3)+sN.slice(vz+1):sN}a_&&+sN===0&&(a_=!1);XZ=(a_?gw==="("?gw:"-":gw==="-"||gw==="("?"":gw)+XZ;$1=(ue==="s"?hQJ[8+OKN/3]:"")+$1+(a_&&gw==="("?")":"");if(P4)for(a_=-1,
vz=sN.length;++a_<vz;)if(im=sN.charCodeAt(a_),48>im||im>57){$1=(im===46?x8+sN.slice(a_+1):sN.slice(a_))+$1;sN=sN.slice(0,a_);break}}wU&&!KL&&(sN=V(sN,Infinity));im=XZ.length+sN.length+$1.length;a_=im<Gw?Array(Gw-im+1).join(kZ):"";wU&&KL&&(sN=V(a_+sN,a_.length?Gw-$1.length:Infinity),a_="");switch(Bj){case "<":sN=XZ+sN+$1+a_;break;case "=":sN=XZ+a_+sN+$1;break;case "^":sN=a_.slice(0,im=a_.length>>1)+XZ+sN+$1+a_.slice(im);break;default:sN=a_+XZ+sN+$1}return gI(sN)}
SN=kXV(SN);var kZ=SN.fill,Bj=SN.align,gw=SN.sign,op=SN.symbol,KL=SN.zero,Gw=SN.width,wU=SN.comma,cX=SN.precision,Ov=SN.trim,ue=SN.type;ue==="n"?(wU=!0,ue="g"):RQA[ue]||(cX==null&&(cX=12),Ov=!0,ue="g");if(KL||kZ==="0"&&Bj==="=")KL=!0,kZ="0",Bj="=";var FV=op==="$"?sC[0]:op==="#"&&/[boxX]/.test(ue)?"0"+ue.toLowerCase():"",bL=op==="$"?sC[1]:/[%p]/.test(ue)?Ib:"",Be=RQA[ue],P4=/[defgprs%]/.test(ue);cX=cX==null?6:/[gprs]/.test(ue)?Math.max(1,Math.min(21,cX)):Math.max(0,Math.min(20,cX));rw.toString=function(){return SN+
""};
return rw}
var V=S.grouping&&S.thousands?Jl_(S.grouping,S.thousands):iKA,sC=S.currency,x8=S.decimal,gI=S.numerals?gF3(S.numerals):iKA,Ib=S.percent||"%";return{format:F,formatPrefix:function(SN,rw){var kZ=F((SN=kXV(SN),SN.type="f",SN));SN=Math.max(-8,Math.min(8,Math.floor(m9Q(rw)/3)))*3;var Bj=Math.pow(10,-SN),gw=hQJ[8+SN/3];return function(op){return kZ(Bj*op)+gw}}}}
function vZ(){this.reset()}
function TvJ(S,F,V){var sC=S.s=F+V,x8=sC-F;S.t=F-(sC-x8)+(V-x8)}
function MMI(S){return S>1?Lw:S<-1?-Lw:Math.asin(S)}
function vFM(){}
function mON(S){var F=S[0];S=S[1];var V=vl(S);return[V*vl(F),V*UH(F),UH(S)]}
function Jo1(S,F){return[S[1]*F[2]-S[2]*F[1],S[2]*F[0]-S[0]*F[2],S[0]*F[1]-S[1]*F[0]]}
function gvw(S){var F=nJA(S[0]*S[0]+S[1]*S[1]+S[2]*S[2]);S[0]/=F;S[1]/=F;S[2]/=F}
function ylV(){var S=[],F;return{point:function(V,sC){F.push([V,sC])},
lineStart:function(){S.push(F=[])},
lineEnd:vFM,rejoin:function(){S.length>1&&S.push(S.pop().concat(S.shift()))},
result:function(){var V=S;S=[];F=null;return V}}}
function ZTN(S,F,V,sC){this.x=S;this.z=F;this.o=V;this.e=sC;this.v=!1;this.n=this.p=null}
function jBV(S,F,V,sC,x8){var gI=[],Ib=[];S.forEach(function(gw){if(!((op=gw.length-1)<=0)){var op,KL=gw[0],Gw=gw[op],wU=KL;if(xT(wU[0]-Gw[0])<1E-6&&xT(wU[1]-Gw[1])<1E-6){x8.lineStart();for(SN=0;SN<op;++SN)x8.point((KL=gw[SN])[0],KL[1]);x8.lineEnd()}else gI.push(op=new ZTN(KL,gw,null,!0)),Ib.push(op.o=new ZTN(KL,null,op,!1)),gI.push(op=new ZTN(Gw,gw,null,!1)),Ib.push(op.o=new ZTN(Gw,null,op,!0))}});
if(gI.length){Ib.sort(F);bKj(gI);bKj(Ib);var SN=0;for(S=Ib.length;SN<S;++SN)Ib[SN].e=V=!V;V=gI[0];for(var rw;;){for(var kZ=V,Bj=!0;kZ.v;)if((kZ=kZ.n)===V)return;F=kZ.z;x8.lineStart();do{kZ.v=kZ.o.v=!0;if(kZ.e){if(Bj)for(SN=0,S=F.length;SN<S;++SN)x8.point((rw=F[SN])[0],rw[1]);else sC(kZ.x,kZ.n.x,1,x8);kZ=kZ.n}else{if(Bj)for(F=kZ.p.z,SN=F.length-1;SN>=0;--SN)x8.point((rw=F[SN])[0],rw[1]);else sC(kZ.x,kZ.p.x,-1,x8);kZ=kZ.p}kZ=kZ.o;F=kZ.z;Bj=!Bj}while(!kZ.v);x8.lineEnd()}}}
function bKj(S){if(F=S.length){for(var F,V=0,sC=S[0],x8;++V<F;)sC.n=x8=S[V],x8.p=sC,sC=x8;sC.n=x8=S[0];x8.p=sC}}
function IAG(S){return S.length>1}
function Yb1(S,F){return((S=S.x)[0]<0?S[1]-Lw-1E-6:Lw-S[1])-((F=F.x)[0]<0?F[1]-Lw-1E-6:Lw-F[1])}
function Wg8(){}
function LEw(S){return function(F,V){var sC=vl(F),x8=vl(V);sC=S(sC*x8);return[sC*x8*UH(F),sC*UH(V)]}}
function na(S){return function(F,V){var sC=nJA(F*F+V*V),x8=S(sC),gI=UH(x8);x8=vl(x8);return[vvk(F*gI,sC*x8),MMI(sC&&V*gI/sC)]}}
function PTQ(S){var F=0,V=S.children,sC=V&&V.length;if(sC)for(;--sC>=0;)F+=V[sC].value;else F=1;S.value=F}
function yoN(S,F){var V=new ZF(S);S=+S.value&&(V.value=S.value);var sC,x8=[V],gI,Ib,SN,rw;for(F==null&&(F=GTB);sC=x8.pop();)if(S&&(sC.value=+sC.data.value),(Ib=F(sC.data))&&(rw=Ib.length))for(sC.children=Array(rw),SN=rw-1;SN>=0;--SN)x8.push(gI=sC.children[SN]=new ZF(Ib[SN])),gI.parent=sC,gI.depth=sC.depth+1;return V.eachBefore(FeQ)}
function GTB(S){return S.children}
function XbG(S){S.data=S.data.data}
function FeQ(S){var F=0;do S.height=F;while((S=S.parent)&&S.height<++F)}
function ZF(S){this.data=S;this.depth=this.height=0;this.parent=null}
function SL(S,F,V,sC){function x8(gI){return S(gI=new Date(+gI)),gI}
x8.floor=x8;x8.ceil=function(gI){return S(gI=new Date(gI-1)),F(gI,1),S(gI),gI};
x8.round=function(gI){var Ib=x8(gI),SN=x8.ceil(gI);return gI-Ib<SN-gI?Ib:SN};
x8.offset=function(gI,Ib){return F(gI=new Date(+gI),Ib==null?1:Math.floor(Ib)),gI};
x8.range=function(gI,Ib,SN){var rw=[],kZ;gI=x8.ceil(gI);SN=SN==null?1:Math.floor(SN);if(!(gI<Ib&&SN>0))return rw;do rw.push(kZ=new Date(+gI)),F(gI,SN),S(gI);while(kZ<gI&&gI<Ib);return rw};
x8.filter=function(gI){return SL(function(Ib){if(Ib>=Ib)for(;S(Ib),!gI(Ib);)Ib.setTime(Ib-1)},function(Ib,SN){if(Ib>=Ib)if(SN<0)for(;++SN<=0;)for(;F(Ib,-1),!gI(Ib););
else for(;--SN>=0;)for(;F(Ib,1),!gI(Ib););})};
V&&(x8.count=function(gI,Ib){zbI.setTime(+gI);qcN.setTime(+Ib);S(zbI);S(qcN);return Math.floor(V(zbI,qcN))},x8.every=function(gI){gI=Math.floor(gI);
return isFinite(gI)&&gI>0?gI>1?x8.filter(sC?function(Ib){return sC(Ib)%gI===0}:function(Ib){return x8.count(0,Ib)%gI===0}):x8:null});
return x8}
function vb(S){return SL(function(F){F.setDate(F.getDate()-(F.getDay()+7-S)%7);F.setHours(0,0,0,0)},function(F,V){F.setDate(F.getDate()+V*7)},function(F,V){return(V-F-(V.getTimezoneOffset()-F.getTimezoneOffset())*6E4)/6048E5})}
function y3(S){return SL(function(F){F.setUTCDate(F.getUTCDate()-(F.getUTCDay()+7-S)%7);F.setUTCHours(0,0,0,0)},function(F,V){F.setUTCDate(F.getUTCDate()+V*7)},function(F,V){return(V-F)/6048E5})}
function D9B(S){if(0<=S.y&&S.y<100){var F=new Date(-1,S.m,S.d,S.H,S.M,S.S,S.L);F.setFullYear(S.y);return F}return new Date(S.y,S.m,S.d,S.H,S.M,S.S,S.L)}
function f7I(S){if(0<=S.y&&S.y<100){var F=new Date(Date.UTC(-1,S.m,S.d,S.H,S.M,S.S,S.L));F.setUTCFullYear(S.y);return F}return new Date(Date.UTC(S.y,S.m,S.d,S.H,S.M,S.S,S.L))}
function fa(S){return{y:S,m:0,d:1,H:0,M:0,S:0,L:0}}
function Sb3(S){function F($1,vz){return function(im){var a_=[],ut=-1,Wu=0,R3=$1.length,XQ,q_;for(im instanceof Date||(im=new Date(+im));++ut<R3;)if($1.charCodeAt(ut)===37){a_.push($1.slice(Wu,ut));(Wu=jWG[XQ=$1.charAt(++ut)])!=null?XQ=$1.charAt(++ut):Wu=XQ==="e"?" ":"0";if(q_=vz[XQ])XQ=q_(im,Wu);a_.push(XQ);Wu=ut+1}a_.push($1.slice(Wu,ut));return a_.join("")}}
function V($1,vz){return function(im){var a_=fa(1900);if(sC(a_,$1,im,0)!=im.length)return null;if("Q"in a_)return new Date(a_.Q);"p"in a_&&(a_.H=a_.H%12+a_.p*12);if("V"in a_){if(a_.V<1||a_.V>53)return null;"w"in a_||(a_.w=1);if("Z"in a_){im=f7I(fa(a_.y));var ut=im.getUTCDay();im=ut>4||ut===0?rzC.ceil(im):rzC(im);im=IYk.offset(im,(a_.V-1)*7);a_.y=im.getUTCFullYear();a_.m=im.getUTCMonth();a_.d=im.getUTCDate()+(a_.w+6)%7}else im=vz(fa(a_.y)),ut=im.getDay(),im=ut>4||ut===0?uml.ceil(im):uml(im),im=Yek.offset(im,
(a_.V-1)*7),a_.y=im.getFullYear(),a_.m=im.getMonth(),a_.d=im.getDate()+(a_.w+6)%7}else if("W"in a_||"U"in a_)"w"in a_||(a_.w="u"in a_?a_.u%7:"W"in a_?1:0),ut="Z"in a_?f7I(fa(a_.y)).getUTCDay():vz(fa(a_.y)).getDay(),a_.m=0,a_.d="W"in a_?(a_.w+6)%7+a_.W*7-(ut+5)%7:a_.w+a_.U*7-(ut+6)%7;return"Z"in a_?(a_.H+=a_.Z/100|0,a_.M+=a_.Z%100,f7I(a_)):vz(a_)}}
function sC($1,vz,im,a_){for(var ut=0,Wu=vz.length,R3=im.length,XQ;ut<Wu;){if(a_>=R3)return-1;XQ=vz.charCodeAt(ut++);if(XQ===37){if(XQ=vz.charAt(ut++),XQ=XZ[XQ in jWG?vz.charAt(ut++):XQ],!XQ||(a_=XQ($1,im,a_))<0)return-1}else if(XQ!=im.charCodeAt(a_++))return-1}return a_}
var x8=S.dateTime,gI=S.date,Ib=S.time,SN=S.periods,rw=S.days,kZ=S.shortDays,Bj=S.months,gw=S.shortMonths,op=wJ(SN),KL=om(SN),Gw=wJ(rw),wU=om(rw),cX=wJ(kZ),Ov=om(kZ),ue=wJ(Bj),FV=om(Bj),bL=wJ(gw),Be=om(gw),P4={a:function($1){return kZ[$1.getDay()]},
A:function($1){return rw[$1.getDay()]},
b:function($1){return gw[$1.getMonth()]},
B:function($1){return Bj[$1.getMonth()]},
c:null,d:PaJ,e:PaJ,f:CTB,H:Ke_,I:aAB,j:cl_,L:GU1,m:pbM,M:QBL,p:function($1){return SN[+($1.getHours()>=12)]},
Q:FEj,s:XAw,S:VeB,u:EFe,U:U9B,V:lAL,w:teR,W:NBG,x:null,X:null,y:MeI,Y:nFB,Z:ZE3,"%":DOQ},sN={a:function($1){return kZ[$1.getUTCDay()]},
A:function($1){return rw[$1.getUTCDay()]},
b:function($1){return gw[$1.getUTCMonth()]},
B:function($1){return Bj[$1.getUTCMonth()]},
c:null,d:Se1,e:Se1,f:fAL,H:wbB,I:oFR,j:$9_,L:CaA,m:ACI,M:HsG,p:function($1){return SN[+($1.getUTCHours()>=12)]},
Q:FEj,s:XAw,S:sv1,u:khB,U:daL,V:WkL,w:z_L,W:qjG,x:null,X:null,y:rCB,Y:u5L,Z:Bm_,"%":DOQ},XZ={a:function($1,vz,im){return(vz=cX.exec(vz.slice(im)))?($1.w=Ov[vz[0].toLowerCase()],im+vz[0].length):-1},
A:function($1,vz,im){return(vz=Gw.exec(vz.slice(im)))?($1.w=wU[vz[0].toLowerCase()],im+vz[0].length):-1},
b:function($1,vz,im){return(vz=bL.exec(vz.slice(im)))?($1.m=Be[vz[0].toLowerCase()],im+vz[0].length):-1},
B:function($1,vz,im){return(vz=ue.exec(vz.slice(im)))?($1.m=FV[vz[0].toLowerCase()],im+vz[0].length):-1},
c:function($1,vz,im){return sC($1,x8,vz,im)},
d:KEA,e:KEA,f:e_B,H:aYJ,I:aYJ,j:xaV,L:isR,m:h_Q,M:OsV,p:function($1,vz,im){return(vz=op.exec(vz.slice(im)))?($1.p=KL[vz[0].toLowerCase()],im+vz[0].length):-1},
Q:R_M,s:TmL,S:maI,u:JCG,U:gm1,V:bsL,w:Lk_,W:vmV,x:function($1,vz,im){return sC($1,gI,vz,im)},
X:function($1,vz,im){return sC($1,Ib,vz,im)},
y:yCG,Y:jvM,Z:ITL,"%":YjR};P4.x=F(gI,P4);P4.X=F(Ib,P4);P4.c=F(x8,P4);sN.x=F(gI,sN);sN.X=F(Ib,sN);sN.c=F(x8,sN);return{format:function($1){var vz=F($1,P4);vz.toString=function(){return $1};
return vz},
parse:function($1){var vz=V($1,D9B);vz.toString=function(){return $1};
return vz},
utcFormat:function($1){var vz=F($1,sN);vz.toString=function(){return $1};
return vz},
utcParse:function($1){var vz=V($1,f7I);vz.toString=function(){return $1};
return vz}}}
function KA(S,F,V){var sC=S<0?"-":"";S=(sC?-S:S)+"";var x8=S.length;return sC+(x8<V?Array(V-x8+1).join(F)+S:S)}
function PEL(S){return S.replace(Ghi,"\\$&")}
function wJ(S){return new RegExp("^(?:"+S.map(PEL).join("|")+")","i")}
function om(S){for(var F={},V=-1,sC=S.length;++V<sC;)F[S[V].toLowerCase()]=V;return F}
function Lk_(S,F,V){return(F=XV.exec(F.slice(V,V+1)))?(S.w=+F[0],V+F[0].length):-1}
function JCG(S,F,V){return(F=XV.exec(F.slice(V,V+1)))?(S.u=+F[0],V+F[0].length):-1}
function gm1(S,F,V){return(F=XV.exec(F.slice(V,V+2)))?(S.U=+F[0],V+F[0].length):-1}
function bsL(S,F,V){return(F=XV.exec(F.slice(V,V+2)))?(S.V=+F[0],V+F[0].length):-1}
function vmV(S,F,V){return(F=XV.exec(F.slice(V,V+2)))?(S.W=+F[0],V+F[0].length):-1}
function jvM(S,F,V){return(F=XV.exec(F.slice(V,V+4)))?(S.y=+F[0],V+F[0].length):-1}
function yCG(S,F,V){return(F=XV.exec(F.slice(V,V+2)))?(S.y=+F[0]+(+F[0]>68?1900:2E3),V+F[0].length):-1}
function ITL(S,F,V){return(F=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(F.slice(V,V+6)))?(S.Z=F[1]?0:-(F[2]+(F[3]||"00")),V+F[0].length):-1}
function h_Q(S,F,V){return(F=XV.exec(F.slice(V,V+2)))?(S.m=F[0]-1,V+F[0].length):-1}
function KEA(S,F,V){return(F=XV.exec(F.slice(V,V+2)))?(S.d=+F[0],V+F[0].length):-1}
function xaV(S,F,V){return(F=XV.exec(F.slice(V,V+3)))?(S.m=0,S.d=+F[0],V+F[0].length):-1}
function aYJ(S,F,V){return(F=XV.exec(F.slice(V,V+2)))?(S.H=+F[0],V+F[0].length):-1}
function OsV(S,F,V){return(F=XV.exec(F.slice(V,V+2)))?(S.M=+F[0],V+F[0].length):-1}
function maI(S,F,V){return(F=XV.exec(F.slice(V,V+2)))?(S.S=+F[0],V+F[0].length):-1}
function isR(S,F,V){return(F=XV.exec(F.slice(V,V+3)))?(S.L=+F[0],V+F[0].length):-1}
function e_B(S,F,V){return(F=XV.exec(F.slice(V,V+6)))?(S.L=Math.floor(F[0]/1E3),V+F[0].length):-1}
function YjR(S,F,V){return(S=Fk_.exec(F.slice(V,V+1)))?V+S[0].length:-1}
function R_M(S,F,V){return(F=XV.exec(F.slice(V)))?(S.Q=+F[0],V+F[0].length):-1}
function TmL(S,F,V){return(F=XV.exec(F.slice(V)))?(S.Q=+F[0]*1E3,V+F[0].length):-1}
function PaJ(S,F){return KA(S.getDate(),F,2)}
function Ke_(S,F){return KA(S.getHours(),F,2)}
function aAB(S,F){return KA(S.getHours()%12||12,F,2)}
function cl_(S,F){return KA(1+Yek.count(Nh(S),S),F,3)}
function GU1(S,F){return KA(S.getMilliseconds(),F,3)}
function CTB(S,F){return GU1(S,F)+"000"}
function pbM(S,F){return KA(S.getMonth()+1,F,2)}
function QBL(S,F){return KA(S.getMinutes(),F,2)}
function VeB(S,F){return KA(S.getSeconds(),F,2)}
function EFe(S){S=S.getDay();return S===0?7:S}
function U9B(S,F){return KA(XHB.count(Nh(S),S),F,2)}
function lAL(S,F){var V=S.getDay();S=V>=4||V===0?BqI(S):BqI.ceil(S);return KA(BqI.count(Nh(S),S)+(Nh(S).getDay()===4),F,2)}
function teR(S){return S.getDay()}
function NBG(S,F){return KA(uml.count(Nh(S),S),F,2)}
function MeI(S,F){return KA(S.getFullYear()%100,F,2)}
function nFB(S,F){return KA(S.getFullYear()%1E4,F,4)}
function ZE3(S){S=S.getTimezoneOffset();return(S>0?"-":(S*=-1,"+"))+KA(S/60|0,"0",2)+KA(S%60,"0",2)}
function Se1(S,F){return KA(S.getUTCDate(),F,2)}
function wbB(S,F){return KA(S.getUTCHours(),F,2)}
function oFR(S,F){return KA(S.getUTCHours()%12||12,F,2)}
function $9_(S,F){return KA(1+IYk.count(Mh(S),S),F,3)}
function CaA(S,F){return KA(S.getUTCMilliseconds(),F,3)}
function fAL(S,F){return CaA(S,F)+"000"}
function ACI(S,F){return KA(S.getUTCMonth()+1,F,2)}
function HsG(S,F){return KA(S.getUTCMinutes(),F,2)}
function sv1(S,F){return KA(S.getUTCSeconds(),F,2)}
function khB(S){S=S.getUTCDay();return S===0?7:S}
function daL(S,F){return KA(DaL.count(Mh(S),S),F,2)}
function WkL(S,F){var V=S.getUTCDay();S=V>=4||V===0?ebI(S):ebI.ceil(S);return KA(ebI.count(Mh(S),S)+(Mh(S).getUTCDay()===4),F,2)}
function z_L(S){return S.getUTCDay()}
function qjG(S,F){return KA(rzC.count(Mh(S),S),F,2)}
function rCB(S,F){return KA(S.getUTCFullYear()%100,F,2)}
function u5L(S,F){return KA(S.getUTCFullYear()%1E4,F,4)}
function Bm_(){return"+0000"}
function DOQ(){return"%"}
function FEj(S){return+S}
function XAw(S){return Math.floor(+S/1E3)}
function bf(S){for(var F=S.length/6|0,V=Array(F),sC=0;sC<F;)V[sC]="#"+S.slice(sC*6,++sC*6);return V}
function BI(S){return SjI(S[S.length-1])}
function wqI(S){var F=S.length;return function(V){return S[Math.max(0,Math.min(F-1,Math.floor(V*F)))]}}
function coj(S){this._context=S}
function pAN(S){this._curve=S}
function QWw(S,F,V){var sC=S._x1-S._x0;F-=S._x1;var x8=(S._y1-S._y0)/(sC||F<0&&-0);S=(V-S._y1)/(F||sC<0&&-0);return((x8<0?-1:1)+(S<0?-1:1))*Math.min(Math.abs(x8),Math.abs(S),.5*Math.abs((x8*F+S*sC)/(sC+F)))||0}
function VgQ(S,F){var V=S._x1-S._x0;return V?(3*(S._y1-S._y0)/V-F)/2:F}
function x6C(S,F,V){var sC=S._x0,x8=S._x1,gI=S._y1,Ib=(x8-sC)/3;S._context.bezierCurveTo(sC+Ib,S._y0+Ib*F,x8-Ib,gI-Ib*V,x8,gI)}
function irN(S){this._context=S}
function Evp(S){this._context=S}
function $R(S,F,V){this.k=S;this.x=F;this.y=V}
(function(S){S.length===1&&(S=H(S));return{left:function(F,V,sC,x8){sC==null&&(sC=0);x8==null&&(x8=F.length);for(;sC<x8;){var gI=sC+x8>>>1;S(F[gI],V)<0?sC=gI+1:x8=gI}return sC},
right:function(F,V,sC,x8){sC==null&&(sC=0);x8==null&&(x8=F.length);for(;sC<x8;){var gI=sC+x8>>>1;S(F[gI],V)>0?x8=gI:sC=gI+1}return sC}}})(A);
var cPe={value:function(){}};
d.prototype=k.prototype={constructor:d,on:function(S,F){var V=this._,sC=W(S+"",V),x8,gI=-1,Ib=sC.length;if(arguments.length<2)for(;++gI<Ib;){var SN;if(SN=x8=(S=sC[gI]).type){a:{SN=V[x8];for(var rw=0,kZ=SN.length;rw<kZ;++rw)if((x8=SN[rw]).name===S.name){x8=x8.value;break a}x8=void 0}SN=x8}if(SN)return x8}else{if(F!=null&&typeof F!=="function")throw Error("Ee`"+F);for(;++gI<Ib;)if(x8=(S=sC[gI]).type)V[x8]=z(V[x8],S.name,F);else if(F==null)for(x8 in V)V[x8]=z(V[x8],S.name,null);return this}},
copy:function(){var S={},F=this._,V;for(V in F)S[V]=F[V].slice();return new d(S)},
call:function(S,F){if((x8=arguments.length-2)>0)for(var V=Array(x8),sC=0,x8,gI;sC<x8;++sC)V[sC]=arguments[sC+2];if(!this._.hasOwnProperty(S))throw Error("ye`"+S);gI=this._[S];sC=0;for(x8=gI.length;sC<x8;++sC)gI[sC].value.apply(F,V)},
apply:function(S,F,V){if(!this._.hasOwnProperty(S))throw Error("ye`"+S);S=this._[S];for(var sC=0,x8=S.length;sC<x8;++sC)S[sC].value.apply(F,V)}};
var gy={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/"},UOk=function(S){return function(){return this.matches(S)}};
if(typeof document!=="undefined"){var AH=document.documentElement;if(!AH.matches){var CEM=AH.webkitMatchesSelector||AH.msMatchesSelector||AH.mozMatchesSelector||AH.oMatchesSelector;UOk=function(S){return function(){return CEM.call(this,S)}}}}var lYA=UOk;
g.prototype={constructor:g,appendChild:function(S){return this._parent.insertBefore(S,this._next)},
insertBefore:function(S,F){return this._parent.insertBefore(S,F)},
querySelector:function(S){return this._parent.querySelector(S)},
querySelectorAll:function(S){return this._parent.querySelectorAll(S)}};
var ZrG={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(ZrG={mouseenter:"mouseover",mouseleave:"mouseout"}));var p$I=[null];lJ.prototype=Ni.prototype={constructor:lJ,select:function(S){typeof S!=="function"&&(S=m(S));for(var F=this._groups,V=F.length,sC=Array(V),x8=0;x8<V;++x8)for(var gI=F[x8],Ib=gI.length,SN=sC[x8]=Array(Ib),rw,kZ,Bj=0;Bj<Ib;++Bj)(rw=gI[Bj])&&(kZ=S.call(rw,rw.__data__,Bj,gI))&&("__data__"in rw&&(kZ.__data__=rw.__data__),SN[Bj]=kZ);return new lJ(sC,
this._parents)},
filter:function(S){typeof S!=="function"&&(S=lYA(S));for(var F=this._groups,V=F.length,sC=Array(V),x8=0;x8<V;++x8)for(var gI=F[x8],Ib=gI.length,SN=sC[x8]=[],rw,kZ=0;kZ<Ib;++kZ)(rw=gI[kZ])&&S.call(rw,rw.__data__,kZ,gI)&&SN.push(rw);return new lJ(sC,this._parents)},
data:function(S,F){if(!S)return KL=Array(this.size()),kZ=-1,this.each(function(ue){KL[++kZ]=ue}),KL;
var V=F?X:y,sC=this._parents,x8=this._groups;typeof S!=="function"&&(S=v(S));for(var gI=x8.length,Ib=Array(gI),SN=Array(gI),rw=Array(gI),kZ=0;kZ<gI;++kZ){var Bj=sC[kZ],gw=x8[kZ],op=gw.length,KL=S.call(Bj,Bj&&Bj.__data__,kZ,sC),Gw=KL.length,wU=SN[kZ]=Array(Gw),cX=Ib[kZ]=Array(Gw);op=rw[kZ]=Array(op);V(Bj,gw,wU,cX,op,KL,F);gw=Bj=0;for(var Ov;Bj<Gw;++Bj)if(op=wU[Bj]){for(Bj>=gw&&(gw=Bj+1);!(Ov=cX[gw])&&++gw<Gw;);op._next=Ov||null}}Ib=new lJ(Ib,sC);Ib._enter=SN;Ib._exit=rw;return Ib},
enter:function(){return new lJ(this._enter||this._groups.map(J),this._parents)},
exit:function(){return new lJ(this._exit||this._groups.map(J),this._parents)},
merge:function(S){var F=this._groups;S=S._groups;for(var V=F.length,sC=Math.min(V,S.length),x8=Array(V),gI=0;gI<sC;++gI)for(var Ib=F[gI],SN=S[gI],rw=Ib.length,kZ=x8[gI]=Array(rw),Bj,gw=0;gw<rw;++gw)if(Bj=Ib[gw]||SN[gw])kZ[gw]=Bj;for(;gI<V;++gI)x8[gI]=F[gI];return new lJ(x8,this._parents)},
order:function(){for(var S=this._groups,F=-1,V=S.length;++F<V;)for(var sC=S[F],x8=sC.length-1,gI=sC[x8],Ib;--x8>=0;)if(Ib=sC[x8])gI&&gI!==Ib.nextSibling&&gI.parentNode.insertBefore(Ib,gI),gI=Ib;return this},
sort:function(S){function F(gw,op){return gw&&op?S(gw.__data__,op.__data__):!gw-!op}
S||(S=D);for(var V=this._groups,sC=V.length,x8=Array(sC),gI=0;gI<sC;++gI){for(var Ib=V[gI],SN=Ib.length,rw=x8[gI]=Array(SN),kZ,Bj=0;Bj<SN;++Bj)if(kZ=Ib[Bj])rw[Bj]=kZ;rw.sort(F)}return(new lJ(x8,this._parents)).order()},
call:function(){var S=arguments[0];arguments[0]=this;S.apply(null,arguments);return this},
nodes:function(){var S=Array(this.size()),F=-1;this.each(function(){S[++F]=this});
return S},
node:function(){for(var S=this._groups,F=0,V=S.length;F<V;++F)for(var sC=S[F],x8=0,gI=sC.length;x8<gI;++x8){var Ib=sC[x8];if(Ib)return Ib}return null},
size:function(){var S=0;this.each(function(){++S});
return S},
empty:function(){return!this.node()},
each:function(S){for(var F=this._groups,V=0,sC=F.length;V<sC;++V)for(var x8=F[V],gI=0,Ib=x8.length,SN;gI<Ib;++gI)(SN=x8[gI])&&S.call(SN,SN.__data__,gI,x8);return this},
attr:function(S,F){var V=u(S);if(arguments.length<2){var sC=this.node();return V.local?sC.getAttributeNS(V.space,V.local):sC.getAttribute(V)}return this.each((F==null?V.local?N:K:typeof F==="function"?V.local?Z:M:V.local?p:U)(V,F))},
style:function(S,F,V){return arguments.length>1?this.each((F==null?WV:typeof F==="function"?qv:hA)(S,F,V==null?"":V)):eN(this.node(),S)},
property:function(S,F){return arguments.length>1?this.each((F==null?mr:typeof F==="function"?pl:Cl)(S,F)):this.node()[S]},
text:function(S){return arguments.length?this.each(S==null?UC:(typeof S==="function"?eA:hk)(S)):this.node().textContent},
html:function(S){return arguments.length?this.each(S==null?lI:(typeof S==="function"?vj:Rp)(S)):this.node().innerHTML},
append:function(S){var F=typeof S==="function"?S:O(S);return this.select(function(){return this.appendChild(F.apply(this,arguments))})},
insert:function(S,F){var V=typeof S==="function"?S:O(S),sC=F==null?T0:typeof F==="function"?F:m(F);return this.select(function(){return this.insertBefore(V.apply(this,arguments),sC.apply(this,arguments)||null)})},
remove:function(){return this.each(Y1)},
clone:function(S){return this.select(S?Tf:ze)},
datum:function(S){return arguments.length?this.property("__data__",S):this.node().__data__},
on:function(S,F,V){var sC=nN(S+""),x8=sC.length,gI;if(arguments.length<2){var Ib=this.node().__on;if(Ib)for(var SN=0,rw=Ib.length,kZ;SN<rw;++SN){var Bj=0;for(kZ=Ib[SN];Bj<x8;++Bj)if((gI=sC[Bj]).type===kZ.type&&gI.name===kZ.name)return kZ.value}}else{Ib=F?$Z:G0;V==null&&(V=!1);for(Bj=0;Bj<x8;++Bj)this.each(Ib(sC[Bj],F,V));return this}},
dispatch:function(S,F){return this.each((typeof F==="function"?x1:ww)(S,F))}};
var QHG=0;uJ.prototype=function(){return new uJ}.prototype={constructor:uJ,
get:function(S){for(var F=this._;!(F in S);)if(!(S=S.parentNode))return;return S[F]},
set:function(S,F){return S[this._]=F},
remove:function(S){return this._ in S&&delete S[this._]},
toString:function(){return this._}};
var n7=1/.7,VoB=/^#([0-9a-f]{3})$/,EjR=/^#([0-9a-f]{6})$/,UMB=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),lVB=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),toR=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),NA1=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*\\)$"),
MoM=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),nj3=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*\\)$"),fkw={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};
OB(NQ,Qi,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
OB(o_,iQ,Ow(NQ,{brighter:function(S){S=S==null?n7:Math.pow(n7,S);return new o_(this.r*S,this.g*S,this.b*S,this.opacity)},
darker:function(S){S=S==null?.7:Math.pow(.7,S);return new o_(this.r*S,this.g*S,this.b*S,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+rO(this.r)+rO(this.g)+rO(this.b)},
toString:function(){var S=this.opacity;S=isNaN(S)?1:Math.max(0,Math.min(1,S));return(S===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))+(S===1?")":", "+S+")")}}));
OB(E9,kl,Ow(NQ,{brighter:function(S){S=S==null?n7:Math.pow(n7,S);return new E9(this.h,this.s,this.l*S,this.opacity)},
darker:function(S){S=S==null?.7:Math.pow(.7,S);return new E9(this.h,this.s,this.l*S,this.opacity)},
rgb:function(){var S=this.h%360+(this.h<0)*360,F=this.l,V=F+(F<.5?F:1-F)*(isNaN(S)||isNaN(this.s)?0:this.s);F=2*F-V;return new o_(gU(S>=240?S-240:S+120,F,V),gU(S,F,V),gU(S<120?S+240:S-120,F,V),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 wxj=Math.PI/180,AoN=180/Math.PI,$6A=4/29,ld=6/29,o0k=3*ld*ld,ZvG=ld*ld*ld;OB(Y8,function(S,F,V,sC){return arguments.length===1?gY(S):new Y8(S,F,V,sC==null?1:sC)},Ow(NQ,{brighter:function(S){return new Y8(this.l+18*(S==null?1:S),this.a,this.b,this.opacity)},
darker:function(S){return new Y8(this.l-18*(S==null?1:S),this.a,this.b,this.opacity)},
rgb:function(){var S=(this.l+16)/116,F=isNaN(this.a)?S:S+this.a/500,V=isNaN(this.b)?S:S-this.b/200;F=.96422*ZQ(F);S=1*ZQ(S);V=.82521*ZQ(V);return new o_(yi(3.1338561*F-1.6168667*S-.4906146*V),yi(-.9787684*F+1.9161415*S+.033454*V),yi(.0719453*F-.2289914*S+1.4052427*V),this.opacity)}}));
OB(Ip,PR,Ow(NQ,{brighter:function(S){return new Ip(this.h,this.c,this.l+18*(S==null?1:S),this.opacity)},
darker:function(S){return new Ip(this.h,this.c,this.l-18*(S==null?1:S),this.opacity)},
rgb:function(){return gY(this).rgb()}}));
var HKk=1.78277*-.29227-.1347134789;OB(V_,jA,Ow(NQ,{brighter:function(S){S=S==null?n7:Math.pow(n7,S);return new V_(this.h,this.s,this.l*S,this.opacity)},
darker:function(S){S=S==null?.7:Math.pow(.7,S);return new V_(this.h,this.s,this.l*S,this.opacity)},
rgb:function(){var S=isNaN(this.h)?0:(this.h+120)*wxj,F=+this.l,V=isNaN(this.s)?0:this.s*F*(1-F),sC=Math.cos(S);S=Math.sin(S);return new o_(255*(F+V*(-.14861*sC+1.78277*S)),255*(F+V*(-.29227*sC+-.90649*S)),255*(F+1.97294*sC*V),this.opacity)}}));
var dOi=function V(F){function sC(gI,Ib){var SN=x8((gI=iQ(gI)).r,(Ib=iQ(Ib)).r),rw=x8(gI.g,Ib.g),kZ=x8(gI.b,Ib.b),Bj=sa(gI.opacity,Ib.opacity);return function(gw){gI.r=SN(gw);gI.g=rw(gw);gI.b=kZ(gw);gI.opacity=Bj(gw);return gI+""}}
var x8=OI(F);sC.gamma=V;return sC}(1),SjI=GW(function(F){var V=F.length-1;
return function(sC){var x8=sC<=0?sC=0:sC>=1?(sC=1,V-1):Math.floor(sC*V),gI=F[x8],Ib=F[x8+1];return Wz((sC-x8/V)*V,x8>0?F[x8-1]:2*gI-Ib,gI,Ib,x8<V-1?F[x8+2]:2*Ib-gI)}});
GW(function(F){var V=F.length;return function(sC){var x8=Math.floor(((sC%=1)<0?++sC:sC)*V);return Wz((sC-x8/V)*V,F[(x8+V-1)%V],F[x8%V],F[(x8+1)%V],F[(x8+2)%V])}});
var wwr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oLb=new RegExp(wwr.source,"g"),sW0=180/Math.PI,hbW={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},H3,OrI,tgA,oJN,KkV=nm(function(F){if(F==="none")return hbW;H3||(H3=document.createElement("DIV"),OrI=document.documentElement,tgA=document.defaultView);H3.style.transform=F;F=tgA.getComputedStyle(OrI.appendChild(H3),null).getPropertyValue("transform");OrI.removeChild(H3);F=F.slice(7,-1).split(",");return Jg(+F[0],+F[1],+F[2],+F[3],
+F[4],+F[5])},"px, ","px)","deg)"),aT1=nm(function(F){if(F==null)return hbW;
oJN||(oJN=document.createElementNS("http://www.w3.org/2000/svg","g"));oJN.setAttribute("transform",F);if(!(F=oJN.transform.baseVal.consolidate()))return hbW;F=F.matrix;return Jg(F.a,F.b,F.c,F.d,F.e,F.f)},", ",")",")");
b1(EW);b1(sa);WS(EW);WS(sa);IO(EW);var RbI=IO(sa),tI=0,Ey=0,lz=0,pql,Uy,cbV=0,bT=0,a7l=0,Ve=typeof performance==="object"&&performance.now?performance:Date,kUk=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(F){setTimeout(F,17)};
HZ.prototype=zk.prototype={constructor:HZ,restart:function(F,V,sC){if(typeof F!=="function")throw new TypeError("Fe");sC=(sC==null?Y9():+sC)+(V==null?0:+V);this._next||Uy===this||(Uy?Uy._next=this:pql=this,Uy=this);this._call=F;this._time=sC;s8()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,s8())}};
var fVM=k("start","end","interrupt"),w$e=[],cCB=Ni.prototype.constructor,Nv1=0,ZX=Ni.prototype;e0.prototype=function(F){return Ni().transition(F)}.prototype={constructor:e0,
select:function(F){var V=this._name,sC=this._id;typeof F!=="function"&&(F=m(F));for(var x8=this._groups,gI=x8.length,Ib=Array(gI),SN=0;SN<gI;++SN)for(var rw=x8[SN],kZ=rw.length,Bj=Ib[SN]=Array(kZ),gw,op,KL=0;KL<kZ;++KL)(gw=rw[KL])&&(op=F.call(gw,gw.__data__,KL,rw))&&("__data__"in gw&&(op.__data__=gw.__data__),Bj[KL]=op,Ak(Bj[KL],V,sC,KL,Bj,Z3(gw,sC)));return new e0(Ib,this._parents,V,sC)},
filter:function(F){typeof F!=="function"&&(F=lYA(F));for(var V=this._groups,sC=V.length,x8=Array(sC),gI=0;gI<sC;++gI)for(var Ib=V[gI],SN=Ib.length,rw=x8[gI]=[],kZ,Bj=0;Bj<SN;++Bj)(kZ=Ib[Bj])&&F.call(kZ,kZ.__data__,Bj,Ib)&&rw.push(kZ);return new e0(x8,this._parents,this._name,this._id)},
merge:function(F){if(F._id!==this._id)throw Error();var V=this._groups;F=F._groups;for(var sC=V.length,x8=Math.min(sC,F.length),gI=Array(sC),Ib=0;Ib<x8;++Ib)for(var SN=V[Ib],rw=F[Ib],kZ=SN.length,Bj=gI[Ib]=Array(kZ),gw,op=0;op<kZ;++op)if(gw=SN[op]||rw[op])Bj[op]=gw;for(;Ib<sC;++Ib)gI[Ib]=V[Ib];return new e0(gI,this._parents,this._name,this._id)},
selection:function(){return new cCB(this._groups,this._parents)},
transition:function(){for(var F=this._name,V=this._id,sC=++Nv1,x8=this._groups,gI=x8.length,Ib=0;Ib<gI;++Ib)for(var SN=x8[Ib],rw=SN.length,kZ,Bj=0;Bj<rw;++Bj)if(kZ=SN[Bj]){var gw=Z3(kZ,V);Ak(kZ,F,sC,Bj,SN,{time:gw.time+gw.delay+gw.duration,delay:0,duration:gw.duration,ease:gw.ease})}return new e0(x8,this._parents,F,sC)},
call:ZX.call,nodes:ZX.nodes,node:ZX.node,size:ZX.size,empty:ZX.empty,each:ZX.each,on:function(F,V){var sC=this._id;return arguments.length<2?Z3(this.node(),sC).on.on(F):this.each(d9L(sC,F,V))},
attr:function(F,V){var sC=u(F),x8=sC==="transform"?aT1:bs;return this.attrTween(F,typeof V==="function"?(sC.local?Nq:EJm)(sC,x8,EH(this,"attr."+F,V)):V==null?(sC.local?Q3Q:LE)(sC):(sC.local?tt:VMI)(sC,x8,V+""))},
attrTween:function(F,V){var sC="attr."+F;if(arguments.length<2)return(sC=this.tween(sC))&&sC._value;if(V==null)return this.tween(sC,null);if(typeof V!=="function")throw Error();var x8=u(F);return this.tween(sC,(x8.local?Mq:UVb)(x8,V))},
style:function(F,V,sC){var x8=F==="transform"?KkV:bs;return V==null?this.styleTween(F,zhV(F,x8)).on("end.style."+F,qb_(F)):this.styleTween(F,typeof V==="function"?uyi(F,x8,EH(this,"style."+F,V)):rl1(F,x8,V+""),sC)},
styleTween:function(F,V,sC){var x8="style."+F;if(arguments.length<2)return(x8=this.tween(x8))&&x8._value;if(V==null)return this.tween(x8,null);if(typeof V!=="function")throw Error();return this.tween(x8,BBL(F,V,sC==null?"":sC))},
text:function(F){return this.tween("text",typeof F==="function"?x9_(EH(this,"text",F)):ehi(F==null?"":F+""))},
remove:function(){return this.on("end.remove",We3(this._id))},
tween:function(F,V){var sC=this._id;if(arguments.length<2){sC=Z3(this.node(),sC).tween;for(var x8=0,gI=sC.length,Ib;x8<gI;++x8)if((Ib=sC[x8]).name===F)return Ib.value;return null}return this.each((V==null?EG:l5)(sC,F,V))},
delay:function(F){var V=this._id;return arguments.length?this.each((typeof F==="function"?ojB:$Me)(V,F)):Z3(this.node(),V).delay},
duration:function(F){var V=this._id;return arguments.length?this.each((typeof F==="function"?AlR:HE_)(V,F)):Z3(this.node(),V).duration},
ease:function(F){var V=this._id;return arguments.length?this.each(sBQ(V,F)):Z3(this.node(),V).ease}};
var TqV={time:null,delay:0,duration:250,ease:function(F){return((F*=2)<=1?F*F*F:(F-=2)*F*F+2)/2}};
Ni.prototype.transition=function(F){var V;if(F instanceof e0){var sC=F._id;F=F._name}else sC=++Nv1,(V=TqV).time=Y9(),F=F==null?null:F+"";for(var x8=this._groups,gI=x8.length,Ib=0;Ib<gI;++Ib)for(var SN=x8[Ib],rw=SN.length,kZ,Bj=0;Bj<rw;++Bj)if(kZ=SN[Bj]){var gw=kZ,op=F,KL=sC,Gw=Bj,wU=SN,cX;if(!(cX=V))a:{cX=void 0;for(var Ov=sC;!(cX=kZ.__transition)||!(cX=cX[Ov]);)if(!(kZ=kZ.parentNode)){cX=(TqV.time=Y9(),TqV);break a}}Ak(gw,op,KL,Gw,wU,cX)}return new e0(x8,this._parents,F,sC)};
["e","w"].map($K8);["n","s"].map($K8);"n e s w nw ne se sw".split(" ").map($K8);Azr.prototype=function(){return new Azr}.prototype={constructor:Azr,
moveTo:function(F,V){this._+="M"+(this._x0=this._x1=+F)+","+(this._y0=this._y1=+V)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(F,V){this._+="L"+(this._x1=+F)+","+(this._y1=+V)},
bezierCurveTo:function(F,V,sC,x8,gI,Ib){this._+="C"+ +F+","+ +V+","+ +sC+","+ +x8+","+(this._x1=+gI)+","+(this._y1=+Ib)},
rect:function(F,V,sC,x8){this._+="M"+(this._x0=this._x1=+F)+","+(this._y0=this._y1=+V)+"h"+ +sC+"v"+ +x8+"h"+-sC+"Z"},
toString:function(){return this._}};
l7I.prototype=WEQ.prototype={constructor:l7I,has:function(F){return" "+F in this},
get:function(F){return this[" "+F]},
set:function(F,V){this[" "+F]=V;return this},
remove:function(F){F=" "+F;return F in this&&delete this[F]},
clear:function(){for(var F in this)F[0]===" "&&delete this[F]},
keys:function(){var F=[],V;for(V in this)V[0]===" "&&F.push(V.slice(1));return F},
values:function(){var F=[],V;for(V in this)V[0]===" "&&F.push(this[V]);return F},
entries:function(){var F=[],V;for(V in this)V[0]===" "&&F.push({key:V.slice(1),value:this[V]});return F},
size:function(){var F=0,V;for(V in this)V[0]===" "&&++F;return F},
empty:function(){for(var F in this)if(F[0]===" ")return!1;return!0},
each:function(F){for(var V in this)V[0]===" "&&F(this[V],V.slice(1),this)}};
var je=WEQ.prototype;tMX.prototype=function(F,V){var sC=new tMX;if(F instanceof tMX)F.each(function(Ib){sC.add(Ib)});
else if(F){var x8=-1,gI=F.length;if(V==null)for(;++x8<gI;)sC.add(F[x8]);else for(;++x8<gI;)sC.add(V(F[x8],x8,F))}return sC}.prototype={constructor:tMX,
has:je.has,add:function(F){this[" "+F]=F;return this},
remove:je.remove,clear:je.clear,values:je.keys,size:je.size,empty:je.empty,each:je.each};var row={},HrW={},pHL=qeQ(",").parse,QvV=qeQ("\t").parse;u$w(pHL);u$w(QvV);var zD=function(F,V,sC){V=new sr8(V==null?RhM:V,sC==null?TBQ:sC,NaN,NaN,NaN,NaN);return F==null?V:V.addAll(F)}.prototype=sr8.prototype;
zD.copy=function(){var F=new sr8(this._x,this._y,this._x0,this._y0,this._x1,this._y1),V=this._root,sC,x8;if(!V)return F;if(!V.length)return F._root=eQi(V),F;for(sC=[{source:V,target:F._root=Array(4)}];V=sC.pop();)for(var gI=0;gI<4;++gI)if(x8=V.source[gI])x8.length?sC.push({source:x8,target:V.target[gI]=Array(4)}):V.target[gI]=eQi(x8);return F};
zD.add=function(F){var V=+this._x.call(null,F),sC=+this._y.call(null,F);return BvN(this.cover(V,sC),V,sC,F)};
zD.addAll=function(F){var V,sC,x8=F.length,gI,Ib,SN=Array(x8),rw=Array(x8),kZ=Infinity,Bj=Infinity,gw=-Infinity,op=-Infinity;for(sC=0;sC<x8;++sC)isNaN(gI=+this._x.call(null,V=F[sC]))||isNaN(Ib=+this._y.call(null,V))||(SN[sC]=gI,rw[sC]=Ib,gI<kZ&&(kZ=gI),gI>gw&&(gw=gI),Ib<Bj&&(Bj=Ib),Ib>op&&(op=Ib));gw<kZ&&(kZ=this._x0,gw=this._x1);op<Bj&&(Bj=this._y0,op=this._y1);this.cover(kZ,Bj).cover(gw,op);for(sC=0;sC<x8;++sC)BvN(this,SN[sC],rw[sC],F[sC]);return this};
zD.cover=function(F,V){if(isNaN(F=+F)||isNaN(V=+V))return this;var sC=this._x0,x8=this._y0,gI=this._x1,Ib=this._y1;if(isNaN(sC))gI=(sC=Math.floor(F))+1,Ib=(x8=Math.floor(V))+1;else if(sC>F||F>gI||x8>V||V>Ib){var SN=gI-sC,rw=this._root,kZ;switch(kZ=(V<(x8+Ib)/2)<<1|F<(sC+gI)/2){case 0:do{var Bj=Array(4);Bj[kZ]=rw;rw=Bj}while(SN*=2,gI=sC+SN,Ib=x8+SN,F>gI||V>Ib);break;case 1:do Bj=Array(4),Bj[kZ]=rw,rw=Bj;while(SN*=2,sC=gI-SN,Ib=x8+SN,sC>F||V>Ib);break;case 2:do Bj=Array(4),Bj[kZ]=rw,rw=Bj;while(SN*=
2,gI=sC+SN,x8=Ib-SN,F>gI||x8>V);break;case 3:do Bj=Array(4),Bj[kZ]=rw,rw=Bj;while(SN*=2,sC=gI-SN,x8=Ib-SN,sC>F||x8>V)}this._root&&this._root.length&&(this._root=rw)}else return this;this._x0=sC;this._y0=x8;this._x1=gI;this._y1=Ib;return this};
zD.data=function(){var F=[];this.visit(function(V){if(!V.length){do F.push(V.data);while(V=V.next)}});
return F};
zD.extent=function(F){return arguments.length?this.cover(+F[0][0],+F[0][1]).cover(+F[1][0],+F[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
zD.find=function(F,V,sC){var x8=this._x0,gI=this._y0,Ib,SN,rw,kZ,Bj=this._x1,gw=this._y1,op=[],KL=this._root,Gw;KL&&op.push(new WM(KL,x8,gI,Bj,gw));sC==null?sC=Infinity:(x8=F-sC,gI=V-sC,Bj=F+sC,gw=V+sC,sC*=sC);for(;Gw=op.pop();)if(!(!(KL=Gw.node)||(Ib=Gw.x0)>Bj||(SN=Gw.y0)>gw||(rw=Gw.x1)<x8||(kZ=Gw.y1)<gI))if(KL.length){Gw=(Ib+rw)/2;var wU=(SN+kZ)/2;op.push(new WM(KL[3],Gw,wU,rw,kZ),new WM(KL[2],Ib,wU,Gw,kZ),new WM(KL[1],Gw,SN,rw,wU),new WM(KL[0],Ib,SN,Gw,wU));if(KL=(V>=wU)<<1|F>=Gw)Gw=op[op.length-
1],op[op.length-1]=op[op.length-1-KL],op[op.length-1-KL]=Gw}else if(Gw=F-+this._x.call(null,KL.data),wU=V-+this._y.call(null,KL.data),Gw=Gw*Gw+wU*wU,Gw<sC){var cX=Math.sqrt(sC=Gw);x8=F-cX;gI=V-cX;Bj=F+cX;gw=V+cX;cX=KL.data}return cX};
zD.remove=function(F){if(isNaN(kZ=+this._x.call(null,F))||isNaN(Bj=+this._y.call(null,F)))return this;var V,sC=this._root,x8,gI=this._x0,Ib=this._y0,SN=this._x1,rw=this._y1,kZ,Bj,gw,op,KL,Gw,wU;if(!sC)return this;if(sC.length)for(;;){(KL=kZ>=(gw=(gI+SN)/2))?gI=gw:SN=gw;(Gw=Bj>=(op=(Ib+rw)/2))?Ib=op:rw=op;if(!(V=sC,sC=sC[wU=Gw<<1|KL]))return this;if(!sC.length)break;if(V[wU+1&3]||V[wU+2&3]||V[wU+3&3]){var cX=V;var Ov=wU}}for(;sC.data!==F;)if(!(x8=sC,sC=sC.next))return this;(F=sC.next)&&delete sC.next;
if(x8)return F?x8.next=F:delete x8.next,this;if(!V)return this._root=F,this;F?V[wU]=F:delete V[wU];(sC=V[0]||V[1]||V[2]||V[3])&&sC===(V[3]||V[2]||V[1]||V[0])&&!sC.length&&(cX?cX[Ov]=sC:this._root=sC);return this};
zD.removeAll=function(F){for(var V=0,sC=F.length;V<sC;++V)this.remove(F[V]);return this};
zD.root=function(){return this._root};
zD.size=function(){var F=0;this.visit(function(V){if(!V.length){do++F;while(V=V.next)}});
return F};
zD.visit=function(F){var V=[],sC,x8=this._root,gI,Ib,SN,rw,kZ;for(x8&&V.push(new WM(x8,this._x0,this._y0,this._x1,this._y1));sC=V.pop();)if(!F(x8=sC.node,Ib=sC.x0,SN=sC.y0,rw=sC.x1,kZ=sC.y1)&&x8.length){sC=(Ib+rw)/2;var Bj=(SN+kZ)/2;(gI=x8[3])&&V.push(new WM(gI,sC,Bj,rw,kZ));(gI=x8[2])&&V.push(new WM(gI,Ib,Bj,sC,kZ));(gI=x8[1])&&V.push(new WM(gI,sC,SN,rw,Bj));(gI=x8[0])&&V.push(new WM(gI,Ib,SN,sC,Bj))}};
zD.visitAfter=function(F){var V=[],sC=[],x8;for(this._root&&V.push(new WM(this._root,this._x0,this._y0,this._x1,this._y1));x8=V.pop();){var gI=x8.node;if(gI.length){var Ib,SN=x8.x0,rw=x8.y0,kZ=x8.x1,Bj=x8.y1,gw=(SN+kZ)/2,op=(rw+Bj)/2;(Ib=gI[0])&&V.push(new WM(Ib,SN,rw,gw,op));(Ib=gI[1])&&V.push(new WM(Ib,gw,rw,kZ,op));(Ib=gI[2])&&V.push(new WM(Ib,SN,op,gw,Bj));(Ib=gI[3])&&V.push(new WM(Ib,gw,op,kZ,Bj))}sC.push(x8)}for(;x8=sC.pop();)F(x8.node,x8.x0,x8.y0,x8.x1,x8.y1);return this};
zD.x=function(F){return arguments.length?(this._x=F,this):this._x};
zD.y=function(F){return arguments.length?(this._y=F,this):this._y};
var bE3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;kXV.prototype=d6I.prototype;d6I.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 OKN,RQA={"%":function(F,V){return(F*100).toFixed(V)},
b:function(F){return Math.round(F).toString(2)},
c:function(F){return F+""},
d:function(F){return Math.round(F).toString(10)},
e:function(F,V){return F.toExponential(V)},
f:function(F,V){return F.toFixed(V)},
g:function(F,V){return F.toPrecision(V)},
o:function(F){return Math.round(F).toString(8)},
p:function(F,V){return xOk(F*100,V)},
r:xOk,s:function(F,V){var sC=N_X(F,V);if(!sC)return F+"";var x8=sC[0];sC=sC[1];sC=sC-(OKN=Math.max(-8,Math.min(8,Math.floor(sC/3)))*3)+1;var gI=x8.length;return sC===gI?x8:sC>gI?x8+Array(sC-gI+1).join("0"):sC>0?x8.slice(0,sC)+"."+x8.slice(sC):"0."+Array(1-sC).join("0")+N_X(F,Math.max(0,V+sC-1))[0]},
X:function(F){return Math.round(F).toString(16).toUpperCase()},
x:function(F){return Math.round(F).toString(16)}},hQJ="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),VqM;
(function(F){return VqM=LeI(F)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});vZ.prototype={constructor:vZ,reset:function(){this.s=this.t=0},
add:function(F){TvJ($Vm,F,this.t);TvJ(this,$Vm.s,this.s);this.s?this.t+=$Vm.t:this.s=$Vm.t},
valueOf:function(){return this.s}};
var $Vm=new vZ,zb=Math.PI,Lw=zb/2,Mgw=zb/4,EmQ=zb*2,m6C=zb/180,xT=Math.abs,Jzb=Math.atan,vvk=Math.atan2,vl=Math.cos,UH=Math.sin,nJA=Math.sqrt;new vZ;new vZ;new vZ;var g0X=new vZ;(function(F,V,sC,x8){return function(gI){function Ib(Be,P4){F(Be,P4)&&gI.point(Be,P4)}
function SN(Be,P4){KL.point(Be,P4)}
function rw(){bL.point=SN;KL.lineStart()}
function kZ(){bL.point=Ib;KL.lineEnd()}
function Bj(Be,P4){FV.push([Be,P4]);wU.point(Be,P4)}
function gw(){wU.lineStart();FV=[]}
function op(){Bj(FV[0][0],FV[0][1]);wU.lineEnd();var Be=wU.clean(),P4=Gw.result(),sN=P4.length,XZ;FV.pop();Ov.push(FV);FV=null;if(sN)if(Be&1){if(sN=P4[0],(P4=sN.length-1)>0){cX||(gI.polygonStart(),cX=!0);gI.lineStart();for(Be=0;Be<P4;++Be)gI.point((XZ=sN[Be])[0],XZ[1]);gI.lineEnd()}}else sN>1&&Be&2&&P4.push(P4.pop().concat(P4.shift())),ue.push(P4.filter(IAG))}
var KL=V(gI),Gw=ylV(),wU=V(Gw),cX=!1,Ov,ue,FV,bL={point:Ib,lineStart:rw,lineEnd:kZ,polygonStart:function(){bL.point=Bj;bL.lineStart=gw;bL.lineEnd=op;ue=[];Ov=[]},
polygonEnd:function(){bL.point=Ib;bL.lineStart=rw;bL.lineEnd=kZ;var Be=ue,P4=Be.length;var sN=-1;for(var XZ=0,$1,vz;++sN<P4;)XZ+=Be[sN].length;for($1=Array(XZ);--P4>=0;)for(vz=Be[P4],sN=vz.length;--sN>=0;)$1[--XZ]=vz[sN];ue=$1;Be=Ov;P4=x8[0];XZ=x8[1];var im=UH(XZ);sN=[UH(P4),-vl(P4),0];vz=$1=0;g0X.reset();im===1?XZ=Lw+1E-6:im===-1&&(XZ=-Lw-1E-6);im=0;for(var a_=Be.length;im<a_;++im)if(Wu=(ut=Be[im]).length){var ut,Wu,R3=ut[Wu-1],XQ=R3[0],q_=R3[1]/2+Mgw,AMI=UH(q_),nvZ=vl(q_);for(q_=0;q_<Wu;++q_,XQ=
brm,AMI=ZKj,nvZ=ss,R3=HPf){var HPf=ut[q_],brm=HPf[0];ss=HPf[1]/2+Mgw;var ZKj=UH(ss),ss=vl(ss),f7=brm-XQ,LgC=f7>=0?1:-1,v0Q=LgC*f7,s0I=v0Q>zb;AMI*=ZKj;g0X.add(vvk(AMI*LgC*UH(v0Q),nvZ*ss+AMI*vl(v0Q)));$1+=s0I?f7+LgC*EmQ:f7;s0I^XQ>=P4^brm>=P4&&(R3=Jo1(mON(R3),mON(HPf)),gvw(R3),XQ=Jo1(sN,R3),gvw(XQ),XQ=(s0I^f7>=0?-1:1)*MMI(XQ[2]),XZ>XQ||XZ===XQ&&(R3[0]||R3[1]))&&(vz+=s0I^f7>=0?1:-1)}}Be=($1<-1E-6||$1<1E-6&&g0X<-1E-6)^vz&1;ue.length?(cX||(gI.polygonStart(),cX=!0),jBV(ue,Yb1,Be,sC,gI)):Be&&(cX||(gI.polygonStart(),
cX=!0),gI.lineStart(),sC(null,null,1,gI),gI.lineEnd());cX&&(gI.polygonEnd(),cX=!1);ue=Ov=null},
sphere:function(){gI.polygonStart();gI.lineStart();sC(null,null,1,gI);gI.lineEnd();gI.polygonEnd()}};
return bL}})(function(){return!0},function(F){var V=NaN,sC=NaN,x8=NaN,gI;
return{lineStart:function(){F.lineStart();gI=1},
point:function(Ib,SN){var rw=Ib>0?zb:-zb,kZ=xT(Ib-V);if(xT(kZ-zb)<1E-6)F.point(V,sC=(sC+SN)/2>0?Lw:-Lw),F.point(x8,sC),F.lineEnd(),F.lineStart(),F.point(rw,sC),F.point(Ib,sC),gI=0;else if(x8!==rw&&kZ>=zb){xT(V-x8)<1E-6&&(V-=x8*1E-6);xT(Ib-rw)<1E-6&&(Ib-=rw*1E-6);kZ=V;var Bj=sC,gw=Ib,op,KL,Gw=UH(kZ-gw);sC=xT(Gw)>1E-6?Jzb((UH(Bj)*(KL=vl(SN))*UH(gw)-UH(SN)*(op=vl(Bj))*UH(kZ))/(op*KL*Gw)):(Bj+SN)/2;F.point(x8,sC);F.lineEnd();F.lineStart();F.point(rw,sC);gI=0}F.point(V=Ib,sC=SN);x8=rw},
lineEnd:function(){F.lineEnd();V=sC=NaN},
clean:function(){return 2-gI}}},function(F,V,sC,x8){F==null?(sC*=Lw,x8.point(-zb,sC),x8.point(0,sC),x8.point(zb,sC),x8.point(zb,0),x8.point(zb,-sC),x8.point(0,-sC),x8.point(-zb,-sC),x8.point(-zb,0),x8.point(-zb,sC)):xT(F[0]-V[0])>1E-6?(F=F[0]<V[0]?zb:-zb,sC=sC*F/2,x8.point(-F,sC),x8.point(0,sC),x8.point(F,sC)):x8.point(V[0],V[1])},[-zb,
-Lw]);new vZ;new vZ;new vZ;new vZ;Wg8.prototype={constructor:Wg8,point:function(F,V){this.stream.point(F,V)},
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()}};
vl(30*m6C);(function(F){return function(V){var sC=new Wg8,x8;for(x8 in F)sC[x8]=F[x8];sC.stream=V;return sC}})({point:function(F,V){this.stream.point(F*m6C,V*m6C)}});
LEw(function(F){return nJA(2/(1+F))}).invert=na(function(F){return 2*MMI(F/2)});
LEw(function(F){return(F=F>1?0:F<-1?zb:Math.acos(F))&&F/UH(F)}).invert=na(function(F){return F});
nJA(3);na(Jzb);na(MMI);na(function(F){return 2*Jzb(F)});
ZF.prototype=yoN.prototype={constructor:ZF,count:function(){return this.eachAfter(PTQ)},
each:function(F){var V,sC=[this],x8;do{var gI=sC.reverse();for(sC=[];V=gI.pop();)if(F(V),V=V.children){var Ib=0;for(x8=V.length;Ib<x8;++Ib)sC.push(V[Ib])}}while(sC.length);return this},
eachAfter:function(F){for(var V,sC=[this],x8=[],gI,Ib;V=sC.pop();)if(x8.push(V),V=V.children)for(gI=0,Ib=V.length;gI<Ib;++gI)sC.push(V[gI]);for(;V=x8.pop();)F(V);return this},
eachBefore:function(F){for(var V,sC=[this],x8;V=sC.pop();)if(F(V),V=V.children)for(x8=V.length-1;x8>=0;--x8)sC.push(V[x8]);return this},
sum:function(F){return this.eachAfter(function(V){for(var sC=+F(V.data)||0,x8=V.children,gI=x8&&x8.length;--gI>=0;)sC+=x8[gI].value;V.value=sC})},
sort:function(F){return this.eachBefore(function(V){V.children&&V.children.sort(F)})},
path:function(F){var V=this;var sC=V;var x8=F;if(sC!==x8){var gI=sC.ancestors(),Ib=x8.ancestors(),SN=null;sC=gI.pop();for(x8=Ib.pop();sC===x8;)SN=sC,sC=gI.pop(),x8=Ib.pop();sC=SN}for(x8=[V];V!==sC;)V=V.parent,x8.push(V);for(V=x8.length;F!==sC;)x8.splice(V,0,F),F=F.parent;return x8},
ancestors:function(){for(var F=this,V=[F];F=F.parent;)V.push(F);return V},
links:function(){var F=this,V=[];F.each(function(sC){sC!==F&&V.push({source:sC.parent,target:sC})});
return V},
copy:function(){return yoN(this).eachBefore(XbG)}};
(function(F,V){this._=F;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=V}).prototype=Object.create(ZF.prototype);
var zbI=new Date,qcN=new Date,fYA=SL(function(){},function(F,V){F.setTime(+F+V)},function(F,V){return V-F});
fYA.every=function(F){F=Math.floor(F);return isFinite(F)&&F>0?F>1?SL(function(V){V.setTime(Math.floor(V/F)*F)},function(V,sC){V.setTime(+V+sC*F)},function(V,sC){return(sC-V)/F}):fYA:null};
SL(function(F){F.setTime(Math.floor(F/1E3)*1E3)},function(F,V){F.setTime(+F+V*1E3)},function(F,V){return(V-F)/1E3},function(F){return F.getUTCSeconds()});
SL(function(F){F.setTime(Math.floor(F/6E4)*6E4)},function(F,V){F.setTime(+F+V*6E4)},function(F,V){return(V-F)/6E4},function(F){return F.getMinutes()});
SL(function(F){var V=F.getTimezoneOffset()*6E4%36E5;V<0&&(V+=36E5);F.setTime(Math.floor((+F-V)/36E5)*36E5+V)},function(F,V){F.setTime(+F+V*36E5)},function(F,V){return(V-F)/36E5},function(F){return F.getHours()});
var Yek=SL(function(F){F.setHours(0,0,0,0)},function(F,V){F.setDate(F.getDate()+V)},function(F,V){return(V-F-(V.getTimezoneOffset()-F.getTimezoneOffset())*6E4)/864E5},function(F){return F.getDate()-1}),XHB=vb(0),uml=vb(1);
vb(2);vb(3);var BqI=vb(4);vb(5);vb(6);SL(function(F){F.setDate(1);F.setHours(0,0,0,0)},function(F,V){F.setMonth(F.getMonth()+V)},function(F,V){return V.getMonth()-F.getMonth()+(V.getFullYear()-F.getFullYear())*12},function(F){return F.getMonth()});
var Nh=SL(function(F){F.setMonth(0,1);F.setHours(0,0,0,0)},function(F,V){F.setFullYear(F.getFullYear()+V)},function(F,V){return V.getFullYear()-F.getFullYear()},function(F){return F.getFullYear()});
Nh.every=function(F){return isFinite(F=Math.floor(F))&&F>0?SL(function(V){V.setFullYear(Math.floor(V.getFullYear()/F)*F);V.setMonth(0,1);V.setHours(0,0,0,0)},function(V,sC){V.setFullYear(V.getFullYear()+sC*F)}):null};
SL(function(F){F.setUTCSeconds(0,0)},function(F,V){F.setTime(+F+V*6E4)},function(F,V){return(V-F)/6E4},function(F){return F.getUTCMinutes()});
SL(function(F){F.setUTCMinutes(0,0,0)},function(F,V){F.setTime(+F+V*36E5)},function(F,V){return(V-F)/36E5},function(F){return F.getUTCHours()});
var IYk=SL(function(F){F.setUTCHours(0,0,0,0)},function(F,V){F.setUTCDate(F.getUTCDate()+V)},function(F,V){return(V-F)/864E5},function(F){return F.getUTCDate()-1}),DaL=y3(0),rzC=y3(1);
y3(2);y3(3);var ebI=y3(4);y3(5);y3(6);SL(function(F){F.setUTCDate(1);F.setUTCHours(0,0,0,0)},function(F,V){F.setUTCMonth(F.getUTCMonth()+V)},function(F,V){return V.getUTCMonth()-F.getUTCMonth()+(V.getUTCFullYear()-F.getUTCFullYear())*12},function(F){return F.getUTCMonth()});
var Mh=SL(function(F){F.setUTCMonth(0,1);F.setUTCHours(0,0,0,0)},function(F,V){F.setUTCFullYear(F.getUTCFullYear()+V)},function(F,V){return V.getUTCFullYear()-F.getUTCFullYear()},function(F){return F.getUTCFullYear()});
Mh.every=function(F){return isFinite(F=Math.floor(F))&&F>0?SL(function(V){V.setUTCFullYear(Math.floor(V.getUTCFullYear()/F)*F);V.setUTCMonth(0,1);V.setUTCHours(0,0,0,0)},function(V,sC){V.setUTCFullYear(V.getUTCFullYear()+sC*F)}):null};
var jWG={"-":"",_:" ",0:"0"},XV=/^\s*\d+/,Fk_=/^%/,Ghi=/[\\^$*+?|[\]().{}]/g,kbl;(function(F){kbl=Sb3(F);sL0=kbl.utcFormat;ksQ=kbl.utcParse;return kbl})({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||sL0("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||ksQ("%Y-%m-%dT%H:%M:%S.%LZ");bf("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
bf("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");bf("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");bf("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");bf("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");bf("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");bf("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
bf("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");bf("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");bf("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");bf("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");bf("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var UaG=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(bf);BI(UaG);var lT_=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(bf);BI(lT_);var tqL=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(bf);BI(tqL);var NmL=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(bf);
BI(NmL);var MqM=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(bf);BI(MqM);var nmG=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(bf);BI(nmG);var ZsL=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(bf);BI(ZsL);var fTL=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(bf);BI(fTL);var wH_=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(bf);BI(wH_);var omM=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(bf);BI(omM);var $aL=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(bf);BI($aL);var Ah_=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(bf);BI(Ah_);var HbB=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(bf);BI(HbB);var se3=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(bf);BI(se3);var k8i=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(bf);BI(k8i);var d8V=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(bf);BI(d8V);var WP_=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(bf);BI(WP_);var z9G=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(bf);BI(z9G);var qqR=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(bf);BI(qqR);var rhM=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(bf);BI(rhM);var uhG=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(bf);BI(uhG);var BrG=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(bf);BI(BrG);var e9L=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(bf);BI(e9L);var x8_=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(bf);BI(x8_);var ibI=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(bf);BI(ibI);var h91=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(bf);BI(h91);var Ob3=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(bf);BI(Ob3);RbI(jA(300,.5,0),jA(-240,.5,1));RbI(jA(-100,.75,.35),jA(80,1.5,.8));RbI(jA(260,.75,.35),jA(80,1.5,.8));jA();iQ();wqI(bf("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
wqI(bf("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
wqI(bf("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
wqI(bf("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
coj.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(F,V){F=+F;V=+V;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(F,V):this._context.moveTo(F,V);break;case 1:this._point=2;default:this._context.lineTo(F,V)}}};
(function(F){function V(sC){return new pAN(F(sC))}
V._curve=F;return V})(function(F){return new coj(F)});
pAN.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(F,V){this._curve.point(V*Math.sin(F),V*-Math.cos(F))}};
irN.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:x6C(this,this._t0,VgQ(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(F,V){var sC=NaN;F=+F;V=+V;if(F!==this._x1||V!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(F,V):this._context.moveTo(F,V);break;case 1:this._point=2;break;case 2:this._point=3;x6C(this,VgQ(this,sC=QWw(this,F,V)),sC);break;default:x6C(this,this._t0,sC=QWw(this,F,V))}this._x0=this._x1;this._x1=F;this._y0=this._y1;this._y1=V;this._t0=sC}}};
(function(F){this._context=new Evp(F)}.prototype=Object.create(irN.prototype)).point=function(F,V){irN.prototype.point.call(this,V,F)};
Evp.prototype={moveTo:function(F,V){this._context.moveTo(V,F)},
closePath:function(){this._context.closePath()},
lineTo:function(F,V){this._context.lineTo(V,F)},
bezierCurveTo:function(F,V,sC,x8,gI,Ib){this._context.bezierCurveTo(V,F,x8,sC,Ib,gI)}};
$R.prototype={constructor:$R,scale:function(F){return F===1?this:new $R(this.k*F,this.x,this.y)},
translate:function(F,V){return F===0&V===0?this:new $R(this.k,this.x+this.k*F,this.y+this.k*V)},
apply:function(F){return[F[0]*this.k+this.x,F[1]*this.k+this.y]},
invert:function(F){return[(F[0]-this.x)/this.k,(F[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new $R(1,0,0);HBC=Qi;gy.svg=gy.svg;gy.xhtml=gy.xhtml;gy.xlink=gy.xlink;gy.xml=gy.xml;gy.xmlns=gy.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 deJ="hammer_"+(Math.random()*1E6|0),WWw=function(){var A=document||document;if(!A[deJ]){var H=function(){(function(k,d,W,z){function u(Y8,cV,ZQ){return setTimeout(J(Y8,ZQ),cV)}
function B(Y8,cV,ZQ){return Array.isArray(Y8)?(h(Y8,ZQ[cV],ZQ),!0):!1}
function h(Y8,cV,ZQ){var yi;if(Y8)if(Y8.forEach)Y8.forEach(cV,ZQ);else if(Y8.length!==z){var LL=0;for(yi=Y8.length;LL<yi;LL++)cV.call(ZQ,Y8[LL],LL,Y8)}else for(LL in Y8)Y8.hasOwnProperty(LL)&&cV.call(ZQ,Y8[LL],LL,Y8)}
function O(Y8,cV,ZQ){for(var yi=Object.keys(cV),LL=0,Yp=yi.length;LL<Yp;LL++)if(!ZQ||ZQ&&Y8[yi[LL]]===z)Y8[yi[LL]]=cV[yi[LL]];return Y8}
function T(Y8,cV){return O(Y8,cV,!0)}
function m(Y8,cV,ZQ){cV=cV.prototype;var yi=Y8.prototype=Object.create(cV);yi.constructor=Y8;yi._super=cV;ZQ&&O(yi,ZQ)}
function J(Y8,cV){return function(){return Y8.apply(cV,arguments)}}
function g(Y8,cV){return typeof Y8=="function"?Y8.apply(cV?cV[0]||z:z,cV):Y8}
function v(Y8,cV,ZQ){h(X(cV),function(yi){Y8.addEventListener(yi,ZQ,!1)})}
function y(Y8,cV,ZQ){h(X(cV),function(yi){Y8.removeEventListener(yi,ZQ,!1)})}
function X(Y8){return Y8.trim().split(/\s+/g)}
function D(Y8,cV,ZQ){if(Y8.indexOf&&!ZQ)return Y8.indexOf(cV);for(var yi=0,LL=Y8.length;yi<LL;yi++)if(ZQ&&Y8[yi][ZQ]==cV||!ZQ&&Y8[yi]===cV)return yi;return-1}
function K(Y8,cV,ZQ){for(var yi=[],LL=[],Yp=0,PR=Y8.length;Yp<PR;Yp++){var Ip=cV?Y8[Yp][cV]:Y8[Yp];D(LL,Ip)<0&&yi.push(Y8[Yp]);LL[Yp]=Ip}ZQ&&(yi=cV?yi.sort(function(jA,V_){return jA[cV]>V_[cV]}):yi.sort());
return yi}
function N(Y8,cV){for(var ZQ,yi=cV[0].toUpperCase()+cV.slice(1),LL=0,Yp=x1.length;LL<Yp;LL++)if(ZQ=(ZQ=x1[LL])?ZQ+yi:cV,ZQ in Y8)return ZQ;return z}
function U(Y8,cV){var ZQ=this;this.manager=Y8;this.callback=cV;this.element=Y8.element;this.target=Y8.options.inputTarget;this.domHandler=function(yi){g(Y8.options.enable,[Y8])&&ZQ.handler(yi)};
this.evEl&&v(this.element,this.evEl,this.domHandler);this.evTarget&&v(this.target,this.evTarget,this.domHandler);this.evWin&&v(k,this.evWin,this.domHandler)}
function p(Y8){var cV;jI?cV=Cl:WX?cV=pl:Qi?cV=UC:cV=mr;return new cV(Y8,M)}
function M(Y8,cV,ZQ){var yi=ZQ.pointers.length,LL=ZQ.changedPointers.length,Yp=cV&1&&yi-LL===0;ZQ.isFirst=!!Yp;ZQ.isFinal=!!(cV&12&&yi-LL===0);Yp&&(Y8.session={});ZQ.eventType=cV;cV=Y8.session;yi=ZQ.pointers;LL=yi.length;cV.firstInput||(cV.firstInput=Z(ZQ));LL>1&&!cV.firstMultiple?cV.firstMultiple=Z(ZQ):LL===1&&(cV.firstMultiple=!1);Yp=cV.firstInput;var PR=(LL=cV.firstMultiple)?LL.center:Yp.center,Ip=ZQ.center=WV(yi);ZQ.timeStamp=OB();ZQ.deltaTime=ZQ.timeStamp-Yp.timeStamp;ZQ.angle=eN(PR,Ip);ZQ.distance=
qv(PR,Ip);Yp=ZQ.center;PR=cV.offsetDelta||{};Ip=cV.prevDelta||{};var jA=cV.prevInput||{};if(ZQ.eventType===1||jA.eventType===4)Ip=cV.prevDelta={x:jA.deltaX||0,y:jA.deltaY||0},PR=cV.offsetDelta={x:Yp.x,y:Yp.y};ZQ.deltaX=Ip.x+(Yp.x-PR.x);ZQ.deltaY=Ip.y+(Yp.y-PR.y);ZQ.offsetDirection=hA(ZQ.deltaX,ZQ.deltaY);LL?(Yp=LL.pointers,Yp=qv(yi[0],yi[1],iQ)/qv(Yp[0],Yp[1],iQ)):Yp=1;ZQ.scale=Yp;LL?(LL=LL.pointers,yi=eN(yi[1],yi[0],iQ)-eN(LL[1],LL[0],iQ)):yi=0;ZQ.rotation=yi;PR=cV.lastInterval||ZQ;yi=ZQ.timeStamp-
PR.timeStamp;ZQ.eventType!=8&&(yi>25||PR.velocity===z)?(Yp=PR.deltaX-ZQ.deltaX,PR=PR.deltaY-ZQ.deltaY,Ip=Yp/yi||0,jA=PR/yi||0,yi=Ip,LL=jA,Ip=uJ(Ip)>uJ(jA)?Ip:jA,Yp=hA(Yp,PR),cV.lastInterval=ZQ):(Ip=PR.velocity,yi=PR.velocityX,LL=PR.velocityY,Yp=PR.direction);ZQ.velocity=Ip;ZQ.velocityX=yi;ZQ.velocityY=LL;ZQ.direction=Yp;cV=Y8.element;a:{for(yi=ZQ.srcEvent.target;yi;){if(yi==cV){yi=!0;break a}yi=yi.parentNode}yi=!1}yi&&(cV=ZQ.srcEvent.target);ZQ.target=cV;Y8.emit("hammer.input",ZQ);Y8.recognize(ZQ);
Y8.session.prevInput=ZQ}
function Z(Y8){for(var cV=[],ZQ=0;ZQ<Y8.pointers.length;ZQ++)cV[ZQ]={clientX:Ni(Y8.pointers[ZQ].clientX),clientY:Ni(Y8.pointers[ZQ].clientY)};return{timeStamp:OB(),pointers:cV,center:WV(cV),deltaX:Y8.deltaX,deltaY:Y8.deltaY}}
function WV(Y8){var cV=Y8.length;if(cV===1)return{x:Ni(Y8[0].clientX),y:Ni(Y8[0].clientY)};for(var ZQ=0,yi=0,LL=0;LL<cV;LL++)ZQ+=Y8[LL].clientX,yi+=Y8[LL].clientY;return{x:Ni(ZQ/cV),y:Ni(yi/cV)}}
function hA(Y8,cV){return Y8===cV?1:uJ(Y8)>=uJ(cV)?Y8>0?2:4:cV>0?8:16}
function qv(Y8,cV,ZQ){ZQ||(ZQ=Vi);var yi=cV[ZQ[0]]-Y8[ZQ[0]];Y8=cV[ZQ[1]]-Y8[ZQ[1]];return Math.sqrt(yi*yi+Y8*Y8)}
function eN(Y8,cV,ZQ){ZQ||(ZQ=Vi);return Math.atan2(cV[ZQ[1]]-Y8[ZQ[1]],cV[ZQ[0]]-Y8[ZQ[0]])*180/Math.PI}
function mr(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;U.apply(this,arguments)}
function Cl(){this.evEl=a4;this.evWin=kl;U.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function pl(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};U.apply(this,arguments)}
function UC(){U.apply(this,arguments);var Y8=J(this.handler,this);this.touch=new pl(this.manager,Y8);this.mouse=new mr(this.manager,Y8)}
function hk(Y8,cV){this.manager=Y8;this.set(cV)}
function eA(Y8){if(Y8.indexOf("none")>-1)return"none";var cV=Y8.indexOf("pan-x")>-1,ZQ=Y8.indexOf("pan-y")>-1;return cV&&ZQ?"pan-x pan-y":cV||ZQ?cV?"pan-x":"pan-y":Y8.indexOf("manipulation")>-1?"manipulation":"auto"}
function lI(Y8){this.id=Ow++;this.manager=null;this.options=T(Y8||{},this.defaults);Y8=this.options.enable;this.options.enable=Y8===z?!0:Y8;this.state=1;this.simultaneous={};this.requireFail=[]}
function Rp(Y8){return Y8==16?"down":Y8==8?"up":Y8==2?"left":Y8==4?"right":""}
function vj(Y8,cV){return(cV=cV.manager)?cV.get(Y8):Y8}
function T0(){lI.apply(this,arguments)}
function Y1(){T0.apply(this,arguments);this.pY=this.pX=null}
function ze(){T0.apply(this,arguments)}
function Tf(){lI.apply(this,arguments);this._input=this._timer=null}
function QW(){T0.apply(this,arguments)}
function mG(){T0.apply(this,arguments)}
function nN(){lI.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function G0(Y8,cV){cV=cV||{};var ZQ=cV.recognizers;cV.recognizers=ZQ===z?G0.defaults.preset:ZQ;return new $Z(Y8,cV)}
function $Z(Y8,cV){cV=cV||{};this.options=T(cV,G0.defaults);this.options.inputTarget=this.options.inputTarget||Y8;this.handlers={};this.session={};this.recognizers=[];this.element=Y8;this.input=p(this);this.touchAction=new hk(this,this.options.touchAction);F9(this,!0);h(cV.recognizers,function(ZQ){var yi=this.add(new ZQ[0](ZQ[1]));ZQ[2]&&yi.recognizeWith(ZQ[2]);ZQ[3]&&yi.requireFailure(ZQ[2])},this)}
function F9(Y8,cV){var ZQ=Y8.element;h(Y8.options.cssProps,function(yi,LL){ZQ.style[N(ZQ.style,LL)]=cV?yi:""})}
function ww(Y8,cV){var ZQ=d.createEvent("Event");ZQ.initEvent(Y8,!0,!0);ZQ.gesture=cV;cV.target.dispatchEvent(ZQ)}
var x1=" webkit moz MS ms o".split(" "),lJ=d.createElement("div"),Ni=Math.round,uJ=Math.abs,OB=Date.now,Ow=1,NQ=/mobile|tablet|ip(ad|hone|od)|android/i,Qi="ontouchstart"in k,jI=N(k,"PointerEvent")!==z,WX=Qi&&NQ.test(navigator.userAgent),Vi=["x","y"],iQ=["clientX","clientY"];U.prototype={handler:function(){},
destroy:function(){this.evEl&&y(this.element,this.evEl,this.domHandler);this.evTarget&&y(this.target,this.evTarget,this.domHandler);this.evWin&&y(k,this.evWin,this.domHandler)}};
var o_={mousedown:1,mousemove:2,mouseup:4};m(mr,U,{handler:function(Y8){var cV=o_[Y8.type];cV&1&&Y8.button===0&&(this.pressed=!0);cV&2&&Y8.which!==1&&(cV=4);this.pressed&&this.allow&&(cV&4&&(this.pressed=!1),this.callback(this.manager,cV,{pointers:[Y8],changedPointers:[Y8],pointerType:"mouse",srcEvent:Y8}))}});
var rO={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},O9={2:"touch",3:"pen",4:"mouse",5:"kinect"},a4="pointerdown",kl="pointermove pointerup pointercancel";k.MSPointerEvent&&(a4="MSPointerDown",kl="MSPointerMove MSPointerUp MSPointerCancel");m(Cl,U,{handler:function(Y8){var cV=this.store,ZQ=!1,yi=Y8.type.toLowerCase().replace("ms","");yi=rO[yi];var LL=O9[Y8.pointerType]||Y8.pointerType;yi&1&&(Y8.button===0||LL=="touch")?cV.push(Y8):yi&12&&(ZQ=!0);var Yp=D(cV,Y8.pointerId,"pointerId");
Yp<0||(cV[Yp]=Y8,this.callback(this.manager,yi,{pointers:cV,changedPointers:[Y8],pointerType:LL,srcEvent:Y8}),ZQ&&cV.splice(Yp,1))}});
var E9={touchstart:1,touchmove:2,touchend:4,touchcancel:8};m(pl,U,{handler:function(Y8){var cV=E9[Y8.type];var ZQ=Array.prototype.slice.call(Y8.touches,0);var yi=this.targetIds;if(cV&3&&ZQ.length===1)yi[ZQ[0].identifier]=!0,yi=[ZQ,ZQ];else{var LL,Yp=Array.prototype.slice.call(Y8.targetTouches,0),PR=Array.prototype.slice.call(Y8.changedTouches,0),Ip=[];if(cV===1)for(ZQ=0,LL=Yp.length;ZQ<LL;ZQ++)yi[Yp[ZQ].identifier]=!0;ZQ=0;for(LL=PR.length;ZQ<LL;ZQ++)yi[PR[ZQ].identifier]&&Ip.push(PR[ZQ]),cV&12&&
delete yi[PR[ZQ].identifier];yi=Ip.length?[K(Yp.concat(Ip),"identifier",!0),Ip]:void 0}yi&&this.callback(this.manager,cV,{pointers:yi[0],changedPointers:yi[1],pointerType:"touch",srcEvent:Y8})}});
m(UC,U,{handler:function(Y8,cV,ZQ){var yi=ZQ.pointerType=="mouse";if(ZQ.pointerType=="touch")this.mouse.allow=!1;else if(yi&&!this.mouse.allow)return;cV&12&&(this.mouse.allow=!0);this.callback(Y8,cV,ZQ)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var gU=N(lJ.style,"touchAction"),gY=gU!==z;hk.prototype={set:function(Y8){Y8=="compute"&&(Y8=this.compute());gY&&(this.manager.element.style[gU]=Y8);this.actions=Y8.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Y8=[];h(this.manager.recognizers,function(cV){g(cV.options.enable,[cV])&&(Y8=Y8.concat(cV.getTouchAction()))});
return eA(Y8.join(" "))},
preventDefaults:function(Y8){if(!gY){var cV=Y8.srcEvent;Y8=Y8.offsetDirection;if(this.manager.session.prevented)cV.preventDefault();else{var ZQ=this.actions,yi=ZQ.indexOf("none")>-1,LL=ZQ.indexOf("pan-y")>-1;ZQ=ZQ.indexOf("pan-x")>-1;if(yi||LL&&ZQ||LL&&Y8&6||ZQ&&Y8&24)return this.preventSrc(cV)}}},
preventSrc:function(Y8){this.manager.session.prevented=!0;Y8.preventDefault()}};
lI.prototype={defaults:{},set:function(Y8){O(this.options,Y8);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Y8){if(B(Y8,"recognizeWith",this))return this;var cV=this.simultaneous;Y8=vj(Y8,this);cV[Y8.id]||(cV[Y8.id]=Y8,Y8.recognizeWith(this));return this},
dropRecognizeWith:function(Y8){if(B(Y8,"dropRecognizeWith",this))return this;Y8=vj(Y8,this);delete this.simultaneous[Y8.id];return this},
requireFailure:function(Y8){if(B(Y8,"requireFailure",this))return this;var cV=this.requireFail;Y8=vj(Y8,this);D(cV,Y8)===-1&&(cV.push(Y8),Y8.requireFailure(this));return this},
dropRequireFailure:function(Y8){if(B(Y8,"dropRequireFailure",this))return this;Y8=vj(Y8,this);Y8=D(this.requireFail,Y8);Y8>-1&&this.requireFail.splice(Y8,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Y8){return!!this.simultaneous[Y8.id]},
emit:function(Y8){function cV(LL){ZQ.manager.emit(ZQ.options.event+(LL?yi&16?"cancel":yi&8?"end":yi&4?"move":yi&2?"start":"":""),Y8)}
var ZQ=this,yi=this.state;yi<8&&cV(!0);cV();yi>=8&&cV(!0)},
tryEmit:function(Y8){if(this.canEmit())return this.emit(Y8);this.state=32},
canEmit:function(){for(var Y8=0;Y8<this.requireFail.length;Y8++)if(!(this.requireFail[Y8].state&33))return!1;return!0},
recognize:function(Y8){Y8=O({},Y8);g(this.options.enable,[this,Y8])?(this.state&56&&(this.state=1),this.state=this.process(Y8),this.state&30&&this.tryEmit(Y8)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
m(T0,lI,{defaults:{pointers:1},attrTest:function(Y8){var cV=this.options.pointers;return cV===0||Y8.pointers.length===cV},
process:function(Y8){var cV=this.state,ZQ=Y8.eventType,yi=cV&6;Y8=this.attrTest(Y8);return yi&&(ZQ&8||!Y8)?cV|16:yi||Y8?ZQ&4?cV|8:cV&2?cV|4:2:32}});
m(Y1,T0,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Y8=this.options.direction;if(Y8===30)return["none"];var cV=[];Y8&6&&cV.push("pan-y");Y8&24&&cV.push("pan-x");return cV},
directionTest:function(Y8){var cV=this.options,ZQ=!0,yi=Y8.distance,LL=Y8.direction,Yp=Y8.deltaX,PR=Y8.deltaY;LL&cV.direction||(cV.direction&6?(LL=Yp===0?1:Yp<0?2:4,ZQ=Yp!=this.pX,yi=Math.abs(Y8.deltaX)):(LL=PR===0?1:PR<0?8:16,ZQ=PR!=this.pY,yi=Math.abs(Y8.deltaY)));Y8.direction=LL;return ZQ&&yi>cV.threshold&&LL&cV.direction},
attrTest:function(Y8){return T0.prototype.attrTest.call(this,Y8)&&(this.state&2||!(this.state&2)&&this.directionTest(Y8))},
emit:function(Y8){this.pX=Y8.deltaX;this.pY=Y8.deltaY;var cV=Rp(Y8.direction);cV&&this.manager.emit(this.options.event+cV,Y8);this._super.emit.call(this,Y8)}});
m(ze,T0,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Y8){return this._super.attrTest.call(this,Y8)&&(Math.abs(Y8.scale-1)>this.options.threshold||this.state&2)},
emit:function(Y8){this._super.emit.call(this,Y8);Y8.scale!==1&&this.manager.emit(this.options.event+(Y8.scale<1?"in":"out"),Y8)}});
m(Tf,lI,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Y8){var cV=this.options,ZQ=Y8.pointers.length===cV.pointers,yi=Y8.distance<cV.threshold,LL=Y8.deltaTime>cV.time;this._input=Y8;if(!yi||!ZQ||Y8.eventType&12&&!LL)this.reset();else if(Y8.eventType&1)this.reset(),this._timer=u(function(){this.state=8;this.tryEmit()},cV.time,this);
else if(Y8.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Y8){this.state===8&&(Y8&&Y8.eventType&4?this.manager.emit(this.options.event+"up",Y8):(this._input.timeStamp=OB(),this.manager.emit(this.options.event,this._input)))}});
m(QW,T0,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Y8){return this._super.attrTest.call(this,Y8)&&(Math.abs(Y8.rotation)>this.options.threshold||this.state&2)}});
m(mG,T0,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Y1.prototype.getTouchAction.call(this)},
attrTest:function(Y8){var cV=this.options.direction;if(cV&30)var ZQ=Y8.velocity;else cV&6?ZQ=Y8.velocityX:cV&24&&(ZQ=Y8.velocityY);return this._super.attrTest.call(this,Y8)&&cV&Y8.direction&&uJ(ZQ)>this.options.velocity&&Y8.eventType&4},
emit:function(Y8){var cV=Rp(Y8.direction);cV&&this.manager.emit(this.options.event+cV,Y8);this.manager.emit(this.options.event,Y8)}});
m(nN,lI,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Y8){var cV=this.options,ZQ=Y8.pointers.length===cV.pointers,yi=Y8.distance<cV.threshold,LL=Y8.deltaTime<cV.time;this.reset();if(Y8.eventType&1&&this.count===0)return this.failTimeout();if(yi&&LL&&ZQ){if(Y8.eventType!=4)return this.failTimeout();ZQ=this.pTime?Y8.timeStamp-this.pTime<cV.interval:!0;yi=!this.pCenter||qv(this.pCenter,Y8.center)<cV.posThreshold;this.pTime=Y8.timeStamp;this.pCenter=Y8.center;yi&&ZQ?this.count+=1:this.count=1;this._input=Y8;if(this.count%cV.taps===0)return this.hasRequireFailures()?
(this._timer=u(function(){this.state=8;this.tryEmit()},cV.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))}});
G0.VERSION="2.0.2";G0.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[QW,{enable:!1}],[ze,{enable:!1},["rotate"]],[mG,{direction:6}],[Y1,{direction:6},["swipe"]],[nN],[nN,{event:"doubletap",taps:2},["tap"]],[Tf]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};$Z.prototype={set:function(Y8){O(this.options,Y8);return this},
stop:function(Y8){this.session.stopped=Y8?2:1},
recognize:function(Y8){var cV=this.session;if(!cV.stopped){this.touchAction.preventDefaults(Y8);var ZQ=this.recognizers,yi=cV.curRecognizer;if(!yi||yi&&yi.state&8)yi=cV.curRecognizer=null;for(var LL=0,Yp=ZQ.length;LL<Yp;LL++){var PR=ZQ[LL];cV.stopped===2||yi&&PR!=yi&&!PR.canRecognizeWith(yi)?PR.reset():PR.recognize(Y8);!yi&&PR.state&14&&(yi=cV.curRecognizer=PR)}}},
get:function(Y8){if(Y8 instanceof lI)return Y8;for(var cV=this.recognizers,ZQ=0;ZQ<cV.length;ZQ++)if(cV[ZQ].options.event==Y8)return cV[ZQ];return null},
add:function(Y8){if(B(Y8,"add",this))return this;var cV=this.get(Y8.options.event);cV&&this.remove(cV);this.recognizers.push(Y8);Y8.manager=this;this.touchAction.update();return Y8},
remove:function(Y8){if(B(Y8,"remove",this))return this;var cV=this.recognizers;Y8=this.get(Y8);cV.splice(D(cV,Y8),1);this.touchAction.update();return this},
on:function(Y8,cV){var ZQ=this.handlers;h(X(Y8),function(yi){ZQ[yi]=ZQ[yi]||[];ZQ[yi].push(cV)});
return this},
off:function(Y8,cV){var ZQ=this.handlers;h(X(Y8),function(yi){cV?ZQ[yi].splice(D(ZQ[yi],cV),1):delete ZQ[yi]});
return this},
emit:function(Y8,cV){this.options.domEvents&&ww(Y8,cV);var ZQ=this.handlers[Y8]&&this.handlers[Y8].slice();if(ZQ&&ZQ.length){cV.type=Y8;cV.preventDefault=function(){cV.srcEvent.preventDefault()};
Y8=0;for(var yi=ZQ.length;Y8<yi;Y8++)ZQ[Y8](cV)}},
destroy:function(){this.element&&F9(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
O(G0,{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:$Z,Input:U,TouchAction:hk,Recognizer:lI,AttrRecognizer:T0,Tap:nN,Pan:Y1,Swipe:mG,Pinch:ze,Rotate:QW,Press:Tf,on:v,off:y,each:h,merge:T,extend:O,inherit:m,bindFn:J,prefixed:N});
k[W]=G0})(window,document,"Hammer");
return window.Hammer}.call({});
H.DOCUMENT=A;A[deJ]=H}return A[deJ]};/*

 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 zeJ=function(A,H){if(A.length!==H.length)return!1;for(var k=0;k<A.length;++k)if(A[k]!==H[k])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var qKw=_.r(["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"]),rdw=qKw.next();!rdw.done;rdw=qKw.next()){var uOZ=rdw.value,BKp=document.createElement("link");BKp.rel="stylesheet";BKp.href=uOZ;document.head.appendChild(BKp)};var Cxm,aOQ,pSr,XSX,KvI,D3Q,Gkv,FvI;Cxm={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};aOQ={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:"*"};pSr={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};XSX=/[a-z0-9*]/;KvI=/U\+/;D3Q=/^arrow/;Gkv=/^space(bar)?/;FvI=/^escape$/;_.fo={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(A,H){this._imperativeKeyBindings[A]=H;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(A,H){H=VPN(H);for(var k=0;k<H.length;++k)if(csI(H[k],A))return!0;return!1},
_collectKeyBindings:function(){var A=this.behaviors.map(function(H){return H.keyBindings});
A.indexOf(this.keyBindings)===-1&&A.push(this.keyBindings);return A},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(k){for(var d in k)this._addKeyBinding(d,k[d])},this);
for(var A in this._imperativeKeyBindings)this._addKeyBinding(A,this._imperativeKeyBindings[A]);for(var H in this._keyBindings)this._keyBindings[H].sort(function(k,d){k=k[0].hasModifiers;return k===d[0].hasModifiers?0:k?-1:1})},
_addKeyBinding:function(A,H){VPN(A).forEach(function(k){this._keyBindings[k.event]=this._keyBindings[k.event]||[];this._keyBindings[k.event].push([k,H])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(A){var H=this._onKeyBindingEvent.bind(this,this._keyBindings[A]);this._boundKeyHandlers.push([this.keyEventTarget,A,H]);this.keyEventTarget.addEventListener(A,H)},this)},
_unlistenKeyEventListeners:function(){for(var A,H,k;this._boundKeyHandlers.length;)A=this._boundKeyHandlers.pop(),H=A[0],k=A[1],A=A[2],H.removeEventListener(k,A)},
_onKeyBindingEvent:function(A,H){this.stopKeyboardEventPropagation&&H.stopPropagation();if(!H.defaultPrevented)for(var k=0;k<A.length;k++){var d=A[k][0],W=A[k][1];if(csI(d,H)&&(this._triggerKeyHandler(d,W,H),H.defaultPrevented))break}},
_triggerKeyHandler:function(A,H,k){var d=Object.create(A);d.keyboardEvent=k;A=new CustomEvent(A.event,{detail:d,cancelable:!0});this[H].call(this,A);A.defaultPrevented&&k.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
*/
_.uy({is:"iron-a11y-keys",_template:null,behaviors:[_.fo],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(A){this.keyEventTarget=A},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(A){this.fire("keys-pressed",A.detail,{})}});_.w1={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(A){this._setFocused(A.type==="focus")},
_disabledChanged:function(A){this.setAttribute("aria-disabled",A?"true":"false");this.style.pointerEvents=A?"none":"";A?(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 oS={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(A){this._detectKeyboardFocus(A);A||this._setPressed(!1)},
_detectKeyboardFocus:function(A){this._setReceivedFocusFromKeyboard(!this.pointerDown&&A)},
_userActivate:function(A){this.active!==A&&(this.active=A,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(A){A=A.detail.keyboardEvent;var H=_.WB(A).localTarget;this.isLightDescendant(H)||(A.preventDefault(),A.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(A){A=_.WB(A.detail.keyboardEvent).localTarget;this.isLightDescendant(A)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(A,H){H&&H!=A&&this.hasAttribute(H)&&this.removeAttribute(H)},
_activeChanged:function(A){this.toggles?this.setAttribute(this.ariaActiveAttribute,A?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},eep=[_.fo,
oS];_.$2={IronButtonState:eep,IronButtonStateImpl:oS};_.Aq={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.HU=function(A){_.HU[" "](A);this.type=A&&A.type||"default";this.key=A&&A.key;A&&"value"in A&&(this.value=A.value)};
_.HU.prototype.byKey=function(A){this.key=A;return this.value};
_.nP.Object.defineProperties(_.HU.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var A=this.type,H=this.key;if(A&&H)return sM[A]&&sM[A][H]},
set:function(A){var H=this.type,k=this.key;H&&k&&(H=sM[H]=sM[H]||{},A==null?delete H[k]:H[k]=A)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var A=sM[this.type];return A?Object.keys(A).map(function(H){return sM[this.type][H]},this):[]}}});
_.HU[" "]=function(){};
var sM={};_.uy({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(A,H,k){A=new _.HU({type:A,key:H});k!==void 0&&k!==A.value?A.value=k:this.value!==A.value&&(this.value=A.value);return A},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(A){A&&(this.value=this)},
byKey:function(A){return(new _.HU({type:this.type,key:A})).value}});var xew;xew=null;_.kt={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){xew=new _.HU({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return xew&&xew.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(A){this.invalid=A===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(A);return!this.invalid},
_getValidity:function(A){return this.hasValidator()?this._validator.validate(A):!0}};var i6A={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"}},hep=[_.Aq,
_.kt,i6A];_.uy({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 _.HU({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(A){return this.name+":"+A},this)},
applyIcon:function(A,H){this.removeIcon(A);if(H=this._cloneIcon(H,this.rtlMirroring&&this._targetIsRTL(A))){var k=_.WB(A.root||A);k.insertBefore(H,k.childNodes[0]);return A._svgIcon=H}return null},
removeIcon:function(A){A._svgIcon&&(_.WB(A.root||A).removeChild(A._svgIcon),A._svgIcon=null)},
_targetIsRTL:function(A){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(A&&A.nodeType!==Node.ELEMENT_NODE&&(A=A.host),this.__targetIsRTL=A&&window.getComputedStyle(A).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 A=Object.create(null);_.WB(this).querySelectorAll("[id]").forEach(function(H){A[H.id]=H});
return A},
_cloneIcon:function(A,H){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[A],this.size,H)},
_prepareSvgClone:function(A,H,k){if(A){A=A.cloneNode(!0);var d=document.createElementNS("http://www.w3.org/2000/svg","svg");H=A.getAttribute("viewBox")||"0 0 "+H+" "+H;var W="pointer-events: none; display: block; width: 100%; height: 100%;";k&&A.hasAttribute("mirror-in-rtl")&&(W+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");d.setAttribute("viewBox",H);d.setAttribute("preserveAspectRatio","xMidYMid meet");d.setAttribute("focusable","false");d.style&&(d.style.cssText=
W);d.appendChild(A).removeAttribute("id");return d}return null}});var O6J=function(A){this.multi=!1;this.selection=[];this.selectCallback=A};
_.q=O6J.prototype;_.q.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.q.clear=function(A){this.selection.slice().forEach(function(H){(!A||A.indexOf(H)<0)&&this.setItemSelected(H,!1)},this)};
_.q.isSelected=function(A){return this.selection.indexOf(A)>=0};
_.q.setItemSelected=function(A,H){if(A!=null&&H!==this.isSelected(A)){if(H)this.selection.push(A);else{var k=this.selection.indexOf(A);k>=0&&this.selection.splice(k,1)}this.selectCallback&&this.selectCallback(A,H)}};
_.q.select=function(A){this.multi?this.toggle(A):this.get()!==A&&(this.setItemSelected(this.get(),!1),this.setItemSelected(A,!0))};
_.q.toggle=function(A){this.setItemSelected(A,!this.isSelected(A))};_.jD={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 O6J(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.WB(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(A){return this.items?this.items.indexOf(A):-1},
select:function(A){this.selected=A},
selectPrevious:function(){var A=this.items.length,H=A-1;this.selected!==void 0&&(H=(Number(this._valueToIndex(this.selected))-1+A)%A);this.selected=this._indexToValue(H)},
selectNext:function(){var A=0;this.selected!==void 0&&(A=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(A)},
selectIndex:function(A){this.select(this._indexToValue(A))},
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(A){this.listen(this,A,"_activateHandler")},
_removeListener:function(A){this.unlisten(this,A,"_activateHandler")},
_activateEventChanged:function(A,H){this._removeListener(H);this._addListener(A)},
_updateItems:function(){var A=_.WB(this).queryDistributedElements(this.selectable||"*");A=Array.prototype.filter.call(A,this._bindFilterItem);this._setItems(A)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var A=this._valueToItem(this.selected);A?this._selection.select(A):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(A){return!this._excludedLocalNames[A.localName]},
_valueToItem:function(A){return A==null?null:this.items[this._valueToIndex(A)]},
_valueToIndex:function(A){if(this.attrForSelected)for(var H=0,k;k=this.items[H];H++){if(this._valueForItem(k)==A)return H}else return Number(A)},
_indexToValue:function(A){if(this.attrForSelected){if(A=this.items[A])return this._valueForItem(A)}else return A},
_valueForItem:function(A){if(!A)return null;if(!this.attrForSelected)return A=this.indexOf(A),A===-1?null:A;var H=A[kY(this.attrForSelected)];return H!=void 0?H:A.getAttribute(this.attrForSelected)},
_applySelection:function(A,H){this.selectedClass&&this.toggleClass(this.selectedClass,H,A);this.selectedAttribute&&this.toggleAttribute.call(A,this.selectedAttribute,H);this._selectionChange();this.fire("iron-"+(H?"select":"deselect"),{item:A})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(A){return _.WB(A).observeNodes(function(H){this._updateItems();this._updateSelected();this.fire("iron-items-changed",H,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(A){A=A.target;for(var H=this.items;A&&A!=this;){var k=H.indexOf(A);if(k>=0){H=this._indexToValue(k);this._itemActivate(H,A);break}A=A.parentNode}},
_itemActivate:function(A,H){this.fire("iron-activate",{selected:A,item:H},{cancelable:!0}).defaultPrevented||this.select(A)}};var ReA={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(A){this.multi?this._toggleSelected(A):this.selected=A},
multiChanged:function(A){this._selection.multi=A;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(A){return this._indexToValue(this.indexOf(A))},this).filter(function(A){return A!=null},this)):_.jD._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(A){A=A||[];A=(this._valuesToItems(A)||[]).filter(function(k){return k!==null&&k!==void 0});
this._selection.clear(A);for(var H=0;H<A.length;H++)this._selection.setItemSelected(A[H],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var A=this._selection.get();this.multi?(this._setSelectedItems(A),this._setSelectedItem(A.length?A[0]:null)):A!==null&&A!==void 0?(this._setSelectedItems([A]),this._setSelectedItem(A)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(A){var H=this.selectedValues.indexOf(A);H<0?this.push("selectedValues",A):this.splice("selectedValues",H,1)},
_valuesToItems:function(A){return A==null?null:A.map(function(H){return this._valueToItem(H)},this)}},TKw=[_.jD,
ReA];var meA;
_.dx={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(A){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var H=this._valueToItem(A);H&&H.hasAttribute("disabled")||(this._setFocusedItem(H),ReA.select.apply(this,arguments))},
_resetTabindices:function(){var A=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(H){H.setAttribute("tabindex",H===A?"0":"-1");H.setAttribute("aria-selected",this._selection.isSelected(H))},this)},
_updateMultiselectable:function(A){A?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(A){if(this._MODIFIER_KEYS.indexOf(A.key)===-1){this.cancelDebouncer("_clearSearchText");var H=this._searchText||"";H+=(A.key&&A.key.length==1?A.key:String.fromCharCode(A.keyCode)).toLocaleLowerCase();A=H.length;for(var k=0,d;d=this.items[k];k++)if(!d.hasAttribute("disabled")){var W=this.attrForItemTitle||"textContent";W=(d[W]||d.getAttribute(W)||"").trim();if(!(W.length<A)&&W.slice(0,A).toLocaleLowerCase()==H){this._setFocusedItem(d);break}}this._searchText=H;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var A=this.items.length,H=Number(this.indexOf(this.focusedItem)),k=1;k<A+1;k++){var d=this.items[(H-k+A)%A];if(!d.hasAttribute("disabled")){var W=_.WB(d).getOwnerRoot()||document;this._setFocusedItem(d);if(_.WB(W).activeElement==d)break}}},
_focusNext:function(){for(var A=this.items.length,H=Number(this.indexOf(this.focusedItem)),k=1;k<A+1;k++){var d=this.items[(H+k)%A];if(!d.hasAttribute("disabled")){var W=_.WB(d).getOwnerRoot()||document;this._setFocusedItem(d);if(_.WB(W).activeElement==d)break}}},
_applySelection:function(A,H){H?A.setAttribute("aria-selected","true"):A.setAttribute("aria-selected","false");_.jD._applySelection.apply(this,arguments)},
_focusedItemChanged:function(A,H){H&&H.setAttribute("tabindex","-1");!A||A.hasAttribute("disabled")||this.disabled||(A.setAttribute("tabindex","0"),A.focus())},
_onIronItemsChanged:function(A){A.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var A=this.getAttribute("tabindex");_.dx._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",A);_.dx._shiftTabPressed=!1},1)},
_onFocus:function(A){!_.dx._shiftTabPressed&&(A=_.WB(A).rootTarget,A===this||typeof A.tabIndex==="undefined"||this.isLightDescendant(A))&&(this._defaultFocusAsync=this.async(function(){var H=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);H?this._setFocusedItem(H):this.items[0]&&this._focusNext()}))},
_onUpKey:function(A){this._focusPrevious();A.detail.keyboardEvent.preventDefault()},
_onDownKey:function(A){this._focusNext();A.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var A=this.focusedItem;A&&A.blur()},
_onKeydown:function(A){this.keyboardEventMatchesKeys(A,"up down esc")||this._focusWithKeyboardEvent(A);A.stopPropagation()},
_activateHandler:function(A){_.jD._activateHandler.call(this,A);A.stopPropagation()},
_disabledChanged:function(A){A?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};meA=[TKw,_.fo,_.dx];_.Jd0={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(A){this.focusedItem&&(this.focusedItem.click(),A.detail.keyboardEvent.preventDefault())},
_onDownKey:function(A){this.focusedItem&&(this.focusedItem.click(),A.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(A){return A.ctrlKey||A.shiftKey||A.altKey||A.metaKey},
_onLeftKey:function(A){this._isSpecialKey(A.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),A.detail.keyboardEvent.preventDefault())},
_onRightKey:function(A){this._isSpecialKey(A.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),A.detail.keyboardEvent.preventDefault())},
_onKeydown:function(A){this.keyboardEventMatchesKeys(A,"up down left right esc")||this._focusWithKeyboardEvent(A)}};
_.gcN=[meA,_.Jd0];var b6j;b6j=new Set;_.WU={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):(b6j.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(A){this.resizerShouldNotify(A)&&this._notifyDescendant(A)},this),this._fireResize())},
assignParentResizable:function(A){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=A)&&A._interestedResizables.indexOf(this)===-1&&(A._interestedResizables.push(this),A._subscribeIronResize(this))},
stopResizeNotificationsFor:function(A){var H=this._interestedResizables.indexOf(A);H>-1&&(this._interestedResizables.splice(H,1),this._unsubscribeIronResize(A))},
_subscribeIronResize:function(A){A.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(A){A.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(A){this._notifyingDescendant?A.stopPropagation():CP||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(A){var H=_.WB(A).rootTarget;H!==this&&(H.assignParentResizable(this),this._notifyDescendant(H),A.stopPropagation())},
_parentResizableChanged:function(A){A&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(A){this.isAttached&&(this._notifyingDescendant=!0,A.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var A=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function k(){document.removeEventListener("readystatechange",k);A()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(H){H!==this&&H._findParent()},this):(b6j.forEach(function(H){H!==this&&H._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?b6j.delete(this):b6j.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
*/
_.LWZ={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(A,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);H&&(A==="document"?this.scrollTarget=this._doc:typeof A==="string"?this.scrollTarget=(H=this.domHost)&&H.$?H.$[A]:_.WB(this.ownerDocument).querySelector("#"+A):this._isValidScrollTarget()&&(this._oldScrollTarget=A,this._toggleScrollListener(this._shouldHaveListener,A)))},
_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(A){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,A):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
A)},set _scrollLeft(A){this.scrollTarget===this._doc?window.scrollTo(A,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=A)},scroll:function(A,H){if(typeof A==="object"){var k=A.left;H=A.top}else k=A;k=k||0;H=H||0;this.scrollTarget===this._doc?window.scrollTo(k,H):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=k,this.scrollTarget.scrollTop=H)},
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(A,H){H=H===this._doc?window:H;A?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),H.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(H.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(A){this._shouldHaveListener=A;this._toggleScrollListener(A,this.scrollTarget)}};_.uy({is:"iron-selector",_template:null,behaviors:[TKw]});var zl={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(A){if(A.timing)for(var H in A.timing)this.animationTiming[H]=A.timing[H];return this.animationTiming},
setPrefixedProperty:function(A,H,k){for(var d={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[H],W,z=0;W=d[z];z++)A.style[W]=k;A.style[H]=k},
complete:function(){}};_.uy({is:"fade-in-animation",_template:null,behaviors:[zl],configure:function(A){return this._effect=new KeyframeEffect(A.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(A))}});_.uy({is:"fade-out-animation",_template:null,behaviors:[zl],configure:function(A){return this._effect=new KeyframeEffect(A.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(A))}});var vcG=[{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(A,H){for(var k in H)A[k]=H[k]},
_cloneConfig:function(A){var H={isClone:!0};this._copyProperties(H,A);return H},
_getAnimationConfigRecursive:function(A,H,k){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 d=A?this.animationConfig[A]:this.animationConfig;Array.isArray(d)||(d=[d]);if(d)for(var W,z=0;W=d[z];z++)if(W.animatable)W.animatable._getAnimationConfigRecursive(W.type||A,H,k);else if(W.id){var u=H[W.id];
u?(u.isClone||(H[W.id]=this._cloneConfig(u),u=H[W.id]),this._copyProperties(u,W)):H[W.id]=W}else k.push(W)}},
getAnimationConfig:function(A){var H={},k=[];this._getAnimationConfigRecursive(A,H,k);for(var d in H)k.push(H[d]);return k}},
{_configureAnimations:function(A){var H=[],k=[];if(A.length>0)for(var d,W=0;d=A[W];W++){var z=document.createElement(d.name);if(z.isNeonAnimation){var u=null;z.configure||(z.configure=function(){return null});
u=z.configure(d);k.push({result:u,config:d})}else console.warn(this.is+":",d.name,"not found!")}for(A=0;A<k.length;A++){u=k[A].result;d=k[A].config;try{typeof u.cancel!="function"&&(u=document.timeline.play(u))}catch(B){u=null,console.warn("Couldnt play","(",d.name,").",B)}u&&H.push({neonAnimation:z,config:d,animation:u})}return H},
_shouldComplete:function(A){for(var H=!0,k=0;k<A.length;k++)if(A[k].animation.playState!="finished"){H=!1;break}return H},
_complete:function(A){for(var H=0;H<A.length;H++)A[H].neonAnimation.complete(A[H].config);for(H=0;H<A.length;H++)A[H].animation.cancel()},
playAnimation:function(A,H){var k=this.getAnimationConfig(A);if(k){this._active=this._active||{};this._active[A]&&(this._complete(this._active[A]),delete this._active[A]);var d=this._configureAnimations(k);if(d.length==0)this.fire("neon-animation-finish",H,{bubbles:!1});else for(this._active[A]=d,k=0;k<d.length;k++)d[k].animation.onfinish=function(){this._shouldComplete(d)&&(this._complete(d),delete this._active[A],this.fire("neon-animation-finish",H,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var A in this._active){var H=this._active[A],k;for(k in H)H[k].animation&&H[k].animation.cancel&&H[k].animation.cancel()}this._active={}}}];var JW=function(A,H){A=Error.call(this,A);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.arg=H;this.name=this.constructor.name;this.constructor=JW;this.__proto__=JW.prototype};
_.I(JW,Error);var yd0=Fd(function(A){var H=function(){return A.apply(this,arguments)||this};
_.I(H,A);H.prototype._marshalArgs=function(k,d,W){d=A.prototype._marshalArgs.call(this,k,d,W);if(this._legacyUndefinedCheck&&d.length>1)for(W=0;W<d.length;W++)if(d[W]===void 0||k[W].wildcard&&d[W].base===void 0)throw k=k[W].name,new JW("Argument '"+k+"' is undefined.",k);return d};
H.prototype._addPropertyEffect=function(k,d,W){return A.prototype._addPropertyEffect.call(this,k,d,EzA(W,W&&W.info&&W.info.methodName))};
H._addTemplatePropertyEffect=function(k,d,W){return A._addTemplatePropertyEffect.call(this,k,d,EzA(W))};
return H}),jLi=_.uy.Class;
_.uy.Class=function(A,H){return jLi(A,function(k){return H?H(yd0(k)):yd0(k)})};
var Isw=Fd(function(A){var H=yd0(A);A=function(){return H.apply(this,arguments)||this};
_.I(A,H);_.nP.Object.defineProperties(A.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return A}),YKi=a0.mixin;
a0.mixin=YKi?function(A){return Isw(YKi(A))}:Isw;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.rx=_.$2.IronButtonState;var chA=S8;_.U3l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var nzf=function(){return Math.random().toString(36).substring(7).split("").join(".")},MPC="@@redux/INIT"+nzf(),wSN="@@redux/REPLACE"+nzf();var ozm=typeof Symbol==="function"&&Symbol.observable||"@@observable";var PAw=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var GsA="top right bottom left width height size weight".split(" "),FWj=typeof MutationObserver!=="undefined",XpA=PAw&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,De0=function(){this.mutationEventsAdded_=this.JSC$12072_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=$3I(this.refresh.bind(this))},SKp=function(A,
H){var k=A.observers_;
H=k.indexOf(H);~H&&k.splice(H,1);!k.length&&A.JSC$12072_connected_&&PAw&&A.JSC$12072_connected_&&(document.removeEventListener("transitionend",A.onTransitionEnd_),window.removeEventListener("resize",A.refresh),A.mutationsObserver_&&(A.mutationsObserver_.disconnect(),XpA&&(HTMLElement.prototype.attachShadow=XpA)),A.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",A.refresh),A.mutationsObserver_=null,A.mutationEventsAdded_=!1,A.JSC$12072_connected_=!1)};
De0.prototype.refresh=function(){CA0(this)&&this.refresh()};
var CA0=function(A){A=A.observers_.filter(function(H){return KWA(H),H.activeObservations_.length>0});
A.forEach(function(H){return asj(H)});
return A.length>0},cdJ=function(A){if(PAw&&!A.JSC$12072_connected_){document.addEventListener("transitionend",A.onTransitionEnd_);
window.addEventListener("resize",A.refresh);if(FWj){A.mutationsObserver_=new MutationObserver(A.refresh);var H={attributes:!0,childList:!0,characterData:!0,subtree:!0};A.mutationsObserver_.observe(document,H);XpA&&(function W(d){var z=d.shadowRoot;z&&(A.mutationsObserver_.observe(z,H),W(z));for(d=d.firstElementChild;d;)W(d),d=d.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var d=XpA.apply(this,_.o7.apply(0,arguments));
A.mutationsObserver_.observe(d,H);return d})}else document.addEventListener("DOMSubtreeModified",A.refresh),A.mutationEventsAdded_=!0;
A.JSC$12072_connected_=!0}};
De0.prototype.onTransitionEnd_=function(A){var H=A.propertyName===void 0?"":A.propertyName;GsA.some(function(k){return!!~H.indexOf(k)})&&this.refresh()};
var ppG=null;var QLk=function(A,H){for(var k=_.r(Object.keys(H)),d=k.next();!d.done;d=k.next())d=d.value,Object.defineProperty(A,d,{value:H[d],enumerable:!1,writable:!1,configurable:!0})};var ur=function(A){var H;return(A==null?void 0:(H=A.ownerDocument)==null?void 0:H.defaultView)||globalThis};var VKw={x:0,y:0,width:0,height:0},Ecw=typeof SVGGraphicsElement!=="undefined"?function(A){return A instanceof ur(A).SVGGraphicsElement}:function(A){return A instanceof ur(A).SVGElement&&typeof A.getBBox==="function"};var Uei=function(A){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=A};
Uei.prototype.isActive=function(){var A=this.target;if(PAw)if(Ecw(A)){var H=A.getBBox();H={x:0,y:0,width:H.width,height:H.height}}else{var k=A.clientWidth,d=A.clientHeight;if(k||d){var W=ur(A).getComputedStyle(A);H=L2(W["padding-top"]);var z=L2(W["padding-left"]),u=z+L2(W["padding-right"]),B=H+L2(W["padding-bottom"]),h=L2(W.width),O=L2(W.height);W.boxSizing==="border-box"&&(Math.round(h+u)!==k&&(h-=A9r(W,"left","right")+u),Math.round(O+B)!==d&&(O-=A9r(W,"top","bottom")+B));A!==ur(A).document.documentElement&&
(A=Math.round(h+u)-k,d=Math.round(O+B)-d,Math.abs(A)!==1&&(h-=A),Math.abs(d)!==1&&(O-=d));H={x:z,y:H,width:h,height:O}}else H=VKw}else H=VKw;this.contentRect_=H;return H.width!==this.broadcastWidth||H.height!==this.broadcastHeight};var lsN=function(A,H){var k=H.x;var d=H.y;var W=H.width;H=H.height;var z=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);QLk(z,{x:k,y:d,width:W,height:H,top:d,right:k+W,bottom:H+d,left:k});QLk(this,{target:A,contentRect:z})};var tKw=function(A,H){var k=ppG;this.activeObservations_=[];this.observations_=new Map;if(typeof A!=="function")throw new TypeError("We");this.callback_=A;this.controller_=k;this.callbackCtx_=H};
tKw.prototype.observe=function(A){if(A===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(A instanceof ur(A).Element))throw new TypeError("Ye");var H=this.observations_;H.has(A)||(H.set(A,new Uei(A)),A=this.controller_,~A.observers_.indexOf(this)||A.observers_.push(this),A.JSC$12072_connected_||cdJ(A),this.controller_.refresh())}};
tKw.prototype.unobserve=function(A){if(A===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(A instanceof ur(A).Element))throw new TypeError("Ye");var H=this.observations_;H.has(A)&&(H.delete(A),H.size||SKp(this.controller_,this))}};
tKw.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();SKp(this.controller_,this)};
var KWA=function(A){A.activeObservations_.splice(0);A.observations_.forEach(function(H){H.isActive()&&A.activeObservations_.push(H)})},asj=function(A){if(A.activeObservations_.length>0){var H=A.callbackCtx_,k=A.activeObservations_.map(function(d){var W=d.target,z=d.contentRect_;
d.broadcastWidth=z.width;d.broadcastHeight=z.height;return new lsN(W,z)});
A.callback_.call(H,k,H);A.activeObservations_.splice(0)}};var BU=function(A){if(!(this instanceof BU))throw new TypeError("Ze");if(!arguments.length)throw new TypeError("Xe");ppG||(ppG=new De0);this.observer_=new tKw(A,this)};
BU.prototype.observe=function(A){this.observer_.observe(A)};
BU.prototype.unobserve=function(A){this.observer_.unobserve(A)};
BU.prototype.disconnect=function(){this.observer_.disconnect()};var tWC=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:BU;var lg={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"},Mn={"2D":0,WebGL:1,WebGL2:2};Mn[Mn["2D"]]="2D";Mn[1]="WebGL";Mn[2]="WebGL2";var sFm={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},kaA={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},HnI={},W7N={},z88={},FL=function(A){return vN("Node",A,"childNodes")},Gy=function(A){return vN("Node",A,"parentNode")},XL=function(A){return vN("Node",A,"parentElement")},VE8=function(A){return vN("Node",A,
"textContent")},HiC=function(A){return qhr(A,"getRootNode")()},jL=function(A){return A&&"host"in A?vN("ShadowRoot",A,"host"):null},I1=function(A){return A&&"shadowRoot"in A?vN("Element",A,"shadowRoot"):null};var a1=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
a1.prototype.getId=function(A){if(!A)return-1;var H,k;return(k=(H=this.nodeMetaMap.get(A)||null)==null?void 0:H.id)!=null?k:-1};
a1.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var NKJ=function(A,H){var k=A.getId(H);A.idNodeMap.delete(k);H.childNodes&&H.childNodes.forEach(function(d){return NKJ(A,d)})};
a1.prototype.has=function(A){return this.idNodeMap.has(A)};
a1.prototype.add=function(A,H){this.idNodeMap.set(H.id,A);this.nodeMetaMap.set(A,H)};
a1.prototype.replace=function(A,H){var k=this.idNodeMap.get(A)||null;k&&(k=this.nodeMetaMap.get(k))&&this.nodeMetaMap.set(H,k);this.idNodeMap.set(A,H)};
a1.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var R8b=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,TtA=/^(?:[a-z+]+:)?\/\//i,mpW=/^www\..*/i,J9f=/^(data:)([^,]*),(.*)/i;var L7A=1,y9l=RegExp("[^a-z0-9-_:]"),D6,UpV,Yhv=/^[^ \t\n\r\u000c]+/,Itv=/^[, \t\n\r\u000c]+/,XFl=new WeakMap;var n2,U3=function(A){return n2?function(){var H=_.o7.apply(0,arguments);try{return A.apply(null,_.fV(H))}catch(k){if(!n2||n2(k)!==!0)throw k;}}:A};var eh=function(A){this.generateIdFn=A;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
eh.prototype.getId=function(A,H,k,d){k=k||MKi(this,A);A=d||nci(this,A);d=k.get(H);d||(d=this.generateIdFn(),k.set(H,d),A.set(d,H));return d};
eh.prototype.getIds=function(A,H){var k=this,d=MKi(this,A),W=nci(this,A);return H.map(function(z){return k.getId(A,z,d,W)})};
eh.prototype.reset=function(A){A?(this.iframeIdToRemoteIdMap.delete(A),this.iframeRemoteIdToIdMap.delete(A)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var MKi=function(A,H){var k=A.iframeIdToRemoteIdMap.get(H);k||(k=new Map,A.iframeIdToRemoteIdMap.set(H,k));return k},nci=function(A,H){var k=A.iframeRemoteIdToIdMap.get(H);
k||(k=new Map,A.iframeRemoteIdToIdMap.set(H,k));return k};var lPb=function(A){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new eh(vwm);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=A.mutationCb;this.wrappedEmit=A.wrappedEmit;this.stylesheetManager=A.stylesheetManager;this.recordCrossOriginIframes=A.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new eh(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=A.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$12136_handleMessage.bind(this))},ZiI=function(A,H){A.iframes.set(H,!0);
H.contentWindow&&A.crossOriginIframeMap.set(H.contentWindow,H)},Hor=function(A,H){A.loadListener=H},osA=function(A,H,k){A.mutationCb({adds:[{parentId:A.mirror.getId(H),
nextId:null,node:k}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(A.recordCrossOriginIframes){var d;(d=H.contentWindow)==null||d.addEventListener("message",A.JSC$12136_handleMessage.bind(A))}var W;(W=A.loadListener)==null||W.call(A,H);H.contentDocument&&H.contentDocument.adoptedStyleSheets&&H.contentDocument.adoptedStyleSheets.length>0&&vsW(A.stylesheetManager,H.contentDocument.adoptedStyleSheets,A.mirror.getId(H.contentDocument))};
lPb.prototype.JSC$12136_handleMessage=function(A){if(A.data.type==="rrweb"&&A.origin===A.data.origin&&A.source){var H=this.crossOriginIframeMap.get(A.source);H&&(H=Z6i(this,H,A.data.event))&&this.wrappedEmit(H,A.data.isCheckout)}};
var Z6i=function(A,H,k){switch(k.type){case 2:A.crossOriginIframeMirror.reset(H);A.crossOriginIframeStyleMirror.reset(H);fsw(A,k.data.node,H);var d=k.data.node.id;A.crossOriginIframeRootIdMap.set(H,d);wp1(A,k.data.node,d);return{timestamp:k.timestamp,type:3,data:{source:0,adds:[{parentId:A.mirror.getId(H),nextId:null,node:k.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return k;case 5:return xt(A,k.data.payload,H,["id","parentId","previousId","nextId"]),k;case 3:switch(k.data.source){case 0:return k.data.adds.forEach(function(W){xt(A,
W,H,["parentId","nextId","previousId"]);fsw(A,W.node,H);var z=A.crossOriginIframeRootIdMap.get(H);z&&wp1(A,W.node,z)}),k.data.removes.forEach(function(W){xt(A,W,H,["parentId",
"id"])}),k.data.attributes.forEach(function(W){xt(A,W,H,["id"])}),k.data.texts.forEach(function(W){xt(A,W,H,["id"])}),k;
case 12:case 6:case 1:return k.data.positions.forEach(function(W){xt(A,W,H,["id"])}),k;
case 7:case 2:case 3:case 9:case 5:return xt(A,k.data,H,["id"]),k;case 8:case 13:return xt(A,k.data,H,["id"]),ocA(A,k.data,H,["styleId"]),k;case 10:return k;case 14:return k.data.ranges.forEach(function(W){xt(A,W,H,["start","end"])}),k;
case 15:return xt(A,k.data,H,["id"]),ocA(A,k.data,H,["styleIds"]),(d=k.data.styles)==null||d.forEach(function(W){ocA(A,W,H,["styleId"])}),k}}return!1};
lPb.prototype.replace=function(A,H,k,d){d=_.r(d);for(var W=d.next();!W.done;W=d.next())if(W=W.value,Array.isArray(H[W])||typeof H[W]==="number")Array.isArray(H[W])?H[W]=A.getIds(k,H[W]):H[W]=A.getId(k,H[W]);return H};
var xt=function(A,H,k,d){A.replace(A.crossOriginIframeMirror,H,k,d)},ocA=function(A,H,k,d){A.replace(A.crossOriginIframeStyleMirror,H,k,d)},fsw=function(A,H,k){xt(A,H,k,["id",
"rootId"]);"childNodes"in H&&H.childNodes.forEach(function(d){fsw(A,d,k)})},wp1=function(A,H,k){H.type===0||H.rootId||(H.rootId=k);
"childNodes"in H&&H.childNodes.forEach(function(d){wp1(A,d,k)})};var evl=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},$eA=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.q=$eA.prototype;_.q.getId=function(A){var H;return(H=this.styleIDMap.get(A))!=null?H:-1};
_.q.has=function(A){return this.styleIDMap.has(A)};
_.q.add=function(A,H){if(this.has(A))return this.getId(A);H=H===void 0?this.id++:H;this.styleIDMap.set(A,H);this.idStyleMap.set(H,A);return H};
_.q.getStyle=function(A){return this.idStyleMap.get(A)||null};
_.q.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.q.generateId=function(){return this.id++};var AYJ=function(){this.length=0;this.tail=this.head=null};
AYJ.prototype.get=function(A){if(A>=this.length)throw Error("$e");for(var H=this.head,k=0;k<A;k++){var d=void 0;H=((d=H)==null?void 0:d.next)||null}return H};
var HXZ=function(A,H){var k={value:H,previous:null,next:null};H.__ln=k;if(H.previousSibling&&"__ln"in H.previousSibling){var d=H.previousSibling.__ln.next;k.next=d;k.previous=H.previousSibling.__ln;H.previousSibling.__ln.next=k;d&&(d.previous=k)}else H.nextSibling&&"__ln"in H.nextSibling&&H.nextSibling.__ln.previous?(d=H.nextSibling.__ln.previous,k.previous=d,k.next=H.nextSibling.__ln,H.nextSibling.__ln.previous=k,d&&(d.next=k)):(A.head&&(A.head.previous=k),k.next=A.head,A.head=k);k.next===null&&
(A.tail=k);A.length++};
AYJ.prototype.removeNode=function(A){var H=A.__ln;this.head&&(H.previous?(H.previous.next=H.next)?H.next.previous=H.previous:this.tail=H.previous:(this.head=H.next)?this.head.previous=null:this.tail=null,A.__ln&&delete A.__ln,this.length--)};
var sXw=function(A,H){return A+"@"+H},udV=function(){var A=this;
this.locked=this.JSC$12167_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(H){H.forEach(A.JSC$12167_processMutation);A.emit()};
this.emit=function(){if(!A.JSC$12167_frozen&&!A.locked){for(var H=[],k=new Set,d=new AYJ,W=function(m){for(var J=-2;J===-2;)J=(m=m&&m.nextSibling)&&A.mirror.getId(m);return J},z=function(m){var J=Gy(m);
if(J&&ktN(m)){var g=!1;if(m.nodeType===Node.TEXT_NODE){var v=J.tagName;if(v==="TEXTAREA")return;v==="STYLE"&&A.addedSet.has(J)&&(g=!0)}J=Yk(J)?A.mirror.getId(snb(m)):A.mirror.getId(J);v=W(m);if(J===-1||v===-1)return HXZ(d,m);if(g=K2(m,{doc:A.doc,mirror:A.mirror,blockClass:A.blockClass,blockSelector:A.blockSelector,maskTextClass:A.maskTextClass,maskTextSelector:A.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:A.inlineStylesheet,maskInputOptions:A.maskInputOptions,maskTextFn:A.maskTextFn,
maskInputFn:A.maskInputFn,slimDOMOptions:A.slimDOMOptions,dataURLOptions:A.dataURLOptions,recordCanvas:A.recordCanvas,inlineImages:A.inlineImages,onSerialize:function(y){y.nodeName==="IFRAME"&&A.mirror.nodeMetaMap.get(y)&&ZiI(A.iframeManager,y);A$v(y,A.mirror)&&fPm(A.stylesheetManager,y);m&&I1(m)&&woI(A.shadowDomManager,I1(m),A.doc)},
onIframeLoad:function(y,X){osA(A.iframeManager,y,X);y.contentWindow&&y.contentDocument&&$rm(A.shadowDomManager,y.contentWindow.Element,y.contentDocument)},
onStylesheetLoad:function(y,X){Agb(A.stylesheetManager,y,X)},
cssCaptured:g}))H.push({parentId:J,nextId:v,node:g}),k.add(g.id)}};A.mapRemoves.length;)NKJ(A.mirror,A.mapRemoves.shift());
for(var u=_.r(A.movedSet),B=u.next();!B.done;B=u.next())B=B.value,zv8(A.removesSubTreeCache,B)&&!A.movedSet.has(Gy(B))||z(B);u=_.r(A.addedSet);for(B=u.next();!B.done;B=u.next())B=B.value,r$I(A.droppedSet,B)||zv8(A.removesSubTreeCache,B)?r$I(A.movedSet,B)?z(B):A.droppedSet.add(B):z(B);for(B=null;d.length;){u=null;if(B){var h=A.mirror.getId(Gy(B.value)),O=W(B.value);h!==-1&&O!==-1&&(u=B)}if(!u)for(B=d.tail;B;){var T=B;B=B.previous;if(T&&(h=A.mirror.getId(Gy(T.value)),W(T.value)!==-1))if(h!==-1){u=T;
break}else if((h=Gy(T.value))&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(h=jL(h),A.mirror.getId(h)!==-1)){u=T;break}}if(!u){for(;d.head;)d.removeNode(d.head.value);break}B=u.previous;d.removeNode(u.value);z(u.value)}z={texts:A.texts.map(function(m){var J=m.node,g=Gy(J);g&&g.tagName==="TEXTAREA"&&A.genTextAreaValueMutation(g);return{id:A.mirror.getId(J),value:m.value}}).filter(function(m){return!k.has(m.id)}).filter(function(m){return A.mirror.has(m.id)}),
attributes:A.attributes.map(function(m){var J=m.attributes;if(typeof J.style==="string"){var g=JSON.stringify(m.styleDiff),v=JSON.stringify(m._unchangedStyles);g.length<J.style.length&&(g+v).split("var(").length===J.style.split("var(").length&&(J.style=m.styleDiff)}return{id:A.mirror.getId(m.node),attributes:J}}).filter(function(m){return!k.has(m.id)}).filter(function(m){return A.mirror.has(m.id)}),
removes:A.removes,adds:H};if(z.texts.length||z.attributes.length||z.removes.length||z.adds.length)A.texts=[],A.attributes=[],A.attributeMap=new WeakMap,A.removes=[],A.addedSet=new Set,A.movedSet=new Set,A.droppedSet=new Set,A.removesSubTreeCache=new Set,A.movedMap={},A.mutationCb(z)}};
this.genTextAreaValueMutation=function(H){var k=A.attributeMap.get(H);k||(k={node:H,attributes:{},styleDiff:{},_unchangedStyles:{}},A.attributes.push(k),A.attributeMap.set(H,k));var d=Array.from(FL(H),function(W){return VE8(W)||""}).join("");
k.attributes.value=xpC({element:H,maskInputOptions:A.maskInputOptions,tagName:H.tagName,type:h8m(H),value:d,maskInputFn:A.maskInputFn})};
this.JSC$12167_processMutation=function(H){if(!wFV(H.target,A.mirror,A.slimDOMOptions))switch(H.type){case "characterData":var k=VE8(H.target);Qs(H.target,A.blockClass,A.blockSelector,!1)||k===H.oldValue||A.texts.push({value:atl(H.target,A.maskTextClass,A.maskTextSelector,!0)&&k?A.maskTextFn?A.maskTextFn(k,ftV(H.target)):k.replace(/[\S]/g,"*"):k,node:H.target});break;case "attributes":k=H.target;var d=H.attributeName,W=H.target.getAttribute(d);if(d==="value"){var z=h8m(k);W=xpC({element:k,maskInputOptions:A.maskInputOptions,
tagName:k.tagName,type:z,value:W,maskInputFn:A.maskInputFn})}if(Qs(H.target,A.blockClass,A.blockSelector,!1)||W===H.oldValue)break;z=A.attributeMap.get(H.target);if(k.tagName==="IFRAME"&&d==="src"&&!A.keepIframeSrcFn(W))if(k.contentDocument)break;else d="rr_src";z||(z={node:H.target,attributes:{},styleDiff:{},_unchangedStyles:{}},A.attributes.push(z),A.attributeMap.set(H.target,z));d==="type"&&k.tagName==="INPUT"&&(H.oldValue||"").toLowerCase()==="password"&&k.setAttribute("data-rr-is-password","true");
if(!ShN(k.tagName,d))if(z.attributes[d]=Dpf(A.doc,k.tagName.toLowerCase(),d.toLowerCase(),W),d==="style"){if(!A.unattachedDoc)try{A.unattachedDoc=document.implementation.createHTMLDocument()}catch(O){A.unattachedDoc=A.doc}d=A.unattachedDoc.createElement("span");H.oldValue&&d.setAttribute("style",H.oldValue);W=_.r(Array.from(k.style));for(var u=W.next();!u.done;u=W.next()){u=u.value;var B=k.style.getPropertyValue(u),h=k.style.getPropertyPriority(u);B!==d.style.getPropertyValue(u)||h!==d.style.getPropertyPriority(u)?
z.styleDiff[u]=h===""?B:[B,h]:z._unchangedStyles[u]=[B,h]}d=_.r(Array.from(d.style));for(W=d.next();!W.done;W=d.next())W=W.value,k.style.getPropertyValue(W)===""&&(z.styleDiff[W]=!1)}else d==="open"&&k.tagName==="DIALOG"&&(k.matches("dialog:modal")?z.attributes.rr_open_mode="modal":z.attributes.rr_open_mode="non-modal");break;case "childList":Qs(H.target,A.blockClass,A.blockSelector,!0)||(H.target.tagName==="TEXTAREA"?A.genTextAreaValueMutation(H.target):(H.addedNodes.forEach(function(O){return A.genAdds(O,
H.target)}),H.removedNodes.forEach(function(O){var T=A.mirror.getId(O),m=Yk(H.target)?A.mirror.getId(jL(H.target)):A.mirror.getId(H.target);
Qs(H.target,A.blockClass,A.blockSelector,!1)||wFV(O,A.mirror,A.slimDOMOptions)||A.mirror.getId(O)===-1||(A.addedSet.has(O)?(drm(A.addedSet,O),A.droppedSet.add(O)):A.addedSet.has(H.target)&&T===-1||owW(H.target,A.mirror)||(A.movedSet.has(O)&&A.movedMap[T+"@"+m]?drm(A.movedSet,O):(A.removes.push({parentId:m,id:T,isShadow:Yk(H.target)&&PN(H.target)?!0:void 0}),WOm(O,A.removesSubTreeCache))),A.mapRemoves.push(O))})))}};
this.genAdds=function(H,k){if(!k5j(A.processedNodeManager,H,A)&&!A.addedSet.has(H)&&!A.movedSet.has(H)){if(A.mirror.nodeMetaMap.has(H)){if(wFV(H,A.mirror,A.slimDOMOptions))return;A.movedSet.add(H);var d=null;k&&A.mirror.nodeMetaMap.has(k)&&(d=A.mirror.getId(k));d&&d!==-1&&(A.movedMap[sXw(A.mirror.getId(H),d)]=!0)}else A.addedSet.add(H),A.droppedSet.delete(H);Qs(H,A.blockClass,A.blockSelector,!1)||(FL(H).forEach(function(W){return A.genAdds(W)}),H&&I1(H)&&FL(I1(H)).forEach(function(W){A.processedNodeManager.add(W,
A);
A.genAdds(W,H)}))}}};
_.q=udV.prototype;_.q.init=function(A){var H=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(k){H[k]=A[k]})};
_.q.freeze=function(){this.JSC$12167_frozen=!0;this.canvasManager.freeze()};
_.q.unfreeze=function(){this.JSC$12167_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.q.isFrozen=function(){return this.JSC$12167_frozen};
_.q.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.q.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.q.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var E3=[],Nn=window.Proxy,RvV=["INPUT","TEXTAREA","SELECT"],T6Q=new WeakMap;var dJA=new Map,KOV=function(A,H,k){if(A&&(CGf(A,H)||typeof A==="object")){H=A.constructor.name;var d=dJA.get(k);d||(d=new Map,dJA.set(k,d));d.has(H)||d.set(H,[]);k=d.get(H);H=k.indexOf(A);H===-1&&(H=k.length,k.push(A));return H}},aPA=function(A,H,k){return A.map(function(d){return S4b(d,H,k)})},CGf=function(A,H){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(k){return typeof H[k]===
"function"}).find(function(k){return A instanceof H[k]})};var W9j=FO(["\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"]),
uEC=_.e_(W9j.join(""));var MJv=function(A){var H=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$12209_frozen=!1;this.JSC$12209_processMutation=function(h,O){if(H.rafStamps.invokeId&&H.rafStamps.latestId!==H.rafStamps.invokeId||!H.rafStamps.invokeId)H.rafStamps.invokeId=H.rafStamps.latestId;H.pendingCanvasMutations.has(h)||H.pendingCanvasMutations.set(h,[]);H.pendingCanvasMutations.get(h).push(O)};
var k=A.sampling===void 0?"all":A.sampling,d=A.win,W=A.blockClass,z=A.blockSelector,u=A.recordCanvas,B=A.dataURLOptions;this.mutationCb=A.mutationCb;this.mirror=A.mirror;u&&k==="all"&&z6w(this,d,W,z);u&&typeof k==="number"&&q8p(this,k,d,W,z,{dataURLOptions:B})};
_.q=MJv.prototype;_.q.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.q.freeze=function(){this.JSC$12209_frozen=!0};
_.q.unfreeze=function(){this.JSC$12209_frozen=!1};
_.q.lock=function(){this.locked=!0};
_.q.unlock=function(){this.locked=!1};
var q8p=function(A,H,k,d,W,z){var u=pov(k,d,W,!0),B=new Map,h=KJI(BWW());h.onmessage=function(v){var y=v.data.id;B.set(y,!1);"base64"in v.data&&(v=v.data,A.mutationCb({id:y,type:Mn["2D"],commands:[{property:"clearRect",args:[0,0,v.width,v.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:v.base64}],type:v.type}]},0,0]}]}))};
var O=1E3/H,T=0,m=function(){var v=[];k.document.querySelectorAll("canvas").forEach(function(y){Qs(y,d,W,!0)||v.push(y)});
return v},J=function(v){T&&v-T<O||(T=v,m().forEach(function(y){var X,D,K,N,U;
return _.e(function(p){if(p.nextAddress==1){X=A.mirror.getId(y);if(B.get(X)||y.width===0||y.height===0)return p.return();B.set(X,!0);["webgl","webgl2"].includes(y.__context)&&(D=y.getContext(y.__context),((K=D)==null?void 0:(N=K.getContextAttributes())==null?void 0:N.preserveDrawingBuffer)===!1&&D.clear(D.COLOR_BUFFER_BIT));return p.yield(createImageBitmap(y),2)}U=p.yieldResult;h.postMessage({id:X,bitmap:U,width:y.width,height:y.height,dataURLOptions:z.dataURLOptions},[U]);_.EN(p)})}));
g=requestAnimationFrame(J)};
var g=requestAnimationFrame(J);A.resetObservers=function(){u();cancelAnimationFrame(g)}},z6w=function(A,H,k,d){rYw(A);
uMj(A);var W=pov(H,k,d,!1),z=c$l(A.JSC$12209_processMutation.bind(A),H,k,d),u=VJv(A.JSC$12209_processMutation.bind(A),H,k,d);A.resetObservers=function(){W();z();u()}},uMj=function(A){requestAnimationFrame(function(){return BdN(A)})},rYw=function(A){var H=function(k){A.rafStamps.latestId=k;
requestAnimationFrame(H)};
requestAnimationFrame(H)},BdN=function(A){A.pendingCanvasMutations.forEach(function(H,k){var d=A.mirror.getId(k);
e6Q(A,k,d)});
requestAnimationFrame(function(){return BdN(A)})},e6Q=function(A,H,k){if(!A.JSC$12209_frozen&&!A.locked){var d=A.pendingCanvasMutations.get(H);
if(d&&k!==-1){var W=d.map(function(z){z=Object.assign({},z);return delete z.type,z});
A.mutationCb({id:k,type:d[0].type,commands:W});A.pendingCanvasMutations.delete(H)}}};var tJr=function(){this.nodeMap=new WeakMap;this.active=!1},k5j=function(A,H,k){return(A=A.nodeMap.get(H))&&Array.from(A).some(function(d){return d!==k})};
tJr.prototype.add=function(A,H){var k=this;this.active||(this.active=!0,requestAnimationFrame(function(){k.nodeMap=new WeakMap;k.active=!1}));
this.nodeMap.set(A,(this.nodeMap.get(A)||new Set).add(H))};
tJr.prototype.destroy=function(){};var nsf=function(A){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=A.mutationCb;this.scrollCb=A.scrollCb;this.bypassOptions=A.bypassOptions;this.mirror=A.mirror;this.init()};
nsf.prototype.init=function(){this.reset();$rm(this,Element,document)};
var woI=function(A,H,k){if(PN(H)&&!A.shadowDoms.has(H)){A.shadowDoms.add(H);var d=B6X(Object.assign({},A.bypassOptions,{doc:k,mutationCb:A.mutationCb,mirror:A.mirror,shadowDomManager:A}),H);A.restoreHandlers.push(function(){return d.disconnect()});
A.restoreHandlers.push(hvI(Object.assign({},A.bypassOptions,{scrollCb:A.scrollCb,doc:H,mirror:A.mirror})));setTimeout(function(){H.adoptedStyleSheets&&H.adoptedStyleSheets.length>0&&vsW(A.bypassOptions.stylesheetManager,H.adoptedStyleSheets,A.mirror.getId(jL(H)));A.restoreHandlers.push(y$W({mirror:A.mirror,stylesheetManager:A.bypassOptions.stylesheetManager},H))},0)}},$rm=function(A,H,k){A.restoreHandlers.push(ys(H.prototype,"attachShadow",function(d){return function(W){W=d.call(this,W);
var z=I1(this);z&&ktN(this)&&woI(A,z,k);return W}}))};
nsf.prototype.reset=function(){this.restoreHandlers.forEach(function(A){try{A()}catch(H){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var UrC=function(A){this.trackedLinkElements=new WeakSet;this.styleMirror=new $eA;this.mutationCb=A.mutationCb;this.adoptedStyleSheetCb=A.adoptedStyleSheetCb},Agb=function(A,H,k){"_cssText"in k.attributes&&A.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:k.id,attributes:k.attributes}]});fPm(A,H)},fPm=function(A,H){A.trackedLinkElements.has(H)||A.trackedLinkElements.add(H)},vsW=function(A,H,k){if(H.length!==0){k={id:k,
styleIds:[]};var d=[];H=_.r(H);for(var W=H.next(),z={};!W.done;z={sheet$jscomp$3:void 0},W=H.next())z.sheet$jscomp$3=W.value,W=void 0,A.styleMirror.has(z.sheet$jscomp$3)?W=A.styleMirror.getId(z.sheet$jscomp$3):(W=A.styleMirror.add(z.sheet$jscomp$3),d.push({styleId:W,rules:Array.from(z.sheet$jscomp$3.rules||CSSRule,function(u){return function(B,h){return{rule:urW(B,u.sheet$jscomp$3.href),index:h}}}(z))})),k.styleIds.push(W);
d.length>0&&(k.styles=d);A.adoptedStyleSheetCb(k)}};
UrC.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var f2,EsV,N6C;try{if(Array.from([1],function(A){return A*2})[0]!==2){var xJ0=document.createElement("iframe");
document.body.appendChild(xJ0);var iXG;Array.from=((iXG=xJ0.contentWindow)==null?void 0:iXG.Array.from)||Array.from;document.body.removeChild(xJ0)}}catch(A){console.debug("Unable to override Array.from",A)}var Z6=new a1;var B18="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(" "),uql={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},rgN=null,kLb=null;var edr={},x2C=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 JgC={text:1},Oob={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var h6J=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,OXZ={CONSTANT:{isUnwrappable:function(A){return A instanceof FW},
unwrap:CKA},JAVASCRIPT:{isUnwrappable:function(A){return A instanceof _.BX},
unwrap:x7},HTML:{isUnwrappable:function(A){return A instanceof HX},
unwrap:function(A){return dU(A)}},
RESOURCE_URL:{isUnwrappable:function(A){return A instanceof cz},
unwrap:_.QB},STRING:{isUnwrappable:function(A){return A instanceof Object},
unwrap:function(A){return String(A)}},
STYLE:{isUnwrappable:function(A){return typeof A==="string"},
unwrap:function(A){return A}},
URL:{isUnwrappable:function(A){return tG(A)},
unwrap:_.NR}},R6J={CONSTANT:g2W,JAVASCRIPT:g2W,HTML:function(A){A=A instanceof HX?A:k7(String(A).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return dU(A)},
RESOURCE_URL:g2W,STRING:String,STYLE:g2W,URL:function(A,H){A=h6J.test(A)?A:void 0;return A===void 0?H:A}};var XDv=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,boX=/[\t\n\f\r ]+/,v2b=/[\t\n\f\r ,]+/g,jSV=function(A,H,k){return k},Ax={},Tdi=function(){var A=function(){var d={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",d):d}(),H=A.createHTML(""),k=A.createScript("");
A=A.createScriptURL("");return{INNOCUOUS_STRING:H,INNOCUOUS_SCRIPT:k,INNOCUOUS_URL:A}}(),$k=Tdi.INNOCUOUS_STRING,F6X=Tdi.INNOCUOUS_SCRIPT,GLl=Tdi.INNOCUOUS_URL;var mJ0=function(A){var H=D2V(A);return function(k,d,W,z){return z?H(z,d,W,k):$k}}({reportHandler:function(A,H){if(A)try{throw Error(H);
}catch(k){_.I3(k)}},
safeTypesBridge:function(A,H,k){var d=OXZ[H];return d.isUnwrappable(A)&&(d=d.unwrap(A,k),d!==k)?d:(0,R6J[H])(String(A),k)},
allowedIdentifierPrefixes:[""]});if(Tb!==void 0)throw Error("bf");Tb=mJ0;if(Tb!==mJ0)throw Error("cf");HB("Injectable",[]);var Wmr=HB("Inject",[["token",void 0]]),qMm=HB("Optional",[]);HB("Injectable",[]);var rqV=HB("Self",[]),uRI=HB("SkipSelf",[]);HB("Host",[]);var JY0={},gVA=function(){};
gVA.prototype.resolve=function(){throw Error("ef");};
gVA.prototype.addProvider=function(){throw Error("ef");};var klf=Function;var bXN=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,L9J=function(){this._reflect=window.Reflect};
_.q=L9J.prototype;_.q.factory=function(A){return function(){return new (Function.prototype.bind.apply(A,[null].concat(_.fV(_.o7.apply(0,arguments)))))}};
_.q._zipTypesAndAnnotations=function(A,H){var k=typeof A==="undefined"?Array(H.length):Array(A.length);for(var d=0;d<k.length;d++)k[d]=typeof A==="undefined"?[]:A[d]!=Object?[A[d]]:[],H&&CSW(H[d])&&(k[d]=k[d].concat(H[d]));return k};
_.q._ownParameters=function(A,H){if(bXN.exec(A.toString()))return null;if(A.parameters&&A.parameters!==H.parameters)return A.parameters;var k=A.ctorParameters;return k&&k!==H.ctorParameters?(H=typeof k==="function"?k():k,A=H.map(function(d){return d&&d.type}),H=H.map(function(d){return d&&awr(d.decorators)}),this._zipTypesAndAnnotations(A,H)):CSW(this._reflect)&&CSW(this._reflect.getOwnMetadata)&&(H=this._reflect.getOwnMetadata("parameters",A),(k=this._reflect.getOwnMetadata("design:paramtypes",A))||
H)?this._zipTypesAndAnnotations(k,H):Array(A.length).fill(void 0)};
_.q.parameters=function(A){if(!A.prototype)return[];var H=Object.getPrototypeOf(A.prototype).constructor;(A=this._ownParameters(A,H))||H===Object||(A=this.parameters(H));return A||[]};
_.q._ownAnnotations=function(A,H){if(A.annotations&&A.annotations!==H.annotations)return A=A.annotations,typeof A==="function"&&A.annotations&&(A=A.annotations),A;if(A.decorators&&A.decorators!==H.decorators)return awr(A.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",A)};
_.q.annotations=function(A){var H=Object.getPrototypeOf(A.prototype).constructor;A=this._ownAnnotations(A,H)||[];return(H!==Object?this.annotations(H):[]).concat(A)};
_.q._ownPropMetadata=function(A,H){if(A.propMetadata&&A.propMetadata!==H.propMetadata)return A=A.propMetadata,typeof A==="function"&&A.propMetadata&&(A=A.propMetadata),A;if(A.propDecorators&&A.propDecorators!==H.propDecorators){var k=A.propDecorators,d={};Object.keys(k).forEach(function(W){d[W]=awr(k[W])});
return d}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",A)};
_.q.propMetadata=function(A){var H=Object.getPrototypeOf(A.prototype).constructor,k={};if(H!==Object){var d=this.propMetadata(H);Object.keys(d).forEach(function(z){k[z]=d[z]})}var W=this._ownPropMetadata(A,H);
W&&Object.keys(W).forEach(function(z){var u=[];k.hasOwnProperty(z)&&u.push.apply(u,_.fV(k[z]));u.push.apply(u,_.fV(W[z]));k[z]=u});
return k};
_.q.getter=function(A){return function(H){return H[A]}};
_.q.setter=function(A){return function(H,k){return H[A]=k}};
_.q.method=function(A){return function(H,k){if(!H[A])throw Error("ff`"+A);return H[A].apply(H,k)}};var vVZ=function(){};var yY1=function(A){this.reflectionCapabilities=A};
_.I(yY1,vVZ);_.q=yY1.prototype;_.q.factory=function(A){return this.reflectionCapabilities.factory(A)};
_.q.parameters=function(A){return this.reflectionCapabilities.parameters(A)};
_.q.annotations=function(A){return this.reflectionCapabilities.annotations(A)};
_.q.propMetadata=function(A){return this.reflectionCapabilities.propMetadata(A)};
_.q.getter=function(A){return this.reflectionCapabilities.getter(A)};
_.q.setter=function(A){return this.reflectionCapabilities.setter(A)};
_.q.method=function(A){return this.reflectionCapabilities.method(A)};var N1f=new yY1(new L9J);var ir=function(A,H){this.token=A;this.id=H;if(A===void 0||A===null)throw Error("lf");};
_.nP.Object.defineProperties(ir.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return sd(this.token)}}});
_.nP.Object.defineProperties(ir,{JSC$12265_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return dn.JSC$12269_numberOfKeys}}});
var jXp=function(){this._allKeys=new Map};
jXp.prototype.get=function(A){if(A instanceof ir)return A;if(this._allKeys.has(A))return this._allKeys.get(A);var H=new ir(A,ir.JSC$12265_numberOfKeys);this._allKeys.set(A,H);return H};
_.nP.Object.defineProperties(jXp.prototype,{JSC$12269_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var dn=new jXp;var BxN=function(A,H,k){this.key=A;this.optional=H;this.visibility=k},n2C=function(A){return new BxN(A,!1,null)},fwW=[],$2A=function(A,H,k){this.key=A;
this.resolvedFactories=H;this.multiProvider=k},wDv=function(A,H,k,d){this.factory=A;
this.dependencies=H;this.providerClass=k;this.providerValue=d};var hq={},OM=function(A,H){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=H===void 0?null:H;A=_.r(A);for(H=A.next();!H.done;H=A.next())this.addProvider(H.value)};
_.q=OM.prototype;_.q.addProvider=function(A){this.keyIdToIndex.set(A.key.id,this.keyIds.length);this.providers.push(A);this.keyIds.push(A.key.id);this.objs.push(hq)};
_.q.resolve=function(A,H){H=H===void 0?JY0:H;return this._getByKey(dn.get(kr(A)),null,H)};
_.q._new=function(A){if(this.constructedKeyIds[A.key.id])throw U2v(this,A.key);this.constructedKeyIds[A.key.id]=!0;return this._instantiateProvider(A)};
_.q._instantiateProvider=function(A){if(A.multiProvider){for(var H=Array(A.resolvedFactories.length),k=0;k<A.resolvedFactories.length;++k)H[k]=this._instantiate(A,A.resolvedFactories[k]);return H}return this._instantiate(A,A.resolvedFactories[0])};
_.q._instantiate=function(A,H){var k=this,d=H.factory;try{var W=H.dependencies.map(function(u){return k._getByReflectiveDependency(u)})}catch(u){throw u.addKey&&u.addKey(this,A.key),u;
}try{var z=d.apply(null,_.fV(W))}catch(u){throw lwV(this,u,A.key);}return z};
_.q._getByReflectiveDependency=function(A){return this._getByKey(A.key,A.visibility,A.optional?null:JY0)};
_.q._getByKey=function(A,H,k){return A===I_w?this:H instanceof rqV?this._getByKeySelf(A,k):this._getByKeyDefault(A,k,H)};
_.q._getObjByKeyId=function(A){for(var H=0;H<this.keyIds.length;H++)if(this.keyIds[H]===A)return this.objs[H]===hq&&(this.objs[H]=this._new(this.providers[H])),this.objs[H];return hq};
_.q._throwOrNull=function(A,H){if(H!==JY0)return H;throw E2N(this,A);};
_.q._getByKeySelf=function(A,H){var k=this._getObjByKeyId(A.id);return k!==hq?k:this._throwOrNull(A,H)};
_.q._getByKeyDefault=function(A,H,k){for(var d=k=k instanceof uRI?this.parent:this;k instanceof OM;){var W=k._getObjByKeyId(A.id);if(W!==hq)return W;k=k.parent}W=void 0;if(k!==null)try{var z=k.resolve(A.token,H);if(z!==hq)return z}catch(u){W=u}if(!(d instanceof OM&&x_b(A.token))){if(W)throw W;return this._throwOrNull(A,H)}for(z=d;z.parent instanceof OM;)z=z.parent;z.addProvider(AqQ({provide:A.token,useClass:A.token}));return z.resolve(A.token,H)};
_.q.toString=function(){return this.displayName};
_.nP.Object.defineProperties(OM.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+e1b(this,function(A){return' "'+A.key.displayName+'" '}).join(", ")+"])"}}});
var I_w=dn.get(kr(gVA));(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 Y8Z=globalThis.XRegExp;var Pp1=-1,G5A=function(A){addEventListener("pageshow",function(H){H.persisted&&(Pp1=H.timeStamp,A(H))},!0)};var XZJ=function(A,H,k){var d=F9A,W,z;return function(u){if(H.value>=0&&(u||k)){var B;if((z=H.value-((B=W)!=null?B:0))||W===void 0)W=H.value,H.delta=z,u=H.value,H.rating=u>d[1]?"poor":u>d[0]?"needs-improvement":"good",A(H)}}};var DJw=function(A){requestAnimationFrame(function(){return requestAnimationFrame(function(){return A()})})};var S8Q=function(){var A=performance.getEntriesByType("navigation")[0];if(A&&A.responseStart>0&&A.responseStart<performance.now())return A};var Cpw=function(){var A,H;return(H=(A=S8Q())==null?void 0:A.activationStart)!=null?H:0};var Rq=-1,K9w=new Set,a_i=function(A){if(document.visibilityState==="hidden"){if(A.type==="visibilitychange")for(var H=_.r(K9w),k=H.next();!k.done;k=H.next())k=k.value,k();isFinite(Rq)||(Rq=A.type==="visibilitychange"?A.timeStamp:0,removeEventListener("prerenderingchange",a_i,!0))}},cYQ=function(){if(Rq<0){var A=Cpw(),H,k;
Rq=(k=document.prerendering?void 0:(H=globalThis.performance.getEntriesByType("visibility-state").filter(function(d){return d.name==="hidden"&&d.startTime>A})[0])==null?void 0:H.startTime)!=null?k:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",a_i,!0);addEventListener("prerenderingchange",a_i,!0);G5A(function(){setTimeout(function(){Rq=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return Rq},
onHidden:function(d){K9w.add(d)}}};var pZw=function(){var A=A===void 0?-1:A;var H=S8Q(),k="navigate";Pp1>=0?k="back-forward-cache":H&&(document.prerendering||Cpw()>0?k="prerender":document.wasDiscarded?k="restore":H.type&&(k=H.type.replace(/_/g,"-")));return{name:"LCP",value:A,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:k}};var h1I=new WeakMap;var QXG=function(A){var H=H===void 0?{}:H;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var k=new PerformanceObserver(function(d){Promise.resolve().then(function(){A(d.getEntries())})});
k.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},H));return k}}catch(d){}};var VaJ=function(A){var H=!1;return function(){H||(A(),H=!0)}};var EV0=function(A){document.prerendering?addEventListener("prerenderingchange",function(){return A()},!0):A()};var UJQ=function(A){var H=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?A():(A=VaJ(A),addEventListener("visibilitychange",A,{once:!0,capture:!0}),H(function(){A();removeEventListener("visibilitychange",A,{capture:!0})}))};var iIl=function(){};
iIl.prototype._processEntry=function(A){var H;(H=this._onBeforeProcessingEntry)==null||H.call(this,A)};var F9A=[2500,4E3],Szm=function(A){var H=H===void 0?{}:H;EV0(function(){var k=cYQ(),d=pZw(),W=OIW(H),z=function(J){H.reportAllChanges||(J=J.slice(-1));J=_.r(J);for(var g=J.next();!g.done;g=J.next())g=g.value,W._processEntry(g),g.startTime<k.firstHiddenTime&&(d.value=Math.max(g.startTime-Cpw(),0),d.entries=[g],B())},u=QXG(z);
if(u){var B=XZJ(A,d,H.reportAllChanges);for(var h=VaJ(function(){z(u.takeRecords());u.disconnect();B(!0)}),O=function(J){J.isTrusted&&(UJQ(h),removeEventListener(J.type,O,{capture:!0}))},T=_.r(["keydown",
"click","visibilitychange"]),m=T.next();!m.done;m=T.next())addEventListener(m.value,O,{capture:!0});G5A(function(J){d=pZw();B=XZJ(A,d,H.reportAllChanges);DJw(function(){d.value=performance.now()-J.timeStamp;B(!0)})})}})};var l_j;var tap;_.t=function(){return tap!==void 0?tap:tap=document.createElement("template")};
document.head.appendChild(_.t().content);var NdG;_.uy({_template:function(){if(NdG!==void 0)return NdG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
var H=A.content,k=H.insertBefore;l_j===void 0&&(l_j=document.createElement("template"));var d=l_j;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return NdG=A},
is:"tp-yt-app-toolbar"});var Maw;var nVw;_.Tl=function(){};
_.Tl=_.uy({_template:function(){if(nVw!==void 0)return nVw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Maw===void 0&&(Maw=document.createElement("template"));var d=Maw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return nVw=A},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Tl.instance||(_.Tl.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(A){this._text===A&&(A+="\u00a0");this._text="";this.async(function(){this._text=A},this.timeout)},
_onIronAnnounce:function(A){A.detail&&A.detail.text&&this.announce(A.detail.text)}});
_.Tl.instance=null;_.Tl.requestAvailability=function(){_.Tl.instance||(_.Tl.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Tl.instance):document.addEventListener("load",function(){document.body.appendChild(_.Tl.instance)})};var ZXA;var f_J;/*

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

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 mm,kjw,dBA;mm=Element.prototype;kjw=mm.matches||mm.matchesSelector||mm.mozMatchesSelector||mm.msMatchesSelector||mm.oMatchesSelector||mm.webkitMatchesSelector;dBA=function(){};
_.zZi=function(A){var H=WNA,k=[];return H._collectTabbableNodes(A,k)?H._sortByTabIndex(k):k};
_.q=dBA.prototype;_.q.isFocusable=function(A){return kjw.call(A,"input, select, textarea, button, object")?kjw.call(A,":not([disabled])"):kjw.call(A,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.q._normalizedTabIndex=function(A){return this.isFocusable(A)?(A=A.getAttribute("tabindex")||0,Number(A)):-1};
_.q._collectTabbableNodes=function(A,H){if(A.nodeType!==Node.ELEMENT_NODE||!this._isVisible(A))return!1;var k=this._normalizedTabIndex(A),d=k>0;k>=0&&H.push(A);if(A.localName==="content"||A.localName==="slot")k=_.WB(A).getDistributedNodes();else{var W;k=((W=_.WB(A).shadowRoot)!=null?W:_.WB(A.root||A)).children}for(A=0;A<k.length;A++)d=this._collectTabbableNodes(k[A],H)||d;return d};
_.q._isVisible=function(A){var H=A.style;return H.visibility!=="hidden"&&H.display!=="none"?(H=window.getComputedStyle(A),H.visibility!=="hidden"&&H.display!=="none"):!1};
_.q._sortByTabIndex=function(A){var H=A.length;if(H<2)return A;var k=Math.ceil(H/2);H=this._sortByTabIndex(A.slice(0,k));A=this._sortByTabIndex(A.slice(k));return this._mergeSortByTabIndex(H,A)};
_.q._mergeSortByTabIndex=function(A,H){for(var k=[];A.length>0&&H.length>0;)this._hasLowerTabOrder(A[0],H[0])?k.push(H.shift()):k.push(A.shift());return k.concat(A,H)};
_.q._hasLowerTabOrder=function(A,H){A=Math.max(A.tabIndex,0);H=Math.max(H.tabIndex,0);return A===0||H===0?H>A:A>H};
var WNA=new dBA;var qXG;var rKw;_.uy({_template:function(){if(rKw!==void 0)return rKw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;qXG===void 0&&(qXG=document.createElement("template"));var d=qXG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return rKw=A},
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&&_.WB(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.WB(this.parentNode).removeChild(this)},
_onTransitionend:function(A){A&&A.target===this&&this.complete()},
_openedChanged:function(A){A?this.prepare():(A=window.getComputedStyle(this),A.transitionDuration!=="0s"&&A.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 Jq=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Pu(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)};
Jq.prototype._bringOverlayAtIndexToFront=function(A){var H=this._overlays[A];if(H){var k=this._overlays.length-1,d=this._overlays[k];d&&this._shouldBeBehindOverlay(H,d)&&k--;if(!(A>=k)){d=Math.max(this._getZ(_.uoj(this)),this._minimumZ);for(this._getZ(H)<=d&&this._applyOverlayZ(H,d);A<k;)this._overlays[A]=this._overlays[A+1],A++;this._overlays[k]=H}}};
Jq.prototype.addOverlay=function(A){var H=this._overlays.indexOf(A);if(H>=0)this._bringOverlayAtIndexToFront(H);else{H=this._overlays.length;var k=this._overlays[H-1],d=Math.max(this._getZ(k),this._minimumZ),W=this._getZ(A);k&&this._shouldBeBehindOverlay(A,k)&&(this._applyOverlayZ(k,d),H--,d=Math.max(this._getZ(this._overlays[H-1]),this._minimumZ));W<=d&&this._applyOverlayZ(A,d);this._overlays.splice(H,0,A)}this.trackBackdrop()};
Jq.prototype.removeOverlay=function(A){A=this._overlays.indexOf(A);A!==-1&&(this._overlays.splice(A,1),this.trackBackdrop())};
_.uoj=function(A){return A._overlays[A._overlays.length-1]};
_.q=Jq.prototype;_.q.trackBackdrop=function(){var A=this._overlayWithBackdrop();if(A||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(A)-1,this.backdropElement.opened=!!A,this.backdropElement.prepare()};
_.q._overlayWithBackdrop=function(){for(var A=this._overlays.length-1;A>=0;A--)if(this._overlays[A].withBackdrop)return this._overlays[A]};
_.q._getZ=function(A){var H=this._minimumZ;if(A){var k,d,W=Number(((k=A.hostElement)!=null?k:A).style.zIndex||window.getComputedStyle((d=A.hostElement)!=null?d:A).zIndex);W===W&&(H=W)}return H};
_.q._setZ=function(A,H){var k;((k=A.hostElement)!=null?k:A).style.zIndex=H};
_.q._applyOverlayZ=function(A,H){this._setZ(A,H+2)};
_.q._overlayInPath=function(A){A=A||[];for(var H=0;H<A.length;H++){var k=void 0;if(((k=A[H].polymerController)!=null?k:A[H])._manager===this)return A[H]}};
_.q._onCaptureClick=function(A){var H=this._overlays.length-1;if(H!==-1)for(var k=_.WB(A).path,d,W;(d=this._overlays[H])&&this._overlayInPath(k)!==((W=d.hostElement)!=null?W:d);)if(d._onCaptureClick(A),d.allowClickThrough)H--;else break};
_.q._onCaptureFocus=function(A){var H=_.uoj(this);H&&H._onCaptureFocus(A)};
_.q._onCaptureKeyDown=function(A){var H=_.uoj(this);H&&(_.fo.keyboardEventMatchesKeys(A,"esc")?H._onCaptureEsc(A):_.fo.keyboardEventMatchesKeys(A,"tab")&&H._onCaptureTab(A))};
_.q._shouldBeBehindOverlay=function(A,H){return!A.alwaysOnTop&&H.alwaysOnTop&&!H.contains(A)};
_.nP.Object.defineProperties(Jq.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 A=document.activeElement;A&&A instanceof Element!==!1||(A=document.body);for(;A.root&&_.WB(A.root).activeElement;)A=_.WB(A.root).activeElement;return A}}});
_.gx=new Jq;var R1V=0,Txl=0,m_A=null,JqV=[],zC=["wheel","mousewheel","DOMMouseScroll"],gtW;_.b("web_no_lock_on_touchstart_killswitch")&&(zC.push("touchstart"),zC.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;_.br={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:_.gx},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var A;return this._focusedChild||_.WB((A=this.hostElement)!=null?A:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var A;return _.zZi((A=this.hostElement)!=null?A: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 A;this._observer=_.WB((A=this.hostElement)!=null?A:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var A;_.WB((A=this.hostElement)!=null?A:this).unobserveNodes(this._observer)}this._observer=null;for(var H in this.__rafs)this.__rafs[H]!==null&&cancelAnimationFrame(this.__rafs[H]);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(A){this.fire("iron-overlay-canceled",A,{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 A;((A=this.hostElement)!=null?A:this).style.outline="none";var H;((H=this.hostElement)!=null?H:this).style.display="none"}},
_openedChanged:function(A){if(A){var H;((H=this.hostElement)!=null?H:this).removeAttribute("aria-hidden")}else{var k;((k=this.hostElement)!=null?k: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 A;if(this.withBackdrop&&!((A=this.hostElement)!=null?A:this).hasAttribute("tabindex")){var H;((H=this.hostElement)!=null?H:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var k;((k=this.hostElement)!=null?k: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 A;((A=this.hostElement)!=null?A:this).style.display="none";var H;((H=this.hostElement)!=null?H:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var A,H;((A=this.hostElement)!=null?A:this).style.transition=((H=this.hostElement)!=null?H:this).style.webkitTransition="none";var k,d;((k=this.hostElement)!=null?k:this).style.transform=((d=this.hostElement)!=null?d:this).style.webkitTransform="none";var W;((W=this.hostElement)!=null?W:this).style.display=""},
_finishPositioning:function(){var A;((A=this.hostElement)!=null?A:this).style.display="none";this.scrollTop=this.scrollTop;var H,k;((H=this.hostElement)!=null?H:this).style.transition=((k=this.hostElement)!=null?k:this).style.webkitTransition="";var d,W;((d=this.hostElement)!=null?d:this).style.transform=((W=this.hostElement)!=null?W: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 A=this._manager.deepActiveElement,H;if(!(H=A===document.body))a:{for(;A;A=A.assignedSlot||A.parentNode||A.host)if(A===this){H=!0;break a}H=!1}H&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(A){this.noCancelOnOutsideClick||this.cancel(A)},
_onCaptureFocus:function(A){if(this.withBackdrop){var H=_.WB(A).path;H.indexOf(this)===-1?(A.stopPropagation(),this._applyFocus()):this._focusedChild=H[0]}},
_onCaptureEsc:function(A){this.noCancelOnEscKey||this.cancel(A)},
_onCaptureTab:function(A){if(this.withBackdrop){this.__ensureFirstLastFocusables();var H=A.shiftKey,k=H?this.__firstFocusableNode:this.__lastFocusableNode;H=H?this.__lastFocusableNode:this.__firstFocusableNode;if(k===H)k=!0;else{var d=this._manager.deepActiveElement;k=d===k||d===this}k&&(A.preventDefault(),this._focusedChild=H,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 A=this._focusableNodes;this.__firstFocusableNode=A[0];this.__lastFocusableNode=A[A.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(A,H){var k=this.__rafs;k[A]!==null&&cancelAnimationFrame(k[A]);k[A]=requestAnimationFrame(function(){k[A]=null;H.call(this)}.bind(this))},
__updateScrollObservers:function(A,H,k){A&&H&&this.__isValidScrollAction(k)?(k==="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),gtW=_._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()):(A=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),A!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(A,1),gtW=_._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(CP)for(var A=this;A;)A.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&A.host&&this.__rootNodes.push(A),A=A.host||A.assignedSlot||A.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(H){H.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(A){A.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(A){return A==="lock"||A==="refit"||A==="cancel"},
__onCaptureScroll:function(A){if(!(this.__isAnimating||_.WB(A).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(A)}},
__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)}};
_.LI=[sMZ,_.WU,_.br];_.uy({_template:function(){if(AKw!==void 0)return AKw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;$Jk===void 0&&($Jk=document.createElement("template"));var d=$Jk;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return AKw=A},
is:"tp-yt-iron-dropdown",behaviors:[_.w1,_.fo,_.LI,vcG],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 A=_.WB(this.$.content).getDistributedNodes(),H=0,k=A.length;H<k;H++)if(A[H].nodeType===Node.ELEMENT_NODE)return A[H]},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(),_.br._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.br._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.br._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var A=this.containedElement,H=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),k=0;k<H.length;k++)H[k].node=A;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(A){this._readied&&(A?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var A=this.focusTarget||this.containedElement;A&&this.opened&&!this.noAutoFocus?A.focus():_.br._applyFocus.apply(this,arguments)}});var BS1;var eZN;/*

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 xBA=new _.HU({type:"iconset"});
_.uy({_template:function(){if(eZN!==void 0)return eZN;var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;BS1===void 0&&(BS1=document.createElement("template"));
var d=BS1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return eZN=A},
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(A){A=(A||"").split(":");this._iconName=A.pop();this._iconsetName=A.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&&_.WB(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=xBA.byKey(this._iconsetName)){var A=this._iconset.applyIcon(this,this._iconName,this.theme);A&&A.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,_.WB(this.root).appendChild(this._img)}});var iO1;var hZw;_.uy({_template:function(){if(hZw!==void 0)return hZw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
var H=A.content,k=H.insertBefore;iO1===void 0&&(iO1=document.createElement("template"));var d=iO1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return hZw=A},
is:"tp-yt-iron-input",behaviors:[_.kt],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(){_.Tl.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.WB(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.WB(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 A=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":A=/[0-9.,e-]/}return A},_bindValueChanged:function(A,H){H&&(A===void 0?H.value=null:A!==H.value&&(this.inputElement.value=A),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:A}))},
_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(A){var H=A.keyCode==19||A.keyCode==20||A.keyCode==45||A.keyCode==46||A.keyCode==144||A.keyCode==145||A.keyCode>32&&A.keyCode<41||A.keyCode>111&&A.keyCode<124;return!(A.keyCode==8||A.keyCode==9||A.keyCode==13||A.keyCode==27)&&!(A.charCode==0&&H)},
_onKeypress:function(A){if(this.allowedPattern||this.inputElement.type==="number"){var H=this._patternRegExp;if(H&&!(A.metaKey||A.ctrlKey||A.altKey)){this._patternAlreadyChecked=!0;var k=String.fromCharCode(A.charCode);this._isPrintable(A)&&!H.test(k)&&(A.preventDefault(),this._announceInvalidCharacter("Invalid character "+k+" not entered."))}}},
_checkPatternValidity:function(){var A=this._patternRegExp;if(!A)return!0;for(var H=0;H<this.inputElement.value.length;H++)if(!A.test(this.inputElement.value[H]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var A=this.inputElement.checkValidity();A&&(this.required&&this.bindValue===""?A=!1:this.hasValidator()&&(A=_.kt.validate.call(this,this.bindValue)));this.invalid=!A;this.fire("iron-input-validate");return A},
_announceInvalidCharacter:function(A){this.fire("iron-announce",{text:A})},
_computeValue:function(A){return A}});var OON;var RZA;var TSw=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),mB0=TSw&&TSw[1]>=8;
_.uy({_template:function(){if(RZA!==void 0)return RZA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;OON===void 0&&(OON=document.createElement("template"));var d=OON;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return RZA=A},
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:[p_I,_.WU,_.LWZ,Lu1],_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 _.WB(_.WB(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var A=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,A-this._physicalCount)},set _virtualStart(A){A=this._clamp(A,0,this._maxVirtualStart);this.grid&&(A-=A%this._itemsPerRow);this._virtualStartVal=A},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(A){A%=this._physicalCount;A<0&&(A=this._physicalCount+A);this.grid&&(A-=A%this._itemsPerRow);this._physicalStartVal=A},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(A){this._physicalCountVal=A},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 A=this._firstVisibleIndexVal;if(A==null){var H=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
A=this._iterateItems(function(k,d){H+=this._getPhysicalSizeIncrement(k);if(H>this._scrollPosition)return this.grid?d-d%this._itemsPerRow:d;if(this.grid&&this._virtualCount-1===d)return d-d%this._itemsPerRow})||0}return A},
get lastVisibleIndex(){var A=this._lastVisibleIndexVal;if(A==null){if(this.grid)A=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var H=this._physicalTop+this._scrollOffset;this._iterateItems(function(k,d){H<this._scrollBottom&&(A=d);H+=this._getPhysicalSizeIncrement(k)})}this._lastVisibleIndexVal=A}return A},
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,_.zA);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(A){this.style.webkitOverflowScrolling=A===this?"touch":"";this.style.overflowY=A===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.zA)},
updateViewportBoundaries:function(){var A=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(A["padding-top"],10);this._isRTL=A.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var A=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),H=A-this._scrollPosition,k=H>=0;this._scrollPosition=A;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(H)>this._physicalSize&&this._physicalSize>0?(H-=this._scrollOffset,k=Math.round(H/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=k,this._physicalStart+=k,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(A=this._getReusables(k),k?(this._physicalTop=A.physicalTop,this._virtualStart+=A.indexes.length,this._physicalStart+=A.indexes.length):(this._virtualStart=this._virtualStart-A.indexes.length,this._physicalStart=this._physicalStart-A.indexes.length),this._update(A.indexes,k?null:A.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),XF))},
_getReusables:function(A){var H=[],k=this._hiddenContentSize*this._ratio,d=this._virtualStart,W=this._virtualEnd,z=this._physicalCount,u=this._physicalTop+this._scrollOffset;var B=this._physicalBottom+this._scrollOffset;var h=this._scrollPosition,O=this._scrollBottom;if(A){var T=this._physicalStart;B=h-u}else T=this._physicalEnd,B-=O;for(;;){var m=this._getPhysicalSizeIncrement(T);B-=m;if(H.length>=z||B<=k)break;if(A){if(W+H.length+1>=this._virtualCount)break;if(u+m>=h-this._scrollOffset)break;H.push(T);
u+=m;T=(T+1)%z}else{if(d-H.length<=0)break;if(u+this._physicalSize-m<=O)break;H.push(T);u-=m;T=T===0?z-1:T-1}}return{indexes:H,physicalTop:u-this._scrollOffset}},
_update:function(A,H){if(!(A&&A.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(A);this._updateMetrics(A);if(H)for(;H.length;)A=H.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(A);this._positionItems();this._updateScrollerSize()}},
_createPool:function(A){this._ensureTemplatized();var H,k=Array(A);for(H=0;H<A;H++){var d=this.stamp(null);k[H]=d.root.querySelector("*");this._itemsParent.appendChild(d.root)}return k},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(A){A=this._clamp(this._physicalCount+A,3,this._virtualCount-this._virtualStart);A=this._convertIndexToCompleteRow(A);if(this.grid){var H=A%this._itemsPerRow;H&&A-H<=this._physicalCount&&(A+=this._itemsPerRow);A-=H}A-=this._physicalCount;H=Math.round(this._physicalCount*.5);if(!(A<0)){if(A>0){H=window.performance.now();[].push.apply(this._physicalItems,this._createPool(A));for(var k=0;k<A;k++)this._physicalSizes.push(0);this._physicalCount+=A;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=A);this._update();this._templateCost=(window.performance.now()-H)/A;H=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||H===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,H)),d00):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,H),XF))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var A=this._getReusables(!0);this._physicalTop=A.physicalTop;this._virtualStart+=A.indexes.length;this._physicalStart+=A.indexes.length;this._update(A.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 A={__key__:!0};A[this.as]=!0;A[this.indexAs]=!0;A[this.selectedAs]=!0;A.tabIndex=!0;this._instanceProps=A;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(A,H){typeof H!=="undefined"&&(this.notifyResize(),_.Mr(),A&&this._updateGridMetrics())},
_itemsChanged:function(A){if(A.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,
_.zA);else if(A.path==="items.splices"){this._adjustVirtualIndex(A.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(A.value.indexSplices.some(function(k){return k.addedCount>0||k.removed.length>0})){var H=this._getActiveElement();
this.contains(H)&&H.blur()}A=A.value.indexSplices.some(function(k){return k.index+k.addedCount>=this._virtualStart&&k.index<=this._virtualEnd},this);
this._isClientFull()&&!A||this._debounce("_render",this._render,_.zA)}else A.path!=="items.length"&&this._forwardItemPath(A.path,A.value)},
_forwardItemPath:function(A,H){A=A.slice(6);var k=A.indexOf(".");k===-1&&(k=A.length);var d,W=this.modelForElement(this._offscreenFocusedItem),z=parseInt(A.substring(0,k),10);if(d=this._isIndexRendered(z)){var u=this._getPhysicalIndex(z);var B=this.modelForElement(this._physicalItems[u])}else W&&(B=W);B&&B[this.indexAs]===z&&(A=A.substring(k+1),A=this.as+(A?"."+A:""),B._setPendingPropertyOrPath(A,H,!1,!0),B._flushProperties&&B._flushProperties(),d&&(this._updateMetrics([u]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(A){A.forEach(function(H){H.removed.forEach(this._removeItem,this);H.index<this._virtualStart&&(H=Math.max(H.addedCount-H.removed.length,H.index-this._virtualStart),this._virtualStart+=H,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=H))},this)},
_removeItem:function(A){this.$.selector.deselect(A);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===A&&this._removeFocusedItem()},
_iterateItems:function(A,H){var k,d;if(arguments.length===2&&H)for(d=0;d<H.length;d++){var W=H[d];var z=this._computeVidx(W);if((k=A.call(this,W,z))!=null)return k}else{W=this._physicalStart;for(z=this._virtualStart;W<this._physicalCount;W++,z++)if((k=A.call(this,W,z))!=null)return k;for(W=0;W<this._physicalStart;W++,z++)if((k=A.call(this,W,z))!=null)return k}},
_computeVidx:function(A){return A>=this._physicalStart?this._virtualStart+(A-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+A},
_assignModels:function(A){this._iterateItems(function(H,k){var d=this._physicalItems[H],W=this.items&&this.items[k];if(W!=null){var z=this.modelForElement(d);z.__key__=null;this._forwardProperty(z,this.as,W);this._forwardProperty(z,this.selectedAs,this.$.selector.isSelected(W));this._forwardProperty(z,this.indexAs,k);this._forwardProperty(z,"tabIndex",this._focusedVirtualIndex===k?0:-1);this._physicalIndexForKey[z.__key__]=H;z._flushProperties&&z._flushProperties(!0);d.removeAttribute("hidden")}else d.setAttribute("hidden",
"")},A)},
_updateMetrics:function(A){_.Mr();var H=0,k=0,d=this._physicalAverageCount,W=this._physicalAverage;this._iterateItems(function(z){k+=this._physicalSizes[z];this._physicalSizes[z]=this._physicalItems[z].offsetHeight;H+=this._physicalSizes[z];this._physicalAverageCount+=this._physicalSizes[z]?1:0},A);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(k=this._itemsPerRow===1?k:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+H-k,this._itemsPerRow=1);this._physicalAverageCount!==d&&(this._physicalAverage=Math.round((W*d+H)/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 A=this._physicalTop;if(this.grid){var H=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(k,d){var W=Math.floor(d%this._itemsPerRow*this._itemWidth+H);this._isRTL&&(W*=-1);this.translate3d(W+"px",A+"px",0,this._physicalItems[k]);this._shouldRenderNextRow(d)&&(A+=this._rowHeight)})}else this._iterateItems(function(k){this.translate3d(0,A+"px",0,this._physicalItems[k]);
A+=this._physicalSizes[k]})},
_getPhysicalSizeIncrement:function(A){return this.grid?this._computeVidx(A)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[A]},
_shouldRenderNextRow:function(A){return A%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var A=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(A!==0){this._physicalTop=this._physicalTop-A;var H=this._scrollPosition;!mB0&&H>0&&this._resetScrollPosition(H-A)}},
_resetScrollPosition:function(A){this.scrollTarget&&A>=0&&(this._scrollPosition=this._scrollTop=A)},
_updateScrollerSize:function(A){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((A=(A=(A=A||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(A){return this.scrollToIndex(this.items.indexOf(A))},
scrollToIndex:function(A){if(!(typeof A!=="number"||A<0||A>this.items.length-1)&&(_.Mr(),this._physicalCount!==0)){A=this._clamp(A,0,this._virtualCount-1);if(!this._isIndexRendered(A)||A>=this._maxVirtualStart)this._virtualStart=this.grid?A-this._itemsPerRow*2:A-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var H=this._physicalStart,k=this._virtualStart,d=0,W=this._hiddenContentSize;k<A&&
d<=W;)d+=this._getPhysicalSizeIncrement(H),H=(H+1)%this._physicalCount,k++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+d);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)},_.zA)},
selectItem:function(A){return this.selectIndex(this.items.indexOf(A))},
selectIndex:function(A){if(!(A<0||A>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(A)){var H=this.modelForElement(this._physicalItems[this._getPhysicalIndex(A)]);H&&(H[this.selectedAs]=!0);this.updateSizeForIndex(A)}this.$.selector.selectIndex(A)}},
deselectItem:function(A){return this.deselectIndex(this.items.indexOf(A))},
deselectIndex:function(A){A<0||A>=this._virtualCount||(this._isIndexRendered(A)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(A)])[this.selectedAs]=!1,this.updateSizeForIndex(A)),this.$.selector.deselectIndex(A))},
toggleSelectionForItem:function(A){return this.toggleSelectionForIndex(this.items.indexOf(A))},
toggleSelectionForIndex:function(A){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(A):this.$.selector.isSelected(this.items[A]))?this.deselectIndex(A):this.selectIndex(A)},
clearSelection:function(){this._iterateItems(function(A){this.modelForElement(this._physicalItems[A])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(A){(A?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(A){var H=this.modelForElement(A.target);if(H){var k=_.WB(A).path[0];A=this._getActiveElement();var d=this._physicalItems[this._getPhysicalIndex(H[this.indexAs])];if(k.localName!=="input"&&k.localName!=="button"&&k.localName!=="select"){k=H.tabIndex;H.tabIndex=-100;var W=A?A.tabIndex:-1;H.tabIndex=k;A&&d!==A&&d.contains(A)&&W!==-100||this.toggleSelectionForItem(H[this.as])}}},
_multiSelectionChanged:function(A){this.clearSelection();this.$.selector.multi=A},
updateSizeForItem:function(A){return this.updateSizeForIndex(this.items.indexOf(A))},
updateSizeForIndex:function(A){if(!this._isIndexRendered(A))return null;this._updateMetrics([this._getPhysicalIndex(A)]);this._positionItems();return null},
_manageFocus:function(){var A=this._focusedVirtualIndex;A>=0&&A<this._virtualCount?this._isIndexRendered(A)?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(A){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(A/this._itemsPerRow)*this._itemsPerRow:A},
_isIndexRendered:function(A){return A>=this._virtualStart&&A<=this._virtualEnd},
_isIndexVisible:function(A){return A>=this.firstVisibleIndex&&A<=this.lastVisibleIndex},
_getPhysicalIndex:function(A){return(this._physicalStart+(A-this._virtualStart))%this._physicalCount},
focusItem:function(A){this._focusPhysicalItem(A)},
_focusPhysicalItem:function(A){if(!(A<0||A>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(A)||this.scrollToIndex(A);var H=this._physicalItems[this._getPhysicalIndex(A)],k=this.modelForElement(H),d;k.tabIndex=-100;H.tabIndex===-100&&(d=H);d||(d=_.WB(H).querySelector('[tabindex="-100"]'));k.tabIndex=0;this._focusedVirtualIndex=A;d&&d.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 A=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var H=this.stamp(null);this._focusBackfillItem=H.root.querySelector("*");this._itemsParent.appendChild(H.root)}this._offscreenFocusedItem=this._physicalItems[A];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[A]=this._focusBackfillItem;this._focusedPhysicalIndex=A;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var A=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),H=this._physicalItems[A];if(H){var k=this.modelForElement(H),d=this.modelForElement(this._offscreenFocusedItem);k[this.as]===d[this.as]?(this._focusBackfillItem=H,k.tabIndex=-1,this._physicalItems[A]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(A){A=this.modelForElement(A.target);var H=this.modelForElement(this._focusedItem),k=this._offscreenFocusedItem!==null,d=this._focusedVirtualIndex;A&&(H===A?this._isIndexVisible(d)||this.scrollToIndex(d):(this._restoreFocusedItem(),H&&(H.tabIndex=-1),A.tabIndex=0,this._focusedVirtualIndex=d=A[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(d),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],k&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(A){switch(A.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&A.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&&A.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(A)}},
_clamp:function(A,H,k){return Math.min(k,Math.max(H,A))},
_debounce:function(A,H,k){this._debouncers=this._debouncers||{};this._debouncers[A]=_.E4(this._debouncers[A],k,H.bind(this));_.U4(this._debouncers[A])},
_forwardProperty:function(A,H,k){A._setPendingProperty(H,k)},
_forwardHostPropV2:function(A,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(k){k&&this.modelForElement(k).forwardHostProp(A,H)},this)},
_notifyInstancePropV2:function(A,H,k){$Lb(this.as,H)&&(A=A[this.indexAs],H==this.as&&(this.items[A]=k),this.notifyPath(e8(this.as,"items."+A,H),k))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(A,H,k){H.indexOf(this.as+".")===0&&this.notifyPath("items."+A.__key__+"."+H.slice(this.as.length+1),k)},
_forwardParentPath:function(A,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(k){k&&this.modelForElement(k).notifyPath(A,H)},this)},
_forwardParentProp:function(A,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(k){k&&(this.modelForElement(k)[A]=H)},this)},
_getActiveElement:function(){var A=this._itemsParent.node.domHost;return _.WB(A?A.root:document).activeElement},
_scrollTargetChanged:function(A,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(H)if(A==="document")this.scrollTarget=this._doc;else if(typeof A==="string"){var k,d;this.scrollTarget=(H=(d=(k=this.domHost)==null?void 0:k.polymerController)!=null?d:this.domHost)&&H.$?H.$[A]:_.WB(this.ownerDocument).querySelector("#"+A)}else this._isValidScrollTarget()&&(this._oldScrollTarget=A,this._toggleScrollListener(this._shouldHaveListener,A))}});var JKi;var gXA;var bOp=function(A,H,k,d){A-=k;H-=d;return Math.sqrt(A*A+H*H)},LNp=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
bIN.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Lmm=function(A){A.maxRadius=0;A.mouseDownStart=0;A.mouseUpStart=0;A.xStart=0;A.yStart=0;A.xEnd=0;A.yEnd=0;A.containerMetrics=new bIN(A.element)};
vtb.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var A=LNp()-this.mouseDownStart;this.mouseUpStart&&(A-=this.mouseUpElapsed);return A},get mouseUpElapsed(){return this.mouseUpStart?LNp()-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 A=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(A*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-A/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 A=this.radius/(this.containerMetrics.size/2);var H=this.xNow-this.containerMetrics.width/2;var k=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+H+"px, "+k+"px)";this.waveContainer.style.transform="translate3d("+H+"px, "+k+"px, 0)";this.wave.style.webkitTransform="scale("+A+","+A+")";this.wave.style.transform="scale3d("+A+","+A+",1)"},
downAction:function(A){var H=this.containerMetrics.width/2,k=this.containerMetrics.height/2;Lmm(this);this.mouseDownStart=LNp();this.center?(this.xStart=H,this.yStart=k):(this.xStart=A?A.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=A?A.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=H,this.yEnd=k);A=this.containerMetrics;H=this.xStart;k=this.yStart;this.maxRadius=Math.max(bOp(H,k,0,0),bOp(H,k,
A.width,0),bOp(H,k,0,A.height),bOp(H,k,A.width,A.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=LNp())},
remove:function(){_.WB(_.WB(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.uy({_template:function(){if(gXA!==void 0)return gXA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;JKi===void 0&&(JKi=document.createElement("template"));var d=JKi;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return gXA=A},
is:"tp-yt-paper-ripple",behaviors:[_.fo],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(){_.WB(this).parentNode.nodeType==11?this.keyEventTarget=_.WB(this).getOwnerRoot().host:this.keyEventTarget=_.WB(this).parentNode;var A=this.keyEventTarget;this.listen(A,"up","uiUpAction");this.listen(A,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(A){A.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var A=0;A<this.ripples.length;++A)if(!this.ripples[A].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(A){this.noink||this.downAction(A)},
downAction:function(A){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(A),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(A){this.noink||this.upAction(A)},
upAction:function(A){this.holdDown||(this.ripples.forEach(function(H){H.upAction(A)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var A=0;A<this.ripples.length;++A){var H=this.ripples[A];H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var A=new vtb(this);_.WB(this.$.waves).appendChild(A.waveContainer);this.$.background.style.backgroundColor=A.color;this.ripples.push(A);this._setAnimating(!0);return A},
removeRipple:function(A){var H=this.ripples.indexOf(A);H<0||(this.ripples.splice(H,1),A.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var A;for(A=0;A<this.ripples.length;++A){var H=this.ripples[A];H.draw();this.$.background.style.opacity=H.outerOpacity;H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}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(A,H){H!==void 0&&(A?this.downAction():this.upAction())}});var vU={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(A){oS._downHandler.call(this,A);this.pressed&&this.ensureRipple(A)},
ensureRipple:function(A){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var H=this._rippleContainer||this.root;H&&_.WB(H).appendChild(this._ripple);if(A){H=_.WB(this._rippleContainer||this);var k=_.WB(A).rootTarget;H.deepContains(k)&&this._ripple.uiDownAction(A)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(A){this.hasRipple()&&(this._ripple.noink=A)}};var vXi={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 A=1;this.disabled?A=0:this.active||this.pressed?A=4:this.receivedFocusFromKeyboard&&(A=3);this._setElevation(A)},
_computeKeyboardClass:function(A){this.toggleClass("keyboard-focus",A)},
_spaceKeyDownHandler:function(A){oS._spaceKeyDownHandler.call(this,A);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(A){oS._spaceKeyUpHandler.call(this,A);this.hasRipple()&&this._ripple.uiUpAction()}},yKp=[eep,
_.w1,vU,vXi];_.jMA={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(A){A&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=A)},
_createRipple:function(){var A=vU._createRipple();A.id="ink";A.setAttribute("center","");A.classList.add("circle");return A}};
_.II0=[eep,_.w1,vU,_.jMA];_.YXw=[_.II0,hep,{_checkedChanged:function(){i6A._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){vU._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var PP1;var Gj1;var FNJ=function(){};
_.q=FNJ.prototype;_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._buttonStateChanged=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._createRipple=function(){};
_.q._noinkChanged=function(){};
_.q._computeKeyboardClass=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
_.q._setElevation=function(){};
FNJ=_.uy({_template:function(){if(Gj1!==void 0)return Gj1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
var H=A.content,k=H.insertBefore;PP1===void 0&&(PP1=document.createElement("template"));var d=PP1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return Gj1=A},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[yKp],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?vXi._calculateElevation.apply(this):this._setElevation(0)}});var XJk;var DBQ;var SXw={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(A){_.b("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(A)},
_onDialogClickWrapped:function(A){_.b("dialog_behavior_no_tap_killswitch")||this._onDialogClick(A)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(A,H){H&&(A?(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(A){if(A){var H;((H=this.hostElement)!=null?H:this).setAttribute("aria-modal","true")}else{var k;((k=this.hostElement)!=null?k:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(A){this.closingReason=this.closingReason||{};this.closingReason.confirmed=A},
_onDialogClick:function(A){for(var H=_.WB(A).path,k=0,d,W=H.indexOf((d=this.hostElement)!=null?d:this);k<W;k++)if(d=H[k],d.hasAttribute&&(d.hasAttribute("dialog-dismiss")||d.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(d.hasAttribute("dialog-confirm"));this.close();A.stopPropagation();break}}},CPw=[_.LI,
SXw];var KNN=document.createElement("template");_.Y(KNN,'<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(KNN.content);var aIj=document.createElement("template");_.Y(aIj,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(aIj.content);_.uy({_template:function(){if(DBQ!==void 0)return DBQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
var H=A.content,k=H.insertBefore;XJk===void 0&&(XJk=document.createElement("template"));var d=XJk;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return DBQ=A},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[CPw,vcG],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 cKw;var pJ0;_.uy({_template:function(){if(pJ0!==void 0)return pJ0;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;cKw===void 0&&(cKw=document.createElement("template"));var d=cKw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return pJ0=A},
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 A,H,k;if(((A=window.ShadyDOM)==null?void 0:A.noPatch)!==!0&&((H=window.ShadyDOM)==null?void 0:H.noPatch)!=="on-demand"||((k=this.__shady_parentNode)==null?void 0:k.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(SXw)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var QMA=_.XO(['<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>']),VmN=_.Y6Z(QMA);VmN.setAttribute("style","display: none;");document.head.appendChild(VmN.content);var EXA;var UB0;var lI0;var tmw;_.uy({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[zl],configure:function(A){var H=A.node,k=H.getBoundingClientRect().height;return this._effect=new KeyframeEffect(H,[{height:k/2+"px"},{height:k+"px"}],this.timingFromConfig(A))}});
_.uy({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[zl],configure:function(A){var H=A.node,k=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:k/2+"px"},{width:k+"px"}],this.timingFromConfig(A))}});
_.uy({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[zl],configure:function(A){var H=A.node,k=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:k+"px"},{width:k-k/20+"px"}],this.timingFromConfig(A))}});
_.uy({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[zl],configure:function(A){var H=A.node,k=H.getBoundingClientRect().height;this.setPrefixedProperty(H,"transformOrigin","0 0");return this._effect=new KeyframeEffect(H,[{height:k+"px",transform:"translateY(0)"},{height:k/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(A))}});var yz={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},NSw=function(){};
_.q=NSw.prototype;_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._focusBlurHandler=function(){};
_.q._changedControlState=function(){};
_.q._setFocused=function(){};
NSw=_.uy({_template:function(){if(tmw!==void 0)return tmw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;lI0===void 0&&(lI0=document.createElement("template"));var d=lI0;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return tmw=A},
is:"tp-yt-paper-menu-button",behaviors:[_.fo,_.w1],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:yz.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:yz.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:yz.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 A=_.WB(this.$.content).getDistributedNodes(),H=0,k=A.length;H<k;H++)if(A[H].nodeType===Node.ELEMENT_NODE)return A[H]},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(A,H){A?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):H!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(A){_.w1._disabledChanged.apply(this,arguments);A&&this.opened&&this.close()},
__onIronOverlayCanceled:function(A){var H=this.$.trigger;_.WB(A.detail).path.indexOf(H)>-1&&A.preventDefault()}});
Object.keys(yz).forEach(function(A){NSw[A]=yz[A]});var Mmp=_.$2.IronButtonState,nXp=(0,_.su)(HTMLElement);
_.uy({_template:function(){if(UB0!==void 0)return UB0;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;EXA===void 0&&(EXA=document.createElement("template"));var d=EXA;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return UB0=A},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Mmp,_.w1,vU,_.Aq,_.kt],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(A){var H=(0,_.R0)(this);H.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:A});H.shadowRoot.appendChild(A);return nXp.prototype._attachDom.call(this,A)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var A=this.contentElement;A&&A.selectedItem&&this._setSelectedItem(A.selectedItem)},
get contentElement(){for(var A=_.WB(this.$.content).getDistributedNodes(),H=0,k=A.length;H<k;H++)if(A[H].nodeType===Node.ELEMENT_NODE)return A[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(A){this._setSelectedItem(A.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(A){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)===this&&this.open()},
_selectedItemChanged:function(A){var H="";A?H=A.label||A.getAttribute("label")||A.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(A,H){return H?H:A?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var A=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",A)},
_computeLabelClass:function(A,H,k){var d="label";if(A)k&&(d+=" label-is-hidden");else if(k||H)d+=" label-is-floating";return d},
_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 ZO1;var fIN;_.uy({is:"tp-yt-paper-icon-button",_template:function(){if(fIN!==void 0)return fIN;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;ZO1===void 0&&(ZO1=document.createElement("template"));var d=ZO1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return fIN=A},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.II0],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(A,H){var k=this.getAttribute("aria-label");k&&H!=k||this.setAttribute("aria-label",A)}});var wJJ;var oXA;_.jh=[eep,_.w1,{hostAttributes:{role:"option",tabindex:"0"}}];_.uy({_template:function(){if(oXA!==void 0)return oXA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;wJJ===void 0&&(wJJ=document.createElement("template"));var d=wJJ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return oXA=A},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.jh]});var $Bk;var AsA;var HfJ={attached:function(){this.fire("addon-attached")},
update:function(){}};var swQ=1,kkw=1,d3i=1,Wvw=[_.w1,_.fo,{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();!Ci&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(A,H){A?A=A+" "+H:A=H;return A},
_onAddonAttached:function(A){A=_.WB(A).rootTarget;if(A.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,A.id);else{var H="paper-input-add-on-"+kkw++;A.id=H;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,H)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(A){_.w1._focusBlurHandler.call(this,A);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var A=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",A);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(A){try{var H=this.inputElement.selectionStart;this.value=A;this.inputElement.selectionStart=H;this.inputElement.selectionEnd=H}catch(k){this.value=A}},
_computeAlwaysFloatLabel:function(A,H){return H||A},
_updateAriaLabelledBy:function(){var A=_.WB(this.root).querySelector("label");if(A){if(A.id)var H=A.id;else H="paper-input-label-"+swQ++,A.id=H;this._ariaLabelledBy=H}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+d3i++)},
_onChange:function(A){this.shadowRoot&&this.fire(A.type,{sourceEvent:A},{node:this,bubbles:A.bubbles,cancelable:A.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var A=document.activeElement;A instanceof HTMLElement&&A!==document.body&&A!==document.documentElement||this._focusableElement.focus()}}}];var zkA;var qxA;_.uy({_template:function(){if(qxA!==void 0)return qxA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;zkA===void 0&&(zkA=document.createElement("template"));var d=zkA;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return qxA=A},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[HfJ],properties:{_charCounterStr:{type:String,value:"0"}},update:function(A){if(A.inputElement){A.value=A.value||"";var H=A.value.toString().length.toString();A.inputElement.hasAttribute("maxlength")&&(H+="/"+A.inputElement.getAttribute("maxlength"));this._charCounterStr=H}}});var rsw;var ukA;_.uy({_template:function(){if(ukA!==void 0)return ukA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;rsw===void 0&&(rsw=document.createElement("template"));var d=rsw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return ukA=A},
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 kY(this.attrForValue)},get _inputElement(){return _.WB(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(A){this._addons||(this._addons=[]);A=A.target;this._addons.indexOf(A)===-1&&(this._addons.push(A),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(A){this._handleValueAndAutoValidate(A.target)},
_onValueChanged:function(A){var H=A.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,H.value===void 0||H.value===""))return;this._handleValueAndAutoValidate(A.target)},
_handleValue:function(A){var H=this._inputElementValue;H||H===0||A.type==="number"&&!A.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:A,value:H,invalid:this.invalid})},
_handleValueAndAutoValidate:function(A){this.autoValidate&&A&&(this.invalid=!(A.validate?A.validate(this._inputElementValue):A.checkValidity()));this._handleValue(A)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(A){if(this._addons)for(var H,k=0;H=this._addons[k];k++)H.update(A)},
_computeInputContentClass:function(A,H,k,d,W){var z="input-content";A?(W&&(z+=" label-is-hidden"),d&&!this.noUnfloatedLabelError&&(z+=" is-invalid")):(A=this.querySelector("label"),H||W?(z+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",d?z+=" is-invalid":k&&(z+=" label-is-highlighted")):(A&&(this.$.labelAndInputContainer.style.position="relative"),d&&!this.noUnfloatedLabelError&&(z+=" is-invalid")));k&&(z+=" focused");return z},
_computeUnderlineClass:function(A,H){var k="underline";H?k+=" is-invalid":A&&(k+=" is-highlighted");return k},
_computeAddOnContentClass:function(A,H){var k="add-on-content";H?k+=" is-invalid":A&&(k+=" is-highlighted");return k}});var B3J;var ekN;_.uy({_template:function(){if(ekN!==void 0)return ekN;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;B3J===void 0&&(B3J=document.createElement("template"));var d=B3J;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return ekN=A},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[HfJ],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(A){this._setInvalid(A.invalid)}});_.uy({is:"tp-yt-paper-input",_template:function(){if(AsA!==void 0)return AsA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;$Bk===void 0&&($Bk=document.createElement("template"));var d=$Bk;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return AsA=A},
behaviors:[Wvw,_.Aq],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 x30;var ifp;_.uy({_template:function(){if(ifp!==void 0)return ifp;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=
A.content,k=H.insertBefore;x30===void 0&&(x30=document.createElement("template"));var d=x30;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return ifp=A},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.jh]});var hkZ;var OfN;_.uy({_template:function(){if(OfN!==void 0)return OfN;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
var H=A.content,k=H.insertBefore;hkZ===void 0&&(hkZ=document.createElement("template"));var d=hkZ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return OfN=A},
is:"tp-yt-paper-item-body"});var Rkj;var T3A;var m3w=function(){};
_.q=m3w.prototype;_.q.indexOf=function(){};
_.q.selectPrevious=function(){};
_.q.selectNext=function(){};
_.q.selectIndex=function(){};
_.q.forceSynchronousItemUpdate=function(){};
_.q._checkFallback=function(){};
_.q._addListener=function(){};
_.q._removeListener=function(){};
_.q._activateEventChanged=function(){};
_.q._updateItems=function(){};
_.q._selectSelected=function(){};
_.q._filterItem=function(){};
_.q._valueToItem=function(){};
_.q._valueToIndex=function(){};
_.q._indexToValue=function(){};
_.q._valueForItem=function(){};
_.q._observeItems=function(){};
_.q._itemActivate=function(){};
_.q.multiChanged=function(){};
_.q._updateAttrForSelected=function(){};
_.q._updateSelected=function(){};
_.q._selectMulti=function(){};
_.q._selectionChange=function(){};
_.q._toggleSelected=function(){};
_.q._valuesToItems=function(){};
_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q.select=function(){};
_.q._resetTabindices=function(){};
_.q._updateMultiselectable=function(){};
_.q._focusWithKeyboardEvent=function(){};
_.q._clearSearchText=function(){};
_.q._focusPrevious=function(){};
_.q._focusNext=function(){};
_.q._applySelection=function(){};
_.q._focusedItemChanged=function(){};
_.q._onIronItemsChanged=function(){};
_.q._onShiftTabDown=function(){};
_.q._onFocus=function(){};
_.q._onUpKey=function(){};
_.q._onDownKey=function(){};
_.q._onEscKey=function(){};
_.q._onKeydown=function(){};
_.q._activateHandler=function(){};
_.q._disabledChanged=function(){};
_.q._setSelectedItem=function(){};
_.q._setItems=function(){};
_.q._setSelectedItems=function(){};
_.q._setFocusedItem=function(){};
m3w=_.uy({_template:function(){if(T3A!==void 0)return T3A;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
var H=A.content,k=H.insertBefore;Rkj===void 0&&(Rkj=document.createElement("template"));var d=Rkj;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return T3A=A},
is:"tp-yt-paper-listbox",behaviors:[meA],hostAttributes:{role:"listbox"}});var Jsi;var gzw;var bfJ={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(A,H){return[A||H?"active":"",H?"cooldown":""].join(" ")},
__activeChanged:function(A,H){this.__setAriaHidden(!A);this.__coolingDown=!A&&H},
__altChanged:function(A){this.setAttribute("aria-label",A||"loading")},
__setAriaHidden:function(A){A?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.uy({_template:function(){if(gzw!==void 0)return gzw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;Jsi===void 0&&(Jsi=document.createElement("template"));var d=Jsi;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return gzw=A},
is:"tp-yt-paper-spinner",behaviors:[bfJ]});var Lvw;var vzJ;_.uy({_template:function(){if(vzJ!==void 0)return vzJ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;Lvw===void 0&&(Lvw=document.createElement("template"));var d=Lvw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return vzJ=A},
is:"tp-yt-paper-spinner-lite",behaviors:[bfJ]});var ysJ;var jwi;_.uy({_template:function(){if(jwi!==void 0)return jwi;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;ysJ===void 0&&(ysJ=document.createElement("template"));var d=ysJ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return jwi=A},
is:"tp-yt-paper-tab",behaviors:[_.w1,_.$2.IronButtonState,vU],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 A=_.WB(this).parentNode;return!!A&&!!A.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(A){if(this.link){var H=this.queryEffectiveChildren("a");H&&A.target!==H&&H.click()}}});var IOw;var Yxw;var PxG=_.XO(['<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>']),GkQ=_.Y6Z(PxG);document.head.appendChild(GkQ.content);_.uy({_template:function(){if(Yxw!==void 0)return Yxw;var A=document.createElement("template");_.Y(A,'\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<template is="dom-if" if="[[!slottedScrollButtons]]" class="style-scope tp-yt-paper-tabs">\n  <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</template>\n<template is="dom-if" if="[[slottedScrollButtons]]" class="style-scope tp-yt-paper-tabs">\n  <div class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown">\n    <slot name="left-scroll-button" class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</template>\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<template is="dom-if" if="[[!slottedScrollButtons]]" class="style-scope tp-yt-paper-tabs">\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</template>\n<template is="dom-if" if="[[slottedScrollButtons]]" class="style-scope tp-yt-paper-tabs">\n  <div class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown">\n    <slot name="right-scroll-button" class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</template>\n');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;IOw===void 0&&(IOw=document.createElement("template"));var d=IOw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return Yxw=A},
is:"tp-yt-paper-tabs",behaviors:[_.WU,_.gcN],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},slottedScrollButtons:{type:Boolean,value:!1}},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(A){_.WB(this).querySelectorAll("tp-yt-paper-tab").forEach(A?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(A){A.setAttribute("noink","")},
_removeNoinkAttribute:function(A){A.removeAttribute("noink")},
_computeScrollButtonClass:function(A,H,k,d){return!H||k?"hidden":A?d?"hidden":"not-visible":""},
_computeTabsContentClass:function(A,H){var k="tabs-content";A&&(k+=" scrollable");if(!A||H)k+=" fit-container";return k},
_computeSelectionBarClass:function(A,H){var k="selection-bar";A?k+=" hidden":H&&(k+=" align-bottom");return k},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(A){return""+A},
_onIronSelect:function(A){this._tabChanged(A.detail.item,this._previousTab);this._previousTab=A.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();_.dx._activateHandler.apply(this,arguments)},
_scheduleActivation:function(A,H){this._pendingActivationItem=A;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,H)},
_delayedActivationHandler:function(){var A=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;A.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(A){A.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(A,H){this.scrollable&&this._affectScroll(H&&-H.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(A){this.$.tabsContainer.scrollLeft+=A;A=this.$.tabsContainer.scrollLeft;this._leftHidden=A===0||this.hideScrollButtons;this._rightHidden=A===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(A,H){if(A){var k=this.$.tabsContent.getBoundingClientRect(),d=k.width,W=A.getBoundingClientRect();k=W.left-k.left;this._pos={width:this._calcPercent(W.width,d),left:this._calcPercent(k,d)};if(this.noSlide||H==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var z=H.getBoundingClientRect();H=this.items.indexOf(H);A=this.items.indexOf(A);this.$.selectionBar.classList.add("expand");
A=H<A;this._isRTL&&(A=!A);A?this._positionBar(this._calcPercent(W.left+W.width-z.left,d)-5,this._left):this._positionBar(this._calcPercent(z.left+z.width-W.left,d)-5,this._calcPercent(k,d)+5);this.scrollable&&this._scrollToSelectedIfNeeded(W.width,k)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(A,H){H-=this.$.tabsContainer.scrollLeft;H<0?this.$.tabsContainer.scrollLeft+=H:(H+=A-this.$.tabsContainer.offsetWidth,H>0&&(this.$.tabsContainer.scrollLeft+=H))},
_calcPercent:function(A,H){return 100*A/H},
_positionBar:function(A,H){A=A||0;H=H||0;this._width=A;this._left=H;this.transform("translateX("+H+"%) scaleX("+A/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var A=this.$.selectionBar.classList;A.contains("expand")?(A.remove("expand"),A.add("contract"),this._positionBar(this._pos.width,this._pos.left)):A.contains("contract")&&A.remove("contract")}});var FvJ;var XSA;_.uy({_template:function(){if(XSA!==void 0)return XSA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;FvJ===void 0&&(FvJ=document.createElement("template"));var d=FvJ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return XSA=A},
is:"tp-yt-paper-textarea",behaviors:[Wvw,_.Aq],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(A){this.$.input.textarea.selectionStart=A},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(A){this.$.input.textarea.selectionEnd=A},_ariaLabelledByChanged:function(A){this._focusableElement.setAttribute("aria-labelledby",A)},
_ariaDescribedByChanged:function(A){this._focusableElement.setAttribute("aria-describedby",A)},
get _focusableElement(){return this.inputElement.textarea}});var D31;var SxQ;/*

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 Cxw=function(){};
_.q=Cxw.prototype;_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._noinkChanged=function(){};
_.q._focusedChanged=function(){};
_.q.registered=function(){};
_.q._invalidChanged=function(){};
_.q.hasValidator=function(){};
_.q.validate=function(){};
_.q._getValidity=function(){};
_.q._requiredChanged=function(){};
_.q._valueChanged=function(){};
_.q._checkedChanged=function(){};
_.q._buttonStateChanged=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
Cxw=_.uy({is:"tp-yt-paper-toggle-button",_template:function(){if(SxQ!==void 0)return SxQ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;D31===void 0&&(D31=document.createElement("template"));var d=D31;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return SxQ=A},
behaviors:[_.YXw],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");_.No(this,function(){_.FF(this,"pan-y")})},
_ontrack:function(A){A=A.detail;A.state==="start"?this._trackStart(A):A.state==="track"?this._trackMove(A):A.state==="end"&&this._trackEnd(A)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(A){A=A.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+A:A)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+A:A));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 A=vU._createRipple();A.id="ink";A.setAttribute("recenters","");A.classList.add("circle","toggle-ink");return A}});var KvJ;var aO1;_.uy({_template:function(){if(aO1!==void 0)return aO1;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;KvJ===void 0&&(KvJ=document.createElement("template"));var d=KvJ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return aO1=A},
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 A=_.WB(this).parentNode,H=_.WB(this).getOwnerRoot(),k;this.for?k=_.WB(H).querySelector("#"+this.for):k=A.nodeType==Node.DOCUMENT_FRAGMENT_NODE?H.host:A;return k},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(A){A==="entry"?this.show():A==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.WB(this).textContent.trim()===""){for(var A=!0,H=_.WB(this).getEffectiveChildNodes(),k=0;k<H.length;k++)if(H[k].textContent.trim()!==""){A=!1;break}if(A)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 A=this.offset;this.marginTop!=14&&this.offset==14&&(A=this.marginTop);var H=this.offsetParent.getBoundingClientRect(),k=this._target.getBoundingClientRect(),d=this.getBoundingClientRect(),W=(k.width-d.width)/2,z=(k.height-d.height)/2,u=k.left-H.left,B=k.top-H.top;switch(this.position){case "top":var h=u+W;var O=B-d.height-A;break;case "bottom":h=u+W;O=B+k.height+A;break;case "left":h=u-d.width-A;O=B+z;break;case "right":h=u+k.width+
A,O=B+z}this.fitToVisibleBounds?(H.left+h+d.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,h)+"px",this.style.right="auto"),H.top+O+d.height>window.innerHeight?(this.style.bottom=H.height+"px",this.style.top="auto"):(this.style.top=Math.max(-H.top,O)+"px",this.style.bottom="auto")):(this.style.left=h+"px",this.style.top=O+"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(A){A!==500&&this.updateStyles({"--paper-tooltip-delay-in":A+"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(A){if(A==="entry"&&this.animationEntry!=="")return this.animationEntry;if(A==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[A]&&typeof this.animationConfig[A][0].name==="string"){if(this.animationConfig[A][0].timing&&this.animationConfig[A][0].timing.delay&&this.animationConfig[A][0].timing.delay!==0){var H=this.animationConfig[A][0].timing.delay;A==="entry"?this.updateStyles({"--paper-tooltip-delay-in":H+"ms"}):A==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":H+
"ms"})}return this.animationConfig[A][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 csw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(csw,_.OW);var pSG=_.Pz(csw,[0,_.lp]);var Iq=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Iq,_.OW);var QwQ=[3,4],VPA=[5,6];var Ezk=[0,QwQ,VPA,_.lP,-1,_.VV,_.tK,-1,A2w,HVJ];var U3N=_.Pz(Iq,Ezk),lOw=_.Ff(Ezk);var tPA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(tPA,_.OW);var N3p=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(N3p,_.OW);var MPw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(MPw,_.OW);var nz0=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(nz0,_.OW);var Zfw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Zfw,_.OW);var Yt=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Yt,_.OW);Yt.prototype.getSource=function(){return _.RX(this,1)};
Yt.prototype.getMessage=function(){return _.O8(this,4)};
Yt.prototype.getData=function(){return _.Af(this,Zfw,8)};var fOZ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(fOZ,_.OW);var PU=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(PU,_.OW);var Gl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Gl,_.OW);var FR=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(FR,_.OW);FR.prototype.getUrl=function(){return _.O8(this,1)};
FR.prototype.setUrl=function(A){return _.qC(this,1,A)};
FR.prototype.hasUrl=function(){return _.FG(_.kV(this,1))!=null};var wSA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(wSA,_.OW);var ozw=[3];var $3J=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I($3J,_.OW);var DD=function(A){var H=new $3J;return _.HL(H,2,A)};
$3J.prototype.getLanguage=function(){return m9(this,4,Sh)};
var A9G=function(A){var H=DD(1);return _.Cx(H,6,Sh,A)},Sh=[3,
4,5,6];var Hnw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Hnw,_.OW);var CI=function(A){var H=new Hnw;return _.HL(H,1,A)},KI=function(A,H){return _.Cx(A,2,sFw,H)},sFw=[2,
3,4,5];var kak=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(kak,_.OW);var aq=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(aq,_.OW);var dpi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(dpi,_.OW);var W7A=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(W7A,_.OW);var z8Z=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(z8Z,_.OW);var qhG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(qhG,_.OW);var r9G=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(r9G,_.OW);var uri=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(uri,_.OW);var cU=function(A){return _.Af(A,Gl,5)};var BtQ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(BtQ,_.OW);BtQ.prototype.getValue=function(){return ip(this,1)};var e8w=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(e8w,_.OW);var pI=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(pI,_.OW);pI.prototype.getMetadata=function(){return _.JY(this,qhG,7,Qz)};
pI.prototype.hasMetadata=function(){return _.WZ(this,qhG,7,Qz)};
var xpw=_.BUI(pI),Qz=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var Vz=function(A){this.JSC$12491_name_=A;this.files_=[];this.directories_=[];this.directoryMap_={}};
Vz.prototype.getName=function(){return this.JSC$12491_name_};var UM=function(A,H){this.callback_=H;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Vz("");inw(this,A,this.rootDirectory_);EM(this)},inw=function(A,H,k){for(var d=0;d<H.length;d++){var W=H[d];
W.isFile?(A.fileOps_++,W.file((0,_.WT)(A.handleFileSuccess_,A,k),(0,_.WT)(A.handleFileError_,A))):A.unscannedDirectories_.push(new h8w(W,k))}},EM=function(A){if(A.unscannedDirectories_.length>0&&A.directoryOps_<5&&!A.hasError_){A.directoryOps_++;
var H=A.unscannedDirectories_.shift(),k=H.entry,d=new Vz(k.name);H=H.parent;H.directoryMap_[d.getName()]=d;H.directories_.push(d);k=k.createReader();k.readEntries((0,_.WT)(A.handleDirectorySuccess_,A,k,d),(0,_.WT)(A.handleDirectoryError_,A))}A.directoryOps_!=0||A.fileOps_!=0||A.unscannedDirectories_.length!=0&&!A.hasError_||A.callback_(A.rootDirectory_.files_,A.rootDirectory_.directories_,A.hasError_)};
UM.prototype.handleDirectorySuccess_=function(A,H,k){inw(this,k,H);k.length==0?(this.directoryOps_--,EM(this)):A.readEntries((0,_.WT)(this.handleDirectorySuccess_,this,A,H),(0,_.WT)(this.handleDirectoryError_,this))};
UM.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;EM(this)};
UM.prototype.handleFileSuccess_=function(A,H){A.files_.push(H);this.fileOps_--;EM(this)};
UM.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;EM(this)};
var h8w=function(A,H){this.entry=A;this.parent=H};var lr=function(A){_.Is.call(this);_.Y3(A,"drop",this.onObjectsDropped_,!1,this);_.Y3(A,"dragenter",this.onFilesDragged_,!1,this);_.Y3(A,"dragover",this.onFilesDragged_,!1,this);_.Y3(A,"dragleave",this.onDragLeave_,!1,this);_.Y3(A,"dragend",this.onDragLeave_,!1,this)};
_.EK(lr,_.Is);var OnN=function(A,H){_.NZ.call(this,"f");this.files=A;this.directories=H};
_.EK(OnN,_.NZ);var R8p=function(){_.NZ.call(this,"h")};
_.EK(R8p,_.NZ);var Ttk=function(){_.NZ.call(this,"i")};
_.EK(Ttk,_.NZ);var mpi=function(){_.NZ.call(this,"g")};
_.EK(mpi,_.NZ);lr.prototype.onObjectsDropped_=function(A){var H=this;A.preventDefault();var k=A.event_.dataTransfer;if((A=k&&k.items)&&A.length>0&&A[0].webkitGetAsEntry){k=[];for(var d=[],W=0;W<A.length;W++){var z=A[W].webkitGetAsEntry();z?k.push(z):d.push(A[W])}new UM(k,function(u,B,h){h?H.dispatchEvent(new mpi("Error occurred while reading from the file system.")):H.dispatchEvent(new OnN(u,B,d))})}else(A=k&&k.files)&&this.dispatchEvent(new OnN(Array.from(A),[]))};
lr.prototype.onFilesDragged_=function(A){A.type==="dragenter"&&this.dispatchEvent(new R8p);A.preventDefault()};
lr.prototype.onDragLeave_=function(){this.dispatchEvent(new Ttk)};var J90=function(A,H){this.JSC$12514_name_=A;this.inputElement_=H};
J90.prototype.getName=function(){return this.JSC$12514_name_};
J90.prototype.getInputElement=function(){return this.inputElement_};var tq=function(A,H,k){H=H===void 0?"single_file":H;k=k===void 0?[]:k;_.Is.call(this);this.overlayTarget_=A;this.parentOverlay_=A!=null?A.parentNode:_.$g("scotty-overlay-parent");this.selectorType_=H;this.acceptTypes_=k;this.overlay_=gwA(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.I(tq,_.Is);
var gwA=function(A,H,k,d){var W=document.createElement("input");W.setAttribute("type","file");W.setAttribute("name","Filedata");_.Y3(W,"change",A.onFilesSelected_,!1,A);k==="multiple_file"&&(W.multiple="true");k==="single_directory"&&(W.webkitdirectory="true");d.length>0&&W.setAttribute("accept",d.join(","));W.style.position="absolute";W.style.overflow="hidden";W.style.height="0px";W.style.width="0px";W.style.opacity="0";W.setAttribute("aria-hidden","true");W.setAttribute("tabIndex",-1);if(A.overlayTarget_!=
null)return W.style.height=H.offsetHeight+"px",W.style.width=H.offsetWidth+"px",A.parentOverlay_&&(A.parentOverlay_.style.position="relative"),_.yZ(W,H),Gj(W,new _.Ft(H.offsetLeft,H.offsetTop)),W;A.parentOverlay_.appendChild(W);return W};
tq.prototype.click=function(){this.overlay_.click()};
tq.prototype.onFilesSelected_=function(A){a:{try{var H=(new XMLHttpRequest).upload!==void 0;break a}catch(O){}H=!1}if(H){var k;A=Array.from((k=A.target.files)!=null?k:[]);k=[];if(this.selectorType_==="single_directory"&&(_.HN||N4||_.s3)){k=new Vz("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(H=0;H<A.length;H++)for(var d=A[H],W=d.webkitRelativePath.split("/"),z=k,u=0;u<W.length;u++){var B=W[u];if(u==W.length-1){B!="."&&z.files_.push(d);break}var h=z.directoryMap_[B];h==void 0&&(B=
h=new Vz(B),z.directoryMap_[B.getName()]=B,z.directories_.push(B));z=h}k=k.directories_}this.dispatchEvent(new bnZ(A,k,null))}else A=A.target.value,A.match(/^c:\\fakepath\\/i)&&(A=A.substring(12)),this.dispatchEvent(new bnZ([],[],new J90(A,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=gwA(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var bnZ=function(A,H){_.NZ.call(this,"j");this.files=A;this.directories=H};
_.I(bnZ,_.NZ);var L7k=function(A){this.uploadUrl_=A};var vww=function(){_.Is.call(this)};
_.EK(vww,_.Is);var N_=function(A){_.NZ.call(this,A)};
_.EK(N_,_.NZ);var M_=function(A){_.NZ.call(this,A)};
_.EK(M_,_.NZ);var y9N=function(A,H,k,d,W){_.Is.call(this);k=document.createElement("form");k.setAttribute("method",H);k.setAttribute("enctype","multipart/form-data");k.setAttribute("encoding","multipart/form-data");H=document.createElement("input");H.setAttribute("type","hidden");H.setAttribute("name","metadata");H.setAttribute("value",W);k.appendChild(H);k.appendChild(d);this.JSC$12531_form_=k;A=new _.PB(A);_.VT(A,"upload_protocol","multipart");this.JSC$12531_url_=A.toString();this.JSC$12531_request_=new ug;this.state_=
"Ready";this.JSC$12531_errorDescription_=null;this.JSC$12531_eventHandler_=new _.qZ(this);_.ZL(this,this.JSC$12531_eventHandler_);this.JSC$12531_eventHandler_.listen(this.JSC$12531_request_,"success",this.onTransferSuccess_);this.JSC$12531_eventHandler_.listen(this.JSC$12531_request_,"error",this.onTransferError_)};
_.I(y9N,vww);_.q=y9N.prototype;_.q.run=function(){this.state_="Transferring";var A=this.JSC$12531_request_,H=this.JSC$12531_form_;if(A.JSC$11798_active_)throw Error("ue");var k=new _.PB(this.JSC$12531_url_||H.action);A.JSC$11798_form_=H;H=A.JSC$11798_form_;k=_.$p(k.toString());k!==void 0&&(H.action=k);C21(A)};
_.q.getResponseCode=function(){return null};
_.q.getResponseText=function(){return this.JSC$12531_request_&&this.JSC$12531_request_.getResponseText()||null};
_.q.JSC$30560_getErrorDescription=function(){return this.JSC$12531_errorDescription_};
_.q.cancel=function(){this.JSC$12531_request_&&this.JSC$12531_request_.abort();this.state_="Cancelled";this.dispatchEvent(new N_("o"))};
_.q.pause=function(){};
_.q.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new N_("l"))};
_.q.onTransferError_=function(){this.JSC$12531_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new N_("n"))};var nI=function(){_.g3.call(this)};
_.I(nI,_.g3);nI.prototype.createXhr=function(){var A=_.g3.prototype.createXhr.call(this);A.upload&&(A.upload.onprogress=(0,_.WT)(this.onProgress_,this));return A};
nI.prototype.onProgress_=function(A){this.dispatchEvent(A)};var jFw=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},YhQ=function(A,H){var k=A.attempt_+1;
if(A.maxAttempts_>0&&k>A.maxAttempts_)return!1;k==0?H():A.delayCallId_=Tk(function(){A.delayCallId_=null;H()},ItQ(A),A);
A.attempt_=k;return!0};
jFw.prototype.reset=function(){this.delayCallId_&&_.k8.clearTimeout(this.delayCallId_);this.attempt_=-1};
var ItQ=function(A){var H=250*Math.pow(2,A.attempt_);A.maxDelayMs_>=0&&(H=Math.min(H,A.maxDelayMs_));return H};var jqV=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var ZD=function(){_.Is.call(this);this.JSC$12541_request_=this.state_=null;this.JSC$12541_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12541_bytesTransferred_=0;this.retryIterator_=new jFw;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12541_errorDescription_=null;this.JSC$12541_eventHandler_=new _.qZ(this);_.ZL(this,this.JSC$12541_eventHandler_);this.JSC$12541_url_=this.blob_=null;this.JSC$12541_method_=void 0;this.chunkSize_=this.JSC$12541_metadata_=
this.JSC$12541_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12541_responseText_=this.JSC$12541_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.EK(ZD,vww);_.q=ZD.prototype;_.q.run=function(){fI(this)};
_.q.getResponseCode=function(){return this.JSC$12541_responseCode_};
_.q.getResponseText=function(){return this.JSC$12541_responseText_};
_.q.JSC$30560_getErrorDescription=function(){return this.JSC$12541_errorDescription_};
_.q.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12541_eventHandler_.removeAll();this.JSC$12541_request_&&this.JSC$12541_request_.abort();this.retryIterator_.reset();var A=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(A==="Upload"||A==="Query")A=new nI,A.JSC$10109_withCredentials_=this.JSC$12541_withCredentials_,A.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12541_bytesTransferred_=
0;this.dispatchEvent(new N_("o"))}};
_.q.pause=function(){this.pauseRequested_=!0};
var fI=function(A){var H=A.state_;A.pauseRequested_?(A.pauseRequested_=!1,A.stateAfterUnpausing_=H,A.state_="Paused"):YhQ(A.retryIterator_,function(){switch(A.state_){case "Start":A.JSC$12541_request_=new nI;var k=_.iK.clone(A.JSC$12541_headers_);A.blob_.size!=null&&(k["Content-Length"]=A.blob_.size);k=IDX(k);k["X-Goog-Upload-Protocol"]="resumable";k["X-Goog-Upload-Command"]="start";A.JSC$12541_eventHandler_.removeAll();A.JSC$12541_eventHandler_.listen(A.JSC$12541_request_,"complete",A.onStartComplete_);
A.JSC$12541_request_.JSC$10109_withCredentials_=A.JSC$12541_withCredentials_;A.JSC$12541_request_.send(A.JSC$12541_url_,A.JSC$12541_method_,A.JSC$12541_metadata_,k);A.lastCommandResponseCode_=null;A.dispatchEvent(new M_("q"));break;case "Upload":k=A.transferHandle_.uploadUrl_;var d=A.blob_.size;if(yxA()){var W=A.chunkSize_;var z=A.offset_+W>=d;d=vrG(A.blob_,A.offset_,z?d:A.offset_+W)}else A.offset_=0,d=A.blob_,z=!0;A.JSC$12541_request_=new nI;A.JSC$12541_request_.JSC$10109_withCredentials_=A.JSC$12541_withCredentials_;
A.JSC$12541_eventHandler_.removeAll();A.JSC$12541_eventHandler_.listen(A.JSC$12541_request_,"progress",A.onUploadProgress_);W=(0,_.WT)(A.JSC$12543_onUploadComplete_,A,A.offset_+d.size,z);A.JSC$12541_eventHandler_.listen(A.JSC$12541_request_,"complete",W);A.lastCommandResponseCode_=null;A.dispatchEvent(new M_("q"));z=Object.assign({},A.JSC$12541_headers_||{},{"X-Goog-Upload-Command":"upload"+(z?", finalize":""),"X-Goog-Upload-Offset":A.offset_});A.JSC$12541_request_.send(k,"POST",d,z);break;case "Query":A.JSC$12541_request_=
new nI;A.JSC$12541_eventHandler_.removeAll();A.JSC$12541_eventHandler_.listen(A.JSC$12541_request_,"complete",A.onQueryComplete_);k=Object.assign({},A.JSC$12541_headers_||{},{"X-Goog-Upload-Command":"query"});A.JSC$12541_request_.send(A.transferHandle_.uploadUrl_,"POST","",k);A.lastCommandResponseCode_=null;A.dispatchEvent(new M_("q"));break;default:throw Error("mf");}})||wx(A,"Transfer encountered too many consecutive failures.")},wx=function(A,H){A.state_="Error";
A.JSC$12541_errorDescription_=H;A.dispatchEvent(new N_("n"))};
ZD.prototype.onStartComplete_=function(A){var H=A.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new M_("r"));if(PHi(H))GaA(this,H);else if(F7Q(H)){A=n$(A.target.getAllResponseHeaders());for(var k in A)_.rI(k.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new N_("m"));k=qT(A,"X-Goog-Upload-URL");A=(A=qT(A,"X-Goog-Upload-Chunk-Granularity"))?parseInt(A,10):1;k===void 0||isNaN(A)||A<=0?wx(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
A)*A,this.transferHandle_=new L7k(k),this.dispatchEvent(new N_("p")),this.state_="Upload",this.retryIterator_.reset(),fI(this))}else fI(this)};
ZD.prototype.onUploadProgress_=function(A){this.JSC$12541_bytesTransferred_=this.offset_+A.loaded;this.dispatchEvent(new N_("k"))};
ZD.prototype.JSC$12543_onUploadComplete_=function(A,H,k){var d=this,W,z;return _.e(function(u){switch(u.nextAddress){case 1:W=k.target;d.lastCommandResponseCode_=W.getStatus();d.dispatchEvent(new M_("r"));if(XFN(W)||W.getStatus()==404)return d.JSC$12541_bytesTransferred_=A,GaA(d,W),u.return();if(F7Q(W)){u.jumpTo(2);break}if(!(z=d.detectCorruptedBlobEnabled_)){u.jumpTo(3);break}return u.yield(Dp0(d),4);case 4:z=u.yieldResult;case 3:if(z)return wx(d,"Blob has been modified or corrupted."),u.return();
d.requireUploadRequestModification_=W.getStatus()==400;d.state_="Query";fI(d);return u.return();case 2:if(H)return wx(d,"Got a non-final success response after issuing a finalize command."),u.return();d.JSC$12541_bytesTransferred_=A;d.offset_=A;d.retryIterator_.reset();fI(d);return u.return()}})};
ZD.prototype.onQueryComplete_=function(A){var H=A.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new M_("r"));PHi(H)?(H.getStatus()===200&&(this.JSC$12541_bytesTransferred_=this.blob_.size),GaA(this,H)):F7Q(H)?(A=n$(A.target.getAllResponseHeaders()),A=parseInt(qT(A,"X-Goog-Upload-Size-Received"),10),isNaN(A)?wx(this,"Server did not respond with current offset."):A<this.offset_?wx(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
A+"."):this.requireUploadRequestModification_&&this.offset_===A?wx(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<A&&this.retryIterator_.reset(),this.offset_=this.JSC$12541_bytesTransferred_=A,this.state_="Upload",fI(this))):fI(this)};
var GaA=function(A,H){A.JSC$12541_responseCode_=H.getStatus();var k=n$(H.getAllResponseHeaders());YMI(k);A.JSC$12541_responseText_=H.getResponseText();A.state_="Response received";A.dispatchEvent(new N_("l"))},F7Q=function(A){var H=A.getStatus();
A=n$(A.getAllResponseHeaders());A=qT(A,"X-Goog-Upload-Status");return H===200&&A==="active"},XFN=function(A){A=n$(A.getAllResponseHeaders());
return qT(A,"X-Goog-Upload-Status")==="final"},PHi=function(A){if(XFN(A))return!0;
A=A.getStatus();return A>=400&&A<500},Dp0=function(A){var H;
return _.e(function(k){if(k.nextAddress==1){if(!A.blob_||A.originalBlobSize_<=0)return k.return(!1);if(A.blob_.size!==A.originalBlobSize_)return k.return(!0);_.S_(k,2);if(H=vrG(A.blob_,0,1)){var d=k.yield,W=new iS,z=ffA(W);W.reader_.readAsBinaryString(H);k=d.call(k,z,4)}else k=k.return(!0);return k}if(k.nextAddress!=2)return k.return(A.blob_.size!==A.originalBlobSize_);_.VA(k);return k.return(!0)})};var ShA=function(A,H,k,d,W,z){_.Is.call(this);this.payload_=d;this.JSC$12544_url_=A;this.JSC$12544_method_=H;this.JSC$12544_headers_=k;this.JSC$12544_metadata_=W;this.encoding_=z||"binary";A=new _.d1;this.boundary_="uploader-"+cT()+"-"+A.JSC$11650_toIsoString();this.JSC$12544_responseText_=this.JSC$12544_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12544_errorDescription_=null;this.JSC$12544_eventHandler_=new _.qZ(this);_.ZL(this,this.JSC$12544_eventHandler_)};
_.I(ShA,vww);_.q=ShA.prototype;
_.q.run=function(){var A=_.iK.clone(this.JSC$12544_headers_);this.payload_.length!=null&&(A["Content-Length"]=this.payload_.length);A=IDX(A);A["X-Goog-Upload-Protocol"]="multipart";A["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new nI;this.JSC$12544_eventHandler_.removeAll();this.JSC$12544_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12544_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12544_url_,this.JSC$12544_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12544_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",A)};
_.q.getResponseCode=function(){return this.JSC$12544_responseCode_};
_.q.getResponseText=function(){return this.JSC$12544_responseText_};
_.q.JSC$30560_getErrorDescription=function(){return this.JSC$12544_errorDescription_};
_.q.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12544_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new N_("o")))};
_.q.pause=function(){};
_.q.onTransferProgress_=function(){this.dispatchEvent(new N_("k"))};
_.q.onTransferComplete_=function(A){var H=A.target.getStatus();H===void 0||H===-1?(this.JSC$12544_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new N_("n"))):(this.JSC$12544_responseCode_=H,A=A.target,H=n$(A.getAllResponseHeaders()),YMI(H),this.JSC$12544_responseText_=A.getResponseText(),this.state_="Complete",this.dispatchEvent(new N_("l")))};_.CHA=function(A,H,k,d){d=d===void 0?!1:d;if(k instanceof J90)return new y9N(A,"POST",H,k.getInputElement(),"");if(typeof k==="string"||k instanceof String)return new ShA(A,"POST",H,k,"");var W=new ZD(void 0);W.JSC$12541_url_=A;W.JSC$12541_method_="POST";W.JSC$12541_headers_=H;W.blob_=k;W.originalBlobSize_=k.size;W.JSC$12541_metadata_="";d&&(W.JSC$12541_withCredentials_=d);W.state_="Start";return W};var oq=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(oq,_.OW);_.q=oq.prototype;_.q.getEnableSsEngine=function(){return _.xV(this,2)};
_.q.getEnableAwr=function(){return _.xV(this,3)};
_.q.getAlohaAutoGaRollout=function(){return _.xV(this,5)};
_.q.getEnableConfigurator=function(){return _.xV(this,6)};
_.q.getEnableMweb=function(){return _.xV(this,7)};
var atN=function(){var A=K7Q();return _.BB(A,7,!0)};
oq.prototype.getEnableCtlConsentCheckbox=function(){return _.xV(this,8)};
oq.prototype.getEnableIframe=function(){return _.xV(this,9)};
var K7Q=function(){var A=new oq;A=_.BB(A,5,!0);A=_.BB(A,2,!0);A=_.BB(A,4,!1);A=_.BB(A,8,!0);return _.BB(A,9,!0)};
oq.prototype.getEnableScreenshotNudge=function(){return _.xV(this,10)};
var c9w=function(){var A=atN();return _.BB(A,10,!0)};
oq.prototype.getEnableWebStartupConfigEndpoint=function(){return _.xV(this,11)};
oq.prototype.getEnableJunkNudge=function(){return _.xV(this,12)};
var Mhb=function(){var A=c9w();return _.BB(A,12,!0)};
_.q=oq.prototype;_.q.getEnableConfiguratorLocale=function(){return _.xV(this,13)};
_.q.getEnableTinyNoPointer=function(){return _.xV(this,14)};
_.q.getEnableSupportSessionLogging=function(){return _.xV(this,15)};
_.q.getEnableFileUploadForScreenshot=function(){return _.xV(this,16)};
_.q.getEnableDirectDeflectionForSingleCategory=function(){return _.xV(this,17)};
_.q.getEnableImageSanitization=function(){return _.xV(this,18)};
_.q.getEnableAlohaBinarySplit=function(){return _.xV(this,19)};
_.q.getEnableDbFeedbackIntents=function(){return _.xV(this,20)};
_.q.getEnableMarkMandatoryFieldsWithRequired=function(){return _.xV(this,21)};
_.q.getEnableFeedbackCategoryCustomUi=function(){return _.xV(this,22)};
_.q.getEnableRealtimeCtl=function(){return _.xV(this,23)};var NxI=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(NxI,_.OW);var PrA=[/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 Fmr="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 XUr=_.XO(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),D_C=_.XO(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var rn=function(){var A=Error.call(this,"Form is either loading or already opened");this.message=A.message;"stack"in A&&(this.stack=A.stack);this.name="DuplicateFormError"};
_.I(rn,Error);var Crf,cqI,KmQ,pUW;var $t,pFk;
$t=function(A,H,k){A.timeOfStartCall=(new Date).getTime();var d=k||_.k8,W=d.document,z=A.nonce||_.u1(d.document);z&&!A.nonce&&(A.nonce=z);if(A.flow=="help"){var u=_.UD("document.location.href",d);!A.helpCenterContext&&u&&(A.helpCenterContext=u.substring(0,1200));u=!0;if(H&&JSON&&JSON.stringify){var B=JSON.stringify(H);(u=B.length<=1200)&&(A.psdJson=B)}u||(H={invalidPsd:!0})}H=[A,H,k];d.GOOGLE_FEEDBACK_START_ARGUMENTS=H;k=A.feedbackServerUri||"//www.google.com/tools/feedback";if(u=d.GOOGLE_FEEDBACK_START)u.apply(d,H);
else{d=k+"/load.js?";for(var h in A)H=A[h],H==null||_.nl(H)||(d+=encodeURIComponent(h)+"="+encodeURIComponent(H)+"&");A=zE(W).createElement("SCRIPT");z&&A.setAttribute("nonce",z);_.h2(A,_.px(d));W.body.appendChild(A)}};
pFk=function(A,H,k,d){var W,z;return _.e(function(u){W=k||_.k8;var B=A.serverEnvironment==="DEV",h=k||_.k8;h=A.nonce||_.u1(h.document);B={integrationKeys:{productId:A.productId,feedbackBucket:A.bucket,triggerId:A.triggerId},callbacks:{onClose:A.callback,onLoad:A.onLoadCallback},formContent:{locale:A.locale,disableScreenshot:A.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:A.abuseLink,additionalDataConsent:A.additionalDataConsent},initializationData:{isLocalServer:B,nonce:h,useNightlyRelease:B,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:A.feedbackServerUri,colorScheme:A.colorScheme},extraData:{productVersion:A.productVersion,authUser:A.authuser,configuratorId:A.configuratorId,customZIndex:A.customZIndex,tinyNoPointer:A.tinyNoPointer,
allowNonLoggedInFeedback:A.allowNonLoggedInFeedback,enableAnonymousFeedback:A.enableAnonymousFeedback}};H&&(h=new Map(Object.entries(H)),B.extraData.productSpecificData=h);z=B;return u.yield(U_I(z,d,W),0)})};
_.QFw=function(A,H,k){try{if(A.flow==="help"){var d=A.helpCenterPath.replace(/^\//,"");_.rU(k||window,"https://support.google.com/"+d)}else A.flow==="submit"?$t(A,H,k):nt8(A.productId,A.feedbackServerUri).then(function(W){W=_.Af(W,oq,1);var z=!TLw||(W==null?void 0:W.getEnableMweb()),u=!A.tinyNoPointer||(W==null?void 0:W.getEnableTinyNoPointer());!W||W.getAlohaAutoGaRollout()&&z&&u?pFk(A,H,k,W).catch(function(B){!B||B instanceof rn||$t(A,H,k)}):$t(A,H,k)},function(W){!W||W instanceof rn||$t(A,H,k)})}catch(W){pFk(A,
H,k,null).catch(function(z){!z||z instanceof rn||$t(A,H,k)})}};
_.nG("userfeedback.api.startFeedback",_.QFw);var ZIV=/https?:\/\/\S+\.\S+/,fDC=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],wUm=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var z$r=function(A){var H=A.split(""),k=[-263237435,15,H,function(d,W,z){var u=W.length;z.forEach(function(B,h,O){this.push(O[h]=W[(W.indexOf(B)-W.indexOf(this[h])+h+u--)%W.length])},d.split(""))},
function(d,W){d=(d%W.length+W.length)%W.length;W.splice(-d).reverse().forEach(function(z){W.unshift(z)})},
"response",function(){for(var d=64,W=[];++d-W.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}W.push(String.fromCharCode(d))}return W},
null,12,1540023973,65941107,null,H,function(d,W){for(d=(d%W.length+W.length)%W.length;d--;)W.unshift(W.pop())},
695603893,function(d){for(var W=d.length;W;)d.push(d.splice(--W,1)[0])},
"'[;'[(",function(d,W){d.push(W)},
null,function(d,W,z,u,B){return W(z,u,B)},
"continuation",H,function(d,W){if(d.length!=0){W=(W%d.length+d.length)%d.length;var z=d[0];d[0]=d[W];d[W]=z}},
function(){for(var d=64,W=[];++d-W.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}W.push(String.fromCharCode(d))}return W},
'"),/]];'];k[7]=k;k[11]=k;k[18]=k;try{(((0,k[15])(k[21]),k[22])(k[11],k[9]),k[22])(k[new Date("1970-01-01T04:30:12.000+04:30")/1E3],k[1]),((0,k[22])(k[11],k[23]),k[4])(k[10],k[18]),(0,k[20])(k[21],k[14])<<(0,k[17])(k[18],k[1]),(0,k[4])(k[8],k[21]),(0,k[19])((0,k[19])((0,k[17])(k[7],k[9]),k[3],k[20],(0,k[6])(),k[2]),k[3],k[5],(0,k[15])(),k[2])}catch(d){return"aTlOUOubTO4AP____8P_"+A}return H.join("")};_.VEZ=new _.Dt("runAttestationCommand");var Ew0=new _.Dt("verifyCommand");_.zF=new _.Dt("accessibilityContext");var Upj=new _.Dt("accessibilityData");var lt0=new _.Dt("profileCardCommand");var fCC=new _.Dt("signInEndpoint");var Z_b=new _.Dt("signOutEndpoint");var Ntw;_.tEJ=new _.Dt("accountItemSectionRenderer");Ntw=new _.Dt("accountItemRenderer");_.MEw=new _.Dt("saveCommandToSessionStorageAction");var nww=new _.Dt("crossAccountChannelTransferEndpoint");var UuX=new _.Dt("getAccountMenuEndpoint");_.lUI=new _.Dt("getAccountSwitcherEndpoint");var E$m=new _.Dt("getAccountsListEndpoint");var ZnQ=new _.Dt("getAccountsListInnertubeEndpoint");_.ftj=new _.Dt("addToToastAction");var wFj=new _.Dt("hideEnclosingAction");_.AS=new _.Dt("replaceEnclosingAction");var owi=new _.Dt("buttonRefreshAction");var $pJ=new _.Dt("adsControlFlowOpportunityReceivedCommand");var A$Q=new _.Dt("openAdAllowlistInstructionCommand");var Hiw=new _.Dt("videoMastheadAdPrimaryVideoRenderer");var snp=new _.Dt("displayAdRenderer");_.ktA=new _.Dt("inFeedAdLayoutRenderer");var drw=new _.Dt("sequenceItemInPlayerAdLayoutRenderer");_.WOw=new _.Dt("adSlotRenderer");var zvZ=new _.Dt("adAvatarViewModel");var q4w=new _.Dt("adBadgeViewModel");var r$J=new _.Dt("adButtonViewModel");var udj=new _.Dt("adImageViewModel");var elW=new _.Dt("reelsAdCardButtonedViewModel");var B6A=new _.Dt("reelsPlayerOverlayLayoutViewModel");var evN=new _.Dt("formDataDecoratorCommand");var xrN=new _.Dt("updateConversationIdCommand");var iiJ=new _.Dt("showSchedulingPanelCommand");var hvw=new _.Dt("backstageCommentsRenderer");var OiJ=new _.Dt("backstageImageRenderer");var Rvj=new _.Dt("backstagePostRenderer");var T61=new _.Dt("backstageZeroStateRenderer");var mri=new _.Dt("postRenderer");var J$A=new _.Dt("sharedPostRenderer");var gsG=new _.Dt("createBackstagePostEndpoint");var biA=new _.Dt("getPostVideoPreviewEndpoint");var LOA=new _.Dt("updateBackstagePostEndpoint");var vsi=new _.Dt("filterChipTransformCommand");var y$i=new _.Dt("insertRichSectionCommand");var c5V=new _.Dt("talkToRecsDeselectCommand");var jnw=new _.Dt("talkToRecsNextCommand");var a9I=new _.Dt("talkToRecsSelectCommand");var IPZ=new _.Dt("talkToRecsUpdateTextCommand");_.fm=new _.Dt("browseEndpoint");_.Y4p=new _.Dt("confirmDialogEndpoint");var PGJ=new _.Dt("expandOnHoverCardRenderer");var GtQ=new _.Dt("lumiereShelfDetailsRenderer");var FON=new _.Dt("revealBusinessEmailCommand");var Xo0=new _.Dt("validateChannelHandleCommand");var Drj=new _.Dt("channelCreationFormEndpoint");var S4p=new _.Dt("aboutChannelViewModel");var CG0=new _.Dt("channelThumbnailWithLinkRenderer");var KOj=new _.Dt("channelCreationServiceEndpoint");var aPk=new _.Dt("updateChannelPageSettingsEndpoint");var HY=function(A){this.delegate=A},sm=function(){HY.apply(this,arguments)};
_.I(sm,HY);_.nP.Object.defineProperties(sm.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(A){this.delegate.entityMetadata=A}}});var c$N=function(){sm.apply(this,arguments)};
_.I(c$N,sm);c$N.prototype.getAssociations=function(){return[]};
c$N.prototype.getTypeName=function(){return"channelHandle"};var poQ=new _.Dt("webResponseContextExtensionData");var n_W=new _.Dt("webThumbnailDetailsExtensionData");_.R5=new _.Dt("commandContext");var QnA=new _.Dt("addVideoLinkAction");var VJQ=new _.Dt("banAuthorAction");var Esj=new _.Dt("createCommentAction");var Urw=new _.Dt("createCommentReplyAction");var lPp=new _.Dt("createPollAction");var tJG=new _.Dt("hideIdentityChipAction");var N6w=new _.Dt("openUpdateCommentDialogAction");var MJQ=new _.Dt("pinCommentAction");var ns0=new _.Dt("removeCommentAction");var ZiJ=new _.Dt("unpinCommentAction");var ke=new _.Dt("updateBackstagePollAction");var fPw=new _.Dt("updateCommentVoteAction");var wow=new _.Dt("commentThreadRenderer");var osk=function(){sm.apply(this,arguments)};
_.I(osk,sm);osk.prototype.getAssociations=function(){return[]};
osk.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var $rw=function(){sm.apply(this,arguments)};
_.I($rw,sm);$rw.prototype.getAssociations=function(){return[]};
$rw.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Agp=new _.Dt("commentDialogRenderer");var HoG=new _.Dt("reloadCommentsCommand");var sSw=new _.Dt("updateCommentsSettingsEndpoint");var kLp=new _.Dt("commentViewModel");var d2A=new _.Dt("triStateButtonViewModel");var W6N=new _.Dt("voiceReplyContainerViewModel");_.nH=new _.Dt("commandExecutorCommand");var ew=new _.Dt("emoji");var zdA=new _.Dt("updateCreatorChannelInnertubeCommand");_.qui=new _.Dt("appendContinuationItemsAction");_.rgA=new _.Dt("changeEngagementPanelVisibilityAction");_.Tc=new _.Dt("continuationCommand");var uqN=new _.Dt("hideReportedCommentAction");var B1Z=new _.Dt("listMutationCommand");_.dN=new _.Dt("openPopupAction");var edG=new _.Dt("persistSubscriptionsDisplayPreferencesCommand");var Jgw;_.x2w=new _.Dt("playlistRemoveVideosAction");_.iow=new _.Dt("updatePlaylistAction");_.hd1=new _.Dt("addToPlaylistCommand");_.Oop=new _.Dt("endPlaylistCommand");_.Rd0=new _.Dt("recoverPlaylistCommand");_.T1j=new _.Dt("refreshPlaylistCommand");_.m2Q=new _.Dt("refreshFormCommand");Jgw=new _.Dt("openOnePickAddVideoModalCommand");var wrr=new _.Dt("reloadContinuationItemsCommand");var g2i=new _.Dt("restoreCachedContinuableDataCommand");_.boA=new _.Dt("scrollToEngagementPanelCommand");var L6w=new _.Dt("selectCountryCommand");var v2p=new _.Dt("showReloadUiCommand");var ygw=new _.Dt("undoFeedbackAction");var jSj=new _.Dt("updateButtonAction");var IwJ=new _.Dt("updateSubscribeButtonAction");var YuA=new _.Dt("updateToggleAction");var PSZ=new _.Dt("webNativeShareCommand");_.wn=new _.Dt("webCommandMetadata");_.WY=new _.Dt("webHandleServiceEndpointExtension");var k7I=new _.Dt("webNavigationEndpointData");var GLN=new _.Dt("backgroundAudioPlaybackCommand");var F6A=new _.Dt("copyLinkCommand");var XDQ=new _.Dt("playlistVotingRefreshPopupCommand");var D2j=new _.Dt("selectChipCommand");var SuJ=new _.Dt("setCookieCommand");var CSi=new _.Dt("setLocalStorageCommand");var K6A=new _.Dt("setPrefStorageEntryCommand");var QSJ;_.awG=new _.Dt("settingsUpdateCheckboxCommand");_.cgA=new _.Dt("settingsUpdateTextCommand");_.pDi=new _.Dt("settingsUpdateOptionsCommand");QSJ=new _.Dt("settingsUpdateSwitchCommand");_.VVA=new _.Dt("settingsUpdateConnectedAppRendererCommand");var E2A=new _.Dt("showCreatorChatbotEngagementPanelCommand");var U2Q=new _.Dt("updateTextInputFormFieldRendererCommand");var lwj=new _.Dt("updateToggleButtonStateCommand");var tVw=new _.Dt("updateUrlParamCommand");var N10=new _.Dt("webSubmitFormCommand");var MVA=new _.Dt("channelSwitcherPageRenderer"),n2w=new _.Dt("updateChannelSwitcherPageAction");_.pw=new _.Dt("continuationItemRenderer");_.zr=new _.Dt("richItemRenderer");var ZoA=new _.Dt("richSectionRenderer");_.fwi=new _.Dt("richShelfRenderer");_.wDQ=new _.Dt("metadataBadgeRenderer");_.o2i=new _.Dt("multiPageMenuNotificationSectionRenderer");_.$2k=new _.Dt("playlistLoopButtonStateRenderer");var Aq1=new _.Dt("claimLegacyYoutubeChannelEndpoint");var HIG=new _.Dt("getNotificationMenuEndpoint");var sqA=new _.Dt("getSearchInVideoCommand");_.kl0=new _.Dt("getTranscriptEndpoint");_.fH=new _.Dt("signalServiceEndpoint");var d_w=new _.Dt("verifyAgeEndpoint");var rHA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(rHA,_.OW);rHA.prototype.getPath=function(){return _.O8(this,1)};
rHA.prototype.getValue=function(){return _.O8(this,2)};var WmG=[0,_.aX,-1];var z1N=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(z1N,_.OW);var qsN=_.Pz(z1N,[0,_.QV,WmG]);var qMw=new _.Dt("dismissalEndpoint");var rqj=new _.Dt("elementsCommand");_.ic=new _.Dt("innertubeCommand");var KcX=new _.Dt("multipleInlinePlaybackCommand");var Vxf=new _.Dt("loggingDirectives");var uRw=new _.Dt("acknowledgeChannelTouStrikeCommand");var BxA=function(){sm.apply(this,arguments)};
_.I(BxA,sm);BxA.prototype.getAssociations=function(){return[]};
BxA.prototype.getTypeName=function(){return"booleanEntity"};var e1p=function(){sm.apply(this,arguments)};
_.I(e1p,sm);e1p.prototype.getAssociations=function(){return[]};
e1p.prototype.getTypeName=function(){return"stringEntity"};var Pn=new _.Dt("entityBatchUpdate");_.x_p=new _.Dt("entityUpdateCommand");var iIN=function(){sm.apply(this,arguments)};
_.I(iIN,sm);iIN.prototype.getAssociations=function(){var A=[];this.delegate.alternateChannel&&A.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&A.push.apply(A,_.fV(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&A.push(this.delegate.oneofChannelEntity);return[].concat(_.fV(new Set(A)))};
iIN.prototype.getTypeName=function(){return"fakeChannel"};var h1J=function(){sm.apply(this,arguments)};
_.I(h1J,sm);h1J.prototype.getAssociations=function(){var A=[];this.delegate.entryCollection&&A.push(this.delegate.entryCollection);return[].concat(_.fV(new Set(A)))};
h1J.prototype.getTypeName=function(){return"fakePlaylist"};
var OIi=function(){sm.apply(this,arguments)};
_.I(OIi,sm);OIi.prototype.getAssociations=function(){var A=[];this.delegate.parentPlaylist&&A.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var H=_.r(this.delegate.entries),k=H.next();!k.done;k=H.next())A.push.apply(A,_.fV((new R1j(k.value)).getAssociations()));return[].concat(_.fV(new Set(A)))};
OIi.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var R1j=function(){HY.apply(this,arguments)};
_.I(R1j,HY);R1j.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);return[].concat(_.fV(new Set(A)))};var TxN=function(){sm.apply(this,arguments)};
_.I(TxN,sm);TxN.prototype.getAssociations=function(){var A=[];this.delegate.descriptionEntity&&A.push(this.delegate.descriptionEntity);this.delegate.creators&&A.push.apply(A,_.fV(this.delegate.creators));this.delegate.theBiggestFan&&A.push(this.delegate.theBiggestFan);return[].concat(_.fV(new Set(A)))};
TxN.prototype.getTypeName=function(){return"fakeVideo"};
var m_k=function(){sm.apply(this,arguments)};
_.I(m_k,sm);m_k.prototype.getAssociations=function(){return[]};
m_k.prototype.getTypeName=function(){return"fakeVideoDescription"};var Jqj=new _.Dt("fantasyRosterViewModel");var gti=new _.Dt("addFollowUpSurveyCommand");var bIA=new _.Dt("getSurveyCommand");var Lmw=new _.Dt("ratingSurveyOptionRenderer");_.Ts=new _.Dt("feedbackEndpoint");var vtp=new _.Dt("reportHistoryTableCellRenderer"),yq1=new _.Dt("reportHistoryTableTextCellRenderer"),jqj=new _.Dt("reportHistoryTableReasonCellRenderer");_.IDA=new _.Dt("flagEndpoint");var YMJ=new _.Dt("deleteFlowStepsCommand");_.Prk=new _.Dt("flowNextStepCommand");_.GlN=new _.Dt("flowPrevStepCommand");var FmG=new _.Dt("getFlowCommand");var XUG=new _.Dt("submitFormWithValidationFlowCommand");_.D_w=new _.Dt("updateFlowCommand");var SMG=function(){sm.apply(this,arguments)};
_.I(SMG,sm);SMG.prototype.getAssociations=function(){return[]};
SMG.prototype.getTypeName=function(){return"flowStateEntity"};var Cr0=new _.Dt("flowFormState");_.ql=new _.Dt("flowStepRenderer");var Km1=new _.Dt("gameCardRenderer");var aDA=new _.Dt("accountLinkingStateChangedCommand");var cqJ=function(){sm.apply(this,arguments)};
_.I(cqJ,sm);cqJ.prototype.getAssociations=function(){return[]};
cqJ.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var pUi=new _.Dt("changeMiniAppPlayStateCommand");var Qqw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Qqw,_.OW);var rN=[1,2,3];var VhA=[0,rN,wzw,_.pX,URj];var Eti=_.Pz(Qqw,VhA),U_J=_.Ff(VhA);var lDJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(lDJ,_.OW);var thw=[0,_.FM,_.aX];var NxJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(NxJ,_.OW);var Mhp=[0,_.aX,_.FM,-1];var uR=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(uR,_.OW);var ntZ=_.Ff([0,1,thw,_.lp,Mhp,_.aX,-1]);var ZIj=new _.Dt("miniAppScoreChallengeViewModel");var fDw=new _.Dt("miniGameCardViewModel");var wUw=new _.Dt("teaserCardViewModel");var otN=function(){sm.apply(this,arguments)};
_.I(otN,sm);otN.prototype.getAssociations=function(){return[]};
otN.prototype.getTypeName=function(){return"logoEntity"};var $_w=new _.Dt("feedbackItemRenderer");var ASJ=function(){sm.apply(this,arguments)};
_.I(ASJ,sm);ASJ.prototype.getAssociations=function(){return[]};
ASJ.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.H4N=new _.Dt("playerInterstitialRenderer");var sDk=new _.Dt("getKidsBlocklistPickerCommand");_.krj=new _.Dt("updateKidsBlacklistEndpoint");_.BY=new _.Dt("likeEndpoint");var dlj,W1k,zgZ;dlj=new _.Dt("addChatItemAction");W1k=new _.Dt("removeChatItemAction");zgZ=new _.Dt("markChatItemAsDeletedAction");_.qmi=new _.Dt("setLiveChatCollapsedStateAction");var rSA=function(){sm.apply(this,arguments)};
_.I(rSA,sm);rSA.prototype.getAssociations=function(){return[]};
rSA.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var uPw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(uPw,_.OW);uPw.prototype.getPayloadCase=function(){return _.qJ(this,BN0)};
var BN0=[3,4];var eg1=[0,_.QV,[0,[1,2],_.pX,_.VV,[0,_.cZ,1,_.cZ]]];var xlw=[0,_.aX,-1];var i4A=[0,[1],_.pX];var eG=[0,[1,2],_.pX,_.VV,[0,_.lp]];var xe=[0,_.aX];var hgG=[0,[0,_.CX,_.Sa,[0,_.cZ,_.tY,_.cZ]],1,[0,_.CX]];var O4p=[0,XM];var RgA=[0,XM];var TNp=[0,RgA,O4p];var mlQ=[0,_.QV,[0,[1,2],_.pX,-1],_.CX];var JSw=[0,[2],1,_.VV,[0,_.cZ,-1,mlQ]];var geA=[0,[1],_.VV,[0,_.cZ,_.aX,_.tY,1,mlQ]];var b4N=[0,_.Sa,-1,Epw,_.lp];var L10=[0,[0,G5,-3],-4];var iR=[0,_.CX,-3,_.aX,_.CX,_.lP,_.CX,eg1,_.CX,-2];var hS=[0,_.QV,[0,[1,2],_.pX,-1],_.CX,_.aX];var veQ=[0,[3],eG,[0,[2,3,4],s4N,_.pX,-2],_.VV,[0,_.aX],_.FM];var ySA=[0,[3,5],_.aX,_.D_,_.VV,[0,1,_.FM,_.lp],_.lp,_.VV,[0,_.lp,_.FM]];var jDZ=[0,2,_.D_,_.aX,-1];var I2j=[0,Zxi];var Ymp=[0,[3,4],2,tnw,_.pX,_.aX];var PR0=[0,_.lp,-2,1,_.aX];var Gr1=[0,_.aX,-1,_.lp];var F1w=[0,xe,function(){return Om},
xe,_.aX],XYA=[0,_.lp,xe,eG,function(){return Om},
_.aX],Om=[-161,{},[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,160],xe,_.D_,[0,_.CX,1,_.CX,1,_.CX,1,_.lp,-1,xe],[0,1,_.CX,2,_.CX,_.lp,_.CX],1,_.D_,-1,_.aX,_.D_,2,G5,[0,G5,_.D_],_.aX,1,hgG,1,eG,_.lP,1,[0,[0,_.QV,[0,_.aX,_.CX,_.lp]]],[0,_.CX,[0,_.FM,[0,_.tY]],_.FM,1,[0,MnA,-1]],_.aX,[0,1,_.aX],76,_.VV,[0,eG,hS,hgG,1,[0,_.QV,hS]],1,_.VV,[0,eG,_.aX,
_.CX],_.VV,[0,eG,i4A],_.VV,[0,eG,i4A,_.D_],_.VV,[0,eG,i4A],_.VV,[0,eG,_.QV,xe,eG,opA],_.VV,[0,eG,xe,_.aX],_.VV,[0,eG,_.CX,iR,-1,_.CX],4,_.VV,[0,eG,_.CX,_.D_,iR,_.CX],_.VV,[0,[4,9],eG,_.lp,_.D_,_.pX,hS,1,hgG,_.aX,_.pX,PR0],_.VV,[0,eG,xe,eG,_.lp,_.aX],_.VV,[0,_.CX,eG,iR,_.CX,_.aX],_.VV,[0,eG,xe,eG,_.lp,_.aX],1,_.VV,[0,eG,_.lp,_.aX,iR],_.VV,[0,eG,_.lp,[0,_.aX,_.D_],_.aX,_.D_,_.aX,_.U8,-2,3,Gr1,_.QV,Gr1,Gr1,PR0],_.VV,[0,eG,_.lp,geA,_.QV,[0,RgA,JSw],xe,_.QV,TNp,_.aX,1,_.lp,b4N,L10,VnQ,-1],_.VV,[0,eG,[0,
_.tY,-1,geA,_.QV,[0,RgA,JSw,O4p],[0,_.tK],1,_.cZ],xe,_.aX],_.VV,[0,eG,hS,_.aX,[0,_.Sa]],_.VV,function(){return XYA},
_.VV,[0,eG,_.D_,_.aX,-1,_.CX],_.VV,[0,[6,7],eG,_.QV,jDZ,_.lp,hS,1,_.VV,Ymp,_.VV,I2j],_.VV,[0,_.QV,jDZ,_.lp,_.CX],_.VV,[0,_.aX,CZA,-1],_.VV,[0,xe,_.QV,TNp,_.aX],_.VV,[0,eG,xe,_.aX],_.VV,[0,_.U8,_.aX],_.VV,[0,xlw],_.VV,[0,xlw],_.VV,[0,hS],_.VV,[0,xe,hS],_.VV,function(){return F1w},
_.VV,[0,xe,_.aX],_.VV,[0,xe,_.aX],1,_.VV,[0,_.CX,eG,iR,_.CX,iR],_.VV,[0,_.tK],1,_.VV,[0],1,_.VV,[0,xe,_.lp,eG,_.lp],_.VV,[0,[1,2],_.VV,Ymp,_.VV,I2j,_.D_],_.VV,[0,_.tK,hS,ySA,_.aX,_.D_],_.VV,[0,ySA,_.aX,_.D_],_.VV,[0,b4N,hS,_.CX,L10],_.VV,veQ,_.VV,[0],_.VV,[0,_.aX,-1,_.FM],_.VV,[0,xe,_.aX],_.VV,[0,veQ,_.FM,_.aX],_.VV,[0,eG,iR,_.CX],_.VV,[0,eG,iR,_.CX],_.VV,[0,b4N,L10,hS,_.lP,_.CX,VnQ,-1],_.VV,[0,eG,iR,_.CX],_.VV,[0,_.D_]];var DlA=[0,_.QV,Om];var Smw=_.Pz(uPw,[0,BN0,1,_.FM,_.VV,[0,[18,22,24],DlA,3,[0,DlA],1,_.FM,[0,_.QV,[0,_.D_,G5],_.D_],1,Om,-1,[0,_.KX,-2,_.lP,_.KX,-1,_.lP,_.KX,eg1,_.KX,-2],pzA,[!0,_.aX,[0,i4A,2,_.aX,_.D_,_.CX,2,_.aX,_.U8]],[0,[1,2,3],[5,6],_.VV,[0,_.cZ],_.VV,[0,_.cZ,-1],_.VV,[0,_.cZ],1,_.VV,xlw,_.VV,[0,_.aX]],[0,Om,-1],_.tK,Om,_.VV,Om,[0,DlA],_.FM,Om,_.VV,Om,_.aX,_.VV,Om,Om],_.VV,Fuw,_.FM]);var CRk=new _.Dt("liveChatEndpoint");var K1A=new _.Dt("liveChatItemContextMenuEndpoint");var a2Z=new _.Dt("liveChatReplayEndpoint");_.cSZ=new _.Dt("emojiPickerRenderer");var pYj=new _.Dt("liveChatAuthorBadgeViewModel");var QDG=new _.Dt("deleteLiveChatMessageCommand");var VGA=new _.Dt("liveChatActionEndpoint");var Eek=new _.Dt("createLiveChatPollEndpoint");var Ulp=new _.Dt("manageLiveChatUserEndpoint");var l2i=new _.Dt("moderateLiveChatEndpoint");_.tGN=new _.Dt("sendLiveChatMessageEndpoint");var NNw=new _.Dt("sendLiveChatVoteEndpoint");var MGG=new _.Dt("clearLocationCommand");var neG=new _.Dt("resolveLocationCommand");var Z4J=new _.Dt("interactionLoggingCommandMetadata");var f2i=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(f2i,_.OW);var wYj=function(A,H){return _.tj(A,1,H)};var oeN=[0,_.CX];var $li=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I($li,_.OW);var Ayj=function(A,H){return Bq(A,1,f2i,H)};$li.prototype.JSC$12640_serializeBinary=u9N([0,_.QV,oeN]);var JSI={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 H1p={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"},
sYA={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 uAl={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",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_GHOST_LOADING_ELIGIBLE"};_.GRb=new _.Dt("logFlowLoggingEventCommand");_.H8=new _.Dt("loggingContext");var kdA=new _.Dt("audioTrackSelectActionCommand");var dEZ=new _.Dt("captionLanguageSelectActionCommand");var WLw=new _.Dt("showAudioTrackPickerActionCommand");var zDj=new _.Dt("showCaptionLanguageSelectActionCommand");var qQi=new _.Dt("dismissDialogEndpoint");var ryp=new _.Dt("dismissPlayerOverlayCommand");var uYJ=new _.Dt("hideItemSectionVideosByIdCommand");var BC1=new _.Dt("showMiniplayerCommand");var eD0=function(){sm.apply(this,arguments)};
_.I(eD0,sm);eD0.prototype.getAssociations=function(){return[]};
eD0.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var xEw=function(){sm.apply(this,arguments)};
_.I(xEw,sm);xEw.prototype.getAssociations=function(){return[]};
xEw.prototype.getTypeName=function(){return"downloadStatusEntity"};var i1k=function(){sm.apply(this,arguments)};
_.I(i1k,sm);i1k.prototype.getAssociations=function(){return[]};
i1k.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var hD1=function(){sm.apply(this,arguments)};
_.I(hD1,sm);hD1.prototype.getAssociations=function(){var A=[];this.delegate.downloadsList&&A.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&A.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&A.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&A.push(this.delegate.refresh);return[].concat(_.fV(new Set(A)))};
hD1.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var O1k=function(){sm.apply(this,arguments)};
_.I(O1k,sm);O1k.prototype.getAssociations=function(){var A=[];this.delegate.refresh&&A.push(this.delegate.refresh);if(this.delegate.downloads)for(var H=_.r(this.delegate.downloads),k=H.next();!k.done;k=H.next())A.push.apply(A,_.fV((new RDi(k.value)).getAssociations()));return[].concat(_.fV(new Set(A)))};
O1k.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var RDi=function(){HY.apply(this,arguments)};
_.I(RDi,HY);RDi.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.playlist&&A.push(this.delegate.playlist);this.delegate.videoItem&&A.push(this.delegate.videoItem);this.delegate.playlistItem&&A.push(this.delegate.playlistItem);return[].concat(_.fV(new Set(A)))};var TCw=function(){sm.apply(this,arguments)};
_.I(TCw,sm);TCw.prototype.getAssociations=function(){var A=[];this.delegate.localImageEntities&&A.push.apply(A,_.fV(this.delegate.localImageEntities));return[].concat(_.fV(new Set(A)))};
TCw.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var mEw=function(){sm.apply(this,arguments)};
_.I(mEw,sm);mEw.prototype.getAssociations=function(){var A=[];this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.localImageEntities&&A.push.apply(A,_.fV(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.fV(new Set(A)))};
mEw.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var JyQ=function(){sm.apply(this,arguments)};
_.I(JyQ,sm);JyQ.prototype.getAssociations=function(){return[]};
JyQ.prototype.getTypeName=function(){return"offlineabilityEntity"};var gfj=function(){sm.apply(this,arguments)};
_.I(gfj,sm);gfj.prototype.getAssociations=function(){var A=[];this.delegate.fakeChildren&&A.push.apply(A,_.fV(this.delegate.fakeChildren));return[].concat(_.fV(new Set(A)))};
gfj.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var b10=function(){sm.apply(this,arguments)};
_.I(b10,sm);b10.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&A.push(this.delegate.offlineVideoPolicy);return[].concat(_.fV(new Set(A)))};
b10.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var LLZ=function(){sm.apply(this,arguments)};
_.I(LLZ,sm);LLZ.prototype.getAssociations=function(){return[]};
LLZ.prototype.getTypeName=function(){return"continuationTokenEntity"};var vfN=function(){sm.apply(this,arguments)};
_.I(vfN,sm);vfN.prototype.getAssociations=function(){var A=[];this.delegate.channelOwner&&A.push(this.delegate.channelOwner);this.delegate.videos&&A.push.apply(A,_.fV(this.delegate.videos));this.delegate.collaboratorChannels&&A.push.apply(A,_.fV(this.delegate.collaboratorChannels));this.delegate.downloadState&&A.push(this.delegate.downloadState);this.delegate.refresh&&A.push(this.delegate.refresh);return[].concat(_.fV(new Set(A)))};
vfN.prototype.getTypeName=function(){return"mainPlaylistEntity"};var yyJ=function(){sm.apply(this,arguments)};
_.I(yyJ,sm);yyJ.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.channelContributor&&A.push(this.delegate.channelContributor);return[].concat(_.fV(new Set(A)))};
yyJ.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var jY1=function(){HY.apply(this,arguments)};
_.I(jY1,HY);jY1.prototype.getAssociations=function(){var A=[];this.delegate.recommendedVideoMetadata&&A.push.apply(A,_.fV((new I4G(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.fV(new Set(A)))};
var I4G=function(){HY.apply(this,arguments)};
_.I(I4G,HY);I4G.prototype.getAssociations=function(){var A=[];this.delegate.localImageEntities&&A.push.apply(A,_.fV(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.fV(new Set(A)))};var YQi=function(){HY.apply(this,arguments)};
_.I(YQi,HY);YQi.prototype.getAssociations=function(){var A=[];this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);return[].concat(_.fV(new Set(A)))};var P$p=function(){sm.apply(this,arguments)};
_.I(P$p,sm);P$p.prototype.getAssociations=function(){var A=[];this.delegate.owner&&A.push(this.delegate.owner);this.delegate.downloadState&&A.push(this.delegate.downloadState);this.delegate.userState&&A.push.apply(A,_.fV((new YQi(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&A.push.apply(A,_.fV((new jY1(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.fV(new Set(A)))};
P$p.prototype.getTypeName=function(){return"mainVideoEntity"};var Gdj=function(){sm.apply(this,arguments)};
_.I(Gdj,sm);Gdj.prototype.getAssociations=function(){var A=[];this.delegate.userChannelDetails&&A.push(this.delegate.userChannelDetails);return[].concat(_.fV(new Set(A)))};
Gdj.prototype.getTypeName=function(){return"ytMainChannelEntity"};var FLA=function(){sm.apply(this,arguments)};
_.I(FLA,sm);FLA.prototype.getAssociations=function(){var A=[];this.delegate.channelOwner&&A.push(this.delegate.channelOwner);this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&A.push.apply(A,_.fV(this.delegate.localImageEntities));this.delegate.downloadStatus&&A.push(this.delegate.downloadStatus);return[].concat(_.fV(new Set(A)))};
FLA.prototype.getTypeName=function(){return"ytMainVideoEntity"};var haC=new _.Dt("downloadsPageSmartDownloadsOptInBannerParams");var mKm=new _.Dt("downloadsPageUpsellBannerParams");var Xik=function(){sm.apply(this,arguments)};
_.I(Xik,sm);Xik.prototype.getAssociations=function(){return[]};
Xik.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var DEJ=function(){sm.apply(this,arguments)};
_.I(DEJ,sm);DEJ.prototype.getAssociations=function(){return[]};
DEJ.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var SQw=function(){sm.apply(this,arguments)};
_.I(SQw,sm);SQw.prototype.getAssociations=function(){return[]};
SQw.prototype.getTypeName=function(){return"macroMarkerEntity"};var C$w=function(){sm.apply(this,arguments)};
_.I(C$w,sm);C$w.prototype.getAssociations=function(){return[]};
C$w.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var KLj=function(){sm.apply(this,arguments)};
_.I(KLj,sm);KLj.prototype.getAssociations=function(){return[]};
KLj.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var a4i=function(){sm.apply(this,arguments)};
_.I(a4i,sm);a4i.prototype.getAssociations=function(){return[]};
a4i.prototype.getTypeName=function(){return"playerStateEntity"};var cyj=function(){sm.apply(this,arguments)};
_.I(cyj,sm);cyj.prototype.getAssociations=function(){return[]};
cyj.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var pij=function(){sm.apply(this,arguments)};
_.I(pij,sm);pij.prototype.getAssociations=function(){return[]};
pij.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var QYw=function(){sm.apply(this,arguments)};
_.I(QYw,sm);QYw.prototype.getAssociations=function(){return[]};
QYw.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.yj=new _.Dt("dislikeButtonViewModel");_.vp=new _.Dt("likeButtonViewModel");var VdN=new _.Dt("videoSummaryContentViewModel");var Efw=new _.Dt("videoSummaryParagraphViewModel");var UEw=new _.Dt("changeTimelyActionVisibilityCommand");var l4i=new _.Dt("hideEngagementPanelEndpoint");var tdi=new _.Dt("refreshPanelEndpoint");var NCN=new _.Dt("scrollToSectionEndpoint");var Mdi=new _.Dt("seekToVideoTimestampCommand");_.RL=new _.Dt("showEngagementPanelEndpoint");var nfJ=new _.Dt("showTransientPlayerScrimOverlayCommand");var Z1i=new _.Dt("toggleEngagementPanelCommand");var f4Z=new _.Dt("aiResponseBoxViewModel");_.wiZ=new _.Dt("createBroadcastCommand");var ofG=new _.Dt("metadataUpdateCommand");var $EN=function(){sm.apply(this,arguments)};
_.I($EN,sm);$EN.prototype.getAssociations=function(){return[]};
$EN.prototype.getTypeName=function(){return"featuredProductsEntity"};var AUZ=function(){sm.apply(this,arguments)};
_.I(AUZ,sm);AUZ.prototype.getAssociations=function(){return[]};
AUZ.prototype.getTypeName=function(){return"pinnedProductEntity"};var HMN=function(){sm.apply(this,arguments)};
_.I(HMN,sm);HMN.prototype.getAssociations=function(){return[]};
HMN.prototype.getTypeName=function(){return"trendingOfferEntity"};_.shj=new _.Dt("merchandiseShelfRenderer");var kBA=new _.Dt("shoppingContentLineItemViewModel");var dYw=new _.Dt("shoppingDescriptionItemViewModel");var WlN=new _.Dt("gridMovieRenderer");_.zPA=new _.Dt("movieRenderer");var q70=function(){sm.apply(this,arguments)};
_.I(q70,sm);q70.prototype.getAssociations=function(){return[]};
q70.prototype.getTypeName=function(){return"compositeSourceEntity"};var rUJ=function(){sm.apply(this,arguments)};
_.I(rUJ,sm);rUJ.prototype.getAssociations=function(){var A=[];this.delegate.compositeSourceKeys&&A.push.apply(A,_.fV(this.delegate.compositeSourceKeys));return[].concat(_.fV(new Set(A)))};
rUJ.prototype.getTypeName=function(){return"multiviewStagingEntity"};var ujJ=function(){sm.apply(this,arguments)};
_.I(ujJ,sm);ujJ.prototype.getAssociations=function(){var A=[];this.delegate.trackDownloadMetadatas&&A.push.apply(A,_.fV(this.delegate.trackDownloadMetadatas));return[].concat(_.fV(new Set(A)))};
ujJ.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var BXN=function(){sm.apply(this,arguments)};
_.I(BXN,sm);
BXN.prototype.getAssociations=function(){var A=[];this.delegate.downloadedTracks&&A.push.apply(A,_.fV(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&A.push.apply(A,_.fV(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&A.push.apply(A,_.fV(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&A.push.apply(A,_.fV(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&A.push.apply(A,_.fV(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
A.push.apply(A,_.fV(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&A.push.apply(A,_.fV(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&A.push.apply(A,_.fV(this.delegate.metadataOnlyTracks));return[].concat(_.fV(new Set(A)))};
BXN.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var ePQ=function(){sm.apply(this,arguments)};
_.I(ePQ,sm);ePQ.prototype.getAssociations=function(){var A=[];this.delegate.trackDownloadMetadatas&&A.push.apply(A,_.fV(this.delegate.trackDownloadMetadatas));return[].concat(_.fV(new Set(A)))};
ePQ.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var xY0=function(){sm.apply(this,arguments)};
_.I(xY0,sm);xY0.prototype.getAssociations=function(){var A=[];this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.localImageEntities&&A.push.apply(A,_.fV(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.fV(new Set(A)))};
xY0.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var iMJ=function(){sm.apply(this,arguments)};
_.I(iMJ,sm);
iMJ.prototype.getAssociations=function(){var A=[];this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&A.push.apply(A,_.fV(this.delegate.primaryArtists));this.delegate.details&&A.push(this.delegate.details);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.tracks&&A.push.apply(A,_.fV(this.delegate.tracks));this.delegate.share&&A.push(this.delegate.share);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.refresh&&
A.push(this.delegate.refresh);return[].concat(_.fV(new Set(A)))};
iMJ.prototype.getTypeName=function(){return"musicAlbumRelease"};
var hPi=function(){sm.apply(this,arguments)};
_.I(hPi,sm);hPi.prototype.getAssociations=function(){var A=[];this.delegate.albumRelease&&A.push(this.delegate.albumRelease);this.delegate.tracks&&A.push.apply(A,_.fV(this.delegate.tracks));return[].concat(_.fV(new Set(A)))};
hPi.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var OMi=function(){sm.apply(this,arguments)};
_.I(OMi,sm);OMi.prototype.getAssociations=function(){var A=[];this.delegate.albumRelease&&A.push(this.delegate.albumRelease);return[].concat(_.fV(new Set(A)))};
OMi.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var RPk=function(){sm.apply(this,arguments)};
_.I(RPk,sm);RPk.prototype.getAssociations=function(){var A=[];this.delegate.details&&A.push(this.delegate.details);this.delegate.userDetails&&A.push(this.delegate.userDetails);return[].concat(_.fV(new Set(A)))};
RPk.prototype.getTypeName=function(){return"musicArtist"};
var TXw=function(){sm.apply(this,arguments)};
_.I(TXw,sm);TXw.prototype.getAssociations=function(){var A=[];this.delegate.parentArtist&&A.push(this.delegate.parentArtist);return[].concat(_.fV(new Set(A)))};
TXw.prototype.getTypeName=function(){return"musicArtistDetail"};
var mYw=function(){sm.apply(this,arguments)};
_.I(mYw,sm);mYw.prototype.getAssociations=function(){var A=[];this.delegate.parentArtist&&A.push(this.delegate.parentArtist);return[].concat(_.fV(new Set(A)))};
mYw.prototype.getTypeName=function(){return"musicArtistUserDetail"};var JUw=function(){sm.apply(this,arguments)};
_.I(JUw,sm);JUw.prototype.getAssociations=function(){return[]};
JUw.prototype.getTypeName=function(){return"musicLibraryEdit"};var gOp=function(){sm.apply(this,arguments)};
_.I(gOp,sm);gOp.prototype.getAssociations=function(){return[]};
gOp.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var bMw=function(){sm.apply(this,arguments)};
_.I(bMw,sm);
bMw.prototype.getAssociations=function(){var A=[];this.delegate.tracks&&A.push.apply(A,_.fV(this.delegate.tracks));this.delegate.refresh&&A.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&A.push(this.delegate.details);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&A.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.entryCollection&&
A.push(this.delegate.entryCollection);this.delegate.share&&A.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&A.push.apply(A,_.fV((new LlZ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.fV(new Set(A)))};
bMw.prototype.getTypeName=function(){return"musicPlaylist"};
var LlZ=function(){HY.apply(this,arguments)};
_.I(LlZ,HY);LlZ.prototype.getAssociations=function(){var A=[];this.delegate.creatorEntity&&A.push(this.delegate.creatorEntity);return[].concat(_.fV(new Set(A)))};var vOZ=function(){sm.apply(this,arguments)};
_.I(vOZ,sm);vOZ.prototype.getAssociations=function(){return[]};
vOZ.prototype.getTypeName=function(){return"musicShare"};var yU0=function(){sm.apply(this,arguments)};
_.I(yU0,sm);
yU0.prototype.getAssociations=function(){var A=[];this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&A.push.apply(A,_.fV(this.delegate.artists));this.delegate.audioModeVersion&&A.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&A.push(this.delegate.videoModeVersion);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.details&&A.push(this.delegate.details);this.delegate.albumRelease&&A.push(this.delegate.albumRelease);this.delegate.share&&
A.push(this.delegate.share);this.delegate.libraryEdit&&A.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);this.delegate.lyrics&&A.push(this.delegate.lyrics);return[].concat(_.fV(new Set(A)))};
yU0.prototype.getTypeName=function(){return"musicTrack"};
var jhw=function(){sm.apply(this,arguments)};
_.I(jhw,sm);jhw.prototype.getAssociations=function(){var A=[];this.delegate.parentTrack&&A.push(this.delegate.parentTrack);return[].concat(_.fV(new Set(A)))};
jhw.prototype.getTypeName=function(){return"musicTrackDetail"};
var IbN=function(){sm.apply(this,arguments)};
_.I(IbN,sm);IbN.prototype.getAssociations=function(){var A=[];this.delegate.parentTrack&&A.push(this.delegate.parentTrack);return[].concat(_.fV(new Set(A)))};
IbN.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Kw=new _.Dt("musicResponsiveListItemRenderer");var AiI=new _.Dt("addToPlaylistEndpoint");var Y7Q=new _.Dt("captionPickerEndpoint");var PUk=new _.Dt("suggestStats");var GB0=new _.Dt("backstageImageUploadEndpoint");var FlJ=new _.Dt("createBackstagePostDialogEndpoint");_.X2w=new _.Dt("createCommentReplyDialogEndpoint");_.DYw=new _.Dt("updateCommentDialogEndpoint");_.S7i=new _.Dt("updateCommentReplyDialogEndpoint");var CUZ=new _.Dt("menuEndpoint");var AIm=new _.Dt("modalEndpoint");var Klk=new _.Dt("playlistEditorEndpoint");var abG=new _.Dt("copyTextEndpoint");var cU0,p2i;cU0=new _.Dt("shareEndpoint");p2i=new _.Dt("shareEntityEndpoint");_.Qhw=new _.Dt("shareEntityServiceEndpoint");_.t7r=new _.Dt("userFeedbackEndpoint");_.Yr=new _.Dt("watchEndpoint");var AlV=new _.Dt("watchPlaylistEndpoint");var V$i=new _.Dt("addUpcomingEventReminderEndpoint");_.RD=new _.Dt("getCommentsFromInboxCommand");var EOA=new _.Dt("notificationOptOutEndpoint");var UYA=new _.Dt("recordNotificationInteractionsEndpoint");var lbG=new _.Dt("removeUpcomingEventReminderEndpoint");_.FU=new _.Dt("getDownloadActionCommand");_.t$0=new _.Dt("offlineOrchestrationActionCommand");var NXA=function(){sm.apply(this,arguments)};
_.I(NXA,sm);NXA.prototype.getAssociations=function(){return[]};
NXA.prototype.getTypeName=function(){return"captionTrack"};var M$j=function(){sm.apply(this,arguments)};
_.I(M$j,sm);M$j.prototype.getAssociations=function(){return[]};
M$j.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var nOw=function(){sm.apply(this,arguments)};
_.I(nOw,sm);nOw.prototype.getAssociations=function(){return[]};
nOw.prototype.getTypeName=function(){return"offlineVideoPolicy"};var ZMi=function(){sm.apply(this,arguments)};
_.I(ZMi,sm);ZMi.prototype.getAssociations=function(){return[]};
ZMi.prototype.getTypeName=function(){return"offlineVideoStreams"};var fbw=function(){sm.apply(this,arguments)};
_.I(fbw,sm);fbw.prototype.getAssociations=function(){var A=[];this.delegate.transfer&&A.push(this.delegate.transfer);this.delegate.adsPlaybackData&&A.push.apply(A,_.fV(this.delegate.adsPlaybackData));this.delegate.drmLicense&&A.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&A.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.fV(new Set(A)))};
fbw.prototype.getTypeName=function(){return"playbackData"};var w2Z=function(){sm.apply(this,arguments)};
_.I(w2Z,sm);w2Z.prototype.getAssociations=function(){return[]};
w2Z.prototype.getTypeName=function(){return"refresh"};var oOJ=function(){sm.apply(this,arguments)};
_.I(oOJ,sm);oOJ.prototype.getAssociations=function(){var A=[];this.delegate.offlineVideoStreams&&A.push.apply(A,_.fV(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&A.push.apply(A,_.fV(this.delegate.captionTrack));return[].concat(_.fV(new Set(A)))};
oOJ.prototype.getTypeName=function(){return"transfer"};var $Yi=function(){sm.apply(this,arguments)};
_.I($Yi,sm);$Yi.prototype.getAssociations=function(){return[]};
$Yi.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var A0i=new _.Dt("showMoreDrawerCommand");var Hkp=new _.Dt("updateEngagementPanelContentCommand");var sgw=new _.Dt("getPdgBuyFlowCommand");var k2w=new _.Dt("liveChatPurchaseMessageEndpoint");var dcN=new _.Dt("openSuperStickerBuyFlowCommand");var Wyi=new _.Dt("updatePdgFeatureEnablementCommand");var z2w=function(){sm.apply(this,arguments)};
_.I(z2w,sm);z2w.prototype.getAssociations=function(){return[]};
z2w.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var qpp=function(){sm.apply(this,arguments)};
_.I(qpp,sm);qpp.prototype.getAssociations=function(){return[]};
qpp.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.r0Z=new _.Dt("pdgCommentChipRenderer");_.uww=new _.Dt("permissionRoleBottomBarRenderer");_.BsN=new _.Dt("updatePermissionRoleCommand");var e2J=new _.Dt("prefetchWatchCommand");var xc0=new _.Dt("updatePlayerErrorMessageCommand");var tUX=new _.Dt("toggleCaptionsVisibilityCommand");var ikj=new _.Dt("playerDisclosureViewModel");_.h2G=new _.Dt("quickActionsViewModel");var OkA=new _.Dt("playerResponse");var R2w=new _.Dt("playlistRenderer");_.TsN=new _.Dt("playlistVideoListRenderer");_.Tr=new _.Dt("playlistEditEndpoint");var mcw=new _.Dt("createImagePollCommand");var J0p=new _.Dt("createQuizCommand");var gTp=new _.Dt("quizRenderer");var bkk=new _.Dt("uploadedVideoRenderer");var Lyk=new _.Dt("decorateMessageEndpoint");var vTj=new _.Dt("lpOfferCardOptionViewModel");var y0A=new _.Dt("lpOfferTableRowViewModel");var jgA=new _.Dt("sfvAudioItemPlaybackCommand");var IJA=function(){sm.apply(this,arguments)};
_.I(IJA,sm);IJA.prototype.getAssociations=function(){return[]};
IJA.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.m1=new _.Dt("reelNonVideoContentEndpoint");_.A1=new _.Dt("reelWatchEndpoint");var Ypw=new _.Dt("reelActionBarViewModel");_.JS=new _.Dt("reelItemRenderer");var PVw=new _.Dt("reelMetapanelViewModel");_.G21=new _.Dt("reelNonVideoContentRenderer");var FyA=new _.Dt("shortsLockupViewModel");var XfG=new _.Dt("sponsorButtonViewModel");var Dc1=new _.Dt("reelItemWatchResponse");var Spi=new _.Dt("textBadgeRenderer");_.gN=new _.Dt("buttonRenderer");_.bR=new _.Dt("toggleButtonRenderer");var WiV=new _.Dt("switchButtonViewModel");_.CVj=new _.Dt("confirmDialogRenderer");var Kyw;Kyw=new _.Dt("menuRenderer");_.aJw=new _.Dt("menuFlexibleItemRenderer");var c00=new _.Dt("pollRenderer");_.pfp=new _.Dt("backgroundPromoRenderer");var V0A;_.QgQ=new _.Dt("chipCloudRenderer");V0A=new _.Dt("chipCloudChipRenderer");var ETi=new _.Dt("dropdownRenderer");var Uck=new _.Dt("gridVideoRenderer");_.lJZ=new _.Dt("itemSectionRenderer");_.t0G=new _.Dt("messageRenderer");var Ns0=new _.Dt("sortFilterHeaderRenderer");_.M01=new _.Dt("videoRenderer");var nTw=new _.Dt("resolveUrlCommandMetadata");var Zk0=function(){sm.apply(this,arguments)};
_.I(Zk0,sm);Zk0.prototype.getAssociations=function(){return[]};
Zk0.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.fJA=new _.Dt("getAnswerCommand");_.wl=new _.Dt("searchEndpoint");var wfZ=new _.Dt("genAiRichTextViewModel");var o$N=new _.Dt("overviewAnswerViewModel");var oTi=new _.Dt("videoOverviewViewModel");var $cJ=new _.Dt("addToPlaylistServiceEndpoint");var AB0=new _.Dt("clearSearchHistoryEndpoint");var Hgj=new _.Dt("clearWatchHistoryEndpoint");var s6Z=new _.Dt("webSerializedServiceEndpointExtension");_.kGA=new _.Dt("createCommentEndpoint");var dK0=new _.Dt("createCommentReplyEndpoint");var WfG=new _.Dt("performCommentActionEndpoint");var zak=new _.Dt("updateCommentEndpoint");var qlA=new _.Dt("updateCommentReplyEndpoint");_.L4=new _.Dt("createPlaylistServiceEndpoint");var rBw=new _.Dt("deletePlaylistEndpoint");var uJw=new _.Dt("deleteVideoEndpoint");var $uX=new _.Dt("getReportFormEndpoint");var BfZ=new _.Dt("modifyChannelNotificationPreferenceEndpoint");var ubA;_.wH=new _.Dt("offlinePlaylistEndpoint");ubA={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 BZX;_.fj=new _.Dt("offlineVideoEndpoint");BZX={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 eaA=new _.Dt("pingingEndpoint");_.xK1=new _.Dt("selectActiveIdentityEndpoint");var igN=new _.Dt("setSettingEndpoint");var pvv=new _.Dt("undoFeedbackEndpoint");var haw=new _.Dt("unsubscribeEndpoint");_.OgZ=new _.Dt("updatedMetadataEndpoint");var RaG=function(){sm.apply(this,arguments)};
_.I(RaG,sm);RaG.prototype.getAssociations=function(){return[]};
RaG.prototype.getTypeName=function(){return"settingEntity"};_.Tfp=new _.Dt("updateLocalAppSettingCommand");var mKw=new _.Dt("saveImageToDeviceEndpoint");var JBN=new _.Dt("shareImageCommand");var gLj=new _.Dt("sharingProviderDataCommand");var bgQ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(bgQ,_.OW);var LfJ=[0,_.aX,-1];bgQ.prototype.JSC$12847_serializeBinary=u9N(LfJ);var vLG=_.Ff(LfJ);var yBi=new _.Dt("userMentionSuggestionRenderer");var j6J=new _.Dt("liveChatTunnelCommand");var Ipp=new _.Dt("showSponsorshipsGiftOfferDialogCommand");var Ylw=new _.Dt("sponsorshipsScrollableShelfViewModel");var Pup=new _.Dt("updateUpcomingEventReminderButtonStateCommand");var GGJ=new _.Dt("upcomingEventReminderButtonStateRenderer");var Ffp=new _.Dt("subscribeEndpoint");var XwA=new _.Dt("registerTasksCommand");var DKi=new _.Dt("hideSheetCommand");var Slw=new _.Dt("hideSnackbarCommand");var Cuw=new _.Dt("showDialogCommand");_.d9=new _.Dt("showSheetCommand");var Kfw=new _.Dt("showSnackbarCommand");var apJ=function(){sm.apply(this,arguments)};
_.I(apJ,sm);apJ.prototype.getAssociations=function(){return[]};
apJ.prototype.getTypeName=function(){return"chipEntity"};var cBQ=function(){sm.apply(this,arguments)};
_.I(cBQ,sm);cBQ.prototype.getAssociations=function(){return[]};
cBQ.prototype.getTypeName=function(){return"dismissState"};_.TV=new _.Dt("avatarViewModel");var pwp=new _.Dt("badgeViewModel");_.vY=new _.Dt("buttonViewModel");_.yF=new _.Dt("chipViewModel");var Q6G=new _.Dt("contentPreviewImageViewModel");var V3i=new _.Dt("decoratedAvatarViewModel");_.yHI=new _.Dt("engagementBarViewModel");_.ELA=new _.Dt("imageBannerViewModel");var UKJ=new _.Dt("lockupContentMetadataRowExtension");_.lpZ=new _.Dt("lockupMetadataViewModel");var t3p=new _.Dt("lockupViewModel");var Nfk=new _.Dt("avatarStackViewModel");_.M3J=new _.Dt("contentMetadataViewModel");var nLk=function(){sm.apply(this,arguments)};
_.I(nLk,sm);nLk.prototype.getAssociations=function(){return[]};
nLk.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Zgw=new _.Dt("pageHeaderViewModel");var fpk=new _.Dt("snackbarViewModel");var wwG=new _.Dt("thumbnailHoverOverlayToggleActionsViewModel");_.jG=new _.Dt("toggleButtonViewModel");var oLp=function(){sm.apply(this,arguments)};
_.I(oLp,sm);oLp.prototype.getAssociations=function(){return[]};
oLp.prototype.getTypeName=function(){return"votingEntity"};_.j2V=new _.Dt("votingViewModel");var $KZ=new _.Dt("sectionHeaderViewModel");var AzG=new _.Dt("notifyDropdownOptionSelectedCommand");var STI=new _.Dt("listViewModel");_.WG=new _.Dt("listItemViewModel");var Hri=new _.Dt("dialogHeaderViewModel");var srZ=function(){sm.apply(this,arguments)};
_.I(srZ,sm);srZ.prototype.getAssociations=function(){return[]};
srZ.prototype.getTypeName=function(){return"dataFreshnessEntity"};var VHI=new _.Dt("suspenseViewModel");var kXj=new _.Dt("tooltipViewModel");var d6w=function(){sm.apply(this,arguments)};
_.I(d6w,sm);d6w.prototype.getAssociations=function(){return[]};
d6w.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var WgZ=function(){sm.apply(this,arguments)};
_.I(WgZ,sm);WgZ.prototype.getAssociations=function(){return[]};
WgZ.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var zbw=function(){sm.apply(this,arguments)};
_.I(zbw,sm);zbw.prototype.getAssociations=function(){return[]};
zbw.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.qcA=new _.Dt("transcriptSubmitCaptionCorrectionCommand");var rzw=function(){sm.apply(this,arguments)};
_.I(rzw,sm);rzw.prototype.getAssociations=function(){return[]};
rzw.prototype.getTypeName=function(){return"buttonEntity"};var EAb=new _.Dt("unpluggedStringRunImage");var umN=new _.Dt("tabViewModel");var Bqw=new _.Dt("tabbedViewModel");var ebw=function(){sm.apply(this,arguments)};
_.I(ebw,sm);ebw.prototype.getAssociations=function(){return[]};
ebw.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.x6w=new _.Dt("updateDescriptionAction");var irA=new _.Dt("updateToggleButtonTextAction");var hbi=new _.Dt("showFullscreenPlayerControlsCommand");var OrJ=new _.Dt("updateVideoMetadataCommand");_.RbJ=new _.Dt("autoplaySwitchButtonRenderer");var mW;_.Tqj=new _.Dt("multiMarkersPlayerBarRenderer");mW=new _.Dt("chapterRenderer");var m6w=new _.Dt("heatMarkerRenderer");var wvX=new _.Dt("heatmapRenderer");var Jzp=new _.Dt("smartSkipPlayerScrimOverlayRenderer");var g0A=new _.Dt("timedMarkerDecorationRenderer");var xqA=new _.Dt("postWebToNativeMessageCommand");var TF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(TF,_.OW);TF.prototype.getMethodName=function(){return _.O8(this,1)};var brw=[0,_.aX,-2];TF.prototype.JSC$12869_serializeBinary=u9N(brw);var Lgw=_.Pz(TF,brw);var v01=new _.Dt("whitelistEditEndpoint");var yz0=new _.Dt("clearUrlParamCommand");var jrZ=new _.Dt("commerceActionCommand");_.IkZ=new _.Dt("getPaymentInstrumentsParamsCommand");var Yc1=new _.Dt("getPaymentsClientTokenCommand");var PBG=new _.Dt("googlePaymentBillingCommand");var GXA=new _.Dt("googlePaymentPurchaseManagerCommand");_.Fg0=new _.Dt("logGtmCommand");var XxN=new _.Dt("updateCardItemOnClickCommand");_.D6J=new _.Dt("ypcPauseSubscriptionCommand");_.ScN=new _.Dt("ypcResumeSubscriptionCommand");var CBG=function(){sm.apply(this,arguments)};
_.I(CBG,sm);CBG.prototype.getAssociations=function(){return[]};
CBG.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var KgJ=function(){sm.apply(this,arguments)};
_.I(KgJ,sm);KgJ.prototype.getAssociations=function(){return[]};
KgJ.prototype.getTypeName=function(){return"commerceCartListEntity"};var akw=function(){sm.apply(this,arguments)};
_.I(akw,sm);akw.prototype.getAssociations=function(){return[]};
akw.prototype.getTypeName=function(){return"iconBadgeEntity"};var czJ=function(){sm.apply(this,arguments)};
_.I(czJ,sm);czJ.prototype.getAssociations=function(){return[]};
czJ.prototype.getTypeName=function(){return"pdpStateEntity"};var pxQ=function(){sm.apply(this,arguments)};
_.I(pxQ,sm);pxQ.prototype.getAssociations=function(){return[]};
pxQ.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var QUV=new _.Dt("ypcOffersEndpoint");var QrA=new _.Dt("cardItemRenderer"),VZk=new _.Dt("cardItemTextRenderer");var E0A=new _.Dt("commerceCartItemQuantityPickerRenderer");var U6p=new _.Dt("linkCardRenderer");var WwQ=new _.Dt("quantityIncrementerButtonViewModel");var lkZ=new _.Dt("quantityIncrementerViewModel");var tZw=new _.Dt("themedImageViewModel");_.Nqp=new _.Dt("ypcCancelRecurrenceEndpoint");var MZ1=new _.Dt("ypcCompleteTransactionEndpoint");_.n0J=new _.Dt("ypcGetCartEndpoint");_.FB=new _.Dt("ypcGetOffersEndpoint");_.ID=new _.Dt("ypcHandleTransactionEndpoint");var wAQ=new _.Dt("ypcLogWalletAnalyticDataEndpoint");_.ovN=new _.Dt("ypcRedeemCodeEndpoint");var $Oj=new _.Dt("ypcUpdateFopEndpoint");KI(CI(1),DD(4));FJw((new MessageChannel).port2);var APZ=function(){this.register=new Map},b4l=function(A,H,k){A=A+"_"+H;
Ye.register.has(A)?k=Ye.register.get(A):(k=k(),Ye.register.set(A,k));return k},Hv1=function(A){A=_.r(A.register.values());
for(var H=A.next();!H.done;H=A.next())_.$q(H.value,"ABORTED")};
APZ.prototype.clear=function(){Hv1(this);this.register.clear()};
var Ye=new APZ;var H4l=Date.now().toString();var dlV=krV();var xlm={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 sHA;sHA=1;_.xr=function(A){this.veData=A};
_.db=function(A){return new _.xr({trackingParams:A})};
_.t8=function(A,H,k,d,W,z){var u=sHA++;return new _.xr({veType:A,veCounter:u,elementIndex:k,dataElement:H,youtubeData:d,jspbYoutubeData:W,loggingDirectives:z})};
_.q=_.xr.prototype;
_.q.getAsJson=function(){var A={};this.veData.trackingParams!==void 0?A.trackingParams=this.veData.trackingParams:(A.veType=this.veData.veType,this.veData.veCounter!==void 0&&(A.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(A.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(A.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(A.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(A.isCounterfactual=!0);
return A};
_.q.getAsJspb=function(){var A=new rZA;this.veData.trackingParams!==void 0?A.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.gd(A,2,this.veData.veType),this.veData.veCounter!==void 0&&_.gd(A,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.gd(A,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.tj(A,5,!0));if(this.veData.dataElement!==void 0){var H=this.veData.dataElement.getAsJspb();_.Sn(A,7,H)}this.veData.youtubeData!==void 0&&_.Sn(A,8,this.veData.jspbYoutubeData);
return A};
_.q.toString=function(){return JSON.stringify(this.getAsJson())};
_.q.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.q.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.nG("yt_logging_screen.getRootVeType",uPI);_.nG("yt_logging_screen.getCurrentCsn",_.hx);_.nG("yt_logging_screen.getCttAuthInfo",Od);_.nG("yt_logging_screen.setCurrentScreen",_.RC);var kqw=function(){this.events=new Map},dMN=function(A){var H=[];
A=_.r(A.events.values());for(var k=A.next();!k.done;k=A.next())H.push(k.value);return H};
kqw.prototype.clear=function(){this.events.clear()};var zK0=function(){this.logTransport=new Wdk;this.loggedEventRegister=new kqw;this.unloggedEventRegister=new kqw;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12906_flushTimer=new _.BT(this.flushInterval);this.JSC$12906_flushTimer.listen("tick",this.flush,!1,this)};
zK0.prototype.flush=function(){if(this.eventsCount){var A={loggedEvents:dMN(this.loggedEventRegister),unloggedEvents:dMN(this.unloggedEventRegister)};if(_.b("export_player_version_to_ytconfig")){var H;(H=_.pZ("PLAYER_CLIENT_VERSION"))?(H=H.split("-")[0].replace(/\./g,""),H=isNaN(Number(H))?"0":H):H="";var k=_.pZ("PLAYER_CLIENT_VERSION");if(k){k=k.split("-");var d="";k.length>1&&(d=k[k.length-1]);k=ASI(d.startsWith("canary_experiment")?"canary":d.startsWith("canary_control")?"control":"none")}else k=
"CLIENT_CANARY_STATE_UNKNOWN";A.dimensions={playerClientVersion:H,playerCanaryState:k}}this.logTransport.flush(A);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12906_flushTimer.enabled&&this.JSC$12906_flushTimer.stop()}};
var qEJ=function(A){PY==null&&(PY=new zK0);var H=PY;var k=H.loggedEventRegister;A.dimensions=A.dimensions||{};A.dimensions.csn=_.hx()||"";var d=O4b(A.dimensions).join(";");if(A.records!=null)if(k.events.has(d)){var W;(W=k.events.get(d).records)==null||W.push.apply(W,_.fV(A.records))}else k.events.set(d,A);H.JSC$12906_flushTimer.enabled||H.JSC$12906_flushTimer.start();H.eventsCount++;H.eventsCount>=100&&H.flush()};var Wdk=function(){};
Wdk.prototype.flush=function(A,H){_.b("enable_client_sli_logging")&&_.yr("sliEventBatch",A,{sendIsolatedPayload:!!H})};var PY;var usG;usG=function(A){var H=rPA;A=A===void 0?{}:A;H=H.name;var k=geX("SUCCESS");qEJ({dimensions:A,records:[{name:H,state:"SLI_STATE_END",status:k}]})};
_.L1f=function(A,H,k,d){this.name=A;this.sliId=H;this.timeoutMs=k;this.statusOnTimeout=d;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.L1f.prototype.getId=function(){return this.sliId};
_.oI=function(A,H){H=H===void 0?{}:H;A.ongoing||(A.ongoing=!0,A.dimensions=H,A.logSliId=lOm(),qEJ({dimensions:A.dimensions,records:[{name:A.name,state:"SLI_STATE_START",sliId:A.logSliId}]}),A.timeoutMs>0&&(A.timeoutHandle=setTimeout(function(){_.$q(A,A.statusOnTimeout)},A.timeoutMs)))};
_.$q=function(A,H){A.ongoing&&(A.timeoutMs>0&&clearTimeout(A.timeoutHandle),A.ongoing=!1,H={dimensions:A.dimensions,records:[{name:A.name,status:geX(H),state:"SLI_STATE_END",sliId:A.logSliId}]},Ye.register.delete(A.name+"_"+A.sliId),qEJ(H))};var rPA=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var BAA=function(){sm.apply(this,arguments)};
_.I(BAA,sm);BAA.prototype.getAssociations=function(){return[]};
BAA.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var eKw=new _.Dt("highlightTextDecoratorColorMapExtension");var xMA=new _.Dt("styleRunColorMapExtension");var GrQ=_.XO(["data-"]),DlN={};var CRA={};var Gr=function(A){this.wrappedPromise_=A===void 0?null:A;this.state_=0;this.JSC$12937_value_=null};
Gr.prototype.then=function(A,H,k){return this.wrappedPromise_?this.wrappedPromise_.then(A,H,k):this.state_===1&&A?(A=A.call(k,this.JSC$12937_value_))&&typeof A.then==="function"?A:_.FP(A):this.state_===2&&H?(A=H.call(k,this.JSC$12937_value_))&&typeof A.then==="function"?A:_.iv1(A):this};
Gr.prototype.getValue=function(){return this.JSC$12937_value_};
Gr.prototype.isRejected=function(){return this.state_==2};
jxG(Gr);_.iv1=function(A){var H=new Gr;A=A===void 0?null:A;H.state_=2;H.JSC$12937_value_=A===void 0?null:A;return H};
_.FP=function(A){var H=new Gr;A=A===void 0?null:A;H.state_=1;H.JSC$12937_value_=A===void 0?null:A;return H};var f2W="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var hKw=["load","abort","error"],XP=function(A,H,k){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12957_maxAspectRatio_=A;this.disableAnimation_=H===void 0?!1:H;this.disableExifRotation_=k===void 0?!1:k;this.JSC$12957_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12957_reject_=this.resolve_=null};
XP.prototype.transform=function(A){var H=this;this.mime_=A.type;aw(o5w(A),this.dataUrlRead_,this.readError_,this);aw(w8p(A.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(k,d){H.resolve_=k;H.JSC$12957_reject_=d})};
XP.prototype.dataUrlRead_=function(A){this.dataUrl_=A;this.angle_!=null&&Ovi(this)};
XP.prototype.exifRead_=function(A){if(this.disableExifRotation_)this.angle_=0;else{a:if(A=new DataView(A),A.byteLength<2||A.getUint16(0)!==65496)A=-2;else{for(var H=2,k=A.byteLength;H<k;){var d=A.getUint16(H),W=A.getUint16(H+2);if(d===65505){H+=4;d=A.getUint32(H);W=A.getUint16(H+4);if(d!==1165519206||W!==0)break;H+=6;d=A.getUint16(H)===18761;H+=A.getUint32(H+4,d);W=A.getUint16(H,d);H+=2;for(var z=0;z<W;z++){if(A.getUint16(H,d)===274){H+=8;A=A.getUint16(H,d);break a}H+=12}}else if(d>>8!==255)break;
else H+=W+2}A=-1}switch(A){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&&Ovi(this)};
XP.prototype.readError_=function(){this.JSC$12957_reject_()};
var Ovi=function(A){T4(A.JSC$12957_image_,hKw,A.completeTransform_,!1,A);A.JSC$12957_image_.src=_.fx(A.dataUrl_).toString();A.JSC$12957_image_.src!=Zy.toString()&&A.JSC$12957_image_.src.substr(0,11)==="data:image/"||A.JSC$12957_reject_()};
XP.prototype.completeTransform_=function(){if(this.JSC$12957_image_.src!=Zy.toString()){var A=_.fx(this.dataUrl_),H=this.JSC$12957_image_.naturalHeight?this.JSC$12957_image_.naturalWidth/this.JSC$12957_image_.naturalHeight:null;this.invalidAspectRatio=H>this.JSC$12957_maxAspectRatio_||H<1/this.JSC$12957_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var k=this.JSC$12957_image_.naturalWidth,d=this.JSC$12957_image_.naturalHeight,W=H=0,z=this.JSC$12957_image_.naturalHeight?this.JSC$12957_image_.naturalWidth/
this.JSC$12957_image_.naturalHeight:null;z>this.JSC$12957_maxAspectRatio_?(k=this.JSC$12957_maxAspectRatio_*d,H=(k-this.JSC$12957_image_.naturalWidth)/2,this.cropped=!0):z<1/this.JSC$12957_maxAspectRatio_?(d=this.JSC$12957_maxAspectRatio_*k,W=(d-this.JSC$12957_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)z=k,k=d,d=z,z=H,H=W,W=z;switch(this.angle_){case 90:W-=k;break;case 180:H-=k;W-=d;break;case 270:H-=
d}this.cropped||this.angle_%360!==0?(A=document.createElement("canvas"),A.width=k||1,A.height=d||1,this.JSC$12957_image_.naturalWidth&&this.JSC$12957_image_.naturalHeight&&(k=A.getContext("2d"),k.rotate(Math.PI/180*this.angle_),k.drawImage(this.JSC$12957_image_,H,W,this.JSC$12957_image_.naturalWidth,this.JSC$12957_image_.naturalHeight)),this.transformedData=_.fx(A.toDataURL(this.mime_))):this.transformedData=A}else this.transformedData=A;this.resolve_(this)}};var D2=function(A,H){_.NZ.call(this,A);this.value=H};
_.I(D2,_.NZ);
var SG=function(A,H,k,d,W,z,u){u=u===void 0?!1:u;_.Is.call(this);var B=this;this.JSC$12962_url_=A;this.channelId_=H;this.maxFileSizeMb_=k;this.JSC$12962_maxAspectRatio_=d;this.dropZoneEl_=W;this.rejectInvalidAspectRatio_=u;this.selectButtonEl_=z;this.JSC$12962_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new lr(this.dropZoneEl_);this.selectOverlay_=new tq(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12962_image_=this.transfer_=null;this.handler_=new _.qZ(this);_.ZL(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(){B.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.I(SG,_.Is);SG.prototype.disposeInternal=function(){for(var A=this.selectButtonEl_.nextSibling;A&&A.parentNode&&A.tagName=="INPUT";)A.parentNode.removeChild(A),A=this.selectButtonEl_.nextSibling;this.cancel();_.Is.prototype.disposeInternal.call(this)};
SG.prototype.uploadPromise=function(){if(this.JSC$12962_image_==null)return null;this.uploadPromise_||RKw(this);return this.uploadPromise_};
SG.prototype.cancel=function(){TA1(this);this.JSC$12962_image_=null};
var TA1=function(A){A.transfer_&&A.transfer_.cancel();A.transfer_=null;A.uploadPromise_=null;A.resolve_=null;A.JSC$12962_reject_=null},RKw=function(A){TA1(A);
A.transfer_=_.CHA(A.JSC$12962_url_,{"X-YouTube-ChannelId":A.channelId_},A.JSC$12962_image_);A.handler_.listenOnce(A.transfer_,"l",A.JSC$12964_onUploadComplete_);A.handler_.listenOnce(A.transfer_,"n",A.onUploadError_);A.transfer_.run();A.uploadPromise_=new Promise(function(H,k){A.resolve_=H;A.JSC$12962_reject_=k})};
_.q=SG.prototype;_.q.onChange_=function(A){A.files.length&&(this.JSC$12962_image_=A.files[0],this.JSC$12962_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12962_image_=null,this.dispatchEvent(new D2("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(RKw(this),(new XP(this.JSC$12962_maxAspectRatio_)).transform(this.JSC$12962_image_).then((0,_.WT)(this.onPreview_,this),(0,_.WT)(this.onPreviewError_,this))))};
_.q.onPreview_=function(A){if(A.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12962_image_=null),this.dispatchEvent(new D2("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;A.cropped&&this.dispatchEvent(new D2("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new D2("yt.comments.ImageUploadOverlay.CHANGE_EVENT",A.transformedData))};
_.q.onPreviewError_=function(){this.JSC$12962_image_=null;this.dispatchEvent(new D2("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.q.onHover_=function(A){A.stopPropagation();A.preventDefault();if(A.type==="dragover")A=!0;else if(A.type==="dragleave")A=!1;else return;this.dispatchEvent(new D2("yt.comments.ImageUploadOverlay.HOVER_EVENT",A))};
_.q.JSC$12964_onUploadComplete_=function(){var A=(0,_.fRZ)(this.transfer_.getResponseText());this.resolve_(A.encryptedBlobId)};
_.q.onUploadError_=function(){this.JSC$12962_reject_();TA1(this)};var mMk=function(A){A=A||{};var H={},k={};this.url=A.url||"";this.args=A.args||_.iK.clone(H);this.assets=A.assets||{};this.attrs=A.attrs||_.iK.clone(k);this.fallback=A.fallback||null;this.fallbackMessage=A.fallbackMessage||null;this.html5=!!A.html5;this.disable=A.disable||{};this.loaded=!!A.loaded;this.messages=A.messages||{}};
mMk.prototype.clone=function(){var A=new mMk,H;for(H in this)if(this.hasOwnProperty(H)){var k=this[H];_.dL(k)=="object"?A[H]=_.iK.clone(k):A[H]=k}return A};var kdN=function(A,H,k){k=k===void 0?{}:k;this.name=A;this.id=cB.nextSpanId++;this.sessionId=cB.sessionId;this.attributes=H;this.status="SPAN_STATUS_UNSET";var d;this.startTime=(d=k.startTime)!=null?d:(0,_.w2)();this.isActiveSpan=k.active;if(A=cB.stack[cB.stack.length-1])this.parentId=A.id,A.children||(A.children=[]),A.children.push(this);A=_.r(cB.processors);for(H=A.next();!H.done;H=A.next()){H=H.value;try{var W=d=void 0;(W=(d=H).onSpanStart)==null||W.call(d,this)}catch(z){_.Pq(z)}}k.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",k.endTime))};
kdN.prototype.end=function(A,H){A=A===void 0?"SPAN_STATUS_OK":A;this.endTime=H=H===void 0?(0,_.w2)():H;this.duration=this.endTime-this.startTime;this.status=A;this.isActiveSpan!==!1&&(cB.stack[cB.stack.length-1]===this?cB.stack.pop():_.Pq(Error("Cf`"+String(this.name))));A=_.r(cB.processors);for(H=A.next();!H.done;H=A.next()){H=H.value;try{var k=void 0,d=void 0;(d=(k=H).onSpanEnd)==null||d.call(k,this)}catch(W){_.Pq(W)}}};
kdN.prototype.addAttributes=function(A){Object.assign(this.attributes,A)};
var dE8={end:function(){},
addAttributes:function(){}},cB={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},sYN={rootSpan:function(){return cB.stack[0]}};var VS={};var jRV=function(A){this.observers=[];this.value=A};
_.q=jRV.prototype;_.q.subscribe=function(A){var H=this;if(A.idx!=null)throw Error("Ef");A.idx=this.observers.length;this.observers.push(A);try{A(this.value)}catch(k){}return function(){var k=H.observers[H.observers.length-1];H.observers[A.idx]=k;k.idx=A.idx;H.observers.pop()}};
_.q.update=function(A){this.value=A(this.value);this.notify()};
_.q.mutate=function(A){A(this.value);this.notify()};
_.q.set=function(A){this.value=A;this.notify()};
_.q.notify=function(){for(var A=_.r(this.observers),H=A.next();!H.done;H=A.next()){H=H.value;try{H(this.value)}catch(k){}}};var JPw,gj1,bvi,Cw,vjw,yPi,jHk,IVw,YEi,PDQ,Gqw,Fdj,X$Z,DMw,SEw,CDw,KdZ,aVw,cP0,p$A,QHA,VoG,Ejj,UMw,lVw,toj,NAZ,Mow,nj1,gKl,ZvA,fVw,w$0,ojw,$M0,Alj,HEi,sBJ,kT0,d9N,JHI,We1,zhk,qbp,rlZ,uyQ,BBN,ehQ,x9i,iEp,hh0,OEw,Rhw,TBJ,m9J,Jlp,C4,gF1,bE1,LeA,vFw,ylk,jBk,IAA,YbZ,PTJ,GTG,FeJ,XbA,D9w,Sb1,CTw,Kep,aAw,cli,pbw,T$f,QBw,Vew,EF0,U9G,lAN,tej,NBA,MeA,nFG,ZE1,fAN,wbG,oFj,$9i,ACA,HsA,svZ,khG,daN,WkN,z_N,qjA,rCG,u5N,Bmi;JPw=["account/accounts_list"];gj1=["acknowledge_channel_tou_strike"];bvi=["notification/add_upcoming_event_reminder"];
_.LdJ=["att/get"];Cw=["browse","music/browse","streaming_browse","unplugged/browse"];vjw=["channel/claim_legacy_youtube_channel"];yPi=["history/clear_search_history"];jHk=["history/clear_watch_history"];IVw=["comment/perform_comment_action"];YEi=["comment/get_comment_replies"];PDQ=["ypc/commerce_action"];Gqw=["backstage/create_post"];Fdj=["live/create_broadcast"];X$Z=["channel/create_channel"];DMw=["comment/create_comment_reply"];SEw=["comment/create_comment"];CDw=["live_chat/create_poll"];KdZ=["playlist/create"];
aVw=["decorate_message"];cP0=["live_chat/delete_message"];p$A=["playlist/delete"];QHA=["video/delete"];VoG=["like/dislike"];Ejj=["dismissal/dismiss"];UMw=["flag/flag"];lVw=["flow"];toj=["account/account_menu"];NAZ=["playlist/get_add_to_playlist"];Mow=["get_answer"];nj1=["channel/get_channel_creation_form"];gKl=["offline/get_download_action"];ZvA=["kids/get_kids_blocklist_picker"];fVw=["live_chat/get_item_context_menu"];w$0=["live_chat/get_live_chat_message_buy_flow"];ojw=["live_chat/get_live_chat_replay"];
$M0=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Alj=["live_chat/get_live_chat_super_sticker_buy_flow"];HEi=["notification/get_notification_menu"];sBJ=["playlist/get_settings_editor"];kT0=["backstage/get_post_video_preview"];d9N=["account/get_profile_card"];JHI=["share/get_share_panel"];We1=["share/get_sharing_provider_data"];zhk=["get_survey"];qbp=["notification/get_unseen_count"];rlZ=["get_user_mention_suggestions"];uyQ=["get_watch"];BBN=["guide"];
ehQ=["feedback"];x9i=["kids/update_blacklist"];iEp=["like/like"];hh0=["live_chat/live_chat_action"];OEw=["live_chat/manage_user"];Rhw=["video_manager/metadata_update"];TBJ=["live_chat/moderate"];m9J=["notification/modify_channel_preference"];Jlp=["notification/opt_out"];C4=["get_panel","streaming_panel","get_posts_by_host_panel"];gF1=["player"];bE1=["browse/edit_playlist"];LeA=["notification/record_interactions"];vFw=["reel/reel_item_watch"];ylk=["reel/reel_watch_sequence"];jBk=["like/removelike"];
IAA=["notification/remove_upcoming_event_reminder"];YbZ=["flag/get_form"];PTJ=["miniapp/report_value"];GTG=["navigation/resolve_url"];FeJ=["channel/reveal_business_email"];XbA=["in_video/search"];D9w=["search","sfv/search","unplugged/search"];Sb1=["live_chat/send_message"];CTw=["live_chat/send_live_chat_vote"];Kep=["account/set_setting"];aAw=["submit_caption_correction"];cli=["submit_form"];pbw=["subscription/subscribe"];T$f=["get_transcript"];QBw=["resolve_location","unplugged/resolve_location"];
Vew=["subscription/unsubscribe"];EF0=["backstage/update_post"];U9G=["channel_edit/update_channel_page_settings"];lAN=["comment/update_comment_reply"];tej=["comment/update_comment"];NBA=["comment/update_comments_settings"];MeA=["creator/update_creator_channel"];nFG=["pdg/update_enablement"];ZE1=["updated_metadata"];fAN=["channel_edit/validate_channel_handle"];wbG=["verify_age"];oFj=["next","unplugged/watch_next"];$9i=["whitelist/edit"];ACA=["ypc/cancel_recurrence"];HsA=["ypc/complete_transaction"];
svZ=["ypc/get_cart"];khG=["ypc/get_fix_instrument_params"];daN=["ypc/get_offers"];WkN=["ypc/get_payment_instruments_params"];z_N=["ypc/handle_transaction"];qjA=["ypc/log_payment_server_analytics"];rCG=["ypc/pause_subscription"];u5N=["ypc/redeem_code"];Bmi=["ypc/resume_subscription"];var e_w=[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,293324,32633,74858,297045,275198,271884,222932,279119,271886,213915,275199,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,283898,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,293041,293042,293043,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,294119,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,295069,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,294089,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,296316,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,296813,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 oC=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.nG("yt.msgs_",oC);var K4=new _.SE("ACTION_ROUTER_TOKEN");_.aD=function(){this.autonavState_=_.b("kevlar_is_pupi_enabled")?2:TCI()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.aD.prototype.getState=function(){return this.autonavState_};
_.aD.prototype.pause=function(A){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=A):this.autonavState_==1&&(this.disabledAutonavPauseReason_=A)};
_.aD.prototype.setState=function(A,H,k){H&&(this.autoplayChangedByUser=!0);H=this.autonavState_===3||A===3;this.autonavState_!=A&&(this.autonavState_=A,A!=3&&_.mEC(A==2),A=_.b("kevlar_is_pupi_enabled")?k||H:!0,_.a3.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,A,k))};
_.aD.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Qj(_.aD);var cY=function(){this.aF=!1};var p4={},GdV=(p4.auto_search="LATENCY_ACTION_AUTO_SEARCH",p4.ad_to_ad="LATENCY_ACTION_AD_TO_AD",p4.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",p4.app_startup="LATENCY_ACTION_APP_STARTUP",p4.browse="LATENCY_ACTION_BROWSE",p4.cast_splash="LATENCY_ACTION_CAST_SPLASH",p4.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",p4.channels="LATENCY_ACTION_CHANNELS",p4.chips="LATENCY_ACTION_CHIPS",p4.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",p4.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
p4.editor="LATENCY_ACTION_EDITOR",p4.embed="LATENCY_ACTION_EMBED",p4.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",p4.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",p4.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",p4.explore="LATENCY_ACTION_EXPLORE",p4.favorites="LATENCY_ACTION_FAVORITES",p4.home="LATENCY_ACTION_HOME",p4.inboarding="LATENCY_ACTION_INBOARDING",p4.landing="LATENCY_ACTION_LANDING",p4.learning="LATENCY_ACTION_LEARNING",
p4.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",p4.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",p4.library="LATENCY_ACTION_LIBRARY",p4.live="LATENCY_ACTION_LIVE",p4.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",p4.management="LATENCY_ACTION_MANAGEMENT",p4.mini_app="LATENCY_ACTION_MINI_APP_PLAY",p4.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",p4.onboarding="LATENCY_ACTION_ONBOARDING",p4.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
p4.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",p4.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",p4.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",p4.prebuffer="LATENCY_ACTION_PREBUFFER",p4.prefetch="LATENCY_ACTION_PREFETCH",p4.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",p4.profile_switcher="LATENCY_ACTION_LOGIN",p4.projects="LATENCY_ACTION_PROJECTS",p4.reel_watch="LATENCY_ACTION_REEL_WATCH",p4.results="LATENCY_ACTION_RESULTS",p4.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
p4.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",p4.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",p4.review="LATENCY_ACTION_REVIEW",p4.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",p4.search_ui="LATENCY_ACTION_SEARCH_UI",p4.search_suggest="LATENCY_ACTION_SUGGEST",p4.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",p4.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",p4.seek="LATENCY_ACTION_PLAYER_SEEK",p4.settings="LATENCY_ACTION_SETTINGS",p4.store="LATENCY_ACTION_STORE",
p4.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",p4.tenx="LATENCY_ACTION_TENX",p4.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",p4.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",p4.watch="LATENCY_ACTION_WATCH",p4.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",p4["watch,watch7"]="LATENCY_ACTION_WATCH",p4["watch,watch7_html5"]="LATENCY_ACTION_WATCH",p4["watch,watch7ad"]="LATENCY_ACTION_WATCH",p4["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",p4.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
p4.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",p4.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",p4.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",p4.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",p4.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",p4.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",p4.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",p4),xak=0;var nfI=function(A,H){d6.call(this,1,arguments);this.timer=H};
_.I(nfI,d6);var MdW=new O0A("aft-recorded",nfI);var SQm=_.k8.ytLoggingGelSequenceIdObj_||{};_.nG("ytLoggingGelSequenceIdObj_",SQm);var QF=_.k8.ytLoggingLatencyUsageStats_||{};_.nG("ytLoggingLatencyUsageStats_",QF);var VF=function(){this.cleanupJob=0},a4W=function(){VF.instance||(VF.instance=new VF);
return VF.instance};
_.q=VF.prototype;_.q.baseline=function(A,H,k){Em(this,"baseline_"+A)||_.yr("latencyActionBaselined",{clientActionNonce:A},{timestamp:H,cttAuthInfo:k})};
_.q.tick=function(A,H,k,d){Em(this,"tick_"+A+"_"+H)||_.yr("latencyActionTicked",{tickName:A,clientActionNonce:H},{timestamp:k,cttAuthInfo:d})};
_.q.info=function(A,H,k){var d=Object.keys(A).join("");Em(this,"info_"+d+"_"+H)||(A=Object.assign({},A),A.clientActionNonce=H,_.yr("latencyActionInfo",A,{cttAuthInfo:k}))};
_.q.jspbInfo=function(A,H,k){for(var d="",W=0;W<Q_(A).length;W++)Q_(A)[W]!==void 0&&(d=W===0?d.concat(""+W):d.concat("_"+W));Em(this,"info_"+d+"_"+H)||(_.qC(A,2,H),H={cttAuthInfo:k},k=_.b("jspb_sparse_encoded_pivot")?new Tg([{}]):new Tg,_.Cx(k,7,yrA,A),C$C("latencyActionInfo",k,H))};
_.q.span=function(A,H,k){var d=Object.keys(A).join("");Em(this,"span_"+d+"_"+H)||(A.clientActionNonce=H,_.yr("latencyActionSpan",A,{cttAuthInfo:k}))};
var Em=function(A,H){QF[H]=QF[H]||{count:0};var k=QF[H];k.count++;k.time=(0,_.w2)();A.cleanupJob||(A.cleanupJob=_.ma(_.IE,function(){var d=(0,_.w2)(),W;for(W in QF)QF[W]&&d-QF[W].time>6E4&&delete QF[W];A&&(A.cleanupJob=0)},5E3));
return k.count>5?(k.count===6&&Math.random()*1E5<1&&(k=new _.Ti("CSI data exceeded logging limit with key",H.split("_")),H.indexOf("plev")>=0||_.Pq(k)),!0):!1};var isj,h_J;isj=window;h_J=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.u9=isj.performance||isj.mozPerformance||isj.msPerformance||isj.webkitPerformance||new h_J;var NCl=!1,piV=!1,Z1W=(0,_.WT)(_.u9.clearResourceTimings||_.u9.webkitClearResourceTimings||_.u9.mozClearResourceTimings||_.u9.msClearResourceTimings||_.u9.oClearResourceTimings||_.xX,_.u9);var gyQ=_.ED(function(A,H,k,d,W,z,u){if(!_.b("web_csi_action_sampling_enabled")||!_.dE(z).actionDisabled){var B=u==null?void 0:u.spanStatus;u=u==null?void 0:u.rootSpanNonce;var h=_.W0(z);if(h.gelSpans)h.gelSpans[A]=!0;else{var O={};h.gelSpans=(O[A]=!0,O)}xak++;A={spanName:A,spanLengthUsec:String(Math.round(H*1E3)),spanNonce:xak,rootSpanNonce:u||xak};B&&(A.spanStatus=B);d&&(A.spanInfo=d);W&&(A.parentSpanNonce=W);k&&(A.spanStartTimeUsec=String(Math.round(k*1E3)));_.zH(z||"").span[String(A.spanName)]=
A;k=_.W0(z);k.gelSpans||(k.gelSpans={});_.mC(k.gelSpans,A);k=jYQ(z);z=_.dE(z).cttAuthInfo;a4W().span(A,k,z);return A.spanNonce}}),Osk=window;
Osk.ytcsi&&(Osk.ytcsi.infoGel=_.xB,Osk.ytcsi.tick=_.OH);var zPN=function(A){d6.call(this,1,arguments);this.csn=A};
_.I(zPN,d6);var g9A=new O0A("screen-created",zPN),Ll8=[],Wll=bMI,vO8=0,gE=new Map,q7f=new Map,rUI=new Map;var TcA=Symbol("Gf"),Xp=new WeakMap;var Um=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},sR=function(){Um.instance||(Um.instance=new Um);
return Um.instance};
_.q=Um.prototype;_.q.setClient=function(A){this.client=A};
_.q.JSC$13061_newScreen=function(){this.clear();this.csn=_.hx()};
_.q.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.q.reportShown=function(A,H,k,d){var W=this.JSC$13061_getTrackingParams(A),z=A.visualElement?A.visualElement:W;H=this.shownElements.has(z);var u=this.visibleState.get(z);this.shownElements.add(z);this.visibleState.set(z,!0);A.impressionLog&&!H&&A.impressionLog();if(W||A.visualElement)if(k=R_w(this,A,k))if(z=Tmw(this,A),lR(this,A)||z){W=A.visualElement?A.visualElement:_.db(W);var B=A.interactionLoggingClientData;z||H?lR(this,A)&4?u||RPA(this.client,k,W,B):lR(this,A)&1&&!H&&iMI(this.client,k,W,B,d):
iMI(this.client,k,W,B,d)}};
_.q.reportHidden=function(A,H,k,d){var W=this.JSC$13061_getTrackingParams(A),z=A.visualElement?A.visualElement:W;H=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(!W&&!A.visualElement)return!1;k=R_w(this,A,k);if(!k||!lR(this,A)&&Tmw(this,A))return!1;W=A.visualElement?A.visualElement:_.db(W);lR(this,A)&8?TXm(this.client,k,W,void 0,void 0,d):lR(this,A)&2&&!H&&(A=this.client,d=JZ({cttAuthInfo:Od(k)||void 0,automatedLogEventSource:d},
k),H={csn:k,ve:W.getAsJson(),eventType:2},k==="UNDEFINED_CSN"?L8("visualElementHidden",d,H):A?LT("visualElementHidden",H,A,d):_.yr("visualElementHidden",H,d));return!0};
_.q.JSC$13061_getTrackingParams=function(A){var H=this.getData(A),k,d;if(_.b("il_use_view_model_logging_context")&&(H==null?0:(k=H.context)==null?0:(d=k.loggingContext)==null?0:d.loggingDirectives))return H.context.loggingContext.loggingDirectives.trackingParams||"";var W,z;if(H==null?0:(W=H.rendererContext)==null?0:(z=W.loggingContext)==null?0:z.loggingDirectives)return H.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams||
"";var u;return((u=A.veContainer)==null?0:u.trackingParams)?A.veContainer.trackingParams:(H==null?void 0:H.trackingParams)||""};
_.q.JSC$13061_elementShouldLogGesture=function(A,H){A=this.getData(A);return!!((Math.floor(Number(A&&A.loggingDirectives&&A.loggingDirectives.gestures&&A.loggingDirectives.gestures.types||""))||0)&H)};
_.q.JSC$13061_getNearestParentVe=function(A){var H=this.JSC$13061_getTrackingParams(A);return A.visualElement?A.visualElement:H?_.db(H):A.parentElement?this.JSC$13061_getNearestParentVe(A.parentElement):null};
var R_w=function(A,H,k){var d=_.hx(k);return A.csn===null||d===A.csn||k?d:(A=new _.Ti("VisibilityLogger called before newScreen",{caller:H.tagName,previous_csn:A.csn,current_csn:d}),_.Pq(A),null)};
Um.prototype.getData=function(A){var H,k=A.data||((H=A.props)==null?void 0:H.data);if(!k||A.isWebComponentWrapper){var d;k=(d=Xp.get(A))==null?void 0:d[TcA]}return k};
var Tmw=function(A,H){var k;return!((k=A.getData(H))==null||!k.loggingDirectives)},lR=function(A,H){A=A.getData(H);
return Math.floor(Number(A&&A.loggingDirectives&&A.loggingDirectives.visibility&&A.loggingDirectives.visibility.types||""))||1};var tS;tS=function(){};
_.oO=function(){tS.instance||(tS.instance=new tS);return tS.instance};
tS.prototype.setClient=function(A){_.ED(sR().setClient).bind(sR())(A)};
_.maA=function(){_.oO();_.ED(sR().JSC$13061_newScreen).bind(sR())()};
tS.prototype.clear=function(){_.ED(sR().clear).bind(sR())()};
tS.prototype.reportShown=function(A,H,k,d){_.ED(sR().reportShown).bind(sR())(A,H,k,d)};
tS.prototype.reportHidden=function(A,H,k,d){return _.ED(sR().reportHidden).bind(sR())(A,H,k,d)};
var jTr=function(A,H){return _.ED(sR().JSC$13061_getTrackingParams).bind(sR())(H)},mym=function(A,H){return _.ED(sR().JSC$13061_getNearestParentVe).bind(sR())(H)};var Nl,JCA;Nl=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};
_.A7=function(){Nl.instance||(Nl.instance=new Nl);return Nl.instance};
Nl.prototype.setClient=function(A){this.client=A};
JCA=function(A,H,k){k=k===void 0?{}:k;_.ED(function(){var d,W,z,u=((d=_.L(H==null?void 0:H.commandMetadata,_.wn))==null?void 0:d.rootVe)||((W=_.L(H==null?void 0:H.commandMetadata,Z4J))==null?void 0:(z=W.screenVisualElement)==null?void 0:z.uiType);if(u){d=_.L(H==null?void 0:H.commandMetadata,nTw);if(d==null?0:d.parentTrackingParams){var B=_.db(d.parentTrackingParams);if(d.parentCsn)var h=d.parentCsn}else k.clickedVisualElement?B=k.clickedVisualElement:H.clickTrackingParams&&(B=_.db(H.clickTrackingParams));
a:{d=_.L(H,_.Yr);W=_.L(H,AlV);if(d){if(W=Jyv(d,"VIDEO")){d={token:W,videoId:d.videoId};break a}}else if(W&&(d=Jyv(W,"PLAYLIST"))){d={token:d,playlistId:W.playlistId};break a}d=void 0}k=Object.assign({},{cttAuthInfo:d,parentCsn:h},k);if(_.b("expectation_logging")){var O;k.loggingExpectations=((O=_.L(H==null?void 0:H.commandMetadata,Z4J))==null?void 0:O.loggingExpectations)||void 0}_.Ml(A,u,B,k)}else _.Pq(new _.Ti("Error: Trying to create a new screen without a rootVeType",H))})()};
_.Ml=function(A,H,k,d){d=d===void 0?{}:d;_.ED(function(){e_w.includes(H)||(_.Pq(new _.Ti("createClientScreen() called with a non-page VE",H)),H=83769);d.isHistoryNavigation||(A.forwardHistoryStack=[],A.backHistoryStack.push({rootVe:H,key:d.key||""}));A.graftQueue=[];A.stateChangedQueue=[];d.dataPromises?gmZ(A,H,k,d):bsN(A,H,k,d)})()};
_.Lkp=function(A,H,k){k=k===void 0?0:k;_.ED(function(){H.then(function(d){A.pendingScreenCreation.has(k)&&A.pendingScreenFn&&A.pendingScreenFn();var W=_.hx(k),z=_.ii(k);if(W&&z){var u={automatedLogEventSource:3},B;(d==null?0:(B=d.response)==null?0:B.trackingParams)&&b9(A.client,W,z,_.db(d.response.trackingParams),!1,u);var h;(d==null?0:(h=d.playerResponse)==null?0:h.trackingParams)&&b9(A.client,W,z,_.db(d.playerResponse.trackingParams),!1,u)}})})()};
Nl.prototype.graftServerVe=function(A,H,k){var d=this;return _.ED(function(){var W=_.db(A);_.n4(d,W,H,k);return W})()};
_.J5f=function(A,H,k,d){return _.b("enable_client_ve_spec")&&H.clientVeSpec?(H=_.t8(H.clientVeSpec.uiType,void 0,H.clientVeSpec.elementIndex,H.clientVeSpec.clientYoutubeData,void 0,H),_.n4(A,H,k,d)?H:null):H.trackingParams?A.graftServerVe(H.trackingParams,k,d):null};
_.$9=function(A,H,k,d){return _.ED(function(){if(!H.veType)return _.YJ(new _.Ti("Error: Trying to graft a client VE without a veType.")),null;if(H.visibilityTypes){var W=H.visibilityTypes.reduce(function(z,u){return z|u});
W={visibility:{types:String(W)}}}W=_.t8(H.veType,H.visualElement,H.elementIndex,H.clientYouTubeData,void 0,W);return _.n4(A,W,k,d)?W:null})()};
_.n4=function(A,H,k,d){d=d===void 0?0:d;return _.ED(function(){if(A.pendingScreenCreation.has(d))return A.graftQueue.push([H,k]),!0;var W=_.hx(d),z=k||_.ii(d);if(W&&z){if(_.b("combine_ve_grafts")){var u=A.cachedVisualElements.get(z.toString());u?u.push(H):(A.cachedRootVisualElements.set(z.toString(),z),A.cachedVisualElements.set(z.toString(),[H]));A.attachTimeout||(A.attachTimeout=_.ma(_.IE,function(){vmk(A,W)},1200))}else b9(A.client,W,z,H);
return!0}return!1})()};
_.Z2=function(A,H,k){k=k===void 0?0:k;var d=A.recurringGrafts.get(k)||new Map;if(_.b("smarter_ve_dedupping"))for(var W=Array.from(d.keys()),z=0;z<W.length;z++){var u=void 0,B=void 0;var h=H;var O=W[z];O.isClientVe()&&h.isClientVe()?(u=h.getAsJson(),B=O.getAsJson(),h=u.veType!==B.veType||u.elementIndex!==B.elementIndex||u.dataElement!==B.dataElement||h.getLoggingDirectives()!==O.getLoggingDirectives()?!1:!0):h=O.veData.trackingParams!==void 0&&h.veData.trackingParams!==void 0?((B=h.veData)==null?void 0:
B.trackingParams)===((u=O.veData)==null?void 0:u.trackingParams):!1;if(h)return}else if(d.has(H))return;d.set(H,void 0);A.recurringGrafts.set(k,d);_.hx(k)==="UNDEFINED_CSN"||A.pendingScreenCreation.has(k)||_.n4(A,H,void 0,k)};
_.f4=function(A,H,k,d){d=_.hx(d===void 0?0:d);if(!d)return!1;JUm(A.client,d,H,k);return!0};
_.wN=function(A,H,k,d){if(!H)return!1;d=_.hx(d===void 0?0:d);if(!d)return!1;JUm(A.client,d,_.db(H),k);return!0};
_.vn=function(A,H){var k=H.getScreenLayer&&H.getScreenLayer();if(H.visualElement)return _.f4(A,H.visualElement,void 0,k);H=jTr(_.oO(),H);return _.wN(A,H,void 0,k)};
Nl.prototype.clickCommand=function(A,H,k){return _.wN(this,A.clickTrackingParams,H,k===void 0?0:k)};
Nl.prototype.stateChanged=function(A,H,k){this.visualElementStateChanged(_.db(A),H,k===void 0?0:k)};
Nl.prototype.visualElementStateChanged=function(A,H,k){k=k===void 0?0:k;k===0&&this.pendingScreenCreation.has(k)?this.stateChangedQueue.push([A,H]):this.logStateChanged(A,H,k)};
Nl.prototype.logStateChanged=function(A,H,k){k=k===void 0?0:k;var d=_.hx(k);A=A||_.ii(k);return d&&A?(gOb(this.client,d,A,H),!0):!1};
var gmZ=function(A,H,k,d){d=d===void 0?{}:d;A.pendingScreenCreation.add(d.layer||0);A.pendingScreenFn=function(){bsN(A,H,k,d);var u=_.ii(d.layer);if(u){for(var B=_.r(A.graftQueue),h=B.next();!h.done;h=B.next())h=h.value,_.n4(A,h[0],h[1]||u,d.layer);u=_.r(A.stateChangedQueue);for(B=u.next();!B.done;B=u.next())B=B.value,A.logStateChanged(B[0],B[1])}};
k||_.hx(d.layer)||A.pendingScreenFn();if(d.dataPromises)for(var W=_.r(d.dataPromises),z=W.next();!z.done;z=W.next())_.Lkp(A,z.value,d.layer);else _.I3(Error("Hf"))},bsN=function(A,H,k,d){d=d===void 0?{}:d;
var W=void 0;d.layer||(d.layer=0);W=d.parentLayer!==void 0?d.parentLayer:d.layer;var z=_.hx(W);W=_.ii(W);var u=k||W,B;u&&(d.parentCsn!==void 0?B={clientScreenNonce:d.parentCsn,visualElement:u}:z&&z!=="UNDEFINED_CSN"&&(B={clientScreenNonce:z,visualElement:u}));var h,O=_.pZ("EVENT_ID");z==="UNDEFINED_CSN"&&O&&(h={servletData:{serializedServletEventId:O}});_.b("combine_ve_grafts")&&z&&vmk(A,z);_.b("no_client_ve_attach_unless_shown")&&u&&z&&xYf(u,z);try{var T=_.ujI(A.client,H,B,d.csnToClone,d.cttAuthInfo,
h,d.implicitGestureType,void 0,d.loggingExpectations,d.automatedLogEventSource)}catch(g){_.Gg(g,{rootVeType:H,rootVe:W,parentVisualElement:k,currentCsn:z,parentEl:B,csnToClone:d.csnToClone});_.I3(g);return}_.RC(T,H,d.layer,d.cttAuthInfo);z&&z!=="UNDEFINED_CSN"&&W&&!i4N(z)&&TXm(A.client,z,W,!0);A.backHistoryStack[A.backHistoryStack.length-1]&&!A.backHistoryStack[A.backHistoryStack.length-1].csn&&(A.backHistoryStack[A.backHistoryStack.length-1].csn=T||"");_.xB({clientScreenNonce:T});_.maA();var m=_.ii(d.layer);
z&&z!=="UNDEFINED_CSN"&&m&&_.b("music_web_mark_root_visible")&&_.jc(T,m);A.pendingScreenCreation.delete(d.layer||0);A.pendingScreenFn=void 0;var J;(J=A.recurringGrafts.get(d.layer))==null||J.forEach(function(g,v){g?_.n4(A,v,g,d.layer):m&&_.n4(A,v,m,d.layer)});
yCA(A)},yCA=function(A){for(var H=0;H<A.afterNewScreenOneOffJobs.length;H++){var k=A.afterNewScreenOneOffJobs[H];
try{k()}catch(d){_.I3(d)}}for(H=A.afterNewScreenOneOffJobs.length=0;H<A.afterNewScreenRecurringJobs.length;H++){k=A.afterNewScreenRecurringJobs[H];try{k()}catch(d){_.I3(d)}}},vmk=function(A,H){if(H===void 0)for(var k=egQ(),d=0;d<k.length;d++)k[d]!==void 0&&vmk(A,k[d]);
else A.cachedVisualElements.forEach(function(W,z){(z=A.cachedRootVisualElements.get(z))&&BXl(A.client,H,z,W)}),A.cachedVisualElements.clear(),A.cachedRootVisualElements.clear(),A.attachTimeout=void 0};var oD=function(A){A=A===void 0?{layer:0}:A;this.aF=!1;this.createScreenConfig=A;A={};this.tjd=(A.response=!1,A.playerResponse=!1,A)};
_.I(oD,cY);oD.prototype.validate=function(A){return!(!A.data||!A.data.response&&!A.data.playerResponse)};
oD.prototype.handle=function(A){var H=_.A7(),k=this.createScreenConfig.layer;A.data.response&&A.data.response.trackingParams&&!this.tjd.response&&(H.graftServerVe(A.data.response.trackingParams,void 0,k),this.tjd.response=!0);A.data.playerResponse&&A.data.playerResponse.trackingParams&&!this.tjd.playerResponse&&(H.graftServerVe(A.data.playerResponse.trackingParams,void 0,k),this.tjd.playerResponse=!0)};var $e=function(){this.bB=_.YE();this.mT=[];this.f1X=0};
$e.prototype.processChunk=function(A){if(A){for(var H=_.r(this.mT),k=H.next();!k.done;k=H.next())k=k.value,k.validate(A)&&(k.handle(A),k.aF=!0);_.OH("np"+this.f1X);this.f1X++}};var Qdr,jvw,PEN;_.n0=function(A,H,k,d,W,z,u,B){u=u===void 0?[]:u;B=B===void 0?[]:B;this.buildCommandPayload=A;this.navigate=H;this.handleServiceRequest=k;this.sendAction=d;this.JSC$13096_screenManager=W;this.commandResolverMap=z;this.autoLogResolverAllowlist=u;this.metaCommandClickLoggingDenylist=B;this.pendingCommands=new Set;this.isTracingEnabled=!1;jvw(this)};
Qdr=function(A,H,k){var d=[_.x_p,jnw],W=jdI,z=I98,u=_.A7(),B=ITN;k=k===void 0?[]:k;d=d===void 0?[]:d;_.n0.instance=new _.n0(A,H,W,z,u,B,k,d)};
jvw=function(A){if(!A.isTracingEnabled&&pH("command")){var H=A.resolveCommand;A.resolveCommand=function(k,d){a:{for(W in k)if(Object.prototype.hasOwnProperty.call(k,W)){var W={commandType:W};break a}W={}}return _.QS("command",W,H.bind(this,k,d))};
A.isTracingEnabled=!0}};
PEN=function(A,H,k){if(!A.commandResolverMap)return!1;var d=PUA(H,A.commandResolverMap);return d?((A.autoLogResolverAllowlist.some(function(W){return!!_.L(H,W)})||(k==null?0:k.forceClickLogging))&&Yjj(A,H,k),d instanceof Promise?d.then(function(W){W.resolve(H,k)}):d.resolve(H,k),!0):!1};
_.n0.prototype.resolveCommand=function(A,H){var k=this,d=GhQ(A);if((H==null||!H.skipCommandResolverMap)&&PEN(this,A,H))return!0;if(d)return Fki(this,A,H);if(!this.buildCommandPayload)return jhm(A,"Unhandled command by buildCommandPayload"),!1;var W=this.buildCommandPayload(A,H);if(H==null?0:H.commandController)W.commandController=H.commandController;if(W.type===0){if(!this.navigate)return Ibl(A,"navigate"),!1;if(!XHw(W.command))return jhm(A,"Page requests need to specify a url"),!1;_.b("logging_avoid_blocking_during_navigation")&&
_.HhC().transition("application_navigating");A=this.navigate(W)||[];DP1(A).then(function(){k.pendingCommands.delete(W.command)});
return!0}if(W.type===1){if(!this.handleServiceRequest)return Ibl(A,"handleServiceRequest"),!1;(H==null?0:H.forceClickLogging)&&Yjj(this,W.command,H);A=this.handleServiceRequest(W);DP1(A).then(function(){k.pendingCommands.delete(W.command)});
return!0}if(W.type===2){if(!this.sendAction)return Ibl(A,"sendAction"),!1;Yjj(this,W.command,H);this.sendAction(W);return!0}return!1};
var Yjj=function(A,H,k){if((k==null||!k.disableClickTracking)&&A.JSC$13096_screenManager)if(H.clickTrackingParams&&_.b("log_click_with_layer_from_element_in_command_handler")){var d;k=k==null?void 0:(d=k.form)==null?void 0:d.element;A.JSC$13096_screenManager.clickCommand(H,null,k&&k.getScreenLayer&&k.getScreenLayer())}else H.clickTrackingParams?A.JSC$13096_screenManager.clickCommand(H):!_.b("disable_clicked_visual_element_in_command_handler")&&(k==null?0:k.clickedVisualElement)&&_.f4(A.JSC$13096_screenManager,
k.clickedVisualElement)},GhQ=function(A){var H=!!_.L(A,_.nH),k;
A=((k=_.L(A,_.fH))==null?void 0:k.signal)==="CLIENT_SIGNAL";return H||A},Fki=function(A,H,k){var d=_.L(H,_.nH);
if(d)var W=(d==null?void 0:d.commands)||[];else{var z;if(((z=_.L(H,_.fH))==null?void 0:z.signal)==="CLIENT_SIGNAL"){var u;W=((u=_.L(H,_.fH))==null?void 0:u.actions)||[]}}if(W){(d=Daw(A,W))&&Yjj(A,H,k);H=_.r(W);for(W=H.next();!W.done;W=H.next()){W=W.value;try{var B=Object.assign({},k);d&&(B.disableClickTracking=!0);A.resolveCommand(W,B)}catch(h){h instanceof Error&&_.I3(h)}}return!0}jhm(H,"Could not handle the meta command");return!1},Daw=function(A,H){return H.every(function(k){return A.metaCommandClickLoggingDenylist.some(function(d){return!!_.L(k,
d)})})},XHw=function(A){var H;
return!((H=_.L(A==null?void 0:A.commandMetadata,_.wn))==null||!H.url)};var Ay=function(){cY.apply(this,arguments)};
_.I(Ay,cY);Ay.prototype.validate=function(A){var H,k;return!this.aF&&!!((H=A.data.response)==null?0:(k=H.onResponseReceivedEndpoints)==null?0:k.length)};
Ay.prototype.handle=function(A){var H=_.n0.instance;A=_.r(A.data.response.onResponseReceivedEndpoints);for(var k=A.next();!k.done;k=A.next())H.resolveCommand(k.value)};var SjA,CEw,sQ;
SjA=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=_.MT();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.Hi=function(){CEw||(CEw=new SjA);return CEw};
sQ=function(){var A=_.Hi();A.miniplayerButtonActivation=!1;A.userActivation=!1;A.playlistWatchPageActivation=!1;A.productDetailsPageActivation=!1;A.miniAppPageActivation=!1;A.playablesDestPageActivation=!1;A.lockupActivation=!1;A.showMiniplayerCommandActivation=!1;A.playlistSuggestionsShelfActivation=!1;A.mediaSessionPipActivation=!1;A.watchPipActivation=!1;A.watchWhileActivation=!1;A.shortsPipActivation=!1;A.companionCanvasActivation=!1};
_.Kkk=function(){var A=_.Hi(),H=A.mediaSessionPipActivation,k=A.watchPipActivation,d=A.watchWhileActivation,W=A.playlistWatchPageActivation,z=A.lockupActivation,u=A.showMiniplayerCommandActivation,B=A.navigatingAwayFromWatchDeletedVideo,h=A.shortsPipActivation,O=A.playlistSuggestionsShelfActivation,T=A.productDetailsPageActivation,m=A.miniAppPageActivation,J=A.playablesDestPageActivation,g=A.companionCanvasActivation;return!A.miniplayerButtonActivation&&!W&&!O&&!T&&!m&&!J&&!z&&!u&&!H&&!k&&!d&&!h&&
!g||B};var xIV;_.kf=_.Sc("FEwhat_to_watch","/",3854);_.idl=_.Sc("FEdownloads","/feed/downloads",42352);xIV=_.Sc("FEmusic_offline","browse/FEmusic_offline",42352);var GK=function(A,H){H=H===void 0?[]:H;var k=k===void 0?[]:k;H=tPN.apply(null,[N3b.apply(null,_.fV(H))].concat(_.fV(k)));this.store=fO8(A,void 0,H)};
GK.prototype.getState=function(){return this.store.getState()};
GK.prototype.dispatch=function(A){return this.store.dispatch(A)};
GK.prototype.subscribe=function(A){return this.store.subscribe(A)};
GK.prototype.replaceReducer=function(A){return this.store.replaceReducer(A)};
GK.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.dC=function(A,H,k){var d=H(A.getState());return A.subscribe(function(){var W=H(A.getState());if(W!==d){var z=d;d=W;k(W,z)}})};var J0b;_.kH=function(A,H,k){return _.p8({type:"REPLACE_ENTITY",payload:{entityPayload:k,entityType:A,key:H}})};
J0b=function(A){return _.p8({type:"REPLACE_ENTITIES",payload:A})};
_.O5=function(A,H,k,d){return _.p8({type:"UPDATE_ENTITY",payload:{entityPayload:k,entityType:A,key:H,mergeOption:d}})};var EOX=function(A){var H=this;A=A===void 0?[]:A;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;A.forEach(function(k){H.append(k)})};
_.q=EOX.prototype;_.q.getLength=function(){return this.totalLength};
_.q.append=function(A){var H=this.arrays.length===0?!1:(H=this.arrays[this.arrays.length-1])&&H.buffer===A.buffer&&H.byteOffset+H.length===A.byteOffset;H?(H=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(H.buffer,H.byteOffset,H.length+A.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(A);this.totalLength+=A.length};
_.q.split=function(A){for(var H=new EOX,k=new EOX,d=_.r(this.arrays),W=d.next();!W.done;W=d.next())W=W.value,A>=W.length?(H.append(W),A-=W.length):A?(H.append(new Uint8Array(W.buffer,W.byteOffset,A)),k.append(new Uint8Array(W.buffer,W.byteOffset+A,W.length-A)),A=0):k.append(W);return{headView:H,tailView:k}};
_.q.isFocused=function(A){return A>=this.arrayPos&&A<this.arrayPos+this.arrays[this.arrayIdx].length};
_.q.focus=function(A){if(!this.isFocused(A))for(A<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=A&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var aTZ=function(A,H){A.focus(H);return A.arrays[A.arrayIdx][H-A.arrayPos]};(function(){var A=function(d){return new Uint8Array(d)},H=function(d){for(var W=new Uint8Array(d.length),z=0;z<d.length;z++)W[z]=d[z];
return W},k=new Uint8Array([1]);
return k.length===1&&k[0]===1?A:H})();
var KlA=Array(1024),CU8=window.TextDecoder?new TextDecoder:void 0,cUf=window.TextEncoder?new TextEncoder:void 0;var V$W=function(A){this.arrayView=A;this.pos=0;this.pendingTagAndType=-1},Qm=function(A){var H=aTZ(A.arrayView,A.pos);
++A.pos;if(H<128)return H;for(var k=H&127,d=1;H>=128;)H=aTZ(A.arrayView,A.pos),++A.pos,d*=128,k+=(H&127)*d;return k},UYX=function(A,H){var k=A.pendingTagAndType;
for(A.pendingTagAndType=-1;A.pos+1<=A.arrayView.totalLength;){k<0&&(k=Qm(A));var d=k>>3,W=k&7;if(d===H)return!0;if(d>H){A.pendingTagAndType=k;break}k=-1;switch(W){case 0:Qm(A);break;case 1:A.pos+=8;break;case 2:d=Qm(A);A.pos+=d;break;case 5:A.pos+=4}}return!1};var t$f=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=QhC(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},tZ=function(A,H){H=A.pos+H;
if(!(A.buf.length>=H)){for(var k=A.buf.length*2;k<H;)k*=2;A.buf=QhC(k,A.wasm,A.buf.subarray(0,A.pos));A.view=new DataView(A.buf.buffer,A.buf.byteOffset,A.buf.byteLength)}},l9=function(A,H){if(H>268435455){tZ(A,4);
for(var k=H&1073741823,d=0;d<4;d++)A.view.setUint8(A.pos,k&127|128),k>>=7,A.pos+=1;H=Math.floor(H/268435456)}for(tZ(A,4);H>127;)A.view.setUint8(A.pos,H&127|128),H>>=7,A.pos+=1;A.view.setUint8(A.pos,H);A.pos+=1};for(var NXX={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},lbr={},cCG=_.r(Object.entries(NXX)),pHw=cCG.next();!pHw.done;pHw=cCG.next()){var Qvk=_.r(pHw.value),Vqw=Qvk.next().value,EmJ=Qvk.next().value,UaA=Vqw,lTi=EmJ;lTi&&(lbr[lTi]=UaA)};var nOm=function(A,H){A=A===void 0?{}:A;switch(H.type){case "ENTITY_LOADED":return H.payload.reduce(function(d,W){var z,u=(z=W.options)==null?void 0:z.persistenceOption;if(u&&u!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&u!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!W.entityKey)return _.I3(Error("Jf")),d;if(W.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!W.payload)return W=new _.Ti("REPLACE entity mutation is missing a payload",{entityKey:W.entityKey}),_.I3(W),d;var B=(0,_.iK.getAnyKey)(W.payload);
return fbC(d,B,W.entityKey,W.payload[B])}if(W.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{W=W.entityKey;try{var h=_.Vm(W).entityType;B=fbC(d,h,W);break a}catch(m){if(m instanceof Error){W=new _.Ti("Failed to deserialize entity key",{entityKey:W,originalMessage:m.message});_.I3(W);B=d;break a}throw m;}B=void 0}return B}if(W.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!W.payload)return W=new _.Ti("UPDATE entity mutation is missing a payload",{entityKey:W.entityKey}),_.I3(W),d;B=(0,_.iK.getAnyKey)(W.payload);
var O,T;return w28(d,B,W.entityKey,W.payload[B],(O=W.fieldMask)==null?void 0:(T=O.mergeOptions)==null?void 0:T.repeatedFieldsMergeOption)}return d},A);
case "REPLACE_ENTITY":var k=H.payload;return fbC(A,k.entityType,k.key,k.entityPayload);case "REPLACE_ENTITIES":return Object.keys(H.payload).reduce(function(d,W){var z=H.payload[W];return Object.keys(z).reduce(function(u,B){return fbC(u,W,B,z[B])},d)},A);
case "UPDATE_ENTITY":return k=H.payload,w28(A,k.entityType,k.key,k.entityPayload,k.mergeOption);default:return A}};var oOI;var tqN=!1,Wi,zd,qE,rC,u$,NmN=function(A){_.dF.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!tqN){var H,k=new Uint8Array(256),d=new Uint8Array(256);var W=1;for(H=0;H<256;H++)k[W]=H,d[H]=W,W^=W<<1^(W>>7&&283);Wi=new Uint8Array(256);zd=n8(256);qE=n8(256);rC=n8(256);u$=n8(256);for(var z=0;z<256;z++){W=z?d[255^k[z]]:0;W^=W<<1^W<<2^W<<3^W<<4;W=W&255^W>>>8^99;Wi[z]=W;H=W<<1^(W>>7&&283);var u=H^W;zd[z]=H<<24|W<<16|W<<8|u;qE[z]=u<<24|zd[z]>>>8;rC[z]=W<<24|qE[z]>>>
8;u$[z]=W<<24|rC[z]>>>8}tqN=!0}W=n8(44);for(k=0;k<4;k++)W[k]=A[4*k]<<24|A[4*k+1]<<16|A[4*k+2]<<8|A[4*k+3];for(d=1;k<44;k++)A=W[k-1],k%4||(A=(Wi[A>>16&255]^d)<<24|Wi[A>>8&255]<<16|Wi[A&255]<<8|Wi[A>>>24],d=d<<1^(d>>7&&283)),W[k]=W[k-4]^A;this.key=W};
_.I(NmN,_.dF);
NmN.prototype.encrypt=function(A){var H=A.length;A=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+H));for(var k=this.cipherBlock,d=0;d<H&&this.blockOffset<16;)A[d++]^=k[this.blockOffset++];for(var W=H-(H-d)%16;d<W;)Mqw(this),A[d++]^=k[0],A[d++]^=k[1],A[d++]^=k[2],A[d++]^=k[3],A[d++]^=k[4],A[d++]^=k[5],A[d++]^=k[6],A[d++]^=k[7],A[d++]^=k[8],A[d++]^=k[9],A[d++]^=k[10],A[d++]^=k[11],A[d++]^=k[12],A[d++]^=k[13],A[d++]^=k[14],A[d++]^=k[15];if(d<H)for(Mqw(this),this.blockOffset=0;d<H;)A[d++]^=
k[this.blockOffset++];return A};
var Mqw=function(A){for(var H=A.key,k=A.counter[0]^H[0],d=A.counter[1]^H[1],W=A.counter[2]^H[2],z=A.counter[3]^H[3],u=3;u>=0&&!(A.counter[u]=-~A.counter[u]);u--);for(var B,h,O=4;O<40;)u=zd[k>>>24]^qE[d>>16&255]^rC[W>>8&255]^u$[z&255]^H[O++],B=zd[d>>>24]^qE[W>>16&255]^rC[z>>8&255]^u$[k&255]^H[O++],h=zd[W>>>24]^qE[z>>16&255]^rC[k>>8&255]^u$[d&255]^H[O++],z=zd[z>>>24]^qE[k>>16&255]^rC[d>>8&255]^u$[W&255]^H[O++],k=u,d=B,W=h;A=A.cipherBlock;u=H[40];A[0]=Wi[k>>>24]^u>>>24;A[1]=Wi[d>>16&255]^u>>16&255;A[2]=
Wi[W>>8&255]^u>>8&255;A[3]=Wi[z&255]^u&255;u=H[41];A[4]=Wi[d>>>24]^u>>>24;A[5]=Wi[W>>16&255]^u>>16&255;A[6]=Wi[z>>8&255]^u>>8&255;A[7]=Wi[k&255]^u&255;u=H[42];A[8]=Wi[W>>>24]^u>>>24;A[9]=Wi[z>>16&255]^u>>16&255;A[10]=Wi[k>>8&255]^u>>8&255;A[11]=Wi[d&255]^u&255;u=H[43];A[12]=Wi[z>>>24]^u>>>24;A[13]=Wi[k>>16&255]^u>>16&255;A[14]=Wi[d>>8&255]^u>>8&255;A[15]=Wi[W&255]^u&255};var nmA=!1;(function(){var A=function(d){return new Uint8Array(d)},H=function(d){for(var W=new Uint8Array(d.length),z=0;z<d.length;z++)W[z]=d[z];
return W},k=new Uint8Array([1]);
return k.length===1&&k[0]===1?A:H})();
var Bi;var wHp=function(A){a:{if(!nmA&&!N4){if(Bi){var H=Bi;break a}Bi=(H=window.crypto)==null?void 0:H.subtle;var k,d,W;if(((k=Bi)==null?0:k.importKey)&&((d=Bi)==null?0:d.sign)&&((W=Bi)==null?0:W.encrypt)){H=Bi;break a}Bi=void 0}H=void 0}H&&(this.nativeEncryptor=new Zsw(A,H));this.encryptorPolyfill=new fTN(A)};
wHp.prototype.encrypt=function(A,H){var k=this,d;return _.e(function(W){switch(W.nextAddress){case 1:if(!k.nativeEncryptor){W.jumpTo(2);break}_.S_(W,3);return W.yield(k.nativeEncryptor.encrypt(A,H),5);case 5:return W.return(W.yieldResult);case 3:d=_.VA(W),_.Pq(d),nmA=!0,k.nativeEncryptor=void 0;case 2:return W.return(k.encryptorPolyfill.encrypt(A,H))}})};
wHp.prototype.decrypt=function(A,H){return this.encrypt(A,H)};
var Zsw=function(A,H){this.JSC$13169_aesKey=A;this.subtleCrypto=H};
Zsw.prototype.encrypt=function(A,H){var k=this,d;return _.e(function(W){if(W.nextAddress==1)return _.S_(W,2),W.yield(omw(k,A,H),4);if(W.nextAddress!=2)return W.return(W.yieldResult);d=_.VA(W);_.Pq(d);nmA=!0;throw d;})};
var omw=function(A,H,k){var d,W;return _.e(function(z){switch(z.nextAddress){case 1:if(A.cryptoKey){z.jumpTo(2);break}return z.yield(A.subtleCrypto.importKey("raw",A.JSC$13169_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:A.cryptoKey=z.yieldResult;case 2:return d={name:"AES-CTR",counter:k,length:128},z.yield(A.subtleCrypto.encrypt(d,A.cryptoKey,H),4);case 4:return W=z.yieldResult,z.return(new Uint8Array(W))}})},fTN=function(A){this.JSC$13172_aesKey=A};
fTN.prototype.encrypt=function(A,H){this.encryptor||(this.encryptor=new NmN(this.JSC$13172_aesKey));for(var k=this.encryptor,d=0;d<4;d++)k.counter[d]=H[d*4]<<24|H[d*4+1]<<16|H[d*4+2]<<8|H[d*4+3];k.blockOffset=16;return this.encryptor.encrypt(A)};
fTN.prototype.decrypt=function(A,H){return this.encrypt(A,H)};var $aw={},Hkb=fG("yt-idb-pref-storage",{objectStores:($aw.prefs={addedAtVersion:1},$aw),shared:!1,upgrade:function(A,H){H(1)&&K5(C5(A,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.ed=function(A){this.token=A};
_.ed.getInstance=function(){return _.e(function(A){return A.return(new Promise(function(H){_.Zq().then(function(k){k?(_.ed.instance||(_.ed.instance=new _.ed(k)),H(_.ed.instance)):H(void 0)})}))})};
_.ed.prototype.get=function(A){var H=this,k,d,W;return _.e(function(z){if(z.nextAddress==1)return z.yield(sgC(H.token),2);if(z.nextAddress!=3)return k=z.yieldResult,z.yield(k.get("prefs",A),3);d=z.yieldResult;if(!d)return z.return();W=(0,_.w2)();return d.expirationTimestampMs<=W?z.return():z.return(d.value)})};
_.ed.prototype.set=function(A,H,k){k=k===void 0?31536E3:k;var d=this,W,z,u;return _.e(function(B){if(B.nextAddress==1)return W=(0,_.w2)(),z={key:A,value:H,expirationTimestampMs:W+k*1E3},B.yield(sgC(d.token),2);u=B.yieldResult;return B.yield(u.put("prefs",z),0)})};
_.ed.prototype.remove=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(sgC(H.token),2);k=d.yieldResult;return d.yield(k.delete("prefs",A),0)})};var xf={},Ahi=(xf.INVALID_ENCODER_VERSION="Invalid encoder version",xf.KEY_CREATION_FAILED="Failed to create encoder key",xf.UNKNOWN_DECODE_ERROR="Failed to decode PES data",xf.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",xf.WRONG_DATA_TYPE="Encoder cannot process the data type",xf),ZW=function(A,H){H=H===void 0?{}:H;_.Ti.call(this,Ahi[A],Object.assign({},{name:"PESEncoderError",type:A},H));this.type=A;this.level="WARNING";Object.setPrototypeOf(this,ZW.prototype)};
_.I(ZW,_.Ti);var i$=function(){};
i$.prototype.encode=function(A,H){try{return this.encodeImpl(A,H)}catch(k){z2m(k,dcl)}};
i$.prototype.decode=function(A,H){try{return this.decodeImpl(A,H)}catch(k){z2m(k,WyW)}};
var HbG=function(A,H,k){var d;return _.e(function(W){if(W.nextAddress==1)return _.S_(W,2),W.yield(A.decodeAsyncImpl(H,k),4);if(W.nextAddress!=2)return W.return(W.yieldResult);d=_.VA(W);z2m(d,WyW);_.EN(W)})};
i$.prototype.decodeAsyncImpl=function(A,H){return Promise.resolve(this.decodeImpl(A,H))};var hy=function(A,H){this.aesEncryptor=A;this.aesEncryptorAsync=H};
_.I(hy,i$);hy.prototype.encodeImpl=function(A,H){H=qpb(H);A=(new TextEncoder).encode(JSON.stringify(A));return this.aesEncryptor.encrypt(A,H)};
hy.prototype.decodeImpl=function(A,H){if(!(A instanceof Uint8Array))throw k2C(1);var k=new TextDecoder;H=qpb(H);A=this.aesEncryptor.decrypt(A,H);return JSON.parse(k.decode(A))};
hy.prototype.decodeAsyncImpl=function(A,H){var k=this,d,W,z;return _.e(function(u){if(u.nextAddress==1){if(!(A instanceof Uint8Array))throw k2C(1);d=new TextDecoder;W=qpb(H);return u.yield(k.aesEncryptorAsync.decrypt(A,W),2)}z=u.yieldResult;return u.return(JSON.parse(d.decode(z)))})};var r08={accountLinkStatusEntity:cqJ,booleanEntity:BxA,buttonEntity:rzw,captionTrack:NXA,channelHandle:c$N,chipEntity:apJ,commerceAcquisitionClientPayloadEntity:CBG,commerceCartListEntity:KgJ,compositeSourceEntity:q70,multiviewStagingEntity:rUJ,contextNoteFeedEntityPayload:osk,contextNoteUserRatingEntityPayload:$rw,continuationTokenEntity:LLZ,downloadQualityPickerEntity:eD0,downloadsPageRefreshTokenEntity:i1k,downloadsPageViewConfigurationEntity:Xik,downloadStatusEntity:xEw,dismissState:cBQ,sfvAudioItemCurrentlyPlayingEntity:IJA,
emojiFountainDataEntity:WgZ,emojiCustomizationSetEntity:d6w,fakeChannel:iIN,fakePlaylist:h1J,fakePlaylistEntryCollection:OIi,fakeVideo:TxN,fakeVideoDescription:m_k,featuredProductsEntity:$EN,flowStateEntity:SMG,iconBadgeEntity:akw,interstitialInteractionStateEntity:ASJ,likeButtonAnimationEntity:DEJ,liveChatPollStateEntity:rSA,dataFreshnessEntity:srZ,liveViewerLeaderboardChatEntryPointStateEntity:z2w,liveViewerLeaderboardPointsEntity:qpp,liveReactionsDataEntity:zbw,logoEntity:otN,macroMarkerEntity:SQw,
mainDownloadsLibraryEntity:hD1,mainDownloadsListEntity:O1k,mainPlaylistDownloadStateEntity:TCw,mainPlaylistEntity:vfN,mainPlaylistVideoEntity:yyJ,mainVideoDownloadStateEntity:mEw,mainVideoEntity:P$p,markersEngagementPanelSyncEntity:C$w,markersVisibilityOverrideEntity:KLj,musicAlbumReleaseDetail:hPi,musicAlbumReleaseDownloadMetadataEntity:ujJ,musicAlbumRelease:iMJ,musicAlbumReleaseUserDetail:OMi,musicArtistDetail:TXw,musicArtist:RPk,musicArtistUserDetail:mYw,musicDownloadsLibraryEntity:BXN,musicLibraryEdit:JUw,
musicLibraryStatusEntity:gOp,musicPlaylist:bMw,musicPlaylistDownloadMetadataEntity:ePQ,musicShare:vOZ,musicTrackDetail:jhw,musicTrackDownloadMetadataEntity:xY0,musicTrack:yU0,musicTrackUserDetail:IbN,offlineOrchestrationActionWrapperEntity:M$j,offlineVideoPolicy:nOw,offlineVideoStreams:ZMi,offlineabilityEntity:JyQ,orchestrationWebSamplingEntity:gfj,pageHeaderEntity:nLk,pdpStateEntity:czJ,pinnedProductEntity:AUZ,playbackData:fbw,playerStateEntity:a4i,quantityIncrementerEntity:pxQ,refresh:w2Z,saveToPlaylistListEntity:Zk0,
selectedChipIndexEntityPayload:cyj,settingEntity:RaG,stringEntity:e1p,suggestedFeedbackChipStateEntity:pij,transfer:oOJ,trendingOfferEntity:HMN,videoDownloadContextEntity:$Yi,videoOverviewAsyncDataEntity:BAA,videoPlaybackPositionEntity:ebw,votingEntity:oLp,ytMainChannelEntity:Gdj,youchatPendingResponseEntity:QYw,ytMainDownloadedVideoEntity:b10,ytMainVideoEntity:FLA};var se1,d8k,Ar,R2C,Tsl,qqj,uhA,rhw,z9A;se1=function(A,H){this.JSC$13191_wrapped=A;this.JSC$13191_encoderRegistry=H;this.changedKeys={}};
d8k=function(A,H){return k8Q(A.JSC$13191_encoderRegistry,H.version).decode(H.data,H.key)};
_.WPp=function(A,H,k){return A.JSC$13191_wrapped.objectStore("EntityStore").get(H).then(function(d){if(d){if(k&&d.entityType!==k)throw Error("Kf");return d8k(A,d)}})};
Ar=function(A,H,k){return k?(k=k.map(function(d){return _.WPp(A,d,H)}),CG.all(k)):A.JSC$13191_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(H)).then(function(d){return d.map(function(W){return d8k(A,W)})})};
_.OkN=function(A,H,k){var d=M$V(H),W=k8Q(A.JSC$13191_encoderRegistry,1),z=Object.assign({},H);return A.JSC$13191_wrapped.objectStore("EntityStore").get(d).then(function(u){if(u){if(u.entityType!==k)throw Error("Kf");z.entityMetadata||(u=d8k(A,u),z.entityMetadata=u.entityMetadata)}}).then(function(){var u={key:d,
entityType:k,data:W.encode(z,d),version:1};return CG.all([A.JSC$13191_wrapped.objectStore("EntityStore").put(u),z9A(A,z,k)])}).then(function(){qqj(A,d,k);
return d})};
R2C=function(A,H){var k=_.Vm(H).entityType;return CG.all([A.JSC$13191_wrapped.objectStore("EntityStore").delete(H),rhw(A,H)]).then(function(){qqj(A,H,k)})};
Tsl=function(A,H,k,d){var W=k8Q(A.JSC$13191_encoderRegistry,1);return _.WPp(A,H,d).then(function(z){if(z){z=S7W(z,k);var u={key:H,entityType:d,data:W.encode(z,H),version:1};return CG.all([A.JSC$13191_wrapped.objectStore("EntityStore").put(u),z9A(A,z,d)])}}).then(function(){qqj(A,H,d);
return H})};
qqj=function(A,H,k){var d=A.changedKeys[k];d||(d=new Set,A.changedKeys[k]=d);d.add(H)};
uhA=function(A,H,k){var d=M$V(H);k=uwm(k);if(!k)return CG.resolve([]);k=new k(H);A=A.JSC$13191_wrapped.objectStore("EntityAssociationStore");H=[];k=_.r(k.getAssociations());for(var W=k.next();!W.done;W=k.next())H.push(A.put({parentEntityKey:d,childEntityKey:W.value}));return CG.all(H).then(function(z){return z.map(function(u){return u[1]})})};
rhw=function(A,H){return A.JSC$13191_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(H))};
z9A=function(A,H,k){var d=M$V(H);return rhw(A,d).then(function(){return uhA(A,H,k)})};var BrA=function(){};
_.I(BrA,i$);BrA.prototype.encodeImpl=function(A){return A};
BrA.prototype.decodeImpl=function(A){if(A instanceof Uint8Array)throw k2C(0);return A};var xcf=function(){this.cacheMap={};this.cacheMap[0]=new BrA;if(!_.b("aes_pes_encoder_killswitch")){var A=this.cacheMap;try{var H=_.Oa();var k=qpb(H);var d=new hy(new fTN(k),new wHp(k))}catch(W){throw A=W instanceof Error?new ZW("KEY_CREATION_FAILED",{originalMessage:W.message}):new ZW("KEY_CREATION_FAILED"),_.I3(A),A;}A[1]=d}},k8Q=function(A,H){H=H===void 0?0:H;
A=A.cacheMap[H];if(!A)throw H=new ZW("INVALID_ENCODER_VERSION",{encoderVersion:H}),_.I3(H),H;return A};var wE=function(A,H){_.dF.call(this);this.token=A;this.JSC$13205_encoderRegistry=H;this.observers=[];A=new _.k8.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Oa());A.onmessage=this.JSC$13205_handleMessage.bind(this);this.channel=A};
_.I(wE,_.dF);_.$B=function(A,H,k){var d,W,z,u;return _.e(function(B){if(B.nextAddress==1)return B.yield(A0W(A.token),2);if(B.nextAddress!=3)return d=B.yieldResult,B.yield(_.Ua(d,["EntityStore","EntityAssociationStore"],H,function(h){W=new se1(h,A.JSC$13205_encoderRegistry);return k(W)}),3);
z=B.yieldResult;W&&(u=W.changedKeys,Object.keys(u).length>0&&(A.channel.postMessage(u),e9N(A,u)));return B.return(z)})};
wE.prototype.observe=function(A){var H=this;this.observers.push(A);return function(){var k=H.observers.indexOf(A);k>=0&&H.observers.splice(k,1)}};
var Q$8=function(A){var H;return _.e(function(k){if(k.nextAddress==1)return k.yield(_.$B(A,{mode:"readonly",enableRetries:!0},function(d){return d.JSC$13191_wrapped.objectStore("EntityStore").getAll()}),2);
H=k.yieldResult;return k.return(Promise.all(H.filter(function(d){return!!d}).map(function(d){var W,z;
return _.e(function(u){if(u.nextAddress==1){W=d.key;z=d.entityType;var B=u.yield;var h=HbG(k8Q(A.JSC$13205_encoderRegistry,d.version),d.data,d.key);return B.call(u,h,2)}return u.return({key:W,entityType:z,data:u.yieldResult})})})))})};
wE.prototype.JSC$13205_handleMessage=function(A){e9N(this,A.data)};
var e9N=function(A,H){A=_.r(A.observers);for(var k=A.next();!k.done;k=A.next())k=k.value,k(H)};
wE.prototype.disposeInternal=function(){this.channel.close()};
var Bsl;var OQ,ibA,aJC;OQ={};_.x8i=(OQ.mainVideoEntity="mainVideoEntityActionMetadata",OQ.mainPlaylistEntity="mainPlaylistEntityActionMetadata",OQ.musicTrack="musicTrackEntityActionMetadata",OQ.musicPlaylist="musicPlaylistEntityActionMetadata",OQ);ibA=new _.SE("DOWNLOADS_ENTITY_TYPE_MAP");_.rl=_.Nw("","downloadsPageViewConfigurationEntity");aJC=_.Nw("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Rar=_.Nw("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Nw("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Nw("SMART_DOWNLOADS_ENABLED","settingEntity");_.Nw("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var LyA=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var G2Q=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var h9Z={isLeaderTab:!0};var dKf={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var RY=window,bk=RY.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",Xxl=RY.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Fgf,akI=RY.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||fh,GVQ=RY.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||P2N,IvA=RY.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||VOw,CzV=RY.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||MOQ;var GXN;jX({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 fkC=czI(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(A){return A}}}),$d8=czI(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(A){return A}}}),E0X=new Map;var o0A=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],MZQ;var Ob1=function(A){return _.p8({type:"SET_EPHEMERAL_ACTION",payload:A})};var R9N={ephemeralAction:null};var Trw=bg({ephemeralAction:function(A,H){A=A===void 0?R9N.ephemeralAction:A;switch(H.type){case "SET_EPHEMERAL_ACTION":return H.payload;default:return A}}});var m8N=function(A){return _.p8({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:A})};var Jhw={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var gxN={sharedUi:Jhw,a11y:R9N,entities:{}},vvA={sharedUi:function(A,H){A=A===void 0?Jhw:A;switch(H.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},A,{animatedThumbnailEnabled:H.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},A,{inlinePreviewEnabled:H.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},A,{currentPageType:H.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},A,{currentPageSubType:H.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},A,{persistentPanelVisible:H.payload});default:return A}},
a11y:Trw,entities:ZMW};var dOW={playlistId:"",inviteLinkURL:""};var bbj={continuationCommand:{}};var OKl=bg({continuationCommand:function(A,H){A=A===void 0?bbj.continuationCommand:A;switch(H.type){case "SET_CONTINUATION_COMMAND":return H.payload.continuationCommand;default:return A}}});var zQr={currentFormId:"",commandsMap:{}};var RQN=bg({isLeaderTab:function(A,H){A=A===void 0?h9Z.isLeaderTab:A;switch(H.type){case "SET_IS_LEADER_TAB":var k,d;return(d=H==null?void 0:(k=H.payload)==null?void 0:k.isLeaderTab)!=null?d:A;default:return A}}});var vxJ;_.LPj=function(A){return _.p8({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:A}})};
vxJ=function(A){return _.p8({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:A}})};var Td={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var LEI=bg({isDesktopSmallWidth:function(A,H){A=A===void 0?Td.isDesktopSmallWidth:A;switch(H.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return H.payload.isDesktopSmallWidth;default:return A}},
isShortsActive:function(A,H){A=A===void 0?Td.isShortsActive:A;switch(H.type){case "SET_IS_SHORTS_ACTIVE":return H.payload.isShortsActive;default:return A}},
isWatchWhileMode:function(A,H){A=A===void 0?Td.isWatchWhileMode:A;switch(H.type){case "SET_IS_WATCH_WHILE_MODE":return H.payload.isWatchWhileMode;default:return A}},
playerState:function(A,H){A=A===void 0?Td.playerState:A;switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return A}},
isFullscreen:function(A,H){A=A===void 0?Td.isFullscreen:A;switch(H.type){case "SET_IS_FULLSCREEN":return H.payload.isFullscreen;default:return A}},
isSmallScreenSqueezeback:function(A,H){A=A===void 0?Td.isSmallScreenSqueezeback:A;switch(H.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return H.payload.isSmallScreenSqueezeback;default:return A}},
isShortsPipActive:function(A,H){A=A===void 0?Td.isShortsPipActive:A;switch(H.type){case "SET_IS_SHORTS_PIP_ACTIVE":return H.payload.isShortsPipActive;default:return A}},
isPlaybackStarted:function(A,H){A=A===void 0?Td.isPlaybackStarted:A;switch(H.type){case "SET_IS_PLAYBACK_STARTED":return H.payload.isPlaybackStarted;default:return A}}});var roI={currentMode:"canvas-hidden"};var jWr=function(){return function(A){return function(H){var k=A(H);_.Ud(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[H],!0);return k}}};var yhk,HtN;yhk=new _.lk;_.VI=new _.SE("WATCH_PLAYER_PROMISE_TOKEN");_.jeJ=new _.lk;_.IBQ=new _.SE("SHORTS_PLAYER_PROMISE_TOKEN");HtN=new _.SE("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var IYA=function(){return function(A){return function(H){H.type==="ENTITY_LOADED"&&_.wj().resolve(_.VI).then(function(k){var d;(d=k.dispatchReduxAction)==null||d.call(k,H)});
return A(H)}}};var Yqi={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var TvI=bg({additionalContext:function(A,H){A=A===void 0?Yqi.additionalContext:A;switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var k;return(k=H.payload)!=null?k:"";default:return A}},
impersonatedChannelUrl:function(A,H){A=A===void 0?Yqi.impersonatedChannelUrl:A;switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var k;return(k=H.payload)!=null?k:"";default:return A}},
selectedVideoIds:function(A,H){A=A===void 0?Yqi.selectedVideoIds:A;switch(H.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var k={};return Object.assign({},A,(k[H.payload]=!0,k));case "VIDEO_UNSELECTED":return H=H.payload,A=Object.assign({},A),delete A[H],A;default:return A}}});var Pvw={parentClickTrackingParams:""};var mOl=bg({parentClickTrackingParams:function(A,H){A=A===void 0?Pvw.parentClickTrackingParams:A;switch(H.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return H.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return A}}});var G8A=function(A){return _.p8({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:A})},FPj=function(A){return _.p8({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:A})};var X_G={stepStates:{}};var JoQ=bg({stepStates:function(A,H){A=A===void 0?X_G.stepStates:A;switch(H.type){case "TALK_TO_RECS_RESET_STEP_STATE":var k=H.payload,d=Object.assign({},A);delete d[k.stepId];return d;case "TALK_TO_RECS_UPDATE_SELECTION":var W=A,z=H.payload,u;A={};H={selectionStates:Object.assign({},(u=(k=W[z.stepId])==null?void 0:k.selectionStates)!=null?u:{},(A[z.token]={isSelected:z.isSelected},A)),userQuery:(d=W[z.stepId])==null?void 0:d.userQuery};k={};return Object.assign({},W,(k[z.stepId]=H,k));case "TALK_TO_RECS_UPDATE_USER_QUERY":return k=
A,d=H.payload,u={selectionStates:Object.assign({},(z=(W=k[d.stepId])==null?void 0:W.selectionStates)!=null?z:{}),userQuery:{userQuery:d.userQuery,token:d.userQueryToken}},W={},Object.assign({},k,(W[d.stepId]=u,W));default:return A}}});var D8Z,Sqw,KPw;D8Z=function(A){return _.p8({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:A})};
Sqw=function(A){return _.p8({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:A})};
_.hd=function(A){return _.p8({type:"SET_CURRENT_PAGE_TYPE",payload:A})};
_.CvJ=function(A){return _.p8({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:A})};
KPw=function(A){return _.p8({type:"SET_CHIP_BAR_IS_STICKY",payload:A})};var Bvl={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"};_.mL=function(A){return _.p8({type:"SET_PLAYER_STATE",payload:{playerState:A}})};var Jy={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:xOA(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var gvC=bg({isTheaterMode:function(A,H){A=A===void 0?xOA():A;switch(H.type){case "SET_IS_THEATER_MODE":return H.payload.isTheaterMode;default:return A}},
isWatchActive:function(A,H){A=A===void 0?Jy.isWatchActive:A;switch(H.type){case "SET_IS_WATCH_ACTIVE":return H.payload.isWatchActive;default:return A}},
isLearningJourneyActive:function(A,H){A=A===void 0?Jy.isLearningJourneyActive:A;switch(H.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return H.payload.isLearningJourneyActive;default:return A}},
isWatchFullscreen:function(A,H){A=A===void 0?Jy.isWatchFullscreen:A;switch(H.type){case "SET_IS_WATCH_FULLSCREEN":return H.payload.isWatchFullscreen;default:return A}},
isWatchNarrowWidth:function(A,H){A=A===void 0?Jy.isWatchNarrowWidth:A;switch(H.type){case "SET_IS_WATCH_NARROW_WIDTH":return H.payload.isWatchNarrowWidth;default:return A}},
isSwatcherooActive:function(A,H){A=A===void 0?Jy.isSwatcherooActive:A;switch(H.type){case "SET_IS_SWATCHEROO_ACTIVE":return H.payload.isSwatcherooActive;default:return A}},
isWatchRetroMode:function(A,H){A=A===void 0?Jy.isWatchRetroMode:A;switch(H.type){case "SET_IS_WATCH_RETRO_MODE":return H.payload.isWatchRetroMode;default:return A}},
isLiveChatCollapsed:function(A,H){A=A===void 0?Jy.isLiveChatCollapsed:A;switch(H.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return H.payload.isLiveChatCollapsed;default:return A}},
openEngagementPanels:function(A,H){A=A===void 0?Jy.openEngagementPanels:A;var k=[].concat(_.fV(A));switch(H.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return k.push(H.payload.panelToAdd),k;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return k.splice(k.indexOf(H.payload.panelToRemove),1),k;default:return A}},
playerState:function(A,H){A=A===void 0?Jy.playerState:A;switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return A}},
watchScrollTop:function(A,H){A=A===void 0?Jy.watchScrollTop:A;switch(H.type){case "SET_WATCH_SCROLL_TOP":return H.payload.watchScrollTop;default:return A}},
watchWindowSize:function(A,H){A=A===void 0?Jy.watchWindowSize:A;switch(H.type){case "SET_WATCH_WINDOW_SIZE":return H.payload.watchWindowSize;default:return A}}});var aBG={surveyFeedbackData:{feedbackTokens:[]}};var bKV=bg({surveyFeedbackData:function(A,H){A=A===void 0?aBG.surveyFeedbackData:A;switch(H.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return H.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},A,H.payload);default:return A}}});var iKN={};var PaI=void 0;_.b("web_enable_redux_store_on_demand")||(PaI=YeA());var chk=function(A,H,k){var d=this;this.listId=A;this.JSC$13350_updateCallback=H;this.isOfflineVideoCallback=k;_.F3().subscribe(function(){d.handleUpdate()})};
chk.prototype.getPlaylistData=function(){var A=_.F3().getState().entities;if(this.listId&&this.listId!=="PPSV"){var H=M0Q(A,this.listId,!0),k=_.Nw(this.listId,"mainPlaylistEntity"),d,W;A=A==null?void 0:(d=A.mainPlaylistEntity)==null?void 0:(W=d[k])==null?void 0:W.title;return GUQ(H,A,this.listId)}H=_.FyX(LfI(A));A=_.FyX(_.uk(A));A=H.concat(A);return GUQ(A)};
chk.prototype.getPlaylistId=function(){return this.listId};
chk.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13350_updateCallback(this.listId,this.getPlaylistData(),{})};var gC=function(A,H,k,d){d=d===void 0?[]:d;this.JSC$13353_playlistNetworkManager=A;this.listId=H;this.JSC$13353_updateCallback=k;this.videoIds=d;this.pendingUpdates=[];this.currentIndex=0};
gC.prototype.JSC$13353_setCurrentIndex=function(A){this.currentIndex=A};
gC.prototype.setListId=function(A){this.listId=A};
var p_w=function(A,H){A.currentCreateRequest&&A.currentCreateRequest.cancel(H);A.currentUpdateRequest&&A.currentUpdateRequest.cancel(H);A.currentRefreshRequest&&A.currentRefreshRequest.cancel(H)};
gC.prototype.delete=function(){p_w(this,"PROXY DELETED")};
gC.prototype.addVideos=function(A,H,k){var d=this;k!==void 0?this.videoIds.splice.apply(this.videoIds,[k,0].concat(_.fV(A))):this.videoIds.push.apply(this.videoIds,_.fV(A));this.listId||this.currentCreateRequest?(A.forEach(function(W,z){W={addedVideoId:W,action:"ACTION_ADD_VIDEO"};k&&(W.addedVideoPosition=k+z);d.pendingUpdates.push(W)}),b$(this)):QeQ(this,H.onCreateListCommand)};
var V6w=function(A,H,k,d,W){pVm(A.videoIds,H,k);H>A.currentIndex&&k<=A.currentIndex?A.JSC$13353_setCurrentIndex(A.currentIndex+1):H===A.currentIndex?A.JSC$13353_setCurrentIndex(k):H<A.currentIndex&&k>=A.currentIndex&&A.JSC$13353_setCurrentIndex(A.currentIndex-1);A.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:d,movedSetVideoIdPredecessor:W});b$(A)},QeQ=function(A,H){p_w(A,"OBSOLETE");
A.currentCreateRequest=Exk(A.JSC$13353_playlistNetworkManager,H,A.videoIds);_.Rw(A.currentCreateRequest,function(){A.currentCreateRequest=void 0}).then(function(k){A.setListId(k.playlistId);
A.pendingUpdates.length>0?b$(A):U8j(A)})},b$=function(A){if(A.pendingUpdates.length!==0&&(A.currentRefreshRequest&&A.currentRefreshRequest.cancel("OBSOLETE"),!A.currentUpdateRequest&&!A.currentCreateRequest)){var H=A.pendingUpdates.splice(0,A.pendingUpdates.length);
A.currentUpdateRequest=A.JSC$13353_playlistNetworkManager.updatePlaylist(A.listId,H);_.Rw(A.currentUpdateRequest,function(){A.currentUpdateRequest=void 0}).then(function(){A.pendingUpdates.length>0?b$(A):U8j(A)}).thenCatch(function(){A.pendingUpdates.unshift.apply(A.pendingUpdates,_.fV(H))})}},U8j=function(A){A.currentRefreshRequest=_.lBw(A.JSC$13353_playlistNetworkManager,A.listId,A.currentIndex,A.videoIds[A.currentIndex]);
_.Rw(A.currentRefreshRequest,function(){A.currentRefreshRequest=void 0}).then(function(H){A.JSC$13353_updateCallback(H.playlistId,H.playlistPanelRenderer,H.autoplayRenderer)})};
gC.prototype.size=function(){return this.videoIds.length};var t6p=function(A,H,k,d){d=d===void 0?[]:d;gC.call(this,A,H,k,d);this.JSC$13353_playlistNetworkManager=A;this.listId=H;this.JSC$13353_updateCallback=k;this.videoIds=d};
_.I(t6p,gC);_.L1=function(A,H,k,d,W,z,u){W=W===void 0?[]:W;u=u===void 0?lK:u;gC.call(this,A,H,k,W);this.JSC$13353_playlistNetworkManager=A;this.listId=H;this.JSC$13353_updateCallback=k;this.onAuthChange=d;this.videoIds=W;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=_.p3(_.IE,this.checkLoggedInStatusChange.bind(this),1E3)};
_.I(_.L1,gC);_.q=_.L1.prototype;_.q.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.p3(_.IE,this.checkLoggedInStatusChange.bind(this),1E3)};
_.q.JSC$13353_setCurrentIndex=function(A){gC.prototype.JSC$13353_setCurrentIndex.call(this,A);this.store()};
_.q.delete=function(){_.IE.cancelJob(this.queueSapisIdJob);gC.prototype.delete.call(this)};
_.q.setListId=function(A){gC.prototype.setListId.call(this,A);this.store()};
_.q.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var NrA=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],M6A=["playerResponse","videoDetails"],nxQ=["response","currentVideoEndpoint","watchEndpoint","videoId"],ZbA=["response","currentVideoEndpoint","watchEndpoint","playlistId"],fBA=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],w_w=["response","contents","twoColumnWatchNextResults","playlist","playlist"],oxA=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
$8J=["response","contents","twoColumnWatchNextResults"];var vi={},CaN=(vi.WEB_UNPLUGGED="^unplugged/",vi.WEB_UNPLUGGED_ONBOARDING="^unplugged/",vi.WEB_UNPLUGGED_OPS="^unplugged/",vi.WEB_UNPLUGGED_PUBLIC="^unplugged/",vi.WEB_CREATOR="^creator/",vi.WEB_KIDS="^kids/",vi.WEB_EXPERIMENTS="^experiments/",vi.WEB_MUSIC="^music/",vi.WEB_REMIX="^music/",vi.WEB_MUSIC_EMBEDDED_PLAYER="^music/",vi.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",vi);var WeQ,Exk;WeQ=function(A,H){this.networkManager=A;this.innertubeTransportService=H};
Exk=function(A,H,k){if(!_.L(H,_.L4))return _.qt(Error("Of"));_.L(H,_.L4).videoIds=k;k={create_playlist_title:_.$r("QUEUE",void 0,"Queue")};return DOv(_.I9(A.innertubeTransportService,H,k),FEV)};
_.lBw=function(A,H,k,d){H={videoId:d,playlistId:H,playlistIndex:k};k=_.X3(oFj);return DOv(_.yD(A.innertubeTransportService,H,k),SeQ)};
WeQ.prototype.updatePlaylist=function(A,H){return DOv(_.I9(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:A,actions:H}}),XAm)};var AmN=function(A){this.storage=A},HUk;
AmN.prototype.store=function(A,H){H=H===void 0?0:H;if(this.storage&&A.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",A),this.storage.set("TLPQindex",String(H)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(k){}};
AmN.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
AmN.prototype.getPlaylistId=function(){if(!this.storage)return null;var A=null;try{A=this.storage.get("TLPQplaylist")}catch(H){}return A};var pAl=["navigationEndpoint","watchEndpoint","videoId"],coV=["nextButtonVideo","watchEndpoint","videoId"];_.sJ=new _.SE("NETWORK_TOKEN");_.SO=new _.SE("PAGE_TOKEN");_.jd=new _.SE("PLAYLIST_TOKEN");var sZJ;sZJ=new _.SE("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.kI=new _.SE("INNERTUBE_TRANSPORT_TOKEN");var k$0,IY,WoA,znN,rmw,uxp;k$0=new Set(["ci","cr","carml"]);IY=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13400_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Yf=function(){IY.instance||(IY.instance=new IY);return IY.instance};
IY.prototype.onAny=function(A){return _.dAA(this,A,2)};
IY.prototype.parkOrScheduleJob=function(A,H,k,d,W){_.Pi(this,k)?_.iA().addJob(A,H,d):(W&&(A=WoA(A),znN(this,A,H,k,W)),W=this.JSC$13400_parkedJobs.get(k),W||(this.JSC$13400_parkedJobs.set(k,[]),W=this.JSC$13400_parkedJobs.get(k)),W.push({job:A,priority:H,delay:d}))};
IY.prototype.addListener=function(A,H,k){k&&(H=WoA(H),znN(this,H,0,A,k));k=this.parkedProcessors.get(A);k||(this.parkedProcessors.set(A,[]),k=this.parkedProcessors.get(A));k.push(H)};
IY.prototype.processSignal=function(A){if(!_.Pi(this,A)){this.inProgressSignals.add(A);var H=this.JSC$13400_parkedJobs.get(A);if(H){H=_.r(H);for(var k=H.next();!k.done;k=H.next())k=k.value,_.iA().addJob(k.job,k.priority,k.delay);this.JSC$13400_parkedJobs.delete(A)}if(H=this.parkedProcessors.get(A)){H=_.r(H);for(k=H.next();!k.done;k=H.next())k=k.value,k();this.parkedProcessors.delete(A)}this.signals.push(A);this.inProgressSignals.delete(A)}};
_.Pi=function(A,H){return k$0.has(H)||_.Q$("IS_HOMEPAGE_COLD")||_.Q$("IS_RESULTS_PAGE_COLD")||_.Q$("IS_WATCH_PAGE_COLD")?A.signals.indexOf(H)>=0:!0};
WoA=function(A){var H=!1;return function(){H||(H=!0,A())}};
znN=function(A,H,k,d,W){if(qfG.has(d))_.iA().addJob(H,k,W);else{var z=A.compoundSignals.get(d);z&&_.iA().addJob(function(){_.Pi(A,d)||(z.isTimeoutConditionSatisfied?_.iA().addJob(H,k):z.timeoutConditionObservers.push(function(){_.iA().addJob(H,k)}))},k,W)}};
_.dAA=function(A,H,k){if(H.length>1){var d=[],W=Object.create(null);H=_.r(H);for(var z=H.next();!z.done;z=H.next())z=z.value,W[z]||(d.push(z),W[z]=!0);H=d}if(H.length===1)return H[0];z=H;d="";W=k===2?"|":"&";z.sort();z=_.r(z);for(var u=z.next();!u.done;u=z.next())d+=u.value+W;if(!A.compoundSignals.get(d)){W=0;z=[];u=_.r(H);for(var B=u.next();!B.done;B=u.next())B=B.value,W++,_.Pi(A,B)||z.push(B);(k=k===2)&&W>z.length||!k&&!z.length?A.signals.push(d):rmw(A,d,k,H,z)}return d};
rmw=function(A,H,k,d,W){var z=W.length,u=function(){k||--z===0?A.processSignal(H):uxp(A,H)};
W=_.r(W);for(var B=W.next();!B.done;B=W.next())A.addListener(B.value,u);A.compoundSignals.set(H,{signals:d,isOnAny:k,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});uxp(A,H)};
uxp=function(A,H){if(!_.Pi(A,H)){var k=A.compoundSignals.get(H);if(k&&!k.isTimeoutConditionSatisfied){for(var d=!1,W=0,z=0,u=_.r(k.signals),B=u.next();!B.done;B=u.next()){var h=B.value;B=!_.Pi(A,h);qfG.has(h)?d=!0:(h=A.compoundSignals.get(h))?B&&!h.isTimeoutConditionSatisfied&&(z++,k.isInitialized||h.timeoutConditionObservers.push(function(){uxp(A,H)})):B&&W++}k.isInitialized=!0;
k.isOnAny?d&&(k.isTimeoutConditionSatisfied=!0):W===0&&z===0&&(k.isTimeoutConditionSatisfied=!0);if(k.isTimeoutConditionSatisfied)for(k=_.r(k.timeoutConditionObservers),d=k.next();!d.done;d=k.next())d=d.value,d()}}};
IY.prototype.processSignal=IY.prototype.processSignal;IY.prototype.parkOrScheduleJob=IY.prototype.parkOrScheduleJob;IY.prototype.onAny=IY.prototype.onAny;_.nG("ytsignals.getInstance",_.Yf);IY.prototype.onAny=IY.prototype.onAny;IY.prototype.parkOrScheduleJob=IY.prototype.parkOrScheduleJob;IY.prototype.processSignal=IY.prototype.processSignal;var qfG=new Set(["eop","eocs","dl","pcl"]);_.L6=new _.SE("MINIPLAYER_SERVICE");var Gd,BTN,enk;Gd=function(A,H,k){var d=_.a3.getInstance();if(!HUk){var W=new bmX;var z=void 0,u=_.pZ("ID_TOKEN");u&&W.isAvailable()&&(z=new LG(W,"yt-queue"+u));HUk=new AmN(z)}W=HUk;z=_.Yf();this.JSC$13407_actionRouter=d;this.JSC$13407_pageManager=A;this.playlistManager=H;this.JSC$13407_playlistNetworkManager=k;this.storage=W;this.signals=z;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.FY=function(){if(!BTN){var A=_.wj(),H=A.resolve(_.fZ(_.SO)),k=A.resolve(_.fZ(_.sJ)),d=A.resolve(_.fZ(_.jd));A=A.resolve(_.kI);BTN=new Gd(H,d,new WeQ(k,A))}return BTN};
enk=function(A,H,k){if(k){var d;if(((d=A.responsePlaylistData)==null?void 0:d.playlistId)!==k)return}A.responsePlaylistData&&(k=tgX(H,A.responsePlaylistData),A.responsePlaylistData=(0,_.iK.unsafeClone)(A.responsePlaylistData),Mgm(A.responsePlaylistData,k));k=A.temporaryItems.findIndex(function(W){return W.videoId===H});
k>-1&&A.temporaryItems.splice(k,1);_.XY(A,_.D4(A,A.response?A.response.autoplayRenderer:void 0))};
_.xAk=function(A,H){if(A.responsePlaylistData){var k=NvQ(H,A.responsePlaylistData);Mgm(A.responsePlaylistData,k);if(A.queueProxy){var d=A.queueProxy;k<0||(d.videoIds.splice(k,1),k<d.currentIndex&&d.JSC$13353_setCurrentIndex(d.currentIndex-1),d.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:H}),b$(d))}}_.XY(A,_.D4(A,A.response?A.response.autoplayRenderer:void 0))};
Gd.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.XY(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Gd.prototype.setPlaylistData=function(A,H,k){this.temporaryItems=[];this.listId=A;this.responsePlaylistData=H;_.XY(this,_.D4(this,k))};
var iUN=function(A){return(A==null?0:A.playlistId)?A.playlistId:"PPSV"},hnA=function(A){return A&&A.playlistId?A.playlistId==="PPSV"?!0:t0r(_.F3().getState().entities,A.playlistId):!1};
Gd.prototype.isPlayingOfflineVideo=function(){return this.response?hnA(this.response):!1};
Gd.prototype.closeMiniplayer=function(A){var H=this.queueProxy&&this.queueProxy.size()<=1,k=_.wj().resolve(_.L6);if(!this.queueProxy||H)this.queueProxy&&this.clearQueue(),k.close(!0);else{k.pipController.getWindow()&&window.focus();H=this.responsePlaylistData;var d=this.temporaryItems.length+(H&&H.contents?H.contents.length:0);H=_.$r("QUEUE_CLEARED_UNPLURALIZED")||_.AZ("QUEUE_CLEARED",d);H=_.SX(H);k=_.$r("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");d=_.$r("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.AZ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",d);var W=_.$r("MINIPLAYER_CLOSE",void 0,"Close"),z=_.$r("CANCEL",void 0,"Cancel");_.h$(this.JSC$13407_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Yu(k),dialogMessages:[_.Yu(d)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Yu(W),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
H]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Yu(z)}}}}}}],A)}};
_.D4=function(A,H){var k={},d=A.response;k.autoplayRenderer=H;if(!A.responsePlaylistData&&!A.temporaryItems.length)return!d||!d.hasRelatedVideoData&&_.b("kevlar_prefetch_data_augments_network_data")||(k.playerData={rvs:d.relatedVideoArgs,endScreenRenderer:d.endScreenRenderer}),k;k.playerData={};if(A.index===void 0)return _.I3(Error("Qf")),k;k.panel=A.responsePlaylistData?(0,_.iK.unsafeClone)(A.responsePlaylistData):{titleText:_.Yu(_.$r("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
H=k.panel;if(H.contents)for(var W=_.r(A.temporaryItems),z=W.next();!z.done;z=W.next())H.contents.push({playlistPanelVideoRenderer:z.value});A.queueProxy&&d&&d.playingVideo&&d.playingVideoId&&!lYX(d.playingVideoId,k.panel)&&(H=d.playingVideo,W=k.panel,z=A.index,W.contents&&W.contents.splice(z===void 0?0:z,0,{playlistPanelVideoRenderer:H}));d&&d.playingVideoId&&(H=A.index,W=k.panel,H=!W.contents||H>=W.contents.length?void 0:W.contents[H].playlistPanelVideoRenderer,H&&H.videoId===d.playingVideoId||(H=
tgX(d.playingVideoId,k.panel),A.index=H!==-1?H:A.index?A.index-1:0));H=UOA(A.index+1,k.panel);W=void 0;A.index>0&&(W=UOA(A.index-1,k.panel));if(W||H)k.autoplayRenderer=QWm(H,W,k.autoplayRenderer);!H&&(d==null?0:d.relatedVideoArgs)&&(k.playerData.rvs=d.relatedVideoArgs);d=d?d.playlistIndexOffset:0;A.queueProxy?fYX(k.panel,A.index,d,Evb,!0,!0,!0):fYX(k.panel,A.index,d);k.playerData.playlistPanelRenderer=k.panel;return k};
Gd.prototype.isMiniplayerActive=function(){return _.wj().resolve(_.L6).isMiniplayerActive()};
_.XY=function(A,H){A.playlistManager.setAutoplayRenderer(H.autoplayRenderer||null);A.playlistManager.setPlaylistData(H.panel||null);H.playerData&&A.playlistManager.setPlayerPlaybackControlData(H.playerData)};var wAv="#";var OUA={},Rnk={},TTw={},mAG={},JmJ={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:(OUA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",OUA),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:(Rnk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Rnk),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:(TTw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",TTw),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:(mAG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",mAG),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 SEC=[{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:JmJ},{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:JmJ}}];var vjC;_.UA=[[["amg1ZGN4a2luZCN4eGp1OWk=","NHkwMzJzdmFsdWUjeW5qajV1"],"c3BlcGtyQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjdDVidHhu"]];
vjC=[[["ZjI4d3B2cHJpbWFyeSNsZGszcDI=",null,null],[null,["ZXlreHJoeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjZHZmemto","Yzc0ZG50c3R5bGUtc2NvcGUjbGliaGVm"],null],["aHNrNXJsbWFzdGhlYWQtYWQjZWd4cWxq",["b2E2NG81eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNpZm9teTc="],null],[null,["Yzg0cWMyeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM1cXIzMjk=","Y2FiN3plc3R5bGUtc2NvcGUjbjRqNXAw"],null],[null,["Zm9oeTljeXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciMxYWtpd2s=","OG4wbm56c3R5bGUtc2NvcGUjMXkwNTZk"],null],[null,["Y214Z29meXRkLWFkLXNsb3QtcmVuZGVyZXIjOWZxYjdi"],
null]],[["bzZlZTBjcGxheWVyLWFkcyNvOXNudHU=",null,null]]];_.EA=["bG1ucDFnZ2xvYmFsQ2FsbGJhY2tzIzhraGxpdA==","ZHF1Z2xib25BYm5vcm1hbGl0eURldGVjdGVkIzk1dXlsag==","YmF2NDZqb25BZFNraXAjM3p0b3Ft","ajJ3ZzVzcmF3X3BsYXllcl9yZXNwb25zZSN0YXZ3bTU=","OHRuYnp2YWRTbG90cyN0d2YycDQ="];_.Sd="bG1ucDFnZ2xvYmFsQ2FsbGJhY2tzIzhraGxpdA== ZHF1Z2xib25BYm5vcm1hbGl0eURldGVjdGVkIzk1dXlsag== YmF2NDZqb25BZFNraXAjM3p0b3Ft ajJ3ZzVzcmF3X3BsYXllcl9yZXNwb25zZSN0YXZ3bTU= eHoxcTBnd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2J4dGU4Zg== YnlpcGpoYWJfc2FfZWYjbm5xendy OHRuYnp2YWRTbG90cyN0d2YycDQ=".split(" ");var C1;C1=function(A,H,k){this.iWX=A;this.vAa=H;this.gMX=k};
_.NA8=[new C1("b.f_",!1,0),new C1("j.s_",!1,2),new C1("r.s_",!1,4),new C1("e.h_",!1,6),new C1("i.s_",!0,8),new C1("s.t_",!1,10),new C1("p.h_",!1,12),new C1("s.i_",!1,14),new C1("f.i_",!1,16),new C1("a.b_",!1,18),new C1("a.o_",!1),new C1("g.o_",!1,22),new C1("p.i_",!1,24),new C1("p.m_",!1),new C1("n.k_",!0,20),new C1("i.f_",!1),new C1("a.s_",!0),new C1("m.c_",!1),new C1("n.h_",!1,26),new C1("o.p_",!1),new C1("m.p_",!0,28),new C1("o.a_",!1),new C1("d.p_",!1),new C1("e.i_",!1)].reduce(function(A,H){A[H.iWX]=
H;return A},{});var gGw=function(){};
gGw.prototype.flush=function(A,H){A=A===void 0?[]:A;H=H===void 0?!1:H;if(_.b("enable_client_streamz_web")){A=_.r(A);for(var k=A.next();!k.done;k=A.next())k=jV1(k.value),this.rootSpec&&_.Sn(k,2,this.rootSpec),k={serializedIncrementBatch:_.ob(k.JSC$9920_serializeBinary())},_.yr("streamzIncremented",k,{sendIsolatedPayload:H})}};
var sHX=function(){};
_.I(sHX,gGw);var bUA=function(A){var H=new mUw;var k=new OAi;k=_.qC(k,1,"botguard");A=_.qC(k,2,A);this.rootSpec=_.Cx(H,1,Jak,A)};
_.I(bUA,gGw);var pm,LoG=new Map;var YEW,dMl,ivQ,qEI,BAN,bvW,Gqm,JPm;YEW=2;dMl=2;ivQ=2;qEI=2;BAN=2;bvW=2;Gqm=2;JPm=new mGj;var ymQ,jZi;ymQ=function(){this.ongoingFlowNonces=new Map};
_.Nm=function(){jZi||(jZi=new ymQ);return jZi};
_.tr=function(A,H,k){return{eventType:{flowEventNamespace:A,flowEventType:H},metadata:k,statusCode:void 0,csn:void 0,can:void 0}};
_.njQ=function(A,H){var k=_.Nm(),d=Ir0(k,H,!0);k.logFlowEvent(A,H,d,void 0)};
ymQ.prototype.logFlowEvent=function(A,H,k,d){H={flowNonce:k||Ir0(this,H),flowType:H,flowEventType:A.eventType};A.metadata&&(H.flowMetadata=A.metadata);A.statusCode!==void 0&&(H.flowEventStatus=A.statusCode);A.csn&&(H.csn=A.csn);A.can&&(H.can=A.can);_.yr("flowEvent",H,d)};
var Ir0=function(A,H,k){k=k===void 0?!1:k;var d=A.ongoingFlowNonces.get(H);if(!d||k)d=e1(16),A.ongoingFlowNonces.set(H,d);return d};_.Yfk=new Te0;var $Mf={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 K1=function(A,H,k,d,W,z,u){k=k===void 0?!1:k;d=d===void 0?!1:d;z=z===void 0?_.FY():z;this.aF=!1;this.vnP=A;this.vvc=H;this.zwU=k;this.fromHistory=d;this.previousVideoId=W;this.owa=z;this.tempData=u;this.fJ9=new _.Jf0};
_.I(K1,cY);K1.prototype.validate=function(A){return!(!A.data.playerResponse||A.data.page!=="watch"&&A.data.page!=="learning_journey_watch"&&A.data.page!=="shorts"||this.aF)};
K1.prototype.handle=function(A){var H=this,k=_.L(A.endpoint,_.Yr),d=_.L(A.endpoint,_.A1);if(_.b("kevlar_continue_playback_without_player_response")&&(k==null?0:k.videoId)&&this.previousVideoId&&(k==null?void 0:k.videoId)===this.previousVideoId&&(k==null?0:k.continuePlayback)&&!this.fromHistory)this.vnP.resolve();else{var W={};k?W.watch_endpoint=k:d&&(W.watch_endpoint=d,d.endTimeSeconds&&(W.end=d.endTimeSeconds));A.data.page==="watch"?(A.data.filler||this.zwU||(_.RN("cfg"),_.a3.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(W,PMi(this,A.endpoint)),_.b("enable_masthead_quartile_ping_fix")&&Object.assign(W,G$i(this)),Object.assign(W,void 0),A.data.forceExternalPlaylist&&(W.external_list=!0)):A.data.page==="shorts"?_.a3.getInstance().triggerAction("yt-start-loading-shorts"):A.data.page==="learning_journey_watch"&&_.a3.getInstance().triggerAction("yt-start-loading-learning-journey");if(k=this.vvc()){try{k.loadVideoWithPlayerResponse(A.data.playerResponse,W),k.getPlayerPromise().then(this.vnP.resolve)}catch(z){_.I3(z),
this.vnP.resolve()}this.aF=!0;k.getPlayerPromise().then(function(z){z.addEventListener("onAbnormalityDetected",function(){var u=A.data.playerResponse,B=z.getVideoData().cpn;Gqm=0;_.vGA=B;if(B=toV(u))H.fJ9.increment("IN_PLAYER"),_.Mm(5),_.b("ab_st_vid_ks")?z.pauseVideo(!0):z.stopVideo(),u.playabilityStatus=Object.assign({},u.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:B}}),u.videoDetails=void 0,_.a3.getInstance().triggerOptionalAction("yt-updated-playability-status",
u.playabilityStatus)})})}else _.Pq(Error("Tf"))}};
var PMi=function(A,H){var k=_.L(H,_.Yr);if(H&&k&&k.playlistId&&k.videoId&&(A=A.owa,A.queueProxy?(A=A.queueProxy,k=A.listId===k.playlistId?A.attributionData.get(k.videoId):void 0):k=void 0,k))return{queue_info:k}},G$i=function(A){var H;
if((H=A.tempData)==null?0:H.adpings)return{adpings:A.tempData.adpings}};var aY=function(A,H,k){this.aF=!1;this.hwZ=A;this.l9g=H;this.qFF=k};
_.I(aY,cY);aY.prototype.validate=function(A){return!!_.iK.getValueByKeys.apply(null,[A.data].concat(_.fV($8J)))};
aY.prototype.handle=function(A){var H=this;this.hwZ.promise.then(function(){var k=A.data;var d=_.iK.getValueByKeys.apply(null,[k].concat(_.fV(NrA))),W=_.iK.getValueByKeys.apply(null,[k].concat(_.fV(w_w))),z=_.iK.getValueByKeys.apply(null,[k].concat(_.fV(nxQ)));var u=(u=_.iK.getValueByKeys.apply(null,[k].concat(_.fV(M6A))))?{videoId:u.videoId,thumbnail:u.thumbnail,title:u.title?_.Yu(u.title):void 0,shortBylineText:u.author?_.Yu(u.author):void 0}:void 0;var B=void 0;_.b("web_get_playlist_id_from_current_endpoint_ks")||
(B=_.iK.getValueByKeys.apply(null,[k].concat(_.fV(ZbA))));var h=_.iK.getValueByKeys.apply(null,[k].concat(_.fV(oxA))),O=_.iK.getValueByKeys.apply(null,[k].concat(_.fV(fBA))),T=!!h||!!O&&!!O.results&&O.results.length>0,m=0;W&&W.currentIndex&&W.localCurrentIndex&&(m=W.currentIndex-W.localCurrentIndex);W&&W.playlistId&&(B=W.playlistId);k={rawResponse:k,autoplayRenderer:d,hasRelatedVideoData:T,playingVideo:u,playingVideoId:z,playlistPanelRenderer:W,playlistId:B,playlistIndex:W&&W.currentIndex,relatedVideoArgs:h,
endScreenRenderer:O,playlistIndexOffset:m};a:{d=H.qFF;W=H.l9g;d.response=k;if(hnA(k))d.downloadPlaylistProxy&&d.downloadPlaylistProxy.getPlaylistId()===iUN(k)||(d.downloadPlaylistProxy=new chk(iUN(k),d.setPlaylistData.bind(d),d.isPlayingOfflineVideo.bind(d))),d.responsePlaylistData=d.downloadPlaylistProxy.getPlaylistData(),d.listId=iUN(k),d.index=0;else if(k.playlistPanelRenderer&&k.playlistId&&k.autoplayRenderer)k.playlistId.startsWith("TLPQ")?d.queueProxy?d.listId===k.playlistId?(d.index=k.playlistIndex,
d.responsePlaylistData=k.playlistPanelRenderer,d.queueProxy.JSC$13353_setCurrentIndex(d.index)):k.playingVideoId&&d.index!==void 0&&W.clientParams.autoSaveToQueue&&(d.index+=1,d.queueProxy.JSC$13353_setCurrentIndex(d.index),d.queueProxy.addVideos([k.playingVideoId],{},d.index)):(d.queueProxy=new _.L1(d.JSC$13407_playlistNetworkManager,k.playlistId,d.setPlaylistData.bind(d),d.clearQueue.bind(d),_.nv8(k.playlistPanelRenderer),d.storage),d.responsePlaylistData=k.playlistPanelRenderer,d.listId=k.playlistId,
d.index=k.playlistIndex):(d.index=k.playlistIndex,d.listId!==k.playlistId&&d.clearQueue(),d.responsePlaylistData=k.playlistPanelRenderer,d.listId=k.playlistId,d.playlistProxy=new t6p(d.JSC$13407_playlistNetworkManager,k.playlistId,d.setPlaylistData.bind(d),_.nv8(k.playlistPanelRenderer)));else if(!d.queueProxy)d.responsePlaylistData=void 0;else if(k.playingVideoId&&W.clientParams.autoSaveToQueue){if(d.index===void 0){_.I3(Error("Pf"));d.clearQueue();break a}d.queueProxy.videoIds.includes(k.playingVideoId)||
(d.index+=1,d.queueProxy.JSC$13353_setCurrentIndex(d.index),d.queueProxy.addVideos([k.playingVideoId],{},d.index))}_.XY(d,_.D4(d,d.response.autoplayRenderer))}})};var FoJ=function(A,H){H=H===void 0?_.FY():H;$e.call(this);this.mT.push(new aY(this.bB,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},H));this.mT.push(new K1(this.bB,A,!1,!1));_.b("web_response_commands_chunk_processor")&&this.mT.push(new Ay)};
_.I(FoJ,$e);FoJ.prototype.processChunk=function(A){A&&A.data.player===void 0&&this.bB.resolve();$e.prototype.processChunk.call(this,A)};var ci=function(A,H){A=A===void 0?{layer:0}:A;this.aF=!1;this.createScreenConfig=A;this.u99=H;this.createScreenConfig.automatedLogEventSource=9};
_.I(ci,cY);ci.prototype.validate=function(A){return!(this.aF||!A.endpoint)};
ci.prototype.handle=function(A){var H=_.A7(),k,d,W=(d=_.L((k=A.endpoint)==null?void 0:k.commandMetadata,_.wn))==null?void 0:d.rootVe;this.u99&&W?_.Ml(H,W,this.u99,this.createScreenConfig):JCA(H,A.endpoint,this.createScreenConfig);this.aF=!0};var p1=function(A,H){this.aF=!1;this.uGg=A;this.previousVideoId=H};
_.I(p1,cY);p1.prototype.validate=function(A){return _.b("kevlar_continue_playback_without_player_response")&&(A=_.L(A.endpoint,_.Yr),(A==null?0:A.videoId)&&this.previousVideoId&&(A==null?void 0:A.videoId)===this.previousVideoId&&(A==null?0:A.continuePlayback))?!1:this.uGg.f1X===0};
p1.prototype.handle=function(A){_.a3.getInstance().triggerAction("yt-stop-old-player",A.data,!0)};var X6w=function(A){A=A===void 0?{layer:0}:A;$e.call(this);this.mT.push(new p1(this));this.mT.push(new ci(A));this.mT.push(new oD(A))};
_.I(X6w,$e);var QD=function(){cY.apply(this,arguments)};
_.I(QD,cY);QD.prototype.validate=function(A){return!!A.data.preconnect};
QD.prototype.handle=function(A){_.OH("bc");A=_.r(A.data.preconnect);for(var H=A.next();!H.done;H=A.next())H=H.value,(new Image).src=H};var DA1=function(A,H,k,d,W,z,u){k=k===void 0?{layer:0}:k;z=z===void 0?_.FY():z;$e.call(this);if(d)if(W){W=z;this.mT.push(new aY(this.bB,H,W));this.mT.push(new QD);var B,h;this.mT.push(new K1(this.bB,A,!1,!((B=H.clientParams)==null||!B.fromHistory),(h=H.clientParams)==null?void 0:h.previousVideoId,W,H.tempData));var O;this.mT.push(new p1(this,(O=H.clientParams)==null?void 0:O.previousVideoId));var T;(T=H.clientParams)!=null&&T.fromHistory||(k.layer||(k=Object.assign({},k,{layer:0})),this.mT.push(new ci(k,
u)),this.mT.push(new oD(k)))}else this.mT.push(new aY(this.bB,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},z)),this.mT.push(new K1(this.bB,A,!1,!1));else this.mT.push(new p1(this)),this.mT.push(new ci(k)),this.mT.push(new oD(k));_.b("web_response_commands_chunk_processor")&&d&&this.mT.push(new Ay)};
_.I(DA1,$e);DA1.prototype.processChunk=function(A){A&&A.data.player===void 0&&this.bB.resolve();$e.prototype.processChunk.call(this,A)};var Sfi=function(){this.aF=this.aF=!1};
_.I(Sfi,cY);Sfi.prototype.validate=function(A){return!this.aF&&!(!A.data.csn||!A.data.rootVe)};
Sfi.prototype.handle=function(A){this.aF=!0;_.RC(A.data.csn,A.data.rootVe,3)};var CMJ=function(A,H,k){k=k===void 0?{layer:0}:k;$e.call(this);this.mT.push(new K1(this.bB,A));this.mT.push(new ci(k));this.mT.push(new oD(k))};
_.I(CMJ,$e);var KoA=function(A,H,k,d,W){k=k===void 0?{layer:0}:k;d=d===void 0?_.FY():d;$e.call(this);var z=!!H&&!!H.clientParams&&!!H.clientParams.miniplayer;z&&this.mT.push(new Sfi);this.mT.push(new aY(this.bB,H,d));this.mT.push(new QD);var u,B;this.mT.push(new K1(this.bB,A,z,!((u=H.clientParams)==null||!u.fromHistory),(B=H.clientParams)==null?void 0:B.previousVideoId,d,H.tempData));var h;this.mT.push(new p1(this,(h=H.clientParams)==null?void 0:h.previousVideoId));var O;(O=H.clientParams)!=null&&O.fromHistory||
(k.layer||(k=Object.assign({},k,{layer:z?3:0})),this.mT.push(new ci(k,W)),this.mT.push(new oD(k)));_.b("web_response_commands_chunk_processor")&&this.mT.push(new Ay)};
_.I(KoA,$e);var VD,p6w;VD={};
_.arJ=(VD["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},VD["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},VD["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},VD["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},VD["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},VD["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},VD["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},VD);_.EQ=new _.D$("yt-edu");_.cm0=function(){this.JSC$13505_eduDisplayedThisLoad_={}};
p6w=function(A){var H=_.cm0.getInstance();var k=_.H5("kevlar_tooltip_impression_cap");H=k&&parseInt(_.EQ.get(A+"-impression")||0,10)>=k||_.EQ.get(A+"-dismissed")?!1:(k=_.arJ[A])&&!H.JSC$13505_eduDisplayedThisLoad_[k.setKey||A]&&(k.titleText&&_.$r(k.titleText)||k.bodyText&&_.$r(k.bodyText))?!0:!1;if(!H)return null;H=_.arJ[A];if(!H)return null;k=H.bodyText?_.$r(H.bodyText):void 0;var d=H.titleText?_.$r(H.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:H.position,popup:{bubbleHintRenderer:{text:d?
_.Yu(d):void 0,detailsText:k?_.Yu(k):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Yu(_.$r("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:A}}]}}}}}}}},{eduImpressionAction:{key:A}}]};
_.Qj(_.cm0);var ZvX=!1;for(var QZA="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),V2J=[],UQ=6;UQ>=1;UQ--)V2J.push({columnCount:UQ,query:UQ==1?0:UQ*2*107-4+32,className:"grid-"+UQ+"-columns",width:UQ*2*107+"px"});_.l$=function(A){this.actionRouter_=A=A===void 0?_.a3.getInstance():A;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.EGp(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.EGp=function(A){var H=A.documentWidth_-(A.miniGuideVisible_?72:0)-(A.guidePersistentAndVisible_?240:0)-(A.persistentPanelVisible_?400:0);return V2J.find(function(k){return H>k.query})};
_.Qj(_.l$);var UAA=function(){var A=this;this.JSC$13517_keyboardInUse=!1;document.addEventListener("keydown",function(){A.onKeydown()});
document.addEventListener("mousedown",function(){A.JSC$13517_keyboardInUse=!1})},lrZ;
UAA.prototype.isKeyBoardInUse=function(){return this.JSC$13517_keyboardInUse};
UAA.prototype.onKeydown=function(){this.JSC$13517_keyboardInUse=!0};var t2A,ME;_.ty=new _.D$("yt-mentions");_.NE=function(){};
t2A=function(A,H){return ME(H,"drag-to-reorder-edu-displayed")};
ME=function(A,H,k,d,W,z){k=k===void 0?"OPEN_POPUP_POSITION_TOP":k;if(H){if(_.ty.get(H))return;_.ty.set(H,!0,d)}if(W&&z!==void 0){H=Number(_.ty.get(W)||0);if(H>=z)return;_.ty.set(W,H+1)}return[{openPopupAction:{popupType:"HINT",position:k,popup:{bubbleHintRenderer:{detailsText:A,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Qj(_.NE);var NTN,M2G,nGG;NTN=function(A,H,k,d){this.JSC$13527_taskManager_=A;this.onFulfilled_=typeof H==="function"?H:null;this.onRejected_=typeof k==="function"?k:null;this.JSC$13527_context_=d};
M2G=function(A,H){A.onFulfilled_&&_.zV(A.JSC$13527_taskManager_,function(){A.onFulfilled_.call(A.JSC$13527_context_,H)})};
nGG=function(A,H){A.onRejected_&&_.zV(A.JSC$13527_taskManager_,function(){A.onRejected_.call(A.JSC$13527_context_,H)})};
_.n1=function(A){this.JSC$13530_taskManager_=A;this.callbacks_=[]};
_.n1.prototype.then=function(A,H,k){this.callbacks_.push(new NTN(this.JSC$13530_taskManager_,A,H,k));return this};
_.n1.prototype.onSuccess=function(A){this.callbacks_.forEach(function(H){M2G(H,A)})};
_.n1.prototype.onFailure=function(A){this.callbacks_.forEach(function(H){nGG(H,A)})};
_.n1.prototype.cancel=function(){this.callbacks_.length=0};
jxG(_.n1);_.HEW=null;_.A8=new _.SE("ACTIVITY_TOKEN");var ZUw;_.eK=new _.SE("PAGE_REQUEST_TOKEN");ZUw=new _.SE("FETCH_PBJ_TOKEN");_.frp=function(A){if(A.validatedFragments_.length==0)return null;if(!A.mergedPrefetchedData_){for(var H=[],k=_.r(A.validatedFragments_),d=k.next();!d.done;d=k.next()){d=_.r(A.fragmentConfiguration_[d.value].graftedKeys);for(var W=d.next();!W.done;W=d.next())(W=A.prefetchedData_[W.value].trackingParams)&&H.push(W)}A.mergedPrefetchedData_={};Object.assign(A.mergedPrefetchedData_,A.prefetchedData_,{clientSideGrafts:H})}return A.mergedPrefetchedData_};var w6N;_.Z4=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
w6N=function(A,H,k){if(_.sBI(H))return A.prefetchCache_.get(_.kTf(H,k))};_.f1=new _.SE("NAVIGATION_TOKEN");var oGw=function(A){var H=this;var k=k===void 0?zhA():k;var d=d===void 0?_.wj().resolve(_.f1):d;this.onePickCommand=A;this.JSC$13602_playlistNetworkManager=k;this.navigationManager=d;this.videoPickerBuilder=_.d9l("yt-addtoplaylist");_.V8G(bHk(LCw(grp(this.videoPickerBuilder.setTitle(A.modalTitle).setSize(1E3).addView(acp()).addView(Kbw())).addView("youtube"),A.selectButtonLabel)),function(W){H.handleAction(W)})};
oGw.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
oGw.prototype.handleAction=function(A){var H=this;if(A&&this.onePickCommand.listId&&A.action==="picked"&&A.docs){var k=[];A.docs.forEach(function(d){k.push({addedVideoId:d.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13602_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,k).then(function(){_.b("playlist_add_video_hard_reload_killswitch")?H.navigationManager.reload():$AN(H.navigationManager)})}};var A_w=function(){if(this.constructor===A_w)throw new TypeError("Vf");};
_.q=A_w.prototype;_.q.dispose=function(){};
_.q.disconnect=function(){};
_.q.reconnect=function(){};
_.q.observe=function(A,H,k){return{element:A,option:k}};
_.q.unobserveByKey=function(){};var qbb=function(A,H){H=H===void 0?0:H;A_w.call(this);this.viewroot=A;this.defaultPrescanHeight=H;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),A?{root:A,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.I(qbb,A_w);_.q=qbb.prototype;_.q.dispose=function(){this.disconnect();this.handlers.clear()};
_.q.disconnect=function(A){this.isConnected=!1;this.pauseObservingUntilReconnect=A===void 0?!1:A;this.observer.disconnect();A=_.r(this.prescanObservers.values());for(var H=A.next();!H.done;H=A.next())H.value.disconnect()};
_.q.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var A=_.r(this.handlers),H=A.next();!H.done;H=A.next()){var k=_.r(H.value);H=k.next().value;var d=k.next().value;k=!1;d=_.r(d.keys());for(var W=d.next();!W.done;W=d.next())if((W=W.value)&&W.state==="prescan"){k=!0;break}k&&HJj(this,H).observe(H);this.observer.observe(H)}}};
_.q.handleObserveEvent=function(A){A=_.r(A);for(var H=A.next();!H.done;H=A.next()){H=H.value;var k=this.handlers.get(H.target);if(k){var d=H.isIntersecting;k=_.r(k);for(var W=k.next();!W.done;W=k.next()){var z=_.r(W.value);W=z.next().value;z=z.next().value;W&&(W.state==="visible"&&d||W.state==="hidden"&&!d)&&(z(H.target,W.state),W.calledOnce&&this.unobserveByKey({element:H.target,option:W}))}}}};
_.q.handlePrescanEvent=function(A){A=_.r(A);for(var H=A.next();!H.done;H=A.next()){H=H.value;var k=this.handlers.get(H.target);if(k&&H.isIntersecting){k=_.r(k);for(var d=k.next();!d.done;d=k.next()){var W=_.r(d.value);d=W.next().value;W=W.next().value;d&&d.state==="prescan"&&(W(H.target,d.state),d.calledOnce&&this.unobserveByKey({element:H.target,option:d}))}}}};
_.q.observe=function(A,H,k){var d=(d=this.handlers.get(A))&&d.has(k)?{element:A,option:k}:void 0;if(d)return d;d={element:A,option:k};this.handlers.has(A)||this.handlers.set(A,new Map);var W=this.handlers.get(A);W&&!W.has(k)&&W.set(k,H);this.pauseObservingUntilReconnect||(k.state==="prescan"&&HJj(this,A).observe(A),this.observer.observe(A));return d};
_.q.unobserveByKey=function(A){var H=this.handlers.get(A.element);if(H&&H.has(A.option)){H.delete(A.option);if(A&&A.option.state==="prescan")for(var k=_.r(this.prescanObservers.values()),d=k.next();!d.done;d=k.next())d.value.unobserve(A.element);H.size===0&&(this.handlers.delete(A.element),this.observer.unobserve(A.element))}};
var HJj=function(A,H){var k=A.defaultPrescanHeight;H.hasAttribute("prescan-height")&&(H=Number(H.getAttribute("prescan-height")),isNaN(H)||(k=H));if(A.prescanObservers.has(k))return A.prescanObservers.get(k);H="-0.1px -0.1px "+k+"px -0.1px";H=new IntersectionObserver(A.handlePrescanEvent.bind(A),A.viewroot?{root:A.viewroot,rootMargin:H}:{rootMargin:H});A.prescanObservers.set(k,H);return H};var sGk=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],kmi=function(){var A,H=this;this.JSC$13619_actionRouter=A=A===void 0?_.a3.getInstance():A;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return H.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return H.visibilityObservedElementHandlerKeys}}},d1Z,wC,q00;
kmi.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.b("kevlar_use_vimio_behavior")&&_.pZ("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=rl8())};
kmi.prototype.dispose=function(){this.visibilityMonitor&&_.xz(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
kmi.prototype.handleVisibilityRefreshed=function(){for(var A=_.r(this.targetMap.entries()),H=A.next();!H.done;H=A.next()){var k=_.r(H.value);H=k.next().value;k=k.next().value;_.WIw(this,H,k)}};
_.oY=function(A,H,k){wC(A,k);var d=_.zGj(A,H);d.element=k;A.targetedElements.set(k,H);_.WIw(A,H,d)};
wC=function(A,H){var k=A.targetedElements.get(H);if(k){var d=A.targetMap.get(k);d&&(delete d.element,A.targetMap.set(k,d));A.targetedElements.delete(H);A.visibilityObserver&&A.visibilityObservedElementHandlerKeys&&(k=A.visibilityObservedElementHandlerKeys.get(H))&&(A.visibilityObserver.unobserveByKey(k),A.visibilityObservedElementHandlerKeys.delete(H))}};
_.WIw=function(A,H,k){var d=k.action,W=k.element;W&&d&&(sGk.includes(H)||_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||A.visibilityMonitor&&A.visibilityMonitor.isNodeVisible(W)?q00(A,H,k):A.visibilityObserver&&(A.visibilityObservedElementHandlerKeys||(A.visibilityObservedElementHandlerKeys=new WeakMap),d=A.visibilityObserver.observe(W,function(){q00(A,H,k);A.visibilityObservedElementHandlerKeys.delete(W)},{calledOnce:!0,
state:"visible"}),A.visibilityObservedElementHandlerKeys.set(W,d)))};
q00=function(A,H,k){var d=k.action;(k=k.element)&&d&&(_.h$(A.JSC$13619_actionRouter,[d],k),A.targetMap.delete(H),A.targetedElements.delete(k),A.triggeredTargets.add(H))};
_.zGj=function(A,H){var k=A.targetMap.get(H);k||(k={},A.targetMap.set(H,k));return k};
_.$f=function(){d1Z||(d1Z=new kmi);return d1Z};var r_i=document.createElement("div");r_i.style.touchAction="pan-down";var uyv=r_i.style.touchAction==="pan-down";var u2j,BaQ;u2j=function(){this.hammerFn=WWw();this.JSC$13627_screenManager=_.A7();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.t8(83615);_.Z2(this.JSC$13627_screenManager,this.ve);BBl()};
_.AU=function(){BaQ||(BaQ=new u2j);return BaQ};
u2j.prototype.registerTouchEvents=function(A,H,k){var d=_.o7.apply(3,arguments),W=this.hammerFn(A,{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}]]});k&&W.set({touchAction:k});this.nodeManagerMapping.set(A,W);var z=
ehv(H);d=_.r(d);for(var u=d.next();!u.done;u=d.next()){u=u.value;if(u.includes("swipe")||u.includes("pinch")||u.includes("pan"))u.includes("swipe")?W.get("swipe").set({enable:!0,direction:z,velocity:.2}):u.includes("pinch")?W.get("pinch").set({enable:!0}):u.includes("pan")&&(W.get("pan").set({enable:!0,direction:z}),W.get("swipe").set({enable:!0,direction:z,velocity:.2}),W.get("swipe").recognizeWith("pan"));eGJ(this,A,W,u)}};
var eGJ=function(A,H,k,d){k.on(d,function(W){if(d.includes("pinch"))A.lastPinchTime=Date.now();else if(d.includes("swipe")&&Date.now()-A.lastPinchTime<400)return;W.pointerType!=="mouse"&&(W=d==="doubletap"?{coordinates:W.center}:d.includes("pan")?W:d.includes("swipe")?{target:W.target}:{},H.dispatchEvent(new CustomEvent(d,{bubbles:!0,composed:!0,detail:W})))})};
u2j.prototype.unregisterTouchEvents=function(A){var H=_.o7.apply(1,arguments),k=this.nodeManagerMapping.get(A);if(k){H=_.r(H);for(var d=H.next();!d.done;d=H.next())k.off(d.value);this.nodeManagerMapping.delete(A);A.style.touchAction="unset"}};var x1A=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.d4={getLocalStorage:_.iP(function(){try{var A=new gub;var H=A.isAvailable()?A:null}catch(k){return null}return H?new _.eL(H):null}),
getSessionStorage:_.iP(function(){var A=new bmX;return A.isAvailable()?new _.eL(A):null})};var iJp=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},Yb8=function(){iJp.instance||(iJp.instance=new iJp);
return iJp.instance},PTI=function(A){var H=A.networkEvents;
A.networkEvents=[];return H};var hGw;hGw={};_.OJZ=fG("yt-serviceworker-metadata",{objectStores:(hGw.auth={addedAtVersion:1},hGw["resource-manifest-assets"]={addedAtVersion:2},hGw),shared:!0,upgrade:function(A,H){H(1)&&C5(A,"resource-manifest-assets");H(2)&&C5(A,"auth")},
version:2});var OEI=self.location.origin+"/";Rhm([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);Rhm([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);Rhm([/\.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\//]);Rhm([/purge_shell=1/]);var RGA=void 0;RGA=RGA===void 0?[]:RGA;
for(var TaJ=[],m1A=_.r(sNj),J_Z=m1A.next();!J_Z.done;J_Z=m1A.next())TaJ.push({key:J_Z.value});for(var giN=_.r(RGA),bJi=giN.next();!bJi.done;bJi=giN.next())TaJ.push(bJi.value);var LIp,BM=_.k8==null?void 0:(LIp=_.k8.performance)==null?void 0:LIp.memory,Jlb=!1,GTr={},LeN={},es={},xI=navigator;var H2=function(A){this.JSC$13672_expiringStorage=new g2(A)};
H2.prototype.set=function(A,H,k){k=k!==void 0?Date.now()+k:void 0;this.JSC$13672_expiringStorage.set(A,H,k)};
H2.prototype.get=function(A){return this.JSC$13672_expiringStorage.get(A)};
H2.prototype.remove=function(A){this.JSC$13672_expiringStorage.remove(A)};var aAC=_.XO(["https://www.youtube.com/",""]),clW=_.XO(["https://studio.youtube.com/",""]),U9r="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",QBI=null,nFr;var viw=_.XO(["https://www.youtube.com/iframe_api"]),s7=function(){this.playerResolver_=_.YE();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.xX;this.playbackDurationSeconds_=0},y_w=function(A){var H=function(){return window.YT&&typeof window.YT.ready==="function"};
if(H())return _.MT(window.YT);var k=_.YE(),d=_.$g("SCRIPT");d.onload=d.onreadystatechange=function(){d.readyState&&d.readyState!="loaded"&&d.readyState!="complete"||(d.onload=_.xX,d.onreadystatechange=_.xX,d.onerror=_.xX,H()?k.resolve(window.YT):k.reject(new _.Ti("Failed to load the iframe player library","script.onload",d.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
d.onerror=function(W){d.onload=_.xX;d.onreadystatechange=_.xX;d.onerror=_.xX;k.reject(new _.Ti("Failed to load the iframe player library","script.onerror",W&&W.target&&W.target.src))};
_.h2(d,_.Ia(viw));A.insertBefore(d,A.firstChild);return k.promise},jGj=function(A,H,k){var d,W;
_.e(function(z){switch(z.nextAddress){case 1:return A.playbackEndedCallback_=k,_.S_(z,2),z.yield(y_w(H.parentElement||null),4);case 4:d=z.yieldResult;_.QN(z,3);break;case 2:return W=_.VA(z),W instanceof _.Ti&&W.args&&W.args[0]=="script.onerror"?_.Pq(W):_.I3(W),z.return();case 3:d.ready(function(){return new d.Player(H,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:A.onPlayerReady_.bind(A),onStateChange:A.onPlayerStateChange_.bind(A),
onCueRangeExit:A.onCueRangeExit_.bind(A)}})}),_.EN(z)}})};
_.q=s7.prototype;_.q.getPlayerPromise=function(){return this.playerPromise_};
_.q.onPlayerReady_=function(A){this.playerResolver_.resolve(A.target)};
_.q.onPlayerStateChange_=function(A){if(A.data==YT.PlayerState.PLAYING){A=A.target;var H=A.getCurrentTime();A.addCueRange("playback",H,H+this.playbackDurationSeconds_)}};
_.q.onCueRangeExit_=function(A){A.data=="playback"&&(A.target.stopVideo(),this.playbackEndedCallback_())};
_.q.stopVideo=function(){this.playerPromise_.then(function(A){A.stopVideo()})};
var Ig1=function(A){A.playerVars_&&A.playerPromise_.then(function(H){typeof H.cueVideoByPlayerVars!="function"?_.Pq(new _.Ti("vmh: player API not ready","cueVideoByPlayerVars",typeof H.cueVideoByPlayerVars)):H.cueVideoByPlayerVars(A.playerVars_)})};
s7.prototype.playVideo=function(){var A=this;this.playerVars_&&this.playerPromise_.then(function(H){typeof H.loadVideoByPlayerVars!="function"?(H=new _.Ti("vmh: player API not ready","loadVideoByPlayerVars",typeof H.loadVideoByPlayerVars),_.I3(H)):H.loadVideoByPlayerVars(A.playerVars_)})};
var Y0A=function(A,H,k,d,W){H&&(k===void 0&&(k=0),d===void 0&&(d=0),A.playbackDurationSeconds_=d/1E3,A.playerVars_={adformat:"17_8",videoId:H,suggestedQuality:"hd720",startSeconds:k/1E3,player_params:W})};
s7.prototype.mute=function(){this.playerPromise_.then(function(A){A.mute()})};
s7.prototype.unMute=function(){this.playerPromise_.then(function(A){A.unMute()})};var HsX=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var kO;kO=function(){this.tokenJars={};if(this.cookiesEnabled=_.hn()){var A=_.x6.get("CONSISTENCY",void 0);A&&PbA(this,{encryptedTokenJarContents:A})}};
_.khr=function(){kO.instance||(kO.instance=new kO);return kO.instance};
kO.prototype.handleResponse=function(A,H){if(!H)throw Error("$f");var k,d;H=((k=H.innerTubeRequest.context)==null?void 0:(d=k.request)==null?void 0:d.consistencyTokenJars)||[];var W;(A=(W=A.responseContext)==null?void 0:W.consistencyTokenJar)&&this.replace(H,A)};
kO.prototype.replace=function(A,H){A=_.r(A);for(var k=A.next();!k.done;k=A.next())delete this.tokenJars[k.value.encryptedTokenJarContents];PbA(this,H)};
var PbA=function(A,H){if(H.encryptedTokenJarContents&&(A.tokenJars[H.encryptedTokenJarContents]=H,typeof H.expirationSeconds==="string")){var k=Number(H.expirationSeconds);setTimeout(function(){delete A.tokenJars[H.encryptedTokenJarContents]},k*1E3);
A.cookiesEnabled&&_.iC("CONSISTENCY",H.encryptedTokenJarContents,k,void 0,!0)}};var Gmi,dX;Gmi=window.location.hostname.split(".").slice(-2).join(".");_.ya=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var A=_.pZ("LOCATION_PLAYABILITY_TOKEN");_.pZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=FI1(this))&&(A=this.localStorage.get("yt-location-playability-token"));A&&(this.locationPlayabilityToken=A,this.mostRecentPosition=void 0)};
_.ya.getInstance=function(){dX=_.UD("yt.clientLocationService.instance");dX||(dX=new _.ya,_.nG("yt.clientLocationService.instance",dX));return dX};
_.ya.prototype.setLocationOnInnerTubeContext=function(A){A.client||(A.client={});if(this.mostRecentPosition)A.client.locationInfo||(A.client.locationInfo={}),A.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),A.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),A.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),A.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)A.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.ya.prototype.handleResponse=function(A){var H;A=(H=A.responseContext)==null?void 0:H.locationPlayabilityToken;A!==void 0&&(this.locationPlayabilityToken=A,this.mostRecentPosition=void 0,_.pZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=FI1(this))&&this.localStorage.set("yt-location-playability-token",A,15552E3):_.iC("YT_CL",JSON.stringify({loctok:A}),15552E3,Gmi,!0))};
var FI1=function(A){return A.localStorage===void 0?new _.D$("yt-client-location"):A.localStorage};
_.ya.prototype.clearLocationPlayabilityToken=function(A){A==="TVHTML5"?(this.localStorage=FI1(this))&&this.localStorage.remove("yt-location-playability-token"):_.xm8("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.ya.prototype.getCurrentPositionFromGeolocation=function(){var A=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var H=!1,k=1E4;_.pZ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(H=!0,k=15E3);return new Promise(function(d,W){navigator.geolocation.getCurrentPosition(function(z){A.mostRecentPosition=z;d(z)},function(z){W(z)},{enableHighAccuracy:H,
maximumAge:0,timeout:k})})};
_.ya.prototype.createUnpluggedLocationInfo=function(A){var H={};A=A.coords;if(A==null?0:A.latitude)H.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)H.longitudeE7=Math.floor(A.longitude*1E7);if(A==null?0:A.accuracy)H.locationRadiusMeters=Math.round(A.accuracy);return H};
_.ya.prototype.createLocationInfo=function(A){var H={};A=A.coords;if(A==null?0:A.latitude)H.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)H.longitudeE7=Math.floor(A.longitude*1E7);return H};var XgA=function(A,H){var k=gn();A||(A="unknown");H||(H="unknown");A="MAIN_APP_WEB_PAGE_TYPE_"+A.toUpperCase();A in H1p||(A="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");H="MAIN_APP_WEB_REQUEST_TYPE_"+H.toUpperCase();H in sYA||(H="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.oI(k,{mainAppWeb:{pageType:A,requestType:H,isShellLoad:_.Q$("IS_SHELL_LOAD",!1)}})},D1N={start:function(){_.oI(ySX(),{mainAppWeb:_.Il()})},
success:function(){_.$q(ySX(),"SUCCESS")},
failure:function(){_.$q(ySX(),"FAILURE")},
cancelled:function(){_.$q(ySX(),"CANCELLED")}};var S0w,CbN,qjX;S0w=_.XO(["/sw.js"]);CbN=_.XO(["/sw.js?0"]);_.KI1=_.Ia(S0w);qjX=_.Ia(CbN);var agZ=function(){var A=Error.apply(this,arguments);this.message=A.message;"stack"in A&&(this.stack=A.stack)};
_.I(agZ,Error);_.GD.prototype.load=function(A){this.megabloxUrl_=_.pZ("YPC_MB_URL");_.bi(this.megabloxUrl_,(0,_.WT)(function(){A&&A()},this))};
_.Bpl=function(A,H,k,d,W,z,u,B,h,O,T){_.u5l(h);A.load((0,_.WT)(function(){try{var m=z?z:_.pZ("HL"),J=_.pZ("SESSION_INDEX");_.xEC("client",function(){XLG("59",{helpCenterPath:"/youtube",locale:m,window:window}).JSC$10289_loadChatSupport({authuser:String(J)})})}catch(g){throw YI(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),W&&W(g),_.I3(g),g;
}c_j(this,H,k,d,W,z,u,B,h,O,T)},A))};
_.GD.prototype.openFixFlowDialog=function(A,H,k,d){this.load((0,_.WT)(function(){try{pgp(this,_.UD("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(A).withIntegratorCallback(H).load(k,d)}catch(W){throw _.I3(W),W;}},this))};
var pgp=function(A,H,k,d){var W=H.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.b("enable_window_constrained_buy_flow_dialog")&&(W=W.usingPopupStyle(_.UD("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));d&&(W=W.usingCloseCallback(d));H.bootstrap.fromPaymentsUrl(A.megabloxUrl_);A=H.bootstrap.asMashupMode(W);k=k?k:_.pZ("HL");A.usingGaiaIndex(_.pZ("SESSION_INDEX")).usingLocale(k).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.b("enable_google_payments_buyflow_material2_style_web")?
A.usingStyle(":m2;pc=#444;ac=#065fd4"):A.usingStyle(":md;pc=#444;ac=#065fd4");return A},c_j=function(A,H,k,d,W,z,u,B,h,O,T){try{var m=_.UD("payments.business.integration");
if(!m)throw new agZ("payments.business.integration is undefined");var J=m.standaloneContextAuthId.forUserId(),g=pgp(A,m,z,function(){e_C(!1);B&&B()});
u&&g.usingServerAnalyticsEventHandler(u);var v=g.inStandaloneContext(J).buyFlow(function(y){if(y&&(!y.integratorData||y.integratorData===""||y.error))if(y.error!=null)if(String(y.error)==="-1")_.BmW(h);else{var X=String(y.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";YI(10,T,X,y.debugCode);_.PM(X,h,y.debugCode);X=new _.Ti("PAYMENT_ERROR_MESSAGE::"+y.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+y.internalErrorDetails);
_.I3(X)}else YI(10,T,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.PM("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",h,"EMPTY_INTEGRATOR_DATA"),_.I3(Error("cg"));k&&(e_C(!1),k(y))}).withEncryptedParameters(H);
O&&v.withClientParameters(ilA(_.lQX(O)));v.load(function(){YI(24,T);_.TH("ttc",void 0,"commerce_transaction");i9("commerce_transaction");d&&(d(),e_C(!0))},function(y){if(y==null?0:y.debugCode)var X=y==null?void 0:y.debugCode;
else if(!y||(y==null?0:y.debugCode))X="EMPTY_LOAD_FAILURE_ERROR",_.I3(Error(X));else{X="EMPTY_LOAD_FAILURE_DEBUG_CODE";var D=new _.Ti("LOAD_FAILURE:"+y.message," DEBUG_CODE:"+X);_.I3(D)}YI(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",X);_.PM("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",h,X);_.I3(y);W&&W(y)})}catch(y){throw y instanceof agZ&&(YI(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),W&&W(y)),_.I3(y),y;
}};var QGj;QGj=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.qgC=function(A,H){H=H===void 0?!1:H;A=QGj.test(A)?_.px(A):null;!H&&window.payments||!A?(A=_.YE(),H=A.promise,A.resolve()):H=_.epj(A,{attributes:{"data-payments-main":"",id:"payment-lib"}});return H};var VjN;VjN=_.XO(["//www.googletagmanager.com/gtm.js?id=",""]);_.W2=function(A,H){_.cn(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:H}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.pZ("GL")}),H=_.$g("SCRIPT"),H.async=!0,_.h2(H,_.Ia(VjN,A)),H.id="gtm",A=document.getElementsByTagName("script"),A.length==0?document.head.appendChild(H):(A=A[0],A.parentNode.insertBefore(H,A)))};
_.zB=function(A){if(A=JSON.parse(A))window.dataLayer=window.dataLayer||[],window.dataLayer.push(A)};var Eij,U1Q;Eij=_.XO(["https://clients2.google.com/gr/gr_sync.js"]);_.WDb=function(){};
_.WDb.prototype.init=function(){if(U1Q()){var A=_.YE();A.resolve();return A.promise}return _.epj(_.Ia(Eij)).then(function(){if(!U1Q())throw Error("dg");},function(){throw Error("eg");
})};
_.z0v=function(){if(!U1Q())return"";var A=window.google.gr;A.init({async:{schedule:"sync"},merchantId:"youtube"});A.start();A=A.finish();return A==null?"":A};
U1Q=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.a=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.I(_.a,PolymerFakeBaseClassWithoutHtml);_.A6=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.I(_.A6,PolymerFakeBaseClassWithoutHtml);var xaA=window.ShadyDOM;var fTl,nmX,omm,$aI,Hbr,seQ,rX,Qa;fTl=_.b("enable_shadydom_free_scoped_query_methods");nmX=_.b("enable_shadydom_free_scoped_node_methods");omm=_.b("enable_shadydom_free_scoped_readonly_properties_batch_one");$aI=_.b("enable_shadydom_free_parent_node");Hbr=_.b("enable_shadydom_free_children");seQ=_.b("enable_shadydom_free_last_child");rX=window.ShadyDOM;_.t1=rX&&rX.noPatch&&rX.wrap?rX.wrap:rX?function(A){return rX.patch(A)}:function(A){return A};
Qa=function(A){if(A instanceof ShadowRoot)this.host=(0,_.t1)(A.host),this.root=A;else if(A.$$){this.host=(0,_.t1)(A);var H;this.root=(H=A.root)!=null?H:this.host}else if(A.polymerController){this.host=(0,_.t1)(A);var k;this.root=(k=this.host.shadowRoot)!=null?k:this.host}else this.root=this.host=(0,_.t1)(A)};
ZsI();wHb();k8v();d8A();AhW();var lg0={querySelector:function(A,H){H=jvm(H,CF(A));return _.b("sunnydom_native_scoped_query_selectors")?h_I(A,H):h_I(_.KF(A),H)},
querySelectorAll:function(A,H){H=jvm(H,CF(A));return _.b("sunnydom_native_scoped_query_selectors")?Array.from(OsA(A,H)):OsA(_.KF(A),H)}},tjA={appendChild:function(A,H){var k=CF(A),d=_.Ss(H);
return _.Nml(_.KF(A),k?_.cM(H,k,d):H)},
cloneNode:function(A,H){var k=_.Ss(A);A=_.KF(A);H=De(A).prototype.cloneNode.call(A,H);return k?pF(H,k):H},
contains:function(A,H){var k=CF(A),d=_.Ss(H);return k!==d?!1:Mqm(A,H)},
insertBefore:function(A,H,k){var d=CF(A),W=_.Ss(H);A=_.KF(A);H=d?_.cM(H,d,W):H;return De(A).prototype.insertBefore.call(A,H,k)},
removeChild:function(A,H){var k=CF(A);A=_.KF(A);H=k?pF(H,k):H;return De(A).prototype.removeChild.call(A,H)},
replaceChild:function(A,H,k){var d=CF(A),W=_.Ss(H);H=d?_.cM(H,d,W):W?pF(H,W):H;k=d?pF(k,d):k;A=_.KF(A);return De(A).prototype.replaceChild.call(A,H,k)},
getRootNode:function(A,H){H=H===void 0?{composed:!0}:H;var k;if(((k=H)!=null?k:{}).composed)A=tql(A);else{H=A;for(A=TmI(A);A;)H=A,A=YjV(A);A=H}return A}},z9X=omm?{firstChild:pHI,
nextSibling:KkA,previousSibling:cCr,firstElementChild:QvA,lastElementChild:EmI,nextElementSibling:CEm,previousElementSibling:aT8,childNodes:UaX}:{};$aI&&(z9X.parentNode=SjN);Hbr&&(z9X.children=lTW);seQ&&(z9X.lastChild=Vqm);fTl&&WPb(lg0);nmX&&WPb(tjA);qqV();var rhm=function(A){this.node=A instanceof ShadowRoot?A.host:A};
uhX();BrX();var ibN=new WeakMap;var ObQ=Symbol("Cd");var gxl=new Set(["tap","track","down","up"]),bbV=_.b("pbcm_fi_query_decorators");var uU=function(){return _.A6.apply(this,arguments)||this};
_.I(uU,_.A6);_.q=uU.prototype;_.q.getState=function(){return this.store.getState()};
_.q.dispatch=function(A){this.store.dispatch(A)};
_.q.beforeRegister=function(){if(this&&typeof this==="object"){var A;var H=!!this.useSignals||!((A=this.polymerController)==null||!A.useSignals)}else H=!1;if(!H&&this.properties)for(H=_.r(Object.keys(this.properties)),A=H.next();!A.done;A=H.next()){var k=A.value;A=this.properties[k];if(A.selector){if(A.computed)throw Error("lg");k=["reduxPropertiesRecomputeTrigger",'"'+k+'"'].concat(_.fV(A.selectorArgs||[])).join(",");A.computed="recomputeReduxSelector("+k+")"}}};
_.q.attached=function(){var A=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){A.reduxPropertiesRecomputeTrigger++}));
_.b("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.q.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.q.recomputeReduxSelector=function(A,H){var k=_.o7.apply(2,arguments),d=this.properties[H].selector;if(!d)throw Error("jg`"+H);return d.apply(null,[this.store.getState()].concat(_.fV(k)))};
_.q.select=function(A){var H=_.o7.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return A.apply(null,[this.store.getState()].concat(_.fV(H)))};
_.nP.Object.defineProperties(uU.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
uU.prototype.recomputeReduxSelector=uU.prototype.recomputeReduxSelector;_.E([_.C(),_.l("design:type",Number)],uU.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.E([_.HW()],uU);var B2=[],jeI={},iy=function(){return fP.apply(this,arguments)||this};
_.I(iy,fP);iy.prototype._addPropertyEffect=function(A,H,k){if(H==="__observeEffects"&&k){var d,W=(d=k.info.method)!=null?d:k.info.methodName;if(W){var z=this[W];this[W]=function(){B2.push(W);try{z==null||z.apply(this,arguments)}finally{B2.pop()}}}}_.k2._addPropertyEffect.apply(this,[A,
H,k])};
iy.prototype._setPendingProperty=function(A,H,k){if(B2.length){var d=B2[B2.length-1],W;(W=jeI[this.is])!=null&&W.has(d)||(IBv(this.is,d),_.yr("polymerPropertyChangedInObserver",{componentName:this.is,observerName:d}))}return _.k2._setPendingProperty.apply(this,[A,H,k])};
_.E([FNI()],iy);var YqW=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),G8X,du={};_.b("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=du);var q0=function(){return _.A6.apply(this,arguments)||this};
_.I(q0,_.A6);q0.prototype._setUnmanagedPropertyToNode=function(A,H,k){A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!0);if(k!==A[H]||typeof k==="object")A[H]=k;A.is&&A.polymerController&&A.polymerController!==A&&WW(A.is,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!1)};
_.E([_.HW()],q0);Pvm()&&(KP.prototype._setUnmanagedPropertyToNode=(new q0)._setUnmanagedPropertyToNode);_.lBI={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(A){},set polymerController(A){}}]};var x9=function(){var A=fP.apply(this,arguments)||this;A.json=function(){};
return A};
_.I(x9,fP);x9.prototype.equals=function(A,H){return A===H};
x9.prototype.isEmpty=function(A){var H;(H=!A)||(H=_.Nv(A)&&A.length===0);return H};
_.E([FNI()],x9);var Na0=function(A){A=sqN(A);OM.call(this,A)};
_.I(Na0,OM);Na0.prototype.addProvider=function(A){A=A.key?A:sqN([A])[0];var H=this.keyIdToIndex.get(A.key.id);if(H){if(CvI(A,this.providers[H]))throw Error("mg`"+A.key.displayName);}else OM.prototype.addProvider.call(this,A)};
var Mjj=new Na0([]);var niN=!1;var V6I={};niN||(Qev(),niN=!0);
V6I.InjectBehavior={initializeInjection:function(){var A=this.provide;try{if((A=A!=null?A:[])&&A.length>0)for(var H=sqN(A),k=_.r(H),d=k.next();!d.done;d=k.next())Mjj.addProvider(d.value);var W=new Set;KPC(this.behaviors||[],W);H={};for(var z=_.r(W),u=z.next();!u.done;u=z.next()){var B=u.value;B.inject&&Object.assign(H,B.inject)}this.inject&&Object.assign(H,this.inject);for(var h=_.r(Object.keys(H)),O=h.next();!O.done;O=h.next()){var T=O.value,m=H[T];try{this[T]=Mjj.resolve(m)}catch(J){throw J;}}}catch(J){throw Error(J.message);
}}};var U8V;var t6b=/\bclass\b/.test(function(){}.toString()),nxv=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var ZJQ=function(A){this.wasDefined=!0;Array.isArray(A)||A instanceof Array?(this.JSC$13830_getImpl=A[0],this.JSC$13830_setImpl=A[1]):this.JSC$13830_getImpl=A};
_.q=ZJQ.prototype;_.q.getWithPath=function(A){return w_m(this.JSC$13830_getImpl(),A)};
_.q.setWithPath=function(A,H){var k=this;if(A.length)throw Error("ng");if(!this.JSC$13830_setImpl)throw Error("og");LA(function(){k.JSC$13830_setImpl(H)})};
_.q.notifyPath=function(){throw Error("pg");};
_.q.notifySplices=function(){throw Error("qg");};
_.q.getChangeRecordSignal=function(A,H){var k=this;if(A.length)throw Error("rg");return function(){var d=k.getWithPath(A);return{path:H!=null?H:"",base:d,value:d}}};
_.q.getSplicesSignal=function(){throw Error("sg");};
_.q.getPathMutationSignal=function(){throw Error("tg");};
_.q.pop=function(){throw Error("ug");};
_.q.push=function(){throw Error("vg");};
_.q.splice=function(){throw Error("wg");};
_.q.unshift=function(){throw Error("xg");};var e$=function(A){var H=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(A)||A instanceof Array?(this.JSC$13835_getImpl=A[0],this.JSC$13835_setImpl=A[1]):this.JSC$13835_getImpl=A;this.wasDefined=!1;_.Oi(function(){H.wasDefined=H.JSC$13835_getImpl()!==void 0})};
e$.prototype.getWithPath=function(A){return w_m(this.JSC$13835_getImpl(),A)};
e$.prototype.setWithPath=function(A,H){var k=this;if(A[A.length-1]!=="*"&&A[A.length-1]!=="splices"){var d=_.Oi(function(){return k.getWithPath([])});
if(A.length===0){if(!this.JSC$13835_setImpl)throw Error("yg");if(d===H)return;this.wasDefined||(this.wasDefined=H!==void 0);LA(function(){k.JSC$13835_setImpl(H)})}else{for(var W=0;W<A.length-1;W++){if(!d)return;
d=d[A[W]]}W=A[A.length-1];d&&(d[W]=H);this.wasDefined||(this.wasDefined=A.length>1||H!==void 0)}fgj(this,A,{pathComponents:A,value:H})}};
e$.prototype.notifyPath=function(A,H){A.length===0?H&&this.setWithPath(A,H.value):fgj(this,A,{pathComponents:A,value:H==null?void 0:H.value,fallbackWhenUndefined:H==null?void 0:H.value})};
var fgj=function(A,H,k,d){if(A.setMutationSignal){var W=++A.mutationIndex,z=[A.observedPath],u=A.observedPath,B;H.length===0&&(B=u);for(var h=0;h<H.length;h++){var O=u.subPaths[H[h]];if(!O)break;z.push(O);u=O;h===H.length-1&&(B=O)}for(H=!1;z.length;)u=z.shift(),u.data={index:W,mutation:k,spliceMutationIndex:d},H||(H=u===B),H&&z.push.apply(z,_.fV(Object.values(u.subPaths)));LA(function(){A.setMutationSignal(W)})}};
e$.prototype.notifySplices=function(A,H){var k=this,d=_.Oi(function(){return k.getWithPath(A)}),W=[].concat(_.fV(A),["splices"]);
fgj(this,W,{pathComponents:W,value:{indexSplices:H}});if(d==null?0:d.length)H=this.mutationIndex,W=[].concat(_.fV(A),["length"]),fgj(this,W,{pathComponents:W,value:d.length},H)};
var wgw=function(A,H,k,d,W,z){A.notifySplices(k,[{index:d,addedCount:W,removed:z,object:H,type:"splice"}])},oiJ=function(A,H){A=A.observedPath;
for(var k=0;k<H.length;k++){var d=H[k],W=A.subPaths[d];W||(W={pathComponents:H.slice(0,k+1),subPaths:{}},A.subPaths[d]=W);A=W}},AuG=function(A,H,k){oiJ(A,H);
if(!A.getMutationSignal){var d=_.r(_.RV(A.mutationIndex,void 0,"sNBMCd"));A.getMutationSignal=d.next().value;A.setMutationSignal=d.next().value}var W=A.getMutationSignal;return _.be(function(){W();return k($1p(A,H))},void 0,"zvsXEd")};
e$.prototype.getChangeRecordSignal=function(A,H){var k=this,d=this.mutationIndex,W;return AuG(this,A,function(z){if(z&&z.index>d){var u=z.mutation;d=z.index;W=void 0}z=_.Oi(function(){return k.getWithPath(A)});
if(u){var B=u.pathComponents[u.pathComponents.length-1],h=[].concat(_.fV(u.pathComponents));if(B==="splices"||B==="length")return{base:z,path:(H?[H].concat(_.fV(h)):h).join("."),value:u.value};var O=A.length>h.length?A:h,T;return{base:z!=null?z:u.fallbackWhenUndefined,path:(H?[H].concat(_.fV(O)):O).join("."),value:(T=_.Oi(function(){return k.getWithPath(O)}))!=null?T:u.fallbackWhenUndefined}}W||(W={base:z,
path:(H?[H].concat(_.fV(A)):A).join("."),value:z});return W})};
e$.prototype.getSplicesSignal=function(A){var H=this.mutationIndex,k;return AuG(this,A,function(d){if(d&&d.index>H&&d.spliceMutationIndex!==H){var W=d.mutation;H=d.index;k=void 0}return W&&W.pathComponents[W.pathComponents.length-1]==="splices"?k=d=W.value:k})};
e$.prototype.getPathMutationSignal=function(A){var H=this;oiJ(this,A);if(!this.getMutationSignal){var k=_.r(_.RV(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=k.next().value;this.setMutationSignal=k.next().value}var d=this.getMutationSignal,W=this.mutationIndex,z;return _.be(function(){d();var u=$1p(H,A);if(u&&u.index>W&&u.mutation&&oxX(u.mutation.pathComponents,A)){var B=u.mutation;W=u.index}if(!z||W!==z.index){var h,O;u=(O=_.Oi(function(){return H.getWithPath(A)}))!=null?O:(h=B)==null?
void 0:h.fallbackWhenUndefined;
z={index:W,value:u}}return z},void 0,"RXYC9b")};
var $1p=function(A,H){A=A.observedPath;H=_.r(H);for(var k=H.next();!k.done;k=H.next())A=A.subPaths[k.value];return A.data};
e$.prototype.pop=function(A){var H=this,k=_.Oi(function(){return H.getWithPath(A)});
if(!(k instanceof Array))throw Error("zg");var d=k.length>0,W=k.pop();d&&wgw(this,k,A,k.length,0,[W]);return W};
e$.prototype.push=function(A){var H=_.o7.apply(1,arguments),k=this,d=_.Oi(function(){return k.getWithPath(A)});
if(!(d instanceof Array))throw Error("Ag");var W=d.length,z=d.push.apply(d,_.fV(H));H.length&&wgw(this,d,A,W,H.length,[]);return z};
e$.prototype.splice=function(A,H,k){var d=_.o7.apply(3,arguments),W=this,z=_.Oi(function(){return W.getWithPath(A)});
if(!(z instanceof Array))throw Error("Bg");H<0?H=z.length-Math.floor(-H):H&&(H=Math.floor(H));var u=z.splice.apply(z,[H,k].concat(_.fV(d)));(d.length||u.length)&&wgw(this,z,A,H,d.length,u);return u};
e$.prototype.unshift=function(A){var H=_.o7.apply(1,arguments),k=this,d=_.Oi(function(){return k.getWithPath(A)});
if(!(d instanceof Array))throw Error("Cg");var W=d.unshift.apply(d,_.fV(H));H.length&&wgw(this,d,A,0,H.length,[]);return W};var xO=function(A,H,k){this.model=A;this.unknownSignalResolver=H;this.options=k;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];H=_.r(qfr());A=H.next().value;H=H.next().value;this.owner=A;this.disposeImpl=H};
xO.prototype.dispose=function(){if(!this.isDisposed){for(var A=_.r(this.childSignalProxies),H=A.next();!H.done;H=A.next())H.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Hpk=function(A,H){A=wF(A.owner);try{H()}finally{wF(A)}};
xO.prototype.effect=function(A){Hpk(this,function(){_.SC(A,"j")})};
var skw=function(A,H){A.options!=null||(A.options={});var k;(k=A.options).immutableProps!=null||(k.immutableProps=new Set);A.options.immutableProps.add(H)},DAQ=function(A,H){H=""+H;
k6w(A,H);var k,d;if((k=A.options)==null?0:(d=k.immutableProps)==null?0:d.has(H))return!0;var W;if((W=A.model.__signalCache)==null?0:W.has(H))k=A.model.__signalCache.get(H),Array.isArray(k)&&skw(A,H);var z,u,B;return(B=(z=A.options)==null?void 0:(u=z.immutableProps)==null?void 0:u.has(H))!=null?B:!1},dfZ=function(A,H){var k;
A.unknownSignalResolver&&(k=A.unknownSignalResolver(H));var d,W;((d=A.options)==null?0:(W=d.immutableProps)==null?0:W.has(H))?k!=null||(k=new ZJQ(_.RV(A.model[H],void 0,"By5iP"))):k!=null||(k=new e$(_.RV(A.model[H],void 0,"CXghNc")));var z=A.model.hostElement;Object.defineProperty(A.model,H,{get:function(){X_r(z,H);return k.getWithPath([])},
set:function(u){zn(z,H);A.setWithPath([H],u)},
configurable:!0});return k},k6w=function(A,H){var k,d,W;
((k=A.model.__signalCache)==null||!k.has(H))&&((d=A.options)==null?0:(W=d.externalSignalProps)==null?0:W.has(H))&&A.model[H]},m$=function(A,H){H=""+H;
var k=A.signalCache[H];if(k!==void 0)return k;k=!1;k6w(A,H);var d;if((d=A.model.__signalCache)==null?0:d.has(H))if(k=A.model.__signalCache.get(H),Array.isArray(k))k=!0,skw(A,H);else return A.signalCache[H]=A.model.__signalCache.get(H).signal,A.signalCache[H];var W,z;d=(z=(W=A.options)==null?void 0:W.reactivityMode)!=null?z:0;var u,B;if(!((u=A.options)==null?0:(B=u.reactiveProps)==null?0:B.has(H))&&!k&&d===1)throw Error("Dg`"+H);W=k?WTA(A,H):dfZ(A,H);return A.signalCache[H]=W},WTA=function(A,H){var k=
Object.getOwnPropertyDescriptor(A.model.constructor.prototype,H),d=function(){return A.model[H]};
return new ZJQ(k&&k.get&&!k.set?d:[d,function(W){A.model[H]=W}])};
xO.prototype.getWithPath=function(A){var H=_.r(A);A=H.next().value;H=MZ(H);X_r(this.model.hostElement,""+A);return m$(this,A).getWithPath(H)};
xO.prototype.setWithPath=function(A,H){if(A.length){zn(this.model.hostElement,A.join("."));var k=_.r(A);A=k.next().value;k=MZ(k);m$(this,A).setWithPath(k,H)}};
xO.prototype.getPathMutationSignal=function(A){var H=_.r(A);A=H.next().value;H=MZ(H);return m$(this,A).getPathMutationSignal(H)};
xO.prototype.notifyPath=function(A,H){var k=_.r(A);A=k.next().value;k=MZ(k);m$(this,A).notifyPath(k,H)};
var zrA=function(A,H){if(H.type==="literal")return function(){return{rootWasDefined:!0,value:H.value}};
var k=RO(H.path),d=_.r(k),W=d.next().value;d=MZ(d);var z,u;if(H.type==="path"&&(k.length===1||((z=A.options)==null?0:(u=z.immutableProps)==null?0:u.has(W))))return function(){var m=A.getWithPath(k.slice(0,1));m=w_m(m,k.slice(1));return{rootWasDefined:m$(A,k[0]).wasDefined,value:m}};
var B=m$(A,W);if(H.type==="path"){var h=B.getPathMutationSignal(d);return function(){var m,J=(m=h())==null?void 0:m.value;return{rootWasDefined:B.wasDefined,value:J}}}if(H.type==="splices"){var O=B.getSplicesSignal(d);
return function(){var m=O();return{rootWasDefined:B.wasDefined,value:m}}}var T=B.getChangeRecordSignal(d,""+W);
return function(){var m=T();return{rootWasDefined:B.wasDefined,value:m}}},dAX=function(A,H,k){var d=k.map(function(B){return zrA(A,B)}),W=k.length===0,z=[],u=k.length!==1||k[0].type!=="path"?!1:!0;
A.effect(function(){for(var B=d.length,h=[],O=!!z.length,T=0;T<B;T++){var m=d[T](),J=m.rootWasDefined;m=m.value;W||(W=J);h[T]=m;u&&(h[T+B]=O?z[T]:h[T],z[T]=m)}W&&QM(A.owner,function(){return void H.apply(null,_.fV(h))})})},$8I=function(A,H,k,d,W){var z=m$(A,H);
W!==void 0&&z.setWithPath([],W);dAX(A,function(){var u=_.o7.apply(0,arguments);zn(A.model.hostElement,H,!0);z.setWithPath([],k.apply(null,_.fV(u)))},d)};
xO.prototype.arrayPush=function(A){var H=_.o7.apply(1,arguments),k=_.r(A),d=k.next().value;k=MZ(k);d=m$(this,d);return d.push.apply(d,[k].concat(_.fV(H)))};
xO.prototype.arraySplice=function(A,H,k){var d=_.o7.apply(3,arguments),W=_.r(A),z=W.next().value;W=MZ(W);z=m$(this,z);return z.splice.apply(z,[W,H,k].concat(_.fV(d)))};
xO.prototype.arrayUnshift=function(A){var H=_.o7.apply(1,arguments),k=_.r(A),d=k.next().value;k=MZ(k);d=m$(this,d);return d.unshift.apply(d,[k].concat(_.fV(H)))};
xO.prototype.notifySplices=function(A,H){var k=_.r(A);A=k.next().value;k=MZ(k);m$(this,A).notifySplices(k,H)};var q2p=!0,ruQ=!1,S0C=!1,u80=!1,BRQ=0;u80=!1;BRQ=0;q2p=!0;ruQ=S0C=!1;var iUl=/([^\s]+?)\(([\s\S]*)\)/,BTl=/\.([^.]+)$/,OUX=/\\,/g,rmm=/&comma;/g,uxb=/\\(.)/g,hnN=[],enA={"*":"wildcard",splices:"splices"};var jZW=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"),bUN=/[A-Z]/,er1=["class","hidden","id","on-dom-change"],YfA=new Set([].concat(_.fV(er1),
["if","notify-dom-change","restamp"])),PMW=new Set([].concat(_.fV(er1),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),G$W=new Set(["restamp"]);var Y2r=new Set(["className","id"]);var CMI=Symbol(),EGb=window;var frb=window;var kmW=0,$Al=0,J6=[],sGA=0,oGC=!1,HJV=document.createTextNode("");(new window.MutationObserver(A_I)).observe(HJV,{characterData:!0});var by=new Map,gu=0,xfG=function(A){this.mappedHandleId=A},WIm=function(A,H,k,d){this.mappedHandleId=A;
var W=this;this.mappedHandleId=A;this.callback=H;this.waitTime=k;this.schedulerPriority=d;this.handleId=_.IE.addJob(function(){W.callback();by.delete(W.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.I(WIm,xfG);WIm.prototype.cancel=function(){_.IE.cancelJob(this.handleId);by.delete(this.mappedHandleId)};
var zGV=function(A,H){this.mappedHandleId=A;var k=this;this.mappedHandleId=A;this.callback=H;this.handleId=d18(function(){k.callback();by.delete(k.mappedHandleId)})};
_.I(zGV,xfG);zGV.prototype.cancel=function(){var A=this.handleId-$Al;A<0||J6.length<=A||(J6[A]=null);by.delete(this.mappedHandleId)};var Bav=function(){};
Bav.prototype.cancel=function(){this.jobHandle!==void 0&&(q0f(this.jobHandle),this.jobHandle=void 0)};
Bav.prototype.run=function(A,H,k){var d=this;this.cancel();this.callback=A;this.jobHandle=_.L0(function(){A();d.callback=void 0},H,k)};
Bav.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var r_W=new WeakMap;var ipw=Fd(function(A){for(var H=A,k=0;k<3;k++)H=Object.getPrototypeOf(H);delete H.prototype.connectedCallback;var d=function(){return A.apply(this,arguments)||this};
_.I(d,A);d.prototype._attachDom=function(W){if(!W)return null;var z=(0,_.t1)(this.hostElement);z.attachShadow({mode:"open",shadyUpgradeFragment:W});z.shadowRoot.appendChild(W);return z.shadowRoot};
d.prototype._takeAttributes=function(){for(var W=this.hostElement.attributes,z=0;z<W.length;z++){var u=W[z],B=void 0,h=void 0;(h=(B=this).__attributeReaction)==null||h.call(B,u.name,null,u.value)}};
d.prototype._readyClients=function(){A.prototype._readyClients.call(this);this.root=this};
d.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);A.prototype.connectedCallback.call(this)};
_.nP.Object.defineProperties(d,{template:{configurable:!0,enumerable:!0,get:function(){return d.prototype._template}}});
return d}),hrZ=Fd(function(A){var H=function(){return A.apply(this,arguments)||this};
_.I(H,A);H.prototype.created=function(){if(this.__notifyEffects)for(var k=_.r(Object.values(this.__notifyEffects)),d=k.next();!d.done;d=k.next()){d=_.r(d.value);for(var W=d.next();!W.done;W=d.next())W.value.fn=hGC}if(this.__reflectEffects)for(k=_.r(Object.values(this.__reflectEffects)),d=k.next();!d.done;d=k.next())for(d=_.r(d.value),W=d.next();!W.done;W=d.next())W.value.fn=OJ8};
H.prototype._addEventListenerToNode=function(k,d,W){k=yu(k);Pu(k,d,W)||A.prototype._addEventListenerToNode.call(this,k,d,W)};
H.prototype._removeEventListenerFromNode=function(k,d,W){k=yu(k);Gb(k,d,W)||A.prototype._removeEventListenerFromNode.call(this,k,d,W)};
H.prototype._propertiesChanged=function(k,d,W){if(this.__dataToNotify&&this.__notifyEffects)for(var z=_.r(Object.keys(this.__dataToNotify)),u=z.next();!u.done;u=z.next()){u=u.value;var B=iJb(u);this.__notifyEffects[B]||delete this.__dataToNotify[u]}else this.__dataToNotify=null;A.prototype._propertiesChanged.call(this,k,d,W)};
H.prototype.fire=function(k,d,W){d=d===void 0?{}:d;var z;return _.Ed(yu((z=W==null?void 0:W.node)!=null?z:this),k,d,W)};
H.prototype._ensureAttribute=function(k,d){var W=yu(this);W.hasAttribute(k)||Tn(W,d,k)};
H.prototype.isLightDescendant=function(k){var d=yu(this);return yu(d)!==k&&_.Va(d).contains(k)&&_.Va(d).getRootNode()===_.Va(k).getRootNode()};
return H});
_.w1.ready=function(){var A;((A=this.hostElement)!=null?A:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var H;((H=this.hostElement)!=null?H:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.WU._subscribeIronResize=function(A){var H;((H=A.hostElement)!=null?H:A).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.WU._unsubscribeIronResize=function(A){var H;((H=A.hostElement)!=null?H:A).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var m1N=[Array,Boolean,Date,Number,Object,String],PW=function(A,H,k,d){this.polySiInfo=A;this.polySiParams=H;this.polySiContext=k;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;d||this instanceof HTMLElement&&(d=this);if(!d)throw Error("Kg");this.allowedProps=H.allowedProps;this.hostElement=d;this.is=A.is;this.upgradeDisabled=!!H.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");A=new Set(H.reactiveSchemas.filter(function(W){return W.type!==
"observe"}).map(function(W){return W.propertyKey}));
this.signalProxy=new xO(this,void 0,{reactiveProps:A,reactivityMode:H.reactivityMode});this.__dataHasAccessor={};H=_.r(H.reactiveSchemas);for(A=H.next();!A.done;A=H.next())A=A.value,A.type==="signal"&&(this.__dataHasAccessor[A.propertyKey]=!0);this.upgradeDisabled||OpQ(this)};
PW.prototype.getExtraMethodsToForward=function(){return[]};
var OpQ=function(A){A.polySiContext.didRegister||(A.registered(),A.polySiContext.didRegister=!0);A.polySiContext.finalizedTemplate||(A.polySiContext.finalizedTemplate={},A.polySiParams.templateGetter&&(A.polySiContext.finalizedTemplate.processedTemplate=w6l(A.polySiParams.templateGetter,A.polySiParams.is)));Rrk(A);var H=A.hostElement;H.loggingStatus!=null||(H.loggingStatus={});H.loggingStatus.isInitializing=!0;_.Oi(function(){return void A.created()});
H.loggingStatus.isInitializing=!1;A.isPolySiElementConnected&&TRN(A)},TRN=function(A){A.didCallReady||(_.Oi(function(){return void A.ready()}),A.didCallReady=!0);
A.isAttached=!0;A.attached()};
_.q=PW.prototype;_.q.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||TRN(this)};
_.q.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.q.attributeChangedCallback=function(A,H,k){if(this.upgradeDisabled)A==="disable-upgrade"&&k===null&&(this.upgradeDisabled=!1,OpQ(this));else if(H!==k){var d=_.o1(A),W=this.polySiContext.typesForSignals[d];if(W&&(!this.reflecting||_.b("polysi_attribute_changed_serializing_killswitch"))){switch(W){case Object:try{var z=JSON.parse(k)}catch(B){z=k}break;case Array:try{z=JSON.parse(k)}catch(B){z=null}break;case Date:z=isNaN(k)?String(k):Number(k);z=new Date(z);break;case Boolean:z=k!==null;break;case Number:z=
Number(k);break;default:z=k}this[d]=z}d=_.r(this.polySiParams.behaviors);for(W=d.next();!W.done;W=d.next())z=void 0,(z=W.value.attributeChanged)==null||z.call(this,A,H,k);var u;(u=this.attributeChanged)==null||u.call(this,A,H,k)}};
_.q.attributeChangedCallbackWrapper=function(A,H,k){this.attributeChangedCallback(A,H,k)};
_.q.setPropertiesFromInitialAttributeValues=function(){for(var A=0;A<this.hostElement.attributes.length;A++){var H=this.hostElement.attributes[A];(H.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(H.name))&&this.attributeChangedCallback(H.name,null,H.value)}};
_.q.created=function(){this.provide=this.polySiParams.provide;var A;(A=this.initializeInjection)==null||A.call(this);A=_.r(this.polySiParams.reactiveSchemas);for(var H=A.next();!H.done;H=A.next())H=H.value,H.type==="signal"&&(this.mutablePropNames.add(H.propertyKey),m$(this.signalProxy,H.propertyKey));TaI(this,this.polySiInfo,this.polySiParams.behaviors);A=_.r(this.polySiParams.reactiveSchemas);for(H=A.next();!H.done;H=A.next())H=H.value,H.type==="signal"&&H.value!==void 0&&(this.signalProxy.model[H.propertyKey]=
typeof H.value==="function"?H.value.call(this):H.value);if(this.polySiParams.signalProperties)for(A=_.r(this.polySiParams.signalProperties),H=A.next();!H.done;H=A.next()){H=H.value;var k=void 0;((k=this.__signalCache)==null?0:k.has(H))||(this.signalProxy.model[H]=void 0)}u80||mfG(this);RGN(this);A=_.r(this.polySiParams.behaviors);for(H=A.next();!H.done;H=A.next())k=void 0,(k=H.value.created)==null||k.call(this);var d;(d=this.polySiInfo.created)==null||d.call(this)};
_.q.registered=function(){var A=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var H=Object.getPrototypeOf(this);H.addReactiveSchema=function(B){A.polySiParams.reactiveSchemas.push(B)};
for(var k=_.r(this.polySiParams.behaviors),d=k.next();!d.done;d=k.next()){var W=void 0;(W=d.value.beforeRegister)==null||W.call(H)}var z;(z=this.polySiInfo.beforeRegister)==null||z.call(H);H.addReactiveSchema=gil;k=_.r(this.polySiParams.behaviors);for(d=k.next();!d.done;d=k.next())W=void 0,(W=d.value.registered)==null||W.call(H);var u;(u=this.polySiInfo.registered)==null||u.call(H)};
_.q.ready=function(){var A;(A=this.beforeReady)==null||A.call(this);u80&&mfG(this);var H;if(A=(H=this.polySiContext.finalizedTemplate)==null?void 0:H.processedTemplate){A=ZUI(A.template,A.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:A.hasInsertionPoint,thisCtx:this});H=A.nodesById;A=A.root;var k=this.hostElement;var d=d===void 0?!1:d;k=(0,_.t1)(k);if(!k.attachShadow)throw Error("Id");if(!k.shadowRoot||d)k.attachShadow({mode:"open",shadyUpgradeFragment:A}),k.shadowRoot.appendChild(A);
this.root=k.shadowRoot;this.$=H}JuJ(this);d=_.r(this.polySiParams.behaviors);for(H=d.next();!H.done;H=d.next())A=void 0,(A=H.value.ready)==null||A.call(this);var W;(W=this.polySiInfo.ready)==null||W.call(this)};
_.q.attached=function(){for(var A=_.r(this.polySiParams.behaviors),H=A.next();!H.done;H=A.next()){var k=void 0;(k=H.value.attached)==null||k.call(this)}var d;(d=this.polySiInfo.attached)==null||d.call(this)};
_.q.detached=function(){for(var A=_.r(this.polySiParams.behaviors),H=A.next();!H.done;H=A.next()){var k=void 0;(k=H.value.detached)==null||k.call(this)}var d;(d=this.polySiInfo.detached)==null||d.call(this)};
var Rrk=function(A){for(var H=_.r(A.polySiParams.behaviors),k=H.next();!k.done;k=H.next())if(k=k.value,k.listeners)for(var d in k.listeners)nGr(A,A.hostElement,d,k.listeners[d]);if(A.polySiInfo.listeners)for(var W in A.polySiInfo.listeners)nGr(A,A.hostElement,W,A.polySiInfo.listeners[W])},nGr=function(A,H,k,d,W){A=fBN(A,d,W);
Pu(H,k,A)||H.addEventListener(k,A);return A},mfG=function(A){for(var H=_.r(A.polySiParams.reactiveSchemas),k=H.next();!k.done;k=H.next())k=k.value,k.type==="compute"||k.type==="computeWithMethod"?Aml(A.signalProxy,k,A):k.type==="redux"?k$f(A.signalProxy,k,A.store):k.type==="signal"&&k.readOnly&&sZI(A.signalProxy,k)},JuJ=function(A){for(var H=_.r(A.polySiParams.reactiveSchemas),k=H.next(),d={};!k.done;d={schema$jscomp$12:void 0},k=H.next())d.schema$jscomp$12=k.value,d.schema$jscomp$12.type==="notify"?
WoX(A.signalProxy,d.schema$jscomp$12,A.hostElement):d.schema$jscomp$12.type==="observe"?znl(A.signalProxy,d.schema$jscomp$12,A):d.schema$jscomp$12.type==="reflect"&&A.signalProxy.effect(function(z){return function(){var u=A.signalProxy.getWithPath([z.schema$jscomp$12.propertyKey]);
A.reflecting=!0;TTI(A.hostElement,z.schema$jscomp$12.propertyKey,u,!0);A.reflecting=!1}}(d));
if(A.reflectedAttributes)for(H=_.r(Object.entries(A.reflectedAttributes)),d=H.next(),k={};!d.done;k={key$jscomp$940:void 0,value$jscomp$10362:void 0},d=H.next()){var W=_.r(d.value);d=W.next().value;W=W.next().value;k.key$jscomp$940=d;k.value$jscomp$10362=W;A.signalProxy.effect(function(z){return function(){A.reflecting=!0;TTI(A.hostElement,z.key$jscomp$940,(0,z.value$jscomp$10362)(),!0);A.reflecting=!1}}(k))}};
_.q=PW.prototype;_.q._setPendingProperty=function(A,H){this.set(A,H);return!1};
_.q._enableProperties=function(){};
_.q._setPendingPropertyOrPath=function(A,H){this.notifyPath(A,H);return!1};
_.q._addPropertyEffect=function(){};
_.q._stampTemplate=function(){throw Error("Lg");};
_.q.fire=function(A,H,k){H=H===void 0?{}:H;k=k===void 0?{}:k;var d,W,z={bubbles:(d=k.bubbles)!=null?d:!0,cancelable:!!k.cancelable,composed:(W=k.composed)!=null?W:!0},u;return _.Ed(bJW((u=k.node)!=null?u:this.hostElement),A,H,z)};
_.q.isLightDescendant=function(A){return this.hostElement!==A&&_.Va(this.hostElement).contains(A)&&_.Va(this.hostElement).getRootNode()===_.Va(A).getRootNode()};
_.q.get=function(A,H){var k=RO(A);return H?w_m(H,k):A==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(k)};
_.q.linkPaths=function(){};
_.q.listen=function(A,H,k){A=bJW(A);this.boundListeners!=null||(this.boundListeners=new WeakMap);var d=this.boundListeners.get(A);d||(d={},this.boundListeners.set(A,d));var W=H+k;d[W]||(d[W]=nGr(this,A,H,k))};
_.q.notifyPath=function(A,H){this.signalProxy.notifyPath(RO(A),arguments.length===2?{value:H}:void 0)};
_.q.canNotifyPath=function(A){return this.mutablePropNames.has(A)&&!DAQ(this.signalProxy,A)};
_.q.notifySplices=function(A,H){this.signalProxy.notifySplices(RO(A),H)};
_.q.pop=function(A){var H=this.signalProxy;A=RO(A);var k=_.r(A);A=k.next().value;k=MZ(k);return m$(H,A).pop(k)};
_.q.push=function(A){var H=_.o7.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[RO(A)].concat(_.fV(H)))};
_.q.set=function(A,H,k){if(k)throw Error("Mg");A==="hidden"?this.hostElement.hidden=!!H:this.signalProxy.setWithPath(RO(A),H)};
_.q.setProperties=function(A){A=_.r(Object.entries(A));for(var H=A.next();!H.done;H=A.next()){var k=_.r(H.value);H=k.next().value;k=k.next().value;this[H]=k}};
_.q.splice=function(A,H,k){var d=_.o7.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[RO(A),H,k].concat(_.fV(d)))};
_.q.unlinkPaths=function(){};
_.q.unlisten=function(A,H,k){A=bJW(A);if(this.boundListeners){var d=this.boundListeners.get(A);if(d){k=H+k;var W=d[k];W&&(Gb(A,H,W)||A.removeEventListener(H,W),delete d[k])}}};
_.q.unshift=function(A){var H=_.o7.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[RO(A)].concat(_.fV(H)))};
_.nP.Object.defineProperties(PW.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 D1l=[Array,Boolean,Date,Number,Object,String];var KIQ=!1;var iU=function(){var A=HTMLElement.apply(this,arguments)||this;A.restamp=!1;A.notifyDomChange=!1;A.JSC$13943_didCallConnected=!1;A.JSC$13943_renderDebouncer=null;A.disableTemplateUpdateSignalImpl=Gn()?void 0:_.RV(!1,void 0,"kCcqO");var H;A.getDisableTemplateUpdate=(H=A.disableTemplateUpdateSignalImpl)==null?void 0:H[0];var k;A.setDisableTemplateUpdate=(k=A.disableTemplateUpdateSignalImpl)==null?void 0:k[1];return A};
_.I(iU,HTMLElement);var gCk=function(A){A.conditionSignalImpl!=null||(A.conditionSignalImpl=new e$(_.RV(!1,void 0,"ahkyAc")));return A.conditionSignalImpl};
_.q=iU.prototype;_.q.showHideChildren=function(A){bpw(this,A,this.if)};
_.q.attributeChangedCallback=function(A,H,k){if(this.JSC$13943_didCallConnected)throw Error("Qg`"+A);A==="notify-dom-change"?this.notifyDomChange=k!==null:A==="restamp"&&(this.restamp=k!==null)};
_.q.debounceRender=function(){this.JSC$13943_renderDebouncer=_.E4(this.JSC$13943_renderDebouncer,XF,this.JSC$13943_renderImpl.bind(this));_.U4(this.JSC$13943_renderDebouncer)};
_.q.disconnectedCallback=function(){var A=(0,_.t1)(this).parentNode;(!A||A.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in A&&!A.host)&&LT0(this)};
_.q.connectedCallback=function(){var A=this;if(_.b("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13943_didCallConnected=!0,q2p?ag8():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.b("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){gCk(A).getWithPath([]);A.debounceRender()});
else{var H=(0,_.t1)(this).parentNode,k={parentNode:H==null?void 0:H.nodeName};H instanceof Element&&(k.parentClassName=H.className);_.Pq(new _.Ti("PsDomIf connected with undefined parentSignalProxy",k))}};
_.q.render=function(){_.Mr()};
_.q.JSC$13943_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var A=this.if,H=!1;if(A){this.hasInstance()||(vCG(this),H=!0);a:{var k=(0,_.t1)(this).parentNode;if(this.hasInstance()){var d=this.instance.children;if((d==null?0:d.length)&&(0,_.t1)(this).previousSibling!==d[d.length-1])for(var W=0;W<d.length;W++)(0,_.t1)(k).insertBefore(d[W],this)}else{if(!k){k=!1;break a}yuk(this,k)}k=!0}if(!k)return}else this.restamp&&LT0(this);bpw(this,!1,A);A&&!H&&vCG(this);ruQ&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.q.hasInstance=function(){return!!this.instance};
var yuk=function(A,H){var k=A.parentSignalProxy;if(Gn()){var d=_.r(_.RV(!0,void 0,"QNXUce"));var W=d.next().value;d=d.next().value;k=A.parentSignalProxy}else{var z;var u=new xO((z=jkA(A))!=null?z:{},function(h){var O=m$(A.parentSignalProxy,h).getChangeRecordSignal([]);h=_.RV(void 0,void 0,"mIYvwe");var T=new e$(h);u.effect(function(){if(A.getDisableTemplateUpdate&&!A.getDisableTemplateUpdate()){var m=O();T.notifyPath(RO(m.path),{value:m.value})}});
return T});
A.parentSignalProxy.childSignalProxies.push(u);var B=k=u}k=ZUI(A.templateInfo,A.templateInfo.nodeInfoList,k,{eventListenerHost:A.eventListenerHost,hasInsertionPoint:A.templateInfo.hasInsertionPoint,thisCtx:A.eventListenerHost,enabledSignal:Gn()?W:void 0,getModel:function(){return jkA(A)}}).root;
A.instance={root:k,children:[],hidden:!1,signalProxy:B,getTemplateUpdatesEnabled:W,setTemplateUpdatesEnabled:d};B=_.r(k.childNodes);for(W=B.next();!W.done;W=B.next())A.instance.children.push(W.value);(0,_.t1)(H).insertBefore(A.instance.root,A)},jkA=function(A){if((A=A.parentSignalProxy.model)&&!A.hostElement){var H={},k;
for(k in A)A.hasOwnProperty(k)&&(H[k]=A[k]);return H}},LT0=function(A){if(A.instance){var H=A.instance.children;
if(H.length){var k=(0,_.t1)(H[0]).parentNode;if(k){k=(0,_.t1)(k);for(var d=0;d<H.length;d++)k.removeChild(H[d])}}Gn()?A.instance.setTemplateUpdatesEnabled(!1):A.instance.signalProxy.dispose();A.instance=void 0}},bpw=function(A,H,k){H=H||!k;
A.instance&&A.instance.hidden!==H&&(A.instance.hidden=H,Cbl(H,A.instance.children))},vCG=function(A){if(Gn()){var H=A.instance;
H&&QM(A.parentSignalProxy.owner,function(){return!H.getTemplateUpdatesEnabled()})&&H.setTemplateUpdatesEnabled(!0)}else A.setDisableTemplateUpdate(!1)};
_.nP.Object.defineProperties(iU.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var A=this;return QM(this.parentSignalProxy.owner,function(){return gCk(A).getWithPath([])})},
set:function(A){A||(Gn()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));gCk(this).setWithPath([],!!A)}}});
_.nP.Object.defineProperties(iU,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",iU);var ImQ=[],hU=function(){var A=HTMLElement.apply(this,arguments)||this;A.as="item";A.indexAs="index";A.itemsIndexAs="itemsIndex";A.targetFramerate=20;A.notifyDomChange=!1;A.isDetached=!1;A.JSC$13950_renderDebouncer=null;A.instances=[];A.chunkingId=null;A.chunkCount=null;A.shouldMeasureChunk=!1;A.shouldContinueChunking=!1;A.renderStartTime=null;A.JSC$13950_didCallConnected=!1;return A};
_.I(hU,HTMLElement);var Y2G=function(A){A.itemSignalImpl!=null||(A.itemSignalImpl=new e$(_.RV(ImQ,void 0,"fBC3h")));return A.itemSignalImpl},PW1=function(A,H){Array.isArray(H)||(H=ImQ);
Y2G(A).setWithPath([],H)};
_.q=hU.prototype;_.q.showHideChildren=function(A){for(var H=_.r(this.instances),k=H.next();!k.done;k=H.next())Cbl(A,k.value.children)};
_.q.notifyPath=function(A,H){A=RO(A);A[0]==="items"&&(A.length===1?PW1(this,H):Y2G(this).setWithPath(A.slice(1),H))};
_.q.canNotifyPath=function(A){return A==="items"};
_.q.attributeChangedCallback=function(A,H,k){if(this.JSC$13950_didCallConnected)throw Error("Rg`"+A);A==="as"?this.as=k:A==="index-as"?this.indexAs=k:A==="items-index-as"?this.itemsIndexAs=k:A==="initial-count"?this.initialCount=Number(k):A==="notify-dom-change"?this.notifyDomChange=k!==null:A==="target-framerate"&&(this.targetFramerate=Number(k))};
_.q.disconnectedCallback=function(){this.isDetached=!0;for(var A=0;A<this.instances.length;A++)G6Z(this,A);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.q.connectedCallback=function(){var A=this;if(_.b("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var H=Y2G(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var W=H(),z=RO(W.path);if(z[0]===void 0||z[0]==="splices"||z[0]==="length")A.debounceRender();else{var u=z[0];if(u=A.instances[typeof u==="string"?Math.floor(Number(u)):u])z=[A.as].concat(_.fV(z.slice(1))),u.signalProxy.notifyPath(z,W)}});
this.JSC$13950_didCallConnected=!0;q2p?ag8():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var k=(0,_.t1)((0,_.t1)(this).parentNode),d=0;d<this.instances.length;d++)k.insertBefore(this.instances[d].root,this);this.chunkingId&&this.render()}}else k=(0,_.t1)(this).parentNode,d={parentNode:k==null?void 0:k.nodeName},k instanceof Element&&(d.parentClassName=k.className),_.Pq(new _.Ti("PsDomRepeat connected with undefined parentSignalProxy",d))};
_.q.debounceRender=function(){this.JSC$13950_renderDebouncer=_.E4(this.JSC$13950_renderDebouncer,XF,this.JSC$13950_renderImpl.bind(this));_.U4(this.JSC$13950_renderDebouncer)};
_.q.render=function(){this.debounceRender();_.Mr()};
_.q.JSC$13950_renderImpl=function(){var A=this;if(!this.parentSignalProxy.isDisposed){var H=this.items,k=FTN(this,H.length);X7G(this,H,k);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){A.chunkingId=null;if(A.shouldMeasureChunk){var d=performance.now()-A.renderStartTime;A.chunkCount=Math.round(Math.ceil(1E3/A.targetFramerate)/d*A.chunkCount)||1}A.shouldContinueChunking&&A.debounceRender()}));
ruQ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var FTN=function(A,H){var k=H,d=A.instances.length;if(A.initialCount){if(A.chunkCount){var W=Math.min(Math.max(H-d,0),A.chunkCount);k=Math.min(d+W,H)}else k=Math.min(H,A.initialCount),W=Math.max(k-d,0),A.chunkCount=W||1;A.shouldMeasureChunk=W===A.chunkCount;A.shouldContinueChunking=k<H;A.renderStartTime=performance.now()}return k},X7G=function(A,H,k){for(var d=0;d<k;d++){var W=A.instances[d],z=H[d];
W?(W.signalProxy.setWithPath([A.as],z),W.signalProxy.setWithPath([A.indexAs],d)):DfG(A,z,d)}for(H=A.instances.length-1;H>=d;H--)k=A,W=H,G6Z(k,W),_.r(k.instances.splice(W,1)).next().value.signalProxy.dispose()},G6Z=function(A,H){A=A.instances[H];
H=(0,_.t1)(A.root);for(var k=0;k<A.children.length;k++)H.appendChild(A.children[k])},DfG=function(A,H,k){var d={};
H=Object.assign({},S20(A),(d[A.as]=H,d[A.indexAs]=k,d[A.itemsIndexAs]=k,d));var W=new xO(H,function(u){if(u!==A.as&&u!==A.indexAs){if(u===A.itemsIndexAs)return m$(W,A.indexAs);var B=m$(A.parentSignalProxy,u).getChangeRecordSignal([]);u=_.RV(void 0,void 0,"Y7rQEe");var h=new e$(u);W.effect(function(){var O=B();h.notifyPath(RO(O.path),{value:O.value})});
return h}});
A.parentSignalProxy.childSignalProxies.push(W);d=ZUI(A.templateInfo,A.templateInfo.nodeInfoList,W,{eventListenerHost:A.eventListenerHost,getModel:function(){var u={};return Object.assign({},S20(A),(u[A.as]=W.model[A.as],u[A.indexAs]=W.model[A.indexAs],u[A.itemsIndexAs]=W.model[A.indexAs],u))},
hasInsertionPoint:A.templateInfo.hasInsertionPoint,thisCtx:A.eventListenerHost,methodInvocationRequirement:BRQ,enabledSignal:A.stampingEnabled}).root;H={root:d,children:[],signalProxy:W};d=_.r(d.childNodes);for(var z=d.next();!z.done;z=d.next())H.children.push(z.value);d=(d=A.instances[k+1])?d.children[0]:A;(0,_.t1)((0,_.t1)(A).parentNode).insertBefore(H.root,d);A.instances[k]=H},S20=function(A){if((A=A.parentSignalProxy.model)&&!A.hostElement){var H={},k;
for(k in A)A.hasOwnProperty(k)&&(H[k]=A[k]);return H}};
hU.prototype.itemForElement=function(A){var H=this,k=this.instances.find(function(d){return d.children.includes(A)});
if(k)return QM(this.parentSignalProxy.owner,function(){return k.signalProxy.getWithPath([H.as])})};
hU.prototype.indexForElement=function(A){var H=this.instances.findIndex(function(k){return k.children.includes(A)});
return H>=0?H:void 0};
_.nP.Object.defineProperties(hU.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var A=this;return QM(this.parentSignalProxy.owner,function(){return Y2G(A).getWithPath([])})},
set:function(A){PW1(this,A)}},
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}}});
_.nP.Object.defineProperties(hU,{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",hU);var CWk,KTQ;_.O7=new _.SE("STATE_STORE_TOKEN");CWk=new _.SE("SELECT_TOKEN");KTQ=new _.SE("DISPATCH_TOKEN");var U1v={getSelectFn:function(){var A;return(A=_.wj().resolve(_.fZ(CWk)))!=null?A:c_V},
getDispatchFn:function(){var A;return(A=_.wj().resolve(_.fZ(KTQ)))!=null?A:_.FI().dispatch.bind(_.FI())},
getAppStore:function(){return _.wj().resolve(_.O7)}},pgb,EiV=!1;var fgV=function(){};var MjV=void 0;var amw=function(){};
amw.prototype.hasAttribute=function(A){if(A==="dir")return!1;if(A==="disable-upgrade"){var H,k;return(k=(H=this.hostElement)==null?void 0:H.hasAttribute("disable-upgrade"))!=null?k:!1}throw Error("Sg`"+A);};
amw.prototype.attributeChangedCallbackWrapper=function(A,H,k){if(A==="disable-upgrade"&&this.__isUpgradeDisabled&&k===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var d;((d=this.hostElement)!=null?d:this).isConnected&&this.connectedCallback()}else H===k||this.__isReflecting||this.attributeChangedCallback(A,H,k)};
amw.prototype.getExtraMethodsToForward=function(){for(var A=this,H=[],k=_.r(cuJ),d=k.next(),W={};!d.done;W={tagName$jscomp$67:void 0,name$jscomp$631:void 0},d=k.next())W.name$jscomp$631=d.value,d=void 0,W.name$jscomp$631==="_setPendingProperty"?(W.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),d=function(z){return function(u,B,h){WW(z.tagName$jscomp$67,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return A._setPendingProperty(u,B,h)}}(W)):d=function(z){return function(){return A[z.name$jscomp$631].apply(A,
_.fV(_.o7.apply(0,arguments)))}}(W),H.push([W.name$jscomp$631,
d]);return H};
for(var $1b=hrZ(ipw((0,_.su)(amw))),k6C=["disabled","disable-upgrade"],p7Z=(0,_.su)(function(){}),Qk0=new Set(Object.getOwnPropertyNames(p7Z.prototype)),ruv=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.fV(Qk0))),WTX=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),cuJ=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),VTp=new Set([].concat(_.fV(WTX),_.fV(cuJ),_.fV(Qk0))),ECJ=_.r(VTp),Ufj=ECJ.next();!Ufj.done;Ufj=ECJ.next())YqW.add(Ufj.value);var q2b={created:function(){RGN(this);this.initializeInjection()}};var TRl=!1,p0=window.ShadyDOM,jkX=["appendChild","insertBefore","removeChild","replaceChild"],yuA=[Node];p0&&yuA.push(p0.Wrapper);var Dfr,S2f,amI={};var Qu,ECI=new WeakMap,p78=new Set;var MTI=new Set("context didCallReady is info params signalProxy".split(" ")),Zpl="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),fmI="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var lmA=bg({entities:ZMW}),tTw=new GK(lmA);var NR1=function(){return _.A6.apply(this,arguments)||this};
_.I(NR1,_.A6);_.nP.Object.defineProperties(NR1.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return tTw}}});
_.E([_.HW()],NR1);_.Rh=[uU.prototype,NR1.prototype];_.TB={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var A=this,H={};setTimeout(function(){var k;return _.Ed((k=A.hostElement)!=null?k:A,"yt-live-chat-add-tooltip-target",H)},0);
this.handler_=H.handler},
detached:function(){if(this.handler_){var A;this.handler_.removeElementFromSupportingTooltips((A=this.hostElement)!=null?A:this)}this.handler_=null}}};_.M0=new _.SE("ICON_MANAGER_TOKEN");var MTJ=[48,20,18,16,15,13,12],iBr=new Map,u0l=new Set,z3l=new Set,rNI=new Set,W2C=new Set,qrC=new Set,e3I=new Promise(function(A){var H=!1,k=!1,d=!1,W=[],z=function(u){if("detail"in u)if(u=u.detail,u.name==="yt-icons")BMV(u),H=!0;else if(u.name==="yt-sys-icons")BMV(u),k=!0;else{var B;((B=u.name)==null?0:B.includes("yt-sys-icons"))&&u.size!==24&&(BMV(u,!0),W.push(u.size),W.length===MTJ.length&&(d=!0))}H&&k&&d&&(window.removeEventListener("iron-iconset-added",z),A())};
window.addEventListener("iron-iconset-added",z)}),nCw=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"]]);_.ml={};_.ml.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.PK,computeHref_:function(A,H){H=H===void 0?!1:H;if(!A||A.commandExecutorCommand)return null;var k=EHX(A,H);return H||k!==null?k?_.b("enable_polymer_resin")?_.fx(k).toString():k:null:(_.Pq(new _.Ti("computeHref was null",this.is,A)),null)},
computeOptionalHref_:function(A){return this.computeHref_(A,!0)},
computeNofollow_:function(A){return A?DFI(A)?"nofollow":null:null},
computeIcon_:function(A){return A&&A.iconType?_.N0(A.iconType):""},
resolveCommand:function(A,H,k){H=H===void 0?{}:H;return _.ZS(A,this.hostElement,H,k===void 0?!1:k)}};var fmJ,JU;_.ZpN={};fmJ=null;
JU={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_=rl8(this.viewroot));_.L0(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var A=this;this.unobserve_();if(_.b("kevlar_vimio_use_shared_monitor"))wu(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 H=[];this.visibilityOptionVisible_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=H}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){h3W(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 A=_.Jj(this.parentNode,function(k){var d,W=(d=k.polymerController)!=null?d:k;return!!W.getVisibilityObserverForChild&&W.getVisibilityObserverForChild()},!0);
if(A){var H;this.localVisibilityObserver_=((H=A.polymerController)!=null?H:A).getVisibilityObserverForChild()}else fmJ||(fmJ=rl8()),this.localVisibilityObserver_=fmJ;return this.localVisibilityObserver_},visibilityCallback:function(A){A?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.b("kevlar_use_vimio_behavior")||(JU={});JU&&!_.b("kevlar_use_vimio_behavior")&&(delete JU.attached,delete JU.detached);_.ZpN.YtVisibilityObserverBehavior=[JU];var w7w={};w7w.YtVisualElementBehavior=[_.ZpN.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.b("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.b("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var A=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportShown(this,void 0,A)}},
onHidden:function(){if(_.b("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.b("kevlar_vimio_use_shared_monitor")){var A=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportHidden(this,void 0,A)}},
getVisibilityLogger:function(){return _.b("kevlar_use_vimio_behavior")?_.oO():null},
shouldSkipLogging:function(){if(_.pZ("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var A=this.getParentRenderer&&this.getParentRenderer();if(!A)return!1;var H,k=(H=A.polymerController)!=null?H:A;if(!k.data)return!1;A=this.data.trackingParams;A=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:A;var d;H=(d=k.data)==null?void 0:d.trackingParams;var W,z;H=((W=k.data)==null?0:W.loggingDirectives)?(z=k.data)==null?void 0:z.loggingDirectives.trackingParams:H;return A&&H&&A===
H}}];var gAv=new Map,W8;var Ror=function(A){this.layer=A},Ad=function(A){return A.layer!==void 0?A.layer:A.parent?Ad(A.parent):A.layer=0};var INr;_.n={};INr=0;_.n.YtRendererBehavior=[_.ml.YtComponentBehavior,w7w.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_:_.b("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var A,H;(H=(A=this.monitorScrollElement)!=null?A:this.hostElement)==null||H.removeEventListener("scroll",_.nF(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();mzf(this.hostElement);wC(_.$f(),this.hostElement);Xp.delete(this.hostElement)},
registerRenderer:function(A){var H;((H=A.polymerController)!=null?H:A).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(A),this.markDirty())},
unregisterRenderer_:function(A){this.useVimio_||(this.childCache_.delete(A),this.markDirty())},
attached:function(){var A=this,H=this.getParentRenderer();if(H){var k,d,W;(d=(k=(W=H.polymerController)!=null?W:H).registerRenderer)==null||d.call(k,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var z,u;(u=(z=this.monitorScrollElement)!=null?z:this.hostElement)==null||u.addEventListener("scroll",_.nF(this,this.onScroll))}_.IE.addJob(function(){bBI(A.hostElement)},8);
k=new Ror(this.screenLayer||void 0);(H=Xp.get(H))&&H.layerNode&&(k.parent=H.layerNode);H={};yUf(this.hostElement,(H.isRenderer=!0,H.layerNode=k,H[TcA]=this.data,H))},
getParentRenderer:function(){for(var A=this.hostElement.parentNode,H,k;A&&((H=Xp.get(A))==null||!H.isRenderer)&&!((k=A.polymerController)!=null?k:A).isRenderer_;)A=A.parentNode||A.host;return A},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.b("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Q$("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.b("debug_web_ve_data")&&this.data.trackingParams){var A="";try{A=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(k){_.I3(k)}if(A){var H=rrV(A,1);H!==void 0&&(this.hostElement.dataset.veIndex=String(H));A=rrV(A,2);
A!==void 0&&(this.hostElement.dataset.ve=String(A))}}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,_.b("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.db(this.data.loggingDirectives.trackingParams)),this.visualElement=_.$9(_.A7(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var A=this.data.targetId;_.oY(_.$f(),A,this.hostElement)}else wC(_.$f(),this.hostElement)},
onScroll:function(){var A=Date.now();A-this.lastHandledScroll_<50||(this.lastHandledScroll_=A,this.markDirty())},
markDirty:function(){_.b("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():YrI(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var A=this.getParentRenderer();if(A&&(A=Xp.get(A))&&A.layerNode)return Ad(A.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.fV(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var A=0;A<this.data.impressionEndpoints.length;A++)this.sendImpression(this.data.impressionEndpoints[A]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(A){A.clickTrackingParams&&delete A.clickTrackingParams;var H,k;(A==null?0:(H=A.commandMetadata)==null?0:(k=H.webCommandMetadata)==null?0:k.sendPost)?_.tx(this.hostElement,[A,{impression:!0}]):_.NT(this.hostElement,[A],this.hostElement)},
logExplicitClick:function(A){var H=_.hx(this.getScreenLayer());if(H){var k,d=(k=A.polymerController)!=null?k:A;A=d.visualElement;d=d.trackingParams||d.clickTrackingParams;!A&&d&&(A=_.db(d));A&&_.P0(H,A)}}}];var oCZ={},gX=function(){return _.A6.apply(this,arguments)||this};
_.I(gX,_.A6);gX.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
gX.prototype.onPdgItemBehaviorClick=gX.prototype.onPdgItemBehaviorClick;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gX.prototype,"data",void 0);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],gX.prototype,"onPdgItemBehaviorClick",null);_.E([_.HW()],gX);oCZ.YtPdgLiveChatItemBehavior=[gX.prototype,_.n.YtRendererBehavior];var $fk;var ANp;_.bU={};_.bU.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var LM=function(){var A=fP.apply(this,arguments)||this;A.switchTemplateAtRegistration=!1;return A};
_.I(LM,fP);LM.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||Xkf(this),_.eGI(this,"doRender"),this.doRender())};
LM.prototype.debounceRender=function(){this.templatingFn&&_.vW(this,"doRender",this.doRender)};
LM.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.I3(Error("bh"))};
LM.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.E([FNI()],LM);var HBw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,v2={},K2N=(v2[1]={filterString:null,isUnwrappable:null,unwrap:null},v2[2]={filterString:function(A,H,k){return lL(k)},
isUnwrappable:function(A){return A instanceof HX},
unwrap:function(A){return dU(A)}},v2[3]={filterString:function(A,H,k){return HBw.test(k)?k:Zy.toString()},
isUnwrappable:function(A){return tG(A)},
unwrap:function(A){return _.NR(A)}},v2[4]={filterString:function(){return Zy.toString()},
isUnwrappable:function(A){return A instanceof cz},
unwrap:function(A){return _.QB(A).toString()}},v2[5]={filterString:function(A,H,k){return k},
isUnwrappable:function(A){return typeof A==="string"},
unwrap:function(A){return A.toString()}},v2[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(A){return A instanceof _.BX},
unwrap:function(A){return x7(A)}},v2[8]={filterString:function(A,H,k){k=String(k).toLowerCase();
return AWX(A,H,k)?k:"zClosurez"},
isUnwrappable:null,unwrap:null},v2[10]={filterString:null,isUnwrappable:null,unwrap:null},v2);Ev[Ui["default"]]=cNf;var pkX=[];(function(){var A=w0;w0=function(H){A==null||A(H);rb(function(){for(var k=0;k<H.length;k++)QTX(H[k])})}})();var sT0=function(){var A=_.A6.apply(this,arguments)||this;A.hasUnmounted=!1;return A};
_.I(sT0,_.A6);_.q=sT0.prototype;_.q.beforeRegister=function(){var A=this.doIdomRender;this.templatingFn?_.I3(Error("ah")):(this.templatingFn=A,this.switchTemplateAtRegistration=!0,C4C(this))};
_.q.attached=function(){};
_.q.detached=function(){QTX(this.hostElement)};
_.q.renderIdom=function(){throw Error("dh");};
_.q.doIdomRender=function(){var A=this;oHV(this.hostElement,function(){A.renderIdom()})};
_.E([_.HW()],sT0);var kRG=[LM.prototype,sT0.prototype];var dzk,W2w=function(){return dzk!==void 0?dzk:dzk=document.createElement("template")};
document.head.appendChild(W2w().content);var z3N;var qrw,rNJ=function(){return qrw!==void 0?qrw:qrw=document.createElement("template")};
document.head.appendChild(rNJ().content);var u0N;var BMj=document.head,e3w=BMj.appendChild,xzw;if(u0N===void 0){var iBG=document.createElement("template");_.Y(iBG,"\x3c!--css-build:shady--\x3e");iBG.content.insertBefore(rNJ().content.cloneNode(!0),iBG.content.firstChild);u0N=iBG}xzw=u0N;e3w.call(BMj,xzw.content);var h3i,OBw=function(){return h3i!==void 0?h3i:h3i=document.createElement("template")};
document.head.appendChild(OBw().content);var R30;var TMp=document.head,mz0=TMp.appendChild,JNJ;if(R30===void 0){var gAQ=document.createElement("template");_.Y(gAQ,"\x3c!--css-build:shady--\x3e");gAQ.content.insertBefore(OBw().content.cloneNode(!0),gAQ.content.firstChild);R30=gAQ}JNJ=R30;mz0.call(TMp,JNJ.content);var bBJ=document.head,L2w=bBJ.appendChild,vAi;if(z3N===void 0){var yNA=document.createElement("template");_.Y(yNA,"\x3c!--css-build:shady--\x3e");yNA.content.insertBefore(W2w().content.cloneNode(!0),yNA.content.firstChild);z3N=yNA}vAi=z3N;L2w.call(bBJ,vAi.content);var jTG,ING=function(){return jTG!==void 0?jTG:jTG=document.createElement("template")};
document.head.appendChild(ING().content);var Yrw;_.sF=new _.SE("DARK_THEME_TOKEN");var P4w=new _.Dt("accessibilityProperties");var GRp=new _.Dt("layoutProperties");var F2j=new _.Dt("imageType");var Xk0={};if("ytAttributedStringLinkHoverColor"in Xk0)throw Error("gh`ytAttributedStringLinkHoverColor");(function(A,H){Xk0[A]="value"in H&&"unit"in H?lNI(A,H):function(k){try{return H(k)}catch(d){throw Error("eh`"+A+"`"+d.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Dz1=function(A){var H=this;this.holdTime=A===void 0?500:A;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(k){var d=new CustomEvent("LONG_PRESS"),W;(W=k.changedTouches[0].target)==null||W.dispatchEvent(d)};
this.ontouchstart=function(k){H.longPressTimeout=_.Hp(_.IE,function(){H.onlongpress(k);H.longPressOccurred=!0},H.holdTime)};
this.ontouchmove=function(){_.IE.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!0};
this.ontouchend=function(k){if(H.longPressTimeout&&!H.longPressOccurred&&!H.moveOccurred){var d;(d=k.changedTouches[0].target)==null||d.dispatchEvent(new Event("click"))}_.IE.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!1}};var rIQ=function(A,H){Dz1.call(this,H);var k=this;this.callback=A;this.onlongpress=function(d){var W;(W=k.callback)==null||W.call(k,d)}};
_.I(rIQ,Dz1);var u6r=function(A,H){var k=Object.assign({},H);A=_.r(new Map([["ontouchstart",A.ontouchstart],["ontouchend",A.ontouchend],["ontouchmove",A.ontouchmove]]));for(var d=A.next(),W={};!d.done;W={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},d=A.next()){var z=_.r(d.value);d=z.next().value;z=z.next().value;W.eventName$jscomp$103=d;W.eventHandler$jscomp$2=z;H[W.eventName$jscomp$103]=function(u){return function(B){var h;(h=k[u.eventName$jscomp$103])==null||h.call(k,B);(0,u.eventHandler$jscomp$2)(B)}}(W)}};_.J7=new _.SE("COMMAND_HANDLER_TOKEN");var NMN=new _.Dt("parallelCommand");var ZBW=new _.Dt("performOnceCommand");var nAI=new _.Dt("serialCommand");var fN8=void 0;var SrG=function(){this.data=[];this.consumer=null};
SrG.prototype.push=function(A){this.consumer?this.consumer(A):this.data.push(A)};var GV={};_.RV(GV,void 0,"sgPmTd");_.RV(null,void 0,"jypsq");_.RV(null,void 0,"mWiOof");var uNf=new SrG;var dhV=[Je1,gdN,bYw,vd0,L_Q,mxi,yek,ja1];var C4w=new _.Dt("bracketTextDecorator");var L3=new _.Dt("highlightTextDecorator");_.ju=new _.SE("APP_DIRECTION_TOKEN");var mhC={calledOnce:!1,state:"visible"},TzI={calledOnce:!1,state:"hidden"};var K2A=new _.SE("ICON_WIZ_COMPONENT_TOKEN");_.n3=_.c(function(A){var H=A.icon;var k=A.active;var d=A.className;var W=A.style;var z=A.dataSelected;var u=A.dataDisabled;var B=A.role;var h=A.animateIcon;var O=A.themeOverride;var T=A.ariaHidden;var m=A.ariaExpanded;var J=A.ariaLabel;var g=A.tabindex;var v=A.id;var y=A.size;var X=A.iconFilter;var D=A.gradientColor;var K=A.onKeydown;var N=A.title;return _.x(_.R,{cond:H,then:function(){var U=_.wj().resolve(K2A);return _.x(U,{icon:H,dataSelected:z,dataDisabled:u,animateIcon:h,themeOverride:O,ariaExpanded:m,
tabindex:g,id:v,active:k,size:y,role:B,className:d,ariaHidden:T,ariaLabel:J,style:function(){return W!=null&&W()||y==null||!y()?W==null?void 0:W():"width: "+(y==null?void 0:y())+"px;height: "+((y==null?void 0:y())+"px;")},
title:N,iconFilter:X,gradientColor:D,onKeydown:K})}})},"p");
_.n3.idomCompat={callbacks:{onKeydown:!0}};var PdV=new _.Dt("borderImageProcessor");var Xhr=window.devicePixelRatio||1;var KXV=new Map([["yt_outline_bag_black_24","bag"]]);var yC=function(A){var H=this;this.margin=.1;this.whenInViewportWithMargin=A;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){H.requestScan()});
window.addEventListener("touchend",function(){H.requestScan()});
window.addEventListener("updateui",function(){H.requestScan()});
var k=new _.Nt((0,_.WT)(this.requestScan,this),100);window.addEventListener("scroll",function(){k.fire()},!0);
window.addEventListener("resize",(0,_.WT)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){H.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.WT)(this.requestScan,this))};
yC.prototype.observe=function(A){this.observationTargets.includes(A)||this.observationTargets.push(A)};
yC.prototype.unobserve=function(A){this.observationTargets=this.observationTargets.filter(function(H){return H!==A})};
yC.prototype.requestScan=function(){var A=this;this.scanRequested||(rb(function(){aNj(A)}),this.scanRequested=!0)};
var aNj=function(A){var H=(1+A.margin)*(document.documentElement.clientHeight||window.innerHeight);A.observationTargets=A.observationTargets.filter(function(k){var d=k.getBoundingClientRect();(d=H>d.top&&!!d.height)&&A.whenInViewportWithMargin(k);return!d&&k.parentNode});
A.scanRequested=!1};
yC.prototype.disconnect=function(){this.observationTargets=[]};var cN0,QTA;cN0=_.r(_.RV(VlN(),void 0,"O3X2wd"));_.pkA=cN0.next().value;QTA=cN0.next().value;window.addEventListener("resize",function(){QTA(VlN())});var Vx0={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},EAp=void 0,UzJ=window.innerWidth,lNJ=window.innerHeight;window.addEventListener("resize",function(){EAp=void 0});var txi;if("IntersectionObserver"in window)txi=lXI();else{if(EAp===void 0){var NMA;NMA="matchMedia"in window?window.matchMedia(Vx0.landscape+","+Vx0.portrait).matches:void 0;EAp=NMA!==void 0?NMA:UzJ>=930&&lNJ>=550||UzJ>=550&&lNJ>=930}txi=EAp?{observe:function(A){rb(function(){var H;(H=A.onViewportEntered)==null||H.call(A)})},
unobserve:function(){}}:new yC(function(A){rb(function(){var H;
(H=A.onViewportEntered)==null||H.call(A)})})}var E_N=txi;var MxG=_.c(function(A){var H=!1,k=_.GP("img",function(d){_.aV(function(){H=!0;d.onload=null})});
_.CA(function(){var d,W=(d=A.data)==null?void 0:d.call(A),z,u=(z=A.getSrc)==null?void 0:z.call(A).cb,B;d=(B=A.config)==null?void 0:B.call(A);if(B=k.value)if(z=function(O,T){if(!H)return u?u(O,T):O},MlX(B,d),_.b("web_image_dont_reload_same_src")&&NzI(B,W,z))_.b("web_image_dont_reload_same_src_simulate_load")&&B.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var h;tlQ(B,W||null,z,d,(h=A.lazy)==null?void 0:h.call(A))}},"zS0jKb");
return _.x("img",{el:k})},"r");
MxG.idomCompat=!0;_.GA=_.c(function(A){var H=function(){var k,d=A.data(),W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z,WV,hA,qv,eN,mr,Cl,pl,UC,hk;var eA={contentMode:(W=A.contentMode)==null?void 0:W.call(A),loadedClass:(z=A.loadedClass)==null?void 0:z.call(A),isPreloaded:(u=A.isPreloaded)==null?void 0:u.call(A),notifyOnLoaded:(B=A.notifyOnLoaded)==null?void 0:B.call(A),notifyOnUnloaded:(h=A.notifyOnUnloaded)==null?void 0:h.call(A),preferredThumbnail:(O=A.preferredThumbnail)==null?void 0:O.call(A),preserveHeight:(T=A.preserveHeight)==
null?void 0:T.call(A),preserveWidth:(m=A.preserveWidth)==null?void 0:m.call(A),objectPosition:(J=A.objectPosition)==null?void 0:J.call(A),targetWidth:(g=A.targetWidth)==null?void 0:g.call(A),targetHeight:(v=A.targetHeight)==null?void 0:v.call(A),shouldShowPlaceholder:(y=A.shouldShowPlaceholder)==null?void 0:y.call(A),useWidth:(X=A.useWidth)==null?void 0:X.call(A),isToggled:(D=A.isToggled)==null?void 0:D.call(A),alt:(K=A.alt)==null?void 0:K.call(A),className:(N=A.className)==null?void 0:N.call(A),
onerror:A.onerror,onload:A.onload,style$:((U=A.style$)==null?void 0:U.call(A))||((p=A.style)==null?void 0:p.call(A)),color:(M=A.color)==null?void 0:M.call(A),width:(Z=A.width)==null?void 0:Z.call(A),height:(WV=A.height)==null?void 0:WV.call(A),"aria-hidden$":(UC=(hA=A["aria-hidden$"])==null?void 0:hA.call(A))!=null?UC:(qv=A.ariaHidden)==null?void 0:qv.call(A),draggable:(eN=A.draggable)==null?void 0:eN.call(A),"data-disabled$":(hk=(mr=A["data-disabled$"])==null?void 0:mr.call(A))!=null?hk:(Cl=A.dataDisabled)==
null?void 0:Cl.call(A),size:(pl=A.size)==null?void 0:pl.call(A)};return Z7N(d,eA,(k=A.hideOn404)==null?void 0:k.call(A))};
return _.x(_.Yl,null,_.x(_.y$,{when:function(){var k;return((k=H())==null?void 0:k.type)==="image"}},function(){return _.x(MxG,{data:function(){return H().image},
getSrc:{cb:function(k,d){var W=H().image.sources,z=H().config.isPreloaded,u=H().config.useWidth,B=H().config.targetWidth,h=H().config.targetHeight,O=H().config.preferredThumbnail;return _.DhI(d,W,z,u,B,h,O)||""}},
config:function(){var k=H().config,d;for(d in k)k[d]===void 0&&delete k[d];return k},
lazy:A.renderLazy})}),_.x(_.y$,{when:function(){var k;
return((k=H())==null?void 0:k.type)==="icon"}},function(){return _.x(_.n3,{icon:function(){return H().iconName},
role:function(){return H().config.role},
className:function(){return H().config.className},
style:function(){return H().config.style$+";width: "+(H().config.width+"px;height: ")+(H().config.height+"px;color: ")+(H().config.color+";")},
ariaLabel:function(){return H().config["aria-label$"]},
ariaHidden:function(){return H().config["aria-hidden$"]},
dataDisabled:function(){return H().config["data-disabled$"]},
active:function(){return H().config.isToggled},
size:function(){return H().config.size}})}))},"s");
_.GA.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var nAJ=_.c(function(A){var H=function(W){var z,u,B=_.P8(function(g){z=W();u=ce(function(){for(var v=_.r(m()),y=v.next();!y.done;y=v.next()){y=$hX(y.value);y=typeof y==="string"?document.createTextNode(y):y;if(!(y instanceof Node)){v=new _.Ti("Part is not a node",y,typeof y);_.I3(v);break}g.appendChild(y)}})}),h=_.DS(A.config),O=function(){var g,v=W();
return!((g=h())==null||!g.ariaLabel)||!(v.commandRuns&&v.commandRuns.length!==0||v.paragraphStyleRuns&&v.paragraphStyleRuns.length!==0)},T=whN(h,{isEqual:HDX}),m=function(){var g=W(),v=T(),y=[],X=g.content.length,D,K=(D=_.wj().resolve(_.fZ(_.sF)))==null?void 0:D();
if(g.paragraphStyleRuns)for(var N=_.r(g.paragraphStyleRuns),U=N.next();!U.done;U=N.next()){var p=y.push,M=p.apply;var Z=void 0,WV=U.value;if((Z=WV.listGroup)!=null&&Z.listItems){var hA=[];b:switch(WV.listGroup.listType){case "LIST_TYPE_BULLET":var qv="ul";break b;default:qv="span"}hA.push(gb({run:WV,textLength:X,tag:qv,config:{className:"yt-core-attributed-string__list-group"},startIndex:WV.startIndex,length:WV.length}));for(var eN=_.r(WV.listGroup.listItems),mr=eN.next();!mr.done;mr=eN.next()){var Cl=
mr.value;b:switch(WV.listGroup.listType){case "LIST_TYPE_BULLET":var pl="li";break b;default:pl="span"}hA.push(gb({run:WV,textLength:X,tag:pl,startIndex:Cl.startIndex,length:Cl.length}))}var UC=hA}else UC=[];M.call(p,y,_.fV(UC))}if(g.styleRuns&&(v==null||!v.noStyleRuns))for(var hk=_.r(g.styleRuns),eA=hk.next();!eA.done;eA=hk.next()){var lI=eA.value,Rp=lI,vj=K,T0=v,Y1=xhf({extension:_.L(Rp.styleRunExtensions,xMA),isDarkTheme:vj===void 0?!1:vj,runColor:Rp.fontColor}),ze=void 0,Tf=Rp,QW=[];Y1&&QW.push("yt-core-attributed-string--link-inherit-color");
Tf.italic&&QW.push("yt-core-attributed-string--italicized");Tf.underline&&Tf.strikethrough?QW.push("yt-core-attributed-string--underline-strikethrough",hBr(Tf.underline)):Tf.underline?QW.push("yt-core-attributed-string--underlined",hBr(Tf.underline)):Tf.strikethrough&&QW.push("yt-core-attributed-string--strikethrough",hBr(Tf.strikethrough));if(Tf.baselineOffset){a:switch(Tf.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":ze="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":ze=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:ze="yt-core-attributed-string--baseline-offset-unknown"}QW.push(ze)}var mG=QW.join(" ");var nN=Rp,G0=Y1,$Z={};if(nN.weight||nN.weightLabel)$Z.fontWeight=i7b(nN,T0==null?void 0:T0.isHeadline).toString();G0&&($Z.color=G0);y.push(gb({run:lI,textLength:X,tag:"span",config:{className:mG,style:$Z},startIndex:lI.startIndex,length:lI.length}))}if(g.decorationRuns)for(var F9=_.r(g.decorationRuns),ww=F9.next();!ww.done;ww=F9.next()){var x1=
ww.value,lJ={};if(x1.textDecorator){var Ni=x1.textDecorator,uJ=K===void 0?!1:K,OB=[],Ow=_.L(Ni,L3),NQ=_.L(Ni,C4w);if(Ow){var Qi=OB,jI=Qi.concat,WX=[],Vi=xhf({extension:_.L(Ow.highlightTextDecoratorExtensions,eKw),isDarkTheme:uJ,runColor:Ow.backgroundColor});Vi&&WX.push("background-color: "+Vi+";");Ow.backgroundCornerRadius!==void 0&&WX.push("border-radius: "+Ow.backgroundCornerRadius+"px;");Ow.leftPadding!==void 0&&WX.push("padding-left: "+Ow.leftPadding+"px;");Ow.rightPadding!==void 0&&WX.push("padding-right: "+
Ow.rightPadding+"px;");Ow.topPadding!==void 0&&WX.push("padding-top: "+Ow.topPadding+"px;");Ow.bottomPadding!==void 0&&WX.push("padding-bottom: "+Ow.bottomPadding+"px;");OB=jI.call(Qi,WX)}else if(NQ){var iQ=OB,o_=iQ.concat,rO=uJ?"#2ba640":"#107516",O9=NQ.color?eBl(NQ.color):rO;OB=o_.call(iQ,["padding: 2px;","border-top: solid "+O9+" 2px;","border-bottom: solid "+O9+" 2px;","background: linear-gradient(135deg, "+O9+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+O9+" 3px, rgba(0, 0, 0, 0) 3px);"])}var a4=
OB.join(" ");lJ.style$=a4;var kl=x1.textDecorator,E9=[],gU=_.L(kl,C4w);_.L(kl,L3)?E9.push("yt-core-attributed-string--highlight-text-decorator"):gU&&E9.push("yt-core-attributed-string--bracket-text-decorator");var gY=E9.join(" ");lJ.className=gY;lJ.dir="auto"}var Y8=_.L(x1.textDecorator,L3),cV=_.L(x1.textDecorator,C4w),ZQ=_.L(x1.textDecorator,L3),yi=_.L(x1.textDecorator,C4w);y.push(gb({run:x1,textLength:X,tag:"span",config:lJ,startIndex:(Y8==null?void 0:Y8.startIndex)||(cV==null?void 0:cV.startIndex)||
0,length:(ZQ==null?void 0:ZQ.length)||(yi==null?void 0:yi.length)||0}))}if(g.commandRuns&&(v==null||!v.noEndpoints))for(var LL=_.r(g.commandRuns),Yp=LL.next();!Yp.done;Yp=LL.next()){var PR=Yp.value,Ip=BzA(PR,v);y.push(gb({run:PR,textLength:X,tag:"a",config:Ip,startIndex:PR.startIndex,length:PR.length}))}if(g.attachmentRuns)for(var jA=_.r(g.attachmentRuns),V_=jA.next();!V_.done;V_=jA.next()){var Wz=V_.value,Jk=void 0,St=void 0,Rs={className:"yt-core-attributed-string--inline-block-mod"};if((St=Wz.element)==
null?0:St.properties){var EW=(Jk=Wz.element)==null?void 0:Jk.properties,OI=[],sa=_.L(EW,GRp);if(sa==null?0:sa.margin){var GW=sa.margin,d0=_.pZ("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",Hn=d0?GW.end||GW.right:GW.start||GW.left,qY=d0?GW.start||GW.left:GW.end||GW.right;Hn&&OI.push("margin-left: "+x5(Hn)+";");qY&&OI.push("margin-right: "+x5(qY)+";");GW.top&&OI.push("margin-top: "+x5(GW.top)+";");GW.bottom&&OI.push("margin-bottom: "+x5(GW.bottom)+";")}var fT=OI.length!==0?OI.join(" "):
void 0;Rs.style$=fT}var Jg=Rs,nm=void 0,b1={alt:"",preserveHeight:!0,preserveWidth:!0},WS=["yt-core-attributed-string__image-element"];if(Wz.alignment){a:switch(Wz.alignment){case "ALIGNMENT_BASELINE":var IO="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":IO="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:IO="yt-core-attributed-string__image-element--image-alignment-bottom"}WS.push(IO)}if((nm=
Wz.element)==null?0:nm.properties){var Y9=[],st=_.L(Wz.element.properties,GRp);(st==null?0:st.height)&&Y9.push("height: "+x5(st.height)+";");(st==null?0:st.width)&&Y9.push("width: "+x5(st.width)+";");var HZ=Y9.length!==0?Y9.join(" "):void 0;b1.style$=HZ;var zk=void 0;var g1=((zk=_.L(Wz.element.properties,P4w))==null?void 0:zk.label)||"";b1.alt=g1}b1.className=WS.join(" ");var w_=b1,s8=void 0;var Bf=void 0,Ak=void 0;var R_=((Ak=Wz.element)==null?0:Ak.type)?(Bf=_.L(Wz.element.type,F2j))==null?void 0:
Bf.image:void 0;y.push(gb({run:Wz,textLength:X,tag:"img",image:R_,imageConfig:w_,imageWrapperConfig:Jg,startIndex:Wz.startIndex,length:(s8=Wz.length)!=null?s8:0}))}if(v==null?0:v.headerRuns)for(var XG=_.r(v.headerRuns),Z3=XG.next();!Z3.done;Z3=XG.next()){var Y7=Z3.value;if(Y7.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(Y7.headerMapping)){a:{switch(Y7.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var EG=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":EG="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":EG="yt-core-attributed-string--heading-3";break a}EG=void 0}y.push(gb({run:Y7,textLength:X,tag:"span",config:EG?{className:EG}:void 0,startIndex:Y7.startIndex,length:Y7.length}))}}var l5=T();if(l5==null?0:l5.userInput)for(var EH=_.r(y),bs=EH.next();!bs.done;bs=EH.next()){var LE=bs.value;if(LE.tag!=="a"&&
LE.tag!=="li"){var Q3Q=void 0;(Q3Q=LE).config||(Q3Q.config={});LE.config.dir=LE.tag==="ul"?_.wj().resolve(_.ju):"auto"}}if(W().content){var VMI=W().content;v_Q(y);for(var tt={data:null,start:0,end:VMI.length,parts:[]},EJm=_.r(y),Nq=EJm.next();!Nq.done;Nq=EJm.next()){var Mq=Nq.value;b7v(tt,Mq.startIndex,Mq.endIndex,Mq)}LXI(VMI,tt);var UVb=tt.parts}else UVb=[];return UVb},J=!0;
_.CA(function(){W();T();if(J&&(J=!1,o_X(W(),z)))return;var g=m();Promise.resolve().then(function(){var v=B.value;if(v){v.innerText="";var y;(y=u)==null||y();u=_.DR(v,function(){return _.x(AQA,{parts:g})},"t")}})},"Dfzccf");
return _.x("span",{el:B,class:function(){var g;if(g=W()){g=W();var v=h(),y=[];y.push("yt-core-attributed-string");(v==null?0:v.className)&&y.push(v==null?void 0:v.className);(v==null?0:v.ellipsisTruncate)?y.push("yt-core-attributed-string--ellipsis-truncate"):(v==null?0:v.noWrap)?y.push("yt-core-attributed-string--white-space-no-wrap"):(v==null?0:v.noPreWrap)||y.push("yt-core-attributed-string--white-space-pre-wrap");(v==null?0:v.linkInheritColor)&&y.push("yt-core-attributed-string--link-inherit-color");
g.alignment&&y.push(O7Q(g.alignment));g.lineBreakMode&&y.push("yt-core-attributed-string--word-wrapping");g=y.join(" ")}return g},
dir:function(){var g;return((g=h())==null?0:g.userInput)?"auto":void 0},
"aria-label":function(){var g;return O()?(g=h())==null?void 0:g.ariaLabel:void 0},
role:function(){return O()?"text":void 0}})},k=whN(function(){var W,z=(W=A.text)==null?void 0:W.call(A);
if(z)return W=_.jw(z)?z:_.B8(z),(W==null?0:W.content)?W:void 0},{isEqual:o_X}),d;
return((d=A.config)==null?0:d.contentAsserted)?H(k):_.x(_.R,{cond:k,then:H})},"v");
nAJ.idomCompat=!0;_.j$=_.c(function(A){var H=_.DS(A.text),k=sAQ(A);A.contentAsserted!==void 0&&(k.contentAsserted=!0);return _.x(nAJ,{text:H,config:k})},"w");
_.j$.idomCompat=!0;var kpv=function(A,H,k){H=H===void 0?"unknown":H;k=k===void 0?{}:k;_.Ti.call(this,A+" ("+H+")",Object.assign({},{name:"YtWcwError",tagName:H},k));Object.setPrototypeOf(this,this.constructor.prototype)};
_.I(kpv,_.Ti);_.Df=new WeakMap;_.Xc=!1;var rQN,unN,q1N;_.Ih=Symbol("ih");_.Fc=Symbol("jh");rQN=Symbol("kh");unN=new Set(Object.getOwnPropertyNames(Element.prototype));q1N=Symbol("lh");var ZBi=_.c(function(A){return _.x("yt-attributed-string",{"aria-label":A.ariaLabel,hidden:A.hidden,id:A.id,class:A.className,"force-default-style":A.forceDefaultStyle},_.x(_.j$,{text:A.data,ariaLabel:A.ariaLabel,ellipsisTruncate:A.ellipsisTruncate,isOverlay:A.isOverlay,linkInheritColor:A.linkInheritColor,noPreWrap:A.noPreWrap,noWrap:A.noWrap,userInput:A.userInput,noEndpoints:A.noEndpoints,headerRuns:A.headerRuns,isHeadline:A.isHeadline}))},"x");
_.b("web_wiz_attributed_string")&&_.Sw(ZBi,"yt-attributed-string",{props:{ariaHidden:_.Ih,ariaLabel:_.Ih,className:_.Ih,ellipsisTruncate:_.Ih,isOverlay:_.Ih,linkInheritColor:_.Ih,noEndpoints:_.Ih,noStyleRuns:_.Ih,noLinkColor:_.Ih,noPreWrap:_.Ih,noWrap:_.Ih,skipOnClick:_.Ih,userInput:_.Ih,headerRuns:_.Ih,isHeadline:_.Ih,id:_.Ih,data:_.Ih,hidden:_.Ih,forceDefaultStyle:_.Ih,text:_.Fc,disableUpgrade:_.Fc,disable:_.Fc,slot:_.Fc}});var YO=function(){return _.a.apply(this,arguments)||this};
_.I(YO,_.a);YO.prototype.renderIdom=function(){if(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};var A=this.data,H=this.config;A&&(A=_.jw(A)?A:_.B8(A),A!=null&&A.content&&(H=H||{},H.contentAsserted=!0,QuW(nAJ)({text:A,config:H})))}};
_.E([_.P(kRG),_.l("design:type",Object)],YO.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],YO.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],YO.prototype,"ariaLabel",void 0);_.E([_.C(),_.l("design:type",Boolean)],YO.prototype,"disable",void 0);_.E([_.C(),_.l("design:type",Boolean)],YO.prototype,"ellipsisTruncate",void 0);_.E([_.C(),_.l("design:type",Boolean)],YO.prototype,"isOverlay",void 0);
_.E([_.C(),_.l("design:type",Boolean)],YO.prototype,"linkInheritColor",void 0);_.E([_.C(),_.l("design:type",Boolean)],YO.prototype,"noPreWrap",void 0);_.E([_.C(),_.l("design:type",Boolean)],YO.prototype,"noWrap",void 0);_.E([_.C(),_.l("design:type",Boolean)],YO.prototype,"userInput",void 0);_.E([_.C(),_.l("design:type",Boolean)],YO.prototype,"noEndpoints",void 0);_.E([_.C(),_.l("design:type",Array)],YO.prototype,"headerRuns",void 0);
_.E([_.h6({is:"yt-attributed-string",disableElementRegistration:!0})],YO);
_.b("web_wiz_attributed_string")||_.Q(YO,"yt-attributed-string",function(){if(Yrw===void 0){var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
A.content.insertBefore(ING().content.cloneNode(!0),A.content.firstChild);Yrw=A}A=Yrw;return A},{mode:2});var fNZ,wkN,RTX;fNZ=function(){this.firstThumbnailLoaded=!1};
_.oAN=function(){wkN||(wkN=new fNZ);return wkN};
RTX=function(A){var H=_.oAN();H.firstThumbnailLoaded||(H.firstThumbnailLoaded=!0,_.OH("ftl",A))};
fNZ.prototype.reset=function(){this.firstThumbnailLoaded=!1};var eTX=0,ODI=new WeakMap,iDr=0,ay=new Set;var $zZ,AIw=function(){return $zZ!==void 0?$zZ:$zZ=document.createElement("template")};
document.head.appendChild(AIw().content);var H7i;var gQC,LZf,P2;_.Qw=_.k8.caches;P2=function(){};
P2.prototype.open=function(A){return _.Qw.open(sup(A))};
P2.prototype.has=function(A){return _.Qw.has(sup(A))};
P2.prototype.delete=function(A){return _.Qw.delete(sup(A))};
P2.prototype.match=function(A,H){var k=this,d,W,z,u,B,h;return _.e(function(O){switch(O.nextAddress){case 1:return O.yield(k.keys(),2);case 2:d=O.yieldResult,W=_.r(d),z=W.next();case 3:if(z.done){O.jumpTo(5);break}u=z.value;return O.yield(k.open(u),6);case 6:return B=O.yieldResult,O.yield(B.match(A,H),7);case 7:if(h=O.yieldResult)return O.return(h);z=W.next();O.jumpTo(3);break;case 5:return O.return()}})};
var vQb=function(){};
_.I(vQb,P2);var sup=function(A){if(A.includes(":"))throw Error("oh`"+A);return A+":"+_.Oa("CacheStorage get")};
vQb.prototype.keys=function(){var A,H,k,d,W,z,u,B,h;return _.e(function(O){if(O.nextAddress==1)return A=[],H=_.Oa("CacheStorage keys"),O.yield(_.Qw.keys(),2);k=O.yieldResult;d=_.r(k);for(W=d.next();!W.done;W=d.next())z=W.value,u=_.JQQ(z),B=u.originalName,h=u.datasyncId,h===H&&A.push(B);return O.return(A)})};var GB=function(){var A=_.a.apply(this,arguments)||this;A.objectURL=null;A.loadTime=Infinity;return A};
_.I(GB,_.a);_.q=GB.prototype;
_.q.renderIdom=function(){mSv(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();if(this.config){var A=this.config,H=this.shouldRenderLazy;QuW(_.GA)({contentMode:A.contentMode,loadedClass:A.loadedClass,isPreloaded:A.isPreloaded,notifyOnLoaded:A.notifyOnLoaded,notifyOnUnloaded:A.notifyOnUnloaded,preferredThumbnail:A.preferredThumbnail,preserveHeight:A.preserveHeight,preserveWidth:A.preserveWidth,objectPosition:A.objectPosition,targetWidth:A.targetWidth,
targetHeight:A.targetHeight,shouldShowPlaceholder:A.shouldShowPlaceholder,useWidth:A.useWidth,isToggled:A.isToggled,alt:A.alt,className:A.className,onerror:A.onerror,onload:A.onload,style$:A.style$,color:A.color,width:A.width,height:A.height,"aria-hidden$":A["aria-hidden$"],draggable:A.draggable,"data-disabled$":A["data-disabled$"],data:this.data,callback:void 0,renderLazy:H===void 0?!0:H,hideOn404:!1})}}};
_.q.objectFitToContentMode=function(A){switch(A){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.q.logThumbnailFailureVe=function(){var A=_.t8(197497);_.n4(_.A7(),A);var H=_.hx();H&&A&&H&&_.IN(H,[A])};
_.q.loadImageFromCacheIfExists=function(A){var H=this,k=A.target;(k==null?0:k.src)&&jAr(k.src).then(function(d){H.objectURL=_.wO(d).toString();H.setSrc(k,H.objectURL)}).catch(function(){})};
_.q.onError=function(A){var H=this;if(_.b("web_use_cache_for_image_fallback")){var k=A.target;k&&jAr(k.src).then(function(d){H.objectURL=_.wO(d).toString();H.setSrc(k,H.objectURL)}).catch(function(){_.b("kevlar_woffle_log_thumbnail_failure_ve")&&H.logThumbnailFailureVe();
_.b("kevlar_woffle_fallback_image")&&H.setSrc(k,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.q.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.q.setConfig=function(){var A=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(H){A.loadImageFromCacheIfExists(H);A.revokeObjectURL();TVX(A.hostElement)},
onerror:function(H){A.onError(H)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.b("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.q.setSrc=function(A,H){H&&(A.src=H)};
_.E([_.P(kRG),_.l("design:type",Object)],GB.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],GB.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],GB.prototype,"alt",void 0);_.E([_.C(),_.l("design:type",Boolean)],GB.prototype,"ftlEligible",void 0);_.E([_.C(),_.l("design:type",Number)],GB.prototype,"height",void 0);_.E([_.C(),_.l("design:type",Boolean)],GB.prototype,"notifyOnLoaded",void 0);
_.E([_.C(),_.l("design:type",Boolean)],GB.prototype,"notifyOnUnloaded",void 0);_.E([_.C(),_.l("design:type",String)],GB.prototype,"objectFit",void 0);_.E([_.C(),_.l("design:type",String)],GB.prototype,"objectPosition",void 0);_.E([_.C(),_.l("design:type",String)],GB.prototype,"preferredThumbnail",void 0);_.E([_.C(),_.l("design:type",Boolean)],GB.prototype,"preserveHeight",void 0);_.E([_.C(),_.l("design:type",Boolean)],GB.prototype,"preserveWidth",void 0);
_.E([_.C({value:!0}),_.l("design:type",Boolean)],GB.prototype,"useWidth",void 0);_.E([_.C({value:function(){return!_.Q$("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.l("design:type",Boolean)],GB.prototype,"shouldRenderLazy",void 0);_.E([_.C(),_.l("design:type",Number)],GB.prototype,"width",void 0);_.E([_.h6({is:"yt-image",disableElementRegistration:!0})],GB);
_.Q(GB,"yt-image",function(){if(H7i===void 0){var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);A.content.insertBefore(AIw().content.cloneNode(!0),A.content.firstChild);
H7i=A}A=H7i;return A},{mode:2});var Fj=function(){return _.a.apply(this,arguments)||this};
_.I(Fj,_.a);Fj.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var A=_.h7(this.data.onVisibleCommand);A&&this.ytComponentBehavior.resolveCommand(A)}};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Fj.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.bU.YtVisibilityBehavior),_.l("design:type",Object)],Fj.prototype,"ytVisibilityBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Fj.prototype,"data",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Fj);
_.Q(Fj,"yt-bumper-user-edu-content-view-model",function(){if(ANp===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;$fk===void 0&&($fk=document.createElement("template"));var d=$fk;k.call(H,d.content.cloneNode(!0),A.content.firstChild);ANp=A}A=ANp;return A},{mode:0});var k7w;var dhj,WXA=function(){if(dhj!==void 0)return dhj;var A=document.createElement("template");_.Y(A,'\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="countdown style-scope yt-creator-goal-progress-flow-view-model" target-timestamp="[[endTimestamp]]"></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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;k7w===void 0&&(k7w=document.createElement("template"));var d=k7w;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return dhj=A};var zBN;_.Xj={};zBN=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"]);_.Xj.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var A=this.getContext_();return A?A.getTaskManager():_.IE},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var A=_.Ed(this.hostElement,"yt-get-context-provider",{});A.detail&&A.detail.contextProvider?this.cachedProviderNode_=A.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return zBN.has(this.hostElement.localName)},
getNetworkManager:function(){var A=this.getContext_();if(A)return A.getNetworkManager()}};var Xd8,qnk,u6G,rI1;_.Db=function(A){var H=qnk.get(A);if(H&&(H=H.pop()))return rI1++,H;u6G++;try{var k=document.createElement(A)}catch(d){throw new _.Ti("ElementPool failed to create element",A,d.message);}return k};
Xd8=function(A){var H=A.is;if(H){var k=qnk.get(H);k||(k=[],qnk.set(H,k));var d=_.pZ("ELEMENT_POOL_CONFIG")||{};k.length>=(d[H]!==void 0?d[H]:_.pZ("ELEMENT_POOL_DEFAULT_CAP",0))||k.push(A)}else _.Pq(new _.Ti("Element pool should only handle custom elements:",A.nodeName))};
qnk=new Map;u6G=0;rI1=0;var Vw=new WeakMap,FZQ=new WeakMap;var eBN;_.S$=function(A,H,k){k=k===void 0?_.iA():k;this.JSC$14217_defaultPriority=A;this.signal=H;this.scheduler=k;this.nextJobDescriptor=0;this.JSC$14217_parkedJobs=[];this.scheduledJobs=new Map};
_.CM=function(A,H){if(H){var k=_.Yf();A.signal&&!_.Pi(k,A.signal)?(k.addListener(A.signal,function(){A.processSignal()}),A.JSC$14217_parkedJobs.push({job:H,
priority:void 0})):Bzk(A,H)}};
eBN=function(A,H){if(H!==A.JSC$14217_defaultPriority){A.JSC$14217_defaultPriority=H;for(var k=_.r(A.scheduledJobs.values()),d=k.next();!d.done;d=k.next())d=d.value,A.scheduler.cancelJob(d.jobId),d.jobId=A.scheduler.addJob(d.jobWrapper,H)}};
_.S$.prototype.flushJobs=function(){eBN(this,10);this.processSignal()};
_.S$.prototype.cancel=function(){for(var A=_.r(this.scheduledJobs),H=A.next();!H.done;H=A.next()){var k=_.r(H.value);H=k.next().value;k=k.next().value;this.scheduler.cancelJob(k.jobId);this.scheduledJobs.delete(H)}this.JSC$14217_parkedJobs=[]};
_.S$.prototype.processSignal=function(){for(var A=_.r(this.JSC$14217_parkedJobs),H=A.next();!H.done;H=A.next())H=H.value,Bzk(this,H.job,H.priority);this.JSC$14217_parkedJobs=[]};
var Bzk=function(A,H,k){k=k||A.JSC$14217_defaultPriority;if(k===10)c8(H);else{var d=A.nextJobDescriptor++,W=function(){H();A.scheduledJobs.delete(d)},z=A.scheduler.addJob(W,k);
A.scheduledJobs.set(d,{jobWrapper:W,jobId:z,priority:k})}};var xh0;_.KM={};xh0={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.KM.YtRendererstamperBehavior=[_.Xj.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 A in this.stampDom){var H=this.stampDom[A];H&&H.id&&this.addReactiveSchema({type:"observe",method:{methodName:Y1N(H.id),args:[{type:"wildcard",path:A}]}})}else{(A=(this.constructor.generatedFrom||this).observers)||(A=[]);for(H in this.stampDom){var k=this.stampDom[H];k&&k.id&&A.push(Y1N(k.id)+"("+H+".*)")}this.constructor.generatedFrom.observers=A}},
addStampDomObserverFns_:function(){for(var A in this.stampDom){var H=this.stampDom[A];H.id?(this[Y1N(H.id)]=this.rendererStamperObserver_.bind(this,A,H.id),this.hasDataPath_[A]=!1):(H=new _.Ti("Bad rendererstamper config",this.is+":"+A),_.I3(H))}},
rendererStamperObserver_:function(A,H,k){if(k.path==A){if(k.value===void 0&&!this.hasDataPath_[A])return;this.hasDataPath_[A]=k.value!==void 0}this.rendererStamperApplyChangeRecord_(A,H,k)},
rendererStamperApplyChangeRecord_:function(A,H,k){var d=this.renderJobsMap_[H],W=null;A==k.path?(k=k.value,_.Nv(k)||(k=k===void 0||k===null?[]:[k]),A=this.stampDom[A],A.mapping&&(W=this.stampDomArray_.bind(this,k,H,A.mapping,A.reuseComponents,A.events,A.stamperStableList)),d&&d.cancel(),k=A.usePageScheduler?this.getTaskManager():void 0,d||A.initialRenderPriority==void 0)?A.renderPriority==void 0||d||(d=new _.S$(A.renderPriority,A.waitForSignal,k),this.renderJobsMap_[H]=d):(d=new _.S$(A.initialRenderPriority,
A.waitForSignal,k),this.renderJobsMap_[H]=d,W=function(z,u){z();eBN(u,10)}.bind(this,W,d)):W=A+".splices"==k.path?this.stampDomArraySplices_.bind(this,A,H,k.value):this.forwardRendererStamperChanges_.bind(this,A,H,k);
d?_.CM(d,W):W()},
forwardRendererStamperChanges_:function(A,H,k){var d=k.path.slice(A.length+1),W=this.getStampContainer_(H),z=d.indexOf("."),u=d.substring(0,z),B=!1,h=0,O=parseInt(u,0);if(u[0]=="#"){B=parseInt(u.substring(1),0);O=this.get(A);var T=this.get([A,u]);O[B]==T?h=B:h=O.indexOf(T);B=!0}else isNaN(O)||(h=O,B=!0);B&&(d=d.substring(u.length+1),z=d.indexOf("."));u=this.polymerDom(W).children[h];var m;if(W=(m=u==null?void 0:u.polymerController)!=null?m:u)d="data"+d.slice(z),typeof W.notifyPath!=="function"?_.Pq(new _.Ti("notifyPath missing",
this.is+": "+A+", "+H)):k.value?W.notifyPath(d,k.value):W.notifyPath(d)},
stampDomArraySplices_:function(A,H,k){if(k&&k.indexSplices){var d=this.getStampContainer_(H);if(d){for(var W=this.polymerDom(d),z=Gpf(this.stampDom[A].reuseComponents),u=k.indexSplices.length,B=0;B<u;B++){for(var h=k.indexSplices[B],O=W.children[h.index],T=h.removed.length;T>0;T--)O&&O.parentElement&&(this.polymerDom(O.parentElement).removeChild(O),z&&Xd8(O),O=W.children[h.index]);T=this.stampDom[A].mapping;for(var m=h.index+h.addedCount,J=document.createDocumentFragment(),g=z,v=h.index;v<m;v++){var y=
h.object[v],X=IjA(T,y);if(X){var D=T[X];y=y[X];X=this.getComponentName_(D,y);var K=O?Vw.has(O):!1;g&&O&&O.is==X&&K?(X=O,this.telemetry_.reuse++,O=O.nextElementSibling):g&&O&&K?(X=this.createComponent_(D,y,z),K=this.polymerDom(O).nextElementSibling,W.insertBefore(X,K),S1m(this.is,W,O,z),O=K):(g=!1,X=this.createComponent_(D,y,z),J.appendChild(X));this.deferRenderStamperBinding_(X,D,y)}else D=new _.Ti("Unimplemented type",A,H,d.tagName,Object.keys(y)[0]),_.I3(D)}W.insertBefore(J,O)}this.flushRenderStamperComponentBindings_();
this.stampDom[A].events&&_.Ed(this.hostElement,"yt-rendererstamper-finished",{container:d})}else A=new _.Ti("Container object not found",H,this.hostElement?this.hostElement.is:""),_.I3(A)}},
stampDomArray_:function(A,H,k,d,W,z){var u=this.getStampContainer_(H);if(u)if(H=this.polymerDom(u),d=Gpf(d),A){var B=0,h=0,O;if(z=z===void 0?_.Q$("STAMPER_STABLE_LIST",!1):z||!1)for(O=H.firstElementChild;O&&!Vw.has(O)&&A.length>h;){z=A[h];var T=IjA(k,z);if(T){if(this.getComponentName_(k[T],z[T])!=O.is){var m=this.createComponent_(k[T],z[T],d),J=this.polymerDom(O).nextElementSibling;J?H.insertBefore(m,J):H.appendChild(m);S1m(this.is,H,O,d);O=m}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(O,
k[T],z[T]);B++;h++;O=this.polymerDom(O).nextElementSibling}else h++}KZC(this.is,H,B,d);B=O;if(A.length>h){z=document.createDocumentFragment();for(T=A.length;h<T;h++)if(m=A[h],J=IjA(k,m))O=this.createComponent_(k[J],m[J],d),this.deferRenderStamperBinding_(O,k[J],m[J]),z.appendChild(O);B&&this.polymerDom(B).parentNode&&O&&!Vw.has(O)?H.insertBefore(z,B):H.appendChild(z)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();W&&_.Ed(this.hostElement,"yt-rendererstamper-finished",
{container:u})}else KZC(this.is,H,0,d);else A=new _.Ti("Container object not found",H,this.hostElement?this.hostElement.is:""),_.I3(A)},
polymerDom:function(A){return this.minimizePipBreakages?A:_.WB(A)},
getStampContainer_:function(A){return this.$&&this.$[A]||_.Va(this.hostElement).querySelector("#"+A)},
getComponentName_:function(A,H){return typeof A==="string"?A:A.matcher?A.matcher.call(this,H):A.component},
createComponent_:function(A,H,k){A=this.getComponentName_(A,H);try{var d=p78.has(A);if(k&&!d){var W=_.Db(A);try{_.NH(W)}catch(z){k="Failed to clear styles for "+A+".",z.message&&(k+=" Original error: "+z.message),_.Pq(new _.Ti(k))}}else W=document.createElement(A)}catch(z){return W="YtRendererStamperBehavior failed to create "+A+".",z.message&&(W+=" Original description: "+z.message),z.message="YtRendererStamperBehavior failed to create element",_.Gg(z,W),xh0.hasOwnProperty(A)?_.Pq(z):_.I3(z),document.createElement("SPAN")}this.telemetry_.create++;
return W},
deferRenderStamperBinding_:function(A,H,k){this.deferredBindingTasks_.push({component:A,typeOrConfig:H,data:k})},
flushRenderStamperComponentBindings_:function(){for(var A=0,H=this.deferredBindingTasks_.length;A<H;A++){var k=this.deferredBindingTasks_[A];if(!k)break;COW(this,k.component,k.typeOrConfig,k.data)}this.deferredBindingTasks_.length=0}}];_.Sw(_.c(function(A){function H(){k().seconds&&z(Ik8({seconds:Number(k().seconds)-Date.now()/1E3}))}
var k=A.targetTimestamp;A=A.className;var d=_.r(_.RV("",void 0,"U1Q8Ae")),W=d.next().value,z=d.next().value;_.Sp(function(){H();var u=setInterval(function(){H()},1E3);
_.aV(function(){clearInterval(u)})});
return _.x("yt-countdown",{class:_.ER("ytCountDownHost",A)},_.x("div",null,W))},"z"),"yt-countdown",{props:{targetTimestamp:_.Ih,
className:_.Fc}});_.ah=new _.SE("KEY_MANAGER_TOKEN");var ljX={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"};_.c2=_.c(function(A){var H=_.GP("a",A.ref),k=A.aTagConfig?A.aTagConfig:_.be(function(){var d,W,z,u,B;var h=(B=_.h7((z=A.command)==null?void 0:z.call(A)))!=null?B:(u=A.command)==null?void 0:u.call(A);return _.Ry({innertubeCommand:h,skipOnClick:(d=A.skipOnClick)==null?void 0:d.call(A),defaultTarget:(W=A.target)==null?void 0:W.call(A)})||{}},void 0,"TAvz0");
_.CA(function(){_.b("mweb_get_endpoint_from_atag_command")||(H.value._data=k()._data,H.value.params=k().params)},"dcjvAe");
return _.x("a",{el:H,href:function(){return k().href$},
rel:function(){return k().rel$},
class:function(){var d,W;return(W=k().className)!=null?W:(d=A.className)==null?void 0:d.call(A)},
style:function(){var d;if((d=A.style)==null?0:d.call(A))return A.style();var W;return((W=A.disabled)==null?0:W.call(A))?"pointer-events:none":""},
"aria-haspopup":function(){return!!k()["aria-haspopup$"]},
"force-new-state":t7(function(){return k()["force-new-state$"]}),
title:t7(function(){var d,W;return(W=k().title$)!=null?W:(d=A.title)==null?void 0:d.call(A)}),
role:t7(function(){var d;return((d=A.role)==null?void 0:d.call(A))||k().role$}),
target:t7(function(){return k().target$}),
dir:t7(function(){var d;return((d=A.dir)==null?void 0:d.call(A))||k().dir}),
tabindex:function(){var d;return k().tabindex$?Number(k().tabindex$):(d=A.tabIndex)==null?void 0:d.call(A)},
"aria-hidden":function(){var d,W;return(W=k()["aria-hidden$"])!=null?W:(d=A.ariaHidden)==null?void 0:d.call(A)},
"aria-label":function(){var d,W;return(W=k()["aria-label$"])!=null?W:(d=A.ariaLabel)==null?void 0:d.call(A)},
"aria-current":A.ariaCurrent,"aria-disabled":A.disabled,"aria-labelledby":A.ariaLabelledby,"aria-describedby":A.ariaDescribedby,"aria-selected":A.ariaSelected,"tab-identifier":A.tabIdentifier,"on:pointerdown":_.lc(function(d){var W,z;return void((z=(W=k()).onpointerdown)==null?void 0:z.call(W,d))}),
"on:click":_.lc(function(d){var W,z;(z=(W=k()).onclick)==null||z.call(W,d);var u;(u=A.onClick)==null||u.call(A,d)}),
"on:focusin":_.lc(function(d){var W;(W=A.onFocusin)==null||W.call(A,d)}),
"on:focusout":_.lc(function(d){var W;(W=A.onFocusout)==null||W.call(A,d)})},A.children)},"B");var wdQ={duration:1E3,easing:"ease",fill:"forwards"};fjX.componentType=yM;var AJA={duration:1E3,easing:"ease",fill:"forwards"},O71=_.c(function(A){var H=_.GP("animated-rolling-character"),k=void 0,d=function(){var B,h;return GC((B=A.character)==null?void 0:B.call(A))||GC((h=A.previousCharacter)==null?void 0:h.call(A))},W=_.r(_.RV(0,void 0,"CYT8Ob")),z=W.next().value,u=W.next().value;
_.Sp(function(){if(window.ResizeObserver&&_.b("web_fix_rolling_numbers_zoom_safari")){var B=new _.Nt(function(){var O,T,m=Math.round(((T=(O=H.value.querySelector("div"))==null?void 0:O.getBoundingClientRect().height)!=null?T:0)*100)/100;m&&u(m)},500),h=new ResizeObserver(function(){B.fire()});
h.observe(H.value);_.aV(function(){h.disconnect();B.dispose()})}});
_.CA(function(){var B=_.b("web_fix_rolling_numbers_zoom_safari")?z:A.marginMultiplier;if(B()){var h;(h=k)==null||h.cancel();if(d()){var O;h=((O=A.previousCharacter)==null?0:O.call(A))?Number(A.previousCharacter())+10:A.rollUp()?0:30;var T;if((T=A.shouldAnimate)==null||!T.call(A)){var m,J;h-=$Sb((m=A.character)==null?void 0:m.call(A),(J=A.previousCharacter)==null?void 0:J.call(A),A.rollUp(),h)}}else{h=A.rollUp()?0:2;var g;(g=A.shouldAnimate)!=null&&g.call(A)||(O=h,T=A.rollUp()?-1:1,h=O-T)}H.value.style.marginTop=
"-"+h*B()+"px";var v;if((v=A.shouldAnimate)==null?0:v.call(A)){var y,X;k=HRI(H.value,(y=A.character)==null?void 0:y.call(A),(X=A.previousCharacter)==null?void 0:X.call(A),A.rollUp(),h,d(),B())}else{var D;H.value.style.display=((D=A.character)==null?0:D.call(A))?"":"none"}}},"CA6Pmf");
return _.x("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},_.x(_.R,{cond:d,then:function(){return _.x(i7p,null)},
else:function(){return _.x(hBG,{character:A.character})}}))},"E");
O71.idomCompat=!0;var sf8=_.b("web_enable_sink_animated_rolling_character_and_number")?O71:fjX,RB0=_.b("web_enable_sink_animated_rolling_character_and_number")?O71:oQ8(fjX),i7p=_.c(function(){for(var A=[],H=1;H<30;H++)A.push(_.x("div",null,H%10));return _.x(_.sD,null,_.x("div",null,"\u00a0"),A,_.x("div",null,"\u00a0"))},"F"),hBG=_.c(function(A){var H=A.character;
return _.x(_.sD,null,_.x("div",null,"\u00a0"),_.x(_.R,{cond:function(){return!(H==null?0:H())||_.BV(H==null?void 0:H())},
then:function(){return _.x("div",null,"\u00a0")},
else:function(){return _.x("div",null,H)}}),_.x("div",null,"\u00a0"))},"G");kQC.componentType=yM;var Tzw=_.c(function(A){var H=void 0,k=void 0,d=function(){var z;return((z=A.fontSizeMultiplier)==null?0:z.call(A))?A.heightPx()*A.fontSizeMultiplier():A.heightPx()},W=_.be(function(){if(!A.numberText())return[];
var z,u,B=((z=A.forceRollUp)==null?void 0:z.call(A))||!k||!((u=A.numberValue)==null?0:u.call(A))||k<A.numberValue(),h,O=A.numberText();z=d();u=!((h=A.shouldAnimate)==null||!h.call(A));h=[];var T=0,m=0,J=(H?H.replace(/\D/g,"").length:0)-(O?O.replace(/\D/g,"").length:0),g=H?H.split(/(\d)/).filter(Boolean):[];for(O=O.split(/(\d)/).filter(Boolean);J<0;){var v=O[m];h.push({character:v,rollUp:B,marginMultiplier:z,shouldAnimate:u});m++;GC(v)&&J++}for(;T<J;)v=g[T],h.push({previousCharacter:v,rollUp:B,marginMultiplier:z,
shouldAnimate:u}),T++,GC(v)||J++;for(;m<O.length;)J=O[m],v=g[T],GC(J)===GC(v)?(m++,T++):GC(J)?(T++,J=void 0):GC(v)&&(m++,v=void 0),h.push({character:J,previousCharacter:v,rollUp:B,marginMultiplier:z,shouldAnimate:u});H=A.numberText();var y;k=(y=A.numberValue)==null?void 0:y.call(A);return h},void 0,"kWiBv");
return _.x("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return A.numberText()?["height: "+d()+"px;","line-height: "+A.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.x(_.Ix,{each:W,keyBy:"INDEX"},function(z){return _.x(RB0,{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}})}))},"H");
Tzw.idomCompat=!0;_.mhw=_.b("web_enable_sink_animated_rolling_character_and_number")?Tzw:oQ8(kQC);var JI0=function(A,H){this.fillAnimation=new Animation(qkI(A),document.timeline);this.strokeAnimation=new Animation(rJf(H),document.timeline)};
JI0.prototype.play=function(){var A,H;(H=(A=this.fillAnimation).play)==null||H.call(A);var k,d;(d=(k=this.strokeAnimation).play)==null||d.call(k)};
JI0.prototype.cancel=function(){var A,H;(H=(A=this.fillAnimation).cancel)==null||H.call(A);var k,d;(d=(k=this.strokeAnimation).cancel)==null||d.call(k)};_.pM=_.c(function(A){var H=A.model;var k=A.pointerDownEvent;var d=A.pointerUpEvent;var W=A.pointerLeaveEvent;var z=A.hovered;A=_.GP("yt-touch-feedback-shape");var u=_.GP("div"),B=_.GP("div"),h=_.r(_.C0(function(){return(d==null?0:d())||(W==null?0:W())?!1:!(k==null||!k())||!1})),O=h.next().value,T=h.next().value,m=void 0,J=function(){!m&&B.value&&u.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(m=new JI0(B.value,u.value));
var K;(K=m)==null||K.play()},g=function(){var K;
(K=m)==null||K.cancel()},v=function(){var K;
(K=m)==null||K.cancel()};
_.CA(function(){(d==null?0:d())&&J()},"bg756c");
_.CA(function(){(k==null?0:k())&&g()},"QAes8c");
_.CA(function(){(W==null?0:W())&&v()},"YaFbrc");
h=_.lc(function(){J();T(!1)});
var y=_.lc(function(){g();T(!0)}),X=_.lc(function(){v();
T(!1)});
_.aV(function(){if(m){var K;(K=m)==null||K.cancel();m=void 0}});
var D={};O=_.ER("yt-spec-touch-feedback-shape",function(){return uzI(H().color)},function(){return BGm(H().thumbnailSize,!!H().isExtended)},(D["yt-spec-touch-feedback-shape--focused"]=function(){return!!H().focused&&!H().disabled},D["yt-spec-touch-feedback-shape--circular"]=function(){return!!H().circular},D["yt-spec-touch-feedback-shape--down"]=O,D["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!H().triggerEvents},D["yt-spec-touch-feedback-shape--hovered"]=function(){return z==
null?void 0:z()},D));
return _.x("yt-touch-feedback-shape",{el:A,class:O,style:_.Mt({"margin-top":function(){return H().customTopExtend?"-"+H().customTopExtend+"px":void 0}}),
"on:mousedown":y,"on:mouseup":h,"on:pointerleave":X,"on:touchstart":y,"on:touchend":h,"aria-hidden":!0},_.x(_.R,{cond:function(){return!!H().hoverEffect},
then:function(){return _.x("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.Mt({"border-radius":function(){return H().borderRadius},
background:function(){var K;if(K=H().hoverEffect){for(var N=[],U=_.r((K==null?void 0:K.lightingTechniques)||[]),p=U.next();!p.done;p=U.next())switch(p.value){case 2:var M=p=void 0,Z=void 0,WV=void 0;N.push("linear-gradient(180deg, "+((p=K)==null?void 0:(M=p.palette)==null?void 0:M.keyLight)+", "+((Z=K)==null?void 0:(WV=Z.palette)==null?void 0:WV.background)+")")}var hA,qv;N.push((hA=H().hoverEffect)==null?void 0:(qv=hA.palette)==null?void 0:qv.background);K=N.join(", ")}else K=void 0;return K}})})}}),
_.x("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.Mt({"border-radius":function(){return H().borderRadius},
"border-color":function(){var K,N;return(K=H().touchEffect)==null?void 0:(N=K.palette)==null?void 0:N.background}}),
el:u}),_.x("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.Mt({"border-radius":function(){return H().borderRadius},
"background-color":function(){var K,N;return(K=H().touchEffect)==null?void 0:(N=K.palette)==null?void 0:N.background}}),
el:B}))},"L");
_.pM.idomCompat=!0;var g_A={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 QC=_.bI();QC=QC.toLowerCase();if(_.iI(QC,"android")){var b7Q=QC.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);b7Q&&parseFloat(b7Q[1])<100||QC.match("("+Object.keys(g_A).join("|")+")")};var LXw=_.c(function(A){return _.x(_.R,{cond:A.aTagConfig,then:function(H){return _.x(_.c2,{aTagConfig:H,disabled:A.disabled,className:A.className,style:A.style,title:A.title,ariaLabel:A.ariaLabel,ariaCurrent:function(){var k,d;return((k=A.toggleable)==null?void 0:k.call(A))&&((d=A.toggled)==null?void 0:d.call(A))},
ref:A.ref},A.children)},
else:function(){return _.x("button",{el:_.P8(A.ref),"on:click":_.lc(function(H){var k;return(k=A.onClick)==null?void 0:k.call(A,H)}),
class:A.className,title:A.title,style:A.style,disabled:A.disabled,"aria-pressed":function(){var H,k;return((H=A.toggleable)==null?0:H.call(A))?!((k=A.toggled)==null||!k.call(A)):void 0},
"aria-label":A.ariaLabel,"aria-disabled":A.visiblyDisabled,"aria-hidden":A.ariaHidden,tabindex:A.tabIndex},A.children)}})},"M"),yIw=_.c(function(A){var H=A.data;
var k=A.hasIconLeading;var d=A.hasIconLeadingTrailing;var W=A.hasIconTrailing;var z=A.iconButton;var u=A.iconClassName;var B=A.secondaryIconClassName;var h=A.icon;var O=A.secondaryIcon;var T=A.textContentClassName;return _.x(VC,{className:"",style:"display: inherit; justify-content: center"},_.x(_.R,{debugInstance:"V4z1Uc",cond:function(){return h&&(k()||d()||(z==null?void 0:z()))},
then:function(){return _.x(VC,null,_.x("div",{class:u,"aria-hidden":"true"},h==null?void 0:h()))}}),_.x(_.R,{debugInstance:"ok3btb",
cond:function(){return(H().buttonText||H().animatedTextProps||H().formattedButtonText)&&!(z==null?0:z())},
then:function(){return _.x(VC,null,_.x(v_1,{className:T,iconPosition:function(){return H().iconPosition},
text:function(){return H().buttonText},
oneOffCustomTextWrap:function(){return H().oneOffCustomTextWrap},
formattedButtonText:function(){return H().formattedButtonText},
animatedTextProps:function(){return H().animatedTextProps}}))}}),_.x(_.R,{debugInstance:"DO5Rz",
cond:W,then:function(){return _.x(VC,null,_.x("div",{class:u},h==null?void 0:h()))}}),_.x(_.R,{debugInstance:"bnojSc",
cond:d,then:function(){return _.x(VC,null,_.x("div",{class:B},O==null?void 0:O()))}}),_.x(_.R,{debugInstance:"HN3kad",
cond:function(){return!H().disabled&&!0},
then:function(){return _.x(_.pM,{model:function(){var m=H();return{color:m.style==="overlay-dark"?4:m.style==="overlay"?m.type==="filled"?4:3:m.type==="filled"||m.style==="call-to-action-inverse"||m.style==="mono-inverse"?2:1}}})}}))},"N"),v_1=_.c(function(A){var H=function(){var k,d;
return((k=A.iconPosition)==null?void 0:k.call(A))==="icon-with-label"||((d=A.oneOffCustomTextWrap)==null?void 0:d.call(A))};
return _.x("div",{class:A.className,"aria-hidden":function(){var k,d,W;return((k=A.ariaHidden)==null?void 0:k.call(A))&&(!((d=A.animatedTextProps)==null||!d.call(A))||!((W=A.formattedButtonText)==null||!W.call(A)))}},_.x(_.Yl,null,_.x(_.y$,{when:function(){var k;
return(k=A.animatedTextProps)==null?void 0:k.call(A)}},function(){return _.x(_.mhw,{numberText:function(){return A.animatedTextProps().numberText},
numberValue:function(){return A.animatedTextProps().numberValue},
heightPx:function(){return A.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return A.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return A.animatedTextProps().shouldAnimate},
forceRollUp:function(){return A.animatedTextProps().forceRollUp}})}),_.x(_.y$,{when:function(){var k;
return(k=A.formattedButtonText)==null?void 0:k.call(A)}},function(){return _.x(_.j$,{text:function(){return Object.assign({},A.formattedButtonText(),{lineBreakMode:H()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":A.formattedButtonText().lineBreakMode,
alignment:H()?"TEXT_ALIGNMENT_CENTER":A.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!H()}})}),_.x(_.y$,{when:function(){var k,d;
return((k=A.iconPosition)==null?void 0:k.call(A))==="icon-with-label"&&((d=A.text)==null?void 0:d.call(A))}},function(){return _.x(_.j$,{text:function(){return{content:A.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.x(_.jp,null,function(){return A.text})))},"O"),juG=_.c(function(A){return _.x(_.R,{debugInstance:"kM7Sgc",
cond:A.hasLabel,then:function(){var H;return _.x("label",{class:A.className},A.children,(H=A.textContent)==null?void 0:H.call(A))},
else:function(){return A.children}})},"P"),VC=_.c(function(A){return A.children},"Q");var IX1=_.c(function(A){function H(){z(void 0);B(void 0);O(void 0)}
var k=_.P8(),d=_.r(_.RV(void 0,void 0,"Ug77pc")),W=d.next().value,z=d.next().value;d=_.r(_.RV(void 0,void 0,"XGf7Zb"));var u=d.next().value,B=d.next().value,h=_.r(_.RV(void 0,void 0,"w55oqd"));d=h.next().value;var O=h.next().value;h=_.r(_.RV(0,void 0,"rBgpzc"));var T=h.next().value,m=h.next().value;h=_.lc(function(){switch(T()){case 1:m(2);break;case 3:var g,v;(v=(g=k.value).hidePopover)==null||v.call(g);m(0);H()}});
_.CA(function(){if(A.show()){var g;z((g=A.children)==null?void 0:g.call(A));var v;B((v=A.location)==null?void 0:v.call(A));var y;O((y=A.classNames)==null?void 0:y.call(A));switch(T()){case 0:var X,D;(D=(X=k.value).showPopover)==null||D.call(X);m(1);break;case 3:m(1);var K,N;(N=(K=k.value).hidePopover)==null||N.call(K);var U,p;(p=(U=k.value).showPopover)==null||p.call(U)}}else switch(T()){case 2:m(3);break;case 1:var M,Z;(Z=(M=k.value).hidePopover)==null||Z.call(M);H();m(0)}},"Z8V4Qb");
_.CZ(function(){});
var J={};return _.x("yt-popover",{popover:"manual",el:k,style:_.Mt({left:function(){var g;return(g=u())==null?void 0:g.left},
top:function(){var g;return(g=u())==null?void 0:g.top},
bottom:function(){var g;return(g=u())==null?void 0:g.bottom},
right:function(){var g;return(g=u())==null?void 0:g.right}}),
class:_.ER("ytPopoverComponentHost",d,(J.ytPopoverComponentHostClosing=function(){return T()===3},J.ytPopoverComponentHostSeeThrough=function(){var g;
return((g=A.seeThrough)==null?void 0:g.call(A))===!0},J)),
"on:animationend":h},W)},"S");var Ynw={left:"0px",right:"auto",top:"0px",bottom:"auto"},Pdj=function(){var A=this;this.registerTooltipElement=function(k){var d;A.tooltipElement=(d=k.querySelector("yt-popover"))!=null?d:void 0};
var H=_.r(_.RV(void 0,void 0,"EIh5sc"));this.state=H.next().value;this.setState=H.next().value;H=_.r(_.RV(void 0,void 0,"PC1M0b"));this.schedulerJobID=H.next().value;this.setSchedulerJobID=H.next().value},JJQ=function(A,H){var k=f3,d=_.IE.addJob(function(){var W=G7A(k,A,H);
k.currentConfig=H;k.setState({text:H.text,location:_.b("web_tooltip_location_fix")?void 0:W,anchor:A,offset:H.offset,style:H.style})},4,H.delay);
k.setSchedulerJobID(d)},goX=function(){var A=f3,H=A.schedulerJobID();
H&&(_.IE.cancelJob(H),A.setSchedulerJobID(void 0));A.setState(void 0);A.currentConfig=void 0};
Pdj.prototype.notify=function(A,H){var k;((k=this.state())==null?void 0:k.anchor)===A&&(k=G7A(this,A,H),this.currentConfig=H,this.setState({text:H.text,location:_.b("web_tooltip_location_fix")?void 0:k,anchor:A,offset:H.offset,style:H.style}))};
var G7A=function(A,H,k){var d=H.getBoundingClientRect();H=window.innerWidth;var W=window.innerHeight,z=k.location,u=k.offset;k=k.text;if(A=A.tooltipElement){var B=getComputedStyle(A);A=B.font;var h=Zf(B.lineHeight),O=Zf(B.paddingLeft),T=Zf(B.paddingRight),m=Zf(B.paddingTop);B=Zf(B.paddingBottom);var J=document.createElement("canvas").getContext("2d");J.font=A;k={width:J.measureText(k).width+O+T,height:h+m+B}}else k=void 0;A=k;if(!A)return Ynw;k=A.width;A=A.height;O=u+A;m=u+k;h=d.top>=O;O=W-d.bottom>=
O;T=d.left>=m;m=H-d.right>=m;B=z;switch(z){case "top":!h&&O&&(B="bottom");break;case "bottom":!O&&h&&(B="top");break;case "left":!T&&m&&(B="right");break;case "right":!m&&T&&(B="left")}switch(B){case "top":z=d.left+d.width/2-k/2;d=d.top-A-u;break;case "bottom":z=d.left+d.width/2-k/2;d=d.bottom+u;break;case "left":z=d.left-k-u;d=d.top+d.height/2-A/2;break;case "right":z=d.right+u;d=d.top+d.height/2-A/2;break;default:z=d.left+d.width/2-k/2,d=d.bottom+u}u=Object.assign({},Ynw);z+k>H?(u.right="0px",u.left=
"auto"):(u.left=Math.round(Math.max(0,z)+window.scrollX)+"px",u.right="auto");d+A>W?(u.bottom="0px",u.top="auto"):(u.top=Math.round(Math.max(0,d)+window.scrollY)+"px",u.bottom="auto");return u};var f3;f3=new Pdj;_.FXZ=_.c(function(){var A=_.be(function(){var W;return(W=f3.state())==null?void 0:W.anchor},void 0,"tiGUn"),H=_.be(function(){var W;
return(W=f3.state())==null?void 0:W.text},void 0,"TA2GQe"),k=_.be(function(){var W;
return(W=f3.state())==null?void 0:W.style},void 0,"ucvFsf"),d=_.b("web_tooltip_location_fix")?_.be(function(){var W=A();
var z=f3.currentConfig;if(W&&z)return G7A(f3,W,z)},void 0,"EpDz6"):_.be(function(){var W;
return(W=f3.state())==null?void 0:W.location},void 0,"aRJtfd");
return _.x("yt-tooltip",{class:"ytTooltipContainerHost",el:_.P8(f3.registerTooltipElement),"aria-hidden":"true"},_.x(IX1,{classNames:function(){switch(k()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:d,show:function(){return!!H()&&!!d()},
seeThrough:!0},H))},"T");var eOI=Aa("stamper-context");_.E7=_.c(function(A){var H=A.data;var k=A.icon;var d=A.iconName;var W=A.animateIcon;var z=A.secondaryIcon;var u=A.secondaryIconName;var B=A.focusedOverride;var h=A.clientOnlyWizTooltipsEnabled;Lhl();var O=esW(H),T=O.size,m=O.style;A=O.disabled;var J=O.onTap,g=O.alignByText,v=O.aTagConfig,y=O.customColors,X=O.segmentedPosition,D=O.toggled,K=O.toggleable,N=O.accessibilityLabel,U=O.onToggle,p=O.iconPosition,M=O.oneOffCustomTextWrap,Z=O.disableTextEllipsis,WV=O.disableBackdropFilter,hA=O.tooltipText,
qv=O.ariaHidden,eN=O.tabIndex,mr=O.buttonText,Cl=O.formattedButtonText,pl=O.animatedTextProps,UC=O.onClickRateLimitMs,hk=ORN(H,k,z,d,u,B,W),eA=hk.type;k=hk.shouldFocus;d=hk.hasIconLeading;W=hk.hasIconTrailing;var lI=hk.hasIconLeadingTrailing,Rp=hk.hasIconOnly;z=hk.hasIconOnly40;var vj=hk.hasIconWithLabel;u=hk.iconButton;var T0=hk.visiblyDisabled;B=hk.overrideSmallSizeIcon;var Y1=hk.iconToRender;hk=hk.secondaryIconToRender;var ze=_.r(bRC(hA,O.tooltipShape)).next().value,Tf=function(G0){J==null||J(G0);
K()&&(U==null||U(G0))},QW=_.be(function(){return UC==null?void 0:UC()},void 0,"siKywb"),mG=_.be(function(){return QW()?xCJ(Tf,QW()):Tf},void 0,"wDTcN");
O={};var nN={};return _.x(juG,{className:_.ER("yt-spec-button-shape-with-label",(O["yt-spec-button-shape-with-label--is-overlay"]=function(){return m()==="overlay"||m()==="overlay-dark"},O)),
hasLabel:vj,textContent:function(){return _.x(v_1,{text:mr,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:M,iconPosition:p,formattedButtonText:Cl,animatedTextProps:pl})}},_.x(LXw,{aTagConfig:v,
className:_.ER("yt-spec-button-shape-next",function(){return RsI(eA())},function(){return T0()?void 0:TGX(m())},function(){return msV(T())},(nN["yt-spec-button-shape-next--disabled"]=T0,nN["yt-spec-button-shape-next--focused"]=k,nN["yt-spec-button-shape-next--icon-trailing"]=W,nN["yt-spec-button-shape-next--icon-leading"]=d,nN["yt-spec-button-shape-next--icon-leading-trailing"]=lI,nN["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return lI()&&!(mr()||Cl())},nN["yt-spec-button-shape-next--icon-button"]=
function(){return Rp()||vj()},nN["yt-spec-button-shape-next--icon-only-default"]=z,nN["yt-spec-button-shape-next--align-by-text"]=g,nN["yt-spec-button-shape-next--segmented-start"]=function(){return X()==="start"},nN["yt-spec-button-shape-next--segmented-end"]=function(){return X()==="end"},nN["yt-spec-button-shape-next--override-small-size-icon"]=B,nN["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=M,nN["yt-spec-button-shape-next--disable-text-ellipsis"]=Z,nN["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!WV()&&!_.b("web_disable_backdrop_filter")},nN)),
style:function(){var G0=y();if(G0){var $Z=G0.color;var F9=G0.backgroundColor;G0=G0.borderColor;var ww="";$Z&&(ww+="color: "+$Z+";");F9&&(ww+="background-color: "+F9+";");G0&&(ww+="border-color: "+G0+";");$Z={style:ww}}else $Z={};return $Z.style},
onClick:function(G0){mG()(G0)},
disabled:A,ariaLabel:N,toggleable:K,toggled:D,title:function(){return(h==null?0:h())||!hA()?"":hA()},
visiblyDisabled:T0,ariaHidden:qv,tabIndex:eN,ref:function(G0){(h==null?0:h())&&ze(G0)}},_.x(yIw,{data:H,
hasIconLeading:d,hasIconLeadingTrailing:lI,hasIconTrailing:W,iconButton:u,icon:Y1,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:hk})))},"V");
_.E7.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.U7=_.c(function(A){var H=A.data;var k=A.className;var d=A.style;var W=A.useOutlinedIcon;var z=A.buttonOverrides;var u=A.animatedTextProps;var B=A.onClick;var h=A.target;var O=_.GP("button-view-model",function(p){p.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var M=H().targetId;M&&_.oY(_.$f(),M,p);return function(){wC(_.$f(),p)}}),T=function(){return H().iconName},m=function(){var p;
return(p=H())==null?void 0:p.entityKey},J=_.oy(function(p){a:{var M=m(),Z=H().buttonEntitySelectorType;
if(Z&&M)switch(Z){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":p=(p=_.UR(p,M))?{isHidden:p.adsState==="ADS_STATE_NONE"||p.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:p={isHidden:!1};break a}p=void 0}return p}),g,v=(g=_.wj().resolve(_.fZ(_.sF)))==null?void 0:g(),y=function(){var p=H();
var M=z==null?void 0:z(),Z=u==null?void 0:u(),WV=h==null?void 0:h();if(p){var hA=Fhv(p.type);var qv=!!p.title||!!p.titleFormatted;var eN=!(!p.iconName&&!p.iconImage);qv=eN&&!qv?"icon-only":eN?p.iconTrailing||p.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;qv==="icon-only-40"&&(hA="text");var mr;eN=(mr=M==null?void 0:M.state)!=null?mr:Xcm(p.state);var Cl,pl=(Cl=M==null?void 0:M.disabled)!=null?Cl:p.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||p.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.b("web_button_vm_refactor_disabled")){var UC;pl=(UC=M==null?void 0:M.disabled)!=null?UC:eN==="disabled"}Z=Z&&Z.numberText&&!isNaN(Number(Z.numberValue))?Z:void 0;Cl=Object;UC=Cl.assign;mr=p.title;var hk=p.titleFormatted,eA=p.accessibilityText,lI=GQf(p.style),Rp=DsW(p.buttonSize);WV=P_A(p,O,pl,B,WV);pl=pl&&!p.onDisabledTap;var vj=Izf(p,O),T0=p.customFontColor,Y1=p.customBackgroundColor;var ze=p.customBorderColor;var Tf=p.customDarkThemeFontColor,QW=p.customDarkThemeBackgroundColor,mG=p.customDarkThemeBorderColor;
T0=v&&Tf?Tf:T0;Y1=v&&QW?QW:Y1;ze=v&&mG?mG:ze;ze={color:T0?_.h1(T0):void 0,backgroundColor:Y1?_.h1(Y1):void 0,borderColor:ze?_.h1(ze):void 0};if(mG=_.L(p.tooltipData,kXj)){var nN;Y1={text:(nN=mG.tooltipText)!=null?nN:"",location:yJr(mG.placement),style:mG.style}}else Y1=void 0;p=UC.call(Cl,{},{buttonText:mr,formattedButtonText:hk,animatedTextProps:Z,accessibilityLabel:eA,style:lI,type:hA,state:eN,size:Rp,iconPosition:qv,onTap:WV,disabled:pl,aTagConfig:vj,customColors:ze,tooltipText:p.tooltip,tooltipShape:Y1},
M)}else p={style:"mono",type:"text",state:"active",size:"M"};p.focused=K();return p},X=function(){return iRV(y(),!!H().iconName)};
A=_.r(_.RV(!1,void 0,"yZ8hab"));g=A.next().value;var D=A.next().value,K=g;A=_.lc(function(){var p=_.wj().resolve(_.fZ(_.ah));p&&D(p.isKeyBoardInUse());return!0});
g=_.lc(function(){D(!1);return!0});
_.CA(function(){var p,M=_.L(H==null?void 0:(p=H())==null?void 0:p.onVisible,_.ic);M&&_.OR(M,{disableClickTracking:!0})},"G9MlKd");
var N=function(){var p;return(H==null?0:(p=H())==null?0:p.iconImage)?{sources:[H().iconImage]}:void 0},U=_.b("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.x("button-view-model",{el:O,class:_.ER("ytSpecButtonViewModelHost",k),"on:focusin":A,"on:focusout":g},_.x(_.R,{cond:function(){var p,M;return!((M=m()&&H().buttonEntitySelectorType&&((p=J())==null?void 0:p.isHidden))!=null&&M)},
then:function(){return _.x(_.R,{cond:N,then:function(p){return _.x(_.E7,{data:y,icon:function(){return _.x(_.GA,{data:p,alt:"",targetWidth:X,targetHeight:X,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:U})},
else:function(){return _.x(_.E7,{data:y,icon:function(){return _.x(_.n3,{icon:T,active:function(){return(W==null?0:W())?!1:y().toggled},
animateIcon:function(){var p;return!!(d==null?0:(p=d())==null?0:p.animateIcon)},
size:X})},
clientOnlyWizTooltipsEnabled:U})}})}}))},"X");
_.U7.idomCompat={callbacks:{onClick:!0}};_.Sw(_.c(function(A){return _.x("yt-button-view-model",{id:A.id,class:_.ER(A.scopingClassName,A.classes),icon:function(){var H;return(H=A.icon)==null?void 0:H.call(A)},
"dialog-dismiss":function(){var H;return((H=A.dialogDismiss)==null?0:H.call(A))?"":void 0}},_.x(_.U7,{data:function(){var H;
return(H=A.data)==null?void 0:H.call(A)},
className:function(){var H;return(H=A.className)==null?void 0:H.call(A)},
style:function(){var H;return(H=A.style)==null?void 0:H.call(A)},
useOutlinedIcon:function(){var H;return(H=A.useOutlinedIcon)==null?void 0:H.call(A)},
buttonOverrides:function(){var H;return(H=A.buttonOverrides)==null?void 0:H.call(A)},
animatedTextProps:function(){var H;return(H=A.animatedTextProps)==null?void 0:H.call(A)},
onClick:function(H){var k;return(k=A.onClick)==null?void 0:k.call(A,H)}}))},"Y"),"yt-button-view-model",{props:{data:_.Ih,
className:_.Ih,style:_.Ih,useOutlinedIcon:_.Ih,buttonOverrides:_.Ih,animatedTextProps:_.Ih,onClick:_.Fc,scopingClassName:_.Ih,id:_.Ih,icon:_.Ih,dialogDismiss:_.Ih,classes:_.Ih,target:_.Fc}});_.Sw(_.c(function(A){var H=A.data;var k=A.id;var d=A.className;var W=A.iconName;var z=A.animateIcon;var u=A.secondaryIconName;A=_.r(_.RV(!1,void 0,"TtJl8"));var B=A.next().value,h=A.next().value,O=function(){var m=_.wj().resolve(_.fZ(_.ah));m&&h(m.isKeyBoardInUse())},T=function(){h(!1)};
A=_.GP("yt-button-shape",function(m){if(_.wj().resolve(_.fZ(_.ah)))return m.addEventListener("focusin",O),m.addEventListener("focusout",T),function(){m.removeEventListener("focusin",O);m.removeEventListener("focusout",T)}});
return _.x("yt-button-shape",{el:A,id:k,class:d},_.x(_.R,{cond:H,then:function(){return _.x(_.E7,{data:H,iconName:W,secondaryIconName:u,focusedOverride:B,animateIcon:z})}}))},"Z"),"yt-button-shape",{props:{data:_.Ih,
id:_.Ih,className:_.Ih,iconName:_.Ih,animateIcon:_.Ih,secondaryIconName:_.Ih,clientOnlyWizTooltipsEnabled:_.Ih,disableUpgrade:_.Ih},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var lU=function(){var A=_.a.apply(this,arguments)||this;A.isGoalActive=!0;return A};
_.I(lU,_.a);lU.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
lU.prototype.progressBarChanged=function(){var A=_.Va(this.hostElement).querySelector("#progress-bar-progress"),H,k,d,W=(d=Number((H=this.creatorGoalState)==null?void 0:H.currentGoalCount)/Number((k=this.creatorGoalState)==null?void 0:k.totalGoalCount)*100)!=null?d:0,z;A.style.width=((z=Math.min(W,100))!=null?z:0)+"%"};
lU.prototype.goalStateChanged=function(){var A;this.isGoalActive=((A=this.creatorGoalState)==null?void 0:A.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var H;A={"--yt-progress-bar-color":P4m((H=this.creatorGoalState)==null?void 0:H.progressBarColor)};_.NH(this.hostElement,A)};
lU.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.nP.Object.defineProperties(lU.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var A;return this.isGoalActive&&!((A=this.creatorGoalState)==null||!A.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.creatorGoalState)==null?0:A.endTimestampMs){var H;A=Number((H=this.creatorGoalState)==null?void 0:H.endTimestampMs)/1E3;return{seconds:String(A)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.creatorGoalState)==null?0:A.themedTargetImage){var H;A=_.L((H=this.creatorGoalState)==null?void 0:H.themedTargetImage,tZw);return this.isAppDarkTheme()?A==null?void 0:A.imageDark:A==null?void 0:A.imageLight}}}});
_.nP.Object.defineProperties(lU,{template:{configurable:!0,enumerable:!0,get:function(){return WXA()}}});
lU.prototype.goalStateChanged=lU.prototype.goalStateChanged;lU.prototype.progressBarChanged=lU.prototype.progressBarChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],lU.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);
_.E([_.C({selectorArgs:["data.creatorGoalEntityKey"],selector:function(A,H){return _.Mw(A.entities,"creatorGoalEntity",H)}}),
_.l("design:type",Object)],lU.prototype,"creatorGoalState",void 0);_.E([_.C(),_.l("design:type",Object)],lU.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],lU.prototype,"isGoalActive",void 0);_.E([_.G("creatorGoalState","isGoalActive"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],lU.prototype,"shouldShowCountdown",null);_.E([_.G("creatorGoalState"),_.l("design:type",Object),_.l("design:paramtypes",[])],lU.prototype,"endTimestamp",null);
_.E([_.G("creatorGoalState"),_.l("design:type",Object),_.l("design:paramtypes",[])],lU.prototype,"targetIconThemedImage",null);_.E([_.fF("creatorGoalState.currentGoalCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lU.prototype,"progressBarChanged",null);_.E([_.fF("creatorGoalState.creatorGoalState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lU.prototype,"goalStateChanged",null);
_.E([_.h6({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],lU);_.Q(lU,"yt-creator-goal-progress-flow-view-model",function(){return WXA()},{mode:0});var XhG;var DhJ;var tU=function(){return _.a.apply(this,arguments)||this};
_.I(tU,_.a);tU.prototype.attached=function(){var A,H,k;if(this==null?0:(A=this.data)==null?0:(H=A.pdgPurchasedBumperLoggingDirectives)==null?0:(k=H.loggingDirectives)==null?0:k.trackingParams){var d,W,z;Kh8(this==null?void 0:(d=this.data)==null?void 0:(W=d.pdgPurchasedBumperLoggingDirectives)==null?void 0:(z=W.loggingDirectives)==null?void 0:z.trackingParams)}};
tU.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],tU.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],tU.prototype,"data",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],tU);
_.Q(tU,"yt-live-chat-item-bumper-view-model",function(){if(DhJ===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;XhG===void 0&&(XhG=document.createElement("template"));var d=XhG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);DhJ=A}A=DhJ;return A},{mode:0});var Sni;var Cdi;_.Gc=function(A,H){this.data=A;this.actions=H;this.data=A;this.actions=H};
_.Lj=function(){};_.NY={};_.NY.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(A,H){azb(this.hostElement,A,H)},
getNavigationEndpointPopupAction:function(A){return cJV(A,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(A,H){pcI(this.hostElement,A,H,this.openPopupConfig)}};var ZRI=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.MY={};
_.MY.YtEndpointBehavior=[_.NY.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.pZ("openPopupConfig");(this.useClickHandler=_.Q$("useClickHandler",!1))?this.hostElement.addEventListener("click",MH(this,this.onEndpointClick_)):(Pu(this.hostElement,"tap",MH(this,this.onEndpointTap_)),Pu(this.hostElement,"touchend",MH(this,this.onEndpointTouchEnd_)));Pu(this.hostElement,"touchstart",MH(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
MH(this,this.onEndpointTapStart_))},
onEndpointClick_:function(A){Eov(this.hostElement,A,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(A){var H=this.hostElement,k=this.openPopupConfig,d=this.disableCommandHandlerOverride;d=d===void 0?!1:d;var W=QfQ(A);if(W){W.href&&mH(W.href);var z=A.detail;var u=z.sourceEvent;z=z.preventer;u=u.button!==void 0?u.button===0&&!$5(u):z?!$5(z):!0;W.data&&u&&V7r(H,W,A,k,d)}},
onEndpointTouchEnd_:function(A){$5(A)||QfQ(A)&&A.preventDefault()},
onEndpointTapStart_:function(A){M7l(A)}}];_.nM={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(A){for(var H=_.a3.getInstance(),k=_.r(Object.keys(A)),d=k.next();!d.done;d=k.next()){var W=d.value;d=A[W];if(this&&this[d]){var z=H.actionRoutingMap.get(W);z||(z=new Map,H.actionRoutingMap.set(W,z));H.registerActionHandler(this,W,this[d].bind(this),z)}else W=Error("nd"),W.params=d,_.V$(W)}},
unregisterActionMap:function(A){_.pT(_.a3.getInstance(),A,this)}}]};var dH=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_"+(_.b("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.b("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.b("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:_.b("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:_.b("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:_.b("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var kE;var Wn=new Map;var HSb=window.matchMedia("(forced-colors: active)").matches;var KXj;var aXp;var cIi=new _.SE("LOTTIE_LOADER_TOKEN");_.Zb=_.c(function(A){var H=A.data;var k=A.className;var d=A.animationName;var W=A.animationRef;var z=A.elRefForInterop;var u=_.FQ("lottie-component"),B;_.aV(function(){var O;return void((O=B)==null?void 0:O.destroy())});
var h;_.CA(function(){var O=_.pA(d);if(O!==h){h=O;var T=Object.assign({},{animationName:O,animationRef:_.pA(W)},_.pA(H));try{_.wj().resolve(cIi)().then(function(g){var v;(v=B)==null||v.destroy();var y,X;v=(X=z==null?void 0:(y=z())==null?void 0:y.value)!=null?X:u.value;y=T.animationRef;X=T.listeners;g=g.loadAnimation(Object.assign({},{container:v},T.animationConfig));y&&(y.lottieEl=g);if(X)for(v=_.r(Object.entries(X)),y=v.next();!y.done;y=v.next())X=_.r(y.value),y=X.next().value,(X=X.next().value)&&
g.addEventListener(y,X);B=g})}catch(g){O=g;
var m="LottieComponent error.";O.message&&(m+=" Original description: "+O.message);_.Gg(O,m);_.Pq(O);var J;((J=T.listeners)==null?0:J.error)&&T.listeners.error(O)}}},"nrJISd");
return _.x(Cif,{cond:function(){return!(z==null?0:z())},
then:function(){return _.x("lottie-component",{class:_.ER("ytLottieComponentHost",k),el:u})}})},"aa");_.Sw(_.c(function(A){return _.x("ytd-lottie-player",{id:A.id,hidden:A.hidden,class:A.className,"aria-label":A.ariaLabel,style:"display: block;"},_.x(_.Zb,{data:A.data,animationName:function(){var H;return((H=A.data().animationConfig)==null?void 0:H.name)||""},
animationRef:function(){return A.data().animationRef}}))},"ba"),"ytd-lottie-player",{props:{data:_.Ih,
id:_.Ih,hidden:_.Ih,className:_.Ih,ariaLabel:_.Ih}});var fM=function(){var A=_.a.apply(this,arguments)||this;A.animationRef={};A.delhiIconsEnabled=_.b("enable_web_delhi_icons");return A};
_.I(fM,_.a);_.q=fM.prototype;
_.q.handlePropertyChange=function(){var A=this.animatedIcon,H=this.active,k=this.isDarkTheme;if(A){var d=this.previousActive!==H;this.previousActive=H;this.animationRef.lottieEl?d?this.toggleAnimation(H,A.totalFrames):_.b("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(H,A.totalFrames):H?this.initializeAnimationAsToggled(A.lottiePlayerProps,A.totalFrames):this.initializeAnimationAsUntoggled(A.lottiePlayerProps);A.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
A.type;this.lottiePlayerProps=this.computeLottiePlayerProps(A,k)}};
_.q.computeLottiePlayerProps=function(A,H){var k=this.deepCloneLottiePlayerProps(A);H?(H=A.nameDarkTheme,A=A.pathDarkTheme):(H=A.name,A=A.path);k.animationConfig.name=H;(H=Wn.get(A))?k.animationConfig.animationData=H:k.animationConfig.path=A;return k};
_.q.initializeAnimationAsToggled=function(A,H){A.animationConfig.initialSegment=[H-1,H]};
_.q.initializeAnimationAsUntoggled=function(A){A.animationConfig.initialSegment=void 0};
_.q.toggleAnimation=function(A,H){if(A){var k;(k=this.animationRef.lottieEl)==null||k.playSegments([0,H],!0)}else{var d;(d=this.animationRef.lottieEl)==null||d.playSegments([0,1],!0)}};
_.q.setAnimationState=function(A,H){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(A?H-1:0,!0)};
_.q.deepCloneLottiePlayerProps=function(A){var H=Object.assign({},A.lottiePlayerProps.animationConfig);A=Object.assign({},A.lottiePlayerProps);A.animationConfig=H;return A};
fM.prototype.handlePropertyChange=fM.prototype.handlePropertyChange;_.E([_.C(),_.l("design:type",Object)],fM.prototype,"animatedIcon",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],fM.prototype,"active",void 0);_.E([_.C(),_.l("design:type",Boolean)],fM.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],fM.prototype,"animatedIconType",void 0);_.E([_.C(),_.l("design:type",Boolean)],fM.prototype,"previousActive",void 0);
_.E([_.C(),_.l("design:type",Object)],fM.prototype,"lottiePlayerProps",void 0);_.E([_.C(),_.l("design:type",Object)],fM.prototype,"animationRef",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],fM.prototype,"delhiIconsEnabled",void 0);_.E([_.fF("animatedIcon","active","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fM.prototype,"handlePropertyChange",null);_.E([_.h6({is:"yt-animated-icon",disableElementRegistration:!0})],fM);
_.Q(fM,"yt-animated-icon",function(){if(aXp===void 0){var A=document.createElement("template");_.Y(A,'\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="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;KXj===void 0&&(KXj=document.createElement("template"));var d=KXj;k.call(H,d.content.cloneNode(!0),A.content.firstChild);aXp=A}A=aXp;return A},{mode:2});var phN;var Qui;_.zc=_.c(function(A){var H={value:null,cancelled:!1};_.aV(function(){H.cancelled=!0});
var k=_.be(A.data,{equals:function(d,W){return d.iconName===W.iconName&&d.iconStyle===W.iconStyle&&d.iconSize===W.iconSize&&d.iconSetName===W.iconSetName&&d.iconSelected===W.iconSelected}},"ck24jb");
return _.x("span",{class:"yt-icon-shape",el:_.P8(function(d){_.CA(function(){var W,z=(W=A.options)==null?void 0:W.call(A);W=k();zxr(d,H,W,z)},"v878Je")})})},"da");
_.zc.idomCompat=!0;var P8C=["youtube_fill","youtube_outline"];var VlA=new _.HU({type:"iconset",value:void 0}),wX=function(){var A=_.a.apply(this,arguments)||this;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.iconName="";A.iconsetName="yt-icons";A.iconset=null;A.missingIconSet=!1;A.iconType=null;A.iconShapeDataSignal=_.RV(void 0,void 0,"TaEgXd");A.renderingOptionsSignal=_.RV({iconWidth:"100%",iconHeight:"100%",iconFilter:A.iconFilter,iconColor:A.gradientColor},void 0,"a1vqYe");A.wizHasRendered=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return A};
_.I(wX,_.a);wX.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
wX.prototype.handlePropertyChange=function(){var A=this,H,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D;return _.e(function(K){switch(K.nextAddress){case 1:if(H=!A.icon&&!A.iconName||!A.isAttached)return K.return();k=A;d=k.icon;W=k.size;z=k.defaultToFilled;u=k.active;B=k.targetContainer;A.toggleContainerClass(B);_.b("kevlar_use_wil_icons")&&d&&(h=dzA(d),A.iconType=h.length?h[1]:null);if(d){K.jumpTo(2);break}A.iconsetName="";A.iconName="";return K.yield(A.renderIcon(B,d),3);case 3:return K.return();case 2:O=E_A(d);
T=dzA(O);T.length&&(A.iconsetName=T[0],A.iconName=T[1]);if(!_.b("kevlar_use_wil_icons")){K.jumpTo(4);break}m=wX;J=Uhi;g=A.iconType;v=A.active;y=A.defaultToFilled;X=A.size;D=A.iconsetName;return K.yield(lXw(),6);case 6:return K.yield(J.call(m,g,v,y,X,D,K.yieldResult),5);case 5:A.iconShapeData=K.yieldResult;case 4:if(A.shouldRenderIconShape(B)){K.jumpTo(7);break}return K.yield(A.determineIconSet(O,u,z,W,B),7);case 7:return K.yield(A.renderIcon(B,d),0)}})};
wX.prototype.toggleContainerClass=function(A){A?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var E_A=function(A){return!_.b("default_to_innertube_icon")||A.indexOf(":")>0?A:_.N0(A)};
_.q=wX.prototype;_.q.determineIconSet=function(A,H,k,d){var W=this;return _.e(function(z){return z.nextAddress==1?_.b("kevlar_system_icons")||_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?z.yield(W.switchToYtSysIconset(A,H,k,d),3):z.jumpTo(2):z.nextAddress!=2?z.return():z.yield(W.useYtSysIconsetForMissingIcons(A,H,k,d),0)})};
_.q.switchToYtSysIconset=function(A,H,k,d){var W=this,z,u,B,h,O,T,m;return _.e(function(J){switch(J.nextAddress){case 1:if(!A||W.iconsetName!=="yt-icons"&&W.iconsetName!=="yt-sys-icons"){J.jumpTo(0);break}z=dzA(A);u=z[1];var g=u;if(xzI(g))u=g;else{var v=g=g.toLowerCase();(g=nCw.get(g))&&(v=g);u=v}_.b("enable_polymer_icons_replace_underscores_dash")&&u.includes("_filled")&&(u=u.replace(/_filled/g,"-filled"));return J.yield(t6(u,!0),3);case 3:return B=J.yieldResult,J.yield(t6(u,!1),4);case 4:if((h=
J.yieldResult)||H&&B)W.iconsetName="yt-sys-icons";W.iconName=W.getIconName(u,H,k,h,B);if(d===24){J.jumpTo(0);break}O="yt-sys-icons"+d+":"+W.iconName;return J.yield(t6(O,!1,!0),6);case 6:return T=J.yieldResult,J.yield(t6(O,!0,!0),7);case 7:m=J.yieldResult;W.iconName=W.getIconName(u,H,k,T,m);if(!H&&T||H&&m)W.iconsetName="yt-sys-icons"+d;_.EN(J)}})};
_.q.getIconName=function(A,H,k,d,W){A.includes("-filled")&&(A=A.replace("-filled",""));return W&&(H||k)?A+"-filled":A};
_.q.useYtSysIconsetForMissingIcons=function(A,H,k,d){var W=this,z,u;return _.e(function(B){if(B.nextAddress==1)return W.iconsetName!=="yt-icons"?B.jumpTo(0):B.yield(t6(W.iconName,!1,!1,!0),3);if(B.nextAddress!=4)return z=B.yieldResult,B.yield(t6(W.iconName,!1),4);u=B.yieldResult;if(z||!u)return B.jumpTo(0);W.iconsetName="yt-sys-icons";return B.yield(W.switchToYtSysIconset(A,H,k,d),0)})};
_.q.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var lXw=function(){return _.e(function(A){try{return A.return(_.wj().resolve(_.M0))}catch(H){return A.return(new Promise(function(k){_.Yf().parkOrScheduleJob(function(){k(_.wj().resolve(_.M0))},2,"ci")}))}})},Uhi=function(A,H,k,d,W,z){d=d===void 0?24:d;
if(A){A=A.toLowerCase();var u=A.endsWith("_filled")||A.endsWith("-filled");H={iconName:A,iconStyle:(H===void 0?0:H)||(k===void 0?0:k)||u?"youtube_fill":"youtube_outline",iconSize:d,iconSetName:W===void 0?"yt-icons":W};k=!!z.resolveIcon(H);k||(H.iconSize=void 0,k=!!z.resolveIcon(H));!k&&u&&(H.iconName=A.substring(0,A.length-7),H.iconSize=d,k=!!z.resolveIcon(H),k||(H.iconSize=void 0,k=!!z.resolveIcon(H)));k||(H.iconStyle=void 0,k=!!z.resolveIcon(H));k||_.Pq(new _.Ti("Icon not supported",{iconName:H.iconName,
iconStyle:H.iconStyle,iconSize:H.iconSize,iconType:A}));return k?H:void 0}};
_.q=wX.prototype;_.q.shouldRenderIconShape=function(A){if(!_.b("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;A=this.getContainer(A);return!siI(A,this.icon)};
_.q.renderIcon=function(A,H){var k=this,d,W,z,u,B,h,O,T;return _.e(function(m){switch(m.nextAddress){case 1:if(H&&k.icon!==H)return m.return();d=k.getContainer(A);W=siI(d,k.icon);if(k.shouldRenderIconShape(A)&&k.iconType)return k.applyIconShape(W,d),m.return();k.removeIconShape();if(!d)return m.return();k.iconName===""&&k.iconset&&d&&(k.removeStaticIcon(k.iconset,d),W&&k.removeAnimatedIcon(d));if(k.iconName===""&&k.iconset||!k.iconsetName||!VlA)return m.return();k.iconset=VlA.byKey(k.iconsetName);
if(!k.iconset)return k.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.nF(k,k.onIconsetAdded)),m.return();k.missingIconSet&&(k.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.nF(k,k.onIconsetAdded)));u=(z=W||k.isAnimatedIcon?$sb(k.icon):void 0)&&!z.lazyLoad;h=z&&((B=z)==null?void 0:B.lazyLoad)&&(z.lottiePlayerProps.animationConfig.animationData?!0:Wn.get(k.isDarkTheme?z.pathDarkTheme:z.path)?!0:!1);if(u||h)return k.applyAnimatedIcon(d,z,k.iconset),m.return();if(h||
(O=z)==null||!O.lazyLoad){m.jumpTo(2);break}T=duI(z,k.isDarkTheme);k.applyStaticIcon(k.iconset,d,k.iconName,A,W);return m.yield(T,3);case 3:return m.yield(k.renderIcon(k.targetContainer,k.icon),4);case 4:return m.return();case 2:k.applyStaticIcon(k.iconset,d,k.iconName,A,W),_.EN(m)}})};
_.q.getContainer=function(A){var H,k=(H=tql(this.hostElement))==null?void 0:H.host;H=!!k&&!!k.polymerController;if(!A||H)return A?this.getTargetContainer(A,k):this.hostElement};
_.q.getTargetContainer=function(A,H){var k=_.Va(H).querySelector("#"+A);k||(A=new _.Ti("yt-icon container missing",H.is,A),_.I3(A));return k};
_.q.applyStaticIcon=function(A,H,k,d,W){W&&this.removeAnimatedIcon(H);this.removeIconShape();W=W&&!!this.iconType&&!!this.iconShapeData&&_.b("kevlar_use_wil_icons");try{W?this.applyIconShape(!1,H):A.applyIcon(H,k)}catch(z){this.handleError(z,d,H)}};
_.q.applyIconShape=function(A,H){this.iconset&&H&&(this.removeStaticIcon(this.iconset,H),A&&this.removeAnimatedIcon(H));A={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var k=_.r(this.iconShapeDataSignal);H=k.next().value;k=k.next().value;var d=_.r(this.renderingOptionsSignal),W=d.next().value;d=d.next().value;k(this.iconShapeData);d(A);if(!this.wizHasRendered)for(this.wizHasRendered=!0,A=_.r(qOv(H,W)).next().value;A.firstChild;)_.Va(this.hostElement).appendChild(A.firstChild)};
_.q.removeIconShape=function(){if(_.b("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.q.removeStaticIcon=function(A,H){A.removeIcon(H)};
_.q.applyAnimatedIcon=function(A,H,k){this.removeStaticIcon(k,A);this.removeIconShape();var d;k=this.animatedIconElement&&((d=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:d.type)===H.type;if(this.animatedIconElement&&k){this.animatedIconElement.polymerController.animatedIcon=H;var W;((W=this.animatedIconElement)==null?void 0:W.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(A),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=H,this.animatedIconElement.polymerController.active=this.active,_.b("delhi_modern_web_player_icons")?(H=AOm(A,this.icon)&&A.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=H?H.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.b("kevlar_use_wil_icons")?
A.insertBefore(this.animatedIconElement,A.childNodes[0]):(A=_.Va(A),A.insertBefore(this.animatedIconElement,A.childNodes[0]))};
_.q.removeAnimatedIcon=function(A){_.b("kevlar_use_wil_icons")?this.animatedIconElement&&A.contains(this.animatedIconElement)&&A.removeChild(this.animatedIconElement):(A=_.Va(A),this.animatedIconElement&&A.contains(this.animatedIconElement)&&A.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.q.handleError=function(A,H,k){_.Gg(A,this.iconName,H,k);H=siI(k,this.icon);var d=!1;window.location.href.includes("JpymaW6Lh2w")?d=!0:k._svgIcon&&(k=(k=k._svgIcon.parentNode)?k.tagName:"unknown",_.Gg(A,k),k==="YT-ICON"&&A.name==="NotFoundError"?d=!0:A.name==="NotFoundError"&&H&&(d=!0));d?_.Pq(A):_.I3(A)};
_.nP.Object.defineProperties(wX,{template:{configurable:!0,enumerable:!0,get:function(){if(Qui===void 0){var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;
phN===void 0&&(phN=document.createElement("template"));var d=phN;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Qui=A}A=Qui;return A}}});
wX.prototype.handlePropertyChange=wX.prototype.handlePropertyChange;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],wX.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",String)],wX.prototype,"icon",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],wX.prototype,"active",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],wX.prototype,"defaultToFilled",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],wX.prototype,"isAnimatedIcon",void 0);
_.E([_.C({value:24}),_.l("design:type",Number)],wX.prototype,"size",void 0);_.E([_.C({value:""}),_.l("design:type",String)],wX.prototype,"targetContainer",void 0);_.E([_.C(),_.l("design:type",Object)],wX.prototype,"animatedIconElement",void 0);_.E([_.C(),_.l("design:type",Object)],wX.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],wX.prototype,"ariaHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],wX.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],wX.prototype,"role",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],wX.prototype,"tabindex",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],wX.prototype,"title",void 0);_.E([_.C(),_.l("design:type",String)],wX.prototype,"style",void 0);_.E([_.C(),_.l("design:type",String)],wX.prototype,"iconFilter",void 0);_.E([_.C(),_.l("design:type",String)],wX.prototype,"gradientColor",void 0);
_.E([_.fF("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],wX.prototype,"handlePropertyChange",null);_.E([_.h6({is:"yt-icon",noInjection:!0})],wX);var rOX="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),BkC=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var tl1={};tl1.YtPlaintextBehavior=[_.fo,{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(A){A.preventDefault();A=A.clipboardData.getData("text/plain");document.execCommand("insertText",!1,A)},
preventRichTextFormatting_:function(A){_.wK&&(A=A.detail.keyboardEvent,A.stopImmediatePropagation(),A.preventDefault())}}];var Nzw;var MlA;var oh=function(){var A=_.a.apply(this,arguments)||this;A.ignoreShadyDom=!1;A.hasChange_=!1;A.hasSetTitle_=!1;A.useIOObserverForVisibilityLogging_=_.b("kevlar_use_vimio_behavior")&&_.pZ("INNERTUBE_CLIENT_NAME")==="WEB";A.ytFormattedStringObserverHandlerKeys_=void 0;return A};
_.I(oh,_.a);_.q=oh.prototype;_.q.created=function(){this.useIOObserverForVisibilityLogging_=_.b("kevlar_use_vimio_behavior")&&_.pZ("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.q.ready=function(){_.pZ("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_()};
_.q.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.q.detached=function(){this.unobserveIOObservers_()};
_.q.clearContents_=function(){for(var A=this.getRoot(),H=A.lastChild;H&&H.tagName!=="STYLE";){try{A.removeChild(H)}catch(k){break}H=A.lastChild}};
_.q.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var A=_.r(this.ytFormattedStringObserverHandlerKeys_),H=A.next();!H.done;H=A.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(H.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.q.resetForAttributedString=function(){var A=this.getRoot();!A.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),A.appendChild(this.ytAttributedStringElementRef))};
_.q.resetForFormattedString=function(){var A=this.getRoot(),H=A.querySelector("yt-attributed-string");H&&(this.ytAttributedStringElementRef=A.removeChild(H))};
_.q.textChanged=function(){this.textChanged_(this.text)};
_.q.textChanged_=function(A){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!A||!A.runs&&!A.simpleText;if(_.b("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var H=this.hostElement.firstChild;H&&H.nodeName==="FONT";){var k=H;H=H.nextSibling;this.hostElement.removeChild(k)}H=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
k=A.simpleText;var d;!k&&((d=A.runs)==null?void 0:d.length)===1&&this.isSimpleString_(A.runs[0])&&(k=A.runs[0].text);k!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.pZ("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(k!==void 0){try{H.textContent=k}catch(W){}H.textContent||(this.isEmpty=!0)}else A=A.runs,k!==void 0&&(A=[{text:k}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),A&&this.updateText_(A),
H.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.q.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)};
_.q.computeAriaLabel_=function(A){return A};
_.q.computeEllipsisTruncateStyling=function(A,H){return A&&!H};
_.q.computeUseAttributedString=function(A){return _.b("web_replace_formatted_with_attributed_string")&&UzI(A)&&!this.disableAttributedString&&!this.enableContentEditable};
_.q.setNodeStyle_=function(A,H){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.b("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?H.removeAttribute("dir"):H.setAttribute("dir","auto");H.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");H.style.color="";var k=null;this.noStyles||(A.bold&&(H.classList.add("bold"),k="bold"),A.deemphasize&&(H.classList.add("deemphasize"),k="deemphasize"),A.italics&&H.classList.add("italic"),
A.strikethrough&&H.classList.add("strikethrough"),A.errorUnderline&&(H.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),A.bracket&&H.classList.add("bracket"),A.textColor&&(H.style.color=_.iw(A.textColor)));k!==H.getAttribute("style-target")&&(k?H.setAttribute("style-target",k):H.removeAttribute("style-target"))};
_.q.setUpVisibilityLogging_=function(A,H){var k=this;this.setNodeTrackingParams_(A,H);var d;((d=H.data)==null?0:d.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(A=this.ytRendererBehavior.visibilityObserver.observe(H,function(W){var z=k.ytRendererBehavior.getVisibilityLogger();z&&z.reportShown(W)},this.ytRendererBehavior.visibilityOptionVisible_),H=this.ytRendererBehavior.visibilityObserver.observe(H,function(W){var z=k.ytRendererBehavior.getVisibilityLogger();
z&&z.reportHidden(W)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(A),this.ytFormattedStringObserverHandlerKeys_.push(H))};
_.q.setNodeTrackingParams_=function(A,H){H.data||(H.data={});if((A=A.loggingDirectives?A.loggingDirectives.trackingParams:null)||H.data.trackingParams)H.data.trackingParams=A};
_.q.computeHasLinkOnly_=function(A){return!(!A||A.length!==1||this.noEndpoints||!A[0].navigationEndpoint)};
_.q.getRoot=function(){var A=this.buildScopeDomOptions();return this.enableContentEditable?_.Va(_.Va(this.hostElement,A).querySelector("[contenteditable]")):_.Va(this.hostElement,A)};
_.q.fixContenteditableScope=function(){var A=function(H){H&&(H.nodeType===1&&H.classList&&(H.classList.add("style-scope"),H.classList.add("yt-formatted-string")),H.childNodes&&H.childNodes.forEach(function(k){A(k)}))};
A(this.getRoot())};
_.q.updateText_=function(A){for(var H=A.length,k=this.getRoot(),d=k.firstChild;d&&d.nodeName==="STYLE";)d=d.nextSibling;for(var W=0;W<H&&d;){var z=A[W],u=_.b("remove_cr_char")&&z.text?z.text.replace("\r",""):z.text;if(this.isSimpleString_(z)&&!this.useMixedDirectionFormattedStrings)if(d.nodeName==="#text"){d.textContent!=u&&(d.textContent=u);W++;d=d.nextSibling;continue}else break;if(_.L(z,ew))break;else if(!this.noEndpoints&&z.navigationEndpoint){if(d.nodeName!=="A")break;this.setDataOnAnchor_(d,
z.navigationEndpoint)}else if(d.nodeName!=="SPAN")break;this.setNodeStyle_(z,d);this.setUpVisibilityLogging_(z,d);d.textContent!=u&&(d.textContent=u);W++;d=d.nextSibling}if(d)for(z=k.lastChild,d=W?d.previousSibling:null;z&&z!=d;){try{k.removeChild(z)}catch(B){break}z=k.lastChild}W!==H&&this.addTextNodes_(A,W)};
_.q.addTextNodes_=function(A,H){for(var k=document.createDocumentFragment(),d=A.length;H<d;H++){var W=A[H],z=_.b("remove_cr_char")&&W.text?W.text.replace("\r",""):W.text;if(this.isSimpleString_(W)&&!this.useMixedDirectionFormattedStrings)k.appendChild(document.createTextNode(z));else{var u=_.L(W,ew);if(u){if(u.image){var B=document.createElement("img");u.isCustomEmoji||B.classList.add("small-emoji");B.classList.add("emoji");u.isCustomEmoji&&(B.dataset.emojiId=u.emojiId);B.src=_.C3(u.image.thumbnails,
this.emojiSize);(W=this.get("image.accessibility.accessibilityData.label",u))?B.alt=W:u.shortcuts&&u.shortcuts.length>0?B.alt=u.shortcuts[0]:u.emojiId&&(B.alt=u.emojiId);k.appendChild(B);this.hasEmoji=!0}}else!this.noEndpoints&&W.navigationEndpoint?(B=document.createElement("a"),B.classList.add("yt-simple-endpoint"),B.setAttribute("spellcheck","false"),this.setDataOnAnchor_(B,W.navigationEndpoint)):B=document.createElement("span"),this.setNodeStyle_(W,B),this.setUpVisibilityLogging_(W,B),B.appendChild(document.createTextNode(z)),
k.appendChild(B)}}this.getRoot().appendChild(k)};
_.q.isSimpleString_=function(A){return(this.noEndpoints||!A.navigationEndpoint)&&!_.L(A,ew)&&(this.noStyles||!(A.bold||A.deemphasize||A.italics||A.strikethrough||A.errorUnderline||A.bracket||A.textColor))&&!A.loggingDirectives};
_.q.getRawText=function(){return _.PK(this.text)};
_.q.getFirstRunText=function(){var A;if(((A=this.text)==null?0:A.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.q.setFirstRunText=function(A){var H;((H=this.text)==null?0:H.runs)&&this.text.runs[0]&&(this.text.runs[0].text=A,this.textChanged_(this.text))};
_.q.setDataOnAnchor_=function(A,H){var k=this;!_.b("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(H)||this.isSignalServiceEndpoint_(H)?(A.onclick=this.serviceEndpointHandler_(H),A2(A,"#")):F5A({text:this.text,command:H},function(){UFX(A,H,k.target)})};
_.q.isServiceEndpoint_=function(A){var H;return!((H=_.L(A==null?void 0:A.commandMetadata,_.wn))==null||!H.sendPost)};
_.q.isSignalServiceEndpoint_=function(A){return!!_.L(A,_.fH)};
_.q.serviceEndpointHandler_=function(A){var H=this;return function(k){_.tx(H.hostElement,[A]);k.preventDefault()}};
_.q.overrideAriaLabelChanged_=function(){var A=this.getRoot();this.enableContentEditable&&A&&A.setAttribute("aria-label",this.overrideAriaLabel)};
_.q.enableContentEditableChanged_=function(){var A=this,H=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),H=_.Va(this.hostElement,H),!H.lastChild||H.lastChild instanceof HTMLElement&&H.lastChild.id!=="contenteditable-root"){var k=document.createElement("div");k.id="contenteditable-root";k.setAttribute("contenteditable","true");k.setAttribute("dir","auto");k.onfocus=function(){A.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
H.appendChild(k);this.overrideAriaLabel&&k.setAttribute("aria-label",this.overrideAriaLabel)}}else k=_.EJ(this.hostElement).firstChild,k instanceof HTMLElement&&k.id==="contenteditable-root"&&_.Va(this.hostElement,H).removeChild(k)};
_.q.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.q.getNodesForVisibilityLogging_=function(){return _.Ne(this.getRoot().childNodes,function(A){var H;return!((H=A.data)==null||!H.trackingParams)})};
_.q.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.q.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var A=this.ytRendererBehavior.getVisibilityLogger();A&&this.getNodesForVisibilityLogging_().forEach(function(H){A.reportShown(H)})}};
_.q.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var A=this.ytRendererBehavior.getVisibilityLogger();A&&this.getNodesForVisibilityLogging_().forEach(function(H){A.reportHidden(H)})}};
_.nP.Object.defineProperties(oh.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.b("enable_mixed_direction_formatted_strings")}}});
oh.prototype.enableContentEditableChanged_=oh.prototype.enableContentEditableChanged_;oh.prototype.overrideAriaLabelChanged_=oh.prototype.overrideAriaLabelChanged_;oh.prototype.ellipsisTruncateChanged_=oh.prototype.ellipsisTruncateChanged_;oh.prototype.textChanged=oh.prototype.textChanged;_.E([_.P(tl1.YtPlaintextBehavior),_.l("design:type",Object)],oh.prototype,"ytPlaintextBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],oh.prototype,"ytComponentBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],oh.prototype,"text",void 0);_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"noEndpoints",void 0);_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"noStyles",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],oh.prototype,"isDarkTheme",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],oh.prototype,"splitLines",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],oh.prototype,"forceDefaultStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],oh.prototype,"ellipsisTruncate",void 0);_.E([_.C(),_.l("design:type",Object)],oh.prototype,"ignoreShadyDom",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.l("design:type",Boolean)],oh.prototype,"ellipsisTruncateStyling",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.l("design:type",String)],oh.prototype,"ariaLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],oh.prototype,"isEmpty",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.l("design:type",Boolean)],oh.prototype,"hasLinkOnly_",void 0);_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"hasEmoji",void 0);_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"disableAttributedString",void 0);_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"isOverlay",void 0);_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"linkInheritColor",void 0);
_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"noPreWrap",void 0);_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"userInput",void 0);_.E([_.C({value:16}),_.l("design:type",Number)],oh.prototype,"emojiSize",void 0);_.E([_.C(),_.l("design:type",String)],oh.prototype,"target",void 0);_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"enableContentEditable",void 0);_.E([_.C(),_.l("design:type",String)],oh.prototype,"overrideAriaLabel",void 0);
_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"respectHtmlDir",void 0);_.E([_.C(),_.l("design:type",Boolean)],oh.prototype,"respectLangDir",void 0);_.E([_.G("plaintextOnly"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oh.prototype,"useMixedDirectionFormattedStrings",null);_.E([_.C({computed:"computeUseAttributedString(text)"}),_.l("design:type",Boolean)],oh.prototype,"useYtAttributedString",void 0);
_.E([_.fF("text"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oh.prototype,"textChanged",null);_.E([_.fF("ellipsisTruncate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oh.prototype,"ellipsisTruncateChanged_",null);_.E([_.fF("overrideAriaLabel"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oh.prototype,"overrideAriaLabelChanged_",null);
_.E([_.fF("enableContentEditable"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oh.prototype,"enableContentEditableChanged_",null);_.E([_.h6({is:"yt-formatted-string",disableElementRegistration:!0})],oh);
_.Q(oh,"yt-formatted-string",function(){if(MlA===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Nzw===void 0&&(Nzw=document.createElement("template"));var d=Nzw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);MlA=A}A=MlA;return A});var n_i;var Z7A;var fXZ;var whA;var $O=function(){var A=_.a.apply(this,arguments)||this;A.focused=!1;A.disabled=!1;A.isOverlay=!1;return A};
_.I($O,_.a);$O.prototype.triggerDown=function(){if(!this.disabled){_.UJ(this.hostElement,"down",!0);var A;(A=this.currentAnimation)==null||A.cancel()}};
$O.prototype.triggerUp=function(){if(!this.disabled){_.UJ(this.hostElement,"down",!1);var A=this.fillElement;var H=this.strokeElement;typeof GroupEffect==="function"?(A=new GroupEffect([qkI(A),rJf(H)]),A=new Animation(A,document.timeline)):A=new JI0(A,H);this.currentAnimation=A;var k;(k=this.currentAnimation)==null||k.play()}};
_.E([_.ol(".stroke"),_.l("design:type",HTMLElement)],$O.prototype,"strokeElement",void 0);_.E([_.ol(".fill"),_.l("design:type",HTMLElement)],$O.prototype,"fillElement",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$O.prototype,"focused",void 0);_.E([_.C(),_.l("design:type",Object)],$O.prototype,"disabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$O.prototype,"isOverlay",void 0);_.E([_.h6({is:"yt-interaction",disableElementRegistration:!0})],$O);
_.Q($O,"yt-interaction",function(){if(whA===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;fXZ===void 0&&(fXZ=document.createElement("template"));var d=fXZ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);whA=A}A=whA;return A},{mode:2});var A0=function(){return _.a.apply(this,arguments)||this};
_.I(A0,_.a);_.q=A0.prototype;_.q.ready=function(){var A=this,H=_.Va(this.hostElement).querySelector("#button");H.addEventListener("focus",function(){lrZ||(lrZ=new UAA);A.keyboardFocused=lrZ.isKeyBoardInUse()});
H.addEventListener("blur",function(){A.keyboardFocused=!1;A.rippleUp_()})};
_.q.computeTabIndex_=function(A){return A?-1:0};
_.q.computeButtonAriaPressed_=function(A){if(this.toggleable)return A?"true":"false"};
_.q.rippleDown_=function(){_.Va(this.hostElement).querySelector("#interaction").triggerDown()};
_.q.rippleUp_=function(){_.Va(this.hostElement).querySelector("#interaction").triggerUp()};
_.q.onPressedChanged_=function(){var A=_.EJ(_.Va(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.EJ(_.Va(this.hostElement).querySelector("#button")).children[0];A&&(A.active=this.pressed)};
A0.prototype.onPressedChanged_=A0.prototype.onPressedChanged_;A0.prototype.rippleUp_=A0.prototype.rippleUp_;A0.prototype.rippleDown_=A0.prototype.rippleDown_;_.E([_.C(),_.l("design:type",String)],A0.prototype,"label",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],A0.prototype,"disabled",void 0);_.E([_.C(),_.l("design:type",Boolean)],A0.prototype,"pressed",void 0);_.E([_.C(),_.l("design:type",Object)],A0.prototype,"toggleable",void 0);
_.E([_.C(),_.l("design:type",Boolean)],A0.prototype,"untabbable",void 0);_.E([_.C(),_.l("design:type",Boolean)],A0.prototype,"keyboardFocused",void 0);_.E([_.Ze("down"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],A0.prototype,"rippleDown_",null);_.E([_.Ze("up"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],A0.prototype,"rippleUp_",null);
_.E([_.fF("pressed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],A0.prototype,"onPressedChanged_",null);_.E([_.h6({is:"yt-icon-button",disableElementRegistration:!0})],A0);
_.Q(A0,"yt-icon-button",function(){if(Z7A===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;n_i===void 0&&(n_i=document.createElement("template"));var d=n_i;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Z7A=A}A=Z7A;return A},{mode:2});var o_A;var $hA=function(){var A=document.body,H=A.appendChild;if(o_A===void 0){var k=document.createElement("template");_.Y(k,'\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>');
o_A=k}k=o_A;H.call(A,k.content)};
document.body?$hA():window.addEventListener("DOMContentLoaded",$hA);var AQk=_.XO(["aria-"]),Hf={};Hf.YtRenderButtonBehavior=[_.n.YtRendererBehavior,_.MY.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!!_.wj().resolve(_.fZ(_.ah))&&_.b("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 A=this.computeHref_(this.endpoint,!0);A?A2(this.elements_.endpoint,A):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){A=this.buttonClass.split(" ");A=_.r(A);for(var H=A.next();!H.done;H=A.next())H=H.value,_.UJ(this.hostElement,H,!0),this.elements_.button&&_.UJ(this.elements_.button,H,!0),this.elements_.text&&_.UJ(this.elements_.text,H,!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&&(A=null,this.buttonAccessibility&&(A=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=A:A?_.R4([_.y6(AQk)],this.elements_.button,"aria-label",A):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var A=_.wj().resolve(_.fZ(_.ah));A&&(this.keyboardFocused=A.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Db("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,_.WB(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.WB(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(A,H){if(H)for(A=H.split(" "),A=_.r(A),H=A.next();!H.done;H=A.next())H=H.value,_.UJ(this.hostElement,H,!1),this.elements_.button&&_.UJ(this.elements_.button,H,!1),this.elements_.text&&_.UJ(this.elements_.text,H,!1)},
buttonIconChanged_:function(A){this.elements_.icon?A?(this.elements_.icon.icon=A,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.WB(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.lw(this.hostElement,"is-paper-button-with-icon",!1)):A&&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"&&_.WB(this.elements_.button).appendChild(this.elements_.icon):_.WB(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.lw(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(A){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,A){var H=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(A){case "yt_icon_button_with_label":H=!0;_.UJ(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();A=_.WB(this.elements_.button).firstElementChild;
this.elements_.icon=A;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.WB(this.elements_.endpoint).appendChild(this.elements_.button);_.WB(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Db("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;_.WB(this.elements_.button).appendChild(this.elements_.text);_.WB(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":H=!0,this.elements_.button=this.getYtIconButton_(),A=_.WB(this.elements_.button).firstElementChild,this.elements_.icon=A,this.setIconActive_(this.elements_.icon),
_.WB(this.elements_.endpoint).appendChild(this.elements_.button)}_.lw(this.hostElement,"is-icon-button",H);_.lw(this.hostElement,"is-paper-button",!H);_.lw(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 k;_.Va((k=this.container.hostElement)!=null?k:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.WB(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(A){if(A!=void 0||this.disabled)this.disabled=A,this.elements_.button&&(this.elements_.button.disabled=A)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(A){_.b("kevlar_system_icons")&&A&&this.data&&(this.data.isSelected!==void 0?A.active=this.data.isSelected:this.data.isToggled!==void 0&&(A.active=this.data.isToggled))},
observeBasicPalette_:function(A){_.qN(this.hostElement,A)},
disabledChanged_:function(A){this.data&&this.set("data.isDisabled",A)},
onYtButtonTap_:function(A){if(this.disabled)A.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.tx(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(A=this.disableCommandHandlerOverride,!this.data||!this.data.command||A||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.b("handle_service_request_actions")||_.tx(this.hostElement,[this.serviceEndpoint]),
_.Ed(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.b("handle_service_request_actions")?(A=[],this.serviceEndpoint&&A.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&A.push(this.data.command),A.length&&_.NT(this.hostElement,A,this.hostElement)):this.data&&this.data.command&&(A=this.data.command,A.accountUnlinkCommand||A.accountLinkCommand||A.insertAdCommand||A.insertHighlightMarkerCommand||
A.createLivestreamHighlightClipCommand||A.getVideoUploadFeedbackCommand||A.musicDeletePrivatelyOwnedEntityCommand||A.ypcCancelRecurrenceEndpoint||A.getMultiSelectCommandEndpoint?_.tx(this.hostElement,[A]):_.NT(this.hostElement,[A],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 A,H=_.Va((A=this.container.hostElement)!=null?A:this.container);H.lastChild&&H.lastChild.tagName!="STYLE";)try{H.removeChild(H.lastChild)}catch(k){break}},
getYtIconButton_:function(){var A=this.reuseEnabled_()?_.Db("yt-icon-button"):document.createElement("yt-icon-button"),H=_.WB(A).firstElementChild;if(H&&H.is!="yt-icon"){for(H=_.WB(A);H.lastChild;)H.removeChild(H.lastChild);H=null}H||(H=this.getIcon_(),this.setIconActive_(H),_.WB(A).appendChild(H));return A},
reuseEnabled_:function(){return _.b("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Db("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Db("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.HDA={};
_.HDA.YtButtonBehavior=[Hf.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var A=this.data;A&&(this._setEndpoint(this.computeEndpoint_(A)),this._setServiceEndpoint(this.computeServiceEndpoint_(A)),this._setCommand(this.computeCommand_(A)),this._setButtonIcon(this.computeButtonIcon_(A)),this._setButtonText(this.computeButtonText_(A,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(A)),this._setButtonTooltip(this.computeTooltip_(A)),this._setButtonClass(this.computeButtonClass_(A)),this._setIconPositionType(this.computeIconPositionType_(A)),this.updateRenderedElements())},
setPressedState:function(A){var H;if((H=this.elements_)==null?0:H.button)this.elements_.button.pressed=!!A},
computeIconPositionType_:function(A){return A&&A.iconPosition||null},
computeEndpoint_:function(A){var H=A&&A.navigationEndpoint,k=this.get("data.command.commandMetadata.webCommandMetadata.url"),d=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:A&&A.command&&A.command.modalEndpoint?A.command:k&&!d&&A.command?A.command:null},
computeServiceEndpoint_:function(A){var H=A&&A.serviceEndpoint,k=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:k&&A.command?A.command:null},
computeCommand_:function(A){return A&&A.command||null},
computeButtonIcon_:function(A){return A&&A.icon&&A.icon.iconType?_.N0(A.icon.iconType):null},
computeButtonText_:function(A,H){return!H&&A&&A.text||null},
computeAccessibility_:function(A){return this.get("accessibilityData.accessibilityData",A)||A&&A.accessibility||(A&&A.text?{label:this.getSimpleString(A.text)}:null)},
computeTooltip_:function(A){return A?A.isDisabled&&A.disabledTooltip||A.tooltip||null:null},
computeButtonClass_:function(A){var H=A&&A.style?A.style.toLowerCase().replace(/_/g,"-")+" ":"";H+=A&&A.size?A.size.toLowerCase().replace(/_/g,"-")+" ":"";A.colorData&&A.colorData.basicColorPaletteData&&A.colorData.basicColorPaletteData.borderColor&&(H+="palette-with-border");return H.trim()}}];var rH={};var sA1;var kpQ;var dSN,WZw=function(){return dSN!==void 0?dSN:dSN=document.createElement("template")};
document.head.appendChild(WZw().content);var zTi;var q1A,rQA=function(){return q1A!==void 0?q1A:q1A=document.createElement("template")};
document.head.appendChild(rQA().content);var unA;var BVA,eTA=function(){return BVA!==void 0?BVA:BVA=document.createElement("template")};
document.head.appendChild(eTA().content);var xSA;var iDG=document.head,hTG=iDG.appendChild,ODJ;if(xSA===void 0){var RTA=document.createElement("template");_.Y(RTA,"\x3c!--css-build:shady--\x3e");RTA.content.insertBefore(eTA().content.cloneNode(!0),RTA.content.firstChild);xSA=RTA}ODJ=xSA;hTG.call(iDG,ODJ.content);var TVA=document.head,mSQ=TVA.appendChild,JQ1;if(unA===void 0){var gQw=document.createElement("template");_.Y(gQw,"\x3c!--css-build:shady--\x3e");gQw.content.insertBefore(rQA().content.cloneNode(!0),gQw.content.firstChild);unA=gQw}JQ1=unA;mSQ.call(TVA,JQ1.content);var bDp=document.head,LZ0=bDp.appendChild,vQp;if(zTi===void 0){var yQ1=document.createElement("template");_.Y(yQ1,"\x3c!--css-build:shady--\x3e");yQ1.content.insertBefore(WZw().content.cloneNode(!0),yQ1.content.firstChild);zTi=yQ1}vQp=zTi;LZ0.call(bDp,vQp.content);var jAG;_.uL("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");jAG=_.b("web_button_rework")&&_.Q$("BUTTON_REWORK")||_.b("web_button_rework_with_live");_.sp=function(){return _.a.apply(this,arguments)||this};
_.I(_.sp,_.a);_.sp.prototype.created=function(){this.openPopupConfig=_.pZ("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.sp.prototype.onYtNavigate_=function(A){var H=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);H&&(this.ytOpenPopupBehavior.openPopup(H),A.stopPropagation(),A.preventDefault())};
_.nP.Object.defineProperties(_.sp,{template:{configurable:!0,enumerable:!0,get:function(){if(kpQ===void 0){var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
var H=A.content,k=H.insertBefore;sA1===void 0&&(sA1=document.createElement("template"));var d=sA1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);kpQ=A}A=kpQ;return A}}});
_.sp.prototype.onYtNavigate_=_.sp.prototype.onYtNavigate_;_.E([_.P(_.NY.YtOpenPopupBehavior),_.l("design:type",Object)],_.sp.prototype,"ytOpenPopupBehavior",void 0);_.E([_.P(_.HDA.YtButtonBehavior),_.l("design:type",Object)],_.sp.prototype,"ytButtonBehavior",void 0);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],_.sp.prototype,"onYtNavigate_",null);
_.E([_.h6({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:jAG})],_.sp);var Ijk;var Y1A=_.b("web_button_rework")&&_.Q$("BUTTON_REWORK")||_.b("web_button_rework_with_live"),kT=function(){var A=_.a.apply(this,arguments)||this;A.isPressed=!1;A.forceIconButton=!1;A.forceIconOnly=!1;A.forceModernIconButton=!1;A.skipCommandHandling=!1;A.alignByText=!1;A.fitToVisibleBounds=!0;A.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};A.onTap=function(H){_.Ed(A.hostElement,"yt-service-request-sent-button-renderer",H)};
return A};
_.I(kT,_.a);_.q=kT.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.q.onClick=function(A){var H,k=this.disabled||((H=this.data)==null?void 0:H.isDisabled);H=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");k&&H&&A.stopPropagation()};
_.q.computeIcon=function(){var A,H,k=(A=this.data)==null?void 0:(H=A.icon)==null?void 0:H.iconType;if(k)return _.N0(k)};
_.q.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.q.handleUpdateButtonAction=function(A){A=_.L(A,jSj);var H=_.L(A==null?void 0:A.updatedButton,_.gN);if(this.data&&A&&H){var k=this.data;k.targetId&&A.targetId&&k.targetId===A.targetId&&(this.data=H)}};
_.nP.Object.defineProperties(kT.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var A=this;if(this.data){var H=RxW({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Ed(A.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Ed(A.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});H.alignByText=this.alignByText;return H}}}});
_.nP.Object.defineProperties(kT,{template:{configurable:!0,enumerable:!0,get:function(){if(Ijk===void 0){var A=document.createElement("template");_.Y(A,'\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>');Ijk=A}A=Ijk;return A}}});
kT.prototype.onClick=kT.prototype.onClick;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],kT.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],kT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kT.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],kT.prototype,"isPressed",void 0);
_.E([_.C(),_.l("design:type",Object)],kT.prototype,"forceIconButton",void 0);_.E([_.C(),_.l("design:type",Object)],kT.prototype,"forceIconOnly",void 0);_.E([_.C(),_.l("design:type",Object)],kT.prototype,"forceModernIconButton",void 0);_.E([_.C(),_.l("design:type",Object)],kT.prototype,"skipCommandHandling",void 0);_.E([_.C(),_.l("design:type",Object)],kT.prototype,"alignByText",void 0);_.E([_.C(),_.l("design:type",Object)],kT.prototype,"buttonTooltipPosition",void 0);
_.E([_.C(),_.l("design:type",Object)],kT.prototype,"fitToVisibleBounds",void 0);_.E([_.C({computed:"computeTooltip(data)"}),_.l("design:type",Object)],kT.prototype,"tooltip",void 0);_.E([_.C(),_.l("design:type",Object)],kT.prototype,"overrides",void 0);_.E([_.C(),_.l("design:type",Boolean)],kT.prototype,"disabled",void 0);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],kT.prototype,"onClick",null);
_.E([_.G("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.l("design:type",Object),_.l("design:paramtypes",[])],kT.prototype,"computedButtonShape",null);_.E([_.h6({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Y1A,cssBuildOptOut:!0}),_.h6({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Y1A,cssBuildOptOut:!0})],kT);var PON;var Gp0;var ds=function(){var A=_.a.apply(this,arguments)||this;A.empty_=!0;A.loadTime=Infinity;A.pendingPaint=!1;A.hasChange_=!1;A.oldThumbnail_=null;A.oldDelayedSrc_="";A.objectURL_=null;return A};
_.I(ds,_.a);_.q=ds.prototype;_.q.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.q.ready=function(){var A=this.shouldShowPlaceholder_();_.UJ(this.hostElement,"no-transition",!0);A&&this.hostElement.classList.add("with-placeholder")};
_.q.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.q.isThumbPreloaded_=function(A){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",A)};
_.q.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||FZ1};
_.q.computeThumbnailSrc_=function(A){return A&&A.thumbnails?_.C3(A.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.q.computeAlt_=function(){var A=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&A||""};
_.q.thumbnailChanged_=function(){var A=_.r([this.thumbnail,this.oldThumbnail_]),H=A.next().value;A=A.next().value;this.oldThumbnail_=H;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(A=this.computeThumbnailSrc_(A),this.computeThumbnailSrc_(H)===A))return;_.b("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(H)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):H&&_.Q$("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.No(this,this.onReload_):_.No(this,this.onShow_):this.resetImage_();H&&(this.hostElement.style.opacity=""+H.opacity)}};
_.q.delayedSrcChanged_=function(){var A=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===A||this.resetImage_()};
_.q.setSrc_=function(A){A?(_.Va(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Va(this.hostElement).querySelector("#img").src=A):(_.Va(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.q.resetImage_=function(){mSv(this.hostElement);this.empty_=!0;this.setSrc_(FZ1);this.ytRendererBehavior.invalidate(!1)};
_.q.observePlaceholderColor_=function(){var A=this.thumbnail&&this.thumbnail.placeholderColor;A?this.hostElement.style.backgroundColor=_.iw(A):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.q.onLoad_=function(){_.Va(this.hostElement).querySelector("#img").src&&_.Va(this.hostElement).querySelector("#img").src!==FZ1&&(TVX(this.hostElement),this.notifyOnLoaded&&_.Ed(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.q.onError_=function(){var A=this;if(_.b("web_use_cache_for_image_fallback"))jAr(_.Va(this.hostElement).querySelector("#img").src).then(function(H){A.objectURL_=_.wO(H).toString();A.setSrc_(A.objectURL_)}).catch(function(){_.b("kevlar_woffle_fallback_image")&&A.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.q.onPrescanVisible=function(){this.onShow_()};
_.q.onVisible=function(){if(_.b("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.q.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var A=this.computeSrc_();A!==_.Va(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(A))}};
_.q.onReload_=function(){this.empty_=!1;var A=this.computeSrc_();A!==_.Va(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(A))};
_.q.shouldShowPlaceholder_=function(){return _.b("kevlar_thumbnail_bg")};
ds.prototype.observePlaceholderColor_=ds.prototype.observePlaceholderColor_;ds.prototype.delayedSrcChanged_=ds.prototype.delayedSrcChanged_;ds.prototype.thumbnailChanged_=ds.prototype.thumbnailChanged_;_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],ds.prototype,"alt",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ds.prototype,"ariaHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],ds.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ds.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],ds.prototype,"id",void 0);_.E([_.P(_.bU.YtVisibilityBehavior),_.l("design:type",Object)],ds.prototype,"ytVisibilityBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",String)],ds.prototype,"delayedSrc",void 0);
_.E([_.C(),_.l("design:type",Object)],ds.prototype,"thumbnail",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],ds.prototype,"loaded",void 0);_.E([_.C(),_.l("design:type",Boolean)],ds.prototype,"notifyOnLoaded",void 0);_.E([_.C(),_.l("design:type",Number)],ds.prototype,"height",void 0);_.E([_.C(),_.l("design:type",Number)],ds.prototype,"width",void 0);_.E([_.C({value:function(){return"width"}}),
_.l("design:type",String)],ds.prototype,"dimension",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ds.prototype,"fit",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ds.prototype,"fitHeight",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ds.prototype,"fitWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],ds.prototype,"objectFit",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],ds.prototype,"objectPosition",void 0);_.E([_.C(),_.l("design:type",String)],ds.prototype,"preferredThumbnail",void 0);_.E([_.C({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.l("design:type",String)],ds.prototype,"alt_",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],ds.prototype,"sharedTooltipText",void 0);
_.E([_.C(),_.l("design:type",Boolean)],ds.prototype,"ftlEligible",void 0);_.E([_.C({value:void 0}),_.l("design:type",String)],ds.prototype,"observeHiddenOption",void 0);_.E([_.C({value:"observe_once"}),_.l("design:type",String)],ds.prototype,"observePrescanOption",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ds.prototype,"roundedContainer",void 0);
_.E([_.s6("thumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ds.prototype,"thumbnailChanged_",null);_.E([_.s6("delayedSrc"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ds.prototype,"delayedSrcChanged_",null);_.E([_.fF("thumbnail.placeholderColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ds.prototype,"observePlaceholderColor_",null);
_.E([_.h6({is:"yt-img-shadow",disableElementRegistration:!0})],ds);var FZ1=_.Q$("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Vu()(ds,"yt-img-shadow",function(){if(Gp0===void 0){var A=document.createElement("template");_.Y(A,'\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">');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;PON===void 0&&(PON=document.createElement("template"));var d=PON;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Gp0=A}A=Gp0;return A},{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 Xvm;_.Wf=new _.SE("SCREEN_MANAGER_TOKEN");Xvm=new _.SE("LOG_INITIAL_SCREEN_TOKEN");var XdZ=eO({entities:{}});_.z2=xE(XdZ)(XdZ.entities,{selectSfvAudioItemPlaybackState:function(A,H){var k,d;A=(d=_.Mw(A,"sfvAudioItemCurrentlyPlayingEntity",H))!=null?d:void 0;return(k=A==null?void 0:A.sfvAudioItemPlaybackState)!=null?k:void 0},
playlistLoopStateEntitySelector:JOC,toggleMenuServiceItemEntitySelector:g$r});_.qc=_.c(function(A){function H(Z){return _.L(Z,_.vY)}
function k(){var Z=d().isTogglingDisabled||y()&&d().toggledIsTogglingDisabled,WV=Z||J()?y():!y();X(WV);K(!1);if(!Z){var hA;(hA=u)==null||hA(!!WV)}var qv;((qv=z)==null?0:qv())||_.wN(_.wj().resolve(_.Wf),d().trackingParams);var eN;if(!WV||!H(d().defaultButtonViewModel)||(eN=z)!=null&&eN()){var mr;!H(d().toggledButtonViewModel)||((mr=z)==null?0:mr())||_.wN(_.wj().resolve(_.Wf),H(d().toggledButtonViewModel).trackingParams)}else _.wN(_.wj().resolve(_.Wf),H(d().defaultButtonViewModel).trackingParams)}
var d=A.data,W=A.buttonShapeOverrides,z=A.disableExplicitClickLogging,u=A.onToggle,B=A.style,h=A.useOutlinedIcon,O=A.className,T=function(){var Z,WV;return y()?(Z=A.animatedTextPropsToggled)==null?void 0:Z.call(A):(WV=A.animatedTextPropsDefault)==null?void 0:WV.call(A)},m=_.be(function(){return T()?Object.assign({},T(),{shouldAnimate:D()}):void 0},void 0,"Zp4uoe"),J=function(){var Z;
return((Z=p())==null?void 0:Z.isToggled)!==void 0},g=_.r(_.C0(function(){var Z,WV,hA;
return J()?(Z=p())==null?void 0:Z.isToggled:(hA=W==null?void 0:(WV=W())==null?void 0:WV.toggled)!=null?hA:d().isToggled})),v=g.next().value;
g=g.next().value;var y=v,X=g;g=_.r(_.C0(function(){var Z,WV;return(Z=A.animatedTextPropsToggled)==null?void 0:(WV=Z.call(A))==null?void 0:WV.shouldAnimate}));
v=g.next().value;g=g.next().value;var D=v,K=g;v=_.r(_.RV(!1,void 0,"mq3Zfe"));var N=v.next().value,U=v.next().value,p=_.oy(function(Z){a:{var WV=d().entityKey,hA=d().toggledStateEntitySelectorType;if(hA)switch(hA){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!WV)break;Z=_.z2.selectSfvAudioItemPlaybackState(Z,WV);if(Z==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Z={isToggled:!0};break a}if(Z){Z={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":Z={isToggled:_.yOV(Z).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":Z={isToggled:_.yOV(Z).includes("engagement-panel-live-chat-item-section")};break a;default:_.Pq(new _.Ti("Error: entitySelectorType defined but not matched in selector.",Z,hA))}Z=void 0}return Z}),M=function(){return Object.assign({},W==null?void 0:W(),{onToggle:k,
toggleable:!0,toggled:y(),focused:N()})};
return _.x("toggle-button-view-model",{"on:focusin":_.lc(function(){var Z=_.wj().resolve(_.fZ(_.ah));Z&&U(Z.isKeyBoardInUse());return!1}),
"on:focusout":_.lc(function(){U(!1);return!1})},_.x(_.R,{cond:function(){return y()?H(d().toggledButtonViewModel):H(d().defaultButtonViewModel)},
then:function(Z){return _.x(_.U7,{data:Z,className:O,style:B,useOutlinedIcon:h,buttonOverrides:M,animatedTextProps:m})}}))},"fa");
_.qc.idomCompat={callbacks:{onToggle:!0}};_.Sw(_.c(function(A){return _.x("yt-toggle-button-view-model",{class:function(){var H;return(H=A.scopingClassName)==null?void 0:H.call(A)}},_.x(_.qc,{data:function(){var H;
return(H=A.data)==null?void 0:H.call(A)},
buttonShapeOverrides:function(){var H;return(H=A.overrides)==null?void 0:H.call(A)},
animatedTextPropsDefault:function(){var H;return(H=A.animatedTextPropsDefault)==null?void 0:H.call(A)},
animatedTextPropsToggled:function(){var H;return(H=A.animatedTextPropsToggled)==null?void 0:H.call(A)},
disableExplicitClickLogging:function(){var H;return(H=A.disableExplicitClickLogging)==null?void 0:H.call(A)},
onToggle:function(H){var k;return(k=A.onToggle)==null?void 0:k.call(A,H)},
style:function(){var H;return(H=A.style)==null?void 0:H.call(A)},
useOutlinedIcon:function(){var H;return(H=A.useOutlinedIcon)==null?void 0:H.call(A)},
className:function(){var H;return(H=A.className)==null?void 0:H.call(A)}}))},"ga"),"yt-toggle-button-view-model",{props:{data:_.Ih,
buttonShapeOverrides:_.Ih,overrides:_.Ih,animatedTextPropsDefault:_.Ih,animatedTextPropsToggled:_.Ih,disableExplicitClickLogging:_.Ih,onToggle:_.Fc,style:_.Ih,useOutlinedIcon:_.Ih,className:_.Ih,scopingClassName:_.Ih}});var rs=function(){return _.a.apply(this,arguments)||this};
_.I(rs,_.a);rs.prototype.onTap=function(A){A.stopPropagation();A=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.O5("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:A})):this.ytLiveChatReduxBehavior.dispatch(_.kH("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:A}))};
_.nP.Object.defineProperties(rs.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.engagementState)==null?void 0:A.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=_.L(this.data.toggleButton,_.jG),H;if(Number(((H=this.likeCountState)==null?void 0:H.likeCountIfIndifferentNumber)||"0")===0){var k;H=((k=this.data.likeCountPlaceholder)==null?void 0:k.content)||""}else{var d,W,z;H=((d=this.likeCountState)==null?void 0:(W=d.likeCountIfIndifferent)==null?void 0:W.content)||((z=this.data.likeCountPlaceholder)==null?void 0:z.content)||""}var u,B;k=((u=this.likeCountState)==null?void 0:(B=
u.likeCountIfLiked)==null?void 0:B.content)||"1";u=_.L(A.toggledButtonViewModel,_.vY);return Object.assign({},A,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.L(A.defaultButtonViewModel,_.vY),{title:H})},toggledButtonViewModel:{buttonViewModel:Object.assign({},u,{title:k})}})}}}});
rs.prototype.onTap=rs.prototype.onTap;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],rs.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],rs.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rs.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.likeCountEntityKey"],selector:jiN}),_.l("design:type",Object)],rs.prototype,"likeCountState",void 0);_.E([_.C({selectorArgs:["data.engagementStateKey"],selector:Skl}),_.l("design:type",Object)],rs.prototype,"engagementState",void 0);_.E([_.G("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rs.prototype,"isLiked",null);
_.E([_.G("data","likeCountState","isLiked"),_.l("design:type",Object),_.l("design:paramtypes",[])],rs.prototype,"toggleButton",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],rs.prototype,"onTap",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],rs);
_.Q(rs,"yt-live-chat-like-button-view-model",function(){if(Cdi===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Sni===void 0&&(Sni=document.createElement("template"));var d=Sni;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Cdi=A}A=Cdi;return A},{mode:0});var DSQ;var S1w;var uV=function(){return _.a.apply(this,arguments)||this};
_.I(uV,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uV.prototype,"data",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],uV);
_.Q(uV,"yt-live-chat-paid-message-footer-renderer",function(){if(S1w===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;DSQ===void 0&&(DSQ=document.createElement("template"));var d=DSQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);S1w=A}A=S1w;return A},{mode:0});var COi;var KZw;var ajw;var cQA,pdw=function(){if(cQA!==void 0)return cQA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;ajw===void 0&&(ajw=document.createElement("template"));var d=ajw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return cQA=A};var iV=function(){return _.a.apply(this,arguments)||this};
_.I(iV,_.a);iV.prototype.onTap=function(A){A.stopPropagation()};
_.nP.Object.defineProperties(iV.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=_.L(this.data.replyButton,_.vY),H,k,d,W,z,u,B,h=Number(((H=this.replyCountState)==null?void 0:H.replyCountNumber)||"0")===0?(k=this.data)==null?void 0:(d=k.replyCountPlaceholder)==null?void 0:d.content:((W=this.replyCountState)==null?void 0:(z=W.replyCount)==null?void 0:z.content)||((u=this.data)==null?void 0:(B=u.replyCountPlaceholder)==null?void 0:B.content)||"",O;return Object.assign({},
A,{title:h,accessibilityText:(O=this.replyCountState)==null?void 0:O.replyButtonAccessibilityText})}}}});
_.nP.Object.defineProperties(iV,{template:{configurable:!0,enumerable:!0,get:function(){return pdw()}}});
iV.prototype.onTap=iV.prototype.onTap;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],iV.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],iV.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],iV.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.replyCountEntityKey"],selector:function(A,H){return _.Mw(A.entities,"replyCountEntity",H)}}),
_.l("design:type",Object)],iV.prototype,"replyCountState",void 0);_.E([_.G("data","replyCountState"),_.l("design:type",Object),_.l("design:paramtypes",[])],iV.prototype,"buttonViewModel",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],iV.prototype,"onTap",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],iV);_.Q(iV,"yt-live-chat-reply-button-view-model",function(){return pdw()},{mode:0});var QAA;var VrG;var h0=function(){var A=_.a.apply(this,arguments)||this;A.ariaLabel="";return A};
_.I(h0,_.a);
h0.prototype.dataChanged=function(){for(var A=(0,_.t1)(_.Va(this.hostElement).querySelector("#image"));A.firstChild;)A.removeChild(A.firstChild);if(this.data)if(this.data.icon){var H=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(H.polymerController.icon="yt-sys-icons:shield_empty",H.polymerController.defaultToFilled=!0):H.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();A.appendChild(H)}else if(this.data.customThumbnail){H=document.createElement("img");
var k=_.BVN(this.data.customThumbnail.thumbnails,16);k?(H.src=k,A.appendChild(H),H.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Pq(new _.Ti("Could not compute URL for thumbnail",this.data.customThumbnail))}};
h0.prototype.identity=function(A){return A};
h0.prototype.computeType=function(A){return U6(A||void 0)};
h0.prototype.dataChanged=h0.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],h0.prototype,"data",void 0);_.E([_.C({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.l("design:type",Object)],h0.prototype,"ariaLabel",void 0);_.E([_.C({computed:"computeType(data)",reflectToAttribute:!0}),_.l("design:type",String)],h0.prototype,"type",void 0);
_.E([_.C({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.l("design:type",String)],h0.prototype,"sharedTooltipText",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_new_shield_moderator_badge")}}),
_.l("design:type",Boolean)],h0.prototype,"enableNewModeratorBadge",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],h0.prototype,"dataChanged",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],h0);
_.Q(h0,"yt-live-chat-author-badge-renderer",function(){if(VrG===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;QAA===void 0&&(QAA=document.createElement("template"));var d=QAA;k.call(H,d.content.cloneNode(!0),A.content.firstChild);VrG=A}A=VrG;return A},{mode:0});var EQw;var USA;var Op=function(){return _.a.apply(this,arguments)||this};
_.I(Op,_.a);_.q=Op.prototype;_.q.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"}}}}};
_.q.computeBadgesInsideChip=function(A){return A?A.filter(function(H){return U6(H.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.q.computeBadgesOutsideChip=function(A){return this.prependChatBadges||!A?[]:A.filter(function(H){H=U6(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"})};
_.q.computeBadgesBeforeChip=function(A){return this.prependChatBadges&&A?A.filter(function(H){H=U6(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"}):[]};
_.q.computeIsHighlighted=function(A,H){var k=!!$fA(A,"owner"),d=!!$fA(A,"verified");A=!!$fA(A,"moderator");return(k||d&&!A)&&!H};
_.q.computeAuthorType=function(A){return oC8(A)};
_.q.computeAuthorClass=function(A,H){return H?(A?A+" ":"")+"single-line":A};
_.q.onSeedColorChanged=function(){_.b("live_chat_author_name_color_usernames")||_.b("live_chat_seed_color_usernames")||_.b("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):_.b("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Op.prototype.onSeedColorChanged=Op.prototype.onSeedColorChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Op.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Op.prototype,"authorName",void 0);_.E([_.C(),_.l("design:type",Array)],Op.prototype,"authorBadges",void 0);
_.E([_.C({computed:"computeAuthorType(authorBadges)"}),_.l("design:type",String)],Op.prototype,"authorType",void 0);_.E([_.C({computed:"computeAuthorClass(authorType, singleLine)"}),_.l("design:type",String)],Op.prototype,"authorClass",void 0);_.E([_.C({computed:"computeBadgesInsideChip(authorBadges)"}),_.l("design:type",Array)],Op.prototype,"badgesInsideChip",void 0);_.E([_.C({computed:"computeBadgesOutsideChip(authorBadges)"}),_.l("design:type",Array)],Op.prototype,"badgesOutsideChip",void 0);
_.E([_.C({computed:"computeBadgesBeforeChip(authorBadges)"}),_.l("design:type",Array)],Op.prototype,"badgesBeforeChip",void 0);_.E([_.C({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Op.prototype,"isHighlighted",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_new_shield_moderator_badge")}}),
_.l("design:type",Boolean)],Op.prototype,"enableNewModeratorTextColor",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Op.prototype,"singleLine",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Op.prototype,"disableHighlighting",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Op.prototype,"dashboardMoneyFeed",void 0);_.E([_.C({value:_.b("live_chat_prepend_badges"),reflectToAttribute:!0}),_.l("design:type",Boolean)],Op.prototype,"prependChatBadges",void 0);
_.E([_.C(),_.l("design:type",String)],Op.prototype,"authorNameColor",void 0);_.E([_.ol("#author-name"),_.l("design:type",HTMLDivElement)],Op.prototype,"username",void 0);_.E([_.fF("authorNameColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Op.prototype,"onSeedColorChanged",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Op);
_.Q(Op,"yt-live-chat-author-chip",function(){if(USA===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;EQw===void 0&&(EQw=document.createElement("template"));var d=EQw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);USA=A}A=USA;return A},{mode:0});var ljA;var trp;var Rg=function(){var A=_.a.apply(this,arguments)||this;A.debounceCommand=_.hK(function(H){A.ytComponentBehavior.resolveCommand(H)},1500);
return A};
_.I(Rg,_.a);Rg.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var A=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",H,k,d=this.isHearted?(H=this.data)==null?void 0:H.unheartCommand:(k=this.data)==null?void 0:k.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.O5("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:A}));(A=_.h7(d))&&this.debounceCommand(A)}};
_.nP.Object.defineProperties(Rg.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var A,H;if(!((A=this.data)==null?0:(H=A.creatorThumbnail)==null?0:H.sources))return{};A={thumbnails:[]};H={};H.url=this.data.creatorThumbnail.sources[0].url;A.thumbnails.push(H);return A}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((k=this.engagementState)==null?void 0:k.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}}});
Rg.prototype.onTap=Rg.prototype.onTap;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Rg.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],Rg.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Rg.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.engagementStateKey"],selector:Skl}),_.l("design:type",Object)],Rg.prototype,"engagementState",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Rg.prototype,"thumbnailDetails",null);_.E([_.G("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rg.prototype,"isHearted",null);_.E([_.G("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rg.prototype,"isEditable",null);
_.E([_.G("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rg.prototype,"showCreatorView",null);_.E([_.G("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rg.prototype,"showButton",null);_.E([_.G("data","isHearted"),_.l("design:type",String),_.l("design:paramtypes",[])],Rg.prototype,"label",null);_.E([_.G("data","isHearted"),_.l("design:type",Object),_.l("design:paramtypes",[])],Rg.prototype,"heartHoverText",null);
_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Rg.prototype,"onTap",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Rg);
_.Q(Rg,"yt-live-chat-creator-heart-view-model",function(){if(trp===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;ljA===void 0&&(ljA=document.createElement("template"));var d=ljA;k.call(H,d.content.cloneNode(!0),A.content.firstChild);trp=A}A=trp;return A},{mode:0});var NV1=function(){this.internalMap={}};
_.q=NV1.prototype;_.q.contains=function(A){return Object.prototype.hasOwnProperty.call(this.internalMap,A)};
_.q.get=function(A){if(this.contains(A))return this.internalMap[A]};
_.q.set=function(A,H){this.internalMap[A]=H};
_.q.getKeys=function(){return Object.keys(this.internalMap)};
_.q.remove=function(A){delete this.internalMap[A]};var T2=function(){this.mappings=new NV1;this.errorCallbacks=new Set};
T2.prototype.getModuleId=function(A){return A.serviceId.getModuleId()};
T2.prototype.get=function(A){a:{var H=this.mappings.get(A.toString());switch(H.type){case "mapping":A=H.value;break a;case "factory":H=H.value();this.mappings.set(A.toString(),{type:"mapping",value:H});A=H;break a;default:A=_.HR(H)}}return A};
T2.prototype.registerService=function(A,H){this.mappings.set(A.toString(),{type:"mapping",value:H});return A};
T2.prototype.onLoadError=function(A){var H=this;this.errorCallbacks.add(A);return function(){H.errorCallbacks.delete(A)}};
new T2;var MrQ=function(){};
_.q=MrQ.prototype;
_.q.JSC$14491_getRequest=function(A,H,k){H=H===void 0?{}:H;k=k===void 0?upZ:k;var d=H;if(this.isNavigationCommand()){var W,z=(W=_.L(A==null?void 0:A.commandMetadata,_.wn))==null?void 0:W.url;d=_.js(A.clickTrackingParams,!0,!1,z,this.JSC$14491_getClientScreen(d))}else d=_.js(A.clickTrackingParams,!1,this.includeCsn);d={context:d};if(W=this.getExtension(A))return this.JSC$14491_buildRequest(d,W,H),W=this.getApiUrl(A),z=Object.assign({},{command:A},this.getRequestConfig(A,H)),d={input:W,requestShell:j1(W),
innerTubeRequest:d,config:z},d.config.authStrategy?d.config.authStrategy.identity=k:d.config.authStrategy={identity:k},(A=this.JSC$14491_getRequestKey(A,H))&&!d.config.requestKey&&(d.config.requestKey=A),d;A=new _.Ti("Error: Failed to create Request from Command.",A);_.I3(A)};
_.q.getApiUrl=function(A){var H=_.X3(this.getApiPaths(A)),k;(A=(k=_.L(A.commandMetadata,_.wn))==null?void 0:k.apiUrl)&&(H=A);return QDr(pYV(H))};
_.q.isNavigationCommand=function(){return!1};
_.q.JSC$14491_getClientScreen=function(){};
_.q.JSC$14491_getRequestKey=function(){};
_.q.getRequestConfig=function(){};
_.nP.Object.defineProperties(MrQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var my=function(){};
_.I(my,MrQ);my.prototype.JSC$14498_getStoreKey=function(){};
my.prototype.JSC$14491_getRequestKey=function(A,H){H=H===void 0?{}:H;return this.JSC$14498_getStoreKey(A,H)};var J0=function(){};
_.I(J0,my);J0.prototype.JSC$14491_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:j1("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
J0.prototype.getApiPaths=function(){return[]};
J0.prototype.getExtension=function(){};
J0.prototype.JSC$14491_buildRequest=function(){};var nQw={},ZDw=(nQw.GET_DATASYNC_IDS=m0(J0),nQw);var fjA,wd1,oQZ,Whj,kQw,gs,sfZ,$Sp,HRw,AJk;fjA="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" ");wd1=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.yI=function(A,H,k,d,W,z,u,B,h){this.endpointMap=A;this.networkManager=H;this.authService=k;this.responseProcessorMap=d;this.innertubeResponseStore=W;this.contextProcessors=z;this.asyncContextProcessors=u;this.localInnertubeRouter=B;this.requestSequencer=h;this.inflightRequests=new Map;A.signalEndpointMap||(A.signalEndpointMap={});A.signalEndpointMap=Object.assign({},ZDw,A.signalEndpointMap)};
oQZ=function(A,H,k,d,W,z,u,B,h){if(_.yI.instance!==void 0){if(d=_.yI.instance,A=[A!==d.endpointMap,H!==d.networkManager,k!==d.authService,W!==d.innertubeResponseStore,z!==d.contextProcessors,u!==d.asyncContextProcessors,B!==d.localInnertubeRouter],A.some(function(O){return O}))throw new _.Ti("InnerTubeTransportService is already initialized",A);
}else _.yI.instance=new _.yI(A,H,k,d,W,z,u,B,h)};
_.I9=function(A,H,k){var d=d===void 0?upZ:d;var W=$Sp(A,H);return W?new _.Wq(function(z,u){var B,h,O,T,m;return _.e(function(J){switch(J.nextAddress){case 1:return J.yield(W,2);case 2:B=J.yieldResult;h=B.JSC$14491_getRequest(H,k,d);if(!h){u(new _.Ti("Error: Failed to build request for command.",H));J.jumpTo(0);break}mH(h.input);T=((O=h.requestShell)==null?void 0:O.mode)==="cors"?"cors":void 0;if(A.authService.syncHeaders){m=AJk(h.config,T);J.jumpTo(4);break}return J.yield(HRw(h.config,T),5);case 5:m=
J.yieldResult;case 4:z(sfZ(A,h,m)),_.EN(J)}})}):_.qt(new _.Ti("Error: No request builder found for command.",H))};
Whj=function(A,H,k,d){var W=W===void 0?upZ:W;var z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M;return _.e(function(Z){switch(Z.nextAddress){case 1:z=GJv(H,A.endpointMap);if(!z)throw new _.Ti("Error: No streaming request builder found for command",H);u=z.JSC$14491_getRequest(H,k,W);if(!u)throw new _.Ti("Failed to build YtRequest for streaming Command",H);if((B=A.localInnertubeRouter)==null||!B.shouldPreferLocalResponse(u.input,u.innerTubeRequest)){Z.jumpTo(2);break}return Z.yield(A.localInnertubeRouter.localInnertubeResponse(u.input,
u.innerTubeRequest),3);case 3:return h=Z.yieldResult,O={},h.playerResponse&&(gs(A,h.playerResponse,u),O.player=h.playerResponse,(T=d)==null||T(O,h)),h.watchNextResponse&&(gs(A,h.watchNextResponse,u),O.content=h.watchNextResponse,(m=d)==null||m(O,h)),Z.return(O);case 2:return Z.yield(kQw(A,u),4);case 4:g=((J=u.requestShell)==null?void 0:J.mode)==="cors"?"cors":void 0;if(A.authService.syncHeaders){v=AJk(u.config,g);Z.jumpTo(5);break}return Z.yield(HRw(u.config,g),6);case 6:v=Z.yieldResult;case 5:return D=
(X=(y=u.requestShell)==null?void 0:y.headers)!=null?X:{},u.requestShell=Object.assign({},u.requestShell,{headers:Object.assign({},D,v)}),K=Object.assign({},u.requestShell),N=JSON.stringify(u.innerTubeRequest),u.requestShell.method==="POST"&&(K=Object.assign({},K,{body:N})),U=function(WV,hA){gs(A,hA.playerResponse||hA.watchNextResponse||hA.reelItemWatchResponse||hA.reelWatchSequenceResponse,u);d==null||d(WV,hA);hA.playerResponse&&hW0()},p={},Z.yield(dsi(A.networkManager,u.input,K,U),7);
case 7:return p=Z.yieldResult,((M=u.config)==null?0:M.responseTick)&&_.OH(u.config.responseTick),Z.return(p)}})};
_.yD=function(A,H,k,d,W){W=W===void 0?{authStrategy:{identity:upZ}}:W;var z=z===void 0?!0:z;var u=function(){};
u=dYm(shV(k));H.context||(H.context=_.js(d,z));return new _.Wq(function(B){var h,O,T,m,J;return _.e(function(g){if(g.nextAddress==1)return h=pYV(k),O=_.yS(h),A.authService.syncHeaders?(T=AJk(W,O),g.jumpTo(2)):g.yield(HRw(W,O),3);g.nextAddress!=2&&(T=g.yieldResult);m=QDr(pYV(k));J={input:m,requestShell:j1(m),innerTubeRequest:H,config:W};B(sfZ(A,J,T,u));_.EN(g)})})};
kQw=function(A,H){var k,d,W,z,u,B,h,O,T,m,J;return _.e(function(g){switch(g.nextAddress){case 1:if(!((k=H)==null?0:(d=k.innerTubeRequest)==null?0:d.context)){g.jumpTo(0);break}W=H.innerTubeRequest.context;if(!(A.asyncContextProcessors&&A.asyncContextProcessors.length>0)){g.jumpTo(3);break}z=[];u=_.r(A.asyncContextProcessors);for(B=u.next();!B.done;B=u.next())h=B.value,O=h.processContext(H),O.wrappedPromise_&&z.push(O.wrappedPromise_);if(!(z.length>0)){g.jumpTo(3);break}return g.yield(Promise.all(z),
3);case 3:T=_.r(A.contextProcessors||[]),m=T.next();case 6:if(m.done){g.jumpTo(0);break}J=m.value;return g.yield(J.processContext(W),7);case 7:m=T.next(),g.jumpTo(6)}})};
gs=function(A,H,k){var d;if(H&&!(H==null?0:(d=H.sequenceMetaData)==null?0:d.skipProcessing)&&A.responseProcessorMap){d=_.r(fjA);for(var W=d.next();!W.done;W=d.next())W=W.value,A.responseProcessorMap[W]&&A.responseProcessorMap[W].handleResponse(H,k)}};
sfZ=function(A,H,k,d){d=d===void 0?function(){}:d;
var W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z,WV,hA,qv,eN,mr,Cl,pl,UC,hk,eA;return _.e(function(lI){switch(lI.nextAddress){case 1:u=(W=H.config)==null?void 0:(z=W.storeStrategy)==null?void 0:z.storeKey;if(!(u&&A.innertubeResponseStore&&A.innertubeResponseStore.has(u))||((B=H.config)==null?0:(h=B.storeStrategy)==null?0:h.disableCache)){lI.jumpTo(2);break}return lI.yield(A.innertubeResponseStore.get(u),3);case 3:O=lI.yieldResult;if(!O||O.isExpired()){lI.jumpTo(2);break}T=_.U5(O);if(!_.b("web_process_response_store_responses")||
O.isProcessed()){lI.jumpTo(5);break}gs(A,T,H);return lI.yield(A.innertubeResponseStore.markAsProcessed(u),5);case 5:return lI.return(Promise.resolve(T));case 2:if((m=A.localInnertubeRouter)==null||!m.shouldPreferLocalResponse(H.input,H.innerTubeRequest)){lI.jumpTo(7);break}return lI.yield(A.localInnertubeRouter.localInnertubeResponse(H.input,H.innerTubeRequest),8);case 8:return J=lI.yieldResult,gs(A,J,H),lI.return(J);case 7:return lI.yield(kQw(A,H),9);case 9:return(y=(v=H.config)==null?void 0:v.requestKey)&&
A.inflightRequests.has(y)?g=A.inflightRequests.get(y):(X=JSON.stringify(H.innerTubeRequest),N=(K=(D=H.requestShell)==null?void 0:D.headers)!=null?K:{},H.requestShell=Object.assign({},H.requestShell,{headers:Object.assign({},N,k)}),U=Object.assign({},H.requestShell),H.requestShell.method==="POST"&&(U=Object.assign({},U,{body:X})),((p=H.config)==null?0:p.requestTick)&&_.OH(H.config.requestTick),M=function(){return A.networkManager.fetch(H.input,U,H.config)},g=A.requestSequencer?zs1(A.requestSequencer,
H,M):M(),y&&A.inflightRequests.set(y,g)),lI.yield(g,10);
case 10:(Z=lI.yieldResult)&&_.b("web_streaming_player")&&Array.isArray(Z)&&(Z=Z[0].playerResponse);if(Z&&"error"in Z&&((WV=Z)==null?0:(hA=WV.error)==null?0:hA.details))for(qv=Z.error.details,eN=_.r(qv),mr=eN.next();!mr.done;mr=eN.next())Cl=mr.value,(pl=Cl["@type"])&&wd1.indexOf(pl)>-1&&(delete Cl["@type"],Z=Cl);y&&A.inflightRequests.has(y)&&A.inflightRequests.delete(y);((UC=H.config)==null?0:UC.responseTick)&&_.OH(H.config.responseTick);if(Z||(hk=A.localInnertubeRouter)==null||!hk.canProvideFallbackResponse(H.input,
H.innerTubeRequest)){lI.jumpTo(11);break}return lI.yield(A.localInnertubeRouter.localFallbackInnertubeResponse(H.input,H.innerTubeRequest),12);case 12:Z=lI.yieldResult;case 11:return gs(A,Z,H),((eA=H.config)==null?0:eA.processorTick)&&_.OH(H.config.processorTick),d(),lI.return(Z||void 0)}})};
_.jO=function(A,H){return PhW(H,A.endpointMap)};
$Sp=function(A,H){A=FxQ(H,A.endpointMap);if(A!==void 0)return Promise.resolve(A)};
HRw=function(A,H){var k,d,W,z;return _.e(function(u){if(u.nextAddress==1){W=(k=A)==null?void 0:(d=k.authStrategy)==null?void 0:d.sessionIndex;var B=u.yield;var h=_.MT(IeC({sessionIndex:W}));return B.call(u,h,2)}z=u.yieldResult;return u.return(Promise.resolve(Object.assign({},Xrb(H),z)))})};
AJk=function(A,H){var k;A=A==null?void 0:(k=A.authStrategy)==null?void 0:k.sessionIndex;k=IeC({sessionIndex:A});return Object.assign({},Xrb(H),k)};var qkw,rJ0,uzJ,BGw,esi,xsA,ORA,RsJ,vf,TGA,msj,hsw,JJ1;qkw=0;rJ0=/tone[1-5]/;uzJ=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");BGw="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
esi=Number.MAX_SAFE_INTEGER;xsA=RegExp("\ufe0f","g");_.bV=function(A){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;A&&_.iRj(this,A)};
_.iRj=function(A,H){try{_.uC(H,{context:A,onSuccess:function(d,W){Array.isArray(W)?A.load(W):(d=new _.Ti("Emoji manager JSON response was not an array!",{response:W}),_.I3(d))},
onError:function(d){d=new _.Ti("Failed to retrieve emoji manager initial JSON data!",{url:H,statusCode:_.W5(d).toString()});_.Pq(d)}})}catch(d){var k=new _.Ti("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:H});
_.Pq(k)}};
_.bV.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.bV.prototype.load=function(A,H){if(H)if(A.length)A=A.concat(H.emojis);else{this.emojis=H.emojis;this.emojiMap=H.emojiMap;this.emojiShortcutMap=H.emojiShortcutMap;this.emojiShortcutCharMap=hsw(H);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=H.emojiRegex;return}this.emojis=[].concat(_.fV(new Set(this.emojis.concat(A))));this.hasInitializedShortcutCharMap=!1;A=Array(this.emojis.length);for(H=0;H<this.emojis.length;H++){var k=this.emojis[H];if(k.emojiId){this.emojiMap[k.emojiId]=k;this.emojiMap[k.emojiId].index=
H;for(var d=0;k.shortcuts&&d<k.shortcuts.length;d++)this.emojiShortcutMap[k.shortcuts[d].toLocaleLowerCase()]=k;A[H]=k.isCustomEmoji&&k.shortcuts?k.shortcuts[0]:k.emojiId}}A.sort(function(W,z){return z.length-W.length});
if(A.length)try{this.emojiRegex=new RegExp(A.join("|").replace("*","\\*"),"gi")}catch(W){this.emojiRegex=/$./}else this.emojiRegex=/$./};
ORA=function(A,H){H=_.r(H);for(var k=H.next();!k.done;k=H.next()){var d=k.value;if(d.emojiId&&A.emojiMap[d.emojiId]){k=Object.assign({},A.emojiMap[d.emojiId],d);A.emojiMap[d.emojiId]=k;var W=void 0;k.index&&((W=A.emojis[k.index])==null?void 0:W.emojiId)===d.emojiId&&(A.emojis[k.index]=k);d=void 0;if((d=k.shortcuts)==null?0:d.length)for(A.hasInitializedShortcutCharMap=!1,d=_.r(k.shortcuts),W=d.next();!W.done;W=d.next())A.emojiShortcutMap[W.value.toLocaleLowerCase()]=k}}};
RsJ=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return d.yield(_.ed.getInstance(),2);if(d.nextAddress!=3)return(H=d.yieldResult)?d.yield(H.get("ytlc-emoji-pref"),3):d.return();(k=d.yieldResult)&&ORA(A,Object.keys(k).map(function(W){return{emojiId:W,stickyPrefId:k[W]}}).filter(function(W){return!!W.emojiId&&!!W.stickyPrefId}));
_.EN(d)})};
_.Lk=function(A,H,k){return(A=A.emojiMap[H])&&(!A.isLocked||k!==void 0&&k)?A:void 0};
vf=function(A,H,k){k=_.Lk(A,H,k===void 0?!1:k);var d=H.match("\u200d");k&&A.skinTone!==0&&(A=(d==null?void 0:d.length)===1?_.Lk(A,H.replace("\u200d",uzJ[A.skinTone]+"\u200d")):_.Lk(A,H+uzJ[A.skinTone]))&&(k=A);return k};
TGA=function(A,H){var k=A.emojiMap[H];return(k==null?0:k.stickyPrefId)?A.emojiMap[k.stickyPrefId]:vf(A,H)};
_.l2=function(A,H){A=A.emojiShortcutMap[H.toLocaleLowerCase()];return!A||A.isLocked?null:A};
msj=function(A,H,k){return hsw(A,k===void 0?!1:k)[H]||{}};
hsw=function(A,H){H=H===void 0?!1:H;if(!A.hasInitializedShortcutCharMap){A.hasInitializedShortcutCharMap=!0;for(var k=0;k<A.emojis.length;k++){var d=A.emojis[k];if(!(d.isLocked||H&&d.isCustomEmoji&&d.emojiId&&!A.pickerCustomEmojiIds.includes(d.emojiId)))for(var W=0;d.shortcuts&&W<d.shortcuts.length;W++){var z=d.shortcuts[W];z.startsWith(":_")&&d.isCustomEmoji&&(A.emojiShortcutCharMap[":_"]==null&&(A.emojiShortcutCharMap[":_"]=Object.create(null)),A.emojiShortcutCharMap[":_"][z]=d);if(!(z.length<3||
!d.isCustomEmoji&&rJ0.test(z))){var u=z.substr(0,3).toLocaleLowerCase();A.emojiShortcutCharMap[u]==null&&(A.emojiShortcutCharMap[u]=Object.create(null));A.emojiShortcutCharMap[u][z]=d}}}}return A.emojiShortcutCharMap};
_.bV.prototype.createEmoji=function(A,H){H=H===void 0?!0:H;var k=document.createElement("img");A.isCustomEmoji||k.classList.add("small-emoji");k.classList.add("emoji");k.classList.add("yt-formatted-string");k.src=A.image?_.C3(A.image.thumbnails,this.emojiSize)||"":"";var d=void 0;A.image&&A.image.accessibility&&A.image.accessibility.accessibilityData&&(d=A.image.accessibility.accessibilityData.label);k.alt=d?d:(A.isCustomEmoji&&A.shortcuts?A.shortcuts[0]:A.emojiId)||"";A.isCustomEmoji&&(k.dataset.emojiId=
A.emojiId);_.n6&&(k.setAttribute("contenteditable","false"),k.setAttribute("unselectable","on"));H&&(A.shortcuts&&A.shortcuts.length&&k.setAttribute("shared-tooltip-text",A.shortcuts[0]),k.id="emoji-"+qkw++);return k};
_.bV.prototype.createDocumentFragment=function(A,H,k,d){H=H===void 0?!1:H;k=k===void 0?!0:k;d=d===void 0?!1:d;A=A.replace(xsA,"");for(var W=document.createDocumentFragment(),z=0,u,B=0;(u=this.emojiRegex.exec(A))!=null;){var h=_.Lk(this,u[0])||_.l2(this,u[0]);!h||h.isCustomEmoji&&!H||(h=this.createEmoji(h,k),z!==u.index&&W.appendChild(document.createTextNode(A.substring(z,u.index))),W.appendChild(h),z=u.index+u[0].length,B++)}if(!d||B)return W.appendChild(document.createTextNode(A.substr(z))),W};
JJ1=function(A,H,k){var d,W,z,u,B,h,O,T,m;return _.e(function(J){if(J.nextAddress==1){if(!H.emojiId||!A.emojiMap[H.emojiId])return J.return();d=Object.assign({},A.emojiMap[H.emojiId],{stickyPrefId:k});A.emojiMap[H.emojiId]=d;H.index&&((W=A.emojis[H.index])==null?void 0:W.emojiId)===H.emojiId&&(A.emojis[H.index]=d);if((z=H.shortcuts)==null?0:z.length)for(A.hasInitializedShortcutCharMap=!1,u=_.r(H.shortcuts),B=u.next();!B.done;B=u.next())h=B.value,A.emojiShortcutMap[h.toLocaleLowerCase()]=d;return J.yield(_.ed.getInstance(),
2)}if(J.nextAddress!=4)return(O=J.yieldResult)?J.yield(O.get("ytlc-emoji-pref"),4):J.jumpTo(0);m=(T=J.yieldResult)!=null?T:{};m[H.emojiId]=k;return J.yield(O.set("ytlc-emoji-pref",m,esi),0)})};
_.y5=new _.bV;var LhN;_.j0={};
LhN={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.b("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:_.b("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 Ic(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 A=_.Va(this.hostElement||this).querySelector("#inline-action-button-container");A&&A.setAttribute("aria-hidden","true");this.menuButton=_.Va(this.hostElement).querySelector("#menu-button")},
attached:function(){var A=this.menuButton;A&&(A.addEventListener("focusin",_.nF(this,this.onMenuButtonFocus_)),A.addEventListener("focusout",_.nF(this,this.onMenuButtonBlur_)))},
detached:function(){var A=this.menuButton;A&&(A.removeEventListener("focusin",_.nF(this,this.onMenuButtonFocus_)),A.removeEventListener("focusout",_.nF(this,this.onMenuButtonBlur_)))},
identity:_.Kl,truthy:function(A){return!!A},
computeTimestampString:function(A){return A?A.timestampText?this.getSimpleString(A.timestampText):this.TIME_FORMATTER.format(new Date(A.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(A){return A},
computeMenuVisible_:function(A,H){return A||H},
computeHasInlineActionButtons:function(A){if(!A)return!1;var H,k;return!((H=A.inlineActionButtons)==null||!H.length)||!((k=A.additionalInlineActionButtons)==null||!k.length)},
createDocumentFragmentFromString:function(A){var H=_.y5.createDocumentFragment.bind(_.y5),k;if((k=this.participantsManager)==null||!k.viewerRegex)return H(A);k=document.createDocumentFragment();for(var d=0,W;(W=this.participantsManager.viewerRegex.exec(A))!=null;){if(W.index>0){var z=":"+W[0]+":";if((_.Lk(_.y5,z)||_.l2(_.y5,z))&&A.indexOf(z)===W.index-1)continue}k.appendChild(H(A.substring(d,W.index)));d=document.createElement("span");d.appendChild(H(W[0]));d.classList.add("mention");k.appendChild(d);
d=W.index+W[0].length}k.appendChild(H(A.substring(d)));return k},
createDocumentFragment:function(A){var H=document.createDocumentFragment();if(A.simpleText)return H.appendChild(this.createDocumentFragmentFromString(A.simpleText)),H;if(!A.runs)return H;for(var k=0;k<A.runs.length;k++){var d=A.runs[k];if(d.emoji)H.appendChild(_.y5.createEmoji(d.emoji));else if(d.text)if(d.navigationEndpoint){var W=document.createElement("a");W.classList.add("yt-simple-endpoint");UFX(W,d.navigationEndpoint);_.Va(W).appendChild(this.createDocumentFragmentFromString(d.text));H.appendChild(W)}else H.appendChild(this.createDocumentFragmentFromString(d.text))}return H},
hasModerationOverlayVisible:function(){var A;return((A=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:A.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(A){A.composedPath().some(function(H){return(H=H instanceof Element?H:null)?H.tagName&&(H.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||H.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.b("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(A)},
colorFromDecimal:function(A){return P4m(A)},
markAsDeleted:function(A,H){this.set("data.deletedStateMessage",A);this.set("data.showOriginalContentMessage",H)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(A){if(this.data.contextMenuEndpoint){var H=_.wj().resolve(_.sJ),k=this.data.contextMenuEndpoint,d;(d=_.yI.instance)&&_.jO(d,k)?(H=goA(H,k),d=_.yD(d,{},H)):d=_.bRw(H,k);d.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);A&&A.stopPropagation()}},
handleGetContextMenuResponse_:function(A){var H=_.yI.instance;H&&_.jO(H,{liveChatEndpoint:{}})||(A=A.response);A.liveChatItemContextMenuSupportedRenderers&&A.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(A.liveChatItemContextMenuSupportedRenderers.menuRenderer);A.actions&&_.Ud(this.hostElement,"yt-live-chat-actions",[A.actions])},
handleGetContextMenuError:function(A){if(A instanceof Error||A instanceof Object||A instanceof String)var H=A;_.I3(new _.Ti("Error encountered calling GetLiveChatItemContextMenu",H))},
showContextMenu_:function(A){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:A}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Ed(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Ed(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.j0.YtLiveChatItemBehavior=[LhN,_.ml.YtComponentBehavior,_.NY.YtOpenPopupBehavior];_.Ig=function(){};var voi;var yJG;var jfw;var Iz0;var Pf=function(){var A=_.a.apply(this,arguments)||this;A.active=!1;A.identity=_.Kl;return A};
_.I(Pf,_.a);Pf.prototype.dataChanged=function(){this.active=!1};
Pf.prototype.onClick=function(){_.Ed(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Pf.prototype.dataChanged=Pf.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],Pf.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Pf.prototype,"active",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pf.prototype,"dataChanged",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Pf);
_.Q(Pf,"yt-live-chat-text-input-field-suggestion",function(){if(Iz0===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;jfw===void 0&&(jfw=document.createElement("template"));var d=jfw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Iz0=A}A=Iz0;return A},{mode:0});_.G2=function(A,H,k){return CustomEvent.call(this,A,{detail:{value:H,path:k}})||this};
_.I(_.G2,CustomEvent);_.Fw=function(){var A=_.a.apply(this,arguments)||this;A.viewerName=null;A.actionMap={"yt-live-chat-actions":"onChatMessage_"};A.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];A.PARTICIPANT_TIME_USEC_=3E8;return A};
_.I(_.Fw,_.a);_.q=_.Fw.prototype;_.q.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.q.addParticipant=function(A){var H=_.aQr(this.participants,A,function(d,W){d=d[Object.keys(d)[0]];W=W[Object.keys(W)[0]];d=String(_.PK(d.authorName)).toLowerCase();W=String(_.PK(W.authorName)).toLowerCase();return d<W?-1:d==W?0:1}.bind(this));
if(H>=0){var k=this.participants[H];k[Object.keys(k)[0]].timestampUsec&&this.splice("participants",H,1,A)}else this.splice("participants",-H-1,0,A);A=A[Object.keys(A)[0]];H=_.PK(A.authorName).toLocaleLowerCase();k=H.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(k)||(this.allParticipantsCharMap_[k]={});this.allParticipantsCharMap_[k][H]=A};
_.q.getAuthorsFromPrefix=function(A){return this.allParticipantsCharMap_.hasOwnProperty(A)?this.allParticipantsCharMap_[A]:null};
_.q.computeViewerRegex_=function(A){if(!A)return null;A=A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var H=A.indexOf("@")===0&&_.b("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(H+A.replace(/ /g,"\\s*")+"|^"+A.replace(/ /g,"\\s*")+"$|^"+A.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+A.replace(/ /g,"\\s*")+"$|(?<=\\s)"+A.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.q.checkForStaleParticipants_=function(){var A=this;this.trimOldParticipants_();this.asyncHandle_&&q0f(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.L0(function(){A.checkForStaleParticipants_()},3E4))};
_.q.onChatMessage_=function(A){var H=this,k=Date.now()*1E3;A.forEach(function(d){if(d=_.L(d,dlj)){d=d.item;var W=Object.keys(d)[0];H.SUPPORTED_ITEM_TYPES_.indexOf(W)!=-1&&d[W].timestampUsec>=k-H.PARTICIPANT_TIME_USEC_&&H.addParticipant(d)}},this);
this.checkForStaleParticipants_()};
_.q.trimOldParticipants_=function(){for(var A=Date.now()*1E3,H=this.participants.length-1;H>=0;H--){var k=this.participants[H];k=k[Object.keys(k)[0]];k.timestampUsec&&k.timestampUsec<A-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",H,1)}};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],_.Fw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],_.Fw.prototype,"viewerName",void 0);_.E([_.C({computed:"computeViewerRegex_(viewerName)"}),_.l("design:type",Object)],_.Fw.prototype,"viewerRegex",void 0);_.E([_.C({value:function(){return[]},
notify:!0}),_.l("design:type",Array)],_.Fw.prototype,"participants",void 0);_.E([_.h6({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Fw);var YkG=/.*([:@#].*?)$/,Xw=/\u00a0/g,P_k=String.fromCharCode(160),GQ0={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"},DJ=function(){var A=_.a.apply(this,arguments)||this;A.disabled=!1;A.liveChatRichMessageInput=null;A.messageInput=null;A.isValidWithNoInputText=!1;A.suggestions=[];A.emojiManager=_.y5;A.inputMethodEditorActive=
!1;A.suggestionIndex=-1;A.JSC$14549_lastSuggestionRange=null;return A};
_.I(DJ,_.a);_.q=DJ.prototype;_.q.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.q.attached=function(){_.s3&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.q.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.q.dataChanged=function(){if(!this.ignoreColorMapping){var A=!1,H={},k;for(k in GQ0)this.data&&this.data.hasOwnProperty(k)&&(H[GQ0[k]]=this.colorFromDecimal(this.data[k]),A=!0);A&&_.NH(this.hostElement,H)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.q.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.q.colorFromDecimal=function(A){A=Math.floor(Number(A));return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
_.q.preventDrag=function(A){A.dataTransfer&&(A.dataTransfer.dropEffect="none");A.preventDefault()};
_.q.preventResize=function(A){A.returnValue=!1};
_.q.onInputChange=function(){var A=this.characterCount,H=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&H&&H.remove();if(!H&&this.characterCount>this.maxCharacterLimit){var k=window.getSelection();if(k){var d=k.getRangeAt(0);k.removeAllRanges();k.addRange(d)}}if(k=this.getCurrentRange())d=this.calculateTextBeforeRange(k),this.completeEmojisInRange(k,d,!0)||this.updateSuggestions(k,d);d=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(d);
_.Ed(this.hostElement,"yt-live-chat-message-input-change",d);H&&this.characterCount===0&&H.remove();k&&k.commonAncestorContainer.parentElement.id==="input"&&k.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>A):k&&!k.collapsed&&k.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(A=this.input.childNodes.length-1;A>=0;A--)this.input.childNodes[A].nodeName==="BR"&&this.input.childNodes[A].remove()};
_.q.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.q.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var A=this.getCurrentRange();A&&A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.q.mergeOverflowText=function(A){if(A){var H=document.createRange();H.selectNodeContents(A);H=H.extractContents();this.input.insertBefore(H,A)}};
_.q.checkRangeAtEndOfInput=function(){var A=this.getCurrentRange();if(A){var H=_.Va(this.hostElement).querySelector("#overflow-text"),k=document.createRange();H&&H.previousSibling?H.previousSibling instanceof HTMLImageElement?k.selectNode(H.previousSibling):k.selectNodeContents(H.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?k.selectNode(this.input.lastChild):k.selectNodeContents(this.input.lastChild));k.collapse(!1);return k.isPointInRange(A.startContainer,
A.startOffset)}return!1};
_.q.handleOverflowText=function(A){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var H=_.Va(this.hostElement).querySelector("#overflow-text"),k=this.getCurrentRange();this.input.normalize();A=this.checkRangeAtEndOfInput()&&A;this.mergeOverflowText(H);for(var d,W=0,z=0,u,B=this.input.childNodes,h=0;h<B.length;h++){var O=B[h];O instanceof Text?(z+=O.textContent.length,z>this.maxCharacterLimit&&(d=O,W=this.maxCharacterLimit+O.textContent.length-z)):O instanceof HTMLImageElement&&
(d=void 0,z=O.dataset.emojiId&&((d=this.data)==null?0:d.emojiCharacterCount)?z+this.data.emojiCharacterCount:z+O.alt.length,d=this.input,W=h);if(z>this.maxCharacterLimit&&d){u=document.createRange();u.collapse(!1);H?(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(d,W);break}}u&&(d=!1,k&&(A=u.isPointInRange(k.startContainer,
k.startOffset-1)),H||(H=document.createElement("span"),H.id="overflow-text",H.textContent="",H.setAttribute("contenteditable","true"),_.Va(_.Va(this.hostElement).querySelector("#input")).appendChild(H),d=!0),H&&(k=u.extractContents(),H.insertBefore(k,H.firstChild),A&&H.firstChild&&(k=document.createRange(),d?k.setStartAfter(H.lastChild):k.setStartAfter(H.firstChild),k.collapse(!0),H=window.getSelection(),H.removeAllRanges(),H.addRange(k))))}};
_.q.checkForDuplicateSpans=function(){for(var A=0;A<this.input.childNodes.length;A++){var H=this.input.childNodes[A];if(H.nodeName==="SPAN"){var k=document.createRange();k.selectNodeContents(H);k=k.extractContents();this.input.insertBefore(k,H);H.remove()}}this.handleOverflowText(!0)};
_.q.getCurrentRange=function(){var A=window.getSelection();return A&&A.rangeCount?A.getRangeAt(0).cloneRange():null};
_.q.getInputRange=function(){var A=this.getCurrentRange();if(A){for(var H=A.commonAncestorContainer,k=!1,d=_.Va(this.hostElement).querySelector("#input");H;){if(H===d){k=!0;break}H=H.parentNode}k||(A=null)}A||(A=this.getRangeAtEnd());return A};
_.q.getRangeAtEnd=function(){var A=document.createRange(),H=_.Va(this.hostElement).querySelector("#input").lastChild;!H||H.nodeName!=="#text"&&H.nodeName!=="SPAN"?(A.selectNodeContents(_.Va(this.hostElement).querySelector("#input")),A.collapse(!1)):H.nodeName==="#text"?A.setStart(H,H.textContent.length):A.setStart(H,H.childNodes.length);return A};
_.q.getChatParticipantSuggestions=function(A,H,k,d){var W=_.b("live_chat_enable_handles_web_text_input_update");if(H)for(var z in H)if(z.indexOf(A)===0||W&&z.indexOf(k+A)===0){var u=H[z],B=_.PK(u.authorName);d.push({suggestion:{author:!0,authorType:k,image:u.authorPhoto,alt:B,text:B}});if(d.length>=64)break}};
_.q.getSuggestions=function(A){var H=[],k=A.substring(0,3),d=msj(_.y5,k,!0);if(d)for(var W in d)if(W.toLocaleLowerCase().indexOf(A)===0){var z=d[W];if(z&&z.emojiId){if(z=TGA(_.y5,z.emojiId)){var u=void 0,B=void 0,h=void 0,O=void 0,T=((u=z.image)==null?0:(B=u.accessibility)==null?0:(h=B.accessibilityData)==null?0:h.label)||z.isCustomEmoji?(O=z.shortcuts)==null?void 0:O[0]:z.emojiId;H.push({suggestion:{emoji:!0,image:z.image,alt:T,text:W,textToInsertWhenSelected:z.isCustomEmoji?W:T}})}if(H.length>=
64)break}}if(!this.participantsManager)return null;if(k.indexOf("@")===0||k.indexOf("#")===0)d=k.charAt(0),A=A.substring(1),W=_.b("live_chat_enable_handles_web_text_input_update"),k.indexOf("@")===0&&W&&(W=this.participantsManager.getAuthorsFromPrefix(k.substring(0,2)),this.getChatParticipantSuggestions(A,W,d,H)),k=k.substring(1),k=this.participantsManager.getAuthorsFromPrefix(k),this.getChatParticipantSuggestions(A,k,d,H);return H?H.sort(function(m,J){return J.suggestion.text<m.suggestion.text?-1:
J.suggestion.text===m.suggestion.text?0:1}):null};
_.q.insertSuggestion=function(A){var H=_.b("live_chat_enable_handles_web_text_input_update"),k=A.authorType;H=A.text.indexOf(k)===0&&H?A.text+P_k:k+A.text+P_k;A.emoji?this.insertTextAtRange(this.JSC$14549_lastSuggestionRange,A.textToInsertWhenSelected||""):A.author&&this.insertTextAtRange(this.JSC$14549_lastSuggestionRange,H)};
_.q.updateSuggestionsAtCaret=function(){var A=this.getCurrentRange();A&&this.updateSuggestions(A,this.calculateTextBeforeRange(A))};
_.q.offsetStartOfRangeBy=function(A,H){for(;H>0;)if(A.startOffset-H>=0){A.setStart(A.startContainer,A.startOffset-H);break}else{H=A.startContainer instanceof HTMLImageElement?H-A.startContainer.alt.length:H-A.startOffset;var k=A.startContainer.previousSibling;if(!k){A.setStart(A.startContainer,0);break}if(_.b("live_chat_require_space_for_autocomplete_emoji")){var d=void 0,W=void 0;A.setStart(k,((d=k)==null?void 0:(W=d.textContent)==null?void 0:W.length)||0)}else A.setStart(k,k.childNodes.length||
0)}};
_.q.updateSuggestions=function(A,H){var k=this;this.JSC$14549_lastSuggestionRange&&(this.JSC$14549_lastSuggestionRange.detach(),this.JSC$14549_lastSuggestionRange=null);if((H=YkG.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2&&(this.offsetStartOfRangeBy(A,H.length),this.JSC$14549_lastSuggestionRange=A,(A=this.getSuggestions(H))&&A.length))){this.suggestions=A;_.No(this,function(){_.Va(k.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(A.length-1);return}this.dropdown.opened=!1};
_.q.completeEmojisInRange=function(A,H,k){var d=H.replace(/[\s\xa0]+$/,"");H=H.length-d.length;d=d.split(" ");d=d[d.length-1].trim().toLocaleLowerCase();var W=d.lastIndexOf(":");if(k&&!H&&W!==d.length-1)return!1;W!==-1&&(k=d.lastIndexOf(":",W-1),k!==-1&&(d=d.substring(k)));if((k=_.l2(_.y5,d))&&k.emojiId){k=TGA(_.y5,k.emojiId)||null;this.offsetStartOfRangeBy(A,d.length+H);var z,u,B,h;d=(((z=k)==null?0:z.isCustomEmoji)?(u=k)==null?void 0:(B=u.shortcuts)==null?void 0:B[0]:(h=k)==null?void 0:h.emojiId)||
"";H&&(d+=P_k);this.insertTextAtRange(A,d);this.dropdown.opened=!1;return!0}return!1};
_.q.onSuggestion=function(A){this.insertSuggestion(A.detail);this.dropdown.opened=!1};
_.q.onKeyPress=function(A){A.keyCode===13&&(A.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Ed(this.hostElement,"yt-live-chat-send-message"))};
_.q.completeEmojis=function(){var A=document.createRange(),H=_.Va(this.hostElement).querySelector("#input").lastChild;H?A.setStart(H,H.childNodes.length):(A.selectNodeContents(_.Va(this.hostElement).querySelector("#input")),A.collapse(!1));this.completeEmojisInRange(A,this.calculateTextBeforeRange(A),_.b("live_chat_require_space_for_autocomplete_emoji"))};
_.q.maybePreventTextFormatting=function(A){!_.wK||!A.ctrlKey&&!A.metaKey||A.keyCode!==66&&A.keyCode!==73||(A.stopImmediatePropagation(),A.preventDefault())};
_.q.onKeyDown=function(A){this.maybePreventTextFormatting(A);if(this.dropdown.opened)switch(A.keyCode){case 27:this.dropdown.opened=!1;A.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;A.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);A.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),A.preventDefault()}};
_.q.onKeyUp=function(A){switch(A.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.n6)this.onInputChange()};
_.q.changeSuggestionIndex=function(A){if(this.dropdown.opened){var H=_.Va(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<H.children.length&&(H.children[this.suggestionIndex].active=!1);var k=this.suggestions.length;this.suggestionIndex=(A+k)%k;A=H.children[this.suggestionIndex];A.active=!0;H.scrollTop=A.offsetTop}};
_.q.onInputPaste=function(A){A.preventDefault();(A=A.clipboardData)&&A.types&&(A=A.getData("text/plain")||"",A=A.replace(/\n/g,""),this.insertText(A));(A=this.getCurrentRange())&&A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.q.onFocus=function(){this._setFocused(!0)};
_.q.onBlur=function(){this._setFocused(!1)};
_.q.insertText=function(A){this.insertTextAtRange(this.getInputRange(),A)};
_.q.insertTextAtRange=function(A,H){if(A&&(A.collapsed||A.deleteContents(),H=_.y5.createDocumentFragment(H,!0,!1))){for(var k=_.r((H==null?void 0:H.childNodes)||[]),d=k.next();!d.done;d=k.next()){d=d.value;var W=void 0,z=void 0,u=void 0,B=void 0,h=void 0;(u=(W=window)==null?void 0:(z=W.ShadyCSS)==null?void 0:z.ScopingShim)==null||(h=(B=u).scopeNode)==null||h.call(B,d,this.hostElement.localName)}k=H.lastChild;A.insertNode(H);this.focused||this.input.focus();if(this.focused){A=A.cloneRange();A.selectNodeContents(k);
A.collapse(!1);if(H=window.getSelection())H.removeAllRanges(),H.addRange(A);A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}A=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(A);_.Ed(this.hostElement,"yt-live-chat-message-input-change",A)}};
_.q.setLiveChatRichMessageInput=function(A){_.Va(_.Va(this.hostElement).querySelector("#input")).textContent="";if(A&&A.textSegments){for(var H=0;H<A.textSegments.length;H++){var k=A.textSegments[H];k.text?_.Va(_.Va(this.hostElement).querySelector("#input")).appendChild(_.y5.createDocumentFragment(k.text,!0,!1)):k.emojiId&&(k=_.Lk(_.y5,k.emojiId))&&_.Va(_.Va(this.hostElement).querySelector("#input")).appendChild(_.y5.createEmoji(k,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.q.setText=function(A){this.setLiveChatRichMessageInput(A?{textSegments:[{text:A}]}:null)};
_.q.calculateTextBeforeRange=function(A){var H="",k=A.startContainer;if(k&&k instanceof Text){var d;H=((d=k.textContent)==null?void 0:d.substring(0,A.startOffset))||"";k=k.previousSibling}for(;k&&k instanceof Text;)H=k.textContent+H,k=k.previousSibling;return H.replace(Xw," ")};
_.q.calculateLiveChatRichMessageInput=function(){for(var A=[],H="",k=_.Va(_.Va(this.hostElement).querySelector("#input")).childNodes,d=0;d<k.length;d++){var W=k[d];W instanceof Text?H+=W.textContent:W instanceof HTMLImageElement&&(W.dataset.emojiId?(H&&(A.push({text:H.replace(Xw," ")}),H=""),A.push({emojiId:W.dataset.emojiId})):H+=W.alt)}H&&A.push({text:H.replace(Xw," ")});if(k=_.Va(this.hostElement).querySelector("#overflow-text")){H="";k=k.childNodes;for(d=0;d<k.length;d++)W=k[d],W instanceof Text?
H+=W.textContent:W instanceof HTMLImageElement&&(W.dataset.emojiId?(H&&(A.push({text:H.replace(Xw," ")}),H=""),A.push({emojiId:W.dataset.emojiId})):H+=W.alt);H&&A.push({text:H.replace(Xw," ")})}return{textSegments:A}};
_.q.computeCharacterCount=function(A){if(!A||!A.textSegments)return 0;for(var H=0,k=0;k<A.textSegments.length;k++){var d=A.textSegments[k];if(d.text)H+=d.text.length;else if(d.emojiId){var W=void 0;if((W=this.data)==null?0:W.emojiCharacterCount)H+=this.data.emojiCharacterCount;else{var z=W=void 0,u=void 0;H+=((z=_.Lk(_.y5,(W=d)==null?void 0:W.emojiId))==null?void 0:(u=z.shortcuts)==null?void 0:u[0].length)||0}}}return H};
_.q.characterCountChanged=function(){_.Ed(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.q.focusedChanged=function(){this.hostElement.dispatchEvent(new _.G2("focused-changed",this.focused))};
_.q.focus=function(){this.setFocus(!1)};
_.q.focusAtEnd=function(){this.setFocus(!0)};
_.q.setFocus=function(A){A=A?this.getRangeAtEnd():this.getInputRange();_.Va(this.hostElement).querySelector("#input").focus();var H=window.getSelection();H&&(H.removeAllRanges(),H.addRange(A))};
_.q.insertEmoji=function(A){var H,k=((A==null?0:A.isCustomEmoji)?(H=A.shortcuts)==null?void 0:H[0]:A==null?void 0:A.emojiId)||"";this.insertText(k)};
_.q.computeText=function(A){if(!A||!A.textSegments)return"";for(var H="",k=0;k<A.textSegments.length;k++){var d=A.textSegments[k];if(d.text)H+=d.text;else if(d.emojiId){var W=void 0,z=void 0,u=void 0;H+=((z=_.Lk(_.y5,(W=d)==null?void 0:W.emojiId))==null?void 0:(u=z.shortcuts)==null?void 0:u[0])||""}}return H};
_.q.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.nP.Object.defineProperties(DJ.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
DJ.prototype.focusedChanged=DJ.prototype.focusedChanged;DJ.prototype.characterCountChanged=DJ.prototype.characterCountChanged;DJ.prototype.onSuggestion=DJ.prototype.onSuggestion;DJ.prototype.onMessageSet=DJ.prototype.onMessageSet;DJ.prototype.dataChanged=DJ.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],DJ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],DJ.prototype,"disabled",void 0);_.E([_.G("disabled"),_.l("design:type",Number),_.l("design:paramtypes",[])],DJ.prototype,"inputTabIndex",null);_.E([_.G("data.maxCharacterLimit"),_.C({readOnly:!0,notify:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],DJ.prototype,"maxCharacterLimit",null);
_.E([_.G("liveChatRichMessageInput"),_.C({readOnly:!0,notify:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],DJ.prototype,"characterCount",null);_.E([_.G("maxCharacterLimit, characterCount"),_.C({readOnly:!0,notify:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],DJ.prototype,"remainingCharacterCount",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],DJ.prototype,"isChatMessageInput",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],DJ.prototype,"inputExpanded",void 0);_.E([_.C({readOnly:!0,notify:!0}),_.l("design:type",Object)],DJ.prototype,"liveChatRichMessageInput",void 0);_.E([_.C(),_.l("design:type",Object)],DJ.prototype,"messageInput",void 0);_.E([_.C(),_.l("design:type",Boolean)],DJ.prototype,"ignoreColorMapping",void 0);_.E([_.G("characterCount"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],DJ.prototype,"hasText",null);
_.E([_.C(),_.l("design:type",Object)],DJ.prototype,"isValidWithNoInputText",void 0);_.E([_.G("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.C(),_.l("design:type",Boolean),_.l("design:paramtypes",[])],DJ.prototype,"isInputValid",null);_.E([_.C({readOnly:!0,value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],DJ.prototype,"focused",void 0);_.E([_.C(),_.l("design:type",Array)],DJ.prototype,"suggestions",void 0);
_.E([_.C(),_.l("design:type",_.bV)],DJ.prototype,"emojiManager",void 0);_.E([_.C(),_.l("design:type",_.Fw)],DJ.prototype,"participantsManager",void 0);_.E([_.C(),_.l("design:type",Boolean)],DJ.prototype,"noUnderline",void 0);_.E([_.C(),_.l("design:type",Object)],DJ.prototype,"inputMethodEditorActive",void 0);_.E([_.ol("#dropdown"),_.l("design:type",Object)],DJ.prototype,"dropdown",void 0);_.E([_.ol("#input"),_.l("design:type",HTMLElement)],DJ.prototype,"input",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DJ.prototype,"dataChanged",null);_.E([_.fF("messageInput"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DJ.prototype,"onMessageSet",null);_.E([_.Ze("yt-live-chat-select-suggestion"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],DJ.prototype,"onSuggestion",null);
_.E([_.fF("characterCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DJ.prototype,"characterCountChanged",null);_.E([_.fF("focused"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DJ.prototype,"focusedChanged",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],DJ);
_.FhQ=_.Q(DJ,"yt-live-chat-text-input-field-renderer",function(){if(yJG===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;voi===void 0&&(voi=document.createElement("template"));var d=voi;k.call(H,d.content.cloneNode(!0),A.content.firstChild);yJG=A}A=yJG;return A},{mode:0});var S0=function(){var A=_.a.apply(this,arguments)||this;A.buttonOverrides={style:"overlay",type:"filled"};A.allowAnimations=!1;A.modern=_.b("web_button_rework_with_live");A.noPadding=!1;return A};
_.I(S0,_.a);_.q=S0.prototype;_.q.shouldSupportInlineActionButtons=function(){return!0};
_.q.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"}}}}};
_.q.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.q.attached=function(){this.allowAnimations=!1};
_.q.dataChanged=function(){if(this.data){var A={"--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)};_.NH(this.hostElement,A);this.allowAnimations=!0}};
_.q.messageChanged=function(){var A,H=(A=this.data)==null?void 0:A.message;A=_.Va(_.Va(this.hostElement).querySelector("#message"));A.textContent="";H&&A.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H))};
_.q.computeShowOnlyHeader=function(A,H){return!A||A.pdgLikeButton||A.replyButton||A.buyFlowButton?!1:this.isEmpty(A,H)&&!A.footer};
_.q.computeShowFooterDivider=function(A,H,k){return A?!!A.footer&&!this.isEmpty(A,H)&&!k:!1};
_.q.computeIsUserEditable=function(A){return!!A.inputField};
_.q.computeHasHeartButton=function(A){return(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.q.computeNoveltyImage=function(A){if(A.headerOverlayImage&&A.headerOverlayImage.thumbnails.length){var H=A.headerOverlayImage.thumbnails[0],k,d;if((k=A.pdgPurchasedNoveltyLoggingDirectives)==null?0:(d=k.loggingDirectives)==null?0:d.trackingParams){var W,z;Kh8((W=A.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(z=W.loggingDirectives)==null?void 0:z.trackingParams)}return H.width||0}return 0};
_.q.computeAuthorPhotoSize=function(A){return(A==null?0:A.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.q.inputFocus=function(){var A=_.Va(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");A&&A.focus()};
_.q.inputInsertEmoji=function(A){var H=_.Va(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");H&&H.insertEmoji(A)};
_.q.inputMessage=function(){var A=_.Va(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),H;return A&&((H=this.data)==null?0:H.inputField)?(A.completeEmojis(),_.gH(A.liveChatRichMessageInput)):null};
_.q.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.q.isEmpty=function(A,H){return A?A.empty||!(A.message||A.inputField||H):!0};
_.q.onLowerBuyButtonClick=function(){var A,H=_.L((A=this.data)==null?void 0:A.buyButton,_.gN);H&&H.trackingParams&&!F2V(H.command)&&(A=_.db(H.trackingParams))&&(H=_.hx())&&_.P0(H,A)};
_.q.shouldSupportWholeItemClick=function(){return!0};
_.nP.Object.defineProperties(S0.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
S0.prototype.isDeletedChanged=S0.prototype.isDeletedChanged;S0.prototype.messageChanged=S0.prototype.messageChanged;S0.prototype.dataChanged=S0.prototype.dataChanged;_.E([_.P(oCZ.YtPdgLiveChatItemBehavior),_.l("design:type",Object)],S0.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],S0.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],S0.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],S0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],S0.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:Skl}),_.l("design:type",Object)],S0.prototype,"engagementState",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.l("design:type",Boolean)],S0.prototype,"isUserEditable",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.l("design:type",Boolean)],S0.prototype,"hasHeartButton",void 0);_.E([_.C({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.l("design:type",Boolean)],S0.prototype,"showOnlyHeader",void 0);
_.E([_.C({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.l("design:type",Boolean)],S0.prototype,"showFooterDivider",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Object)],S0.prototype,"allowAnimations",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],S0.prototype,"dashboardMoneyFeed",void 0);_.E([_.C({computed:"computeNoveltyImage(data)"}),_.l("design:type",Number)],S0.prototype,"noveltyWidth",void 0);
_.E([_.C({computed:"computeAuthorPhotoSize(data)"}),_.l("design:type",Number)],S0.prototype,"authorPhotoSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],S0.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],S0.prototype,"noPadding",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S0.prototype,"dataChanged",null);
_.E([_.fF("data.message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S0.prototype,"messageChanged",null);_.E([_.G("data","dashboardMoneyFeed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],S0.prototype,"hideLowerBumper",null);_.E([_.fF("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S0.prototype,"isDeletedChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],S0);
_.Q(S0,"yt-live-chat-paid-message-renderer",function(){if(KZw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;COi===void 0&&(COi=document.createElement("template"));var d=COi;k.call(H,d.content.cloneNode(!0),A.content.firstChild);KZw=A}A=KZw;return A},{mode:0});var Xcw;var Dsi;var Ck=function(){var A=_.A6.apply(this,arguments)||this;A._noAccessors=!0;return A};
_.I(Ck,_.A6);Ck.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.pZ("openPopupConfig")};
_.E([_.P(_.NY.YtOpenPopupBehavior),_.l("design:type",Object)],Ck.prototype,"ytOpenPopupBehavior",void 0);_.E([_.HW()],Ck);_.Kk=[_.NY.YtOpenPopupBehavior,Ck.prototype];var SkN;var ZSf=[_.fm,Drj,_.Ts,_.fJA,_.FU,_.kl0,_.Tr,_.A1,_.wl,_.OgZ,_.Yr];_.b("web_show_ep_endpoint_response_received")&&ZSf.push(_.RL);var Zlk=new _.SE("RESPONSE_RECEIVED_COMMANDS"),n$m=new _.SE("RESPONSE_RECEIVED_COMMANDS");var VUr="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Qi8=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],prN=["GET_UNSEEN_NOTIFICATION_COUNT"];var ag=function(){var A=_.A6.apply(this,arguments)||this;A._noAccessors=!0;A.serviceEndpointHandlers=[];return A};
_.I(ag,_.A6);ag.prototype.created=function(){var A=this;this.endpointHandlerActionMap={"yt-service-request":function(H,k,d,W){var z;return cOC(A.hostElement,H,k,d,W,A.serviceEndpointHandlers,(z=A.onEntitiesUpdated)==null?void 0:z.bind(A))}}};
ag.prototype.attached=function(){_.cq(_.a3.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
ag.prototype.detached=function(){_.pT(_.a3.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.E([_.HW()],ag);_.C_1=[ag.prototype];var KhZ,azp=function(){return KhZ!==void 0?KhZ:KhZ=document.createElement("template")};
document.head.appendChild(azp().content);var cJj;var pcw=document.head,Qf1=pcw.appendChild,V7G;if(cJj===void 0){var EoQ=document.createElement("template");_.Y(EoQ,"\x3c!--css-build:shady--\x3e");EoQ.content.insertBefore(azp().content.cloneNode(!0),EoQ.content.firstChild);cJj=EoQ}V7G=cJj;Qf1.call(pcw,V7G.content);var UsG,lz0=function(){return UsG!==void 0?UsG:UsG=document.createElement("template")};
document.head.appendChild(lz0().content);var t7G;var NGw=document.head,M7N=NGw.appendChild,now;if(t7G===void 0){var ZRJ=document.createElement("template");_.Y(ZRJ,"\x3c!--css-build:shady--\x3e");ZRJ.content.insertBefore(lz0().content.cloneNode(!0),ZRJ.content.firstChild);t7G=ZRJ}now=t7G;M7N.call(NGw,now.content);var fzp;_.uL("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.uL("sharingRendererButtons","buttonRenderer","ytd-button-renderer");fzp=_.b("web_button_rework")&&_.Q$("BUTTON_REWORK")||_.b("web_button_rework_with_live");_.cf=function(){var A=_.a.apply(this,arguments)||this;A.isPressed=!1;A.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return A};
_.I(_.cf,_.a);_.q=_.cf.prototype;_.q.created=function(){this.showTooltips=!0};
_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.onHintIdChanged=function(){var A=this,H,k,d=(H=this.ytButtonBehavior.data)==null?void 0:(k=H.hint)==null?void 0:k.hintRenderer;if(d&&d.hintId){H=_.li(this.hostElement,"yt-get-opened-popups-action");H=(H&&H.length===1?H[0]:[]).length>0;var W=null;d.hintId!=="sponsor-pre-purchase"||H?d.hintId.startsWith("sponsor-post-purchase")&&!H?W=p6w("membership-manage"):d.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!H&&(W=p6w("membership-freebie-join")):W=p6w("membership-join");W&&_.IE.addLowPriorityJob(function(){for(var z=
_.r(W),u=z.next();!u.done;u=z.next())A.ytComponentBehavior.resolveCommand(u.value)})}};
_.q.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.q.onYtNavigate=function(A){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);H&&(A.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.q.onYtServiceRequestSent=function(A,H){this.handleServiceRequestActions(H);_.Ed(this.hostElement,"yt-service-request-sent-button-renderer")};
_.q.onServiceRequestCompleted=function(A,H){this.handleServiceRequestActions(H);_.Ed(this.hostElement,"yt-service-request-completed-button-renderer")};
_.q.updateButton=function(A){var H;if(A=(H=_.L(A,jSj))==null?void 0:H.updatedButton)this.ytButtonBehavior.data=_.L(A,_.gN)};
_.q.handleUpdateButtonAction=function(A){var H=this.ytButtonBehavior.data;H.targetId&&A.updateButtonAction.targetId&&H.targetId===A.updateButtonAction.targetId&&this.updateButton(A)};
_.q.handleServiceRequestActions=function(A){if(A=A.actions)for(var H=0;H<A.length;H++)this.updateButton(A[H])};
_.nP.Object.defineProperties(_.cf,{template:{configurable:!0,enumerable:!0,get:function(){if(SkN===void 0){var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);SkN=A}A=SkN;return A}}});
_.cf.prototype.onServiceRequestCompleted=_.cf.prototype.onServiceRequestCompleted;_.cf.prototype.onYtServiceRequestSent=_.cf.prototype.onYtServiceRequestSent;_.cf.prototype.onYtNavigate=_.cf.prototype.onYtNavigate;_.cf.prototype.onPressedStateChanged=_.cf.prototype.onPressedStateChanged;_.cf.prototype.onHintIdChanged=_.cf.prototype.onHintIdChanged;_.E([_.C(),_.l("design:type",Object)],_.cf.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],_.cf.prototype,"isPressed",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],_.cf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.HDA.YtButtonBehavior),_.l("design:type",Object)],_.cf.prototype,"ytButtonBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],_.cf.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],_.cf.prototype,"ytComponentBehavior",void 0);
_.E([_.P(Hf.YtRenderButtonBehavior),_.l("design:type",Object)],_.cf.prototype,"ytRenderButtonBehavior",void 0);_.E([_.fF("data.hint.hintRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],_.cf.prototype,"onHintIdChanged",null);_.E([_.fF("isPressed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],_.cf.prototype,"onPressedStateChanged",null);
_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],_.cf.prototype,"onYtNavigate",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],_.cf.prototype,"onYtServiceRequestSent",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],_.cf.prototype,"onServiceRequestCompleted",null);_.E([_.O6({is:"ytd-button-renderer",disableElementRegistration:fzp})],_.cf);var pk=function(){var A=_.a.apply(this,arguments)||this;A.modern=_.b("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.I(pk,_.a);_.q=pk.prototype;_.q.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"}}}}};
_.q.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.q.dataChanged=function(){if(this.data&&this.data.sticker){var A=_.C3(this.data.sticker.thumbnails,this.stickerWidth);A||_.H_N(A).thenCatch(function(){_.Pq(new _.Ti("Failed to load Super Sticker with url",A))})}};
_.q.computeAuthorPhotoSize=function(A){return(A==null?0:A.isV2Style)?32:40};
_.q.computeIsV2Style=function(A){return(A==null?0:A.isV2Style)?!0:!1};
_.q.onStickerLoaded=function(A){var H,k,d;(H=_.X_(A))==null||(k=H.parentNode)==null||(d=k.classList)==null||d.add("sticker-loaded")};
_.q.computeNoveltyImageWidth=function(A){var H,k;if(A==null?0:(H=A.headerOverlayImage)==null?0:(k=H.thumbnails)==null?0:k.length){H=A.headerOverlayImage.thumbnails[0];var d,W;if((d=A.pdgPurchasedNoveltyLoggingDirectives)==null?0:(W=d.loggingDirectives)==null?0:W.trackingParams){var z,u;Kh8((z=A.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(u=z.loggingDirectives)==null?void 0:u.trackingParams)}return H.width||0}return 0};
_.q.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.q.updateStickerStyles=function(){var A=this.data;A&&(A={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.authorNameTextColor)},
_.NH(this.hostElement,A))};
_.q.onBuyButtonClick=function(){var A,H=_.L((A=this.data)==null?void 0:A.buyButton,_.gN);H&&!F2V(H.command)&&this.ytRendererBehavior.logExplicitClick(H)};
_.q.shouldSupportWholeItemClick=function(){return!0};
_.nP.Object.defineProperties(pk.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 A;return((A=this.data)==null?0:A.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
pk.prototype.updateStickerStyles=pk.prototype.updateStickerStyles;pk.prototype.isDeletedChanged=pk.prototype.isDeletedChanged;pk.prototype.onStickerLoaded=pk.prototype.onStickerLoaded;pk.prototype.dataChanged=pk.prototype.dataChanged;_.E([_.P(oCZ.YtPdgLiveChatItemBehavior),_.l("design:type",Object)],pk.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],pk.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],pk.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pk.prototype,"data",void 0);
_.E([_.C({computed:"computeAuthorPhotoSize(data)"}),_.l("design:type",Number)],pk.prototype,"authorPhotoSize",void 0);_.E([_.C(),_.l("design:type",Boolean)],pk.prototype,"isDeleted",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],pk.prototype,"dashboardMoneyFeed",void 0);_.E([_.C({computed:"computeNoveltyImageWidth(data)"}),_.l("design:type",Number)],pk.prototype,"noveltyWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pk.prototype,"modern",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.l("design:type",Boolean)],pk.prototype,"isV2Style",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pk.prototype,"dataChanged",null);_.E([_.Ze("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],pk.prototype,"onStickerLoaded",null);
_.E([_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],pk.prototype,"stickerWidth",null);_.E([_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],pk.prototype,"stickerHeight",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],pk.prototype,"hasHeartButton",null);_.E([_.G("data","dashboardMoneyFeed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],pk.prototype,"hideLowerBumper",null);
_.E([_.fF("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pk.prototype,"isDeletedChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pk.prototype,"updateStickerStyles",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],pk);
_.Q(pk,"yt-live-chat-paid-sticker-renderer",function(){if(Dsi===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;Xcw===void 0&&(Xcw=document.createElement("template"));var d=Xcw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Dsi=A}A=Dsi;return A},{mode:0});var wcp;var ooJ;var $sp,AOw=function(){return $sp!==void 0?$sp:$sp=document.createElement("template")};
document.head.appendChild(AOw().content);var HSp,siw=function(){return HSp!==void 0?HSp:HSp=document.createElement("template")};
document.head.appendChild(siw().content);var kJQ;var duJ,WxA=function(){return duJ!==void 0?duJ:duJ=document.createElement("template")};
document.head.appendChild(WxA().content);var zxG;var qOQ=document.head,rOA=qOQ.appendChild,uTk;if(zxG===void 0){var Bkw=document.createElement("template");_.Y(Bkw,"\x3c!--css-build:shady--\x3e");Bkw.content.insertBefore(WxA().content.cloneNode(!0),Bkw.content.firstChild);zxG=Bkw}uTk=zxG;rOA.call(qOQ,uTk.content);var exJ=document.head,xuQ=exJ.appendChild,iSk;if(kJQ===void 0){var Q5=document.createElement("template");_.Y(Q5,"\x3c!--css-build:shady--\x3e");Q5.content.insertBefore(siw().content.cloneNode(!0),Q5.content.firstChild);Q5.content.insertBefore(AOw().content.cloneNode(!0),Q5.content.firstChild);kJQ=Q5}iSk=kJQ;xuQ.call(exJ,iSk.content);var V5=function(){var A=_.A6.apply(this,arguments)||this;A.focusedIndex=0;A.verticalOffset=0;A.verticalAlign="top";A.dynamicAlign=!0;return A};
_.I(V5,_.A6);V5.prototype.emojiUrl=function(A){A=_.Lk(this.emojiManager,A);if(!A)return"";var H;A=(H=A.image)==null?void 0:H.thumbnails;return _.C3(A,24)||""};
var hxw=function(A){var H;A.emojiVariants&&(H=A.data)!=null&&H.target&&_.No(A,function(){A.set("verticalOffset",-1*A.hostElement.clientHeight);var k=_.Va(A.hostElement).querySelector("img");k&&k.focus()})};
_.q=V5.prototype;_.q.onKeyboardEnter=function(){};
_.q.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.q.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.q.onKeyDown=function(A){switch(A.keyCode){case 13:this.onKeyboardEnter();A.preventDefault();break;case 40:this.changeFocus(1);A.preventDefault();break;case 38:this.changeFocus(-1);A.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.q.onYtEmojiSelect=function(A){var H=this,k,d,W,z,u,B,h,O;return _.e(function(T){if(T.nextAddress==1)return d=(k=H.data)==null?void 0:k.emoji,u=((W=d)==null?void 0:W.stickyPrefId)||((z=d)==null?void 0:z.emojiId),h=(B=A.detail)==null?void 0:B.emojiId,u&&h&&u!==h?T.yield((O=H.emojiManager)==null?void 0:JJ1(O,d,h),2):T.return();_.Ud(H.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[d,h]);_.EN(T)})};
_.q.changeFocus=function(A){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+A+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(A=_.Va(this.hostElement).querySelector("#variants"))&&A.children[this.focusedIndex].focus())};
_.nP.Object.defineProperties(V5.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
V5.prototype.onYtEmojiSelect=V5.prototype.onYtEmojiSelect;V5.prototype.onKeyDown=V5.prototype.onKeyDown;V5.prototype.onEmojiVariantsChanged=V5.prototype.onEmojiVariantsChanged;V5.prototype.onVerticalOffsetOrPositionTargetChanged=V5.prototype.onVerticalOffsetOrPositionTargetChanged;_.E([_.P(_.LI),_.l("design:type",Object)],V5.prototype,"ironOverlayBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],V5.prototype,"data",void 0);_.E([_.C(),_.l("design:type",_.bV)],V5.prototype,"emojiManager",void 0);
_.E([_.C(),_.l("design:type",Object)],V5.prototype,"emojiVariants",void 0);_.E([_.C(),_.l("design:type",Object)],V5.prototype,"focusedIndex",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],V5.prototype,"positionTarget",null);_.E([_.C({reflectToAttribute:!0}),_.G("verticalOffset","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V5.prototype,"isPositioned",null);_.E([_.C(),_.l("design:type",Object)],V5.prototype,"verticalOffset",void 0);
_.E([_.C(),_.l("design:type",Object)],V5.prototype,"verticalAlign",void 0);_.E([_.C(),_.l("design:type",Object)],V5.prototype,"dynamicAlign",void 0);_.E([_.fF("verticalOffset","positionTarget"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V5.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.E([_.fF("emojiVariants"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V5.prototype,"onEmojiVariantsChanged",null);
_.E([_.Ze("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],V5.prototype,"onKeyDown",null);_.E([_.Ze("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype",Promise)],V5.prototype,"onYtEmojiSelect",null);_.E([_.HW()],V5);var OSw=[V5.prototype];var Rxi;var Tkw;var mup=/medium-light|medium-dark|light|medium|dark/,JOw=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,g$G=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Ep=function(){var A=_.a.apply(this,arguments)||this;A.userSelection={left:null,right:null};A.scrollAction="lock";A.isEmojiDraftInProgress=!1;return A};
_.I(Ep,_.a);_.q=Ep.prototype;_.q.onClick=function(A){A=_.X_(A);A instanceof HTMLImageElement&&this.selectOrUpdateEmoji(A)};
_.q.selectOrUpdateEmoji=function(A){var H=A.getAttribute("selection");H&&(H==="default"?_.Ed(this.hostElement,"yt-emoji-select",_.Lk(this.emojiManager,A.id)):H==="left"?this.userSelection=Object.assign({},this.userSelection,{left:A.src}):H==="right"?this.userSelection=Object.assign({},this.userSelection,{right:A.src}):H==="user"&&this.userSelection.left&&this.userSelection.right&&_.Ed(this.hostElement,"yt-emoji-select",_.Lk(this.emojiManager,A.id)))};
_.q.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.q.onMultiSelectorThumbnailRowChanged=function(){var A,H,k;((A=this.data)==null?0:(H=A.emoji)==null?0:(k=H.multiSelectorThumbnailRow)==null?0:k.length)&&this.openSelector()};
_.q.getThumbnailFromEmojiRow=function(A){var H,k;return(A==null?void 0:(H=A.thumbnails)==null?void 0:(k=H[0])==null?void 0:k.url)||""};
_.q.getEmojiAltTextForPartialSelector=function(A){var H;return((H=this.getThumbnailFromEmojiRow(A).match(JOw))==null?void 0:H[0])||""};
_.q.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.q.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.q.getRowSelection=function(A){return["left","right"][A]};
_.q.getIdFromComposedEmoji=function(A){return(A==null?void 0:A.emojiId)||""};
_.q.getEmojiFromPartialSelections=function(A,H){if(!A&&!H)return null;var k,d,W=(k=this.data)==null?void 0:(d=k.emoji)==null?void 0:d.variantIds;if(!W||!W.length)return null;var z;A=(z=A.match(mup))==null?void 0:z[0];var u;H=(u=H.match(mup))==null?void 0:u[0];if(!A||!H)return null;var B=g$G.get(A);u=g$G.get(H);if(B===u){u=Array.from(g$G.values()).filter(function(O){return O!==B}).join("|");
var h=new RegExp("^((?!("+u+")).)*"+B+"$")}else h=new RegExp(B+".*"+u);return(W=W.find(function(O){return h.test(O)}))&&_.Lk(this.emojiManager,W)||null};
_.q.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var A,H=this.ytEmojiSelectorBehavior.emojiUrl(((A=this.data.emoji)==null?void 0:A.emojiId)||"");_.Va(this.hostElement).querySelector('[selection="user"]').src.includes(H)||(this.isEmojiDraftInProgress=!0)}};
_.q.onDomChange=function(){hxw(this.ytEmojiSelectorBehavior)};
_.q.getFocusableElements=function(){return _.Va(this.hostElement).querySelectorAll("img").filter(function(A){return A.getAttribute("role")==="option"})};
_.q.changeFocus=function(A){var H=this.getFocusableElements();H!=null&&H.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+A+H.length)%H.length,this.ytEmojiSelectorBehavior.focusedIndex<H.length&&(A=H[this.ytEmojiSelectorBehavior.focusedIndex])&&A.focus())};
_.q.onKeyboardEnter=function(){var A=this.getFocusableElements();A!=null&&A.length&&(A=A[this.ytEmojiSelectorBehavior.focusedIndex])&&A instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(A),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.nP.Object.defineProperties(Ep.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var A=this,H,k,d;return this.emojiManager&&((H=this.data)==null?0:(k=H.emoji)==null?0:(d=k.variantIds)==null?0:d.length)?this.data.emoji.variantIds.map(function(W){return!!W&&_.Lk(A.emojiManager,W)}).filter(function(W){return!!W}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var A,H=(A=this.userSelection)==null?void 0:A.left,k;A=(k=this.userSelection)==null?void 0:k.right;return H&&A?this.getEmojiFromPartialSelections(H,A):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.composedEmojiSelection)==null?0:A.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var H;A=(H=this.userSelection)==null?void 0:H.left;var k;H=(k=this.userSelection)==null?void 0:k.right;if(!A&&!H){var d;return this.ytEmojiSelectorBehavior.emojiUrl(((d=this.data.emoji)==null?void 0:d.emojiId)||"")}return A&&!H?A:!A&&H?H:""}}});
Ep.prototype.onMultiSelectorThumbnailRowChanged=Ep.prototype.onMultiSelectorThumbnailRowChanged;Ep.prototype.onClick=Ep.prototype.onClick;_.E([_.P(_.LI),_.l("design:type",Object)],Ep.prototype,"ironOverlayBehavior",void 0);_.E([_.P(OSw),_.l("design:type",Object)],Ep.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ep.prototype,"data",void 0);_.E([_.C(),_.l("design:type",_.bV)],Ep.prototype,"emojiManager",void 0);
_.E([_.C(),_.l("design:type",Object)],Ep.prototype,"userSelection",void 0);_.E([_.C(),_.l("design:type",Object)],Ep.prototype,"scrollAction",void 0);_.E([_.C(),_.l("design:type",Object)],Ep.prototype,"isEmojiDraftInProgress",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ep.prototype,"emojiVariants",null);_.E([_.G("data","userSelection"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ep.prototype,"composedEmojiSelection",null);
_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],Ep.prototype,"onClick",null);_.E([_.fF("data.emoji.multiSelectorThumbnailRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ep.prototype,"onMultiSelectorThumbnailRowChanged",null);_.E([_.G("data","userSelection","composedEmojiSelection"),_.l("design:type",String),_.l("design:paramtypes",[])],Ep.prototype,"draftEmojiUrl",null);
_.E([_.h6({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Ep);
_.Q(Ep,"yt-emoji-multi-person-selector",function(){if(Tkw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Rxi===void 0&&(Rxi=document.createElement("template"));var d=Rxi;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Tkw=A}A=Tkw;return A},{mode:2});var bSG;var LxQ;var Up=function(){var A=_.a.apply(this,arguments)||this;A.tooltip_=null;return A};
_.I(Up,_.a);_.q=Up.prototype;_.q.dataChanged_=function(){var A;if((A=this.data)==null?0:A.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Va(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.t1)(this.tooltip_).textContent=this.data.tooltip};
_.q.computeTargetId=function(){var A;return((A=this.data)==null?void 0:A.targetId)||""};
_.q.computeId_=function(A){return A};
_.q.computeIcon_=function(A){return _.N0(A)};
_.q.onTap_=function(){this.active=!this.active;_.Ed(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.q.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("active-changed",this.active))};
_.nP.Object.defineProperties(Up.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var A,H;if((A=this.data)==null?0:(H=A.icon)==null?0:H.iconType)return this.data.icon.iconType==="SUPER_STICKER";var k,d;return((k=this.data)==null?void 0:(d=k.icon)==null?void 0:d.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Up.prototype.activeChangedForBinding=Up.prototype.activeChangedForBinding;Up.prototype.dataChanged_=Up.prototype.dataChanged_;_.E([_.P(_.TB.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],Up.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Up.prototype,"data",void 0);_.E([_.C({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.l("design:type",String)],Up.prototype,"id",void 0);
_.E([_.C({computed:"computeTargetId(data.targetId)"}),_.l("design:type",String)],Up.prototype,"targetId",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Up.prototype,"active",void 0);_.E([_.C({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.l("design:type",String)],Up.prototype,"icon",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Up.prototype,"dataChanged_",null);
_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Up.prototype,"iconFilled",null);_.E([_.fF("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Up.prototype,"activeChangedForBinding",null);_.E([_.h6({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Up);
_.Q(Up,"yt-emoji-picker-category-button-renderer",function(){if(LxQ===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;bSG===void 0&&(bSG=document.createElement("template"));var d=bSG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);LxQ=A}A=LxQ;return A},{mode:2});var v$A;var yOj;var lV=function(){var A=_.a.apply(this,arguments)||this;A.ariaLabel=null;A.ariaActivedescendant=null;A.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};A.JSC$14614_ignoreNextFocus_=!1;A.longPressTimeoutId=-1;return A};
_.I(lV,_.a);_.q=lV.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.q.emojiChanged_=function(){this.changeFocus_(0,!1);for(var A=_.A7(),H=0;H<this.emoji.length;H++){var k={veType:88013,elementIndex:H},d=this.emoji[H];d.isCustomEmoji&&(d=document.querySelector(("#"+d.emojiId).replace("/","\\/")))&&(k=_.$9(A,k))&&(d.visualElement=k)}};
_.q.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.q.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.q.emojiSkinToneChanged_=function(A){this.skinTone=A};
_.q.dataChanged=function(){this.data&&this.data.emojiData&&ORA(this.emojiManager,this.data.emojiData)};
_.q.emojiUrl=function(A){A=this.getEmoji(A);if(!A)return"";var H;A=(H=A.image)==null?void 0:H.thumbnails;return _.C3(A,24)||""};
_.q.emojiAlt=function(A){var H=this.get("image.accessibility.accessibilityData.label",A);return H?H:A.isCustomEmoji?A.shortcuts[0]:A.emojiId};
_.q.emojiAriaLabel=function(A){return A.shortcuts?A.shortcuts[0]:""};
_.q.emojiAriaSelected=function(A,H,k){return A&&k==H?"true":"false"};
_.q.getEmoji=function(A){if(this.emojiManager)return this.shouldUseStickyPreferences?TGA(this.emojiManager,A):vf(this.emojiManager,A)};
_.q.computeId_=function(A){return A.categoryId||""};
_.q.computeEmoji=function(A){var H=this;return this.emojiManager?A.emojiIds?A.emojiIds.map(function(k){return k?_.Lk(H.emojiManager,k):null}).filter(sQm):A.emojiData?A.emojiData.map(function(k){var d=!!k.emojiId&&_.Lk(H.emojiManager,k.emojiId);
return d?Object.assign({},d,k):null}).filter(sQm):[]:[]};
_.q.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.q.computeAriaLabel_=function(A){return _.PK(A)};
_.q.computeAriaActivedescendant_=function(A,H){return A&&A[H]?A[H].emojiId||"":""};
_.q.handleLongPressEmojiWithVariants=function(A,H){this.changeFocusToEmoji(A.emojiId,!1);this.openVariantSelector(A,H)};
_.q.onMouseDown=function(A){var H=this;this.hostElement!==document.activeElement&&(this.JSC$14614_ignoreNextFocus_=!0);if(A.button===0){var k=_.X_(A);if(k instanceof HTMLImageElement){var d=_.Va(this.hostElement).querySelector("#repeat").itemForElement(k);this.emojiContainsVariants(d)&&(this.longPressTimeoutId=setTimeout(function(){H.handleLongPressEmojiWithVariants(d,k)},500))}}};
_.q.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.q.onFocus=function(){this.JSC$14614_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14614_ignoreNextFocus_=!1};
_.q.onBlur_=function(){this.showFocus=!1};
_.q.emojiContainsVariants=function(A){return!!(A&&A.variantIds&&A.variantIds.length)};
_.q.onClick=function(A){clearTimeout(this.longPressTimeoutId);A=_.X_(A);if(A instanceof HTMLImageElement){var H=A.id;this.changeFocusToEmoji(H,!1);var k=this.getEmoji(H),d;if(d=this.shouldUseStickyPreferences&&this.emojiContainsVariants(k)){var W;d=!((W=this.emojiManager.emojiMap[H])!=null&&W.stickyPrefId)}d?(W=_.Va(this.hostElement).querySelector("#repeat").itemForElement(A),this.openVariantSelector(W,A)):_.Ed(this.hostElement,"yt-emoji-select",k)}};
_.q.isActiveEmojiWithVariants=function(A,H){return A&&H?H.stickyPrefId?A===H.stickyPrefId:A===H.emojiId:!1};
_.q.onCloseEmojiVariantSelector=function(A){this.activeEmojiWithVariantsId===A&&(this.activeEmojiWithVariantsId="")};
_.q.onMouseOver_=function(A){A=_.X_(A);A instanceof HTMLImageElement&&_.Ed(this.hostElement,"yt-emoji-hover",_.Lk(this.emojiManager,A.id))};
_.q.changeFocus_=function(A,H){this.focusedIndex=(this.focusedIndex+A+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(A=this.emoji[this.focusedIndex],H&&(this.showFocus=!0,_.Va(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Ed(this.hostElement,"yt-emoji-hover",A)))};
_.q.changeFocusToEmoji=function(A,H){if(A){var k=this.emoji.findIndex(function(d){return d.emojiId===A});
k!==-1&&this.changeFocus_(k-this.focusedIndex,H)}};
_.q.onKeyDown_=function(A){switch(A.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var H=this.emoji[this.focusedIndex];if(H&&H.emojiId){if(this.emojiContainsVariants(H)){var k=_.Va(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(H,k)}else _.Ed(this.hostElement,"yt-emoji-select",vf(this.emojiManager,H.emojiId)),this.hostElement.focus();A.preventDefault()}}break;case 40:this.changeFocus_(1,!0);A.preventDefault();break;case 38:this.changeFocus_(-1,!0),
A.preventDefault()}};
_.q.onEmojiStickyPreferenceChanged=function(A,H){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&A.emojiId&&A.variantIds&&A.variantIds.includes(H)&&this.activeEmojiWithVariantsId!==H&&this.setStickyEmojiPreference(A.emojiId,H)};
_.q.openVariantSelector=function(A,H){this.activeEmojiWithVariantsId=A.stickyPrefId||A.emojiId||"";_.Ed(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:A,target:H})};
_.q.setStickyEmojiPreference=function(A,H){if(this.data){var k=this.emoji.findIndex(function(W){return W.emojiId===A});
if(k!==-1){var d=this.emoji[k];d.stickyPrefId=H;this.set("emoji."+k,Object.assign({},d));this.activeEmojiWithVariantsId=H}}};
lV.prototype.onKeyDown_=lV.prototype.onKeyDown_;lV.prototype.onMouseOver_=lV.prototype.onMouseOver_;lV.prototype.onClick=lV.prototype.onClick;lV.prototype.onBlur_=lV.prototype.onBlur_;lV.prototype.onFocus=lV.prototype.onFocus;lV.prototype.onMouseUp=lV.prototype.onMouseUp;lV.prototype.onMouseDown=lV.prototype.onMouseDown;lV.prototype.dataChanged=lV.prototype.dataChanged;lV.prototype.disableIncrementalLoadingChanged_=lV.prototype.disableIncrementalLoadingChanged_;lV.prototype.emojiManagerChanged_=lV.prototype.emojiManagerChanged_;
lV.prototype.emojiChanged_=lV.prototype.emojiChanged_;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],lV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lV.prototype,"data",void 0);_.E([_.C({computed:"computeId_(data)"}),_.l("design:type",String)],lV.prototype,"id",void 0);_.E([_.C({computed:"computeEmoji(data)"}),_.l("design:type",Array)],lV.prototype,"emoji",void 0);_.E([_.C(),_.l("design:type",Number)],lV.prototype,"skinTone",void 0);
_.E([_.C(),_.l("design:type",_.bV)],lV.prototype,"emojiManager",void 0);_.E([_.C(),_.l("design:type",Boolean)],lV.prototype,"disableIncrementalLoading",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],lV.prototype,"focusedIndex",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],lV.prototype,"showFocus",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.l("design:type",Object)],lV.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.l("design:type",Object)],lV.prototype,"ariaActivedescendant",void 0);_.E([_.C({value:60}),_.l("design:type",Number)],lV.prototype,"domRepeatTargetFramerate",void 0);_.E([_.C({value:1}),_.l("design:type",Number)],lV.prototype,"domRepeatInitialCount",void 0);_.E([_.C({value:""}),_.l("design:type",String)],lV.prototype,"activeEmojiWithVariantsId",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],lV.prototype,"shouldUseStickyPreferences",void 0);_.E([_.fF("emoji"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lV.prototype,"emojiChanged_",null);_.E([_.fF("emojiManager"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lV.prototype,"emojiManagerChanged_",null);
_.E([_.fF("disableIncrementalLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lV.prototype,"disableIncrementalLoadingChanged_",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lV.prototype,"dataChanged",null);_.E([_.Ze("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],lV.prototype,"onMouseDown",null);
_.E([_.Ze("mouseup"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lV.prototype,"onMouseUp",null);_.E([_.Ze("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lV.prototype,"onFocus",null);_.E([_.Ze("blur"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lV.prototype,"onBlur_",null);
_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],lV.prototype,"onClick",null);_.E([_.Ze("mouseover"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],lV.prototype,"onMouseOver_",null);_.E([_.Ze("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],lV.prototype,"onKeyDown_",null);
_.E([_.h6({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],lV);
_.Q(lV,"yt-emoji-picker-category-renderer",function(){if(yOj===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;v$A===void 0&&(v$A=document.createElement("template"));var d=v$A;k.call(H,d.content.cloneNode(!0),A.content.firstChild);yOj=A}A=yOj;return A},{mode:2});var jiA;var IUw;var YOJ;var Phi;var t0=function(){var A=_.a.apply(this,arguments)||this;A.ariaLabel=null;A.ariaActivedescendant=null;A.getFormattedStringRawText=_.PK;A.JSC$14620_ignoreNextFocus_=!1;return A};
_.I(t0,_.a);_.q=t0.prototype;_.q.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")};
_.q.emojiUrl=function(A){var H,k;A=(H=vf(this.emojiManager,A,!0))==null?void 0:(k=H.image)==null?void 0:k.thumbnails;return _.C3(A,24)||""};
_.q.emojiAlt=function(A){var H=this.get("image.accessibility.accessibilityData.label",A);return H?H:A.isCustomEmoji?A.shortcuts[0]:A.emojiId};
_.q.emojiId=function(A){return"emoji"+A};
_.q.computeId_=function(A){return A.categoryId||""};
_.q.computeAriaActivedescendant_=function(A){return this.emoji&&A<this.emoji.length?this.emojiId(A):""};
_.q.emojiChanged_=function(){this.changeFocus_(0,!1);for(var A=_.A7(),H=0;H<this.emoji.length;H++){var k={veType:88013,elementIndex:H},d=this.emoji[H];d.isCustomEmoji&&(d=document.querySelector(("#"+d.emojiId).replace("/","\\/")))&&(k=_.$9(A,k))&&(d.visualElement=k)}};
_.q.computeEmoji_=function(A){var H=this;return this.emojiManager?A.emojiIds.map(function(k){return _.Lk(H.emojiManager,k,!0)}).filter(kYW):[]};
_.q.titleOffsetChanged_=function(){var A=this.hostElement.getBoundingClientRect(),H=_.Va(this.hostElement).querySelector("#title").getBoundingClientRect();A=Math.max(0,Math.min(this.titleOffset,A.height-H.height));_.Va(this.hostElement).querySelector("#title").style.top=A+"px"};
_.q.onEmojiMouseOver_=function(A){_.Ed(this.hostElement,"yt-emoji-hover",A.model.item)};
_.q.onEmojiTap_=function(A){this.data.command&&(A=lzf(_.wj().resolve(_.fZ(CT)),this.data.command,A),_.Ed(this.hostElement,"yt-navigate",A))};
_.q.emojiAriaLabel=function(A){return A.shortcuts[0]};
_.q.emojiAriaSelected=function(A,H,k){return A&&k==H?"true":"false"};
_.q.changeFocus_=function(A,H){var k=this.emoji.length;this.focusedIndex=(this.focusedIndex+A+k)%k;A=this.emoji[this.focusedIndex];if(H){var d;(d=_.Va(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||d.scrollIntoView(!1);_.Ed(this.hostElement,"yt-emoji-hover",A)}};
_.q.onMouseDown_=function(){this.JSC$14620_ignoreNextFocus_=!0};
_.q.onFocus_=function(){this.JSC$14620_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14620_ignoreNextFocus_=!1};
_.q.onBlur_=function(){this.showFocus=!1};
_.q.onKeyDown_=function(A){switch(A.keyCode){case 13:this.onEmojiTap_(A);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);A.preventDefault();break;case 38:this.changeFocus_(-1,!0),A.preventDefault()}};
t0.prototype.onKeyDown_=t0.prototype.onKeyDown_;t0.prototype.onBlur_=t0.prototype.onBlur_;t0.prototype.onFocus_=t0.prototype.onFocus_;t0.prototype.onMouseDown_=t0.prototype.onMouseDown_;t0.prototype.onEmojiTap_=t0.prototype.onEmojiTap_;t0.prototype.titleOffsetChanged_=t0.prototype.titleOffsetChanged_;t0.prototype.emojiChanged_=t0.prototype.emojiChanged_;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],t0.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],t0.prototype,"data",void 0);_.E([_.C({computed:"computeId_(data)"}),_.l("design:type",String)],t0.prototype,"id",void 0);_.E([_.C({computed:"computeEmoji_(data)"}),_.l("design:type",Array)],t0.prototype,"emoji",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],t0.prototype,"titleOffset",void 0);_.E([_.C({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.l("design:type",Object)],t0.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.l("design:type",Object)],t0.prototype,"ariaActivedescendant",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],t0.prototype,"showFocus",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],t0.prototype,"focusedIndex",void 0);_.E([_.C(),_.l("design:type",_.bV)],t0.prototype,"emojiManager",void 0);
_.E([_.fF("emoji"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t0.prototype,"emojiChanged_",null);_.E([_.fF("titleOffset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t0.prototype,"titleOffsetChanged_",null);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],t0.prototype,"onEmojiTap_",null);
_.E([_.Ze("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t0.prototype,"onMouseDown_",null);_.E([_.Ze("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t0.prototype,"onFocus_",null);_.E([_.Ze("blur"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t0.prototype,"onBlur_",null);
_.E([_.Ze("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],t0.prototype,"onKeyDown_",null);_.E([_.h6({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],t0);
_.Q(t0,"yt-emoji-picker-upsell-category-renderer",function(){if(Phi===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;YOJ===void 0&&(YOJ=document.createElement("template"));var d=YOJ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Phi=A}A=Phi;return A},{mode:2});var GJQ;var Fx1;var Nc=function(){var A=_.a.apply(this,arguments)||this;A.scrollAction="lock";A.verticalAlign="top";return A};
_.I(Nc,_.a);_.q=Nc.prototype;_.q.onClick=function(A){A=_.X_(A);A instanceof HTMLImageElement&&_.Ed(this.hostElement,"yt-emoji-select",_.Lk(this.emojiManager,A.id))};
_.q.openSelector=function(){this.ironOverlayBehavior.open()};
_.q.onDomChange=function(){hxw(this.ytEmojiSelectorBehavior)};
_.q.computeIsFamilySelector=function(A){var H;return(A==null?void 0:(H=A.emoji)==null?void 0:H.emojiId)==="\ud83d\udc6a"};
_.q.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var A=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];A&&A.emojiId&&(_.Ed(this.hostElement,"yt-emoji-select",_.Lk(this.emojiManager,A.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.nP.Object.defineProperties(Nc.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var A=this,H,k,d;return this.emojiManager&&((H=this.data)==null?0:(k=H.emoji)==null?0:(d=k.variantIds)==null?0:d.length)?this.data.emoji.variantIds.map(function(W){return!!W&&_.Lk(A.emojiManager,W)}).filter(function(W){return!!W}):[]}}});
Nc.prototype.onClick=Nc.prototype.onClick;_.E([_.P(_.LI),_.l("design:type",Object)],Nc.prototype,"ironOverlayBehavior",void 0);_.E([_.P(OSw),_.l("design:type",Object)],Nc.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Nc.prototype,"data",void 0);_.E([_.C(),_.l("design:type",_.bV)],Nc.prototype,"emojiManager",void 0);_.E([_.C(),_.l("design:type",Object)],Nc.prototype,"scrollAction",void 0);_.E([_.C(),_.l("design:type",Object)],Nc.prototype,"verticalAlign",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.l("design:type",Boolean)],Nc.prototype,"isFamilySelector",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Nc.prototype,"emojiVariants",null);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],Nc.prototype,"onClick",null);_.E([_.h6({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Nc);
_.Q(Nc,"yt-emoji-variant-selector",function(){if(Fx1===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;GJQ===void 0&&(GJQ=document.createElement("template"));var d=GJQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Fx1=A}A=Fx1;return A},{mode:2});var Xrp=/:/g,DuA=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Mc=function(){var A=_.a.apply(this,arguments)||this;A.emojiVariantSelector=null;A.emojiMultiPersonSelector=null;A.identity=_.Kl;A.lastAnimationTime_=0;A.animationStart_=null;A.animationEnd_=null;return A};
_.I(Mc,_.a);_.q=Mc.prototype;
_.q.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}}};
_.q.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.y5)};
_.q.attached=function(){_.n6&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&RsJ(this.emojiManager)};
_.q.dataChanged=function(){var A;if((A=this.data)==null?0:A.categories){A=this.emojiManager;var H=this.getCustomEmojiIds();A.pickerCustomEmojiIds=[].concat(_.fV(BGw),_.fV(H))}};
_.q.getCustomEmojiIds=function(){var A,H=(A=this.data.categories)==null?void 0:A.find(function(z){var u;return((u=z.emojiPickerCategoryRenderer)==null?void 0:u.categoryId)&&DuA.includes(z.emojiPickerCategoryRenderer.categoryId)}),k;
A=(k=this.data.categories)==null?void 0:k.find(function(z){return z.emojiPickerUpsellCategoryRenderer});
var d,W;return[H==null?void 0:(d=H.emojiPickerCategoryRenderer)==null?void 0:d.emojiIds,A==null?void 0:(W=A.emojiPickerUpsellCategoryRenderer)==null?void 0:W.emojiIds].flat().filter(function(z){return!!z})};
_.q.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.q.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.q.updateCategoriesAndPlaceholderInternal=function(A,H){var k=this;A&&H&&(this.categories=A.categories||[],this.categoryButtons=A.categoryButtons||[],this.resetPlaceholder(),this.search="",_.L0(function(){k.updateButtons_()}))};
_.q.computeId_=function(A){return A.id||""};
_.q.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(A){return A.emojiPickerCategoryRenderer&&A.emojiPickerCategoryRenderer.emojiData}):!1};
_.q.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.q.onShowEmojiVariantSelector=function(A){var H=A.detail.emojiData;H.variantIds&&H.variantIds.length&&(H.multiSelectorThumbnailRow&&H.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:H,target:A.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:H,target:A.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.q.onIronOverlayClosed=function(A){var H=TGA(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");H&&A.composedPath&&(A.composedPath().includes(_.Va(this.hostElement).querySelector("#emoji-variant-selector"))||A.composedPath().includes(_.Va(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Ud(this.hostElement,"yt-close-emoji-variant-selector",[H.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.q.onEmojiVariantSelectorMouseup=function(A){var H=A.target.firstChild;this.variantSelectorOpened&&H&&_.L0(function(){H.noCancelOnOutsideClick=!1},100)};
_.q.onEmojiVariantSelectorMousedown=function(A){A=A.target.firstChild;this.variantSelectorOpened&&A&&(A.noCancelOnOutsideClick=!1)};
_.q.onSelectCategory_=function(A){var H=this.search!="";this.search="";for(var k=_.Va(this.hostElement).querySelector("#categories").children,d=0;d<k.length;d++){var W=k[d];if(W.id==A.detail.categoryId){H?(_.Va(this.hostElement).querySelector("#categories").scrollTop=W.offsetTop,this.updateButtons_()):(this.animationStart_=_.Va(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=W.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.q.onEmojiHover_=function(A){this.placeholder=A.detail.shortcuts?A.detail.shortcuts[0]:""};
_.q.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.q.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.q.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.q.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.q.computeSearchCategory_=function(A){A=A.replace(Xrp,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();A=A.split(" ");for(var H=[],k=this.emojiManager.emojis,d=0;d<k.length;d++){var W=k[d];if(W.searchTerms)for(var z=0;z<W.searchTerms.length;z++){for(var u=W.searchTerms[z].toLocaleLowerCase(),B=!1,h=0;h<A.length;h++)if(u.indexOf(A[h])!=-1){B=!0;break}if(B&&(!W.isCustomEmoji||!W.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(W.emojiId))){H.push(W.emojiId);
break}}}return{categoryId:-1,emojiIds:H}};
_.q.computeSearchEmptyMessage_=function(A,H){return A&&H&&H.emojiIds&&H.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.q.computeSearching_=function(A){return this.emojiManager&&A.replace(Xrp,"").length>1};
_.q.computeSkinToneHidden=function(){var A;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((A=this.data)==null||!A.hideSkinTonePicker)};
_.q.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.q.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.q.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.q.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.q.selectSkinTone_=function(A){A=Number(A.target.getAttribute("tone"));this.set("emojiManager.skinTone",A);_.Ud(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[A]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.q.skinToneChanged_=function(){_.Va(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var A=_.Va(this.hostElement).querySelector("#dropdown-content").children,H=0;H<A.length;H++)H===this.skinTone?A[H].setAttribute("selected",""):A[H].removeAttribute("selected")};
_.q.animateScroll_=function(A){this.lastAnimationTime_||(this.lastAnimationTime_=A);A-=this.lastAnimationTime_;A<200?(_.Va(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*A/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Va(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.q.searchChanged_=function(){this.updateButtons_()};
_.q.updateButtons_=function(){var A=null;if(!this.search)for(var H=_.Va(this.hostElement).querySelector("#categories").scrollTop,k=_.Va(this.hostElement).querySelector("#categories").children,d=0;d<k.length;d++){var W=k[d];W.offsetTop<=H&&(A=W.id)}H=_.Va(this.hostElement).querySelector("#category-buttons").children;for(k=0;k<H.length;k++)d=H[k],d.active=d.id===A};
Mc.prototype.searchChanged_=Mc.prototype.searchChanged_;Mc.prototype.skinToneChanged_=Mc.prototype.skinToneChanged_;Mc.prototype.onEmojiHover_=Mc.prototype.onEmojiHover_;Mc.prototype.onSelectCategory_=Mc.prototype.onSelectCategory_;Mc.prototype.onShowEmojiVariantSelector=Mc.prototype.onShowEmojiVariantSelector;Mc.prototype.updateCategoriesAndPlaceholder_=Mc.prototype.updateCategoriesAndPlaceholder_;Mc.prototype.dataChanged=Mc.prototype.dataChanged;
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Mc.prototype,"data",void 0);_.E([_.C({value:function(){return[]}}),
_.l("design:type",Array)],Mc.prototype,"categories",void 0);_.E([_.C({value:function(){return[]}}),
_.l("design:type",Array)],Mc.prototype,"categoryButtons",void 0);_.E([_.C({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Mc.prototype,"disableScroll",void 0);_.E([_.C({computed:"computeId_(data)",reflectToAttribute:!0}),_.l("design:type",String)],Mc.prototype,"id",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Mc.prototype,"selected",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],Mc.prototype,"disableIncrementalLoading",void 0);_.E([_.C(),_.l("design:type",String)],Mc.prototype,"placeholder",void 0);_.E([_.C({value:""}),_.l("design:type",String)],Mc.prototype,"search",void 0);_.E([_.C({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Mc.prototype,"searching",void 0);_.E([_.C({computed:"computeSearchCategory_(search)"}),_.l("design:type",Object)],Mc.prototype,"searchCategory",void 0);
_.E([_.C({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.l("design:type",Object)],Mc.prototype,"searchEmptyMessage",void 0);_.E([_.C({computed:"identity(emojiManager.skinTone)"}),_.l("design:type",Number)],Mc.prototype,"skinTone",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Mc.prototype,"skinToneOpened",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Mc.prototype,"variantSelectorOpened",void 0);
_.E([_.C({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.l("design:type",Boolean)],Mc.prototype,"skinToneHidden",void 0);_.E([_.C(),_.l("design:type",_.bV)],Mc.prototype,"emojiManager",void 0);_.E([_.C(),_.l("design:type",Object)],Mc.prototype,"emojiVariantSelector",void 0);_.E([_.C(),_.l("design:type",Object)],Mc.prototype,"emojiMultiPersonSelector",void 0);
_.E([_.C({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.l("design:type",Boolean)],Mc.prototype,"shouldUseStickyPreferences",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mc.prototype,"dataChanged",null);_.E([_.fF("data","selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mc.prototype,"updateCategoriesAndPlaceholder_",null);
_.E([_.Ze("yt-show-emoji-variant-selector"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Mc.prototype,"onShowEmojiVariantSelector",null);_.E([_.Ze("yt-emoji-picker-select-category"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Mc.prototype,"onSelectCategory_",null);_.E([_.Ze("yt-emoji-hover"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Mc.prototype,"onEmojiHover_",null);
_.E([_.fF("skinTone"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mc.prototype,"skinToneChanged_",null);_.E([_.fF("search"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mc.prototype,"searchChanged_",null);_.E([_.h6({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Mc);
_.Q(Mc,"yt-emoji-picker-renderer",function(){if(IUw===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;jiA===void 0&&(jiA=document.createElement("template"));var d=jiA;k.call(H,d.content.cloneNode(!0),A.content.firstChild);IUw=A}A=IUw;return A},{mode:2});var nk=function(){var A=_.a.apply(this,arguments)||this;A.emojiManager=_.y5;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.selectedIndex=1;A.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return A};
_.I(nk,_.a);_.q=nk.prototype;_.q.handleEmojiCustomizationVisible=function(A){this.emojiPickerRenderer.selected=A;this.selectedIndex=1;A?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.q.emojiCustomizationSetChanged=function(){var A;(A=this.data)!=null&&A.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.wI(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.q.updateSaveButtonState=function(A){var H;(H=this.data)!=null&&H.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.kH("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:A}))};
_.q.emojiUrl=function(A){A=_.Lk(this.emojiManager,A);if(!A)return"";var H;A=(H=A.image)==null?void 0:H.thumbnails;return _.C3(A,24)||""};
_.q.emojiAlt=function(A){var H=_.Lk(this.emojiManager,A);if(!H)return A;var k,d,W,z=(H==null?void 0:(k=H.image)==null?void 0:(d=k.accessibility)==null?void 0:(W=d.accessibilityData)==null?void 0:W.label)||"";return z?z:H.isCustomEmoji?H.shortcuts[0]:H.emojiId||A};
_.q.emojiAriaLabel=function(A){var H,k;return((H=_.Lk(this.emojiManager,A))==null?void 0:(k=H.shortcuts)==null?void 0:k[0])||A};
_.q.onEmojiClick=function(A){A.model.index!==0&&(this.selectedIndex=A.model.index)};
_.q.onEmojiSelect=function(A){A=A.detail;var H,k;((H=this.data)==null?0:H.emojiCustomizationSetEntityKey)&&((k=this.emojiCustomizationSet)==null?0:k.emojiId)&&A.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,A.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.kH("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,A.emojiId,this.selectedIndex)}))};
_.q.canEditEmoji=function(A,H,k){A=A.indexOf(H);return A===k||A===0||k===0?!1:!0};
_.q.getUpdatedEmojiIdList=function(A,H,k){var d=A.indexOf(H);A=[].concat(_.fV(A));d>=0&&(A[d]=A[k]);A[k]=H;return A};
_.nP.Object.defineProperties(nk,{template:{configurable:!0,enumerable:!0,get:function(){if(ooJ===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;wcp===void 0&&(wcp=document.createElement("template"));var d=wcp;k.call(H,d.content.cloneNode(!0),A.content.firstChild);ooJ=A}A=ooJ;return A}}});
nk.prototype.onEmojiSelect=nk.prototype.onEmojiSelect;_.E([_.P(_.Rh),_.l("design:type",Object)],nk.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],nk.prototype,"ytActionHandlerBehavior",void 0);_.E([_.ol("yt-emoji-picker-renderer"),_.l("design:type",Object)],nk.prototype,"emojiPickerRenderer",void 0);
_.E([_.C({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(A,H){return _.Mw(A.entities,"emojiCustomizationSetEntity",H)},
observer:"emojiCustomizationSetChanged"}),_.l("design:type",Object)],nk.prototype,"emojiCustomizationSet",void 0);_.E([_.C(),_.l("design:type",Object)],nk.prototype,"originalEmojiSet",void 0);_.E([_.C(),_.l("design:type",_.bV)],nk.prototype,"emojiManager",void 0);_.E([_.C(),_.l("design:type",Object)],nk.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],nk.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",Object)],nk.prototype,"selectedIndex",void 0);
_.E([_.Ze("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],nk.prototype,"onEmojiSelect",null);_.E([_.h6({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],nk);var SOZ;var Ch1;var KxA;var aUw;var ZJ=function(){var A=_.a.apply(this,arguments)||this;A.authorBadges=[];return A};
_.I(ZJ,_.a);_.q=ZJ.prototype;_.q.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.q.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]]"}}}}}};
_.q.dataChanged=function(){var A=oC8(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",A)};
_.q.updateMessage=function(){var A=this.data.message,H=_.Va(_.Va(this.hostElement).querySelector("#message"));H.textContent="";A&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A))};
_.q.shouldSupportWholeItemClick=function(){return!0};
_.q.onShowOriginalClick=function(A){A.preventDefault();this.showOriginal=!0};
_.q.computeShowBar=function(A,H,k){return A&&H||k};
_.q.computeAuthorBadges=function(A){return A.authorBadges||[]};
_.q.computeAuthorIsOwner=function(A){return!!$fA(A.authorBadges,"owner")};
_.q.computeAuthorNameColor=function(A){var H;if(_.b("live_chat_author_name_color_usernames")&&(A==null?0:(H=A.authorName)==null?0:H.simpleText))return _.sTf(_.kRr(A.authorName.simpleText));if(_.b("live_chat_seed_color_usernames")&&(A==null?0:A.authorSeedColorArgb))return _.sTf(_.ly(A.authorSeedColorArgb));if(_.b("live_chat_colored_usernames"))return"#cc0000";var k;return _.b("live_chat_simple_color_usernames")&&(A==null?0:(k=A.authorName)==null?0:k.simpleText)&&(A==null?0:A.authorUsernameColorLight)&&
(A==null?0:A.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.ly(A.authorUsernameColorDark):_.ly(A.authorUsernameColorLight):""};
ZJ.prototype.updateMessage=ZJ.prototype.updateMessage;ZJ.prototype.dataChanged=ZJ.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],ZJ.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ZJ.prototype,"data",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],ZJ.prototype,"showOriginal",void 0);_.E([_.C({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ZJ.prototype,"isDimmed",void 0);_.E([_.C({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ZJ.prototype,"showBar",void 0);
_.E([_.C({computed:"computeAuthorBadges(data)"}),_.l("design:type",Array)],ZJ.prototype,"authorBadges",void 0);_.E([_.C({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ZJ.prototype,"authorIsOwner",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],ZJ.prototype,"inCollapsedBanner",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],ZJ.prototype,"inBanner",void 0);
_.E([_.C({value:_.b("live_chat_hide_avatars"),reflectToAttribute:!0}),_.l("design:type",Boolean)],ZJ.prototype,"avatarHidden",void 0);_.E([_.C({computed:"computeAuthorNameColor(data)"}),_.l("design:type",String)],ZJ.prototype,"authorNameColor",void 0);_.E([_.C(),_.l("design:type",_.Fw)],ZJ.prototype,"participantsManager",void 0);_.E([_.C({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.l("design:type",Object)],ZJ.prototype,"filledButtonOverrides",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZJ.prototype,"dataChanged",null);_.E([_.fF("data.message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZJ.prototype,"updateMessage",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],ZJ);
_.Q(ZJ,"yt-live-chat-text-message-renderer",function(){if(aUw===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;KxA===void 0&&(KxA=document.createElement("template"));var d=KxA;k.call(H,d.content.cloneNode(!0),A.content.firstChild);aUw=A}A=aUw;return A},{mode:0});var fk=function(){var A=_.a.apply(this,arguments)||this;A.tonalButtonOverrides={type:"tonal",style:"overlay"};return A};
_.I(fk,_.a);
fk.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]]"}}}}}};
fk.prototype.shouldSupportInlineActionButtons=function(){return!0};
fk.prototype.shouldSupportWholeItemClick=function(){return!0};
_.nP.Object.defineProperties(fk.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],fk.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],fk.prototype,"data",void 0);_.E([_.C(),_.l("design:type",_.Fw)],fk.prototype,"participantsManager",void 0);
_.E([_.C(),_.l("design:type",Object)],fk.prototype,"tonalButtonOverrides",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.infoDialogButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],fk.prototype,"hasInfoDialogButton",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],fk);
_.Q(fk,"yt-live-chat-auto-mod-message-renderer",function(){if(Ch1===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;SOZ===void 0&&(SOZ=document.createElement("template"));var d=SOZ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Ch1=A}A=Ch1;return A},{mode:0});var cOw;var prA;var QiZ;var VUG=function(){return _.a.apply(this,arguments)||this};
_.I(VUG,_.a);_.E([_.C(),_.l("design:type",Object)],VUG.prototype,"data",void 0);_.E([_.O6({is:"ytd-factoid-renderer",disableElementRegistration:!0})],VUG);
_.Q(VUG,"ytd-factoid-renderer",function(){if(QiZ!==void 0)return QiZ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return QiZ=A},{mode:1});var ws=function(){return _.a.apply(this,arguments)||this};
_.I(ws,_.a);ws.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.E([_.C(),_.l("design:type",Object)],ws.prototype,"data",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],ws);
_.Q(ws,"yt-live-chat-channel-activity-reputation-renderer",function(){if(prA===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;cOw===void 0&&(cOw=document.createElement("template"));var d=cOw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);prA=A}A=prA;return A},{mode:0});var E$w;var UuA;var og=function(){return _.a.apply(this,arguments)||this};
_.I(og,_.a);og.prototype.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Boolean)],og.prototype,"menuFocused",void 0);_.E([_.C(),_.l("design:type",Object)],og.prototype,"data",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],og.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],og);
_.Q(og,"yt-live-chat-donation-announcement-renderer",function(){if(UuA===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;E$w===void 0&&(E$w=document.createElement("template"));var d=E$w;k.call(H,d.content.cloneNode(!0),A.content.firstChild);UuA=A}A=UuA;return A},{mode:0});var lUw;var tUA,NkG=function(){if(tUA!==void 0)return tUA;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;lUw===void 0&&(lUw=document.createElement("template"));var d=lUw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return tUA=A};var $T=function(){return _.a.apply(this,arguments)||this};
_.I($T,_.a);_.nP.Object.defineProperties($T,{template:{configurable:!0,enumerable:!0,get:function(){return NkG()}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$T.prototype,"data",void 0);_.E([_.h6({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],$T);_.Q($T,"yt-live-chat-empty-feed-view-model",function(){return NkG()},{mode:0});var MUQ;var n$w;var AB=function(){return _.a.apply(this,arguments)||this};
_.I(AB,_.a);AB.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"}}}}}};
_.nP.Object.defineProperties(AB.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var A,H;return{runs:[{text:(A=this.data)==null?void 0:(H=A.channelName)==null?void 0:H.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var A=[],H;if((H=this.data)==null||!H.channelBadges)return A;var k;H=_.r((k=this.data)==null?void 0:k.channelBadges);for(k=H.next();!k.done;k=H.next()){k=_.L(k.value,pYj);var d=void 0,W=void 0;if((d=k)==null?0:(W=d.badgeImage)==null?0:W.sources)d=void 0,W={liveChatAuthorBadgeRenderer:{tooltip:k.tooltip,accessibility:{accessibilityData:{label:(d=_.L(k.rendererContext,_.zF))==null?void 0:d.label}}}},k.badgeImage.sources[0].clientResource?W.liveChatAuthorBadgeRenderer.icon=
{iconType:k.badgeImage.sources[0].clientResource.imageName}:W.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:k.badgeImage.sources},A.push(W)}return A}}});
_.E([_.C(),_.l("design:type",Object)],AB.prototype,"data",void 0);_.E([_.G("data.channelName"),_.l("design:type",Object),_.l("design:paramtypes",[])],AB.prototype,"channelName",null);_.E([_.G("data.channelBadges"),_.l("design:type",Array),_.l("design:paramtypes",[])],AB.prototype,"channelBadges",null);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],AB);
_.Q(AB,"yt-live-chat-identity-view-model",function(){if(n$w===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;MUQ===void 0&&(MUQ=document.createElement("template"));var d=MUQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);n$w=A}A=n$w;return A},{mode:0});var ZS0;var fU0;var wrG;var o$A;var Hw=function(){var A=_.a.apply(this,arguments)||this;A.hidden=!1;A.supportsInlineActionButtons=!0;return A};
_.I(Hw,_.a);Hw.prototype.ready=function(){var A;((A=document.querySelector("yt-live-chat-app"))==null?0:A.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Hw.prototype.dataChanged=function(A){var H=(0,_.t1)(_.Va(this.hostElement).querySelector("#detail-text"));H.textContent="";(A==null?0:A.detailText)&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A.detailText))};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],Hw.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({observer:"dataChanged"}),_.l("design:type",Object)],Hw.prototype,"data",void 0);
_.E([_.C({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.l("design:type",Object)],Hw.prototype,"hidden",void 0);_.E([_.O6({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Hw);
_.Q(Hw,"yt-live-chat-legacy-paid-message-renderer",function(){if(o$A===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;wrG===void 0&&(wrG=document.createElement("template"));var d=wrG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);o$A=A}A=o$A;return A},{mode:0});var $uA;var Aiw;var H_A={},sl=function(){return _.A6.apply(this,arguments)||this};
_.I(sl,_.A6);sl.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
sl.prototype.onLiveChatMembershipItemBehaviorClick=sl.prototype.onLiveChatMembershipItemBehaviorClick;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],sl.prototype,"data",void 0);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],sl.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.E([_.HW()],sl);
H_A.YtLiveChatMembershipItemBehavior=[sl.prototype,_.n.YtRendererBehavior];var kL=function(){var A=_.a.apply(this,arguments)||this;A.supportsInlineActionButtons=!0;A.hasPrimaryHeaderText=!1;A.showOnlyHeader=!1;A.authorBadges=[];A.modern=_.b("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.I(kL,_.a);_.q=kL.prototype;_.q.shouldSupportInlineActionButtons=function(){return!0};
_.q.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.q.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.q.messageChanged=function(){var A=this.data.message,H=(0,_.t1)(_.Va(this.hostElement).querySelector("#message"));H.textContent="";A&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A))};
_.q.computeHasPrimaryHeaderText=function(A){return!(!A||!A.headerPrimaryText)};
_.q.computeShowOnlyHeader=function(A,H){return this.isMessageEmpty(A,H)};
_.q.computeAuthorBadges=function(A){return A.authorBadges||[]};
_.q.isMessageEmpty=function(A,H){return!A||A.empty?!0:!A.message&&!A.inputField&&!H};
_.q.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.q.getInputElement=function(){return _.Va(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.q.inputFocus=function(){var A=this.getInputElement();A&&A.focus()};
_.q.inputInsertEmoji=function(A){var H=this.getInputElement();H&&H.insertEmoji(A)};
_.q.inputMessage=function(){var A=this.getInputElement();return A&&this.data.inputField?(A.completeEmojis(),_.gH(A.liveChatRichMessageInput)):null};
_.q.onFooterButtonClick=function(){this.data.footerButton&&_.Ed(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.q.shouldSupportWholeItemClick=function(){return!0};
kL.prototype.isDeletedChanged=kL.prototype.isDeletedChanged;kL.prototype.messageChanged=kL.prototype.messageChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],kL.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.P(H_A.YtLiveChatMembershipItemBehavior),_.l("design:type",Object)],kL.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kL.prototype,"data",void 0);_.E([_.C({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.l("design:type",Object)],kL.prototype,"hasPrimaryHeaderText",void 0);_.E([_.C({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.l("design:type",Object)],kL.prototype,"showOnlyHeader",void 0);
_.E([_.C({computed:"computeAuthorBadges(data)"}),_.l("design:type",Array)],kL.prototype,"authorBadges",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],kL.prototype,"modern",void 0);_.E([_.fF("data.message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kL.prototype,"messageChanged",null);_.E([_.fF("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kL.prototype,"isDeletedChanged",null);
_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],kL);
_.Q(kL,"yt-live-chat-membership-item-renderer",function(){if(Aiw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;$uA===void 0&&($uA=document.createElement("template"));var d=$uA;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Aiw=A}A=Aiw;return A},{mode:0});var sQw;var kYi;var df=function(){return _.a.apply(this,arguments)||this};
_.I(df,_.a);df.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],df.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],df.prototype,"data",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],df);
_.Q(df,"yt-live-chat-mode-change-message-renderer",function(){if(kYi===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;sQw===void 0&&(sQw=document.createElement("template"));var d=sQw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);kYi=A}A=kYi;return A},{mode:0});var djw;var WsG;var Ww=function(){return _.a.apply(this,arguments)||this};
_.I(Ww,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],Ww.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ww.prototype,"data",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Ww);
_.Q(Ww,"yt-live-chat-moderation-message-renderer",function(){if(WsG===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;djw===void 0&&(djw=document.createElement("template"));var d=djw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);WsG=A}A=WsG;return A},{mode:0});var zfk;var q_Z;var zG=function(){return _.a.apply(this,arguments)||this};
_.I(zG,_.a);zG.prototype.onClick=function(){var A;if((A=this.data)!=null&&A.onClickCommand){var H;_.n0.instance.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],zG.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],zG.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zG.prototype,"data",void 0);
_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],zG);
_.Q(zG,"yt-live-chat-offer-click-count-message-renderer",function(){if(q_Z===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;zfk===void 0&&(zfk=document.createElement("template"));var d=zfk;k.call(H,d.content.cloneNode(!0),A.content.firstChild);q_Z=A}A=q_Z;return A},{mode:0});var ri0;var uu0=function(){return _.a.apply(this,arguments)||this};
_.I(uu0,_.a);_.E([_.C(),_.l("design:type",Object)],uu0.prototype,"data",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],uu0);
_.Q(uu0,"yt-live-chat-placeholder-item-renderer",function(){if(ri0===void 0){var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);ri0=A}A=ri0;return A},{mode:0});var B70;var efk;var xji=new Ic(7),qK=function(){var A=_.a.apply(this,arguments)||this;A.data={};return A};
_.I(qK,_.a);qK.prototype.dataChanged=function(){var A;((A=this.data)==null?0:A.class)&&_.UJ(this.hostElement,this.data.class,!0);var H;((H=this.oldData)==null?0:H.class)&&_.UJ(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
qK.prototype.computeTimestampString=function(A){return xji.format(new Date(A/1E3))};
qK.prototype.dataChanged=qK.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],qK.prototype,"data",void 0);_.E([_.C({computed:"computeTimestampString(data.timestampUsec)"}),_.l("design:type",String)],qK.prototype,"timestampString",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qK.prototype,"dataChanged",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],qK);
_.Q(qK,"yt-live-chat-server-error-message",function(){if(efk===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;B70===void 0&&(B70=document.createElement("template"));var d=B70;k.call(H,d.content.cloneNode(!0),A.content.firstChild);efk=A}A=efk;return A},{mode:0});var i_0;var hfp;var rf=function(){var A=_.a.apply(this,arguments)||this;A.defaultToFilledIcon=!1;return A};
_.I(rf,_.a);rf.prototype.computeHasPrimaryColorIcon=function(A){return A==="SPARK"||A==="SPONSORSHIP_STAR"};
rf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rf.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],rf.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],rf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rf.prototype,"defaultToFilledIcon",void 0);_.E([_.C(),_.l("design:type",Object)],rf.prototype,"data",void 0);
_.E([_.C({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.l("design:type",Boolean)],rf.prototype,"hasPrimaryColorIcon",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],rf);
_.Q(rf,"yt-live-chat-viewer-engagement-message-renderer",function(){if(hfp===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;i_0===void 0&&(i_0=document.createElement("template"));var d=i_0;k.call(H,d.content.cloneNode(!0),A.content.firstChild);hfp=A}A=hfp;return A},{mode:0});var O_w;var uu=function(){var A=_.a.apply(this,arguments)||this;A.modernUpdate=!1;A.buttonStyle="overlay";A.buttonType="filled";return A};
_.I(uu,_.a);uu.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
uu.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uu.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],uu.prototype,"modernUpdate",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],uu.prototype,"buttonStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],uu.prototype,"buttonType",void 0);
_.E([_.O6({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],uu);
_.Q(uu,"ytd-ad-hover-text-button-renderer",function(){if(O_w!==void 0)return O_w;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return O_w=A},{mode:1});var Rfp;var Bw=function(){var A=_.a.apply(this,arguments)||this;A.buttonOverrides={size:"XS"};return A};
_.I(Bw,_.a);Bw.prototype.onHelpTap=function(A){this.data&&this.data.informationDialog&&(_.Ed(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),A.preventDefault(),A.stopPropagation())};
_.E([_.C(),_.l("design:type",Object)],Bw.prototype,"buttonOverrides",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Bw.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Bw);
_.Q(Bw,"ytd-live-chat-purchased-product-message-renderer",function(){if(Rfp!==void 0)return Rfp;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Rfp=A},{mode:1});var T70;var mjN;var e3=function(){var A=_.a.apply(this,arguments)||this;A.isContainerDeleted=!1;return A};
_.I(e3,_.a);e3.prototype.onContextMenuClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
e3.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))};
e3.prototype.isContainerDeletedChanged=e3.prototype.isContainerDeletedChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],e3.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],e3.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],e3.prototype,"isContainerDeleted",void 0);
_.E([_.C(),_.l("design:type",String)],e3.prototype,"deletedStateMessage",void 0);_.E([_.fF("isContainerDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],e3.prototype,"isContainerDeletedChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],e3);
_.Q(e3,"ytd-sponsorships-live-chat-header-renderer",function(){if(mjN!==void 0)return mjN;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return mjN=A},{mode:1});var xL=function(){var A=_.a.apply(this,arguments)||this;A.modern=_.b("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.I(xL,_.a);xL.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]]"}}}}}};
xL.prototype.onCtaButtonClick=function(){var A,H=_.L((A=this.data)==null?void 0:A.optInPrompt,_.gN);if(A=this.maybeGetButtonCommand(H)){var k;(k=_.A7())==null||k.clickCommand(A)}};
xL.prototype.maybeGetButtonCommand=function(A){return!A||!A.command||_.L(A.command,Ipp)===void 0&&_.L(A.command,j6J)===void 0?null:A.command};
xL.prototype.shouldHideOptinPrompt=function(A,H){return!A||H};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],xL.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xL.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],xL.prototype,"modern",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],xL);
_.Q(xL,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(T70!==void 0)return T70;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return T70=A},{mode:1});var Jij;var iu=function(){return _.a.apply(this,arguments)||this};
_.I(iu,_.a);iu.prototype.onContextMenuClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
iu.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))};
iu.prototype.isDeletedChanged=iu.prototype.isDeletedChanged;_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],iu.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],iu.prototype,"data",void 0);_.E([_.fF("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iu.prototype,"isDeletedChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],iu);
_.Q(iu,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Jij!==void 0)return Jij;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Jij=A},{mode:1});var hB=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return A};
_.I(hB,_.a);_.q=hB.prototype;
_.q.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"}}}};
_.q.handleLiveChatAction=function(A){_.L(A,zgZ)?this.handleMarkChatItemAsDeletedAction(_.L(A,zgZ)):_.L(A,W1k)&&this.handleRemoveChatItemAction(_.L(A,W1k))};
_.q.handleLiveChatActions=function(A){A.forEach(this.handleLiveChatAction,this)};
_.q.handleMarkChatItemAsDeletedAction=function(A){var H=this,k;((k=this.data)==null?0:k.items)&&this.data.items.forEach(function(d,W){var z=Object.keys(d)[0];Object.values(d)[0].id===A.targetItemId&&H.markAsDeleted("data.items",W,z,A.deletedStateMessage,A.showOriginalContentMessage)})};
_.q.handleRemoveChatItemAction=function(A){var H=this,k;((k=this.data)==null?0:k.items)&&this.data.items.forEach(function(d,W){Object.values(d)[0].id===A.targetItemId&&H.splice("data.items",W,1)})};
_.q.markAsDeleted=function(A,H,k,d,W){A=[A,H,k].join(".");this.set(A+".deletedStateMessage",d);this.set(A+".showOriginalContentMessage",W)};
_.E([_.C(),_.l("design:type",Object)],hB.prototype,"data",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],hB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],hB);
_.Q(hB,"yt-live-chat-item-display-list-renderer",function(){if(fU0===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;ZS0===void 0&&(ZS0=document.createElement("template"));var d=ZS0;k.call(H,d.content.cloneNode(!0),A.content.firstChild);fU0=A}A=fU0;return A},{mode:0});var g4i;var b_p,LsA=function(){if(b_p!==void 0)return b_p;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;g4i===void 0&&(g4i=document.createElement("template"));var d=g4i;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return b_p=A};var Ol=function(){var A=_.a.apply(this,arguments)||this;A.isHeader=!1;return A};
_.I(Ol,_.a);Ol.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.nP.Object.defineProperties(Ol,{template:{configurable:!0,enumerable:!0,get:function(){return LsA()}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ol.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ol.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ol.prototype,"isHeader",void 0);_.E([_.h6({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Ol);_.Q(Ol,"yt-live-chat-item-display-renderer",function(){return LsA()},{mode:0});var v4J,yiN,GY1,Pn1;
v4J={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}};yiN={home:"eohps",search:"eosps",watch:"eowps"};_.jQ0=["watch","search","home"];
_.R6=function(){this.JSC$14731_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14731_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.pZ("PRECONSTRUCTION_DELAY",0);this.signals_=_.Yf();this.targetPage_=""};
_.R6.prototype.init=function(A,H){A=A===void 0?"":A;H=H===void 0?null:H;if(this.JSC$14731_isInitialized_)this.abort();else if(this.JSC$14731_isInitialized_=!0,A&&_.ICA(this,A),H){var k=_.Pi(this.signals_,"pcl")?0:10,d=function(){for(var W=0,z;z=_.jQ0[W++];)z!=A&&z!=H&&this.pendingPages_.push(z);_.Y_w(this)}.bind(this);
this.signals_.parkOrScheduleJob(d,k,"pcl")}};
_.R6.prototype.abort=function(){this.fragmentJobId_&&(_.IE.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Pn1(this)};
_.ICA=function(A,H){A.JSC$14731_isInitialized_&&!A.targetPage_&&(A.targetPage_=H,GY1(A,H),A.isInitialPass_=!1,GY1(A,H),A.signals_.processSignal(yiN[A.targetPage_]),Pn1(A),_.Y_w(A))};
_.Y_w=function(A){A.pendingPages_.length&&!A.pagePreparerJobId_&&(A.pagePreparerJobId_=_.ma(_.IE,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.ICA(this,this.pendingPages_.shift())}.bind(A),A.DEFAULT_DELAY_))};
GY1=function(A,H){if(H=v4J[H])for(var k in H){var d=!1,W=k;k.charAt(0)=="~"&&(d=!0,W=k.substring(1));var z=H[k];z=typeof z=="object"?z:{count:z};H[k]=z;z.componentName=W;z.count>0&&(A.isInitialPass_?d||A.isSeenDuringInitialPass_[W]||(A.JSC$14731_queue_.push({componentName:W,count:1,signals:z.signals}),A.isSeenDuringInitialPass_[W]=!0,z.count--):A.JSC$14731_queue_.push(z))}};
Pn1=function(A){A.JSC$14731_queue_.length=0;A.targetPage_="";A.isInitialPass_=!0;A.signals_.processSignal("eop")};
_.R6.getInstance=function(){return _.VG(_.R6)};var FsA=function(){this.signals=_.Yf();this.init()};
FsA.prototype.startPreconstruction=function(){_.R6.getInstance().init(_.Q$("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
FsA.prototype.init=function(){XaG(this);window.Polymer&&nrp&&fVm();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var A=_.k8.ytcsi;if(A&&A.gt&&(A=A.gt())&&A.tick&&(A.tick.aft>0||A.tick.pbs>0)&&(_.Q$("IS_HOMEPAGE_COLD")||_.Q$("IS_RESULTS_PAGE_COLD")||_.Q$("IS_WATCH_PAGE_COLD"))){DjZ(this);break a}m0m(MdW,this.onNotifications,this)}};
var XaG=function(A){var H=function(){A.signals.processSignal("dl")};
document.readyState==="complete"?(_.lt(Error("uh"),"WARNING"),H()):_.Nbf(window,"load",H)};
FsA.prototype.onNotifications=function(A){A.timer||(_.Q$("IS_HOMEPAGE_COLD")||_.Q$("IS_RESULTS_PAGE_COLD")||_.Q$("IS_WATCH_PAGE_COLD"))&&DjZ(this)};
var DjZ=function(A){A.signals.parkOrScheduleJob(function(){A.signals.processSignal("eocs")},10,"eor")};
new FsA;var S_j=function(){return _.A6.apply(this,arguments)||this};
_.I(S_j,_.A6);_.nP.Object.defineProperties(S_j.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_entity_store_from_dependency_injection")?_.FI():_.F3()}}});
_.E([_.HW()],S_j);_.TG=[uU.prototype,S_j.prototype];var CnQ=["ytd-rich-shelf-renderer"],mf=function(){var A=_.A6.apply(this,arguments)||this;A._noAccessors=!0;A.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";A.followUpDialogPromise=null;A.followUpDialogPromiseResolve=null;A.followUpDialogPromiseReject=null;return A};
_.I(mf,_.A6);_.q=mf.prototype;_.q.dismissibleItemIsDismissedChanged_=function(A){_.b("kevlar_fluid_dismiss")&&(A?_.Ed(this.hostElement,"yt-dismissible-item-dismissed"):_.Ed(this.hostElement,"yt-dismissible-item-undismissed"))};
_.q.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.q.dismissibleItemReset_=function(){var A=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 _.Wq(function(H,k){A.followUpDialogPromiseResolve=H;A.followUpDialogPromiseReject=k});
_.Ed(this.hostElement,"yt-enable-lockup-interaction")};
_.q.dismissibleItemOnYtServiceRequestSent_=function(A,H){H.actions&&this.dismissibleItemProcessActions(H.actions,A)};
_.q.dismissibleItemOnRequestSent=function(A){for(var H=_.r(A.detail),k=H.next();!k.done;k=H.next()){var d=void 0;(k=(d=_.L(k.value,_.fH))==null?void 0:d.actions)&&this.dismissibleItemProcessActions(k,A)}};
_.q.dismissibleItemOnCommandSent=function(A,H){H&&this.dismissibleItemProcessActions(H,A)};
_.q.setAndGetDismissedContentId=function(A){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+A};
_.q.replayDismissAction=function(A){this.dismissibleItemProcessActions([A])};
_.q.dismissibleItemProcessActions=function(A,H){for(var k=0;k<A.length;k++){var d=A[k],W=void 0;((W=_.L(d,_.nH))==null?0:W.commands)&&this.dismissibleItemProcessActions(_.L(d,_.nH).commands,H);if(_.L(d,_.AS)){if(W=_.L(d,_.AS),!W.replaceParentSection||CnQ.includes(this.hostElement.nodeName.toLowerCase()))W.groupDismissal&&djI(this,W.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(W),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.kH("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:d})),d=void 0,(d=H)==null||d.stopPropagation()}else if(_.L(d,wFj))this.dismissibleItemHandleHideEnclosingAction_(),d=void 0,(d=H)==null||d.stopPropagation();else if(_.L(d,ygw))d=_.L(d,ygw),W=void 0,((W=d)==null?0:W.targetGroupId)&&djI(this,{targetGroupId:d.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.kH("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
d=void 0,(d=H)==null||d.stopPropagation();else if(_.L(d,_.fH))(d=_.L(d,_.fH).actions)&&_.NT(this.hostElement,d,this.hostElement),d=void 0,(d=H)==null||d.stopPropagation();else{var z=W=void 0;((W=_.L(d,_.SM))==null?void 0:W.signal)!=="TELL_US_WHY"||((z=_.L(d,_.SM))==null?0:z.targetId)&&_.b("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),d=void 0,(d=H)==null||d.stopPropagation())}}};
_.q.dismissibleItemOnYtServiceRequestCompleted_=function(A,H){var k=this.get("feedbackResponses.0.followUpDialog",H.data);k?this.followUpDialogPromiseResolve(k):H.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(H.actions,A)};
_.q.dismissibleItemHandleReplaceEnclosingAction_=function(A){this.dismissedRenderer=A.item;this.isDismissed=!0;var H=null;(H=_.Va(this.hostElement).querySelector("#dismissed"))&&_.No(this,function(){_.UY(H)});
_.Ed(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.q.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.q.dismissibleItemHandleUndoFeedbackAction_=function(){_.Ed(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.q.dismissibleItemHandleTellUsWhySignalAction_=function(){var A=this;this.followUpDialogPromise.then(function(H){A.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:H}})})};
mf.prototype.dismissibleItemOnYtServiceRequestCompleted_=mf.prototype.dismissibleItemOnYtServiceRequestCompleted_;mf.prototype.dismissibleItemOnCommandSent=mf.prototype.dismissibleItemOnCommandSent;mf.prototype.dismissibleItemOnRequestSent=mf.prototype.dismissibleItemOnRequestSent;mf.prototype.dismissibleItemOnYtServiceRequestSent_=mf.prototype.dismissibleItemOnYtServiceRequestSent_;mf.prototype.dismissibleItemDataChanged_=mf.prototype.dismissibleItemDataChanged_;
mf.prototype.dismissibleItemIsDismissedChanged_=mf.prototype.dismissibleItemIsDismissedChanged_;_.E([_.P(_.Kk),_.l("design:type",Object)],mf.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],mf.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],mf.prototype,"isDismissed",void 0);_.E([_.C(),_.l("design:type",Object)],mf.prototype,"dismissedRenderer",void 0);
_.E([_.fF("isDismissed"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean]),_.l("design:returntype")],mf.prototype,"dismissibleItemIsDismissedChanged_",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mf.prototype,"dismissibleItemDataChanged_",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],mf.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.E([_.Ze("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],mf.prototype,"dismissibleItemOnRequestSent",null);
_.E([_.Ze("yt-dismissible-item-action"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Array]),_.l("design:returntype")],mf.prototype,"dismissibleItemOnCommandSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],mf.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.E([_.HW()],mf);_.JB=[_.Kk,_.TG,mf.prototype];var gf=function(){var A=_.A6.apply(this,arguments)||this;A.disableGridStateAware=!1;A.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};A.currentGridClass="";return A};
_.I(gf,_.A6);gf.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.No(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var A=this.gridStateAwareGetElement();_.UJ(A,"grid",!0)}};
gf.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
gf.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Va(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
gf.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var A="grid-disabled";else{A=_.l$.getInstance();var H=this.get("pageSubtype");A=H&&QZA.includes(H)?"grid-disabled":A.currentSnapState_?A.currentSnapState_.className:null}(H=this.gridStateAwareGetElement())&&A!==this.currentGridClass&&(A&&_.UJ(H,A,!0),this.currentGridClass&&_.UJ(H,this.currentGridClass,!1),this.currentGridClass=A)};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],gf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",String)],gf.prototype,"gridStateAwareSizingElementSelector",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gf.prototype,"disableGridStateAware",void 0);_.E([_.HW()],gf);_.bu=[gf.prototype,_.nM.YtActionHandlerBehavior];_.Lg=new _.SE("GUIDE_TOKEN");var yH;_.vw={};yH=function(){var A=_.A6.apply(this,arguments)||this;A.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 A};
_.I(yH,_.A6);_.q=yH.prototype;_.q.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.q.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var A=_.wj().resolve(_.fZ(_.Lg));A&&(this.guidePersistentAndVisible=A.getGuidePersistentAndVisible(),this.activeEndpoint=A.getActiveEndpoint(),this.guideOpened=A.getGuideOpened(),this.miniGuideVisible=A.getMiniGuideVisible())};
_.q.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.q.handleGuideStateAction=function(A){this.guidePersistentAndVisible=A};
_.q.handleMiniGuideStateAction=function(A){this.miniGuideVisible=A};
_.q.handleGuideOpenedAction=function(A){this.guideOpened=A};
_.q.handleActiveEndpointAction=function(A){this.activeEndpoint=A};
yH.prototype.onActiveEndpointChange=yH.prototype.onActiveEndpointChange;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],yH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],yH.prototype,"guidePersistentAndVisible",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],yH.prototype,"miniGuideVisible",void 0);_.E([_.C(),_.l("design:type",Object)],yH.prototype,"activeEndpoint",void 0);
_.E([_.fF("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yH.prototype,"onActiveEndpointChange",null);_.E([_.C(),_.l("design:type",Boolean)],yH.prototype,"guideOpened",void 0);_.E([_.HW()],yH);_.vw.YtdGuideStateAwareBehavior=[];_.vw.YtdGuideStateAwareBehavior.push(yH.prototype,_.nM.YtActionHandlerBehavior);var Ks0=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],j3=function(){var A=_.A6.apply(this,arguments)||this;A.hoverJobId=0;A.JSC$14758_touched=!1;return A};
_.I(j3,_.A6);_.q=j3.prototype;_.q.created=function(){this.useExpandableTooltip=!Ks0.includes(this.is)};
_.q.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.q.detached=function(){this.useExpandableTooltip=!1};
_.q.lockupOnDown=function(A){this.interactionElement&&!_.XU(_.F_(A),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.q.lockupOnUp=function(A){this.interactionElement&&!_.XU(_.F_(A),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.q.onTouchStart=function(){this.JSC$14758_touched=!0};
_.q.lockupOnMouseEnter=function(){var A=this,H=_.H5("kevlar_lockup_hover_delay",-1);this.JSC$14758_touched&&H>=0?(_.IE.cancelJob(this.hoverJobId),this.hoverJobId=_.IE.addJob(function(){A.lockupIsHovered=!0},8,H),this.JSC$14758_touched=!1):this.lockupIsHovered=!0};
_.q.lockupOnMouseLeave=function(){this.hoverJobId&&(_.IE.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.q.lockupOnPopupClosed=function(A,H){var k;((k=H.popupRenderer)==null?void 0:k.is)==="ytd-menu-popup-renderer"&&(A=H.popupRenderer.veData,H=_.hx(),A&&H&&_.YB(H,[A]))};
_.q.lockupOnLockupRequested=function(A){var H=A.detail.videoIds[0],k;A.detail&&H===((k=this.data)==null?void 0:k.videoId)&&(A.detail.returnValue=[this.data])};
_.q.lockupOnYtServiceRequestSent=function(A,H){if(A=H.actions)for(var k=0;k<A.length;k++){var d=A[k];if(d.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&H.ajaxPromise){var W=void 0,z=(W=_.L(H.endpoint,_.Tr))==null?void 0:W.playlistId;W=void 0;d=(W=d.removedVideoId)!=null?W:"";enk(_.FY(),d,z)}else d.action==="ACTION_REMOVE_VIDEO"&&H.ajaxPromise&&(z=void 0,d=(z=d.setVideoId)!=null?z:"",_.xAk(_.FY(),d))}};
_.q.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.q.lockupOnLockupEnabled=function(){if(!this.$){var A=_.wj().resolve(_.SO).getCurrentPage(),H=this.getParentRenderer?this.getParentRenderer():void 0;_.Pq(new _.Ti("component not ready",this.is,this.isAttached,A==null?void 0:A.is,H==null?void 0:H.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
j3.prototype.lockupOnLockupEnabled=j3.prototype.lockupOnLockupEnabled;j3.prototype.lockupOnLockupDisabled=j3.prototype.lockupOnLockupDisabled;j3.prototype.lockupOnYtServiceRequestSent=j3.prototype.lockupOnYtServiceRequestSent;j3.prototype.lockupOnLockupRequested=j3.prototype.lockupOnLockupRequested;j3.prototype.lockupOnPopupClosed=j3.prototype.lockupOnPopupClosed;j3.prototype.lockupOnMouseLeave=j3.prototype.lockupOnMouseLeave;j3.prototype.lockupOnMouseEnter=j3.prototype.lockupOnMouseEnter;
j3.prototype.onTouchStart=j3.prototype.onTouchStart;j3.prototype.lockupOnUp=j3.prototype.lockupOnUp;j3.prototype.lockupOnDown=j3.prototype.lockupOnDown;_.E([_.C(),_.l("design:type",Object)],j3.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],j3.prototype,"lockupIsHovered",void 0);_.E([_.C(),_.l("design:type",Boolean)],j3.prototype,"lockupTouchTriggered",void 0);_.E([_.C(),_.l("design:type",Boolean)],j3.prototype,"useExpandableTooltip",void 0);
_.E([_.ol("#interaction"),_.l("design:type",Object)],j3.prototype,"interactionElement",void 0);_.E([_.Ze("down"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],j3.prototype,"lockupOnDown",null);_.E([_.Ze("up"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],j3.prototype,"lockupOnUp",null);
_.E([_.Ze("touchstart"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j3.prototype,"onTouchStart",null);_.E([_.Ze("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j3.prototype,"lockupOnMouseEnter",null);_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j3.prototype,"lockupOnMouseLeave",null);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],j3.prototype,"lockupOnPopupClosed",null);_.E([_.Ze("yt-lockup-requested"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],j3.prototype,"lockupOnLockupRequested",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],j3.prototype,"lockupOnYtServiceRequestSent",null);_.E([_.Ze("yt-disable-lockup-interaction"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j3.prototype,"lockupOnLockupDisabled",null);
_.E([_.Ze("yt-enable-lockup-interaction"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j3.prototype,"lockupOnLockupEnabled",null);_.E([_.HW()],j3);_.I6=[j3.prototype];_.aCi={YtdReduxBehavior:[]};_.aCi.YtdReduxBehavior.push.apply(_.aCi.YtdReduxBehavior,_.TG);var YL=function(){var A=_.A6.apply(this,arguments)||this;A._noAccessors=!0;A.disableNowPlaying=!1;A.disableTooltips=!1;A.useHoveredProperty=!1;A.hovered=!1;A.isThumbnailHovered_=!1;A.addBackground=_.b("kevlar_thumbnail_bg");A.nowPlaying=!1;A.disableRounding=!1;A.size="small";return A};
_.I(YL,_.A6);_.q=YL.prototype;_.q.computeThumbnailOverlaySidePanelWidth_=function(A,H){return A-H};
_.q.computeSize=function(A,H){if(!this.disableRounding){if(!A&&!H)return"small";A=Math.max(A||0,H||0);return A>=256?"large":A>=96?"medium":"small"}};
_.q.computeFinalHoveredState_=function(A,H,k){return this.nowPlaying?!1:_.b("kevlar_thumbnail_fluid")&&A?H:k};
_.q.computeHoverOverlays_=function(A,H){return A&&H?H:void 0};
_.q.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.q.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.q.checkMiniplayer_=function(){var A;if(((A=this.data)==null?0:A.playlistSetVideoId)&&_.b("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{A=_.Hi();var H=A.currentEndpoint;!this.disableNowPlaying&&H&&_.L(H,_.Yr)&&this.data?(H=_.L(H,_.Yr),this.nowPlaying=this.data.playlistId?H.playlistId===this.data.playlistId:H.videoId===this.data.videoId,this.isVideoPlaying=A==null?void 0:A.isVideoPlaying):this.nowPlaying=!1}};
YL.prototype.checkMiniplayer_=YL.prototype.checkMiniplayer_;YL.prototype.onMouseLeave_=YL.prototype.onMouseLeave_;YL.prototype.onMouseEnter_=YL.prototype.onMouseEnter_;YL.prototype.computeHoverOverlays_=YL.prototype.computeHoverOverlays_;YL.prototype.computeFinalHoveredState_=YL.prototype.computeFinalHoveredState_;YL.prototype.computeSize=YL.prototype.computeSize;YL.prototype.computeThumbnailOverlaySidePanelWidth_=YL.prototype.computeThumbnailOverlaySidePanelWidth_;
_.E([_.P(_.TG),_.l("design:type",Object)],YL.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],YL.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],YL.prototype,"height",void 0);_.E([_.C(),_.l("design:type",Boolean)],YL.prototype,"bottomSidePanel",void 0);_.E([_.C(),_.l("design:type",Number)],YL.prototype,"width",void 0);_.E([_.C(),_.l("design:type",Object)],YL.prototype,"disableNowPlaying",void 0);
_.E([_.C({selector:_.hr}),_.l("design:type",Boolean)],YL.prototype,"miniplayerIsActive",void 0);_.E([_.C(),_.l("design:type",Object)],YL.prototype,"disableTooltips",void 0);_.E([_.C(),_.l("design:type",Object)],YL.prototype,"useHoveredProperty",void 0);_.E([_.C(),_.l("design:type",Object)],YL.prototype,"hovered",void 0);_.E([_.C(),_.l("design:type",Object)],YL.prototype,"isThumbnailHovered_",void 0);
_.E([_.C({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.l("design:type",Boolean)],YL.prototype,"finalHoveredState_",void 0);_.E([_.C({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.l("design:type",Number)],YL.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],YL.prototype,"addBackground",void 0);
_.E([_.C({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.l("design:type",Object)],YL.prototype,"hoverOverlays_",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],YL.prototype,"nowPlaying",void 0);_.E([_.C(),_.l("design:type",Boolean)],YL.prototype,"isVideoPlaying",void 0);_.E([_.C(),_.l("design:type",Object)],YL.prototype,"disableRounding",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.l("design:type",Object)],YL.prototype,"size",void 0);_.E([_.Ze("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YL.prototype,"onMouseEnter_",null);_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YL.prototype,"onMouseLeave_",null);
_.E([_.fF("data","disableNowPlaying","miniplayerIsActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YL.prototype,"checkMiniplayer_",null);_.E([_.HW()],YL);var ciA=[YL.prototype];_.Pw={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(A,H){return A+":"+_.fl(H)},
getPlayerListener_:function(A,H,k){A=this.getPlayerListenerKey_(A,H);H=this.playerListeners_.get(A);k&&this.playerListeners_.delete(A);return H},
savePlayerListener_:function(A,H){var k=H.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(A,H),k);return k},
listenToPlayerEvent:function(A,H,k){k=this.savePlayerListener_(H,k);A.addEventListener(H,k)},
listenToPlayerEvents:function(A,H){H.forEach(function(k,d){this.listenToPlayerEvent(A,d,k)}.bind(this))},
unlistenFromPlayerEvent:function(A,H,k){k=this.getPlayerListener_(H,k,!0);A.removeEventListener(H,k)},
unlistenFromPlayerEvents:function(A,H){H.forEach(function(k,d){this.unlistenFromPlayerEvent(A,d,k)}.bind(this))}}};
_.GG=function(){};_.paw=new _.SE("PLAYER_API_TOKEN");var rif=!1,xjW,B7f=!1,hfb;var pj=function(A,H,k,d,W){_.dF.call(this);var z=this;this.playerId=H;this.webPlayerContextConfig=d;this.rH2=W;this.caP=!1;this.api={};this.q6X=this.hEY=null;this.rQd=new _.B5;this.zC={};this.oeX=this.gKX=this.elementId=this.yGC=this.config=null;this.jOy=!1;this.yN=this.y7y=null;this.jRX={};this.jJB=["onReady"];this.lastError=null;this.r9c=NaN;this.a8r={};this.bBX=0;this.dW=this.targetElement=A;_.ZL(this,this.rQd);QQk(this);k?this.bBX=setTimeout(function(){z.loadNewVideoConfig(k)},0):d&&(Vkw(this),
E40(this))};
_.I(pj,_.dF);pj.prototype.getId=function(){return this.playerId};
pj.prototype.loadNewVideoConfig=function(A){if(!this.isDisposed()){this.bBX&&(clearTimeout(this.bBX),this.bBX=0);var H=A||{};H instanceof mMk||(H=new mMk(H));this.config=H;this.setConfig(A);E40(this);this.isReady()&&Ujw(this)}};
var Vkw=function(A){var H;A.webPlayerContextConfig?H=A.webPlayerContextConfig.rootElementId:H=A.config.attrs.id;A.elementId=H||A.elementId;A.elementId==="video-player"&&(A.elementId=A.playerId,A.webPlayerContextConfig?A.webPlayerContextConfig.rootElementId=A.playerId:A.config.attrs.id=A.playerId);var k;((k=A.dW)==null?void 0:k.id)===A.elementId&&(A.elementId+="-player",A.webPlayerContextConfig?A.webPlayerContextConfig.rootElementId=A.elementId:A.config.attrs.id=A.elementId)};
pj.prototype.setConfig=function(A){this.yGC=A;this.config=lCA(A);Vkw(this);if(!this.gKX){var H;this.gKX=tk1(this,((H=this.config.args)==null?void 0:H.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var k;if((k=this.config)==null?0:k.attrs)A=this.config.attrs,(H=A.width)&&this.dW&&(this.dW.style.width=PJ(Number(H)||H,!0)),(A=A.height)&&this.dW&&(this.dW.style.height=PJ(Number(A)||A,!0))};
pj.prototype.getConfig=function(){return this.yGC};
var Ujw=function(A){if(A.config&&A.config.loaded!==!0)if(A.config.loaded=!0,!A.config.args||A.config.args.autoplay!=="0"&&A.config.args.autoplay!==0&&A.config.args.autoplay!==!1){var H;A.api.loadVideoByPlayerVars((H=A.config.args)!=null?H:null)}else A.api.cueVideoByPlayerVars(A.config.args)},Mkw=function(A){var H=!0,k=A.getPlayerElement();
k&&A.config&&(H=k.dataset.version===N7G(A));return H&&!!_.UD("yt.player.Application.create")},E40=function(A){if(!A.isDisposed()&&!A.jOy){var H=Mkw(A);
if(H&&(A.getPlayerElement()?"html5":null)==="html5")A.oeX="html5",A.isReady()||n4N(A);else if(Z_p(A),A.oeX="html5",H&&A.yN&&A.targetElement)A.targetElement.appendChild(A.yN),n4N(A);else{A.config&&(A.config.loaded=!0);var k=!1;A.y7y=function(){k=!0;var d=fCw(A,"player_bootstrap_method")?_.UD("yt.player.Application.createAlternate")||_.UD("yt.player.Application.create"):_.UD("yt.player.Application.create");var W=A.config?lCA(A.config):void 0;d&&d(A.targetElement,W,A.webPlayerContextConfig,A.rH2);n4N(A)};
A.jOy=!0;H?A.y7y():(_.bi(N7G(A),A.y7y),(H=waG(A))&&RDW(H||""),o4G(A)&&!k&&_.nG("yt.player.Application.create",null))}}};
pj.prototype.getPlayerElement=function(){var A=_.cn(document,this.elementId);!A&&this.dW&&this.dW.querySelector&&(A=this.dW.querySelector("#"+this.elementId));return A};
var n4N=function(A){if(!A.isDisposed()){var H=A.getPlayerElement(),k=!1;H&&H.getApiInterface&&H.getApiInterface()&&(k=!0);if(k){A.jOy=!1;if(!fCw(A,"html5_remove_not_servable_check_killswitch")){var d;if((H==null?0:H.isNotServable)&&A.config&&(H==null?0:H.isNotServable((d=A.config.args)==null?void 0:d.video_id)))return}$jj(A)}else A.r9c=setTimeout(function(){n4N(A)},50)}},$jj=function(A){QQk(A);
A.caP=!0;var H=A.getPlayerElement();if(H){A.hEY=AXJ(A,H,"addEventListener");A.q6X=AXJ(A,H,"removeEventListener");var k=H.getApiInterface();k=k.concat(H.getInternalApiInterface());for(var d=A.api,W=0;W<k.length;W++){var z=k[W];d[z]||(d[z]=AXJ(A,H,z))}}for(var u in A.zC)A.zC.hasOwnProperty(u)&&A.hEY&&A.hEY(u,A.zC[u]);Ujw(A);A.gKX&&A.gKX(A.api);A.rQd.publish("onReady",A.api)},AXJ=function(A,H,k){var d=H[k];
return function(){var W=_.o7.apply(0,arguments);try{return A.lastError=null,d.apply(H,W)}catch(z){if(k!=="sendAbandonmentPing")throw z.params=k,A.lastError=z,W=new _.Ti("PlayerProxy error in method call",{error:z,method:k,playerId:A.playerId}),W.level="WARNING",W;}}},QQk=function(A){A.caP=!1;
if(A.q6X)for(var H in A.zC)A.zC.hasOwnProperty(H)&&A.q6X(H,A.zC[H]);for(var k in A.a8r)A.a8r.hasOwnProperty(k)&&clearTimeout(Number(k));A.a8r={};A.hEY=null;A.q6X=null;H=A.api;for(var d in H)H.hasOwnProperty(d)&&(H[d]=null);H.addEventListener=function(W,z){A.addEventListener(W,z)};
H.removeEventListener=function(W,z){A.removeEventListener(W,z)};
H.destroy=function(){A.dispose()};
H.getLastError=function(){return A.getLastError()};
H.getPlayerType=function(){return A.getPlayerType()};
H.getCurrentVideoConfig=function(){return A.getConfig()};
H.loadNewVideoConfig=function(W){A.loadNewVideoConfig(W)};
H.isReady=function(){return A.isReady()}};
pj.prototype.isReady=function(){return this.caP};
pj.prototype.addEventListener=function(A,H){var k=this;this.isDisposed();var d=tk1(this,H);d&&(_.VW(this.jJB,A)||this.zC[A]||(H=HtA(this,A),this.hEY&&this.hEY(A,H)),this.rQd.subscribe(A,d),A==="onReady"&&this.isReady()&&setTimeout(function(){d(k.api)},0))};
pj.prototype.removeEventListener=function(A,H){this.isDisposed()||(H=tk1(this,H))&&this.rQd.unsubscribe(A,H)};
var tk1=function(A,H){var k=H;if(typeof H==="string"){if(A.jRX[H])return A.jRX[H];k=function(){var d=_.o7.apply(0,arguments),W=_.UD(H);if(W)try{W.apply(_.k8,d)}catch(z){throw d=new _.Ti("PlayerProxy error when executing callback",{error:z}),d.level="ERROR",d;}};
A.jRX[H]=k}return k?k:null},HtA=function(A,H){var k=function(d){var W=function(){A.isDisposed();
if(!A.isDisposed())try{A.rQd.publish(H,d!=null?d:void 0)}catch(B){var u=new _.Ti("PlayerProxy error when creating global callback",{error:B.message,event:H,playerId:A.playerId,data:d,originalStack:B.stack,componentStack:B.componentStack});u.level="WARNING";throw u;}};
if(fCw(A,"web_player_publish_events_immediately"))W();else{var z=setTimeout(function(){W();_.iK.remove(A.a8r,String(z))},0);
_.iK.add(A.a8r,String(z),!0)}};
return A.zC[H]=k};
pj.prototype.getPlayerType=function(){return this.oeX||(this.getPlayerElement()?"html5":null)};
pj.prototype.getLastError=function(){return this.lastError};
var Z_p=function(A){A.cancel();QQk(A);A.oeX=null;A.config&&(A.config.loaded=!1);var H=A.getPlayerElement();H&&(Mkw(A)||!o4G(A)?A.yN=H:(H&&H.destroy&&H.destroy(),A.yN=null));A.targetElement&&_.LO(A.targetElement)};
pj.prototype.cancel=function(){this.y7y&&_.K1N(N7G(this),this.y7y);clearTimeout(this.r9c);this.jOy=!1};
pj.prototype.disposeInternal=function(){Z_p(this);if(this.yN&&this.config&&this.yN.destroy)try{this.yN.destroy()}catch(H){var A=new _.Ti("PlayerProxy error during disposal",{error:H});A.level="ERROR";throw A;}this.jRX=null;for(A in this.zC)this.zC.hasOwnProperty(A)&&delete this.zC[A];this.yGC=this.config=this.api=null;delete this.targetElement;delete this.dW;_.dF.prototype.disposeInternal.call(this)};
var o4G=function(A){var H,k;A=(H=A.config)==null?void 0:(k=H.args)==null?void 0:k.fflags;return!!A&&A.indexOf("player_destroy_old_version=true")!==-1},N7G=function(A){return A.webPlayerContextConfig?A.webPlayerContextConfig.jsUrl:(A=A.config.assets)?A.js:""},waG=function(A){return A.webPlayerContextConfig?A.webPlayerContextConfig.cssUrl:(A=A.config.assets)?A.css:""},fCw=function(A,H){if(A.webPlayerContextConfig)var k=A.webPlayerContextConfig.serializedExperimentFlags;
else{var d;if((d=A.config)==null?0:d.args)k=A.config.args.fflags}return(k||"").split("&").includes(H+"=true")},lCA=function(A){for(var H={},k=_.r(Object.keys(A)),d=k.next();!d.done;d=k.next()){d=d.value;
var W=A[d];H[d]=typeof W==="object"?_.iK.clone(W):W}return H};var JiV={},mjl="player_uid_"+(Math.random()*1E9>>>0);var FJ=function(A,H,k,d,W,z){H=H===void 0?document.createElement("div"):H;this.webPlayerContextConfig=A;this.container=H;this.commandResolver=k;this.apiResolver=LsX();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.lk;d||z?sjG(this):k_k(this);this.pendingPlayerResponse=d;this.pendingWatchNextResponse=W;this.pendingPlayerVars=z;dbG(this)};
FJ.prototype.loadVideoWithPlayerResponse=function(A,H,k){this.loadVideo(A,H,k)};
FJ.prototype.loadVideoWithPlayerVars=function(A){return this.loadVideo(void 0,void 0,A)};
FJ.prototype.destroy=function(A){if(A=_.cn(document,A))A=mjl+"_"+_.fl(A),(A=JiV[A])&&A.dispose()};
var zN0=function(A,H){var k;_.e(function(d){if(d.nextAddress==1)return A.pendingWatchNextResponse=H,A.synchronousApi?(k=A.synchronousApi,d.jumpTo(2)):d.yield(A.api,3);d.nextAddress!=2&&(k=d.yieldResult);if(!WUj(A,k))return d.return();A.pendingWatchNextResponse&&(k.updateVideoData({raw_watch_next_response:A.pendingWatchNextResponse}),A.pendingWatchNextResponse=void 0);_.EN(d)})},WUj=function(A,H){var k;
if(!(H==null?0:(k=H.isReady)==null?0:k.call(H))){var d;_.Pq(new _.Ti("playerApi is falsey",{synchronousApi:A.synchronousApi,apiResolved:A.apiResolver.resolved,playerApiUndefined:H===void 0,playerApiNull:H===null,playerApiReady:(H==null?void 0:(d=H.isReady)==null?void 0:d.call(H))===!0,playerApiMethods:H?Object.keys(H):[]}));return!1}return!0},qVj=function(A,H){if(typeof A[H]==="function")return A[H]()},rXp=function(A){var H=window,k,d=(k=H.ytplayer)==null?void 0:k.bootstrapPlayerContainer;
if((k=d==null?void 0:d.firstElementChild)&&_.SP(k,"html5-video-player")){var W,z,u=(W=H.ytplayer)==null?void 0:(z=W.bootstrapWebPlayerContextConfig)==null?void 0:z.contextId;W=A.webPlayerContextConfig.contextId;if(u&&u===W){d!==A.container&&(d=!1,qVj(k,"getPlayerState")===2&&(d=!0),A.container.appendChild(k),d||qVj(k,"playVideo"));var B;if((B=H.ytplayer)==null?0:B.bootstrapPlayerResponse)A.bootstrapPlayerResponse=H.ytplayer.bootstrapPlayerResponse}}},dbG=function(A){var H,k,d,W,z;
_.e(function(u){if(u.nextAddress==1)return A.pageReadyOrDataAvailable?u.jumpTo(2):u.yield(A.pageReadyOrDataAvailableResolver.promise,2);if(u.nextAddress!=4)return!_.b("kevlar_player_unified_player_loading")||uuf()&&efA()?u.jumpTo(4):u.yield(Rfb(),4);rXp(A);if(A.pendingPlayerResponse||A.pendingPlayerVars)H=T7f(A.pendingPlayerResponse,A.pendingWatchNextResponse,A.pendingPlayerVars),A.pendingPlayerResponse&&A.pendingPlayerResponse===A.bootstrapPlayerResponse&&(H.loaded=!0),A.bootstrapPlayerResponse=
void 0;k=b_b(A.container,H,A.webPlayerContextConfig);((d=H)==null?0:d.loaded)&&A.pendingWatchNextResponse?(zN0(A,A.pendingWatchNextResponse),A.pendingPlayerResponse=void 0,A.pendingPlayerVars=void 0):ubk(A);W=function(B){k.removeEventListener("onReady",W);A.synchronousApi=B;A.apiResolver.resolve(B)};
k.addEventListener("onReady",W);A.commandResolver!==void 0&&(z=A.commandResolver,k.addEventListener("innertubeCommand",function(B){z(B)}));
_.EN(u)})};
FJ.prototype.loadVideo=function(A,H,k){var d=this,W,z,u,B,h,O,T,m,J;return _.e(function(g){if(g.nextAddress==1)return d.pendingPlayerResponse=A,d.pendingWatchNextResponse=H,d.pendingPlayerVars=k,sjG(d),d.synchronousApi?(W=d.synchronousApi,g.jumpTo(2)):g.yield(d.api,3);g.nextAddress!=2&&(W=g.yieldResult);if(!WUj(d,W))return g.return(new Promise(function(){}));
u=new Promise(function(v){z=v});
B=function(){var v=W.getPlayerResponse();v&&(W.removeEventListener("onVideoDataChange",B),z(v))};
W.addEventListener("onVideoDataChange",B);if(d.pendingPlayerResponse||d.pendingPlayerVars)d.pendingPlayerResponse&&d.pendingPlayerResponse===d.bootstrapPlayerResponse?(z(d.pendingPlayerResponse),d.pendingWatchNextResponse&&zN0(d,d.pendingWatchNextResponse)):(h=T7f(d.pendingPlayerResponse,d.pendingWatchNextResponse,d.pendingPlayerVars),(J=(O=d.pendingPlayerResponse)==null?void 0:(T=O.playerConfig)==null?void 0:(m=T.playbackStartConfig)==null?void 0:m.startPaused)?W.cueVideoByPlayerVars(h.args):W.loadVideoByPlayerVars(h.args)),
ubk(d),d.bootstrapPlayerResponse=void 0;return g.return(u)})};
var k_k=function(A){if(document.readyState==="complete"||document.readyState==="interactive")sjG(A);else{var H=function(){document.removeEventListener("DOMContentLoaded",H);sjG(A)};
document.addEventListener("DOMContentLoaded",H)}},sjG=function(A){A.pageReadyOrDataAvailable=!0;
A.pageReadyOrDataAvailableResolver.resolve()},ubk=function(A){A.pendingPlayerResponse=void 0;
A.pendingWatchNextResponse=void 0;A.pendingPlayerVars=void 0};
_.nP.Object.defineProperties(FJ.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var XJ=function(A){xs.call(this,A===void 0?"document_active":A);var H=this;this.overridePriority=10;this.JSC$14791_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(k){H.transition("document_disposed",{event:k})});
window.addEventListener("beforeunload",function(k){H.transition("document_disposed_preventable",{event:k})});
window.addEventListener("unload",function(k){H.transition("document_disposed",{event:k});H.JSC$14791_hasRun=new Map})};
_.I(XJ,xs);
XJ.prototype.runPreventableDispose=function(A,H){if(!this.JSC$14791_hasRun.get("document_disposed_preventable")){A(H==null?void 0:H.event);var k,d;if((H==null?0:(k=H.event)==null?0:k.defaultPrevented)||(H==null?0:(d=H.event)==null?0:d.returnValue)){H.event.returnValue||(H.event.returnValue=!0);H.event.defaultPrevented||H.event.preventDefault();this.JSC$14791_hasRun=new Map;this.transition("document_active");return}}this.JSC$14791_hasRun.set("document_disposed_preventable",!0);this.JSC$14791_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
XJ.prototype.runDispose=function(A,H){this.JSC$14791_hasRun.get("document_disposed")?this.transition("document_active"):(A(H==null?void 0:H.event),this.JSC$14791_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
XJ.prototype.runFlush=function(A,H){A(H==null?void 0:H.event);this.transition("document_active")};
XJ.prototype.runActive=function(){};var Dp=function(A){xs.call(this,A===void 0?"document_visibility_unknown":A);var H=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(k){document.visibilityState==="visible"?H.transition("document_visible",{event:k}):H.transition("document_hidden",
{event:k})});
_.b("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(k){H.transition("document_backgrounded",{event:k})}),window.addEventListener("focus",function(k){H.transition("document_foregrounded",{event:k})}))};
_.I(Dp,xs);Dp.prototype.runVisible=function(A,H){A(H==null?void 0:H.event);_.b("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Dp.prototype.runHidden=function(A,H){A(H==null?void 0:H.event);_.b("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Dp.prototype.runBackgrounded=function(A,H){A(H==null?void 0:H.event)};
Dp.prototype.runForegrounded=function(A,H){A(H==null?void 0:H.event)};var S3=function(){this.teardownLifecycle=new XJ;this.visibilityLifecycle=new Dp};
S3.prototype.install=function(){var A=_.o7.apply(0,arguments),H=this;A.forEach(function(k){H.teardownLifecycle.install(k)});
A.forEach(function(k){H.visibilityLifecycle.install(k)})};var Cg=function(){S3.call(this);var A={};this.install((A.document_disposed={callback:this.abortSlisAndFlush},A));_.b("combine_ve_grafts")&&(A={},this.install((A.document_disposed={callback:this.flushInteractionLoggingAttachVes},A)));A={};this.install((A.flush_logs={callback:this.logFinalPayload},A));_.b("web_log_cfg_cee_ks")||_.ma(_.IE,BZA)};
_.I(Cg,S3);var v4I=function(){Cg.loggingInstance||(Cg.loggingInstance=new Cg);return Cg.loggingInstance};
Cg.prototype.logFinalPayload=function(){if(_.b("web_fp_via_jspb")){var A=new vuw,H=_.hx();H&&_.qC(A,1,H);H=_.b("jspb_sparse_encoded_pivot")?new Tg([{}]):new Tg;_.Cx(H,380,yrA,A);C$C("finalPayload",H);_.b("web_fp_via_jspb_and_json")&&_.yr("finalPayload",{csn:_.hx()})}else _.yr("finalPayload",{csn:_.hx()})};
Cg.prototype.abortSlisAndFlush=function(){Hv1(Ye);PY!=null&&PY.flush()};
Cg.prototype.flushInteractionLoggingAttachVes=function(){vmk(_.A7())};
var BZA=function(){var A=_.pZ("CLIENT_EXPERIMENT_EVENTS");if(A){var H=Bwb();A=_.r(A);for(var k=A.next();!k.done;k=A.next())k=k.value,H(k)&&_.yr("genericClientExperimentEvent",{eventType:k});delete _.ax.CLIENT_EXPERIMENT_EVENTS}};var eNN={};
eNN.YtPlayerBehavior=[_.Pw.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 A=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.lk;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;yil(function(){A.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.FF(this,"pan-down"),_.b("kevlar_pinch_fullscreen")&&_.AU().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.b("kevlar_pinch_fullscreen")&&_.AU().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(A,H,k){var d=this;QI(this.useUnifiedPlayer_());if(this.mainAppPlayer_)QI(!1,"MainAppPlayer already created.");else{var W=_.b("kevlar_player_container_query_killswitch")?this.$.container:_.Va(this.hostElement).querySelector("#container");this.mainAppPlayer_=new FJ(this.getWebPlayerContextConfig_(),W,function(z){return _.ZS(z,d.hostElement)},A,H,k);
this.mainAppPlayer_.api.then(function(z){d.player_=z;d.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&yhk.resolve(z)})}},
loadVideoWithPlayerResponse:function(A,H){var k=this;if(this.useUnifiedPlayer_()){var d=this.watchNextData,W,z=(W=A.videoDetails)==null?void 0:W.videoId,u,B,h;(W=(u=this.watchNextData)==null?void 0:(B=u.currentVideoEndpoint)==null?void 0:(h=B.watchEndpoint)==null?void 0:h.videoId)&&z!=W&&(d=void 0,_.b("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(A,d,H):this.createMainAppPlayer_(A,d,H);this.mainAppPlayer_.api.then(function(){_.Ed(k.hostElement,
"yt-player-updated")})}else this.update(Wsr(A,H))},
loadVideoWithPlayerVars:function(A){var H=this;this.useUnifiedPlayer_()?(_.b("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(A):this.createMainAppPlayer_(void 0,void 0,A),this.mainAppPlayer_.api.then(function(){_.Ed(H.hostElement,"yt-player-updated")})):this.update({args:A})},
update:function(A){var H=this;if(this.useUnifiedPlayer_())QI(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(A);var k=tGl(A.args);k&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==k&&Object.assign(A.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(A).then(function(d){_.Ed(H.hostElement,"yt-player-updated",_.b("kevlar_player_updated_obsolete_player_killswitch")?
d:void 0)})}_.YJ(new _.Ti("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(H.getPlayerPromise(),2);k=d.yieldResult;if(!k)throw Error("wh");A&&H.updatePlayerPlaylist_(A);_.EN(d)})},
acquireApi_:function(A){var H=this;if(this.useUnifiedPlayer_())QI(!1,"Invalid method call in kevlar_unified_player.");else return _.IE.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(QI(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(k){H.shouldAutoplay_(A)?k.loadVideoByPlayerVars(A.args):k.cueVideoByPlayerVars(A.args)})):this.initPlayerPromise_=this.initPlayerContainer_(A),this.initPlayerPromise_},
initPlayerContainer_:function(A){var H=this;if(this.useUnifiedPlayer_())QI(!1,"Invalid method call in kevlar_unified_player.");else return QI(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Pq(Error("xh")),QI(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.b("kevlar_player_container_query_killswitch")?this.$.container:_.Va(this.hostElement).querySelector("#container"),Rfb().then(function(){var k=H.initPlayer_(A);H.playerResolver_.resolve(k);
return k})},
onPlayerReady_:function(A,H){this.useUnifiedPlayer_()?QI(!1,"Invalid method call in kevlar_unified_player."):(A.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&yhk.resolve(A),H(A))},
maybeCallApiMethodOnElement_:function(A,H){if(typeof A[H]==="function")return A[H]()},
maybeAdoptBootstrapPlayer_:function(){var A=window,H,k=(H=A.ytplayer)==null?void 0:H.bootstrapPlayerContainer;if((H=k==null?void 0:k.firstElementChild)&&H.classList.contains("html5-video-player")){var d,W,z=(d=A.ytplayer)==null?void 0:(W=d.bootstrapWebPlayerContextConfig)==null?void 0:W.contextId;d=this.getWebPlayerContextConfig_().contextId;if(z&&z===d){k!==this.playerContainer_&&(k=!1,this.maybeCallApiMethodOnElement_(H,"getPlayerState")===2&&(k=!0),this.playerContainer_.appendChild(H),k||this.maybeCallApiMethodOnElement_(H,
"playVideo"));var u;if((u=A.ytplayer)==null?0:u.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=A.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(A){var H=this;if(this.useUnifiedPlayer_())QI(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(k){H.maybeAdoptBootstrapPlayer_();var d=A?zfA(A):void 0;d&&d==H.bootstrapPlayerResponse_&&(A.loaded=!0);d=H.playerContainer_;var W=H.getWebPlayerContextConfig_();d=b_b(d,A,W);H.player_=d;H.onPlayerReadyEvent_=H.onPlayerReady_.bind(H,H.player_,k);H.player_.addEventListener("onReady",H.onPlayerReadyEvent_);H.player_.addEventListener("innertubeCommand",
H.onPlayerInnerTubeCommand_.bind(H))})},
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(A){A.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(A){A.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var A=_.wj().resolve(_.SO).getCurrentPage();A&&A.getScrollTop()<=0?_.FF(this,"pan-down"):_.FF(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(A){A.isFullscreen()||A.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(A){A.isFullscreen()&&A.toggleFullscreen()})},
updatePlayerPlaylist_:function(A){var H=this,k,d,W;return _.e(function(z){if(z.nextAddress==1)return k=_.wj().resolve(_.fZ(_.jd)),d=!!(k&&k.playlistComponent&&k.playlistComponent.loopOn),z.yield(H.getPlayerPromise(),2);var u=W=z.yieldResult,B=u.updatePlaylist,h=[];if(_.b("kevlar_player_playlist_use_local_index")){var O,T;var m=(T=(O=A.localCurrentIndex)!=null?O:A.currentIndex)!=null?T:0}else{var J;m=(J=A.currentIndex)!=null?J:0}if(A.contents)for(O=0;O<A.contents.length;O++)if((T=A.contents[O])&&T.playlistPanelVideoRenderer)if(Vgv(T)){T=
T.playlistPanelVideoRenderer;J="";T.shortBylineText&&(J=_.PK(T.shortBylineText));var g="";T.title?g=_.PK(T.title):T.unplayableText&&(g=_.PK(T.unplayableText));h.push({author:J,title:g,encrypted_id:T.videoId})}else O<m&&--m;B.call(u,{index:m,list:A.playlistId?A.playlistId:"",loop:d,playlist_title:A.title,playlist_length:h.length,video:h,fetch:0,external_list:"1",title:A.title?A.title:"",playlist_author:A.ownerName?_.PK(A.ownerName):void 0});_.EN(z)})},
focusOnPlayer:function(){_.No(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var A=this.playerContainer_.querySelector(".html5-video-player");A&&(_.Kg(_.wj().resolve(_.A8)),A.focus())}})},
preparePlayer:function(){var A=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(H){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")H();else{var k=function(){document.removeEventListener("DOMContentLoaded",k);H()};
document.addEventListener("DOMContentLoaded",k)}})).then(function(){return Rfb()}).then(function(){A.initPlayerPromise_||A.preparePlayerJobId_||(A.preparePlayerJobId_=_.ma(_.IE,function(){A.initPlayerPromise_||(A.initPlayerPromise_=A.initPlayerContainer_())}))}):_.YJ(new _.Ti("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(A){this.useUnifiedPlayer_()?QI(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(A)||(A.args.autoplay="0")},
shouldAutoplay_:function(A){if(this.useUnifiedPlayer_())QI(!1,"Invalid method call in kevlar_unified_player.");else{var H=this.get("args.el",A);return H&&H!="detailpage"&&this.isMiniplayerActive_()||H&&(H=="sponsorshipsoffer"||H=="handlesclaiming")&&this.get("args.autoplay",A)=="0"?!1:(A=zfA(A))&&this.get("playerConfig.playbackStartConfig.startPaused",A)?!1:!0}},
isMiniplayerActive_:function(){return _.wj().resolve(_.L6).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var A=this.getPlayer();if(A){var H=A.getPlayerState();_.b("kevlar_player_check_ad_state_on_stop")&&(H=A.getPlayerState(A.getPresentingPlayerType()));H!=5&&A.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(A,H,k){k=k===void 0?!1:k;var d=this,W,z,u,B;return _.e(function(h){if(h.nextAddress==1)return H||(H=d.hostElement),W=d.useUnifiedPlayer_()?!!d.mainAppPlayer_:!!d.initPlayerPromise_,W?h.yield(d.getPlayerPromise(),2):(k?A.insertBefore(H,A.firstChild):A.appendChild(H),h.return());z=h.yieldResult;u=z.getPlayerState(z.getPresentingPlayerType());B=!1;if(u==-1||u==1||u==3)B=!0;k?A.insertBefore(H,A.firstChild):A.appendChild(H);B&&z.playVideo();z.setSize(NaN,NaN);_.EN(h)})},
watchNextDataChanged_:function(A){var H=this;A&&(this.useUnifiedPlayer_()&&_.b("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&zN0(this.mainAppPlayer_,A):this.getPlayerPromise().then(function(k){k.updateVideoData(H.computeWatchNextPlayerVars_(A))}))},
computeWatchNextPlayerVars_:function(A){if(this.useUnifiedPlayer_()&&_.b("kevlar_unified_player_update_watch_next_killswitch"))QI(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:A}},
maybeSendAbandonmentPing_:function(){var A=this.getPlayer();A&&A.getPlayerState()!=5&&A.getPlayerState()!=0&&A.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var A=_.pZ("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(A=Object.assign({},A),A.rootElementId=this.playerId);A.serializedExperimentIds&&A.serializedExperimentFlags||_.Pq(Error("yh"));return A},
hasWebPlayerContextConfig_:function(){return!!_.pZ("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(A){this.useUnifiedPlayer_()?QI(!1,"Invalid method call in kevlar_unified_player."):_.ZS(A,this.hostElement)},
useUnifiedPlayer_:function(){var A=_.b("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.b("kevlar_unified_player")||A}}];var xbi={};xbi.YtPlaylistPanelBehavior=[_.n.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(A){A=A.detail;if(A.actions.loop!=void 0||A.actions["yt-icons:loop"]!=void 0)this.loopOn=A.actions.loop||A.actions["yt-icons:loop"];if(A.actions.shuffle!=void 0||A.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=A.actions.shuffle||A.actions["yt-icons:shuffle"]},
setMenuData_:function(A){if(!A||!A.playlistButtons||A.isInfinite)return null;for(var H=A.playlistButtons.menuRenderer.topLevelButtons,k=H.length,d=0;d<k;d++)if(H[d].toggleButtonRenderer){var W=H[d].toggleButtonRenderer;W.defaultIcon.iconType=="LOOP"&&this.loopOn?W.isToggled=this.loopOn:W.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(W.isToggled=this.shuffleOn)}return A.playlistButtons}}];_.a6={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(A,H,k){var d=this.getClickTarget_(H);if(d&&this.isClickAllowed_(d)){H.preventDefault();A=(0,_.iK.unsafeClone)(A);var W=this.getContainerBoundingRect();H=this.getRelativeClickXy_(H,W);this.expandEndpointUrlMacros_(A,{NX:H[0],NY:H[1],NB:d.code});k&&this.truncateWebCommendMetadataUrl_(A);_.Ed(this.hostElement,"yt-navigate",{endpoint:A})}},
getClickTarget_:function(A){if(!this.clickTargetMap)return null;A=_.F_(A)||[];A=_.r(A);for(var H=A.next();!H.done;H=A.next()){H=H.value;if(H===_.Va(this.hostElement).querySelector("#menu"))break;if(H=this.clickTargetMap.get(H.id))return H}return null},
getRelativeClickXy_:function(A,H){var k=Math.round(A.detail.x-H.left);A=Math.round(A.detail.y-H.top);return k<0||A<0?[null,null]:[k,A]},
getContainerBoundingRect:function(){return _.Va(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(A,H){for(var k=_.r(A.loggingUrls||[]),d=k.next();!d.done;d=k.next())d=d.value,d.baseUrl&&(d.baseUrl=NFN(d.baseUrl,H));A.urlEndpoint&&A.urlEndpoint.url&&(A.urlEndpoint.url=NFN(A.urlEndpoint.url,H));A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url&&(A.commandMetadata.webCommandMetadata.url=NFN(A.commandMetadata.webCommandMetadata.url,H))},
truncateWebCommendMetadataUrl_:function(A){if(A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url){var H=A.commandMetadata.webCommandMetadata.url,k=H.indexOf("&pp=");if(k>0){var d=H.indexOf("&",k+1);A.commandMetadata.webCommandMetadata.url=d>k&&d<H.length?H.slice(0,k)+H.slice(d):H.slice(0,k)}}},
configureClickTargets:function(A,H,k){this.containerId=A;this.clickTargetMap=new Map;A=_.r(H);for(H=A.next();!H.done;H=A.next())if(H=H.value,H.location){var d=k.get(H.location);d&&(_.UJ(_.Va(this.hostElement).querySelector("#"+d),"yt-simple-endpoint",this.isClickAllowed_(H)),this.clickTargetMap.set(d,H))}},
isClickAllowed_:function(A){return A.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.cw={};
_.cw.YtLazyListBehavior=[_.Xj.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 A=(this.constructor.generatedFrom||this).observers;A||(A=[]);A.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
A}},
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 A=this.renderElementsOutsideVisibleArea_;A&&(eBN(A,4),A.processSignal())},
deepLazyListObserver_:function(A){var H=this;if(A){var k=A.value||[];if(this.itemsPath==A.path){var d=this.nonDeferredItemCount;A=0;d>-1&&k.length>d&&(A=_.pZ("REMAINING_DOVA_DEFERRED_CHUNKS",-1));A>0?(d>0&&(d=k.slice(0,d),this.setInitialItemsOnDataChanged(d)),(d=this.renderElementsOutsideVisibleArea_)?d.cancel():(d=this.renderElementsOutsideVisibleArea_=new _.S$(2,"eocs"),_.Nbf(window,"scroll",function(){return H.renderDeferredElements()})),_.CM(d,function(){H.setInitialItemsOnDataChanged(k)}),_.cI("REMAINING_DOVA_DEFERRED_CHUNKS",
A-1)):this.setInitialItemsOnDataChanged(k)}else if(this.itemsPath+".splices"==A.path)this.onItemsUpdated_(k);
else d="shownItems"+A.path.substr(this.itemsPath.length),this.useSignals&&d==="shownItems.length"||this.notifyPath(d,A.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(A){A&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(A),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(A){A=A.indexSplices;for(var H=0,k=A.length;H<k;H++){var d=A[H];if(d.index<this.shownCount&&(d.removed&&this.splice("shownItems",d.index,d.removed.length),d.addedCount)){var W=d.object.slice(d.index,d.index+d.addedCount);d=["shownItems",d.index,0];d.push.apply(d,W);this.splice.apply(this,d)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(A){this.cancelPendingTasks_();A||(A=[]);this.items_=A;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&&(_.Q$("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.No(this,this.tryRenderChunk_)))},
fillRange_:function(A,H){this.canShowMore&&this.items_&&(A=this.items_.slice(A,H),A.unshift("shownItems"),this.push.apply(this,A),this.shownCount=H,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var A=this;this.canShowMore&&_.vW(this,"renderChunk",function(){A.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Q$("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.zV(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var A=this.renderElementsOutsideVisibleArea_;A&&(A.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var A=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(A-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=A;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(A){return Math.ceil(1E3/A)},
onCanShowMoreUpdated_:function(A){this.data&&this.items_!==null&&(A?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(A){!this.shouldUseTaskManager()&&this.data&&(!A&&this.canShowMore?(_.eGI(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):A&&this.partiallyRenderedItems_.has(this.items_)&&(_.b("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var VH;_.pg={};
VH=function(){var A=_.A6.apply(this,arguments)||this;A.atStart=!0;A.atEnd=!0;A.startIndex=0;A.endIndex=0;A.scrollCount=0;A.initialStartIndex=0;A.disableScrollEventListener=!1;A.useFloorScrolling=!1;A.isSearch=!1;A.dragging=!1;A.dragMouseStart=0;A.dragOffsetStart=0;A.disableWheelScroll=!1;A.centerListItems=!1;A.offset=0;A.minComponentWidth=0;A.marginWidthRight=0;A.marginWidthLeft=0;A.setButtonsStateRequested=!1;A.itemsVisibilityObserver=null;A.fullyVisibleItemsIndices=[];A.JSC$14820_onWheelScroll=function(H){if(A.isSearch&&
!A.disableWheelScroll&&_.b("desktop_enable_dmpanel_wheel_scroll")){var k=H.shiftKey?Math.abs(H.deltaY)>Math.abs(H.deltaX)?H.deltaY:H.deltaX:H.deltaX;k!==0&&(H.preventDefault(),A.ytLazyListBehavior.fillRemainingListItems(),A.offset+=k,QH(A),A.reposition_())}};
A.onPointerDown=function(H){itJ(A)&&(A.dragMouseStart=H.clientX,A.dragOffsetStart=A.offset,A.dragging=!0)};
A.onPointerMove=function(H){itJ(A)&&A.dragging&&(A.ytLazyListBehavior.fillRemainingListItems(),A.offset=A.dragOffsetStart-(H.clientX-A.dragMouseStart),QH(A),A.reposition_())};
A.onPointerUp=function(){itJ(A)&&(A.dragging=!1)};
return A};
_.I(VH,_.A6);var hNN=function(A){var H=_.Va(A.hostElement).querySelector("#items").children;if(!H)return 0;var k=0;A=_.r(A.fullyVisibleItemsIndices);for(var d=A.next();!d.done;d=A.next())k+=H[d.value].clientWidth;return k},itJ=function(A){return A.isSearch&&_.b("desktop_enable_dmpanel_click_drag_scroll")};
VH.prototype.created=function(){this.cachedViewportWidth=_.pZ("initialInnerWidth")||window.innerWidth;this.JSC$14820_cachedViewportHeight=_.pZ("initialInnerHeight")||window.innerHeight;_.pZ("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.cI("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
VH.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.b("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();OtQ(this)};
VH.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.b("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var A;(A=this.itemsVisibilityObserver)==null||A.disconnect();this.itemsVisibilityObserver=null;var H;(H=this.itemsObserver)==null||H.disconnect()};
var OtQ=function(A){var H=_.Va(A.hostElement).querySelector("#scroll-container");if(H){if(!A.itemsVisibilityObserver){var k=window.getComputedStyle(H).marginRight;A.itemsVisibilityObserver=new IntersectionObserver(function(d){RN0(A,d)},{root:H,
rootMargin:k,threshold:.98})}if(H=_.Va(A.hostElement).querySelector("#items"))A.itemsObserver=new wWi(H,function(d){TZi(A,d)})}},TZi=function(A,H){mbw(A)&&(Array.from(H.addedNodes).filter(function(k){return k.nodeType===Node.ELEMENT_NODE}).forEach(function(k){A.itemsVisibilityObserver&&A.itemsVisibilityObserver.observe(k)}),Array.from(H.removedNodes).filter(function(k){return k.nodeType===Node.ELEMENT_NODE}).forEach(function(k){A.itemsVisibilityObserver&&A.itemsVisibilityObserver.unobserve(k)}))},
RN0=function(A,H){var k=new Set(A.fullyVisibleItemsIndices);
H=_.r(H);for(var d=H.next();!d.done;d=H.next()){d=d.value;var W=d.target.parentElement;W?(W=Array.from(W.children).indexOf(d.target),d.isIntersecting?k.add(W):k.has(W)&&k.delete(W)):_.Pq(new _.Ti("Parent element not found",d.target.nodeName))}A.fullyVisibleItemsIndices=Array.from(k).sort(function(z,u){return z-u});
k.size===0?_.Pq(new _.Ti("No visible entries in horizontal list")):(A.startIndex=A.fullyVisibleItemsIndices[0],A.endIndex=A.fullyVisibleItemsIndices[A.fullyVisibleItemsIndices.length-1])},mbw=function(A){A.data?A=(A=A.data)&&A.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===A.itemSizeConstraint:!1:A=!1;
return A};
_.q=VH.prototype;_.q.addScrollEventListeners=function(){var A=_.Va(this.hostElement).querySelector("#scroll-container");A.style.touchAction="pan-y";A.addEventListener("wheel",this.JSC$14820_onWheelScroll);A.addEventListener("pointerdown",this.onPointerDown);A.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.q.removeScrollEventListeners=function(){var A=_.Va(this.hostElement).querySelector("#scroll-container");A.removeEventListener("wheel",this.JSC$14820_onWheelScroll);A.removeEventListener("pointerdown",this.onPointerDown);A.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.q.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.No(this,this.setStartIndex,[this.initialStartIndex])};
_.q.reposition_=function(){var A=_.pZ("HTML_DIR")=="rtl"?"":"-",H=_.Va(this.hostElement).querySelector("#items");H&&(H.style.transform="translateX("+A+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.q.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.No(this,this.setButtonsState_))};
_.q.setButtonsState_=function(){this.setButtonsStateRequested=!1;var A=_.Va(this.hostElement).querySelector("#items").firstElementChild;if(A){this.minComponentWidth||(this.minComponentWidth=JXG(this,A));A=_.Va(this.hostElement).querySelector("#scroll-container").clientWidth;var H=_.Va(this.hostElement).querySelector("#items");H=_.b("kevlar_horizontal_list_scroll_width_killswitch")?H.clientWidth:H.scrollWidth;var k=this.get(this.ytLazyListBehavior.itemsPath,this);if(k){var d=Math.round(A/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+d,k.length)-1)}this.ytLazyListBehavior.canShowMore?H+this.minComponentWidth>=this.offset+A&&(this.atEnd=!1):this.atEnd=this.offset+A>=H-20?!0:!1;this.atStart=this.offset<=20}};
_.q.setStartIndex=function(A){if(!this.minComponentWidth){var H=_.Va(this.hostElement).querySelector("#items").firstElementChild;if(!H)return;this.minComponentWidth=JXG(this,H)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*A;QH(this);this.reposition_()};
_.q.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Mr();var A=_.Va(this.hostElement).querySelector("#scroll-container").clientWidth;_.b("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=JXG(this,_.Va(this.hostElement).querySelector("#items").firstElementChild));A=this.useFloorScrolling?Math.floor(A/this.minComponentWidth)||1:Math.round(A/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&gaZ(this);this.offset+=mbw(this)?
hNN(this):A*this.minComponentWidth;QH(this);this.reposition_();this.scrollCount++};
_.q.prevClick_=function(){var A=_.Va(this.hostElement).querySelector("#scroll-container").clientWidth;A=this.useFloorScrolling?Math.floor(A/this.minComponentWidth)||1:Math.round(A/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=mbw(this)?hNN(this):this.minComponentWidth*this.scrollCount-1):this.offset-=mbw(this)?hNN(this):A*this.minComponentWidth;this.centerListItems&&gaZ(this);QH(this);this.reposition_()};
_.q.onIronResize_=function(){this.resizeSupportEnabled&&_.No(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.q.onItemsTransitionEnd_=function(A){_.X_(A)===_.Va(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.q.onChildElementFocus_=function(A){A=A.target.closest("#items > *");var H=_.Va(this.hostElement).querySelector("#scroll-container");if(H.contains(A)){if(_.b("web_horizontal_list_behavior_focus_killswitch"))if(A.offsetLeft<this.offset)this.offset=Math.abs(A.offsetLeft)<A.clientWidth?0:A.offsetLeft;else if(A.offsetLeft+A.clientWidth>this.offset+H.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Mr(),this.offset=A.offsetLeft+A.clientWidth-H.clientWidth;else return;else{var k=_.Va(this.hostElement).querySelector("#items"),
d=_.pZ("HTML_DIR")==="rtl",W=d?k.clientWidth-A.offsetLeft:A.offsetLeft;k=d?k.clientWidth-(A.offsetLeft+A.clientWidth):A.offsetLeft+A.clientWidth;var z=d?W>this.offset+H.clientWidth:W<this.offset,u=d?k<this.offset:k>this.offset+H.clientWidth,B=d?z:u;if(d?u:z)H=d?k:W,this.offset=Math.abs(H)<A.clientWidth?0:H;else if(B)this.ytLazyListBehavior.fillRemainingListItems(),_.Mr(),this.offset=(d?W:k)-H.clientWidth;else return}QH(this);this.reposition_()}};
_.q.observeShownItems_=function(){this.reset()};
_.q.checkComponentWidthResize=function(){var A=_.Va(this.hostElement).querySelector("#items").firstElementChild;A&&(A=JXG(this,A),this.centerListItems||A!==this.minComponentWidth)&&(this.minComponentWidth=A,this.offset=A*this.scrollCount,this.centerListItems&&gaZ(this),QH(this),this.reposition_())};
var JXG=function(A,H){var k=window.getComputedStyle(H).marginRight;k=Math.floor(Number(k.replace("px","")));var d=window.getComputedStyle(H).marginLeft;d=Math.floor(Number(d.replace("px","")));A.centerListItems&&!A.marginWidthRight&&(A.marginWidthRight=k,A.marginWidthLeft=d);return A.resizeSupportEnabled?H.getBoundingClientRect().width+k:H.offsetWidth+k},QH=function(A){var H=_.Va(A.hostElement).querySelector("#scroll-container").clientWidth,k=_.Va(A.hostElement).querySelector("#items").clientWidth;
A.offset<0?A.offset=0:A.offset+H>=k&&(A.offset=k-H)},gaZ=function(A){A.offset-=(_.Va(A.hostElement).querySelector("#scroll-container").clientWidth+A.marginWidthRight-A.minComponentWidth)/2-A.marginWidthLeft};
_.nP.Object.defineProperties(VH.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var A=_.pZ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(A==-1)A=this.JSC$14820_cachedViewportHeight,A=A>1320?5:A>1020?4:A>730?3:A>430?2:1;else if(A==0)return 0;_.cI("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",A-1);A=_.pZ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(A>-1)return A;A=this.cachedViewportWidth;A=A>1600?6:A>1400?5:A>1300?4:A>1090?5:A>870?4:A>660?3:2;_.cI("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
A);return A},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.b("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
VH.prototype.observeShownItems_=VH.prototype.observeShownItems_;VH.prototype.onChildElementFocus_=VH.prototype.onChildElementFocus_;VH.prototype.onItemsTransitionEnd_=VH.prototype.onItemsTransitionEnd_;VH.prototype.onIronResize_=VH.prototype.onIronResize_;VH.prototype.prevClick_=VH.prototype.prevClick_;VH.prototype.nextClick_=VH.prototype.nextClick_;VH.prototype.setButtonsState_=VH.prototype.setButtonsState_;VH.prototype.requestButtonsStateUpdate_=VH.prototype.requestButtonsStateUpdate_;
VH.prototype.reposition_=VH.prototype.reposition_;VH.prototype.reset=VH.prototype.reset;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.cw.YtLazyListBehavior),_.l("design:type",Object)],VH.prototype,"ytLazyListBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],VH.prototype,"atStart",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],VH.prototype,"atEnd",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"startIndex",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"endIndex",void 0);_.E([_.C({value:6}),_.l("design:type",Number)],VH.prototype,"initialCount",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"scrollCount",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"initialStartIndex",void 0);
_.E([_.C(),_.l("design:type",Object)],VH.prototype,"disableScrollEventListener",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"supportComponentResize",void 0);_.E([_.C({value:function(){var A=this;return function(){return A.prevClick_()}}}),
_.l("design:type",Function)],VH.prototype,"boundPrevClick",void 0);_.E([_.C({value:function(){var A=this;return function(){return A.nextClick_()}}}),
_.l("design:type",Function)],VH.prototype,"boundNextClick",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"useFloorScrolling",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"isSearch",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"dragging",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"dragMouseStart",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"dragOffsetStart",void 0);
_.E([_.C(),_.l("design:type",Object)],VH.prototype,"disableWheelScroll",void 0);_.E([_.C(),_.l("design:type",Object)],VH.prototype,"centerListItems",void 0);_.E([_.Ze("iron-resize"),_.fF("guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VH.prototype,"onIronResize_",null);_.E([_.Ze("transitionend"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],VH.prototype,"onItemsTransitionEnd_",null);
_.E([_.Ze("focusin"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],VH.prototype,"onChildElementFocus_",null);_.E([_.fF("shownItems"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VH.prototype,"observeShownItems_",null);_.E([_.HW()],VH);_.pg.YtdHorizontalListBehavior=[];_.pg.YtdHorizontalListBehavior.push(_.WU,_.n.YtRendererBehavior,_.cw.YtLazyListBehavior,_.vw.YtdGuideStateAwareBehavior,VH.prototype);var ICX=["APP_STATE","PI"];var El,Ul=function(A){this.hostElement=A},lu=function(A,H){if(H&&(FsX(H.viewableCommands)||FsX(H.endOfSessionCommands))){var k=Dj8(H.viewableCommands);
H=Dj8(H.endOfSessionCommands);if(!El){var d=_.H5("custom_active_view_tos_timeout_ms");El=d>0&&d!==36E5?new HzA(Xar(),d):new HzA(Xar())}k1A(El,A.hostElement);dDf(El,A.hostElement,k,H)}},tB=function(A){El&&k1A(El,A.hostElement)};var btG=_.XO(["about:blank"]),LUw={pushState:window.history.pushState,replaceState:window.history.replaceState};var NK=function(A){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=A;this.internalPushState=A.pushState.bind(A);this.internalReplaceState=A.replaceState.bind(A)};
NK.prototype.init=function(){this.initialized=!0};
NK.prototype.pushState=function(A,H){this.initialized||this.init();this.internalPushState&&this.internalPushState(A,"",H)};
NK.prototype.replaceState=function(A,H){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(A,"",H)};
NK.prototype.getState=function(){return this.history&&this.history.state};var vaZ=function(A){var H=function(){var k=A.apply(this,arguments)||this;k.boundHistoryPushState=!1;k.boundHistoryReplaceState=!1;k.debugInfo={};return k};
_.I(H,A);H.prototype.init=function(){var k=_.$g("IFRAME");_.zM(k,_.Ia(btG));k.sandbox="allow-same-origin";k.style.display="none";this.iframe=k;document.body.appendChild(k);this.bindHistoryStateFunctions();A.prototype.init.call(this)};
H.prototype.bindHistoryStateFunctions=function(){var k=this,d=[],W;this.iframe&&((W=this.iframe.contentWindow)==null?0:W.history)&&(W=this.iframe.contentWindow.history)&&(d.push(W),Object.getPrototypeOf(W)&&d.push(Object.getPrototypeOf(W)));window.history&&d.push(window.history);W=window.history;Object.getPrototypeOf(W)&&d.push(Object.getPrototypeOf(W));d.push(LUw);W=function(u){for(var B=null,h=0;h<d.length;h++){var O=d[h][u];if(typeof O==="function"){B=O.bind(window.history);k.debugInfo[u]=h;break}}return B};
if(!this.boundHistoryReplaceState){var z=W("replaceState");z&&(this.internalReplaceState=z,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(W=W("pushState"))&&(this.internalPushState=W,this.boundHistoryPushState=!0)};
return H}(NK),yXw=function(){return vaZ.call(this,window.history)||this};
_.I(yXw,vaZ);yXw.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var MK=function(A){this.browserHistory=A;this.initialized=!1};
MK.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
MK.prototype.pushState=function(A,H){this.initialized||this.init();this.browserHistory.pushState(A,H)};
MK.prototype.replaceState=function(A,H){this.initialized||this.init();this.browserHistory.replaceState(A,H)};
MK.prototype.handlePopstate=function(A){return A.state};_.jjJ=function(A,H,k,d,W){this.endpoint=A;this.forward=H;this.historyEntry=k;this.JSC$31258_savedComponentState=d;this.legacyBorder=W===void 0?!1:W};var Inp=function(A,H){this.rootData=A;this.scrollTop=H};_.ng=new _.SE("EPHEMERAL_STORE_TOKEN");_.Zp=function(A){this.data=Object.assign({},A);var H;(H=this.data.innertubeResponse)==null||delete H.frameworkUpdates};
_.Zp.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.w2)()};
_.Zp.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.U5=function(A){return Object.assign({},A.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var YVG=function(){this.maxSize=100;this.timeToDataCache=new Map};
YVG.prototype.get=function(A){var H=this.timeToDataCache.get(A);H&&(this.timeToDataCache.delete(A),this.timeToDataCache.set(A,H));if(H&&H.rootData&&(_.b("web_use_response_store_for_history_cache")||_.b("mweb_use_new_history_manager"))){var k=_.wj().resolve(_.ng),d=P7w(H),W=!!d;if(d){if(d.content){var z=fg(k,d.content);W&&z?H.rootData.response=_.U5(z):W=!1}d.player&&(z=fg(k,d.player),W&&z?H.rootData.playerResponse=_.U5(z):W=!1);d.reelSequence&&(k=fg(k,d.reelSequence),W&&k?H.rootData.reelWatchSequenceResponse=
_.U5(k):W=!1)}W||(this.timeToDataCache.delete(A),H=void 0)}return H};
YVG.prototype.set=function(A,H){if(H.rootData&&(_.b("web_use_response_store_for_history_cache")||_.b("mweb_use_new_history_manager"))){var k=P7w(H),d=Object.assign({},H.rootData);k&&(k.content&&H.rootData.response&&(G_w(this,k.content,H.rootData.response),d.response=null),k.player&&H.rootData.playerResponse&&(G_w(this,k.player,H.rootData.playerResponse),d.playerResponse=null),k.reelSequence&&H.rootData.reelWatchSequenceResponse&&(G_w(this,k.reelSequence,H.rootData.reelWatchSequenceResponse),d.reelWatchSequenceResponse=
null));H=new Inp(d,H.scrollTop)}this.timeToDataCache.has(A)?this.timeToDataCache.delete(A):this.timeToDataCache.size>=this.maxSize&&(k=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(k.value));this.maxSize!==0&&this.timeToDataCache.set(A,H)};
YVG.prototype.clear=function(){this.timeToDataCache.clear()};
var P7w=function(A){var H=_.wj().resolve(_.fZ(_.eK)),k;if((k=A.rootData)==null?0:k.endpoint)return H==null?void 0:E80(H,A.rootData.endpoint);var d;_.Pq(new _.Ti("History snapshot response data does not contain endpoint",(d=A.rootData)==null?void 0:d.url));return null},G_w=function(A,H,k){if(A.maxSize>0){var d;
(A=(d=k.responseContext)==null?void 0:d.maxAgeSeconds)&&Number(A)>0&&(d=_.wj().resolve(_.ng),k=Ut(k,A),d.put(H,new _.Zp(k)))}};var FUi=function(A,H,k){this.endpoint=H;this.JSC$31264_savedComponentState=k===void 0?null:k;this.entryTime=A};var Cnv=1;var wf=function(A){var H=function(){var k=A.apply(this,[].concat(_.fV(_.o7.apply(0,arguments))))||this;k.historyEntryTime=0;k.historySnapshotCache=k.createHistoryCache();return k};
_.I(H,A);H.prototype.createHistoryCache=function(){return new YVG};
H.prototype.saveAndReplace=function(k,d,W){var z=window.location.href;var u=u===void 0?{}:u;var B=(B=this.browserHistory.getState())&&B.entryTime?B.entryTime:Ksf();k=this.createNewHistoryEntry(k,u,B);this.saveSnapshot(B,d,W);this.replaceState(k,z||window.location.href)};
H.prototype.saveAndPush=function(k,d,W,z,u){u=u===void 0?{}:u;this.saveSnapshot(this.historyEntryTime,W,z);W=this.historySnapshotCache;z=this.historyEntryTime;var B=W.timeToDataCache.keys();B=_.r(B);for(var h=B.next();!h.done;h=B.next())h=h.value,h>z&&W.timeToDataCache.delete(h);d=this.createNewHistoryEntry(d,u);this.pushState(d,k)};
H.prototype.saveSnapshot=function(k,d,W){this.historySnapshotCache.set(k,new Inp(d,W))};
H.prototype.createNewHistoryEntry=function(k,d,W){W=W===void 0?Ksf():W;return new FUi(W,k,d)};
H.prototype.handlePopstate=function(k){var d=A.prototype.handlePopstate.call(this,k),W=null,z=null,u=!1,B=null;d&&d.entryTime&&(B=this.historySnapshotCache.get(d.entryTime)||null,u=d.entryTime>this.historyEntryTime,this.historyEntryTime=d.entryTime,W=d.endpoint,z=d.JSC$31264_savedComponentState);this.handleHistoryCacheLoad(new _.jjJ(W,u,B,z),k);return d};
H.prototype.pushState=function(k,d){Number(k==null?void 0:k.entryTime)>=0&&(this.historyEntryTime=k.entryTime);A.prototype.pushState.call(this,k,d)};
H.prototype.replaceState=function(k,d){Number(k==null?void 0:k.entryTime)>=0&&(this.historyEntryTime=k.entryTime);A.prototype.replaceState.call(this,k,d)};
H.prototype.handleHistoryCacheLoad=function(){};
return H}(MK),X9A=function(){var A=wf.call(this,new yXw)||this;
A.dispatchElement=null;A.entryIndex=0;return A};
_.I(X9A,wf);_.q=X9A.prototype;_.q.init=function(A){A=A===void 0?!0:A;wf.prototype.init.call(this);this.initialized||(A||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.q.handlePopstate=function(A){var H=null;A.state||(H="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return wf.prototype.handlePopstate.call(this,A);var k=new CustomEvent("yt-history-pop",{cancelable:!0});_.Ud(this.dispatchElement,"yt-history-pop",[k,{errorMsg:H}]);_.li(this.dispatchElement,"yt-close-all-popups-action");if(!k.defaultPrevented){k=_.wj().resolve(_.SO);H=k.getCurrentData();var d=k.getCurrentPage();k=0;d?(d=_.Ud(this.dispatchElement,"yt-get-page-offset",
[d]),d.length>0&&(k=d[0])):_.Pq(new _.Ti("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:H?H.page:"undefined"}));H&&(H.csn=_.hx());this.saveSnapshot(this.historyEntryTime,H,k)}return wf.prototype.handlePopstate.call(this,A)};
_.q.handleHistoryCacheLoad=function(A,H){A.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.r(_.li(this.dispatchElement,"yt-history-will-navigate",[H])).next().value||_.Ud(this.dispatchElement,"yt-history-load",[H,A]))};
_.q.pushState=function(A,H){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var k=new _.Ti("history.pushState is not a function",this.getDebugString());_.I3(k)}wf.prototype.pushState.call(this,A,H)};
_.q.replaceState=function(A,H){if(!this.browserHistory.boundHistoryReplaceState){var k=new _.Ti("history.replaceState is not a function",this.getDebugString());_.I3(k)}wf.prototype.replaceState.call(this,A,H)};
_.q.saveAndPush=function(A,H,k,d,W){W=W===void 0?{}:W;k&&(k.csn=_.hx());wf.prototype.saveAndPush.call(this,A,H,k,d,W)};
_.q.getDebugString=function(){var A=[];this.initialized&&A.push("i");this.browserHistory.boundHistoryReplaceState&&A.push("bhr");this.browserHistory.boundHistoryPushState&&A.push("bhs");"replaceState"in this.browserHistory.debugInfo&&A.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&A.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&A.push("ei:"+String(this.entryIndex));return A.join(",")};
_.o6=function(A,H){A.init(!0);var k=A.browserHistory.getState();A.replaceState(k,Et(H))};
X9A.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.$L=new _.SE("DESKTOP_HISTORY_MANAGER_TOKEN");var Dbi=[10,20,30,40,50,60],Az=function(){this.currentPartitionIndex=0},SV1=function(A){usG({mainAppWeb:_.Il(),
survivalSli:{partitionMinute:A,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},C7w=function(A){usG({mainAppWeb:_.Il(),
survivalSli:{partitionMinute:A,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},KUp=function(A){return A.currentPartitionIndex>=0&&A.currentPartitionIndex<Dbi.length?Dbi[A.currentPartitionIndex]:-1},anQ=function(A){return A.currentPartitionIndex>0&&A.currentPartitionIndex-1<Dbi.length?Dbi[A.currentPartitionIndex-1]:-1};
Az.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var A=anQ(this);A>0&&C7w(A);A=KUp(this);A>0&&SV1(A);cXp(this)}};
var cXp=function(A){var H=KUp(A);if(H>0){var k=anQ(A);k<0&&(k=0);A.intervalId=_.IE.addJob(function(){var d=anQ(A);d>0&&C7w(d);d=KUp(A);d>0&&SV1(d);cXp(A)},3,(H-k)*6E4);
A.currentPartitionIndex+=1}else A.currentPartitionIndex=-1};var p9J=function(A){rY.call(this,A,132);this.isDocument=A===document.documentElement};
_.I(p9J,rY);p9J.prototype.calculateScrollDelta=function(A,H,k){var d=0;A<H?d=A<H-100?-48:-8:A>H+k&&(d=A>H+k+100?48:8);return d};
p9J.prototype.JSC$11715_onMouseMove=function(A){this.isDocument||(A.clientX=A.event_.pageX,A.clientY=A.event_.pageY);rY.prototype.JSC$11715_onMouseMove.call(this,A)};_.Qjj=function(A,H){var k=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14874_dragListGroup=null;this.onDraggerCreated=function(d){var W=d.JSC$11711_dragger;W.scrollTarget_=k.scrollElement;d=d.draggerEl;W&&d.menuOpened&&W.setEnabled(!1)};
this.onDragStart=function(d){var W=d.draggerEl;d=d.currDragItem;var z=Object.assign({},d==null?void 0:d.data);z.trackingParams=void 0;W.data=z;W.style.position="absolute";W.style.width=(d==null?void 0:d.clientWidth)+"px";W.style.zIndex="2030";W.onDrag&&W.onDrag();d=_.TE(W);(z=d.querySelector("ytd-app"))?_.Va(z).appendChild(W):d.body.appendChild(W);k.dragScrollSupport=new p9J(k.scrollElement);k.dragScrollSupport.horizontalScrolling_=!1;W=k.dragScrollSupport;W.constrainScroll_=!!W.margin_&&!1};
this.onDrop=function(d){k.handleDrop(d);k.dragScrollSupport&&(_.CC(k.dragScrollSupport),k.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(k.JSC$14874_dragListGroup){var d=k.JSC$14874_dragListGroup;BHA(d,d.currDragItem_)}};
this.handleDrop=H};
_.Hx=function(A){A.JSC$14874_dragListGroup&&(_.xz(A.JSC$14874_dragListGroup,Hjk,A.onDragStart),_.xz(A.JSC$14874_dragListGroup,W01,A.onDragStart),A.JSC$14874_dragListGroup.dispose(),A.JSC$14874_dragListGroup=null);A.dragScrollSupport&&(_.CC(A.dragScrollSupport),A.dragScrollSupport=null);A.scrollElement.removeEventListener("scroll",A.onReorderableScroll)};
_.VRi=function(A,H,k,d){d=d===void 0?"":d;_.Hx(A);k&&(A.scrollElement=k);A.JSC$14874_dragListGroup=new hg;A.JSC$14874_dragListGroup.hysteresisDistance_=2;qt0(A.JSC$14874_dragListGroup,H);A.JSC$14874_dragListGroup.draggerElClasses_=Rb("dragging").split(" ");d&&r8N(A.JSC$14874_dragListGroup,function(W){var z=W||document,u=null;z.getElementsByClassName?u=z.getElementsByClassName(d)[0]:u=KAQ("*",d,W);return u||W});
_.Y3(A.JSC$14874_dragListGroup,$tw,A.onDraggerCreated);_.Y3(A.JSC$14874_dragListGroup,Hjk,A.onDragStart);_.Y3(A.JSC$14874_dragListGroup,W01,A.onDrop);A.JSC$14874_dragListGroup.init();A.scrollElement.addEventListener("scroll",A.onReorderableScroll,{passive:!0})};
_.nP.Object.defineProperties(_.Qjj.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var EaN=function(){this.skipNextNavigation=!1},UbG=function(A,H,k){if(!H)return!1;
if(A.skipNextNavigation)return A.skipNextNavigation=!1;if(_.L(k,_.KT))return!1;var d,W,z;if((d=_.L(k,_.fm))==null?0:(W=d.browseEndpointContextSupportedConfigs)==null?0:(z=W.browseEndpointContextMainConfig)==null?0:z.skipConfirmation)return!1;var u;return((u=_.L(H.commandMetadata,_.wn))==null?void 0:u.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
EaN.prototype.showConfirmationDialog=function(A,H){this.navigateParams=H;this.customConfirmationCommand?_.wj().resolve(_.J7).resolveCommand(this.customConfirmationCommand):(H={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Yu(_.$r("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Yu(_.$r("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Yu(_.$r("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Yu(_.$r("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.a3.getInstance().triggerAction("yt-open-popup-action",H,A))};
EaN.prototype.cancelPendingNavigation=function(){var A;((A=this.navigateParams)==null?void 0:A.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var lnN=function(){},NZk=function(A,H,k,d,W,z,u){k=k===void 0?{}:k;
u=u===void 0?{}:u;var B=_.wj().resolve(_.eK),h,O=(h=_.L(H,_.KT))==null?void 0:h.url;return O?GvN(B,O,k,window.location.href,function(T,m){tR0(A,T,m,!1,!0,k,z,d)},function(){return!1}):jK(B,H,k,window.location.href,oc(H),function(T,m){tR0(A,T,m,!1,!0,k,z,d)},W,u)},tR0=function(A,H,k,d,W,z,u,B){if(!A.JSC$14889_chunkHandler)if(k.page==="learning_journey_watch"&&_.b("web_enable_canvas_on_learning_journey")){var h=!_.L(B,_.fm);
W=W||d;if(h)if(W){if(_.b("kevlar_continue_playback_without_player_response")){var O;var T=(O=_.L(B,_.Yr))==null?void 0:O.videoId}d={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:d,previousVideoId:T},tempData:z}}else d={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else d={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};A.JSC$14889_chunkHandler=new DA1(_.Kj,d,u,h,W)}else if(k.page==="watch"||k.page==="learning_journey_watch")if(W||d){if(_.b("kevlar_continue_playback_without_player_response")){var m;
h=(m=_.L(B,_.Yr))==null?void 0:m.videoId}A.JSC$14889_chunkHandler=new KoA(_.Kj,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:d,previousVideoId:h},tempData:z},u)}else A.JSC$14889_chunkHandler=new FoJ(_.Kj);else k.page==="shorts"&&W&&!d?A.JSC$14889_chunkHandler=new CMJ(_.Kj,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:z},u):A.JSC$14889_chunkHandler=new X6w(u);A.JSC$14889_chunkHandler.processChunk({endpoint:H,data:k});return A.JSC$14889_chunkHandler.bB.promise},
MRN=function(A,H,k,d,W){(k=_.frp(k))&&tR0(A,H,k,!1,!0,d,void 0,W)};_.nai=new _.SE("NAVIGATION_SERVICE_TOKEN");var Ztj=function(){this.pendingNavigationPromise=null};
_.q=Ztj.prototype;_.q.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.q.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.q.addEventListener=function(){throw Error("zh");};
_.q.dispatchEvent=function(){throw Error("zh");};
_.q.removeEventListener=function(){throw Error("zh");};var fni=new _.SE("APP_ROOT");var ciN=null;var w9i=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],sc=function(){_.Is.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];oaN(this)};
_.I(sc,_.Is);sc.prototype.verifyUser=function(){var A=oaN(this),H=A.logout;if(!A.sessionChange)return!0;this.dispatchEvent("ytsessionchange");H&&this.dispatchEvent("ytuserinvalid");return!1};
var oaN=function(A){var H=w9i.map(function(W){var z;return(z=_.x6.get(W))!=null?z:""}),k=H.some(function(W,z){return A.sessionCookies&&A.sessionCookies[z]!==""&&W===""}),d=H.some(function(W,z){return A.sessionCookies&&A.sessionCookies[z]!==W});
A.sessionCookies=H;return{logout:k,sessionChange:d}};
sc.prototype.clearTimeout=function(){this.scheduledJobId&&(_.IE.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var lCN=new _.SE("POSTMESSAGE_TUNNEL_TOKEN");var VkC=["/parent_tools","/file_download","/artist_roster"],Mkm=[Je1,gdN,bYw,vd0,L_Q,mxi,yek,ja1];var k0=new _.SE("NAVIGATION_CONFIRMATION_SERVICE");var $bj="/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/ /recap /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),ARw=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],dq=function(A,H){this.pendingNavigationPromise=null;this.JSC$14912_clientRoot=A;this.historyManager=H;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 lnN;this.debugString=A.is;A={"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};_.cq(_.a3.getInstance(),A,this.JSC$14912_clientRoot)},W4A,zuJ,qTG,rRk,ddG;
_.I(dq,Ztj);dq.prototype.reload=function(){_.J1(window.location.href)};
var $AN=function(A){A.currentEndpoint&&_.L(A.currentEndpoint,_.A1)?A.reload():A.currentEndpoint&&A.navigate(A.currentEndpoint,!0,void 0,{disableCache:!0})};
dq.prototype.navigate=function(A,H,k,d,W,z,u,B){H=H===void 0?!1:H;k=k===void 0?{}:k;d=d===void 0?{}:d;var h=_.wj().resolve(k0),O;if(!u&&UbG(h,(O=this.currentEndpoint)!=null?O:void 0,A))return h.showConfirmationDialog(this.JSC$14912_clientRoot.parentElement,{endpoint:A,reload:H,params:k,tempData:d,requestType:W,createScreenConfig:z}),!1;var T=_.Yf();_.Pi(T,"eocs")||T.parkOrScheduleJob(function(){T.processSignal("eocs")},10,"eor");
pam();u=oc(A);h=d.autonav==="1";O=_.hx();sc.instance||(sc.instance=new sc);var m=sc.instance.verifyUser(),J;if(_.b("enable_dark_theme_only_on_shorts")){var g=document.documentElement.hasAttribute("dark"),v=_.bw(!0)==="USER_INTERFACE_THEME_DARK";if(u==="shorts"){if(!g)if(_.b("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var y;_.J1((y=_.L(A==null?void 0:A.commandMetadata,_.wn))==null?void 0:y.url,void 0,void 0,window.top)}}else{var X;_.J1(_.nZ((X=_.L(A==
null?void 0:A.commandMetadata,_.wn))==null?void 0:X.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.b("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!g){var D;_.J1(_.nZ((D=_.L(A==null?void 0:A.commandMetadata,_.wn))==null?void 0:D.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(v!==g){var K;_.J1(_.nZ((K=_.L(A==null?void 0:A.commandMetadata,_.wn))==null?void 0:K.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(u==="watch"){if(HcN(_.wj().resolve(_.L6),
A)&&(m||_.b("fix_miniplayer_navigation_killswitch")))return!1;_.b("block_all_player_prefetch_requests")||(J=w6N(_.VG(_.Z4),A,h))}else{var N,U=(N=_.L(this.currentEndpoint,_.Yr))==null?void 0:N.videoId;U&&_.ed.getInstance().then(function(Cl){Cl&&Cl.set("yt-miniplayer-shown-video-id",U)})}J&&(k.frags=J.missingFragments_.join(","));
y=null;var p;X=(p=_.L(A==null?void 0:A.commandMetadata,_.wn))==null?void 0:p.ignoreNavigation;if(!X)if(_.b("kevlar_command_url")){var M;y=(M=_.L(A==null?void 0:A.commandMetadata,_.wn))==null?void 0:M.url}else y=_.XGN(A,k);if(y&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&y==this.lastNavigationUrl)return _.xB({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.$q(gn(),"CANCELLED")}y&&(this.lastNavigationUrl=y);Mom();_.cI("IS_HOMEPAGE_COLD",
!1);_.cI("IS_RESULTS_PAGE_COLD",!1);_.cI("IS_WATCH_PAGE_COLD",!1);A.loggingUrls&&A.loggingUrls.forEach(function(Cl){Cl.baseUrl&&_.cL(Cl.baseUrl)});
_.war(A,z?z.layer:0)&&_.b("kevlar_flush_logs_on_away_navigation")&&_.jM();if(n4l(A))return!1;XgA(u,W);if(!y)return X||_.Pq(new _.Ti("Can't construct url for endpoint",A)),_.$q(gn(),"FAILURE"),!1;_.QQA();p=A&&_.L(A,_.fm)&&_.L(A,_.fm).browseId.startsWith("UC");k=(M=_.b("enable_dark_theme_only_on_shorts")&&u==="shorts"?!1:_.LF()&&document.documentElement.hasAttribute("dark")!==_.g4())?{themeRefresh:1}:{};M&&!_.hn()&&_.bw()==="USER_INTERFACE_THEME_DARK"&&(k.theme="dark");p=M||szG(y)&&!p&&!_.b("kevlar_disable_url_allowlist");
m||(p=!0);if(p||_.pZ("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var Z;var WV=(Z=window.top)==null?void 0:Z.location.href}catch(Cl){var hA;WV=(hA=Cl)==null?void 0:hA.message}_.Pq(new _.Ti("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:WV}))}A=_.b("kevlar_redirect_on_window_killswitch")?window.top:window;mH(y);_.J1(_.nZ(y,k),void 0,void 0,A);_.$q(gn(),"ABORTED");return!1}_.b("kevlar_early_popup_close")&&_.Ud(this.JSC$14912_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14889_chunkHandler=void 0;var qv;WV=oc((qv=this.currentEndpoint)!=null?qv:void 0);(qv=u==="shorts"&&WV==="shorts")||_.wi8();_.ED(QYm)("nr",void 0);h&&_.xB({webInfo:{navigationReason:"an"}});A.clickTrackingParams&&(d.itct=A.clickTrackingParams,d.csn=O);EFf(d);d.endpoint=JSON.stringify(A);_.b("enable_unknown_lact_fix_on_html5")&&(_.wj().resolve(_.A8),d.lact=_.Z$());_.iK.isEmpty(d)||_.DZ(y,d);!_.b("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(z=Object.assign({},{layer:0},z,{parentLayer:3}));this.pendingNavigationPromise=z=NZk(this.pageFetcher,A,d,this.currentEndpoint,this.JSC$14912_isNetworkPromiseStale.bind(this),z,B);z=z.then(this.handleNavigateSuccess.bind(this,z,A,J,d),this.handleNavigateFail.bind(this,z,A));_.Hi().navigationFinishPromise=z;H={endpoint:A,pageType:u,url:Et(y),reload:!!H,noProgressBar:qv};W&&(H.type=W);var eN;W=_.Zu((eN=this.currentEndpoint)!=null?eN:null);eN=_.Zu(A!=null?A:null);this.fireEvent("yt-navigate-start",
H);var mr;(mr=_.wj().resolve(_.fZ(_.nai)))==null||mr.publish("navigation-start",{sourcePageSubtype:W,destinationPageSubtype:eN});J&&MRN(this.pageFetcher,A,J,d,this.currentEndpoint);return!0};
dq.prototype.JSC$14912_isNetworkPromiseStale=function(A){return A!=this.pendingNavigationPromise};
var k3w=function(A,H,k,d,W){var z=oc(H);H={endpoint:H,pageType:z};W&&(H.errorMessage=W);_.Pq(k);H.navigationDoneMs=_.OH("nd");H.navigationErrorReason=d;A.fireEvent("yt-navigate-error",H)};
dq.prototype.handleNavigateFail=function(A,H,k){var d=void 0;k instanceof _.jY&&(d=k,GVv(k));if(this.JSC$14912_isNetworkPromiseStale(A))return _.qt(d);_.$q(gn(),"FAILURE");k3w(this,H,k,"101");return _.qt(k)};
dq.prototype.handleNavigateSuccess=function(A,H,k,d,W){if(this.JSC$14912_isNetworkPromiseStale(A))return _.MT();this.pendingNavigationPromise=null;if(!W)return H=new _.Ti("Missing data in response for navigation endpoint",H),_.qt(H);if(W.reload)return window.location.reload(!0),_.MT();k&&(A={},_.iK.extend(A,_.frp(k),W),W=A);var z,u;k=(z=W)==null?void 0:(u=z.timing)==null?void 0:u.responseStart;k!=null&&_.OH("srt",k);_.OH("pdc");var B,h;z=(B=W)==null?void 0:(h=B.timing)==null?void 0:h.info;z!=null&&
(B=_.ED(_.UEC)(z),_.xB(B));_.$q(gn(),"SUCCESS");ddG(this,H,W,1,d);return _.MT()};
var szG=function(A){var H=A;_.b("kevlar_no_redirect_to_classic_2_ks")||(H=(new _.PB(A)).getPath());if(H==="/"||H==="/red")return!1;var k=!0;$bj.forEach(function(d){A.indexOf(d)===0&&(k=!1)});
ARw.forEach(function(d){var W=d.url;_.b(d.expFlag)&&A.indexOf(W)===0&&(k=!1)});
return k};
dq.prototype.publishPageData=function(A){this.fireEvent("yt-page-data-fetched",{pageData:A})};
W4A=function(A,H,k,d,W,z){var u=null;H.page!=="watch"&&H.page!=="learning_journey_watch"||d?H.filler||_.Ud(A.JSC$14912_clientRoot,"yt-stop-old-player",[H]):u=tR0(A.pageFetcher,W,H,k,!1,z,void 0,A.currentEndpoint);if(u)return u.then(A.publishPageData.bind(A,H));A.publishPageData(H);return _.MT()};
zuJ=function(A,H,k){var d=null;if(!k)return d=new _.Ti("Empty data",A.debugString,H);var W=k.response;if(!W)return d;var z={endpointType:oc(H)||"unknown"};W.responseContext?(W=W.responseContext.errors)&&(d=new _.Ti("Errors in response context",A.debugString,H,W,z)):d=W.error||W.errorMetadata?new _.Ti("Errors in response",A.debugString,H,W.error,W.errorMetadata,z):new _.Ti("responseContext missing",A.debugString,H,Object.keys(W).sort().join(","),z);var u,B,h,O;if(A=k==null?void 0:(u=k.response)==null?
void 0:(B=u.responseContext)==null?void 0:(h=B.webResponseContextExtensionData)==null?void 0:(O=h.webResponseContextDebugData)==null?void 0:O.debugErrorMessages)for(u=0;u<A.length;u++);return d};
qTG=function(A){var H,k,d,W;return A==null?void 0:(H=A.response)==null?void 0:(k=H.responseContext)==null?void 0:(d=k.errors)==null?void 0:(W=d.error)==null?void 0:W["0"]};
rRk=function(A,H){var k;if(k=H.url&&!H.url.startsWith("/clip"))k=H.url,k=!_.b("webfe_parse_debug_param_in_resolveurl_service")&&A.searchDebugUrlMatcher.test(k)||VcQ(k)?!0:!1;if(k)VcQ(H.url)&&_.MP(window.location.href).themeRefresh?(H=_.sI(H.url,"themeRefresh"),_.o6(A.historyManager,H)):H.url&&!S_V(H.url)&&_.o6(A.historyManager,H.url);else if(H.endpoint){var d,W,z;(k=(d=H.endpoint)==null?void 0:(W=d.commandMetadata)==null?void 0:(z=W.webCommandMetadata)==null?void 0:z.url)&&!S_V(k)&&_.o6(A.historyManager,
k);k&&H.url&&k!=H.url&&!H.url.match("playnext=1")&&new _.Ti("Response url mismatch in response data",A.debugString,k,H.url)}};
_.ulp=function(A,H,k,d,W,z,u,B){z=z===void 0?!1:z;var h=_.wj().resolve(k0),O;if(!B&&UbG(h,(O=A.currentEndpoint)!=null?O:void 0,H))return h.showConfirmationDialog(A.JSC$14912_clientRoot.parentElement,{endpoint:H,data:k,navigationType:d,tempData:W,isMiniplayer:z,isForwardHistoryNavigation:u==null?void 0:u.forward}),_.MT();A.pageFetcher.JSC$14889_chunkHandler=void 0;return ddG(A,H,k,d,W,z)};
ddG=function(A,H,k,d,W,z){z=z===void 0?!1:z;A.isMiniplayerExpansion=z;var u=d===2;A.currentEndpoint=H;A.numNavigations++;A.numNavigations&&(GTr.navigationCount=A.numNavigations);_.cI("NUM_NAV",A.numNavigations);var B=zuJ(A,H,k);if(B)return k3w(A,H,B,"102",qTG(k)),_.qt(B);var h,O,T,m;B=k.rootVe||(k==null?void 0:(h=k.response)==null?void 0:(O=h.responseContext)==null?void 0:(T=O.webResponseContextExtensionData)==null?void 0:(m=T.ytConfigData)==null?void 0:m.rootVisualElementType);!u&&k&&rRk(A,k);var J,
g;h=k==null?void 0:(J=k.response)==null?void 0:(g=J.responseContext)==null?void 0:g.maxAgeSeconds;if(!u&&!isNaN(h)){var v;_.b("kevlar_use_response_ttl_to_invalidate_cache")?v=(0,_.w2)()+1E3*h:_.b("kevlar_always_invalidate_cache")&&(v=0);isNaN(v)||(k.expirationTime=v)}_.VG(_.Z4).prefetchCache_.clear();u||k.page!=="watch"||d!==1?d=W4A(A,k,u,!!z,H,W):(A.publishPageData(k),d=_.MT());W=d.then(function(){var y=oc(H);y={endpoint:H,pageType:y,fromHistory:u,response:k};y.navigationDoneMs=_.OH("nd");A.fireEvent("yt-navigate-finish",
y);var X;(X=_.wj().resolve(_.fZ(_.nai)))==null||X.publish("navigation-end")});
k.csn&&B&&k.clientSideGrafts&&d.then(A.attachClientSideGrafts.bind(A,k,_.ii()));return W};
_.q=dq.prototype;_.q.attachClientSideGrafts=function(A,H){A.clientSideGrafts&&H&&A.clientSideGrafts.forEach(function(k){if(H&&k){var d=_.db(k);_.b("combine_ve_grafts")?_.A7().graftServerVe(k,H):_.v0(A.csn,H,d)}})};
_.q.handleSignalActionHistoryBack=function(){window.history.back()};
_.q.handleSignalActionCloseWindow=function(){window.close()};
_.q.handleSignalActionReloadPage=function(){this.reload()};
_.q.handleSignalActionSoftReloadPage=function(){$AN(this)};
_.q.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.q.fireEvent=function(A,H){A=new CustomEvent(A,{bubbles:!0,cancelable:!1,composed:!0,detail:H});this.dispatchEvent(A)};
_.q.addEventListener=function(A,H){this.JSC$14912_clientRoot.addEventListener(A,H)};
_.q.dispatchEvent=function(A){return this.JSC$14912_clientRoot.dispatchEvent(A)};
_.q.removeEventListener=function(A,H){this.JSC$14912_clientRoot.removeEventListener(A,H)};
dq[ox]=[fni,_.$L];var BPG;var euZ=function(){return _.a.apply(this,arguments)||this};
_.I(euZ,_.a);_.nP.Object.defineProperties(euZ,{template:{configurable:!0,enumerable:!0,get:function(){if(BPG===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);BPG=A}A=BPG;return A}}});
_.E([_.P(eNN.YtPlayerBehavior),_.l("design:type",Object)],euZ.prototype,"ytPlayerBehavior",void 0);_.E([_.O6({is:"ytd-player"})],euZ);var xdA;var icw;var huw;var Wx=function(){var A=_.a.apply(this,arguments)||this;A.forceModernIconButton=!1;A.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return A};
_.I(Wx,_.a);Wx.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]]"}}}}}};
Wx.prototype.handleAccountLinkingStateChangedCommand=function(A){if(A=_.L(A,aDA)){var H,k=(H=this.data)==null?void 0:H.providerKey;H=A.providerKey;k&&H&&k.id===H.id&&k.subject===H.subject&&(A=A.linked,A!==void 0&&(this.set("data.linked",A),this.notifyPath("data.linked"),_.b("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(A)))}};
Wx.prototype.setPlayerAccountLinkState=function(A){var H=new $li;Ayj(H,wYj(new f2i,A));var k=_.Kj();k&&k.getPlayerPromise().then(function(d){d.setAccountLinkState(_.ob(H.JSC$12640_serializeBinary(),4));d.updateAccountLinkingConfig(A)})};
Wx.prototype.handleShowAccountLinkDialog=function(){var A=this.get("button.buttonRenderer.command");A&&_.ZZ([A],this.hostElement)};
_.nP.Object.defineProperties(Wx.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}}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.E([_.P([_.nM.YtActionHandlerBehavior]),_.l("design:type",Object)],Wx.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Wx.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Wx.prototype,"overrides",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Wx.prototype,"forceModernIconButton",void 0);_.E([_.C({value:"bottom"}),_.l("design:type",String)],Wx.prototype,"buttonTooltipPosition",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Wx.prototype,"forceIconButton",void 0);_.E([_.C(),_.l("design:type",Boolean)],Wx.prototype,"disableTextTransform",void 0);
_.E([_.G("data","data.linked","data.isWarning"),_.l("design:type",Object),_.l("design:paramtypes",[])],Wx.prototype,"button",null);_.E([_.O6({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Wx);
_.Q(Wx,"ytd-account-link-button-renderer",function(){if(huw!==void 0)return huw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return huw=A},{mode:1});var Oc0;var RuN=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],zX=function(){return _.a.apply(this,arguments)||this};
_.I(zX,_.a);zX.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
zX.prototype.updateButtonActiveState=function(){var A=this,H=!!RuN.find(function(k){return A.currentState===k});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.b("enable_web_delhi_icons")&&(H=!1);this.button&&(this.button.isPressed=H)};
_.nP.Object.defineProperties(zX.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.playlistLoopStateEntity)==null?void 0:A.state)||((H=this.data)==null?void 0:H.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var A=void 0,H;if(this.currentState&&((H=this.data)==null?0:H.states)){H=_.r(this.data.states);for(var k=H.next();!k.done;k=H.next()){k=_.L(k.value,_.$2k);var d=void 0;if(((d=k)==null?void 0:d.state)===this.currentState){A=k;break}}}return A}}});
zX.prototype.updateButtonActiveState=zX.prototype.updateButtonActiveState;_.E([_.P(_.TG),_.l("design:type",Object)],zX.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.z2.playlistLoopStateEntitySelector}),_.l("design:type",Object)],zX.prototype,"playlistLoopStateEntity",void 0);_.E([_.C(),_.l("design:type",Object)],zX.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],zX.prototype,"forceIconOnly",void 0);_.E([_.ol("ytd-button-renderer"),_.l("design:type",_.cf)],zX.prototype,"button",void 0);
_.E([_.G("data","playlistLoopStateEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],zX.prototype,"currentState",null);_.E([_.fF("currentButtonStateRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zX.prototype,"updateButtonActiveState",null);_.E([_.G("currentState"),_.l("design:type",Object),_.l("design:paramtypes",[])],zX.prototype,"currentButtonStateRenderer",null);
_.E([_.O6({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],zX);
_.Q(zX,"ytd-playlist-loop-button-renderer",function(){if(Oc0!==void 0)return Oc0;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Oc0=A},
{mode:1});var TPA;var mdw=_.$r("DOWNLOAD",{},"Download"),JR1=_.$r("DOWNLOADING",{},"Downloading"),gSw=_.$r("DOWNLOADED",{},"Downloaded"),bcG=_.$r("RETRY",{},"Retry"),q6=function(){var A=_.a.apply(this,arguments)||this;A.forceIconButton=!1;A.forceIconOnly=!1;A.overrides=!1;A.buttonTooltipPosition=!1;A.styleActionButton=!1;A.disableTextTransform=!1;A.downloadProgress=0;A.isDownloadComplete=!1;A.isHidden=!0;A.transferState="TRANSFER_STATE_UNKNOWN";A.isVideoDeletedByUser=!1;A.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return A};
_.I(q6,_.a);_.q=q6.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.dataChanged=function(){var A;(A=this.data)!=null&&A.text||(A=_.TK(_.F3().getState(),this.videoId),this.updateButtonState(A))};
_.q.computeVideoId=function(A){return A};
_.q.computePlayerStateEntityKey=function(A){return A};
_.q.showHideButton=function(){this.updateButtonVisibility()};
_.q.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var A;((A=this.playerStateEntity)==null?void 0:A.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};
_.q.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.q.updateButtonState=function(A){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==JR1||!_.sA(A))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(A){case "TRANSFER_STATE_UNKNOWN":A=mdw;var H="OFFLINE_DOWNLOAD";var k="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":A=bcG;H="OFFLINE_DOWNLOAD";k="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":A=gSw;H="OFFLINE_PIN";k="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":A=
JR1;H="OFFLINE_DOWNLOADING_ZERO";k="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":A=bcG;H="OFFLINE_DOWNLOAD";k="ACTION_RETRY";break;default:A=mdw,H="OFFLINE_DOWNLOAD",k="ACTION_ADD"}this.isVideoDeletedByUser&&(A=mdw,H="OFFLINE_DOWNLOAD",k="ACTION_ADD");var d=Object.assign({},this.data);d.text=_.Yu(A);d.tooltip=A;d.icon={iconType:H};d.size="SIZE_DEFAULT";d.style="STYLE_DEFAULT";_.L(d.command,_.fj)&&(_.L(d.command,_.fj).action=k);this.set("data",d)}};
_.q.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var A="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?A="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?A="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?A="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?A="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?A="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(A="OFFLINE_PIN",this.isDownloadComplete=!0);var H;A!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.text=_.Yu(JR1),H.tooltip=JR1,H.icon={iconType:A},_.L(H.command,_.fj)&&(_.L(H.command,_.fj).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
q6.prototype.updateProgress=q6.prototype.updateProgress;q6.prototype.onTransferStateChanged=q6.prototype.onTransferStateChanged;q6.prototype.showHideButton=q6.prototype.showHideButton;q6.prototype.dataChanged=q6.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],q6.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],q6.prototype,"forceIconButton",void 0);
_.E([_.C(),_.l("design:type",Object)],q6.prototype,"forceIconOnly",void 0);_.E([_.C(),_.l("design:type",Object)],q6.prototype,"overrides",void 0);_.E([_.C(),_.l("design:type",Object)],q6.prototype,"buttonTooltipPosition",void 0);_.E([_.C(),_.l("design:type",Object)],q6.prototype,"styleActionButton",void 0);_.E([_.C(),_.l("design:type",Object)],q6.prototype,"disableTextTransform",void 0);
_.E([_.C({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.l("design:type",String)],q6.prototype,"videoId",void 0);_.E([_.C({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.l("design:type",String)],q6.prototype,"playerStateEntityKey",void 0);_.E([_.C(),_.l("design:type",Object)],q6.prototype,"data",void 0);_.E([_.C({selector:Jr,selectorArgs:["videoId"]}),_.l("design:type",Object)],q6.prototype,"downloadProgress",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],q6.prototype,"isDownloadComplete",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],q6.prototype,"isHidden",void 0);_.E([_.C({selector:_.TK,selectorArgs:["videoId"]}),_.l("design:type",String)],q6.prototype,"transferState",void 0);_.E([_.C({selector:_.nLA,selectorArgs:["videoId"]}),_.l("design:type",Object)],q6.prototype,"isVideoDeletedByUser",void 0);
_.E([_.C({selector:ELX,selectorArgs:["videoId"]}),_.l("design:type",Object)],q6.prototype,"offlineabilityState",void 0);_.E([_.C({selector:_.UR,selectorArgs:["playerStateEntityKey"]}),_.l("design:type",Object)],q6.prototype,"playerStateEntity",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],q6.prototype,"showTooltips",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],q6.prototype,"sendCommandWhenDisabled",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],q6.prototype,"disabled",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q6.prototype,"dataChanged",null);_.E([_.s6("offlineabilityState","playerStateEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q6.prototype,"showHideButton",null);
_.E([_.s6("transferState","isVideoDeletedByUser"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q6.prototype,"onTransferStateChanged",null);_.E([_.s6("downloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q6.prototype,"updateProgress",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],q6);
_.Q(q6,"ytd-download-button-renderer",function(){if(TPA!==void 0)return TPA;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return TPA=A},{mode:2});var L4j;var vSN,yR1=function(){if(vSN!==void 0)return vSN;var A=document.createElement("template");_.Y(A,'\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 vSN=A};var jzj=_.b("web_button_rework")&&_.Q$("BUTTON_REWORK")||_.b("web_button_rework_with_live"),Io0=_.H5("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,rq=function(){var A=_.a.apply(this,arguments)||this;A.isPressed=!1;A.forceIconButton=!1;A.forceIconOnly=!1;A.forceModernIconButton=!1;A.alignByText=!1;A.isShorts=!1;A.animatedText=!1;A.shouldAnimate=!1;A.JSC$14950_browserSupportsAnimation=_.b("web_supports_animations_api");A.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};A.onTap=function(){var H;if((H=A.data)==null||!H.defaultNavigationEndpoint){var k;H=!((k=A.data)==null?0:k.isToggled);var d;if((d=A.data)==null||!d.preventAutoToggle){A.shouldAnimate=!1;A.disableTextUpdateJobId&&_.IE.cancelJob(A.disableTextUpdateJobId);A.disableTextUpdateJobId=_.IE.addLowPriorityJob(function(){A.disableTextUpdateJobId=void 0},Io0);
var W;A.set("data.isToggled",!((W=A.data)==null?0:W.isToggled));k=A.getInnertubeIcon();d={toggled:H,actions:{}};k&&(d.actions[k.toLowerCase()]=H);_.Ed(A.hostElement,"yt-toggle-button",d)}}};
return A};
_.I(rq,_.a);_.q=rq.prototype;_.q.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.IE.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.toggle=function(A){var H;this.set("data.isToggled",A!==void 0?A:!((H=this.data)==null?0:H.isToggled))};
_.q.handleUpdateToggleButtonStateCommand=function(A){if(this.data){A=_.L(A,lwj);var H,k,d,W=(H=this.data)==null?void 0:(k=H.toggleButtonSupportedData)==null?void 0:(d=k.toggleButtonIdData)==null?void 0:d.id;W&&A&&W===(A==null?void 0:A.buttonId)&&this.set("data.isToggled",A.toggled)}};
_.q.handleUpdateToggleButtonTextAction=function(A){if(this.data){A=_.L(A,irA);var H,k,d,W=(H=this.data)==null?void 0:(k=H.toggleButtonSupportedData)==null?void 0:(d=k.toggleButtonIdData)==null?void 0:d.id;W&&A&&W===(A==null?void 0:A.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=A.defaultNumericalValue,this.set("data.defaultText",A.defaultText),this.set("data.toggledText",A.toggledText),this.shouldAnimate=!1)}};
_.q.getInnertubeIcon=function(){var A=this.data;if(A){var H,k,d=((H=A.defaultIcon)==null?0:H.iconType)?(k=A.defaultIcon)==null?void 0:k.iconType:null,W,z;H=((W=A.toggledIcon)==null?0:W.iconType)?(z=A.toggledIcon)==null?void 0:z.iconType:d;return A.isToggled?H:d}};
_.q.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.nP.Object.defineProperties(rq.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A={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$14950_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var H=A.renderer;var k=A.element;var d=A.toggled;var W=A.onTapCallback;var z=A.commandClientArgs;var u=A.overrides;var B=A.forceIcon;var h=A.forceModernIconButton;var O=A.forceDisabled;var T=A.useAnimatedText;var m=A.animatedTextProps;A=AXI(H,d);B=!H.defaultIcon||!B&&H.defaultText?H.defaultIcon?"leading":void 0:h?"icon-only":"icon-only-40";B==="icon-only-40"&&(A.type="text");var J;h=Object;var g=h.assign,v;a:switch((v=
H.style)==null?void 0:v.styleType){case "STYLE_COMPACT_GRAY":v={size:"S"};break a;default:v={size:"M"}}var y=!!d;var X=(X=d&&H.toggledText||H.defaultText)?_.B8(X):void 0;T?(T=_.PK(d&&H.toggledText||H.defaultText))&&m&&!isNaN(Number(m.numberValue))?(m.numberText=T,d&&(m.numberValue+=1),T=m):T=void 0:T=void 0;var D,K,N,U;var p=(m=((K=d?H.toggledAccessibilityData||((p=H.toggledText)==null?void 0:p.accessibility):H.accessibilityData||((D=H.defaultText)==null?void 0:D.accessibility))==null?void 0:(N=K.accessibilityData)==
null?void 0:N.label)||((U=H.accessibility)==null?void 0:U.label))?m:_.PK(d&&H.toggledText||H.defaultText);O=O===void 0?H.isDisabled:O;k=$jV(H,d,W,k,z);d=o4r(H,d);d!=null&&d.length?(d=_.Ry({innertubeCommand:sub(d),forceNewState:!0}),d=TA(d)?d:void 0):d=void 0;H=g.call(h,{},A,v,{iconPosition:B},u,{focused:!1,toggled:y,toggleable:!0,formattedButtonText:X,animatedTextProps:T,accessibilityLabel:p,disabled:O,onTap:k,aTagConfig:d},exI((J=H.colorData)==null?void 0:J.basicColorPaletteData));H.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(H.type="filled");return H}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var A=this.getInnertubeIcon();if(A)return _.N0(A)}}});
rq.prototype.resetAnimation=rq.prototype.resetAnimation;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],rq.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],rq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rq.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],rq.prototype,"isPressed",void 0);_.E([_.C(),_.l("design:type",Object)],rq.prototype,"forceIconButton",void 0);_.E([_.C(),_.l("design:type",Object)],rq.prototype,"forceIconOnly",void 0);_.E([_.C(),_.l("design:type",Object)],rq.prototype,"forceModernIconButton",void 0);_.E([_.C(),_.l("design:type",Object)],rq.prototype,"alignByText",void 0);_.E([_.C(),_.l("design:type",Object)],rq.prototype,"overrides",void 0);
_.E([_.C(),_.l("design:type",Boolean)],rq.prototype,"disabled",void 0);_.E([_.C(),_.l("design:type",Object)],rq.prototype,"isShorts",void 0);_.E([_.C(),_.l("design:type",Object)],rq.prototype,"buttonTooltipPosition",void 0);_.E([_.C(),_.l("design:type",Object)],rq.prototype,"animatedText",void 0);_.E([_.C(),_.l("design:type",String)],rq.prototype,"textNumberValue",void 0);_.E([_.C({computed:"computeTooltip(data, data.isToggled)"}),_.l("design:type",Object)],rq.prototype,"tooltip",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rq.prototype,"resetAnimation",null);_.E([_.G("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.l("design:type",Object),_.l("design:paramtypes",[])],rq.prototype,"computedButtonShape",null);_.E([_.G("data.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],rq.prototype,"computedIcon",null);
_.E([_.O6({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],rq);jzj&&_.Q(rq,"ytd-toggle-button-renderer",yR1,{mode:2});var YTA=_.c(function(A){function H(O){var T;return _.e(function(m){if(m.nextAddress==1)return(T=!sjr(O,B())||!B().enabled)?m.jumpTo(2):m.yield(qVV(),3);m.nextAddress!=2&&(T=m.yieldResult);if(T)return m.return();k();setTimeout(function(){u(!1)},1500);
_.EN(m)})}
function k(){setTimeout(function(){u(!0);var O;(O=d.lottieEl)==null||O.goToAndPlay(0)},150)}
var d=_.nj(),W=_.r(_.RV(!1,void 0,"UfUosc")),z=W.next().value,u=W.next().value,B=_.DS(A.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.CZ(function(){var O,T;((O=A.settings)==null?void 0:(T=O.call(A))==null?void 0:T.uniqueId)==="this is not intended behavior"&&_.Pq(new _.Ti("Smartimation Settings is undefined"))});
_.CA(function(){B().experimentEnabled&&(B().enabled?k_A(H):(u(!1),dbr(H)),_.aV(function(){dbr(H)}))},"IHhVmc");
_.CA(function(){B().timings.join("");B().experimentEnabled&&(WUV(B()),_.aV(function(){zNf(B())}))},"fsfhOe");
var h=_.be(function(){var O=d,T=B().uniqueId+"-border",m,J;var g="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((J=(m=_.wj().resolve(_.fZ(_.sF)))==null?void 0:m())!=null&&J?"dark":"light")+"_v2.json";return{animationRef:O,animationConfig:{name:T,autoplay:!1,loop:!1,path:g}}},void 0,"UWvUGe");
W={};return _.x("yt-smartimation",{class:_.ER(A.className,"smartimation",(W["smartimation--experiment-enabled"]=function(){return B().experimentEnabled},W["smartimation--active-border"]=z,W["smartimation--enable-masking"]=rXb(),W))},_.x(_.R,{cond:function(){return B().experimentEnabled},
then:function(){return _.x("div",{class:"smartimation__border"},_.x(_.Zb,{className:"smartimation__border-gradient",data:h,animationName:function(){return h().animationConfig.name}}))}}),_.x("div",{class:"smartimation__content"},A.children))},"ja");
YTA.idomCompat=!0;_.Sw(YTA,"yt-smartimation",{props:{className:_.Ih,settings:_.Ih}});var uB=function(){var A=_.a.apply(this,arguments)||this;A.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};A.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};A.shouldEnableSmartimation=!1;return A};
_.I(uB,_.a);uB.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
uB.prototype.onDataChanged=function(){var A,H;this.shouldEnableSmartimation=(((A=this.data)==null?void 0:(H=A.timedAnimationData)==null?void 0:H.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
uB.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var A=_.L(this.data.likeButton,_.bR),H=_.L(this.data.dislikeButton,_.bR);return!!((A==null?0:A.isToggled)||(H==null?0:H.isToggled))};
uB.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]]"}}}}}};
_.nP.Object.defineProperties(uB.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var A,H,k=((A=this.data)==null?void 0:(H=A.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"like-dislike",timings:k,enabled:this.shouldEnableSmartimation,experimentEnabled:k.length>0}}}});
uB.prototype.onDataChanged=uB.prototype.onDataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uB.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],uB.prototype,"likeButtonOverride",void 0);_.E([_.C(),_.l("design:type",Object)],uB.prototype,"dislikeButtonOverride",void 0);
_.E([_.G("shouldEnableSmartimation"),_.l("design:type",Object),_.l("design:paramtypes",[])],uB.prototype,"smartimationSettings",null);_.E([_.fF("data"),_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uB.prototype,"onDataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],uB);
_.Q(uB,"ytd-segmented-like-dislike-button-renderer",function(){if(L4j!==void 0)return L4j;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return L4j=A},{mode:1});var PjA;var G3p;(G3p=document.body)==null||G3p.setAttribute("rounded-container","");var F40={};F40.YtToggleButtonBehavior=[_.nM.YtActionHandlerBehavior,Hf.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 A=this.data.isToggled;if(!this.isModal_(A)){if(!this.data.preventAutoToggle){this.toggle();var H={toggled:this.data.isToggled,actions:{}};H.actions[this.buttonIcon]=this.data.isToggled;_.Ed(this.hostElement,"yt-toggle-button",H)}H=this.data.defaultServiceEndpoint||null;var k=this.data.toggledServiceEndpoint||null;if(H&&k||H&&this.data.preventAutoToggle)A=A?k:H,H=this.disableCommandHandlerOverride,_.b("killswitch_toggle_button_behavior_resolve_command")||H?_.tx(this.hostElement,
[A]):_.ZS(A,this.hostElement),_.Ed(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:A})}},
stateChanged_:function(){var A=this.data;if(A){var H=A.isToggled;this._setEndpoint(this.computeEndpoint_(A));this._setServiceEndpoint(this.computeServiceEndpoint_(A));this._setButtonIcon(this.computeButtonIcon_(A,H));this._setButtonText(this.computeButtonText_(A,H));this._setButtonAccessibility(this.computeAccessibility_(A,H));this._setButtonTooltip(this.computeTooltip_(A,H));this._setButtonClass(this.computeButtonClass_(A,H));this._setIconPositionType(this.computeIconPositionType_(A));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=H):this.elements_.button.setAttribute("aria-pressed",H));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=H)}},
shouldSetIconActiveState_:function(){return _.b("kevlar_system_icons")},
toggle:function(A){this.set("data.isToggled",A!==void 0?A:!this.data.isToggled);_.b("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(A){if(A){var H,k;return!!((H=this.data)==null?0:(k=H.toggledServiceEndpoint)==null?0:k.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(A){return A&&A.defaultNavigationEndpoint||null},
computeButtonIcon_:function(A,H){var k=A&&A.defaultIcon?_.N0(A.defaultIcon.iconType):null;A=A&&A.toggledIcon?_.N0(A.toggledIcon.iconType):k;return H?A:k},
handleUpdateToggleButtonStateCommand_:function(A){A=A.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==A.buttonId&&this.toggle(A.toggled)},
computeButtonText_:function(A,H){return A?H&&A.toggledText||A.defaultText||null:null},
computeAccessibility_:function(A,H){return A?(H?this.get("toggledAccessibilityData.accessibilityData",A):this.get("accessibilityData.accessibilityData",A))||A.accessibility||null:null},
computeTooltip_:function(A,H){return A?H&&A.toggledTooltip||A.defaultTooltip||null:null},
computeButtonClass_:function(A,H){if(!A)return"";var k="",d=A.toggledStyle||A.style;if(H=H?d:A.style){H.styleType&&(H=H.styleType);try{k+=H.toLowerCase().replace(/_/g,"-")+" "}catch(W){_.Gg(W,H,typeof H),_.Pq(W)}}if(A=A.size){A.sizeType&&(A=A.sizeType);try{k+=A.toLowerCase().replace(/_/g,"-")+" "}catch(W){_.Gg(W,A,typeof A),_.Pq(W)}}return k.trim()},
computeIconPositionType_:function(A){return A&&A.iconPosition||null},
computeServiceEndpoint_:function(A){var H=A&&A.serviceEndpoint,k=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:k&&A.command?A.command:null},
handleUpdateToggleButtonTextAction_:function(A){A=A.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==A.buttonId&&(this.set("data.defaultText",A.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",A.toggledText),this.notifyPath("data.toggledText"))}}];_.uL("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var XCG=_.b("web_button_rework")&&_.Q$("BUTTON_REWORK")||_.b("web_button_rework_with_live"),Bx=function(){var A=_.a.apply(this,arguments)||this;A.systemIcons=_.b("kevlar_system_icons");A.roundedContainer=!0;return A};
_.I(Bx,_.a);Bx.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Bx.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var A=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var H={toggled:!!this.data.isToggled,actions:{}};H.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var k,d;H.actions.playlistId=(k=this.data.defaultServiceEndpoint)==null?void 0:(d=k.playlistEditEndpoint)==null?void 0:d.playlistId;_.Ed(this.hostElement,"yt-toggle-button",H)}(A=A?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(A)}};
Bx.prototype.onYtNavigate=function(A){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);H&&(A.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.nP.Object.defineProperties(Bx,{template:{configurable:!0,enumerable:!0,get:function(){if(PjA===void 0){var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);PjA=A}A=PjA;return A}}});
Bx.prototype.onYtNavigate=Bx.prototype.onYtNavigate;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Bx.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],Bx.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(F40.YtToggleButtonBehavior),_.l("design:type",Object)],Bx.prototype,"ytToggleButtonBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],Bx.prototype,"data",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],Bx.prototype,"showTooltips",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Bx.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Bx.prototype,"roundedContainer",void 0);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Bx.prototype,"onYtNavigate",null);
_.E([_.O6({is:"ytd-toggle-button-renderer",disableElementRegistration:XCG})],Bx);var DdG,STw;_.eZ=new _.SE("PANEL_CONTROLLER_TOKEN");_.x0=new _.SE("SHEET_CONTROLLER_TOKEN");_.iB=new _.SE("DIALOG_CONTROLLER_TOKEN");DdG=new _.SE("DIALOG_CONTAINER_TOKEN");STw=new _.SE("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.hz=new _.SE("PERSISTENT_PANEL_CONTROLLER_TOKEN");var TZW=_.$r("DOWNLOAD",{},"Download"),mbm=_.$r("DOWNLOADING",{},"Downloading"),JXr=_.$r("DOWNLOADED",{},"Downloaded"),ga8=_.$r("RETRY",{},"Retry");var CjZ=_.c(function(A){var H=jjI,k=function(){return""},d=btr(A.data),W=LUI(A.data),z=va8(A.data),u=yXm(A.data);
H=function(){var B=A.data(),h=Otv(B,d(),W(),z(),u()),O=!!B.videoId,T=h.text;return{title:O?T:void 0,tooltip:O?void 0:T,accessibilityText:T,onTap:h.onTap,iconName:h.iconType,style:B.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:h.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:B.buttonSize}};
k={};k=_.ER("ytDownloadButtonViewModelHost",(k.ytDownloadButtonViewModelIsHidden=function(){var B=A.data(),h=u();return B.playlistId||h()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||h()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},k));
return _.x("download-button-view-model",{class:k},_.x(_.U7,{data:H}))},"ka");
CjZ.idomCompat=!0;var C7m=new _.SE("SUBMIT_API_SERVICE_TOKEN");var X9N,DbW,KUb={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var szr=new _.SE("RENDERER_LOGGER_TOKEN");var oal=new _.SE("RENDERER_STAMPER_OPTIONS_TOKEN");var cXb;_.Ac=new hk8;cXb=new Map;var $bV="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),Hcl=["notificationTextRenderer","notificationMultiActionRenderer"],
ARm="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),w9W=p9I(function(A){return _.pA(A==null?void 0:A.targetId)}).useUpdatableData;var Ubr=null;var fnW=0,naW=new Set;_.HG.debugName="EjJbCe";var K4k=_.c(function(A){var H=A.data;A=A.className;_.Sp(function(){H().formId||_.I3(Error("Dh"))});
var k=_.FUW(function(){return H().formId},function(){return H().beforeSubmitCommand},function(){return H().afterSubmitCommand}),d=k.submitForm,W=k.isValid,z=k.isSubmitting,u=function(){return{state:H().isDisabled||!W()||z()?"disabled":"active"}};
return _.x("yt-submit-button-view-model",{class:_.ER("ytSubmitButtonViewModelHost",A)},_.x(_.HG,{data:function(){return H().button}},{buttonViewModel:function(B){return _.x(_.U7,{data:B.data,
buttonOverrides:u,onClick:d})}}))},"na");var cR0=_.c(function(A){var H=A.backgroundLottieRef;var k=A.foregroundLottieRef;var d=A.children;var W=A.wrapperClass;var z=A.disableAnimation;A=function(){return(_.b("web_animated_actions")||_.b("web_animated_actions_v2"))&&!(z==null?0:z())};
return _.x("yt-animated-action",{class:_.ER("ytAnimatedActionHost",W)},_.x("div",{class:"ytAnimatedActionContentWithBackground"},_.x(_.R,{cond:A,then:function(){return _.x(aoA,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:H==null?void 0:H(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(k3I()?"dark":"light")+"_v5.json"}}}})}}),d),_.x(_.R,{cond:A,
then:function(){return _.x(aoA,{lottiePlayerProps:function(){return{animationRef:k==null?void 0:k(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(k3I()?"dark":"light")+"_v4.json"}}}})}}))},"oa");
cR0.idomCompat=!0;var aoA=_.c(function(A){var H=A.wrapperClass;var k=A.lottieClass;var d=A.lottiePlayerProps;return _.x("div",{class:_.ER("ytAnimatedActionLottie",H),"aria-hidden":"true"},_.x(_.Zb,{className:k,data:d,animationName:function(){return d().animationConfig.name}}))},"pa");var ddr={isOpen:!1};var zuI={isAllowed:!1};var rRA={errorMessage:"",title:"",privacy:"",isDisabled:!0};var BPr={isOpen:!1};var xdX={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var pC0={response:void 0};var huC=function(A,H){A=A===void 0?pC0:A;switch(H.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},A,{response:H.payload});default:return A}};var Qz1={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Ocf=function(A,H){A=A===void 0?Qz1:A;switch(H.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},A,{nextDisabled:H.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},A,{nextCommand:H.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},A,{footerSubmissionData:H.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},A,{isImpersonationValid:H.payload});default:return A}};var VQj={reportFormData:void 0,reportDetailsFormData:void 0};var Rul=function(A,H){A=A===void 0?VQj:A;switch(H.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},A,{reportFormData:H.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},A,{reportDetailsFormData:H.payload});default:return A}};var ESi=void 0;_.b("mweb_enable_redux_store_on_demand")||(ESi=new GK(TPN()));var Oc=_.b("enable_web_delhi_icons");var Udp=_.c(function(A){A=_.SD(A,{themeOverride:void 0,animationRef:{}});var H=A.animatedIconType,k=A.active,d=A.themeOverride,W=A.animationRef;A=A.staticIconFn;var z=_.r(_.RV(void 0,void 0,"l48agc")),u=z.next().value,B=z.next().value,h=function(){a:{var X=H();var D=d==null?void 0:d();var K;D=(D==null?void 0:D.useDarkTheme)||((K=_.wj().resolve(_.fZ(_.sF)))==null?void 0:K());switch(X){case "LIKE":ESi||(ESi=new GK(TPN()));X=(X=USX(ESi.getState()))&&X.animationLightUrl&&X.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:D?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:D?X.animationDarkUrl:X.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(X){D=X;break a}D="animated_like_icon_"+(D?"dark":"light")+"_"+(Oc?"v5":"v4");D={lottiePlayerProps:{animationConfig:{name:D,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+D+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Oc?" animated-like-icon-delhi":"")}}},totalFrames:Oc?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":D={lottiePlayerProps:{animationConfig:{name:D?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(D?"dark":"light")+(Oc?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Oc?" animated-subscribe-icon-delhi":"")}}},totalFrames:Oc?120:79,lazyLoad:!1};break a}D=
void 0}return D},O=function(){var X,D;
return(D=(X=h())==null?void 0:X.lottiePlayerProps.animationConfig.name)!=null?D:""},T=function(){if(h()){var X=h().lottiePlayerProps.animationConfig.path;
return Wn.get(X)||u()}};
z=_.r(_.RV(!1,void 0,"sDrGId"));var m=z.next().value;z=z.next().value;var J=JRQ(z),g=function(){var X=h(),D,K,N;return(N=X==null?void 0:(D=X.lottiePlayerProps.animationConfig)==null?void 0:(K=D.rendererSettings)==null?void 0:K.className)!=null?N:""},v=void 0,y=void 0;
_.CA(function(){var X=h(),D=O(),K=T(),N=m(),U=k();if(X&&(y!==D&&(y=D,v=U,D=W(),J.animationConfig=X.lottiePlayerProps.animationConfig,J.animationRef=D,K&&(J.animationConfig.animationData=K,J.animationConfig.path=void 0),D=X.lottiePlayerProps.animationConfig.path,!Wn.get(D)&&X.lazyLoad&&D&&mdC(D,B)),!(N||X.lazyLoad&&!K))){if(K=!W().lottieEl)U?(N=X.totalFrames,J.animationConfig.initialSegment=[N-1,N]):J.animationConfig.initialSegment=void 0;if(v!==U&&!K)if(K=W(),U){var p;(p=K.lottieEl)==null||p.playSegments([0,
X.totalFrames],!0)}else{var M;(M=K.lottieEl)==null||M.playSegments([0,1],!0)}v=U}},"RQVZ1d");
return _.x("animated-icon",{class:"ytAnimatedIconHost"},_.x(_.R,{cond:function(){var X,D;return!((X=h())==null||!X.lottiePlayerProps.animationConfig.path||((D=h())==null?0:D.lazyLoad)&&!T()||m())},
then:function(){return _.x(_.Zb,{data:J,animationName:O,className:g,animationRef:W})},
else:A}))},"ra");_.Rr=_.c(function(A){var H=_.GP("yt-subscribe-button-view-model"),k=_.GP("div"),d=_.GP("div"),W=_.nj(),z=_.nj(),u=_.nj(),B=_.o9(vSl,function(){return A.data().stateEntityStoreKey}),h=_.o9(yRQ,function(){var lI,Rp;
return(Rp=(lI=A.data().notificationStateEntityStoreKeys)==null?void 0:lI.subsNotificationStateKey)!=null?Rp:""}),O=function(){return!A.data().enableSubscribeButtonPostClickAnimation},T=_.r(_.RV(0,void 0,"YtsSKb")),m=T.next().value,J=T.next().value;
T=_.r(_.RV(0,void 0,"V6JxRe"));var g=T.next().value,v=T.next().value;T=_.r(_.RV(!1,void 0,"JUCSZ"));var y=T.next().value,X=T.next().value;T=_.r(_.RV(!1,void 0,"oV6jwf"));var D=T.next().value,K=T.next().value;T=_.r(_.RV(!1,void 0,"hK1Whe"));var N=T.next().value,U=T.next().value,p;T=_.r(_.RV(!1,void 0,"Asaolf"));var M=T.next().value,Z=T.next().value,WV=function(){K(!0);_.zV(_.IE,function(){K(!1)},1500)};
_.CA(function(){var lI=D();_.Oi(function(){lI&&!O()&&B()&&cRf(W,z,u)})},"Qq6Hsf");
_.CA(function(){var lI=B();_.Oi(function(){if(!O()&&lI){var Rp;((Rp=A.animateWidth)==null?0:Rp.call(A))&&aoN(H.value,!!lI.subscribed,m(),g());var vj,T0;((vj=p)==null?0:vj.subscribed)||!lI.subscribed||lI.key!==((T0=p)==null?void 0:T0.key)||WV();p=lI}})},"hog8te");
T=_.be(function(){var lI,Rp,vj,T0=A.data(),Y1=!((lI=B())==null||!lI.subscribed);lI=!((Rp=A.isOverlay)==null||!Rp.call(A));Rp=y()?H:void 0;var ze=(vj=h())==null?void 0:vj.state;vj=M();K4A(T0,ze);return L4V({model:T0,subscribed:Y1,isOverlay:lI,element:Rp,notificationState:ze,disableTextEllipsis:!0,focused:vj})},void 0,"hc1PRd");
var hA=function(){var lI;if(!O()&&((lI=A.animateWidth)==null?0:lI.call(A))&&(k==null?0:k.value)&&(d==null?0:d.value)&&!N()){lI=B();var Rp=_.r((lI==null?0:lI.subscribed)?[k,d]:[d,k]),vj=Rp.next().value;Rp=Rp.next().value;vj=Math.ceil(vj.value.getBoundingClientRect().width);Rp=Math.ceil(Rp.value.getBoundingClientRect().width);J(vj);v(Rp);aoN(H.value,!(lI==null||!lI.subscribed),vj,Rp);U(!0)}},qv=_.lc(function(lI){hA();
var Rp=B();Rp&&(lI.detail.endpoint.subscribeEndpoint||lI.detail.endpoint.unsubscribeEndpoint)&&Ddr(H.value,!Rp.subscribed,Rp)}),eN=function(){var lI=_.wj().resolve(_.fZ(_.ah));
lI&&Z(lI.isKeyBoardInUse())},mr=function(){Z(!1)};
_.Qr("yt-player-subscribe",function(lI){var Rp=B();Rp&&lI===A.data().channelId&&Ddr(H.value,!0,Rp)});
_.Qr("yt-player-unsubscribe",function(lI){var Rp=B();Rp&&lI===A.data().channelId&&Ddr(H.value,!1,Rp)});
_.Qr("yt-update-subscribe-button-action",function(lI){lI=_.L(lI,IwJ);var Rp=B();Rp&&lI&&lI.channelId===A.data().channelId&&Ddr(H.value,!!lI.subscribed,Rp)});
_.CZ(function(){H.value&&(H.value.addEventListener("focusin",eN),H.value.addEventListener("focusout",mr));var lI=_.ma(_.IE,function(){hA()});
X(!0);_.aV(function(){_.IE.cancelJob(lI);H.value&&(H.value.removeEventListener("focusin",eN),H.value.removeEventListener("focusout",mr))})});
var Cl=function(){var lI,Rp,vj;if(vj=!((lI=B())==null||!lI.subscribed))lI=!!A.data().disableNotificationBell,vj=(Rp=h())==null?void 0:Rp.state,vj=!lI&&!!vj;return vj},pl=function(){var lI;
return!((lI=B())==null?0:lI.subscribed)},UC=function(){var lI,Rp;
if(Rp=pl()){Rp=!!A.data().disableNotificationBell;var vj=(lI=h())==null?void 0:lI.state;Rp=!Rp&&!!vj}return Rp},hk={},eA={};
return _.x("yt-subscribe-button-view-model",{class:_.ER(A.className,"ytSubscribeButtonViewModelHost",(hk.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var lI,Rp;return!((lI=B())==null||!lI.subscribed)&&((Rp=A.animateWidth)==null?void 0:Rp.call(A))&&D()},hk.ytSubscribeButtonViewModelHostHidden=function(){var lI;
return!((lI=B())==null?0:lI.subscribed)&&A.data().hideWhenUnsubscribed},hk)),
el:H,"on:yt-service-request-sent":qv},_.x(cR0,{backgroundLottieRef:W,foregroundLottieRef:z,wrapperClass:_.ER("ytSubscribeButtonViewModelAnimatedActionWrapper",(eA.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var lI;return((lI=A.animateWidth)==null?void 0:lI.call(A))&&D()},eA.ytSubscribeButtonViewModelStaticWidth=function(){var lI;
return!((lI=A.animateWidth)==null?0:lI.call(A))},eA)),
disableAnimation:O},_.x("div",{el:k,class:"ytSubscribeButtonViewModelContainer"},_.x(_.E7,{data:T,icon:function(){return _.x(_.R,{cond:Cl,then:function(){var lI=function(){var Rp;return XCr((Rp=h())==null?void 0:Rp.state)};
return _.x(_.R,{cond:function(){return O()||lI()!=="NOTIFICATIONS_NONE"},
then:function(){return _.x(_.n3,{icon:lI})},
else:function(){return _.x(Udp,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:u})}})}})},
secondaryIconName:function(){return Cl()?"EXPAND":void 0}}))),_.x("div",{el:d,
class:"ytSubscribeButtonViewModelInvisible"},_.x(_.R,{cond:function(){var lI;return((lI=A.animateWidth)==null?void 0:lI.call(A))&&!O()&&!N()},
then:function(){return _.x(_.E7,{data:_.be(function(){var lI;return L4V({model:A.data(),subscribed:pl(),isOverlay:!((lI=A.isOverlay)==null||!lI.call(A)),element:H,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var lI;return UC()?XCr((lI=h())==null?void 0:lI.state):void 0},
secondaryIconName:function(){return UC()?"EXPAND":void 0}})}})))},"ua");
_.Rr.idomCompat=!0;var loi=_.c(function(A){var H=A.data;var k=_.o9(vSl,function(){return H().subscriptionStateEntityKey});
return _.x(_.R,{cond:function(){var d=H(),W=k();return!d.hideWhenUnsubscribed||(W==null?0:W.subscribed)?_.L(H().button,_.vY):void 0},
then:function(d){return _.x("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.x(_.U7,{data:d,buttonOverrides:function(){return{toggled:!0}}}))}})},"va");
loi.idomCompat=!0;var tQk,TX;tQk=_.c(function(A){return _.x(_.HG,{data:function(){return A.actionRow().actions}},{buttonViewModel:function(H){var k=H.data;
return _.x(TX,{isRow:A.isRow,isIconOnlyButton:function(){return pCf(k())},
useIntrinsicWidth:A.useIntrinsicWidth},_.x(_.U7,{data:k}))},
subscribeButtonViewModel:function(H){return _.x(TX,{isRow:A.isRow},_.x(_.Rr,{data:H.data,isOverlay:!1,animateWidth:function(){return!A.isRow()}}))},
downloadButtonViewModel:function(H){var k=H.data;return _.x(TX,{isRow:A.isRow,isIconOnlyButton:function(){return!!k().playlistId}},_.x(CjZ,{data:k}))},
submitButtonViewModel:function(H){var k=H.data;return _.x(TX,{isRow:A.isRow,isIconOnlyButton:function(){var d=k();return pCf(_.L(d==null?void 0:d.button,_.vY))}},_.x(K4k,{data:k}))},
toggleButtonViewModel:function(H){var k=H.data;return _.x(TX,{isRow:A.isRow,isIconOnlyButton:function(){var d=k();return pCf(_.L(d.isToggled?d.toggledButtonViewModel:d.defaultButtonViewModel,_.vY))}},_.x(_.qc,{data:k}))},
subscribePlusButtonViewModel:function(H){return _.x(TX,{isRow:A.isRow},_.x(loi,{data:H.data}))}})},"wa");
TX=_.c(function(A){var H={};return _.x("div",{class:_.ER("ytFlexibleActionsViewModelAction",(H.ytFlexibleActionsViewModelActionRowAction=A.isRow,H.ytFlexibleActionsViewModelActionIntrinsicWidth=A.useIntrinsicWidth,H.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,H.ytFlexibleActionsViewModelActionIconOnlyButton=A.isIconOnlyButton,H))},A.children)},"xa");
_.mg=_.c(function(A){var H=function(){var d;return((d=A.layout)==null?void 0:d.call(A))===1},k={};
return _.x("yt-flexible-actions-view-model",{class:_.ER("ytFlexibleActionsViewModelHost",A.className,(k.ytFlexibleActionsViewModelInline=function(){return!H()},k.ytFlexibleActionsViewModelScrollable=function(){return A.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},k))},_.x(_.Ix,{each:function(){return A.data().actionsRows||[]}},function(d){return _.x(_.R,{cond:H,
then:function(){return _.x("div",{class:"ytFlexibleActionsViewModelActionRow"},_.x(tQk,{actionRow:d,isRow:H,useIntrinsicWidth:function(){return!!A.data().respectActionIntrinsicWidth}}))},
else:function(){return _.x(tQk,{actionRow:d,isRow:H})}})}))},"ya");_.Sw(_.mg,"yt-flexible-actions-view-model",{props:{data:_.Ih,layout:_.Ih,justifyContentOverride:_.Ih,className:_.Ih}});_.Jz=_.c(function(A){var H=_.o9(_.R9,function(){var W;return(W=A.data().dislikeEntityKey)!=null?W:""}),k=_.be(function(){var W=H();
return W?W.likeStatus==="DISLIKE":_.L(A.data().toggleButtonViewModel,_.jG).isToggled},void 0,"fNr9he"),d=_.be(function(){return Object.assign({},_.L(A.data().toggleButtonViewModel,_.jG),{isToggled:k()})},void 0,"AezoCc");
return _.x("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.x(_.qc,{data:d,buttonShapeOverrides:A.buttonShapeOverrideables,onToggle:function(W){var z=H();z&&W!==(z.likeStatus==="DISLIKE")&&z.key&&_.XI(_.O5("likeStatusEntity",z.key,{likeStatus:W?"DISLIKE":"INDIFFERENT",hadUserInteraction:W}))}}))},"za");
_.Jz.idomCompat=!0;_.gq=_.c(function(A){var H=_.b("web_supports_animations_api"),k=whN(function(J){var g=O();if(!J){var v,y;return{numberText:(y=g==null?void 0:(v=g.likeCountIfIndifferent)==null?void 0:v.content)!=null?y:"",numberValue:Number(g==null?void 0:g.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var X;v=(g==null?void 0:(X=g.likeCountIfIndifferent)==null?void 0:X.content)!==J.numberText;if(B()||!v)return J;var D;return{numberText:(g==null?void 0:(D=g.likeCountIfIndifferent)==null?void 0:D.content)||
"",numberValue:Number(g==null?void 0:g.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!g}}),d=whN(function(J){var g=O();
if(!J){var v,y;return{numberText:(y=g==null?void 0:(v=g.likeCountIfLiked)==null?void 0:v.content)!=null?y:"",numberValue:Number(g==null?void 0:g.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var X;v=(g==null?void 0:(X=g.likeCountIfIndifferent)==null?void 0:X.content)!==J.numberText;if(B()||!v)return J;var D;return{numberText:(g==null?void 0:(D=g.likeCountIfLiked)==null?void 0:D.content)||"",numberValue:Number(g==null?void 0:g.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!g}}),W=_.r(_.RV(void 0,
void 0,"xYSlUe")),z=W.next().value,u=W.next().value,B=z,h=_.o9(_.R9,function(){var J,g;
return(g=(J=A.data())==null?void 0:J.likeStatusEntityKey)!=null?g:""}),O=_.o9(jiN,function(){var J,g;
return((J=A.likeCountEntity)==null?void 0:(g=J.call(A))==null?void 0:g.key)||""}),T=_.be(function(){var J;
return((J=h())==null?void 0:J.likeStatus)==="LIKE"},void 0,"DG5Osd"),m=function(){var J;
return H&&!((J=A.likeCountEntity)==null||!J.call(A))};
return _.x("like-button-view-model",{class:_.ER("ytLikeButtonViewModelHost",A.className)},_.x(_.qc,{data:function(){var J=Object,g=J.assign,v;var y=_.L((v=A.data())==null?void 0:v.toggleButtonViewModel,_.jG);return g.call(J,{},y||{},{isToggled:T()})},
buttonShapeOverrides:A.buttonShapeOverrideables,animatedTextPropsDefault:function(){return m()?k():void 0},
animatedTextPropsToggled:function(){return m()?d():void 0},
onToggle:function(J){QzQ(J,h(),B(),u)},
style:function(){var J;return((J=A.disableIconAnimation)==null?0:J.call(A))?void 0:{animateIcon:"true"}}}))},"Aa");
_.gq.idomCompat=!0;var NPZ=_.c(function(A){var H=function(){return _.L(A.data().likeButtonViewModel,_.vp)},k=function(){var W;
return((W=H())==null?void 0:W.likeStatusEntityKey)||""},d=_.be(function(){var W,z;
var u=(z=_.o9(_.R9,k)())!=null?z:(W=H())==null?void 0:W.likeStatusEntity;W=A.data();var B;W=(W==null?void 0:(B=W.timedAnimationData)==null?void 0:B.animationTiming)||[];return{uniqueId:"like-dislike",timings:W,enabled:(u==null?void 0:u.likeStatus)==="INDIFFERENT"&&W.length>0,experimentEnabled:W.length>0}},void 0,"wEl1fe");
return _.x("segmented-like-dislike-button-view-model",{class:_.ER("ytSegmentedLikeDislikeButtonViewModelHost",A.className),"button-renderer":!0},_.x(YTA,{settings:d},_.x("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.x(_.R,{cond:H,then:function(W){return _.x(_.gq,{data:W,likeCountEntity:function(){return A.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:500}})}}),_.x(_.R,{cond:function(){return _.L(A.data().dislikeButtonViewModel,_.yj)},
then:function(W){return _.x(_.Jz,{data:W,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Ba");
NPZ.idomCompat=!0;_.Sw(NPZ,"segmented-like-dislike-button-view-model",{props:{data:_.Ih,className:_.Ih}});var MQw=_.c(function(A){var H=A.data;var k=A.className;var d=A.setMinWidth;var W=A.forceIconOnly;var z=_.GP("account-link-button-view-model"),u=_.o9(_.VQV,function(){var J;return(J=H().accountLinkStatusEntityKey)!=null?J:""}),B=_.o9(_.VQV,function(){var J;
return(J=H().accountLinkStatusSecondaryEntityKey)!=null?J:""}),h=function(){if(!_.b("web_account_link_secondary_killswitch")){var J,g;
return((J=u())==null?void 0:J.linked)||((g=B())==null?void 0:g.linked)}var v;return(v=u())==null?void 0:v.linked};
_.CA(function(){var J=u();if(J){var g=Ayj(new $li,wYj(new f2i,!!J.linked));_.NN().then(function(v){v&&(v.setAccountLinkState(_.ob(g.JSC$12640_serializeBinary(),4)),v.updateAccountLinkingConfig(!!J.linked))})}},"IvZF7");
var O=function(){return _.L(H().toggleButtonViewModel,_.jG)};
_.Qr("yt-signal-action-show-account-link-dialog",function(){if(O()){var J=h()?O().toggledButtonViewModel:O().defaultButtonViewModel;J=_.L(J,_.vY);var g;if((g=u())==null?0:g.isWarning){g=_.L(H().warningButtonViewModel,_.vY);if(!g){_.lt(Error("Eh"));return}J=g}var v;(g=_.h7((v=J)==null?void 0:v.onTap))&&_.ZZ([g],z.value)}else _.lt(Error("Fh"))});
var T=function(){var J=O();return Object.assign({},J,{isToggled:h()})},m=function(){return(W==null?0:W())?{iconPosition:"icon-only"}:{}};
return _.x("account-link-button-view-model",{class:_.ER("ytwAccountLinkButtonViewModelHost",k,function(){return(d==null?0:d())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:z,"button-renderer":!0},_.x("div",null,_.x(_.R,{cond:function(){var J;if((J=u())==null?0:J.isWarning)return(J=_.L(H().warningButtonViewModel,_.vY))||_.lt(Error("Eh")),J},
then:function(J){return _.x(_.U7,{data:J,buttonOverrides:m})},
else:function(){return _.x(_.qc,{data:T,buttonShapeOverrides:m})}})))},"Da");_.Sw(MQw,"account-link-button-view-model",{props:{data:_.Ih,className:_.Fc,setMinWidth:_.Fc,forceIconOnly:_.Fc}});_.uL("menuRenderer","menuRenderer","ytd-menu-renderer");
var nSw={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"}},
Zcw=_.b("web_fix_missing_action_buttons")?100:200,bB=function(){var A=_.a.apply(this,arguments)||this;A.safeArea=!_.b("kevlar_flex_menu_safe_area_killswitch");A.tonalOverride=!1;A.threeDotSize="M";A.isOverlay=!1;A.useOverlayDark=!1;A.topLevelIconsOnly=!1;A.JSC$15085_lastWidth=0;A.maybeUpdateFlexibleMenu=function(){_.b("web_fix_missing_action_buttons")?requestAnimationFrame(A.maybeUpdateFlexibleMenuImpl):A.maybeUpdateFlexibleMenuImpl()};
A.maybeUpdateFlexibleMenuImpl=function(){var H;if((H=A.data)!=null&&H.flexibleItems){A.maybeFlushDebouncer();H=A.hostElement.clientWidth;var k=H>A.JSC$15085_lastWidth,d,W=((d=A.topLevelButtonsContainer)==null?void 0:d.scrollHeight)||0,z;d=((z=A.flexibleItemButtonsContainer)==null?void 0:z.scrollHeight)||0;z=A.hostElement.scrollHeight>Math.max(W,d)+8;k?(A.resetFlexibleItems(),A.JSC$15085_lastWidth=A.hostElement.clientWidth,A.maybeUpdateFlexibleMenu()):z&&(A.shrinkFlexibleMenu(),A.JSC$15085_lastWidth=
H)}};
A.computeThreeDotButtonShape=function(){if(A.tonalOverride)return Object.assign({},{onTap:function(){A.onOverflowTap()},
iconPosition:"icon-only",style:A.isOverlay?A.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:A.threeDotSize,state:"active",accessibilityLabel:A.computeAccessibilityLabel(A.data)},A.threeDotButtonOverride)};
A.onOverflowTap=function(){var H,k,d,W,z,u,B,h,O,T,m;_.e(function(J){switch(J.nextAddress){case 1:if((H=A.data)==null?0:H.fetchMenuCommand)return k=_.wj().resolve(_.J7),k.resolveCommand(A.data.fetchMenuCommand,{form:{element:A.hostElement}}),J.return();if(((d=A.data)==null?0:d.isDisabled)&&((W=A.data)==null?0:W.disabledCommand))return _.ZS(A.data.disabledCommand,A.hostElement),J.return();z=A.createMenuRendererVe();u={items:A.items};if((B=A.data)==null?0:B.menuPopupAccessibility)u.menuPopupAccessibility=
A.data.menuPopupAccessibility;if((h=A.data)==null?0:h.footer)u.footer=A.data.footer;O={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:u},veData:z}};T=_.wj().resolve(_.x0);if(!_.b("ytd-menu-singleton-sheet-killswitch")){J.jumpTo(2);break}return J.yield(T.openSheet({openPopupActionCommand:O},A.hostElement),3);case 3:return J.return();case 2:return J.yield(T.isSheetOpen(),4);case 4:return(m=J.yieldResult)?J.yield(T.closeSheet(),0):J.yield(T.openSheet({openPopupActionCommand:O},A.hostElement),
0)}})};
return A};
_.I(bB,_.a);_.q=bB.prototype;_.q.updateButtonOverrides=function(){if(!_.b("menu_renderer_label_update_upkillswitch")){var A=_.Va(this.hostElement).querySelector("yt-button-view-model");A&&(A.buttonOverrides=this.buttonOverrides)}};
_.q.computeHasItems=function(){var A;return((A=this.topLevelButtonData)==null?void 0:A.length)||this.hasFlexibleItems};
_.q.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.q.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.NH(this.hostElement,{"--ytd-menu-renderer-button-color":_.iw(this.data.iconColor)}))};
_.q.onStamperFinished=function(){this.JSC$15085_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.q.setupFlexibleMenu=function(){var A=this,H;(H=this.data)!=null&&H.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Nt(this.maybeUpdateFlexibleMenu,Zcw,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){A.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))};
_.q.maybeFlushDebouncer=function(){if(_.b("web_replace_formatted_with_attributed_string")){var A;(A=this.topLevelButtons)==null||A.forEach(function(k){var d;(k=(d=k.getElementsByTagName("yt-attributed-string"))==null?void 0:d[0])&&x1N(k)});
var H;(H=this.flexibleItemButtons)==null||H.forEach(function(k){var d;(k=(d=k.getElementsByTagName("yt-attributed-string"))==null?void 0:d[0])&&x1N(k)})}};
_.q.resetFlexibleItems=function(){var A;if((A=this.data)!=null&&A.flexibleItems){_.b("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var H;this.flexAsTopLevelButtons=(H=this.data.flexibleItems)==null?void 0:H.map(function(k){return _.L(k,_.aJw).topLevelButton});
_.b("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.q.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.q.shrinkFlexibleMenu=function(){var A;(A=this.flexAsTopLevelButtons)!=null&&A.length&&(this.flexAsTopLevelButtons=[].concat(_.fV(this.flexAsTopLevelButtons.slice(0,-1))))};
_.q.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:nSw,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:nSw,events:!0}}};
_.q.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.q.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.q.detached=function(){this.icon="MORE_VERT"};
_.q.computeTopLevelButtonData=function(A){if(!A)return[];var H;A=(H=A==null?void 0:A.topLevelButtons)!=null?H:[];return _.iK.unsafeClone([].concat(_.fV(A)))};
_.q.computeItems=function(A,H){if(!A)return[];var k=[];if(H){var d=(A.flexibleItems||[]).map(function(u){return _.L(u,_.aJw)});
d=_.r(d);for(var W=d.next();!W.done;W=d.next())W=W.value,H.includes(W.topLevelButton)||(W=W.menuItem)&&k.push(W)}var z;A=(z=A==null?void 0:A.items)!=null?z:[];return[].concat(_.fV(k),_.fV(A))};
_.q.computeMenuActive=function(A,H){return A||H};
_.q.onPopupOpened=function(){this.overlayOpen=!0;_.Ed(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.q.onPopupClosed=function(){this.overlayOpen=!1;_.Ed(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.q.onPopupCanceled=function(){this.overlayOpen=!1;_.Ed(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.q.computeAccessibilityLabel=function(A){return this.get("accessibility.accessibilityData.label",A)};
_.q.isHidden=function(A,H){return this.tonalOverride||!A?!0:A.fetchMenuCommand||A.isDisabled&&A.disabledCommand?!1:!(H==null?0:H.length)};
_.q.isModernOverflowHidden=function(A,H){return this.tonalOverride&&A?A.fetchMenuCommand?!1:!(H==null?0:H.length):!0};
_.q.createMenuRendererVe=function(){var A,H=(A=this.data)==null?void 0:A.trackingParams;A=_.hx();var k=_.ii();return H&&A&&k?(H=_.db(H),k=_.t8(7591),_.b("combine_ve_grafts")?_.n4(_.A7(),k,H):_.v0(A,H,k),k):null};
_.nP.Object.defineProperties(bB.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.flexAsTopLevelButtons)==null||!A.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
bB.prototype.onPopupCanceled=bB.prototype.onPopupCanceled;bB.prototype.onPopupClosed=bB.prototype.onPopupClosed;bB.prototype.onPopupOpened=bB.prototype.onPopupOpened;bB.prototype.tonalOverrideChanged=bB.prototype.tonalOverrideChanged;bB.prototype.resetFlexibleItems=bB.prototype.resetFlexibleItems;bB.prototype.setupFlexibleMenu=bB.prototype.setupFlexibleMenu;bB.prototype.iconButtonColorChanged=bB.prototype.iconButtonColorChanged;bB.prototype.updateButtonOverrides=bB.prototype.updateButtonOverrides;
_.E([_.P(_.Kk),_.l("design:type",Object)],bB.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.ol("#button-shape"),_.l("design:type",HTMLElement)],bB.prototype,"buttonShape",void 0);_.E([_.ol("#button"),_.l("design:type",Object)],bB.prototype,"button",void 0);
_.E([_.C(),_.l("design:type",Object)],bB.prototype,"data",void 0);_.E([_.C({computed:"computeTopLevelButtonData(data)"}),_.l("design:type",Array)],bB.prototype,"topLevelButtonData",void 0);_.E([_.C(),_.l("design:type",Array)],bB.prototype,"flexAsTopLevelButtons",void 0);_.E([_.C({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.l("design:type",Array)],bB.prototype,"items",void 0);_.E([_.C({value:"MORE_VERT"}),_.l("design:type",String)],bB.prototype,"icon",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],bB.prototype,"safeArea",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.l("design:type",Boolean)],bB.prototype,"menuActive",void 0);_.E([_.C(),_.l("design:type",Boolean)],bB.prototype,"menuFocused",void 0);_.E([_.C({value:"bottom"}),_.l("design:type",String)],bB.prototype,"buttonTooltipPosition",void 0);_.E([_.C(),_.l("design:type",Boolean)],bB.prototype,"overlayOpen",void 0);
_.E([_.C({value:!0}),_.l("design:type",Boolean)],bB.prototype,"forceIconButton",void 0);_.E([_.C(),_.l("design:type",Boolean)],bB.prototype,"styleActionButton",void 0);_.E([_.C(),_.l("design:type",Boolean)],bB.prototype,"disableTextTransformOnButtons",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],bB.prototype,"tonalOverride",void 0);_.E([_.C(),_.l("design:type",Object)],bB.prototype,"threeDotSize",void 0);
_.E([_.C(),_.l("design:type",Object)],bB.prototype,"threeDotButtonOverride",void 0);_.E([_.C(),_.l("design:type",Object)],bB.prototype,"isOverlay",void 0);_.E([_.C(),_.l("design:type",Object)],bB.prototype,"useOverlayDark",void 0);_.E([_.C({computed:"computeButtonOverride(tonalOverride)"}),_.l("design:type",Object)],bB.prototype,"buttonOverride",void 0);_.E([_.C(),_.l("design:type",Boolean)],bB.prototype,"minimizePipBreakages",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],bB.prototype,"hasCustomIconColor",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("flexAsTopLevelButtons"),_.l("design:type",Object),_.l("design:paramtypes",[])],bB.prototype,"hasFlexibleItems",null);_.E([_.C({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.l("design:type",Boolean)],bB.prototype,"hasItems",void 0);_.E([_.C(),_.l("design:type",Object)],bB.prototype,"topLevelIconsOnly",void 0);
_.E([_.fF("topLevelIconsOnly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bB.prototype,"updateButtonOverrides",null);_.E([_.G("topLevelIconsOnly"),_.l("design:type",Object),_.l("design:paramtypes",[])],bB.prototype,"buttonOverrides",null);_.E([_.ol("#top-level-buttons-computed"),_.l("design:type",HTMLElement)],bB.prototype,"topLevelButtonsContainer",void 0);_.E([_.$I(".top-level-buttons > *"),_.l("design:type",Array)],bB.prototype,"topLevelButtons",void 0);
_.E([_.ol("#flexible-item-buttons"),_.l("design:type",HTMLElement)],bB.prototype,"flexibleItemButtonsContainer",void 0);_.E([_.$I("#flexible-item-buttons > *"),_.l("design:type",Array)],bB.prototype,"flexibleItemButtons",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bB.prototype,"iconButtonColorChanged",null);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bB.prototype,"setupFlexibleMenu",null);_.E([_.s6("topLevelIconsOnly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bB.prototype,"resetFlexibleItems",null);_.E([_.fF("tonalOverride"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bB.prototype,"tonalOverrideChanged",null);
_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bB.prototype,"onPopupOpened",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bB.prototype,"onPopupClosed",null);_.E([_.Ze("yt-popup-canceled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bB.prototype,"onPopupCanceled",null);
_.Q(bB,"ytd-menu-renderer",function(){if(icw===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);icw=A}A=icw;return A},{mode:2});var fok;var wCk;_.Lr=_.c(function(A){var H=A.data;var k=function(){if(H().icon)a:{var W={iconName:H().icon};for(var z=_.wj().resolve(_.M0),u=_.r([12,24]),B=u.next();!B.done;B=u.next()){var h=B.value;B=Object.assign({},W,{iconStyle:"youtube_fill",iconSize:h});h=Object.assign({},W,{iconStyle:"youtube_outline",iconSize:h});if(z.resolveIcon(B)){W=B;break a}if(z.resolveIcon(h)){W=h;break a}}W=void 0}else W=void 0;return W};
A={};var d={};return _.x("badge-shape",{class:_.ER("yt-badge-shape",function(){return MQC(H().type)},(A["yt-badge-shape--overlay"]=function(){return H().isOverlay},A["yt-badge-shape--ads-include-dot"]=function(){return H().adsIncludeDot},A["yt-badge-shape--thumbnail-badge"]=function(){a:switch(H().type){case 17:case 18:case 19:var W=!0;
break a;default:W=!1}return W},A["yt-badge-shape--status-badge"]=function(){a:switch(H().type){case 12:case 13:case 14:case 15:case 16:var W=!0;
break a;default:W=!1}return W},A["yt-badge-shape--no-text"]=function(){return!H().text},A["yt-badge-shape--modern"]=function(){return H().modern||_.b("web_modern_badge_shape")},A["yt-badge-shape--typography"]=function(){a:{var W=H();
if(W.shouldInheritTypography)switch(W.type){case 0:case 1:case 9:W=!0;break a;default:W=!1}else W=!1}return!W},A)),
style:_.Mt({"background-color":function(){var W;return(W=H().customColors)==null?void 0:W.backgroundColor}}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},_.x(_.R,{cond:function(){return H().animation},
then:function(W){return _.x(_.Zb,{className:"yt-badge-shape__icon",data:W,animationName:function(){return W().animationConfig.name||""}})}}),_.x(_.R,{cond:function(){var W;
return k()&&!((W=H())==null?0:W.animation)},
then:function(){return _.x("div",{class:"yt-badge-shape__icon"},_.x(_.zc,{data:function(){return k()}}))}}),_.x("div",{class:_.ER("yt-badge-shape__text",(d["yt-badge-shape__text--clip-text-overflow"]=function(){return H().clipTextOverflow},d["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(H().numBadgesInRow||0)>1},d))},function(){var W;
return(W=H())==null?void 0:W.text}))},"Ea");
_.Lr.idomCompat=!0;_.Sw(_.Lr,"badge-shape",{props:{data:_.Ih}});var vx=function(){var A=_.a.apply(this,arguments)||this;A.systemIcons=_.b("kevlar_system_icons");A.animated=_.b("animated_live_badge_icon");A.useBadgeShape=_.b("web_badge_shape_defrag");return A};
_.I(vx,_.a);_.q=vx.prototype;_.q.addTooltips=function(){for(var A=_.Va(this.hostElement).querySelectorAll(".badge"),H=0,k;k=A[H++];){var d=this.repeatElement.itemForElement(k);k=_.Va(k);k.lastChild&&k.lastChild.is==="tp-yt-paper-tooltip"&&k.removeChild(k.lastChild);if(d=d.metadataBadgeRenderer&&d.metadataBadgeRenderer.tooltip){var W=_.Db("tp-yt-paper-tooltip");(0,_.t1)(W).textContent=d;W.setAttribute("position","top");W.setAttribute("aria-hidden","true");k.appendChild(W)}}};
_.q.badgesChanged=function(){var A=this;_.Yf().parkOrScheduleJob(function(){A.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.q.standaloneRoundedBadgeChanged=function(){var A=this.useRoundedBadge?this.useRoundedBadge:void 0;A&&(this.useRoundedBadge=A)};
_.q.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.q.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.q.computeStyle=function(A){_.b("kevlar_ytb_live_badges")&&A==="BADGE_STYLE_TYPE_LIVE_NOW"&&(A="badge-style-type-live-now-alternate");return A?A.toLowerCase().replace(/_/g,"-"):""};
_.q.computeRole=function(A){return this.computeAriaLabel(A)?"img":"status"};
_.q.computeAriaLabel=function(A){var H;return(A==null?void 0:(H=A.accessibilityData)==null?void 0:H.label)||(A==null?void 0:A.label)};
_.q.computeBadgeShape=function(A){if(A){var H,k;var d=tQA(A.style);var W=NP8(A.style),z=A.label,u=((H=A.accessibilityData)==null?void 0:H.label)||A.label;a:switch(A.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":H=!0;break a;default:H=!1}var B=(k=A.icon)==null?void 0:k.iconType;a:switch(A.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":A=!0;break a;default:A=!1}d={type:d,brNzRatingBadgeType:W,text:z,accessibilityText:u,
isOverlay:H,icon:B!=="PREMIUM"?B:void 0,modern:_.b("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:A}}else d={};return d};
_.q.updateComputedBadges=function(A,H,k){var d=this;(H=H?[H]:k?[k]:void 0)?this.computedBadges=H:this.computedBadges=A==null?void 0:A.filter(function(W){var z;if((z=W.metadataBadgeRenderer)==null?0:z.groups){z=!1;W=_.r(W.metadataBadgeRenderer.groups);for(var u=W.next();!u.done;u=W.next()){u=u.value;var B=void 0;z=z||((B=d.hiddenBadgeGroups)==null?void 0:B.includes(u))}return!z}return!0})};
_.q.useFilledIcons=function(A){return _.b("kevlar_system_icons")&&(A==="AUDIO_BADGE"||A==="CHECK_CIRCLE_THICK"||A==="OFFICIAL_ARTIST_BADGE"||A==="SPONSORSHIP_STAR"||A==="PERSON_RADAR_FILLED"||A==="PERSON_RADAR")};
_.q.computeBadgeShapeStyle=function(A){return this.useBadgeShape?A==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||A==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":A==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.q.computeIcon=function(A){var H,k;A=A==null?void 0:(H=A.metadataBadgeRenderer)==null?void 0:(k=H.icon)==null?void 0:k.iconType;if(A!=="PREMIUM"&&A)return _.N0(A)};
_.q.computeStandaloneBadge=function(A){var H;A=A==null?void 0:(H=A.icon)==null?void 0:H.iconType;return A==="PREMIUM_STANDALONE"||A==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
vx.prototype.hiddenBadgeGroupsChanged=vx.prototype.hiddenBadgeGroupsChanged;vx.prototype.standaloneBadgeChanged=vx.prototype.standaloneBadgeChanged;vx.prototype.standaloneRoundedBadgeChanged=vx.prototype.standaloneRoundedBadgeChanged;vx.prototype.badgesChanged=vx.prototype.badgesChanged;_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"hidden",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],vx.prototype,"componentBehavior",void 0);
_.E([_.C(),_.l("design:type",Array)],vx.prototype,"badges",void 0);_.E([_.C(),_.l("design:type",Object)],vx.prototype,"topStandaloneBadge",void 0);_.E([_.C(),_.l("design:type",Object)],vx.prototype,"bottomStandaloneBadge",void 0);_.E([_.C(),_.l("design:type",Object)],vx.prototype,"computedBadges",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"mediumFontAdBadge",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"useRoundedBadge",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"largeFontAdBadge",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"overlayAd",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"overlayPremium",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"noDotAdBadge",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"collectionTruncate",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"isThumbnailBadge",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],vx.prototype,"wrapBadges",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Number)],vx.prototype,"numBadgesInRow",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vx.prototype,"systemIcons",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vx.prototype,"animated",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vx.prototype,"useBadgeShape",void 0);_.E([_.C({value:[]}),_.l("design:type",Array)],vx.prototype,"hiddenBadgeGroups",void 0);_.E([_.ol("#repeat"),_.l("design:type",BW)],vx.prototype,"repeatElement",void 0);_.E([_.s6("badges"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vx.prototype,"badgesChanged",null);
_.E([_.s6("useRoundedBadge"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vx.prototype,"standaloneRoundedBadgeChanged",null);_.E([_.s6("topStandaloneBadge","bottomStandaloneBadge"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vx.prototype,"standaloneBadgeChanged",null);_.E([_.s6("hiddenBadgeGroups"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vx.prototype,"hiddenBadgeGroupsChanged",null);
_.E([_.O6({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],vx);
var oSA=_.Vu()(vx,"ytd-badge-supported-renderer",function(){if(wCk===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);wCk=A}A=wCk;return A},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:2});var y9=function(){var A=_.a.apply(this,arguments)||this;A.iconType="STAR";A.plaMedium=_.b("enable_pla_resizing_for_desktop_medium");A.plaLarge=_.b("enable_pla_resizing_for_desktop_large");A.plaExtraLarge=_.b("enable_pla_resizing_for_desktop_extra_large");A.standardizeIconSize=_.b("kevlar_system_icons");A.mediaHoverOverlayInitialVisibility=_.b("enable_top_landscape_image_button_command_web");A.noBottomMargin=!1;A.thumbnailObjectFit="CONTAIN";A.thumbnailFitHeight=!0;A.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return A};
_.I(y9,_.a);_.q=y9.prototype;_.q.created=function(){this.activeView=new Ul(this.hostElement)};
_.q.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"}}}};
_.q.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",y9.JSC$15098_DEFAULT_CLICK_LOCATION_BEHAVIOR,y9.JSC$15098_CLICK_LOCATION_ID_MAP))};
_.q.onTap=function(A){this.onTapOrClick(A)};
_.q.onTapOrClick=function(A){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,A,!1)};
_.q.updateMediaBackgroundImage=function(){var A=this.get("data.image.thumbnail.thumbnails");A&&(A=_.C3(A,0))&&_.NH(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+A+")"})};
_.q.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var A=0;A<this.data.impressionEndpoints.length;A++){var H=this.data.impressionEndpoints[A];H.clickTrackingParams&&delete H.clickTrackingParams;_.wj().resolve(_.J7).resolveCommand(H,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var k;((k=this.data)==null?0:k.activeView)&&lu(this.activeView,this.data.activeView)}};
_.q.handleMuteAd=function(){};
_.q.attached=function(){var A=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tB(A.activeView)})};
_.q.detached=function(){_.b("stop_av_measurement_on_detach")&&tB(this.activeView)};
_.nP.Object.defineProperties(y9.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.titleText)return"";var H;return _.$r("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((H=this.data)==null?void 0:H.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.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 A;return!((A=this.data)==null||!A.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"}}});
y9.prototype.onTap=y9.prototype.onTap;y9.prototype.dataChanged=y9.prototype.dataChanged;
y9.JSC$15098_CLICK_LOCATION_ID_MAP=_.b("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"]]);
y9.JSC$15098_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.b("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"}];_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.JB),_.l("design:type",Object)],y9.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],y9.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],y9.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.P([_.nM.YtActionHandlerBehavior]),_.l("design:type",Object)],y9.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],y9.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],y9.prototype,"clickCommand",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],y9.prototype,"miniMode",void 0);_.E([_.C(),_.l("design:type",String)],y9.prototype,"iconType",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],y9.prototype,"plaMedium",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],y9.prototype,"plaLarge",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],y9.prototype,"plaExtraLarge",void 0);_.E([_.G("data.titleText"),_.l("design:type",String),_.l("design:paramtypes",[])],y9.prototype,"titleAriaLabel",null);_.E([_.G("data.rating"),_.l("design:type",Object),_.l("design:paramtypes",[])],y9.prototype,"getRating",null);_.E([_.G("data.price"),_.l("design:type",Object),_.l("design:paramtypes",[])],y9.prototype,"getPrice",null);
_.E([_.G("data.thirdLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],y9.prototype,"getThirdLine",null);_.E([_.G("data.fourthLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],y9.prototype,"getFourthLine",null);_.E([_.G("data.fifthLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],y9.prototype,"getFifthLine",null);_.E([_.G("getRating"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],y9.prototype,"computeRatingHidden",null);
_.E([_.G("getPrice"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],y9.prototype,"computePriceHidden",null);_.E([_.G("getThirdLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],y9.prototype,"computeThirdLineHidden",null);_.E([_.G("getFourthLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],y9.prototype,"computeFourthLineHidden",null);_.E([_.G("getFifthLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],y9.prototype,"computeFifthLineHidden",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data.energyIcon"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],y9.prototype,"hasEnergyIcon",null);_.E([_.G("computePriceHidden","computeRatingHidden"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],y9.prototype,"computeSecondaryTextHidden",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],y9.prototype,"standardizeIconSize",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],y9.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],y9.prototype,"noBottomMargin",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.layout"),_.l("design:type",String),_.l("design:paramtypes",[])],y9.prototype,"layout",null);_.E([_.G("data.layout"),_.l("design:type",Object),_.l("design:paramtypes",[])],y9.prototype,"mediaThumbnailWidth",null);
_.E([_.G("layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],y9.prototype,"useRoundedBadge",null);_.E([_.C(),_.l("design:type",String)],y9.prototype,"thumbnailObjectFit",void 0);_.E([_.C(),_.l("design:type",Object)],y9.prototype,"thumbnailFitHeight",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y9.prototype,"dataChanged",null);
_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],y9.prototype,"onTap",null);_.E([_.O6({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],y9);
_.Q(y9,"ytd-display-ad-renderer",function(){if(fok!==void 0)return fok;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return fok=A},{mode:1});var $dZ;var A4J;var HeA;var nSI=new Map;var sJA=!1;var jZ=function(){var A=_.a.apply(this,arguments)||this;A.DEFAULT_TOOLTIP_OFFSET="10";A.TOOLTIP_OFFSET_NO_BANNER="-8";A.badges=null;A.noEndpoints=!1;A.wrapText=!1;A.forceVerified=!1;A.tooltipPosition="top";A.compactStyle=!1;A.height=0;A.lineHeight=0;return A};
_.I(jZ,_.a);_.q=jZ.prototype;_.q.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.q.attached=function(){var A=this;this.observer=new MutationObserver(function(H,k){A.handleResized();k.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.q.detached=function(){this.observer&&this.observer.disconnect()};
_.q.logTooltipEvent=function(){_.b("kevlar_wiz_tooltip_event_killswitch")||sJA||(_.ZcI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),sJA=!0)};
_.q.handleWindowResized=function(){this.handleResized()};
_.q.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")))};
_.q.onHeightChanged=function(){if(this.verified){var A=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.pZ("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=A:this.textContainerEl.style.marginRight=A}};
_.q.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.pZ("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.q.handleResized=function(){var A=this;this.verified&&_.IE.addLowPriorityJob(function(){A.fitBackgroundToText();var H=getComputedStyle(A.hostElement).lineHeight;H&&(H=H.match(/\d+/))&&H.length&&(A.lineHeight=Number(H[0]));A.height=A.lineHeight&&!A.wrapText?A.lineHeight:A.textEl.offsetHeight})};
_.q.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var A=document.createRange(),H=_.Va(this.textEl).children;H.length>0?A.selectNodeContents(H[0]):A.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(A.getBoundingClientRect().width)+"px"}};
_.q.computeChannelBadgeStyle=function(A){var H;if((A==null?0:(H=A.runs)==null?0:H.length)&&A.runs[0].textColor)return"--ytd-badge-icon-color:"+_.iw(A.runs[0].textColor)+";"};
_.nP.Object.defineProperties(jZ.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"?_.Yu(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var A=this.get("badges.0.metadataBadgeRenderer.tooltip");if(A)return A}return _.PK(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
jZ.prototype.onLineHeightChanged=jZ.prototype.onLineHeightChanged;jZ.prototype.onHeightChanged=jZ.prototype.onHeightChanged;jZ.prototype.onChannelNameChanged=jZ.prototype.onChannelNameChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],jZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],jZ.prototype,"badges",void 0);_.E([_.C(),_.l("design:type",Object)],jZ.prototype,"channelName",void 0);
_.E([_.C(),_.l("design:type",Object)],jZ.prototype,"noEndpoints",void 0);_.E([_.C(),_.l("design:type",Object)],jZ.prototype,"wrapText",void 0);_.E([_.C(),_.l("design:type",Object)],jZ.prototype,"forceVerified",void 0);_.E([_.C(),_.l("design:type",Object)],jZ.prototype,"tooltipPosition",void 0);_.E([_.C(),_.l("design:type",String)],jZ.prototype,"tooltip",void 0);_.E([_.C(),_.l("design:type",Boolean)],jZ.prototype,"hasChannelArt",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jZ.prototype,"compactStyle",void 0);_.E([_.ol("#text-container"),_.l("design:type",HTMLElement)],jZ.prototype,"textContainerEl",void 0);_.E([_.ol("#text"),_.l("design:type",Object)],jZ.prototype,"textEl",void 0);_.E([_.ol("#verified-tooltip"),_.l("design:type",HTMLElement)],jZ.prototype,"verifiedTooltip",void 0);_.E([_.C(),_.l("design:type",Object)],jZ.prototype,"height",void 0);
_.E([_.C(),_.l("design:type",Object)],jZ.prototype,"lineHeight",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("badges","forceVerified"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jZ.prototype,"verified",null);_.E([_.G("badges","verified"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jZ.prototype,"hideBadges",null);_.E([_.G("channelName"),_.l("design:type",Object),_.l("design:paramtypes",[])],jZ.prototype,"formattedName",null);
_.E([_.G("badges","verified","formattedName"),_.l("design:type",String),_.l("design:paramtypes",[])],jZ.prototype,"tooltipText",null);_.E([_.G("hasChannelArt"),_.l("design:type",String),_.l("design:paramtypes",[])],jZ.prototype,"tooltipOffset",null);_.E([_.fF("channelName"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jZ.prototype,"onChannelNameChanged",null);
_.E([_.fF("height"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jZ.prototype,"onHeightChanged",null);_.E([_.fF("lineHeight","height"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jZ.prototype,"onLineHeightChanged",null);_.E([_.O6({is:"ytd-channel-name",disableElementRegistration:!0})],jZ);
_.Q(jZ,"ytd-channel-name",function(){if(HeA!==void 0)return HeA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return HeA=A},{mode:2});var Ir=function(){var A=_.a.apply(this,arguments)||this;A.standardizeIconSize=_.b("kevlar_system_icons");return A};
_.I(Ir,_.a);Ir.prototype.basicPaletteChanged=function(){var A;(A=this.data.color)!=null&&A.basicColorPaletteData&&_.qN(this.hostElement,this.data.color.basicColorPaletteData)};
Ir.prototype.useFilledIcons=function(A){return _.b("kevlar_system_icons")&&(A==="CHECK_CIRCLE_THICK"||A==="OFFICIAL_ARTIST_BADGE")};
_.nP.Object.defineProperties(Ir.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return this.data.authorCreator||((A=this.data)==null?void 0:(H=A.color)==null?void 0:(k=H.basicColorPaletteData)==null?void 0:k.backgroundColor)}}});
Ir.prototype.basicPaletteChanged=Ir.prototype.basicPaletteChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ir.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Ir.prototype,"standardizeIconSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.authorUnifiedVerified"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ir.prototype,"verified",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ir.prototype,"creator",null);_.E([_.fF("data.color.basicColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ir.prototype,"basicPaletteChanged",null);_.E([_.O6({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Ir);
_.Q(Ir,"ytd-author-comment-badge-renderer",function(){if(A4J!==void 0)return A4J;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return A4J=A},{mode:1});var kIN;var Y0=function(){return _.a.apply(this,arguments)||this};
_.I(Y0,_.a);Y0.prototype.computeThumbnailWidth=function(A){if(A==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Y0.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],Y0.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],Y0.prototype,"surface",void 0);
_.E([_.C({reflectToAttribute:!0,value:_.b("enable_shrink_image_size_on_web_posts_singleton")}),_.l("design:type",Boolean)],Y0.prototype,"searchSxsUx",void 0);_.E([_.C({reflectToAttribute:!0,value:_.b("enable_community_page_on_desktop")}),_.l("design:type",Boolean)],Y0.prototype,"useSmallerPostImageAttachments",void 0);_.E([_.O6({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Y0);
_.Q(Y0,"ytd-backstage-image-renderer",function(){if(kIN!==void 0)return kIN;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return kIN=A},{mode:1});var dkN;var Px=function(){var A=_.a.apply(this,arguments)||this;A.isLoading=!1;A.selectedItemIndex=-1;return A};
_.I(Px,_.a);_.q=Px.prototype;_.q.computeIsChannelOwner=function(A){if(!A)return!0;A=A[0];return!(A&&(A.signinEndpoint||A.selectServiceEndpoint))};
_.q.computeIsImagePoll=function(A){return(A==null?void 0:A.type)==="POLL_TYPE_IMAGE"};
_.q.computeIsTotalVotesDisabled=function(A){return!(A==null?0:A.totalVotes)};
_.q.thumbnailSrc=function(A){var H,k,d,W;return(A==null?0:(H=A.thumbnails)==null?0:(k=H[0])==null?0:k.url)?_.fx((d=A.thumbnails)==null?void 0:(W=d[0])==null?void 0:W.url):void 0};
_.q.progressWidth=function(A){return"width:"+(A?A*100:0)+"%;"};
_.q.textAreaWidth=function(A){return this.isImagePoll?null:"width:"+(A?A*100:0)+"%;"};
_.q.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.q.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var A=this.data.choices,H=0;H<A.length;H++)if(A[H].selected){this.selectedItemIndex=H;break}};
_.q.onPopupClosed=function(A,H){A=Number(this.pollVotes.selected);H.confirmed&&(this.selectChoice(A,!1),_.Ud(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.q.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.q.onYtCommentPollRevert=function(A,H){H&&(this.selectChoice(H.selectedChoiceIndex,!0),this.set("data.totalVotes",H.totalVotes))};
_.q.onYtServiceRequestSent=function(A,H){if(H.actions)for(A=0;A<H.actions.length;A++){var k=H.actions[A];_.L(k,ke)&&this.set("data.totalVotes",_.L(k,ke).totalVotes)}};
_.q.onYtServiceRequestCompleted=function(A){var H=this.get("detail.data.actionResults.0.feedback",A);A=this.get("detail.data.actionResults.0.status",A);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,A==="STATUS_FAILED"?_.Ed(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.q.getEndpoint=function(A,H){return H===A?this.data.choices[H].deselectServiceEndpoint||null:this.data.choices[A].selectServiceEndpoint||null};
_.q.selectChoice=function(A,H){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var k=0;k<this.data.choices.length;k++){var d;if(A===this.selectedItemIndex){var W=!1;var z=d=null}else d=(W=k===A)?this.data.choices[k].voteRatioIfSelected:this.data.choices[k].voteRatioIfNotSelected,z=W?this.data.choices[k].votePercentageIfSelected:this.data.choices[k].votePercentageIfNotSelected;this.set("data.choices."+k+".voteRatio",d);
this.set("data.choices."+k+".votePercentage",z);this.set("data.choices."+k+".selected",W)}H||(this.isLoading=!0,(H=this.getEndpoint(A,this.selectedItemIndex))&&_.wj().resolve(_.J7).resolveCommand(H,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===A?-1:A};
_.nP.Object.defineProperties(Px.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Px.prototype.onYtServiceRequestCompleted=Px.prototype.onYtServiceRequestCompleted;Px.prototype.onYtServiceRequestSent=Px.prototype.onYtServiceRequestSent;Px.prototype.onYtCommentPollRevert=Px.prototype.onYtCommentPollRevert;Px.prototype.onPopupClosed=Px.prototype.onPopupClosed;Px.prototype.dataChanged=Px.prototype.dataChanged;_.E([_.P(_.jh),_.l("design:type",Object)],Px.prototype,"paperItemBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],Px.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Px.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Px.prototype,"isLoading",void 0);_.E([_.C({computed:"computeIsChannelOwner(data.choices)"}),_.l("design:type",Boolean)],Px.prototype,"isChannelOwner",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.l("design:type",Boolean)],Px.prototype,"isImagePoll",void 0);_.E([_.C({computed:"computeIsTotalVotesDisabled(data)"}),_.l("design:type",Boolean)],Px.prototype,"isTotalVotesDisabled",void 0);_.E([_.C(),_.l("design:type",Object)],Px.prototype,"previousPollInfo",void 0);_.E([_.C(),_.l("design:type",Object)],Px.prototype,"selectedItemIndex",void 0);_.E([_.ol("#poll-votes"),_.l("design:type",Object)],Px.prototype,"pollVotes",void 0);
_.E([_.G("isChannelOwner"),_.l("design:type",Object),_.l("design:paramtypes",[])],Px.prototype,"endpointStyle",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Px.prototype,"dataChanged",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Px.prototype,"onPopupClosed",null);
_.E([_.Ze("yt-comment-poll-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Px.prototype,"onYtCommentPollRevert",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],Px.prototype,"onYtServiceRequestSent",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Px.prototype,"onYtServiceRequestCompleted",null);_.E([_.O6({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Px);
_.Q(Px,"ytd-backstage-poll-renderer",function(){if(dkN!==void 0)return dkN;var A=document.createElement("template");_.Y(A,'\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" aria-selected$="[[item.selected]]">\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return dkN=A},{mode:2});var WYA;var zzk={autoplay:!1,loop:!1},qLw={simpleText:""},GX=function(){var A=_.a.apply(this,arguments)||this;A.isLoading=!1;A.usesPanelLockup=!1;A.selectedItemIndex=-1;A.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},zzk,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});A.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},zzk,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});A.correctnessAnimationProps=[];A.correctnessAnimationRefs=[];return A};
_.I(GX,_.a);_.q=GX.prototype;_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.q.computeIsChannelOwner=function(A){if(!A)return!0;A=A[0];return!(A&&(A.signinEndpoint||A.selectServiceEndpoint))};
_.q.computeIsTotalVotesDisabled=function(A){return!(A==null?0:A.totalVotes)};
_.q.computeIsImageQuiz=function(A){return(A==null?void 0:A.type)==="POLL_TYPE_IMAGE"};
_.q.onExplanationChanged=function(){this.expander.reset()};
_.q.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var A=this.data.choices;if(A){this.maybeInitializeQuizLotties(A);for(var H=0;H<A.length;H++)if(A[H].isSelected||this.isChannelOwner&&A[H].isCorrect){this.selectedItemIndex=H;return}this.selectedItemIndex=-1}}};
_.q.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var A=this.selectedItemIndex,H=Number(this.quizVotes.selected);this.selectChoice(H);this.sendVoteAction(H,A);this.quizVotes.selected=-1;var k;A=!((k=this.data)==null?0:k.enableAnimation);this.maybePlayAnswerAnimations(A)}};
_.q.onYtCommentPollRevert=function(A,H){H&&(this.selectChoice(H.selectedChoiceIndex),this.set("data.totalVotes",H.totalVotes))};
_.q.onYtServiceRequestSent=function(A,H){if(H.actions)for(A=_.r(H.actions),H=A.next();!H.done;H=A.next())(H=_.L(H.value,ke))&&this.set("data.totalVotes",H.totalVotes)};
_.q.onYtServiceRequestCompleted=function(A){var H=this.get("detail.data.actionResults.0.feedback",A);A=this.get("detail.data.actionResults.0.status",A);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,A==="STATUS_FAILED"?_.Ed(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.q.getAnimationPropsForChoiceIndex=function(A,H){return H[A]};
_.q.maybePlayAnswerAnimations=function(A){A=A===void 0?!1:A;var H;if((H=this.data)!=null&&H.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){H=_.r(this.correctnessAnimationRefs);for(var k=H.next();!k.done;k=H.next()){var d=void 0,W=void 0;(d=k.value)==null||(W=d.lottieEl)==null||W.stop()}if(!(this.selectedItemIndex<0)){H=0;A&&(H=this.isCorrect?37:25);var z,u;(z=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(u=z.lottieEl)==null||u.goToAndPlay(A?H:0,!0);if(!(this.isCorrect||
(z=this.data.choices.findIndex(function(T){return T.isCorrect}),z<0))){var B,h;
(h=(B=this.correctnessAnimationRefs[z])==null?void 0:B.lottieEl)==null||h.goToAndPlay(37,!0);var O;B=(O=this.fadeContainers)==null?void 0:O.item(z);!A&&B&&this.fadeIn(B)}}}};
_.q.thumbnailSrc=function(A){var H,k,d,W;return(A==null?0:(H=A.thumbnails)==null?0:(k=H[0])==null?0:k.url)?_.fx((d=A.thumbnails)==null?void 0:(W=d[0])==null?void 0:W.url):void 0};
_.q.a11yVotedText=function(A,H){var k,d,W=((k=this.data)==null?void 0:(d=k.correctVotedText)==null?void 0:d.simpleText)||"",z,u;k=((z=this.data)==null?void 0:(u=z.votedText)==null?void 0:u.simpleText)||"";if(!H)return"";var B,h;if((B=this.data)==null?0:(h=B.choices)==null?0:h[A].isCorrect)return W;var O,T;return((O=this.data)==null?0:(T=O.choices)==null?0:T[A].isSelected)?k:""};
_.q.getEndpoint=function(A,H){return H===A?this.data.choices[A].deselectServiceEndpoint||null:this.data.choices[A].selectServiceEndpoint||null};
_.q.sendVoteAction=function(A,H){if(A=this.getEndpoint(A,H))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(A)};
_.q.selectChoice=function(A){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var H=0;H<this.data.choices.length;H++)this.set("data.choices."+H+".isSelected",A===this.selectedItemIndex?!1:H===A);this.selectedItemIndex=this.selectedItemIndex===A?-1:A};
_.q.maybeInitializeQuizLotties=function(A){var H=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=A.map(function(k){return{animationConfig:k.isCorrect?H.baseCorrectLottiePlayerAnimationConfig:H.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){H.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(k){return k.animationRef||{}})};
_.q.fadeIn=function(A){A.classList.add("fade-in");_.p3(_.IE,function(){A.classList.remove("fade-in")},900)};
_.nP.Object.defineProperties(GX.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.PK(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 A,H;return((A=this.data)==null?void 0:(H=A.choices)==null?void 0:H.some(function(k){return k.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null||!A.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?qLw:this.data.choices[this.selectedItemIndex].explanation||qLw}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null||!A.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
GX.prototype.onYtServiceRequestCompleted=GX.prototype.onYtServiceRequestCompleted;GX.prototype.onYtServiceRequestSent=GX.prototype.onYtServiceRequestSent;GX.prototype.onYtCommentPollRevert=GX.prototype.onYtCommentPollRevert;GX.prototype.dataChanged=GX.prototype.dataChanged;GX.prototype.onExplanationChanged=GX.prototype.onExplanationChanged;_.E([_.P(_.jh),_.l("design:type",Object)],GX.prototype,"paperItemBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],GX.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.Xj.YtTaskEmitterBehavior),_.l("design:type",Object)],GX.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],GX.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],GX.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],GX.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",Object)],GX.prototype,"usesPanelLockup",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.l("design:type",Boolean)],GX.prototype,"isChannelOwner",void 0);_.E([_.C({computed:"computeIsTotalVotesDisabled(data)"}),_.l("design:type",Boolean)],GX.prototype,"isTotalVotesDisabled",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.l("design:type",Boolean)],GX.prototype,"isImageQuiz",void 0);_.E([_.C(),_.l("design:type",Object)],GX.prototype,"previousQuizInfo",void 0);_.E([_.C(),_.l("design:type",Object)],GX.prototype,"selectedItemIndex",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data","usesPanelLockup"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GX.prototype,"shouldUseModernUi",null);
_.E([_.$I(".fade-container"),_.l("design:type",Object)],GX.prototype,"fadeContainers",void 0);_.E([_.C(),_.l("design:type",Array)],GX.prototype,"correctnessAnimationProps",void 0);_.E([_.G("explanation","showCorrectAnswer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GX.prototype,"showExplanation",null);_.E([_.G("isChannelOwner","isAttempted"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GX.prototype,"showCorrectAnswer",null);
_.E([_.G("isChannelOwner","isAttempted","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GX.prototype,"isQuizAnsweringDisabled",null);_.E([_.G("isQuizAnsweringDisabled"),_.l("design:type",Object),_.l("design:paramtypes",[])],GX.prototype,"endpointStyle",null);_.E([_.G("data","selectedItemIndex"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GX.prototype,"isAttempted",null);
_.E([_.G("data","selectedItemIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],GX.prototype,"explanation",null);_.E([_.G("data","selectedItemIndex"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GX.prototype,"isCorrect",null);_.E([_.ol("ytd-expander"),_.l("design:type",Object)],GX.prototype,"expander",void 0);_.E([_.ol("#quiz-votes"),_.l("design:type",Object)],GX.prototype,"quizVotes",void 0);
_.E([_.fF("explanation"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GX.prototype,"onExplanationChanged",null);_.E([_.fF("data","isChannelOwner"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GX.prototype,"dataChanged",null);_.E([_.Ze("yt-comment-quiz-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],GX.prototype,"onYtCommentPollRevert",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],GX.prototype,"onYtServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],GX.prototype,"onYtServiceRequestCompleted",null);_.E([_.O6({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],GX);
_.Q(GX,"ytd-backstage-quiz-renderer",function(){if(WYA!==void 0)return WYA;var A=document.createElement("template");_.Y(A,'\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="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return WYA=A},{mode:1});var r4Z;var Fm=function(){return _.a.apply(this,arguments)||this};
_.I(Fm,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Fm.prototype,"data",void 0);_.E([_.O6({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Fm);
_.Q(Fm,"ytd-post-uploaded-video-renderer",function(){if(r4Z!==void 0)return r4Z;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return r4Z=A},{mode:1});var uHw;var Xm=function(){return _.a.apply(this,arguments)||this};
_.I(Xm,_.a);Xm.prototype.useFilledIcons=function(A){return A==="SPONSORSHIP_STAR"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Xm.prototype,"data",void 0);_.E([_.O6({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Xm);
var BQw=_.Vu()(Xm,"ytd-sponsors-only-badge-renderer",function(){if(uHw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);uHw=A}A=uHw;return A},{allowedProps:["data"],
mode:1});var ezw;var Dk=function(){return _.a.apply(this,arguments)||this};
_.I(Dk,_.a);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Dk.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Dk.prototype,"data",void 0);_.E([_.O6({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Dk);
_.Q(Dk,"ytd-child-video-renderer",function(){if(ezw!==void 0)return ezw;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ezw=A},{mode:1});var xkN;var ieQ;var SZ=function(){var A=_.a.apply(this,arguments)||this;A.size=0;A.fallbackImageSize={height:void 0,width:9999};A.webModernCollections=!1;return A};
_.I(SZ,_.a);_.q=SZ.prototype;_.q.computeBlurredImageSize=function(A){return A?{height:A*2,width:A*2}:this.fallbackImageSize};
_.q.computeImageSize=function(A){return A?{height:A,width:A}:this.fallbackImageSize};
_.q.computeObjectFit=function(A){return A?"FILL":"CONTAIN"};
_.q.computePreserve=function(A){return A?!0:!1};
_.q.setBackground=function(){var A,H;if((A=this.data)==null?0:(H=A.thumbnail)==null?0:H.sampledThumbnailColor)A=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+A.red+","+A.green+","+A.blue+",1)"};
SZ.prototype.setBackground=SZ.prototype.setBackground;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],SZ.prototype,"watchFeedThumbnail",void 0);_.E([_.C(),_.l("design:type",Object)],SZ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],SZ.prototype,"size",void 0);
_.E([_.C({computed:"computeBlurredImageSize(size)"}),_.l("design:type",Object)],SZ.prototype,"blurredImageSize",void 0);_.E([_.C({computed:"computeImageSize(size)"}),_.l("design:type",Object)],SZ.prototype,"imageSize",void 0);_.E([_.C({computed:"computePreserve(size)"}),_.l("design:type",String)],SZ.prototype,"preserve",void 0);_.E([_.C({computed:"computeObjectFit(size)"}),_.l("design:type",String)],SZ.prototype,"objectFit",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],SZ.prototype,"webModernCollections",void 0);_.E([_.fF("data.thumbnail.sampledThumbnailColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SZ.prototype,"setBackground",null);_.E([_.O6({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],SZ);
_.Q(SZ,"ytd-playlist-custom-thumbnail-renderer",function(){if(ieQ!==void 0)return ieQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ieQ=A},{mode:1});var hzi;var Cr=function(){return _.a.apply(this,arguments)||this};
_.I(Cr,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Cr.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],Cr.prototype,"width",void 0);_.E([_.O6({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Cr);
_.Q(Cr,"ytd-playlist-video-thumbnail-renderer",function(){if(hzi!==void 0)return hzi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return hzi=A},{mode:1});var OeQ;var Kr=function(){return _.a.apply(this,arguments)||this};
_.I(Kr,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Kr.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],Kr.prototype,"width",void 0);_.E([_.O6({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Kr);
_.Q(Kr,"ytd-show-custom-thumbnail-renderer",function(){if(OeQ!==void 0)return OeQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return OeQ=A},{mode:1});var Rzw;var ar=function(){return _.a.apply(this,arguments)||this};
_.I(ar,_.a);ar.prototype.useFilledIcons=function(A){return A==="MUSIC"||A==="COURSE"};
ar.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=OJ(this.overlayColor,"0.8");else if(this.overlayColor){var A=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+A.red+","+A.green+","+A.blue+",0.8)"}};
_.nP.Object.defineProperties(ar.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)}}});
ar.prototype.overlayColorChanged=ar.prototype.overlayColorChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ar.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],ar.prototype,"overlayColor",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.icon","data.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],ar.prototype,"overlayStyle",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data.icon","data.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],ar.prototype,"overlayTextStyle",null);_.E([_.fF("overlayColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ar.prototype,"overlayColorChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],ar);
_.Q(ar,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Rzw!==void 0)return Rzw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Rzw=A},{mode:1});var TQw;var cx=function(){var A=_.a.apply(this,arguments)||this;A.active=!1;return A};
_.I(cx,_.a);cx.prototype.computeIsSpinnerHidden=function(A){return(A==null?void 0:A.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
cx.prototype.computeOverlayIcon=function(A){return(A==null?void 0:A.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(A==null?void 0:A.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cx.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],cx.prototype,"active",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],cx);
_.Q(cx,"ytd-thumbnail-overlay-downloading-renderer",function(){if(TQw!==void 0)return TQw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return TQw=A},{mode:1});var mkA;var pr=function(){return _.a.apply(this,arguments)||this};
_.I(pr,_.a);_.nP.Object.defineProperties(pr.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pr.prototype,"data",void 0);_.E([_.G("data.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],pr.prototype,"text",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],pr);
_.Q(pr,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(mkA!==void 0)return mkA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return mkA=A},{mode:1});var J4w,gWN=function(){if(J4w!==void 0)return J4w;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return J4w=A};var Q9=function(){return _.a.apply(this,arguments)||this};
_.I(Q9,_.a);_.nP.Object.defineProperties(Q9,{template:{configurable:!0,enumerable:!0,get:function(){return gWN()}}});
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Q9.prototype,"animateEqualizer",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Q9);_.Vu()(Q9,"ytd-thumbnail-overlay-equalizer",function(){return gWN()},{allowedProps:["animateEqualizer"],
mode:1});var bew;var V9=function(){var A=_.a.apply(this,arguments)||this;A.nowPlayingBadge=_.b("web_now_playing_badge");A.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return A};
_.I(V9,_.a);V9.prototype.activeChanged=function(){var A=this;_.b("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.No(this,function(){_.Ed(A.hostElement,"yt-playlist-lockup-now-playing-active",A)})};
V9.prototype.onMiniplayerPlayStateChanged=function(A){var H,k=(H=_.L(_.Hi().currentEndpoint,_.Yr))==null?void 0:H.videoId;this.isVideoPlaying=A&&(_.b("web_limit_now_playing_animation_killswitch")||this.videoId===k)};
V9.prototype.activeChanged=V9.prototype.activeChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],V9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],V9.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],V9.prototype,"isVideoPlaying",void 0);_.E([_.C(),_.l("design:type",String)],V9.prototype,"videoId",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],V9.prototype,"equalizerOnly",void 0);_.E([_.C(),_.l("design:type",Boolean)],V9.prototype,"isActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],V9.prototype,"nowPlayingBadge",void 0);_.E([_.fF("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V9.prototype,"activeChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],V9);
_.Q(V9,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(bew!==void 0)return bew;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return bew=A},{mode:1});var LYZ;var Ec=function(){return _.a.apply(this,arguments)||this};
_.I(Ec,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ec.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Ec);
_.Q(Ec,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(LYZ!==void 0)return LYZ;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return LYZ=A},{mode:2});var vW1;var Uc=function(){return _.a.apply(this,arguments)||this};
_.I(Uc,_.a);Uc.prototype.onDurationChanged=function(){var A,H;_.Va(this.hostElement).querySelector("#progress").style.width=((H=(A=this.data)==null?void 0:A.percentDurationWatched)!=null?H:0)+"%"};
Uc.prototype.onDurationChanged=Uc.prototype.onDurationChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Uc.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Uc.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Uc.prototype,"isLive",void 0);_.E([_.fF("data.percentDurationWatched"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uc.prototype,"onDurationChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Uc);
_.Q(Uc,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(vW1!==void 0)return vW1;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return vW1=A},{mode:1});var y4Z;var lB=function(){var A=_.a.apply(this,arguments)||this;A.bottomPanel=!1;A.richGridOverlay=!1;A.watchFeedOverlay=!1;A.isCompact=!1;return A};
_.I(lB,_.a);lB.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.nP.Object.defineProperties(lB.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:(H=A.icon)==null?void 0:H.iconType)==="PLAY_ALL"&&_.b("kevlar_system_icons")}}});
lB.prototype.widthChanged=lB.prototype.widthChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lB.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],lB.prototype,"width",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lB.prototype,"bottomPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lB.prototype,"richGridOverlay",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lB.prototype,"watchFeedOverlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lB.prototype,"isCompact",void 0);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],lB.prototype,"isIconFilled",null);_.E([_.fF("width","watchFeedOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lB.prototype,"widthChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],lB);
_.Q(lB,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(y4Z!==void 0)return y4Z;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return y4Z=A},{mode:1});var jJj;var IxZ=["CLIP","SHORTS"],tz=function(){var A=_.a.apply(this,arguments)||this;A.animated=_.b("animated_live_badge_icon");A.hasIcon=!1;A.updateTimerIntervalId=0;A.timeSinceLive=0;return A};
_.I(tz,_.a);_.q=tz.prototype;_.q.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.q.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.q.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.q.hasIconOrText=function(){var A,H;return!!(((A=this.data)==null?0:A.icon)||((H=this.data)==null?0:H.text))};
_.q.initializeLiveBadgeTimer=function(){var A=this,H,k=(H=this.liveBadgeData)==null?void 0:H.startTimestampSec;if(k&&this.canShowLiveBadgeTimer()){var d;H=Number((d=this.liveBadgeData)==null?void 0:d.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(k);this.updateTimerIntervalId=_.q4(function(){A.canShowLiveBadgeTimer()?A.timeSinceLive++:(A.timeSinceLive=0,window.clearInterval(A.updateTimerIntervalId))},H)}else this.timeSinceLive=0};
_.q.canShowLiveBadgeTimer=function(){var A=Date.now(),H,k;return A<(Number((H=this.liveBadgeData)==null?void 0:H.endTimestampSec)-1)*1E3&&A>Number((k=this.liveBadgeData)==null?void 0:k.startTimestampSec)*1E3};
_.nP.Object.defineProperties(tz.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.foA(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 A;return(A=this.data)==null?void 0:A.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 IxZ.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
tz.prototype.initializeLiveBadgeTimer=tz.prototype.initializeLiveBadgeTimer;tz.prototype.dataChanged=tz.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],tz.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],tz.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],tz.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tz.prototype,"animated",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.l("design:type",Boolean)],tz.prototype,"hideTimeStatus",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tz.prototype,"hasIcon",void 0);_.E([_.C(),_.l("design:type",Object)],tz.prototype,"timeSinceLive",void 0);_.E([_.G("data","timeSinceLive"),_.l("design:type",Object),_.l("design:paramtypes",[])],tz.prototype,"badgeShapeData",null);
_.E([_.G("data","overlayType"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tz.prototype,"hideBadgeShape",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tz.prototype,"dataChanged",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.style"),_.l("design:type",Object),_.l("design:paramtypes",[])],tz.prototype,"overlayStyle",null);
_.E([_.G("data.liveBadgeData"),_.l("design:type",Object),_.l("design:paramtypes",[])],tz.prototype,"liveBadgeData",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.type"),_.l("design:type",Object),_.l("design:paramtypes",[])],tz.prototype,"overlayType",null);_.E([_.G("overlayType","overlayStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tz.prototype,"useFilledIcon",null);
_.E([_.s6("liveBadgeData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tz.prototype,"initializeLiveBadgeTimer",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],tz);
_.Q(tz,"ytd-thumbnail-overlay-time-status-renderer",function(){if(jJj!==void 0)return jJj;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return jJj=A},{mode:2});var YLi;var N6=function(){return _.a.apply(this,arguments)||this};
_.I(N6,_.a);N6.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"}}}}};
N6.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(A){if(this.hasPlaybackProgressBar)return{percentDurationWatched:A.percentDurationWatched}};
N6.prototype.computeHasPlaybackProgressBar=function(A){return!!A.percentDurationWatched&&A.percentDurationWatched>0};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],N6.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.l("design:type",Boolean)],N6.prototype,"hasPlaybackProgressBar",void 0);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],N6);
_.Q(N6,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(YLi!==void 0)return YLi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return YLi=A},{mode:1});var PXw;var GIp=_.c(function(A){var H=A.data;var k=A.children;var d=function(){return!!H().doubleStack},W=function(){return!!H().includeStackHeight};
return _.x("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!H().experimentEnabled}},_.x(_.R,{cond:H,
then:function(){var z={};return _.x(_.sD,null,_.x(_.R,{cond:W,then:function(){var u={};return _.x("div",{class:_.ER("ytCollectionsStackSpacer",(u.ytCollectionsStackSpacerDoubleStack=d,u))})}}),_.x("div",{class:_.ER((z.ytCollectionsStackRelativeStack=W,z))},_.x(_.R,{cond:d,
then:function(){var u={};return _.x("div",{class:_.ER("ytCollectionsStackCollectionStack2",function(){return H().customClassName2ndStack},(u.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return H().enableResponsiveMode},u)),
style:_.Mt({"background-color":function(){return oSX(H())}})})}}),_.x("div",{class:_.ER("ytCollectionsStackCollectionStack1",function(){return H().customClassName1stStack},function(){return wCA(H().thumbnailSize?H().thumbnailSize:"medium")}),
style:_.Mt({"background-color":function(){return oSX(H())}})}),k))}}))},"Fa");_.Sw(GIp,"yt-collections-stack",{props:{data:_.Ih}});var M6=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};A.webModernCollections=!1;A.isSearch=!1;A.isDoubleStack=!1;A.thumbnailSize="medium";return A};
_.I(M6,_.a);_.q=M6.prototype;
_.q.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]]"}}}}}};
_.q.getThumbnailDetails=function(A){if(A!=null&&A.thumbnailRenderer){var H=A.thumbnailRenderer,k;if((k=H.playlistVideoThumbnailRenderer)==null?0:k.thumbnail)return H.playlistVideoThumbnailRenderer.thumbnail;var d;if((d=H.playlistCustomThumbnailRenderer)==null?0:d.thumbnail)return H.playlistCustomThumbnailRenderer.thumbnail;A=A.thumbnailRenderer;var W;if((W=A.showCustomThumbnailRenderer)==null?0:W.thumbnail)return A.showCustomThumbnailRenderer.thumbnail}};
_.q.computeOverlayColor=function(A){var H,k;if((H=this.getThumbnailDetails(A))==null?0:(k=H.darkColorPalette)==null?0:k.section2Color)return this.getThumbnailDetails(A).darkColorPalette.section2Color;var d;return(d=this.getThumbnailDetails(A))==null?void 0:d.sampledThumbnailColor};
_.q.computeWebModernCollections=function(A){if(A==null||!A.thumbnailOverlays)return!1;A=_.r(A.thumbnailOverlays);for(var H=A.next();!H.done;H=A.next()){var k=void 0;if((k=H.value)==null?0:k.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.q.computeNavigationEndpoint=function(A){return X2I(A==null?void 0:A.navigationEndpoint)};
_.nP.Object.defineProperties(M6.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:A==null?void 0:A.sampledThumbnailColor,vibrantColorPalette:A==null?void 0:A.vibrantColorPalette,darkColorPalette:A==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],M6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(ciA),_.l("design:type",Object)],M6.prototype,"ytdThumbnailBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],M6.prototype,"componentBehavior",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],M6.prototype,"watchFeedThumbnail",void 0);_.E([_.C(),_.l("design:type",Number)],M6.prototype,"customThumbnailSize",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],M6.prototype,"hideAria",void 0);_.E([_.C(),_.l("design:type",Object)],M6.prototype,"data",void 0);_.E([_.C({computed:"computeOverlayColor(data)"}),_.l("design:type",Object)],M6.prototype,"overlayColor",void 0);
_.E([_.C({computed:"computeWebModernCollections(data)"}),_.l("design:type",Object)],M6.prototype,"webModernCollections",void 0);_.E([_.C({computed:"computeNavigationEndpoint(data)"}),_.l("design:type",Object)],M6.prototype,"computedNavigationEndpoint",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],M6.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],M6.prototype,"isDoubleStack",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],M6.prototype,"thumbnailSize",void 0);_.E([_.G("data","isDoubleStack","thumbnailSize"),_.l("design:type",Object),_.l("design:paramtypes",[])],M6.prototype,"collectionStack",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],M6);
_.Q(M6,"ytd-playlist-thumbnail",function(){if(PXw!==void 0)return PXw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return PXw=A},{mode:2});var FYp;_.Sw(_.c(function(A){return _.x("yt-text-view-model",{class:_.ER("ytTextViewModelHost")},_.x(_.j$,{text:function(){return A.data().text}}))},"Ga"),"yt-text-view-model",{props:{data:_.Ih}});var nr=function(){var A=_.a.apply(this,arguments)||this;A.noEndpoints=!1;A.amsterdamPostMvp=_.b("web_amsterdam_post_mvp_playlists");A.badges=[];A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.I(nr,_.a);_.q=nr.prototype;_.q.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.q.getMetadata=function(A){if(!A)return[];var H=[],k=A.shortViewCountText||A.viewCountText;k&&H.push(_.PK(k));A.publishedTimeText&&H.push(_.PK(A.publishedTimeText));A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&H.push(_.qF(_.PK(A.upcomingEventData.upcomingEventText),Number(A.upcomingEventData.startTime)));return H};
_.q.observeDataForBylineSeparator=function(){this.data&&_.UJ(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.q.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.iw(this.metadataColor)};
_.q.getSimpleString=function(A){return _.PK(A)};
_.q.isBylineHidden=function(A){return this.noByline||!((A==null?0:A.longBylineText)||(A==null?0:A.shortBylineText))};
_.q.isMetadataHidden=function(A){var H;return((H=this.getMetadata(A))==null?void 0:H.length)===0};
_.q.isBylineMetadataSeparatorHidden=function(A){return this.isMetadataHidden(A)||!this.shouldShowVideoInfo};
_.q.isLongByline=function(A,H){return H&&!(A==null||!A.longBylineText)};
_.nP.Object.defineProperties(nr.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var A;return this.amsterdamPostMvp&&!((A=this.data)==null||!A.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 A;return!((A=this.data)==null||!A.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
nr.prototype.metadataColorChanged=nr.prototype.metadataColorChanged;nr.prototype.observeDataForBylineSeparator=nr.prototype.observeDataForBylineSeparator;_.E([_.P(_.TG),_.l("design:type",Object)],nr.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],nr.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],nr.prototype,"noEndpoints",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],nr.prototype,"isSlimShort",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],nr.prototype,"radioMeta",void 0);_.E([_.C({selector:_.Ot}),_.l("design:type",Object)],nr.prototype,"isGridViewEnabled",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],nr.prototype,"richMeta",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],nr.prototype,"amsterdamPostMvp",void 0);
_.E([_.C(),_.l("design:type",Boolean)],nr.prototype,"noByline",void 0);_.E([_.C({computed:"isLongByline(data, radioMeta)"}),_.l("design:type",Boolean)],nr.prototype,"longByline",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],nr.prototype,"truncateMetadataLine",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],nr.prototype,"miniMode",void 0);_.E([_.C(),_.l("design:type",Number)],nr.prototype,"metadataColor",void 0);
_.E([_.C(),_.l("design:type",Array)],nr.prototype,"badges",void 0);_.E([_.C({selector:_.TK,selectorArgs:["data.videoId"]}),_.l("design:type",String)],nr.prototype,"transferState",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],nr.prototype,"isDownloading",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],nr.prototype,"typographyBump",void 0);_.E([_.ol("#metadata-line"),_.l("design:type",HTMLElement)],nr.prototype,"metadataLine",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nr.prototype,"observeDataForBylineSeparator",null);_.E([_.fF("metadataColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nr.prototype,"metadataColorChanged",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],nr.prototype,"shouldShowVideoInfo",null);
_.E([_.G("badges"),_.l("design:type",String),_.l("design:paramtypes",[])],nr.prototype,"inlineBadgeClass",null);_.E([_.G("longByline"),_.l("design:type",String),_.l("design:paramtypes",[])],nr.prototype,"longBylineClass",null);_.E([_.G("data","longByline"),_.l("design:type",Object),_.l("design:paramtypes",[])],nr.prototype,"bylineText",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],nr.prototype,"hasAttributedBylineText",null);
_.E([_.G("isGridViewEnabled","data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],nr.prototype,"watchFeedBigThumbs",null);_.E([_.O6({is:"ytd-video-meta-block",disableElementRegistration:!0})],nr);
_.Q(nr,"ytd-video-meta-block",function(){if(FYp!==void 0)return FYp;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return FYp=A},{mode:2});_.uL("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Zk=function(){var A=_.a.apply(this,arguments)||this;A.displayItemCount=2;A.isBackstagePlaylist=!1;A.isPostCompactPlaylist=!1;A.shouldShowChannelThumbnail=!1;return A};
_.I(Zk,_.a);_.q=Zk.prototype;_.q.computeFirstVideos=function(A,H){return A===void 0||H===void 0?[]:A.slice(0,H)};
_.q.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var A=this.data.thumbnailRenderer;A.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",A.playlistVideoThumbnailRenderer.thumbnail);A.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",A.playlistCustomThumbnailRenderer.thumbnail)}};
_.q.computeThumbnailHeight=function(A,H,k,d,W){return d?W==="BIG"?280:W==="MASSIVE"?337:234:k?240:H?72:A?118:138};
_.q.computeThumbnailWidth=function(A,H,k,d,W){return d?W==="MEDIUM"?450:W==="BIG"?500:W==="MASSIVE"?600:420:k?360:H?128:A?210:246};
_.q.computeUseBiggerThumbs=function(A){return A&&_.b("enable_desktop_search_bigger_thumbs")};
_.q.computeShouldShowChannelThumbnail=function(A,H){return A&&!(H==null||!H.channelThumbnail)};
_.nP.Object.defineProperties(Zk.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Zk.prototype.dataChanged=Zk.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],Zk.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Zk.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Zk.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Zk.prototype,"displayItemCount",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zk.prototype,"isBackstagePlaylist",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zk.prototype,"isPostCompactPlaylist",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Zk.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.l("design:type",Boolean)],Zk.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.k6("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],Zk.prototype,"biggerThumbsStyle",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Zk.prototype,"isDownloads",void 0);_.E([_.C({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.l("design:type",Object)],Zk.prototype,"shouldShowChannelThumbnail",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zk.prototype,"dataChanged",null);
_.E([_.G("isSearch"),_.l("design:type",String),_.l("design:paramtypes",[])],Zk.prototype,"stackThumbnailSize",null);_.E([_.O6({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Zk);
_.Q(Zk,"ytd-playlist-renderer",function(){if(xkN===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);xkN=A}A=xkN;return A},{mode:1});var XQJ;var Dkj;var fr=function(){var A=_.a.apply(this,arguments)||this;A.startX=0;return A};
_.I(fr,_.a);fr.prototype.onEndpointMouseDown=function(A){this.startX=A.clientX};
fr.prototype.onEndpointClick=function(A){this.startX!==A.clientX&&(A.preventDefault(),A.stopPropagation())};
fr.prototype.computeObjectFit=function(A){return A==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||A==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||A==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
fr.prototype.computeCardStyle=function(A){return A?A.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.nP.Object.defineProperties(fr.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:(H=A.searchRefinementCardRendererStyle)==null?void 0:H.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}}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],fr.prototype,"data",void 0);_.E([_.C({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.l("design:type",Number)],fr.prototype,"objectFit",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.l("design:type",String)],fr.prototype,"cardStyle",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],fr.prototype,"roundContainer",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],fr.prototype,"isAlbumCard",null);_.E([_.G("data","isAlbumCard"),_.l("design:type",Object),_.l("design:paramtypes",[])],fr.prototype,"collectionStack",null);_.E([_.O6({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],fr);
_.Q(fr,"ytd-search-refinement-card-renderer",function(){if(Dkj!==void 0)return Dkj;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Dkj=A},{mode:1});var SLi;var wq=function(){var A=_.a.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.I(wq,_.a);_.E([_.C(),_.l("design:type",Object)],wq.prototype,"data",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],wq.prototype,"componentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],wq.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],wq.prototype,"isRichGrid",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],wq.prototype,"miniMode",void 0);
_.E([_.O6({is:"ytd-game-details-renderer",disableElementRegistration:!0})],wq);
_.Q(wq,"ytd-game-details-renderer",function(){if(SLi!==void 0)return SLi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return SLi=A},{mode:1});var CXA;var KYJ;var or=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return A};
_.I(or,_.a);_.q=or.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.currentStateData=function(A){var H=A||this.data;return H&&H.states&&H.currentStateId!=null?H.states.find(function(k){return k.stateId===H.currentStateId})||null:null};
_.q.currentStateRendererData=function(A){return(A=this.currentStateData(A))&&A.state&&A.state.buttonRenderer?A.state.buttonRenderer:null};
_.q.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())};
_.q.computeButtonIcon=function(A){A=this.currentStateRendererData(A);var H;return(A==null?0:(H=A.icon)==null?0:H.iconType)?A.icon.iconType.toLowerCase():null};
_.q.computeAccessibility=function(A){return(A=this.currentStateRendererData(A))&&A.accessibilityData?A.accessibilityData.accessibilityData||null:null};
_.q.computeButtonClass=function(A){var H=this.currentStateRendererData(A);if(!H)return"";A="";var k=H.style;k&&(A+=k.toLowerCase().replace(/_/g,"-")+" ");(H=H.size)&&(A+=H.toLowerCase().replace(/_/g,"-")+" ");return A.trim()};
_.q.computeServiceEndpoint=function(A){if(!A)return null;var H=A&&A.serviceEndpoint,k=this.get("command.commandMetadata.webCommandMetadata.sendPost",A);return H?H:k&&A.command?A.command:null};
_.q.computeBellMenuItemParams=function(A){var H;A=(H=_.L(A==null?void 0:A.command,_.nH))==null?void 0:H.commands;if(!A||A.length===0)return null;H=_.L(A[0],_.dN);var k,d;return(H==null?0:(k=H.popup)==null?0:(d=k.menuPopupRenderer)==null?0:d.items)?H.popup.menuPopupRenderer.items.map(function(W){return W.menuServiceItemRenderer.trackingParams}):null};
_.q.handleBellMenuOpenSelectedAction=function(A){var H=A.trackingParams,k=this.computeBellMenuItemParams(this.data);this.data&&H&&k&&k.includes(H)&&this.ytRenderButtonBehavior._setButtonIcon(A.icon.iconType.toLowerCase())};
_.q.onYtServiceRequestCompleted=function(A,H){(A=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))&&this.set("data",A)};
_.q.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.q.resetState=function(){this.set("data.currentStateId",3)};
_.q.onYtButtonTapHandler=function(){if(this.data){var A=this.currentStateRendererData(this.data);A&&this.ytRendererBehavior.logExplicitClick(A)}};
or.prototype.onYtServiceRequestError=or.prototype.onYtServiceRequestError;or.prototype.onYtServiceRequestCompleted=or.prototype.onYtServiceRequestCompleted;or.prototype.stateChanged=or.prototype.stateChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],or.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(Hf.YtRenderButtonBehavior),_.l("design:type",Object)],or.prototype,"ytRenderButtonBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],or.prototype,"data",void 0);_.E([_.s6("data","data.currentStateId"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],or.prototype,"stateChanged",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],or.prototype,"onYtServiceRequestCompleted",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],or.prototype,"onYtServiceRequestError",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],or);
_.Q(or,"ytd-subscription-notification-toggle-button-renderer",function(){if(KYJ!==void 0)return KYJ;var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return KYJ=A},{mode:1});var axi;var $0=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};A.tapHandler=function(){if(A.data){var H=A.currentStateRendererData();H&&A.ytRendererBehavior.logExplicitClick(H)}};
return A};
_.I($0,_.a);_.q=$0.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.currentStateData=function(){var A=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(H){return H.stateId===A.data.currentStateId})||null:null};
_.q.currentStateRendererData=function(){var A=this.currentStateData();return A&&A.state&&A.state.buttonRenderer?A.state.buttonRenderer:null};
_.q.computeAccessibilityLabel=function(){var A,H,k;return(A=this.currentStateRendererData())==null?void 0:(H=A.accessibilityData)==null?void 0:(k=H.accessibilityData)==null?void 0:k.label};
_.q.computeBellMenuItemParams=function(){var A,H,k=(H=_.L((A=this.data)==null?void 0:A.command,_.nH))==null?void 0:H.commands;if(!k||k.length===0)return null;A=_.L(k[0],_.dN);var d,W;return(A==null?0:(d=A.popup)==null?0:(W=d.menuPopupRenderer)==null?0:W.items)?A.popup.menuPopupRenderer.items.map(function(z){return z.menuServiceItemRenderer.trackingParams}):null};
_.q.handleBellMenuOpenSelectedAction=function(A){var H=A.trackingParams,k=this.computeBellMenuItemParams();if(this.data&&H&&k&&k.includes(H)&&(A==null||!A.isDisabled)){var d;((d=_.L(A.serviceEndpoint,_.fH))==null?void 0:d.signal)!=="CLIENT_SIGNAL"&&(this.icon=A.icon.iconType)}};
_.q.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.q.onYtServiceRequestCompleted=function(A,H){if(A=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))this.icon=void 0,this.set("data",A)};
_.q.onYtServiceRequestError=function(){this.icon=void 0};
_.nP.Object.defineProperties($0.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data,H=this.textLabel,k=this.hostElement,d=this.computeAccessibilityLabel(),W=this.tapHandler,z=this.isOverlay?"overlay":"mono",u=(A==null?0:A.disableButton)?"disabled":"active";H=H?_.B8(H):void 0;return{style:z,type:"tonal",state:u,size:"M",focused:!1,formattedButtonText:H,iconPosition:"leading-trailing",onTap:A4I(A,W,k),accessibilityLabel:d}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var A=this.currentStateRendererData(),H,k,d=(k=this.icon)!=null?k:A==null?void 0:(H=A.icon)==null?void 0:H.iconType;if(d)return _.N0(d)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.data)==null?void 0:(H=A.secondaryIcon)==null?void 0:H.iconType;if(k)return _.N0(k)}}});
$0.prototype.onYtServiceRequestError=$0.prototype.onYtServiceRequestError;$0.prototype.onYtServiceRequestCompleted=$0.prototype.onYtServiceRequestCompleted;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],$0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$0.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],$0.prototype,"textLabel",void 0);
_.E([_.C(),_.l("design:type",String)],$0.prototype,"icon",void 0);_.E([_.C(),_.l("design:type",Boolean)],$0.prototype,"isOverlay",void 0);_.E([_.G("data.*","textLabel"),_.l("design:type",Object),_.l("design:paramtypes",[])],$0.prototype,"computedButtonShape",null);_.E([_.G("data.*","icon"),_.l("design:type",Object),_.l("design:paramtypes",[])],$0.prototype,"computedIcon",null);_.E([_.G("computedIcon"),_.l("design:type",Object),_.l("design:paramtypes",[])],$0.prototype,"computedAnimateIcon",null);
_.E([_.G("data.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],$0.prototype,"computedSecondaryIcon",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],$0.prototype,"onYtServiceRequestCompleted",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$0.prototype,"onYtServiceRequestError",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],$0);_.Q($0,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(axi!==void 0)return axi;var A=document.createElement("template");_.Y(A,'\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 axi=A},{mode:2});var c4A;_.Sw(cR0,"yt-animated-action",{props:{backgroundLottieRef:_.Ih,foregroundLottieRef:_.Ih,wrapperClass:_.Ih,disableAnimation:_.Ih},unsafeExternallySettableAttributes:new Set(["key"])});var Ao=function(){var A=_.a.apply(this,arguments)||this;A.animatedActionEnabled=_.b("web_animated_actions");A.foregroundLottieRef={};A.backgroundLottieRef={};A.forceIconOnly=!1;A.showTextWhileAnimating=!1;A.keyboardFocused=!1;A.isAnimating=!1;A.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return A};
_.I(Ao,_.a);_.q=Ao.prototype;_.q.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.q.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]]"}}}}}};
_.q.attached=function(){this.keyboardFocused=!1};
_.q.onYtServiceRequestSent=function(A,H){(this.get("endpoint.subscribeEndpoint",H)||this.get("endpoint.unsubscribeEndpoint",H))&&this.updateSubscriptionState(!this.subscribed)};
_.q.onYtServiceRequestCompleted=function(A,H){(A=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",H.data))&&this.bellButton&&(this.bellButton.data=A)};
_.q.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.NH(this.hostElement)};
_.q.onPlayerSubscribe=function(A){this.isCompactRed()||A!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.q.onPlayerUnsubscribe=function(A){this.isCompactRed()||A!==this.data.channelId||this.updateSubscriptionState(!1)};
_.q.handleUpdateSubscribeButtonAction=function(A){A=_.L(A,IwJ);var H;A&&A.channelId===((H=this.data)==null?void 0:H.channelId)&&this.updateSubscriptionState(!!A.subscribed)};
_.q.computeButtonStyle=function(A){return this.get("style.styleType",A)||null};
_.q.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.q.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.q.updateSubscriptionState=function(A){if(A!==this.subscribed){this.set("data.subscribed",A);var H,k=(H=this.data)==null?void 0:H.subscribedEntityKey;k&&this.ytdReduxBehavior.dispatch(_.kH("subscriptionStateEntity",k,{key:k,subscribed:A}));this.isCompactRed()||_.Ed(this.hostElement,"yt-subscription-changed",A);A||(_.Ud(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!A),A&&this.hasBellButton&&this.startAnimation())}};
_.q.startAnimation=function(){var A=this;if(!this.isAnimating){var H=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var k;(k=this.backgroundLottieRef.lottieEl)==null||k.goToAndPlay(0);var d;(d=this.foregroundLottieRef.lottieEl)==null||d.goToAndPlay(0);_.IE.addJob(function(){A.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.IE.addJob(function(){A.updateContainerToFitContent(!!A.subscribed,!0)},2,1500);
_.IE.addJob(function(){A.isAnimating=!1},2,H)}};
_.q.maybeAnimateBellIcon=function(){var A=_.EJ(this.hostElement).querySelector("yt-animated-icon");if(A){var H;(H=A.animationRef.lottieEl)==null||H.goToAndPlay(0)}};
_.q.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.q.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.q.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var A;this.unsubscribedWidth=(A=this.subscribeButtonShape)==null?void 0:A.getBoundingClientRect().width}var H;this.subscribedWidth=(H=this.bellButton)==null?void 0:H.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.q.updateContainerToFitContent=function(A,H){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(A?(A=this.subscribedWidth,H=this.isAnimating&&!H,this.subscribedIconOnlyWidth===void 0||H||(A=this.subscribedIconOnlyWidth),this.hostElement.style.width=A+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.q.clearContainerSize=function(){this.hostElement.style.width=""};
_.q.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.q.maybeSetSubscribedButtonIconOnlyWidth=function(){var A=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 H;A.subscribedIconOnlyWidth=(H=A.bellButton)==null?void 0:H.getBoundingClientRect().width;requestAnimationFrame(function(){if(A.bellButton){var k;A.bellButton.textLabel=
(k=A.data)==null?void 0:k.subscribedButtonText}})})))};
_.nP.Object.defineProperties(Ao.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 A;return(A=this.data)==null?void 0:A.subscribedButtonText}var H;return this.forceIconOnly?void 0:(H=this.data)==null?void 0:H.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var A,H,k=((A=this.data)==null?void 0:(H=A.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"subscribe",timings:k,enabled:k.length>0&&!this.subscribed,experimentEnabled:k.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!this.subscribed&&((A=this.data)==null?void 0:A.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 A={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var H=A.renderer;var k=A.element;var d=A.subscribed;var W=A.commandController;var z=A.isOverlay;A=A.stopPropagation;var u=dkl(H,d);z&&(u.style="overlay");z=Object;var B=z.assign,h;a:switch((h=H.style)==null?void 0:h.styleType){case "COMPACT_GRAY":case "COMPACT_RED":h={size:"S"};break a;default:h={size:"M"}}var O=kIl(H,
d);var T=(T=d?H.subscribedButtonText:H.unsubscribedButtonText)?_.B8(T):void 0;return B.call(z,{},u,h,{focused:!1,toggled:d,accessibilityLabel:O,formattedButtonText:T,onTap:sJX(H,d,k,W,A)})}}}});
Ao.prototype.onMouseDown=Ao.prototype.onMouseDown;Ao.prototype.onDataChanged=Ao.prototype.onDataChanged;Ao.prototype.observedSubscribed=Ao.prototype.observedSubscribed;Ao.prototype.onYtServiceRequestCompleted=Ao.prototype.onYtServiceRequestCompleted;Ao.prototype.onYtServiceRequestSent=Ao.prototype.onYtServiceRequestSent;Ao.prototype.maybeUpdateBellButtonText=Ao.prototype.maybeUpdateBellButtonText;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Ao.prototype,"ytComponentBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Ao.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Ao.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ao.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.subscribedEntityKey"],selector:vSl}),_.l("design:type",Object)],Ao.prototype,"subscriptionStateEntity",void 0);_.E([_.C({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Ao.prototype,"subscribed",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Ao.prototype,"branded",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ao.prototype,"animatedActionEnabled",void 0);
_.E([_.C(),_.l("design:type",Object)],Ao.prototype,"foregroundLottieRef",void 0);_.E([_.C(),_.l("design:type",Object)],Ao.prototype,"backgroundLottieRef",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Ao.prototype,"overlayButton",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.l("design:type",Object)],Ao.prototype,"buttonStyle",void 0);_.E([_.C(),_.l("design:type",Object)],Ao.prototype,"forceIconOnly",void 0);
_.E([_.C(),_.l("design:type",Object)],Ao.prototype,"showTextWhileAnimating",void 0);_.E([_.C({value:function(){return!!_.wj().resolve(_.fZ(_.ah))&&_.b("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.l("design:type",Boolean)],Ao.prototype,"useKeyboardFocused",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ao.prototype,"keyboardFocused",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ao.prototype,"isAnimating",void 0);_.E([_.G("data.notificationPreferenceButton.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ao.prototype,"hasBellButton",null);
_.E([_.fF("subscribedButtonText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ao.prototype,"maybeUpdateBellButtonText",null);_.E([_.G("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ao.prototype,"subscribedButtonText",null);_.E([_.G("data.timedAnimationData.animationTiming","subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ao.prototype,"smartimationSettings",null);
_.E([_.C({reflectToAttribute:!0}),_.G("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ao.prototype,"subscribeButtonHidden",null);_.E([_.C({reflectToAttribute:!0}),_.G("subscribed","hasBellButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ao.prototype,"subscribeButtonInvisible",null);
_.E([_.C({reflectToAttribute:!0}),_.G("subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ao.prototype,"unsubscribeButtonHidden",null);_.E([_.ol("ytd-subscription-notification-toggle-button-renderer-next"),_.l("design:type",Object)],Ao.prototype,"bellButton",void 0);_.E([_.ol("#subscribe-button-shape"),_.l("design:type",HTMLElement)],Ao.prototype,"subscribeButtonShape",void 0);
_.E([_.G("overlayButton","subscribed","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ao.prototype,"buttonShape",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],Ao.prototype,"onYtServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],Ao.prototype,"onYtServiceRequestCompleted",null);
_.E([_.fF("subscribed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ao.prototype,"observedSubscribed",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ao.prototype,"onDataChanged",null);_.E([_.Ze("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ao.prototype,"onMouseDown",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Ao);
_.Q(Ao,"ytd-subscribe-button-renderer",function(){if(c4A!==void 0)return c4A;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return c4A=A},{mode:1});var HA=function(){var A=_.a.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.I(HA,_.a);HA.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],HA.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],HA.prototype,"isRichGrid",void 0);_.E([_.O6({is:"ytd-game-card-renderer",disableElementRegistration:!0})],HA);
_.Q(HA,"ytd-game-card-renderer",function(){if(CXA!==void 0)return CXA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return CXA=A},{mode:1});var se={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.b("defer_menus")&&!x1A?0:void 0,waitForSignal:"eocs"};var pQi;var QJw;var kv=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return A};
_.I(kv,_.a);_.q=kv.prototype;_.q.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.q.onSeriesReminderStateEntityChange=function(){var A,H,k;((A=this.eventReminderStateEntity)==null?0:A.key)&&((H=this.seriesReminderStateEntity)==null?void 0:H.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((k=this.eventReminderStateEntity)==null?void 0:k.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.kH("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.q.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.q.onYtServiceRequestError=function(){var A;this.updateReminderStateEntitiesFromButtonState((A=this.data)==null?void 0:A.currentState)};
_.q.handleUpdateUpcomingEventReminderButtonStateCommand=function(A){if(A=_.L(A,Pup)){var H,k=(H=this.data)==null?void 0:H.targetId;k&&A.targetId===k&&_.L0(this.updateReminderStateEntitiesFromButtonState.bind(this,A.state))}};
_.q.getButtonStateFromReminderState=function(){var A;if(((A=this.seriesReminderStateEntity)==null?void 0:A.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var H;if(((H=this.eventReminderStateEntity)==null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var k,d;if(((k=this.seriesReminderStateEntity)==null?void 0:k.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((d=this.eventReminderStateEntity)==
null?void 0:d.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var W;return(W=this.data)==null?void 0:W.currentState};
_.q.updateReminderStateEntitiesFromButtonState=function(A){if(A){switch(A){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":A="UPCOMING_EVENT_REMINDER_STATE_NONE";var H="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":A="UPCOMING_EVENT_REMINDER_STATE_SINGLE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":A="UPCOMING_EVENT_REMINDER_STATE_NONE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var k;
((k=this.eventReminderStateEntity)==null?0:k.key)&&this.ytdReduxBehavior.dispatch(_.kH("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:A})));var d;((d=this.seriesReminderStateEntity)==null?0:d.key)&&this.ytdReduxBehavior.dispatch(_.kH("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:H})))}};
_.nP.Object.defineProperties(kv.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var A=this.getButtonStateFromReminderState(),H,k;if(A&&((H=this.data)==null?0:(k=H.states)==null?0:k.length))for(H=_.r(this.data.states),k=H.next();!k.done;k=H.next()){k=k.value;var d=void 0;if(((d=_.L(k,GGJ))==null?void 0:d.state)===A)return _.L(k,GGJ)}}}});
kv.prototype.onYtServiceRequestError=kv.prototype.onYtServiceRequestError;kv.prototype.onYtServiceRequestCompleted=kv.prototype.onYtServiceRequestCompleted;kv.prototype.onSeriesReminderStateEntityChange=kv.prototype.onSeriesReminderStateEntityChange;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],kv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],kv.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kv.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:jzV}),_.l("design:type",Object)],kv.prototype,"eventReminderStateEntity",void 0);
_.E([_.C({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(A,H){return _.Mw(A.entities,"sportsSeriesReminderStateEntity",H)}}),
_.l("design:type",Object)],kv.prototype,"seriesReminderStateEntity",void 0);_.E([_.G("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],kv.prototype,"currentButtonStateRenderer",null);_.E([_.fF("seriesReminderStateEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kv.prototype,"onSeriesReminderStateEntityChange",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kv.prototype,"onYtServiceRequestCompleted",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kv.prototype,"onYtServiceRequestError",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],kv);
_.Q(kv,"ytd-upcoming-event-reminder-button-renderer",function(){if(QJw!==void 0)return QJw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return QJw=A},{mode:1});var V4Q;var dv=function(){return _.a.apply(this,arguments)||this};
_.I(dv,_.a);dv.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.nP.Object.defineProperties(dv.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(_.b("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],dv.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],dv.prototype,"shelfDismissal",void 0);_.E([_.G("data.responseText"),_.l("design:type",Object),_.l("design:paramtypes",[])],dv.prototype,"text",null);
_.E([_.G("data.responseText"),_.l("design:type",Object),_.l("design:paramtypes",[])],dv.prototype,"textAriaLabel",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],dv);
_.Q(dv,"ytd-notification-multi-action-renderer",function(){if(V4Q!==void 0)return V4Q;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return V4Q=A},{mode:1});var EWj;var WA=function(){return _.a.apply(this,arguments)||this};
_.I(WA,_.a);WA.prototype.ready=function(){var A=this;_.Va(this.hostElement).querySelector("#undo").addEventListener("tap",function(){A.onUndoTap()})};
WA.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.wj().resolve(_.J7).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],WA.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],WA);
_.Q(WA,"ytd-notification-text-renderer",function(){if(EWj!==void 0)return EWj;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return EWj=A},{mode:1});var Ukw;var zU=function(){var A=_.a.apply(this,arguments)||this;A.mouseOverDelayJobId=0;A.fadeInImageDelayJobId=0;A.startTimeMs=-1;A.loadingStartTimeMs=-1;A.loadingEndTimeMs=-1;A.hasVideoPreview=!1;return A};
_.I(zU,_.a);_.q=zU.prototype;_.q.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.q.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.q.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.q.showThumbnail=function(){var A=this;this.csn=_.hx();_.RN("fmth");_.IE.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.p3(_.IE,function(){A.loadingStartTimeMs=(0,_.w2)();var H=_.Va(A.hostElement).querySelector("#thumbnail");H.complete?A.displayMouseOverImage():H.addEventListener("load",_.nF(A,A.displayMouseOverImage))},150):_.UJ(_.Va(this.hostElement).querySelector("#play"),"show",!0)};
_.q.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.q.onTap=function(){this.removeVideoPreview()};
_.q.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var A=this.videoId,H=this.csn,k=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,d=this.startTimeMs,W=this.hasVideoPreview,z=_.db(this.trackingParams),u={isMovingThumbnail:W};W&&d>0&&(k>0&&(u.movingThumbnailLoadingDurationMs=Math.round(k)),u.durationHoveredMs=Math.round((0,_.w2)()-d));A&&(u.videoId=A);_.GH(H,z,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:u});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.q.removeVideoPreview=function(){_.IE.cancelJob(this.mouseOverDelayJobId);_.IE.cancelJob(this.fadeInImageDelayJobId);var A=_.Va(this.hostElement).querySelector("#thumbnail");_.UJ(A,"fade-in",!1);A.removeEventListener("load",_.nF(this,this.displayMouseOverImage));A=_.Va(this.hostElement).querySelector("#play");_.UJ(A,"fade-in",!1);_.UJ(A,"show",!1)};
_.q.displayMouseOverImage=function(){var A=_.Va(this.hostElement).querySelector("#thumbnail"),H=_.Va(this.hostElement).querySelector("#play");this.isImageAvailable(A)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.w2)(),this.startTimeMs=(0,_.w2)(),this.fadeInImageDelayJobId=_.p3(_.IE,function(){_.UJ(A,"fade-in",!0)},50)):_.UJ(H,"fade-in",!0)};
_.q.computeThumbnail=function(A,H){var k;A&&A.movingThumbnailDetails&&A.movingThumbnailDetails.thumbnails&&H?k=_.C3(A.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):k=H?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(k)return _.fx(k)};
_.q.isImageAvailable=function(A){return!(!A.src||A.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||A.naturalWidth===120)};
zU.prototype.onTap=zU.prototype.onTap;zU.prototype.dataChanged=zU.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],zU.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zU.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],zU.prototype,"csn",void 0);_.E([_.C(),_.l("design:type",Object)],zU.prototype,"trackingParams",void 0);
_.E([_.C(),_.l("design:type",String)],zU.prototype,"videoId",void 0);_.E([_.C(),_.l("design:type",Boolean)],zU.prototype,"isAttachedAndDataSet",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zU.prototype,"dataChanged",null);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zU.prototype,"onTap",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],zU);
_.Q(zU,"ytd-moving-thumbnail-renderer",function(){if(Ukw!==void 0)return Ukw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Ukw=A},{mode:1});var lxi;_.Zh=function(A){this.hostElement=A;this.eventSink=null;this.eventList=[]};
_.Zh.prototype.shouldForward=function(){var A,H;return(H=(A=this.eventSink)==null?void 0:A.isConnected)!=null?H:document.body.contains(this.eventSink)};
_.Zh.prototype.start=function(A,H){this.eventSink&&this.stop();for(var k=0;k<A.length;k++)this.hostElement.addEventListener(A[k],_.nF(this,this.forwardEvent));var d;this.eventSink=(d=H.hostElement)!=null?d:H;this.eventList=A};
_.Zh.prototype.stop=function(){for(var A=0;A<this.eventList.length;A++)this.hostElement.removeEventListener(this.eventList[A],_.nF(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Zh.prototype.forwardEvent=function(A,H){this.shouldForward()&&(A.stopPropagation(),this.eventSink instanceof Element?_.Ed(this.eventSink,A.type,H):_.Pq(new _.Ti("eventSink is not an element")))};_.qO={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Zh(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(A,H){this.forwarder_.start(A,H)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var rv=function(){return _.a.apply(this,arguments)||this};
_.I(rv,_.a);_.q=rv.prototype;_.q.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=_.pZ("HTML_DIR")==="rtl"?"right":"left"};
_.q.dataChanged=function(){this.popupOpen=!1};
_.q.computeAriaLabel=function(A){return _.L(A,Upj).label};
_.q.onTap=function(A){A.stopPropagation();A.preventDefault();this.data.command&&_.wj().resolve(_.J7).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.q.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.q.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
rv.prototype.onPopupClosed=rv.prototype.onPopupClosed;rv.prototype.onPopupOpened=rv.prototype.onPopupOpened;rv.prototype.onTap=rv.prototype.onTap;rv.prototype.dataChanged=rv.prototype.dataChanged;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],rv.prototype,"eventForwardingBehavior",void 0);_.E([_.P(_.rx),_.l("design:type",Object)],rv.prototype,"ironButtonState",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],rv.prototype,"componentBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],rv.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:-1}),_.l("design:type",Number)],rv.prototype,"tabindex",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.l("design:type",Object)],rv.prototype,"ariaLabel",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],rv.prototype,"disableTooltips",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],rv.prototype,"popupOpen",void 0);
_.E([_.C(),_.l("design:type",Element)],rv.prototype,"eventSink",void 0);_.E([_.ol("#tooltip"),_.l("design:type",Object)],rv.prototype,"tooltip",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rv.prototype,"dataChanged",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rv.prototype,"onTap",null);
_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rv.prototype,"onPopupOpened",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rv.prototype,"onPopupClosed",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],rv);
_.Q(rv,"ytd-thumbnail-overlay-button-renderer",function(){if(lxi!==void 0)return lxi;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return lxi=A},{mode:1});var t4w;var ua=function(){return _.a.apply(this,arguments)||this};
_.I(ua,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ua.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ua.prototype,"disableAnimation",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ua.prototype,"rounded",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ua.prototype,"transparentBackground",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ua.prototype,"noPadding",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],ua);
_.Q(ua,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(t4w!==void 0)return t4w;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return t4w=A},{mode:1});var NQk;var BA=function(){return _.a.apply(this,arguments)||this};
_.I(BA,_.a);BA.prototype.computeIconPosition=function(A){return this.get("iconPosition",A)||null};
BA.prototype.computeIconStyle=function(A){return this.get("iconStyle",A)||null};
BA.prototype.computeIsIconStyleFilled=function(A){if(!A)return!1;var H;return A.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((H=A.icon)==null?void 0:H.iconType)==="ERROR_BLACK"};
_.E([_.C(),_.l("design:type",Object)],BA.prototype,"data",void 0);_.E([_.C({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.l("design:type",Object)],BA.prototype,"iconPosition",void 0);_.E([_.C({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.l("design:type",Object)],BA.prototype,"iconStyle",void 0);_.E([_.C({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],BA.prototype,"iconStyleFilled",void 0);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],BA);
_.Q(BA,"ytd-thumbnail-overlay-icon-renderer",function(){if(NQk!==void 0)return NQk;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return NQk=A},{mode:1});var M4G;var eg=function(){return _.a.apply(this,arguments)||this};
_.I(eg,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],eg.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],eg);
_.Q(eg,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(M4G!==void 0)return M4G;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return M4G=A},{mode:1});var nWZ;var xv=function(){var A=_.a.apply(this,arguments)||this;A.isPreviewLoading=!1;return A};
_.I(xv,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xv.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],xv.prototype,"isPreviewLoading",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],xv);
_.Q(xv,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(nWZ!==void 0)return nWZ;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return nWZ=A},{mode:1});var Zew;var ia=function(){return _.a.apply(this,arguments)||this};
_.I(ia,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ia.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],ia);
_.Q(ia,"ytd-thumbnail-overlay-pinking-renderer",function(){if(Zew!==void 0)return Zew;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Zew=A},{mode:1});var fxA;var ho=function(){var A=_.a.apply(this,arguments)||this;A.disableTooltips=!1;A.isLoading=!1;A.useExpandableTooltip=!1;A.toggled=!1;A.hovered=!1;A.mouseoverDelayJobId=0;A.toggleDelayJobId=0;A.expandAnimationDelayJobId=0;return A};
_.I(ho,_.a);_.q=ho.prototype;_.q.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");_.Va(this.hostElement).querySelector("#tooltip").position=_.pZ("HTML_DIR")==="rtl"?"right":"left"};
_.q.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.IE.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.IE.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.IE.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.q.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.IE.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.IE.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.IE.cancelJob(this.expandAnimationDelayJobId)};
_.q.computeIcon=function(A,H,k){return(A=k?H:A)&&A.iconType?_.N0(A.iconType):void 0};
_.q.computeAriaLabel=function(A,H,k){return _.L(k?H:A,Upj).label};
_.q.computeTooltip=function(A,H,k){return k?H:A};
_.q.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.q.computeIconOnHover=function(A,H){if((A==null?0:A.iconType)&&!H)return _.N0(A.iconType)};
_.q.onTap=function(A){var H=this;A.stopPropagation();A.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(A=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(A),this.useExpandableTooltip&&(this.toggleDelayJobId=_.p3(_.IE,function(){H.hovered=!1;H.data&&!H.data.toggledServiceEndpoint&&(H.expandAnimationDelayJobId=_.p3(_.IE,function(){H.set("data.isToggled",
!1)},200))},2E3))};
_.q.onMouseenter=function(){var A=this;this.mouseoverDelayJobId=_.p3(_.IE,function(){A.hovered=!0},300)};
_.q.onMouseleave=function(){_.IE.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.q.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.q.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.q.onServiceRequestCompleted=function(A,H){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(H)||this.set("data.isToggled",!this.data.isToggled)};
_.q.serviceRequestWasSuccessful=function(A){return _.L(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Tr)?A.data.status==="STATUS_SUCCEEDED":!0};
ho.prototype.onServiceRequestCompleted=ho.prototype.onServiceRequestCompleted;ho.prototype.onPopupClosed=ho.prototype.onPopupClosed;ho.prototype.onPopupOpened=ho.prototype.onPopupOpened;ho.prototype.onMouseleave=ho.prototype.onMouseleave;ho.prototype.dataChanged=ho.prototype.dataChanged;_.E([_.P(_.rx),_.l("design:type",Object)],ho.prototype,"ironButtonState",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],ho.prototype,"ytComponentBehavior",void 0);
_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],ho.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ho.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.l("design:type",Object)],ho.prototype,"ariaLabel",void 0);_.E([_.C(),_.l("design:type",Object)],ho.prototype,"disableTooltips",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ho.prototype,"popupOpen",void 0);_.E([_.C(),_.l("design:type",Object)],ho.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",Element)],ho.prototype,"eventSink",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ho.prototype,"useExpandableTooltip",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.l("design:type",Object)],ho.prototype,"toggled",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ho.prototype,"hovered",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.l("design:type",Object)],ho.prototype,"iconOnHover",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ho.prototype,"dataChanged",null);
_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ho.prototype,"onMouseleave",null);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ho.prototype,"onPopupOpened",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ho.prototype,"onPopupClosed",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],ho.prototype,"onServiceRequestCompleted",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],ho);
_.Q(ho,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(fxA!==void 0)return fxA;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return fxA=A},{mode:2});var wQw;var oWZ=_.c(function(A){var H=A.data;var k=A.thumbnailSize;var d=function(){return H().enableSegmentView};
return _.x("yt-thumbnail-overlay-progress-bar-view-model",{class:_.ER("ytThumbnailOverlayProgressBarHost",function(){return WYX(k==null?void 0:k())})},_.x(_.R,{cond:d,
then:function(){return _.x("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.x("div",{class:_.u2("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+H().startPercent+"%"}}),_.x("div",{class:_.u2("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+H().segmentDurationPercent+"%"}},_.x("div",{class:_.u2("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.x("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.x("div",null," ",function(){return H().segmentLabel})),_.x("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.x("div",{class:_.u2("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.x(_.R,{cond:function(){return!d()&&H().startPercent},
then:function(){var W={};return _.x("div",{class:_.u2("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(W.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.b("web_enable_modern_progress_bar_overlay"),W))},_.x("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+H().startPercent+"%"}}))}}))},"Ha");
oWZ.idomCompat=!0;_.$k0=_.c(function(A){var H=_.nj(),k=_.oy(function(W){var z,u,B;a:{var h=(z=A.data())==null?void 0:z.animationActivationTargetId;z=((u=A.data())==null?void 0:u.animationActivationEntityKey)||"";u=(B=A.data())==null?void 0:B.animationActivationEntitySelectorType;if(z&&h)switch(u){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":W=_.UR(W,z);B=_.wj().resolve(_.fZ(_.L6));h=!!(W&&W.videoId===h&&(B==null?0:B.isMiniplayerActive()));h={activated:h,playAnimation:h&&W.playerState==="PLAYER_STATE_PLAYING"};
break a}h=void 0}return h});
_.CA(function(){var W;if((W=k())==null?0:W.activated){var z;if((z=k())==null?0:z.playAnimation){var u;(u=H.lottieEl)==null||u.goToAndPlay(0)}else{var B;(B=H.lottieEl)==null||B.goToAndStop(0)}}},"DbQiXd");
var d=function(){var W,z=!((W=k())==null||!W.activated);if(A.data()){W=A.data();var u=void 0;W.icon&&(u=_.Ynm(W.icon),u=aXb(u));var B=void 0,h;if((h=W.backgroundColor)==null?0:h.lightTheme){var O;B={backgroundColor:OJ((O=W.backgroundColor)==null?void 0:O.lightTheme,"0.8")}}if(W.text||u||z){if(z&&W.lottieData&&H){O=W.lottieData;var T,m,J;h={animationConfig:{name:O.url,path:O.url,autoplay:(T=O.settings)==null?void 0:T.autoplay,loop:(J=(m=O.settings)==null?void 0:m.loop)!=null?J:!0},animationRef:H}}else h=
void 0;if(z)T=17;else b:switch(W.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":T=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":T=19;break b;default:T=17}z={type:T,text:z&&W.animatedText?W.animatedText:W.text,icon:u,customColors:B,animation:h}}else z=void 0}else z=void 0;return z};
return _.x("yt-thumbnail-badge-view-model",{class:_.ER("ytThumbnailBadgeViewModelHost",A.class)},_.x(_.R,{cond:d,then:function(){return _.x(_.Lr,{data:function(){return d()}})}}))},"Ja");var AFj=_.c(function(A){var H={},k={};return _.x("yt-thumbnail-bottom-overlay-view-model",{class:_.ER("ytThumbnailBottomOverlayViewModelHost",(H.ytThumbnailBottomOverlayViewModelHostBackground=function(){return A.data().enableGradientBackground},H))},_.x(_.HG,{data:function(){return A.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(d){return _.x(oWZ,{data:d.data,
thumbnailSize:A.thumbnailSize})}}),_.x("div",{class:_.ER("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var d;
return zzA((d=A.thumbnailSize)==null?void 0:d.call(A))},(k.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var d;
return(d=A.isClip)==null?void 0:d.call(A)},k.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var d;
return!_.b("web_enable_modern_progress_bar_overlay")&&((d=A.thumbnailSize)==null?void 0:d.call(A))==="small"},k))},_.x(_.HG,{data:function(){return A.data().badge}},{thumbnailBadgeViewModel:function(d){return _.x(_.$k0,{data:d.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.x(_.HG,{data:function(){return A.data().badges}},{thumbnailBadgeViewModel:function(d){return _.x(_.$k0,{data:d.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ka");
AFj.idomCompat=!0;_.Sw(AFj,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Fc,thumbnailSize:_.Fc,isClip:_.Fc}});var Oe=_.c(function(A){var H=A.data;var k=A.className;A=A.alwaysShow;var d=_.r48(),W={};return _.x("thumbnail-hover-overlay-view-model",{el:_.P8(_.OF(function(){return H().rendererContext})),
class:_.ER("ytThumbnailHoverOverlayViewModelHost",k,(W.ytThumbnailHoverOverlayViewModelHostForceHover=A,W)),"aria-label":function(){var z;return(z=_.L(H().rendererContext,_.zF))==null?void 0:z.label},
role:function(){return _.i2(H().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.i2(H().rendererContext)!==void 0?0:void 0},
"on:keypress":d},_.x("div",{class:_.ER("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(H().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var z="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:z="ytThumbnailHoverOverlayViewModelStyleCover"}return z})},_.x(_.R,{cond:function(){return H().icon},
then:function(z){return _.x(_.GA,{data:z,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.x(_.R,{cond:function(){return H().text},
then:function(z){return _.x(_.j$,{text:z,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ma");
Oe.idomCompat=!0;var HqA=_.c(function(A){var H=A.data;return _.x(_.HG,{data:function(){return H==null?void 0:H().overlays}},{thumbnailHoverOverlayViewModel:Oe})},"Na");
HqA.idomCompat=!0;var sUG={};var k9k=_.c(function(A){var H=A.data;var k=A.image;var d=A.state;var W=A.iconType;var z=A.overlays;var u=A.isOverlay;var B=_.FQ("div");A=_.r(_.RV(!0,void 0,"AA4e7b"));var h=A.next().value,O=A.next().value,T=function(){return!!H().onTap},m=_.DS(W,"LIVE");
_.CA(function(){var g=H();requestAnimationFrame(function(){if(B.value===null)var v=!0;else{var y=B.value;v=g.badgeText;var X=RzC(g.size);v in sUG?y=sUG[v]:(y=y.clientWidth,sUG[v]=y);(v=y>X)?B.value.style.display="none":B.value.style.visibility="visible"}O(v)})},"vNdN8b");
var J=function(){var g={};return g["yt-spec-avatar-shape__image"]=!0,g["yt-spec-avatar-shape__image--ads-app"]=H().type===1,g["yt-spec-avatar-shape__image--inscribed-square"]=H().type===2,g};
return _.x("yt-avatar-shape",null,_.x("div",{el:_.P8(mkX(T,{keydown:function(g){if(g.key==="Enter"){var v;(v=g.currentTarget)==null||v.click()}},
click:function(g){var v,y;return void((y=(v=H()).onTap)==null?void 0:y.call(v,g))}})),
class:function(){var g={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},v=H();g=(g[v.clusterLayoutConfig?beI(v.clusterLayoutConfig):LY8(v.size)]=!0,g["yt-spec-avatar-shape__button--tappable"]=T(),g);(v=H().avatarButtonCustomClassName)&&(g[v]=!0);return _.u2(g)},
"aria-label":function(){return T()?H().accessibilityText:""},
role:function(){return T()?"button":void 0},
tabindex:function(){return T()?0:void 0}},_.x("div",{class:function(){var g,v=H(),y=d==null?void 0:d(),X=u==null?void 0:u(),D=!((g=v.decorations)==null||!g.includes(2)||v.size!=="medium"&&v.size!=="large"),K=v.size==="tiny"||v.size==="extra-small",N,U,p,M,Z={};
g=(Z["yt-spec-avatar-shape--live-ring"]=!!(((N=v.decorations)==null?0:N.includes(0))&&y48(v.size)),Z["yt-spec-avatar-shape--stories-watched"]=D&&!(y==null||!y.storiesWatched),Z["yt-spec-avatar-shape--stories-unwatched"]=D&&!(y==null?0:y.storiesWatched),Z["yt-spec-avatar-shape--background-border"]=jJV(v.decorations)&&!K,Z["yt-spec-avatar-shape--background-border-thin"]=jJV(v.decorations)&&K,Z["yt-spec-avatar-shape__on-select-border"]=!((U=v.decorations)==null||!U.includes(4)),Z["yt-spec-avatar-shape__white-border"]=
!((p=v.decorations)==null||!p.includes(5)),Z["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((M=v.decorations)==null?0:M.includes(5))&&K),Z["yt-spec-avatar-shape--is-overlay"]=!!X,Z);return _.u2(g)},
style:function(){a:{var g=H().clusterLayoutConfig;if(g){b:{var v=g.numAvatarsInCluster;var y=g.avatarIndex;if(y!==v-1){switch(g.clusterSize){case "small":g="32";break;case "medium":g="36";break;case "40":g="40";break;default:v=void 0;break b}v="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+g+"x"+g+"_avatars_"+v+"_index_"+y+".svg"}else v=void 0}if(v){v=_.Mt({"-webkit-mask-image":"url("+v+")","mask-image":"url("+v+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}v=void 0}return v}},_.x("div",{class:function(){var g={};
var v=H();g=(g[v.clusterLayoutConfig?J4I(v.clusterLayoutConfig):gWl(v.size)]=!0,g["yt-spec-avatar-shape--no-margin"]=jJV(H().decorations),g["yt-spec-avatar-shape--square"]=H().type===2,g);return _.u2(g)}},_.x(_.GA,{data:k,
alt:function(){return!T()&&H().accessibilityText?H().accessibilityText:""},
targetWidth:function(){return vWQ(H().size)},
targetHeight:function(){return vWQ(H().size)},
className:function(){return _.u2(J())}}),_.x(_.R,{cond:function(){var g;
return((g=H().decorations)==null?void 0:g.includes(0))&&y48(H().size)},
then:function(){return _.x("div",{class:function(){var g={};g=(g["yt-spec-avatar-shape__live-badge"]=!0,g["yt-spec-avatar-shape__live-badge--badge-small"]=H().size==="small",g["yt-spec-avatar-shape__live-badge--badge-medium"]=H().size==="medium"||H().size==="48",g["yt-spec-avatar-shape__live-badge--badge-large"]=H().size==="large",g["yt-spec-avatar-shape__live-badge--badge-extra-large"]=H().size==="extra-large"||H().size==="extra-extra-large"||H().size==="giant",g);return _.u2(g)}},_.x(_.R,{cond:function(){return H().badgeText},
then:function(g){return _.x("div",{class:"yt-spec-avatar-shape__badge-text",el:B},g)}}),_.x(_.R,{cond:h,
then:function(){return _.x("div",{class:"yt-spec-avatar-shape__badge-icon"},_.x(_.n3,{icon:m,size:function(){a:switch(H().size){case "extra-large":var g=16;break a;default:g=13}return g}}))}}))}}),_.x(_.R,{cond:function(){var g,v;
return((g=H().decorations)==null?void 0:g.includes(1))||((v=H().decorations)==null?void 0:v.includes(0))&&!y48(H().size)},
then:function(){return _.x("div",{class:function(){var g=H(),v,y,X={};var D=(X["yt-spec-avatar-shape__live-dot"]=!((v=g.decorations)==null||!v.includes(0)||y48(g.size)),X["yt-spec-avatar-shape__new-content"]=!((y=g.decorations)==null||!y.includes(1)),X);return _.u2(D)}})}}),_.x(_.R,{cond:function(){return!!z},
then:function(){return _.x("div",{class:function(){var g={};g=Object.assign((g["yt-spec-avatar-shape__image-overlays"]=!0,g),J());return _.u2(g)}},z==null?void 0:z())}})))))},"Qa");
k9k.idomCompat={callbacks:{overlays:!0}};_.RW=_.c(function(A){function H(){k().endpoint&&_.mu(k().endpoint)}
var k=A.data;var d=A.decorations;var W=A.avatarButtonCustomClassName;var z=A.isOverlay;var u=A.clusterLayoutConfig;return _.x("avatar-view-model",null,_.x(_.R,{cond:function(){return k().image},
then:function(B){return _.x(k9k,{data:function(){return YLW({data:k(),onTap:k().endpoint?H:void 0,decorations:d==null?void 0:d(),badgeText:void 0,accessibilityText:k().accessibilityText,avatarButtonCustomClassName:W==null?void 0:W(),clusterLayoutConfig:u==null?void 0:u()})},
image:B,iconType:"RADAR_LIVE",overlays:function(){return _.x(HqA,{data:k})},
isOverlay:z})}}))},"Ra");
_.RW.idomCompat=!0;_.TU=_.c(function(A){var H=A.data;A=A.className;var k=_.FQ("yt-decorated-avatar-view-model"),d=function(){return _.L(H().avatar,_.TV)},W=_.be(function(){var z,u=H(),B=d(),h=_.i2(H().rendererContext),O=(z=k.value)!=null?z:void 0,T;
if(B){O={data:u,avatar:B,onTap:h,element:O};z=O.data;u=O.avatar;B=O.onTap;h=O.element;O=O.commandController;B=B?XQI(B,h,O):void 0;h=[];z.liveData&&h.push(0);var m;O=(m=z.liveData)==null?void 0:m.liveBadgeText;m=(T=_.L(z.rendererContext,_.zF))==null?void 0:T.label;T=YLW({data:u,onTap:B,decorations:h,badgeText:O,accessibilityText:m?m:z.a11yLabel})}else T={size:"medium"};return T},void 0,"c00kWd");
return _.x("yt-decorated-avatar-view-model",{class:_.ER("ytDecoratedAvatarViewModelHost",A),el:k},_.x(_.R,{cond:function(){var z;return(z=d())==null?void 0:z.image},
then:function(z){return _.x(k9k,{data:W,image:z,iconType:"RADAR_LIVE",overlays:function(){return _.x(HqA,{data:d})}})}}))},"Sa");
_.TU.idomCompat=!0;_.mE=_.c(function(A){var H=function(){var B;return Object.assign({},A.data(),(B=A.overrides)==null?void 0:B.call(A))},k=function(){return _.hc(H().rendererContext)},d=function(){var B=H().avatars,h,O;
return(O=(h=(B==null?0:B[0])?_.L(B[0],_.TV):void 0)==null?void 0:h.avatarImageSize)!=null?O:"AVATAR_SIZE_UNKNOWN"},W=function(){return FYb(H())},z=function(){if(H().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var B=void 0;
else if((B=A.decorations)==null?0:B.call(A))B=A.decorations();else{B=H();var h=0;B.avatars&&(h+=B.avatars.length);B.decoratedText&&(h+=1);B=h>1?[3]:[]}return B},u={};
return _.x("yt-avatar-stack-view-model",{el:_.P8(_.OF(function(){return H().rendererContext})),
class:_.ER("yt-avatar-stack-view-model",A.className,(u["yt-avatar-stack-view-model--tappable"]=k,u["yt-avatar-stack-view-model--is-overlay"]=A.isOverlay,u["yt-avatar-stack-view-model--medium-text"]=A.useMediumText,u)),tabindex:function(){return k()?0:void 0},
role:function(){return k()?"link":void 0},
"aria-label":function(){var B,h;return(h=(B=_.L(H().rendererContext,_.zF))==null?void 0:B.label)!=null?h:""}},_.x(_.R,{cond:function(){var B;
return H().avatars&&!((B=A.hideAvatar)==null?0:B.call(A))},
then:function(){return _.x("div",{class:"yt-avatar-stack-view-model__avatars"},_.x(_.R,{cond:function(){return H().decoratedText},
then:function(B){var h={};return _.x("div",{class:_.ER("yt-avatar-stack-view-model__text-container",(h["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS"},h["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var O;
return((O=A.isOverlay)==null?void 0:O.call(A))&&(d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS")},h)),
style:_.Mt({width:function(){return W().avatarSizeInPx+"px"},
height:function(){return W().avatarSizeInPx+"px"}})},_.x(_.j$,{text:B,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.x("div",{style:function(){return _.Mt(W().avatarStackStyle)()},
class:function(){return W().avatarStackClass}},_.x(_.HG,{data:function(){return W().avatars.reverse()}},{avatarViewModel:function(B,h){return _.x("div",{style:function(){var O,T;
return _.Mt((T=(O=W()).avatarStyle)==null?void 0:T.call(O,h()))()},
class:function(){return W().avatarClass}},_.x(_.RW,{data:B.data,
decorations:z,avatarButtonCustomClassName:function(){return W().avatarButtonCustomClassName},
isOverlay:A.isOverlay,clusterLayoutConfig:function(){var O,T;return(T=(O=W()).clusterLayoutConfig)==null?void 0:T.call(O,h())}}))},
decoratedAvatarViewModel:function(B,h){return _.x("div",{style:function(){var O,T;return _.Mt((T=(O=W()).avatarStyle)==null?void 0:T.call(O,h()))()},
class:function(){return W().avatarClass}},_.x(_.TU,{data:B.data}))}})))}}),_.x(_.R,{cond:function(){return H().text},
then:function(B){return _.x(_.j$,{text:B,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ta");
_.mE.idomCompat=!0;_.Sw(_.c(function(A){var H=A.data;var k=A.thumbnailSize;return _.x("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.x("div",{class:_.ER("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return DkV(k==null?void 0:k())})},_.x(_.HG,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(d){return _.x(_.mE,{data:d.data,
decorations:[5]})}})))},"Ua"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Ih,
thumbnailSize:_.Ih}});var d7J=_.c(function(A){A=_.SD(A,{hidden:!1});var H=A.data;A=A.hidden;return _.x("yt-thumbnail-overlay-title-view-model",{class:_.ER("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(H().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var k="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:k="ytThumbnailOverlayTitleViewModelPositionTop"}return k}),
hidden:A},_.x(_.R,{cond:function(){return H().leadingContent},
then:function(k){return _.x("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.x(_.HG,{data:k},{decoratedAvatarViewModel:_.TU}))}}),_.x("div",null,_.x(_.j$,{text:function(){return H().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.x(_.R,{cond:function(){return H().subtitle},
then:function(){return _.x(_.j$,{text:function(){return H().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Va");
d7J.idomCompat=!0;_.Sw(d7J,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Ih,hidden:_.Ih}});_.Jo=_.c(function(A){A=_.SD(A,{isClip:!1});var H=A.data,k=A.thumbnailSize,d={};return _.x("yt-thumbnail-overlay-badge-view-model",{class:_.ER("yt-thumbnail-overlay-badge-view-model",function(){a:switch(H().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var W="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:W="yt-thumbnail-overlay-badge-view-model--bottom-end"}return W},function(){return SLW(k==null?void 0:k())},(d["yt-thumbnail-overlay-badge-view-model--clip"]=A.isClip,
d))},_.x(_.HG,{data:function(){return H().thumbnailBadges}},{thumbnailBadgeViewModel:function(W){return _.x(_.$k0,{data:W.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Wa");
_.Jo.idomCompat=!0;_.Sw(_.Jo,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Ih,thumbnailSize:_.Ih,isClip:_.Ih}});var WQ1=_.c(function(A){var H=A.data;A=A.hidden;var k=_.be(function(){return H().indicatorCount||0},void 0,"AbKnMc"),d={};
return _.x("yt-page-indicator-view-model",{class:_.ER("ytPageIndicatorViewModelHost",(d.ytPageIndicatorViewModelIndicatorHidden=function(){return!H().indicatorCount},d)),
hidden:A},_.x(_.Ix,{each:function(){return Array(k())}},function(W,z){var u={};
return _.x("div",{class:_.ER("ytPageIndicatorViewModelIndicator",(u.ytPageIndicatorViewModelIndicatorSelected=function(){return H().selectedIndex===z()},u))})}))},"Xa");
WQ1.idomCompat=!0;_.Sw(WQ1,"yt-page-indicator-view-model",{props:{data:_.Ih,hidden:_.Ih}});var gv=function(){var A=_.a.apply(this,arguments)||this;A.eventSink=function(){return A};
A.disableInteraction=!1;A.noRoundedCorners=!1;A.isPreviewLoading=!1;A.isOriginalAspectRatio=!1;A.computedObjectFit=!1;A.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return A};
_.I(gv,_.a);_.q=gv.prototype;
_.q.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:_.b("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"}}};
_.q.onImageLoaded=function(){this.loaded=!0};
_.q.onImageUnloaded=function(){this.loaded=!1};
_.q.computeRichThumbnail=function(A,H,k,d){if(A&&H&&!d&&!_.b("disable_moving_thumbs_handling")&&!k)return H};
_.q.computeImageWidth=function(A,H){return H||9999};
_.q.computeIsOriginalAspectRatio=function(A){return A};
_.q.computeIsLive=function(A){if(A==null?0:A.badges)for(var H=0;H<A.badges.length;H++){var k=A.badges[H];if(k.metadataBadgeRenderer&&k.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(A==null?0:A.thumbnailOverlays)for(H=0;H<A.thumbnailOverlays.length;H++)if(k=A.thumbnailOverlays[H],k.thumbnailOverlayTimeStatusRenderer&&k.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.q.computeObjectFit=function(A,H){return H||(A?"CONTAIN":"")};
_.q.computeNavigationEndpoint=function(A,H,k){return A?H:k};
_.q.computeHasClip=function(A){A=_.r(A||[]);for(var H=A.next();!H.done;H=A.next())if(H.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.q.computeOverlayColor=function(A){var H;return(A==null?0:(H=A.darkColorPalette)==null?0:H.section2Color)?A.darkColorPalette.section2Color:A==null?void 0:A.sampledThumbnailColor};
_.nP.Object.defineProperties(gv.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.WhV(this.width)}}});
gv.prototype.onImageUnloaded=gv.prototype.onImageUnloaded;gv.prototype.onImageLoaded=gv.prototype.onImageLoaded;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],gv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(ciA),_.l("design:type",Object)],gv.prototype,"ytdThumbnailBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],gv.prototype,"componentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],gv.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gv.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],gv.prototype,"circular",void 0);
_.E([_.C({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.l("design:type",Object)],gv.prototype,"richThumbnail",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.l("design:type",Boolean)],gv.prototype,"hasClip",void 0);_.E([_.C(),_.l("design:type",Object)],gv.prototype,"eventSink",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],gv.prototype,"queued",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],gv.prototype,"richGridThumbnail",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],gv.prototype,"useExpandableTooltip",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],gv.prototype,"useUntranslatedNavigationEndpoint",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gv.prototype,"disableInteraction",void 0);
_.E([_.C({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.l("design:type",Object)],gv.prototype,"computedNavigationEndpoint",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],gv.prototype,"nowPlayingEqualizerOnly",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],gv.prototype,"hidePlaybackStatus",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],gv.prototype,"objectFit",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gv.prototype,"noRoundedCorners",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],gv.prototype,"watchFeedThumbnail",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gv.prototype,"isPreviewLoading",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.l("design:type",Object)],gv.prototype,"isOriginalAspectRatio",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.l("design:type",Object)],gv.prototype,"computedObjectFit",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.l("design:type",Boolean)],gv.prototype,"isLiveVideo",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],gv.prototype,"loaded",void 0);_.E([_.C({computed:"computeOverlayColor(data.thumbnail)"}),_.l("design:type",Object)],gv.prototype,"overlayColor",void 0);_.E([_.C(),_.l("design:type",Boolean)],gv.prototype,"minimizePipBreakages",void 0);_.E([_.C({selector:_.Ffb}),_.l("design:type",Boolean)],gv.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.C(),_.l("design:type",Number)],gv.prototype,"width",void 0);
_.E([_.G("inlinePreviewIsEnabled"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gv.prototype,"isPreviewDisabled",null);_.E([_.G("width"),_.l("design:type",String),_.l("design:paramtypes",[])],gv.prototype,"thumbnailSize",null);_.E([_.Ze("image-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gv.prototype,"onImageLoaded",null);
_.E([_.Ze("image-unloaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gv.prototype,"onImageUnloaded",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-thumbnail"})],gv);
_.Vu()(gv,"ytd-thumbnail",function(){if(wQw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);wQw=A}A=wQw;return A},{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 axW=function(A){var H=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15358_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15358_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(k){zy1(H,k)};
this.onLockupMouseLeaveFn=function(k){k=k.relatedTarget;var d,W;((d=document.getElementsByTagName("ytd-video-preview"))==null?0:(W=d.item(0))==null?0:W.contains(k))||(H.terminateVideoPreview(),ba(H))};
this.onThumbnailMouseDownFn=function(){H.terminateVideoPreview();ba(H)};
this.onTouchStart=function(){H.JSC$15358_touched=!0};
this.mediaRenderer=A.mediaRenderer;this.thumbnailElement=A.thumbnailElement;this.lockupElement=A.lockupElement;this.videoPreviewOptsInput=A.videoPreviewOpts;qUJ(this);LK(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)):
_.Pq(Error("Gh")):_.Pq(Error("Hh")):rFN(this)},cl=function(A){rFN(A);
var H;(H=A.lockupElement)==null||H.removeEventListener("mouseenter",A.onMouseMoveFn);var k;(k=A.lockupElement)==null||k.removeEventListener("mouseleave",A.onLockupMouseLeaveFn);var d;(d=A.lockupElement)==null||d.removeEventListener("touchstart",A.onTouchStart);var W;(W=A.thumbnailElement)==null||W.removeEventListener("mousedown",A.onThumbnailMouseDownFn);ba(A)},qUJ=function(A){A.inlinePreviewIsEnabledForUser=_.F3().getState().ui.inlinePreviewIsEnabled;
A.unsubscribeFromInlinePreviewIsEnabled=_.dC(_.F3(),_.Ffb,function(H){(A.inlinePreviewIsEnabledForUser=H)||ba(A)});
A.JSC$15358_unsubscribeFromInlinePreviewIsActive=_.dC(_.F3(),_.GGI,function(H){(A.inlinePreviewIsActive=H)||ba(A)})},rFN=function(A){A.unsubscribeFromInlinePreviewIsEnabled();
A.unsubscribeFromInlinePreviewIsEnabled=function(){};
A.JSC$15358_unsubscribeFromInlinePreviewIsActive();A.JSC$15358_unsubscribeFromInlinePreviewIsActive=function(){}},zy1=function(A,H){H.buttons>0||(H=_.H5("kevlar_lockup_hover_delay",-1),A.JSC$15358_touched&&H>=0?(_.IE.cancelJob(A.videoPreviewJobId),A.videoPreviewJobId=_.p3(_.IE,function(){u7N(A)},H),A.JSC$15358_touched=!1):u7N(A))},a0C=function(A){A.videoPreviewJobId=_.p3(_.IE,function(){return _.e(function(H){return H.yield(BhA(A,{isAutoplay:!0}),0)})})},u7N=function(A){!A.previewTriggered&&LK(A)&&
(A.inlinePreviewIsActive&&A.terminateVideoPreview(),A.previewTriggered=!0,A.mediaRenderer.isInlinePreviewTriggered=!0,_.IE.cancelJob(A.videoPreviewJobId),A.videoPreviewJobId=_.p3(_.IE,function(){return _.e(function(H){return H.yield(BhA(A),0)})}))},BhA=function(A,H){H=H===void 0?{}:H;
var k=H.isAutoplay===void 0?!1:H.isAutoplay;var d,W,z,u;return _.e(function(B){if(B.nextAddress==1){if(!LK(A))return B.return();d=A.getVideoPreviewOpts();if(!d)return B.return();k&&(d.isAutoplay=!0);return(z=(W=_.li(A.mediaRenderer.hostElement,"yt-open-video-preview-action",[d]))&&W[0])?B.yield(W[0],3):B.jumpTo(2)}B.nextAddress!=2&&(z=B.yieldResult===1);if(z){var h=(u=A.mediaRenderer)==null?void 0:u.data;h&&(KYI(h)?delete h.inlinePlayerData:"inlinePlaybackEndpoint"in h&&delete h.inlinePlaybackEndpoint)}_.EN(B)})};
axW.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var A,H;if((H=(A=this.videoPreviewOptsInput)==null?void 0:A.videoPreviewData)!=null)A=H;else if(A=this.mediaRenderer.data)if(KYI(A))A={inlinePlaybackEndpoint:_.h7(A.inlinePlayerData.onVisible),navigationEndpoint:_.h7(A.onTap),thumbnail:"image"in A?A.image:A.thumbnail,thumbnailOverlays:void 0,accessibilityText:CXX(A)};else if("multipleInlinePlaybackEndpoint"in A){var k=_.L(_.L(A.multipleInlinePlaybackEndpoint,rqj),KcX);if(k!=
null&&k.playerDescriptors){H=[];k=_.r(k.playerDescriptors);for(var d=k.next();!d.done;d=k.next())d=d.value,H.push({inlinePlaybackEndpoint:d.inlinePlaybackEndpoint,navigationEndpoint:d.navigationEndpoint,thumbnail:d.thumbnail,thumbnailOverlays:d.thumbnailOverlays,accessibilityText:CXX(A)});A=H}else A=void 0}else A={inlinePlaybackEndpoint:A.inlinePlaybackEndpoint,navigationEndpoint:A.navigationEndpoint,thumbnail:A.thumbnail,thumbnailOverlays:A.thumbnailOverlays,accessibilityText:CXX(A)};else A=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:A,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var LK=function(A){var H;if(H=A.inlinePreviewIsEnabledForUser)H=(A=A.mediaRenderer.data)?"inlinePlaybackEndpoint"in A&&A.inlinePlaybackEndpoint||KYI(A)&&A.inlinePlayerData||"multipleInlinePlaybackEndpoint"in A&&A.multipleInlinePlaybackEndpoint?!0:!1:!1;return H};
axW.prototype.terminateVideoPreview=function(){_.Ud(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var ba=function(A){_.IE.cancelJob(A.videoPreviewJobId);A.inlinePreviewIsActive=!1;A.previewTriggered=!1;A.mediaRenderer.isInlinePreviewTriggered=!1};var eyi=_.XO(["#"]),vA=function(){var A=_.a.apply(this,arguments)||this;A.isDisabled=!1;return A};
_.I(vA,_.a);_.q=vA.prototype;
_.q.configureRendererStamper=function(){return{"data.menu":se,"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"}}}};
_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.getMetadata=function(A){var H=[];if(A.metadataText&&Object.keys(A.metadataText).length>0){var k=this.ytRendererBehavior.getSimpleString(A.metadataText);A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&(k=_.qF(k,Number(A.upcomingEventData.startTime)));H.push(k)}else A.shortViewCountText&&H.push(this.ytRendererBehavior.getSimpleString(A.shortViewCountText)),A.publishedTimeText&&H.push(this.ytRendererBehavior.getSimpleString(A.publishedTimeText)),A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&
(k=this.ytRendererBehavior.getSimpleString(A.upcomingEventData.upcomingEventText),H.push(_.qF(k,Number(A.upcomingEventData.startTime))));return H};
_.q.calculateBylineText=function(A){return A.shortBylineText?A.shortBylineText:A.bylineText?A.bylineText:null};
_.q.calculateIsDisabled=function(A){return!!A.isDisabled};
_.q.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A)||_.y2f(eyi)};
_.q.onDetailsTap=function(A){var H=this.data&&this.data.navigationEndpoint;H&&!_.XU(_.F_(A)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.b("kevlar_grid_video_renderer_killswitch")?_.Ed(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.q.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15365_inlinePreviewHoverListener=m5({mediaRenderer:this,lockupElement:_.Va(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Va(this.hostElement).querySelector("ytd-thumbnail")})};
_.q.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15365_inlinePreviewHoverListener)==null||cl(A)};
_.q.computeThumbnailWidth=function(A,H){return H&&H>0?H:A?360:210};
_.q.computeNumBadgesInRow=function(A){var H;return((H=A.badges)==null?void 0:H.length)||0};
_.q.computeShowChannelThumbnail=function(A,H){var k;return H&&!!(A==null?0:(k=A.channelThumbnailSupportedRenderers)==null?0:k.channelThumbnailWithLinkRenderer)};
_.nP.Object.defineProperties(vA.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15365_inlinePreviewHoverListener)==null?0:LK(A))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
vA.prototype.dataChanged=vA.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],vA.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],vA.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.P(_.I6),_.l("design:type",Object)],vA.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],vA.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],vA.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],vA.prototype,"noEndpoints",void 0);_.E([_.C({computed:"calculateBylineText(data)"}),_.l("design:type",Object)],vA.prototype,"bylineText",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],vA.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],vA.prototype,"isDownloading",void 0);_.E([_.C({reflectToAttribute:!0,value:0}),_.l("design:type",Number)],vA.prototype,"width",void 0);_.E([_.C({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.l("design:type",Object)],vA.prototype,"isDisabled",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vA.prototype,"dataChanged",null);_.E([_.G("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],vA.prototype,"isHovered",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],vA.prototype,"hasAttributedBylineText",null);
_.E([_.G("bylineText","hasAttributedBylineText"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],vA.prototype,"showBylineText",null);_.E([_.O6({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],vA);
_.Q(vA,"ytd-grid-video-renderer",function(){if(pQi!==void 0)return pQi;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return pQi=A},{mode:2});var x7N;var yY=function(){var A=_.a.apply(this,arguments)||this;A.roundedContainer=!0;A.skipRoundingTop=!1;A.disableTopPadding=!1;A.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");A.extractOverlay=!1;return A};
_.I(yY,_.a);yY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
yY.prototype.onClick=function(A){var H,k=(H=this.data)==null?void 0:H.sourceEndpoint;!_.XU(_.F_(A),this.hostElement,["A".toString()])&&k&&_.Ed(this.hostElement,"yt-navigate",{endpoint:k})};
_.nP.Object.defineProperties(yY.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 A;return!((A=this.data)==null||!A.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=(A=this.data)==null?void 0:A.paragraphMaxLines)!=null?H:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],yY.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yY.prototype,"showVerticalDividers",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yY.prototype,"roundedContainer",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yY.prototype,"skipRoundingTop",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yY.prototype,"disableTopPadding",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],yY.prototype,"amsterdamEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yY.prototype,"extractOverlay",void 0);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],yY.prototype,"showMetadataAtTop",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],yY.prototype,"showMetadataBelowTitle",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.menu"),_.l("design:type",Object),_.l("design:paramtypes",[])],yY.prototype,"hasMenu",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data.truncateParagraphs"),_.l("design:type",Object),_.l("design:paramtypes",[])],yY.prototype,"truncateParagraphs",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.paragraphMaxLines"),_.l("design:type",Number),_.l("design:paramtypes",[])],yY.prototype,"paragraphMaxLines",null);
_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.background"),_.l("design:type",Object),_.l("design:paramtypes",[])],yY.prototype,"background",null);_.E([_.O6({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],yY);
_.Q(yY,"ytd-info-panel-content-renderer",function(){if(x7N!==void 0)return x7N;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return x7N=A},{mode:2});var iqN;var hyk;var OqJ;var Ryk;var jg=function(){return _.a.apply(this,arguments)||this};
_.I(jg,_.a);jg.prototype.computeStyle=function(A){return A};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],jg.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],jg.prototype,"style_",void 0);_.E([_.h6({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],jg);
_.Q(jg,"yt-channel-thumbnail-with-link-renderer",function(){if(Ryk===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;OqJ===void 0&&(OqJ=document.createElement("template"));var d=OqJ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Ryk=A}A=Ryk;return A},{mode:2});var IW=function(){return _.a.apply(this,arguments)||this};
_.I(IW,_.a);IW.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"}}}};
IW.prototype.computeTitleStyle=function(A){return A||null};
IW.prototype.computeAvatarStyle=function(A){return A||null};
IW.prototype.computeShowNavigationButton=function(A,H){return!(A==null||!A.navigationButton||H)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],IW.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.l("design:type",String)],IW.prototype,"titleStyle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.l("design:type",String)],IW.prototype,"avatarStyle",void 0);_.E([_.C(),_.l("design:type",Boolean)],IW.prototype,"hideNavigationButton",void 0);_.E([_.O6({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],IW);
_.Q(IW,"ytd-rich-list-header-renderer",function(){if(hyk!==void 0)return hyk;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return hyk=A},{mode:2});var Yv=function(){return _.a.apply(this,arguments)||this};
_.I(Yv,_.a);Yv.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]]"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Yv.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Yv.prototype,"isSearch",void 0);_.E([_.O6({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Yv);
_.Q(Yv,"ytd-preview-card-renderer",function(){if(iqN!==void 0)return iqN;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return iqN=A},{mode:1});var Thk;var PA=function(){return _.a.apply(this,arguments)||this};
_.I(PA,_.a);PA.prototype.configureRendererStamper=function(){return{"data.menu":se}};
PA.prototype.dataChanged=function(){var A=this.get("colorExtractionPalette.section1Color",this.data);A=_.iw(A);_.NH(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":A})};
PA.prototype.computeCardStyle=function(A){return this.get("style.value",A)||null};
PA.prototype.dataChanged=PA.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],PA.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],PA.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.l("design:type",String)],PA.prototype,"cardStyle",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],PA);
_.Q(PA,"ytd-compact-channel-recommendation-card-renderer",function(){if(Thk!==void 0)return Thk;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Thk=A},{mode:1});var m7p;var JFj;var GU=function(){var A=_.a.apply(this,arguments)||this;A.alignAuto=!1;A.collapsed=!0;A.isToggled=!1;A.alwaysCollapsed=!1;A.canToggle=!0;A.collapsedHeight=80;A.disableToggle=!1;A.alwaysToggleable=!1;A.reversed=!1;A.shouldUseNumberOfLines=!1;A.recomputeOnResize=!1;A.canToggleJobId=0;A.lastReversed=!1;return A};
_.I(GU,_.a);_.q=GU.prototype;_.q.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.q.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.q.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var A=_.Va(this.hostElement),H=A.childNodes,k=document.createDocumentFragment(),d=A.childNodes.length-1;d>=0;d--)_.Va(k).appendChild(H[d]);_.b("enable_shadydom_free_scoped_node_methods")?_.EJ(this.hostElement).appendChild(k):A.appendChild(k)}};
_.q.ready=function(){var A=this;_.L0(function(){A.initChildrenObserver()},1)};
_.q.attached=function(){var A;(A=this.resizeObserver)==null||A.observe(this.content)};
_.q.detached=function(){this.detachObserver()};
_.q.toggle=function(A,H){this.canToggle&&(this.isToggled=H,_.Ed(this.hostElement,"yt-refit"),A&&A.stopPropagation())};
_.q.reset=function(){this.childrenChanged()};
_.q.onIronResize=function(){this.recomputeOnResize&&!_.b("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.q.computeIsMoreVisible=function(A,H){return A&&!H};
_.q.computeShouldUseNumberOfLines=function(A){try{return!!A&&window.CSS.supports("-webkit-line-clamp","1")}catch(H){}return!1};
_.q.computeIsLessVisible=function(A,H){return A&&H};
_.q.observeCollapsedHeightAndMaxLines=function(){var A=this.collapsedHeight,H=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.NH(this.hostElement,{"--ytd-expander-max-lines":""+H,"--ytd-expander-collapsed-height":""}):_.NH(this.hostElement,{"--ytd-expander-collapsed-height":A+"px","--ytd-expander-max-lines":""})};
_.q.handleMoreTap=function(A){this.disableToggle||(_.Ed(this.hostElement,"yt-expander-more-tapped"),this.toggle(A,!0))};
_.q.handleLessTap=function(A){_.Ed(this.hostElement,"yt-expander-less-tapped");this.toggle(A,!1)};
_.q.initChildrenObserver=function(){var A=this;this.observer=new MutationObserver(function(){A.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.b("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Nt(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var H;(H=A.resizeThrottle)==null||H.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.q.childrenChanged=function(){var A=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){c8(function(){A.canToggleJobId=0;A.calculateCanCollapse()})}))};
_.q.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};
_.q.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.q.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("collapsed-changed",this.collapsed))};
_.q.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("is-toggled-changed",this.isToggled))};
_.q.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("can-toggle-changed",this.canToggle))};
_.nP.Object.defineProperties(GU.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
GU.prototype.canToggleChangedForBinding=GU.prototype.canToggleChangedForBinding;GU.prototype.isToggledChangedForBinding=GU.prototype.isToggledChangedForBinding;GU.prototype.collapsedChangedForBinding=GU.prototype.collapsedChangedForBinding;GU.prototype.observeCollapsedHeightAndMaxLines=GU.prototype.observeCollapsedHeightAndMaxLines;GU.prototype.onIronResize=GU.prototype.onIronResize;GU.prototype.reversedChanged=GU.prototype.reversedChanged;GU.prototype.toggledChanged=GU.prototype.toggledChanged;
GU.prototype.alwaysToggleableChanged=GU.prototype.alwaysToggleableChanged;_.E([_.P(_.WU),_.l("design:type",Object)],GU.prototype,"ironResizableBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],GU.prototype,"alignAuto",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],GU.prototype,"collapsed",void 0);_.E([_.C(),_.l("design:type",Object)],GU.prototype,"isToggled",void 0);_.E([_.C(),_.l("design:type",Object)],GU.prototype,"alwaysCollapsed",void 0);
_.E([_.C(),_.l("design:type",Object)],GU.prototype,"canToggle",void 0);_.E([_.C(),_.l("design:type",Object)],GU.prototype,"collapsedHeight",void 0);_.E([_.C(),_.l("design:type",Object)],GU.prototype,"disableToggle",void 0);_.E([_.C(),_.l("design:type",Object)],GU.prototype,"alwaysToggleable",void 0);_.E([_.C(),_.l("design:type",Object)],GU.prototype,"reversed",void 0);_.E([_.C(),_.l("design:type",Number)],GU.prototype,"maxNumberOfLines",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.l("design:type",Object)],GU.prototype,"shouldUseNumberOfLines",void 0);_.E([_.C(),_.l("design:type",Object)],GU.prototype,"recomputeOnResize",void 0);_.E([_.ol("#content"),_.l("design:type",HTMLDivElement)],GU.prototype,"content",void 0);_.E([_.s6("alwaysToggleable"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GU.prototype,"alwaysToggleableChanged",null);
_.E([_.s6("isToggled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GU.prototype,"toggledChanged",null);_.E([_.G("canToggleJobId"),_.l("design:type",Object),_.l("design:paramtypes",[])],GU.prototype,"isResetting",null);_.E([_.fF("reversed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GU.prototype,"reversedChanged",null);
_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GU.prototype,"onIronResize",null);_.E([_.fF("maxNumberOfLines","collapsedHeight"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GU.prototype,"observeCollapsedHeightAndMaxLines",null);_.E([_.fF("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GU.prototype,"collapsedChangedForBinding",null);
_.E([_.fF("isToggled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GU.prototype,"isToggledChangedForBinding",null);_.E([_.fF("canToggle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GU.prototype,"canToggleChangedForBinding",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-expander"})],GU);
_.Q(GU,"ytd-expander",function(){if(JFj!==void 0)return JFj;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return JFj=A},{mode:1});var F$=function(){return _.a.apply(this,arguments)||this};
_.I(F$,_.a);F$.prototype.computeIsCarousel=function(A){return!!A.isCarousel};
F$.prototype.observeLightsourcePalette=function(){var A,H=(A=this.data)==null?void 0:A.vibrantsourceColorPaletteData;H&&_.qN(this.hostElement,H)};
F$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
F$.prototype.observeLightsourcePalette=F$.prototype.observeLightsourcePalette;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],F$.prototype,"data",void 0);_.E([_.C({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],F$.prototype,"isCarousel",void 0);
_.E([_.fF("data.vibrantsourceColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],F$.prototype,"observeLightsourcePalette",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],F$);
_.Q(F$,"ytd-media-upsell-renderer",function(){if(m7p!==void 0)return m7p;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return m7p=A},{mode:2});var gbA;var X$=function(){var A=_.a.apply(this,arguments)||this;A.JSC$15392_playerEvents=new Map;A.listeningToPlayer=!1;A.startX=0;A.active=!1;A.shouldShowButtons=_.b("web_buttons_hidden_killswitch");A.isHighlighted=!1;A.useHighlightStyling=_.b("web_enable_deeper_metadata_highlight_styling");A.enableProblemWalkthrough=_.b("problem_walkthrough_sd");return A};
_.I(X$,_.a);_.q=X$.prototype;
_.q.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}}}}}};
_.q.created=function(){this.JSC$15392_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.q.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.nF(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.nF(this,this.onActiveUpdate))};
_.q.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.nF(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.nF(this,this.onActiveUpdate))};
_.q.onDataChanged=function(){this.removePlayerListeners()};
_.q.onColorPaletteChange=function(){var A={},H;if(_.bw()==="USER_INTERFACE_THEME_DARK"&&((H=this.data)==null?0:H.darkColorPalette)){var k=this.data.darkColorPalette;A["--ytd-macro-markers-list-item-background-color"]=_.h1(this.get("section2Color",k))}else{var d;_.bw()==="USER_INTERFACE_THEME_LIGHT"&&((d=this.data)==null?0:d.lightColorPalette)&&(k=this.data.lightColorPalette,A["--ytd-macro-markers-list-item-background-color"]=_.h1(this.get("section3Color",k)))}k?(A["--ytd-macro-markers-list-item-title-color"]=
_.h1(this.get("primaryTitleColor",k)),A["--ytd-macro-markers-list-item-secondary-color"]=_.h1(this.get("secondaryTitleColor",k)),A["--ytd-macro-markers-list-item-timestamp-background-color"]=_.h1(this.get("section1Color",k)),this.customButtonProperties={customColors:{color:_.h1(this.get("primaryTitleColor",k))}},this.useColorSampling=!0):(A["--ytd-macro-markers-list-item-background-color"]="initial",A["--ytd-macro-markers-list-item-title-color"]="initial",A["--ytd-macro-markers-list-item-secondary-color"]=
"initial",A["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.NH(this.hostElement,A)};
_.q.onEndpointMouseDown=function(A){this.startX=A.clientX};
_.q.onEndpointClick=function(A){var H=this,k,d,W;return _.e(function(z){if(z.nextAddress==1){if(H.startX!==A.clientX)return A.preventDefault(),z.return();H.data&&H.ytRendererBehavior.logExplicitClick(H.data);if(!H.seekWithAnimationOnClick)return z.jumpTo(0);if(A.button!==0||A.shiftKey||A.altKey||A.metaKey||A.ctrlKey||_.XU(_.F_(A),H.hostElement,["BUTTON".toString()]))return z.return();A.stopPropagation();A.preventDefault();return H.data?z.yield(_.a9().getPlayerPromise(),3):z.return()}k=z.yieldResult;
W=(d=_.L(H.data.onTap,_.Yr))==null?void 0:d.startTimeSeconds;W!==void 0&&k.seekToTimeWithAnimation(W*1E3,_.PK(H.data.title));_.EN(z)})};
_.q.computeLayout=function(A){return A};
_.q.computeIsHighlighted=function(A){return!!A};
_.q.computeCarouselType=function(A){return A};
_.q.hideCarousel=function(A){return this.hideThumbnail(A)};
_.q.hideThumbnail=function(A){return this.enableProblemWalkthrough&&A!==null&&A==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.q.onRepeatButtonToggle=function(A){var H=this;A.detail.toggled&&_.a9().getPlayerPromise().then(function(k){H.ytPlayerListenerBehavior.listenToPlayerEvents(k,H.JSC$15392_playerEvents);H.listeningToPlayer=!0})};
_.q.onLoopRangeChange=function(A){var H=_.Va(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(H){var k=H.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",H.polymerController.data);if(k){var d=Number(k.endTimeMs);if(Number(k.startTimeMs)!==(A==null?void 0:A.startTimeMs)||d!==(A==null?void 0:A.endTimeMs))H.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.q.removePlayerListeners=function(){var A=this;this.listeningToPlayer&&_.a9().getPlayerPromise().then(function(H){A.ytPlayerListenerBehavior.unlistenFromPlayerEvents(H,A.JSC$15392_playerEvents);A.listeningToPlayer=!1})};
_.q.onActiveUpdate=function(A){this.active=A.detail.active};
X$.prototype.onColorPaletteChange=X$.prototype.onColorPaletteChange;X$.prototype.onDataChanged=X$.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],X$.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],X$.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],X$.prototype,"useCustomColors",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],X$.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],X$.prototype,"shouldShowButtons",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.l("design:type",String)],X$.prototype,"layout",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.l("design:type",Object)],X$.prototype,"isHighlighted",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],X$.prototype,"useHighlightStyling",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],X$.prototype,"enableProblemWalkthrough",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.l("design:type",String)],X$.prototype,"carouselType",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],X$.prototype,"useColorSampling",void 0);_.E([_.C(),_.l("design:type",Boolean)],X$.prototype,"seekWithAnimationOnClick",void 0);_.E([_.C(),_.l("design:type",Object)],X$.prototype,"customButtonProperties",void 0);
_.E([_.ol("#repeat-button"),_.l("design:type",HTMLElement)],X$.prototype,"repeatButton",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],X$.prototype,"onDataChanged",null);_.E([_.fF("data.lightColorPalette","data.darkColorPalette"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],X$.prototype,"onColorPaletteChange",null);
_.E([_.O6({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],X$);
_.Q(X$,"ytd-macro-markers-list-item-renderer",function(){if(gbA!==void 0)return gbA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return gbA=A},{mode:1});var bqA;var LQZ;var DY=function(){return _.a.apply(this,arguments)||this};
_.I(DY,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],DY.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],DY);
_.Q(DY,"ytd-title-and-button-list-header-renderer",function(){if(LQZ!==void 0)return LQZ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return LQZ=A},{mode:1});var vbk;var yFj=new _.SE("BUTTON_RENDERER_TOKEN");_.Sg=_.c(function(A){var H=_.wj().resolve(yFj);return _.x(H,Object.assign({},A,{overrides:A.buttonOverrides}))},"Ya");var jUA=_.c(function(A){var H=A.data,k=_.DS(A.useSquareAspectRatio,!1);return _.x("dismissed-mini-game-card-view-model",null,_.x(_.R,{cond:function(){var d,W;return(d=H().responseText)==null?void 0:(W=d.runs)==null?void 0:W.length},
then:function(){var d={};return _.x("div",{class:_.ER("yt-mini-game-card-view-model__dismissed-card",(d["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!k()},d["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.b("web_game_card_force_2_by_3")},d["yt-mini-game-card-view-model--dismissed-square-card"]=k,d))},_.x("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.x(_.R,{cond:function(){return H().responseText.runs[0].text},
then:function(W){return _.x("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:W},W)}}),_.x(_.HG,{data:function(){return H().buttons}},{buttonRenderer:_.Sg,
buttonViewModel:_.U7})))}}))},"Za");var Ili=_.c(function(A){var H=A.data;return _.x("br-nz-badge-shape",{class:_.ER(function(){return c4N(H().brNzRatingBadgeType)}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},function(){var k;
return(k=H())==null?void 0:k.text})},"$a");_.CK=_.c(function(A){var H=function(){var k=A.data(),d,W,z,u,B;if(k){var h=!((d=A.workaroundShortsIsThumbnailBadge)==null||!d.call(A));d=(W=A.modern)==null?void 0:W.call(A);W=(z=A.numBadgesInRow)==null?void 0:z.call(A);z=(u=A.clipTextOverflow)==null?void 0:u.call(A);u=(B=A.inheritTypography)==null?void 0:B.call(A);var O;a:switch(k.badgeStyle){case "BADGE_OVERLAY":B=!0;break a;default:B=!1}k={type:h?17:pQW(k.badgeStyle),brNzRatingBadgeType:QJC(k.badgeStyle),text:k.badgeText,icon:k.iconName,isOverlay:B,
modern:d||_.b("web_modern_badge_view_model"),accessibilityText:k.accessibilityLabel||((O=_.L(k.rendererContext,_.zF))==null?void 0:O.label),numBadgesInRow:W,clipTextOverflow:z,shouldInheritTypography:u}}else k=void 0;return k};
return _.x("yt-badge-view-model",{class:_.ER("ytBadgeViewModelHost",A.class)},_.x(_.Yl,null,_.x(_.y$,{when:function(){var k;return!((k=H())==null||!k.brNzRatingBadgeType)}},function(){return _.x(Ili,{data:function(){return H()}})}),_.x(_.y$,{when:function(){return!!H()&&!H().brNzRatingBadgeType}},function(){return _.x(_.Lr,{data:function(){return H()}})})))},"ab");
_.CK.idomCompat=!0;var CFj=_.c(function(A){A=_.SD(A,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var H=A.data,k=A.useFullWidth,d=A.isDesktopWeb,W=A.addSearchResultTopMargin,z=function(){return H().layout},u=function(){return H().title},B=function(){return H().metadataText?H().metadataText:H().genre},h=function(){return H().channelName},O=function(){return H().image},T=function(){return H().colorPalette},m=function(){return H().actionButton},J=function(){return H().overflowButton},
g=function(){return H().avatar},v=function(){return H().ageRating},y=function(){return H().thumbnailOverlays},X=function(){var U={};
U=_.ER("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(U["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return d()},U));
return _.x("div",{class:U},_.x(YUi,{imageData:O,colorPalette:T}),_.x(PFA,{onTap:function(){return H().onTap},
imageData:O,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
thumbnailOverlays:y,isDesktopWeb:d}),_.x(_.R,{cond:function(){return!d()},
then:function(){return _.x(_.sD,null,_.x(G9w,{layout:z,colorPalette:T,isDesktopWeb:d,overflowButton:J,avatar:g,onTap:function(){return H().onTap},
genre:B,title:u,channelName:h}),_.x(FQ0,{actionButton:m}))}}))},D=function(){var U={};
U=_.ER((U["yt-mini-game-card-view-model--search-result-desktop"]=function(){return d()},U["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!d()},U["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return W()},U));
return _.x("div",{class:U},X(),_.x(XtA,{description:function(){return H().description},
isDesktopWeb:d,title:u,genre:B,onTap:function(){return H().onTap},
actionButton:m,overflowButton:J,avatar:g,channelName:h}))},K=function(){var U={};
U=_.ER("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(U["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return d()},U["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return d()&&H().width===135},U["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return d()},U["yt-mini-game-card-view-model--big-metadata-font"]=function(){return H().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},U["yt-mini-game-card-view-model--use-full-width"]=
function(){return k()},U["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.b("web_game_card_force_2_by_3")},U));
return _.x("div",{class:U},_.x(D7Q,{colorPalette:T,isDesktopWeb:d,onTap:function(){return H().onTap},
accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
actionButton:m,imageData:O,thumbnailOverlays:y}),_.x(G9w,{layout:z,colorPalette:T,isDesktopWeb:d,overflowButton:J,avatar:g,onTap:function(){return H().onTap},
genre:B,title:u,channelName:h}),_.x(_.R,{cond:v,then:function(p){return _.x(SUp,{ageRating:p})}}))},N=function(){var U={};
U=_.ER("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(U["yt-mini-game-card-view-model--square-card-desktop"]=function(){return d()},U["yt-mini-game-card-view-model--use-full-width"]=function(){return k()},U));
return _.x("div",{class:U},_.x(PFA,{onTap:function(){return H().onTap},
imageData:O,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
thumbnailOverlays:y,isDesktopWeb:d}),_.x(G9w,{layout:z,colorPalette:T,isDesktopWeb:d,overflowButton:J,avatar:g,onTap:function(){return H().onTap},
genre:B,title:u,channelName:h}),_.x(_.R,{cond:v,then:function(p){return _.x(SUp,{ageRating:p})}}))};
return _.x("mini-game-card-view-model",{class:A.className},_.x(_.Yl,null,_.x(_.y$,{when:function(){return z()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return K()}),_.x(_.y$,{when:function(){return z()==="MINI_APP_LAYOUT_SQUARE"}},function(){return N()}),_.x(_.y$,{when:function(){return z()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return D()})))},"bb");
CFj.idomCompat=!0;var FQ0=_.c(function(A){var H=_.DS(A.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.x(_.HG,{data:A.actionButton},{buttonViewModel:function(k){return _.x("div",{class:H},_.x(_.U7,{data:k.data}))}})},"cb"),PFA=_.c(function(A){var H=A.onTap;
var k=A.imageData;var d=A.accessibilityText;var W=A.overlayBadgeText;var z=A.iconName;var u=A.unplayableInlinePlaybackIconName;var B=A.isDesktopWeb;A=A.thumbnailOverlays;return _.x(_.c2,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:H},_.x(_.GA,{data:k,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(d==null?void 0:d())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.x(_.HG,{data:A},{thumbnailOverlayBadgeViewModel:_.Jo}),_.x(KQZ,{overlayBadgeText:W,iconName:z,unplayableInlinePlaybackIconName:u,isDesktopWeb:B}))},"db"),KQZ=_.c(function(A){var H=A.overlayBadgeText;
var k=A.iconName;var d=A.unplayableInlinePlaybackIconName;var W=A.isDesktopWeb;return _.x("div",{class:"yt-mini-game-card-view-model__badge-container"},_.x(_.R,{cond:k,then:function(z){return _.x("div",{class:"yt-mini-game-card-view-model__badge"},_.x("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.x(_.n3,{icon:z,className:"yt-mini-game-card-view-model__icon",size:12}),_.x("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},H)))}}),_.x(_.R,{cond:function(){return!k()&&
H()},
then:function(){return _.x("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},H)}}),_.x(_.R,{cond:function(){return d()&&W()},
then:function(){return _.x("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.x(_.n3,{icon:d,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"eb"),YUi=_.c(function(A){var H=A.colorPalette;
var k=A.imageData;var d=function(){return H().vibrantColorPalette?H().vibrantColorPalette.section2Color:H().sectionTwoColor};
return _.x(_.sD,null,_.x("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Mt({"background-color":function(){return OJ(d(),"1")}})}),_.x("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Mt({"background-image":function(){return"url("+k().sources[0].url+")"}})}),_.x("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Mt({background:function(){return"linear-gradient(180deg,\n    "+OJ(d(),".8")+" 0%,\n    "+OJ(d(),".4")+" 25%,\n    "+OJ(H().vibrantColorPalette?H().vibrantColorPalette.section4Color:H().sectionFourColor,".8")+" 100%)"}})}))},"fb"),G9w=_.c(function(A){var H=A.layout;
var k=A.colorPalette;var d=A.overflowButton;var W=A.avatar;var z=A.onTap;var u=A.title;var B=A.channelName;var h=A.genre;var O=function(){var T;return H()!=="MINI_APP_LAYOUT_SQUARE"&&((T=k())==null?0:T.textPrimaryColor)?"color: "+OJ(k().textPrimaryColor,".7"):""};
return _.x("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.x(_.R,{cond:W,then:function(){return _.x("div",{class:"yt-mini-game-card-view-model__avatar"},_.x(_.HG,{data:W},{avatarViewModel:_.RW}))}}),_.x(_.c2,{command:z,
className:"yt-mini-game-card-view-model__metadata-details"},_.x("h3",{class:"yt-mini-game-card-view-model__title",title:u},u),_.x(_.R,{cond:W,then:function(){return _.x("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.x("span",{class:"yt-mini-game-card-view-model__genre",title:B,style:O},B),_.x("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:O},h))},
else:function(){return _.x("span",{class:"yt-mini-game-card-view-model__genre",title:h},h)}})),_.x("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.x(_.HG,{data:d},{buttonViewModel:function(T){var m=T.data;
return _.x(_.U7,{data:function(){return Object.assign({},m(),{customFontColor:H()==="MINI_APP_LAYOUT_SINGLETON"?m().customFontColor:void 0})}})}})))},"gb"),D7Q=_.c(function(A){var H=A.colorPalette;
var k=A.isDesktopWeb;var d=A.onTap;var W=A.accessibilityText;var z=A.overlayBadgeText;var u=A.iconName;var B=A.unplayableInlinePlaybackIconName;var h=A.actionButton;var O=A.imageData;A=A.thumbnailOverlays;return _.x("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.x(YUi,{imageData:O,colorPalette:H}),_.x(PFA,{onTap:d,imageData:O,accessibilityText:W,overlayBadgeText:z,iconName:u,unplayableInlinePlaybackIconName:B,isDesktopWeb:k,thumbnailOverlays:A}),_.x(_.R,{cond:function(){return h==
null?void 0:h()},
then:function(){return _.x(FQ0,{actionButton:h})}}))},"hb"),XtA=_.c(function(A){var H=A.description;
var k=A.isDesktopWeb;var d=A.title;var W=A.genre;var z=A.onTap;var u=A.actionButton;var B=A.overflowButton;var h=A.avatar;A=A.channelName;var O={};O=_.ER("yt-mini-game-card-view-model--search-result-metadata-wrapper",(O["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=k,O["yt-mini-game-card-view-model--show-unplayable-on-hover"]=k,O["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!k()},O));
var T={};T=_.ER("yt-mini-game-card-view-model__search-result-info-row",(T["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!k()},T));
return _.x("div",{class:O},_.x("div",{class:T},_.x(_.c2,{command:z,className:"yt-mini-game-card-view-model__metadata-details"},_.x("h3",{class:"yt-mini-game-card-view-model__title",title:d},d),_.x("span",{class:"yt-mini-game-card-view-model__genre",title:W},W)),_.x(FQ0,{actionButton:u,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.x("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.x(_.HG,{data:B},{buttonViewModel:_.U7}))),_.x("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.x("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.x("div",{class:"yt-mini-game-card-view-model__avatar"},_.x(_.HG,{data:h},{avatarViewModel:function(m){var J=m.data;return _.x(_.RW,{data:function(){return Object.assign({},J(),{avatarImageSize:k()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.x(_.c2,{command:z,
className:"yt-mini-game-card-view-model__description"},_.x("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},A)),_.x(_.c2,{command:z,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.x("div",null)))),_.x(_.R,{cond:k,then:function(){return _.x(_.c2,{command:z,className:"yt-mini-game-card-view-model__description"},H)}}))},"ib"),SUp=_.c(function(A){var H=A.ageRating;
return _.x("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.x(_.GA,{data:function(){return{sources:[{url:H().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.x(_.CK,{data:function(){return{badgeText:H().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"jb");_.Sw(CFj,"mini-game-card-view-model",{props:{data:_.Ih,className:_.Ih,useFullWidth:_.Ih,isDesktopWeb:_.Ih,addSearchResultTopMargin:_.Ih}});_.Sw(jUA,"dismissed-mini-game-card-view-model",{props:{data:_.Ih,useSquareAspectRatio:_.Ih}});var KK=function(){var A=_.a.apply(this,arguments)||this;A.isSearch=!1;A.isRichGrid=!1;return A};
_.I(KK,_.a);_.q=KK.prototype;_.q.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.q.dismissibleItemOnYtServiceRequestSent=function(A,H){H.actions&&this.dismissibleItemProcessActions(A,H.actions)};
_.q.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.q.dataChanged=function(){this.dismissibleItemReset()};
_.q.dismissibleItemProcessActions=function(A,H){for(var k=0;k<H.length;k++){var d=H[k];_.L(d,_.AS)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.L(d,_.AS)),A.stopPropagation())}};
_.q.dismissibleItemHandleReplaceEnclosingAction=function(A){this.dismissedRenderer=A.item;this.isDismissed=!0};
_.nP.Object.defineProperties(KK.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var A;return!!this.data&&!((A=this.dismissedRenderer)==null?0:A.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.dismissedRenderer)==null||!A.notificationMultiActionRenderer)}}});
KK.prototype.dataChanged=KK.prototype.dataChanged;KK.prototype.dismissibleItemOnRequestSent=KK.prototype.dismissibleItemOnRequestSent;KK.prototype.dismissibleItemOnYtServiceRequestSent=KK.prototype.dismissibleItemOnYtServiceRequestSent;_.E([_.C(),_.l("design:type",Object)],KK.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],KK.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],KK.prototype,"isDismissed",void 0);
_.E([_.C(),_.l("design:type",Object)],KK.prototype,"dismissedRenderer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],KK.prototype,"isRichGrid",void 0);_.E([_.G("data.layout"),_.l("design:type",Object),_.l("design:paramtypes",[])],KK.prototype,"useSquareAspectRatio",null);_.E([_.G("data","dismissedRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],KK.prototype,"showCard",null);
_.E([_.G("data","dismissedRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],KK.prototype,"showDismissed",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],KK.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.E([_.Ze("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KK.prototype,"dismissibleItemOnRequestSent",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KK.prototype,"dataChanged",null);_.E([_.h6({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],KK);
_.Q(KK,"ytd-mini-game-card-view-model",function(){if(vbk!==void 0)return vbk;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return vbk=A},{mode:2});var alJ;var cFj;var aW=function(){return _.Zc.apply(this,arguments)||this};
_.I(aW,_.Zc);aW.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
aW.prototype.getContinuationUrl=function(A){var H={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.$d(A,H)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],aW.prototype,"data",void 0);_.E([_.h6({is:"yt-reload-continuation",noInjection:!0})],aW);var ptZ;var QUj;var cA=function(){var A=_.a.apply(this,arguments)||this;A.notificationData={};return A};
_.I(cA,_.a);_.q=cA.prototype;_.q.isMenuExpanded=function(A){return A&&A.length<=1?"undefined":"false"};
_.q.dataChanged_=function(){this.selected=void 0;var A=this.computeSelectedIndex_(this.data);A>=0&&(this.selected=A);A=this.data&&this.data.length>1;_.UJ(this.hostElement,"has-items",A);_.Va(this.hostElement).querySelector("#label").tabIndex=A?0:-1};
_.q.onDropdownOpen=function(){var A=_.hx();if(this.parentTrackingParams&&this.data){var H=_.db(this.parentTrackingParams);this.data.forEach(function(k){A&&H&&k.trackingParams&&(k=_.db(k.trackingParams),_.v0(A,H,k),_.IN(A,[k]))})}else this.parentTrackingParams||_.Pq(new _.Ti("No parent tracking params passed in for yt-dropdown-menu."))};
_.q.hasNotification=function(A){var H;if(A.targetId&&((H=this.notificationData)==null?0:H.targetId)){var k;return A.targetId===((k=this.notificationData)==null?void 0:k.targetId)}};
_.q.computeSelectedIndex_=function(A){if(A)for(var H=0,k=A.length;H<k;H++)if(A[H].selected)return H;return-1};
_.q.computeLabel_=function(A){return this.data&&A!=void 0?this.data[A].title:""};
_.q.computeShowIcon_=function(A,H){return!H&&!!A};
_.q.computeVerticalOffset_=function(A){return A?36:0};
_.q.computeEndpoint_=function(A){return A.endpoint||A.navigationEndpoint};
_.q.onLabelClick_=function(A){this.data&&this.data.length<=1?A.stopPropagation():this.menuExpanded="true"};
_.q.onIronActivate_=function(A){A=A.detail.item;var H=_.Va(this.hostElement).querySelector("#repeat").itemForElement(A);if(H&&H.trackingParams){var k=_.hx(),d=_.db(H.trackingParams);k&&_.P0(k,d)}if(H&&H.serviceEndpoint)_.b("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(H.serviceEndpoint):_.tx(this.hostElement,[H.serviceEndpoint]),_.Ed(this.hostElement,"yt-playlist-reloading");else a:{if((H=A.querySelector("yt-supported-renderers"))&&
(H=H.rendererElement)&&H.is=="yt-reload-continuation"){H.trigger();break a}(A=A.querySelector("yt-reload-continuation"))&&A.trigger()}};
_.q.onTap_=function(A){A.preventDefault()};
_.q.onItemTap_=function(A){this.ytEndpointBehavior.onEndpointTap_(A)};
_.q.onLinkFocus_=function(A){try{var H=A.target}catch(d){}if(H){var k=H.querySelector("tp-yt-paper-item");k&&_.vW(this,"focus",function(){k.focus()})}};
_.q.onMenuClose_=function(){this.menuExpanded="false"};
_.q.isLabelIconActive_=function(A){return A==="true"};
_.q.computeHasSubtitle_=function(A){return!!A};
_.q.computeHrefForItem_=function(A){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(A))};
_.q.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
_.nP.Object.defineProperties(cA.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
cA.prototype.onMenuClose_=cA.prototype.onMenuClose_;cA.prototype.onTap_=cA.prototype.onTap_;cA.prototype.onIronActivate_=cA.prototype.onIronActivate_;cA.prototype.onDropdownOpen=cA.prototype.onDropdownOpen;cA.prototype.dataChanged_=cA.prototype.dataChanged_;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],cA.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.MY.YtEndpointBehavior),_.l("design:type",Object)],cA.prototype,"ytEndpointBehavior",void 0);
_.E([_.C(),_.l("design:type",Array)],cA.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],cA.prototype,"parentTrackingParams",void 0);_.E([_.C(),_.l("design:type",Object)],cA.prototype,"selected",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],cA.prototype,"useLabel",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],cA.prototype,"useComputedAriaLabel",void 0);_.E([_.C(),_.l("design:type",String)],cA.prototype,"icon",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],cA.prototype,"iconLabel",void 0);_.E([_.C(),_.l("design:type",String)],cA.prototype,"ariaLabel",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],cA.prototype,"disabled",void 0);_.E([_.C({computed:"isMenuExpanded(data)"}),_.l("design:type",String)],cA.prototype,"menuExpanded",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],cA.prototype,"closeOnActivate",void 0);
_.E([_.C({reflectToAttribute:!0,value:_.b("web_modern_buttons")}),_.l("design:type",Boolean)],cA.prototype,"modernButtons",void 0);_.E([_.C(),_.l("design:type",Object)],cA.prototype,"notificationData",void 0);_.E([_.G("ariaLabel, selected"),_.C(),_.l("design:type",String),_.l("design:paramtypes",[])],cA.prototype,"computedAriaLabel",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cA.prototype,"dataChanged_",null);
_.E([_.Ze("paper-dropdown-open"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],cA.prototype,"onDropdownOpen",null);_.E([_.Ze("iron-activate"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],cA.prototype,"onIronActivate_",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],cA.prototype,"onTap_",null);
_.E([_.Ze("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],cA.prototype,"onMenuClose_",null);_.E([_.h6({is:"yt-dropdown-menu",disableElementRegistration:!0})],cA);
_.Q(cA,"yt-dropdown-menu",function(){if(QUj===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;ptZ===void 0&&(ptZ=document.createElement("template"));var d=ptZ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);QUj=A}A=QUj;return A},{mode:2});var pK=function(){var A=_.a.apply(this,arguments)||this;A.hasNotification=!1;return A};
_.I(pK,_.a);pK.prototype.computeId=function(A){return A};
pK.prototype.computeHorizontalAlign=function(A){return A?"right":"left"};
pK.prototype.computeAccessibilityLabel=function(A){var H,k;return((H=A.accessibility)==null?void 0:(k=H.accessibilityData)==null?void 0:k.label)||null};
pK.prototype.notificationDataChanged=function(){var A;this.hasNotification=!!this.notificationData&&!((A=this.data)==null?0:A.icon)};
pK.prototype.notificationDataChanged=pK.prototype.notificationDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TB.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],pK.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pK.prototype,"data",void 0);_.E([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",String)],pK.prototype,"id",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],pK.prototype,"isRightAligned",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],pK.prototype,"disabled",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],pK.prototype,"closeOnActivate",void 0);_.E([_.C(),_.l("design:type",Object)],pK.prototype,"notificationData",void 0);_.E([_.C(),_.l("design:type",Object)],pK.prototype,"hasNotification",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],pK.prototype,"useComputedAriaLabel",void 0);_.E([_.fF("notificationData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pK.prototype,"notificationDataChanged",null);_.E([_.h6({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],pK);
_.Q(pK,"yt-sort-filter-sub-menu-renderer",function(){if(cFj===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;alJ===void 0&&(alJ=document.createElement("template"));var d=alJ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);cFj=A}A=cFj;return A},{mode:2});var VHJ=_.c(function(A){var H=A.data;var k=_.lc(function(){var z=H().onTap;(z=_.L(z,_.ic))&&_.wj().resolve(_.J7).resolveCommand(z);return!1}),d=function(){return{sources:[{url:H().thumbnailUrl,
width:120,height:90}]}},W=function(){return H().rating&&H().ratingA11yLabel&&H().reviewsCount&&H().reviewsCountA11yLabel};
return _.x("place-data-view-model",null,_.x(_.R,{cond:function(){return H().placeName&&H().placeCategory},
then:function(){return _.x("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":k},_.x(_.GA,{data:d,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.x(_.c2,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return H().onTap}},_.x("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return H().placeName}},function(){return H().placeName})),_.x("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.x(_.R,{cond:W,
then:function(){return _.x("div",{class:_.ER("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.x("span",{class:"score",title:function(){return H().ratingA11yLabel}},function(){return H().rating}),_.x("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.x(_.n3,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.x("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return H().reviewsCountA11yLabel}},function(){return H().reviewsCount}))},
else:function(){return _.x("div",{class:_.ER("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.x("div",{class:_.ER("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.x("span",{class:"category",
title:function(){return H().placeCategory}},function(){return H().placeCategory}))))}}))},"kb");
VHJ.idomCompat=!0;_.Sw(VHJ,"place-data-view-model",{props:{data:_.Ih}});var EbZ=new _.SE("INLINE_PLAYBACK_HOOK_TOKEN");var U7G=eO({sharedUi:Jhw});_.yP=xE(U7G)(U7G.sharedUi,{animatedThumbnailEnabledSelector:function(A){return A.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(A){return A.inlinePreviewEnabled},
currentPageTypeSelector:function(A){return A.currentPageType},
currentPageSubTypeSelector:function(A){return A.currentPageSubType},
persistentPanelVisibleSelector:function(A){return A.persistentPanelVisible}});var llw=function(A){this.setActiveSlideIndex=A;this.jobIds=[];this.isSlideshowPlaying=!1},MHj=function(A,H){A.isSlideshowPlaying||(A.isSlideshowPlaying=!0,tHA(A),Nh1(A,H,0))},tHA=function(A){_.p3(_.IE,function(){A.setActiveSlideIndex(0)},1)},Nh1=function(A,H,k){A.jobIds.push(_.p3(_.IE,function(){var d=k<H-1?k+1:0;
A.setActiveSlideIndex(d);Nh1(A,H,d)},1800))};var nbJ,fli;nbJ=new _.SE("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.ZqG=new _.SE("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");fli=new _.SE("COMMON_MARK_VIEW_MODEL_TOKEN");var wt0=new _.SE("IMAGE_ON_LOAD_HANDLER_TOKEN");var obJ=_.c(function(A){return _.x("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.x(_.R,{cond:function(){var H;return(H=A.data())==null?void 0:H.thumbnail},
then:function(H){return _.x(_.GA,{data:H,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"lb");_.$7Q=_.c(function(A){var H=A.data;var k=A.lockupExperiments;A={};return _.x("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.x("div",{class:_.ER("ytThumbnailOverlayButtonViewModelButton",(A.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var d;return k&&((d=k())==null?void 0:d.useLegacySizedIconButton)},A))},_.x(_.HG,{data:function(){return H().overlayButton}},{buttonViewModel:function(d){return _.x(_.U7,{data:d.data,
buttonOverrides:function(){var W;return k&&((W=k())==null?0:W.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"mb");
_.$7Q.idomCompat=!0;var ADp=_.c(function(A){return _.x("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.lc(function(H){H.preventDefault();return!1})},_.x(_.HG,{data:function(){return A.data().buttons}},{toggleButtonViewModel:function(H){return _.x("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.x(_.qc,{data:H.data}))}}))},"nb");
ADp.idomCompat=!0;var Hzk=_.c(function(A){var H=function(){var k;return((k=_.L(A.data().rendererContext,_.zF))==null?void 0:k.label)||""};
return _.x("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.x(_.R,{cond:function(){return A.data().image},
then:function(){return _.x("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.x(_.GA,{data:function(){return A.data().image},
alt:H}))}}),_.x(_.R,{cond:function(){return A.data().text},
then:function(){return _.x("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return A.data().text})}}))},"ob");var sKk=_.yP.animatedThumbnailEnabledSelector,QY=_.c(function(A){var H=[],k=function(){var J,g;return _.WhV((J=A.width)==null?void 0:J.call(A),(g=A.height)==null?void 0:g.call(A))},d=_.wj().resolve(_.fZ(wt0)),W=_.GP("yt-thumbnail-view-model",function(){H.push("elRef.value set");
var J;(J=A.playbackRef)==null||J.call(A,{thumbnailElRef:W,thumbnail:A.data().image,thumbnailOverlays:A.data().overlays,thumbnailSize:k()})});
_.CZ(function(){H.push("onInit");_.aV(function(){H.push("onCleanup")})});
var z=_.oy(sKk),u=function(){var J,g;return(g=(J=A.aspectRatio)==null?void 0:J.call(A))!=null?g:0},B=function(){return(A.data().image?_.IXQ(A.data().image):u())<=1&&u()===0},h=function(){return B()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},O=function(){W.value||_.Pq(new _.Ti("Thumbnail elRef.value is null",H.join("\n")));
d&&W.value&&d(W.value)},T=function(){var J,g;
return((J=A.hovered)==null?void 0:J.call(A))&&k()!=="large"&&((g=A.data().overlays)==null?void 0:g.some(function(v){return _.L(v,wwG)}))},m={};
return _.x("yt-thumbnail-view-model",{class:_.ER("ytThumbnailViewModelHost",A.className,function(){return EWV(u())},function(){var J,g;
a:{var v=k(),y=(J=A.disableRounding)==null?void 0:J.call(A);J=(g=A.isClip)==null?void 0:g.call(A);if(!y&&!J)switch(v){case "large":g="ytThumbnailViewModelLarge";break a;case "small":g="ytThumbnailViewModelSmall";break a;default:g="ytThumbnailViewModelMedium";break a}g=void 0}return g},(m.ytThumbnailViewModelCinematic=B,m)),
style:_.Mt({"background-color":function(){var J,g=B()?(J=A.data().backgroundColor)==null?void 0:J.lightTheme:void 0;return g?OJ(g,"1"):void 0}}),
el:W},_.x(_.R,{cond:B,then:function(){return _.x("div",{class:"ytThumbnailViewModelBlurredImage"},_.x(_.GA,{data:function(){return A.data().image},
alt:"",contentMode:h,targetWidth:A.width,onload:O}))}}),_.x("div",{class:"ytThumbnailViewModelImage"},_.x(_.GA,{data:function(){return A.data().image},
alt:"",contentMode:h,targetWidth:A.width,onload:O}),null),_.x(_.HG,{data:function(){return T()?void 0:A.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:d7J,thumbnailOverlayBadgeViewModel:function(J){return _.x(_.Jo,{data:J.data,thumbnailSize:k,isClip:A.isClip})},
thumbnailBottomOverlayViewModel:function(J){return _.x(AFj,{data:J.data,thumbnailSize:k,isClip:A.isClip})},
thumbnailOverlayFullViewModel:Hzk,thumbnailOverlayButtonViewModel:function(J){return _.x(_.$7Q,{data:J.data,lockupExperiments:A.lockupExperiments})},
channelDisclosureViewModel:function(J){J=J.data;var g;return _.x("div",null,(g=_.wj().resolve(_.fZ(nbJ)))==null?void 0:g({data:J}))}}),_.x(_.HG,{data:function(){var J;
return((J=A.hovered)==null?0:J.call(A))?A.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(J){return _.x(Oe,{data:J.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:ADp}),_.x(_.HG,{data:function(){var J;return((J=A.hovered)==null?0:J.call(A))&&z()?A.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:obJ}),_.x(_.R,{cond:A.isClip,then:function(){return _.x("div",{class:"ytPinkingNsHost"},_.x("svg",{class:"ytPinkingNsPinkingLeft"},_.x("defs",null,_.x("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.x("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.x("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.x("svg",{class:"ytPinkingNsPinkingRight"},_.x("defs",null,_.x("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.x("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.x("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"pb");
QY.idomCompat={callbacks:{playbackRef:!0}};var k1k=_.c(function(A){var H=_.r(_.RV(-1,void 0,"RW2Ole")),k=H.next().value,d=H.next().value;_.CZ(function(){var W=new llw(d);MHj(W,A.data().thumbnails.length);_.aV(function(){if(W.isSlideshowPlaying){W.isSlideshowPlaying=!1;for(var z=W.jobIds,u=0,B=z.length;u<B;u++)_.IE.cancelJob(z[u]);W.jobIds.length=0}})});
return _.x("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.x(_.HG,{data:function(){return A.data().thumbnails}},{thumbnailViewModel:function(W,z){return _.x("div",{class:function(){var u=!A.data().primaryThumbnail,B=z(),h=k(),O=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
u&&B===0&&O.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");B<=h&&O.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return O.join(" ")}},_.x(QY,{data:W.data,
disableRounding:A.disableRounding}))}}))},"qb");
k1k.idomCompat=!0;var UkI=new _.SE("DWELL_DETECTOR_REGISTRY_TOKEN");var Wz0=_.c(function(A){var H=lxW(A.triggeringElement),k=function(){return!!A.data().primaryThumbnail},d=function(){var z,u=(z=A.data())==null?void 0:z.maxHeight,B;
z=(B=A.maxHeight)==null?void 0:B.call(A);return u!=null&&z!=null?Math.min(u,z):z!=null?z:u},W=function(){var z=d();
if(z){var u;if(k()&&(u=A.includeStackHeight)!=null&&u.call(A)){var B;u=((B=A.doubleStack)==null?0:B.call(A))?8:4}else u=0;z=z-u-1;if(!(z<0)){B=Math;u=B.ceil;var h,O;var T=dsW((O=(h=A.aspectRatio)==null?void 0:h.call(A))!=null?O:0);return u.call(B,z*T)}}};
return _.x("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.Mt({height:function(){return d()?d()+"px":void 0},
width:function(){return W()?W()+"px":void 0}})},_.x(dD0,{stackEnabled:k,
thumbnailSize:function(){var z,u;return _.WhV((z=A.width)==null?void 0:z.call(A),(u=A.height)==null?void 0:u.call(A))},
doubleStack:A.doubleStack,stackColor:function(){return A.data().stackColor},
includeStackHeight:A.includeStackHeight},_.x(_.HG,{data:function(){return A.data().primaryThumbnail}},{thumbnailViewModel:function(z){var u={};
return _.x(QY,{data:z.data,width:A.width,height:A.height,aspectRatio:A.aspectRatio,disableRounding:A.disableRounding,className:_.ER((u.ytCollectionThumbnailViewModelHostHasStacks=k,u)),hovered:A.hovered,playbackRef:A.playbackRef})}}),_.x(_.R,{cond:function(){var z;
return H()&&((z=A.data().thumbnails)==null?void 0:z.length)},
then:function(){return _.x("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.x(k1k,{data:A.data,disableRounding:function(){return!k()}}))}})))},"rb");
Wz0.idomCompat={callbacks:{playbackRef:!0}};
var dD0=_.c(function(A){var H=A.children;var k=A.stackEnabled;var d=A.thumbnailSize;var W=A.doubleStack;var z=A.stackColor;var u=A.includeStackHeight;var B,h=(B=_.wj().resolve(_.fZ(_.sF)))==null?void 0:B();return _.x(_.R,{cond:k,then:function(){return _.x(GIp,{data:function(){var O,T;return{experimentEnabled:!0,thumbnailSize:d(),doubleStack:W==null?void 0:W(),color:h?z==null?void 0:(O=z())==null?void 0:O.darkTheme:z==null?void 0:(T=z())==null?void 0:T.lightTheme,enableResponsiveMode:!1,includeStackHeight:u==
null?void 0:u()}}},H)},
else:function(){return H}})},"sb");var zlw=new _.SE("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");_.qSw=_.c(function(A){var H=A.data;A=_.GP("ad-card-badge-view-model");return _.x("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:A},_.x(_.R,{cond:function(){return H().imageBadge},
then:function(k){return _.x(_.GA,{data:k,alt:""})}}))},"tb");var Ee;_.VY={calledOnce:!0,state:"visible"};Ee={calledOnce:!0,state:"hidden"};_.Ue=_.c(function(A){var H=_.SD(A,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});A=Object.assign({},H);var k=H.data;H=H.customCommandResolver;var d=(delete A.data,delete A.customCommandResolver,A);A=_.NV({visibilityCallback:function(B,h){var O,T=(O=k().interaction)==null?void 0:O.onFirstVisible;B&&(T&&_.mu(T),d.setOnErrorHandler()&&t4m(h))},
showOption:_.VY});H=_.g9(function(){return k().interaction},H,function(){var B;
return(B=d.listenToTapEvent)==null?void 0:B.call(d)});
var W=_.r(_.RV(!1,void 0,"wAC0Lc")),z=W.next().value,u=W.next().value;W=_.lc(function(B){var h;((h=d.setTouchEndHandler)==null?0:h.call(d))&&!z()&&(B.currentTarget.click(),u(!0),setTimeout(function(){u(!1)},100));
return!1});
return _.x("ad-image-view-model",{class:function(){var B,h=[((B=k().interaction)==null?0:B.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],O;((O=d.isGridViewEnabled)==null?0:O.call(d))&&h.push("ytwAdImageViewModelHostInGridView");return h.join(" ")},
el:_.P8(A,H),"on:touchend":W},_.x("div",{class:"ytwAdImageViewModelHostImageContainer"},_.x(_.GA,{data:function(){var B;return{sources:k().imageSources,contentMode:(B=k().imageProperties)==null?void 0:B.contentMode}},
alt:function(){var B,h;return((B=k().interaction)==null?void 0:(h=B.accessibility)==null?void 0:h.label)||""},
targetHeight:d.targetHeight,targetWidth:d.targetWidth,preserveHeight:d.preserveHeight,preserveWidth:d.preserveWidth,useWidth:d.useWidth,style:function(){var B,h;return"vertical-align: bottom;"+(((B=k().background)==null?0:B.color)?"background-color:"+_.iw((h=k().background)==null?void 0:h.color)+";":"")},
className:function(){return d.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var B,h;return(h=(B=d.setDraggable)==null?void 0:B.call(d))!=null?h:void 0}})))},"vb");var rDj=_.c(function(A){var H=A.data;var k=A.customCommandResolver;return _.x("carousel-ad-card-image-view-model",{class:function(){var d;return((d=H().interaction)==null?0:d.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.P8(_.NV({visibilityCallback:function(d){var W,z=(W=H().interaction)==null?void 0:W.onFirstVisible;d&&z&&_.mu(z)},
showOption:_.VY}),_.g9(function(){return H().interaction},k)),
"aria-label":function(){var d,W;return(d=H().interaction)==null?void 0:(W=d.accessibility)==null?void 0:W.label}},_.x(_.HG,{data:function(){return H().adImage}},{adImageViewModel:function(d){return _.x(_.Ue,{data:d.data,
customCommandResolver:k})}}),_.x("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.x(_.HG,{data:function(){return H().badge}},{adCardBadgeViewModel:_.qSw})),_.x(_.pM,{model:{color:4}}))},"wb");var uvw=_.c(function(A){var H=_.r(_.RV(0,void 0,"JJ0QQc")),k=H.next().value;H.next();var d=H.next().value,W=_.r(_.RV(!1,void 0,"f6YICe"));H=W.next().value;var z=W.next().value,u;_.aV(function(){clearTimeout(u)});
W=_.lc(function(){var O;((O=A.animate)==null?0:O.call(A))?(z(!0),u=setTimeout(function(){z(!1);B()},200)):B();
return!1});
var B=function(){d(function(O){return(O+A.numShownItems())%A.data().length})},h={};
return _.x("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.x("div",{class:_.ER("ytwHorizontalCarouselCarouselWrapper")},_.x("div",{class:_.ER("ytwHorizontalCarouselCarouselInnerWrapper",(h.ytwHorizontalCarouselAnimating=H,h))},_.x(_.Ix,{each:A.data,keyBy:"INDEX"},function(O,T){return _.x("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Mt({"flex-basis":function(){return"calc((100% - (8px * "+(A.numShownItems()-1)+")) / "+A.numShownItems()+")"},
order:function(){var m=T-k();m<0&&(m+=A.data().length);return m}})},A.children(O,T))}))),_.x("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":W},A.nextButton()))},"xb");var xDj=_.c(function(A){var H=A.data;var k=A.customCommandResolver;var d=A.expansive;var W=A.isLockupAttachment;return _.x("carousel-ad-card-collection-view-model",{el:_.P8(_.NV({visibilityCallback:function(z){var u,B=(u=H().interaction)==null?void 0:u.onFirstVisible;z&&B&&_.mu(B)},
showOption:_.VY})),class:"ytwCarouselAdCardCollectionViewModelHost"},_.x(_.R,{cond:function(){return W==null?void 0:W()},
then:function(){return _.x(Biw,{data:H,customCommandResolver:k})},
else:function(){return _.x(eli,{data:H,customCommandResolver:k,expansive:d})}}))},"yb"),Biw=_.c(function(A){var H=A.data;
var k=A.customCommandResolver;return _.x("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel",tabindex:0},_.x(_.HG,{data:function(){return H().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(d){return _.x("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},_.x(rDj,{data:d.data,
customCommandResolver:k}))}}))},"zb"),eli=_.c(function(A){var H=A.data;
var k=A.customCommandResolver;var d=A.expansive;return _.x(uvw,{data:function(){var W;return((W=H())==null?void 0:W.carouselAdCards)||[]},
nextButton:function(){return _.x(_.HG,{data:function(){return H().nextButton}},{buttonViewModel:function(W){var z=W.data;
return _.x(_.U7,{data:function(){return(d==null?0:d())?Object.assign({},z(),{style:"mono"}):z()},
className:_.b("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(W){return _.x(_.HG,{data:W},{carouselAdCardImageViewModel:function(z){return _.x(rDj,{data:z.data,customCommandResolver:k})}})})},"Ab");_.la=_.c(function(A){var H=A.data;var k=A.customCommandResolver;var d=A.className;var W=A.delayedClassName;var z=A.animationEntityKey;var u=A.isCompactWidth;var B=A.isContentWidth;A=_.r(_.RV(!1,void 0,"B1koDf"));var h=A.next().value,O=A.next().value,T=_.DS(z,""),m=_.o9(Vrr,T),J=function(){var eN,mr;return(mr=(eN=m())==null?void 0:eN.value)!=null?mr:!1},g=function(){_.XI(_.kH("booleanEntity",T(),{key:T(),
value:!0}));p=void 0};
z=_.r(_.C0(J));var v=z.next().value,y=z.next().value;z=_.r(_.C0(J));var X=z.next().value,D=z.next().value;z=_.r(_.C0(function(){var eN;return J()?(eN=H().styleTransitionConfig)==null?void 0:eN.destinationStyle:void 0}));
var K=z.next().value,N=z.next().value,U=function(){var eN=Object.assign({},H(),K()&&{style:K()});var mr,Cl,pl=eN.label,UC=(mr=eN.interaction)==null?void 0:(Cl=mr.accessibility)==null?void 0:Cl.label;mr=eN.iconImage?eN.label&&eN.label.content?eN.iconLeading?"leading":"trailing":"icon-only":void 0;eN={formattedButtonText:pl,accessibilityLabel:UC,style:ZeC(eN.style),type:fxX(eN.style),state:"active",size:nW8(eN.size),iconPosition:mr,disabled:!1,aTagConfig:M4r(eN,k)};eN.focused=h();return eN},p;
z=_.NV({visibilityCallback:function(eN){var mr,Cl=(mr=H().interaction)==null?void 0:mr.onFirstVisible;eN&&Cl&&_.mu(Cl)},
showOption:_.VY});var M=function(){return iRV(U(),!!H().iconImage)};
A={};var Z={};d=_.ER(function(){return"ytwAdButtonViewModelHost"},function(){return H().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var eN=!!H().delayedAppearanceConfig,mr=v();
return eN?mr?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var eN=!!H().delayedAppearanceConfig,mr=X();
return eN?mr?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!H().delayedAppearanceConfig||v()?W==null?void 0:W():""},(A.ytwAdButtonViewModelHostCompactWidth=function(){return u==null?void 0:u()},A),(Z.ytwAdButtonViewModelHostContentWidth=function(){return B==null?void 0:B()},Z),d!=null?d:"");
var WV=function(){var eN,mr=(eN=H().delayedAppearanceConfig)==null?void 0:eN.delayedInvisibleSeconds;mr&&(p=_.zV(_.IE,function(){y(!0);hA()},mr*1E3))},hA=function(){var eN,mr=(eN=H().delayedAppearanceConfig)==null?void 0:eN.delayedVisibleSeconds;
mr&&(p=_.zV(_.IE,function(){D(!0);qv()},mr*1E3))},qv=function(){var eN,mr=(eN=H().styleTransitionConfig)==null?void 0:eN.styleTransitionSeconds,Cl,pl=(Cl=H().styleTransitionConfig)==null?void 0:Cl.destinationStyle;
mr&&pl?p=_.zV(_.IE,function(){N(pl);g()},mr*1E3):g()};
_.CZ(function(){WV()});
_.aV(function(){p&&_.IE.cancelJob(p)});
return _.x("ad-button-view-model",{"on:focusin":_.lc(function(){var eN=_.wj().resolve(_.fZ(_.ah));eN&&O(eN.isKeyBoardInUse());return!1}),
"on:focusout":_.lc(function(){O(!1);return!1}),
class:d,el:_.P8(z),style:_.Mt({"transition-duration":"0.3s"})},_.x(_.R,{cond:U,then:function(){return _.x(_.E7,{data:U,icon:function(){return _.x(_.R,{cond:function(){return H().iconImage},
then:function(eN){return _.x(_.GA,{data:eN,alt:"",targetWidth:M,targetHeight:M,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Bb");var izG=_.c(function(A){var H=A.data;A=function(){return H().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var k=_.NV({visibilityCallback:function(z){var u,B=(u=H().interaction)==null?void 0:u.onFirstVisible;z&&B&&_.mu(B)},
showOption:_.VY}),d={},W={};return _.x("ad-button-group-view-model",{class:_.ER("ytwAdButtonGroupViewModelHost",(d.ytwAdButtonGroupViewModelHostCompactWidth=A,d)),el:_.P8(k)},_.x("div",{class:_.ER("ytwAdButtonGroupViewModelHostSecondaryButton",(W.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=A,W))},_.x(_.HG,{data:function(){return H().secondaryAdButton}},{adButtonViewModel:function(z){return _.x(_.la,{data:z.data})}})),_.x("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.x(_.HG,
{data:function(){return H().primaryAdButton}},{adButtonViewModel:function(z){return _.x(_.la,{data:z.data})}})))},"Cb");var hlk=_.c(function(A){var H=function(){var k;return((k=A.data())==null?void 0:k.answers)||[]};
return _.x("yt-survey-icons",{class:"ytSurveyIconsHost"},_.x("div",{class:"ytSurveyIconsHeader"},_.x("div",{class:"ytSurveyIconsTitle"},function(){var k;return(k=A.data())==null?void 0:k.text}),_.x("div",null,_.x(_.E7,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var k;(k=A.onDismiss)==null||k.call(A)}}},
iconName:"DISMISSAL"}))),_.x("div",null,_.x("div",{class:"ytSurveyIconsAnswers"},_.x(_.Ix,{each:function(){return H()},
keyBy:"INDEX"},function(k,d){return _.x("div",null,_.x(_.E7,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var W;(W=A.onSelect)==null||W.call(A,k(),d)}}},
icon:function(){return _.x(_.n3,{icon:function(){var W,z;return(W=k())==null?void 0:(z=W.icon)==null?void 0:z.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.x("div",{class:"ytSurveyIconsAnswersText"},_.x("div",null,function(){return H().length?H()[0].text:""}),_.x("div",null,function(){return H().length?H()[H().length-1].text:""}))))},"Db");var Ozk=_.c(function(A){var H=_.P8(_.OF(function(){var h;return(h=A.data())==null?void 0:h.rendererContext},void 0,void 0,void 0,!0)),k=_.r(_.RV(!1,void 0,"GW0yjf")),d=k.next().value,W=k.next().value,z=_.o9(ESW,function(){var h;
return(h=A.data().keys)==null?void 0:h.surveyEntityKey}),u=_.o9(Udb,function(){var h;
return(h=A.data().keys)==null?void 0:h.surveyStateEntityKey});
_.Qr("ytd-slimline-survey-show-action",function(){W(!1)});
var B=function(){var h,O;var T=(h=u())==null?void 0:(O=h.questionStack)==null?void 0:O[0];if(T!==void 0){var m,J;return(m=z())==null?void 0:(J=m.questions)==null?void 0:J[T]}};
k={};return _.x("yt-slimline-survey-view-model",{el:H,class:_.ER("ytSlimlineSurveyViewModelHost",(k.ytSlimlineSurveyViewModelCollapsed=function(){return d()},k))},_.x("div",{class:"ytSlimlineSurveyViewModelContainer"},_.x(_.R,{cond:function(){var h;
return((h=B())==null?void 0:h.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.x(hlk,{data:function(){return B()},
onSelect:function(h,O){var T,m;return _.e(function(J){W(!0);if(m=(T=A.data())==null?void 0:T.onSelectRating)_.mu(m),_.XI(D8Z(O));_.EN(J)})},
onDismiss:function(){W(!0);var h;var O=(h=z())==null?void 0:h.dismissalFeedbackToken;h=O?{feedbackEndpoint:{feedbackToken:O}}:void 0;h&&_.OR(h,{form:{element:H.value}})}})}})))},"Eb");var Rlk=_.c(function(A){return _.x("yt-table-view-model",{class:_.ER("ytTableViewModelHost",A.className)},_.x(_.Ix,{each:function(){return A.data().rows||[]}},function(H){var k={};
return _.x("div",{class:_.ER("ytTableViewModelRow",(k.ytTableViewModelRowBottomBorder=function(){return A.data().showSeparators},k))},_.x(_.Ix,{each:function(){return(H==null?void 0:H.cells)||[]}},function(d,W){var z,u={};
return _.x("span",{class:_.ER((u.ytTableViewModelRowLabel=function(){return W()===0&&A.data().showHorizontalHeaders},u.ytTableViewModelCell=function(){return!A.data().showHorizontalHeaders||W()>0},u))},(z=d.text)==null?void 0:z.content)}))}))},"Fb");var TiZ=_.c(function(A){return _.x("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.x(_.HG,{data:function(){var H;return(H=A.data())==null?void 0:H.attachments}},{flexibleActionsViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(_.mg,{data:H.data,
layout:function(){var k;return((k=A.lockupStyle())==null?void 0:k.arrangement)===1?0:1},
justifyContentOverride:function(){var k;return((k=A.lockupStyle())==null?void 0:k.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(Ozk,{data:H.data}))},
expandableMetadataViewModel:function(H){H=H.data;var k;return _.x("div",{class:_.ER("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(k=_.wj().resolve(_.fZ(zlw)))==null?void 0:k({data:H}))},
adButtonGroupViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(izG,{data:H.data}))},
adButtonViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(_.la,{data:H.data,isCompactWidth:!0}))},
tableViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(Rlk,{data:H.data}))},
aiCompanionAttachmentViewModel:function(H){H=H.data;var k;return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},(k=_.wj().resolve(_.fZ(_.ZqG)))==null?void 0:k({data:H}))},
carouselAdCardCollectionViewModel:function(H){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(xDj,{data:H.data,isLockupAttachment:!0}))}}))},"Gb");var sUr=_.H5("rich_grid_min_item_width",310),AFV=_.H5("rich_grid_max_item_width",500);var eyW,BhX;eyW=16/9;BhX=2/3;_.to=_.c(function(A){var H=A.data;var k=A.className;var d=A.imageSizeConfig;var W=A.notifyOnLoaded;var z=function(){return H().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},u=function(){var J;
return _.hc((J=H())==null?void 0:J.rendererContext)};
A={};A=(A.ytContentPreviewImageViewModelHost=!0,A.ytContentPreviewImageViewModelCircleImage=function(){return z()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},A.ytContentPreviewImageViewModelTappable=function(){return u()},A);
var B=function(){var J,g;return(g=(J=_.L(H().rendererContext,_.zF))==null?void 0:J.label)!=null?g:""},h=function(){return iql(H())},O=function(){var J=x7l(z(),H().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",d==null?void 0:d(),hyA(h()),H().layoutWidth,H().layoutHeight),g=Object.assign({},J);
J.width&&(g.width=Math.round(J.width));J.height&&(g.height=Math.round(J.height));J.maxWidth&&(g.maxWidth=Math.round(J.maxWidth));J.maxHeight&&(g.maxHeight=Math.round(J.maxHeight));return g},T=_.be(function(){return O().height},void 0,"CxFlJb"),m=_.be(function(){return O().width},void 0,"lb8Jhd");
return _.x("yt-content-preview-image-view-model",{el:_.P8(_.OF(function(){var J;return(J=H())==null?void 0:J.rendererContext})),
role:function(){return u()?"link":void 0},
tabindex:function(){return u()?0:void 0},
class:_.ER(k,A,function(){var J=z();var g=d==null?void 0:d();J=J==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||J==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||J==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||J==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(g==null?void 0:g.size)!=null&&g.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(g==null?void 0:g.size)!=null&&g.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return J}),
style:function(){var J=O(),g=[];J.width&&g.push("width: "+J.width+"px");J.height&&g.push("height: "+J.height+"px");J.maxWidth&&g.push("max-width: "+J.maxWidth+"px");J.maxHeight&&g.push("max-height: "+J.maxHeight+"px");J.fullWidth&&g.push("width: 100%");return g.join(";")}},_.x(_.R,{cond:h,
then:function(J){return _.x(_.GA,{data:J,alt:B,"data-disabled$":function(){return!B()},
notifyOnLoaded:W,targetWidth:m,targetHeight:T,preserveWidth:function(){return!!m()},
preserveHeight:function(){return!!T()}})}}),_.x(_.HG,{data:function(){var J;
return(J=H())==null?void 0:J.overlays}},{thumbnailHoverOverlayViewModel:Oe,
thumbnailOverlayButtonViewModel:_.$7Q}))},"Hb");
_.to.idomCompat=!0;var NO=_.c(function(A){var H=A.data;var k=A.className;var d=A.useSmallLayout;var W=A.useMediumText;var z=A.useHeavyText;var u=function(){return!(W==null||!W())||!(z==null||!z())};
A={};return _.x("yt-attribution-view-model",{el:_.P8(_.OF(function(){var B;return(B=H())==null?void 0:B.rendererContext})),
class:_.ER(k,(A.ytAttributionViewModelHost=!0,A.ytAttributionViewModelMediumText=W,A.ytAttributionViewModelHeavyText=z,A))},_.x(_.R,{cond:function(){return _.hc(H().rendererContext)},
then:function(){return _.x("button",{class:"ytAttributionViewModelTappable"},_.x(mDA,{data:H,useSmallLayout:d,badgesShouldInheritTypography:u}))},
else:function(){return _.x(mDA,{data:H,useSmallLayout:d,badgesShouldInheritTypography:u})}}))},"Ib"),mDA=_.c(function(A){var H=A.data;
var k=A.useSmallLayout;var d=A.badgesShouldInheritTypography;var W=function(){return{size:(k==null?0:k())?16:24}};
return _.x(_.sD,null,_.x(_.HG,{data:function(){return H().contentPreviewImage}},{contentPreviewImageViewModel:function(z){return _.x(_.to,{data:z.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:W})}}),_.x(_.HG,{data:function(){return H().badge}},{badgeViewModel:function(z){return _.x(_.CK,{data:z.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:d})}}),_.x(_.R,{cond:function(){return H().text},
then:function(){return _.x(_.j$,{text:function(){return H().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.x(_.R,{cond:function(){return H().suffix},
then:function(){return _.x(_.j$,{text:function(){return H().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Jb");
NO.idomCompat=!0;var JDA,gDJ,bzN,LzQ,vD1;JDA=_.c(function(A){var H=A.delimiter;var k=A.max;var d=A.index;var W=A.isStandalone;return _.x(_.R,{cond:function(){return k()-1>d()},
then:function(){var z={};return _.x("span",{class:_.ER("yt-content-metadata-view-model__delimiter",(z["yt-content-metadata-view-model__delimiter--standalone"]=W,z)),"aria-hidden":!0},H)}})},"Kb");
gDJ=_.c(function(A){var H=A.metadataPart;var k=A.maxLines;return _.x(_.j$,{text:function(){return H().text},
linkInheritColor:!0,className:function(){return OqI(k())},
userInput:!0})},"Lb");
bzN=_.c(function(A){var H=A.metadataPart;var k=A.maxLines;return _.x(_.R,{cond:function(){return H().tooltip},
then:function(d){return _.x("span",{title:d,role:"tooltip"},_.x(gDJ,{metadataPart:H,maxLines:k}))},
else:function(){return _.x(gDJ,{metadataPart:H,maxLines:k})}})},"Mb");
LzQ=_.c(function(A){var H=A.metadataPart;var k=A.isOverlay;var d=A.useMediumText;var W=A.hideAvatar;var z=function(){return H().maxLines!==void 0?H().maxLines:1};
return _.x(_.sD,null,_.x(_.HG,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(u){return _.x(_.mE,{data:u.data,
isOverlay:k,useMediumText:d,hideAvatar:W})},
badgeViewModel:_.CK}),_.x(_.R,{cond:function(){return H().leadingIcon},
then:function(u){return _.x(_.n3,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return u().name},
size:function(){return u().width}})}}),_.x(_.R,{cond:function(){return H().text},
then:function(){return _.x(bzN,{metadataPart:H,maxLines:z})}}),_.x(_.R,{cond:function(){return H().icon},
then:function(u){return _.x(_.n3,{className:"yt-content-metadata-view-model__icon",icon:function(){return u().name},
size:function(){return u().width}})}}))},"Nb");
vD1=_.c(function(A){var H=A.metadataRow;var k=A.isInline;var d=A.delimiter;var W=A.isOverlay;var z=A.useMediumText;var u=A.extensions;var B=function(){var O,T=u==null?void 0:(O=u())==null?void 0:O.lockupMetadata;O=H();var m,J;return!!((T==null?0:(m=T.byline)==null?0:m.hideAvatar)&&((J=_.L(O,UKJ))==null?void 0:J.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},h=function(){return H().metadataParts||[]};
A={};return _.x("div",{class:_.ER("yt-content-metadata-view-model__metadata-row",(A["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=k,A["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var O,T=u==null?void 0:(O=u())==null?void 0:O.lockupMetadata;O=H();var m,J;return!!((T==null?0:(m=T.byline)==null?0:m.addPadding)&&((J=_.L(O,UKJ))==null?void 0:J.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},A["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var O;
return!!(u==null?0:(O=u())==null?0:O.lockupMetadata)&&H().badges&&!H().metadataParts},A))},_.x(_.HG,{data:function(){return H().badges}},{badgeViewModel:function(O){return _.x("div",{class:"yt-content-metadata-view-model__badge"},_.x(_.CK,{data:O.data,
numBadgesInRow:function(){var T,m;return((T=H())==null?void 0:(m=T.badges)==null?void 0:m.length)||0}}))}}),_.x(_.Ix,{each:h},function(O,T){return _.x(_.sD,null,_.x(LzQ,{metadataPart:O,
isOverlay:W,useMediumText:z,hideAvatar:B}),_.x(JDA,{delimiter:d,max:function(){return h().length},
index:T,isStandalone:!1}))}),_.x(_.R,{cond:function(){return H().isSpacerRow&&!k()},
then:function(){return _.x("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Ob");
_.MO=_.c(function(A){A=_.SD(A,{layout:0,isOverlay:!1});var H=A.data,k=A.layout,d=A.isOverlay,W=A.useMediumText,z=A.extensions,u=function(){return k()===0},B=function(){var O;
return((O=H().metadataRows)==null?void 0:O.filter(function(T){var m,J=z==null?void 0:(m=z())==null?void 0:m.lockupMetadata,g,v;m=!!((J==null?0:(g=J.description)==null?0:g.hideDescription)&&((v=_.L(T,UKJ))==null?void 0:v.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var y,X;return!((J==null?0:(y=J.spacer)==null?0:y.hideSpacer)&&((X=_.L(T,UKJ))==null?void 0:X.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||m)}))||[]},h={};
return _.x("yt-content-metadata-view-model",{class:_.ER(A.className,"yt-content-metadata-view-model",(h["yt-content-metadata-view-model--inline"]=u,h["yt-content-metadata-view-model--tappable"]=function(){return _.hc(H().rendererContext)},h["yt-content-metadata-view-model--medium-text"]=W,h)),
el:_.P8(_.OF(function(){return H().rendererContext}))},_.x(_.Ix,{each:B},function(O,T){return _.x(_.sD,null,_.x(vD1,{metadataRow:O,
isInline:u,delimiter:function(){return H().delimiter},
isOverlay:d,useMediumText:W,extensions:z}),_.x(_.R,{cond:function(){return u()&&!O.isSpacerRow},
then:function(){return _.x(JDA,{delimiter:function(){return H().delimiter},
max:function(){return B().length},
index:T,isStandalone:!0})}}))}))},"Pb");
_.MO.idomCompat=!0;var yDN=_.c(function(A){var H=_.wj().resolve(_.fZ(_.sF)),k={};return _.x("yt-lockup-metadata-view-model",{class:_.ER("yt-lockup-metadata-view-model",function(){a:{var d=A.lockupStyle();if(d==null?0:d.isOverlay)d="yt-lockup-metadata-view-model--overlay";else switch(d==null?void 0:d.arrangement){case 1:d="yt-lockup-metadata-view-model--horizontal";break a;default:d="yt-lockup-metadata-view-model--vertical"}}return d},function(){a:{var d=A.lockupStyle();
switch(d==null?void 0:d.titleMaxLines){case 1:d="yt-lockup-metadata-view-model--title-max-lines-1";break a}d=void 0}return d},function(){a:{var d=A.lockupStyle();
if(d==null?0:d.isTiny)d="yt-lockup-metadata-view-model--tiny";else switch(d==null?void 0:d.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":d="yt-lockup-metadata-view-model--compact";break a;default:d="yt-lockup-metadata-view-model--standard"}}return d},(k["yt-lockup-metadata-view-model--overlay"]=function(){var d;
return(d=A.lockupStyle())==null?void 0:d.isOverlay},k["yt-lockup-metadata-view-model--card"]=function(){var d;
return(d=A.lockupStyle())==null?void 0:d.isCard},k["yt-lockup-metadata-view-model--centered"]=function(){var d;
return(d=A.lockupStyle())==null?void 0:d.isCentered},k["yt-lockup-metadata-view-model--typography-bump"]=function(){var d;
return(d=A.lockupStyle())==null?void 0:d.typographyBump},k["yt-lockup-metadata-view-model--legacy-typography"]=function(){var d;
return(d=A.lockupStyle())==null?void 0:d.useLegacyTypography},k["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var d;
return(d=A.lockupStyle())==null?void 0:d.useRichGridLegacyTypography},k))},_.x(_.HG,{data:function(){return A.data().image}},{avatarStackViewModel:function(d){return _.x("div",{class:"yt-lockup-metadata-view-model__avatar"},_.x(_.mE,{data:d.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(d){return _.x("div",{class:"yt-lockup-metadata-view-model__avatar"},_.x(_.RW,{data:d.data}))},
decoratedAvatarViewModel:function(d){return _.x("div",{class:"yt-lockup-metadata-view-model__avatar"},_.x(_.TU,{data:d.data}))}}),_.x("div",{class:"yt-lockup-metadata-view-model__text-container"},_.x("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var d;return(d=A.data().title)==null?void 0:d.content}},_.x(_.R,{cond:function(){return A.data().title},
then:function(d){return _.x(_.c2,{command:A.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.Mt({color:function(){var W;a:{var z=A.lockupStyle();var u=(W=A.hovered)==null?void 0:W.call(A);W=!(H==null||!H());var B;if((z==null?0:(B=z.onFocusEffect)==null?0:B.textPrimaryColor)&&u&&(z=W?z.onFocusEffect.textPrimaryColor.darkTheme:z.onFocusEffect.textPrimaryColor.lightTheme)){z=Rl(z);break a}z=void 0}return z}}),
ariaLabel:A.lockupAccessibilityLabel},_.x(_.j$,{text:d,userInput:!0}))}})),_.x("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.Mt({color:function(){var d;a:{var W=A.lockupStyle();var z=(d=A.hovered)==null?void 0:d.call(A);d=!(H==null||!H());var u;if((W==null?0:(u=W.onFocusEffect)==null?0:u.textSecondaryColor)&&z&&(W=d?W.onFocusEffect.textSecondaryColor.darkTheme:W.onFocusEffect.textSecondaryColor.lightTheme)){W=Rl(W);break a}W=void 0}return W}})},_.x(_.HG,{data:function(){return A.data().metadata}},{contentMetadataViewModel:function(d){return _.x(_.MO,{data:d.data,
layout:function(){var W,z;return(z=(W=A.layout)==null?void 0:W.call(A))!=null?z:1},
useMediumText:function(){var W,z;return((W=A.lockupStyle())==null?void 0:W.typographyBump)||((z=A.lockupStyle())==null?void 0:z.useRichGridLegacyTypography)},
extensions:function(){var W,z,u,B;return{lockupMetadata:{byline:{hideAvatar:((W=A.lockupStyle())==null?void 0:W.arrangement)===0,addPadding:((z=A.lockupStyle())==null?void 0:z.arrangement)===1},description:{hideDescription:!((u=A.lockupStyle())==null||!u.compactMetadata)},spacer:{hideSpacer:!((B=A.lockupStyle())==null||!B.compactMetadata)}}}}})}})),_.x(_.HG,{data:function(){return A.data().attribution}},{attributionViewModel:function(d){return _.x("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.x(NO,{data:d.data,
useSmallLayout:!0}))}})),_.x("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.x(_.HG,{data:function(){return A.data().menuButton}},{buttonViewModel:function(d){return _.x(_.U7,{data:d.data,
buttonOverrides:function(){var W;return((W=A.lockupStyle())==null?0:W.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qb");
yDN.idomCompat=!0;var jK1=_.c(function(A){var H=_.GP("notification-multi-action-renderer");_.Sp(function(){requestAnimationFrame(function(){_.UY(H.value)})});
var k={},d={},W={};return _.x("notification-multi-action-renderer",{class:_.ER("ytNotificationMultiActionRendererHost",(k.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var z;return(z=A.useLegacyShelfStyle)==null?void 0:z.call(A)},k)),
el:H},_.x("span",{"aria-live":"polite",class:_.ER("ytNotificationMultiActionRendererTextContainer",(d.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var z;return(z=A.useLegacyShelfStyle)==null?void 0:z.call(A)},d))},_.x(_.j$,{text:function(){return A.data().responseText}})),_.x("div",{class:_.ER("ytNotificationMultiActionRendererButtonContainer",(W.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var z;
return(z=A.useLegacyShelfStyle)==null?void 0:z.call(A)},W))},_.x(_.HG,{data:function(){var z;
return(z=A.data().buttons)==null?void 0:z.map(function(u){if(u=u.buttonRenderer){var B,h=Object,O=h.assign,T=(B=u.icon)==null?void 0:B.iconType;B=(B=u.command||u.serviceEndpoint||u.navigationEndpoint)?{innertubeCommand:B}:void 0;u={buttonViewModel:O.call(h,{},{iconName:T,onTap:B,trackingParams:u.trackingParams,titleFormatted:u.text?_.B8(u.text):void 0},ThA(u))}}else u=void 0;return u}).filter(function(u){return!!u})}},{buttonViewModel:function(z,u){return _.x("div",null,_.x(_.U7,{data:z.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var B;return((B=A.useModernStyles)==null?0:B.call(A))?{type:u()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Sb");var Ii0=_.c(function(A){var H=_.GP("notification-text-renderer");_.Sp(function(){requestAnimationFrame(function(){_.UY(H.value)})});
return _.x("notification-text-renderer",{el:H,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.x(_.j$,{text:function(){return A.data().successResponseText}}))},"Ub");_.nK=_.c(function(A){var H=_.o9(F4f,function(){var d;return m7b((d=A.contentId)==null?void 0:d.call(A))}),k=function(){var d;
return _.L((d=H())==null?void 0:d.command,_.AS)};
return _.x(_.R,{cond:function(){var d;if(!(d=k())){var W;d=_.L((W=H())==null?void 0:W.command,wFj)}return d},
then:function(){return _.x(_.R,{cond:k,then:function(){var d={};return _.x("div",{class:_.ER("ytDismissibleItemReplacedContent",function(){var W;return JFV((W=A.aspectRatio)==null?void 0:W.call(A))})},_.x("div",{class:_.ER((d.ytDismissibleItemAspectRatioContainer=function(){var W;
return((W=A.aspectRatio)==null?void 0:W.call(A))!==void 0},d))},_.x(_.HG,{data:function(){var W;
return(W=k())==null?void 0:W.item}},{notificationMultiActionRenderer:function(W){return _.x(jK1,{data:W.data,
useModernStyles:A.useModernStyle,useLegacyShelfStyle:A.useLegacyShelfStyle})},
notificationTextRenderer:Ii0})))}})},
else:A.children})},"Vb");_.YS0=_.c(function(A){var H=A.data;var k=A.customCommandResolver;A=_.P8(_.NV({visibilityCallback:function(z){var u,B=(u=H().interaction)==null?void 0:u.onFirstVisible;z&&B&&_.mu(B)},
showOption:_.VY}));var d=function(){var z;return((z=H().interaction)==null?0:z.onTap)?function(u){var B;NQA(u,(B=H().interaction)==null?void 0:B.onTap,k)}:void 0},W=function(){var z,u=H(),B=d(),h=(z=_.L(H().rendererContext,_.zF))==null?void 0:z.label;
a:switch(u.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":z=1;break a;default:z=0}return{size:LQ8(u.size),type:z,onTap:B,accessibilityText:h}};
return _.x("ad-avatar-view-model",{class:function(){var z;return((z=H().interaction)==null?0:z.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:A},_.x(_.R,{cond:function(){return H().image},
then:function(z){return _.x(k9k,{data:W,image:z})}}))},"Wb");_.ZY=_.c(function(A){var H=_.SD(A,{hasDot:!1,usedInMasthead:!1}),k=Object.assign({},H),d=H.data,W=H.hasDot;A=H.customCommandResolver;var z=H.usedInMasthead,u=(delete k.data,delete k.hasDot,delete k.customCommandResolver,delete k.usedInMasthead,k);H=function(){return d().style};
H!==void 0&&H!==null||_.lt(Error("Ih"));A=_.g9(function(){return d().interaction},A);
return _.x("ad-badge-view-model",{class:_.ER(function(){var B;return((B=d().interaction)==null?0:B.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var B=u.adRenderingContextType(),h=z();
d();return B!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||h?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.P8(A)},_.x(_.Lr,{data:function(){var B;d();return{type:2,text:(B=d().label)==null?void 0:B.content,adsIncludeDot:W(),isOverlay:d().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xb");var P0N;_.fK=_.c(function(A){var H=A.data;var k=A.customCommandResolver;var d=A.adRenderingContextType;return _.x("ad-details-line-view-model",{class:function(){var W;return((W=H().interaction)==null?0:W.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.P8(_.NV({visibilityCallback:function(W){var z,u=(z=H().interaction)==null?void 0:z.onFirstVisible;W&&u&&_.mu(u)},
showOption:_.VY}),_.g9(function(){return H().interaction},k))},_.x(_.R,{cond:function(){return H().style},
then:function(W){return _.x(_.Ix,{each:function(){var z;return((z=H())==null?void 0:z.attributes)||[]},
keyBy:"INDEX"},function(z){return _.x(P0N,{attribute:z,style:W,adRenderingContextType:function(){return d()}})})}}))},"Yb");
P0N=_.c(function(A){var H=A.attribute;var k=A.style;var d=A.adRenderingContextType;return _.x(_.R,{cond:function(){return H().text},
then:function(W){return _.x(_.j$,{text:W,className:function(){var z=d();k();return z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Zb");var G1G=_.c(function(A){var H=A.data;var k=A.typographyBump;var d=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},W=function(){return{size:"M"}};
A={};return _.x(_.sD,null,_.x("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.x(_.j$,{text:function(){return H().headline},
className:_.ER((A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.b("enable_desktop_vdc_components")},A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.b("enable_desktop_vdc_components")},A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return d==null?void 0:d()},A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(k==null?void 0:k())&&!(d==null?0:d())},A)),
linkInheritColor:!0}),_.x(_.R,{cond:function(){return H().description},
then:function(z){var u={};return _.x(_.j$,{text:z,className:_.ER("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(u.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return d==null?void 0:d()},u.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(k==null?void 0:k())&&!(d==null?0:d())},u)),
linkInheritColor:!0})}}),_.x(_.R,{cond:function(){return H().secondaryDescription},
then:function(z){var u={};return _.x(_.j$,{text:z,className:_.ER("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(u.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return k==null?void 0:k()},u)),
linkInheritColor:!0})}}),_.x("div",{class:function(){return d()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.x(_.R,{cond:function(){return H().adAvatar},
then:function(){return _.x("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.x(_.HG,{data:function(){return H().adAvatar}},{adAvatarViewModel:_.YS0}))}}),_.x(_.HG,{data:function(){return H().adBadge}},{adBadgeViewModel:function(z){return _.x(_.ZY,{data:z.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.x(_.HG,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(z){return _.x(_.fK,{data:z.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}}))),_.x("div",{class:function(){return _.b("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":d()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.x(_.HG,{data:function(){return H().menu}},{buttonViewModel:function(z){return _.x(_.U7,{data:z.data,
buttonOverrides:_.b("enable_desktop_vdc_components")?W:function(){a:switch(H().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var u="S";break a;default:u="M"}return{size:u}}})}})))},"$b"),Fzw=_.c(function(A){var H=A.data;
var k=A.noBottomMargin;var d=A.useVideoLockupTopPadding;var W=A.typographyBump;A={};A=_.ER("ytwFeedAdMetadataViewModelHostMetadata",(A.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return k==null?void 0:k()},A.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return d==null?void 0:d()},A));
var z=function(){return H().adBadge};
z!==void 0&&z!==null||_.lt(Error("Jh"));z={};var u={};return _.x(_.sD,null,_.x(_.R,{cond:function(){return H().adAvatar},
then:function(){return _.x("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.x(_.HG,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(B){return _.x(_.YS0,{data:B.data})}}))}}),_.x("div",{class:A},_.x("div",{class:_.ER("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return W==null?void 0:W()},z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(W==
null?void 0:W())&&_.b("web_enable_typography_bump_v2")},z))},_.x(_.j$,{text:function(){return H().headline},
linkInheritColor:!0})),_.x(_.R,{cond:function(){return H().description},
then:function(B){return _.x(_.j$,{text:B,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.x("div",{class:function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.b("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.x(_.HG,{data:function(){return H().adBadge}},
{adBadgeViewModel:function(B){return _.x(_.ZY,{data:B.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.x(_.HG,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(B){return _.x(_.fK,{data:B.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}})),_.x(_.R,{cond:function(){return H().secondaryDescription},
then:function(B){return _.x(_.j$,{text:B,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.x("div",{class:_.ER("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(u.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return d==null?void 0:d()},u))},_.x(_.HG,{data:function(){return H().menu}},{buttonViewModel:_.U7})))},"ac"),wv=_.c(function(A){var H=A.data;
var k=A.noBottomMargin;var d=A.listenToTapEvent;var W=A.setTouchEndHandler;var z=A.useVideoLockupTopPadding;var u=A.typographyBump;A=_.NV({visibilityCallback:function(m){var J,g=(J=H().interaction)==null?void 0:J.onFirstVisible;m&&g&&_.mu(g)},
showOption:_.VY});var B=_.g9(function(){return H().interaction},void 0,function(){return d==null?void 0:d()}),h=_.r(_.RV(!1,void 0,"KSFskc")),O=h.next().value,T=h.next().value;
h=_.lc(function(m){(W==null?0:W())&&!O()&&(m.currentTarget.click(),T(!0),setTimeout(function(){T(!1)},100));
return!1});
return _.x("feed-ad-metadata-view-model",{class:function(){var m;return((m=H().interaction)==null?0:m.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.P8(A,B),"on:touchend":h},_.x(_.Yl,null,_.x(_.y$,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.x(G1G,{data:H,
typographyBump:u})}),_.x(_.y$,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.x(Fzw,{data:H,
noBottomMargin:k,useVideoLockupTopPadding:z,typographyBump:u})})))},"bc");var XmN,DDj;XmN=_.yP.inlinePreviewEnabledSelector;_.oW=_.c(function(A){return _.x("yt-lockup-view-model",{class:_.ER(A.className,"yt-lockup-view-model--wrapper")},_.x(_.nK,{contentId:function(){return A.data().contentId},
useModernStyle:!0,aspectRatio:function(){var H,k;return((H=A.containerType)==null?void 0:H.call(A))!==3?rFl(A.data().contentType,(k=A.force16By9ThumbnailAspectRatio)==null?void 0:k.call(A)):void 0}},function(){return _.x(DDj,Object.assign({},A))}))},"cc");
DDj=_.c(function(A){A=_.SD(A,{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 H=A.data,k=A.containerLayoutConfig,d=A.containerType,W=A.sizing,z=A.protectBackground,u=A.typographyBump,B=A.force16By9ThumbnailAspectRatio,h=A.thumbnailFixedWidth,O=A.thumbnailTargetWidth,T=A.lockupExperiments,
m=A.elementsPerRow,J=A.useOverlayStyling,g=_.wj().resolve(_.fZ(_.sF));A=_.P8(_.OF(function(){var UC;return(UC=H())==null?void 0:UC.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","AD-BUTTON-VIEW-MODEL"],!0));var v=_.oy(XmN),y=_.wj().resolve(_.fZ(EbZ)),X=y?{}:void 0,D=function(){var UC,hk,eA;return(eA=(hk=_.L((UC=H())==null?void 0:UC.rendererContext,_.zF))==null?void 0:hk.label)!=null?eA:void 0},K=function(){var UC;
return(UC=_.L(H().metadata,_.lpZ))==null?void 0:UC.endorsement},N=function(){var UC=k==null?void 0:k(),hk;
if(UC==null?0:UC.containerType){var eA=(hk=H())==null?void 0:hk.contentType;hk=T();var lI=u(),Rp=O(),vj=z();UC=Object.assign({},u7l(d7I(UC),Lh(UC.responsiveSize),lI,eA,UC.force16By9ThumbnailAspectRatio,Rp,vj,void 0,hk),{thumbnailFixedWidth:UC.contentPreviewWidth})}else UC=u7l(d(),W(),u(),(eA=H())==null?void 0:eA.contentType,B(),O(),z(),J(),T());return UC};
y&&X&&y({enabled:function(){return v()},
itemPlaybackModel:function(){return H().itemPlayback},
thumbnailElRef:function(){return X.thumbnailElRef},
containerElRef:A,options:function(){var UC=X.thumbnailOverlays||[],hk=K(),eA;!hk||((eA=T())==null?0:eA.onFocusEffect)||UC.push(hk);var lI,Rp;return{thumbnail:X.thumbnail,thumbnailOverlays:UC,accessibilityText:D(),thumbnailSize:X.thumbnailSize,enableRounding:N().isCollection,containPlayerWithinThumbnail:N().isCollection,mouseleaveCallback:function(){M(!1)},
trackingParams:(lI=_.L(H().rendererContext,_.H8))==null?void 0:(Rp=lI.loggingDirectives)==null?void 0:Rp.trackingParams}}});
var U=0;y=_.r(_.RV(!1,void 0,"hPOYMe"));var p=y.next().value,M=y.next().value;y=_.r(_.RV(!1,void 0,"oGMpeb"));var Z=y.next().value,WV=y.next().value;y=_.lc(function(){Z()?(_.IE.cancelJob(U),U=_.IE.addJob(function(){M(!0)},8,32)):M(!0);
return!0});
var hA=_.lc(function(UC){UC=UC.relatedTarget;var hk=document.querySelector("ytd-video-preview");UC&&hk&&hk.contains(UC)||(U&&(_.IE.cancelJob(U),U=0),M(!1))});
_.aV(function(){U&&(_.IE.cancelJob(U),U=0)});
var qv=bqN(function(){WV(!0)}),eN=qv.touchFeedbackEvents,mr=qv.touchFeedbackOnPointerUp,Cl=qv.touchFeedbackOnPointerDown;
qv=qv.touchFeedbackOnPointerLeave;var pl={};return _.x(_.sD,null,_.x("div",{el:A,class:_.ER("yt-lockup-view-model",function(){a:{var UC=N();if(UC.metadataOnThumbnail)UC="yt-lockup-view-model--metadata-on-thumbnail";else switch(UC.arrangement){case 1:UC="yt-lockup-view-model--horizontal";break a;default:UC="yt-lockup-view-model--vertical"}}return UC},function(){a:{var UC=N();
if(UC.metadataOnThumbnail)UC="yt-lockup-view-model--metadata-on-thumbnail";else{switch(UC.collectionStackNumber){case 1:UC="yt-lockup-view-model--collection-stack-1";break a;case 2:UC="yt-lockup-view-model--collection-stack-2";break a}UC=void 0}}return UC},function(){var UC;
return _.RyA((UC=H())==null?void 0:UC.contentId)},(pl["yt-lockup-view-model--card"]=function(){return N().isCard},pl["yt-lockup-view-model--compact"]=function(){return N().isTiny||N().sizing!=="STANDARD"},pl["yt-lockup-view-model--protect-background"]=z,pl["yt-lockup-view-model--add-margins"]=function(){return N().addMarginForFullbleed},pl["yt-lockup-view-model--centered"]=function(){return N().isCentered},pl["yt-lockup-view-model--fullbleed"]=function(){return N().fullbleed},pl["yt-lockup-view-model--single-column-grid"]=
function(){return m()===1&&d()===2},pl["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var UC;
return(UC=T())==null?void 0:UC.useRichGridLegacyMargin},pl["yt-lockup-view-model--flex-none"]=function(){return!_.b("lockup_flex_none_killswitch")},pl)),
"on:mousedown":Cl,"on:mouseleave":hA,"on:mouseup":mr,"on:mouseover":y,"on:touchstart":Cl,"on:touchend":mr,"on:pointerleave":qv},_.x(_.pM,{model:function(){var UC,hk,eA=Object,lI=eA.assign,Rp=(X==null?void 0:X.thumbnailSize)||"small";a:{var vj=N();var T0=!!(K()&&((UC=T())==null?0:UC.onFocusEffect));switch((X==null?void 0:X.thumbnailSize)||"small"){case "small":UC=4;break;case "large":UC=12;break;default:UC=8}if(T0)vj=UC+12;else{switch(vj.collectionStackNumber){case 1:vj=UC+8;break a;case 2:vj=UC+12;
break a}vj=void 0}}Rp={thumbnailSize:Rp,triggerEvents:!0,customTopExtend:vj};var Y1;vj=(hk=T())==null?void 0:hk.onFocusEffect;T0=!(g==null||!g());if(vj){var ze,Tf;hk=T0?(ze=vj.onFocusColor)==null?void 0:ze.darkTheme:(Tf=vj.onFocusColor)==null?void 0:Tf.lightTheme;var QW,mG;ze=T0?(QW=vj.keyLightColor)==null?void 0:QW.darkTheme:(mG=vj.keyLightColor)==null?void 0:mG.lightTheme;var nN;QW=T0?(Y1=vj.touchResponseColor)==null?void 0:Y1.darkTheme:(nN=vj.touchResponseColor)==null?void 0:nN.lightTheme;Y1={background:hk!==
void 0?Rl(hk):void 0,keyLight:ze!==void 0?Rl(ze):void 0};nN=[];mG=_.r(vj.lightingTechniques||[]);for(ze=mG.next();!ze.done;ze=mG.next())switch(ze.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":nN.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":nN.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":nN.push(3)}Y1={hoverEffect:{palette:Y1,lightingTechniques:nN},touchEffect:{palette:{background:QW!==void 0?Rl(QW):void 0}}}}else Y1={};return lI.call(eA,{},Rp,Y1)},
hovered:function(){return p()},
pointerDownEvent:eN.pointerDownEvent,pointerUpEvent:eN.pointerUpEvent,pointerLeaveEvent:eN.pointerLeaveEvent}),_.x(_.R,{cond:function(){var UC;return K()&&p()&&((UC=T())==null?void 0:UC.onFocusEffect)},
then:function(){return _.x("div",{class:"yt-lockup-view-model__endorsement"},_.x(_.HG,{data:function(){return K()}},{attributionViewModel:function(UC){return _.x(NO,{data:UC.data,
useHeavyText:!0})}}))}}),_.x(_.c2,{command:function(){var UC;
return _.i2((UC=H())==null?void 0:UC.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(h()||N().thumbnailFixedWidth)&&N().arrangement===1?"width: "+(h()||N().thumbnailFixedWidth):""}},_.x(_.HG,{data:function(){var UC;
return(UC=H())==null?void 0:UC.contentImage}},{thumbnailViewModel:function(UC){return _.x(QY,{data:UC.data,
aspectRatio:function(){return N().aspectRatio},
disableRounding:function(){return N().disableRounding},
width:O,hovered:function(){return p()&&!(v()&&H().itemPlayback)},
isClip:function(){var hk;return((hk=H())==null?void 0:hk.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:V4v(X),lockupExperiments:function(){return T()}})},
collectionThumbnailViewModel:function(UC){return _.x(Wz0,{data:UC.data,aspectRatio:function(){return N().aspectRatio},
disableRounding:function(){return N().disableRounding},
width:O,doubleStack:function(){return N().collectionStackNumber===2},
hovered:function(){return p()&&!(v()&&H().itemPlayback)},
playbackRef:V4v(X)})},
decoratedAvatarViewModel:_.TU})),_.x("div",{class:"yt-lockup-view-model__metadata"},_.x(_.HG,{data:function(){var UC;return(UC=H())==null?void 0:UC.metadata}},{lockupMetadataViewModel:function(UC){return _.x(yDN,{data:UC.data,
hovered:p,lockupStyle:N,lockupCommand:function(){var hk;return _.i2((hk=H())==null?void 0:hk.rendererContext)},
lockupAccessibilityLabel:function(){return D()},
layout:function(){var hk;return((hk=T())==null?0:hk.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(UC){return _.x(wv,{data:UC.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:u})}}),_.x(_.HG,{data:function(){var UC;
return(UC=H())==null?void 0:UC.attachmentSlot}},{lockupAttachmentsViewModel:function(UC){return _.x(TiZ,{data:UC.data,
lockupStyle:N})}}))),_.x(_.HG,{data:function(){var UC;
return(UC=H())==null?void 0:UC.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(UC){return _.x(TiZ,{data:UC.data,
lockupStyle:N})}}))},"dc");
_.oW.idomCompat=!0;_.Sw(_.oW,"yt-lockup-view-model",{props:{data:_.Ih,containerLayoutConfig:_.Ih,containerType:_.Ih,sizing:_.Ih,protectBackground:_.Ih,typographyBump:_.Ih,thumbnailFixedWidth:_.Ih,thumbnailTargetWidth:_.Ih,force16By9ThumbnailAspectRatio:_.Ih,className:_.Ih,lockupExperiments:_.Ih,elementsPerRow:_.Ih,useOverlayStyling:_.Ih}});var IlW,SSA=_.c(function(A){var H=_.SD(A,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),k=H.text,d=H.alwaysShowTruncationText;A=H.truncationText;var W=H.onTextClick,z=H.maxLines,u=H.disableTextMask,B=H.textStyle,h=H.accessibilityLabel,O=H.textSize,T=H.alwaysTruncateAtMaxLines,m=H.expandOnClick;H=_.r(_.RV(!1,void 0,"EzA1q"));var J=H.next().value,g=H.next().value;H=_.lc(function(){m()&&g(!J());W==null||W()});
var v=function(){a:switch(O()){case "medium":var Z=2;break a;case "large":Z=2.2;break a;default:Z=1.8}return Z},y=G9C(k,function(){return J()?Infinity:z()},v,u,T,J),X=y.isTruncated;
k=y.displayText;T=y.contentRef;var D=y.hiddenRef,K=y.placeholderTruncationTextRef,N=y.hiddenTruncationTextRef;y=y.truncationTextRef;var U={},p={},M={};return _.x("truncated-text",{class:_.ER((U["yt-truncated-text"]=!0,U["yt-truncated-text--overlay"]=function(){return B()==="overlay"},U["yt-truncated-text--medium-text"]=function(){return O()==="medium"},U["yt-truncated-text--large-text"]=function(){return O()==="large"},U["yt-truncated-text--primary-text"]=function(){return B()==="primary-text"},U)),
"on:click":H,style:function(){return"line-height: "+v()+"rem;"}},_.x("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:T,style:function(){return J()?"":"max-height: "+z()*v()+"rem;"}},_.x(_.j$,{text:k}),_.x("button",{"aria-disabled":!0,
disabled:!0,class:_.ER((p["yt-truncated-text__inline-button"]=!0,p["yt-truncated-text--hidden"]=function(){return!(!J()&&(d!=null&&d()||X()))},p)),
el:K,style:function(){return"line-height: "+v()+"rem;"}},_.x(_.j$,{text:A}))),_.x("truncated-text-content",{class:_.ER("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:D,style:function(){return J()?"":"max-height: "+z()*v()+"rem;"},
"aria-hidden":"true"},_.x(_.j$,{text:k}),_.x("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:N,style:function(){return"line-height: "+v()+"rem;"}},_.x(_.j$,{text:A}))),_.x("button",{"aria-label":h,
class:_.ER((M["yt-truncated-text__absolute-button"]=function(){return!u()},M["yt-truncated-text__bottom-button"]=function(){return u()},M["yt-truncated-text--hidden"]=function(){return!(!J()&&(d!=null&&d()||X()))},M)),
el:y,style:function(){return"line-height: "+v()+"rem;"}},_.x(_.j$,{text:A})))},"fc");
SSA.idomCompat={callbacks:{onTextClick:!0}};var aiw=_.c(function(A){var H=A.data;A=A.className;var k=_.be(function(){return XtN(H())},void 0,"uDhDke"),d=_.x(_.sD,null,_.x(_.R,{cond:function(){return H().heroText||H().image},
then:function(){return _.x(C0J,{data:H})}}),_.x(Kzp,{data:H,
sizeSmall:function(){return H().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.x("yt-video-attribute-view-model",{class:A},_.x("div",{class:function(){var W=H();a:switch(W.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(W.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(W.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var B=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":B="yt-video-attribute-view-model--image-avatar";break a;default:B=""}a:switch(W.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var h="yt-video-attribute-view-model--metadata-header";break a;default:h=""}a:switch(W.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var O="yt-video-attribute-view-model--container-card";break a;default:O=""}return["yt-video-attribute-view-model",z,u,
B,h,O,XtN(W)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Mt({"background-color":function(){var W=H();if(W.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var z="";else{z=W.lightColorPalette;W=W.darkColorPalette;var u,B=((u=_.wj().resolve(_.fZ(_.sF)))==null?0:u())&&W?W:z;z=(z=B==null?void 0:B.section2Color)?_.h1(z):""}return z}})},_.x(_.R,{cond:k,
then:function(){return _.x(_.c2,{className:"yt-video-attribute-view-model__content-container",command:k,role:"group",ariaLabel:function(){return H().title}},d)},
else:function(){return _.x("div",{class:"yt-video-attribute-view-model__content-container"},d)}})))},"gc");
aiw.idomCompat=!0;var C0J=_.c(function(A){var H=A.data;var k,d=(k=_.wj().resolve(_.fZ(_.sF)))==null?void 0:k(),W=function(){return d&&H().darkThemeImage?H().darkThemeImage:H().image},z=_.be(function(){return D7v(H())},void 0,"UDqj0b");
return _.x("div",{class:"yt-video-attribute-view-model__hero-section"},_.x(_.Yl,null,_.x(_.y$,{when:W},function(){return _.x(_.GA,{data:function(){return W()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.x(_.y$,{when:function(){return H().heroText}},function(){return _.x("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.x("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return H().heroText}))})),_.x(_.R,{cond:function(){return H().overflowMenuOnTap},
then:function(){return _.x("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.x(_.E7,{data:z,iconName:"MORE_VERT"}))}}))},"hc");
C0J.idomCompat=!0;var Kzp=_.c(function(A){var H=A.data;A=A.sizeSmall;var k=function(){return H().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},d=_.be(function(){return TA(_.Ry({innertubeCommand:XtN(H())}))?"link":XtN(H())?"button":"group"},void 0,"e2MmYe"),W={};
return _.x("div",{class:_.ER("yt-video-attribute-view-model__metadata",(W["yt-video-attribute-view-model--small-font"]=A,W)),role:d},_.x("h1",{class:"yt-video-attribute-view-model__title"},function(){return H().title}),_.x(_.R,{cond:function(){return H().subtitle},
then:function(){return _.x("h4",{class:"yt-video-attribute-view-model__subtitle"},_.x(_.R,{cond:k,then:function(){return _.x(SSA,{text:function(){return FQf(H().subtitle)},
truncationText:function(){return FQf(H().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.x("span",null,function(){return H().subtitle})}}))}}),_.x(_.R,{cond:function(){return H().secondarySubtitle},
then:function(z){return _.x("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.x(_.j$,{text:function(){var u=z();if(u!=null&&u.attachmentRuns){for(var B=[],h=_.r(u.attachmentRuns),O=h.next();!O.done;O=h.next())O=O.value,O.element&&B.push(Object.assign({},O,{element:Object.assign({},O.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));u=Object.assign({},u,{attachmentRuns:B})}return u}}))}}),_.x(_.HG,
{data:function(){return H().buttonViewModel}},{buttonViewModel:function(z){return _.x(_.U7,{data:z.data,
className:"yt-video-attribute-view-model__button"})}}))},"ic");
Kzp.idomCompat=!0;_.Sw(aiw,"yt-video-attribute-view-model",{props:{data:_.Ih,className:_.Ih}});var $v=function(){var A=_.a.apply(this,arguments)||this;A.useHighlightStyling=_.b("web_enable_deeper_metadata_highlight_styling");A.isSearch=!1;A.JSC$15617_lastScrollContainerWidth=NaN;A.pageLoadingFromNavigation=!1;A.currentIndex=0;A.supportComponentResize=!1;return A};
_.I($v,_.a);_.q=$v.prototype;
_.q.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}}}}}};
_.q.attached=function(){document.addEventListener("yt-page-type-changed",_.nF(this,this.onPageChange))};
_.q.detached=function(){document.removeEventListener("yt-page-type-changed",_.nF(this,this.onPageChange))};
_.q.getItemsPath=function(){return"data.cards"};
_.q.onIronResize=function(){this.updateListStyles()};
_.q.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var A;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(A=this.data)==null?void 0:A.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.b("problem_walkthrough_sd")&&!!this.centerItems};
_.q.computeCardListStyle=function(A){return A||null};
_.q.computeEmpty=function(A){return!this.get("cards.length",A)};
_.q.computeThumbnailStyle=function(A){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",A)||null};
_.q.computeHasSubtitle=function(A){return!!this.get("header.richListHeaderRenderer.subtitle",A)};
_.q.computeInitialCountNumber=function(A){return this.hasSquareMiniApp&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.q.computeUseFloorScrolling=function(A){return A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.q.computeHasGameCard=function(A){return(A=this.get("cards",A))?A.some(function(H){return H.gameCardRenderer}):!1};
_.q.computeCenterHeaderTitle=function(A){return!(A==null||!A.centerHeaderTitle)};
_.q.computeHasPortraitMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.q.computeHasSquareMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.q.computeHasSkinnyWidthPortraitMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.width===135}):!1};
_.q.computeCenterItems=function(A){return!!A};
_.q.computeHasInfoPanel=function(A){var H;return A==null?void 0:(H=A.cards)==null?void 0:H.some(function(k){return k.infoPanelContentRenderer})};
_.q.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.q.getItemByIndex=function(A){var H=this.items.children;return H&&H.length>A?H[A]:void 0};
_.q.onPageChange=function(){var A=this;this.pageLoadingFromNavigation=!0;_.IE.addJob(function(){A.pageLoadingFromNavigation=!1;_.li(A.hostElement,"yt-terminate-video-preview-action")},8)};
_.q.updateListStyles=function(){if(_.b("problem_walkthrough_sd")&&this.JSC$15617_scrollContainer!==void 0){var A=this.JSC$15617_scrollContainer.clientWidth;A!==this.JSC$15617_lastScrollContainerWidth&&(this.JSC$15617_lastScrollContainerWidth=A,_.NH(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(A*.8,415)+"px"}),_.Ed(this.hostElement,"iron-resize"))}};
_.nP.Object.defineProperties($v.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.b("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return!!((A=this.data)==null?0:(H=A.cards)==null?0:(k=H[0])==null?0:k.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return!!((A=this.data)==null?0:(H=A.cards)==null?0:(k=H[0])==null?0:k.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return _.b("enable_desktop_amsterdam_info_panels")&&!!((A=this.data)==null?0:(H=A.cards)==null?0:(k=H[0])==null?0:k.infoPanelContentRenderer)}}});
$v.prototype.dataChanged=$v.prototype.dataChanged;$v.prototype.onIronResize=$v.prototype.onIronResize;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.pg.YtdHorizontalListBehavior),_.l("design:type",Object)],$v.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.P(_.JB),_.l("design:type",Object)],$v.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$v.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],$v.prototype,"useCustomColors",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$v.prototype,"useHighlightStyling",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.l("design:type",Object)],$v.prototype,"cardListStyle",void 0);_.E([_.C({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.l("design:type",Boolean)],$v.prototype,"empty",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.l("design:type",Boolean)],$v.prototype,"hasSubtitle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.l("design:type",Boolean)],$v.prototype,"thumbnailStyle",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.l("design:type",Boolean)],$v.prototype,"hasGameCard",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.l("design:type",Boolean)],$v.prototype,"centerHeaderTitle",void 0);
_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.l("design:type",Boolean)],$v.prototype,"hasPortraitMiniApp",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.l("design:type",Boolean)],$v.prototype,"hasSquareMiniApp",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.l("design:type",Boolean)],$v.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.l("design:type",Boolean)],$v.prototype,"hasInfoPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$v.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],$v.prototype,"inlineStructuredDescription",void 0);_.E([_.ol("#scroll-container"),_.l("design:type",HTMLDivElement)],$v.prototype,"JSC$15617_scrollContainer",void 0);
_.E([_.C({computed:"computeInitialCountNumber(data.style.type)"}),_.l("design:type",Number)],$v.prototype,"initialCount",void 0);_.E([_.C({computed:"computeUseFloorScrolling(data.style.type)"}),_.l("design:type",Boolean)],$v.prototype,"useFloorScrolling",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.l("design:type",Boolean)],$v.prototype,"centerItems",void 0);_.E([_.C(),_.l("design:type",Object)],$v.prototype,"pageLoadingFromNavigation",void 0);
_.E([_.C(),_.l("design:type",Object)],$v.prototype,"currentIndex",void 0);_.E([_.C(),_.l("design:type",Number)],$v.prototype,"scrollCount",void 0);_.E([_.C(),_.l("design:type",Object)],$v.prototype,"supportComponentResize",void 0);_.E([_.ol("#items"),_.l("design:type",HTMLDivElement)],$v.prototype,"items",void 0);_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$v.prototype,"onIronResize",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$v.prototype,"dataChanged",null);_.E([_.C({reflectToAttribute:!0}),_.G("inlineStructuredDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$v.prototype,"hideNavigationButton",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$v.prototype,"modernChapters",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$v.prototype,"hasVideoAttributeViewModels",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$v.prototype,"modernInfoPanels",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],$v);
_.Q($v,"ytd-horizontal-card-list-renderer",function(){if(bqA!==void 0)return bqA;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return bqA=A},{mode:2});var cDw=_.c(function(A){var H=A.data;var k={};return _.x("video-summary-content-view-model",{class:_.ER("videoSummaryContentViewModelHost",A.className,(k.videoSummaryContentViewModelHostIsSearch=A.isSearch,k))},_.x(_.Ix,{each:function(){var d=[],W=H().paragraphs;if(W==null||!W.length)return[];for(var z=0;z<W.length;z++){var u=_.L(W[z],Efw),B=void 0;z>0&&(B=_.L(W[z-1],Efw));B&&!!B.marker===!!u.marker?d[d.length-1].paragraphs.push(u):d.push({isList:!!u.marker,paragraphs:[u]})}return d},
keyBy:"INDEX"},function(d){return _.x(_.R,{cond:function(){return d().isList},
then:function(){return _.x("ul",{class:"videoSummaryContentViewModelList"},_.x(_.Ix,{each:function(){return d().paragraphs},
keyBy:"INDEX"},function(W){return _.x("li",{class:"videoSummaryContentViewModelListItem"},_.x(_.j$,{text:function(){return W().text}}))}))},
else:function(){return _.x("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.x(_.Ix,{each:function(){return d().paragraphs},
keyBy:"INDEX"},function(W){return _.x("p",{class:"videoSummaryContentViewModelParagraph"},_.x(_.j$,{text:function(){return W().text}}))}))}})}),_.x(_.R,{cond:function(){return!!_.L(H().likeButtonViewModel,_.vp)&&!!_.L(H().dislikeButtonViewModel,_.yj)},
then:function(){return _.x("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.x("div",{class:"videoSummaryContentViewModelLikeButton"},_.x(_.gq,{data:function(){return _.L(H().likeButtonViewModel,_.vp)},
disableIconAnimation:!0})),_.x(_.Jz,{data:function(){return _.L(H().dislikeButtonViewModel,_.yj)}}))}}))},"jc");
cDw.idomCompat=!0;_.Sw(cDw,"video-summary-content-view-model",{props:{data:_.Ih,isSearch:_.Ih,className:_.Ih}});var AP=function(){var A=_.a.apply(this,arguments)||this;var H,k;A.isExpanded=(k=(H=A.data)==null?void 0:H.isExpanded)!=null?k:!1;A.disableExpand=!1;A.showProminentLabel=!1;A.showRightSideLabel=!0;A.toggleExpandableContent=function(d){A.disableExpand||(d.stopPropagation(),_.DG(_.F_(d),A.hostElement,["info","expanded-subtitle"])||(A.isExpanded=!A.isExpanded,A.ytRendererBehavior.logExplicitClick(A.data),A.JSC$15628_cardList&&!_.b("expandable_metadata_a11y_fix_ks")&&_.No(A,function(){_.EY(A.hostElement)})))};
A.useSquareThumbnail=!1;A.startX=0;return A};
_.I(AP,_.a);_.q=AP.prototype;_.q.computeUseSquareThumbnail=function(){var A;return(A=this.data)==null?void 0:A.useSquareThumbnail};
_.q.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"}}}}};
_.q.dataChanged=function(){if(this.data){var A,H;this.isExpanded=(H=(A=this.data)==null?void 0:A.isExpanded)!=null?H:!1;var k,d,W,z;if(A=this.isDarkTheme()?(k=this.data)==null?void 0:(d=k.colorData)==null?void 0:d.darkColorPalette:(W=this.data)==null?void 0:(z=W.colorData)==null?void 0:z.lightColorPalette){var u,B;if((u=this.data)==null?0:(B=u.colorData)==null?0:B.vibrantColorPalette)A.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.qN(this.hostElement,A)}}};
_.q.isExpandedChanged=function(){this.isExpanded&&this.JSC$15628_cardList&&_.Ed(this.JSC$15628_cardList,"iron-resize")};
_.q.computeIsExpanded=function(A){return!!A.isExpanded};
_.q.computeShowProminentLabel=function(A,H){var k;return!!(A==null?0:(k=A.header)==null?0:k.showLeadingCollapsedLabel)&&!H};
_.q.computeShowRightSideLabel=function(A,H){var k;return!(A==null?0:(k=A.header)==null?0:k.showLeadingCollapsedLabel)&&!H};
_.q.captureContentClick=function(A){if(!this.disableExpand)if(_.b("expandable_metadata_fix_killswitch")){var H=A.target;_.WMj(H,"ytd-macro-markers-list-item-renderer")||A.stopPropagation();(H==null?void 0:H.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.DG(_.F_(A),this.hostElement,["items"])||_.XU(_.F_(A),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.q.timestampClick=function(A){A.stopPropagation();var H,k;(A=(H=this.data)==null?void 0:(k=H.header)==null?void 0:k.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(A)};
_.q.onDown=function(A){A.stopPropagation();this.startX=A.detail?A.detail.x:0};
_.q.onUp=function(A){this.skipKeyInteraction(A)&&A.stopPropagation()};
_.q.skipKeyInteraction=function(A){var H=A.target;if((H==null?void 0:H.id)==="scroll-container"||(H==null?void 0:H.id)==="items"||A.detail&&A.detail.x!==this.startX)return!0;A=_.F_(A);A=_.r(A);for(H=A.next();!H.done;H=A.next()){H=H.value;if(H===this.hostElement)break;if(H.hasAttribute&&H.hasAttribute("skip-key-interaction"))return!0}return!1};
_.q.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.nP.Object.defineProperties(AP.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.L((A=this.data)==null?void 0:A.expandedContent,VdN)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.L((A=this.data)==null?void 0:A.expandedContent,t3p)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var A,H;return!((A=this.data)==null||!A.useCustomColors)&&!((H=this.data)==null||!H.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var A,H;return!!((A=this.data)==null?0:(H=A.header)==null?0:H.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var A,H;return!!((A=this.data)==null?0:(H=A.header)==null?0:H.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.data)==null?void 0:(H=A.header)==null?void 0:H.expandedSubtitleTapCommand;A=k&&_.L(k,_.KT);return _.b("web_open_ai_support_links_external_window")&&(A==null?void 0:A.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.data)==null?void 0:(H=A.header)==null?void 0:H.expandedSubtitleTapCommand;A=k&&_.L(k,_.KT);return _.b("web_open_ai_support_links_external_window")&&(A==null?void 0:A.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,H;return!!((A=this.data)==null?0:(H=A.header)==null?0:H.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
AP.prototype.onUp=AP.prototype.onUp;AP.prototype.onDown=AP.prototype.onDown;AP.prototype.isExpandedChanged=AP.prototype.isExpandedChanged;AP.prototype.dataChanged=AP.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],AP.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],AP.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],AP.prototype,"isExpanded",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],AP.prototype,"disableExpand",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],AP.prototype,"isSearch",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],AP.prototype,"isWatch",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.l("design:type",Object)],AP.prototype,"showProminentLabel",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.l("design:type",Object)],AP.prototype,"showRightSideLabel",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AP.prototype,"hasVideoSummary",null);_.E([_.C({value:!1,reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AP.prototype,"hasLockupViewModel",null);_.E([_.C({reflectToAttribute:!0}),_.G("data","isWatch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AP.prototype,"useCustomColors",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AP.prototype,"showInfoButton",null);_.E([_.G("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AP.prototype,"showTimestamp",null);_.E([_.G("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AP.prototype,"showExpandedSubtitle",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],AP.prototype,"expandedSubtitleTarget",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],AP.prototype,"expandedSubtitleRel",null);_.E([_.G("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AP.prototype,"showThumbnail",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],AP.prototype,"useVppShoppingDestinationStyle",null);
_.E([_.C(),_.l("design:type",Object)],AP.prototype,"toggleExpandableContent",void 0);_.E([_.ol("ytd-horizontal-card-list-renderer"),_.l("design:type",Object)],AP.prototype,"JSC$15628_cardList",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.l("design:type",Object)],AP.prototype,"useSquareThumbnail",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AP.prototype,"dataChanged",null);
_.E([_.fF("isExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AP.prototype,"isExpandedChanged",null);_.E([_.Ze("down"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],AP.prototype,"onDown",null);_.E([_.Ze("up"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],AP.prototype,"onUp",null);
_.E([_.O6({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],AP);
_.Q(AP,"ytd-expandable-metadata-renderer",function(){if(XQJ!==void 0)return XQJ;var A=document.createElement("template");_.Y(A,'\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]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return XQJ=A},{mode:1});var pmA,QKJ=function(){if(pmA!==void 0)return pmA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return pmA=A};_.Sw(_.mE,"yt-avatar-stack-view-model",{props:{className:_.Ih,data:_.Ih,overrides:_.Ih,isOverlay:_.Ih,useMediumText:_.Ih,decorations:_.Ih,hideAvatar:_.Ih}});_.uL("itemSectionRenderer","videoRenderer","ytd-video-renderer");var H$=function(){var A=_.a.apply(this,arguments)||this;A.disableExpand=!1;A.shouldShowChannelInfo=!1;A.hasAttributedBylineText=!1;A.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return A};
_.I(H$,_.a);_.q=H$.prototype;_.q.computeUseSearchUi=function(){var A,H;return this.isSearch||((A=this.data)==null?void 0:(H=A.style)==null?void 0:H.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.q.computeUseThreeLineTitle=function(){var A;return((A=this.data)==null?void 0:A.maxTitleLines)===3};
_.q.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.b("polymer_video_renderer_defer_menu")&&!x1A?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"}}}};
_.q.attached=function(){_.UJ(this.hostElement,"blue-links",_.b("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.lw(_.Va(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var A=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;A&&((H=_.L(A.commandMetadata,_.WY))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(A);this.updateInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15633_inlinePreviewHoverListener=m5({mediaRenderer:this,lockupElement:this.JSC$15633_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.q.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15633_inlinePreviewHoverListener)==null||cl(A)};
_.q.onTextWrapperClick=function(A){var H,k,d=this.hideTranslation?(H=this.data)==null?void 0:H.untranslatedNavigationEndpoint:(k=this.data)==null?void 0:k.navigationEndpoint;H=_.DG(_.F_(A),this.hostElement,["expandable-metadata"]);!d||H&&!_.b("expandable_metadata_fix_killswitch")||_.XU(_.F_(A),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Ed(this.hostElement,"yt-navigate",{endpoint:d})};
_.q.computeThumbnailWidth=function(A,H,k,d,W){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:d?W==="MASSIVE"?600:W==="BIG"?500:W==="MEDIUM"?450:420:k?360:H?128:A?210:246};
_.q.computeUseBiggerThumbs=function(A){return A&&_.b("enable_desktop_search_bigger_thumbs")};
_.q.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.q.computeHasAttributedBylineText=function(){var A;return!((A=this.data)==null||!A.attributedBylineText)};
_.q.computeVideoStyle=function(){if(_.b("enable_video_style")){var A,H;return(A=this.data)==null?void 0:(H=A.style)==null?void 0:H.value}};
_.q.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.q.handleHideItemSectionVideosByIdCommand=function(A){var H;A=(H=_.L(A,uYJ))==null?void 0:H.videoId;this.data&&this.data.videoId===A&&(this.isHidden=!0)};
_.q.getMetadataSnippetContainerClass=function(A){return A?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.q.computeTitleText=function(A,H,k){return A?k:H};
_.q.computeDescriptionSnippet=function(A,H,k){return A?k:H};
_.q.computeSnippetText=function(A,H,k){return A?k:H};
_.q.computeNavigationEndpoint=function(A,H){return A?H==null?void 0:H.untranslatedNavigationEndpoint:H==null?void 0:H.navigationEndpoint};
_.q.hideInlineTitleIcon=function(A,H){return A||!H};
_.nP.Object.defineProperties(H$.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 A;return(A=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?A:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return!!(this==null?0:(A=this.data)==null?0:(H=A.channelThumbnailSupportedRenderers)==null?0:(k=H.channelThumbnailWithLinkRenderer)==null?0:k.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.L((A=this.data)==null?void 0:A.avatar,Nfk)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15633_inlinePreviewHoverListener)==null?0:LK(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.nP.Object.defineProperties(H$,{template:{configurable:!0,enumerable:!0,get:function(){return QKJ()}}});
H$.prototype.dataChanged=H$.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],H$.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],H$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],H$.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.P(_.I6),_.l("design:type",Object)],H$.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],H$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],H$.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],H$.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],H$.prototype,"isBackstageVideo",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],H$.prototype,"isPostCompactVideo",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],H$.prototype,"isHistory",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],H$.prototype,"isRichGridVideoPost",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],H$.prototype,"isHidden",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],H$.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.l("design:type",Boolean)],H$.prototype,"useSearchUi",void 0);_.E([_.C({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.l("design:type",Boolean)],H$.prototype,"useThreeLineTitle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.l("design:type",Boolean)],H$.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.l("design:type",Object)],H$.prototype,"videoStyle",void 0);_.E([_.C({computed:"computeDisableExpand(videoStyle)"}),_.l("design:type",Object)],H$.prototype,"disableExpand",void 0);
_.E([_.C({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.l("design:type",Object)],H$.prototype,"shouldShowChannelInfo",void 0);_.E([_.C({computed:"computeHasAttributedBylineText(data)"}),_.l("design:type",Object)],H$.prototype,"hasAttributedBylineText",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.k6("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],H$.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.l("design:type",String)],H$.prototype,"inlineTitleIcon",void 0);_.E([_.C({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.l("design:type",Object)],H$.prototype,"computedNavigationEndpoint",void 0);_.E([_.C({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(A,H){return _.Mw(A.entities,"searchVideoResultEntity",H)}}),
_.l("design:type",Object)],H$.prototype,"searchVideoResultEntity",void 0);_.E([_.ol("ytd-thumbnail"),_.l("design:type",HTMLElement)],H$.prototype,"thumbnail",void 0);_.E([_.ol("#dismissible"),_.l("design:type",HTMLElement)],H$.prototype,"JSC$15633_dismissibleMedia",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],H$.prototype,"dataChanged",null);
_.E([_.G("searchVideoResultEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],H$.prototype,"hideTranslation",null);_.E([_.G("searchVideoResultEntity"),_.l("design:type",Array),_.l("design:paramtypes",[])],H$.prototype,"hiddenBadgeGroups",null);_.E([_.G("data","useAvatar"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],H$.prototype,"shouldShowChannelThumbnail",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],H$.prototype,"useAvatar",null);
_.E([_.G("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],H$.prototype,"isHovered",null);_.E([_.O6({is:"ytd-video-renderer",disableElementRegistration:!0})],H$);_.Q(H$,"ytd-video-renderer",function(){return QKJ()},{mode:2});var sE=function(){var A=_.a.apply(this,arguments)||this;A.editDialog=null;A.roundedContainer=!0;A.isLoading=!1;A.isRichGrid=!1;A.isRichGridRepost=!1;A.reduceSidePaddings=_.b("reduce_side_paddings_in_shelf");A.JSC$15640_spinnerEl=null;return A};
_.I(sE,_.a);_.q=sE.prototype;
_.q.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"}}}};
_.q.contentTextChanged=function(){this.expander.reset()};
_.q.dataChanged=function(){var A=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var H=0,k=this.data.actions&&this.data.actions.length;H<k;H++)this.openEditDialog(_.L(this.data.actions[H],N6w));if((H=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(H=this.get("buttonRenderer.hint.hintRenderer.hintId",H))&&H.startsWith("share-post-hint")){var d=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(d){_.NE.getInstance();var W=ME(_.Yu(_.$r("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.IE.addLowPriorityJob(function(){_.NT(A.hostElement,W,d)})}}}};
_.q.updatePoll=function(A){A>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.q.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15640_spinnerEl||(this.JSC$15640_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Va(this.hostElement).appendChild(this.JSC$15640_spinnerEl));this.JSC$15640_spinnerEl&&(this.JSC$15640_spinnerEl.active=this.isLoading)};
_.q.onYtNavigate=function(A){var H=this.get("updateCommentDialogEndpoint",A.detail.endpoint);H&&(this.openEditDialog(H),A.stopPropagation())};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null};
_.q.onYtCommentPollRevert=function(A,H){H&&this.updatePoll(H.selectedChoiceIndex)};
_.q.onYtServiceRequestSent=function(A,H){var k;H.endpoint&&(_.L(H.endpoint,zak)||_.L(H.endpoint,WfG)&&((k=_.L(H.endpoint,WfG))==null||!k.clientActions))&&(this.isLoading=!0);if(H.actions)for(A=0;A<H.actions.length;A++)k=H.actions[A],_.L(k,ke)&&(k=this.get("updateBackstagePollAction.selectedChoiceIndex",k),k==void 0&&(k=-1),this.updatePoll(k))};
_.q.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.q.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.editDialogEl.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.q.computeIsPostHidden=function(A,H){return!!A||H};
_.q.computeSurfaceType=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.q.computeUsesCompactLockup=function(A){return A==="BACKSTAGE_SURFACE_TYPE_HOME"||A==="BACKSTAGE_SURFACE_TYPE_SEARCH"||A==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||A==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||A==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||A==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.q.computeShowWithoutToolbar=function(A){return!A.actionButtons&&!A.actionMenu};
_.q.computePostAttachment=function(A){if(A.backstageAttachment){if(_.L(A.backstageAttachment,c00))return"poll";if(_.L(A.backstageAttachment,gTp))return"quiz";if(_.L(A.backstageAttachment,_.M01))return"video";if(_.L(A.backstageAttachment,bkk))return"uploaded-videos";if(_.L(A.backstageAttachment,OiJ))return A.contentText?"image":"image-only";if(_.L(A.backstageAttachment,R2w))return"playlist"}return"none"};
_.q.computePostTabIndex=function(A){return A?0:-1};
_.q.computeButtonTooltipPosition=function(A){return this.computeUsesCompactLockup(A)?"top":"bottom"};
_.q.computeHasText=function(A){return!(A==null||!A.contentText)};
_.q.onTap=function(A){var H,k;if(((H=this.data)==null?0:H.navigationEndpoint)&&((k=this.data)==null?void 0:k.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var d;((d=this.data)==null?0:d.navigationEndpoint)&&!_.XU(_.F_(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.nP.Object.defineProperties(sE.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.Yu("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,c00))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,bkk))}}});
sE.prototype.onYtServiceRequestCompleted=sE.prototype.onYtServiceRequestCompleted;sE.prototype.onYtServiceRequestSent=sE.prototype.onYtServiceRequestSent;sE.prototype.onYtCommentPollRevert=sE.prototype.onYtCommentPollRevert;sE.prototype.onYtCommentboxDismiss=sE.prototype.onYtCommentboxDismiss;sE.prototype.onYtNavigate=sE.prototype.onYtNavigate;sE.prototype.isLoadingChanged=sE.prototype.isLoadingChanged;sE.prototype.dataChanged=sE.prototype.dataChanged;sE.prototype.contentTextChanged=sE.prototype.contentTextChanged;
_.E([_.P(_.JB),_.l("design:type",Object)],sE.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],sE.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],sE.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],sE.prototype,"editDialog",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],sE.prototype,"roundedContainer",void 0);_.E([_.C(),_.l("design:type",Object)],sE.prototype,"isLoading",void 0);_.E([_.C({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.l("design:type",String)],sE.prototype,"surface",void 0);
_.E([_.C({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.l("design:type",Boolean)],sE.prototype,"usesCompactLockup",void 0);_.E([_.C({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],sE.prototype,"showWithoutToolbar",void 0);_.E([_.C({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.l("design:type",String)],sE.prototype,"attachment",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],sE.prototype,"isRichGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],sE.prototype,"isRichGridRepost",void 0);_.E([_.C({reflectToAttribute:!0,value:_.b("use_better_post_dismissals")}),_.l("design:type",Boolean)],sE.prototype,"useBetterPostDismissals",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],sE.prototype,"reduceSidePaddings",void 0);
_.E([_.C({computed:"computeHasText(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],sE.prototype,"hasText",void 0);_.E([_.ol("#expander"),_.l("design:type",Object)],sE.prototype,"expander",void 0);_.E([_.ol("#action-buttons"),_.l("design:type",Object)],sE.prototype,"actionButtons",void 0);_.E([_.ol("#edit-dialog"),_.l("design:type",HTMLElement)],sE.prototype,"editDialogEl",void 0);
_.E([_.fF("data.contentText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sE.prototype,"contentTextChanged",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sE.prototype,"dataChanged",null);_.E([_.fF("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sE.prototype,"isLoadingChanged",null);
_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],sE.prototype,"onYtNavigate",null);_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sE.prototype,"onYtCommentboxDismiss",null);_.E([_.Ze("yt-comment-poll-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],sE.prototype,"onYtCommentPollRevert",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],sE.prototype,"onYtServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],sE.prototype,"onYtServiceRequestCompleted",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sE.prototype,"voteCount",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sE.prototype,"commentCount",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],sE.prototype,"hasPoll",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],sE.prototype,"hasUploadedVideo",null);_.E([_.O6({is:"ytd-post-renderer",disableElementRegistration:!0})],sE);
_.Q(sE,"ytd-post-renderer",function(){if($dZ!==void 0)return $dZ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return $dZ=A},{mode:1});var V9k;var EDi;var kj=function(){return _.a.apply(this,arguments)||this};
_.I(kj,_.a);kj.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.pg.YtdHorizontalListBehavior),_.l("design:type",Object)],kj.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],kj.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kj.prototype,"data",void 0);
_.E([_.C({value:"$.items.children"}),_.l("design:type",String)],kj.prototype,"itemsPath",void 0);_.E([_.C({value:1}),_.l("design:type",Number)],kj.prototype,"initialCount",void 0);_.E([_.C({reflectToAttribute:!0,value:_.b("enable_community_page_on_desktop")}),_.l("design:type",Boolean)],kj.prototype,"useSmallerPostImageAttachments",void 0);_.E([_.C(),_.l("design:type",String)],kj.prototype,"surface",void 0);_.E([_.O6({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],kj);
_.Q(kj,"ytd-post-multi-image-renderer",function(){if(EDi!==void 0)return EDi;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return EDi=A},{mode:2});var UDZ={"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"}}},
dA=function(){var A=_.a.apply(this,arguments)||this;A.hasInlineCommentSection=!1;A.editDialog=null;A.isLoading=!1;A.shouldHideAuthor=!1;A.shouldShowVideoTime=!1;A.isInEngagementPanel=!1;A.hideBorder=!1;A.usesFullLockup=!1;A.shouldShowMenuInCompactView=!1;A.JSC$15655_spinnerEl=null;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.I(dA,_.a);_.q=dA.prototype;_.q.configureRendererStamper=function(){return UDZ};
_.q.computeIsPollHeaderEnabled=function(A){return(A==null?void 0:A.pollMetadataIcon)!=null};
_.q.getPublishTimeStampString=function(A,H){H=new Date((Number(H)-60*((new Date).getTimezoneOffset()-(new Date(Number(H)*1E3)).getTimezoneOffset()))*1E3);H=(new Ic(10)).format(H);if(A&&A.runs&&A.runs.length)for(var k=0;k<A.runs.length;k++)A.runs[k].text&&(A.runs[k].text=A.runs[k].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",H));return A};
_.q.created=function(){this.JSC$15655_spinnerEl=null};
_.q.contentTextChanged=function(){this.expander.reset()};
_.q.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var A;if((A=this.data)==null?0:A.actions){A=_.r(this.data.actions);for(var H=A.next();!H.done;H=A.next())this.openEditDialog(_.L(H.value,N6w))}};
_.q.handleSignalActionOpenPostCommentDialogAction=function(){_.Va(this.hostElement).querySelector("#action-buttons").reply()};
_.q.updatePoll=function(A,H){H&&this.set("data.pollMetadataVoteCountText",H);this.hasInlineCommentSection&&(A=A>=0,H=_.Va(this.hostElement).querySelector("#action-buttons"),A?H.reply():H.hideReplyDialog())};
_.q.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15655_spinnerEl||(this.JSC$15655_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Va(this.hostElement).appendChild(this.JSC$15655_spinnerEl));this.JSC$15655_spinnerEl&&(this.JSC$15655_spinnerEl.active=this.isLoading)};
_.q.onYtNavigate=function(A){var H=this.get("updateCommentDialogEndpoint",A.detail.endpoint);H&&(this.openEditDialog(H),A.stopPropagation())};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null};
_.q.onYtCommentPollRevert=function(A,H){H&&this.updatePoll(H.selectedChoiceIndex,H.totalVotes)};
_.q.onYtServiceRequestSent=function(A,H){A.stopPropagation();A=_.L(H.endpoint,WfG);if(_.L(H.endpoint,zak)||A&&!A.clientActions)this.isLoading=!0;if(H.actions)for(A=0;A<H.actions.length;A++){var k=H.actions[A],d=_.L(k,ke);d&&(k=this.get("updateBackstagePollAction.selectedChoiceIndex",k),k===void 0&&(k=-1),this.updatePoll(k,d.totalVotes))}};
_.q.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.q.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.editDialogElement.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.q.computeIsBodyHidden=function(A,H){return!!A||H};
_.nP.Object.defineProperties(dA.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var A=this.data,H=A.showPostAuthorBackgroundHighlight,k=A.postAuthorBadgeType,d=A.authorEndpoint;if(!H&&k!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&k!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var W,z,u;A=_.Yu(((W=A.authorText)==null?void 0:(z=W.runs)==null?void 0:(u=z[0])==null?void 0:u.text)||"");W=void 0;switch(k){case "POST_AUTHOR_BADGE_TYPE_ARTIST":W={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":W={iconType:H?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:A,authorEndpoint:d,authorCreator:H,icon:W}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var A,H;if((A=this.data)==null?0:(H=A.pollMetadataIcon)==null?0:H.iconType)return _.N0(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.Yu("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,c00))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,gTp))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,bkk))}}});
dA.prototype.onYtServiceRequestCompleted=dA.prototype.onYtServiceRequestCompleted;dA.prototype.onYtServiceRequestSent=dA.prototype.onYtServiceRequestSent;dA.prototype.onYtCommentPollRevert=dA.prototype.onYtCommentPollRevert;dA.prototype.onYtCommentboxDismiss=dA.prototype.onYtCommentboxDismiss;dA.prototype.onYtNavigate=dA.prototype.onYtNavigate;dA.prototype.isLoadingChanged=dA.prototype.isLoadingChanged;dA.prototype.dataChanged=dA.prototype.dataChanged;dA.prototype.contentTextChanged=dA.prototype.contentTextChanged;
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],dA.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],dA.prototype,"rendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],dA.prototype,"rendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],dA.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.ol("#contentTextExpander"),_.l("design:type",Object)],dA.prototype,"expander",void 0);_.E([_.ol("#edit-dialog"),_.l("design:type",Element)],dA.prototype,"editDialogElement",void 0);_.E([_.C(),_.l("design:type",Object)],dA.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],dA.prototype,"hasInlineCommentSection",void 0);_.E([_.C(),_.l("design:type",Object)],dA.prototype,"editDialog",void 0);_.E([_.C(),_.l("design:type",Object)],dA.prototype,"isLoading",void 0);
_.E([_.C({computed:"computeIsPollHeaderEnabled(data)"}),_.l("design:type",Boolean)],dA.prototype,"isPollHeaderEnabled",void 0);_.E([_.C(),_.l("design:type",Object)],dA.prototype,"shouldHideAuthor",void 0);_.E([_.C(),_.l("design:type",Object)],dA.prototype,"shouldShowVideoTime",void 0);_.E([_.C(),_.l("design:type",Object)],dA.prototype,"isInEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],dA.prototype,"hideBorder",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],dA.prototype,"usesFullLockup",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],dA.prototype,"shouldShowMenuInCompactView",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],dA.prototype,"authorCommentBadge",null);_.E([_.G("isInEngagementPanel"),_.l("design:type",Number),_.l("design:paramtypes",[])],dA.prototype,"postTextMaxLines",null);
_.E([_.G("data.icon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],dA.prototype,"pollIcon",null);_.E([_.fF("data.contentText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dA.prototype,"contentTextChanged",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dA.prototype,"dataChanged",null);
_.E([_.fF("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dA.prototype,"isLoadingChanged",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dA.prototype,"onYtNavigate",null);_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dA.prototype,"onYtCommentboxDismiss",null);
_.E([_.Ze("yt-comment-poll-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],dA.prototype,"onYtCommentPollRevert",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],dA.prototype,"onYtServiceRequestSent",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dA.prototype,"onYtServiceRequestCompleted",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],dA.prototype,"voteCount",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],dA.prototype,"commentCount",null);
_.E([_.G("data.backstageAttachment"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dA.prototype,"hasPoll",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dA.prototype,"hasQuiz",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dA.prototype,"hasUploadedVideo",null);_.E([_.O6({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],dA);
_.Q(dA,"ytd-backstage-post-renderer",function(){if(V9k!==void 0)return V9k;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return V9k=A},{mode:1});var lij;var W$=function(){var A=_.a.apply(this,arguments)||this;A.editDialog=null;A.showExpandButton=!1;A.isRichGrid=!1;A.usesFullLockup=!1;return A};
_.I(W$,_.a);_.q=W$.prototype;_.q.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"}}}};
_.q.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.q.computeShowExpandButton=function(A){return this.usesCompactLockup||A&&A.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.q.computeUsesCompactLockup=function(A){return!!A.condensedContent};
_.q.computeShowFullContentText=function(A){return!A};
_.q.onYtNavigate=function(A){A=this.get("updateCommentDialogEndpoint",A.detail.endpoint);this.openEditDialog(A)};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null};
_.q.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.repostEditDialogEl.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.q.onTap=function(A){if(this.data){var H=null;this.usesCompactLockup&&!_.XU(_.F_(A)||[],this.hostElement,["YT-IMG-SHADOW"])?H=this.get("navigationEndpoint",this.data):A.target===this.moreButtonEl&&(H=this.get("navigationEndpoint",A.target.data));H&&_.Ed(this.hostElement,"yt-navigate",{endpoint:H})}};
W$.prototype.onYtCommentboxDismiss=W$.prototype.onYtCommentboxDismiss;W$.prototype.onYtNavigate=W$.prototype.onYtNavigate;W$.prototype.dataChanged=W$.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],W$.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],W$.prototype,"editDialog",void 0);_.E([_.C({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],W$.prototype,"usesCompactLockup",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W$.prototype,"showExpandButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W$.prototype,"isRichGrid",void 0);
_.E([_.C({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.l("design:type",Boolean)],W$.prototype,"showFullContentText",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W$.prototype,"usesFullLockup",void 0);_.E([_.ol("#more"),_.l("design:type",Object)],W$.prototype,"moreButtonEl",void 0);_.E([_.ol("#repost-content-text"),_.l("design:type",HTMLElement)],W$.prototype,"repostContentTextEl",void 0);
_.E([_.ol("#repost-edit-dialog"),_.l("design:type",HTMLElement)],W$.prototype,"repostEditDialogEl",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W$.prototype,"dataChanged",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],W$.prototype,"onYtNavigate",null);
_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W$.prototype,"onYtCommentboxDismiss",null);_.E([_.O6({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],W$);
_.Q(W$,"ytd-shared-post-renderer",function(){if(lij!==void 0)return lij;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return lij=A},{mode:1});var t9A;var NiG;var zq=function(){return _.a.apply(this,arguments)||this};
_.I(zq,_.a);zq.prototype.attached=function(){var A=this;this.networkStatusManager||(this.networkStatusManager=new _.Qv,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){A.onlineHandler()}))};
zq.prototype.detached=function(){var A=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){A.onlineHandler()}),delete this.networkStatusManager)};
zq.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],zq.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zq.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],zq);
_.Q(zq,"ytd-reload-page-button-renderer",function(){if(NiG!==void 0)return NiG;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return NiG=A},{mode:1});var M90={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"},qM=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(qM,_.a);_.q=qM.prototype;_.q.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.q.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.q.computeHasBodyText=function(A){return!!A.bodyText};
_.q.computeButtons=function(A){var H=[];A.ctaButton&&H.push(A.ctaButton);A.secondaryButton&&H.push(A.secondaryButton);return H};
_.q.computeRendererStyle=function(A){return A.style?A.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():A.icon?"":"no-icon"};
_.q.getIconName=function(A,H){H=H===void 0?!1:H;if(A===void 0)return"";A=this.get("icon.iconType",A);var k;_.b("enable_hlp_client_icon_pick")?k=this.getThemedIcon(A,H):k=A;(H=M90[k])||(H="yt-icons");return[H,k].join(":")};
_.q.getThemedIcon=function(A,H){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(A)?H?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(A)?H?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":A};
_.q.isThumbnail=function(A){return!!A.thumbnail};
_.q.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.q.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],qM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],qM.prototype,"data",void 0);
_.E([_.C({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],qM.prototype,"rendererStyle",void 0);_.E([_.C({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.l("design:type",String)],qM.prototype,"iconName",void 0);_.E([_.C({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],qM.prototype,"thumbnail",void 0);_.E([_.C({computed:"computeButtons(data)"}),_.l("design:type",Array)],qM.prototype,"buttons",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],qM.prototype,"isDarkTheme",void 0);_.E([_.C({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],qM.prototype,"hasBodyText",void 0);_.E([_.O6({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],qM);
_.Vu()(qM,"ytd-background-promo-renderer",function(){if(t9A===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);t9A=A}A=t9A;return A},{allowedProps:["data"],
mode:1});var nDi;var rA=function(){return _.a.apply(this,arguments)||this};
_.I(rA,_.a);_.nP.Object.defineProperties(rA.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d,W,z;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(H=A.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(k=this.data)==null?void 0:(d=k.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(z=W.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:!0}}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rA.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],rA.prototype,"collectionStack",null);_.E([_.O6({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],rA);
_.Q(rA,"ytd-compact-station-renderer",function(){if(nDi!==void 0)return nDi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return nDi=A},{mode:1});var ZzQ;var uD=function(){var A=_.a.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.I(uD,_.a);uD.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]]"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uD.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],uD.prototype,"isRichGrid",void 0);_.E([_.O6({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],uD);
_.Q(uD,"ytd-grid-channel-renderer",function(){if(ZzQ!==void 0)return ZzQ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return ZzQ=A},{mode:1});var fiJ;var B$=function(){return _.a.apply(this,arguments)||this};
_.I(B$,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],B$.prototype,"data",void 0);_.E([_.O6({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],B$);
_.Q(B$,"ytd-grid-movie-playlist-renderer",function(){if(fiJ!==void 0)return fiJ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return fiJ=A},{mode:1});var wmw;var eo=function(){var A=_.a.apply(this,arguments)||this;A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.modernButtons=_.b("web_modern_buttons");return A};
_.I(eo,_.a);eo.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
eo.prototype.configureRendererStamper=function(){return{"data.menu":se}};
eo.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
eo.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.b("woffle_playlist_renderer_killswitch")){var A,H=sWf(this.entityInfo,this.transferState,this.downloadProgress,(A=this.data)==null?void 0:A.playlistId,this.isOnline);A=H.viewPlaylistText;var k=H.badges;H=H.thumbnailOverlays;this.isDownloads=!!A||!!k;this.set("data.viewPlaylistText",A);k&&k.length>0&&this.set("data.badges",k);H&&H.length>0&&this.set("data.thumbnailOverlays",
H)}};
_.nP.Object.defineProperties(eo.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 A;return!((A=this.data)==null?0:A.menu)}}});
eo.prototype.transferStateChanged=eo.prototype.transferStateChanged;eo.prototype.dataChanged=eo.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],eo.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],eo.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C({selector:_.pwb,selectorArgs:["data.playlistId"]}),_.l("design:type",Object)],eo.prototype,"downloadProgress",void 0);_.E([_.C({selector:_.mj,selectorArgs:["data.playlistId"]}),_.l("design:type",Object)],eo.prototype,"transferState",void 0);_.E([_.C({selector:cBv,selectorArgs:["data.playlistId"]}),_.l("design:type",Object)],eo.prototype,"entityInfo",void 0);_.E([_.C({selector:_.Rc}),_.l("design:type",Boolean)],eo.prototype,"isOnline",void 0);
_.E([_.C(),_.l("design:type",Object)],eo.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],eo.prototype,"downloadRenderData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],eo.prototype,"modernButtons",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],eo.prototype,"isDownloads",void 0);_.E([_.G("transferState"),_.C({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],eo.prototype,"downloadState",null);
_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eo.prototype,"menuHidden",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eo.prototype,"dataChanged",null);_.E([_.s6("transferState","downloadProgress","isOnline"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eo.prototype,"transferStateChanged",null);
_.E([_.O6({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],eo);
_.Q(eo,"ytd-grid-playlist-renderer",function(){if(wmw!==void 0)return wmw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return wmw=A},{mode:1});var oD0;var xj=function(){return _.a.apply(this,arguments)||this};
_.I(xj,_.a);xj.prototype.configureRendererStamper=function(){return{"data.menu":se,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.nP.Object.defineProperties(xj.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d,W,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(H=A.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(k=this.data)==null?void 0:(d=k.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(z=W.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:!0}}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],xj.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],xj.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xj.prototype,"data",void 0);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],xj.prototype,"collectionStack",null);_.E([_.O6({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],xj);
_.Q(xj,"ytd-grid-radio-renderer",function(){if(oD0!==void 0)return oD0;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return oD0=A},{mode:1});var $D1;var iD=function(){return _.a.apply(this,arguments)||this};
_.I(iD,_.a);iD.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
iD.prototype.computeNavigationEndpoint=function(A){return X2I(A==null?void 0:A.navigationEndpoint)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],iD.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],iD.prototype,"data",void 0);_.E([_.C({computed:"computeNavigationEndpoint(data)"}),_.l("design:type",Object)],iD.prototype,"computedNavigationEndpoint",void 0);
_.E([_.O6({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],iD);
_.Q(iD,"ytd-grid-show-renderer",function(){if($D1!==void 0)return $D1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return $D1=A},{mode:1});var AEQ;_.hP=function(A){this.playerClient=A};
_.HdJ=function(A,H,k){k=k===void 0?{}:k;return A.playerClient.setOption("ad",H,k)};
_.hP.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.hP.prototype.executeCommand=function(A,H){this.getOptions().includes("executeCommand")?_.HdJ(this,"executeCommand",{command:A,layoutId:H}):_.I5("Calling executeCommand when adModule is not loaded")};var OE=function(){return _.a.apply(this,arguments)||this};
_.I(OE,_.a);OE.prototype.getLayoutId=function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
OE.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var A=_.Kj(),H=this.getLayoutId(),k=this.data.clickthroughEndpoint;A&&H&&_.b("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(d){(new _.hP(d)).executeCommand(k,H)}):_.Ed(this.hostElement,"yt-navigate",{endpoint:k})}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],OE.prototype,"data",void 0);_.E([_.O6({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],OE);
_.Q(OE,"ytd-shopping-companion-item-renderer",function(){if(AEQ!==void 0)return AEQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return AEQ=A},{mode:1});var so0;var RH=function(){var A=_.a.apply(this,arguments)||this;A.isExpandableContent=!1;return A};
_.I(RH,_.a);_.nP.Object.defineProperties(RH.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.data)==null?void 0:A.price)||((H=this.data)==null?void 0:(k=H.dealsData)==null?void 0:k.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var A,H;if((A=this.data)!=null&&A.dealsData&&((H=this.data)==null||!H.priceReplacementText)){A=this.data.dealsData;var k,d,W;return((k=A.salesData)==null?void 0:k.originalPrice)||((d=A.priceDropData)==null?void 0:d.referencePrice)||((W=A.promotionData)==null?void 0:W.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var A,H;return(A=this.data)==null?void 0:(H=A.dealsData)==null?void 0:H.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],RH.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],RH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],RH.prototype,"isExpandableContent",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"showCta",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"ctaText",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"hasPriceTopPosition",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"hasPriceBottomPosition",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"useNewStyle",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"showPriceReplacementText",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"priceValue",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"showDeal",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"showAffiliateDisclaimer",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"useSaleStyle",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"useFromBrandCtaStyle",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"useFromVendorCtaStyle",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RH.prototype,"useShoppingCollectionCtaStyle",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],RH);
_.Q(RH,"ytd-vertical-product-card-renderer",function(){if(so0!==void 0)return so0;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return so0=A},{mode:1});var kow;var Tq=function(){return _.a.apply(this,arguments)||this};
_.I(Tq,_.a);Tq.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],Tq.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Tq.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Tq);
_.Q(Tq,"ytd-grid-movie-renderer",function(){if(kow!==void 0)return kow;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return kow=A},{mode:1});var dIJ;var md=function(){var A=_.a.apply(this,arguments)||this;A.roundedFix=_.b("web_enable_merch_item_rounding_fix");A.itemStyle="small-item";return A};
_.I(md,_.a);md.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var A,H,k,d,W=(H=_.L((A=this.data)==null?void 0:A.buttonCommand,_.ftj))==null?void 0:(k=H.item)==null?void 0:(d=k.notificationTextRenderer)==null?void 0:d.successResponseText;W&&_.SUb(this.hostElement,W)}};
_.nP.Object.defineProperties(md.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:A.isProductPlaceholder)!==void 0&&((H=this.data)==null?void 0:H.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],md.prototype,"roundedFix",void 0);_.E([_.C(),_.l("design:type",Object)],md.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],md.prototype,"itemStyle",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],md.prototype,"hasPrice",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],md.prototype,"hasPriceReplacementText",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],md.prototype,"hasAdditionalFeesText",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],md.prototype,"hasAffiliateDisclaimer",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],md.prototype,"isProductPlaceholder",null);
_.E([_.C(),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],md.prototype,"hideOpenInNewIcon",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],md.prototype,"ariaLabel",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],md);
_.Q(md,"ytd-merch-shelf-item-renderer",function(){if(dIJ!==void 0)return dIJ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return dIJ=A},{mode:1});_.Sw(_.c(function(A){return _.x("button-card-view-model",{el:_.P8(_.OF(function(){return A.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return A.data().title},
role:"button"},_.x(_.pM,{model:{}}),_.x("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.x("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.x(_.R,{cond:function(){return A.data().image},
then:function(H){return _.x(_.GA,{data:H,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.x("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return A.data().title})))},"kc"),"button-card-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){A=_.SD(A,{className:void 0});var H=A.data;A=A.className;var k=_.be(function(){return H().onTapCommand},void 0,"SXkP9e");
return _.x("ytd-shopping-item-card",{class:_.ER("ytdShoppingItemCardHost",A)},_.x(_.c2,{command:k,className:"ytdShoppingItemCardHostLink"},_.x("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.x(_.HG,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(d){return _.x(QY,{data:d.data,
aspectRatio:3})}})),_.x("div",null,_.x("p",{class:"ytdShoppingItemCardHostItemTitle"},_.x(_.j$,{text:function(){return H().itemTitle}})),_.x("p",{class:"ytdShoppingItemCardHostPrice"},_.x(_.j$,{text:function(){return H().priceOrStatus}})))))},"lc"),"ytd-shopping-item-card",{props:{data:_.Ih,
className:_.Ih}});var WKw={isAdsVideo:!0},zHk={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},qPQ={showPlayerControls:!1,videoPreviewDurationMs:15E3},rEG={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},uep={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var PG=null,CFV={};var cFV="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(" "),JP={},pt8=(JP.FEwhat_to_watch="home",JP.FEhashtag="hashtag",JP.FEtrending="trending",JP.FEhistory="history",JP.SPunlimited="premium",JP.FEmemberships_and_purchases="paid_memberships",JP.SPredeem_code="redeem",JP.SPverify_location="locate",JP.SPminor_moment="minor_moment",
JP.FEmini_app_container="mini_app",JP.FEnews_destination="news",JP.SPopen_in_app="open_in_app",JP.FEexplore="explore",JP.FEsubscriptions="subscriptions",JP.FEsfv_audio_pivot="sfv_audio_pivot",JP.FEplaylist_aggregation="playlist_aggregation",JP);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");_.MT("init");var BDi,eHA,idN,hHG,xIj;BDi=function(){};
_.$Im=_.c(function(A){var H=A.data;var k=A.inlineMetadata;var d=A.aspectRatio;var W=A.scrimStyle;var z=A.className;var u=A.useDefaultStyle;var B=A.titleStyle;var h=new BDi,O=_.b("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",T=_.be(function(){return(u==null?0:u())?O==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),m=_.be(function(){return _.pA(k)||T()||!1},void 0,"GaU7Ef"),J=function(){return(W==null?void 0:
W())!==void 0?W==null?void 0:W():1},g=_.be(function(){return H().belowThumbnailMetadata||!m()},void 0,"vsyhaf");
A=_.NV({visibilityCallback:function(WV){var hA=H().onFirstVisible;WV&&hA&&_.mu(hA)},
showOption:{calledOnce:!0,state:"visible"}});var v=_.P8(),y={},X=_.ER(function(){return T(),"shortsLockupViewModelHostThumbnailContainer"},(y.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.pA(d)===1},y.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.pA(d)===2},y.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.b("web_shorts_2_by_3_lockups_study")&&!_.b("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
y)),D=_.be(function(){if(_.pA(d)===1)return 1;
_.pA(d);return 2},void 0,"bBJLCd"),K,N=function(){if(h){var WV;
(WV=K)==null||cl(WV);var hA;if(h.hostElement&&((hA=h.data)==null?0:hA.inlinePlayerData)){var qv,eN;WV=((qv=h.data)==null?0:(eN=qv.inlinePlayerData)==null?0:eN.enableAudioControl)?Object.assign({},uep):Object.assign({},rEG);var mr,Cl;((mr=h.data)==null?void 0:(Cl=mr.inlinePlayerData)==null?void 0:Cl.maxPlaybackLengthSec)!==void 0&&(WV.videoPreviewDurationMs=h.data.inlinePlayerData.maxPlaybackLengthSec*1E3);K=m5({mediaRenderer:h,lockupElement:h.hostElement,thumbnailElement:v.value,videoPreviewOpts:WV})}}};
_.CA(function(){h&&(h.data=H(),N())},"r1zbOc");
var U=_.be(function(){return H().thumbnail},void 0,"wZj8b");
y=_.be(function(){return H().badge},void 0,"qOKyU");
var p=_.be(function(){return H().onTap},void 0,"p3kB9e"),M={},Z={};
return _.x("ytm-shorts-lockup-view-model",{el:_.P8(function(WV){h&&(h.hostElement=WV)},N,A),
class:_.ER("shortsLockupViewModelHost",z)},_.x(_.sD,null,_.x(_.c2,{command:p,className:_.ER("shortsLockupViewModelHostEndpoint",(M.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!g()},M),"reel-item-endpoint",""),
ariaHidden:function(){return!m()},
tabIndex:function(){return m()?0:-1}},_.x("div",{el:v,
class:_.ER("shortsLockupViewModelHostThumbnailParentContainer",(Z.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!T()},Z))},_.x(_.R,{cond:U,
then:function(){return _.x("div",{class:X},_.x(_.GA,{data:function(){var WV;return(WV=U==null?void 0:U())!=null?WV:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.x(_.HG,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(WV){return _.x(QY,{data:WV.data,
aspectRatio:function(){return D()},
disableRounding:function(){return T()}})}}),null),_.x(_.R,{cond:m,
then:function(){return _.x(eHA,{data:H,scrimStyle:J,useDefaultStyle:u,titleStyle:B})}}),_.x(_.HG,{data:y},{badgeViewModel:function(WV){return _.x(_.CK,{data:WV.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.x(_.R,{cond:function(){return m()&&H().menuOnTap},
then:function(){return _.x(xIj,{data:H,inlineMetadata:!0})}}),_.x(_.R,{cond:g,
then:function(){return _.x(idN,{data:H,useDefaultStyle:u,inlineMetadata:m})}})))},"nc");
eHA=_.c(function(A){var H=A.data;var k=A.scrimStyle;var d=A.useDefaultStyle;var W=A.titleStyle;var z=_.b("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",u=d&&_.b("web_hide_primary_text_for_pivot_panel"),B=_.be(function(){return(d==null?0:d())?z==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ou5zO");
A={};A=_.ER("shortsLockupViewModelHostInlineMetadata",(A.shortsLockupViewModelHostMetadataRounded=function(){return!B()},A.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(k==null?void 0:k())===3&&!_.b("enable_shorts_lockup_new_scrim")},A.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(k==null?void 0:k())===3&&_.b("enable_shorts_lockup_new_scrim")},A.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(k==null?void 0:k())===2||(k==null?void 0:
k())===4},A.shortsLockupViewModelHostShowOverPlayer=function(){return!0},A),"image-overlay-text");
var h={};return _.x("div",{class:A},_.x("h3",{class:_.ER("shortsLockupViewModelHostMetadataTitle",(h.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(k==null?void 0:k())===4},h.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return H().belowThumbnailMetadata},h.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(W==null?void 0:W())===1},h.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(W==null?void 0:W())===2},h)),
"aria-label":function(){return H().accessibilityText}},_.x(_.R,{cond:function(){var O;
return!((O=H().overlayMetadata)==null||!O.primaryText)&&!u},
then:function(){return _.x(_.j$,{text:function(){var O;return(O=H().overlayMetadata)==null?void 0:O.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.x(_.R,{cond:function(){var O;
return(O=H().overlayMetadata)==null?void 0:O.secondaryText},
then:function(){return _.x(hHG,{data:H,scrimStyle:k,className:void 0})}}))},"oc");
idN=_.c(function(A){var H=A.data;var k=A.useDefaultStyle;var d=A.inlineMetadata;var W=_.b("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=_.be(function(){return(k==null?0:k())?W==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"WbzRH"),u=_.P8(),B;
A=_.lc(function(g){if(_.xH(_.eu(g),u.value,["AVATAR-VIEW-MODEL"]))return!1;var v;(v=B)==null||v.click();return!1});
var h=_.be(function(){return H().belowThumbnailMetadata||H().overlayMetadata},void 0,"nDfetf"),O=function(){return H().menuOnTap&&!d()},T=function(){var g;
return(g=h())==null?void 0:g.avatar},m={},J={};
return _.x("div",{class:_.ER(function(){return z()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(m.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!T()},m.shortsLockupViewModelHostOutsideMetadataHasMenu=O,m)),
"on:click":A,el:u,role:"presentation"},_.x(_.HG,{data:T},{avatarViewModel:function(g){return _.x(_.RW,{data:g.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.x("div",null,_.x("h3",{class:_.ER("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(J.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var g,v;
return!((g=h())==null?0:(v=g.primaryText)==null?0:v.content)},J.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=d,J)),
role:"presentation"},_.x(_.c2,{ref:function(g){return void(B=g)},
command:function(){return H().onTap},
className:_.ER("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var g,v;return(g=h())==null?void 0:(v=g.primaryText)==null?void 0:v.content},
"aria-label":function(){return H().accessibilityText}},_.x(_.R,{cond:function(){var g;
return(g=h())==null?void 0:g.primaryText},
then:function(g){return _.x(_.j$,{text:g,noEndpoints:!0,noStyleRuns:!0})}}))),_.x(_.R,{cond:function(){var g;
return(g=h())==null?void 0:g.secondaryText},
then:function(g){return _.x("div",{class:_.ER("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.x(_.j$,{text:g,noStyleRuns:!0}))}})),_.x(_.R,{cond:O,
then:function(){return _.x(xIj,{data:H,inlineMetadata:!1})}}))},"pc");
hHG=_.c(function(A){var H=A.data;var k=A.scrimStyle;A=A.className;var d={};return _.x("div",{class:_.ER((d.shortsLockupViewModelHostMetadataSubhead=function(){return(k==null?void 0:k())!==4},d.shortsLockupViewModelHostMetadataSubheadNew=_.b("enable_shorts_lockup_new_scrim"),d.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(k==null?void 0:k())===4},d),A),
"aria-hidden":"true"},_.x(_.j$,{text:function(){var W;return(W=H().overlayMetadata)==null?void 0:W.secondaryText},
noStyleRuns:!0}))},"qc");
xIj=_.c(function(A){var H=A.data;var k=A.inlineMetadata;A={};A=_.ER((A.shortsLockupViewModelHostInlineMetadataMenu=function(){return k()},A.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!k()},A.shortsLockupViewModelHostShowOverPlayer=function(){return!0},A),"image-overlay-text");
return _.x("div",{class:A},_.x(_.E7,{data:function(){return{style:k()?"overlay":"mono",accessibilityLabel:H().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(d){d.preventDefault();d.stopPropagation();var W=_.Ry({elementsCommand:H().menuOnTap,forceNewState:!0});if(W==null?0:W.onclick)W.onclick(d)}}},
iconName:"MORE_VERT"}))},"rc");var HQC=_.c(function(A){var H=A.data;var k=A.inlineMetadata;var d=A.aspectRatio;var W=A.scrimStyle;var z=A.className;var u=A.useDefaultStyle;A=_.be(function(){var B=H().entityId;return B?B.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.x("ytm-shorts-lockup-view-model-v2",{class:_.ER("shortsLockupViewModelHost",z)},_.x(_.nK,{contentId:A,aspectRatio:function(){return(d==null?void 0:d())===1?1:(d==null?void 0:d())===2?2:4}},function(){return _.x(_.$Im,{data:H,
inlineMetadata:k,aspectRatio:d,scrimStyle:W,className:z,useDefaultStyle:u})}))},"sc");_.Sw(HQC,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Fc,inlineMetadata:_.Fc,aspectRatio:_.Fc,scrimStyle:_.Fc,className:_.Fc,useDefaultStyle:_.Fc,titleStyle:_.Fc}});var Od1=16/9*210,gA=function(){var A=_.a.apply(this,arguments)||this;A.isExpandableContent=!1;A.hideShelfHeader=!1;A.engagementPanel=!1;A.buttonClasses=["arrow"];A.isSearch=!1;A.disableScrollEventListener=!1;A.containsLockup=!1;A.overrideArrowPositionForProductCard=!1;A.overrideArrowPositionForShoppingItemCard=!1;A.overrideArrowPositionForReelItems=!1;A.overrideArrowPositionForGridMovie=!1;A.overrideArrowPositionToCenter=!1;A.isSearchPostShelf=!1;A.overrideArrowPositionForMixedShelf=!1;A.overrideArrowPositionForMixedShelfShortsOnly=
!1;A.hasBigThumbsReelItems=!1;A.shouldUseMixedListHeight=!1;A.shouldUseShortsListHeight=!1;A.gridVideoWidth=0;A.isSearchVodShelf=!1;A.disableWheelScroll=!1;A.sizing="COMPACT";A.shortsLockupAspectRatio=0;return A};
_.I(gA,_.a);_.q=gA.prototype;
_.q.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]]"}}}}};
_.q.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.b("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.q.computeInitialCountNumber=function(A){if(!A)return 6;var H=A.items.some(function(z){return!!z.topicRecommendationsChipRenderer}),k=A.items.some(function(z){return!!z.displayAdRenderer}),d=this.computeShouldListItemsHaveEqualHeight(A),W=A.items.some(function(z){return!!z.gridPlaylistRenderer});
A=A.items.some(function(z){return!!z.shoppingItemCardViewModel});
return H?9:k?8:W||d?10:A?7:6};
_.q.computeContainsPost=function(A){return!!A&&!!A.items&&A.items.some(function(H){return!!H.postRenderer})};
_.q.computeContainsLockup=function(){if(_.b("web_horizontal_list_lockup_arrow_killswitch"))return!1;var A,H;return(A=this.data)==null?void 0:(H=A.items)==null?void 0:H.some(function(k){return!!k.lockupViewModel})};
_.q.maybeUpdateLockupAspectRatio=function(){var A,H;if(this.computeContainsLockup()&&((A=this.data)==null?0:(H=A.items)==null?0:H.length)){var k;A=rFl((k=this.data.items[0].lockupViewModel)==null?void 0:k.contentType,this.data.force16By9ThumbnailAspectRatio);k=zsQ(A);k=this.computeLockupWidth()/k;_.NH(this.hostElement,{"--yt-horizontal-list-content-height":k+"px"})}};
_.q.computeOverrideArrowPositionForProductCard=function(A){if(this.isExpandableContent)return!1;var H;return!!(A==null?0:(H=A.items)==null?0:H.some(function(k){return!!k.verticalProductCardRenderer}))};
_.q.computeOverrideArrowPositionForShoppingItemCard=function(A){var H;return!!(A==null?0:(H=A.items)==null?0:H.some(function(k){return!!k.shoppingItemCardViewModel}))};
_.q.computeOverrideArrowPositionForReelItemRenderer=function(A){return this.containsReelItemRenderer(A)};
_.q.computeHasBigThumbsReelItems=function(A,H){return A&&this.containsReelItemRenderer(H)};
_.q.computeShouldListItemsHaveEqualHeight=function(A){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(A==null?void 0:A.itemSizeConstraint)};
_.q.computeShouldListItemsHaveShortsHeight=function(A){return this.computeShouldListItemsHaveEqualHeight(A)&&!this.containsGridVideoRenderer(A)};
_.q.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.q.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.q.containsReelItemRenderer=function(A){var H;return!!(A==null?0:(H=A.items)==null?0:H.some(function(k){return!(!k.reelItemRenderer&&!k.shortsLockupViewModel)}))};
_.q.containsGridVideoRenderer=function(A){var H;return!!(A==null?0:(H=A.items)==null?0:H.some(function(k){return!!k.gridVideoRenderer||!!k.lockupViewModel}))};
_.q.computeContainsGridMovieRenderer=function(A){var H;return!!(A==null?0:(H=A.items)==null?0:H.some(function(k){return!!k.gridMovieRenderer}))};
_.q.computeOverrideArrowPositionToCenter=function(A){return this.computeIsSearchPostShelf(A)};
_.q.computeIsSearchPostShelf=function(A){var H;return!!(A==null?0:(H=A.items)==null?0:H.some(function(k){var d,W;return((W=(d=k.postRenderer)==null?void 0:d.surface)!=null?W:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.q.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(A){var H;return!!(A==null?0:(H=A.items)==null?0:H.some(function(k){var d,W,z;return((z=(d=k.backgroundPromoRenderer)==null?void 0:(W=d.style)==null?void 0:W.value)!=null?z:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.q.computeIsSearchVodShelf=function(A,H){return A&&this.containsGridVideoRenderer(H)};
_.q.computeDisableWheelScroll=function(A,H){return this.computeIsSearchVodShelf(A,H)};
_.q.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.q.computeShortsLockupAspectRatio=function(){return 1};
_.q.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.NH(this.hostElement,{"--ytd-reel-item-thumbnail-height":Od1+"px"})};
gA.prototype.dataChanged=gA.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.pg.YtdHorizontalListBehavior),_.l("design:type",Object)],gA.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gA.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],gA.prototype,"isExpandableContent",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"hideShelfHeader",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"engagementPanel",void 0);_.E([_.C(),_.l("design:type",Array)],gA.prototype,"buttonClasses",void 0);_.E([_.C(),_.l("design:type",Object)],gA.prototype,"isSearch",void 0);
_.E([_.C(),_.l("design:type",Object)],gA.prototype,"disableScrollEventListener",void 0);_.E([_.C({computed:"computeInitialCountNumber(data)"}),_.l("design:type",Number)],gA.prototype,"initialCount",void 0);_.E([_.C({computed:"computeContainsPost(data)"}),_.l("design:type",Boolean)],gA.prototype,"supportComponentResize",void 0);_.E([_.C({computed:"computeContainsPost(data)"}),_.l("design:type",Boolean)],gA.prototype,"containsPost",void 0);
_.E([_.C({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"containsLockup",void 0);_.E([_.C({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],gA.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.E([_.C({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"overrideArrowPositionForProductCard",void 0);_.E([_.C({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.E([_.C({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"overrideArrowPositionForReelItems",void 0);_.E([_.C({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"overrideArrowPositionForGridMovie",void 0);
_.E([_.C({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"overrideArrowPositionToCenter",void 0);_.E([_.C({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"isSearchPostShelf",void 0);_.E([_.C({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.E([_.C({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.E([_.C({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"hasBigThumbsReelItems",void 0);
_.E([_.C({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"shouldUseMixedListHeight",void 0);_.E([_.C({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"shouldUseShortsListHeight",void 0);_.E([_.C({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"gridVideoWidth",void 0);
_.E([_.C({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"isSearchVodShelf",void 0);_.E([_.C({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.l("design:type",Object)],gA.prototype,"disableWheelScroll",void 0);_.E([_.C({computed:"computeSizing(isSearch)"}),_.l("design:type",Object)],gA.prototype,"sizing",void 0);
_.E([_.C({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.l("design:type",Object)],gA.prototype,"shortsLockupAspectRatio",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gA.prototype,"dataChanged",null);
_.Q(gA,"yt-horizontal-list-renderer",function(){if(xdA===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);xdA=A}A=xdA;return A},{mode:1});var RHk=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
RHk.prototype.subscribe=function(A,H){var k=this.subscriptions.get(A);if(!k)return function(){};
k.add(H);return function(){k.delete(H)}};
RHk.prototype.unsubscribe=function(A,H){(A=this.subscriptions.get(A))&&A.delete(H)};
RHk.prototype.publish=function(A,H){H=H===void 0?{}:H;(A=this.subscriptions.get(A))&&A.forEach(function(k){k(H)})};var TD1;var mI0=[10,12,14,16,18,20,24,28,32,36],JE0=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],bD=function(){var A=_.a.apply(this,arguments)||this;A.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";A.hideOverflow=!1;A.useRoboto=!1;A.fontClass="";A.overflown=!1;A.actionMap={"yt-window-resized":"resize"};return A};
_.I(bD,_.a);_.q=bD.prototype;
_.q.attached=function(){var A=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();_.No(this,function(){A.resize()});
if(!_.n6){var H,k,d;(H=document)==null||(k=H.fonts)==null||(d=k.ready)==null||d.then(function(){A.resize()})}};
_.q.dataChanged=function(){this.resize()};
_.q.guideIsExpandedChanged=function(){this.resize()};
_.q.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 A=this.getMaxNumLines(),H=this.getMinFont(),k=this.getMaxFont(),d=this.useRoboto?mI0:JE0;for(d=d.filter(function(z){return z<=k&&z>=H});d.length>1;){var W=Math.floor(d.length/2);
this.updateFontSize(d[W]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=A)d=d.slice(W,d.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>A)d=d.slice(0,W);else break}this.updateFontSize(d[d.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(A)}};
_.q.handleOverflow=function(A){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>A&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",A.toString()))};
_.q.updateFontSize=function(A){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+A;this.textNode.classList.add(this.fontClass)};
_.q.getMaxFont=function(){var A=this.useRoboto?mI0:JE0;A=A[A.length-1];return this.maxFontSize&&this.maxFontSize<=A?this.maxFontSize:A};
_.q.getMinFont=function(){var A=(this.useRoboto?mI0:JE0)[0];return this.minFontSize&&this.minFontSize>=A?this.minFontSize:A};
_.q.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.q.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.q.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.PK(this.text).split("\n").length-1:Infinity};
_.q.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("Kh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
bD.prototype.guideIsExpandedChanged=bD.prototype.guideIsExpandedChanged;bD.prototype.dataChanged=bD.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],bD.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],bD.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bD.prototype,"text",void 0);
_.E([_.C(),_.l("design:type",String)],bD.prototype,"fontFamily",void 0);_.E([_.C(),_.l("design:type",Number)],bD.prototype,"maxWidth",void 0);_.E([_.C(),_.l("design:type",Number)],bD.prototype,"maxHeight",void 0);_.E([_.C(),_.l("design:type",Number)],bD.prototype,"maxFontSize",void 0);_.E([_.C(),_.l("design:type",Number)],bD.prototype,"minFontSize",void 0);_.E([_.C(),_.l("design:type",Number)],bD.prototype,"maxLines",void 0);_.E([_.C(),_.l("design:type",Object)],bD.prototype,"hideOverflow",void 0);
_.E([_.C({selector:_.j6I}),_.l("design:type",Boolean)],bD.prototype,"guideIsExpanded",void 0);_.E([_.ol("#container"),_.l("design:type",HTMLElement)],bD.prototype,"containerNode",void 0);_.E([_.ol("#text"),_.l("design:type",HTMLElement)],bD.prototype,"textNode",void 0);_.E([_.s6("text"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bD.prototype,"dataChanged",null);
_.E([_.s6("guideIsExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bD.prototype,"guideIsExpandedChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],bD);
_.Q(bD,"yt-dynamic-sizing-formatted-string",function(){if(TD1!==void 0)return TD1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return TD1=A},{mode:1});var gNw;_.bdi=function(A){_.AA.call(this,A)};
_.I(_.bdi,_.AA);var LKA=function(A){_.AA.call(this,A)};
_.I(LKA,_.bdi);var Lv=function(){return _.a.apply(this,arguments)||this};
_.I(Lv,_.a);Lv.prototype.onTapSuspendedChannel=function(){var A;if((A=this.data)!=null&&A.serviceEndpoint){var H,k;(A=(k=_.L((H=this.data)==null?void 0:H.serviceEndpoint,_.KT))==null?void 0:k.url)?_.J1(A,void 0,void 0,window.top):(H=new LKA("Did not handle suspended account tap. No appealUrl."),_.I3(H))}else H=new LKA("Did not handle suspended account tap. No serviceEndpoint."),_.I3(H)};
Lv.prototype.onTap=function(){var A=this,H=_.A7(),k,d=(k=_.$9(H,{veType:7116}))!=null?k:void 0;_.vn(H,{visualElement:d});_.TD();this.saveRoleText();var W;if((W=this.data)==null?0:W.youtubeSuspended)this.onTapSuspendedChannel();else{var z=!1,u,B;(H=(B=_.L((u=this.data)==null?void 0:u.serviceEndpoint,_.xK1))==null?void 0:B.supportedTokens)&&H.forEach(function(h){if(h.accountSigninToken)if(z=!0,A.onAccountItemTap)A.onAccountItemTap(h.accountSigninToken.signinUrl);else _.J1(h.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!z){if(u=this.get("serviceEndpoint",this.data))z=!0,this.ytComponentBehavior.resolveCommand(u);z||_.YJ(new LKA("Did not handle account switch tap. No token."))}}};
Lv.prototype.saveRoleText=function(){if(this.data){var A=this.data,H=A.channelDelegationRole;if(H){var k,d=(k=_.L(A==null?void 0:A.serviceEndpoint,_.xK1))==null?void 0:k.supportedTokens;if(!d){var W,z,u,B;d=(W=_.L(A==null?void 0:A.serviceEndpoint,_.dN))==null?void 0:(z=W.popup)==null?void 0:(u=z.confirmDialogRenderer)==null?void 0:(B=u.confirmButton)==null?void 0:B.buttonRenderer;var h;d=(h=_.L(d==null?void 0:d.command,_.nH))==null?void 0:h.commands;if(!d)return;var O;d=(O=_.L(d[1],_.xK1))==null?
void 0:O.supportedTokens}if(d){h=void 0;O=_.r(d);for(d=O.next();!d.done;d=O.next())if(d=d.value,d.datasyncIdToken){h=d.datasyncIdToken.datasyncIdToken;break}if(h){var T;a:{if(_.CTC()&&(O=_.v5(h+"::pom"))){O=new H2(O);break a}O=void 0}(T=O)==null||T.set("role_text",H);if((nFr?nFr:window.location).href.indexOf("studio")!==-1&&(T=Keb())){O=T.src?(new URL(T.src)).origin:"*";var m;(m=T.contentWindow)==null||m.postMessage({action:"save_pom_role",datasyncId:h,roleText:H},O)}}}}}};
_.nP.Object.defineProperties(Lv.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.data)==null?void 0:(H=A.accountPhoto)==null?void 0:H.thumbnails;return k&&k.length>0&&(k[0].height===36||k[0].height===48)?k[0].height:40}}});
Lv.prototype.onTap=Lv.prototype.onTap;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Lv.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Lv.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!1}),_.l("design:type",Function)],Lv.prototype,"onAccountItemTap",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Lv.prototype,"enableRingForActiveAccount",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],Lv.prototype,"thumbnailSize",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lv.prototype,"onTap",null);_.E([_.O6({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Lv);
_.Q(Lv,"ytd-account-item-renderer",function(){if(gNw!==void 0)return gNw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return gNw=A},{mode:1});var vNN;var v$=function(){return _.a.apply(this,arguments)||this};
_.I(v$,_.a);v$.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.wj().resolve(_.J7).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],v$.prototype,"data",void 0);_.E([_.O6({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],v$);
_.Q(v$,"ytd-identity-chip-renderer",function(){if(vNN!==void 0)return vNN;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return vNN=A},{mode:1});var yEZ;var jok;var IHk;var YPw;var yp=function(){var A=_.a.apply(this,arguments)||this;A.richItemMinWidth=_.H5("wn_grid_min_item_width",310);A.isShorts=!1;A.isWatchNext=!1;A.isExploreHub=!1;return A};
_.I(yp,_.a);_.nP.Object.defineProperties(yp.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var A=[],H=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.NH(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var k;if(((k=this.data)==null?0:k.rows)&&H)for(H*=this.data.rows,k=0;k<H;k++)A.push({});return A}}});
_.E([_.P(_.TG),_.l("design:type",Object)],yp.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],yp.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.ik,value:3}),_.l("design:type",Number)],yp.prototype,"itemsPerRow",void 0);_.E([_.C({selector:_.yBW,value:6}),_.l("design:type",Number)],yp.prototype,"slimItemsPerRow",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Number)],yp.prototype,"richItemMinWidth",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],yp.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yp.prototype,"isShorts",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yp.prototype,"isWatchNext",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yp.prototype,"isExploreHub",void 0);
_.E([_.G("isExploreHub"),_.C({reflectToAttribute:!0}),_.l("design:type",Object),_.l("design:paramtypes",[])],yp.prototype,"shimmerAnimation",null);_.E([_.G("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.l("design:type",Array),_.l("design:paramtypes",[])],yp.prototype,"cardItems",null);_.E([_.O6({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],yp);
_.P31=_.Vu()(yp,"ytd-ghost-grid-renderer",function(){if(YPw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);YPw=A}A=YPw;return A},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Sw(_.c(function(A){var H=_.SD(A,{numberOfComments:3}).numberOfComments,k=_.SD(A,{isInitialLoad:!1}).isInitialLoad,d=_.SD(A,{engagementPanel:!1}).engagementPanel,W=function(){return Math.min(Number(H==null?void 0:H())||20,20)};
return _.x("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.x(_.R,{cond:function(){return!(d==null?0:d())&&(k==null?void 0:k())},
then:function(){return _.x("div",{class:"ytGhostCommentsComments"},_.x("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.x("div",{class:_.ER("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.x("div",{class:_.ER("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.x("div",{class:"ytGhostCommentsGhostCard"},_.x("div",{class:"ytGhostCommentsAvatar"},_.x("div",{class:"ytGhostCommentsCircle"})),_.x("div",{class:"ytGhostCommentsComments"},_.x("div",{class:"ytGhostCommentsMeta"},
_.x("div",{class:_.ER("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.x("div",{class:_.ER("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.x("div",{class:"ytGhostCommentsComments"},_.x(_.Ix,{each:function(){return Array((W==null?void 0:W())||3)}},function(){return _.x("div",{class:"ytGhostCommentsGhostCard"},_.x("div",{class:"ytGhostCommentsAvatar"},_.x("div",{class:"ytGhostCommentsCircle"})),_.x("div",{class:"ytGhostCommentsHost"},_.x("div",{class:"ytGhostCommentsMeta"},
_.x("div",{class:_.ER("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.x("div",{class:_.ER("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.x("div",{class:_.ER("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.x("div",{class:"ytGhostCommentsGhostLikeDislike"},_.x("div",{class:_.ER("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.x("div",{class:_.ER("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"tc"),"yt-ghost-comments",{props:{numberOfComments:_.Ih,
isInitialLoad:_.Ih,engagementPanel:_.Ih},unsafeExternallySettableAttributes:new Set(["hidden"])});_.uL("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var jo=function(){var A=_.a.apply(this,arguments)||this;A.isOverridable=!1;A.spinnerActive=!1;A.showButton=!1;A.isCommentsSection=!1;A.engagementPanel=!0;A.isShortsGrid=!1;A.isShortsPage=!1;A.isWatchPage=!1;A.originalShowButton=!1;A.endOfList=!1;return A};
_.I(jo,_.a);_.q=jo.prototype;_.q.resetIntersectionObserver=function(){var A;(A=this.observer)==null||A.disconnect();this.observer=void 0};
_.q.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var A,H;((A=this.data)==null?void 0:A.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((H=this.data)==null?0:H.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.q.initializeIntersectionObserver=function(){var A=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(H){H=_.r(H);for(var k=H.next();!k.done;k=H.next())k.value.isIntersecting&&(A.triggerContinuation(),A.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.q.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]]"}}}}}};
_.q.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var A;((A=this.data)==null?0:A.continuationEndpoint)&&(A=_.L(this.data.continuationEndpoint,_.Tc))&&this.ytdReduxBehavior.dispatch(_.p8({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:A}}))};
_.q.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.q.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.q.onServiceRequestCompleted=function(A,H){if(!_.b("kevlar_hide_spinner_on_empty_continuation_killswitch")){var k;(k=H.actions)!=null&&k.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.q.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.q.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.q.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.q.numberOfGhostCommentsChanged=function(){var A=3;if(this.engagementPanel){var H,k,d;A=Math.floor(((((H=this.hostElement)==null?void 0:(k=H.parentElement)==null?void 0:(d=k.parentElement)==null?void 0:d.scrollHeight)||108)-108)/108);A=this.isInitialLoad?Math.max(A,3):3}H=[].concat(_.fV(this.hostElement.querySelectorAll("yt-ghost-comments")));H=_.r(H);for(k=H.next();!k.done;k=H.next())k=k.value,k.numberOfComments=A,k.isInitialLoad=this.isInitialLoad,k.engagementPanel=this.engagementPanel};
_.q.detached=function(){this.resetIntersectionObserver()};
_.nP.Object.defineProperties(jo.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
jo.prototype.numberOfGhostCommentsChanged=jo.prototype.numberOfGhostCommentsChanged;jo.prototype.continuationTriggerOffsetChanged=jo.prototype.continuationTriggerOffsetChanged;jo.prototype.showButtonChanged=jo.prototype.showButtonChanged;jo.prototype.onYtServiceRequestCompletedForButtonRenderer=jo.prototype.onYtServiceRequestCompletedForButtonRenderer;jo.prototype.onServiceRequestCompleted=jo.prototype.onServiceRequestCompleted;jo.prototype.onYtServiceRequestSentForButtonRenderer=jo.prototype.onYtServiceRequestSentForButtonRenderer;
jo.prototype.observeData=jo.prototype.observeData;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.bU.YtVisibilityBehavior),_.l("design:type",Object)],jo.prototype,"ytVisibilityBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],jo.prototype,"ytComponentBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],jo.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],jo.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],jo.prototype,"isOverridable",void 0);_.E([_.C(),_.l("design:type",Object)],jo.prototype,"spinnerActive",void 0);_.E([_.C(),_.l("design:type",Object)],jo.prototype,"showButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jo.prototype,"isCommentsSection",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jo.prototype,"engagementPanel",void 0);_.E([_.C(),_.l("design:type",Object)],jo.prototype,"isShortsGrid",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.Pub}),_.l("design:type",Object)],jo.prototype,"isShortsPage",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.YlC}),_.l("design:type",Object)],jo.prototype,"isWatchPage",void 0);_.E([_.C(),_.l("design:type",Number)],jo.prototype,"continuationTriggerOffset",void 0);
_.E([_.C(),_.l("design:type",Object)],jo.prototype,"endOfList",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],jo.prototype,"isInitialLoad",void 0);_.E([_.ol("ytd-button-renderer"),_.l("design:type",_.cf)],jo.prototype,"buttonRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],jo.prototype,"buttonOverrides",void 0);
_.E([_.C(),_.G("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.l("design:type",Object),_.l("design:paramtypes",[])],jo.prototype,"showGhostCardComments",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jo.prototype,"observeData",null);
_.E([_.Ze("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jo.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],jo.prototype,"onServiceRequestCompleted",null);
_.E([_.Ze("yt-service-request-completed-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jo.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.E([_.s6("showButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jo.prototype,"showButtonChanged",null);
_.E([_.s6("continuationTriggerOffset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jo.prototype,"continuationTriggerOffsetChanged",null);_.E([_.fF("isInitialLoad","engagementPanel"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jo.prototype,"numberOfGhostCommentsChanged",null);_.E([_.O6({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],jo);
_.Q(jo,"ytd-continuation-item-renderer",function(){if(IHk!==void 0)return IHk;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return IHk=A},{mode:1});var Gow;var IH=function(){var A=_.a.apply(this,arguments)||this;A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.downloadState="DOWNLOAD_STATE_UNKNOWN";A.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";A.offlineVideoPolicyExpirationTimestamp=0;A.downloadedVideoPlaybackPosition=0;return A};
_.I(IH,_.a);IH.prototype.dataChanged=function(){var A;this.videoData=_.L((A=this.data)==null?void 0:A.renderer,Uck);this.transferStateChanged()};
IH.prototype.downloadProgressChanged=function(){if(this.entityInfo){var A=Object.assign({},this.videoData),H=kUA(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),k=H.publishedTimeText,d=H.badges;A.shortViewCountText=H.shortViewCountText;A.publishedTimeText=k;A.badges=d;this.set("videoData",A)}};
IH.prototype.transferStateChanged=function(){if(this.entityInfo){var A=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",H=_.sA(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!HK(this.entityInfo.policyEntity),k=Object.assign({},this.videoData),d=kUA(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),W=d.publishedTimeText,z=d.badges;k.shortViewCountText=
d.shortViewCountText;k.publishedTimeText=W;k.badges=z;k.isDisabled=H;k.isWatched=this.downloadedVideoPlaybackPosition>0;k.navigationEndpoint=H?void 0:GBf(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var u;A&&((u=this.videoData)==null?0:u.videoId)&&!_.b("dl_resume_click_killswitch")&&(k.isDisabled=!1,k.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});k.thumbnailOverlays=HKA(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",k)}};
IH.prototype.transferStateChanged=IH.prototype.transferStateChanged;IH.prototype.downloadProgressChanged=IH.prototype.downloadProgressChanged;IH.prototype.dataChanged=IH.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],IH.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],IH.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],IH.prototype,"videoData",void 0);_.E([_.C({selector:Jr,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],IH.prototype,"downloadProgress",void 0);_.E([_.C(),_.l("design:type",Number)],IH.prototype,"relativeDateReference",void 0);_.E([_.C({selector:_.TK,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],IH.prototype,"transferState",void 0);
_.E([_.C({selector:Zgm,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],IH.prototype,"downloadState",void 0);_.E([_.C({selector:Slm,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],IH.prototype,"offlinePolicyAction",void 0);_.E([_.C({selector:CuC,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],IH.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.E([_.C({selector:gl,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],IH.prototype,"downloadedVideoPlaybackPosition",void 0);_.E([_.C({selector:apI,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],IH.prototype,"entityInfo",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],IH.prototype,"isDownloading",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IH.prototype,"dataChanged",null);
_.E([_.s6("downloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IH.prototype,"downloadProgressChanged",null);_.E([_.s6("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IH.prototype,"transferStateChanged",null);
_.E([_.O6({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],IH);
_.Q(IH,"ytd-downloaded-video-grid-video-renderer",function(){if(Gow!==void 0)return Gow;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Gow=A},{mode:2});var FKp;var Yj=function(){};
Yj.prototype.resolve=function(A,H){var k=this;return _.e(function(d){return d.yield(k.resolveCommand(A,H),0)})};var XO0,P$;XO0=p9I(function(A){return A.targetId},{shouldPersist:!1});
P$=XO0.updateData;_.Gq=XO0.useUpdatableData;var DI1,SPw;DI1=p9I(function(A){return A.targetId});
SPw=DI1.updateData;_.C3w=DI1.useUpdatableData;var KKN=Eb8.bind(null,P$),aHA=Eb8.bind(null,SPw);(function(A,H,k){var d=_.L(k==null?void 0:k.updatedRenderer,_.TsN);return d?A({targetId:H},function(){return d}):!1}).bind(null,P$);var Fs=function(){};
_.I(Fs,Yj);Fs.prototype.resolveCommand=function(A){var H;return _.e(function(k){H=_.L(A,wrr);if(!H)return k.return();KKN(H.targetId,H);_.EN(k)})};var Xs=function(){var A=_.A6.apply(this,arguments)||this;A.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-restore-cached-continuable-data-command":"handleRestoreCachedContinuableDataCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return A};
_.I(Xs,_.A6);_.q=Xs.prototype;_.q.configureContinuationPathMap=function(){return{}};
_.q.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.q.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.q.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.q.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.q.handleAppendContinuationItemsAction=function(A){var H=_.L(A,_.qui);if(this.data&&this.data.targetId&&H&&this.continuationPathMap&&H.targetId===this.data.targetId){var k=K5N(A),d=k&&this.continuationPathMap[k];if(d&&k)if(A=this.get(d,this.data)){a:{for(k=0;k<A.length;k++){var W=A[k],z=void 0,u=!!_.L((z=_.L(W,ZoA))==null?void 0:z.content,_.pfp);if(_.L(W,_.pw)||u)break a}k=A.length}d="data."+d;H.continuationItems?k===A.length-1?(this.pop(d),this.push.apply(this,[d].concat(_.fV(H.continuationItems)))):
k===A.length?this.push.apply(this,[d].concat(_.fV(H.continuationItems))):this.splice.apply(this,[d,k,1].concat(_.fV(H.continuationItems))):this.splice(d,k,1);(_.b("web_enable_voting_animation")||_.b("enable_music_web_cairo_voting_animation"))&&_.Ed(this.hostElement,"yt-append-continuation-items-action-finished");_.Ed(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Pq(new _.Ti("append continuation items does not exist",k));else _.Pq(new _.Ti("append continuation path does not exist",
k))}};
_.q.handleReloadContinuationItemsCommand=function(A){var H=_.L(A,wrr);if(this.data&&H){if(!_.b("web_reload_continuation_items_command_resolver_killswitch")){var k=_.wj().resolve(_.fZ(Fs));k&&k.resolveCommand(A)}if(this.data.targetId&&this.continuationPathMap&&H.targetId===this.data.targetId&&(!_.b("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||H.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var d;k=(d=H.slot)==null?void 0:d.replace("RELOAD_CONTINUATION_SLOT_",
"");d=(A=K5N(A)+"-"+(k==null?void 0:k.toLowerCase()))&&this.continuationPathMap[A];if(!d||!A||!k)_.Pq(new _.Ti("reload continuation path does not exist",A));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(H)){if(H.replaceWithFirstItem){var W;this.set("data."+d,((W=H.continuationItems)==null?0:W.length)?H.continuationItems[0]:{})}else this.set("data."+d,H.continuationItems?H.continuationItems:[]);cEw(this)}}}};
_.q.handleRestoreCachedContinuableDataCommand=function(A){A=_.L(A,g2i);var H;(H=this.data)!=null&&H.targetId&&(A==null?void 0:A.targetId)===this.data.targetId&&cEw(this)};
var cEw=function(A){A.continuationIsReloading=!1;A.reloadUiContent=void 0;_.Ed(A.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})};
Xs.prototype.handleShowReloadUiCommand=function(A){A=_.L(A,v2p);var H;((H=this.data)==null?0:H.targetId)&&(A==null?0:A.targetId)&&A.targetId===this.data.targetId&&(this.continuationIsReloading=!0,A.content&&(this.reloadUiContent=A.content))};
Xs.prototype.observeData=Xs.prototype.observeData;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Xs.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Xs.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Xs.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Xs.prototype,"continuationIsReloading",void 0);
_.E([_.C(),_.l("design:type",Object)],Xs.prototype,"reloadUiContent",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xs.prototype,"observeData",null);_.E([_.HW()],Xs);_.DV=[_.ml.YtComponentBehavior,_.nM.YtActionHandlerBehavior,Xs.prototype];_.So={};_.So.YtNextContinuationBehavior=[_.Xj.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",_.nF(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.nF(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(A,H){A.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,H,{}):(A={locationRetrieved:function(k){this.makeNextContinuationRequest_(k,H,{})}.bind(this)},_.Ed(this.hostElement,"yt-retrieve-location",A))},
makeNextContinuationRequest_:function(A,H,k){_.RN("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();A=H(A);var d;this.canUseContextualNetworkManager_()&&(d=this.getNetworkManager());d||(d=_.wj().resolve(_.sJ));H=_.yI.instance;if(_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&H){d=_.X3([A.startsWith("/")?A.substr(1):A]);var W,z;k=_.yD(H,{},d,k==null?void 0:(W=k.context)==null?void 0:(z=W.clickTracking)==null?void 0:z.clickTrackingParams).then(function(u){return{response:u}})}else k=
this.nextContinuation.usePost?d.postData(A,k):d.fetchData(A);
k.then(this.updateNextContinuationData_.bind(this,A));this.pendingContinuationRequest_=k;this.startListeningForNavigate_()},
updateNextContinuationData_:function(A,H){var k=this;_.RN("ncl");this.pendingContinuationRequest_=void 0;if(H){var d={};this.nextContinuation&&(d=this.nextContinuation);if(H.response&&H.response.continuationContents&&H.response.continuationContents[d.continuationType]){A=H.response.continuationContents[d.continuationType];var W=d.header||"data.header",z=A[d.responseHeaderKey||"header"];z&&this.set(W,z);W=d.contentsArray||"data.contents";z=this.getContents_(A,d.responseContentsKey||"contents")||[];
this.pathExists_(W)?(z.unshift(W),this.push.apply(this,z)):this.set(W,z);z&&(U7r(_.A7(),H.response,this.hostElement,function(u){_.Ud(k.hostElement,"yt-store-grafted-ve-action",[u])}),_.Ed(this.hostElement,"yt-next-continuation-data-updated",{continuationData:H,
page:this,contentsArray:W}));this.set(d.continuationsArray||"data.continuations",A[d.responseContinuationsKey||"continuations"]||[])}else H.reload?_.Pq(new _.Ti("Reloading from continuation is unsupported")):H.responseContext&&H.responseContext.errors||(delete H.xsrf_token,delete H.timing,delete H.endpoint,delete H.csn,H.responseContext&&delete H.responseContext.serviceTrackingParams,W={request:_.nZ(A,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(H).sort()},H.response&&(W.responseContentKeys=
Object.keys(H.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(W.continuationType=this.nextContinuation.continuationType.substr(0,256)),H=new _.Ti("Malformed continuation",W),A.indexOf("/comment_service_ajax")==0?_.Pq(H):_.I3(H)),this.set(d.continuationsArray||"data.continuations",[])}else _.YJ(new _.Ti("Missing continuation response",A))},
getContents_:function(A,H){H=H.split(".");return _.iK.getValueByKeys(A,H)},
pathExists_:function(A){var H=this;A=A.toString().split(".");for(var k=0;k<A.length;k++)if(H=H[A[k]],H===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var pOQ;var Qow;var Cv=function(){var A=_.a.apply(this,arguments)||this;A.triggered_=!1;return A};
_.I(Cv,_.a);_.q=Cv.prototype;_.q.attached=function(){this.maybeTriggerAutoload()};
_.q.detached=function(){this.hasBeenTriggered_=!1};
_.q.onPrescanVisible=function(){this.onShow()};
_.q.onShow=function(){this.showButton||this.trigger()};
_.q.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Ed(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.q.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.q.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.q.computeLabel_=function(A,H){return A===void 0?null:A.label||!H?A.label:this.showMoreText_};
_.q.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.q.getContinuationUrl=function(A){var H={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.$d(A,H)};
_.q.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Cv.prototype.showButtonChanged_=Cv.prototype.showButtonChanged_;Cv.prototype.observeData_=Cv.prototype.observeData_;_.E([_.P(_.bU.YtVisibilityBehavior),_.l("design:type",Object)],Cv.prototype,"ytVisibilityBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Cv.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Cv.prototype,"showButton",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],Cv.prototype,"showIcon",void 0);_.E([_.C({computed:"computeLabel_(data, showButton)"}),_.l("design:type",Object)],Cv.prototype,"label",void 0);_.E([_.C({value:_.Yu(_.$r("SHOW_MORE",void 0,"Show More"))}),_.l("design:type",Object)],Cv.prototype,"showMoreText_",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Cv.prototype,"spinnerActive_",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Cv.prototype,"hasBeenTriggered_",void 0);
_.E([_.C({value:void 0}),_.l("design:type",String)],Cv.prototype,"observeVisibleOption",void 0);_.E([_.C({value:void 0}),_.l("design:type",String)],Cv.prototype,"observeHiddenOption",void 0);_.E([_.C({value:"observe_once"}),_.l("design:type",Object)],Cv.prototype,"observePrescanOption",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cv.prototype,"observeData_",null);
_.E([_.fF("showButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cv.prototype,"showButtonChanged_",null);_.E([_.h6({is:"yt-next-continuation",disableElementRegistration:!0})],Cv);
_.Q(Cv,"yt-next-continuation",function(){if(Qow===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;pOQ===void 0&&(pOQ=document.createElement("template"));var d=pOQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Qow=A}A=Qow;return A},{mode:2});var VWJ;var ENJ;var Kv=function(){return _.a.apply(this,arguments)||this};
_.I(Kv,_.a);Kv.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Kv.prototype,"data",void 0);_.E([_.h6({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Kv);
_.Q(Kv,"yt-music-pass-small-feature-info-renderer",function(){if(ENJ===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;VWJ===void 0&&(VWJ=document.createElement("template"));var d=VWJ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);ENJ=A}A=ENJ;return A},{mode:2});_.uL("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var aH=function(){var A=_.a.apply(this,arguments)||this;A.isCollapsible=!1;A.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return A};
_.I(aH,_.a);_.q=aH.prototype;_.q.computeIsCollapsible=function(A){return!!(((A==null?0:A.showMoreText)||(A==null?0:A.visibleRowCount))&&(A==null?0:A.isCollapsible))};
_.q.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"}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.q.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.q.onIronResize=function(){var A=this;_.vW(this,"updateGridInitItems",function(){A.maybeUpdateInitialItemsDisplayed()})};
_.q.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var A=this.getVisibleWidth();A!==0&&(A=Math.floor(A/214)*(this.data.visibleRowCount||2),A!==this.initialCount&&(this.initialCount=A,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.q.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.q.computeExpandVisible=function(A,H,k,d){return A&&H&&k&&!!d&&!!d.showMoreText};
_.q.computeShowMoreButton=function(A){return{text:A,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.q.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.q.initCollapsed=function(){var A=this;this.ytLazyListBehavior.canShowMore=!1;var H;(this.collapsed=!((H=this.data)==null||!H.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.No(this,function(){_.li(A.hostElement,"yt-refit-popups-action")})};
_.q.fillRestIfNotCollapsible=function(){var A=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!A||this.ytLazyListBehavior.fillRemainingListItems()};
_.q.computeViewAllHidden=function(A,H){return A||!H.viewAllEndpoint};
aH.prototype.fillRestIfNotCollapsible=aH.prototype.fillRestIfNotCollapsible;aH.prototype.initCollapsed=aH.prototype.initCollapsed;aH.prototype.onIronResize=aH.prototype.onIronResize;aH.prototype.persistentGuideChanged=aH.prototype.persistentGuideChanged;_.E([_.P(_.WU),_.l("design:type",Object)],aH.prototype,"ironResizableBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.cw.YtLazyListBehavior),_.l("design:type",Object)],aH.prototype,"ytLazyListBehavior",void 0);_.E([_.P(_.So.YtNextContinuationBehavior),_.l("design:type",Object)],aH.prototype,"ytNextContinuationBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],aH.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.P(_.DV),_.l("design:type",Object)],aH.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],aH.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],aH.prototype,"collapsed",void 0);_.E([_.C(),_.l("design:type",Number)],aH.prototype,"initialCount",void 0);_.E([_.C({computed:"computeShowMoreButton(data.showMoreText)"}),_.l("design:type",Object)],aH.prototype,"showMoreButton",void 0);
_.E([_.C({computed:"computeIsCollapsible(data)"}),_.l("design:type",Object)],aH.prototype,"isCollapsible",void 0);_.E([_.ol("#items"),_.l("design:type",HTMLElement)],aH.prototype,"items",void 0);_.E([_.s6("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aH.prototype,"persistentGuideChanged",null);_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aH.prototype,"onIronResize",null);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aH.prototype,"initCollapsed",null);_.E([_.s6("canShowMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aH.prototype,"fillRestIfNotCollapsible",null);_.E([_.O6({is:"ytd-grid-renderer",disableElementRegistration:!0})],aH);
_.Q(aH,"ytd-grid-renderer",function(){if(FKp!==void 0)return FKp;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return FKp=A},{mode:2});var c$=function(){return _.a.apply(this,arguments)||this};
_.I(c$,_.a);
c$.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"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],c$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],c$.prototype,"data",void 0);_.E([_.O6({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],c$);
_.Q(c$,"ytd-carousel-ad-renderer",function(){if(jok!==void 0)return jok;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return jok=A},{mode:1});var UIj;var pv=function(){return _.a.apply(this,arguments)||this};
_.I(pv,_.a);_.q=pv.prototype;_.q.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"}}}};
_.q.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,pv.JSC$15840_CLICK_LOCATION_ID_MAP))};
_.q.onSitelinkTap=function(A){A.stopPropagation();var H,k,d=A==null?void 0:(H=A.model)==null?void 0:(k=H.item)==null?void 0:k.onTap;d&&this.ytSparklesClickLocationBehavior.handleClick(d,A,!1)};
_.q.onTap=function(A){var H=this.data&&this.data.content&&this.data.content.navigationEndpoint;H&&this.ytSparklesClickLocationBehavior.handleClick(H,A,!1)};
_.q.sendImpression=function(){if(this.data&&this.data.content)for(var A=_.r(this.data.content.impressionEndpoints||[]),H=A.next();!H.done;H=A.next()){H=_.r(H.value.loggingUrls||[]);for(var k=H.next();!k.done;k=H.next())k=k.value,k.baseUrl&&p5(k.baseUrl,k.attributionSrcMode)}};
pv.prototype.onTap=pv.prototype.onTap;pv.prototype.dataChanged=pv.prototype.dataChanged;pv.JSC$15840_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"]]);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],pv.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pv.prototype,"data",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pv.prototype,"dataChanged",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],pv.prototype,"onTap",null);_.E([_.O6({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],pv);
_.Q(pv,"ytd-promoted-sparkles-text-search-renderer",function(){if(UIj!==void 0)return UIj;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return UIj=A},{mode:1});var lHA;var Qp=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.I(Qp,_.a);_.q=Qp.prototype;_.q.created=function(){this.activeView=new Ul(this.hostElement)};
_.q.configureRendererStamper=function(){return{"data.menu":{id:_.b("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]]"}}}}}};
_.q.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.q.computeHasAdBadge=function(A){return!(A==null||!A.adBadge)};
_.q.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Qp.JSC$15849_DEFAULT_AD_BADGE_RENDERER),_.UJ(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&lu(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Qp.JSC$15849_CLICK_LOCATION_ID_MAP))};
_.q.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var A;(((A=this.data)==null?void 0:A.impressionCommands)||[]).forEach(function(H){H=_.r(H.loggingUrls||[]);for(var k=H.next();!k.done;k=H.next())k=k.value,k.baseUrl&&p5(k.baseUrl,k.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.q.onTap=function(A){var H,k=(H=this.data)==null?void 0:H.navigationEndpoint,d;(H=(d=this.data)==null?void 0:d.thumbnailNavigationEndpoint)&&_.DG(_.F_(A),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(H,A,!1):k&&this.ytSparklesClickLocationBehavior.handleClick(k,A,!1)};
_.q.handleMuteAd=function(){this.collapsed=!0};
_.q.attached=function(){var A=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tB(A.activeView)})};
_.q.detached=function(){_.b("stop_av_measurement_on_detach")&&tB(this.activeView)};
_.nP.Object.defineProperties(Qp.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var A;return!(((A=this.data)==null?void 0:A.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var A;return!(((A=this.data)==null?void 0:A.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
Qp.prototype.dataChanged=Qp.prototype.dataChanged;
Qp.JSC$15849_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"]]);
Qp.JSC$15849_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.$r("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Qp.prototype,"actionHandlerBehavior",void 0);
_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],Qp.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Qp.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Qp.prototype,"collapsed",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],Qp.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.k6("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],Qp.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.l("design:type",Boolean)],Qp.prototype,"fixAlignmentSmallScreens",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs_square")}}),
_.l("design:type",Boolean)],Qp.prototype,"useBiggerThumbsSquare",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.mediaHoverOverlay"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qp.prototype,"hideHoverOverlay",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qp.prototype,"webSearchLayout",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qp.prototype,"webSearchLayoutLandscape",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qp.prototype,"webSearchLayoutSquare",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qp.prototype,"sparklesCtaNoBackground",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.actionButton"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qp.prototype,"hideActionButton",null);_.E([_.C({computed:"computeButtonOverride(uiUpdate)"}),_.l("design:type",Object)],Qp.prototype,"buttonOverride",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.l("design:type",Boolean)],Qp.prototype,"hasNewAdBadge",void 0);_.E([_.G("data.promotedSparklesWebStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qp.prototype,"useRoundedBadge",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qp.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Qp);
_.Q(Qp,"ytd-promoted-sparkles-web-renderer",function(){if(lHA!==void 0)return lHA;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return lHA=A},{mode:1});var tWw;var Vp=function(){var A=_.a.apply(this,arguments)||this;A.isInlinePreviewTriggered=!1;A.enableMonoStyle=_.b("enable_default_mono_cta_migration_web_client");return A};
_.I(Vp,_.a);_.q=Vp.prototype;_.q.created=function(){this.activeView=new Ul(this.hostElement)};
_.q.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]]"}}}}}};
_.q.computeShowCta=function(A){return!(A==null||!A.ctaRenderer)};
_.q.onCtaClick=function(){var A,H,k,d=(A=this.data)==null?void 0:(H=A.ctaRenderer)==null?void 0:(k=H.buttonRenderer)==null?void 0:k.command;d&&this.ytComponentBehavior.resolveCommand(d)};
_.q.onWatchButtonClick=function(){var A,H,k,d=(A=this.data)==null?void 0:(H=A.watchButtonRenderer)==null?void 0:(k=H.buttonRenderer)==null?void 0:k.command;d&&this.ytComponentBehavior.resolveCommand(d)};
_.q.onTap=function(){};
_.q.dataChanged=function(){if(this.data){var A;_.b("enable_inline_muted_playback_on_web_search")&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Vp.JSC$15853_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&lu(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Vp.JSC$15853_DEFAULT_CLICK_LOCATION_BEHAVIOR,Vp.JSC$15853_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"));var H;if(((H=this.data)==null?0:H.forceImpAutoplay)&&_.b("enable_force_imp_autoplay_on_desktop_search")){var k;(k=this.JSC$15854_inlinePreviewHoverListener)==null||a0C(k)}}};
_.q.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var A=_.r(this.data.impressionUrls),H=A.next();!H.done;H=A.next())H=H.value,b3m(H,v5v(H));this.data.impressionsFired=!0}};
_.q.maybeComputeHref=function(){return null};
_.q.computeIsShortDR=function(A){return!(A==null||!A.watchButtonRenderer)&&!(A==null||!A.ctaRenderer)&&!!this.enableShortDR};
_.q.computeIsNewUiOrShortDr=function(A){return!!this.enableUiUpdate||this.computeIsShortDR(A)};
_.q.computeIsNewUiAndNotShortDr=function(A){return!!this.enableUiUpdate&&!this.computeIsShortDR(A)};
_.q.computeHideAvatar=function(A){return!((A==null?0:A.channelThumbnail)&&this.computeIsNewUiOrShortDr(A))};
_.q.onClick=function(A){var H,k=(H=this.data)==null?void 0:H.navigationEndpoint;if(this.enableShortDR&&k&&(_.L(k,_.Yr)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(k,A,!!_.L(k,_.Yr)),A.stopPropagation();else if(k&&_.L(k,_.Yr))this.ytSparklesClickLocationBehavior.handleClick(k,A,!0),A.stopPropagation();else if(k){var d,W;((d=this.data)==null?0:d.navigationEndpoint)&&((W=this.data)==null?0:W.adPlaybackContextParams)&&(H=this.data.navigationEndpoint,A=this.data.adPlaybackContextParams,
H.commandMetadata&&_.L(H.commandMetadata,_.wn)&&_.L(H.commandMetadata,_.wn).url&&(H=_.MP(_.L(H.commandMetadata,_.wn).url).adurl)&&_.jNW(H)&&_.DZ(_.Mx(H),{encoded_ad_playback_context:A}));this.ytComponentBehavior.resolveCommand(k)}};
_.q.computeButtonOverride=function(A){if(this.computeIsNewUiOrShortDr(A))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.q.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.q.onThumbnailContainerClick=function(A){this.onClick(A)};
_.q.computeThumbnailWidth=function(A,H){return A?H==="MASSIVE"?600:H==="BIG"?500:H==="MEDIUM"?450:420:360};
_.q.attached=function(){var A=this,H;_.b("enable_inline_muted_playback_on_web_search")&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tB(A.activeView)})};
_.q.detached=function(){var A;_.b("enable_inline_muted_playback_on_web_search")&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.b("stop_av_measurement_on_detach")&&tB(this.activeView)};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15854_inlinePreviewHoverListener=m5({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:WKw})};
_.q.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15854_inlinePreviewHoverListener)==null||cl(A)};
Vp.prototype.dataChanged=Vp.prototype.dataChanged;Vp.prototype.onTap=Vp.prototype.onTap;Vp.JSC$15853_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.$r("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Vp.JSC$15853_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Vp.JSC$15853_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"}];_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Vp.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],Vp.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.ol("#main-container"),_.l("design:type",HTMLElement)],Vp.prototype,"mainContainer",void 0);
_.E([_.C(),_.l("design:type",Object)],Vp.prototype,"isInlinePreviewTriggered",void 0);_.E([_.C(),_.l("design:type",Object)],Vp.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],Vp.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_video_display_compact_button_group_for_desktop_search")}}),
_.l("design:type",Boolean)],Vp.prototype,"enableShortDR",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_vac_ui_update_for_desktop_search")}}),
_.l("design:type",Boolean)],Vp.prototype,"enableUiUpdate",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.k6("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],Vp.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.l("design:type",Boolean)],Vp.prototype,"showCta",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.l("design:type",Boolean)],Vp.prototype,"isShortDr",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.l("design:type",Boolean)],Vp.prototype,"isShortDrOrNewUi",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.l("design:type",Boolean)],Vp.prototype,"isNewUiAndNotShortDr",void 0);_.E([_.C({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],Vp.prototype,"buttonOverride",void 0);_.E([_.C({computed:"computeSecondaryButtonOverride(data)"}),_.l("design:type",Object)],Vp.prototype,"secondaryButtonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Vp.prototype,"enableMonoStyle",void 0);
_.E([_.ol("ytd-thumbnail"),_.l("design:type",HTMLElement)],Vp.prototype,"thumbnail",void 0);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Vp.prototype,"onTap",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Vp.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Vp);
_.Q(Vp,"ytd-promoted-video-renderer",function(){if(tWw!==void 0)return tWw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return tWw=A},{mode:1});var NDG;var EE=function(){var A=_.a.apply(this,arguments)||this;A.useRoundedBadge=!0;A.sitelinkIds=[];return A};
_.I(EE,_.a);_.q=EE.prototype;
_.q.configureRendererStamper=function(){return{"data.menu":{id:_.b("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]]"}}}}}};
_.q.dataChanged=function(){var A;(A=this.data)!=null&&A.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,EE.JSC$15859_CLICK_LOCATION_ID_MAP)};
_.q.onTap=function(A){var H,k=(H=this.data)==null?void 0:H.navigationCommand;k&&!_.DG(_.F_(A),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(k,A,!1)};
_.q.onSitelinkTap=function(A){var H,k,d=A==null?void 0:(H=A.model)==null?void 0:(k=H.item)==null?void 0:k.onTap;d&&this.ytSparklesClickLocationBehavior.handleClick(d,A,!1)};
_.q.configureSitelinkClickTargets=function(){var A=this,H,k,d=(H=this.data)==null?void 0:(k=H.clickLocationTargets)==null?void 0:k.find(function(W){return W.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
d&&_.Va(this.hostElement).querySelectorAll(".sitelink").forEach(function(W){_.UJ(W,"yt-simple-endpoint",!0);A.sitelinkIds.push(W.id);var z,u;(z=A.ytSparklesClickLocationBehavior)==null||(u=z.clickTargetMap)==null||u.set(W.id,d)})};
_.q.sendImpression=function(){var A,H,k=((A=this.data)==null?void 0:(H=A.impressionCommand)==null?void 0:H.loggingUrls)||[];A=_.r(k);for(H=A.next();!H.done;H=A.next())H=H.value,H.baseUrl&&p5(H.baseUrl,H.attributionSrcMode)};
_.q.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.nP.Object.defineProperties(EE.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
EE.prototype.onTap=EE.prototype.onTap;EE.prototype.dataChanged=EE.prototype.dataChanged;EE.JSC$15859_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"]]);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],EE.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],EE.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],EE.prototype,"showFavicon",null);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],EE.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.k6("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],EE.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.l("design:type",Boolean)],EE.prototype,"enableThumbnailScalingFix",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EE.prototype,"dataChanged",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],EE.prototype,"onTap",null);_.E([_.O6({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],EE);
_.Q(EE,"ytd-text-image-no-button-layout-renderer",function(){if(NDG!==void 0)return NDG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return NDG=A},{mode:2});var MWw;var UE=function(){var A=_.a.apply(this,arguments)||this;A.isInlinePlaybackState=!1;A.uiUpdate=_.b("web_modern_buttons");A.hideCta=_.b("hide_cta_for_home_web_video_ads");A.noBottomMargin=!1;A.animateInTimeStamp=_.H5("hide_cta_for_home_web_video_ads_animate_in_time");A.animateInCta=!1;A.isHovered=!1;A.enableMonoStyle=_.b("enable_default_mono_cta_migration_web_client");A.player=null;A.JSC$15866_playerEvents=new Map;A.JSC$15866_preventProgressSaveTimer=null;A.delayedCtaJobId=null;return A};
_.I(UE,_.a);_.q=UE.prototype;_.q.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]]"}}}}}};
_.q.attached=function(){this.JSC$15866_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15866_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.b("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.q.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15866_playerEvents)};
_.q.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",UE.JSC$15865_DEFAULT_CLICK_LOCATION_BEHAVIOR,UE.JSC$15865_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.q.hoverChanged=function(){var A=this;this.delayedCtaJobId&&(_.IE.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.b("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.zV(_.IE,function(){A.buttonContainer.classList.add("show-delayed-buttons")},_.H5("delayed_cta_on_web_delay_milliseconds")))};
_.q.setPlayer=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return(H=_.li(A.hostElement,"yt-get-inline-preview-player-action"))&&H[0]?k.yield(H[0].getPlayerPromise(),3):k.jumpTo(0);A.player=k.yieldResult;A.ytPlayerListenerBehavior.listenToPlayerEvents(A.player,A.JSC$15866_playerEvents);_.EN(k)})};
_.q.onPlaybackStart=function(){var A=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15866_preventProgressSaveTimer=_.p3(_.IE,function(){A.JSC$15866_preventProgressSaveTimer=null},1E4))};
_.q.onVideoProgress=function(A){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&A>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.q.resetPreventProgressSaveTimer=function(){_.IE.cancelJob(this.JSC$15866_preventProgressSaveTimer);this.JSC$15866_preventProgressSaveTimer=null};
_.q.getSimpleString=function(A){return _.PK(A)};
_.q.onClick=function(A){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var H,k=(H=this.data)==null?void 0:H.navigationEndpoint,d;H=(d=this.data)==null?void 0:d.channelEndpoint;var W,z;((z=_.L((W=this.data)==null?void 0:W.adCtaButton,_.gN))==null?0:z.command)&&_.DG(_.F_(A),this.hostElement,["call-to-action"])||(H&&_.DG(_.F_(A),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(H,A,!1):!_.DG(_.F_(A),this.hostElement,
["secondary-button"])&&k&&(_.b("enable_short_dr_for_desktop_launchable")?(d=!!_.L(k,_.Yr),this.isInlinePlaybackState&&d&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(k,A,d)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(k,A,!0))))}};
_.q.updateWatchEndpointStartTime=function(){var A,H;this.player&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&((H=this.data)==null?0:H.navigationEndpoint)&&!this.JSC$15866_preventProgressSaveTimer&&(A=Math.floor(this.player.getCurrentTime()),_.L(this.data.navigationEndpoint,_.Yr).startTimeSeconds=A,_.L(this.data.inlinePlaybackEndpoint,_.Yr).startTimeSeconds=A)};
_.q.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.q.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.nP.Object.defineProperties(UE.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.b("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var A,H;return!((A=this.data)==null||!A.watchButton)&&!((H=this.data)==null||!H.adCtaButton)}}});
UE.prototype.hoverChanged=UE.prototype.hoverChanged;UE.prototype.dataChanged=UE.prototype.dataChanged;
UE.JSC$15865_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"]]);
UE.JSC$15865_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"}];
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],UE.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],UE.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],UE.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],UE.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UE.prototype,"isInlinePlaybackState",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],UE.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UE.prototype,"uiUpdate",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UE.prototype,"hideCta",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UE.prototype,"noBottomMargin",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UE.prototype,"animateInCta",void 0);_.E([_.C({computed:"computeButtonOverride(uiUpdate)"}),_.l("design:type",Object)],UE.prototype,"buttonOverride",void 0);
_.E([_.C({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.l("design:type",Object)],UE.prototype,"secondaryButtonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UE.prototype,"isHovered",void 0);_.E([_.ol("#button-container"),_.l("design:type",HTMLElement)],UE.prototype,"buttonContainer",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],UE.prototype,"typographyBump",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("typographyBump"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UE.prototype,"typographyBumpV2",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UE.prototype,"enableMonoStyle",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UE.prototype,"dataChanged",null);
_.E([_.fF("isHovered"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UE.prototype,"hoverChanged",null);_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UE.prototype,"isButtonGroup",null);_.E([_.O6({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],UE);
_.Q(UE,"ytd-ad-inline-playback-meta-block",function(){if(MWw!==void 0)return MWw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return MWw=A},{mode:2});var nNZ;var lD=function(){var A=_.a.apply(this,arguments)||this;A.noBottomMargin=!1;A.isInlinePreviewTriggered=!1;A.JSC$15871_activeViewMeasurementDataResolver=_.YE();return A};
_.I(lD,_.a);_.q=lD.prototype;_.q.created=function(){this.activeView=new Ul(this.hostElement)};
_.q.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.attached=function(){var A=this;this.updateInlinePreviewHoverListeners();this.JSC$15871_activeViewMeasurementDataResolver.promise.then(function(H){lu(A.activeView,H)});
_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tB(A.activeView)})};
_.q.detached=function(){this.clearInlinePreviewHoverListeners();_.b("stop_av_measurement_on_detach")&&tB(this.activeView)};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15871_inlinePreviewHoverListener=m5({mediaRenderer:this,lockupElement:this.JSC$15871_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:WKw})};
_.q.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15871_inlinePreviewHoverListener)==null||cl(A)};
_.q.onDataChanged=function(){var A;((A=this.data)==null?0:A.activeView)&&this.JSC$15871_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",lD.JSC$15870_DEFAULT_CLICK_LOCATION_BEHAVIOR,lD.JSC$15870_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"));var H;if((H=this.data)==
null?0:H.forceImpAutoplay){var k;(k=this.JSC$15871_inlinePreviewHoverListener)==null||a0C(k)}};
_.q.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.q.onThumbnailContainerClick=function(A){if(this.data&&this.data.navigationEndpoint){var H,k=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(k,A,!!_.L(k,_.Yr));A.stopPropagation()}};
_.q.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.q.impressionLog=function(){var A=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,k,d=(k=_.L((H=this.data)==null?void 0:H.onImpression,_.nH))==null?void 0:k.commands;d&&(d.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;A.ytComponentBehavior.resolveCommand(W)}),this.data.impressionsFired=!0)}};
_.nP.Object.defineProperties(lD.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15871_inlinePreviewHoverListener)==null?0:LK(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
lD.prototype.onTypographyBumpChanged=lD.prototype.onTypographyBumpChanged;lD.prototype.onDataChanged=lD.prototype.onDataChanged;lD.JSC$15870_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);lD.JSC$15870_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"}];
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],lD.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],lD.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],lD.prototype,"ytdLockupBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],lD.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],lD.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lD.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],lD.prototype,"noBottomMargin",void 0);_.E([_.C(),_.l("design:type",Object)],lD.prototype,"isInlinePreviewTriggered",void 0);
_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],lD.prototype,"miniMode",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],lD.prototype,"typographyBump",void 0);_.E([_.ol("ytd-thumbnail"),_.l("design:type",HTMLElement)],lD.prototype,"thumbnail",void 0);_.E([_.ol("#dismissible"),_.l("design:type",HTMLElement)],lD.prototype,"JSC$15871_dismissibleMedia",void 0);
_.E([_.ol("ytd-ad-inline-playback-meta-block"),_.l("design:type",HTMLElement)],lD.prototype,"adInlinePlaybackMetaBlock",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lD.prototype,"onDataChanged",null);_.E([_.s6("typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lD.prototype,"onTypographyBumpChanged",null);
_.E([_.G("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],lD.prototype,"isHovered",null);_.E([_.O6({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],lD);
_.Q(lD,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(nNZ!==void 0)return nNZ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return nNZ=A},{mode:1});var Zdw;var tP=function(){var A=_.a.apply(this,arguments)||this;A.isInlinePreviewTriggered=!1;A.JSC$15874_activeViewMeasurementDataResolver=_.YE();return A};
_.I(tP,_.a);_.q=tP.prototype;_.q.created=function(){this.activeView=new Ul(this.hostElement)};
_.q.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.attached=function(){var A=this;this.updateInlinePreviewHoverListeners();this.JSC$15874_activeViewMeasurementDataResolver.promise.then(function(H){lu(A.activeView,H)})};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15874_inlinePreviewHoverListener=m5({mediaRenderer:this,lockupElement:this.JSC$15874_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:WKw})};
_.q.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15874_inlinePreviewHoverListener)==null||cl(A)};
_.q.onDataChanged=function(){var A;((A=this.data)==null?0:A.activeView)&&this.JSC$15874_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",tP.JSC$15873_DEFAULT_CLICK_LOCATION_BEHAVIOR,tP.JSC$15873_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"))};
_.q.onThumbnailContainerClick=function(A){if(this.data&&this.data.navigationEndpoint){var H,k=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(k,A,!0);A.stopPropagation()}};
_.q.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.q.impressionLog=function(){var A=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,k,d=(k=_.L((H=this.data)==null?void 0:H.onImpression,_.nH))==null?void 0:k.commands;d&&(d.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;_.wj().resolve(_.J7).resolveCommand(W,{form:{element:A.hostElement}})}),this.data.impressionsFired=!0)}};
_.nP.Object.defineProperties(tP.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15874_inlinePreviewHoverListener)==null?0:LK(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tP.prototype.onDataChanged=tP.prototype.onDataChanged;tP.JSC$15873_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);tP.JSC$15873_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"}];_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],tP.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],tP.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],tP.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],tP.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],tP.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],tP.prototype,"isInlinePreviewTriggered",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],tP.prototype,"miniMode",void 0);_.E([_.ol("ytd-thumbnail"),_.l("design:type",HTMLElement)],tP.prototype,"thumbnail",void 0);_.E([_.ol("#dismissible"),_.l("design:type",HTMLElement)],tP.prototype,"JSC$15874_dismissibleMedia",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tP.prototype,"onDataChanged",null);_.E([_.G("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tP.prototype,"isHovered",null);_.E([_.O6({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],tP);
_.Q(tP,"ytd-video-display-full-buttoned-renderer",function(){if(Zdw!==void 0)return Zdw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Zdw=A},{mode:1});var a5=function(A,H,k,d){d=d===void 0?!1:d;_.AA.call(this,A);this.adsClientErrorMessage=k;this.aggressivelySample=d;this.args=[];H&&this.args.push(H)};
_.I(a5,_.AA);var Ch=function(A,H,k,d){d=d===void 0?!1:d;_.AA.call(this,A);this.adsClientErrorMessage=k;this.aggressivelySample=d;this.args=[];H&&this.args.push(H)};
_.I(Ch,_.AA);var fH0=function(A){_.dF.call(this);var H=this;this.initializationFunction=A;this.instance=null;this.addOnDisposeCallback(function(){_.CC(H.instance);H.instance=null})};
_.I(fH0,_.dF);fH0.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.I5("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var wtf=function(){var A=new Map;[].forEach(function(H){A.set(H.JSC$31571_getType(),H)});
this.getters=A};new Promise(function(){});var NhQ=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"]]),llI=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"}]]),wOj=function(A){this.experimentApiProvider=A;A=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=A<.1};var NM=function(A,H,k,d){_.dF.call(this);this.adsControlFlowEventListeners=H;this.adEventLogger=k;this.experimentApiProvider=d;this.adsControlFlowManagerHelper=A(this,this,this,this,this);_.ZL(this,this.adsControlFlowManagerHelper);A=_.r(H);for(H=A.next();!H.done;H=A.next())_.ZL(this,H.value)};
_.I(NM,_.dF);var oNQ=function(A,H,k,d){MM(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",H,k,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d);A=_.r(A.adsControlFlowEventListeners);for(d=A.next();!d.done;d=A.next())oNQ(d.value,H,k)};
_.q=NM.prototype;_.q.onOpportunityProcessedExternallyManaged=function(A,H,k,d){MM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",A,k,H,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d)};
_.q.onSlotReceivedExternallyManaged=function(A,H){nv(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",A,H)};
_.q.onSlotEntered=function(A){if(ZV(this.adsControlFlowManagerHelper,A)!=null){nv(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",A);this.adsControlFlowManagerHelper.onSlotEntered(A);for(var H=_.r(this.adsControlFlowEventListeners),k=H.next();!k.done;k=H.next())k.value.onSlotEntered(A);if(ZV(this.adsControlFlowManagerHelper,A)!=null&&ZV(this.adsControlFlowManagerHelper,A).isOccupyingSlotType()&&fv(this.adsControlFlowManagerHelper,A)&&!$Iw(this.adsControlFlowManagerHelper,A)){var d;wA(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",A,(d=fv(this.adsControlFlowManagerHelper,A))!=null?d:void 0);A=ZV(this.adsControlFlowManagerHelper,A);A.slotLifecycleStage!=="entered"&&oH(A.slot,A.slotLifecycleStage,"enterLayoutForSlot");A.slotLifecycleStage="rendering";A.registeredLayoutRenderingAdapter.startRendering(A.layout)}}};
_.q.onSlotExited=function(A){if(ZV(this.adsControlFlowManagerHelper,A)!=null){nv(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",A);this.adsControlFlowManagerHelper.onSlotExited(A);for(var H=_.r(this.adsControlFlowEventListeners),k=H.next();!k.done;k=H.next())k.value.onSlotExited(A);ZV(this.adsControlFlowManagerHelper,A)!=null&&ZV(this.adsControlFlowManagerHelper,A).markedForUnscheduleAfterOutboundAdapterRequests&&Api(this,A)}};
_.q.onLayoutReceivedExternallyManaged=function(A,H,k){A.managerLayer!=="core"&&wA(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",A,H,k)};
var HQw=function(A,H,k){if(ZV(A.adsControlFlowManagerHelper,H)!=null){wA(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,k);A=_.r(A.adsControlFlowEventListeners);for(var d=A.next();!d.done;d=A.next())HQw(d.value,H,k)}};
NM.prototype.onLayoutExited=function(A,H,k){if(ZV(this.adsControlFlowManagerHelper,A)!=null){wA(this.adEventLogger,tHX(k),A,H);this.adsControlFlowManagerHelper.onLayoutExited(A,H);for(var d=_.r(this.adsControlFlowEventListeners),W=d.next();!W.done;W=d.next())W.value.onLayoutExited(A,H,k);(k=fv(this.adsControlFlowManagerHelper,A))&&H.layoutId===k.layoutId&&stJ(this,A)}};
NM.prototype.disposeInternal=function(){var A=kSi(this.adsControlFlowManagerHelper);A=_.r(A);for(var H=A.next();!H.done;H=A.next())Api(this,H.value);_.dF.prototype.disposeInternal.call(this)};
var Api=function(A,H){if(ZV(A.adsControlFlowManagerHelper,H)!=null)if(ZV(A.adsControlFlowManagerHelper,H).JSC$31601_isSlotExitRequested()||ZV(A.adsControlFlowManagerHelper,H).JSC$31601_isLayoutExitRequested())ZV(A.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(ZV(A.adsControlFlowManagerHelper,H).isOccupyingSlotType())ZV(A.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0,stJ(A,H);else if(ZV(A.adsControlFlowManagerHelper,H).JSC$31601_isSlotFillRequested())ZV(A.adsControlFlowManagerHelper,
H).markedForUnscheduleAfterOutboundAdapterRequests=!0,ZV(A.adsControlFlowManagerHelper,H)!=null&&(nv(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",H),H=ZV(A.adsControlFlowManagerHelper,H),H.fulfillmentLifecycleStage="fill_cancel_requested",H.registeredFulfillmentAdapter.cancelSlotFilling());else{var k=fv(A.adsControlFlowManagerHelper,H),d;A.experimentApiProvider.get();(d=_.b("h5_enable_layout_unscheduling_events"))&&(k?dWw(A,H,k):_.I5(Error("Mh"),H,k,void 0,!1));nv(A.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",H);var W=ZV(A.adsControlFlowManagerHelper,H),z=H.slotEntryTrigger,u=W.registeredSlotEntryTriggerAdapters.get(z.triggerId);u&&(u.unregisterTrigger(z),W.registeredSlotEntryTriggerAdapters.delete(z.triggerId));z=_.r(H.slotFulfillmentTriggers);for(u=z.next();!u.done;u=z.next()){u=u.value;var B=W.registeredFulfillmentTriggerAdapters.get(u.triggerId);B&&(B.unregisterTrigger(u),W.registeredFulfillmentTriggerAdapters.delete(u.triggerId))}z=_.r(H.slotExpirationTriggers);
for(u=z.next();!u.done;u=z.next())if(u=u.value,B=W.registeredExpirationTriggerAdapters.get(u.triggerId))B.unregisterTrigger(u),W.registeredExpirationTriggerAdapters.delete(u.triggerId);W.hasLayout()&&(z=W.layout,Al(W,z.layoutExitNormalTriggers),Al(W,z.layoutExitSkipTriggers),Al(W,z.layoutExitMuteTriggers),Al(W,z.layoutExitUserInputSubmittedTriggers),Al(W,z.layoutExitUserCancelledTriggers));W.registeredFulfillmentAdapter=void 0;W.registeredSlotAdapter!=null&&(W.registeredSlotAdapter.release(),W.registeredSlotAdapter=
void 0);W.registeredLayoutRenderingAdapter!=null&&(W.registeredLayoutRenderingAdapter.release(),W.registeredLayoutRenderingAdapter=void 0);W=A.adsControlFlowManagerHelper;ZV(W,H)&&(W=Wij(W,H.slotType+"_"+H.slotPhysicalPosition))&&W.delete(H.slotId);nv(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);A=_.r(A.adsControlFlowEventListeners);for(W=A.next();!W.done;W=A.next())W=W.value,W.onSlotUnscheduled(H),k&&!d&&dWw(W,H,k)}},dWw=function(A,H,k){wA(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
H,k);
wA(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",H,k);A=_.r(A.adsControlFlowEventListeners);for(var d=A.next();!d.done;d=A.next())d=d.value,k&&dWw(d,H,k)},stJ=function(A,H){if(ZV(A.adsControlFlowManagerHelper,H)!=null&&ZV(A.adsControlFlowManagerHelper,H).isOccupyingSlotType()){var k=fv(A.adsControlFlowManagerHelper,H);
if(k&&$Iw(A.adsControlFlowManagerHelper,H)){if(ZV(A.adsControlFlowManagerHelper,H)!=null){var d=A.adEventLogger,W;var z=((W=llI.get("abandoned"))==null?void 0:W.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";wA(d,z,H,k);A=ZV(A.adsControlFlowManagerHelper,H);A.slotLifecycleStage!=="rendering"&&oH(A.slot,A.slotLifecycleStage,"exitLayout");A.slotLifecycleStage="rendering_stop_requested";A.registeredLayoutRenderingAdapter.stopRendering(k,"abandoned")}}else{nv(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
H);try{d=ZV(A.adsControlFlowManagerHelper,H);if(!d)throw new Ch("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");d.slotLifecycleStage!=="enter_requested"&&d.slotLifecycleStage!=="entered"&&d.slotLifecycleStage!=="rendering"&&oH(d.slot,d.slotLifecycleStage,"exitSlot");d.slotLifecycleStage="exit_requested";if(d.registeredSlotAdapter===void 0)throw d.slotLifecycleStage="scheduled",new Ch("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
d.registeredSlotAdapter.exit()}catch(u){u instanceof Ch&&u.adsClientErrorMessage?(z5Z(A.adEventLogger,u.adsClientErrorMessage,H),_.I5(u,H,void 0,void 0,u.aggressivelySample)):(z5Z(A.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",H),_.I5(u,H))}}}};var Hb=function(A,H,k,d,W,z){_.dF.call(this);this.registry=A;this.experimentApiProvider=z;this.slotMap=new Map};
_.I(Hb,_.dF);var Wij=function(A,H){return(A=A.slotMap.get(H))?A:new Map},ZV=function(A,H){return Wij(A,H.slotType+"_"+H.slotPhysicalPosition).get(H.slotId)},kSi=function(A){var H=[];
A.slotMap.forEach(function(k){k=_.r(k.values());for(var d=k.next();!d.done;d=k.next())H.push(d.value.slot)});
return H};
Hb.prototype.onSlotEntered=function(A){A=ZV(this,A);A.slotLifecycleStage!=="enter_requested"&&oH(A.slot,A.slotLifecycleStage,"onSlotEntered");A.slotLifecycleStage="entered"};
var $Iw=function(A,H){A=ZV(A,H);return A.hasLayout()&&A.isRendering()},fv=function(A,H){(A=ZV(A,H))?A.hasLayout()&&!A.layout&&_.I5("Unexpected empty layout",H):_.I5("Unexpected undefined slotState",H);
return(A==null?void 0:A.layout)||null};
Hb.prototype.onSlotExited=function(A){A=ZV(this,A);A.slotLifecycleStage!=="exit_requested"&&oH(A.slot,A.slotLifecycleStage,"onSlotExited");A.slotLifecycleStage="scheduled"};
Hb.prototype.onLayoutExited=function(A,H){A=ZV(this,A);A.isPrimaryLayout(H)&&(A.slotLifecycleStage!=="rendering_stop_requested"&&oH(A.slot,A.slotLifecycleStage,"onLayoutExited"),A.slotLifecycleStage="entered")};
var Al=function(A,H){H=_.r(H);for(var k=H.next();!k.done;k=H.next()){k=k.value;var d=A.registeredLayoutExitTriggerAdapters.get(k.triggerId);d&&(d.unregisterTrigger(k),A.registeredLayoutExitTriggerAdapters.delete(k.triggerId))}},oH=function(A,H,k){_.I5("Slot stage was "+H+" when calling method "+k,A)};var rpN=function(A){_.dF.call(this);this.deps=A;this.JSC$15924_adsControlFlowManager=qoZ(this)};
_.I(rpN,_.dF);var qoZ=function(A){var H=new NM(function(k,d,W,z){return new Hb(A.deps.registry,k,d,W,z,A.deps.experimentApiProvider)},new Set(flW(A.deps.registry).concat(A.deps.listeners)),A.deps.adEventLogger,A.deps.experimentApiProvider);
_.ZL(A,H);return H};var FpX=function(){};var uii=function(A,H){_.dF.call(this);this.experimentApiProvider=A;this.eventLoggingSettingsProvider=H;this.eventCount=0;this.premiumAdSeenEventLogger=X0l()()};
_.I(uii,_.dF);uii.prototype.logEvent=function(A){MM(this,A)};
var nv=function(A,H,k,d){MM(A,H,void 0,void 0,void 0,k,void 0,void 0,void 0,k.adSlotLoggingData,void 0,void 0,d)},wA=function(A,H,k,d,W){MM(A,H,void 0,void 0,void 0,k,d?d:void 0,void 0,void 0,k.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,void 0,W);
k=_.wj().resolve(_.fZ(Jb))==null?void 0:g_();H=k==null?void 0:k.adsSeenHotConfig;k=k==null?void 0:k.adsHotConfig;(H==null?0:H.logOnAdsSeen)&&(k==null?0:k.webEnablePremiumAdsSeenLogging)&&B8Q(A,d?d:void 0,W)},z5Z=function(A,H,k){MM(A,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,k,void 0,void 0,void 0,k.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:H})},MM=function(A,H,k,d,W,z,u,B,h,O,T,m,J){J=J===void 0?0:J;
e5p(A.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+H,"slot:",z,"layout:",u,"ping:",B,"Opportunity:",{opportunityType:k,associatedSlotId:d,slotsFromOpportunity:W,triggerBundle:h,adSlotLoggingData:O,adLayoutLoggingData:T});try{var g=function(){A.experimentApiProvider.get();if(H!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){H||_.I5("Empty PACF event type",z,u);var v=A.eventLoggingSettingsProvider.get();var y;(y=v.alwaysIncludeDebugData)||(v.experimentApiProvider.get(),y=
!1);v=y;y={eventType:H,eventOrder:++A.eventCount};var X={};z&&(X.slotData=nbI(v,z));if(u){var D={type:u.layoutType,controlFlowManagerLayer:NhQ.get(u.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};v&&(D.debugData={layoutId:u.layoutId});X.layoutData=D}B&&(X.pingData={pingDispatchStatus:B.dispatchStatus,serializedAdPingMetadata:B.ping.serializedAdPingMetadata,pingIndex:B.index});h&&(X.triggerData=MHV(h.trigger,h.category));k&&(X.opportunityData=Zqr(v,k,d,W));y.adClientData=X;O&&(y.serializedSlotAdServingData=
O.serializedSlotAdServingDataEntry);T&&(y.serializedAdServingData=T.serializedAdServingDataEntry);m&&(y.errorInfo=m);_.yr("adsClientStateChange",{adsClientEvent:y})}};
J&&J>0?_.ma(_.iA(),function(){return g()},J):g()}catch(v){e5p(A.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.ma(_.iA(),function(){_.I5(v instanceof Error?v:String(v),z,u,{pacf_message:"exception during pacf logging"})})}},B8Q=function(A,H,k){if(H){var d=H.adLayoutLoggingData;
_.ma(_.iA(),function(){A.premiumAdSeenEventLogger!=null&&d&&_.yr("adsSeenClientLogging",{serializedAdServingDataEntry:d.serializedAdServingDataEntry})},k!=null?k:0)}};var xWQ=function(A,H){uii.call(this,A,H)};
_.I(xWQ,uii);var iQZ=function(){},e5p=function(A,H){return _.b(H)};var OQp=function(){var A=new h5i;this.JSC$15949_adsControlFlowManager=(new rpN(A)).JSC$15924_adsControlFlowManager},h5i=function(){_.dF.call(this);
var A=this;this.experimentApiProvider=new fH0(function(){return new iQZ});
var H=new fH0(function(){return new wOj(A.experimentApiProvider)});
this.adEventLogger=new xWQ(this.experimentApiProvider,H);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.I(h5i,_.dF);var R5i=function(){},T8A,sb=function(){T8A||(T8A=new R5i);
return T8A},kF=function(A){if(!A.JSC$15960_externallyManagedSlotAdapterCallback){var H=(new OQp).JSC$15949_adsControlFlowManager;
A.JSC$15960_externallyManagedSlotAdapterCallback=H}return A.JSC$15960_externallyManagedSlotAdapterCallback},mWi=function(A,H,k){var d=H.opportunityType,W=Error("Nh");
if(d!==void 0){var z=kF(A);oNQ(z,d,void 0,k)}else _.I5(W,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});z=[];if(H.adSlotAndLayoutMetadata!==void 0){H=_.r(H.adSlotAndLayoutMetadata);for(var u=H.next();!u.done;u=H.next()){var B=u.value;if(u=B.adSlotMetadata)if(z.push(u),A.onSlotReceivedExternallyManaged(u,k),B.adLayoutMetadata){B=_.r(B.adLayoutMetadata);for(var h=B.next();!h.done;h=B.next())A.onLayoutReceivedExternallyManaged(u,h.value,k)}else k>0&&_.I5("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else k>0&&_.I5("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else k>0&&_.I5("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(d!==void 0)A.onOpportunityProcessedExternallyManaged(d,z,void 0,k);else _.I5(W,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
R5i.prototype.onSlotReceivedExternallyManaged=function(A,H){A=Kh(A);if(A instanceof Ch)_.I5(A,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else kF(this).onSlotReceivedExternallyManaged(A,H)};
R5i.prototype.onLayoutReceivedExternallyManaged=function(A,H,k){A=Kh(A);H=obI(H);if(A instanceof Ch)_.I5(A,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(H instanceof a5)_.I5(H,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else kF(this).onLayoutReceivedExternallyManaged(A,H,k)};
R5i.prototype.onOpportunityProcessedExternallyManaged=function(A,H,k,d){var W=[];H=_.r(H);for(var z=H.next();!z.done;z=H.next())z=Kh(z.value),z instanceof Ch?_.I5(z,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):W.push(z);kF(this).onOpportunityProcessedExternallyManaged(A,W,k,d)};
var JpA=function(A,H){H=Kh(H);if(H instanceof Ch)_.I5(H,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var k=kF(A);nv(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",H);k=_.r(k.adsControlFlowEventListeners);for(var d=k.next();!d.done;d=k.next())d=ZV(d.value,H),d.slotLifecycleStage!=="not_scheduled"&&oH(d.slot,d.slotLifecycleStage,"onSlotScheduled"),d.slotLifecycleStage="scheduled";A=kF(A);nv(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",H);A=_.r(A.adsControlFlowEventListeners);
for(k=A.next();!k.done;k=A.next())k.value.onSlotEntered(H)}},gPJ=function(A,H){H=Kh(H);
if(H instanceof Ch)_.I5(H,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var k=kF(A);nv(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",H);k=_.r(k.adsControlFlowEventListeners);for(var d=k.next();!d.done;d=k.next())d.value.onSlotExited(H);A=kF(A);nv(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);A=_.r(A.adsControlFlowEventListeners);for(k=A.next();!k.done;k=A.next())k.value.onSlotUnscheduled(H)}},bQQ=function(A,H,k){H=Kh(H);
k=obI(k);if(H instanceof Ch)_.I5(H,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(k instanceof a5)_.I5(k,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var d=kF(A);wA(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",H,k);d=_.r(d.adsControlFlowEventListeners);for(var W=d.next();!W.done;W=d.next())W.value.onLayoutScheduled(H,k);A=kF(A);wA(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,k);A=_.r(A.adsControlFlowEventListeners);
for(d=A.next();!d.done;d=A.next())HQw(d.value,H,k)}},dB=function(A,H,k){H=Kh(H);
k=obI(k);if(H instanceof Ch)_.I5(H,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(k instanceof a5)_.I5(k,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var d=kF(A);wA(d.adEventLogger,tHX("normal"),H,k);d=_.r(d.adsControlFlowEventListeners);for(var W=d.next();!W.done;W=d.next())W.value.onLayoutExited(H,k,"normal");A=kF(A);A=_.r(A.adsControlFlowEventListeners);for(d=A.next();!d.done;d=A.next())dWw(d.value,H,k)}};var LiA=_.c(function(A){var H=A.data,k=A.listenToTapEvent,d=function(){};
return _.x("ad-button-hover-overlay-view-model",{"on:click":_.lc(function(W){if(_.b("enable_web_home_top_landscape_image_layout_legacy_click_command")){var z,u=(z=H().interaction)==null?void 0:z.onTap;u&&_.Ed(W.currentTarget,"yt-navigate",{endpoint:_.h7(u)})}}),
class:function(){var W;return((W=H().interaction)==null?0:W.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.P8(_.NV({visibilityCallback:function(W){var z,u=(z=H().interaction)==null?void 0:z.onFirstVisible;W&&u&&_.mu(u)},
showOption:_.VY}),_.g9(function(){return H().interaction},void 0,function(){return!_.b("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(k==null?void 0:k())}))},function(){return _.b("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.x(_.HG,{data:function(){return H().button}},{adButtonViewModel:function(W){return _.x(_.la,{data:W.data,
customCommandResolver:d})}}):_.x(_.HG,{data:function(){return H().button}},{adButtonViewModel:_.la})}())},"uc");var cG;_.Sw(_.c(function(A){var H=A.data;A=_.NV({visibilityCallback:function(B,h){if(B){var O;(B=(O=H().interaction)==null?void 0:O.onFirstVisible)&&_.mu(B);var T;if(O=(T=H().adLayoutData)==null?void 0:T.activeViewData)ph(h,O),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&QP(h)})}else _.b("stop_av_measurement_on_detach")&&QP(h)},
showOption:_.VY,hideOption:Ee});var k=_.g9(function(){return H().interaction},void 0,function(){return!0}),d=_.r(_.RV(!1,void 0,"VNDDT")),W=d.next().value,z=d.next().value;
d=_.lc(function(){z(!0)});
var u=_.lc(function(){z(!1)});
return _.x("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.P8(A,Wzf,k),"on:mouseenter":d,"on:mouseleave":u},_.x("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Mt({"max-width":function(){return _.b("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.x("div",{class:function(){var B;
a:{var h;switch((B=_.L(H().thumbnailImage,udj))==null?void 0:(h=B.imageProperties)==null?void 0:h.renderingAspect){case "RENDERING_ASPECT_SQUARE":B="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":B="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}B=void 0}return B}},_.x(_.HG,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(B){return _.x(_.Ue,
{data:B.data,
listenToTapEvent:!0,setTouchEndHandler:_.b("enable_top_landscape_image_experiment_dom_id_web")})}})),_.x("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.x(_.R,{cond:function(){var B,h,O;
return(B=_.L(H().thumbnailImage,udj))==null?void 0:(h=B.imageProperties)==null?void 0:(O=h.overlayIcon)==null?void 0:O.iconImage},
then:function(B){return _.x(_.GA,{data:B,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.x("div",{class:function(){return W()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.x(_.HG,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(B){return _.x(LiA,
{data:B.data,
listenToTapEvent:!0})}}))),_.x("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.x(_.HG,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(B){return _.x(wv,{data:B.data,
listenToTapEvent:!0,setTouchEndHandler:_.b("enable_top_landscape_image_experiment_dom_id_web")})}})))},"vc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;A=_.NV({visibilityCallback:function(B,h){if(B){var O;(B=(O=H().interaction)==null?void 0:O.onFirstVisible)&&_.mu(B);var T;if(O=(T=H().adLayoutData)==null?void 0:T.activeViewData)ph(h,O),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&QP(h)})}else _.b("stop_av_measurement_on_detach")&&QP(h)},
showOption:_.VY,hideOption:Ee});var k=_.oy(_.Ot),d=_.g9(function(){return H().interaction}),W={},z={},u={};
return _.x("square-image-layout-view-model",{class:_.ER("ytwSquareImageLayoutViewModelHost",(W.ytwSquareImageLayoutViewModelHostColumn=k,W)),el:_.P8(A,zlI,d)},_.x("div",{class:_.ER("ytwSquareImageLayoutViewModelHostImage",(z.ytwSquareImageLayoutViewModelHostColumnImage=k,z))},function(){return _.x(_.HG,{data:function(){return H().adImage}},{adImageViewModel:function(B){return _.x(_.Ue,{data:B.data,
isGridViewEnabled:k,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.x("div",{class:_.ER("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(u.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=k,u))},_.x(_.HG,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:wv}),function(){return _.x(_.HG,{data:function(){return H().adButton}},{adButtonViewModel:function(B){var h={};
return _.x(_.la,{data:B.data,className:_.ER((h.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,h.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=k,h))})}})}()))},"wc"),"square-image-layout-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=A.noBottomMargin;var d=A.typographyBump;A=_.NV({visibilityCallback:function(m,J){if(m){var g;(m=(g=H().interaction)==null?void 0:g.onFirstVisible)&&_.mu(m);var v;if(g=(v=H().adLayoutData)==null?void 0:v.activeViewData)ph(J,g),_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&QP(J)})}else _.b("stop_av_measurement_on_detach")&&QP(J)},
showOption:_.VY,hideOption:Ee});var W=_.g9(function(){return H().interaction},void 0,function(){return _.b("enable_web_home_top_landscape_image_layout_level_click")}),z=function(){return H().interaction};
z!==void 0&&z!==null||_.lt(Error("Oh"));var u=function(){var m,J,g;return(m=_.L(H().thumbnailImage,udj))==null?void 0:(J=m.background)==null?void 0:(g=J.backgroundImageSource)==null?void 0:g.imageSources};
z=_.r(_.RV(!1,void 0,"NFjwje"));var B=z.next().value,h=z.next().value;z=_.lc(function(){h(!0)});
var O=_.lc(function(){h(!1)}),T=function(){return B()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.x("top-landscape-image-layout-view-model",{class:function(){var m;return((m=H().interaction)==null?0:m.onTap)&&_.b("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.P8(A,qSC,W),"on:mouseenter":z,"on:mouseleave":O},_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.x(_.R,{cond:function(){return u()&&u().length>0},
then:function(){return _.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Mt({top:"0","background-image":function(){return"url("+String(u()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.x(_.R,{cond:function(){return!!H().adButtonHoverOverlay},
then:function(){return _.x("div",{class:T},_.x(_.HG,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:LiA}))}}),_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.x(_.HG,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(m){return _.x(_.Ue,{data:m.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.b("enable_web_home_top_landscape_image_layout_level_click")})}})),_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.x(_.GA,{data:{sources:[{clientResource:{imageName:"arrow_diagonal_up_right"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.x(_.HG,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(m){return _.x(wv,{data:m.data,
noBottomMargin:function(){return k==null?void 0:k()},
listenToTapEvent:function(){return _.b("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return d==null?void 0:d()}})}})))},"xc"),"top-landscape-image-layout-view-model",{props:{data:_.Ih,
noBottomMargin:_.Ih,typographyBump:_.Ih}});var vPi=_.c(function(A){var H=A.data,k=_.NV({visibilityCallback:function(W){var z,u=(z=H().interaction)==null?void 0:z.onFirstVisible;W&&u&&_.mu(u)},
showOption:_.VY});A=_.g9(function(){return H().interaction},A.customCommandResolver);
var d={};return _.x("ad-text-image-view-model",{class:_.ER("ytwAdTextImageViewModelHost",(d.ytwAdTextImageViewModelHostDarkBackground=function(){return H().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},d)),
el:_.P8(k,A),"aria-label":function(){var W,z;return(W=H().interaction)==null?void 0:(z=W.accessibility)==null?void 0:z.label}},_.x("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.x(_.j$,{text:function(){return H().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.x(_.R,{cond:function(){return H().overlayIcon},
then:function(W){return _.x("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.x(_.GA,{data:W,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"yc");var yp0=_.c(function(A){var H=A.data;return _.x("feed-ad-sitelink-view-model",{class:function(){var k;return((k=H().interaction)==null?0:k.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.P8(_.g9(function(){return H().interaction},A.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var k,d;return(k=H().interaction)==null?void 0:(d=k.accessibility)==null?void 0:d.label},
role:"link",tabindex:0},_.x(_.j$,{text:function(){return H().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"zc");var jtQ=_.c(function(A){var H=A.data;A={};return _.x("feed-ad-sitelinks-carousel-view-model",{el:_.P8(_.NV({visibilityCallback:function(k){var d,W=(d=H().interaction)==null?void 0:d.onFirstVisible;k&&W&&_.mu(W)},
showOption:_.VY})),class:_.ER("ytwFeedAdSitelinksCarouselViewModelHost",(A.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return H().style==="FEED_AD_SITELINKS_STYLE_NONE"},A))},_.x(_.HG,{data:function(){return H().sitelinks}},{feedAdSitelinkViewModel:yp0}))},"Ac");_.Sw(_.c(function(A){var H=A.data;A=_.NV({visibilityCallback:function(u,B){if(u){var h;(u=(h=H().interaction)==null?void 0:h.onFirstVisible)&&_.mu(u);var O;(h=(O=H().adLayoutData)==null?void 0:O.activeViewData)&&ph(B,h)}},
showOption:_.VY});var k=_.r(_.RV(!1,void 0,"BzPhl")),d=k.next().value,W=k.next().value;k=_.lc(function(){W(!0)});
var z=_.lc(function(){W(!1)});
return _.x("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.P8(A),"on:mouseenter":k,"on:mouseleave":z},_.x("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.x("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.x(_.HG,{data:function(){return H().textImage}},{adTextImageViewModel:vPi})),_.x("div",{class:function(){return d()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.x(_.HG,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(u){return _.x(LiA,{data:u.data,
listenToTapEvent:!0})}}))),_.x("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.x(_.HG,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(u){return _.x(wv,{data:u.data,
listenToTapEvent:!0})}}),_.x(_.HG,{data:function(){return H().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:jtQ})))},"Bc"),"text-image-no-button-layout-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=A.typographyBump;return _.x("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.P8(_.NV({visibilityCallback:function(d,W){if(d){var z;(d=(z=H().interaction)==null?void 0:z.onFirstVisible)&&_.mu(d);var u;(z=(u=H().adLayoutData)==null?void 0:u.activeViewData)&&ph(W,z)}},
showOption:_.VY,hideOption:Ee}))},_.x("div",null,_.x(_.HG,{data:function(){return H().videoLockup}},{lockupViewModel:function(d){return _.x(_.oW,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:k})}})))},"Cc"),"video-display-button-group-layout-view-model",{props:{data:_.Ih,
noBottomMargin:_.Ih,typographyBump:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=A.className;var d=A.typographyBump;return _.x("video-display-compact-button-group-layout-view-model",{el:_.P8(_.NV({visibilityCallback:function(W,z){if(W){var u;(W=(u=H().interaction)==null?void 0:u.onFirstVisible)&&_.mu(W);var B;(u=(B=H().adLayoutData)==null?void 0:B.activeViewData)&&ph(z,u)}},
showOption:_.VY})),class:_.ER("videoDisplayCompactButtonGroupLayoutViewModelHost",k)},_.x(_.HG,{data:function(){return H().videoLockup}},{lockupViewModel:function(W){return _.x(_.oW,{data:W.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:d})}}))},"Dc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Ih,
className:_.Ih,typographyBump:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=A.className;var d=A.typographyBump;return _.x("video-display-compact-buttoned-layout-view-model",{el:_.P8(_.NV({visibilityCallback:function(W,z){if(W){var u;(W=(u=H().interaction)==null?void 0:u.onFirstVisible)&&_.mu(W);var B;(u=(B=H().adLayoutData)==null?void 0:B.activeViewData)&&ph(z,u)}},
showOption:_.VY})),class:_.ER("videoDisplayCompactButtonedLayoutViewModelHost",k)},_.x(_.HG,{data:function(){return H().videoLockup}},{lockupViewModel:function(W){return _.x(_.oW,{data:W.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:d})}}))},"Ec"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.Ih,
className:_.Ih,typographyBump:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=A.className;var d=A.typographyBump;return _.x("video-display-compact-carousel-button-group-layout-view-model",{el:_.P8(_.NV({visibilityCallback:function(W,z){if(W){var u;(W=(u=H().interaction)==null?void 0:u.onFirstVisible)&&_.mu(W);var B;(u=(B=H().adLayoutData)==null?void 0:B.activeViewData)&&ph(z,u)}},
showOption:_.VY})),class:_.ER("videoDisplayCompactCarouselButtonGroupLayoutViewModelHost",k)},_.x(_.HG,{data:function(){return H().videoLockup}},{lockupViewModel:function(W){return _.x(_.oW,{data:W.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:d})}}))},"Fc"),"video-display-compact-carousel-button-group-layout-view-model",{props:{data:_.Ih,
className:_.Ih,typographyBump:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=A.className;var d=A.typographyBump;var W=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},z=_.oy(_.Ot);
A=_.NV({visibilityCallback:function(O,T){if(O){var m=H();O=m.adLayoutData;var J;(m=(J=m.interaction)==null?void 0:J.onFirstVisible)&&_.mu(m);(J=O==null?void 0:O.activeViewData)&&ph(T,J)}},
showOption:_.VY});var u=_.be(function(){return{containerType:W()&&z()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:W()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),B=_.be(function(){return W()&&z()?"":W()?"168px":"50%"},void 0,"Om6kNe"),h=_.be(function(){return W()&&z()?9999:void 0},void 0,"S71lKd");
return _.x("video-display-compact-layout-view-model",{el:_.P8(A),class:_.ER("videoDisplayCompactLayoutViewModelHost",k)},_.x(_.HG,{data:function(){return H().videoLockup}},{lockupViewModel:function(O){return _.x(_.oW,{data:O.data,
containerLayoutConfig:u,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:B,thumbnailTargetWidth:h,typographyBump:d})}}))},"Gc"),"video-display-compact-layout-view-model",{props:{data:_.Ih,
className:_.Ih,typographyBump:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=A.typographyBump;return _.x("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.P8(_.NV({visibilityCallback:function(d,W){if(d){var z;(d=(z=H().interaction)==null?void 0:z.onFirstVisible)&&_.mu(d);var u;(z=(u=H().adLayoutData)==null?void 0:u.activeViewData)&&ph(W,z)}},
showOption:_.VY,hideOption:Ee}))},_.x("div",null,_.x(_.HG,{data:function(){return H().videoLockup}},{lockupViewModel:function(d){return _.x(_.oW,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:k})}})))},"Hc"),"video-display-full-layout-view-model",{props:{data:_.Ih,
noBottomMargin:_.Ih,typographyBump:_.Ih}});var IEw=_.c(function(A){var H=A.data;var k=A.customCommandResolver;var d=A.className;var W=A.buttonClassName;var z=A.animationEntityKey;var u=A.expansive;return _.x("carousel-button-view-model",{class:_.ER("ytwCarouselButtonViewModelHost",d)},_.x(_.HG,{data:function(){return H().carousel}},{carouselAdCardCollectionViewModel:function(B){return _.x(xDj,{data:B.data,
customCommandResolver:k,expansive:u})}}),_.x(_.HG,{data:function(){return H().button}},{adButtonViewModel:function(B){var h=B.data;
return _.x(_.la,{data:function(){return(u==null?0:u())?Object.assign({},h(),{style:"AD_BUTTON_STYLE_TONAL"}):h()},
className:W,customCommandResolver:k,animationEntityKey:z})}}))},"Ic");_.Yop=_.c(function(A){var H=A.data;A=A.className;var k=_.GP("pivot-button-view-model");_.CZ(function(){var d;((d=H())==null?0:d.backgroundColor)&&k.value.setAttribute("data-background-color",String(H().backgroundColor))});
return _.x("pivot-button-view-model",{el:k,class:_.ER("ytwPivotButtonViewModelHost",A)},_.x(_.c2,{command:function(){var d=H();d=d.onClickCommand?_.h7(d.onClickCommand):d.contentDescription?_.SX(d.contentDescription):void 0;return d},
ariaLabel:function(){return H().contentDescription}},_.x(_.R,{cond:function(){return H().thumbnail},
then:function(d){return _.x(_.GA,{data:d,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.x(_.R,{cond:function(){return H().icon},
then:function(d){return _.x(_.n3,{icon:function(){return d().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Jc");_.PqA=_.c(function(A){var H=A.data;var k=A.buttonShapeOverrideables;A={};return _.x("reel-action-bar-view-model",{class:_.ER("ytwReelActionBarViewModelHost",(A.ytwReelActionBarViewModelHostDecluttered=function(){return _.b("enable_shorts_declutter_ui")},A))},_.x(_.HG,{data:function(){return H().buttonViewModels}},{buttonViewModel:function(d){return _.x(_.U7,{data:d.data,
buttonOverrides:k})},
likeButtonViewModel:function(d){return _.x(_.gq,{data:d.data,buttonShapeOverrideables:k})},
dislikeButtonViewModel:function(d){return _.x(_.Jz,{data:d.data,buttonShapeOverrideables:k})},
toggleButtonViewModel:function(d){return _.x(_.qc,{data:d.data,buttonShapeOverrides:k})}}))},"Kc");var GSw=_.c(function(A){var H=A.avatar;var k=A.headline;var d=A.badge;var W=A.description;var z=A.expansive;A={};return _.x("yt-ad-metadata-shape",{class:_.ER("ytAdMetadataShapeHost",(A.ytAdMetadataShapeHostLarge=z,A.ytAdMetadataShapeHostDecluttered=function(){return _.b("enable_desktop_small_title_on_immersive_shorts")},A))},_.x("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.x(_.R,{cond:H,
then:function(u){return _.x(_.YS0,{data:function(){return(z==null?0:z())?Object.assign({},u(),{size:"AD_AVATAR_SIZE_M"}):u()}})}}),_.x("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.x(_.j$,{text:k,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.x(_.R,{cond:d,then:function(u){return _.x(_.ZY,{data:function(){return(z==null?0:z())?Object.assign({},u(),{style:"AD_BADGE_STYLE_STARK"}):u()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.x("h2",{class:"ytAdMetadataShapeHostDescription"},_.x(_.j$,{text:W,
linkInheritColor:!0,isHeadline:function(){return z==null?void 0:z()}})))},"Lc");var Fii=_.c(function(A){var H=A.data;var k=A.onShow;var d=A.expansive;A=_.g9(function(){return H().interaction});
_.CZ(function(){var z,u=(z=H().animatedRenderingConfig)==null?void 0:z.delayedSecondsToVisible;if(u){var B=setTimeout(k,u*1E3);_.aV(function(){clearTimeout(B)})}});
var W={};return _.x("reels-ad-card-buttoned-view-model",{class:_.ER(function(){var z;return((z=H().interaction)==null?0:z.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(W.ytwReelsAdCardButtonedViewModelHostExpansive=d,W)),
el:_.P8(A)},_.x(GSw,{avatar:function(){return _.L(H().avatar,zvZ)},
headline:function(){return H().headline},
badge:function(){return _.L(H().adBadge,q4w)},
description:function(){return H().description},
expansive:d}),_.x(_.HG,{data:function(){return H().ctaButton}},{adButtonViewModel:function(z){var u=z.data;
return _.x(_.la,{data:function(){return(d==null?0:d())?Object.assign({},u(),{style:"AD_BUTTON_STYLE_FILLED"}):u()}})}}))},"Mc");var XsQ=_.c(function(A){var H=A.data;A=A.expansive;var k=_.b("web_ad_metadata_clickable")?_.g9(function(){return H().interaction},void 0,function(){return _.b("web_ad_metadata_clickable")}):void 0,d={};
d=_.u2("ytwReelsAdMetadataViewModelHost",(d.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.b("web_ad_metadata_clickable"),d));return _.x("reels-ad-metadata-view-model",{class:d,el:_.P8(k)},_.x(GSw,{avatar:function(){return _.L(H().avatar,zvZ)},
headline:function(){return H().headline},
badge:function(){return _.L(H().adBadge,q4w)},
description:function(){return H().description},
expansive:A}))},"Nc");var DW0=_.c(function(){return _.x("div",{class:"ytwVideoFilteringOverlayHost",style:_.Mt({"background-color":function(){return _.h1(_.H5("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Oc");var SoG={iconPosition:"icon-with-label",size:"L"},CqA=_.c(function(A){var H=A.data;var k=A.overlayDensity;var d=A.extractOverlay;var W=A.extractActionBar;A=_.GP("reels-player-overlay-layout-view-model");var z=_.DS(k,0),u=function(){var g;return(g=H().reelsAdCardButtonedEntityKey)!=null?g:""},B=function(){return u()+"/ad_button"},h=_.o9(Vrr,u),O=function(){var g,v;
return(v=(g=h())==null?void 0:g.value)!=null?v:!1},T=_.oy(rDV),m=function(){var g,v=Object.assign({},SoG,(T()||!((g=W==null?void 0:W())!=null&&g))&&{style:"overlay-dark"});
return _.b("mweb_shorts_rhs_no_background_protection")?Object.assign({},v,{type:"text",style:"overlay"}):v};
k={};var J={};return _.x("reels-player-overlay-layout-view-model",{class:_.ER("ytwReelsPlayerOverlayLayoutViewModelHost",(k.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!H().extension},k.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},k.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return z()===1&&!(d==null?0:d())},k.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var g;
return(g=d==null?void 0:d())!=null?g:!1},k.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var g;
return(g=W==null?void 0:W())!=null?g:!1},k)),
"overlay-density":function(){return String(z())},
el:A},_.x("div",{class:_.ER("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(J.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},J))},_.x("div",{"aria-hidden":function(){return O()},
class:_.ER("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return O()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Mt({"transition-duration":function(){return xDV(H())}})},_.x(_.HG,{data:function(){return H().adMetadata}},{reelsAdMetadataViewModel:function(g){return _.x(XsQ,{data:g.data,
expansive:function(){return z()===1}})}}),_.x(_.R,{cond:function(){return H().extension},
then:function(g){return _.x("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.x(_.HG,{data:g},{adButtonViewModel:function(v){return _.x(_.la,{data:v.data,animationEntityKey:B,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(v){return _.x(IEw,{data:v.data,animationEntityKey:B,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return z()===1}})}}))}})),_.x("div",{"aria-hidden":function(){return!O()},
class:_.ER("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return O()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Mt({"transition-duration":function(){return xDV(H())}})},_.x(_.HG,{data:function(){return H().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(g){return _.x(Fii,{data:g.data,
onShow:function(){_.XI(_.kH("booleanEntity",u(),{key:u(),value:!0}))},
expansive:function(){var v;return(v=d==null?void 0:d())!=null?v:!1}})}}))),_.x("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.x(_.HG,{data:function(){return H().actions}},{reelActionBarViewModel:function(g){return _.x(_.PqA,{data:g.data,
buttonShapeOverrideables:m})}}),_.x(_.HG,{data:function(){return H().menu}},{buttonViewModel:function(g){return _.x(_.U7,{data:g.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},m())}})}}),_.x(_.HG,{data:function(){return H().pivotButton}},{pivotButtonViewModel:function(g){return _.x(_.Yop,{data:g.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.x(_.R,{cond:function(){return _.b("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.x(_.qHQ,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.x(DW0,null)})}}))},"Pc");_.Sw(CqA,"reels-player-overlay-layout-view-model",{props:{data:_.Ih,overlayDensity:_.Ih,extractOverlay:_.Ih,extractActionBar:_.Ih}});var Wb=function(){var A=_.a.apply(this,arguments)||this;A.noBottomMargin=!1;A.overlayDensity=0;A.extractOverlay=!1;A.extractActionBar=!1;return A};
_.I(Wb,_.a);_.q=Wb.prototype;
_.q.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]]"}},videoDisplayCompactCarouselButtonGroupLayoutViewModel:{component:"video-display-compact-carousel-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:_.b("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]]"}}}}}};
_.q.ready=function(){var A=this;yil(function(){A.isAttached&&Dv(A.JSC$15999_storedAdSlotMetadata,A.JSC$15999_storedAdLayoutMetadata,A.adSlotMetadata,A.adLayoutMetadata)&&dB(sb(),A.JSC$15999_storedAdSlotMetadata,A.JSC$15999_storedAdLayoutMetadata)})};
_.q.attached=function(){Dv(this.JSC$15999_storedAdSlotMetadata,this.JSC$15999_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&bQQ(sb(),this.JSC$15999_storedAdSlotMetadata,this.JSC$15999_storedAdLayoutMetadata)};
_.q.detached=function(){Dv(this.JSC$15999_storedAdSlotMetadata,this.JSC$15999_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dB(sb(),this.JSC$15999_storedAdSlotMetadata,this.JSC$15999_storedAdLayoutMetadata)};
_.q.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.q.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15999_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15999_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15999_storedAdLayoutMetadata!==void 0&&this.JSC$15999_storedAdSlotMetadata!==void 0&&dB(sb(),this.JSC$15999_storedAdSlotMetadata,this.JSC$15999_storedAdLayoutMetadata),bQQ(sb(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15999_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15999_storedAdSlotMetadata=this.adSlotMetadata)};
_.nP.Object.defineProperties(Wb.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.adLayoutMetadata}}});
Wb.prototype.onAdMetadataChanged=Wb.prototype.onAdMetadataChanged;Wb.prototype.onTypographyBumpChanged=Wb.prototype.onTypographyBumpChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Wb.prototype,"rendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Wb.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],Wb.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Wb.prototype,"noBottomMargin",void 0);_.E([_.C(),_.l("design:type",Object)],Wb.prototype,"overlayDensity",void 0);_.E([_.C(),_.l("design:type",Object)],Wb.prototype,"extractOverlay",void 0);_.E([_.C(),_.l("design:type",Object)],Wb.prototype,"extractActionBar",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Wb.prototype,"typographyBump",void 0);
_.E([_.G("data.adLayoutMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],Wb.prototype,"adLayoutMetadata",null);_.E([_.C(),_.l("design:type",Object)],Wb.prototype,"adSlotMetadata",void 0);_.E([_.ol("ytd-video-display-full-buttoned-and-button-group-renderer"),_.l("design:type",HTMLElement)],Wb.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.E([_.fF("typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Wb.prototype,"onTypographyBumpChanged",null);_.E([_.fF("adLayoutMetadata","adSlotMetadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Wb.prototype,"onAdMetadataChanged",null);_.E([_.O6({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Wb);
_.Q(Wb,"ytd-in-feed-ad-layout-renderer",function(){if(yEZ!==void 0)return yEZ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return yEZ=A},
{mode:2});var Kii;var aEw;_.Sw(_.ZY,"ad-badge-view-model",{props:{data:_.Ih,hasDot:_.Ih,customCommandResolver:_.Fc,adRenderingContextType:_.Fc,usedInMasthead:_.Fc}});_.Sw(_.la,"ad-button-view-model",{props:{data:_.Ih,customCommandResolver:_.Fc,className:_.Fc,delayedClassName:_.Fc,animationEntityKey:_.Fc,isCompactWidth:_.Fc,isContentWidth:_.Fc}});var zT=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return A};
_.I(zT,_.a);_.q=zT.prototype;_.q.computeHasLiveDescription=function(A){return!(A==null||!A.liveDescription)};
_.q.computeHasByline=function(A){return!(A==null||!A.byline)};
_.q.computeUsesAdButtonViewModel=function(A){return!!_.L(A==null?void 0:A.cta,r$J)};
_.q.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"}}}}}};
_.q.onYtToggleButton=function(A){var H,k=(H=this.data)==null?void 0:H.videoReminderEntityKey;k&&this.ytdReduxBehavior.dispatch(_.kH("upcomingEventReminderStateEntity",k,{key:k,state:A.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.q.attached=function(){this.updateChannelBanner()};
_.q.dataChanged=function(){this.updateChannelBanner()};
_.q.videoReminderStateChanged=function(){var A;this.videoReminderState&&_.L((A=this.data)==null?void 0:A.cta,_.bR)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.q.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var A=_.C3(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);A&&(A.startsWith("//")&&(A="https:"+A),this.hostElement.classList.add("channel-banner"),_.NH(this.hostElement,{"--ytvmh-channel-banner":"url("+A+")"}))}else _.b("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.q.onPlayerReady=function(){this.onIronResize()};
_.q.maybeFlushDebouncer=function(){_.b("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(A){var H;A=(H=A.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0];x1N(A==null?void 0:A.polymerController)})};
_.q.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var A=_.Va(this.hostElement).querySelector("#live-description"),H;A&&((H=this.data)==null?0:H.shortLiveDescription)&&A.clientWidth<A.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
zT.prototype.onIronResize=zT.prototype.onIronResize;zT.prototype.videoReminderStateChanged=zT.prototype.videoReminderStateChanged;zT.prototype.dataChanged=zT.prototype.dataChanged;zT.prototype.onYtToggleButton=zT.prototype.onYtToggleButton;_.E([_.P(_.WU),_.l("design:type",Object)],zT.prototype,"ironResizableBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],zT.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],zT.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zT.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.videoReminderEntityKey"],selector:jzV}),_.l("design:type",Object)],zT.prototype,"videoReminderState",void 0);
_.E([_.C({reflectToAttribute:!0,value:_.b("web_modern_buttons")}),_.l("design:type",Boolean)],zT.prototype,"rounded",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.l("design:type",Boolean)],zT.prototype,"hasLiveDescription",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.l("design:type",Boolean)],zT.prototype,"hasByline",void 0);
_.E([_.C({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.l("design:type",String)],zT.prototype,"adRenderingContextType",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],zT.prototype,"isMasthead",void 0);_.E([_.C({computed:"computeUsesAdButtonViewModel(data)"}),_.l("design:type",Boolean)],zT.prototype,"usesAdButtonViewModel",void 0);_.E([_.$I("yt-formatted-string"),_.l("design:type",Array)],zT.prototype,"formattedStrings",void 0);
_.E([_.ol("#cta-button"),_.l("design:type",HTMLElement)],zT.prototype,"ctaButton",void 0);_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],zT.prototype,"onYtToggleButton",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zT.prototype,"dataChanged",null);
_.E([_.fF("videoReminderState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zT.prototype,"videoReminderStateChanged",null);_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zT.prototype,"onIronResize",null);_.E([_.O6({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],zT);
_.Q(zT,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(aEw!==void 0)return aEw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return aEw=A},{mode:1});var cpN;var q9=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};A.isLocked=!1;return A};
_.I(q9,_.a);_.q=q9.prototype;_.q.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.q.onExpandedChanged=function(){this.expanded&&_.li(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.q.onMouseOver=function(){this.maybeExpand()};
_.q.onTap=function(){this.maybeExpand()};
_.q.onExpandableTileExpanding=function(A){A!==this&&(this.expanded=!1)};
_.q.onExpandableTileLockAndCollapse=function(A){this.isLocked=!0;A!==this&&(this.expanded=!1)};
_.q.onExpandableTileUnlock=function(){this.isLocked=!1};
q9.prototype.onTap=q9.prototype.onTap;q9.prototype.onMouseOver=q9.prototype.onMouseOver;q9.prototype.onExpandedChanged=q9.prototype.onExpandedChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],q9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],q9.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],q9.prototype,"expanded",void 0);_.E([_.s6("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q9.prototype,"onExpandedChanged",null);_.E([_.Ze("mouseover"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q9.prototype,"onMouseOver",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q9.prototype,"onTap",null);
_.E([_.O6({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],q9);
_.Q(q9,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(cpN!==void 0)return cpN;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cpN=A},{mode:1});var psw;var rB=function(){var A=_.a.apply(this,arguments)||this;A.buttonOverrides={style:"overlay"};A.useYtdPlayer=_.b("use_ytd_player_for_desktop_masthead");A.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};A.playbackFinished=!1;A.JSC$16013_playerManager=null;A.JSC$16013_mastheadCounter=new O5N;return A};
_.I(rB,_.a);_.q=rB.prototype;_.q.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"}}}};
_.q.created=function(){this.JSC$16013_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$16013_playerManager=new s7)};
_.q.ready=function(){var A=this;this.JSC$16013_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var H=_.Va(this.hostElement).querySelector("#player");this.useYtdPlayer?H.style.display="none":(this.ytdPlayer.style.display="none",jGj(this.JSC$16013_playerManager,H,function(){A.onPlaybackEnded()}),_.Va(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var k;
((k=A.data)==null?0:k.navigationEndpoint)&&_.Ed(A.hostElement,"yt-navigate",{endpoint:A.data.navigationEndpoint})}))};
_.q.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$16013_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.q.attached=function(){var A=this;_.L0(function(){A.maybePlayVideo()})};
_.q.maybePlayVideo=function(){var A=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$16013_playerManager.playVideo(),this.getPlayerPromise().then(function(){A.JSC$16013_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.q.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16013_playerManager.stopVideo()};
_.q.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var A,H={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((A=this.data.playbackStartMs)!=null?A:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(H);this.setupYtdPlayer()}else Y0A(this.JSC$16013_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(Ig1(this.JSC$16013_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.q.getPlayerPromise=function(){return this.JSC$16013_playerManager.getPlayerPromise()};
_.q.onYtToggleButton=function(A){this.useYtdPlayer?this.toggleMute(A.detail.toggled):A.detail.toggled?this.JSC$16013_playerManager.mute():this.JSC$16013_playerManager.unMute()};
_.q.onYtNavigate=function(A){var H=fAl(A.detail.endpoint),k=wbr(this.data.clickthroughReportingData);H&&k&&(A.detail.endpoint.watchEndpoint?A.detail.tempData=k:_.DZ(H,k,30))};
_.q.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.q.onExpandedChanged=function(){this.expanded?(_.li(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.q.onMouseOver=function(){this.maybeExpand()};
_.q.onTap=function(){this.maybeExpand()};
_.q.onExpandableTileExpanding=function(A){A!==this&&(this.stopVideo(),this.expanded=!1)};
_.q.onExpandableTileLockAndCollapse=function(A){A!==this&&(this.isLocked=!0,this.expanded=!1)};
_.q.onExpandableTileUnlock=function(){this.isLocked=!1};
_.q.lockAndCollapseExpandableTiles=function(){_.Ud(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.q.unlockExpandableTiles=function(){_.Ud(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.q.setupYtdPlayer=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return k.yield(A.ytdPlayer.getPlayerPromise(),2);H=k.yieldResult;H.addEventListener("onStateChange",function(d){A.onPlayerStateChange(d)});
H.addEventListener("onCueRangeExit",function(d){A.onCueRangeExit(d)});
_.EN(k)})};
_.q.onPlayerStateChange=function(A){if(A===1&&(A=this.ytdPlayer.getPlayer())){var H=A.getCurrentTime(),k,d,W=H+((d=(k=this.data)==null?void 0:k.playbackDurationMs)!=null?d:0)/1E3;A.addCueRange("playback",H,W);this.JSC$16013_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.q.onCueRangeExit=function(A){A==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.q.toggleMute=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(H.ytdPlayer.getPlayerPromise(),2);k=d.yieldResult;A?k.mute():k.unMute();_.EN(d)})};
rB.prototype.onTap=rB.prototype.onTap;rB.prototype.onMouseOver=rB.prototype.onMouseOver;rB.prototype.onExpandedChanged=rB.prototype.onExpandedChanged;rB.prototype.onYtNavigate=rB.prototype.onYtNavigate;rB.prototype.onYtToggleButton=rB.prototype.onYtToggleButton;rB.prototype.dataChanged=rB.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],rB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rB.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],rB.prototype,"expanded",void 0);_.E([_.C(),_.l("design:type",Object)],rB.prototype,"buttonOverrides",void 0);
_.E([_.C(),_.l("design:type",Object)],rB.prototype,"useYtdPlayer",void 0);_.E([_.ol("#ytd-player"),_.l("design:type",Object)],rB.prototype,"ytdPlayer",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rB.prototype,"dataChanged",null);_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rB.prototype,"onYtToggleButton",null);
_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rB.prototype,"onYtNavigate",null);_.E([_.s6("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rB.prototype,"onExpandedChanged",null);_.E([_.Ze("mouseover"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rB.prototype,"onMouseOver",null);
_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rB.prototype,"onTap",null);_.E([_.O6({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],rB);
_.Q(rB,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(psw!==void 0)return psw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return psw=A},{mode:1});var Qt0;var uT=function(){return _.a.apply(this,arguments)||this};
_.I(uT,_.a);uT.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uT.prototype.onShow=function(){var A=_.Va(this.hostElement).querySelector("#live-description"),H;A&&((H=this.data)==null?0:H.shortLiveDescription)&&A.clientWidth<A.scrollWidth&&this.hostElement.classList.add("short-live-description")};
uT.prototype.onYtToggleButton=function(A){var H,k=(H=this.data)==null?void 0:H.videoReminderEntityKey;k&&this.ytdReduxBehavior.dispatch(_.kH("upcomingEventReminderStateEntity",k,{key:k,state:A.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
uT.prototype.videoReminderStateChanged=function(){var A;this.videoReminderState&&_.L((A=this.data)==null?void 0:A.cta,_.bR)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
uT.prototype.videoReminderStateChanged=uT.prototype.videoReminderStateChanged;uT.prototype.onYtToggleButton=uT.prototype.onYtToggleButton;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],uT.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uT.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.videoReminderEntityKey"],selector:jzV}),_.l("design:type",Object)],uT.prototype,"videoReminderState",void 0);_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],uT.prototype,"onYtToggleButton",null);_.E([_.fF("videoReminderState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uT.prototype,"videoReminderStateChanged",null);
_.E([_.O6({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],uT);
_.Q(uT,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Qt0!==void 0)return Qt0;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Qt0=A},{mode:2});var V5A;var Bb=function(){var A=_.a.apply(this,arguments)||this;A.useYtdPlayer=_.b("use_ytd_player_for_desktop_masthead");A.buttonOverrides={style:"overlay"};A.JSC$16021_playerManager=null;A.JSC$16021_mastheadCounter=new O5N;A.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return A};
_.I(Bb,_.a);_.q=Bb.prototype;_.q.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"}}}};
_.q.created=function(){this.JSC$16021_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$16021_playerManager=new s7)};
_.q.ready=function(){var A=this;this.JSC$16021_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var H;(H=this.embeddedPlayer)==null||H.remove()}else{var k;(k=this.ytdPlayer)==null||k.remove();jGj(this.JSC$16021_playerManager,this.embeddedPlayer,function(){A.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){A.data&&A.data.navigationEndpoint&&_.Ed(A.hostElement,"yt-navigate",{endpoint:A.data.navigationEndpoint})})}};
_.q.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$16021_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.q.dataChanged=function(){var A=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var H=!this.data.disableAutoPlayback,k,d={autoplay:H,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((k=this.data.playbackStartMs)!=null?k:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(H?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(d);this.setupYtdPlayer()}else Y0A(this.JSC$16021_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(Ig1(this.JSC$16021_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$16021_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Ud(A.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");A.JSC$16021_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.q.getPlayerPromise=function(){return this.JSC$16021_playerManager.getPlayerPromise()};
_.q.onYtToggleButton=function(A){this.useYtdPlayer?this.toggleMute(A.detail.toggled):A.detail.toggled?this.JSC$16021_playerManager.mute():this.JSC$16021_playerManager.unMute()};
_.q.onYtNavigate=function(A){var H=fAl(A.detail.endpoint),k=wbr(this.data.clickthroughReportingData);H&&k&&(A.detail.endpoint.watchEndpoint?A.detail.tempData=k:_.DZ(H,k,30))};
_.q.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16021_playerManager.stopVideo()};
_.q.setupYtdPlayer=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return k.yield(A.ytdPlayer.getPlayerPromise(),2);H=k.yieldResult;H.addEventListener("onStateChange",function(d){A.onPlayerStateChange(d)});
H.addEventListener("onCueRangeExit",function(d){A.onCueRangeExit(d)});
_.EN(k)})};
_.q.onPlayerStateChange=function(A){if(A===1&&(A=this.ytdPlayer.getPlayer())){var H=A.getCurrentTime(),k,d,W=H+((d=(k=this.data)==null?void 0:k.playbackDurationMs)!=null?d:0)/1E3;A.addCueRange("playback",H,W);_.Ud(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$16021_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.q.onCueRangeExit=function(A){A==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.q.toggleMute=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(H.ytdPlayer.getPlayerPromise(),2);k=d.yieldResult;A?k.mute():k.unMute();_.EN(d)})};
_.nP.Object.defineProperties(Bb.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A,H;if(!((A=this.data)==null?0:(H=A.accessibilityData)==null?0:H.label))return"Ad primary link";var k,d;return _.$r("AD_TITLE",{title:(k=this.data)==null?void 0:(d=k.accessibilityData)==null?void 0:d.label})}}});
Bb.prototype.onYtMastheadHidden=Bb.prototype.onYtMastheadHidden;Bb.prototype.onYtNavigate=Bb.prototype.onYtNavigate;Bb.prototype.onYtToggleButton=Bb.prototype.onYtToggleButton;Bb.prototype.dataChanged=Bb.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Bb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Bb.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Bb.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Bb.prototype,"useYtdPlayer",void 0);_.E([_.ol("ytd-toggle-button-renderer"),_.l("design:type",Object)],Bb.prototype,"muteButton",void 0);_.E([_.C(),_.l("design:type",Object)],Bb.prototype,"buttonOverrides",void 0);
_.E([_.G("data.accessibilityData.label"),_.l("design:type",String),_.l("design:paramtypes",[])],Bb.prototype,"titleAriaLabel",null);_.E([_.ol("#replay-button"),_.l("design:type",Object)],Bb.prototype,"replayButton",void 0);_.E([_.ol("#player-container"),_.l("design:type",Object)],Bb.prototype,"playerContainer",void 0);_.E([_.ol("#player"),_.l("design:type",Object)],Bb.prototype,"embeddedPlayer",void 0);_.E([_.ol("#ytd-player"),_.l("design:type",Object)],Bb.prototype,"ytdPlayer",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bb.prototype,"dataChanged",null);_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Bb.prototype,"onYtToggleButton",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Bb.prototype,"onYtNavigate",null);
_.E([_.Ze("yt-masthead-hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bb.prototype,"onYtMastheadHidden",null);_.E([_.O6({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Bb);
_.Q(Bb,"ytd-video-masthead-ad-primary-video-renderer",function(){if(V5A!==void 0)return V5A;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return V5A=A},{mode:2});var EPp;var ee=function(){var A=_.a.apply(this,arguments)||this;A.collapsed=!1;A.impressionResolver=_.YE();A.JSC$16025_activeViewMeasurementDataResolver=_.YE();A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.I(ee,_.a);_.q=ee.prototype;_.q.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"}}}};
_.q.created=function(){this.activeView=new Ul(this.hostElement)};
_.q.ready=function(){var A=this;_.Va(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){A.expandAd()});
this.hostElement.addEventListener("yt-action",function(H){if(H.detail.actionName==="yt-service-request"){var k=H.detail.args[1];k.videoMastheadAdMuteCommand&&(A.collapseAd(k.videoMastheadAdMuteCommand.encryptedMastheadId),H.stopPropagation())}})};
_.q.attached=function(){var A=this;_.L0(function(){A.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(H){if(!A.collapsed){H=_.r(H);for(var k=H.next();!k.done;k=H.next())k=k.value,p5(k.baseUrl,k.attributionSrcMode);A.data.impressionCommand=void 0}});
this.JSC$16025_activeViewMeasurementDataResolver.promise.then(function(H){lu(A.activeView,H)});
_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tB(A.activeView)})};
_.q.dataChanged=function(){var A;((A=this.data.impressionCommand)==null?0:A.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var H;((H=this.data)==null?0:H.activeView)&&this.JSC$16025_activeViewMeasurementDataResolver.resolve(this.data.activeView);(A=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(A.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.q.computeWidescreen=function(A){var H;return!!(A&&((H=_.L(A,Hiw))==null?0:H.isWidescreen))};
_.q.computeExpandable=function(A){return!!(A&&A.length>0)};
_.q.onIronResize=function(){if(this.expandable){var A=_.Va(this.hostElement).querySelector("#expandable-tile-container :first-child");A&&!A.expanded&&(A.expanded=!0)}};
_.q.handleMuteAd=function(){this.collapseAd(null)};
_.q.restoreCollapsedState=function(A){this.collapsed=_.sH().get("HIDDEN_MASTHEAD_ID")===A};
_.q.collapseAd=function(A){if(A){var H=_.sH();H.set("HIDDEN_MASTHEAD_ID",A);H.save()}(A=_.Va(this.hostElement).querySelector("#video"))&&_.Ed(A,"yt-masthead-hidden");this.collapsed=!0};
_.q.expandAd=function(){var A=_.sH();A.set("HIDDEN_MASTHEAD_ID",!1);A.save();location.reload()};
_.q.detached=function(){_.b("stop_av_measurement_on_detach")&&tB(this.activeView)};
ee.prototype.onIronResize=ee.prototype.onIronResize;ee.prototype.dataChanged=ee.prototype.dataChanged;_.E([_.P(_.WU),_.l("design:type",Object)],ee.prototype,"ironResizableBehavior",void 0);_.E([_.P(_.bu),_.l("design:type",Object)],ee.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],ee.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ee.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.l("design:type",Boolean)],ee.prototype,"widescreen",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.l("design:type",Boolean)],ee.prototype,"expandable",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ee.prototype,"collapsed",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ee.prototype,"dataChanged",null);_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ee.prototype,"onIronResize",null);_.E([_.O6({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],ee);
_.Q(ee,"ytd-video-masthead-ad-v3-renderer",function(){if(EPp!==void 0)return EPp;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return EPp=A},{mode:2});var xF=function(){return _.a.apply(this,arguments)||this};
_.I(xF,_.a);_.q=xF.prototype;_.q.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.q.ready=function(){var A=this;yil(function(){A.isAttached&&Dv(A.JSC$16030_storedAdSlotMetadata,A.JSC$16030_storedAdLayoutMetadata,A.adSlotMetadata,A.adLayoutMetadata)&&dB(sb(),A.JSC$16030_storedAdSlotMetadata,A.JSC$16030_storedAdLayoutMetadata)})};
_.q.attached=function(){Dv(this.JSC$16030_storedAdSlotMetadata,this.JSC$16030_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&bQQ(sb(),this.JSC$16030_storedAdSlotMetadata,this.JSC$16030_storedAdLayoutMetadata)};
_.q.detached=function(){Dv(this.JSC$16030_storedAdSlotMetadata,this.JSC$16030_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dB(sb(),this.JSC$16030_storedAdSlotMetadata,this.JSC$16030_storedAdLayoutMetadata)};
_.q.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16030_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16030_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16030_storedAdLayoutMetadata!==void 0&&this.JSC$16030_storedAdSlotMetadata!==void 0&&dB(sb(),this.JSC$16030_storedAdSlotMetadata,this.JSC$16030_storedAdLayoutMetadata),bQQ(sb(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16030_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16030_storedAdSlotMetadata=this.adSlotMetadata)};
_.nP.Object.defineProperties(xF.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.adLayoutMetadata}}});
xF.prototype.onAdMetadataChanged=xF.prototype.onAdMetadataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],xF.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xF.prototype,"data",void 0);_.E([_.G("data.adLayoutMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],xF.prototype,"adLayoutMetadata",null);
_.E([_.C(),_.l("design:type",Object)],xF.prototype,"adSlotMetadata",void 0);_.E([_.fF("adLayoutMetadata","adSlotMetadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xF.prototype,"onAdMetadataChanged",null);_.E([_.O6({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],xF);
_.Q(xF,"ytd-page-top-ad-layout-renderer",function(){if(Kii!==void 0)return Kii;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Kii=
A},{mode:2});var UWA;var iT=function(){var A=_.a.apply(this,arguments)||this;A.noBottomMargin=!1;A.overlayDensity=0;A.typographyBump=!1;A.extractOverlay=!1;A.extractActionBar=!1;return A};
_.I(iT,_.a);_.q=iT.prototype;
_.q.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]]"}}}}}};
_.q.ready=function(){var A=this;yil(function(){A.isAttached&&A.adSlotMetadata&&gPJ(sb(),A.adSlotMetadata)})};
_.q.attached=function(){if(this.adSlotMetadata){var A;if(this.adSlotMetadata===((A=this.data)==null?void 0:A.adSlotMetadata))JpA(sb(),this.adSlotMetadata);else{var H;_.Pq(Error("Ph`"+this.adSlotMetadata+"`"+((H=this.data)==null?void 0:H.adSlotMetadata)))}}};
_.q.detached=function(){this.adSlotMetadata&&gPJ(sb(),this.adSlotMetadata)};
_.q.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.q.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&gPJ(sb(),this.adSlotMetadata),JpA(sb(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.nP.Object.defineProperties(iT.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var A,H,k=_.L((A=this.data)==null?void 0:(H=A.fulfillmentContent)==null?void 0:H.fulfilledLayout,_.ktA),d;return(A=(d=_.L(k==null?void 0:k.renderingContent,snp))==null?void 0:d.layout)?A.toLowerCase().replace(/_/g,"-"):""}}});
iT.prototype.onAdSlotMetadataChanged=iT.prototype.onAdSlotMetadataChanged;iT.prototype.onTypographyBumpChanged=iT.prototype.onTypographyBumpChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],iT.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],iT.prototype,"rendererBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],iT.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],iT.prototype,"noBottomMargin",void 0);_.E([_.C(),_.l("design:type",Object)],iT.prototype,"overlayDensity",void 0);_.E([_.C(),_.l("design:type",Object)],iT.prototype,"typographyBump",void 0);_.E([_.C(),_.l("design:type",Object)],iT.prototype,"extractOverlay",void 0);_.E([_.C(),_.l("design:type",Object)],iT.prototype,"extractActionBar",void 0);
_.E([_.ol("ytd-in-feed-ad-layout-renderer"),_.l("design:type",HTMLElement)],iT.prototype,"inFeedAdLayoutRenderer",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],iT.prototype,"layout",null);_.E([_.fF("typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iT.prototype,"onTypographyBumpChanged",null);
_.E([_.fF("data.adSlotMetadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iT.prototype,"onAdSlotMetadataChanged",null);_.E([_.O6({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],iT);
_.Q(iT,"ytd-ad-slot-renderer",function(){if(UWA!==void 0)return UWA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return UWA=A},{mode:2});var lE0;var hl=function(){return _.a.apply(this,arguments)||this};
_.I(hl,_.a);_.q=hl.prototype;_.q.created=function(){this.activeView=new Ul(this.hostElement)};
_.q.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"}}}};
_.q.maybeComputeHref=function(){return null};
_.q.onTap=function(){};
_.q.onThumbnailContainerClick=function(A){this.onClick(A)};
_.q.onClick=function(A){var H,k=(H=this.data)==null?void 0:H.navigationEndpoint;k&&_.L(k,_.Yr)&&(this.ytSparklesClickLocationBehavior.handleClick(k,A,!1),A.stopPropagation())};
_.q.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var A=_.r(this.data.impressionUrls),H=A.next();!H.done;H=A.next())H=H.value,b3m(H,v5v(H));this.data.activeView&&lu(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",hl.JSC$16038_DEFAULT_CLICK_LOCATION_BEHAVIOR,hl.JSC$16038_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"))}};
_.q.attached=function(){var A=this;_.b("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tB(A.activeView)})};
_.q.detached=function(){_.b("stop_av_measurement_on_detach")&&tB(this.activeView)};
_.nP.Object.defineProperties(hl.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
hl.prototype.dataChanged=hl.prototype.dataChanged;hl.prototype.onTap=hl.prototype.onTap;hl.JSC$16038_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
hl.JSC$16038_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"}];_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hl.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],hl.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],hl.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],hl.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.C({selector:_.Ot}),_.l("design:type",Object)],hl.prototype,"isGridViewEnabled",void 0);_.E([_.G("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],hl.prototype,"watchFeedBigThumbs",null);_.E([_.G("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],hl.prototype,"thumbnailWidth",null);_.E([_.C(),_.l("design:type",Object)],hl.prototype,"data",void 0);
_.E([_.ol("ytd-thumbnail"),_.l("design:type",HTMLElement)],hl.prototype,"thumbnail",void 0);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hl.prototype,"onTap",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hl.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],hl);
_.Q(hl,"ytd-compact-promoted-video-renderer",function(){if(lE0!==void 0)return lE0;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return lE0=A},{mode:1});var t5Q;_.uL("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Ob=function(){return _.a.apply(this,arguments)||this};
_.I(Ob,_.a);Ob.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ob.prototype,"data",void 0);_.E([_.O6({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Ob);
_.Q(Ob,"ytd-search-pyv-renderer",function(){if(t5Q!==void 0)return t5Q;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return t5Q=A},{mode:1});var N8j;_.uL("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var RB=function(){var A=_.a.apply(this,arguments)||this;A.roundedContainer=!0;A.JSC$16046_handleOpenPostCommentDialogActionAfterStamp=!1;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.I(RB,_.a);_.q=RB.prototype;
_.q.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}}};
_.q.onStampFinished=function(){this.JSC$16046_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.q.handleSignalActionOpenPostCommentDialogAction=function(){var A=_.Va(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");A?A.openDialog():this.JSC$16046_handleOpenPostCommentDialogActionAfterStamp=!0};
_.q.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.q.computeHideBorder=function(){return this.isInEngagementPanel};
_.q.computeIsCompact=function(){return this.isInEngagementPanel};
_.q.computeUsesCompactLockup=function(A){return A==="BACKSTAGE_SURFACE_TYPE_HOME"||A==="BACKSTAGE_SURFACE_TYPE_SEARCH"||A==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||A==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||A==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||A==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.q.computeUsesFullLockup=function(){var A,H=(A=this.data)==null?void 0:A.post,k;A=(k=_.L(H,Rvj))==null?void 0:k.surface;var d;k=(d=_.L(H,J$A))==null?void 0:d.originalPost;var W;if(d=A||((W=_.L(k,Rvj))==null?void 0:W.surface))return!this.computeUsesCompactLockup(d)&&this.useUpdatedRepostUi;var z;return((z=_.L(H,J$A))==null?void 0:z.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.nP.Object.defineProperties(RB.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var A,H;return((H=_.L((A=this.data)==null?void 0:A.post,Rvj))==null?void 0:H.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.useUpdatedRepostUi}}});
RB.prototype.onYtCommentModerationPanelEmpty=RB.prototype.onYtCommentModerationPanelEmpty;RB.prototype.onStampFinished=RB.prototype.onStampFinished;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],RB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],RB.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],RB.prototype,"roundedContainer",void 0);_.E([_.C({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.l("design:type",Boolean)],RB.prototype,"hideBorder",void 0);_.E([_.C({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.l("design:type",Boolean)],RB.prototype,"isCompact",void 0);
_.E([_.C({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.l("design:type",Boolean)],RB.prototype,"usesFullLockup",void 0);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RB.prototype,"onStampFinished",null);
_.E([_.Ze("ytd-comment-moderation-panel-empty"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],RB.prototype,"onYtCommentModerationPanelEmpty",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],RB.prototype,"isInEngagementPanel",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],RB.prototype,"useUpdatedRepostUi",null);
_.E([_.O6({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],RB);
_.Q(RB,"ytd-backstage-post-thread-renderer",function(){if(N8j!==void 0)return N8j;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return N8j=A},{mode:1});var M5Q;var TT=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(TT,_.a);TT.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
TT.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var A=this.data.thumbnail.thumbnails;this.isDarkTheme&&(A=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(A=_.C3(A,24,void 0,"height"))?A:void 0}};
TT.prototype.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
TT.prototype.computeHasText=function(){var A;return!((A=this.data)==null||!A.text)};
_.nP.Object.defineProperties(TT.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.fx(this.bannerImageUrl))+'");'}}});
TT.prototype.computeHasText=TT.prototype.computeHasText;TT.prototype.computeBannerImageUrl=TT.prototype.computeBannerImageUrl;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],TT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],TT.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],TT.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],TT.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",String)],TT.prototype,"bannerImageUrl",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.l("design:type",Boolean)],TT.prototype,"hasText",void 0);_.E([_.fF("data","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],TT.prototype,"computeBannerImageUrl",null);
_.E([_.fF("data.text"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],TT.prototype,"computeHasText",null);_.E([_.G("bannerImageUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],TT.prototype,"bannerStyle",null);_.E([_.O6({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],TT);
_.Q(TT,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(M5Q!==void 0)return M5Q;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return M5Q=A},{mode:1});var nPA;var me=function(){return _.a.apply(this,arguments)||this};
_.I(me,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],me.prototype,"data",void 0);_.E([_.O6({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],me);
_.Q(me,"ytd-backstage-zero-state-renderer",function(){if(nPA!==void 0)return nPA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return nPA=A},{mode:1});var ZQN;var Jl=function(){return _.a.apply(this,arguments)||this};
_.I(Jl,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Jl.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Jl.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],Jl.prototype,"icon",void 0);_.E([_.O6({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Jl);
_.Q(Jl,"ytd-post-filter-zero-state-renderer",function(){if(ZQN!==void 0)return ZQN;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return ZQN=A},{mode:1});var fEG;var wsk={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},gB=function(){return _.a.apply(this,arguments)||this};
_.I(gB,_.a);gB.prototype.configureRendererStamper=function(){return wsk};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gB.prototype,"rendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gB.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],gB.prototype,"icon",void 0);_.E([_.O6({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],gB);
_.Q(gB,"ytd-post-scheduling-zero-state-renderer",function(){if(fEG!==void 0)return fEG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return fEG=A},{mode:1});var oPi;var IB=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return A};
_.I(IB,_.a);IB.prototype.onTabsActivate=function(A){this.data&&this.data.tabs&&_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[A.detail.selected].navigationEndpoint})};
IB.prototype.shouldShowTotalCount=function(A){return A&&A.totalCount!==void 0};
IB.prototype.handleUpdatePostsTotalCountAction=function(A){var H=this.get(["data.tabs",1,"totalCount"]),k=this.get("updatePostsTotalCountAction.updateType",A);A=this.get("updatePostsTotalCountAction.number",A);H!==void 0&&k!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&A&&(k==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(H)+A):k==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(H)-A))};
_.nP.Object.defineProperties(IB.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var A=0,H=this.data.tabs.length;A<H;A++)if(this.data.tabs[A].selected)return A;return 0}}});
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],IB.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],IB.prototype,"rendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],IB.prototype,"data",void 0);_.E([_.G("data.tabs"),_.l("design:type",Number),_.l("design:paramtypes",[])],IB.prototype,"selected",null);_.E([_.O6({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],IB);
_.Q(IB,"ytd-post-stream-filter-renderer",function(){if(oPi!==void 0)return oPi;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return oPi=A},{mode:1});var $W1;var YF=function(){return _.a.apply(this,arguments)||this};
_.I(YF,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],YF.prototype,"kevlarBehaviors",void 0);_.E([_.C(),_.l("design:type",Object)],YF.prototype,"data",void 0);_.E([_.O6({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],YF);
_.Q(YF,"ytd-channel-age-gate-renderer",function(){if($W1!==void 0)return $W1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return $W1=A},{mode:1});var Atw;_.uL("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Pb=function(){var A=_.a.apply(this,arguments)||this;A.data=null;return A};
_.I(Pb,_.a);Pb.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.nP.Object.defineProperties(Pb.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.data)==null?0:(H=A.title)==null?0:(k=H.runs)==null?0:k.length)?147:160}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Pb.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],Pb.prototype,"imageSizePx",null);_.E([_.O6({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Pb);
_.Q(Pb,"ytd-channel-owner-empty-state-renderer",function(){if(Atw!==void 0)return Atw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Atw=A},{mode:1});var HaJ;var smJ;var GT=function(){var A=_.a.apply(this,arguments)||this;A.boundSubmitSearch=function(){A.submitSearch()};
A.boundClearSearch=function(){A.clearSearch()};
return A};
_.I(GT,_.a);_.q=GT.prototype;_.q.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]]"}}}}}};
_.q.toggleClearButton=function(){this.hideClearButton=RM0||!this.input.value};
_.q.submitOnEnterKeyUp=function(A){A.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.q.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.q.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.q.submit=function(){_.Ed(this.hostElement,"search-query-changed",this.input.value)};
GT.prototype.toggleClearButton=GT.prototype.toggleClearButton;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],GT.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],GT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],GT.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],GT.prototype,"hideClearButton",void 0);_.E([_.C(),_.l("design:type",Object)],GT.prototype,"boundSubmitSearch",void 0);_.E([_.C(),_.l("design:type",Object)],GT.prototype,"boundClearSearch",void 0);_.E([_.ol("#input"),_.l("design:type",Object)],GT.prototype,"input",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GT.prototype,"toggleClearButton",null);
_.E([_.O6({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],GT);
_.Q(GT,"ytd-channel-switcher-search-box-renderer",function(){if(smJ!==void 0)return smJ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return smJ=A},{mode:1});var kzk;var Fy=function(){var A=_.a.apply(this,arguments)||this;A.boundSubmit=function(){A.submit()};
return A};
_.I(Fy,_.a);_.q=Fy.prototype;_.q.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"}}}}};
_.q.ready=function(){var A=this;this.form.addEventListener("submit",function(H){return A.onSubmit(H)})};
_.q.onSubmit=function(A){A.preventDefault();return!1};
_.q.toggleClearButton=function(){this.hideClearButton=RM0||!this.input.value};
_.q.submitOnEnterKeyUp=function(A){A.keyCode===13&&this.submit()};
_.q.submit=function(){var A=this.data.endpoint,H=(0,_.iK.unsafeClone)(A);_.L(H,_.fm)?_.L(H,_.fm).query=this.input.value:_.L(H,_.wl)&&(_.L(H,_.wl).query=this.input.value);var k=_.L(H.commandMetadata,_.wn);(k==null?0:k.url)?(k.url=_.kg(k.url,"query",this.input.value),_.Ed(this.hostElement,"yt-navigate",{endpoint:H})):_.L(H,ZnQ)?(_.L(H,ZnQ).channelSwitcherQuery=this.input.value,_.wj().resolve(_.J7).resolveCommand(H,{form:{element:this.hostElement}})):(A=Error("Qh`"+JSON.stringify(A)),_.I3(A))};
_.q.getUrl=function(A){return this.get("commandMetadata.webCommandMetadata.url",A)};
Fy.prototype.toggleClearButton=Fy.prototype.toggleClearButton;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Fy.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fy.prototype,"hideClearButton",void 0);
_.E([_.C(),_.l("design:type",Object)],Fy.prototype,"boundSubmit",void 0);_.E([_.ol("#form"),_.l("design:type",HTMLFormElement)],Fy.prototype,"form",void 0);_.E([_.ol("#input"),_.l("design:type",Object)],Fy.prototype,"input",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fy.prototype,"toggleClearButton",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Fy);
_.Q(Fy,"ytd-search-box-renderer",function(){if(kzk!==void 0)return kzk;var A=document.createElement("template");_.Y(A,'\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  </tp-yt-paper-input>\n  <div id="search-button" class="style-scope ytd-search-box-renderer"></div>\n  <div id="clear-button" class="style-scope ytd-search-box-renderer"></div>\n</form>\n');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return kzk=A},{mode:2});var Xy=function(){var A=_.a.apply(this,arguments)||this;A.showSearchBox=!0;return A};
_.I(Xy,_.a);Xy.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Xy.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Xy.prototype,"showSearchBox",void 0);_.E([_.O6({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Xy);
_.Q(Xy,"ytd-channel-switcher-header-renderer",function(){if(HaJ!==void 0)return HaJ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return HaJ=A},{mode:1});var dqN;var Ww1;var DA=function(){var A=_.a.apply(this,arguments)||this;A.isDisplayed=!0;return A};
_.I(DA,_.a);_.q=DA.prototype;_.q.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.dataChanged=function(){this.isDisplayed=!0};
_.q.computeType=function(A){return A||"UNKNOWN"};
_.q.onYtServiceRequestCompleted=function(A){A.stopPropagation();this.isDisplayed=!1};
_.q.onClose=function(){this.isDisplayed=!1};
DA.prototype.onYtServiceRequestCompleted=DA.prototype.onYtServiceRequestCompleted;DA.prototype.dataChanged=DA.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],DA.prototype,"data",void 0);
_.E([_.C({computed:"computeType(data.type)",reflectToAttribute:!0}),_.l("design:type",String)],DA.prototype,"type",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],DA.prototype,"isDisplayed",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],DA.prototype,"dataChanged",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],DA.prototype,"onYtServiceRequestCompleted",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],DA);
_.Q(DA,"ytd-alert-with-button-renderer",function(){if(Ww1!==void 0)return Ww1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Ww1=A},{mode:1});var Se=function(){var A=_.a.apply(this,arguments)||this;A.noResult=!1;A.enableAlertBanner=!1;A.dismissedAlertBanner=!1;A.hideCreateChannelButton=!1;A.boundDismissAlertBanner=function(){A.dismissAlertBanner()};
A.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return A};
_.I(Se,_.a);_.q=Se.prototype;_.q.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.q.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.q.updateChannelSwitcherAction=function(A){var H;A=(H=_.L(A,n2w))==null?void 0:H.page;_.L(A,MVA)!==void 0&&(this.data=_.L(A,MVA))};
_.q.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]]"}}}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.q.searchQueryChanged=function(A,H){if(this.data&&this.data.contents&&this.data.contents.length){A=[];var k=[];this.hideCreateChannelButton=this.noResult=!1;for(var d=document.querySelectorAll("ytd-account-item-renderer"),W=_.r(d),z=W.next();!z.done;z=W.next())z=z.value,k.push(z),z.style.display="block";this.resetRightBorder(k);if(H){this.hideCreateChannelButton=!0;for(k=1;k<this.data.contents.length;k++)if(z=this.data.contents[k],_.L(z,Ntw)){var u=void 0,B=void 0;W=(u=_.L(z,Ntw))==null?void 0:(B=
u.accountName)==null?void 0:B.simpleText;B=u=void 0;z=(u=_.L(z,Ntw))==null?void 0:(B=u.channelHandle)==null?void 0:B.simpleText;(u=d[k-1])&&W&&_.OC(W,H)?A.push(u):_.b("enable_handle_search_on_channel_switcher")&&u&&z&&_.OC(z.toString(),H.toString())?A.push(u):u.style.display="none"}A.length===0&&(this.noResult=!0);this.resetRightBorder(A)}}};
_.q.resetRightBorder=function(A){for(var H=0;H<A.length;H++)A[H].style.borderRight=!this.hideCreateChannelButton&&(H+2)%3===0||this.hideCreateChannelButton&&(H+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.q.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.q.setShowSearchBox=function(A){if(A&&A.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var H=0;H<A.contents.length;H++)_.L(A.contents[H],_.pw)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.q.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.nP.Object.defineProperties(Se.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.contents)}}});
Se.prototype.onContinuationItemsUpdated=Se.prototype.onContinuationItemsUpdated;Se.prototype.searchQueryChanged=Se.prototype.searchQueryChanged;Se.prototype.onDataChanged=Se.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Se.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.DV),_.l("design:type",Object)],Se.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Se.prototype,"data",void 0);_.E([_.ol("ytd-channel-switcher-header-renderer"),_.l("design:type",Object)],Se.prototype,"channelSwitcherHeaderRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],Se.prototype,"noResult",void 0);
_.E([_.C(),_.l("design:type",Object)],Se.prototype,"enableAlertBanner",void 0);_.E([_.C(),_.l("design:type",Object)],Se.prototype,"dismissedAlertBanner",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Se.prototype,"hideCreateChannelButton",void 0);_.E([_.G("data.contents"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Se.prototype,"isLoading",null);_.E([_.C(),_.l("design:type",Object)],Se.prototype,"boundDismissAlertBanner",void 0);
_.E([_.C({computed:"computeButtonOverride()"}),_.l("design:type",Object)],Se.prototype,"buttonOverride",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Se.prototype,"onDataChanged",null);_.E([_.Ze("search-query-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,String]),_.l("design:returntype")],Se.prototype,"searchQueryChanged",null);
_.E([_.Ze("yt-next-continuation-data-updated"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Se.prototype,"onContinuationItemsUpdated",null);_.E([_.O6({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Se);
_.Q(Se,"ytd-channel-switcher-page-renderer",function(){if(dqN!==void 0)return dqN;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return dqN=A},{mode:1});var zqw;var qyi;var CE=function(){var A=_.a.apply(this,arguments)||this;A.images=[];A.selectedImageIndex=0;return A};
_.I(CE,_.a);_.q=CE.prototype;
_.q.ready=function(){_.Y3(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Y3(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Y3(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Y3(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.q.onThumbnailClick=function(A){if(A=A.event_.detail)this.selectedImageIndex=this.images.indexOf(A)};
_.q.updateImageThumbnails=function(A){A=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:A.event_.detail});this.images.splice(this.selectedImageIndex,1,A);this.images=[].concat(_.fV(this.images))};
_.q.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Ed(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.q.saveImageRepositions=function(){this.selectedImageIndex=0;_.Ed(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.nP.Object.defineProperties(CE.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var A=this;return(this.images||[]).map(function(H,k){return{image:H,selected:k===A.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.ol("ytd-backstage-image-preview-renderer"),_.l("design:type",Object)],CE.prototype,"imagePreviewContainer",void 0);_.E([_.ol(".thumbnail-images-container"),_.l("design:type",HTMLElement)],CE.prototype,"thumbnailImagesContainer",void 0);_.E([_.C(),_.l("design:type",Array)],CE.prototype,"images",void 0);
_.E([_.C(),_.l("design:type",Object)],CE.prototype,"repositionInstructions",void 0);_.E([_.C(),_.l("design:type",Object)],CE.prototype,"selectedImageIndex",void 0);_.E([_.G("images","selectedImageIndex"),_.l("design:type",Array),_.l("design:paramtypes",[])],CE.prototype,"thumbnailRendererDatas",null);_.E([_.G("images","selectedImageIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],CE.prototype,"selectedImageData",null);
_.E([_.O6({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],CE);
_.Vu()(CE,"ytd-backstage-multi-image-reposition-renderer",function(){if(qyi===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);qyi=A}A=qyi;return A},{allowedProps:["images",
"repositionInstructions"],mode:1});var KE=function(A,H){_.Is.call(this);this.uploadUrl=A;this.channelId=H;this.imagesUploadData=[]};
_.I(KE,_.Is);KE.prototype.getAllUploadStatuses=function(){var A=this,H,k,d;return _.e(function(W){if(W.nextAddress==1)return W.yield(rtA(A),2);H=W.yieldResult;k=H.get("succeed");d=H.get("failed");return W.return(k.concat(d))})};
var BJN=function(A){var H,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(rtA(A),2);H=d.yieldResult;k=H.get("failed");k.length>0&&uN0(A,k);return d.return(A.getAllUploadStatuses())})},rtA=function(A){var H,k,d,W,z,u,B;
return _.e(function(h){if(h.nextAddress==1)return H=new Map,h.yield(Promise.allSettled(A.imagesUploadData.map(function(O){return O.uploadPromise})),2);
k=h.yieldResult;d=[];W=_.r(k);for(z=W.next();!z.done;z=W.next())u=z.value,u.status==="fulfilled"&&d.push(u.value);B=A.imagesUploadData.map(function(O){return O.image}).filter(function(O){return d.every(function(T){return T.id!==O.id})});
H.set("succeed",d);H.set("failed",B);return h.return(H)})},uN0=function(A,H){H=_.r(H);
for(var k=H.next();!k.done;k=H.next()){var d=A;k=k.value;eq1(d,k.id)>=0&&d.cancel(k.id);var W=new xqk(k),z=_.CHA(d.uploadUrl,{"X-YouTube-ChannelId":d.channelId},k.imageBlob);W.transfer=z;W.uploadPromise=iaw(z,k);d.imagesUploadData.push(W);z.run()}};
KE.prototype.cancel=function(A){var H=eq1(this,A);H!==-1&&((H=this.imagesUploadData[H].transfer)&&H.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(k){return k.image.id!==A}))};
var eq1=function(A,H){return A.imagesUploadData.findIndex(function(k){return k.image.id===H})},iaw=function(A,H){return new Promise(function(k,d){A.listen("l",function(){var W=A.getResponseText();
W?(W=JSON.parse(W).encryptedBlobId,H.encryptedBlobId=W,k(H)):d("upload failed")});
A.listen("n",function(){d("upload failed")})})},xqk=function(A){this.image=A};var izr=function(A,H,k,d,W){this.id=A;this.imageBlob=H;this.localImageSrc=k;this.naturalWidth=d;this.naturalHeight=W;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 hqA=[".jpeg",".jpg",".png"],aB=function(){var A=_.a.apply(this,arguments)||this;A.showImagesPreview=!1;A.pollOptions=[];A.errorMessage="";A.optionPlaceholderText="";A.optionDefaultText="";A.JSC$16102_imageId=0;A.maxFileSizeMb=0;A.maxAspectRatio=0;A.invalidFileSizeError="";A.invalidAspectRatioError="";A.invalidFileTypeError="";A.imageSelector=new tq(null,"single_file",hqA);return A};
_.I(aB,_.a);_.q=aB.prototype;_.q.ready=function(){_.Y3(this.imageSelector,"j",this.onImageSelect,!1,this);_.Y3(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Y3(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.q.dataChanged=function(){var A,H,k=_.L((A=this.data)==null?void 0:(H=A.cellTemplate)==null?void 0:H.onEmptyCellTap,GB0);if(k&&k.uploadUrl&&k.channelId){var d;this.maxFileSizeMb=((d=k.imageValidationInfo)==null?void 0:d.maxFileSizeMb)||0;var W;this.maxAspectRatio=((W=k.imageValidationInfo)==null?void 0:W.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 B;this.invalidFileTypeError=this.getSimpleString((B=this.data)==null?void 0:B.invalidFileTypeError);this.uploadManager=new KE(k.uploadUrl,k.channelId)}};
_.q.onEditorInfoChange=function(){this.optionPlaceholderText=_.PK(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.PK(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.q.observeAddImageError=function(){this.errorMessage!==""&&_.Ed(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.q.onPollOptionsChange=function(){for(var A=!1,H=[],k=0;k<this.pollOptions.length;k++){var d=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(k+1);this.pollOptions[k].placeholderText!==d?(A=!0,H.push(Object.assign({},this.pollOptions[k],{placeholderText:d}))):H.push(this.pollOptions[k])}A&&(this.pollOptions=H);this.isValid()?_.Ed(this.hostElement,"yt-commentbox-post-enable"):_.Ed(this.hostElement,"yt-commentbox-post-disable")};
_.q.createPollOptions=function(A){var H=[],k;A=(k=A==null?void 0:A.minPollOptions)!=null?k:0;for(k=0;k<A;k++)H.push(this.createPollOption());return H};
_.q.onImageSelect=function(A){var H=this,k,d,W,z,u,B;return _.e(function(h){if(h.nextAddress==1){if(H.selectedImageIndex===void 0)return h.jumpTo(0);k=A.files[0];H.errorMessage="";d=H.validateImage(k);if(d!=="")return H.errorMessage=d,h.return();W=new XP(H.maxAspectRatio,!1,!0);return h.yield(W.transform(k),3)}if(h.nextAddress!=4)return z=h.yieldResult,z.transformedData?z.invalidAspectRatio?(H.errorMessage=H.invalidAspectRatioError,h.return()):h.yield(hlA(H.JSC$16102_imageId,A.files[0],z.transformedData),
4):(H.errorMessage=H.invalidFileTypeError,h.return());u=h.yieldResult;H.JSC$16102_imageId++;uN0(H.uploadManager,[u]);B=Object.assign({},H.pollOptions[H.selectedImageIndex],{image:u});H.pollOptions.splice(H.selectedImageIndex,1,B);H.refreshPollOptions();_.Ed(H.hostElement,"yt-backstage-poll-image-select");_.EN(h)})};
_.q.validateImage=function(A){return A.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.q.refreshPollOptions=function(){this.pollOptions=[].concat(_.fV(this.pollOptions))};
_.q.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.fV(this.pollOptions),[this.createPollOption()]))};
_.q.onRemovePollOption=function(A){var H=this.pollOptions[A.model.index];H&&H.image&&this.uploadManager.cancel(H.image.id);this.pollOptions.splice(A.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Ed(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.q.onTextInput=function(){this.refreshPollOptions()};
_.q.onImageButtonClick=function(A){this.selectedImageIndex=A.model.index;this.imageSelector.click()};
_.q.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.q.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.q.saveImageRepositions=function(A){A=A.event_.detail;for(var H=0,k=[],d=_.r(this.pollOptions),W=d.next();!W.done;W=d.next())W=W.value,W.image!==void 0?(W=Object.assign({},W,{image:A[H]}),k.push(W),H++):k.push(W);this.showImagesPreview=!1;this.pollOptions=[].concat(_.fV(k))};
_.q.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 A=0,H=_.r(this.pollOptions),k=H.next();!k.done;k=H.next())if(k=k.value,k.optionText.trim()!==""||k.image!==void 0){if(!k.image||this.hasCustomOptionText&&k.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;A++}return A>=Number(this.editorInfo.minPollOptions)};
_.q.getAllUploadStatuses=function(){var A=this,H,k,d,W;return _.e(function(z){if(z.nextAddress==1)return z.yield(A.uploadManager.getAllUploadStatuses(),2);H=z.yieldResult;k=_.r(H);for(d=k.next();!d.done;d=k.next())if(W=d.value,W.encryptedBlobId===void 0)return z.return(BJN(A.uploadManager));return z.return(H)})};
_.q.getPostCreateOptions=function(){for(var A=[],H=_.r(this.pollOptions),k=H.next();!k.done;k=H.next())k=k.value,k.image!==void 0&&A.push({text:this.hasCustomOptionText?k.optionText:k.placeholderText,image:k.image});return A};
_.q.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.q.createButtonRenderer=function(A,H){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:A,accessibilityData:{accessibilityData:{label:this.getSimpleString(A)}},isDisabled:H}};
_.q.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.q.computeThumbnailRendererData=function(A){return A?{image:A,selected:!1}:void 0};
_.q.getSimpleString=function(A){return _.PK(A)};
_.q.updateOptionTextFromBinding=function(A){if(A.target){var H=Array.from(_.Va(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(A.target);if(H>=0){var k;this.pollOptions[H].optionText=(k=A.detail.value)!=null?k:""}}};
_.nP.Object.defineProperties(aB.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var A,H;return this.pollOptions.length<((H=(A=this.editorInfo)==null?void 0:A.maxPollOptions)!=null?H:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(A){return A.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(A){return A.image}).map(function(A){return A.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(A){return A.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var A,H=(A=this.data)==null?void 0:A.addOptionButtonText;return H?this.createButtonRenderer(H,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var A,H=(A=this.data)==null?void 0:A.repositionImagesButtonLabel;return H?this.createButtonRenderer(H,!this.hasImages):void 0}}});
aB.prototype.onPollOptionsChange=aB.prototype.onPollOptionsChange;aB.prototype.observeAddImageError=aB.prototype.observeAddImageError;aB.prototype.onEditorInfoChange=aB.prototype.onEditorInfoChange;aB.prototype.dataChanged=aB.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.ol("ytd-backstage-multi-image-reposition-renderer"),_.l("design:type",Object)],aB.prototype,"imageRepositionContainer",void 0);
_.E([_.C(),_.l("design:type",Object)],aB.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],aB.prototype,"editorInfo",void 0);_.E([_.C(),_.l("design:type",KE)],aB.prototype,"uploadManager",void 0);_.E([_.C(),_.l("design:type",Object)],aB.prototype,"showImagesPreview",void 0);_.E([_.C(),_.l("design:type",Array)],aB.prototype,"pollOptions",void 0);_.E([_.C(),_.l("design:type",Object)],aB.prototype,"errorMessage",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aB.prototype,"dataChanged",null);_.E([_.s6("editorInfo"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aB.prototype,"onEditorInfoChange",null);_.E([_.fF("errorMessage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aB.prototype,"observeAddImageError",null);
_.E([_.s6("pollOptions"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aB.prototype,"onPollOptionsChange",null);_.E([_.G("pollOptions","editorInfo"),_.l("design:type",Object),_.l("design:paramtypes",[])],aB.prototype,"isAllowedToAddOption",null);_.E([_.G("pollOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],aB.prototype,"hasImages",null);
_.E([_.G("pollOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],aB.prototype,"imagesToReposition",null);_.E([_.G("pollOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],aB.prototype,"hasCustomOptionText",null);_.E([_.G("data","isAllowedToAddOption"),_.l("design:type",Object),_.l("design:paramtypes",[])],aB.prototype,"addOptionButton",null);_.E([_.G("data","hasImages"),_.l("design:type",Object),_.l("design:paramtypes",[])],aB.prototype,"repositionImagesButton",null);
_.E([_.O6({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],aB);
_.Q(aB,"ytd-backstage-image-poll-editor-renderer",function(){if(zqw!==void 0)return zqw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return zqw=A},{mode:2});var OaN={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 RqZ;var cb=function(){var A=_.a.apply(this,arguments)||this;A.a11yConfig=OaN;A.imageDisplayOffsetTop=0;A.imageDisplayOffsetLeft=0;A.pickerDisplayOffsetTop=0;A.pickerDisplayOffsetLeft=0;A.showPreviewContainer=!0;A.startPicker=!1;A.repositionOptional=!1;A.editOnlyMode=!1;A.savedImageDisplayOffsetTop=0;A.savedImageDisplayOffsetLeft=0;return A};
_.I(cb,_.a);_.q=cb.prototype;_.q.created=function(){_.Tl.requestAvailability()};
_.q.ready=function(){};
_.q.onArrowKeysDown=function(A){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){A.detail.keyboardEvent.preventDefault();var H=0,k=0,d="";switch(A.detail.keyboardEvent.key){case "ArrowUp":OzA(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?d=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":OzA(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?d=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":OzA(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?d=this.a11yConfig.reachRightOfImage:k=this.imageWidth*.05*-1;break;case "ArrowRight":OzA(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?d=this.a11yConfig.reachLeftOfImage:k=this.imageWidth*.05}d&&_.$r(d)&&_.Ed(this.hostElement,"iron-announce",{text:_.$r(d)});if(k||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),A=_.$r(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+k)),A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),A=_.$r(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})),A&&_.Ed(this.hostElement,"iron-announce",{text:A})}};
_.q.getPreviewPosition=function(A,H,k,d){return Math.round(100*(A+H*.5-k)/d)};
_.q.calculateDisplayPosition=function(){var A=this.imageData.naturalWidth,H=this.imageData.naturalHeight;this.displayScale=Math.max(200/A,200/H);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var k=A*this.displayScale*this.imageData.previewCoordinates.left,d=H*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=H>A?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-k;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=A>H?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-d;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=A*this.displayScale;this.imageHeight=H*this.displayScale};
_.q.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.q.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.q.getSignedPosition=function(A,H,k){return H==="X"&&_.pZ("HTML_DIR")==="rtl"?k==="-"?A+"px":A*-1+"px":k==="-"?A*-1+"px":A+"px"};
_.q.pickerMove=function(A){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-A.clientX,k=this.pickerOffsetY-A.clientY;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
k)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.q.pickerMoveStart=function(A){this.startPicker=!0;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY};
_.q.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var A=this.generateCropPreview();A&&_.Ed(this.hostElement,"ytd-backstage-image-preview-coordinates-update",A)};
_.q.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Ed(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.q.deleteImage=function(){_.Ed(this.hostElement,"ytd-backstage-image-preview-delete")};
_.q.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.q.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var A=this.generateCropPreview();A&&_.Ed(this.hostElement,"ytd-backstage-image-preview-coordinates-save",A)};
_.q.getPreviewOffset=function(A,H,k){return H&&A?(k==="X"&&_.pZ("HTML_DIR")==="rtl"?300/H*A:300/H*A*-1)+"px":"0px"};
_.q.getSimpleText=function(A){return A?_.PK(A):""};
_.q.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}};
_.nP.Object.defineProperties(cb.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.$r(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.$r(this.a11yConfig.verticalRepositionInstruction)}A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.$r(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.$r(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 A,H,k=(A=this.instruction)==null?void 0:(H=A.previewInstruction)==null?void 0:H.editButtonLabel;return k?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:k,accessibilityData:{accessibilityData:{label:this.getSimpleText(k)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d,W=this.editOnlyMode?(A=this.instruction)==null?void 0:(H=A.editInstruction)==null?void 0:H.saveImagesButtonLabel:(k=this.instruction)==null?void 0:(d=k.editInstruction)==null?void 0:d.saveButtonLabel;return W?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleText(W)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.instruction)==null?void 0:(H=A.previewInstruction)==null?void 0:H.deleteButtonLabel;return k?{size:"SIZE_SMALL",text:k,accessibilityData:{accessibilityData:{label:this.getSimpleText(k)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.instruction)==null?void 0:(H=A.editInstruction)==null?void 0:H.cancelButtonLabel;A=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return k?{style:A,size:"SIZE_SMALL",text:k,accessibilityData:{accessibilityData:{label:this.getSimpleText(k)}}}: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"}}});
cb.prototype.onEditOnlyModeUpdate=cb.prototype.onEditOnlyModeUpdate;cb.prototype.onImageChange=cb.prototype.onImageChange;_.E([_.C(),_.l("design:type",izr)],cb.prototype,"imageData",void 0);_.E([_.C(),_.l("design:type",Object)],cb.prototype,"instruction",void 0);_.E([_.C(),_.l("design:type",Object)],cb.prototype,"a11yConfig",void 0);_.E([_.C(),_.l("design:type",Number)],cb.prototype,"imageWidth",void 0);_.E([_.C(),_.l("design:type",Number)],cb.prototype,"imageHeight",void 0);
_.E([_.C(),_.l("design:type",Number)],cb.prototype,"displayScale",void 0);_.E([_.C(),_.l("design:type",Object)],cb.prototype,"imageDisplayOffsetTop",void 0);_.E([_.C(),_.l("design:type",Object)],cb.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.C(),_.l("design:type",Object)],cb.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.C(),_.l("design:type",Object)],cb.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.C(),_.l("design:type",Object)],cb.prototype,"showPreviewContainer",void 0);
_.E([_.C(),_.l("design:type",Object)],cb.prototype,"startPicker",void 0);_.E([_.C(),_.l("design:type",Number)],cb.prototype,"pickerOffsetX",void 0);_.E([_.C(),_.l("design:type",Number)],cb.prototype,"pickerOffsetY",void 0);_.E([_.C(),_.l("design:type",Object)],cb.prototype,"repositionOptional",void 0);_.E([_.C(),_.l("design:type",Object)],cb.prototype,"editOnlyMode",void 0);_.E([_.ol("#picker-container"),_.l("design:type",HTMLElement)],cb.prototype,"JSC$16115_pickerContainer",void 0);
_.E([_.ol("#picker"),_.l("design:type",HTMLElement)],cb.prototype,"picker",void 0);_.E([_.ol("#preview-clipper"),_.l("design:type",HTMLElement)],cb.prototype,"previewClipper",void 0);_.E([_.ol("#image-in-picker-background"),_.l("design:type",HTMLImageElement)],cb.prototype,"JSC$16115_imageInBackground",void 0);_.E([_.ol("#image-in-picker"),_.l("design:type",HTMLImageElement)],cb.prototype,"JSC$16115_imageInPicker",void 0);
_.E([_.ol("#image-in-preview-clipper"),_.l("design:type",HTMLImageElement)],cb.prototype,"JSC$16115_imageInPreviewClipper",void 0);_.E([_.G("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],cb.prototype,"altLabelForImage",null);_.E([_.G("imageHeight","imageWidth"),_.l("design:type",Number),_.l("design:paramtypes",[])],cb.prototype,"pickerSize",null);
_.E([_.G("imageHeight","imageWidth"),_.l("design:type",Object),_.l("design:paramtypes",[])],cb.prototype,"imageOrientationStyle",null);_.E([_.G("instruction"),_.l("design:type",Object),_.l("design:paramtypes",[])],cb.prototype,"editButton",null);_.E([_.G("instruction","editOnlyMode"),_.l("design:type",Object),_.l("design:paramtypes",[])],cb.prototype,"saveButton",null);_.E([_.G("instruction"),_.l("design:type",Object),_.l("design:paramtypes",[])],cb.prototype,"deleteButton",null);
_.E([_.G("instruction","editOnlyMode"),_.l("design:type",Object),_.l("design:paramtypes",[])],cb.prototype,"cancelButton",null);_.E([_.G("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.l("design:type",Number),_.l("design:paramtypes",[])],cb.prototype,"cropOffsetTop",null);_.E([_.G("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.l("design:type",Number),_.l("design:paramtypes",[])],cb.prototype,"cropOffsetLeft",null);
_.E([_.G("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],cb.prototype,"pickerBackgroundStyle",null);_.E([_.G("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],cb.prototype,"pickerDisplayStyle",null);_.E([_.G("cropOffsetLeft","cropOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],cb.prototype,"imageInPickerStyle",null);
_.E([_.G("cropOffsetLeft","cropOffsetTop","pickerSize"),_.l("design:type",String),_.l("design:paramtypes",[])],cb.prototype,"previewClipperStyle",null);_.E([_.s6("imageData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cb.prototype,"onImageChange",null);_.E([_.s6("editOnlyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cb.prototype,"onEditOnlyModeUpdate",null);
_.E([_.G("showPreviewContainer"),_.l("design:type",String),_.l("design:paramtypes",[])],cb.prototype,"pickerModeStyle",null);_.E([_.O6({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],cb);
_.Q(cb,"ytd-backstage-image-preview-renderer",function(){if(RqZ!==void 0)return RqZ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return RqZ=A},{mode:1});var TJ0;var mqZ={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 Jti;var gR0;var pE=function(){var A=_.a.apply(this,arguments)||this;A.a11yConfig=mqZ;A.imageDisplayOffsetTop=0;A.imageDisplayOffsetLeft=0;A.pickerDisplayOffsetTop=0;A.pickerDisplayOffsetLeft=0;A.cropCoordinatesSaved=!1;A.previewSize=0;A.startPicker=!1;A.repositionOptional=!1;return A};
_.I(pE,_.a);_.q=pE.prototype;_.q.created=function(){_.Tl.requestAvailability()};
_.q.ready=function(){};
_.q.onArrowKeysDown=function(A){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){A.detail.keyboardEvent.preventDefault();var H=0,k=0,d="";switch(A.detail.keyboardEvent.key){case "ArrowUp":RlA(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?d=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":RlA(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?d=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":RlA(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?d=this.a11yConfig.reachRightOfImage:k=this.imageWidth*.05*-1;break;case "ArrowRight":RlA(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?d=this.a11yConfig.reachLeftOfImage:k=this.imageWidth*.05}d&&_.$r(d)&&_.Ed(this.hostElement,"iron-announce",{text:_.$r(d)});if(k||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),A=_.$r(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+k)),A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),A=_.$r(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})),A&&_.Ed(this.hostElement,"iron-announce",{text:A})}};
_.q.getPreviewPosition=function(A,H,k,d){return Math.round(100*(A+H*.5-k)/d)};
_.q.displayImage=function(){var A=this.JSC$16126_pickerContainer.getBoundingClientRect().width,H=this.JSC$16126_pickerContainer.getBoundingClientRect().height,k=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),d=this.JSC$16126_imageInBackground.naturalWidth,W=this.JSC$16126_imageInBackground.naturalHeight;this.displayScale=Math.max(k/d,k/W);this.imageWidth=d*this.displayScale;this.imageHeight=W*this.displayScale;this.pickerDisplayOffsetLeft=(A-k)/2;this.pickerDisplayOffsetTop=
(H-k)/2;this.imageDisplayOffsetLeft=W>d?this.pickerDisplayOffsetLeft:(A-this.imageWidth)/2;this.imageDisplayOffsetTop=d>W?this.pickerDisplayOffsetTop:(H-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.q.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16126_imageInBackground.src=this.imageData.toString(),this.JSC$16126_imageInPicker.src=this.imageData.toString(),this.JSC$16126_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.q.getSignedPosition=function(A,H,k){return H==="X"&&_.pZ("HTML_DIR")==="rtl"?k==="-"?A+"px":A*-1+"px":k==="-"?A*-1+"px":A+"px"};
_.q.pickerMove=function(A){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-A.clientX,k=this.pickerOffsetY-A.clientY;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
k)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.q.pickerMoveStart=function(A){this.startPicker=!0;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY};
_.q.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.q.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Ed(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.q.getPreviewOffset=function(A,H,k,d){return H&&A&&k?(d==="X"&&_.pZ("HTML_DIR")==="rtl"?k/H*A:k/H*A*-1)+"px":"0px"};
_.q.getSimpleText=function(A){return A?_.PK(A):""};
_.q.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var A=this.cropOffsetTop/this.imageHeight,H=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,k=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,d=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Va(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Ed(this.hostElement,"yt-img-crop-coordinates-update",{top:A,right:H,bottom:k,left:d})}};
_.nP.Object.defineProperties(pE.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.$r(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.$r(this.a11yConfig.verticalRepositionInstruction)}A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.$r(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.$r(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 A,H=(A=this.learnMore.runs[0])==null?void 0:A.navigationEndpoint,k;return((k=_.L(H,_.KT))==null?void 0:k.url)||void 0}}}});
pE.prototype.onImageDataChange=pE.prototype.onImageDataChange;_.E([_.C(),_.l("design:type",Object)],pE.prototype,"imageData",void 0);_.E([_.C(),_.l("design:type",Object)],pE.prototype,"instruction",void 0);_.E([_.C(),_.l("design:type",Object)],pE.prototype,"a11yConfig",void 0);_.E([_.C(),_.l("design:type",Number)],pE.prototype,"imageWidth",void 0);_.E([_.C(),_.l("design:type",Number)],pE.prototype,"imageHeight",void 0);_.E([_.C(),_.l("design:type",Number)],pE.prototype,"displayScale",void 0);
_.E([_.C(),_.l("design:type",Object)],pE.prototype,"imageDisplayOffsetTop",void 0);_.E([_.C(),_.l("design:type",Object)],pE.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.C(),_.l("design:type",Object)],pE.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.C(),_.l("design:type",Object)],pE.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.C(),_.l("design:type",Object)],pE.prototype,"cropCoordinatesSaved",void 0);_.E([_.C(),_.l("design:type",Object)],pE.prototype,"previewSize",void 0);
_.E([_.C(),_.l("design:type",Object)],pE.prototype,"startPicker",void 0);_.E([_.C(),_.l("design:type",Number)],pE.prototype,"pickerOffsetX",void 0);_.E([_.C(),_.l("design:type",Number)],pE.prototype,"pickerOffsetY",void 0);_.E([_.C(),_.l("design:type",Object)],pE.prototype,"repositionOptional",void 0);_.E([_.ol("#picker-container"),_.l("design:type",HTMLElement)],pE.prototype,"JSC$16126_pickerContainer",void 0);_.E([_.ol("#picker"),_.l("design:type",HTMLElement)],pE.prototype,"picker",void 0);
_.E([_.ol("#image-in-picker-background"),_.l("design:type",HTMLImageElement)],pE.prototype,"JSC$16126_imageInBackground",void 0);_.E([_.ol("#image-in-picker"),_.l("design:type",HTMLImageElement)],pE.prototype,"JSC$16126_imageInPicker",void 0);_.E([_.ol("#image-in-preview-clipper"),_.l("design:type",HTMLImageElement)],pE.prototype,"JSC$16126_imageInPreviewClipper",void 0);_.E([_.ol("#full-image-as-preview"),_.l("design:type",HTMLImageElement)],pE.prototype,"imageAsPreview",void 0);
_.E([_.G("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],pE.prototype,"altLabelForImage",null);_.E([_.G("imageHeight","imageWidth"),_.l("design:type",Number),_.l("design:paramtypes",[])],pE.prototype,"pickerSize",null);_.E([_.G("imageHeight","imageWidth"),_.l("design:type",Object),_.l("design:paramtypes",[])],pE.prototype,"imageOrientationStyle",null);
_.E([_.G("instruction.previewInstruction.editButtonLabel"),_.l("design:type",Object),_.l("design:paramtypes",[])],pE.prototype,"editButton",null);_.E([_.G("instruction.editInstruction.saveButtonLabel"),_.l("design:type",Object),_.l("design:paramtypes",[])],pE.prototype,"saveButton",null);_.E([_.G("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.l("design:type",Number),_.l("design:paramtypes",[])],pE.prototype,"cropOffsetTop",null);
_.E([_.G("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.l("design:type",Number),_.l("design:paramtypes",[])],pE.prototype,"cropOffsetLeft",null);_.E([_.G("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],pE.prototype,"pickerBackgroundStyle",null);_.E([_.G("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],pE.prototype,"pickerDisplayStyle",null);
_.E([_.G("cropOffsetLeft","cropOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],pE.prototype,"imageInPickerStyle",null);_.E([_.G("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.l("design:type",String),_.l("design:paramtypes",[])],pE.prototype,"previewClipperStyle",null);_.E([_.fF("imageData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pE.prototype,"onImageDataChange",null);
_.E([_.G("cropCoordinatesSaved"),_.l("design:type",String),_.l("design:paramtypes",[])],pE.prototype,"pickerModeStyle",null);_.E([_.G("instruction.editInstruction.learnMore"),_.l("design:type",Object),_.l("design:paramtypes",[])],pE.prototype,"learnMore",null);_.E([_.G("learnMore"),_.l("design:type",Object),_.l("design:paramtypes",[])],pE.prototype,"learnMoreUrl",null);_.E([_.h6({is:"yt-img-crop-picker",disableElementRegistration:!0})],pE);
_.Q(pE,"yt-img-crop-picker",function(){if(gR0===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;Jti===void 0&&(Jti=document.createElement("template"));var d=Jti;k.call(H,d.content.cloneNode(!0),A.content.firstChild);gR0=A}A=gR0;return A},{mode:2});var Q3=function(){var A=_.a.apply(this,arguments)||this;A.errorMessage="";A.hasPreview=!1;A.isBackstagePost=!1;A.dismissButtonOverrides={size:"XS"};return A};
_.I(Q3,_.a);_.q=Q3.prototype;_.q.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"}}}};
_.q.detached=function(){this.removeOverlay()};
_.q.setPreview=function(A){_.Va(this.hostElement).querySelector("#preview-picker").imageData=A;this.hasPreview=!0;_.Ed(this.hostElement,"yt-backstage-image-select-preview")};
_.q.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var A=_.Va(this.hostElement).querySelector("#dropzone");A.classList.remove("dragover");A.classList.remove("error");_.Ed(this.hostElement,"yt-backstage-image-select-cancel")};
_.q.setupOverlay=function(){var A=this.imageUploadEndpoint;this.removeOverlay();if(A&&A.imageValidationInfo){var H=_.Va(this.hostElement).querySelector("#dropzone"),k=_.Va(this.hostElement).querySelector("#select");this.overlay=new SG(A.uploadUrl,A.channelId,A.imageValidationInfo.maxFileSizeMb,A.imageValidationInfo.allowedMaxAspectRatio,H,k,!0);_.Y3(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Y3(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Y3(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Y3(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Y3(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.q.removeOverlay=function(){this.overlay&&(_.xz(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.xz(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.xz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.xz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.xz(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.q.onDragOver=function(A){var H=_.Va(this.hostElement).querySelector("#dropzone");_.UJ(H,"dragover",A.value)};
_.q.onPreview=function(A){this.setPreview(A.value)};
_.q.onImageError=function(A){if(A.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var H;A=(H=this.data)==null?void 0:H.fileSizeError}else if(A.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var k;A=(k=this.data)==null?void 0:k.invalidError}else if(A.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var d;A=(d=this.data)==null?void 0:d.invalidAspectRatioError}else return;this.errorMessage=_.PK(A);_.Va(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.q.onImageAlert=function(A){this.onImageError(A)};
_.q.uploadPromise=function(){var A=this,H=this.overlay&&this.overlay.uploadPromise();if(H)return H.catch(function(){throw Error(A.data?_.PK(A.data.uploadFailureError):"");})};
_.nP.Object.defineProperties(Q3.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var A,H;if((A=this.data)==null?0:(H=A.icon)==null?0:H.iconType)return _.N0(this.data.icon.iconType)}}});
Q3.prototype.setupOverlay=Q3.prototype.setupOverlay;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Q3.prototype,"rendererStamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Q3.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Q3.prototype,"imageUploadEndpoint",void 0);_.E([_.C(),_.l("design:type",Object)],Q3.prototype,"errorMessage",void 0);
_.E([_.C(),_.l("design:type",SG)],Q3.prototype,"overlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Q3.prototype,"hasPreview",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Q3.prototype,"isBackstagePost",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Q3.prototype,"selectionCancel",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Q3.prototype,"previewCancel",null);
_.E([_.G("data.icon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],Q3.prototype,"icon",null);_.E([_.C(),_.l("design:type",Object)],Q3.prototype,"dismissButtonOverrides",void 0);_.E([_.fF("imageUploadEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Q3.prototype,"setupOverlay",null);_.E([_.O6({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Q3);
_.Q(Q3,"ytd-backstage-image-select-renderer",function(){if(TJ0!==void 0)return TJ0;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return TJ0=A},{mode:1});var baG;var Lwj;var V3=function(){var A=_.a.apply(this,arguments)||this;A.selected=!1;return A};
_.I(V3,_.a);_.q=V3.prototype;_.q.computeSelected=function(A){return A==null?void 0:A.selected};
_.q.computeTransform=function(A,H,k){var d,W,z=(W=(d=this.imageContainer)==null?void 0:d.getBoundingClientRect())!=null?W:{width:0,height:0};d=Math.max(z.width/H,z.height/k);k=k*d*A.top;return"translateX("+this.getSignedPosition(H*d*A.left,"X","-")+") translateY("+this.getSignedPosition(k,"Y","-")+")"};
_.q.getSignedPosition=function(A,H,k){return H==="X"&&_.pZ("HTML_DIR")==="rtl"?k==="-"?A+"px":A*-1+"px":k==="-"?A*-1+"px":A+"px"};
_.q.onClick=function(){var A;_.Ed(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(A=this.data)==null?void 0:A.image)};
_.q.onKeyPress=function(A){if(A.keyCode===13)this.onClick()};
_.nP.Object.defineProperties(V3.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:(H=A.image)==null?void 0:H.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.image){var H;A=(H=this.data)==null?void 0:H.image;return A.previewCoordinates.top!==0||A.previewCoordinates.left!==0?(H=this.computeTransform(A.previewCoordinates,A.naturalWidth,A.naturalHeight),A.naturalHeight>=A.naturalWidth?"width:inherit;transform:"+H+";":"height:inherit;transform:"+H+";"):A.naturalHeight>=A.naturalWidth?"width:inherit;":"height:inherit;"}}}});
V3.prototype.onKeyPress=V3.prototype.onKeyPress;_.E([_.ol(".image-container"),_.l("design:type",HTMLElement)],V3.prototype,"imageContainer",void 0);_.E([_.C(),_.l("design:type",Object)],V3.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.l("design:type",Object)],V3.prototype,"selected",void 0);_.E([_.G("data.image"),_.l("design:type",Object),_.l("design:paramtypes",[])],V3.prototype,"thumbnailUrl",null);
_.E([_.G("data.image","data.image.previewCoordinates"),_.l("design:type",Object),_.l("design:paramtypes",[])],V3.prototype,"thumbnailStyle",null);_.E([_.Ze("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],V3.prototype,"onKeyPress",null);_.E([_.O6({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],V3);
_.Vu()(V3,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Lwj===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);Lwj=A}A=Lwj;return A},{allowedProps:["data"],
mode:2});var Eb=function(A,H,k){k=k===void 0?!1:k;_.Is.call(this);var d=this;this.dropZoneOverlay=new lr(A);this.selectOverlay=k?new tq(H,"multiple_file",["image/*"]):new tq(H,"single_file",["image/*"]);this.handler=new _.qZ(this);_.ZL(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(H,"click",function(){d.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.I(Eb,_.Is);Eb.prototype.onChange=function(A){var H;(H=A.files)!=null&&H.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:A.files}))};var Ub=function(){var A=_.a.apply(this,arguments)||this;A.addImageErrorMessage="";A.errorMessage="";A.images=[];A.selectedImageIndex=0;A.modern=_.b("web_modern_buttons");A.maxNumImagesPerPost=_.H5("max_num_images_per_post_web_ui");A.JSC$16141_imageId=0;return A};
_.I(Ub,_.a);_.q=Ub.prototype;_.q.created=function(){var A=this;this.JSC$16141_ytReorderableController=new _.Qjj(100,function(H){A.handleDrop(H)})};
_.q.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Ed(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.q.observeDragToReorder=function(){var A=this;if(this.showImagesPreview){var H,k=t2A(_.NE.getInstance(),(H=this.data)==null?void 0:H.dragToReorderTooltip);_.IE.addLowPriorityJob(function(){_.NT(A.hostElement,k,A.thumbnailDragDropArea)})}};
_.q.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}}};
_.q.computeThumbnail=function(A){return(A==null?void 0:A.localImageSrc)||void 0};
_.q.onRendererstamperFinished=function(){_.VRi(this.JSC$16141_ytReorderableController,_.Va(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Va(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.q.handleDrop=function(A){var H=A.currDragItem;if(H!=null&&H.data){A=this.images[this.selectedImageIndex];var k=H.data.image,d=this.images.indexOf(k)||0;H=_.ab(H.parentNode.children,H);this.images.splice(d,1);this.images.splice(H,0,k);this.images=[].concat(_.fV(this.images));this.selectedImageIndex=this.images.indexOf(A)}};
_.q.setUpImagePicker=function(){var A=this.imageUploadEndpoint;A&&A.imageValidationInfo&&(this.uploadManager=new KE(A.uploadUrl,A.channelId),this.initialPicker||(this.initialPicker=new Eb(this.dropzone,this.selectLink,!0),_.Y3(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Eb(this.addImageButtonContainer,this.addImageSelectButton),_.Y3(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Y3(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Y3(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Y3(_.Va(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.q.detached=function(){this.initialPicker&&(_.xz(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.xz(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.Hx(this.JSC$16141_ytReorderableController)};
_.q.onInitialSelectImages=function(A){var H=this;return _.e(function(k){return k.yield(H.onSelectImages(A,!1),0)})};
_.q.onAddImage=function(A){var H=this;return _.e(function(k){return k.yield(H.onSelectImages(A,!0),0)})};
_.q.onSelectImages=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M;return _.e(function(Z){switch(Z.nextAddress){case 1:H?k.addImageErrorMessage="":(k.images=[],k.errorMessage="");d=A.detail;W=k.validateImages([].concat(_.fV(d)));if(W!=="")return H?k.addImageErrorMessage=W:k.errorMessage=W,Z.return();z=[].concat(_.fV(d)).map(function(WV){return(new XP(k.maxAspectRatio,!1,!0)).transform(WV)});
return Z.yield(Promise.allSettled(z),2);case 2:u=Z.yieldResult,B=_.r(u.entries()),h=B.next();case 3:if(h.done){Z.jumpTo(5);break}O=h.value;T=_.r(O);m=T.next().value;J=T.next().value;g=m;v=J;if(v.status!=="fulfilled"){D=X=y=void 0;H?k.addImageErrorMessage=_.PK((y=k.data)==null?void 0:y.invalidError):k.errorMessage=k.errorMessage===""?_.PK((X=k.data)==null?void 0:X.invalidError):_.PK((D=k.data)==null?void 0:D.multiFileError);Z.jumpTo(4);break}K=v.value;K.cropped&&_.Ed(k.hostElement,"yt-backstage-multi-image-cropped");
if(K.invalidAspectRatio){p=U=N=void 0;H?k.addImageErrorMessage=_.PK((N=k.data)==null?void 0:N.invalidAspectRatioError):k.errorMessage=k.errorMessage===""?_.PK((U=k.data)==null?void 0:U.invalidAspectRatioError):_.PK((p=k.data)==null?void 0:p.multiFileError);Z.jumpTo(4);break}return Z.yield(hlA(k.JSC$16141_imageId,A.detail[g],K.transformedData),8);case 8:M=Z.yieldResult,k.images.push(M),k.JSC$16141_imageId++;case 4:h=B.next();Z.jumpTo(3);break;case 5:if(k.errorMessage!==""||k.addImageErrorMessage!==
"")return Z.return();H?uN0(k.uploadManager,[k.images[k.images.length-1]]):uN0(k.uploadManager,k.images);k.images=[].concat(_.fV(k.images));k.selectedImageIndex=H?Math.max(k.images.length-1,0):0;_.Ed(k.hostElement,"yt-backstage-multi-image-select");_.EN(Z)}})};
_.q.onThumbnailClick=function(A){if(A=A.event_.detail)this.selectedImageIndex=this.images.indexOf(A)};
_.q.validateImages=function(A){if(A.length>this.maxNumImagesPerPost){var H;return _.PK((H=this.data)==null?void 0:H.multiImageExceedMaxImageCountError)}var k=1048576*this.maxFileSizeMb;A=A.filter(function(z){return z.size>k}).length;
if(A===0)return"";var d,W;A=A>1?(d=this.data)==null?void 0:d.multiFileError:(W=this.data)==null?void 0:W.fileSizeError;return _.PK(A)};
_.q.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.fV(this.images));this.selectedImageIndex=0};
_.q.repositionImage=function(A){this.images[this.selectedImageIndex].previewCoordinates=A.event_.detail;this.images=[].concat(_.fV(this.images))};
_.q.getAllUploadStatuses=function(){var A=this,H,k,d,W;return _.e(function(z){if(z.nextAddress==1)return z.yield(A.uploadManager.getAllUploadStatuses(),2);H=z.yieldResult;k=_.r(H);for(d=k.next();!d.done;d=k.next())if(W=d.value,W.encryptedBlobId===void 0)return z.return(BJN(A.uploadManager));return z.return(H)})};
_.q.hasImages=function(){return this.images.length>0};
_.q.cancel=function(){for(var A=this.uploadManager,H=_.r(A.imagesUploadData),k=H.next();!k.done;k=H.next())A.cancel(k.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Ed(this.hostElement,"yt-backstage-multi-image-cancel")};
_.nP.Object.defineProperties(Ub.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.imageUploadEndpoint)==null?void 0:(H=A.imageValidationInfo)==null?void 0:H.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.imageUploadEndpoint)==null?void 0:(H=A.imageValidationInfo)==null?void 0:H.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var A,H;if((A=this.data)==null?0:(H=A.icon)==null?0:H.iconType)return _.N0(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.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 A=this;return(this.images||[]).map(function(H,k){return{renderer:{image:H,selected:k===A.selectedImageIndex}}})}}});
Ub.prototype.setUpImagePicker=Ub.prototype.setUpImagePicker;Ub.prototype.onRendererstamperFinished=Ub.prototype.onRendererstamperFinished;Ub.prototype.observeDragToReorder=Ub.prototype.observeDragToReorder;Ub.prototype.observeAddImageError=Ub.prototype.observeAddImageError;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ub.prototype,"rendererStamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);
_.E([_.ol("#dropzone"),_.l("design:type",HTMLElement)],Ub.prototype,"dropzone",void 0);_.E([_.ol("#select-link"),_.l("design:type",HTMLElement)],Ub.prototype,"selectLink",void 0);_.E([_.ol("#thumbnail-drag-drop-area"),_.l("design:type",HTMLElement)],Ub.prototype,"thumbnailDragDropArea",void 0);_.E([_.ol("#add-image-button-container"),_.l("design:type",HTMLElement)],Ub.prototype,"addImageButtonContainer",void 0);
_.E([_.ol("#add-image-button"),_.l("design:type",HTMLElement)],Ub.prototype,"addImageSelectButton",void 0);_.E([_.ol("#image-preview-container"),_.l("design:type",Object)],Ub.prototype,"imagePreviewContainer",void 0);_.E([_.C(),_.l("design:type",Object)],Ub.prototype,"addImageErrorMessage",void 0);_.E([_.C(),_.l("design:type",Object)],Ub.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Ub.prototype,"errorMessage",void 0);
_.E([_.C(),_.l("design:type",Object)],Ub.prototype,"imageUploadEndpoint",void 0);_.E([_.C(),_.l("design:type",Array)],Ub.prototype,"images",void 0);_.E([_.C(),_.l("design:type",Eb)],Ub.prototype,"initialPicker",void 0);_.E([_.C(),_.l("design:type",Eb)],Ub.prototype,"addImagePicker",void 0);_.E([_.C(),_.l("design:type",KE)],Ub.prototype,"uploadManager",void 0);_.E([_.C(),_.l("design:type",Object)],Ub.prototype,"selectedImageIndex",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ub.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ub.prototype,"maxNumImagesPerPost",void 0);_.E([_.G("imageUploadEndpoint"),_.l("design:type",Number),_.l("design:paramtypes",[])],Ub.prototype,"maxAspectRatio",null);_.E([_.G("imageUploadEndpoint"),_.l("design:type",Number),_.l("design:paramtypes",[])],Ub.prototype,"maxFileSizeMb",null);
_.E([_.G("data.icon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ub.prototype,"dropIcon",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ub.prototype,"selectionCancel",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ub.prototype,"previewCancel",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ub.prototype,"dataForAddImageButton",null);
_.E([_.G("errorMessage"),_.l("design:type",String),_.l("design:paramtypes",[])],Ub.prototype,"dropzoneClass",null);_.E([_.G("images"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ub.prototype,"showImagesPreview",null);_.E([_.G("images"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ub.prototype,"containMaxImages",null);_.E([_.fF("addImageErrorMessage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ub.prototype,"observeAddImageError",null);
_.E([_.fF("showImagesPreview"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ub.prototype,"observeDragToReorder",null);_.E([_.G("images","selectedImageIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ub.prototype,"selectedImageData",null);_.E([_.G("images","selectedImageIndex"),_.l("design:type",Array),_.l("design:paramtypes",[])],Ub.prototype,"thumbnailRenderers",null);
_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ub.prototype,"onRendererstamperFinished",null);_.E([_.fF("imageUploadEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ub.prototype,"setUpImagePicker",null);_.E([_.O6({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Ub);
_.Q(Ub,"ytd-backstage-multi-image-select-renderer",function(){if(baG!==void 0)return baG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return baG=A},{mode:1});var vRw;var ytA;var jmA;var lT=function(){var A=_.a.apply(this,arguments)||this;A.boundCaptureFocus=function(H){A.onCaptureFocus(H)};
return A};
_.I(lT,_.a);_.q=lT.prototype;_.q.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.q.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.q.onCaptureFocus=function(A){_.F_(A).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.q.getIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.q.onSelect=function(){var A;if((A=this.data)==null?0:A.onSelectCommand)if(_.b("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var H;((H=_.L(this.data.onSelectCommand.commandMetadata,_.wn))==null?0:H.url)?_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.wj().resolve(_.J7).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.nP.Object.defineProperties(lT.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.PK(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}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],lT.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lT.prototype,"data",void 0);_.E([_.ol("#item"),_.l("design:type",HTMLElement)],lT.prototype,"item",void 0);_.E([_.G("data.label"),_.l("design:type",String),_.l("design:paramtypes",[])],lT.prototype,"label",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],lT.prototype,"value",null);_.E([_.O6({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],lT);
_.Q(lT,"ytd-privacy-dropdown-item-renderer",function(){if(jmA!==void 0)return jmA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return jmA=A},{mode:1});var tl=function(){var A=_.a.apply(this,arguments)||this;A.value="";A.label="";A.disabled=!1;return A};
_.I(tl,_.a);_.q=tl.prototype;_.q.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"}}}};
_.q.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.q.dataChanged=function(){this.reset()};
_.q.valueChanged=function(){var A;if(this.value&&(A=this.data)!=null&&A.entries){A=_.r(this.data.entries);for(var H=A.next();!H.done;H=A.next())if((H=this.getRendererForEntry(H.value))&&this.getItemRendererValue(H)===this.value){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}}};
_.q.setInitialLabel=function(){if(this.data&&this.data.entries)for(var A=_.r(this.data.entries),H=A.next();!H.done;H=A.next())if(H=this.getRendererForEntry(H.value)){if(H.isSelected){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}this.data.label&&(this.label=this.data.label)}};
_.q.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var A=_.r(this.data.entries),H=A.next();!H.done;H=A.next()){H=this.getRendererForEntry(H.value);var k=void 0;if((k=H)==null?0:k.isSelected)return this.getItemRendererValue(H)||-1}return-1};
_.q.getItemRendererValue=function(A){return"stringValue"in A||"int32Value"in A?A.stringValue||A.int32Value||null:null};
_.q.getRendererForEntry=function(A){return A.dropdownItemRenderer||A.privacyDropdownItemRenderer||A.navigationDropdownItemRenderer||null};
_.q.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("value-changed",this.value))};
_.q.updateValueFromBinding=function(A){this.value=A.detail.value};
tl.prototype.valueChangedForBinding=tl.prototype.valueChangedForBinding;tl.prototype.valueChanged=tl.prototype.valueChanged;tl.prototype.dataChanged=tl.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],tl.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],tl.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],tl.prototype,"value",void 0);_.E([_.C(),_.l("design:type",Object)],tl.prototype,"label",void 0);_.E([_.ol("#entries"),_.l("design:type",Object)],tl.prototype,"entries",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tl.prototype,"disabled",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tl.prototype,"dataChanged",null);
_.E([_.s6("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tl.prototype,"valueChanged",null);_.E([_.fF("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tl.prototype,"valueChangedForBinding",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],tl);
_.Q(tl,"ytd-flat-dropdown-renderer",function(){if(ytA!==void 0)return ytA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ytA=A},{mode:1});var IFw;var N9=function(){var A=_.a.apply(this,arguments)||this;A.quizOptions=[];A.explanationPlaceholderText="";A.optionPlaceholderText="";A.correctAnswerIndex=-1;A.isMarkAnswerTooltipShown=!1;A.timer=0;return A};
_.I(N9,_.a);_.q=N9.prototype;_.q.dataChanged=function(){this.optionPlaceholderText=_.PK(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.PK(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.q.onMarkCorrectAnswer=function(A){var H,k=((H=this.quizOptions[this.correctAnswerIndex])==null?void 0:H.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[A.model.index]=Object.assign({},this.quizOptions[A.model.index],{explanationText:k,isCorrect:!0});this.correctAnswerIndex=A.model.index;this.quizOptions=[].concat(_.fV(this.quizOptions))};
_.q.updatePlaceholderTexts=function(){for(var A=!1,H=[],k=0;k<this.quizOptions.length;k++){var d=this.optionPlaceholderText+" "+(k+1),W=void 0;((W=this.quizOptions[k])==null?void 0:W.placeholderText)!==d?(A=!0,H.push(Object.assign({},this.quizOptions[k],{placeholderText:d}))):H.push(this.quizOptions[k])}A&&(this.quizOptions=H);this.isValid()?_.Ed(this.hostElement,"yt-commentbox-post-enable"):_.Ed(this.hostElement,"yt-commentbox-post-disable")};
_.q.getSimpleString=function(A){return _.PK(A)};
_.q.createQuizOptions=function(A){var H=[],k;A=(k=A==null?void 0:A.minQuizOptions)!=null?k:0;for(k=0;k<A;k++)H.push(this.createQuizOption());return H};
_.q.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.fV(this.quizOptions),[this.createQuizOption()]))};
_.q.onInput=function(){this.quizOptions=[].concat(_.fV(this.quizOptions))};
_.q.onExplanationInput=function(){_.Ed(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.q.onRemoveQuizOption=function(A){this.quizOptions.splice(A.model.index,1);A.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:A.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.fV(this.quizOptions));this.quizOptions.length===0&&_.Ed(this.hostElement,"yt-quiz-attachment-dismiss")};
_.q.updateHintRenderer=function(){var A=this;clearTimeout(this.timer);this.timer=setTimeout(function(){A.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.q.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var A=0,H=0,k=_.r(this.quizOptions),d=k.next();!d.done;d=k.next()){d=d.value;var W=void 0;if(((W=d.optionText)==null?void 0:W.trim())!==""||d.isCorrect){d.isCorrect&&H++;W=void 0;if(this.hasCustomOptionText&&((W=d.optionText)==null?void 0:W.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;A++}}return A>=
Number(this.editorInfo.minQuizOptions)&&H===1};
_.q.getPostCreateOptions=function(){for(var A=[],H=_.r(this.quizOptions),k=H.next();!k.done;k=H.next()){k=k.value;var d=void 0;((d=k.optionText)==null?void 0:d.trim())!==""&&A.push({pollOption:{text:k.optionText,explanation:k.explanationText},isCorrect:k.isCorrect})}return A};
_.q.getExplanationText=function(){var A;return((A=this.quizOptions[this.correctAnswerIndex])==null?void 0:A.explanationText)||""};
_.q.maybeDisplayMarkAnswerEduToolTip=function(){var A,H,k,d,W,z,u;this.shouldShowMarkAnswerTooltip()&&((A=this.editorInfo)==null?0:(H=A.markAnswerButton)==null?0:(k=H.buttonRenderer)==null?0:(d=k.hint)==null?0:(W=d.hintRenderer)==null?0:(z=W.content)==null?0:(u=z.bubbleHintRenderer)==null?0:u.text)&&(_.NE.getInstance(),A=ME(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,(A==null?void 0:A.length)>0&&this.optionSelectors&&_.ZS(A[0],this.optionSelectors[0]))};
_.q.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var A=0,H=_.r(this.quizOptions),k=H.next();!k.done;k=H.next()){k=k.value;var d=void 0;((d=k.optionText)==null?void 0:d.trim())!==""&&A++;if(k.isCorrect)return!1}return A<2?!1:!0};
_.q.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.q.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.q.updateOptionTextFromBinding=function(A){if(A.target){var H=Array.from(_.Va(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(A.target);if(H>=0){var k;this.quizOptions[H].optionText=(k=A.detail.value)!=null?k:""}}};
_.nP.Object.defineProperties(N9.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.editorInfo)==null?void 0:(H=A.addOptionButton)==null?void 0:H.buttonRenderer;k&&(k.style="STYLE_SUGGESTIVE",k.size="SIZE_SMALL",k.isDisabled=!this.isAllowedToAddOption);return(k==null?0:k.text)?k:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var A,H;return this.quizOptions.length<((H=(A=this.editorInfo)==null?void 0:A.maxQuizOptions)!=null?H:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(A){var H;return(H=A.optionText)==null?void 0:H.trim()})}}});
N9.prototype.updatePlaceholderTexts=N9.prototype.updatePlaceholderTexts;N9.prototype.dataChanged=N9.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],N9.prototype,"editorInfo",void 0);_.E([_.C(),_.l("design:type",Array)],N9.prototype,"quizOptions",void 0);_.E([_.C(),_.l("design:type",Object)],N9.prototype,"explanationPlaceholderText",void 0);_.E([_.$I(".option-selector-button"),_.l("design:type",Array)],N9.prototype,"optionSelectors",void 0);
_.E([_.s6("editorInfo"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N9.prototype,"dataChanged",null);_.E([_.G("editorInfo","isAllowedToAddOption","quizOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],N9.prototype,"addAnswerButton",null);_.E([_.G("editorInfo","quizOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],N9.prototype,"isAllowedToAddOption",null);
_.E([_.s6("quizOptions"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N9.prototype,"updatePlaceholderTexts",null);_.E([_.G("quizOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],N9.prototype,"hasCustomOptionText",null);_.E([_.O6({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],N9);
_.Q(N9,"ytd-backstage-quiz-editor-renderer",function(){if(IFw!==void 0)return IFw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return IFw=A},{mode:2});var YyQ;var PzG=(fh.FIRSTDAYOFWEEK+1)%7;var GzA;var FwA=[],XE0=0,Dqp=0;XE0=0;Dqp=24;if(.25*(Dqp-XE0)<0)GzA=[];else{for(var Syw=XE0;Syw<Dqp;Syw+=.25)FwA.push(Syw);GzA=FwA}var Czj=GzA.map(function(A){A=A*60*60;return{secondsSinceMidnight:A,text:(new Ic(7)).format(new Date(0,0,0,0,0,A))}});var Kww;var M9=function(){var A=_.a.apply(this,arguments)||this;A.skipNextOpenDialog=!1;A.errorMessage="";A.previousMonthLabel=_.$r("PREVIOUS_MONTH_LABEL");A.nextMonthLabel=_.$r("NEXT_MONTH_LABEL");return A};
_.I(M9,_.a);_.q=M9.prototype;_.q.attached=function(){var A=this,H=new MutationObserver(function(){A.JSC$16183_calendarMain.scrollHeight>0&&(H.disconnect(),A.calendarConfig&&A.calendarConfig.selectedDate&&A.scrollToDate())});
H.observe(this.JSC$16183_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){H.disconnect()},1E3)};
_.q.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.q.onDateTextChange=function(){if(this.calendarConfig){var A=this.validateDateText();A.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(A.details)):this.textbox.setAttribute("invalid","")}};
_.q.handleDayClick=function(A){A.model.day.date&&(this.commitDate(A.model.day.date),this.dialog.close())};
_.q.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var A=jKQ(this.calendarConfig.selectedDate,this.renderData);A!==void 0&&this.JSC$16183_calendarMain.scrollToIndex(A)}};
_.q.scrollToNextMonth=function(){this.JSC$16183_calendarMain.scrollToIndex(this.JSC$16183_calendarMain.firstVisibleIndex+1)};
_.q.scrollToPrevMonth=function(){this.JSC$16183_calendarMain.firstVisibleIndex===0&&this.JSC$16183_calendarMain.scrollTo(0,0);this.JSC$16183_calendarMain.scrollToIndex(this.JSC$16183_calendarMain.firstVisibleIndex-1)};
_.q.onFormSubmit=function(A){A.preventDefault();this.calendarConfig&&(A=this.validateDateText(),A.isValid&&(this.commitDate(A.details),this.dialog.close()))};
_.q.onEscOrClickingOutside=function(A){A=A.detail.path&&!!A.detail.path.length&&A.detail.path[0];if(A.classList.contains("ytd-calendar-date-picker")){A===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var H=0;H<this.dropdownButton.children.length;H++)this.dropdownButton.children[H]===A&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}A=this.textbox.value!==this.dateText;H=this.validateDateText();A&&H.isValid&&this.commitDate(H.details);this.dialog.close();this.textbox.value=
this.dateText};
_.q.commitDate=function(A){this.calendarConfig&&(this.set("calendarConfig.selectedDate",A),_.Ed(this.hostElement,"ytd-calendar-date-selected",A))};
_.q.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var A=this.textbox.value;var H=new Date;A=(new t9X(2)).parse(A,H,{validate:!0})===A.length?vDQ(H):void 0;if(!A)return this.errorMessage=_.$r("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};H=this.calendarConfig.start;var k=this.calendarConfig.end;if(mDX(A,H))return this.errorMessage=_.$r("ENTER_DATE_OR_LATER",{allowed_date:Lzv(H)}),{isValid:!1,details:void 0};if(mDX(k,A))return this.errorMessage=
_.$r("ENTER_DATE_OR_EARLIER",{allowed_date:Lzv(k)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:A}};
_.nP.Object.defineProperties(M9.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Lzv(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var A=this.calendarConfig,H=[],k=0;k<7;k++)H.push(fh.NARROWWEEKDAYS[(k+PzG)%7]);k=[];for(var d=new Date(A.start.year,A.start.month);d.getFullYear()<A.end.year||d.getFullYear()===A.end.year&&d.getMonth()<=A.end.month;){var W=k,z=W.push,u=d.getFullYear(),B=d.getMonth(),h=A,O=void 0,T=[],m=Object.freeze({extraCssClass:"invisible",debugClass:""}),J=new Date(u,B),g=vDQ(J);J=J.getDay();for(var v=vDQ(new Date);g.month===
B;){J!==PzG&&O||(O=Array.from({length:7}).fill(m),T.push(O));var y={date:{year:u,month:B,day:g.day},extraCssClass:"",debugClass:""};h.selectedDate&&y.date&&Ti8(y.date,h.selectedDate)&&(y.extraCssClass+=" selected");if(mDX(g,h.start)||mDX(h.end,g))y.extraCssClass+=" disabled";Ti8(g,v)&&(y.extraCssClass+=" today");y.extraCssClass=y.extraCssClass.trim();O[(J-PzG+7)%7]=y;g=gDI(g);J=(J+1)%7}z.call(W,{weeks:T,monthLabel:fh.SHORTMONTHS[B]+" "+u,year:u,month:B,monthLabelExtraCssClass:T[0][2]===m?"shift-down-label":
""});d.setMonth(d.getMonth()+1)}return{months:k,daysOfWeekLabel:H}}}}});
M9.prototype.onEscOrClickingOutside=M9.prototype.onEscOrClickingOutside;M9.prototype.scrollToDate=M9.prototype.scrollToDate;_.E([_.C(),_.l("design:type",Object)],M9.prototype,"calendarConfig",void 0);_.E([_.C(),_.l("design:type",Object)],M9.prototype,"skipNextOpenDialog",void 0);_.E([_.C(),_.l("design:type",Object)],M9.prototype,"errorMessage",void 0);_.E([_.C(),_.l("design:type",Object)],M9.prototype,"previousMonthLabel",void 0);
_.E([_.C(),_.l("design:type",Object)],M9.prototype,"nextMonthLabel",void 0);_.E([_.ol("#textbox"),_.l("design:type",HTMLInputElement)],M9.prototype,"textbox",void 0);_.E([_.ol("#calendar-dialog"),_.l("design:type",Object)],M9.prototype,"dialog",void 0);_.E([_.ol("#calendar-main"),_.l("design:type",Object)],M9.prototype,"JSC$16183_calendarMain",void 0);_.E([_.ol("#date-picker"),_.l("design:type",HTMLElement)],M9.prototype,"dropdownButton",void 0);
_.E([_.G("calendarConfig.selectedDate"),_.l("design:type",String),_.l("design:paramtypes",[])],M9.prototype,"dateText",null);_.E([_.G("calendarConfig","calendarConfig.selectedDate"),_.l("design:type",Object),_.l("design:paramtypes",[])],M9.prototype,"renderData",null);_.E([_.fF("renderData","calendarConfig.selectedDate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],M9.prototype,"scrollToDate",null);
_.E([_.Ze("iron-overlay-canceled"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],M9.prototype,"onEscOrClickingOutside",null);_.E([_.h6({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],M9);
_.Q(M9,"ytd-calendar-date-picker",function(){if(Kww!==void 0)return Kww;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Kww=A},{mode:2});var aF0=_.$r("UTC_OFFSET_FORMAT",{utc_offset:(new Ic("Z")).format(new Date)}),ctj=(new Date).getTimezoneOffset()*-60,pEp=new Date,Qmw,VyA=jX(pEp.getTimezoneOffset());Qmw=gEw(L0k(VyA,pEp));var ERG=_.$r("LOCAL_TIME_GMT_LABEL",{gmt_text:Qmw.replace("+0","+").replace("-0","-").replace(":00","")}),nE=function(){var A=_.a.apply(this,arguments)||this;A.selectedTimeIndex=0;A.selectedTimezoneIndex=0;A.timeOfDayOptions=Czj;return A};
_.I(nE,_.a);_.q=nE.prototype;_.q.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var A=bzl();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=A,this.selectedTimeIndex=0;else{var H=yDl(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},A,{selectedDate:H.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(k){return k.secondsSinceMidnight===H.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.q.onDatePicked=function(A){this.selectedDate=A.detail};
_.q.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Ed(this.hostElement,"ytd-date-time-selection-cancelled")};
_.q.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var A=this.selectedDate;A=new Date(A.year,A.month,A.day);_.Ed(this.hostElement,"ytd-date-time-selection-update",Math.floor(A.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+A.getTimezoneOffset()*60))}};
_.q.getTimezoneFormat=function(A){return A.localizedDisplayText?A.localizedDisplayText:_.$r("TIMEZONE_FORMAT",{utc_offset_text:""+A.localizedUtcOffset,city_name:""+A.localizedName})};
_.q.updateSelectedTimeIndexFromBinding=function(A){this.selectedTimeIndex=A.detail.value};
_.q.updateSelectedTimezoneIndexFromBinding=function(A){this.selectedTimezoneIndex=A.detail.value};
_.nP.Object.defineProperties(nE.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data.timezoneOptions;var H={name:"Etc/Unknown",localizedName:_.$r("LOCAL_TIME_LABEL"),localizedUtcOffset:aF0,utcOffsetSec:""+ctj,localizedDisplayText:ERG};A?A.length&&A[0].name!==H.name&&(A[0].localizedDisplayText||(H.localizedDisplayText=""),A.unshift(H)):A=[H];return A}}},
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]}}});
nE.prototype.onDateTimeTimezoneChange=nE.prototype.onDateTimeTimezoneChange;nE.prototype.onDatePicked=nE.prototype.onDatePicked;nE.prototype.updateDefaultSelectedValue=nE.prototype.updateDefaultSelectedValue;_.E([_.C(),_.l("design:type",Object)],nE.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],nE.prototype,"calendarConfig",void 0);_.E([_.C(),_.l("design:type",Object)],nE.prototype,"selectedDate",void 0);_.E([_.C(),_.l("design:type",Object)],nE.prototype,"selectedTimeIndex",void 0);
_.E([_.C(),_.l("design:type",Object)],nE.prototype,"selectedTimezoneIndex",void 0);_.E([_.ol("#time-listbox"),_.l("design:type",Object)],nE.prototype,"timeListBox",void 0);_.E([_.ol("#timezone-listbox"),_.l("design:type",Object)],nE.prototype,"timezoneListBox",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],nE.prototype,"rendererStamperBehavior",void 0);_.E([_.G("data.timezoneOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],nE.prototype,"timeZones",null);
_.E([_.s6("data","timeZones"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nE.prototype,"updateDefaultSelectedValue",null);_.E([_.G("selectedTimezoneIndex","timeZones"),_.l("design:type",Object),_.l("design:paramtypes",[])],nE.prototype,"selectedTimezone",null);_.E([_.G("selectedTimeIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],nE.prototype,"selectedTime",null);
_.E([_.Ze("ytd-calendar-date-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],nE.prototype,"onDatePicked",null);_.E([_.fF("selectedTimezone","selectedTime","selectedDate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nE.prototype,"onDateTimeTimezoneChange",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],nE);
_.Q(nE,"ytd-date-time-picker-renderer",function(){if(YyQ!==void 0)return YyQ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return YyQ=A},{mode:1});var Uqk;var ZA=function(){var A=_.a.apply(this,arguments)||this;A.boundOnTapDismissButton=function(){A.dismissTapHandler()};
A.dismissButtonOverrides={size:"XS"};return A};
_.I(ZA,_.a);ZA.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}}}}}};
ZA.prototype.dismissTapHandler=function(){_.Ed(this.hostElement,"yt-backstage-attachment-dismissed")};
ZA.prototype.computeAttachmentType=function(A){return A?A.backstageImageRenderer?"image":A.videoRenderer?"video":"none":"none"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ZA.prototype,"attachmentPreview",void 0);_.E([_.C(),_.l("design:type",Object)],ZA.prototype,"dismissButton",void 0);_.E([_.C(),_.l("design:type",Object)],ZA.prototype,"boundOnTapDismissButton",void 0);
_.E([_.C(),_.l("design:type",Object)],ZA.prototype,"dismissButtonOverrides",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.l("design:type",String)],ZA.prototype,"attachmentType",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],ZA);
_.Q(ZA,"ytd-backstage-dismissable-attachment",function(){if(Uqk!==void 0)return Uqk;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Uqk=A},{mode:1});var lFi;var fE=function(){var A=_.a.apply(this,arguments)||this;A.selectedVideoId=void 0;A.picker=void 0;A.dismissButtonOverrides={size:"XS"};A.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return A};
_.I(fE,_.a);_.q=fE.prototype;_.q.onServiceRequestCompleted=function(A){A.stopPropagation()};
_.q.handleAddVideoPreviewAction=function(A){A=this.get("addVideoPreviewAction",A);this.onGetVideoPreviewSuccess(A)};
_.q.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}}}}}};
_.q.onLaunchVideoPicker=function(A){var H=this,k=_.PK(this.get("addVideoLinkAction.title",A)),d=this.get("addVideoLinkAction.onePickHostId",A);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",A);d&&(this.picker||(k=_.V8G(_.d9l(d).setTitle(k).addView(acp()).addView(Kbw()),function(W){H.onPickVideo(W)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",A)||k.addView("youtube"),this.picker=k.build()),this.picker.setVisible(!0))};
_.q.onPickVideo=function(A){if(A)if(A.action==="cancel")_.Ed(this.hostElement,"yt-video-link-button-cancel");else if(A.action==="picked"){A=A.docs;if(!A||A.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(A=(A==null?0:A.length)?A[0]:void 0)?A.id:void 0;this.setVideoPreview()}};
_.q.setVideoPreview=function(){var A=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){A.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.q.onGetVideoPreviewSuccess=function(A){if(A&&A.videoPreview&&A.cancelButton)this.videoPreview=A.videoPreview,this.cancelButton=A.cancelButton,_.Ed(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.q.onGetVideoPreviewError=function(){this.cancel()};
_.q.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Ed(this.hostElement,"yt-video-link-cancel")};
_.q.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
fE.prototype.onServiceRequestCompleted=fE.prototype.onServiceRequestCompleted;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],fE.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],fE.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],fE.prototype,"videoPreview",void 0);_.E([_.C(),_.l("design:type",Object)],fE.prototype,"cancelButton",void 0);_.E([_.C(),_.l("design:type",Object)],fE.prototype,"getVideoPreviewCommand",void 0);_.E([_.C(),_.l("design:type",Object)],fE.prototype,"dismissButtonOverrides",void 0);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],fE.prototype,"onServiceRequestCompleted",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],fE);
_.Q(fE,"ytd-backstage-video-link-attachment",function(){if(lFi!==void 0)return lFi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return lFi=A},{mode:1});var tyZ;var NJk;var MyJ;var wB=function(){return _.a.apply(this,arguments)||this};
_.I(wB,_.a);wB.prototype.dataChanged=function(){this.active=!1};
wB.prototype.onTap=function(){_.Ed(this.hostElement,"yt-select-emoji-suggestion",this.data)};
wB.prototype.identity=function(A){return A};
_.nP.Object.defineProperties(wB.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d;if((A=this.data)==null?0:(H=A.image)==null?0:(k=H.thumbnails)==null?0:(d=k[0])==null?0:d.url)return A=this.data.image.thumbnails[0].url,A.startsWith("data:image/svg+xml")?lm(A):_.fx(A)}}});
wB.prototype.dataChanged=wB.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],wB.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],wB.prototype,"active",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wB.prototype,"dataChanged",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],wB.prototype,"imageSrc",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],wB);
_.Q(wB,"ytd-emoji-suggestion",function(){if(MyJ!==void 0)return MyJ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return MyJ=A},{mode:1});var nRN=/.*([:@#].*?)$/,oB=function(){var A=_.a.apply(this,arguments)||this;A.suggestions=[];A.suggestionIndex=-1;A.JSC$16211_lastSuggestionRange=null;return A};
_.I(oB,_.a);_.q=oB.prototype;_.q.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.q.getSuggestions=function(A){var H=[],k=msj(this.emojiManager,A.substr(0,3));if(k)for(var d in k)if(d.toLocaleLowerCase().indexOf(A)===0){var W=k[d];if(W&&W.emojiId){W=vf(this.emojiManager,W.emojiId);var z=void 0,u=void 0,B=void 0,h=void 0,O=((z=W)==null?0:z.isCustomEmoji)?(u=W)==null?void 0:(B=u.shortcuts)==null?void 0:B[0]:(h=W)==null?void 0:h.emojiId;z=void 0;H.push({suggestion:{image:(z=W)==null?void 0:z.image,alt:O,text:d}});if(H.length>=64)break}}return H?H.sort(function(T,m){return m.suggestion.text<
T.suggestion.text?-1:m.suggestion.text===T.suggestion.text?0:1}):null};
_.q.insertSuggestion=function(A){_.Ed(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16211_lastSuggestionRange,text:A.alt});this.dropdown.opened=!1};
_.q.updateSuggestionsAtCaret=function(A){this.updateSuggestions(A,this.retrieveTextBeforeRange(A))};
_.q.offsetStartOfRangeBy=function(A,H){A.startOffset>=H&&A.setStart(A.startContainer,A.startOffset-H)};
_.q.updateSuggestions=function(A,H){var k=this;this.JSC$16211_lastSuggestionRange&&(this.JSC$16211_lastSuggestionRange.detach(),this.JSC$16211_lastSuggestionRange=null);if((H=nRN.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2||H===":_")&&(this.offsetStartOfRangeBy(A,H.length),this.JSC$16211_lastSuggestionRange=A,(A=this.getSuggestions(H))&&A.length)){this.suggestions=A;_.No(this,function(){k.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(A.length-1);return}this.dropdown.opened=!1};
_.q.onKeyDown=function(A){if(this.dropdown.opened)switch(A.key){case "Escape":this.dropdown.opened=!1;A.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);A.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);A.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),A.preventDefault()}};
_.q.onKeyUp=function(A,H){switch(A.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(H);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(H)}};
_.q.onKeyPress=function(A){A.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),A.preventDefault())};
_.q.changeSuggestionIndex=function(A){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(A+this.suggestions.length)%this.suggestions.length,A=this.dropdownContent.children[this.suggestionIndex],A.active=!0,this.dropdownContent.scrollTop=A.offsetTop)};
_.q.retrieveTextBeforeRange=function(A){var H=A.startContainer;return H&&H.nodeType===Node.TEXT_NODE?H.textContent.substr(0,A.startOffset):""};
oB.prototype.onKeyPress=oB.prototype.onKeyPress;oB.prototype.onKeyUp=oB.prototype.onKeyUp;oB.prototype.onKeyDown=oB.prototype.onKeyDown;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Array)],oB.prototype,"suggestions",void 0);_.E([_.C(),_.l("design:type",_.bV)],oB.prototype,"emojiManager",void 0);_.E([_.C(),_.l("design:type",Number)],oB.prototype,"verticalSuggestionsOffset",void 0);
_.E([_.ol("#dropdown"),_.l("design:type",Object)],oB.prototype,"dropdown",void 0);_.E([_.ol("#dropdown-content"),_.l("design:type",HTMLDivElement)],oB.prototype,"dropdownContent",void 0);_.E([_.Ze("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],oB.prototype,"onKeyDown",null);_.E([_.Ze("keyup"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent,Range]),_.l("design:returntype")],oB.prototype,"onKeyUp",null);
_.E([_.Ze("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],oB.prototype,"onKeyPress",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-emoji-input"})],oB);
_.Q(oB,"ytd-emoji-input",function(){if(NJk!==void 0)return NJk;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return NJk=A},{mode:2});var Zaw;var $F=function(){var A=_.a.apply(this,arguments)||this;A.hasMaxOptions=!1;return A};
_.I($F,_.a);_.q=$F.prototype;_.q.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.q.setPrefilledChoices=function(A){var H=this;this.set("pollOptions",[]);var k;for(k=0;k<Math.min(A.length,this.data.maxPollOptions);k++)this.push("pollOptions",A[k].substring(0,this.data.maxPollOptionChars));for(;k<this.data.minPollOptions;k++)this.push("pollOptions","");this.hasMaxOptions=k>=this.data.maxPollOptions;_.No(this,function(){for(var d=H.pollOptions,W=_.Va(H.hostElement).querySelectorAll(".poll-option-input"),z=0;z<W.length;z++)W[z].value=d[z]})};
_.q.focusChanged=function(){_.NH(this.hostElement)};
_.q.onInput=function(){var A=this;_.vW(this,"onInput",function(){A.isValid()?_.Ed(A.hostElement,"yt-commentbox-post-enable"):_.Ed(A.hostElement,"yt-commentbox-post-disable")},300)};
_.q.setPollOptions=function(){var A=[],H,k=((H=this.data)==null?0:H.minPollOptions)?this.data.minPollOptions:0;for(H=0;H<k;H++)A.push("");return A};
_.q.addPollOption=function(){var A=this;_.Ed(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.IE.addLowPriorityJob(function(){var H;(H=_.Va(A.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||H.focus()})};
_.q.onRemovePollOption=function(A){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Ed(this.hostElement,"yt-poll-attachment-dismiss")):(A=this.repeat.indexForElement(A.target.parentNode),A!==null&&(this.splice("pollOptions",A,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Ed(this.hostElement,"yt-commentbox-post-enable"))))};
_.q.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.q.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var A=0,H=this.pollOptions.length;A<H;A++)if(this.pollOptions[A].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.q.getPollOptions=function(){return this.pollOptions};
_.q.setPollOptionsFromInputs=function(){for(var A=_.Va(this.hostElement).querySelectorAll(".poll-option-input"),H=0;H<A.length;H++)this.pollOptions[H]=A[H].value.trim()};
_.q.clearPollOptions=function(){var A=_.Va(this.hostElement).querySelectorAll(".poll-option-input");A=_.r(A);for(var H=A.next();!H.done;H=A.next())H.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.q.getSimpleString=function(A){return _.PK(A)};
_.q.updateValueFromBinding=function(A){if(A.target&&this.pollOptions){var H=Array.from(_.Va(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(A.target);if(H>=0){var k;this.pollOptions[H]=(k=A.detail.value)!=null?k:"";this.notifyPath("pollOptions."+H)}}};
$F.prototype.dataChanged=$F.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],$F.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$F.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Array)],$F.prototype,"pollOptions",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$F.prototype,"hasMaxOptions",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],$F.prototype,"enableCreationBox",void 0);
_.E([_.ol("#repeat"),_.l("design:type",BW)],$F.prototype,"repeat",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$F.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-poll-attachment"})],$F);
_.Q($F,"ytd-poll-attachment",function(){if(Zaw!==void 0)return Zaw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Zaw=A},{mode:2});var fFQ;var wEw;var oRN;var $qA;var AC=function(){return _.a.apply(this,arguments)||this};
_.I(AC,_.a);_.nP.Object.defineProperties(AC.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],AC.prototype,"rendererBehaviors",void 0);_.E([_.C(),_.l("design:type",Object)],AC.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],AC.prototype,"focused",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("focused"),_.l("design:type",Object),_.l("design:paramtypes",[])],AC.prototype,"ariaSelected",null);_.E([_.h6({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],AC);
_.Q(AC,"yt-user-mention-suggestion-renderer",function(){if($qA===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;oRN===void 0&&(oRN=document.createElement("template"));var d=oRN;k.call(H,d.content.cloneNode(!0),A.content.firstChild);$qA=A}A=$qA;return A},{mode:2});var AHG;var H9p;var HH=function(){var A=_.a.apply(this,arguments)||this;A.focusedSuggestionIndex=-1;return A};
_.I(HH,_.a);_.q=HH.prototype;_.q.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.q.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.q.setFocusedSuggestionIndex=function(A){!this.data||!this.data.suggestions||A<0||A>=this.data.suggestions.length||(this.focusedSuggestionIndex=A,A=this.getSuggestionId(A),this._setFocusedSuggestionId(A))};
_.q.advanceSuggestion=function(A){this.focusedSuggestionIndex===-1||A!==-1&&A!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+A),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.q.ensureSuggestionVisible=function(A){A=this.getSuggestionId(A);A=_.Va(this.hostElement).querySelector("[id="+A+"]");A!=null&&(A.offsetTop<this.hostElement.scrollTop?A.scrollIntoView(!0):A.offsetTop+A.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&A.scrollIntoView(!1))};
_.q.getSuggestionId=function(A){return"user-mention-suggestion-"+A};
_.q.onSuggestionTap=function(A){var H=_.L(A.model.item,yBi);this.ytRendererBehavior.logExplicitClick(H);_.Ed(this.hostElement,"yt-user-mention-suggestion-selected",{data:H,index:A.model.index})};
_.q.onSuggestionMouseMove=function(A){A.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(A.model.index)};
_.q.isSuggestionFocused=function(A,H){return A===H};
_.q.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.q.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("focused-suggestion-id-changed",this.focusedSuggestionId))};
HH.prototype.focusedSuggestionIdChangedForBinding=HH.prototype.focusedSuggestionIdChangedForBinding;HH.prototype.onDomChange=HH.prototype.onDomChange;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],HH.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],HH.prototype,"focusedSuggestionIndex",void 0);_.E([_.C({readOnly:!0}),_.l("design:type",String)],HH.prototype,"focusedSuggestionId",void 0);
_.E([_.Ze("dom-change"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],HH.prototype,"onDomChange",null);_.E([_.fF("focusedSuggestionId"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HH.prototype,"focusedSuggestionIdChangedForBinding",null);_.E([_.h6({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],HH);
_.Q(HH,"yt-user-mention-suggestions-dropdown",function(){if(H9p===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;AHG===void 0&&(AHG=document.createElement("template"));var d=AHG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);H9p=A}A=H9p;return A},{mode:2});var sj=function(){var A=_.a.apply(this,arguments)||this;A.suggestionsResponse=null;A.activeMention=null;A.selectionChangeListener=A.onSelectionChange.bind(A);A.handlesEnabled=_.b("enable_handles_in_mention_suggest_posts");A.handlesInMentionSuggestionsEnabled=_.b("handles_in_mention_suggest_posts");A.zeroPrefixMentionSuggestionEnabled=_.b("enable_zero_prefix_mention_suggestion_web");A.pendingQuery=null;A.flowNonce=null;return A};
_.I(sj,_.a);_.q=sj.prototype;_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.q.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.q.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.q.hasSuggestions=function(A){return!!(A&&A.suggestions&&A.suggestions.length>0)};
_.q.onInput=function(){var A=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var H=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),k=this.activeMention.JSC$11667_getText().slice(-1)===" ",d=this.activeMention.JSC$11667_getText().slice(-2,-1)===" ",W="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11667_getText().slice(-2,
-1))>=0;W=this.zeroPrefixMentionSuggestionEnabled&&W;if(this.activeMention.isCollapsed()||(H||d||W)&&k)this.cancelActiveMention();else{var z=this.activeMention.JSC$11667_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.vW(this,"requestSuggestions",function(){A.requestSuggestions(z)},100)}}}};
_.q.onServiceRequestSent=function(A){A.stopPropagation()};
_.q.onServiceRequestCompleted=function(A){A.stopPropagation();A=A.detail.data;A.query&&(!this.pendingQuery||this.pendingQuery!==A.query)||!this.zeroPrefixMentionSuggestionEnabled&&A.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=A,this.hasSuggestions(A)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.q.onServiceRequestError=function(A){A.stopPropagation()};
_.q.onUserMentionSuggestionSelected=function(A){this.selectSuggestion(A.detail.data,A.detail.index)};
_.q.onSelectionChange=function(){if(this.activeMention){var A=_.kk(),H=this.activeMention.JSC$11667_containsRange(A);A=A&&this.containsHelper(this.dropdown,A.getContainer());H||A||this.cancelActiveMention()}};
_.q.containsHelper=function(A,H){var k;if(((k=window.ShadyDOM)==null?void 0:k.noPatch)===!0)return A.contains(H);for(;H;){if(H===A)return!0;H=H instanceof ShadowRoot?H.host:H.parentNode}return!1};
_.q.maybeStartSuggest=function(){var A=_.kk();if(A&&A.isCollapsed()){var H=A.JSC$11667_getStartNode(),k=A.JSC$11667_getStartOffset();if(H instanceof Text&&!(k<1)){var d=H.textContent;!(d=d&&d.charAt(k-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(d)<0||(this.activeMention=_.qn(H,k-1,A.JSC$11667_getEndNode(),A.JSC$11667_getEndOffset()),this.flowNonce=e1(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.q.updateActiveMention=function(){if(this.activeMention){var A=_.kk();A&&A.isCollapsed()&&(this.activeMention=_.qn(this.activeMention.JSC$11667_getStartNode(),this.activeMention.JSC$11667_getStartOffset(),A.JSC$11667_getEndNode(),A.JSC$11667_getEndOffset()))}};
_.q.requestSuggestions=function(A){if(this.activeMention){var H={suggestions_query:A};this.pendingQuery=A;_.tx(this.hostElement,[this.suggestionsEndpoint,H])}};
_.q.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()};
_.q.focusPreviousSuggestion=function(A){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),A.preventDefault())};
_.q.focusNextSuggestion=function(A){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),A.preventDefault())};
_.q.selectFocusedSuggestion=function(A){if(this.hasSuggestions(this.suggestionsResponse)){var H=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.L(H,yBi)&&(this.selectSuggestion(_.L(H,yBi),this.dropdown.focusedSuggestionIndex),A.preventDefault())}};
_.q.selectSuggestion=function(A,H){if(A){var k=this.activeMention;if(k){var d=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&A.handle?_.IM(d,"\u00a0\u2068@"+A.handle+"\u2069\u00a0"):this.handlesEnabled?_.IM(d,"\u00a0"+A.displayName+"\u00a0"):_.IM(d,"\u00a0@"+A.displayName+"\u00a0");A2(d,"/channel/"+A.channelId);d.classList.add("yt-formatted-string","yt-simple-endpoint");d.setAttribute("spellcheck","false");k.isCollapsed()||k.JSC$11667_removeContents();k.insertNode(d,!0);A=document.createTextNode(" ");
d.parentNode.insertBefore(A,d.nextSibling);window.getSelection().collapse(A,1);H={suggestionSelected:{suggestionIndex:H}};if(this.zeroPrefixMentionSuggestionEnabled){var W;H.suggestionSelected.isZeroPrefix=((W=this.suggestionsResponse)==null?void 0:W.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",H);this.cancelActiveMention();_.Ed(this.hostElement,"yt-mention-inserted")}}};
_.q.getPositionTarget=function(A){return A&&A.getBrowserRangeObject()};
_.q.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.q.onFocusedSuggestionIdChanged=function(A){var H=_.x8W(this.hostElement)[0];H&&(A.detail.value?H.setAttribute("aria-activedescendant",A.detail.value):H.removeAttribute("aria-activedescendant"))};
_.q.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.q.logGELEvent=function(A,H){A={eventType:A,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};H&&(A=Object.assign(A,H));_.yr("userMentionAutoCompleteBoxEvent",A)};
sj.prototype.onDomChange=sj.prototype.onDomChange;sj.prototype.onUserMentionSuggestionSelected=sj.prototype.onUserMentionSuggestionSelected;sj.prototype.onServiceRequestError=sj.prototype.onServiceRequestError;sj.prototype.onServiceRequestCompleted=sj.prototype.onServiceRequestCompleted;sj.prototype.onServiceRequestSent=sj.prototype.onServiceRequestSent;sj.prototype.onInput=sj.prototype.onInput;_.E([_.P(_.fo),_.l("design:type",Object)],sj.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],sj.prototype,"suggestionsEndpoint",void 0);_.E([_.C(),_.l("design:type",Object)],sj.prototype,"suggestionsResponse",void 0);_.E([_.C(),_.l("design:type",Object)],sj.prototype,"activeMention",void 0);_.E([_.ol("#dropdown"),_.l("design:type",Object)],sj.prototype,"dropdown",void 0);_.E([_.ol("#iron-dropdown"),_.l("design:type",Object)],sj.prototype,"ironDropdown",void 0);
_.E([_.Ze("input"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],sj.prototype,"onInput",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],sj.prototype,"onServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],sj.prototype,"onServiceRequestCompleted",null);
_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],sj.prototype,"onServiceRequestError",null);_.E([_.Ze("yt-user-mention-suggestion-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],sj.prototype,"onUserMentionSuggestionSelected",null);
_.E([_.Ze("dom-change"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],sj.prototype,"onDomChange",null);_.E([_.h6({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],sj);
_.Q(sj,"yt-user-mention-autosuggest-input",function(){if(wEw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;fFQ===void 0&&(fFQ=document.createElement("template"));var d=fFQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);wEw=A}A=wEw;return A},{mode:2});var km=null;
_.uy({is:"ytd-commentbox",_template:function(){if(tyZ!==void 0)return tyZ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tyZ=A},
behaviors:[_.lBI.YtHostElementBehavior,_.fo,_.nM.YtActionHandlerBehavior,_.ml.YtComponentBehavior,_.KM.YtRendererstamperBehavior,_.aCi.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(A,H){return _.Mw(A.entities,"aadcGuidelinesStateEntityPayload",H)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(A,H){return _.Mw(A.entities,"commentboxStateEntity",H)},
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 _.y5}},
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:_.b("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.b("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",_.nF(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(A){this.fire(A?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(A){this.set("submitButtonDisabled",void 0);this.clear();A&&this.computeIsEmojiButtonDisplayed_(A)&&(A=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&A.updateEmojiCategories()},
observePrefilledImage_:function(A,H,k){this.isValidPrefilledImage_(A,H,k)&&(this.prefilledAttachment_="image",this.prefilledImageData_=H,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(A,H){this.isValidPrefilledVideo_(A,H)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(A){A&&A.pollData&&A.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(A.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Mr();this.focus()},
detached:function(){document.removeEventListener("tap",_.nF(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(A){A=A.detail;A=A.isCustomEmoji?A.shortcuts[0]:A.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,A);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var A=_.kk();if(A){A=A.getBrowserRangeObject();for(var H=A.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return A;H=H.parentNode}}A=this.getEditableTextArea_();A=_.zy(A,A.childNodes.length);A.select();return A.getBrowserRangeObject()},
insertTextWithEmojis_:function(A,H,k){(H=this.emojiManager.createDocumentFragment(H,!0,!1,k===void 0?!0:k))&&H.childNodes.length!==0&&(A.collapsed||A.deleteContents(),k=H.lastChild,A.insertNode(H),_.Nb0(k).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var A=_.kk();if(A){var H=A.JSC$11667_getStartNode(),k=A.JSC$11667_getEndNode();if(Iif(H)&&Iif(k)){var d=A.JSC$11667_getStartOffset(),W;if(_.f6&&H.nodeType===Node.ELEMENT_NODE&&(W=_.aLG(H)))_.zy(W,0).select();else{W=UF(H)?H:_.Jj(H,UF);var z=UF(k)?k:_.Jj(k,UF);if(W||z)if(A.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){A=!0;d===H.length&&(A=!1);if(km==="end"||km==="right")A=!1;H=H.parentNode;A=[].concat(_.fV(H.parentNode.childNodes)).indexOf(H)+(A?0:1);_.zy(H.parentNode,
A).select()}}else W?W.previousSibling&&W.previousSibling.length>0?_.qn(k,A.JSC$11667_getEndOffset(),W.previousSibling,W.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),W.parentNode.insertBefore(H,W),_.qn(k,A.JSC$11667_getEndOffset(),H,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.qn(H,A.JSC$11667_getStartOffset(),z.nextSibling,1).select():(k=document.createTextNode("\u200b"),z.parentNode.insertBefore(k,z.nextSibling),_.qn(H,A.JSC$11667_getStartOffset(),k,k.length).select()));
km=null}}else km=null}else km=null},
leftKeyPressed_:function(){km="left"},
rightKeyPressed_:function(){km="right"},
endKeyPressed_:function(){km="end"},
maybeDeleteChip_:function(){var A=DDV(!0);if(A){var H=_.kk(),k=H.JSC$11667_getStartNode();H=H.JSC$11667_getStartOffset();_.WN(k,H,A,A.childNodes.length).select()}},
maybeBackspaceChip_:function(){var A=DDV(!1);if(A){var H=_.kk(),k=H.JSC$11667_getStartNode();H=H.JSC$11667_getStartOffset();_.WN(k,H,A,0).select()}},
maybeBackspaceChipWordMode_:function(A){var H=_.kk();if(H.isCollapsed()){var k=H.JSC$11667_getStartNode();H=H.JSC$11667_getStartOffset();var d=SSX(k,H,!0);d&&(_.WN(k,H,d,0).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(A){var H=_.kk();if(H.isCollapsed()){var k=H.JSC$11667_getStartNode();H=H.JSC$11667_getStartOffset();var d=SSX(k,H,!1);d&&(_.WN(k,H,d,d.childNodes.length).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
onTap_:function(A){if(!A.defaultPrevented&&(A.currentTarget.tagName==="YTD-COMMENTBOX"&&UF(A.target)&&A.preventDefault(),this.isEmojiPickerDisplayed)){var H=this.$$("#emojis"),k=this.$$("#emoji-button"),d=this.getEditableTextArea_();if((A=A.path?A.path:A.composedPath&&A.composedPath())&&!A.includes(H)&&!A.includes(d)&&!A.includes(k))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(A,H,k){return A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H!==void 0&&H.encryptedBlobId!==null&&H.sourceExternalVideoId!==null&&k!==void 0&&k.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(A,H){return A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!H&&!!H.videoRenderer&&!!H.videoRenderer.videoId},
isValidPrefilledAttachment_:function(A,H,k){return this.isValidPrefilledImage_(A,H,k)||this.isValidPrefilledVideo_(A,k)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.b("enable_multi_image_post_creation")){var A=this.$$("ytd-backstage-multi-image-select-renderer");A&&A.hasImages()&&A.cancel()}else(A=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&A.cancel();(A=this.$["poll-attachment"])&&this.hasPoll_&&A.clearPollOptions();(A=this.$["image-poll-attachment"])&&this.hasImagePoll_&&A.resetPollOptions();(A=this.$["quiz-attachment"])&&this.hasQuiz_&&A.resetQuizOptions();
(A=this.$["video-link-attachment"])&&this.hasVideo_&&A.cancel();(A=this.$["access-restrictions-selector"].firstElementChild)&&A.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 _.Va(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Va(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(A,H){A=P0l(A,this.emojiManager,H).cloneNode(!0);for(H=A.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var k=_.gS();_.tBw(k,H);H=k.nextSibling;break;case "DIV":(k=H.lastChild)&&H.nextSibling&&_.yZ(_.gS(),k);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.vJ(_.gS(),H);k&&k.nodeName==="BR"&&_.Aw(k);k=H;H.hasChildNodes()?(H=H.firstChild,
_.NWA(k)):(H=H.nextSibling,_.Aw(k));break;default:H=H.nextSibling}return C0I(A)},
onAddImageError_:function(A){A.stopPropagation();this.errorMessage_=_.Yu(A.detail)},
setTextAreaValue_:function(A){A||(A="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof A==="string"&&(A={runs:[{text:A}]});H.text=A},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();km=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var A=this.getEditableTextArea_();A&&(_.zy(A,A.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.pZ("HTML_DIR")==="rtl"){var A=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";A.setAttribute("dir",H)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var A;return otl((A=this.$["quiz-attachment"])==null?void 0:A.getExplanationText())||otl(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var A=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(A=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(A,!0);this.updateCharCount_();this.setSubmitButton_();A=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=A.scrollHeight>A.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var A=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:A})},
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(A){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(A)},
onPasteEmoji_:function(A){A.preventDefault();A.stopImmediatePropagation();A=A.clipboardData.getData("text/plain");this.insertText_(A,!1,!1)},
insertText_:function(A,H,k){H=H===void 0?!1:H;k=k===void 0?!0:k;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&A){var d=this.getInputRange_().cloneRange();this.emojiManager&&d&&(H&&this.emojiInput.offsetStartOfRangeBy(d,A.length),this.insertTextWithEmojis_(d,A,k),YSf(this.getEditableTextArea_().lastChild)||(d=this.getInputRange_().cloneRange()),d&&(this.emojiInput.updateSuggestions(d,A),this.updateSuggestionOffset_(d)))}},
setSubmitButton_:function(){if(this.data){var A=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",H=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(A||H){var k=this.getTextAreaValue().trim();H=k===this.previousText_;k=!k||this.aboveCharLimit_;A&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(k=this.aboveCharLimit_);this.submitButtonDisabled=
H||k||!this.getTextLength();A&&_.b("enable_post_scheduling")&&(this.submitButtonDisabled=H&&!this.scheduledPublishTimeSec_||k)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.PK,computeCreationBoxClass_:function(A){return A?"focused":"not-focused"},
computeFooterMessageClass_:function(A,H){return H?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(A,H){return H?H:A},
computeFooterMessageHidden_:function(A,H){return!H&&!A},
computePlaceholderText_:function(A,H,k){return(k==="video"||k==="image")&&(A==null?0:A.prefilledPlaceholderText)?A==null?void 0:A.prefilledPlaceholderText:H==="poll"||H==="image-poll"?A==null?void 0:A.pollPostPlaceholderText:H==="quiz"?A==null?void 0:A.quizPostPlaceholderText:H==="image"?A==null?void 0:A.imagePostPlaceholderText:A==null?void 0:A.placeholderText},
computeHideAttachmentButtons_:function(A,H,k,d){return A===void 0?!1:d&&this.getSimpleString(d)===this.getSimpleString(A.rateLimitErrorMessage)?!0:H!=="none"||k!=="none"||!A.videoLinkButton&&!A.pollButton&&!A.imagePollButton&&!A.quizButton&&!A.imageButton},
computeHideDismissableAttachment_:function(A){return A!=="image"&&A!=="video"},
computeHasVideo_:function(A){return A==="video"},
computeHasImage_:function(A){return A==="image"},
computeHasPoll_:function(A){return A==="poll"},
computeHasImagePoll_:function(A){return A==="image-poll"},
computeHasQuiz_:function(A){return A==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(A){return A&&A.backstageAttachment?A.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!A.backstageAttachment.quizRenderer&&!A.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(A){if(this.isValidPrefilledAttachment_(A.purpose,A.prefilledImageData,A.backstageAttachment))return A.backstageAttachment},
computeEditAttachment_:function(A){if(this.computePrefilledContent_(A)===void 0)return A.backstageAttachment},
computeAuthorThumbnailDimension_:function(A,H){return A&&!H?24:40},
computeImageUploadEndpoint_:function(A){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",A)},
computeRateLimitErrorCommands_:function(A){var H,k;return A==null?void 0:(H=A.advancedTierFeatures)==null?void 0:(k=H.rateLimit)==null?void 0:k.rateLimitCommands},
computeIsBackstageComment_:function(A){return!(!A||A!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(A){return this.get("submitButton.buttonRenderer.serviceEndpoint",A)||this.get("replyButton.buttonRenderer.serviceEndpoint",A)||this.get("postButton.buttonRenderer.serviceEndpoint",A)},
computeSubmitButtonOverride:function(){if(_.b("web_modern_buttons")){var A,H;return{segmentedPosition:this.dropdownSchedulePanel_||!((A=this.data)==null?0:(H=A.postOptionsMenu)==null?0:H.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.b("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(A,H){A=this.get("submitButton.buttonRenderer",A)||this.get("replyButton.buttonRenderer",A)||this.get("postButton.buttonRenderer",A);H&&(A=H);A&&(A=Object.assign({},A),A.serviceEndpoint=void 0,A.isDisabled=this.submitButtonDisabled);return A},
computeHasExternalLinksAccess_:function(A){if(_.b("enable_rfa_external_links")){var H,k,d;return(d=A==null?void 0:(H=A.advancedTierFeatures)==null?void 0:(k=H.externalLinks)==null?void 0:k.allowExternalLinks)!=null?d:!0}return!0},
computeIsEmojiButtonDisplayed_:function(A){return A.emojiButton&&A.emojiPicker&&A.emojiPicker.emojiPickerRenderer&&A.emojiPicker.emojiPickerRenderer.categories?A.emojiPicker.emojiPickerRenderer.categories.find(function(H){return H.emojiPickerCategoryRenderer?H.emojiPickerCategoryRenderer.emojiIds&&H.emojiPickerCategoryRenderer.emojiIds.length>0:H.emojiPickerUpsellCategoryRenderer?H.emojiPickerUpsellCategoryRenderer.emojis&&H.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(A){return A.charLimit?A.charLimit:null},
computeDropdownSchedulingPanel_:function(A,H){if(A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H)return H},
computeInlineSchedulingPanel_:function(A,H){if(A==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&H)return H},
computeHideAuthorThumbnail_:function(A,H){return A||this.computeUseIdentityChip_(H)},
computeHideIdentityChipRenderer_:function(A,H){return A||!this.computeUseIdentityChip_(H)},
computeUseIdentityChip_:function(A){return!!A&&!!A.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(A){var H,k,d,W;(A==null?0:(H=A.detail)==null?0:(k=H.endpoint)==null?0:k.ypcGetOffersEndpoint)||(A==null?0:(d=A.detail)==null?0:(W=d.endpoint)==null?0:W.ypcOffersEndpoint)?(A.stopPropagation(),_.tx(this,[A.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",A)&&(A.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(A){this.addedAttachment="video";this.selectedVideoId_=A.detail.videoId},
commentboxStateEntityChanged_:function(A){var H=this;(A==null?void 0:A.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(A==null?void 0:A.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){H.focus()})},
onYtServiceRequestSent_:function(A,H){if(H.actions)for(A=_.r(H.actions),H=A.next();!H.done;H=A.next())H.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(A){this.isLoading=!1;var H=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",A),k,d,W,z=A==null?void 0:(k=A.detail)==null?void 0:(d=k.data)==null?void 0:(W=d.actionResult)==null?void 0:W.commentboxStateEntityKey;if(H)this.errorMessage_=H;else if(z){var u;this.dismissData_=A==null?void 0:(u=A.detail)==null?void 0:u.data;this.commentboxStateKey_=z}else{this.clear();var B;this.fire("yt-commentbox-dismiss",A==null?void 0:(B=A.detail)==
null?void 0:B.data)}},
onYtServiceRequestError_:function(A){A.stopPropagation();this.isLoading=!1;var H,k;if(((H=this.data)==null?void 0:H.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((k=this.data)==null?void 0:k.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(H=this.get("detail.error.args",A)||[],H.length>1&&H[1].message){this.handlePostsServiceRequestError_(H[1].message);return}(A=this.get("detail.error.message",A))?this.errorMessage_=this.data.errorMessage||_.Yu(A):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(A){if(_.b("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var H=_.r(this.rateLimitErrorCommands),k=H.next();!k.done;k=H.next())if(k=k.value,k.errorLabel===A){_.ZS(k.command,this.hostElement);return}this.errorMessage_=_.Yu(A)},
submitIfNotBackstagePost_:function(A){if(!this.isBackstagePost)this.onSubmit_(A)},
onSubmit_:function(A){var H=this,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X;return _.e(function(D){switch(D.nextAddress){case 1:A.stopPropagation();if(!H.serviceEndpoint||!H.isValidInput_())return D.return();if(H.shouldShowPostAadcNotice_())return H.showPostAadcNotice_(),D.return();if(H.shouldShowCommentAadcNotice_())return H.showCommentAadcNotice_(),D.return();if(!(H.$$("ytd-backstage-multi-image-select-renderer")&&H.hasImage_&&_.b("enable_multi_image_post_creation"))){D.jumpTo(2);break}k=H.$$("ytd-backstage-multi-image-select-renderer");
return D.yield(k.getAllUploadStatuses(),3);case 3:d=D.yieldResult;if(!d)return D.return();W=_.r(d);for(z=W.next();!z.done;z=W.next())if(u=z.value,u.encryptedBlobId===void 0)return H.isLoading=!1,h=B=void 0,H.errorMessage_=(h=(B=H.imageUploadEndpoint_)==null?void 0:B.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?h:null,D.return();return D.return(H.submitForm_(void 0,void 0,void 0,void 0,k.images,H.taggedVideoId_));case 2:if(!H.hasImagePoll_||!H.$["image-poll-attachment"]){D.jumpTo(4);
break}return D.yield(H.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:O=D.yieldResult;if(!O)return D.return();T=_.r(O);for(m=T.next();!m.done;m=T.next())if(J=m.value,!J.encryptedBlobId)return H.isLoading=!1,g=void 0,H.errorMessage_=(g=H.data.errorMessage)!=null?g:null,D.return();case 4:y=(v=H.$$("ytd-backstage-image-select-renderer"))&&v.uploadPromise(),X=H.getSharedPostId_(),y?y.then(function(){H.submitForm_.apply(H,_.fV(_.o7.apply(0,arguments)))}).catch(function(K){H.isLoading=!1;
H.errorMessage_=_.Yu(K.message)}):H.selectedVideoId_?H.submitForm_(void 0,H.selectedVideoId_):H.prefilledAttachment_==="image"?H.submitForm_(H.prefilledImageData_.encryptedBlobId,void 0,void 0,H.prefilledImageData_.sourceExternalVideoId,void 0,H.taggedVideoId_):H.prefilledAttachment_==="video"?H.submitForm_(void 0,H.data.backstageAttachment.videoRenderer.videoId):X?H.submitForm_(void 0,void 0,X):H.taggedVideoId_!==void 0?H.submitForm_(void 0,void 0,void 0,void 0,void 0,H.taggedVideoId_):H.submitForm_(),
_.EN(D)}})},
openSchedulingPanel:function(A){A&&A.scheduleButton&&A.scheduleButton.buttonRenderer&&(this.scheduleButton_=A.scheduleButton.buttonRenderer);A&&A.dateTimePicker&&this.set("data.schedulingDateTimePicker",A.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(A){A.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(A){A.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(A){A.stopPropagation();A.detail.alertMessage&&(this.alertMessage_=A.detail.alertMessage)},
onImageSelected_:function(A){A.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(A){A.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(A){A.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(A.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(A){A.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(A){var H=this.$["video-link-attachment"];H&&H.onLaunchVideoPicker(A)},
onAttachmentDismiss_:function(A){A.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"&&_.b("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.b("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 A;if(this.addedAttachment==="image-poll"&&((A=this.$["image-poll-attachment"])==null||!A.isValid()))return!1;var H;if(this.addedAttachment==="quiz"&&((H=this.$["quiz-attachment"])==null||!H.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;A=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(A=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")A=!0;return A||!!this.getTextAreaValue().trim()},
submitForm_:function(A,H,k,d,W,z){var u=this.getTextAreaValue().trim(),B={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&u===this.previousText_&&(u=void 0);u!==void 0&&(B.comment_text=u);this.isLoading=!0;z!=void 0&&(B.tagged_video_id=z);A?(B.image_blob_id=A,this.imagePreviewCoordinates_&&(B.image_preview_coordinates=this.imagePreviewCoordinates_)):H?B.attached_video_id=H:k?B.shared_post_id=k:W&&W.length>0&&(B.images_data=W.map(function(h){return{encryptedBlobId:h.encryptedBlobId,
previewCoordinates:h.previewCoordinates}}));
d&&(B.source_video_id=d);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(B.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(B.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(B.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(B.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.b("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(B.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.tx(this,[this.serviceEndpoint,B])},
onIsInputFocusChanged_:function(A,H){A?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(A){var H=this.getEditableTextArea_();[].concat(_.fV(A.dataTransfer.items)).forEach(function(k){k.kind==="string"&&k.type.match("^text/plain")&&k.getAsString(function(d){H.appendChild(document.createTextNode(d))})});
A.preventDefault()},
preventDefault_:function(A){A.preventDefault()},
onSuggestionInsert_:function(A){this.insertTextWithEmojis_(A.detail.range,A.detail.text)},
onEmojiSuggestionClick_:function(A){this.emojiInput.insertSuggestion(A.detail)},
computeSubmitButtonClass_:function(A,H){return!H||A?"":"with-options"},
updateSuggestionOffset_:function(A){if(this.emojiInput&&_.Va(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,k=A.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-k)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;A=A.getBoundingClientRect().left-H;_.Va(this.emojiInput).querySelector("#dropdown").style.marginLeft=A+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(A){if(_.b("enable_post_scheduling")&&this.data&&this.data.purpose){A=A.detail;if(Math.floor(Date.now()/1E3)>=A)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var H=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(H)||H!==A?this.scheduledPublishTimeSec_=A:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=A;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var A=["image-button","image-poll-button","poll-button","quiz-button"];_.b("auto_convert_posts_video_tag")||A.push("video-link-button");return A},
getButtonRenderer:function(A,H){if(A)switch(H){case "video-link-button":var k;return((k=A.videoLinkButton)==null?void 0:k.buttonRenderer)||void 0;case "image-button":var d;return((d=A.imageButton)==null?void 0:d.buttonRenderer)||void 0;case "poll-button":var W;return((W=A.pollButton)==null?void 0:W.buttonRenderer)||void 0;case "image-poll-button":var z;return((z=A.imagePollButton)==null?void 0:z.buttonRenderer)||void 0;case "quiz-button":var u;return((u=A.quizButton)==null?void 0:u.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var A;return(A=this.data)==null||!A.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var A,H;return!((A=this.data)==null||!A.openAadcDialog)&&!((H=this.aadcGuidelinesState_)==null||!H.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.pZ("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var A;((A=this.data)==null?0:A.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.D$("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(A){A.clickTrackingParams&&_.A7().clickCommand(A);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Ud(this,"yt-close-popup-action")},
onHideIdentityChip:function(A){var H;this.set("data.placeholderText",(H=A.hideIdentityChipAction)==null?void 0:H.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var dm=function(){var A=_.a.apply(this,arguments)||this;A.isOpen=!1;A.modern=_.b("web_modern_buttons");A.roundedContainer=!0;A.dropdownButtonOverride=_.b("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;A.inPopupContainer=!1;A.isCommentboxLoading=!1;var H=["image-button","image-poll-button","poll-button"];_.b("enable_quiz_creation")&&H.push("quiz-button");_.b("auto_convert_posts_video_tag")||H.push("video-link-button");A.attachmentButtonIds=H;A.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 A};
_.I(dm,_.a);_.q=dm.prototype;_.q.computeButtonOverride=function(){var A;return((A=this.data)==null?0:A.postOptionsMenu)&&_.b("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.q.configureRendererStamper=function(){var A={"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]]"}}}}};_.b("auto_convert_posts_video_tag")||(A["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return A};
_.q.ready=function(){var A=this,H=_.Va(this.hostElement).querySelector("#placeholder-area"),k=function(d){A.onOpen(d)};
H.addEventListener("tap",k);H.addEventListener("keypress",k)};
_.q.showButtonEduTooltip=function(){var A,H,k,d,W,z,u;if(_.b("enable_quiz_creation")&&((A=this.data)==null?0:(H=A.quizButton)==null?0:(k=H.buttonRenderer)==null?0:(d=k.hint)==null?0:(W=d.hintRenderer)==null?0:(z=W.content)==null?0:(u=z.bubbleHintRenderer)==null?0:u.text)&&(_.NE.getInstance(),A=ME(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(A==null?void 0:
A.length)>0)){this.ytComponentBehavior.resolveCommand(A[0],{form:{element:this.quizButton}});return}var B;if((B=this.data)==null?0:B.imagePollButtonTooltip)if(_.NE.getInstance(),B=ME(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(B==null?void 0:B.length)>0){this.ytComponentBehavior.resolveCommand(B[0],{form:{element:this.imagePollButton}});return}var h;_.b("enable_multi_image_post_creation")&&
((h=this.data)==null?0:h.multiImageButtonTooltip)&&(_.NE.getInstance(),h=ME(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(h==null?void 0:h.length)>0&&this.ytComponentBehavior.resolveCommand(h[0],{form:{element:this.imageButton}}))};
_.q.onCreatePollAction=function(A){_.L(A,lPp)&&(this.JSC$16266_commentbox.addedAttachment="poll",this.openDialog())};
_.q.onAddVideoLinkAction=function(A){if(_.L(A,QnA))this.JSC$16266_commentbox.onAddVideoLink(A)};
_.q.onShowSchedulingPanelCommand=function(A){(A=_.L(A,iiJ))&&this.openSchedulingPanel(A)};
_.q.onCreateImagePollCommand=function(A){_.L(A,mcw)&&(this.JSC$16266_commentbox.openImagePollComponent(),this.openDialog())};
_.q.onCreateQuizCommand=function(A){_.L(A,J0p)&&(this.JSC$16266_commentbox.openQuizComponent(),this.openDialog())};
_.q.openSchedulingPanel=function(A){_.b("enable_post_scheduling")&&(this.openDialog(),this.JSC$16266_commentbox.openSchedulingPanel(A))};
_.q.onCreateCommentAction=function(A){this.get("createCommentAction.contents",A)&&(this.JSC$16266_commentbox.clear(),this.closeDialog())};
_.q.onOpen=function(A){A instanceof KeyboardEvent&&A.type==="keypress"&&A.keyCode!==13&&A.keyCode!==32||(this.data.prepareAccountEndpoint?_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.q.onYtCommentboxDismiss=function(){this.closeDialog()};
_.q.onYtCommentboxLoadingStart=function(A){A.stopPropagation();this.isCommentboxLoading=!0};
_.q.onYtCommentboxLoadingEnd=function(A){A.stopPropagation();this.isCommentboxLoading=!1};
_.q.onYtVideoLinkButtonCancel=function(A){A.stopPropagation();this.onOpen(A)};
_.q.onYtVideoLinkSelected=function(A){A.stopPropagation();this.onOpen(A)};
_.q.onIronSelect=function(A){A.stopPropagation();A.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=A.detail.item.value&&(this.accessRestriction?(this.accessRestriction=A.detail.item.value,this.onOpen(A)):this.accessRestriction=A.detail.item.value)};
_.q.onYtNavigate=function(A){this.get("detail.endpoint.backstageImageUploadEndpoint",A)&&(this.JSC$16266_commentbox.addedAttachment="image",this.JSC$16266_commentbox.submitButtonDisabled=!0,this.onOpen(A))};
_.q.onRequestSent=function(A){for(var H=_.r(A.detail),k=H.next();!k.done;k=H.next())_.L(k.value,GB0)&&(this.JSC$16266_commentbox.addedAttachment="image",this.JSC$16266_commentbox.submitButtonDisabled=!0,this.onOpen(A))};
_.q.openDialog=function(){var A;(A=this.data)!=null&&A.isIneligibleForCommunityPagePostCreation||(this.JSC$16266_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16266_commentbox.focus())};
_.q.onPopupClosed=function(){_.NE.getInstance()};
_.q.computeCreationDisabled=function(A){return!!A};
_.q.computeIsCreationDialog=function(A){return!!A&&A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.q.computeDisabledPostButton=function(A){if(!A)return null;A.isDisabled=!0;return A};
_.q.computeIsCreationDialogWithHeader=function(A){return!this.inPopupContainer&&!!A&&!!A.authorText&&A.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.q.computeIsHeaderHidden=function(A,H){return!A||H};
_.q.computeDropdownRendererClasses=function(A){return A?["text-secondary-style"]:[]};
_.q.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var A=_.Va(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;A&&A.reset()};
dm.prototype.onPopupClosed=dm.prototype.onPopupClosed;dm.prototype.onRequestSent=dm.prototype.onRequestSent;dm.prototype.onYtNavigate=dm.prototype.onYtNavigate;dm.prototype.onIronSelect=dm.prototype.onIronSelect;dm.prototype.onYtVideoLinkSelected=dm.prototype.onYtVideoLinkSelected;dm.prototype.onYtVideoLinkButtonCancel=dm.prototype.onYtVideoLinkButtonCancel;dm.prototype.onYtCommentboxLoadingEnd=dm.prototype.onYtCommentboxLoadingEnd;dm.prototype.onYtCommentboxLoadingStart=dm.prototype.onYtCommentboxLoadingStart;
dm.prototype.onYtCommentboxDismiss=dm.prototype.onYtCommentboxDismiss;dm.prototype.showButtonEduTooltip=dm.prototype.showButtonEduTooltip;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],dm.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],dm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],dm.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],dm.prototype,"isOpen",void 0);_.E([_.C({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],dm.prototype,"buttonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],dm.prototype,"modern",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],dm.prototype,"roundedContainer",void 0);_.E([_.C(),_.l("design:type",Object)],dm.prototype,"dropdownButtonOverride",void 0);_.E([_.C({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.l("design:type",Boolean)],dm.prototype,"creationDisabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],dm.prototype,"enableCreationBox",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.l("design:type",Boolean)],dm.prototype,"isCreationDialog",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],dm.prototype,"inPopupContainer",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.l("design:type",Boolean)],dm.prototype,"isCreationDialogWithHeader",void 0);_.E([_.C(),_.l("design:type",Object)],dm.prototype,"accessRestriction",void 0);
_.E([_.C({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.l("design:type",Array)],dm.prototype,"dropdownRendererClasses",void 0);_.E([_.C(),_.l("design:type",Object)],dm.prototype,"isCommentboxLoading",void 0);_.E([_.C(),_.l("design:type",Array)],dm.prototype,"attachmentButtonIds",void 0);_.E([_.ol("#image-button"),_.l("design:type",HTMLElement)],dm.prototype,"imageButton",void 0);
_.E([_.ol("#image-poll-button"),_.l("design:type",HTMLElement)],dm.prototype,"imagePollButton",void 0);_.E([_.ol("#quiz-button"),_.l("design:type",HTMLElement)],dm.prototype,"quizButton",void 0);_.E([_.ol("#commentbox"),_.l("design:type",Object)],dm.prototype,"JSC$16266_commentbox",void 0);_.E([_.fF("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dm.prototype,"showButtonEduTooltip",null);
_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dm.prototype,"onYtCommentboxDismiss",null);_.E([_.Ze("yt-commentbox-loading-start"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dm.prototype,"onYtCommentboxLoadingStart",null);
_.E([_.Ze("yt-commentbox-loading-end"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dm.prototype,"onYtCommentboxLoadingEnd",null);_.E([_.Ze("yt-video-link-button-cancel"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dm.prototype,"onYtVideoLinkButtonCancel",null);
_.E([_.Ze("yt-video-link-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dm.prototype,"onYtVideoLinkSelected",null);_.E([_.Ze("iron-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dm.prototype,"onIronSelect",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dm.prototype,"onYtNavigate",null);
_.E([_.Ze("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dm.prototype,"onRequestSent",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dm.prototype,"onPopupClosed",null);_.E([_.O6({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],dm);
_.Q(dm,"ytd-backstage-post-dialog-renderer",function(){if(vRw!==void 0)return vRw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return vRw=A},{mode:1});var s2w;var kNi;var WH=function(){return _.a.apply(this,arguments)||this};
_.I(WH,_.a);_.q=WH.prototype;_.q.computeHeartButtonStyle=function(A){return(A==null?0:A.styleType)?A.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.q.onYtButtonTap=function(){if(this.data.isEnabled){var A=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(A=this.getEndpoint(A))&&_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}})}else(A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(A)};
_.q.toggle=function(A){this.set("data.isHearted",A!==void 0?A:!this.data.isHearted)};
_.q.getEndpoint=function(A){var H,k=(H=this.data)==null?void 0:H.heartEndpoint,d;H=(d=this.data)==null?void 0:d.unheartEndpoint;if(k&&H)return A?H:k};
_.q.computeButtonAccessibility=function(A,H){var k,d,W=A==null?void 0:(k=A.heartedAccessibility)==null?void 0:(d=k.accessibilityData)==null?void 0:d.label,z,u;A=A==null?void 0:(z=A.unheartedAccessibility)==null?void 0:(u=z.accessibilityData)==null?void 0:u.label;return H?W:A};
_.nP.Object.defineProperties(WH.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 A;return _.b("kevlar_system_icons")&&!((A=this.data)==null||!A.isHearted)}}});
WH.prototype.onYtButtonTap=WH.prototype.onYtButtonTap;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],WH.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],WH.prototype,"data",void 0);_.E([_.G("data.isHearted"),_.l("design:type",Object),_.l("design:paramtypes",[])],WH.prototype,"heartTooltip",null);
_.E([_.G("data.isHearted"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],WH.prototype,"iconFilled",null);_.E([_.C({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.l("design:type",String)],WH.prototype,"buttonAccessibility",void 0);_.E([_.C({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],WH.prototype,"heartButtonStyle",void 0);
_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WH.prototype,"onYtButtonTap",null);_.E([_.O6({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],WH);
_.Q(WH,"ytd-creator-heart-renderer",function(){if(kNi!==void 0)return kNi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return kNi=A},{mode:1});var zh=function(){var A=_.a.apply(this,arguments)||this;A.hasCreatorReply=!1;A.buttonOverrides={size:"S",iconPosition:"icon-only"};A.replyButtonOverrides={size:"S",type:"text"};A.forceIconButton=!_.b("web_modern_buttons");A.modern=_.b("web_modern_buttons");A.buttonTooltipPosition="bottom";A.systemIcons=_.b("kevlar_system_icons");A.replyDialog=null;return A};
_.I(zh,_.a);_.q=zh.prototype;
_.q.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]]"}}}}}};
_.q.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.q.dataChange=function(){this.replyDialog&&_.Va(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var A,H,k;this.isLiked=this.systemIcons&&!!((A=this.data)==null?0:(H=A.likeButton)==null?0:(k=H.toggleButtonRenderer)==null?0:k.isToggled)};
_.q.computeShowVoteCountBeginning=function(A,H){return A===void 0||H===void 0?!0:A.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.q.computeShowVoteCountEnd=function(A,H){return A===void 0||H===void 0?!0:A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.q.computeShowCommentCount=function(A,H){return A===void 0||H===void 0?!0:A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.q.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.q.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.q.showReplyDialog=function(A){A&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Va(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=A,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.q.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.q.onRequestSent=function(A){A=_.r(A.detail);for(var H=A.next();!H.done;H=A.next())(H=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",H.value))&&this.showReplyDialog(H)};
_.q.onYtNavigate=function(A){var H,k;(A=(H=_.L(A.detail.endpoint,_.X2w))==null?void 0:(k=H.dialog)==null?void 0:k.commentReplyDialogRenderer)&&this.showReplyDialog(A)};
_.q.onYtServiceRequestSent=function(A,H){A.stopPropagation();if(H.actions)for(A=0;A<H.actions.length;A++){var k=_.L(H.actions[A],fPw);k&&this.handleUpdateCommentVoteAction(k)}};
_.q.handleUpdateCommentVoteAction=function(A){this.voteCount=A.voteCount||_.Yu("0");A.voteStatus==="LIKE"?this.JSC$16278_ytdDislikeToggleButtonRenderer.toggle(!1):A.voteStatus==="DISLIKE"?this.JSC$16278_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16278_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16278_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.q.computeReplyButtonHidden=function(A){return A};
_.q.computeReplyButtonBeginning=function(A){return(A==null?0:A.replyButton)&&A.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?A.replyButton:void 0};
_.q.computeReplyButtonEnd=function(A){return(A==null?0:A.replyButton)&&A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?A.replyButton:void 0};
_.q.computeActionButtonStyle=function(A){return(A==null?0:A.style)?A.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.q.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.q.onYtToggleButton=function(A){var H,k;this.isLiked=this.systemIcons&&!!((H=A.detail)==null?0:(k=H.actions)==null?0:k.like)};
zh.prototype.onYtToggleButton=zh.prototype.onYtToggleButton;zh.prototype.onButtonTooltipPositionChanged=zh.prototype.onButtonTooltipPositionChanged;zh.prototype.onYtServiceRequestSent=zh.prototype.onYtServiceRequestSent;zh.prototype.onYtNavigate=zh.prototype.onYtNavigate;zh.prototype.onRequestSent=zh.prototype.onRequestSent;zh.prototype.onYtCommentboxDismiss=zh.prototype.onYtCommentboxDismiss;zh.prototype.dataChange=zh.prototype.dataChange;
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zh.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],zh.prototype,"voteCount",void 0);_.E([_.C(),_.l("design:type",Object)],zh.prototype,"commentCount",void 0);_.E([_.C(),_.l("design:type",Object)],zh.prototype,"replyThumbnail",void 0);
_.E([_.C(),_.l("design:type",Object)],zh.prototype,"hasCreatorReply",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],zh.prototype,"enableCreationBox",void 0);_.E([_.C({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],zh.prototype,"actionButtonsStyle",void 0);_.E([_.C({computed:"computeReplyButtonBeginning(data)"}),_.l("design:type",Object)],zh.prototype,"replyButtonBeginning",void 0);
_.E([_.C({computed:"computeReplyButtonEnd(data)"}),_.l("design:type",Object)],zh.prototype,"replyButtonEnd",void 0);_.E([_.C(),_.l("design:type",Object)],zh.prototype,"buttonOverrides",void 0);_.E([_.C(),_.l("design:type",Object)],zh.prototype,"replyButtonOverrides",void 0);_.E([_.C(),_.l("design:type",Object)],zh.prototype,"forceIconButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],zh.prototype,"useCommentIcon",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],zh.prototype,"modern",void 0);_.E([_.C(),_.l("design:type",Object)],zh.prototype,"buttonTooltipPosition",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],zh.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],zh.prototype,"isLiked",void 0);_.E([_.ol("ytd-button-renderer"),_.l("design:type",Object)],zh.prototype,"ytdReplyButtonRenderer",void 0);
_.E([_.ol("#like-button"),_.l("design:type",Object)],zh.prototype,"JSC$16278_ytdLikeToggleButtonRenderer",void 0);_.E([_.ol("#dislike-button"),_.l("design:type",Object)],zh.prototype,"JSC$16278_ytdDislikeToggleButtonRenderer",void 0);_.E([_.ol("#reply-dialog"),_.l("design:type",HTMLElement)],zh.prototype,"replyDialogElement",void 0);_.E([_.ol("#reply-button"),_.l("design:type",HTMLElement)],zh.prototype,"replyButtonElement",void 0);
_.E([_.ol("#reply-button-end"),_.l("design:type",HTMLElement)],zh.prototype,"replyButtonEndElement",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zh.prototype,"dataChange",null);_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],zh.prototype,"onYtCommentboxDismiss",null);
_.E([_.Ze("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],zh.prototype,"onRequestSent",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],zh.prototype,"onYtNavigate",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],zh.prototype,"onYtServiceRequestSent",null);_.E([_.fF("buttonTooltipPosition"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zh.prototype,"onButtonTooltipPositionChanged",null);
_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],zh.prototype,"onYtToggleButton",null);_.E([_.O6({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],zh);
_.Q(zh,"ytd-comment-action-buttons-renderer",function(){if(s2w!==void 0)return s2w;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return s2w=A},{mode:1});var dgw;var qa=function(){return _.a.apply(this,arguments)||this};
_.I(qa,_.a);qa.prototype.focus=function(){_.Va(this.hostElement).querySelector("#commentbox").focus()};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],qa.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],qa.prototype,"zeroStepChannelCreationRenderer",void 0);_.E([_.O6({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],qa);
_.Q(qa,"ytd-comment-dialog-renderer",function(){if(dgw!==void 0)return dgw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return dgw=A},{mode:1});var Wcw;var rm=function(){var A=_.a.apply(this,arguments)||this;A.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.b("enable_web_delhi_icons")};A.replyButtonOverrides={size:"S",type:"text"};return A};
_.I(rm,_.a);_.q=rm.prototype;_.q.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.q.detached=function(){this.replyBox&&this.replyBox.remove()};
_.q.showReplyDialog=function(A){if(A){var H=this.replyBox;H||(H=document.createElement("ytd-comment-reply-dialog-renderer"),H.id="replybox",_.Va(this.replyDialogDiv).appendChild(H));H.data=A;this.replyDialogDiv.hidden=!1;H.openDialog()}};
_.q.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.q.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var A,H=_.L((A=this.toolbarSurface)==null?void 0:A.superfanOnlySnackbarCommand,_.ic);H&&_.Ed(this.hostElement,"yt-show-superfan-only-snackbar",{command:H})}else this.isSubsOnlyCommentsEligibleUser&&(A=_.L((H=this.toolbarSurface)==null?void 0:H.subscribersOnlyDisclaimerSnackbarCommand,_.ic))&&_.Ed(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:A})};
_.q.onYtServiceRequestSent=function(A,H){A.stopPropagation();if(H.actions)for(var k=0;k<H.actions.length;k++){var d=_.L(H.actions[k],fPw);d?this.handleUpdateCommentVoteAction(d):A.target===this.heartButton&&this.toggleHeartState()}};
_.q.handleUpdateCommentVoteAction=function(A){var H;(H=this.toolbarState)!=null&&H.key&&this.ytdReduxBehavior.dispatch(_.O5("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:A.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":A.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.q.toggleHeartState=function(){var A;(A=this.toolbarState)!=null&&A.key&&this.ytdReduxBehavior.dispatch(_.O5("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.nP.Object.defineProperties(rm.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return(((A=this.toolbarState)==null?void 0:A.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(H=this.toolbarData)==null?void 0:H.likeCountLiked:(k=this.toolbarData)==null?void 0:k.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand)!==void 0&&!_.b("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,H=_.L((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand,_.ic),k,d,W,z,u,B,h,O,T;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((k=this.toolbarSharedData)==null||!k.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((d=this.toolbarState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:H!=null?H:_.L((W=this.toolbarSurface)==null?void 0:W.likeCommand,_.ic),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.L((z=this.toolbarSurface)==null?void 0:z.unlikeCommand,_.ic),defaultCommand:this.isVisiblyDisabled?_.L((u=this.toolbarSurface)==null?void 0:u.commentDisabledActionCommand,_.ic):void 0,defaultTooltip:(B=this.toolbarData)==null?void 0:B.likeInactiveTooltip,toggledTooltip:(h=this.toolbarData)==null?void 0:h.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(O=this.toolbarData)==null?void 0:O.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(T=this.toolbarSharedData)==null?void 0:T.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,H=_.L((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand,_.ic),k,d,W,z,u,B,h,O,T,m;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((k=this.toolbarSharedData)==null||!k.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((d=this.toolbarState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.L((W=this.toolbarSurface)==null?void 0:W.dislikeCommand,_.ic),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.L((z=this.toolbarSurface)==null?void 0:z.undislikeCommand,_.ic),defaultCommand:this.isVisiblyDisabled?_.L((u=this.toolbarSurface)==null?void 0:u.commentDisabledActionCommand,_.ic):void 0,defaultTooltip:(B=this.toolbarData)==null?void 0:B.dislikeInactiveTooltip,toggledTooltip:(h=this.toolbarData)==null?void 0:
h.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(O=this.toolbarSharedData)==null?void 0:O.dislikeReplyButtonA11y:(T=this.toolbarSharedData)==null?void 0:T.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(m=this.toolbarSharedData)==null?void 0:m.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var A,H,k;if(((A=this.toolbarState)==null?void 0:A.heartState)!==void 0&&((H=this.toolbarState)==null?void 0:H.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((k=this.toolbarState)==null?void 0:k.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var d,W,z,u,B,h,O,T,m,J,g,v,y,X;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(d=this.toolbarData)==null?void 0:d.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((W=this.toolbarState)==null?void 0:W.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"||((B=this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.L((h=this.toolbarSurface)==null?void 0:h.heartCommand,
_.ic),unheartEndpoint:this.isVisiblyDisabled?void 0:_.L((O=this.toolbarSurface)==null?void 0:O.unheartCommand,_.ic),disabledEndpoint:this.isVisiblyDisabled?_.L((T=this.toolbarSurface)==null?void 0:T.commentDisabledActionCommand,_.ic):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(m=this.toolbarData)==null?void 0:m.heartActiveTooltip,unheartedTooltip:(J=this.toolbarData)==null?void 0:J.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((g=
this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(v=this.toolbarSharedData)==null?void 0:v.unheartButtonA11y:(y=this.toolbarSharedData)==null?void 0:y.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(X=this.toolbarSharedData)==null?void 0:X.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.toolbarSurface)==null||!A.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.commentStrings)!=null&&A.replyButtonText){var H,k,d,W;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(H=this.commentStrings)==null?void 0:H.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.L((k=this.toolbarSurface)==null?void 0:k.replyCommand,_.ic),command:this.isVisiblyDisabled?
_.L((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand,_.ic):this.isSubsOnlyCommentsIneligibleUser?_.L((W=this.toolbarSurface)==null?void 0:W.subscribersOnlySnackbarCommand,_.ic):void 0}}}}});
rm.prototype.onYtServiceRequestSent=rm.prototype.onYtServiceRequestSent;rm.prototype.hideReplyDialogDiv=rm.prototype.hideReplyDialogDiv;_.E([_.C(),_.l("design:type",Object)],rm.prototype,"commentStrings",void 0);_.E([_.C(),_.l("design:type",Boolean)],rm.prototype,"isReply",void 0);_.E([_.C(),_.l("design:type",Object)],rm.prototype,"toolbarData",void 0);_.E([_.C(),_.l("design:type",Object)],rm.prototype,"toolbarSharedData",void 0);
_.E([_.C(),_.l("design:type",String)],rm.prototype,"toolbarStateKey",void 0);_.E([_.C(),_.l("design:type",String)],rm.prototype,"toolbarSurfaceKey",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],rm.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],rm.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.Kk),_.l("design:type",Object)],rm.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.ol("#reply-dialog"),_.l("design:type",HTMLElement)],rm.prototype,"replyDialogDiv",void 0);_.E([_.ol("#replybox"),_.l("design:type",Object)],rm.prototype,"replyBox",void 0);_.E([_.ol("ytd-creator-heart-renderer"),_.l("design:type",Object)],rm.prototype,"heartButton",void 0);_.E([_.C({selector:function(A,H){return _.Mw(A.entities,"engagementToolbarStateEntityPayload",H)},
selectorArgs:["toolbarStateKey"]}),_.l("design:type",Object)],rm.prototype,"toolbarState",void 0);_.E([_.C({selector:YTN,selectorArgs:["toolbarSurfaceKey"]}),_.l("design:type",Object)],rm.prototype,"toolbarSurface",void 0);_.E([_.C(),_.l("design:type",Object)],rm.prototype,"buttonOverrides",void 0);_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rm.prototype,"hideReplyDialogDiv",null);
_.E([_.G("toolbarData","toolbarState"),_.l("design:type",String),_.l("design:paramtypes",[])],rm.prototype,"likeCount",null);_.E([_.G("likeCount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rm.prototype,"showLikeCount",null);_.E([_.G("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rm.prototype,"isVisiblyDisabled",null);_.E([_.G("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rm.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.E([_.G("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rm.prototype,"isSubsOnlyCommentsEligibleUser",null);_.E([_.G("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rm.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.E([_.G("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rm.prototype,"hasPrepareAccountCommand",null);
_.E([_.G("toolbarData","toolbarState","toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],rm.prototype,"likeToggleButtonRenderer",null);_.E([_.G("isReply","toolbarData","toolbarState","toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],rm.prototype,"dislikeToggleButtonRenderer",null);_.E([_.G("toolbarData","toolbarState","toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],rm.prototype,"creatorHeartSupportedRenderer",null);
_.E([_.G("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rm.prototype,"hasReplyCommand",null);_.E([_.G("toolbarSurface","commentStrings","isVisiblyDisabled"),_.l("design:type",Object),_.l("design:paramtypes",[])],rm.prototype,"replyButtonRenderer",null);_.E([_.C(),_.l("design:type",Object)],rm.prototype,"replyButtonOverrides",void 0);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],rm.prototype,"onYtServiceRequestSent",null);_.E([_.O6({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],rm);
_.Q(rm,"ytd-comment-engagement-bar",function(){if(Wcw!==void 0)return Wcw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Wcw=A},{mode:1});var z$G;var uE=function(){return _.a.apply(this,arguments)||this};
_.I(uE,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uE.prototype,"data",void 0);_.E([_.O6({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],uE);
_.Q(uE,"ytd-comment-inline-thumbnail-renderer",function(){if(z$G!==void 0)return z$G;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return z$G=A},{mode:1});var qsA;var BH=function(){return _.a.apply(this,arguments)||this};
_.I(BH,_.a);BH.prototype.onMessageTap=function(){if(this.onTapCommand){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);A&&this.ytdOpenPopupBehavior.openPopup(A)}};
_.nP.Object.defineProperties(BH.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return(A=this.data)==null?void 0:(H=A.button)==null?void 0:(k=H.buttonRenderer)==null?void 0:k.command}}});
_.E([_.P(_.Kk),_.l("design:type",Object)],BH.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],BH.prototype,"data",void 0);_.E([_.G("data.button.buttonRenderer.command"),_.l("design:type",Object),_.l("design:paramtypes",[])],BH.prototype,"onTapCommand",null);_.E([_.O6({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],BH);
_.Q(BH,"ytd-comment-pause-composer-renderer",function(){if(qsA!==void 0)return qsA;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return qsA=A},{mode:1});var rHk;var uSN;var eq=function(){var A=_.a.apply(this,arguments)||this;A.isOpen=!1;return A};
_.I(eq,_.a);_.q=eq.prototype;_.q.dataChanged=function(){this.isOpen=!1};
_.q.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.q.focus=function(){this.JSC$16307_commentbox.focus()};
_.q.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.q.openDialog=function(){this.isOpen=!0;this.JSC$16307_commentbox.focus();this.JSC$16307_commentbox.maybeHeightChanged()};
eq.prototype.onYtCommentboxDismiss=eq.prototype.onYtCommentboxDismiss;eq.prototype.dataChanged=eq.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],eq.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],eq.prototype,"isOpen",void 0);_.E([_.ol("#commentbox"),_.l("design:type",Object)],eq.prototype,"JSC$16307_commentbox",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eq.prototype,"dataChanged",null);_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],eq.prototype,"onYtCommentboxDismiss",null);_.E([_.O6({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],eq);
_.Q(eq,"ytd-comment-reply-dialog-renderer",function(){if(uSN!==void 0)return uSN;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return uSN=A},{mode:1});var B$J;var xm=function(){return _.a.apply(this,arguments)||this};
_.I(xm,_.a);_.nP.Object.defineProperties(xm.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.data)==null?void 0:(H=A.icon)==null?void 0:H.iconType;return k?"yt-icons:"+k.toLowerCase():null}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xm.prototype,"data",void 0);_.E([_.C(),_.G("data.icon"),_.l("design:type",Object),_.l("design:paramtypes",[])],xm.prototype,"icon",null);_.E([_.O6({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],xm);
_.Q(xm,"ytd-pinned-comment-badge-renderer",function(){if(B$J!==void 0)return B$J;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return B$J=A},{mode:1});var e$J;var xgj={},i9J={input:!0,meta:!0,br:!0,link:!0,img:!0},iE=null;xgj.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(){iE==null&&(iE=document.createElement("tp-yt-paper-tooltip"),iE.offset=8,iE.fitToVisibleBounds=!0)},
onMouseOver_:function(A){if(A=_.Jj(A.target,function(W){return W==this||W.getAttribute&&W.getAttribute("shared-tooltip-text")}.bind(this),!0)){var H=A.getAttribute("shared-tooltip-text");
if(H){var k=this,d=null;A!=this&&(A.tagName.toLowerCase()in i9J?k=A.parentElement:k=A,A.id&&(d=A.id));this.polymerController.createTooltipIfRequired_();if(iE.parentElement!=k||iE.for!=d)(0,_.t1)(iE).textContent=H,_.Va(k).appendChild(iE),iE.for=d,iE.animationDelay=this.polymerController.sharedTooltipAnimationDelay,iE.position=this.polymerController.sharedTooltipPosition}}}};var hC=function(){return _.a.apply(this,arguments)||this};
_.I(hC,_.a);hC.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]]"}}}}}};
hC.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var A;((A=this.data)==null?0:A.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var H;((H=this.data)==null?0:H.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
hC.prototype.colorChanged=function(){var A,H,k,d=(A=this.data)==null?void 0:(H=A.color)==null?void 0:(k=H.basicColorPaletteData)==null?void 0:k.foregroundBodyColor;d&&(this.rgbBadgeColor=_.iw(d));_.Va(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
hC.prototype.tooltipChanged=function(){var A;((A=this.data)==null?0:A.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
hC.prototype.tooltipChanged=hC.prototype.tooltipChanged;hC.prototype.colorChanged=hC.prototype.colorChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(xgj.YtSharedTooltipBehavior),_.l("design:type",Object)],hC.prototype,"ytSharedTooltipBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],hC.prototype,"data",void 0);
_.E([_.C({value:"#4285F4"}),_.l("design:type",String)],hC.prototype,"rgbBadgeColor",void 0);_.E([_.fF("data.color"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hC.prototype,"colorChanged",null);_.E([_.fF("data.tooltip"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hC.prototype,"tooltipChanged",null);_.E([_.O6({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],hC);
_.Q(hC,"ytd-sponsor-comment-badge-renderer",function(){if(e$J!==void 0)return e$J;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return e$J=A},{mode:1});var h$G;var O9i;var Oj=function(){return _.a.apply(this,arguments)||this};
_.I(Oj,_.a);Oj.prototype.computeState=function(A){switch(A==null?void 0:A.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"}};
Oj.prototype.updateStateIdentifier=function(A){if(this.viewModel.triStateKey){var H=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.O5("triStateButtonStateEntityPayload",H,{key:H,stateIdentifier:A}))}};
Oj.prototype.onClick=function(){var A=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(){A.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){A.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.nP.Object.defineProperties(Oj.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 A;return((A=this.data)==null?void 0:A.buttonText)||""}}});
_.E([_.C(),_.l("design:type",Object)],Oj.prototype,"viewModel",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Oj.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Oj.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.E([_.C({selector:PjN,selectorArgs:["viewModel.triStateKey"]}),_.l("design:type",Object)],Oj.prototype,"triStateButtonStateEntity",void 0);
_.E([_.C({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.l("design:type",String)],Oj.prototype,"state",void 0);_.E([_.G("viewModel","state"),_.l("design:type",Object),_.l("design:paramtypes",[])],Oj.prototype,"data",null);_.E([_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],Oj.prototype,"buttonText",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Oj);
_.Q(Oj,"ytd-tri-state-button-view-model",function(){if(O9i!==void 0)return O9i;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return O9i=A},{mode:1});var R$p;var T$0;var Rv=function(){var A=_.a.apply(this,arguments)||this;A.defaultIconToFilled=!_.b("kevlar_fill_comment_chip_icon_killswitch");return A};
_.I(Rv,_.a);Rv.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Rv.prototype.dataChanged=function(){if(this.data){var A,H;((A=this.data.chipColorPalette)==null?0:A.backgroundColor)&&((H=this.data.chipColorPalette)==null?0:H.foregroundTitleColor)&&_.NH(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.h1(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.h1(this.data.chipColorPalette.foregroundTitleColor)});var k;((k=this.data)==null?0:k.command)?(_.NH(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.NH(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}};
Rv.prototype.onTap=function(){var A;if(this.data&&(A=this.data)!=null&&A.command){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.command)}};
Rv.prototype.getIconSize=function(){return _.b("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Rv.prototype.onTap=Rv.prototype.onTap;Rv.prototype.dataChanged=Rv.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Rv.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.fo),_.l("design:type",Object)],Rv.prototype,"ironA11yKeysBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Rv.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],Rv.prototype,"basePriceText",void 0);_.E([_.C(),_.l("design:type",Object)],Rv.prototype,"chipIcon",void 0);_.E([_.C(),_.l("design:type",Object)],Rv.prototype,"defaultIconToFilled",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Rv.prototype,"dataChanged",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Rv.prototype,"onTap",null);
_.E([_.h6({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Rv);
_.Q(Rv,"yt-pdg-comment-chip-renderer",function(){if(T$0===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;R$p===void 0&&(R$p=document.createElement("template"));var d=R$p;k.call(H,d.content.cloneNode(!0),A.content.firstChild);T$0=A}A=T$0;return A},{mode:2});var Th=function(){var A=_.a.apply(this,arguments)||this;A.useSmallAvatars=_.b("small_avatars_for_comments");A.commentThreadingEnabled=_.b("web_delhi_comment_threads");A.webWatchCompactComments=_.b("web_watch_compact_comments");A.editDialog=null;return A};
_.I(Th,_.a);_.q=Th.prototype;_.q.onShow=function(){_.RN("cmv",void 0,"wn_comments")};
_.q.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"}}}};
_.q.detached=function(){this.editDialog=null;this.expander.reset()};
_.q.updateBackgroundColor=function(){if(this.backgroundColor){var A={"--ytd-comment-paid-background-color":_.h1(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.NH(this.hostElement,A)}else _.NH(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.q.resetExpander=function(){var A;(A=this.expander)==null||A.reset()};
_.q.openEditDialog=function(A){A.dialog&&(this.editDialog=A.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.q.onYtNavigate=function(A){var H=A.detail.endpoint;if(H=_.L(H,_.DYw)||_.L(H,_.S7i))A.stopPropagation(),this.openEditDialog(H)};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null;_.NH(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.q.onAuthorThumbnailClicked=function(){_.b("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.q.onYtCommentboxResize=function(A){var H;(A==null?0:(H=A.detail)==null?0:H.height)&&_.NH(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":A.detail.height+"px"})};
_.nP.Object.defineProperties(Th.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 A,H=(A=this.commentEntity)==null?void 0:A.author;return H&&(H.isCreator||H.isVerified||H.isArtist)?{renderer:{authorEndpoint:H.channelPageEndpoint?_.L(H.channelPageEndpoint,_.ic):_.L(H.channelCommand,_.ic),authorText:{runs:[{text:H.displayName}]},color:H.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:H.isArtist?{iconType:"AUDIO_BADGE"}:
H.isVerified?{iconType:H.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:H.isArtist||H.isVerified?H.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var A,H=(A=this.commentEntity)==null?void 0:A.author;return H!=null&&H.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:H.sponsorBadgeUrl}]},tooltip:H.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return _.L((A=this.commentSurfaceEntity)==null?void 0:A.pdgCommentChip,_.r0Z)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var A;return this.voiceReplyContainerViewModel&&((A=this.voiceReplyContainerViewModel)==null?void 0:A.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return _.L((A=this.commentSurfaceEntity)==null?void 0:A.voiceReplyContainerViewModel,W6N)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var A;return this.voiceReplyContainerViewModel&&(A=this.voiceReplyContainerViewModel)!=null&&A.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=(A=this.commentSurfaceEntity)==null?void 0:A.commentBackgroundColor)!=null?H:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.b("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var A,H;return(((A=this.commentEntity)==null?void 0:(H=A.properties)==null?void 0:H.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var A,H;if(_.b("enable_profile_cards_on_comments")&&((A=this.commentEntity)==null?0:(H=A.author)==null?0:H.profileCardEndpoint)&&this.viewModel.allowProfileCard){var k,d;return _.L((k=this.commentEntity)==null?void 0:(d=k.author)==null?void 0:d.profileCardEndpoint,_.ic)}var W,z;return _.L((W=this.commentEntity)==null?void 0:(z=W.avatar)==null?void 0:z.endpoint,_.ic)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var A,H;if(_.b("enable_profile_cards_on_comments")&&((A=this.commentEntity)==null?0:(H=A.author)==null?0:H.channelPageEndpoint)){var k,d;return _.L((k=this.commentEntity)==null?void 0:(d=k.author)==null?void 0:d.channelPageEndpoint,_.ic)}var W,z;return _.L((W=this.commentEntity)==null?void 0:(z=W.avatar)==null?void 0:z.endpoint,_.ic)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d,W=(A=this.commentEntity)==null?void 0:(H=A.avatar)==null?void 0:(k=H.image)==null?void 0:(d=k.sources)==null?void 0:d[0];return W?{thumbnails:[{url:W.url,width:W.width,height:W.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.commentEntity)==null?0:(H=A.author)==null?0:H.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.commentEntity)==null?void 0:(H=A.author)==null?void 0:H.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.commentEntity)==null?void 0:(H=A.properties)==null?void 0:H.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var A;return _.L((A=this.commentSurfaceEntity)==null?void 0:A.publishedTimeCommand,_.ic)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var A,H;if(((A=this.commentEntity)==null?0:A.translatedContent)&&((H=this.translateButtonState)==null?void 0:H.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var k;if((k=this.voiceReplyContainerViewModel)==null?0:k.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var d,W;return((d=this.commentEntity)==null?void 0:(W=d.properties)==null?void 0:W.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.commentSharedEntity)==null?void 0:(H=A.strings)==null?void 0:H.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.commentSharedEntity)==null?void 0:(H=A.strings)==null?void 0:H.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.commentEntity)==null||!A.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var A,H,k=(H=_.L((A=this.viewModel)==null?void 0:A.translateButton,d2A))!=null?H:{},d,W,z,u,B,h,O,T,m,J,g;return Object.assign({},k,{untoggledStateData:Object.assign({},k.untoggledStateData,{buttonText:(d=this.commentEntity)==null?void 0:(W=d.translateData)==null?void 0:W.text}),togglingStateData:Object.assign({},k.togglingStateData,{buttonText:(z=this.commentSharedEntity)==null?
void 0:(u=z.strings)==null?void 0:u.translatingText}),toggledStateData:Object.assign({},k.toggledStateData,{buttonText:(B=this.commentSharedEntity)==null?void 0:(h=B.strings)==null?void 0:h.seeOriginalText}),transitionCommand:((O=this.commentEntity)==null?0:O.translatedContent)?void 0:_.L((T=this.commentEntity)==null?void 0:(m=T.translateData)==null?void 0:m.translateComment,_.ic),triStateKey:(J=this.commentEntity)==null?void 0:(g=J.properties)==null?void 0:g.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((H=_.L(_.L((A=this.toolbarSurface)==null?void 0:A.menuCommand,_.ic),CUZ))==null?void 0:(k=H.menu)==null?void 0:k.menuRenderer)||null}}});
Th.prototype.onYtCommentboxResize=Th.prototype.onYtCommentboxResize;Th.prototype.onYtCommentboxDismiss=Th.prototype.onYtCommentboxDismiss;Th.prototype.onYtNavigate=Th.prototype.onYtNavigate;Th.prototype.resetExpander=Th.prototype.resetExpander;Th.prototype.updateBackgroundColor=Th.prototype.updateBackgroundColor;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Th.prototype,"ytdReduxBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Th.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.E([_.ol("#author-thumbnail > button"),_.l("design:type",HTMLElement)],Th.prototype,"authorThumbnailAnchor",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("viewModel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Th.prototype,"linked",null);
_.E([_.G("viewModel","linked"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"linkedCommentBadge",null);_.E([_.C({reflectToAttribute:!0}),_.G("viewModel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Th.prototype,"pinned",null);_.E([_.G("viewModel","pinned"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"pinnedCommentBadge",null);
_.E([_.G("commentEntity","commentSharedEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"authorCommentBadge",null);_.E([_.C({reflectToAttribute:!0}),_.G("authorCommentBadge"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"hasAuthorBadge",null);_.E([_.G("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"sponsorCommentBadge",null);
_.E([_.C({reflectToAttribute:!0}),_.G("sponsorCommentBadge"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"hasSponsorBadge",null);_.E([_.G("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"pdgCommentChipRenderer",null);_.E([_.C({reflectToAttribute:!0}),_.G("voiceReplyContainerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"hasVoiceReply",null);
_.E([_.G("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"voiceReplyContainerViewModel",null);_.E([_.G("voiceReplyContainerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"voiceReplyUnavailableText",null);_.E([_.C(),_.l("design:type",Object)],Th.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"viewModel",null);
_.E([_.C({selector:function(A,H){return _.Mw(A.entities,"commentSharedEntityPayload",H)},
selectorArgs:["viewModel.sharedKey"]}),_.l("design:type",Object)],Th.prototype,"commentSharedEntity",void 0);_.E([_.C({selector:Iof,selectorArgs:["viewModel.commentKey"]}),_.l("design:type",Object)],Th.prototype,"commentEntity",void 0);_.E([_.C({selector:function(A,H){return _.Mw(A.entities,"commentSurfaceEntityPayload",H)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.l("design:type",Object)],Th.prototype,"commentSurfaceEntity",void 0);_.E([_.C({selector:YTN,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.l("design:type",Object)],Th.prototype,"toolbarSurface",void 0);_.E([_.C({selector:PjN,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.l("design:type",Object)],Th.prototype,"translateButtonState",void 0);
_.E([_.G("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"backgroundColor",null);_.E([_.C({reflectToAttribute:!0}),_.G("viewModel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Th.prototype,"optimalReadingWidthComments",null);_.E([_.ol("ytd-expander"),_.l("design:type",Object)],Th.prototype,"expander",void 0);
_.E([_.fF("backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Th.prototype,"updateBackgroundColor",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Th.prototype,"useSmallAvatars",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Th.prototype,"engagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Th.prototype,"commentThreadingEnabled",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Th.prototype,"webWatchCompactComments",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"isReply",null);_.E([_.G("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"authorThumbnailEndpoint",null);_.E([_.G("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"authorNameEndpoint",null);
_.E([_.G("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"authorThumbnail",null);_.E([_.G("commentEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],Th.prototype,"authorTextClass",null);_.E([_.G("commentEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],Th.prototype,"authorChannelName",null);_.E([_.G("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"publishedTime",null);
_.E([_.G("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"publishedTimeCommand",null);_.E([_.G("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"contentText",null);_.E([_.fF("contentText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Th.prototype,"resetExpander",null);
_.E([_.G("commentEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Th.prototype,"shouldShowReadMoreInitially",null);_.E([_.G("commentSharedEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],Th.prototype,"expandText",null);_.E([_.G("commentSharedEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],Th.prototype,"collapseText",null);_.E([_.G("commentEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Th.prototype,"shouldShowTranslateButton",null);
_.E([_.G("commentEntity","commentSharedEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"translateButton",null);_.E([_.G("toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],Th.prototype,"overflowMenuRenderer",null);_.E([_.C(),_.l("design:type",Object)],Th.prototype,"editDialog",void 0);_.E([_.ol("ytd-comment-dialog-renderer"),_.l("design:type",Object)],Th.prototype,"editCommentDialogContainer",void 0);
_.E([_.ol("ytd-comment-reply-dialog-renderer"),_.l("design:type",Object)],Th.prototype,"editReplyDialogContainer",void 0);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Th.prototype,"onYtNavigate",null);_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Th.prototype,"onYtCommentboxDismiss",null);
_.E([_.Ze("yt-commentbox-resize"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Th.prototype,"onYtCommentboxResize",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Th);
_.Q(Th,"ytd-comment-view-model",function(){if(h$G!==void 0)return h$G;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return h$G=A},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});_.Sw(_.c(function(A){var H={},k={};return _.x("yt-sub-thread",{class:_.ER("ytSubThreadHost",(H.ytSubThreadHasButton=A.isButton,H.ytSubThreadHovered=A.hovered,H.ytSubThreadTopLevelThread=function(){var d,W;return((d=A.topLevelThread)==null?void 0:d.call(A))&&!(_.b("small_avatars_for_comments")&&((W=A.engagementPanel)==null?0:W.call(A)))},H))},_.x("div",{class:"ytSubThreadThreadline"},_.x(_.R,{cond:function(){var d;
return!((d=A.isTeaser)==null?0:d.call(A))},
then:function(){return _.x("div",{class:"ytSubThreadConnection"})}}),_.x("div",{class:"ytSubThreadContinuation"}),_.x("div",{class:"ytSubThreadShadow"})),_.x("div",{class:_.ER("ytSubThreadSubThreadContent",(k.ytSubThreadSubThreadContentEngagementPanel=A.engagementPanel,k))},A.children))},"Qc"),"yt-sub-thread",{props:{isButton:_.Ih,
isTeaser:_.Ih,hovered:_.Ih,topLevelThread:_.Ih,engagementPanel:_.Ih}});var mk=function(){var A=_.a.apply(this,arguments)||this;A.modern=_.b("web_modern_buttons");A.commentThreadingEnabled=_.b("web_delhi_comment_threads");A.isWatchGrid=_.b("kevlar_watch_grid");A.buttonOverrides=A.commentThreadingEnabled?_.b("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};A.JSC$16353_spinnerEl=null;return A};
_.I(mk,_.a);_.q=mk.prototype;_.q.configureContinuationPathMap=function(){return _.b("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.q.shouldShowLegacyTeasers=function(A,H){return A&&!H};
_.q.shouldShowExpandedThreads=function(A,H){return this.commentThreadingEnabled&&H&&(A==null?void 0:A.length)>0};
_.q.shouldShowCollapsedThreads=function(A,H){return this.commentThreadingEnabled&&!H&&A};
_.q.computeCommentViewModel=function(A){return _.L(A,kLp)};
_.q.computeThreadRenderer=function(A){return _.L(A,wow)};
_.q.computeIsContinuationItem=function(A){return!!this.computeContinuationItemRenderer(A)};
_.q.computeButtonRenderer=function(A){return _.L(A,_.gN)};
_.q.computeContinuationItemRenderer=function(A){return _.L(A,_.pw)};
_.q.computeShowButton=function(A){var H;return!((H=this.computeContinuationItemRenderer(A))==null||!H.button)};
_.q.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]]"}}}}}};
_.q.attached=function(){this.isShowRepliesVisible=!0};
_.q.dataChanged=function(){var A=this.expanderContents;A&&(A.hidden=!0);this.isLoading=!1};
_.q.endsInContinuation=function(A){return!!A&&A.length>0&&!!this.computeContinuationItemRenderer(A[A.length-1])};
_.q.computeShouldShowHideRepliesButton=function(A,H){return!A&&H};
_.q.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.q.isLoadingChanged=function(){this.isLoading&&!this.JSC$16353_spinnerEl&&(this.JSC$16353_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Va(this.expanderContents).appendChild(this.JSC$16353_spinnerEl));this.JSC$16353_spinnerEl&&(this.JSC$16353_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var A;(A=this.contents)==null||A.classList.remove("reloading")}};
_.q.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var A=_.L(this.data.viewReplies,_.gN);A&&this.ytRendererBehavior.logExplicitClick(A);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.q.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var A=_.L(this.data.hideReplies,_.gN);A&&this.ytRendererBehavior.logExplicitClick(A);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.q.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var A=_.Va(this.hostElement).querySelector("#expander-contents");A&&(A.hidden=this.isShowRepliesVisible)}};
_.q.computeAlign=function(){if(this.modern){var A;return!((A=this.data)==null?0:A.viewRepliesCreatorThumbnail)}};
_.nP.Object.defineProperties(mk.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var A,H;return this.endsInContinuation((A=this.data)==null?void 0:A.contents)||this.commentThreadingEnabled&&this.endsInContinuation((H=this.data)==null?void 0:H.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var A;return(A=this.data)==null?void 0:A.teaserContents}}});
mk.prototype.isShowMoreChanged=mk.prototype.isShowMoreChanged;mk.prototype.isLoadingChanged=mk.prototype.isLoadingChanged;mk.prototype.triggerFirstContinuation=mk.prototype.triggerFirstContinuation;mk.prototype.dataChanged=mk.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.DV),_.l("design:type",Object)],mk.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mk.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],mk.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],mk.prototype,"commentThreadingEnabled",void 0);_.E([_.C(),_.l("design:type",Boolean)],mk.prototype,"expanded",void 0);
_.E([_.C(),_.l("design:type",Function)],mk.prototype,"toggleExpanded",void 0);_.E([_.C(),_.l("design:type",Array)],mk.prototype,"addedReplies",void 0);_.E([_.C(),_.l("design:type",Boolean)],mk.prototype,"hovered",void 0);_.E([_.C(),_.l("design:type",Boolean)],mk.prototype,"topLevelThread",void 0);_.E([_.C(),_.l("design:type",Boolean)],mk.prototype,"isLoading",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],mk.prototype,"isShowRepliesVisible",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],mk.prototype,"useNewFormatting",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],mk.prototype,"engagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],mk.prototype,"isWatchGrid",void 0);_.E([_.C(),_.l("design:type",Object)],mk.prototype,"buttonOverrides",void 0);_.E([_.ol("#expander-contents"),_.l("design:type",HTMLElement)],mk.prototype,"expanderContents",void 0);
_.E([_.ol("ytd-continuation-item-renderer"),_.l("design:type",Object)],mk.prototype,"continuationItemRenderer",void 0);_.E([_.ol("#contents"),_.l("design:type",HTMLElement)],mk.prototype,"contents",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mk.prototype,"dataChanged",null);_.E([_.G("data.contents","data.subThreads.*"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],mk.prototype,"hasContinuation",null);
_.E([_.G("data.teaserContents"),_.l("design:type",Object),_.l("design:paramtypes",[])],mk.prototype,"subThreadTeasers",null);_.E([_.Ze("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mk.prototype,"triggerFirstContinuation",null);_.E([_.fF("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mk.prototype,"isLoadingChanged",null);
_.E([_.fF("isShowRepliesVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mk.prototype,"isShowMoreChanged",null);_.E([_.O6({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],mk);
_.Q(mk,"ytd-comment-replies-renderer",function(){if(rHk!==void 0)return rHk;var A=document.createElement("template");_.Y(A,'\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)]]" engagement-panel="[[engagementPanel]]" 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" on-click="handleIsShowMoreTap">\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]]" 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)]]" engagement-panel="[[engagementPanel]]" 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 class="replies-continuation style-scope ytd-comment-replies-renderer" button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" restamp="" 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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return rHk=A},{mode:1});var mgA;var JC=function(){var A=_.a.apply(this,arguments)||this;A.isOpen=!1;A.commentDialog=null;A.useSmallAvatars=_.b("small_avatars_for_comments");A.useSmallAvatarsEngagementPanelOnly=_.b("small_avatars_for_comments_ep");A.placeholderFocusListener=null;A.hasOpenedDialog=!1;A.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return A};
_.I(JC,_.a);_.q=JC.prototype;_.q.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]]"}}}}}};
_.q.ready=function(){var A=this,H=_.Va(this.hostElement).querySelector("#placeholder-area"),k=_.Va(this.hostElement).querySelector("#simplebox-placeholder"),d=function(W){W.stopPropagation();W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||A.openDialog()};
this.placeholderFocusListener=d;k.addEventListener("focus",this.placeholderFocusListener);H.addEventListener("tap",d);H.addEventListener("keypress",d)};
_.q.maybeRemoveFocusEventListener=function(){var A;(A=this.data)!=null&&A.prepareAccountEndpoint&&!_.b("web_comments_simplebox_modal_focus_on_tap_ks")&&(A=_.Va(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(A.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.q.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.q.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.b("web_comment_simplebox_resolve_polymer_command_ks")?_.n0.instance.resolveCommand(this.data.prepareAccountEndpoint):_.ZS(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);A&&this.ytdOpenPopupBehavior.openPopup(A);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(A),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Va(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.q.onYtCommentboxDismiss=function(A){A.stopPropagation();this.isOpen=!1};
_.q.onCreateCommentAction=function(A){this.get("createCommentAction.contents",A)&&(this.isOpen=!1)};
_.q.computeCommentDialog=function(A){return{placeholderText:A.placeholderText,authorThumbnail:A.authorThumbnail,submitButton:A.submitButton,imageButton:A.imageButton,cancelButton:A.cancelButton,emojiButton:A.emojiButton,emojis:A.emojis,emojiPicker:A.emojiPicker,aadcGuidelinesStateEntityKey:A.aadcGuidelinesStateEntityKey,openAadcDialog:A.openAadcDialog,unicodeEmojisUrl:A.unicodeEmojisUrl}};
_.q.onHideIdentityChip=function(A){_.L(A,tJG)&&this.set("data.placeholderText",_.L(A,tJG).placeholderText)};
JC.prototype.onYtCommentboxDismiss=JC.prototype.onYtCommentboxDismiss;JC.prototype.dataChanged=JC.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],JC.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],JC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],JC.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],JC.prototype,"isOpen",void 0);_.E([_.C(),_.l("design:type",Object)],JC.prototype,"commentDialog",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],JC.prototype,"engagementPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],JC.prototype,"useSmallAvatars",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],JC.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],JC.prototype,"enableCreationBox",void 0);_.E([_.C(),_.l("design:type",Boolean)],JC.prototype,"showCreateDialog",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],JC.prototype,"dataChanged",null);_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],JC.prototype,"onYtCommentboxDismiss",null);_.E([_.O6({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],JC);
_.Q(JC,"ytd-comment-simplebox-renderer",function(){if(mgA!==void 0)return mgA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return mgA=A},{mode:1});var JHw;_.uL("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var gm=function(){var A=_.a.apply(this,arguments)||this;A.addHoverEffect=_.b("swatcheroo_comments_hover_effect");A.useSmallAvatars=_.b("small_avatars_for_comments");A.scrollingEnabled=_.b("web_comment_threading_scroll_on_collapse");A.isSubThread=!1;A.threadHovered=!1;A.expanded=!1;A.removed=!1;A.addedReplies=[];A.actionMap=A.configureActionMap();A.toggleExpanded=function(){A.expanded=!A.expanded;!A.expanded&&A.scrollingEnabled&&_.Ud(A.hostElement,"yt-scroll-to-comment-element",[A.commentElement])};
return A};
_.I(gm,_.a);_.q=gm.prototype;_.q.configureActionMap=function(){return _.b("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"}:{}};
_.q.createCommentReplyAction=function(A){A=_.L(A,Urw);if(A!=null&&A.contents){var H=A.replyToCommentId,k=A.parentCommentId,d,W=(d=this.commentViewModel)==null?void 0:d.commentId;(W===H||W===k&&!H)&&this.maybeAttachReply(A.contents)}};
_.q.maybeAttachReply=function(A){var H,k;(((H=this.commentEntity)==null?void 0:(k=H.properties)==null?void 0:k.replyLevel)||0)>=3?_.Ed(this.hostElement,"yt-pushed-create-comment-reply",A):this.attachReply(A)};
_.q.onPushedCreateCommentReply=function(A){var H,k;(((H=this.commentEntity)==null?void 0:(k=H.properties)==null?void 0:k.replyLevel)||0)>=3||(this.attachReply(A.detail),A.stopPropagation())};
_.q.attachReply=function(A){var H;((H=this.data)==null?0:H.replies)?(H=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+H+".continuationItemRenderer")?H===0?this.push("addedReplies",A):this.splice("data.replies.commentRepliesRenderer.subThreads",H,0,A):this.push("data.replies.commentRepliesRenderer.subThreads",A)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[A],viewReplies:{buttonRenderer:{text:_.K8(_.$r("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.q.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.fV(this.addedReplies))),this.set("addedReplies",[]))};
_.q.removeCommentAction=function(A){A=_.L(A,ns0);var H=A==null?void 0:A.commentId,k;H&&((k=this.commentViewModel)==null?void 0:k.commentId)===H&&this.maybeRemoveComment(A.actionResult)};
_.q.banAuthorAction=function(A){A=_.L(A,VJQ);var H=A==null?void 0:A.commentId,k;H&&((k=this.commentViewModel)==null?void 0:k.commentId)===H&&this.maybeRemoveComment(A.actionResult)};
_.q.hideReportedCommentAction=function(A){A=_.L(A,uqN);var H=A==null?void 0:A.commentId,k;H&&((k=this.commentViewModel)==null?void 0:k.commentId)===H&&this.maybeRemoveComment(A.actionResult)};
_.q.maybeRemoveComment=function(A){A&&A.status==="STATUS_SUCCEEDED"&&(this.feedbackText=A.feedbackText||_.K8("Reply removed"),this.removed=!0)};
_.q.onTap=function(A){if(this.addHoverEffect&&!this.engagementPanel&&!_.XU(_.F_(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||_.ZS({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.q.attached=function(){var A=this;this.isSubThread&&(this.expanded=!0);var H;(H=this.commentThreadHitbox)==null||H.addEventListener("mouseover",function(){A.threadHovered=!0});
var k;(k=this.commentThreadHitbox)==null||k.addEventListener("mouseout",function(){A.threadHovered=!1});
var d;(d=this.commentThreadHitbox)==null||d.addEventListener("click",function(){A.maybeToggleExpanded()})};
_.q.onDataChanged=function(){var A=_.b("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(A)&&this.set(A,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.q.maybeToggleExpanded=function(){var A,H,k,d=(A=this.data)==null?void 0:(H=A.replies)==null?void 0:(k=H.commentRepliesRenderer)==null?void 0:k.subThreads,W;(d==null?void 0:d.length)===1&&((W=_.L(d[0],_.pw))==null?0:W.button)&&this.expanded||this.toggleExpanded()};
_.nP.Object.defineProperties(gm.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return _.L((A=this.data)==null?void 0:A.commentViewModel,kLp)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return _.b("web_delhi_comment_threads")&&!!((A=this.data)==null?0:(H=A.replies)==null?0:(k=H.commentRepliesRenderer)==null?0:k.subThreads)}}});
gm.prototype.onDataChanged=gm.prototype.onDataChanged;gm.prototype.onTap=gm.prototype.onTap;gm.prototype.onAppendContinuationItemsActionFinished=gm.prototype.onAppendContinuationItemsActionFinished;gm.prototype.onPushedCreateCommentReply=gm.prototype.onPushedCreateCommentReply;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],gm.prototype,"ytdReduxBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],gm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gm.prototype,"addHoverEffect",void 0);_.E([_.C(),_.l("design:type",Object)],gm.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gm.prototype,"useSmallAvatars",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gm.prototype,"scrollingEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gm.prototype,"isSubThread",void 0);_.E([_.ol(".thread-hitbox"),_.l("design:type",HTMLElement)],gm.prototype,"commentThreadHitbox",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gm.prototype,"threadHovered",void 0);_.E([_.ol("#comment"),_.l("design:type",HTMLElement)],gm.prototype,"commentElement",void 0);
_.E([_.C(),_.l("design:type",Object)],gm.prototype,"expanded",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gm.prototype,"removed",void 0);_.E([_.C(),_.l("design:type",Object)],gm.prototype,"feedbackText",void 0);_.E([_.C(),_.l("design:type",Array)],gm.prototype,"addedReplies",void 0);_.E([_.C({selector:Iof,selectorArgs:["commentViewModel.commentKey"]}),_.l("design:type",Object)],gm.prototype,"commentEntity",void 0);
_.E([_.Ze("yt-pushed-create-comment-reply"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],gm.prototype,"onPushedCreateCommentReply",null);_.E([_.Ze("yt-append-continuation-items-action-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gm.prototype,"onAppendContinuationItemsActionFinished",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],gm.prototype,"commentViewModel",null);
_.E([_.G("data.replies.commentRepliesRenderer.subThreads"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gm.prototype,"hasSubThreading",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],gm.prototype,"engagementPanel",void 0);_.E([_.Ze("tap"),_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],gm.prototype,"onTap",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gm.prototype,"onDataChanged",null);_.E([_.O6({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],gm);
_.Q(gm,"ytd-comment-thread-renderer",function(){if(JHw!==void 0)return JHw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return JHw=A},{mode:2});var gKN;var bE=function(){var A=_.a.apply(this,arguments)||this;A.compactHeader=_.b("web_watch_compact_comments_header");A.hidePanelButton=!1;A.isPostSchedulingEnabled=_.b("enable_post_scheduling");A.hasFinishedStamping=!1;A.JSC$16376_handleOpenPostCommentDialogActionAfterStamp=!1;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.I(bE,_.a);_.q=bE.prototype;
_.q.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"}}}};
_.q.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.q.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16376_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.q.onYtServiceRequestSent=function(A,H){if(!_.b("kevlar_command_handler")&&H.actions)for(A=0;A<H.actions.length;A++){var k=H.actions[A];_.L(k,iiJ)&&_.Va(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.L(k,iiJ))}};
_.q.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var A;if(this.getPrefilledBackstagePostDialog((A=this.data)==null?void 0:A.actions)){_.Va(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var H=_.Va(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;H&&_.No(this,function(){H.focus();H.openDialog&&H.openDialog()})}}else this.hasActionsChange=!0};
_.q.computeIsBackstage=function(A){return A};
_.q.onYtCommentboxDismiss=function(){_.Va(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.q.removePrefilledDialog=function(A){if(A==null?0:A.actions){for(var H=A.actions.length-1;H>=0;H--){var k=void 0;((k=_.L(A.actions[H],FlJ))==null?0:k.dialog)&&delete A.actions[H]}this.set("data",void 0);this.set("data",A)}};
_.q.getPrefilledBackstagePostDialog=function(A){if(A)for(var H=0;H<A.length;H++){var k=A[H],d=void 0;if((d=_.L(k,FlJ))==null?0:d.dialog)return _.L(k,FlJ).dialog}return null};
_.q.computeBackstagePostDialog=function(A){return A&&(this.getPrefilledBackstagePostDialog(A.actions)||A.createRenderer)};
_.q.dataChanged=function(){if(this.data){var A=this.data.customEmojis,H=this.data.unicodeEmojisUrl;_.y5.clear();H&&_.iRj(_.y5,H);A&&_.y5.load(A)}};
_.q.handleSignalActionOpenPostCommentDialogAction=function(){var A=_.Va(this.hostElement).querySelector("ytd-comment-simplebox-renderer");A?A.openDialog():this.JSC$16376_handleOpenPostCommentDialogActionAfterStamp=!0};
_.q.onPostHeaderTap=function(){var A;((A=this.data)==null?0:A.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.nP.Object.defineProperties(bE.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.b("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d,W,z,u;return!this.hidePanelButton&&_.b("kevlar_watch_comments_panel_button")&&((u=_.L((A=this.data)==null?void 0:(H=A.sortMenu)==null?void 0:(k=H.sortFilterSubMenuRenderer)==null?void 0:(d=k.subMenuItems)==null?void 0:(W=d[0])==null?void 0:(z=W.serviceEndpoint)==null?void 0:z.commandMetadata,_.wn))==null?void 0:u.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.$r("MINIPLAYER_EXPAND_LABEL"),text:_.Yu(_.$r("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
bE.prototype.dataChanged=bE.prototype.dataChanged;bE.prototype.onYtCommentboxDismiss=bE.prototype.onYtCommentboxDismiss;bE.prototype.observePrefilledBackstagePostDialog=bE.prototype.observePrefilledBackstagePostDialog;bE.prototype.onYtServiceRequestSent=bE.prototype.onYtServiceRequestSent;bE.prototype.onStampFinished=bE.prototype.onStampFinished;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],bE.prototype,"ytComponentBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],bE.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bE.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],bE.prototype,"compactHeader",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],bE.prototype,"engagementPanel",void 0);_.E([_.C(),_.l("design:type",Object)],bE.prototype,"hidePanelButton",void 0);_.E([_.C({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.l("design:type",Boolean)],bE.prototype,"isBackstage",void 0);_.E([_.C({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.l("design:type",Object)],bE.prototype,"backstagePostDialog",void 0);
_.E([_.C(),_.l("design:type",Object)],bE.prototype,"isPostSchedulingEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data","showCommentsPanelButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],bE.prototype,"useSpaceBetween",null);_.E([_.C({reflectToAttribute:!0}),_.G("data","hidePanelButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],bE.prototype,"showCommentsPanelButton",null);
_.E([_.G("data","showCommentsPanelButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],bE.prototype,"commentsPanelButtonData",null);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bE.prototype,"onStampFinished",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],bE.prototype,"onYtServiceRequestSent",null);
_.E([_.fF("data.actions"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bE.prototype,"observePrefilledBackstagePostDialog",null);_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],bE.prototype,"onYtCommentboxDismiss",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bE.prototype,"dataChanged",null);
_.E([_.O6({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],bE);
_.Q(bE,"ytd-comments-header-renderer",function(){if(gKN!==void 0)return gKN;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return gKN=A},{mode:1});var b9Z;var Ls=function(){return _.a.apply(this,arguments)||this};
_.I(Ls,_.a);_.E([_.C(),_.l("design:type",Object)],Ls.prototype,"data",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.E([_.O6({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Ls);
_.Q(Ls,"ytd-destination-button-renderer",function(){if(b9Z!==void 0)return b9Z;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return b9Z=A},{mode:1});var LcN;var vH=function(){var A=_.a.apply(this,arguments)||this;A.isRichGrid=!1;A.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return A};
_.I(vH,_.a);_.q=vH.prototype;_.q.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.q.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.q.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.q.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var A;if((A=this.data)==null||!A.isExpanded){A=this.hostElement.clientWidth;var H;if(A&&(H=this.data)!=null&&H.destinationButtons){H=Math.floor((A+4)/214);A=this.data.destinationButtons.length;var k=Math.ceil(A/H);this.fullyVisibleRows=A%H===1&&k===2?1:Math.min(k,2);this.isShowMoreVisible=this.fullyVisibleRows<k}}}};
_.q.updateRichGridDestinationButtonsVisibility=function(){var A,H;if(this.isRichGrid&&((A=this.data)==null||!A.isExpanded)&&(H=this.data)!=null&&H.destinationButtons){A=this.richGridItemsPerRow+1;H=this.data.destinationButtons.length;var k=Math.ceil(H/A);this.fullyVisibleRows=H%A===1&&k===2?1:Math.min(k,2);this.isShowMoreVisible=this.fullyVisibleRows<k}};
_.q.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
vH.prototype.updateRichGridDestinationButtonsVisibility=vH.prototype.updateRichGridDestinationButtonsVisibility;_.E([_.C(),_.l("design:type",Object)],vH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Number)],vH.prototype,"fullyVisibleRows",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],vH.prototype,"isShowMoreVisible",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vH.prototype,"isRichGrid",void 0);
_.E([_.C({selector:_.ik,value:0}),_.l("design:type",Number)],vH.prototype,"richGridItemsPerRow",void 0);_.E([_.C(),_.l("design:type",Object)],vH.prototype,"gridStateActionMap",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],vH.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],vH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],vH.prototype,"ytdReduxBehavior",void 0);_.E([_.fF("data","richGridItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vH.prototype,"updateRichGridDestinationButtonsVisibility",null);_.E([_.O6({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],vH);
_.Q(vH,"ytd-destination-shelf-renderer",function(){if(LcN!==void 0)return LcN;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return LcN=A},{mode:1});var vK0;var y0=function(){return _.a.apply(this,arguments)||this};
_.I(y0,_.a);y0.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],y0.prototype,"data",void 0);_.E([_.O6({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],y0);
_.Q(y0,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(vK0!==void 0)return vK0;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return vK0=A},{mode:1});var yHw;var jq=function(){var A=_.a.apply(this,arguments)||this;A.disableAnimation=!1;A.isSlimlineSurvey=!1;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;return A};
_.I(jq,_.a);jq.prototype.onTap=function(A){A.preventDefault();this.data&&_.Ed(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.nP.Object.defineProperties(jq.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 A,H,k,d,W;return((A=this.data)==null?0:A.checked)?(H=this.data)==null?void 0:(k=H.onStateIcon)==null?void 0:k.iconType:(d=this.data)==null?void 0:(W=d.defaultStateIcon)==null?void 0:W.iconType}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],jq.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],jq.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],jq.prototype,"disableAnimation",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jq.prototype,"isSlimlineSurvey",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jq.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jq.prototype,"isShortsStyle",void 0);_.E([_.G("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jq.prototype,"isAnimatedIcon",null);
_.E([_.G("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.l("design:type",Number),_.l("design:paramtypes",[])],jq.prototype,"iconSize",null);_.E([_.G("isShortsStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jq.prototype,"isDarkTheme",null);_.E([_.G("data.checked"),_.l("design:type",Object),_.l("design:paramtypes",[])],jq.prototype,"icon",null);_.E([_.O6({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],jq);
_.Q(jq,"ytd-rating-survey-option-renderer",function(){if(yHw!==void 0)return yHw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return yHw=A},{mode:2});var j2j;var Iv=function(){var A=_.a.apply(this,arguments)||this;A.firstResponseText=null;A.lastResponseText=null;A.selectedNonStarOption=null;A.hideOptions=!1;A.hideUndoButton=!0;A.disableAnimation=!1;A.showResponseRangeText=!1;A.selectedRatingIndex=-1;A.isSlimlineSurvey=!1;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;A.slimlineSurveyRatingSelectedIndex=-1;return A};
_.I(Iv,_.a);_.q=Iv.prototype;_.q.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.q.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.q.onOptionChange=function(A,H){var k=this;A=H.onStateIcon&&H.defaultStateIcon&&H.onStateIcon.iconType===H.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(u,B){u.responseText===H.responseText?k.isSlimlineSurvey?(k.selectedRatingIndex=B,k.ytdReduxBehavior.dispatch(D8Z(B))):(k.setSurveyOptionValue(B,!0,"checked"),k.setSurveyOptionValue(B,!0,"selected")):(k.setSurveyOptionValue(B,!1,"checked"),k.setSurveyOptionValue(B,
!1,"selected"))});
else if(A)this.selectedNonStarOption=H,this.hideOptions=!0;else{var d=this.ytRendererBehavior.getSimpleString(H.responseText),W=!0;this.getOptionRenderers().forEach(function(u,B){k.setSurveyOptionValue(B,W,"checked");k.setSurveyOptionValue(B,!1,"selected");k.ytRendererBehavior.getSimpleString(u.responseText)===d&&(W=!1,k.setSurveyOptionValue(B,!0,"selected"))})}A=H.responseEndpoint;
var z;H.followUpCommand&&(z=_.L(H.followUpCommand,gti));this.isSlimlineSurvey?(this.resetComponent(),_.Ud(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Ud(this.hostElement,"ytd-inline-survey-rating-select-action",[A,z])};
_.q.showSelectedOption=function(){var A=this;_.IE.addJob(function(){var H=A.getOptionRenderers()[A.slimlineSurveyRatingSelectedIndex];A.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),H)},8,100)};
_.q.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(A){var H;return(H=_.L(A,Lmw))!=null?H:{}}):[]};
_.q.onUndoClick=function(){this.resetComponent();_.Ud(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.q.setSurveyOptionValue=function(A,H,k){this.notifyPath("data.ratings."+A+".ratingSurveyOptionRenderer."+k);this.set("data.ratings."+A+".ratingSurveyOptionRenderer."+k,H)};
_.q.resetComponent=function(){var A=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var H=this.getOptionRenderers(),k,d;this.firstResponseText=(d=(k=H[0])==null?void 0:k.responseText)!=null?d:null;var W,z;this.lastResponseText=(z=(W=H[H.length-1])==null?void 0:W.responseText)!=null?z:null;H.forEach(function(u,B){A.setSurveyOptionValue(B,!1,"checked");A.setSurveyOptionValue(B,!1,"selected")})};
_.nP.Object.defineProperties(Iv.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Iv.prototype.onOptionChange=Iv.prototype.onOptionChange;Iv.prototype.dataChanged=Iv.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Iv.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Iv.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],Iv.prototype,"firstResponseText",void 0);_.E([_.C(),_.l("design:type",Object)],Iv.prototype,"lastResponseText",void 0);_.E([_.C(),_.l("design:type",Object)],Iv.prototype,"selectedNonStarOption",void 0);_.E([_.C(),_.l("design:type",Object)],Iv.prototype,"hideOptions",void 0);_.E([_.C(),_.l("design:type",Object)],Iv.prototype,"hideUndoButton",void 0);_.E([_.C(),_.l("design:type",Object)],Iv.prototype,"disableAnimation",void 0);
_.E([_.C(),_.l("design:type",Object)],Iv.prototype,"showResponseRangeText",void 0);_.E([_.C(),_.l("design:type",Object)],Iv.prototype,"selectedRatingIndex",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Iv.prototype,"isSlimlineSurvey",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Iv.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Iv.prototype,"isShortsStyle",void 0);_.E([_.C({selector:function(A){return A.ui.slimlineSurveyRatingSelectedIndex}}),
_.l("design:type",Object)],Iv.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.E([_.G("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Iv.prototype,"isSingleSelect",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Iv.prototype,"dataChanged",null);
_.E([_.Ze("ytd-rating-survey-option-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Iv.prototype,"onOptionChange",null);_.E([_.O6({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Iv);
_.Q(Iv,"ytd-rating-survey-renderer",function(){if(j2j!==void 0)return j2j;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return j2j=A},{mode:1});var I0A;var Ysw;var P8w;var EDW=(fh.FIRSTDAYOFWEEK+1)%7,GNA=function(A,H,k,d){var W="";if(d.selection&&cDC(d.selection))MF(A,d.selection)&&(W+=" selected");else if(d.selection&&pmX(d.selection)){var z=d.selection.selectionState||"START_DATE";MF(A,d.selection.start)&&(W+=" period-start ",z==="START_DATE"&&(W+="selected"));MF(A,d.selection.end)&&(W+=" period-end ",z==="END_DATE"&&(W+="selected"));nh(A,d.selection.start)||nh(d.selection.end,A)||(W+=" highlighted")}if(nh(H,d.start)||nh(d.end,H))W+=" disabled";d.circleToday&&
MF(H,k)&&(W+=" today");return W};var Ym=function(){return _.a.apply(this,arguments)||this};
_.I(Ym,_.a);_.q=Ym.prototype;_.q.attached=function(){var A=this;_.No(this,function(){A.JSC$16410_calendarMain.scrollHeight>0&&(A.calendarConfig.selection?A.scrollToDate(QKI(A.calendarConfig.selection)):A.scrollToDate(A.calendarConfig.end))})};
_.q.updateSelection=function(A){A=UD8(Object.assign({},this.calendarConfig,{selection:A}),GNA);this.splice.apply(this,["renderData.months",0,A.length].concat(_.fV(A)))};
_.q.scrollToDate=function(A){this.renderData&&(A=liV(A,this.renderData),A!==void 0&&this.JSC$16410_calendarMain.scrollToIndex(A))};
_.q.scrollToNextMonth=function(){this.JSC$16410_calendarMain.scrollToIndex(this.JSC$16410_calendarMain.firstVisibleIndex+1)};
_.q.scrollToPrevMonth=function(){this.JSC$16410_calendarMain.firstVisibleIndex===0&&this.JSC$16410_calendarMain.scrollTo(0,0);this.JSC$16410_calendarMain.scrollToIndex(this.JSC$16410_calendarMain.firstVisibleIndex-1)};
_.q.handleDayClick=function(A){_.Ud(this.hostElement,"ytd-calendar-date-clicked",[A.model.day.date])};
_.q.handleDayMouseDown=function(A){A.preventDefault();_.Ud(this.hostElement,"ytd-calendar-date-mousedown",[A.model.day.date])};
_.q.handleDayMouseUp=function(A){_.Ud(this.hostElement,"ytd-calendar-date-mouseup",[A.model.day.date])};
_.q.handleDayMouseEnter=function(A){A.preventDefault();_.Ud(this.hostElement,"ytd-calendar-date-mouseenter",[A.model.day.date])};
_.q.handleDayMouseLeave=function(A){_.Ud(this.hostElement,"ytd-calendar-date-mouseleave",[A.model.day.date])};
_.nP.Object.defineProperties(Ym.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var A=this.calendarConfig,H=GNA;H=H===void 0?GNA:H;for(var k=[],d=0;d<7;d++)k.push(fh.NARROWWEEKDAYS[(d+EDW)%7]);return{months:UD8(A,H),daysOfWeekLabel:k}}}});
_.E([_.C(),_.l("design:type",Object)],Ym.prototype,"calendarConfig",void 0);_.E([_.ol("#calendar-main"),_.l("design:type",Object)],Ym.prototype,"JSC$16410_calendarMain",void 0);_.E([_.G("calendarConfig"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ym.prototype,"renderData",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Ym);
_.Q(Ym,"ytd-scrollable-calendar",function(){if(P8w!==void 0)return P8w;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return P8w=A},{mode:2});var Fc0;var X3G;var PH=function(){var A=_.a.apply(this,arguments)||this;A.hideCharCounter=!1;A.hideLabel=!1;A.noLabelFloat=!1;A.autoValidate=!0;A.invalid=!1;A.disabled=!1;A.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return A};
_.I(PH,_.a);_.q=PH.prototype;_.q.reset=function(A){this.value=A&&this.data?this.data.value=A:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.q.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.q.focusTextInput=function(){this.input.focus()};
_.q.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()};
_.q.valueChanged=function(){var A,H;if(((A=this.data)==null?0:A.value)||((H=this.data)==null?void 0:H.value)==="")this.value=this.data.value;else{var k;((k=this.data)==null?void 0:k.value)!==void 0||this.value||(this.value="")}};
_.q.computeLabel=function(A,H){return H?"":_.PK(A)};
_.q.computeAriaLabel=function(A,H){return H?_.PK(A):""};
_.q.computeErrorMessage=function(A,H,k,d){return!A&&H?k||this.strings.REQUIRED_LABEL:_.DxG(_.PK(d))};
_.q.computeType=function(A){return A==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.q.onTextValueChanged=function(A){this.value=A.detail.value;var H;(H=this.onValueChanged)==null||H.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.q.handleUpdateTextInputFormFieldRendererCommand=function(A){(A=_.L(A,U2Q))&&this.data&&this.data.id===A.id&&(A.invalid!==void 0&&(this.invalid=A.invalid),A.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",A.invalidValueErrorMessage))};
_.q.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("value-changed",this.value))};
_.q.updateInvalidFromBinding=function(A){this.invalid=A.detail.value};
_.nP.Object.defineProperties(PH.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var A;return!((A=this.data)==null||!A.isMultiline)}}});
PH.prototype.valueChangedForBinding=PH.prototype.valueChangedForBinding;PH.prototype.valueChanged=PH.prototype.valueChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],PH.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],PH.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],PH.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],PH.prototype,"value",void 0);_.E([_.C(),_.l("design:type",String)],PH.prototype,"pattern",void 0);_.E([_.C(),_.l("design:type",String)],PH.prototype,"errorMessage",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],PH.prototype,"componentStyle",void 0);_.E([_.C(),_.l("design:type",Object)],PH.prototype,"hideCharCounter",void 0);
_.E([_.C(),_.l("design:type",Object)],PH.prototype,"hideLabel",void 0);_.E([_.C(),_.l("design:type",Object)],PH.prototype,"noLabelFloat",void 0);_.E([_.C(),_.l("design:type",Function)],PH.prototype,"onValueChanged",void 0);_.E([_.C(),_.l("design:type",Boolean)],PH.prototype,"isMultilineOverride",void 0);_.E([_.C(),_.l("design:type",Object)],PH.prototype,"autoValidate",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],PH.prototype,"invalid",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],PH.prototype,"disabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],PH.prototype,"enableOverlayTheme",void 0);_.E([_.C({value:{REQUIRED_LABEL:_.$r("REQUIRED_LABEL",void 0,"Required")}}),_.l("design:type",Object)],PH.prototype,"strings",void 0);_.E([_.ol("#input"),_.l("design:type",Object)],PH.prototype,"input",void 0);
_.E([_.G("data","isMultilineOverride"),_.l("design:type",Object),_.l("design:paramtypes",[])],PH.prototype,"isMultiline",null);_.E([_.s6("data.value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PH.prototype,"valueChanged",null);_.E([_.fF("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PH.prototype,"valueChangedForBinding",null);_.E([_.h6({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],PH);
_.Q(PH,"yt-text-input-form-field-renderer",function(){if(X3G===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;Fc0===void 0&&(Fc0=document.createElement("template"));var d=Fc0;k.call(H,d.content.cloneNode(!0),A.content.firstChild);X3G=A}A=X3G;return A},{mode:2});var Gh=function(){var A=_.a.apply(this,arguments)||this;A.data=void 0;A.selectionState="START_DATE";A.isStartDateInvalid=!1;A.isEndDateInvalid=!1;A.autoapply=!1;A.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 A};
_.I(Gh,_.a);_.q=Gh.prototype;_.q.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"}}}}};
_.q.focus=function(){this.startDateInput.focus()};
_.q.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Zv(this.data.selection.start),end:Zv(this.data.selection.end)})};
_.q.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.q.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.HR(this.selectionState)}};
_.q.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.q.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.q.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.q.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var A=this.calendar.calendarConfig,H=A.end;A=Nir({start:A.start,end:this.endDate||H},this.startDateInput.value||"");this.isStartDateInvalid=!A.isValid;A.isValid&&(A=A.value,this.selection=this.endDate?{start:A,end:this.endDate}:A,this.calendar.scrollToDate(A));this.updateInvalidState()}};
_.q.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var A=this.calendar.calendarConfig,H=A.start;A=Nir({start:this.startDate||H,end:A.end},this.endDateInput.value||"");this.isEndDateInvalid=!A.isValid;A.isValid&&(A=A.value,this.selection={start:this.startDate,end:A},this.calendar.scrollToDate(A));this.updateInvalidState()}};
_.q.handleCalendarDateClicked=function(A){var H=this.selection&&QKI(this.selection),k=this.selection&&V9A(this.selection);H&&!nh(A,H)&&this.selectionState==="END_DATE"?(this.selection={start:H,end:A},this.selectionState="START_DATE"):(k&&!nh(k,A)?this.selection={start:A,end:k}:this.selection=A,this.selectionState="END_DATE")};
_.q.handleCalendarDateMouseDown=function(A){this.selection&&!cDC(this.selection)&&(this.dragPivot=MF(A,this.selection.start)?this.selection.end:MF(A,this.selection.end)?this.selection.start:A)};
_.q.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.q.handleCalendarDateMouseEnter=function(A){this.dragPivot&&(this.selection={start:function(H,k){return nh(H,k)?H:k}(this.dragPivot,A),
end:function(H,k){return nh(H,k)?k:H}(this.dragPivot,A)},this.dragPivot||(this.selectionState="START_DATE"))};
_.q.handleCalendarDateMouseLeave=function(){};
_.q.handleCalendarSubmitDateRange=function(){this.selection&&!cDC(this.selection)&&_.Ud(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.q.updateInvalidState=function(){var A=function(H,k){k?H.setAttribute("invalid",""):H.removeAttribute("invalid")};
A(this.startDateInput,this.isStartDateInvalid);A(this.endDateInput,this.isEndDateInvalid)};
_.q.updateDateStrings=function(){this.selection&&(cDC(this.selection)?aim(this.selection):(aim(this.selection.start),aim(this.selection.end)))};
_.q.updateCalendarSelection=function(A){this.calendar.updateSelection(Object.assign({},A,{selectionState:this.selectionState}))};
_.q.updateIsStartDateInvalidFromBinding=function(A){this.isStartDateInvalid=A.detail.value};
_.q.updateIsEndDateInvalidFromBinding=function(A){this.isEndDateInvalid=A.detail.value};
_.q.updateStartDateStringFromBinding=function(){};
_.q.updateEndDateStringFromBinding=function(){};
_.nP.Object.defineProperties(Gh.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Zv(this.data.dateRangeStart),end:Zv(this.data.dateRangeEnd),selection:{start:Zv(this.data.selection.start),end:Zv(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&QKI(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&V9A(this.selection)}}});
Gh.prototype.resetTextboxes=Gh.prototype.resetTextboxes;Gh.prototype.observeSelection=Gh.prototype.observeSelection;Gh.prototype.dataChanged=Gh.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Gh.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.ol("#calendar"),_.l("design:type",Object)],Gh.prototype,"calendar",void 0);
_.E([_.ol("#start-date"),_.l("design:type",Object)],Gh.prototype,"startDateInput",void 0);_.E([_.ol("#end-date"),_.l("design:type",Object)],Gh.prototype,"endDateInput",void 0);_.E([_.C(),_.l("design:type",Object)],Gh.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Gh.prototype,"selection",void 0);_.E([_.C(),_.l("design:type",String)],Gh.prototype,"selectionState",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gh.prototype,"calendarConfig",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gh.prototype,"errorMessage",null);_.E([_.G("selection"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gh.prototype,"startDate",null);_.E([_.G("selection"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gh.prototype,"endDate",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gh.prototype,"dataChanged",null);
_.E([_.fF("selection","selectionState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gh.prototype,"observeSelection",null);_.E([_.fF("selectionState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gh.prototype,"resetTextboxes",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Gh);
_.Q(Gh,"ytd-date-period-picker-renderer",function(){if(Ysw!==void 0)return Ysw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Ysw=A},{mode:1});var F5=function(){var A=_.a.apply(this,arguments)||this;var H={};A.actionMap=(H["ytd-date-period-picker-apply"]="handleDateRangeUpdated",H);return A};
_.I(F5,_.a);F5.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
F5.prototype.handleDateRangeUpdated=function(){};
_.E([_.C(),_.l("design:type",Object)],F5.prototype,"data",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],F5.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],F5.prototype,"rendererstamperBehavior",void 0);_.E([_.O6({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],F5);
_.Q(F5,"ytd-report-history-section-header-renderer",function(){if(I0A!==void 0)return I0A;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return I0A=A},{mode:1});var Dgp;var Ssj;var C80;var X5=function(){return _.a.apply(this,arguments)||this};
_.I(X5,_.a);_.nP.Object.defineProperties(X5.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?0:(H=A.icon)==null?0:H.iconType)?_.N0(this.data.icon.iconType):""}}});
_.E([_.C(),_.l("design:type",Object)],X5.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],X5.prototype,"icon",null);_.E([_.O6({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],X5);
_.Q(X5,"ytd-report-history-table-text-cell-renderer",function(){if(C80!==void 0)return C80;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return C80=A},{mode:1});var DT=function(){return _.a.apply(this,arguments)||this};
_.I(DT,_.a);DT.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],DT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],DT.prototype,"data",void 0);_.E([_.O6({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],DT);
_.Q(DT,"ytd-report-history-table-reason-cell-renderer",function(){if(Ssj!==void 0)return Ssj;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Ssj=A},{mode:1});var Sq=function(){return _.a.apply(this,arguments)||this};
_.I(Sq,_.a);Sq.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"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Sq.prototype,"rendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Sq.prototype,"data",void 0);_.E([_.O6({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Sq);
_.Q(Sq,"ytd-report-history-table-cell-renderer",function(){if(Dgp!==void 0)return Dgp;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return Dgp=A},{mode:1});var KcA;var Cs=function(){var A=_.a.apply(this,arguments)||this;A.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 A};
_.I(Cs,_.a);Cs.prototype.onDataChanged=function(){var A;if((A=this.data)==null?0:A.style)this.componentStyle=this.getStyleName(this.data.style)};
Cs.prototype.getCellForColumn=function(A){return this.cells.find(function(H){var k;return((k=_.L(H==null?void 0:H.cell,jqj)||_.L(H==null?void 0:H.cell,yq1))==null?void 0:k.columnId)===A.type})};
Cs.prototype.getClassForColumn=function(A){switch(A){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Cs.prototype.getStyleName=function(A){switch(A){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.nP.Object.defineProperties(Cs.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.cells)||[]).map(function(H){return _.L(H,vtp)})}}});
Cs.prototype.onDataChanged=Cs.prototype.onDataChanged;_.E([_.C(),_.l("design:type",Object)],Cs.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Array)],Cs.prototype,"columnRenderData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],Cs.prototype,"componentStyle",void 0);_.E([_.G("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],Cs.prototype,"cells",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cs.prototype,"onDataChanged",null);_.E([_.O6({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Cs);
_.Q(Cs,"ytd-report-history-table-row-renderer",function(){if(KcA!==void 0)return KcA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return KcA=A},{mode:1});var a0w;var cHi;var M9f={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},nDW={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Ks=function(){return _.a.apply(this,arguments)||this};
_.I(Ks,_.a);Ks.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"}}}}}};
Ks.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.nP.Object.defineProperties(Ks.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.columns)?$DQ(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return wmI(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var A=this.tableSpec,H=M9f;H=H===void 0?nDW:H;H=oDf(A.columnDimensions,A.columnsToShow||[],H);A=0;H=_.r(H);for(var k=H.next();!k.done;k=H.next())k=k.value,A+=k.minWidth+k.paddingLeft+k.paddingRight;return A}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.E([_.P(_.DV),_.l("design:type",Object)],Ks.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ks.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ks.prototype,"tableSpec",null);_.E([_.G("tableSpec"),_.l("design:type",Array),_.l("design:paramtypes",[])],Ks.prototype,"columnRenderData",null);
_.E([_.G("tableSpec"),_.l("design:type",Number),_.l("design:paramtypes",[])],Ks.prototype,"totalMinWidth",null);_.E([_.G("totalMinWidth"),_.l("design:type",String),_.l("design:paramtypes",[])],Ks.prototype,"tableWidthStyle",null);_.E([_.O6({is:"ytd-table-renderer",disableElementRegistration:!0})],Ks);
_.Q(Ks,"ytd-table-renderer",function(){if(cHi!==void 0)return cHi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cHi=A},{mode:1});var av=function(){return _.a.apply(this,arguments)||this};
_.I(av,_.a);av.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}}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],av.prototype,"data",void 0);_.E([_.O6({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],av);
_.Q(av,"ytd-report-reason-history-modal-renderer",function(){if(a0w!==void 0)return a0w;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return a0w=A},{mode:1});var p3w;var Q2k;var VbA;var cH=function(){return _.a.apply(this,arguments)||this};
_.I(cH,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cH.prototype,"data",void 0);_.E([_.O6({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],cH);
_.Q(cH,"ytd-profile-column-stats-entry-renderer",function(){if(VbA!==void 0)return VbA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return VbA=A},{mode:1});var EKp;var ps=function(){return _.a.apply(this,arguments)||this};
_.I(ps,_.a);ps.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ps.prototype,"data",void 0);_.E([_.O6({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],ps);
_.Q(ps,"ytd-profile-column-stats-renderer",function(){if(EKp!==void 0)return EKp;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return EKp=A},{mode:1});var UgZ;var Q0=function(){return _.a.apply(this,arguments)||this};
_.I(Q0,_.a);_.nP.Object.defineProperties(Q0.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.useThumbnailSize)return 80;var H,k;A=(H=this.data)==null?void 0:(k=H.thumbnail)==null?void 0:k.thumbnails;var d;return A&&((d=A[0])==null?void 0:d.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.useThumbnailSize)return 80;var H,k;A=(H=this.data)==null?void 0:(k=H.thumbnail)==null?void 0:k.thumbnails;var d;return A&&((d=A[0])==null?void 0:d.height)||80}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Q0.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],Q0.prototype,"componentStyle",void 0);_.E([_.G("data.useThumbnailSize"),_.l("design:type",Object),_.l("design:paramtypes",[])],Q0.prototype,"thumbnailWidth",null);
_.E([_.G("data.useThumbnailSize"),_.l("design:type",Object),_.l("design:paramtypes",[])],Q0.prototype,"thumbnailHeight",null);_.E([_.O6({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Q0);
_.Q(Q0,"ytd-profile-column-user-info-renderer",function(){if(UgZ!==void 0)return UgZ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return UgZ=A},{mode:1});var V0=function(){return _.a.apply(this,arguments)||this};
_.I(V0,_.a);V0.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]]"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],V0.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],V0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],V0.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],V0.prototype,"componentStyle",void 0);_.E([_.O6({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],V0);
_.Q(V0,"ytd-profile-column-renderer",function(){if(Q2k!==void 0)return Q2k;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Q2k=A},{mode:1});var Ej=function(){var A=_.a.apply(this,arguments)||this;A.componentStyle="NON_CENTERED_PROFILE";return A};
_.I(Ej,_.a);Ej.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Ej.prototype.getIcon=function(A){return A?"settings:"+A.toLowerCase():null};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ej.prototype,"data",void 0);_.E([_.O6({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Ej);
_.Q(Ej,"ytd-page-introduction-renderer",function(){if(p3w!==void 0)return p3w;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return p3w=A},{mode:1});var l0A;var Uj=function(){return _.a.apply(this,arguments)||this};
_.I(Uj,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Uj.prototype,"data",void 0);_.E([_.O6({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Uj);
_.Q(Uj,"ytd-report-description-renderer",function(){if(l0A!==void 0)return l0A;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return l0A=A},{mode:1});var tbj;var N$w;var lE=function(){return _.a.apply(this,arguments)||this};
_.I(lE,_.a);lE.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lE.prototype,"data",void 0);_.E([_.O6({is:"ytd-video-report-renderer",disableElementRegistration:!0})],lE);
_.Q(lE,"ytd-video-report-renderer",function(){if(N$w!==void 0)return N$w;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return N$w=A},{mode:1});var MbA;_.uL("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.uL("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var tC=function(){return _.a.apply(this,arguments)||this};
_.I(tC,_.a);tC.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]]"}}}}}};
tC.prototype.computeMessageStyle=function(A){return A};
tC.prototype.computeButtonOverride=function(A){var H;if((A==null?0:(H=A.style)==null?0:H.value)&&A.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],tC.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tC.prototype,"shelf",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tC.prototype,"panel",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.l("design:type",Boolean)],tC.prototype,"componentStyle",void 0);_.E([_.C({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],tC.prototype,"buttonOverride",void 0);_.E([_.O6({is:"ytd-message-renderer",disableElementRegistration:!0})],tC);
_.Q(tC,"ytd-message-renderer",function(){if(MbA!==void 0)return MbA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return MbA=A},{mode:1});var Na=function(){return _.a.apply(this,arguments)||this};
_.I(Na,_.a);Na.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"}}}};
Na.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Na.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.nP.Object.defineProperties(Na.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var A,H;return!!(((A=this.data)==null?0:A.header)&&((H=this.data)==null?0:H.table))}}});
Na.prototype.onRequestError=Na.prototype.onRequestError;_.E([_.P(_.DV),_.l("design:type",Object)],Na.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Na.prototype,"data",void 0);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Na.prototype,"isUnifiedReportHistory",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Na.prototype,"onRequestError",null);_.E([_.O6({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Na);
_.Q(Na,"ytd-report-history-section-renderer",function(){if(tbj!==void 0)return tbj;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tbj=A},{mode:1});var nKQ;var Ma=function(){var A=_.a.apply(this,arguments)||this;A.answerExpanded=!1;return A};
_.I(Ma,_.a);Ma.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ma.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ma.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ma.prototype,"answerExpanded",void 0);_.E([_.O6({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Ma);
_.Q(Ma,"ytd-handles-claiming-faq-renderer",function(){if(nKQ!==void 0)return nKQ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return nKQ=A},{mode:1});var Z9G;var f0w=function(){return _.a.apply(this,arguments)||this};
_.I(f0w,_.a);_.E([_.C(),_.l("design:type",Object)],f0w.prototype,"data",void 0);_.E([_.O6({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],f0w);
_.Q(f0w,"ytd-handles-claiming-faq-section-renderer",function(){if(Z9G!==void 0)return Z9G;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Z9G=A},{mode:1});var w3Q;var ns=function(){var A=_.a.apply(this,arguments)||this;A.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";A.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";A.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";A.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";A.leftSquiggly=A.leftSquigglyLight;A.rightSquiggly=A.rightSquigglyLight;
A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return A};
_.I(ns,_.a);_.q=ns.prototype;_.q.updateLeftSquigglyStyle=function(){_.NH(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.q.updateRightSquigglyStyle=function(){_.NH(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.q.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
_.q.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),A?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
ns.prototype.updateRightSquigglyStyle=ns.prototype.updateRightSquigglyStyle;ns.prototype.updateLeftSquigglyStyle=ns.prototype.updateLeftSquigglyStyle;_.E([_.C(),_.l("design:type",Object)],ns.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],ns.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",String)],ns.prototype,"leftSquiggly",void 0);_.E([_.C(),_.l("design:type",String)],ns.prototype,"rightSquiggly",void 0);
_.E([_.fF("leftSquiggly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ns.prototype,"updateLeftSquigglyStyle",null);_.E([_.fF("rightSquiggly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ns.prototype,"updateRightSquigglyStyle",null);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],ns.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ns.prototype,"actionButtonOverride",void 0);_.E([_.O6({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],ns);
_.Q(ns,"ytd-handles-claiming-header-renderer",function(){if(w3Q!==void 0)return w3Q;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return w3Q=A},{mode:1});var oKQ;var ZT=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";A.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";A.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";A.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
A.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";A.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";A.image0SquigglyBackground=A.image0LightSquigglyBackground;A.image1SquigglyBackground=A.image1LightSquigglyBackground;A.image3SquigglyBackground=A.image3LightSquigglyBackground;return A};
_.I(ZT,_.a);_.q=ZT.prototype;_.q.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.q.onDataChanged=function(){this.updateTitleAndImages()};
_.q.onThemeChanged=function(){this.updateTitleAndImages()};
_.q.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
_.q.updateImage0SquigglyBackground=function(){_.NH(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.q.updateImage1SquigglyBackground=function(){_.NH(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.q.updateImage3SquigglyBackground=function(){_.NH(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.q.updateTitleAndImages=function(){var A,H;((A=this.data)==null?void 0:(H=A.titleImages)==null?void 0:H.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))};
ZT.prototype.updateImage3SquigglyBackground=ZT.prototype.updateImage3SquigglyBackground;ZT.prototype.updateImage1SquigglyBackground=ZT.prototype.updateImage1SquigglyBackground;ZT.prototype.updateImage0SquigglyBackground=ZT.prototype.updateImage0SquigglyBackground;ZT.prototype.onThemeChanged=ZT.prototype.onThemeChanged;ZT.prototype.onDataChanged=ZT.prototype.onDataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],ZT.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ZT.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"title0",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"title1",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"title2",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"title3",void 0);
_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"title4",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"image0",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"image1",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"image2",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"image3",void 0);_.E([_.C(),_.l("design:type",Object)],ZT.prototype,"image4",void 0);_.E([_.C(),_.l("design:type",String)],ZT.prototype,"image0SquigglyBackground",void 0);
_.E([_.C(),_.l("design:type",String)],ZT.prototype,"image1SquigglyBackground",void 0);_.E([_.C(),_.l("design:type",String)],ZT.prototype,"image3SquigglyBackground",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZT.prototype,"onDataChanged",null);_.E([_.fF("isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZT.prototype,"onThemeChanged",null);
_.E([_.fF("image0SquigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZT.prototype,"updateImage0SquigglyBackground",null);_.E([_.fF("image1SquigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZT.prototype,"updateImage1SquigglyBackground",null);
_.E([_.fF("image3SquigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZT.prototype,"updateImage3SquigglyBackground",null);_.E([_.O6({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],ZT);
_.Q(ZT,"ytd-handles-claiming-title-images-section-renderer",function(){if(oKQ!==void 0)return oKQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return oKQ=A},{mode:1});var $gp;var wm=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(wm,_.a);wm.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
wm.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A)};
wm.prototype.onCopyButtonClick=function(){var A=this,H,k,d;return _.e(function(W){return(H=A.data)!=null&&H.primaryChannelUrl?W.yield(navigator.clipboard.writeText(((k=A.data)==null?0:k.encodedChannelUrl)?A.data.encodedChannelUrl:"https://"+_.PK((d=A.data)==null?void 0:d.primaryChannelUrl)),0):W.jumpTo(0)})};
_.E([_.C(),_.l("design:type",Object)],wm.prototype,"data",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],wm.prototype,"ytComponentBehavior",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],wm.prototype,"isDarkTheme",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],wm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.O6({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],wm);
_.Q(wm,"ytd-handles-claiming-update-social-renderer",function(){if($gp!==void 0)return $gp;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return $gp=A},{mode:1});var ATj;var ov=function(){var A=_.a.apply(this,arguments)||this;A.JSC$16504_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";A.JSC$16504_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.squigglyBackground=A.JSC$16504_squigglyBackgroundLight;return A};
_.I(ov,_.a);ov.prototype.updateSquigglyBackgroundStyle=function(){_.NH(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ov.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.squigglyBackground=A?this.JSC$16504_squigglyBackgroundDark:this.JSC$16504_squigglyBackgroundLight};
ov.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),this.squigglyBackground=A?this.JSC$16504_squigglyBackgroundDark:this.JSC$16504_squigglyBackgroundLight)};
ov.prototype.updateSquigglyBackgroundStyle=ov.prototype.updateSquigglyBackgroundStyle;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],ov.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ov.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ov.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",String)],ov.prototype,"squigglyBackground",void 0);_.E([_.fF("squigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ov.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.O6({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ov);
_.Q(ov,"ytd-handles-claiming-vanity-info-renderer",function(){if(ATj!==void 0)return ATj;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return ATj=A},{mode:1});var HyA;var $m=function(){var A=_.a.apply(this,arguments)||this;A.JSC$16507_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";A.JSC$16507_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";A.squigglyBackground=A.JSC$16507_squigglyBackgroundLight;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I($m,_.a);_.q=$m.prototype;_.q.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
_.q.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),this.squigglyBackground=A?this.JSC$16507_squigglyBackgroundDark:this.JSC$16507_squigglyBackgroundLight)};
_.q.updateSquigglyBackgroundStyle=function(){_.NH(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.q.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.q.detached=function(){this.stop()};
_.q.stop=function(){this.playerElement.stop()};
_.q.setupVideoPlayer=function(){var A=this,H,k;return _.e(function(d){H=A.data.videoId;k="http://i1.ytimg.com/vi/"+H+"/maxresdefault.jpg";A.playerElement.loadVideoWithPlayerVars({video_id:H,iurlhq:k});_.EN(d)})};
$m.prototype.onDataChanged=$m.prototype.onDataChanged;$m.prototype.updateSquigglyBackgroundStyle=$m.prototype.updateSquigglyBackgroundStyle;_.E([_.C({value:!1}),_.l("design:type",Boolean)],$m.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",String)],$m.prototype,"squigglyBackground",void 0);_.E([_.ol("#player"),_.l("design:type",Object)],$m.prototype,"playerElement",void 0);_.E([_.C(),_.l("design:type",Object)],$m.prototype,"data",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],$m.prototype,"ytActionHandlerBehavior",void 0);_.E([_.fF("squigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$m.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$m.prototype,"onDataChanged",null);
_.E([_.O6({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],$m);
_.Q($m,"ytd-handles-claiming-video-item-renderer",function(){if(HyA!==void 0)return HyA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return HyA=A},{mode:1});var s$Z;var H_=function(){var A=_.A6.apply(this,arguments)||this;A.dragging=!1;A.dragMouseStart=0;A.dragOffsetStart=0;A.containerWidthDiff=0;A.boundPrevClick=function(){A.set("offset",Ah(A,A.offset-(A.scrollDistance||320)))};
A.boundNextClick=function(){A.set("offset",Ah(A,A.offset+(A.scrollDistance||320)))};
A.boundScrollContainerMouseDown=function(H){A.dragMouseStart=H.clientX;A.dragOffsetStart=A.offset;A.dragging=!0};
A.boundScrollContainerDrag=function(H){A.dragging&&A.set("offset",Ah(A,A.dragOffsetStart-(H.clientX-A.dragMouseStart)))};
A.boundMouseUp=function(){A.onMouseUp()};
A.boundWheelScroll=function(H){var k=0;Math.abs(H.deltaX)>=Math.abs(H.deltaY)?k=H.deltaX:H.shiftKey&&(k=H.deltaY);k!==0&&(A.offset+=k,H.stopPropagation(),H.preventDefault())};
A.boundChipCloudChipScrollIntoView=function(H){(H=H.detail)&&A.scrollChipIntoView(H)};
return A};
_.I(H_,_.A6);H_.prototype.attached=function(){var A=_.Va(this.hostElement).querySelector("#scroll-container");A.addEventListener("wheel",this.boundWheelScroll);A.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);A.style.touchAction="pan-y";A.addEventListener("pointerdown",this.boundScrollContainerMouseDown);A.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
H_.prototype.detached=function(){var A=_.Va(this.hostElement).querySelector("#scroll-container");A.removeEventListener("wheel",this.boundWheelScroll);A.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);A.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);A.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
H_.prototype.reset=function(){this.set("offset",0);_.No(this,this.setContainerWidthDiff);_.No(this,this.setButtonsState)};
var Ah=function(A,H){return Math.min(Math.max(H,0),A.containerWidthDiff)};
_.q=H_.prototype;_.q.onMouseUp=function(){this.dragging=!1};
_.q.transformContainer=function(){this.offset=Ah(this,this.offset);var A=_.pZ("HTML_DIR")==="rtl"?"":"-";_.Va(this.hostElement).querySelector("#chips").style.transform="translateX("+A+this.offset+"px)";_.No(this,this.setButtonsState)};
_.q.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Ah(this,this.offset));this.atStart=this.offset<=0};
_.q.setContainerWidthDiff=function(){var A=_.Va(this.hostElement).querySelector("#scroll-container"),H=_.Va(this.hostElement).querySelector("#chips");A&&H&&(this.containerWidthDiff=H.clientWidth-A.clientWidth)};
_.q.scrollChipIntoView=function(A){var H=_.Va(this.hostElement).querySelector("#scroll-container");if(H){var k=this.atStart?0:106,d=this.atEnd?0:106;A.offsetLeft<this.offset+k?this.offset=Ah(this,A.offsetLeft-k):A.offsetLeft+A.clientWidth>this.offset+H.clientWidth-d&&(this.offset=Ah(this,A.offsetLeft+A.clientWidth+d-H.clientWidth))}};
H_.prototype.transformContainer=H_.prototype.transformContainer;_.E([_.C({value:0}),_.l("design:type",Number)],H_.prototype,"offset",void 0);_.E([_.C({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],H_.prototype,"atStart",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],H_.prototype,"atEnd",void 0);_.E([_.C(),_.l("design:type",Number)],H_.prototype,"scrollDistance",void 0);
_.E([_.fF("offset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],H_.prototype,"transformContainer",null);_.E([_.HW()],H_);var kxA;var d5w;_.sq=_.c(function(A){var H=A.data;A=_.r(_.RV(!1,void 0,"bob3J"));var k=A.next().value,d=A.next().value;A=function(z){if((H==null?void 0:H().state)!==1){var u,B;(B=(u=H()).onTap)==null||B.call(u,z)}};
var W={};return _.x("chip-shape",{class:"ytChipShapeHost","on:focusin":_.lc(function(){var z=_.wj().resolve(_.fZ(_.ah));if(z){d(z.isKeyBoardInUse());var u,B;(B=(u=H()).onFocusIn)==null||B.call(u)}return!1}),
"on:focusout":_.lc(function(){d(!1);return!1})},_.x(WDp,{shouldWrapInButton:function(){return H().type!==2},
selected:function(){return H().state===0},
onClick:A,isDropdown:function(){return H().type===1},
accessibilityLabel:function(){return H().type===1?void 0:H().accessibilityLabel}},_.x("div",{class:_.ER("ytChipShapeChip",function(){a:switch(H==null?void 0:H().state){case 0:var z="ytChipShapeActive";
break a;case 1:z="ytChipShapeDisabled";break a;default:z="ytChipShapeInactive"}return z},function(){var z=H().type===1||H().type===2,u=H();
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=H();
if((z==null?void 0:z.style)===0&&(z==null?void 0:z.state)===0){var u;z=((u=_.wj().resolve(_.fZ(_.sF)))==null?0:u())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else z="";return z},(W.ytChipShapeFocused=function(){var z;
return k()&&((z=H())==null?void 0:z.state)!==1},W))},_.x(_.R,{cond:function(){return H().startIcon},
then:function(){return _.x(_.n3,{icon:function(){var z;return(z=H())==null?void 0:z.startIcon},
className:_.ER(function(){return H().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var z=H(),u,B=(u=_.wj().resolve(_.fZ(_.sF)))==null?void 0:u();
return(z==null?void 0:z.style)===0&&(z==null?void 0:z.state)===0&&B?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return H().text},_.x(z0Q,{shape:H,
onClick:A}),_.x(_.pM,{model:{borderRadius:"8px"}}))))},"Rc");
_.sq.idomCompat=!0;var WDp=_.c(function(A){var H=_.lc(function(k){A.onClick(k);return!1});
return _.x(_.R,{cond:A.shouldWrapInButton,then:function(){return _.x("button",{class:"ytChipShapeButtonReset","on:click":H,role:function(){return A.isDropdown()?"combobox":"tab"},
"aria-label":A.accessibilityLabel,"aria-selected":A.selected},A.children)},
else:function(){return A.children}})},"Sc"),z0Q=_.c(function(A){var H=A.shape;
var k=A.onClick;var d=_.lc(function(W){k(W);return!1});
return _.x(_.Yl,null,_.x(_.y$,{when:function(){return H().type===1}},function(){return _.x(_.n3,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.x(_.y$,{when:function(){return H().type===2}},function(){return _.x("button",{class:"ytChipShapeButtonReset",
"on:click":d},_.x(_.n3,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.x(_.y$,{when:function(){return H().type===0}},function(){return _.x(_.sD,null)}))},"Tc");_.Sw(_.sq,"chip-shape",{props:{data:_.Ih}});var kx=function(){var A=_.a.apply(this,arguments)||this;A.disableDeselectEvent=!1;A.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return A};
_.I(kx,_.a);_.q=kx.prototype;_.q.onSelectChipCommand=function(A){if(!this.selected&&this.data&&(A=_.L(A,D2j),A.targetId&&A.targetId===this.data.targetId))this.onTap()};
_.q.onFilterChipTransformCommand=function(A){if(!this.selected&&this.data){var H;(A=(H=_.L(A,vsi))==null?void 0:H.chipUniqueId)&&A===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.q.dataChanged=function(){var A=this;_.No(this,function(){A.data&&A.data.isSelected&&!A.selected&&(A.scrollChipIntoView(),A.onTap())})};
_.q.computeChipStyle=function(A){return A!=null?A:"STYLE_DEFAULT"};
_.q.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.Ud(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Ud(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.q.onFocus=function(){var A=_.wj().resolve(_.fZ(_.ah));A&&A.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.q.scrollChipIntoView=function(){_.Ed(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.nP.Object.defineProperties(kx.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return zHA({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
kx.prototype.onFocus=kx.prototype.onFocus;kx.prototype.onTap=kx.prototype.onTap;kx.prototype.dataChanged=kx.prototype.dataChanged;_.E([_.P(_.$2),_.l("design:type",Object)],kx.prototype,"ironButtonState",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],kx.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],kx.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.fo),_.l("design:type",Object)],kx.prototype,"ironA11yKeysBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kx.prototype,"disableDeselectEvent",void 0);_.E([_.C(),_.l("design:type",Object)],kx.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.icon"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],kx.prototype,"hasIcon",null);
_.E([_.C({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.l("design:type",String)],kx.prototype,"chipStyle",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],kx.prototype,"selected",void 0);_.E([_.G("data","selected"),_.l("design:type",Object),_.l("design:paramtypes",[])],kx.prototype,"chipShapeData",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kx.prototype,"dataChanged",null);
_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kx.prototype,"onTap",null);_.E([_.Ze("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kx.prototype,"onFocus",null);_.E([_.h6({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],kx);
_.Q(kx,"yt-chip-cloud-chip-renderer",function(){if(d5w===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;kxA===void 0&&(kxA=document.createElement("template"));var d=kxA;k.call(H,d.content.cloneNode(!0),A.content.firstChild);d5w=A}A=d5w;return A},{mode:2});var ueb=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.qgw=_.c(function(A){function H(){if(ueb.has(A.data().displayType)){var O=!d(),T;if((T=A.disableDeselection)==null||!T.call(A)||O){A.data().selected=O;T=Object.assign({},u(),{selected:O});B(T);var m;(m=A.callback)==null||m.call(A,T,O)}}}
var k=_.GP("chip-view-model",function(O){var T=A.data().tooltipTargetId,m=_.$f();T&&_.oY(m,T,O);return function(){wC(m,O)}}),d=function(){var O,T;
return!!(((O=A.selected)==null?void 0:O.call(A))!==void 0?(T=A.selected)==null?0:T.call(A):u().selected)},W=_.r(_.C0(A.data)),z=W.next().value;
W=W.next().value;var u=z,B=W,h=_.o9(rEr,function(){return A.data().chipEntityKey||""});
return _.x("chip-view-model",{class:"ytChipViewModelHost",el:k},_.x(_.sq,{data:function(){var O,T=Object.assign({},u(),{selected:d()}),m=h(),J=(O=A.disableDeselection)==null?void 0:O.call(A);a:switch(T.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":O=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":O=3;break a;default:O=0}return{text:(m==null?void 0:m.text)||T.text,state:T.disabled?1:T.selected?0:2,type:O,onTap:BDW(T,k,H,
J),accessibilityLabel:T.accessibilityLabel||T.text}}}))},"Uc");
_.qgw.idomCompat={callbacks:{callback:!0}};_.dr=_.c(function(A){A=_.SD(A,{nextButtonStyle:0});var H=A.data,k=A.callback,d=A.selectionBehavior,W=A.disableChipsScrollAnimation,z=A.nextButtonStyle,u=_.FQ("div");A=_.r(_.RV(!0,void 0,"VwW6Jc"));var B=A.next().value,h=A.next().value;A=_.r(_.RV(!1,void 0,"OIoagd"));var O=A.next().value,T=A.next().value,m=!1,J=0,g=function(){switch(z()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.Sp(function(){h(X());T(D())});
A=_.r(_.C0(function(){var hA={};return H().autoselectedChipIndex!=null?(hA[H().autoselectedChipIndex]=!0,hA):{}}));
var v=A.next().value,y=A.next().value,X=function(){var hA=u.value;return hA==null||hA.scrollLeft-1<=0},D=function(){var hA=u.value;
return hA==null?!1:hA.scrollLeft+1>=(hA==null?NaN:hA.scrollWidth)-(hA==null?NaN:hA.clientWidth)},K=function(){return H().isHorizontallyScrollable},N=function(hA){u.value!=null&&(_.pZ("HTML_DIR")==="rtl"&&(hA=-hA),u.value.scrollBy({left:hA,
behavior:(W==null?0:W())?"instant":"smooth"}))},U=function(){N(-320)},p=function(){N(320)},M=_.lc(function(hA){m=!0;
J=hA.clientX}),Z=_.lc(function(hA){if(m){hA=hA.clientX;
var qv=hA-J;J=hA;var eN;(eN=u.value)==null||eN.scrollBy({left:-qv})}}),WV=_.lc(function(){var hA=X(),qv=D();
hA!==B()&&h(hA);qv!==O()&&T(qv)});
_.ll("pointerup",function(){m&&(m=!1)});
return _.x("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.x(_.nK,{contentId:function(){return H().contentId},
useModernStyle:!0},function(){var hA={},qv={};return _.x("div",null,_.x(_.R,{cond:function(){return H().title},
then:function(){return _.x("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.x("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return H().title}),_.x(_.HG,{data:function(){return H().overflowButton}},{buttonViewModel:_.U7}))}}),_.x("div",{class:_.ER("ytChipsShelfViewModelChipsShelfContent",g)},_.x(_.R,{cond:function(){return H().previousButton},
then:function(){var eN={};return _.x("div",{class:_.ER("ytChipsShelfViewModelLeftArrowContainer",(eN.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return B()},eN))},_.x(_.HG,{data:function(){return H().previousButton}},{buttonViewModel:function(mr){return _.x(_.U7,{data:mr.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:U})}}))}}),_.x("div",{el:u,
"on:pointerdown":M,"on:pointermove":Z,"on:scroll":WV,class:_.ER("ytChipsShelfViewModelChipsScrollContainer",(hA.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=K,hA))},_.x("div",{class:_.ER("ytChipsShelfViewModelChipsContainer",(qv.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=K,qv.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,qv)),role:"tablist"},_.x(_.HG,{data:function(){return H().contents}},{chipViewModel:function(eN,mr){return _.x("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.x(_.qgw,{data:eN.data,
callback:function(Cl,pl){var UC=mr(),hk,eA=(hk=d==null?void 0:d())!=null?hk:0;eA===1||eA===2?(hk={},y((hk[UC]=pl,hk))):eA===0&&(hk={},y(Object.assign({},v(),(hk[UC]=pl,hk))));k==null||k(Cl,pl,UC)},
disableDeselection:function(){return(d==null?void 0:d())===1},
selected:function(){return!!v()[mr()]}}))}}))),_.x(_.R,{cond:function(){return H().nextButton},
then:function(){var eN={};return _.x("div",{class:_.ER("ytChipsShelfViewModelRightArrowContainer",(eN.ytChipsShelfViewModelRightArrowContainerIsHidden=O,eN))},_.x(_.HG,{data:function(){return H().nextButton}},{buttonViewModel:function(mr){return _.x(_.U7,{data:mr.data,
className:"ytChipsShelfViewModelRightArrow",onClick:p})}}))}})))}))},"Wc");
_.dr.idomCompat={callbacks:{callback:!0}};var rTi=_.c(function(A){var H=A.data;var k=A.showChips;var d=A.isUpdateInProgress;var W=A.chipClickCallback;A=_.r(_.RV(!1,void 0,"uth3se"));var z=A.next().value,u=A.next().value;A=_.r(_.RV(!1,void 0,"qED0bb"));var B=A.next().value,h=A.next().value,O=function(){var m,J;return!((m=H())==null?0:m.responseMessage)&&!((J=H())==null||!J.chipsShelf)},T=void 0;
_.CA(function(){h(!0);var m=(k()||O())&&!d();requestAnimationFrame(function(){u(m)});
T&&clearTimeout(T);T=setTimeout(function(){h(!1)},300)},"OBQBmf");
_.aV(function(){T&&clearTimeout(T)});
A={};return _.x("ytd-ai-response-box-view-model",{class:_.ER("ytdAiResponseBoxViewModelHost")},_.x("div",{class:_.ER("ytdAiResponseBoxViewModelResponseMessageContainer",(A.ytdAiResponseBoxViewModelResponseMessageContainerHidden=z,A.ytdAiResponseBoxViewModelNotShown=function(){return z()&&!B()},A))},_.x(_.R,{cond:d,
then:function(){return _.x("div",null,_.x(_.j$,{text:function(){return H().responsePendingMessage}}))},
else:function(){return _.x(_.sD,null,_.x(_.R,{cond:function(){var m;return(m=H().responseMessageIcon)==null?void 0:m.iconType},
then:function(m){return _.x("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.x(_.n3,{icon:m}))}}),_.x("div",null,_.x(_.j$,{text:function(){return H().responseMessage}})))}})),_.x(_.HG,{data:function(){return H().chipsShelf}},{chipsShelfViewModel:function(m){m=m.data;
var J={};return _.x("div",{class:_.ER("ytdAiResponseBoxViewModelChipsShelfContainer",(J.ytdAiResponseBoxViewModelChipsShelfContainerShown=z,J.ytdAiResponseBoxViewModelNotShown=function(){return!z()&&!B()},J))},_.x(_.dr,{data:m,
selectionBehavior:3,nextButtonStyle:1,callback:W}))}}))},"Yc");var u40;u40=Object.assign({},{continuation:bbj,download:h9Z,canvas:roI,reportChannelAbuse:Yqi,ui:Bvl,share:Pvw,talkToRecs:X_G,watch:Jy,ypc:aBG,radioButtonGroup:zQr,collabInviteLink:dOW},gxN,{voiceSearch:iKN,shorts:Td});_.BpN=eO(u40);_.e0p=xE(_.BpN);_.x5w=(0,_.e0p)(_.BpN.talkToRecs,{talkToRecsStateSelector:function(A){return A}});var h0j=_.c(function(A){var H=_.r((0,_.Gq)(A.data)).next().value,k=_.be(function(){var QW;a:{if(QW=H().onUpdateText)if(QW=_.L(QW,_.ic)){var mG;QW=(mG=_.L(QW,IPZ))==null?void 0:mG.stepId;break a}QW=void 0}return QW},void 0,"olO2Rd");
A=_.r(_.RV(!1,void 0,"QCzl5d"));var d=A.next().value,W=A.next().value;A=_.r(_.RV(!1,void 0,"cQ7jrd"));var z=A.next().value,u=A.next().value;A=_.r(qPv());var B=A.next().value;A=A.next().value;var h=_.oy(_.x5w.talkToRecsStateSelector),O=_.r(_.RV("",void 0,"ry2Eac")),T=O.next().value,m=O.next().value;O=_.r(_.RV(!1,void 0,"EwWXmb"));var J=O.next().value,g=O.next().value,v=_.r(_.RV(!1,void 0,"hORmtb"));O=v.next().value;var y=v.next().value;v=_.r(_.RV(!1,void 0,"fBzwv"));var X=v.next().value,D=v.next().value;
v=_.r(_.RV(!1,void 0,"BCC4Zc"));var K=v.next().value,N=v.next().value,U=_.GP("div");v=_.r(_.RV(void 0,void 0,"Xvb7gd"));var p=v.next().value,M=v.next().value,Z=void 0,WV=function(QW){QW!==d()&&(u(!0),W(QW),Z&&clearTimeout(Z),Z=setTimeout(function(){u(!1)},300))},hA=function(){if(p()!==void 0){var QW=p();
WV(window.scrollY>QW)}},qv=function(){var QW;
M((QW=U.value)==null?void 0:QW.offsetHeight);B("yt-feed-filter-chip-bar-resize")},eN="";
_.CA(function(){eN=T()},"UJeAbb");
_.CZ(function(){var QW,mG,nN,G0=(nN=(mG=eHX(k(),h()))!=null?mG:(QW=H().textInputValue)==null?void 0:QW.content)!=null?nN:"";m(G0);Cl(G0);g(!!H().welcomeBannerTitle&&!G0);qv();document.addEventListener("scroll",hA);_.aV(function(){document.removeEventListener("scroll",hA);Z&&clearTimeout(Z)})});
_.CA(function(){J();qv()},"AySmPb");
v=_.lc(function(){D(!0);y(!0)});
var mr=_.lc(function(){y(!1)});
_.CA(function(){var QW=H();D(!1);N(!1);g(!!QW.welcomeBannerTitle&&!eN);var mG,nN;((nN=_.L((mG=QW.contents)==null?void 0:mG[0],f4Z))==null?0:nN.responseMessageIcon)?m(iyQ.cachedUserQuery):iyQ.cachedUserQuery=eN},"OF3gn");
var Cl=function(QW){var mG=H().onUpdateText;mG&&_.mu(mG,{form:{userQuery:QW}})},pl=_.hK(function(QW){Cl(QW)},150),UC=_.lc(function(QW){QW=QW.target.value;
m(QW);pl(QW);return!1});
_.CA(function(){var QW=eHX(k(),h());QW!==void 0&&QW!==eN&&m(QW)},"qcZk5e");
var hk=function(){N(!0);g(!1)},eA=function(){var QW=_.L(H().submitButton,_.vY);
if(QW==null?0:QW.trackingParams){var mG=_.db(QW.trackingParams),nN=_.hx();nN&&mG&&_.GH(nN,mG,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(QW=QW==null?void 0:QW.onTap)_.mu(QW),hk()},lI=_.lc(function(QW){QW.key==="Enter"&&(Cl(QW.target.value.trim()),eA());
return!1}),Rp=function(){eA()},vj=_.lc(function(){B("yt-feed-customization-scroll-up")}),T0={},Y1={},ze={},Tf={};
return _.x("ytd-feed-customization-form-view-model",{class:_.ER("ytdFeedCustomizationFormViewModelHost",(T0.ytdFeedCustomizationFormViewModelHostCollapsed=d,T0)),el:_.P8(A)},_.x("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:U},_.x("div",{class:_.ER("ytdFeedCustomizationFormViewModelExpandedContent",(Y1.ytdFeedCustomizationFormViewModelNotShown=function(){return d()&&!z()},Y1))},_.x(_.R,{cond:function(){return H().disclaimer},
then:function(){return _.x("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.x(_.j$,{text:function(){return H().disclaimer}}))}}),_.x(_.R,{cond:J,
then:function(){return _.x("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.x("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.x(_.j$,{text:function(){return H().welcomeBannerTitle}})),_.x("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.x(_.j$,{text:function(){return H().welcomeBannerSubtitle}})))}}),_.x("div",{class:_.ER("ytdFeedCustomizationFormViewModelInputContainer",(ze.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
O,ze))},_.x("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var QW;return(QW=H().textInputPlaceholder)==null?void 0:QW.content},
"prop:value":T,"on:focus":v,"on:blur":mr,"on:input":UC,"on:keyup":lI,maxlength:300,disabled:K}),_.x(_.R,{cond:function(){return!!T()&&!K()},
then:function(){return _.x(_.HG,{data:function(){return H().clearButton}},{buttonViewModel:function(QW){return _.x("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.x(_.U7,{data:QW.data}))}})}}),_.x(_.R,{cond:function(){return K()},
then:function(){return _.x(_.HG,{data:function(){return H().inProgressButton}},{buttonViewModel:function(QW){return _.x("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.x(_.U7,{data:QW.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.x(_.HG,{data:function(){return H().submitButton}},{buttonViewModel:function(QW){return _.x("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.x(_.U7,{data:QW.data,
onClick:hk}))}})}}),_.x(_.HG,{data:function(){return H().menuButton}},{buttonViewModel:function(QW){return _.x("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.x(_.U7,{data:QW.data,
buttonOverrides:function(){return{disabled:K()}}}))}})),_.x(_.HG,{data:function(){return H().contents}},{aiResponseBoxViewModel:function(QW){return _.x("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.x(rTi,{data:QW.data,
showChips:X,isUpdateInProgress:K,chipClickCallback:Rp}))}})),_.x("div",{class:_.ER("ytdFeedCustomizationFormViewModelCollapsedContent",(Tf.ytdFeedCustomizationFormViewModelNotShown=function(){return!d()&&!z()},Tf)),
"on:click":vj},_.x("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var QW;return T()||((QW=H().textInputPlaceholder)==null?void 0:QW.content)}))))},"cd"),Oyj=function(){this.cachedUserQuery=""};
Oyj.prototype.reset=function(){this.cachedUserQuery=""};
var iyQ=new Oyj;_.Sw(h0j,"ytd-feed-customization-form-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=_.r((0,_.Gq)(A.data)).next().value;return _.x("yt-chip-content-loader-view-model",{class:"ytChipContentLoaderViewModelHost"},_.x(_.HG,{data:function(){return H().contents}},{feedCustomizationFormViewModel:function(k){return _.x(h0j,{data:k.data})}}))},"dd"),"yt-chip-content-loader-view-model",{props:{data:_.Ih}});var R0Q=_.yP.persistentPanelVisibleSelector,W_=function(){var A=_.a.apply(this,arguments)||this;A.isDarkTheme=!1;A.notSticky=!1;A.transparentBackground=!1;A.shouldHide=!1;A.disableSticky=!1;A.fluidWidth=!1;A.isClipList=!1;A.defaultChipIndex=0;A.hasSelectedChipContent=!1;A.isPlaylist=!1;A.playlistVotingAnimationEnabled=_.b("web_enable_voting_animation");A.toolbarHeight=0;A.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(W_,_.a);_.q=W_.prototype;
_.q.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"},chipContentLoaderViewModel:{component:"yt-chip-content-loader-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.q.attached=function(){var A=this;document.addEventListener("scroll",_.nF(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.nF(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var H;this.toolbarHeight=((H=document.querySelector("ytd-masthead"))==null?void 0:H.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(k){A.handleIntersect(k)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){A.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.q.detached=function(){var A;(A=this.intersectionObserver)==null||A.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect();document.removeEventListener("scroll",_.nF(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.nF(this,this.onFeedFilterChipBarResize))};
_.q.dataChanged=function(){var A=this,H,k,d=(H=this.data)==null?void 0:(k=H.contents)==null?void 0:k.findIndex(function(z){var u;return!((u=_.L(z,V0A))==null?0:u.navigationEndpoint)});
d&&(this.defaultChipIndex=d);this.updating=!0;var W=this.findSelectedChipIndex();this.selectedIndex!==W&&(this.selectedIndex=-1);_.No(this,function(){A.selectedIndex=W;A.updateSelectedChipContent(A.selectedIndex);A.updating=!1;A.ytScrollableChipCloudBehavior.reset()})};
_.q.findSelectedChipIndex=function(){var A;if((A=this.data)==null||!A.contents)return 0;A=this.data.contents;for(var H=0;H<A.length;H++){var k=void 0;if((k=_.L(A[H],V0A))==null?0:k.isSelected)return H}return 0};
_.q.computeStyle=function(A){return A};
_.q.handleChipCloudChipSelectAction=function(A){A=this.JSC$16554_chipsSelector.indexOf(A);A>-1&&(this.JSC$16554_chipsSelector.selectIndex(A),this.updateSelectedChipContent(A))};
_.q.updateSelectedChipContent=function(A){var H;if((H=this.data)==null||!H.contents||A<0||A>=this.data.contents.length)this.selectedChipContent=void 0;else{var k;this.selectedChipContent=(k=_.L(this.data.contents[A],V0A))==null?void 0:k.content}};
_.q.handleChipCloudChipDeselectAction=function(){if(_.b("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var A,H,k,d=(k=_.L((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H[this.defaultChipIndex],V0A))==null?void 0:k.navigationEndpoint;d&&_.Ud(this.hostElement,"yt-browse-section-list-reload-endpoint",[d]);this.JSC$16554_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.q.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.q.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.q.updateDynamicHeight=function(){var A=this;this.hasSelectedChipContent&&!this.notSticky?_.No(this,function(){var H=_.Va(A.hostElement).querySelector("#chips-wrapper");H&&_.NH(A.hostElement,{"--ytd-chips-bar-dynamic-height":H.clientHeight+"px"})}):_.NH(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.q.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.q.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.q.onResize=function(){this.updateLayout()};
_.q.updateLayout=function(){var A=this.ytScrollableChipCloudBehavior;_.No(A,A.setContainerWidthDiff);A=this.ytScrollableChipCloudBehavior;_.No(A,A.setButtonsState)};
_.q.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.q.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.q.handleIntersect=function(A){this.notSticky=this.isChannelPageGrid||this.disableSticky||A[0].intersectionRatio===1};
_.q.updateDimensions=function(){var A=this.ytRendererBehavior.parentComponent;if(A){var H,k=(H=A.headerElement)!=null?H:A;_.NH(this.hostElement,{"--ytd-rich-grid-chips-bar-width":k.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.q.updateSelectedIndexFromBinding=function(A){this.selectedIndex=A.detail.value};
_.q.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var A;(A=this.sortFilterHeaderRendererElement)==null||A.setAttribute("is-playlist-page-with-filters","")}};
_.q.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(KPw(!this.notSticky))};
_.nP.Object.defineProperties(W_.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 A,H,k=(A=this.data)==null?void 0:(H=A.contents)==null?void 0:H.find(function(d){return _.L(d,Ns0)});
return{sortFilterHeaderRenderer:_.L(k,Ns0)}}}});
W_.prototype.dispatchChipBarIsSticky=W_.prototype.dispatchChipBarIsSticky;W_.prototype.isPlaylistPageChanged=W_.prototype.isPlaylistPageChanged;W_.prototype.updateChipBarWidthAndTop=W_.prototype.updateChipBarWidthAndTop;W_.prototype.onResize=W_.prototype.onResize;W_.prototype.onPersistentPanelVisibleChanged=W_.prototype.onPersistentPanelVisibleChanged;W_.prototype.onGuideIsExpandedChanged=W_.prototype.onGuideIsExpandedChanged;W_.prototype.updateDynamicHeight=W_.prototype.updateDynamicHeight;
W_.prototype.onSelectedChipContentChanged=W_.prototype.onSelectedChipContentChanged;W_.prototype.dataChanged=W_.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],W_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],W_.prototype,"actionHandlerBehavior",void 0);
_.E([_.P(_.WU),_.l("design:type",Object)],W_.prototype,"ironResizableBehavior",void 0);_.E([_.P(),_.l("design:type",H_)],W_.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],W_.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],W_.prototype,"data",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],W_.prototype,"selectedIndex",void 0);_.E([_.C({value:320}),_.l("design:type",Number)],W_.prototype,"scrollDistance",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W_.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W_.prototype,"notSticky",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W_.prototype,"transparentBackground",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.l("design:type",String)],W_.prototype,"componentStyle",void 0);
_.E([_.C({selector:_.j6I}),_.l("design:type",Boolean)],W_.prototype,"guideIsExpanded",void 0);_.E([_.C({selector:R0Q}),_.l("design:type",Boolean)],W_.prototype,"persistentPanelVisible",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W_.prototype,"shouldHide",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W_.prototype,"disableSticky",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W_.prototype,"fluidWidth",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W_.prototype,"isClipList",void 0);_.E([_.C(),_.l("design:type",Object)],W_.prototype,"defaultChipIndex",void 0);_.E([_.C(),_.l("design:type",Object)],W_.prototype,"selectedChipContent",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W_.prototype,"hasSelectedChipContent",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],W_.prototype,"isPlaylist",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],W_.prototype,"playlistVotingAnimationEnabled",void 0);_.E([_.ol("#chips"),_.l("design:type",Object)],W_.prototype,"JSC$16554_chipsSelector",void 0);_.E([_.ol("ytd-sort-filter-header-renderer"),_.l("design:type",HTMLElement)],W_.prototype,"sortFilterHeaderRendererElement",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],W_.prototype,"updating",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"dataChanged",null);_.E([_.fF("selectedChipContent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"onSelectedChipContentChanged",null);_.E([_.fF("hasSelectedChipContent","notSticky"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"updateDynamicHeight",null);
_.E([_.fF("guideIsExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"onGuideIsExpandedChanged",null);_.E([_.fF("persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"onPersistentPanelVisibleChanged",null);_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"onResize",null);
_.E([_.s6("isChannelPageGrid","disableSticky","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"updateChipBarWidthAndTop",null);_.E([_.G("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],W_.prototype,"isChannelPageGrid",null);_.E([_.G("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],W_.prototype,"isHashtagLandingPage",null);
_.E([_.fF("isPlaylistPage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"isPlaylistPageChanged",null);_.E([_.G("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],W_.prototype,"isPlaylistPage",null);_.E([_.G("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],W_.prototype,"isDisableDeselectEvent",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],W_.prototype,"sortFilterHeaderRendererData",null);_.E([_.C({reflectToAttribute:!0,selector:_.DKW}),_.l("design:type",String)],W_.prototype,"frostedGlassMode",void 0);_.E([_.fF("notSticky"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W_.prototype,"dispatchChipBarIsSticky",null);_.E([_.O6({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],W_);
_.Q(W_,"ytd-feed-filter-chip-bar-renderer",function(){if(s$Z!==void 0)return s$Z;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return s$Z=A},{mode:1});var Tp0;var m5i=_.c(function(A){var H=A.data;var k=A.buttonIndex;var d=A.selectedIndex;var W=A.onSelect;var z=function(){return k()===d()},u=function(){var B,h;
return(h=(B=H().text)==null?void 0:B.content)!=null?h:""};
A=_.BG();return _.x("yt-toggleable-image-button-view-model",{class:function(){var B={};B=(B.toggleableImageButtonViewModelHost=!0,B[""]=!0,B.toggleableImageButtonViewModelSemiTransparent=d()!==-1&&!z(),B);return _.u2(B)},
tabindex:0,"aria-label":u,"aria-pressed":z,role:"button","on:keydown":A,"on:click":_.lc(function(){W(H().onSubmitCommand);return!1})},_.x(_.R,{cond:function(){return H().logo},
then:function(B){return _.x(_.GA,{data:B,className:function(){var h={};h=(h.toggleableImageButtonViewModelImage=!0,h.toggleableImageButtonViewModelCircularRadius=!(!H().backgroundColor||!H().backgroundColorDarkMode),h.toggleableImageButtonViewModelGradientRing=!!(z()&&H().backgroundColor&&H().backgroundColorDarkMode),h);return _.u2(h)},
alt:u,useWidth:!1,style:function(){if(z()&&H().backgroundColor&&H().backgroundColorDarkMode){var h=OJ(Number(H().backgroundColorDarkMode),"1");var O=OJ(Number(H().backgroundColor),"1");h="background: linear-gradient(180deg,"+h+","+O+") border-box;"}else h="";return h}})}}),_.x(_.pM,{model:{borderRadius:"16px"}}),_.x("p",{class:function(){var B={};
B=(B.toggleableImageButtonViewModelLabel=!0,B.toggleableImageButtonViewModelBoldText=z(),B);return _.u2(B)}},_.x(_.j$,{text:function(){return H().text}})))},"ed");
m5i.idomCompat=!0;var gnj=_.c(function(A){var H=A.data;A=_.r(_.RV({index:-1,command:{}},void 0,"GM3umb"));var k=A.next().value,d=A.next().value;return _.x("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.x("div",{class:"nudgeFormViewModelFormOptions"},_.x(_.HG,{data:function(){return H().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(W,z){return _.x(m5i,{data:W.data,buttonIndex:z,selectedIndex:function(){return k().index},
onSelect:function(u){d({index:z(),command:u})}})}})),_.x(_.j$,{text:function(){return H().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.x("div",{class:"nudgeFormViewModelSubmit"},_.x(_.HG,{data:function(){return H().submitButton}},{buttonViewModel:function(W){return _.x(JTJ,{data:W.data,
isDisabled:function(){return k().index===-1},
onClick:function(){_.mu(k().command)}})}})))},"fd");
gnj.idomCompat=!0;var JTJ=_.c(function(A){var H=_.be(function(){return Object.assign({},A.data(),{state:A.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.x(_.U7,{data:H,onClick:A.onClick})},"gd");_.Sw(gnj,"yt-nudge-form-view-model",{props:{data:_.Ih}});var z8=function(){var A=_.a.apply(this,arguments)||this;A.roundedContainer=!0;A.buttonUpdate=_.b("web_modern_buttons");A.isDarkMode=!1;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return A};
_.I(z8,_.a);_.q=z8.prototype;_.q.computeNudgeStyle=function(A){return A?"modernized-nudge":""};
_.q.handleDarkModeToggledAction=function(A){this.isDarkMode=A};
_.q.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.q.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"}}}};
_.q.computeIsHorizontalButtons=function(A){return A?!!A.applyModernizedStyle&&!!A.enableHorizontalButtons&&!!A.secondaryButton:!1};
_.nP.Object.defineProperties(z8.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=(A=this.data)==null?void 0:A.backgroundStyle)!=null?H:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=(A=this.data)==null?void 0:A.contentsLocation)!=null?H:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.lightIconImage)}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],z8.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],z8.prototype,"actionHandlerBehavior",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("isHideEnclosingAction"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z8.prototype,"isHidden",null);_.E([_.C(),_.l("design:type",Object)],z8.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],z8.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],z8.prototype,"buttonUpdate",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.l("design:type",String)],z8.prototype,"nudgeStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.trimStyle"),_.l("design:type",String),_.l("design:paramtypes",[])],z8.prototype,"trimStyle",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.backgroundStyle"),_.l("design:type",String),_.l("design:paramtypes",[])],z8.prototype,"backgroundStyle",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data.contentsLocation"),_.l("design:type",String),_.l("design:paramtypes",[])],z8.prototype,"contentsLocation",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.disableDropShadow"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z8.prototype,"noShadow",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.lightIconImage"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z8.prototype,"noIcon",null);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.l("design:type",Boolean)],z8.prototype,"isHorizontalButtons",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Object)],z8.prototype,"isDarkMode",void 0);_.E([_.O6({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],z8);
_.Q(z8,"ytd-feed-nudge-renderer",function(){if(Tp0!==void 0)return Tp0;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Tp0=A},{mode:2});var byj;var LDj;var q8=function(){var A=_.a.apply(this,arguments)||this;A.collapsed=!1;A.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return A};
_.I(q8,_.a);q8.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"}}}};
q8.prototype.handleRatingSelect=function(){var A;((A=this.data)==null?0:A.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
q8.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],q8.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],q8.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.JB),_.l("design:type",Object)],q8.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],q8.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],q8.prototype,"collapsed",void 0);_.E([_.O6({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],q8);
_.Q(q8,"ytd-slimline-survey-renderer",function(){if(LDj!==void 0)return LDj;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return LDj=A},{mode:1});var vnw;var rr=function(){return _.a.apply(this,arguments)||this};
_.I(rr,_.a);rr.prototype.maybeGetBackgroundColor=function(A){return this.isDarkMode?A.section2Color:A.section3Color};
rr.prototype.colorPaletteChanged=function(){var A=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;A&&(A==null?0:A.secondaryTitleColor)&&this.maybeGetBackgroundColor(A)?(this.hostElement.style.backgroundColor=_.iw(this.maybeGetBackgroundColor(A)),this.hostElement.style.color=_.iw(A.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
rr.prototype.colorPaletteChanged=rr.prototype.colorPaletteChanged;_.E([_.P(_.TG),_.l("design:type",Object)],rr.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rr.prototype,"data",void 0);_.E([_.C({selector:function(A){return A.ui.darkModeIsEnabled}}),
_.l("design:type",Boolean)],rr.prototype,"isDarkMode",void 0);_.E([_.C(),_.l("design:type",Object)],rr.prototype,"lightColorPalette",void 0);_.E([_.C(),_.l("design:type",Object)],rr.prototype,"darkColorPalette",void 0);_.E([_.fF("darkColorPalette","lightColorPalette","data","isDarkMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rr.prototype,"colorPaletteChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],rr);
_.Q(rr,"ytd-endorsement-header-renderer",function(){if(vnw!==void 0)return vnw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return vnw=A},{mode:1});_.Sw(_.TU,"yt-decorated-avatar-view-model",{props:{data:_.Ih,className:_.Ih}});_.uv=new _.SE("VIEW_TRANSITION_MANAGER_TOKEN");var B_=function(){var A=_.a.apply(this,arguments)||this;A.fullHeight=_.b("web_rich_grid_media_full_height");A.showChannelAvatar=!0;A.hasPlaylistThumbnail=!1;A.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};A.registerThumbnailForPageTransition=function(){_.b("web_thumbnail_to_watch_transition")&&_.yTZ(_.wj().resolve(_.uv),A.thumbnail)};
return A};
_.I(B_,_.a);_.q=B_.prototype;
_.q.configureRendererStamper=function(){return{lazyLoadMenu:se,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"}}}};
_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.shouldLazyLoadMenu=function(){var A=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.b("kevlar_modern_downloads_page")||!A};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16578_inlinePreviewHoverListener=m5({mediaRenderer:this,lockupElement:this.JSC$16578_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.q.getVideoPreviewOpts=function(){var A={},H;if((H=this.data)==null?0:H.multipleInlinePlaybackEndpoint)A=qPQ;this.isRadio&&(A=zHk);return A};
_.q.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16578_inlinePreviewHoverListener)==null||cl(A)};
_.q.getOwner=function(){var A,H,k;return((A=this.data)==null?void 0:(H=A.channelThumbnailSupportedRenderers)==null?void 0:H.channelThumbnailWithLinkRenderer)||_.L((k=this.data)==null?void 0:k.showProviderChannelThumbnail,CG0)};
_.q.updateLockupSize=function(){var A;((A=this.getOwner())==null?0:A.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.q.getFeedbackEndpoint=function(A){if(_.L(A,_.Ts))return A;var H,k;A=(k=(H=_.L(A,_.nH))==null?void 0:H.commands)!=null?k:[];H=_.r(A);for(k=H.next();!k.done;k=H.next())if(k=this.getFeedbackEndpoint(k.value))return k;return null};
_.q.computeNavigationEndpoint=function(A){return X2I(A==null?void 0:A.navigationEndpoint)};
_.q.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var A=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(A)!==JSON.stringify(this.data)&&this.set("data",A)}};
_.q.onDataChanged=function(){var A=this,H=this.getOwner();if(H){this.set("data.owner",H);var k,d,W,z,u,B=((k=this.data)==null?void 0:(d=k.shortBylineText)==null?void 0:(W=d.runs)==null?void 0:(z=W[0])==null?void 0:z.text)||((u=H.name)==null?void 0:u.simpleText);this.set("data.owner.title",B)}var h,O,T,m,J,g;H=((h=this.data)==null?void 0:(O=h.thumbnailRenderer)==null?void 0:O.playlistVideoThumbnailRenderer)||((T=this.data)==null?void 0:(m=T.thumbnailRenderer)==null?void 0:m.playlistCustomThumbnailRenderer)||
((J=this.data)==null?void 0:(g=J.thumbnailRenderer)==null?void 0:g.showCustomThumbnailRenderer);var v;((v=this.data)==null?0:v.thumbnail)||!H||this.set("data.thumbnail",H.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){A.updateLockupSize()});
var y;if(h=((y=this.data)==null?void 0:y.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(h);var X;((X=this.dismissActionToReplayEntity)==null?0:X.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.q.onHiddenChanged=function(){this.updateLockupSize()};
_.q.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Ud(this.hostElement,"yt-terminate-video-preview-action");else{var A;(A=this.videoTitleLink)==null||A.focus()}};
_.q.metadataColorChanged=function(){var A;if(this.metadataColor&&((A=this.videoTitle)==null?0:A.style))this.videoTitle.style.color=_.iw(this.metadataColor);else{var H,k;!this.metadataColor&&((H=this.videoTitle)==null?0:(k=H.style)==null?0:k.color)&&(this.videoTitle.style.color="")}};
_.q.onDetailsClick=function(A){var H=this.computedNavigationEndpoint;H&&(_.XU(_.F_(A),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Ed(this.hostElement,"yt-navigate",{endpoint:H}))};
_.q.onRendererTap=function(){this.registerThumbnailForPageTransition();var A,H,k=((A=this.data)==null?void 0:A.serviceEndpoint)||this.getFeedbackEndpoint((H=this.data)==null?void 0:H.navigationEndpoint);k&&_.L(k,_.Ts)&&this.ytComponentBehavior.resolveCommand(k)};
_.q.onMouseDown=function(A){var H=A.target,k=this.computedNavigationEndpoint,d;A=H.href||((d=_.L(k==null?void 0:k.commandMetadata,_.wn))==null?void 0:d.url);d=H.data||k;A&&d&&noI(A,d)};
_.q.computeVideoTitleText=function(){var A;if((A=this.data)==null?0:A.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.q.computeHasPlaylistThumbnail=function(A){var H,k,d,W,z;if((((H=A.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((k=A.thumbnailRenderer)==null?0:k.playlistCustomThumbnailRenderer)||((d=A.thumbnailRenderer)==null?0:d.showCustomThumbnailRenderer)||((W=A.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((z=A.thumbnailRenderer)==null?0:z.playlistCustomThumbnailRenderer))&&A.thumbnailOverlays)for(H=0;H<A.thumbnailOverlays.length;H++)if(k=void 0,(k=A.thumbnailOverlays[H])==
null?0:k.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.nP.Object.defineProperties(B_.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.b("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var A;return(A=this.data)==null?void 0:A.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var A;return(A=this.data)==null?void 0:A.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$16578_inlinePreviewHoverListener)==null?0:LK(A))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.ojC(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:A.videoId)||((H=this.data)==null?void 0:H.playlistId)||""}}});
B_.prototype.onMouseDown=B_.prototype.onMouseDown;B_.prototype.metadataColorChanged=B_.prototype.metadataColorChanged;B_.prototype.onIsDismissedChanged=B_.prototype.onIsDismissedChanged;B_.prototype.onHiddenChanged=B_.prototype.onHiddenChanged;B_.prototype.onDataChanged=B_.prototype.onDataChanged;B_.prototype.handleReloadDownloadsInfo=B_.prototype.handleReloadDownloadsInfo;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],B_.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],B_.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],B_.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],B_.prototype,"ytdReduxBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],B_.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],B_.prototype,"entitySelectorType",void 0);_.E([_.C(),_.l("design:type",Boolean)],B_.prototype,"noEndpoints",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],B_.prototype,"isRadio",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],B_.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],B_.prototype,"fullHeight",void 0);
_.E([_.C(),_.l("design:type",Boolean)],B_.prototype,"showDarkVideoMetadata",void 0);_.E([_.C(),_.l("design:type",Boolean)],B_.prototype,"showLightVideoMetadata",void 0);_.E([_.C(),_.l("design:type",Number)],B_.prototype,"metadataColor",void 0);_.E([_.C(),_.l("design:type",Object)],B_.prototype,"showChannelAvatar",void 0);_.E([_.C(),_.l("design:type",Boolean)],B_.prototype,"hidden",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],B_.prototype,"showYtInteraction",void 0);
_.E([_.C(),_.l("design:type",String)],B_.prototype,"dismissedContentId",void 0);_.E([_.C({selectorArgs:["dismissedContentId"],selector:F4f}),_.l("design:type",Object)],B_.prototype,"dismissActionToReplayEntity",void 0);
_.E([_.C({selectorArgs:["entitySelectorType","mediaId"],selector:function(A,H,k){if(_.b("kevlar_modern_downloads_page")&&k&&H&&H!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var d=apI(A,k);if(d){H=_.TK(A,k);var W=Jr(A,k),z=Zgm(A,k);A=gl(A,k);var u=kUA(d,H,W,z);W=u.shortViewCountText;var B=u.publishedTimeText;u=u.badges;var h=A>0;z=HKA(d,H,z,A);d=_.sA(H)||H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!HK(d.policyEntity)?
void 0:GBf(k,A,d.videoEntity.lengthSeconds);H==="TRANSFER_STATE_PAUSED_BY_USER"&&k&&!_.b("dl_resume_click_killswitch")&&(d={offlineVideoEndpoint:{videoId:k,action:"ACTION_RESUME"}});k={shortViewCountText:W,publishedTimeText:B,badges:u,isWatched:h,navigationEndpoint:d,thumbnailOverlays:z}}else k=void 0;return k;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(H=cBv(A,k))if(d=_.mj(A,k),z=_.pwb(A,k),d!=="TRANSFER_STATE_UNKNOWN"){k=sWf(H,d,z,k,_.Rc(A));break a}k=void 0}return k;default:_.Pq(new _.Ti("Error: entitySelectorType defined but not matched in selector.",
A,H))}}}),
_.l("design:type",Object)],B_.prototype,"entityDrivenState",void 0);_.E([_.C({computed:"computeVideoTitleText(data)"}),_.l("design:type",Object)],B_.prototype,"videoTitleText",void 0);_.E([_.C({computed:"computeHasPlaylistThumbnail(data)"}),_.l("design:type",Object)],B_.prototype,"hasPlaylistThumbnail",void 0);_.E([_.C({computed:"computeNavigationEndpoint(data)"}),_.l("design:type",Object)],B_.prototype,"computedNavigationEndpoint",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],B_.prototype,"typographyBump",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("typographyBump"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],B_.prototype,"typographyBumpV2",null);_.E([_.ol("#video-title"),_.l("design:type",HTMLElement)],B_.prototype,"videoTitle",void 0);_.E([_.ol("#video-title-link"),_.l("design:type",HTMLElement)],B_.prototype,"videoTitleLink",void 0);
_.E([_.ol("#thumbnail"),_.l("design:type",HTMLElement)],B_.prototype,"thumbnail",void 0);_.E([_.ol("#dismissible"),_.l("design:type",HTMLElement)],B_.prototype,"JSC$16578_dismissibleMedia",void 0);_.E([_.G("data.menu"),_.l("design:type",Object),_.l("design:paramtypes",[])],B_.prototype,"lazyLoadMenu",null);_.E([_.G("data.menu"),_.l("design:type",Object),_.l("design:paramtypes",[])],B_.prototype,"immediateLoadMenu",null);
_.E([_.s6("entityDrivenState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],B_.prototype,"handleReloadDownloadsInfo",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],B_.prototype,"onDataChanged",null);_.E([_.s6("hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],B_.prototype,"onHiddenChanged",null);
_.E([_.fF("isDismissed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],B_.prototype,"onIsDismissedChanged",null);_.E([_.fF("metadataColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],B_.prototype,"metadataColorChanged",null);_.E([_.Ze("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],B_.prototype,"onMouseDown",null);
_.E([_.G("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],B_.prototype,"isHovered",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],B_.prototype,"useAvatar",null);_.E([_.G("data","entitySelectorType"),_.l("design:type",String),_.l("design:paramtypes",[])],B_.prototype,"mediaId",null);_.E([_.O6({is:"ytd-rich-grid-media",disableElementRegistration:!0})],B_);
var j$J=_.Vu()(B_,"ytd-rich-grid-media",function(){if(byj!==void 0)return byj;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return byj=A},{mode:2});var IMZ;var e6=function(){var A=_.a.apply(this,arguments)||this;A.removeMaxWidth=!0;A.insetMetadata=!1;return A};
_.I(e6,_.a);_.q=e6.prototype;_.q.configureRendererStamper=function(){return{innerMenu:se,outerMenu:Object.assign({},se,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.onDataChanged=function(){var A,H=((A=this.data)==null?void 0:A.trackingParams)||"";H&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(H));var k;((k=this.dismissActionToReplayEntity)==null?0:k.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16583_inlinePreviewHoverListener=m5({mediaRenderer:this,lockupElement:this.JSC$16583_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:rEG})};
_.q.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16583_inlinePreviewHoverListener)==null||cl(A)};
_.q.onRendererTap=function(){var A,H,k=(A=this.data)==null?void 0:(H=A.serviceEndpoints)==null?void 0:H[0];_.L(k,_.Ts)&&this.componentBehavior.resolveCommand(k)};
_.q.onDetailsClick=function(A){var H,k=(H=this.data)==null?void 0:H.navigationEndpoint;k&&(_.XU(_.F_(A),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(k))};
_.q.onShow=function(){var A=this.data;A.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(A.onFirstVisibleCommand),delete A.onFirstVisibleCommand)};
_.nP.Object.defineProperties(e6.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var A;return this.insetMetadata?void 0:(A=this.data)==null?void 0:A.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var A;return this.insetMetadata?(A=this.data)==null?void 0:A.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var A=this.data;if(A!=null&&A.badge&&(A=_.L(A.badge,Spi))){var H,k,d;return[{metadataBadgeRenderer:{label:((H=A.label)==null?void 0:(k=H.runs)==null?void 0:k[0].text)||((d=A.label)==null?void 0:d.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var A=this.data;return Object.assign({},A.headline,{accessibility:A.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return this.isSlimShort?(A=this.computedTitle)==null?void 0:(H=A.accessibility)==null?void 0:(k=H.accessibilityData)==null?void 0:k.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.b("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$16583_inlinePreviewHoverListener)==null?0:LK(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
e6.prototype.onDataChanged=e6.prototype.onDataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],e6.prototype,"componentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],e6.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.JB),_.l("design:type",Object)],e6.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],e6.prototype,"ytdReduxBehavior",void 0);_.E([_.ol("ytd-thumbnail"),_.l("design:type",HTMLElement)],e6.prototype,"thumbnail",void 0);_.E([_.ol("#dismissible"),_.l("design:type",HTMLElement)],e6.prototype,"JSC$16583_dismissibleMedia",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],e6.prototype,"removeMaxWidth",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],e6.prototype,"insetMetadata",void 0);_.E([_.C(),_.l("design:type",String)],e6.prototype,"dismissedContentId",void 0);_.E([_.C({selectorArgs:["dismissedContentId"],selector:F4f}),_.l("design:type",Object)],e6.prototype,"dismissActionToReplayEntity",void 0);_.E([_.G("insetMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],e6.prototype,"thumbnailObjectFit",null);
_.E([_.G("data","insetMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],e6.prototype,"innerMenu",null);_.E([_.G("data","insetMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],e6.prototype,"outerMenu",null);_.E([_.C(),_.l("design:type",Object)],e6.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],e6.prototype,"miniMode",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],e6.prototype,"onDataChanged",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],e6.prototype,"shortsBadges",null);_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],e6.prototype,"isShort",null);
_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],e6.prototype,"isSlimShort",null);_.E([_.G("data","isShort"),_.l("design:type",Object),_.l("design:paramtypes",[])],e6.prototype,"computedTitle",null);_.E([_.G("isSlimShort","computedTitle"),_.l("design:type",Object),_.l("design:paramtypes",[])],e6.prototype,"computedAccessibilityLabel",null);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],e6.prototype,"shouldForce2By3",null);_.E([_.G("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],e6.prototype,"isHovered",null);_.E([_.O6({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],e6);
_.Q(e6,"ytd-rich-grid-slim-media",function(){if(IMZ!==void 0)return IMZ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return IMZ=A},{mode:2});var Ygi;var PNA;var xx=function(){return _.a.apply(this,arguments)||this};
_.I(xx,_.a);xx.prototype.computeIcon=function(A){return A&&A.iconType?"yt-sys-icons:"+A.iconType.toLowerCase():""};
xx.prototype.onMouseEnter=function(){this.isHovered=!0};
xx.prototype.onMouseLeave=function(){this.isHovered=!1};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],xx.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xx.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],xx.prototype,"isHovered",void 0);
_.E([_.O6({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],xx);
_.Q(xx,"ytd-expand-on-hover-card-renderer",function(){if(PNA!==void 0)return PNA;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return PNA=A},{mode:1});var GxN,FD0=function(){if(GxN!==void 0)return GxN;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return GxN=A};_.uL("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var iv=function(){var A=_.a.apply(this,arguments)||this;A.compactStyle=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(iv,_.a);_.q=iv.prototype;_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.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"}}}};
_.q.computeHideDot=function(A){return!(A&&A.subscriberCountText&&A.videoCountText)||this.compactStyle};
_.q.hasDualButtons=function(A){return A&&A.purchaseButton&&A.subscribeButton};
_.q.backgroundColorChanged=function(){if(this.data!==void 0){var A=this.data.backgroundColor;this.isDarkTheme&&(A=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=A!=null?_.iw(A):"transparent"}};
_.q.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.q.onTap=function(A){var H,k,d=((H=this.data)==null?void 0:H.navigationEndpoint)||((k=this.data)==null?void 0:k.serviceEndpoint);_.L(d,_.FB)&&(d&&_.wj().resolve(_.J7).resolveCommand(d,{form:{element:this.hostElement}}),A.preventDefault())};
_.q.computeChannelEndpoint=function(A){return _.L(A,_.FB)?null:A};
_.q.computeHrefEndpoint=function(A){return _.L(A,_.FB)?null:this.componentBehavior.computeHref_(A)};
_.q.computeChannelRendererStyle=function(A){return A};
_.q.computeIconSize=function(A){return A?108:136};
_.nP.Object.defineProperties(iv,{template:{configurable:!0,enumerable:!0,get:function(){return FD0()}}});
iv.prototype.backgroundColorChanged=iv.prototype.backgroundColorChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],iv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],iv.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],iv.prototype,"componentBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],iv.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],iv.prototype,"isDarkTheme",void 0);_.E([_.C({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.l("design:type",String)],iv.prototype,"channelRendererStyle",void 0);_.E([_.C({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],iv.prototype,"dualButtons",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],iv.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.k6("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],iv.prototype,"biggerThumbStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],iv.prototype,"compactStyle",void 0);_.E([_.fF("data","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iv.prototype,"backgroundColorChanged",null);_.E([_.O6({is:"ytd-channel-renderer",disableElementRegistration:!0})],iv);_.Q(iv,"ytd-channel-renderer",function(){return FD0()},{mode:1});var XPk;var D5A;_.uL("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var hh=function(){var A=_.a.apply(this,arguments)||this;A.displayItemCount=2;A.hasPlaylistThumbnail=!1;A.stackThumbnailSize="large";return A};
_.I(hh,_.a);_.q=hh.prototype;_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.q.computeFirstVideos=function(A,H){return A&&H?A.slice(0,H):[]};
_.q.computeThumbnailWidth=function(A,H){return A?H==="BIG"?500:H==="MASSIVE"?600:H==="MEDIUM"?450:420:360};
_.q.computeThumbnailHeight=function(A,H){return A?H==="BIG"?280:H==="MASSIVE"?337:234:202};
_.q.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16596_inlinePreviewHoverListener)==null||cl(A)};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16596_inlinePreviewHoverListener=m5({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:qPQ,thumbnailElement:this.thumbnail})};
_.q.computeHasPlaylistThumbnail=function(A){var H,k;if((((H=A.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((k=A.thumbnailRenderer)==null?0:k.playlistCustomThumbnailRenderer))&&A.thumbnailOverlays)for(H=0;H<A.thumbnailOverlays.length;H++)if(k=void 0,(k=A.thumbnailOverlays[H])==null?0:k.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.nP.Object.defineProperties(hh.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$16596_inlinePreviewHoverListener)==null?0:LK(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
hh.prototype.dataChanged=hh.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],hh.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],hh.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],hh.prototype,"displayItemCount",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],hh.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.k6("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],hh.prototype,"biggerThumbsStyle",void 0);_.E([_.C({computed:"computeHasPlaylistThumbnail(data)"}),_.l("design:type",Object)],hh.prototype,"hasPlaylistThumbnail",void 0);_.E([_.C(),_.l("design:type",String)],hh.prototype,"stackThumbnailSize",void 0);_.E([_.ol("ytd-thumbnail"),_.l("design:type",HTMLElement)],hh.prototype,"thumbnail",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hh.prototype,"dataChanged",null);
_.E([_.G("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],hh.prototype,"isHovered",null);_.E([_.O6({is:"ytd-radio-renderer",disableElementRegistration:!0})],hh);
_.Q(hh,"ytd-radio-renderer",function(){if(D5A!==void 0)return D5A;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return D5A=A},{mode:2});var SgZ;_.uL("itemSectionRenderer","showRenderer","ytd-show-renderer");var Oq=function(){return _.a.apply(this,arguments)||this};
_.I(Oq,_.a);Oq.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Oq.prototype.computeThumbnailWidth=function(A){return A?360:246};
Oq.prototype.computeUseProminentThumbs=function(A){return A};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Oq.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Oq.prototype,"isSearch",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.l("design:type",Boolean)],Oq.prototype,"useProminentThumbs",void 0);_.E([_.O6({is:"ytd-show-renderer",disableElementRegistration:!0})],Oq);
_.Q(Oq,"ytd-show-renderer",function(){if(SgZ!==void 0)return SgZ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return SgZ=A},{mode:1});_.uL("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Re=function(){var A=_.a.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.I(Re,_.a);Re.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"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Re.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Re.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Re.prototype,"isRichGrid",void 0);_.E([_.O6({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Re);
_.Q(Re,"ytd-feed-entry-renderer",function(){if(XPk!==void 0)return XPk;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return XPk=A},{mode:1});var CNJ;var T8=function(){return _.a.apply(this,arguments)||this};
_.I(T8,_.a);T8.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.E([_.P(_.TG),_.l("design:type",Object)],T8.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],T8.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],T8.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.ik,value:3}),_.l("design:type",Number)],T8.prototype,"itemsPerRow",void 0);
_.E([_.O6({is:"ytd-link-card-renderer",disableElementRegistration:!0})],T8);
_.Q(T8,"ytd-link-card-renderer",function(){if(CNJ!==void 0)return CNJ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return CNJ=A},{mode:1});var KD1;var mP=function(){return _.a.apply(this,arguments)||this};
_.I(mP,_.a);_.q=mP.prototype;_.q.configureRendererStamper=function(){return{"data.menu":se,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.onRendererTap=function(A){if(!this.ytdDismissibleItemBehavior.isDismissed){var H,k=(H=this.data)==null?void 0:H.navigationEndpoint;k&&!_.XU(_.F_(A),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(k)?_.XU(_.F_(A),this.hostElement,["A"])||_.Ed(this.hostElement,"yt-navigate",{endpoint:k}):this.ytComponentBehavior.resolveCommand(k,{}))}};
_.q.maybeComputeHref=function(A){return this.ytComponentBehavior.computeHref_(A,!0)};
_.q.getNavigationCommand=function(A){return this.isNavigationCommand(A)?A:null};
_.q.isNavigationCommand=function(A){return A?_.L(A,_.fm)||_.L(A,_.Yr)||_.L(A,_.KT)?!0:!1:!1};
mP.prototype.onRendererTap=mP.prototype.onRendererTap;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],mP.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],mP.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],mP.prototype,"data",void 0);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],mP.prototype,"onRendererTap",null);_.E([_.O6({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],mP);
_.Q(mP,"ytd-lumiere-promo-item-image-renderer",function(){if(KD1!==void 0)return KD1;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return KD1=A},{mode:1});var aMA;var Jh=function(){return _.a.apply(this,arguments)||this};
_.I(Jh,_.a);Jh.prototype.computeLandscapeThumbnail=function(){var A;return((A=this.data)==null?void 0:A.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Jh.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Jh.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],Jh.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.ik}),_.l("design:type",Number)],Jh.prototype,"itemsPerRow",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.l("design:type",Boolean)],Jh.prototype,"landscapeThumbnail",void 0);_.E([_.O6({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Jh);
_.Q(Jh,"ytd-lumiere-shelf-details-renderer",function(){if(aMA!==void 0)return aMA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return aMA=A},{mode:2});var cTZ;var gr=function(){return _.a.apply(this,arguments)||this};
_.I(gr,_.a);gr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gr.prototype,"data",void 0);_.E([_.O6({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],gr);
_.Q(gr,"ytd-primetime-promo-details-renderer",function(){if(cTZ!==void 0)return cTZ;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return cTZ=A},{mode:1});var pPi;var bv=function(){return _.a.apply(this,arguments)||this};
_.I(bv,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bv.prototype,"data",void 0);_.E([_.O6({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],bv);
_.Q(bv,"ytd-panel-show-style-metadata-renderer",function(){if(pPi!==void 0)return pPi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return pPi=A},{mode:1});var Q$Z;var Lb=function(){return _.a.apply(this,arguments)||this};
_.I(Lb,_.a);_.q=Lb.prototype;_.q.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.q.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.q.computeThumbnail=function(A){if(A)return A.smallFormFactorBackgroundThumbnail||A.largeFormFactorBackgroundThumbnail};
_.q.maybeComputeHref=function(A){return this.ytComponentBehavior.computeHref_(A,!0)};
_.q.isNavigationCommand=function(A){return A?_.L(A,_.fm)||_.L(A,_.Yr)||_.L(A,_.KT)?!0:!1:!1};
_.q.getNavigationCommand=function(A){return this.isNavigationCommand(A)?A:null};
Lb.prototype.onPanelTap=Lb.prototype.onPanelTap;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Lb.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Lb.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],Lb.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0,value:_.b("web_modern_buttons")}),_.l("design:type",Boolean)],Lb.prototype,"modernButtons",void 0);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lb.prototype,"onPanelTap",null);_.E([_.O6({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Lb);
_.Q(Lb,"ytd-primetime-promo-panel-renderer",function(){if(Q$Z!==void 0)return Q$Z;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Q$Z=A},{mode:1});_.Sw(_.c(function(A){A=_.SD(A,{data:{},useFullWidth:!1});var H=A.data,k=A.useFullWidth;A={};return _.x("teaser-card-view-model",{class:_.ER("ytTeaserCardViewModelHost",(A.ytTeaserCardViewModelUseFullWidth=function(){return k()},A))},_.x(_.R,{cond:function(){return H().onTap},
then:function(d){return _.x(_.c2,{className:"ytTeaserCardViewModelLink",command:d},_.x("div",{class:"ytTeaserCardViewModelImageContainer"},_.x(_.R,{cond:function(){return H().image},
then:function(W){return _.x(_.GA,{data:W,className:"ytTeaserCardViewModelImage",alt:""})}})),_.x("p",{class:"ytTeaserCardViewModelCaption"},function(){return H().caption}))}}))},"hd"),"teaser-card-view-model",{props:{data:_.Ih,
useFullWidth:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=function(){var d;return _.vG((d=H())==null?void 0:d.iconThemedImage)};
return _.x("yt-edu-card-view-model",null,_.x(_.nK,{contentId:function(){return H().nudgeId}},function(){return _.x("div",{class:_.ER("ytEduCardViewModelHost",function(){return H().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.x("div",{class:"ytEduCardViewModelTopCornerButton"},_.x(_.HG,{data:function(){return H().dismissButton}},{buttonViewModel:_.U7})),_.x("div",{class:"ytEduCardViewModelContentWrapper"},_.x("div",{class:"ytEduCardViewModelHeaderImage"},_.x(_.R,
{cond:k,
then:function(d){return _.x(_.GA,{data:d,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.x("div",{class:"ytEduCardViewModelTextContainer"},_.x("div",{class:"ytEduCardViewModelTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytEduCardViewModelSubtitle"},_.x(_.j$,{text:function(){return H().subtitle}}))),_.x("div",{class:"ytEduCardViewModelContent"},_.x(_.HG,{data:function(){return H().form}},{nudgeFormViewModel:gnj}))),_.x("div",{class:_.ER("ytEduCardViewModelButtonWrapper",
function(){return H().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.x(_.HG,{data:function(){return H().primaryButton}},{buttonViewModel:function(d){return _.x("div",{class:"ytEduCardViewModelPrimaryButton"},_.x(_.U7,{data:d.data}))}}),_.x(_.HG,{data:function(){return H().secondaryButton}},{buttonViewModel:function(d){return _.x("div",{class:"ytEduCardViewModelSecondaryButton"},_.x(_.U7,{data:d.data}))}})))}))},"id"),"yt-edu-card-view-model",{props:{data:_.Ih}});var VzG=new _.SE("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Sw(_.c(function(A){var H=A.data;var k=A.showYtInteractionInContent;var d=function(){return!!H().selectableFeedback};
A=_.r(_.RV(!1,void 0,"qxtgaf"));var W=A.next().value,z=A.next().value;_.CZ(function(){var J=_.L(H().primaryButton,_.jG);(J==null?0:J.isToggled)&&z(J.isToggled)});
A=_.lc(function(J){if(!d())return!1;if(W()){var g;var v=(g=H().selectableFeedback)==null?void 0:g.onDeselect}else{var y;v=(y=H().selectableFeedback)==null?void 0:y.onSelect}v&&_.mu(v,{form:{element:J.target}});z(!W());if(J=_.L(H().primaryButton,_.jG))J.isToggled=W();return!1});
var u=function(){if(!d()){var J,g=(J=H().loggingDirectives)==null?void 0:J.trackingParams;g&&_.wN(_.wj().resolve(_.Wf),g)}},B=_.r48(),h=function(){var J;
return d()?(J=H().selectableFeedback)==null?void 0:J.a11yLabel:void 0},O=function(){return d()?{toggled:W()}:{}},T=_.wj().resolve(_.fZ(VzG)),m={};
return _.x("yt-feedback-item-renderer",{class:_.ER("ytFeedbackItemRendererHost",(m.ytFeedbackItemRendererSelectableFeedback=d,m)),"on:click":A,"on:keydown":B,title:h,"aria-label":h,"aria-pressed":function(){return d()?W():void 0},
tabindex:function(){return d()?0:void 0},
role:function(){return d()?"button":void 0}},_.x("div",{class:"ytFeedbackItemRendererContentContainer"},_.x(_.HG,{data:function(){return H().content}},{videoRenderer:function(J){return _.x(T,{data:J.data,
showYtInteraction:k})},
lockupViewModel:function(J){return _.x(_.oW,{data:J.data,containerType:2})}})),_.x("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.x(_.HG,{data:function(){return H().primaryButton}},{toggleButtonViewModel:function(J){return _.x(_.qc,{data:J.data,
buttonShapeOverrides:O,disableExplicitClickLogging:!0,onToggle:u})}})))},"jd"),"yt-feedback-item-renderer",{props:{data:_.Ih,
showYtInteractionInContent:_.Ih}});var v_=function(){var A=_.a.apply(this,arguments)||this;A.isShortsGrid=!1;A.isCompactGrid=!1;A.isShortsPanelGrid=!1;A.renderedFromRichGrid=!1;A.isInFirstColumn=!1;A.noGutterMargins=!1;A.noBottomMargin=!1;A.halfBottomMargin=!1;A.isInlineGroupItem=!1;A.insetMetadata=!1;A.noBottomMarginInAds=!0;A.force16By9ThumbnailAspectRatio=!1;A.useCompactList=!1;A.containerType=2;A.thumbnailTargetWidth=9999;A.isResponsiveGrid=!1;A.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};A.hoverListener=
A.hover.bind(A);A.leaveListener=A.leave.bind(A);A.highlighted=!1;A.JSC$16632_unsubscribeFromInlinePreviewIsActive=function(){};
return A};
_.I(v_,_.a);_.q=v_.prototype;_.q.computeContainerType=function(){return this.useCompactList?3:2};
_.q.itemWidthChanged=function(){var A;this.thumbnailTargetWidth=(A=this.itemWidth)!=null?A:9999};
_.q.updateIsInFirstColumn=function(){var A;this.isInFirstColumn=((A=this.data)==null?void 0:A.colIndex)===0};
_.q.observerContainerType=function(){if(this.lockup){var A=this.lockup;A.containerType=this.containerType;A.sizing=this.sizing;A.typographyBump=this.typographyBump;A.itemWidth=this.itemWidth}this.richGridMedia&&_.b("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.b("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.q.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]]"}}}}}};
_.q.leave=function(A){A=A.relatedTarget;var H=document.querySelector("ytd-video-preview");A&&H&&_.EJ(H).contains(A)||this.removeAndCleanupHighlight()};
_.q.hover=function(){var A;!this.highlighted&&(A=this.data)!=null&&A.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(A=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:A,boxShadow:"0 0 0 10px "+A})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.q.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};
_.q.registerHoverHighlightListeners=function(){var A=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16632_unsubscribeFromInlinePreviewIsActive=_.dC(_.F3(),_.GGI,function(H){A.highlighted&&!H&&A.removeAndCleanupHighlight()})};
_.q.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16632_unsubscribeFromInlinePreviewIsActive()};
_.q.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.q.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.q.getBackgroundColor=function(){var A,H,k=(A=this.data)==null?void 0:(H=A.onFocusEffect)==null?void 0:H.onFocusColor;if(k){if(document.documentElement.hasAttribute("dark")&&(k==null?0:k.darkTheme))return Rl(k==null?void 0:k.darkTheme);if(k==null?0:k.lightTheme)return Rl(k==null?void 0:k.lightTheme)}};
_.q.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var A=_.hx(),H,k,d;A&&((H=this.data)==null?0:H.trackingParams)&&((k=this.data)==null?void 0:k.colIndex)!=null&&((d=this.data)==null?void 0:d.rowIndex)!=null&&_.Fp(A,_.db(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.q.isSlimMediaRenderer=function(A){return!!_.L(A==null?void 0:A.content,_.zPA)||!!_.L(A==null?void 0:A.content,WlN)||!!_.L(A==null?void 0:A.content,_.JS)||!!_.L(A==null?void 0:A.content,FyA)};
_.q.isPostRenderer=function(){var A,H;return!!_.L((A=this.data)==null?void 0:A.content,mri)||!!_.L((H=this.data)==null?void 0:H.content,J$A)};
_.q.computeIsGameCardShelf=function(){var A;return!!_.L((A=this.data)==null?void 0:A.content,Km1)};
_.q.computeIsMiniGameCardShelf=function(){var A,H;return!!_.L((A=this.data)==null?void 0:A.content,fDw)||!!_.L((H=this.data)==null?void 0:H.content,wUw)};
_.q.computeIsTeaserCard=function(){var A;return!!_.L((A=this.data)==null?void 0:A.content,wUw)};
_.q.computeIsSelectableFeedbackItem=function(){var A,H;return!((H=_.L((A=this.data)==null?void 0:A.content,$_w))==null||!H.selectableFeedback)};
_.q.computeContainsLumierePosters=function(){var A,H;return((H=_.L((A=this.data)==null?void 0:A.content,GtQ))==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.q.computeIsExpandOnHoverCardShelf=function(){var A;return!!_.L((A=this.data)==null?void 0:A.content,PGJ)};
_.q.computeIsLinkCardShelf=function(){var A;return!!_.L((A=this.data)==null?void 0:A.content,U6p)};
_.q.computeIsReelItemStyleAvatarCircle=function(A){var H;return((H=_.L(A==null?void 0:A.content,_.JS))==null?void 0:H.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.q.computeIsLinkCardFullWidth=function(A,H){var k;return((k=_.L(A==null?void 0:A.content,U6p))==null?void 0:k.useFullWidth)||H<=2};
_.nP.Object.defineProperties(v_.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var A;return _.b("web_hover_effect_refactor")&&_.L((A=this.data)==null?void 0:A.content,t3p)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.b("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var A;if(_.b("web_hover_effect_refactor")&&_.L((A=this.data)==null?void 0:A.content,t3p))return!1;var H;return!((H=this.data)==null||!H.onFocusEffect)||_.b("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 A;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.b("web_hover_effect_refactor")?(A=this.data)==null?void 0:A.onFocusEffect:void 0}}}});
v_.prototype.richGridHoverHighlightChanged=v_.prototype.richGridHoverHighlightChanged;v_.prototype.observerContainerType=v_.prototype.observerContainerType;v_.prototype.updateIsInFirstColumn=v_.prototype.updateIsInFirstColumn;v_.prototype.itemWidthChanged=v_.prototype.itemWidthChanged;_.E([_.P(_.TG),_.l("design:type",Object)],v_.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],v_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],v_.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],v_.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.l("design:type",Boolean)],v_.prototype,"isPost",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.l("design:type",Boolean)],v_.prototype,"containsLumierePosters",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.l("design:type",Boolean)],v_.prototype,"isSlimMedia",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.l("design:type",Boolean)],v_.prototype,"isGameCardShelf",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.l("design:type",Boolean)],v_.prototype,"isMiniGameCardShelf",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.l("design:type",Boolean)],v_.prototype,"isTeaserCard",void 0);_.E([_.C({computed:"computeIsSelectableFeedbackItem(data)"}),_.l("design:type",Boolean)],v_.prototype,"isSelectableFeedbackItem",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"isShortsGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],v_.prototype,"isSlimGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"isCompactGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"isShortsPanelGrid",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.l("design:type",Boolean)],v_.prototype,"isExpandOnHoverCardShelf",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.l("design:type",Boolean)],v_.prototype,"isLinkCardShelf",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.ik,value:3}),_.l("design:type",Number)],v_.prototype,"itemsPerRow",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"renderedFromRichGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"isInFirstColumn",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"noGutterMargins",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"noBottomMargin",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"halfBottomMargin",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"isInlineGroupItem",void 0);_.E([_.C(),_.l("design:type",Object)],v_.prototype,"insetMetadata",void 0);_.E([_.C(),_.l("design:type",Object)],v_.prototype,"noBottomMarginInAds",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],v_.prototype,"isShelfItem",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.l("design:type",Boolean)],v_.prototype,"isReelItemStyleAvatarCircle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.l("design:type",Boolean)],v_.prototype,"isLinkCardFullWidth",void 0);_.E([_.C(),_.l("design:type",Object)],v_.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"useCompactList",void 0);_.E([_.C(),_.l("design:type",String)],v_.prototype,"sizing",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],v_.prototype,"typographyBump",void 0);_.E([_.C(),_.l("design:type",Number)],v_.prototype,"itemWidth",void 0);_.E([_.C(),_.l("design:type",Boolean)],v_.prototype,"isHomeShelf",void 0);_.E([_.C(),_.l("design:type",Boolean)],v_.prototype,"isHomeGrid",void 0);
_.E([_.ol("yt-lockup-view-model"),_.l("design:type",HTMLElement)],v_.prototype,"lockup",void 0);_.E([_.ol("ytd-rich-grid-media"),_.l("design:type",HTMLElement)],v_.prototype,"richGridMedia",void 0);_.E([_.ol("ytd-ad-slot-renderer"),_.l("design:type",HTMLElement)],v_.prototype,"adSlotRenderer",void 0);_.E([_.C({computed:"computeContainerType(useCompactList)"}),_.l("design:type",Object)],v_.prototype,"containerType",void 0);_.E([_.C(),_.l("design:type",Object)],v_.prototype,"thumbnailTargetWidth",void 0);
_.E([_.G("showYtInteractionOnRichItem"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],v_.prototype,"showYtInteractionOnRichGridMedia",null);_.E([_.G("isSelectableFeedbackItem","richGridHoverHighlight"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],v_.prototype,"showYtInteractionOnRichItem",null);_.E([_.G("typographyBump","isHomeGrid"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],v_.prototype,"richTypographyBump",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data","isShortsGrid","isCompactGrid"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],v_.prototype,"richGridHoverHighlight",null);_.E([_.G("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.l("design:type",Number),_.l("design:paramtypes",[])],v_.prototype,"shortsLockupViewModelAspectRatio",null);_.E([_.G("isInlineGroupItem"),_.l("design:type",Number),_.l("design:paramtypes",[])],v_.prototype,"shortsLockupViewModelScrimStyle",null);
_.E([_.fF("itemWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v_.prototype,"itemWidthChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v_.prototype,"updateIsInFirstColumn",null);_.E([_.fF("containerType","sizing","typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v_.prototype,"observerContainerType",null);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],v_.prototype,"isResponsiveGrid",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],v_.prototype,"lockupExperiments",null);_.E([_.fF("richGridHoverHighlight"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v_.prototype,"richGridHoverHighlightChanged",null);_.E([_.O6({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],v_);
_.EnZ=_.Vu()(v_,"ytd-rich-item-renderer",function(){if(Ygi===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);Ygi=A}A=Ygi;return A},{mode:2});var JEf={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var DIQ=_.Yu(_.$r("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var bdW={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},vNl={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},yE8={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var U5j;var yE=function(){var A=_.a.apply(this,arguments)||this;A.useResponsiveGrid=!1;A.hidden=!1;A.isShowMoreHidden=!1;A.isShowLessHidden=!0;A.hasExpansionButton=!1;A.isInnerShelf=!1;A.allVideosCount=0;A.allPlaylistCount=0;A.haveSmartDownloadsCompleted=!1;A.restrictContentsOverflow=!1;A.firstShownIndex=0;A.horizontalOffset=0;A.atEnd=!0;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
A.disableServiceRequestPropagation=function(H){H.stopPropagation()};
A.nextClick=function(){var H;(H=A.data)!=null&&H.contents&&(A.firstShownIndex+=A.currentElementsPerRow,A.updateHorizontalOffset(),A.updateHorizontalItemVisibility())};
A.previousClick=function(){var H;(H=A.data)!=null&&H.contents&&(A.firstShownIndex-=A.currentElementsPerRow,A.updateHorizontalOffset(),A.updateHorizontalItemVisibility())};
return A};
_.I(yE,_.a);_.q=yE.prototype;
_.q.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:_.pZ("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.q.attached=function(){this.requestElementsPerRow();_.b("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.q.detached=function(){_.b("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.q.refreshGridLayoutNew=function(){var A;if((A=this.data)!=null&&A.contents&&this.containerWidth){var H;((H=this.data.responsiveContainerConfiguration)==null?0:H.responsiveSize)?(A=_.C3I(this.data.responsiveContainerConfiguration,this.containerWidth,2),A=_.b2(Object.assign({},A,{standardUnitMinWidth:this.standardUnitMinWidth}))):A=_.b2({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=A.typographyBump;if(this.elementsPerRow!==
A.numItems||this.gutter!==A.gutter)this.elementsPerRow=A.numItems,this.gutter=A.gutter,this.itemWidth=A.itemWidth,_.NH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":A.gutter+"px"})}};
_.q.computeSizing=function(){if(!this.isLumiere){var A=_.k9A(this.data);return A?A:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.q.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.q.computeButton=function(A){var H=_.L(A,_.gN);A=Object.assign({},_.L(A,_.gN));return H?(A.text||(A.text={simpleText:A.tooltip}),A.style="STYLE_MONO_OUTLINE",A.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",A):H};
_.q.onRowIndexChange=function(){var A=_.hx(),H,k;((H=this.data)==null?0:H.trackingParams)&&((k=this.data)==null?void 0:k.rowIndex)!=null&&A&&_.Fp(A,_.db(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.q.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var A,H=((A=this.getRichItemRenderers()[0])==null?void 0:A.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*H;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.q.requestElementsPerRow=function(){_.Ed(this.hostElement,"yt-request-elements-per-row")};
_.q.onUpdateElementsPerRowAction=function(A,H,k,d,W,z){if(this.containerWidth!==z&&(this.containerWidth=z,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&A&&H&&k&&d&&W&&(this.elementsPerRow!==A||this.postsPerRow!==H||this.slimItemsPerRow!==k||this.gameCardsPerRow!==d||this.miniGameCardsPerRow!==W)&&(this.elementsPerRow=A,this.postsPerRow=H,this.slimItemsPerRow=k,this.gameCardsPerRow=d,this.miniGameCardsPerRow=W,this.updateItemVisibility())};
_.q.isExpandedChanged=function(){var A=this.getRichItemRenderers(),H=this.isExpanded;A.forEach(function(k){k.halfBottomMargin=H})};
_.q.isCollapsedChanged=function(){var A=this.getRichItemRenderers(),H=this.isCollapsed;A.forEach(function(k){k.noBottomMargin=H})};
_.q.getRichItemRenderers=function(){return _.Va(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.q.updateItemVisibility=function(){var A=this;if(this.data&&this.data.contents){var H=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(d,W){var z;((z=A.data)==null?0:z.isExpanded)?(d.hidden=W>H-1,d.ytRendererBehavior.markDirty()):d.hidden=W>A.currentElementsPerRow-1||W>H-1});
var k=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||k||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||k||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.q.setHeightToSingleRow=function(){var A=this.getRichItemRenderers(),H=Number.parseInt(getComputedStyle(A[0]).marginBottom,10)||0;A=A.slice(0,this.currentElementsPerRow).reduce(function(k,d){return Math.max(k,d.getBoundingClientRect().height+H)},0);
this.contents.style.height=A+"px"};
_.q.focusNextExpandedItem=function(){var A;((A=this.data)==null?0:A.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.q.focusItem=function(A,H){var k=this.getRichItemRenderers();if(k[A]&&(A=k[A].querySelector(".focus-on-expand"))){if(H){var d;(d=k[this.currentElementsPerRow])==null||d.scrollIntoView({behavior:"smooth",block:"center"})}A.focus({preventScroll:!0})}};
_.q.onDataChange=function(){var A=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var H;if((H=this.data)==null?0:H.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.No(this,function(){A.updateItemVisibility()});
var k;if((k=this.data)==null?0:k.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.NH(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),H=0;H<this.data.contents.length;H++)k=_.L(this.data.contents[H],_.zr)||{},k.colIndex=H,k.rowIndex=this.data.rowIndex};
_.q.handleRerenderDownloadsData=function(){_.b("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())};
_.q.blockInlinePreview=function(A){var H=this,k;return _.e(function(d){(k=H.inlinePreviewIsEnabled)&&H.ytdReduxBehavior.dispatch(_.CvJ(!1));return d.return(new Promise(function(W){A(function(){k&&H.ytdReduxBehavior.dispatch(_.CvJ(!0));W()})}))})};
_.q.expandShelf=function(){var A=this;if(this.data){var H,k=(H=_.L(this.data.showMoreButton,_.gN))==null?void 0:H.trackingParams;k&&_.wN(_.A7(),k);this.set("data.isExpanded",!0);this.blockInlinePreview(function(d){A.setHeightToSingleRow();A.updateItemVisibility();A.contents.style.height=A.contents.scrollHeight+"px";_.IE.addJob(function(){A.contents.style.height="auto";A.focusNextExpandedItem();d()},2,200)})}};
_.q.collapseShelf=function(){var A=this;return _.e(function(H){if(H.nextAddress==1){if(!A.data)return H.return();A.set("data.isExpanded",!1);return H.yield(A.blockInlinePreview(function(k){A.contents.style.height=A.contents.scrollHeight+"px";A.setHeightToSingleRow();_.IE.addJob(function(){A.updateItemVisibility();A.contents.style.height="auto";k()},2,200)}),2)}_.Ed(A.hostElement,"yt-rich-shelf-renderer-collapse",A.data.trackingParams);
A.focusItem(0,!1);_.EN(H)})};
_.q.updateArrowButtonStatus=function(){this.getRichItemRenderers();var A,H;var k=((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=k};
_.q.onChildElementFocus=function(A){this.hasChevronButtons&&(A=A.target.closest("#contents > *"),this.contents.contains(A)&&(A.offsetLeft<this.horizontalOffset?this.previousClick():A.offsetLeft+A.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.q.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.pZ("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.q.updateHorizontalOffset=function(){var A=this.getRichItemRenderers(),H,k;var d=((H=this.data)==null?void 0:(k=H.contents)==null?void 0:k.length)||0;var W;A=((W=A[0])==null?void 0:W.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>d?this.firstShownIndex=d-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*A};
_.q.isSlimMediaShelfRenderer=function(){var A,H,k,d=(k=_.L((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H[0],_.zr))==null?void 0:k.content;return!!(_.L(d,_.zPA)||_.L(d,WlN)||_.L(d,_.JS)||_.L(d,FyA))};
_.q.isGameCardShelf=function(){var A,H,k,d=(k=_.L((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H[0],_.zr))==null?void 0:k.content;return!!_.L(d,Km1)};
_.q.isMiniGameCardShelf=function(){var A,H,k,d=(k=_.L((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H[0],_.zr))==null?void 0:k.content;return!!_.L(d,fDw)||!!_.L(d,wUw)};
_.q.hasGameBoxArtAvatarStyle=function(){var A;return((A=this.data)==null?void 0:A.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.q.hasRoundedGameBoxArtAvatarStyle=function(){var A;return((A=this.data)==null?void 0:A.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.q.isShortsShelf=function(){var A,H,k,d=(k=_.L((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H[0],_.zr))==null?void 0:k.content;return!!_.L(d,_.JS)||!!_.L(d,FyA)};
_.q.isPostShelfRenderer=function(){var A,H,k,d=(k=_.L((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H[0],_.zr))==null?void 0:k.content;return!(!_.L(d,mri)&&!_.L(d,J$A))};
_.q.isLumiereShelf=function(){var A,H,k=_.L((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H[0],_.zr);return!!_.L(k==null?void 0:k.content,GtQ)};
_.q.isLumiereShelfWithPosters=function(){var A,H,k=_.L((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H[0],_.zr),d;return((d=_.L(k==null?void 0:k.content,GtQ))==null?void 0:d.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.q.isExpandOnHoverCardShelf=function(){var A,H,k,d=(k=_.L((A=this.data)==null?void 0:(H=A.contents)==null?void 0:H[0],_.zr))==null?void 0:k.content;return!!_.L(d,PGJ)};
_.q.computeHasFeaturedBadge=function(){var A,H,k=_.L((A=this.data)==null?void 0:(H=A.badges)==null?void 0:H[0],_.wDQ);return k?k.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.q.computeHasPaygatedFeaturedBadge=function(){var A,H,k=_.L((A=this.data)==null?void 0:(H=A.badges)==null?void 0:H[0],_.wDQ);return k?(k==null?void 0:k.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.q.computeHeaderHidden=function(){var A,H,k,d,W,z;return!((A=this.data)==null?0:A.icon)&&!((H=this.data)==null?0:H.title)&&!((k=this.data)==null?0:k.subtitle)&&!((d=this.data)==null?0:d.thumbnail)&&!((W=this.data)==null?0:W.badges)&&!((z=this.data)==null?0:z.menu)};
_.q.showCtaButton=function(){var A;return!((A=this.data)==null||!A.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.q.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.q.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.q.computeForce16By9ThumbnailAspectRatio=function(){var A,H;return((A=this.data)==null?void 0:(H=A.responsiveContainerConfiguration)==null?void 0:H.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.q.onSectionReactiveDismissal=function(A,H,k){var d,W;var z=(d=this.data)==null?void 0:(W=d.targetingContext)==null?void 0:W.targetGroupId;this&&z&&H.targetGroupId&&z.includes(H.targetGroupId)?(d=this.rowIndex,A=d===void 0?!1:!(H.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&d<=A)):A=!1;A&&(this.hidden=k)};
_.nP.Object.defineProperties(yE.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var A=this.elementsPerRow;this.isPostShelfRenderer()?A=this.postsPerRow:this.isSlimMediaShelfRenderer()?A=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?A=this.slimItemsPerRow-1:this.isGameCardShelf()?A=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(A=this.miniGameCardsPerRow);return A}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var A,H;return!((A=this.data)==null||!A.previousButton)&&!((H=this.data)==null||!H.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 A;return((A=_.wj().resolve(_.SO).getCurrentPage())==null?void 0:A.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d;return!((A=this.data)==null?0:(H=A.thumbnail)==null?0:(k=H.accessibility)==null?0:(d=k.accessibilityData)==null?0:d.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
yE.prototype.onChildElementFocus=yE.prototype.onChildElementFocus;yE.prototype.handleRerenderDownloadsData=yE.prototype.handleRerenderDownloadsData;yE.prototype.onDataChange=yE.prototype.onDataChange;yE.prototype.isCollapsedChanged=yE.prototype.isCollapsedChanged;yE.prototype.isExpandedChanged=yE.prototype.isExpandedChanged;yE.prototype.onRowIndexChange=yE.prototype.onRowIndexChange;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],yE.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],yE.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],yE.prototype,"ytdReduxBehavior",void 0);
_.E([_.C({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.l("design:type",Object)],yE.prototype,"useResponsiveGrid",void 0);_.E([_.C(),_.l("design:type",Object)],yE.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],yE.prototype,"standardUnitMinWidth",void 0);_.E([_.C({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],yE.prototype,"elementsPerRow",void 0);_.E([_.C({value:3}),_.l("design:type",Number)],yE.prototype,"postsPerRow",void 0);
_.E([_.C({value:6}),_.l("design:type",Number)],yE.prototype,"slimItemsPerRow",void 0);_.E([_.C({value:6}),_.l("design:type",Number)],yE.prototype,"gameCardsPerRow",void 0);_.E([_.C({value:6}),_.l("design:type",Number)],yE.prototype,"miniGameCardsPerRow",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yE.prototype,"hidden",void 0);_.E([_.C(),_.l("design:type",Object)],yE.prototype,"isShowMoreHidden",void 0);
_.E([_.C(),_.l("design:type",Object)],yE.prototype,"isShowLessHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yE.prototype,"hasExpansionButton",void 0);_.E([_.G("data.isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yE.prototype,"isExpanded",null);_.E([_.G("data.isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yE.prototype,"isCollapsed",null);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yE.prototype,"isInnerShelf",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.l("design:type",Boolean)],yE.prototype,"isShorts",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.l("design:type",Boolean)],yE.prototype,"isLumiere",void 0);_.E([_.C({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.l("design:type",Boolean)],yE.prototype,"hasBoxArtThumbnailStyle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.l("design:type",Boolean)],yE.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.l("design:type",Boolean)],yE.prototype,"hasFeaturedBadge",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.l("design:type",Boolean)],yE.prototype,"hasPaygatedFeaturedBadge",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.l("design:type",Boolean)],yE.prototype,"isHeaderHidden",void 0);_.E([_.C({selector:_.Kfm}),_.l("design:type",Object)],yE.prototype,"allVideosCount",void 0);_.E([_.C({selector:SPm}),_.l("design:type",Object)],yE.prototype,"allPlaylistCount",void 0);_.E([_.C({selector:NfA}),_.l("design:type",Object)],yE.prototype,"haveSmartDownloadsCompleted",void 0);
_.E([_.C({selectorArgs:["entitySelectorType"],selector:function(A,H){if(_.b("kevlar_modern_downloads_page")&&H&&H!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var k=A.entities;switch(H){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":H=_.uk(k);A=o5(H);var d=_.ku(H);k=_.eX(k);k=_.K8(IHA(d,k,H.length));return{contents:A,subtitle:k};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return k=_.uk(k),{contents:o5(k)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return k=
_.BK(k),{contents:o5(k)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return k=_.xKQ(k),{contents:o5(k)};default:_.Pq(new _.Ti("Error: entitySelectorType defined but not matched in selector.",A,H))}}}}),
_.l("design:type",Object)],yE.prototype,"entityDrivenRichShelfData",void 0);_.E([_.C({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.l("design:type",Boolean)],yE.prototype,"hasTopCtaButton",void 0);_.E([_.C({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.l("design:type",Boolean)],yE.prototype,"hasBottomCtaButton",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.l("design:type",Boolean)],yE.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yE.prototype,"restrictContentsOverflow",void 0);_.E([_.C({selector:_.Ffb}),_.l("design:type",Boolean)],yE.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.C({computed:"computeSizing(data)"}),_.l("design:type",String)],yE.prototype,"sizing",void 0);
_.E([_.C(),_.l("design:type",Boolean)],yE.prototype,"typographyBump",void 0);_.E([_.C(),_.l("design:type",Number)],yE.prototype,"itemWidth",void 0);_.E([_.C(),_.l("design:type",Object)],yE.prototype,"firstShownIndex",void 0);_.E([_.C(),_.l("design:type",Object)],yE.prototype,"horizontalOffset",void 0);_.E([_.C(),_.l("design:type",Object)],yE.prototype,"atEnd",void 0);_.E([_.ol("#contents"),_.l("design:type",HTMLElement)],yE.prototype,"contents",void 0);
_.E([_.fF("data.rowIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yE.prototype,"onRowIndexChange",null);_.E([_.fF("isExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yE.prototype,"isExpandedChanged",null);_.E([_.fF("isCollapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yE.prototype,"isCollapsedChanged",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yE.prototype,"onDataChange",null);_.E([_.fF("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yE.prototype,"handleRerenderDownloadsData",null);_.E([_.Ze("focusin"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],yE.prototype,"onChildElementFocus",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data","isHomePage"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yE.prototype,"isTruncated",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yE.prototype,"showBottomDivider",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],yE.prototype,"hasChevronButtons",null);
_.E([_.G("firstShownIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],yE.prototype,"previousButtonOverride",null);_.E([_.G("atEnd"),_.l("design:type",Object),_.l("design:paramtypes",[])],yE.prototype,"nextButtonOverride",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yE.prototype,"isHomePage",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yE.prototype,"thumbnailAriaHidden",null);
_.E([_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],yE.prototype,"entitySelectorType",null);_.E([_.O6({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],yE);
_.lMA=_.Vu()(yE,"ytd-rich-shelf-renderer",function(){if(U5j===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);U5j=A}A=U5j;return A},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:2});var tzN;_.Sw(QY,"yt-thumbnail-view-model",{props:{data:_.Ih,aspectRatio:_.Ih,width:_.Ih,height:_.Ih,disableRounding:_.Ih,isClip:_.Ih,className:_.Ih,hovered:_.Ih,playbackRef:_.Ih,lockupExperiments:_.Ih}});_.Sw(_.CK,"yt-badge-view-model",{props:{data:_.Ih,class:_.Ih,workaroundShortsIsThumbnailBadge:_.Ih,modern:_.Ih,numBadgesInRow:_.Ih,clipTextOverflow:_.Ih,inheritTypography:_.Ih}});_.Sw(Ozk,"yt-slimline-survey-view-model",{props:{data:_.Ih}});var j6=function(){var A=_.a.apply(this,arguments)||this;A.tileLottieAnimationRef={};A.backgroundLottieAnimationRef={};A.isOnHoverBehaviorForLottieEnabled=!0;A.useBiggerShowcaseImage=_.b("enable_desktop_search_bigger_thumbs");A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return A};
_.I(j6,_.a);_.q=j6.prototype;_.q.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.q.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"}},tileImageViewModel:{id:"tile-image-view-model",mapping:{thumbnailViewModel:{component:"yt-thumbnail-view-model"}}},"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"}}}};
_.q.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var A=this.hasStaticTile(this.data)||this.hasTileLottie(this.data)||this.hasThumbnailViewModel(this.data);A!==this.hasTile&&this.set("hasTile",A);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.set("tileImageViewModel",this.getCurrentTileImageViewModel(this.data,this.isDarkTheme));this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.q.hoveredChanged=function(){var A=this.thumbnail;A&&(A.hovered=this.hovered)};
_.q.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.q.currentColorChanged=function(){this.updateButtonPalette()};
_.q.computeBackgroundStyle=function(A){if(A&&this.data){var H=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var k=_.K3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);k&&H.push('background-image: url("'+k+'");')}var d;((d=A.basicColorData)==null?void 0:d.backgroundColor)!==void 0&&H.push("background-color: "+_.h1(A.basicColorData.backgroundColor)+";");return H.join("")}};
_.q.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A)};
_.q.getCurrentLogo=function(A,H){if(A)return H?A.darkLogoImage:A.lightLogoImage};
_.q.getCurrentTileImageViewModel=function(A,H){if(A)return A.darkTileImageViewModel?H?A.darkTileImageViewModel:A.tileImageViewModel:A.tileImageViewModel};
_.q.getCurrentStaticTileImage=function(A,H){if(this.hasStaticTile(A))return A.darkTileImage?H?A.darkTileImage:A.tileImage:A.tileImage};
_.q.computeTitleStyle=function(A){if(this.data&&this.data.title&&A&&A.basicColorData&&A.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.iw(A.basicColorData.foregroundTitleColor)+";"};
_.q.computeSubtitleStyle=function(A){if(this.data&&this.data.subtitle&&A&&A.basicColorData&&A.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.iw(A.basicColorData.foregroundBodyColor)+";"};
_.q.computeSupplementalStyle=function(A){if(this.data&&this.data.supplementalText&&A&&A.supplementalTextColor!==void 0)return A=_.iw(A.supplementalTextColor),"color:"+A+";--yt-endpoint-color:"+A+";--yt-endpoint-hover-color:"+A+";--yt-endpoint-visited-color:"+A+";--yt-formatted-string-bold-font-weight:700;"};
_.q.computeDismissIconStyle=function(A){var H,k;if((A==null?0:(H=A.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(A==null?0:(k=A.dismissButtonColorData)==null?0:k.backgroundColor))return"--yt-button-color:"+_.h1(A.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.h1(A.dismissButtonColorData.backgroundColor)+";"};
_.q.computeOverflowIconStyle=function(A){var H,k;if((A==null?0:(H=A.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(A==null?0:(k=A.dismissButtonColorData)==null?0:k.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.h1(A.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.h1(A.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.h1(A.dismissButtonColorData.foregroundTitleColor)+";"};
_.q.computeBannerStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.q.computeLocation=function(A){switch(A==null?void 0:A.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.q.shouldShowTileSection=function(A,H,k){return!this.shouldExpandLogo(A,H,k)&&H};
_.q.shouldShowExpandedLogoSection=function(A,H,k){return this.shouldExpandLogo(A,H,k)&&A!==void 0&&this.hasLogo(A)};
_.q.shouldExpandLogo=function(A,H,k){return A&&H?!1:k>=2};
_.q.hasStaticTile=function(A){return!(A==null||!A.tileImage)};
_.q.hasThumbnailViewModel=function(A){return!(A==null||!A.tileImageViewModel)};
_.q.hasTileLottie=function(A){var H;return!!(A==null?0:(H=A.tileLottie)==null?0:H.url)};
_.q.hasLogo=function(A){return this.getCurrentLogo(A,this.isDarkTheme)!==void 0};
_.q.getLogoHeight=function(A){return this.logoWithPadding(A)?"26":"20"};
_.q.getExpandedLogoHeight=function(A){return this.logoWithPadding(A)?"31":"24"};
_.q.getLogoImageId=function(A){return this.logoWithPadding(A)?"logo-image-with-padding":"logo-image"};
_.q.getMaxTitleFontSize=function(A){return A.overrideTitleMaxFontSize?String(A.overrideTitleMaxFontSize):"36"};
_.q.hasBackgroundLottie=function(A){var H;return!!(A==null?0:(H=A.backgroundLottie)==null?0:H.url)};
_.q.onMouseOver=function(){if(this.isOnHoverBehaviorForLottieEnabled){var A,H;(A=this.tileLottieAnimationRef)==null||(H=A.lottieEl)==null||H.play();var k,d;(k=this.backgroundLottieAnimationRef)==null||(d=k.lottieEl)==null||d.play()}this.hovered=!0};
_.q.onMouseLeave=function(){if(this.isOnHoverBehaviorForLottieEnabled){var A,H;(A=this.tileLottieAnimationRef)==null||(H=A.lottieEl)==null||H.pause();var k,d;(k=this.backgroundLottieAnimationRef)==null||(d=k.lottieEl)==null||d.pause()}this.hovered=!1};
_.q.pauseLottie=function(){var A,H;(A=this.tileLottieAnimationRef)==null||(H=A.lottieEl)==null||H.pause();var k,d;(k=this.backgroundLottieAnimationRef)==null||(d=k.lottieEl)==null||d.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.q.performPrimaryButtonAction=function(){var A,H,k;((A=this.data)==null?0:(H=A.primaryButton)==null?0:(k=H.buttonRenderer)==null?0:k.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.q.requestElementsPerRow=function(){_.Ed(this.hostElement,"yt-request-elements-per-row")};
_.q.updateButtonPalette=function(){if(this.data&&this.currentColorData){var A;((A=this.data.dismissButton)==null?0:A.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 H;if((H=this.data.primaryButton)==null?0:H.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 k;if((k=this.data.secondaryButton)==
null?0:k.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 d;((d=this.data.primaryButton)==null?0:d.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var W;((W=this.data.primaryButton)==null?0:W.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)})}};
_.q.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var A=this.getTileLottieDataBasedOnTheme(),H,k;if(A.url!==((H=this.tileLottiePlayerProps)==null?void 0:(k=H.animationConfig)==null?void 0:k.path)){var d,W;(d=this.tileLottieAnimationRef)==null||(W=d.lottieEl)==null||W.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=A.settings)==null?0:z.autoplay);var u,B;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(B=(u=A.settings)==null?void 0:u.autoplay)!=null?B:!1,loop:this.getLottieLoopValue(A.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof A.url==="string"?this.tileLottiePlayerProps.animationConfig.path=A.url:this.tileLottiePlayerProps.animationConfig.animationData=A.url}}};
_.q.getOverflowButton=function(A){return _.L(A.overflowButton,Kyw)};
_.q.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var A=this.getBackgroundLottieDataBasedOnTheme(),H,k;if(A.url!==((H=this.backgroundLottiePlayerProps)==null?void 0:(k=H.animationConfig)==null?void 0:k.path)){var d,W;(d=this.backgroundLottieAnimationRef)==null||(W=d.lottieEl)==null||W.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=A.settings)==null?0:z.autoplay);var u,B;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(B=(u=A.settings)==null?void 0:u.autoplay)!=null?B:!1,loop:this.getLottieLoopValue(A.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof A.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=A.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
A.url}}};
_.q.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var A;((A=this.tileLottieAnimationRef)==null?void 0:A.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var H;((H=this.backgroundLottieAnimationRef)==null?void 0:H.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.q.getTileLottieDataBasedOnTheme=function(){var A;if(this.isDarkTheme&&((A=this.data)==null?0:A.darkThemeTileLottie))return this.data.darkThemeTileLottie;var H;return((H=this.data)==null?0:H.tileLottie)?this.data.tileLottie:{}};
_.q.getBackgroundLottieDataBasedOnTheme=function(){var A;if(this.isDarkTheme&&((A=this.data)==null?0:A.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var H;return((H=this.data)==null?0:H.backgroundLottie)?this.data.backgroundLottie:{}};
_.q.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
_.q.getLottieLoopValue=function(A){return A?A.loop!==void 0?A.loop:A.loopCount?A.loopCount-1:!0:!0};
_.q.logoWithPadding=function(A){var H,k,d;return(A=(H=this.getCurrentLogo(A,this.isDarkTheme))==null?void 0:(k=H.thumbnails)==null?void 0:(d=k[0])==null?void 0:d.height)&&A%31===0?!0:!1};
j6.prototype.currentColorChanged=j6.prototype.currentColorChanged;j6.prototype.themeChanged=j6.prototype.themeChanged;j6.prototype.hoveredChanged=j6.prototype.hoveredChanged;j6.prototype.dataChanged=j6.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.JB),_.l("design:type",Object)],j6.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],j6.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],j6.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],j6.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],j6.prototype,"primaryButton",void 0);
_.E([_.C(),_.l("design:type",Object)],j6.prototype,"tileImageViewModel",void 0);_.E([_.C(),_.l("design:type",Object)],j6.prototype,"secondaryButton",void 0);_.E([_.C({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],j6.prototype,"elementsPerRow",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],j6.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],j6.prototype,"hasTile",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],j6.prototype,"hasMetadata",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],j6.prototype,"showLogoImage",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],j6.prototype,"hovered",void 0);_.E([_.C(),_.l("design:type",Object)],j6.prototype,"currentColorData",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.l("design:type",String)],j6.prototype,"bannerStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.l("design:type",String)],j6.prototype,"location",void 0);_.E([_.C(),_.l("design:type",Object)],j6.prototype,"tileLottiePlayerProps",void 0);_.E([_.C(),_.l("design:type",Object)],j6.prototype,"tileLottieAnimationRef",void 0);
_.E([_.C(),_.l("design:type",Object)],j6.prototype,"backgroundLottiePlayerProps",void 0);_.E([_.C(),_.l("design:type",Object)],j6.prototype,"backgroundLottieAnimationRef",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],j6.prototype,"useBiggerShowcaseImage",void 0);_.E([_.ol("yt-thumbnail-view-model"),_.l("design:type",HTMLElement)],j6.prototype,"thumbnail",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],j6.prototype,"isHideEnclosingAction",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j6.prototype,"dataChanged",null);_.E([_.fF("hovered"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j6.prototype,"hoveredChanged",null);_.E([_.s6("isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j6.prototype,"themeChanged",null);
_.E([_.s6("currentColorData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j6.prototype,"currentColorChanged",null);_.E([_.O6({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],j6);
_.Q(j6,"ytd-statement-banner-renderer",function(){if(tzN!==void 0)return tzN;var A=document.createElement("template");_.Y(A,'\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="onMouseLeave" on-mouseover="onMouseOver" 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          <div id="tile-image-view-model" hidden="[[!hasThumbnailViewModel(data)]]" class="style-scope ytd-statement-banner-renderer"></div>\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tzN=A},{mode:1});var Npi;var Ie=function(){var A=_.a.apply(this,arguments)||this;A.isSearch=!1;A.hideShelfHeader=!1;A.engagementPanel=!1;A.disableMouseScroll=!0;A.useFloorScrolling=!0;return A};
_.I(Ie,_.a);Ie.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.$r("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.$r("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Ie.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ie.prototype.onDataChanged=Ie.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ie.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ie.prototype,"hideShelfHeader",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ie.prototype,"engagementPanel",void 0);_.E([_.C(),_.l("design:type",Object)],Ie.prototype,"disableMouseScroll",void 0);_.E([_.C(),_.l("design:type",Object)],Ie.prototype,"useFloorScrolling",void 0);_.E([_.C(),_.l("design:type",Object)],Ie.prototype,"data",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ie.prototype,"onDataChanged",null);
_.E([_.O6({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Ie);
_.Q(Ie,"ytd-reel-shelf-renderer",function(){if(Npi!==void 0)return Npi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Npi=A},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var Mzk;var nn1;nn1=_.XO(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.ZyG=_.Ia(nn1);var fM1=_.c(function(A){var H=A.data;A=A.useSmallFont;var k={},d={};return _.x("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.x(_.R,{cond:function(){return H().favicon},
then:function(W){return _.x(_.GA,{data:W,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.x("div",{class:"ytChannelExternalLinkViewModelContainer"},_.x(_.j$,{text:function(){return H().title},
className:_.ER("ytChannelExternalLinkViewModelTitle",(k.ytChannelExternalLinkViewModelTitleSmallFont=A,k)),ellipsisTruncate:!0,userInput:!0}),_.x(_.j$,{text:function(){return H().link},
className:_.ER("ytChannelExternalLinkViewModelLink",(d.ytChannelExternalLinkViewModelLinkSmallFont=A,d)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"kd");
fM1.idomCompat=!0;_.Sw(fM1,"yt-channel-external-link-view-model",{props:{data:_.Ih,useSmallFont:_.Ih}});_.uL("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Yx=function(){var A=_.a.apply(this,arguments)||this;A.revealButtonClass="button";A.businessEmailDisplayState="HIDE_SECTION";return A};
_.I(Yx,_.a);_.q=Yx.prototype;_.q.refit=function(){var A=this;_.L0(function(){_.li(A.hostElement,"yt-refit-popups-action")});
_.No(this,function(){_.li(A.hostElement,"yt-refit-popups-action")})};
_.q.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.bi(_.ZyG),this.businessEmailDisplayState="CAPTCHA")};
_.q.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"};
_.q.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.q.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"}}}};
_.q.computeEmailHref=function(A){return"mailto:"+A};
_.q.computeSafeUrl=function(A){if(A)return _.fx(A)};
_.q.linkEndpoint=function(A){return _.L(A.onTap,_.ic)};
_.q.linkEndpointToHref=function(A){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(A))};
_.q.onYtServiceRequestCompleted=function(A){var H;if((H=A.detail.data)==null?0:H.businessEmail)this.businessEmail=A.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var k;if((k=A.detail.data)==null?0:k.errorMessage)this.businessEmailErrorMessage=A.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.q.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var A=this.JSC$16747_captchaTextarea.value;if(A){A={recaptcha_response_token:A,channel_id:this.metadata.channelId};var H=_.L(this.metadata.onBusinessEmailRevealClickCommand,_.ic);H&&this.ytComponentBehavior.resolveCommand(H,{form:A})}}};
_.q.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.nP.Object.defineProperties(Yx.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var A;return _.L((A=this.data)==null?void 0:A.metadata,S4p)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.L(this.metadata.businessEmailRevealButton,_.vY)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var A=new URL(this.metadata.canonicalChannelUrl);return A.host+A.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 _.L(this.metadata.learnMoreOnTap,_.ic)}}});
Yx.prototype.onYtServiceRequestCompleted=Yx.prototype.onYtServiceRequestCompleted;Yx.prototype.businessEmailMetadataChanged=Yx.prototype.businessEmailMetadataChanged;Yx.prototype.refit=Yx.prototype.refit;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Yx.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Yx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.ol("#g-recaptcha-response"),_.l("design:type",HTMLTextAreaElement)],Yx.prototype,"JSC$16747_captchaTextarea",void 0);_.E([_.C(),_.l("design:type",Object)],Yx.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Yx.prototype,"revealButtonClass",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Yx.prototype,"metadata",null);
_.E([_.G("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],Yx.prototype,"revealButton",null);_.E([_.G("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],Yx.prototype,"channelDisplayUrl",null);_.E([_.s6("metadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yx.prototype,"refit",null);_.E([_.G("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],Yx.prototype,"formattedDescription",null);
_.E([_.G("metadata","learnMoreCommand"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Yx.prototype,"shouldRendereVerifiedPhoneStatus",null);_.E([_.G("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],Yx.prototype,"learnMoreCommand",null);_.E([_.C(),_.l("design:type",String)],Yx.prototype,"businessEmailDisplayState",void 0);_.E([_.C(),_.l("design:type",String)],Yx.prototype,"businessEmail",void 0);
_.E([_.C(),_.l("design:type",String)],Yx.prototype,"businessEmailErrorMessage",void 0);_.E([_.s6("metadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yx.prototype,"businessEmailMetadataChanged",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Yx.prototype,"onYtServiceRequestCompleted",null);
_.E([_.O6({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Yx);
_.Q(Yx,"ytd-about-channel-renderer",function(){if(Mzk!==void 0)return Mzk;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Mzk=A},{mode:1});var wP1;var P_=function(){return _.a.apply(this,arguments)||this};
_.I(P_,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],P_.prototype,"data",void 0);_.E([_.O6({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],P_);
_.Q(P_,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(wP1!==void 0)return wP1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return wP1=A},{mode:1});var onw;var G8=function(){return _.a.apply(this,arguments)||this};
_.I(G8,_.a);G8.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],G8.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],G8.prototype,"aligment",void 0);_.E([_.O6({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],G8);
_.Q(G8,"ytd-channel-list-sub-menu-renderer",function(){if(onw!==void 0)return onw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return onw=
A},{mode:1});var $5w;var Fh=function(){return _.a.apply(this,arguments)||this};
_.I(Fh,_.a);Fh.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}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Fh.prototype,"data",void 0);_.E([_.O6({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Fh);
_.Q(Fh,"ytd-channel-sub-menu-renderer",function(){if($5w!==void 0)return $5w;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return $5w=A},{mode:1});var ALp;var HWN;var Xh=function(){var A=_.a.apply(this,arguments)||this;A.isCompact=!1;return A};
_.I(Xh,_.a);_.nP.Object.defineProperties(Xh.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var A,H;return((H=_.L((A=this.data)==null?void 0:A.endpoint,_.KT))==null?void 0:H.target)==="TARGET_NEW_WINDOW"}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Xh.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Xh.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Xh.prototype,"isCompact",void 0);_.E([_.G("isCompact"),_.l("design:type",Number),_.l("design:paramtypes",[])],Xh.prototype,"thumbnailWidth",null);
_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xh.prototype,"openNewWindow",null);_.E([_.O6({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Xh);
_.Q(Xh,"ytd-media-lockup-renderer",function(){if(HWN!==void 0)return HWN;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return HWN=A},{mode:1});var sRA;var DB=function(){return _.a.apply(this,arguments)||this};
_.I(DB,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],DB.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],DB.prototype,"data",void 0);_.E([_.O6({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],DB);
_.Q(DB,"ytd-structured-description-channel-lockup-renderer",function(){if(sRA!==void 0)return sRA;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return sRA=A},{mode:1});var kuJ;var S6=function(){var A=_.a.apply(this,arguments)||this;A.isCompact=!1;A.collectionsStackColor=_.b("modernize_structured_description_playlist_lockups_v2");return A};
_.I(S6,_.a);S6.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:_.b("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.nP.Object.defineProperties(S6.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d,W,z;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(A=this.data)==null?void 0:(H=A.thumbnail)==null?void 0:H.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(k=this.data)==null?void 0:(d=k.thumbnail)==null?void 0:d.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(W=this.data)==null?void 0:(z=W.thumbnail)==null?
void 0:z.vibrantColorPalette:void 0}}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],S6.prototype,"componentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],S6.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],S6.prototype,"showSidePanelThumbnailOverlay",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],S6.prototype,"isCompact",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],S6.prototype,"collectionsStackColor",void 0);_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],S6.prototype,"twoLineTitle",null);_.E([_.G("data","collectionsStackColor"),_.l("design:type",Object),_.l("design:paramtypes",[])],S6.prototype,"collectionStack",null);
_.E([_.O6({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],S6);
_.Q(S6,"ytd-structured-description-playlist-lockup-renderer",function(){if(kuJ!==void 0)return kuJ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return kuJ=A},{mode:1});var d$G;var Cb=function(){return _.a.apply(this,arguments)||this};
_.I(Cb,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Cb.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Cb.prototype,"data",void 0);_.E([_.O6({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Cb);
_.Q(Cb,"ytd-structured-description-video-lockup-renderer",function(){if(d$G!==void 0)return d$G;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return d$G=A},{mode:2});var Kb=function(){return _.a.apply(this,arguments)||this};
_.I(Kb,_.a);
Kb.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}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Kb.prototype,"data",void 0);_.E([_.O6({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Kb);
_.Q(Kb,"ytd-compact-infocard-renderer",function(){if(ALp!==void 0)return ALp;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return ALp=A},{mode:1});var WqJ;var ae=function(){return _.a.apply(this,arguments)||this};
_.I(ae,_.a);ae.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.nP.Object.defineProperties(ae.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ae.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],ae.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],ae.prototype,"ytdReduxBehavior",void 0);_.E([_.C({selector:_.Ot}),_.l("design:type",Object)],ae.prototype,"isGridViewEnabled",void 0);
_.E([_.G("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ae.prototype,"watchFeedBigThumbs",null);_.E([_.G("isGridViewEnabled","data"),_.C({reflectToAttribute:!0,value:"168"}),_.l("design:type",String),_.l("design:paramtypes",[])],ae.prototype,"thumbnailWidth",null);_.E([_.G("isGridViewEnabled","data"),_.C({reflectToAttribute:!0,value:"94"}),_.l("design:type",String),_.l("design:paramtypes",[])],ae.prototype,"customThumbnailSize",null);
_.E([_.C(),_.l("design:type",Object)],ae.prototype,"data",void 0);_.E([_.O6({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],ae);
_.Q(ae,"ytd-compact-playlist-renderer",function(){if(WqJ!==void 0)return WqJ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return WqJ=A},{mode:1});var zip;var c_=function(){var A=_.a.apply(this,arguments)||this;A.roundedContainer=!0;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return A};
_.I(c_,_.a);_.q=c_.prototype;_.q.attached=function(){this.requestElementsPerRow()};
_.q.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"}}}};
_.q.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.q.computeViewStyle=function(A){return A.style?A.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.q.onUpdateElementsPerRowAction=function(A){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&A===1};
_.q.requestElementsPerRow=function(){_.Ed(this.hostElement,"yt-request-elements-per-row")};
c_.prototype.dataChanged=c_.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],c_.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],c_.prototype,"actionHandlerBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],c_.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],c_.prototype,"hideThumbnail",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.l("design:type",String)],c_.prototype,"viewStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],c_.prototype,"roundedContainer",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c_.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],c_);
_.Q(c_,"ytd-compact-promoted-item-renderer",function(){if(zip!==void 0)return zip;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return zip=A},{mode:1});var q$Z;var pb=function(){return _.a.apply(this,arguments)||this};
_.I(pb,_.a);pb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
pb.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
pb.prototype.onYtNavigate=function(A,H){var k=this;if(H.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",H)){var d=this.get("watchEndpoint.videoId",H.endpoint),W=_.li(this.hostElement,"yt-get-current-video-id-action")[0];_.b("kevlar_mix_handle_first_endpoint_different")&&d&&W&&d!==W||(A.stopPropagation(),_.a9().getPlayerPromise().then(function(z){if(z.getPlayerState()===0&&k.data.secondaryNavigationEndpoint)var u=k.data.secondaryNavigationEndpoint;else{u=
Object.assign({},H.endpoint);var B=_.L(u.commandMetadata,_.wn);B&&(z=Math.floor(z.getCurrentTime()),B.url=_.$d(B.url,{t:z}),!_.b("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(B=_.L(u,_.Yr)))&&(B.startTimeSeconds=z)}_.Ed(k.hostElement,"yt-navigate",{endpoint:u})}))}};
_.nP.Object.defineProperties(pb.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d,W,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(H=A.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(k=this.data)==null?void 0:(d=k.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(W=this.data)==null?void 0:(z=W.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:!0}}}});
pb.prototype.onYtNavigate=pb.prototype.onYtNavigate;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.MY.YtEndpointBehavior),_.l("design:type",Object)],pb.prototype,"ytEndpointBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],pb.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.P(_.I6),_.l("design:type",Object)],pb.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],pb.prototype,"ytdReduxBehavior",void 0);_.E([_.C({selector:_.Ot}),_.l("design:type",Object)],pb.prototype,"isGridViewEnabled",void 0);_.E([_.G("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],pb.prototype,"watchFeedBigThumbs",null);
_.E([_.G("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],pb.prototype,"thumbnailWidth",null);_.E([_.C(),_.l("design:type",Object)],pb.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],pb.prototype,"collectionStack",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],pb.prototype,"onYtNavigate",null);
_.E([_.O6({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],pb);
_.Q(pb,"ytd-compact-radio-renderer",function(){if(q$Z!==void 0)return q$Z;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return q$Z=A},{mode:1});var rLw;var QE=function(){return _.a.apply(this,arguments)||this};
_.I(QE,_.a);QE.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
QE.prototype.computeRendererStyle=function(A){return A.style?A.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.E([_.C(),_.l("design:type",Object)],QE.prototype,"data",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],QE.prototype,"rendererBehavior",void 0);_.E([_.C({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],QE.prototype,"rendererStyle",void 0);_.E([_.O6({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],QE);
_.Q(QE,"ytd-compact-text-promo-renderer",function(){if(rLw!==void 0)return rLw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return rLw=A},{mode:1});var ugw;var VE=function(){var A=_.a.apply(this,arguments)||this;A.isShortsStyle=!1;return A};
_.I(VE,_.a);_.q=VE.prototype;_.q.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"}}}};
_.q.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Ed(this.hostElement,"yt-disable-lockup-interaction"):_.Ed(this.hostElement,"yt-enable-lockup-interaction"))};
_.q.isMetaBlockEmpty=function(A){return!A||!A.longBylineText&&!A.shortBylineText&&!A.shortViewCountText&&!A.viewCountText};
_.q.computeHasOneLineTitle=function(A){return this.forceOneLineTitle||!(A==null||!A.buttons)};
_.q.computeDisableInteraction=function(){var A;return!((A=this.data)==null?0:A.navigationEndpoint)};
_.q.hasSingularTopStandaloneBadge=function(){var A;return!((A=this.data)==null||!A.topStandaloneBadge)};
_.nP.Object.defineProperties(VE.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("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 A;return this.hasSingularTopStandaloneBadge()?[(A=this.data)==null?void 0:A.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var A;return this.shouldShowTopBadges?((A=this.data)==null?void 0:A.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
VE.prototype.disableInteractionChanged=VE.prototype.disableInteractionChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],VE.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],VE.prototype,"ytdLockupBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],VE.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.l("design:type",Boolean)],VE.prototype,"metaBlockEmpty",void 0);_.E([_.C({selector:_.Ot}),_.l("design:type",Object)],VE.prototype,"isGridViewEnabled",void 0);_.E([_.G("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VE.prototype,"watchFeedBigThumbs",null);
_.E([_.G("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],VE.prototype,"thumbnailWidth",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],VE.prototype,"isShortsStyle",void 0);_.E([_.C(),_.l("design:type",Object)],VE.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.l("design:type",Boolean)],VE.prototype,"hasOneLineTitle",void 0);
_.E([_.C(),_.l("design:type",Boolean)],VE.prototype,"hideThumbnail",void 0);_.E([_.C(),_.l("design:type",Boolean)],VE.prototype,"forceOneLineTitle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.l("design:type",Boolean)],VE.prototype,"disableInteraction",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],VE.prototype,"musicMetadataVideoLockup",void 0);
_.E([_.fF("disableInteraction"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VE.prototype,"disableInteractionChanged",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VE.prototype,"shouldShowTopBadges",null);_.E([_.G("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],VE.prototype,"topBadges",null);
_.E([_.G("shouldShowTopBadges","data"),_.l("design:type",Array),_.l("design:paramtypes",[])],VE.prototype,"inlineMetadataBadges",null);_.E([_.G("shouldShowTopBadges"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],VE.prototype,"shouldShowBadgesBelowMetadata",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],VE.prototype,"compactTitleClass",null);_.E([_.O6({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],VE);
_.Q(VE,"ytd-compact-video-renderer",function(){if(ugw!==void 0)return ugw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return ugw=A},{mode:2});var Bgw;_.uL("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Eq=function(){return _.a.apply(this,arguments)||this};
_.I(Eq,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Eq.prototype,"data",void 0);_.E([_.O6({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Eq);
_.Q(Eq,"ytd-counterfactual-renderer",function(){if(Bgw!==void 0)return Bgw;var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Bgw=A},{mode:1});var eiN;var Uq=function(){var A=_.a.apply(this,arguments)||this;A.hidden=!1;return A};
_.I(Uq,_.a);Uq.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.wj().resolve(_.J7).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Uq.prototype.computeHidden=function(A){return!!A};
_.nP.Object.defineProperties(Uq.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}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Uq.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.l("design:type",Object)],Uq.prototype,"hidden",void 0);_.E([_.G("data.label"),_.l("design:type",String),_.l("design:paramtypes",[])],Uq.prototype,"label",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uq.prototype,"value",null);
_.E([_.O6({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Uq);
_.Q(Uq,"ytd-dropdown-item-renderer",function(){if(eiN!==void 0)return eiN;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return eiN=A},{mode:1});var x$j;var iWG;var lv=function(){return _.a.apply(this,arguments)||this};
_.I(lv,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lv.prototype,"data",void 0);_.E([_.C({computed:"getSimpleString(data.label)"}),_.l("design:type",String)],lv.prototype,"label",void 0);_.E([_.O6({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],lv);
_.Q(lv,"ytd-navigation-dropdown-item-renderer",function(){if(iWG!==void 0)return iWG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return iWG=A},{mode:1});var th=function(){var A=_.a.apply(this,arguments)||this;A.disabled=!1;A.value="";A.noLabelFloat=!1;A.noUnderline=!1;A.usePrimaryColor=!1;A.hasBackground=!1;A.verticalAlign="top";A.autosize=!1;A.minAutosizeWidth=100;A.autosizeFont="14px Roboto";return A};
_.I(th,_.a);_.q=th.prototype;_.q.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"}}}};
_.q.open=function(){this.inputEl.open()};
_.q.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.q.dataChanged=function(){this.reset()};
_.q.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("value-changed",this.value))};
_.q.stopPropagation=function(A){A.stopPropagation()};
_.q.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var A=this.canvas.getContext("2d");A&&(A.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(A.measureText(this.inputEl.value).width)+24)+"px")}};
_.q.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var A=0,H=this.data.entries.length;A<H;A++){var k=this.data.entries[A],d;for(d in k)if(k.hasOwnProperty(d)){var W=k[d];if("isSelected"in W&&W.isSelected)return"stringValue"in W?W.stringValue||"":"int32Value"in W?W.int32Value||0:0}}return null};
_.q.updateValueFromBinding=function(A){this.value=A.detail.value};
_.nP.Object.defineProperties(th.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 A=0,H=this.data.entries.length;A<H;A++){var k=this.data.entries[A],d;for(d in k)if(k.hasOwnProperty(d)){var W=k[d];if("isSelected"in W&&W.isSelected&&"label"in W)return this.ytRendererBehavior.getSimpleString(W.label)}}return null}}});
th.prototype.autoSizeLabel=th.prototype.autoSizeLabel;th.prototype.stopPropagation=th.prototype.stopPropagation;th.prototype.valueChangedForBinding=th.prototype.valueChangedForBinding;th.prototype.dataChanged=th.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],th.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],th.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],th.prototype,"disabled",void 0);_.E([_.C(),_.l("design:type",Object)],th.prototype,"value",void 0);_.E([_.C(),_.l("design:type",Object)],th.prototype,"noLabelFloat",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],th.prototype,"noUnderline",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],th.prototype,"theme",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],th.prototype,"usePrimaryColor",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],th.prototype,"hasBackground",void 0);_.E([_.C(),_.l("design:type",Object)],th.prototype,"verticalAlign",void 0);_.E([_.C(),_.l("design:type",Object)],th.prototype,"autosize",void 0);_.E([_.C(),_.l("design:type",Object)],th.prototype,"minAutosizeWidth",void 0);_.E([_.C(),_.l("design:type",Object)],th.prototype,"autosizeFont",void 0);
_.E([_.ol("#entries"),_.l("design:type",Object)],th.prototype,"entries",void 0);_.E([_.ol("#input"),_.l("design:type",Object)],th.prototype,"inputEl",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],th.prototype,"dataChanged",null);_.E([_.s6("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],th.prototype,"valueChangedForBinding",null);
_.E([_.Ze("iron-overlay-opened"),_.Ze("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],th.prototype,"stopPropagation",null);_.E([_.Ze("iron-select"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],th.prototype,"autoSizeLabel",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],th.prototype,"label",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],th);
_.Q(th,"ytd-dropdown-renderer",function(){if(x$j!==void 0)return x$j;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return x$j=A},{mode:1});var hiw;var N8=function(){var A=_.a.apply(this,arguments)||this;A.isConstrainedList=!1;return A};
_.I(N8,_.a);N8.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"}}}};
N8.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
N8.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
N8.prototype.computeViewAllHidden=function(A,H){return A||!H.viewAllEndpoint};
N8.prototype.fillRestIfNoShowMore=N8.prototype.fillRestIfNoShowMore;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.cw.YtLazyListBehavior),_.l("design:type",Object)],N8.prototype,"ytLazyListBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],N8.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],N8.prototype,"isConstrainedList",void 0);_.E([_.s6("data","canShowMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N8.prototype,"fillRestIfNoShowMore",null);_.E([_.O6({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],N8);
_.Q(N8,"ytd-expanded-shelf-contents-renderer",function(){if(hiw!==void 0)return hiw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return hiw=A},{mode:2});var OWN;var M8=function(){return _.a.apply(this,arguments)||this};
_.I(M8,_.a);M8.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}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],M8.prototype,"data",void 0);_.E([_.O6({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],M8);
_.Q(M8,"ytd-feed-channel-filter-header-renderer",function(){if(OWN!==void 0)return OWN;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return OWN=A},{mode:1});var RiA;var Tgk;var m$G;var nb=function(){return _.a.apply(this,arguments)||this};
_.I(nb,_.a);_.q=nb.prototype;_.q.onClick=function(A){var H,k=(H=this.data)==null?void 0:H.sectionEndpoint;!_.XU(_.F_(A),this.hostElement,["A".toString()])&&k&&_.Ed(this.hostElement,"yt-navigate",{endpoint:k})};
_.q.computeHasSectionEndpoint=function(A){return(A==null?void 0:A.sectionEndpoint)!==void 0};
_.q.computeShowHeaderAsLink=function(A){return(A==null?void 0:A.header)!==void 0&&(A==null?void 0:A.sectionEndpoint)!==void 0};
_.q.computeShowSubheaderAsLink=function(A){return(A==null?void 0:A.subheader)!==void 0&&(A==null?void 0:A.sectionEndpoint)!==void 0&&(A==null?void 0:A.header)===void 0};
_.q.getHeaderAsLinkClass=function(A){var H=[],k;(A==null?0:(k=A.headerIcon)==null?0:k.iconType)&&H.push("header-link-active");return H.join(" ")};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],nb.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],nb.prototype,"data",void 0);
_.E([_.C({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],nb.prototype,"hasSectionEndpoint",void 0);_.E([_.C({computed:"computeShowHeaderAsLink(data)"}),_.l("design:type",Boolean)],nb.prototype,"showHeaderAsLink",void 0);_.E([_.C({computed:"computeShowSubheaderAsLink(data)"}),_.l("design:type",Boolean)],nb.prototype,"showSubheaderAsLink",void 0);_.E([_.O6({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],nb);
_.Q(nb,"ytd-medical-panel-section-renderer",function(){if(m$G!==void 0)return m$G;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return m$G=A},{mode:1});var ZB=function(){var A=_.a.apply(this,arguments)||this;A.isExpanded=!1;A.roundedContainer=!0;A.skipRoundingTop=!1;A.toggleExpandableSection=function(){A.isExpanded=!A.isExpanded};
return A};
_.I(ZB,_.a);
ZB.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]]"}}}}}};
ZB.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
ZB.prototype.dataChanged=ZB.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ZB.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ZB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ZB.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],ZB.prototype,"isExpanded",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ZB.prototype,"roundedContainer",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ZB.prototype,"skipRoundingTop",void 0);_.E([_.C(),_.l("design:type",Object)],ZB.prototype,"toggleExpandableSection",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZB.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],ZB);
_.Q(ZB,"ytd-medical-panel-content-renderer",function(){if(Tgk!==void 0)return Tgk;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Tgk=A},{mode:1});_.uL("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var fb=function(){var A=_.a.apply(this,arguments)||this;A.roundedContainer=!0;A.extractOverlay=!1;A.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");A.hasTitle=!1;A.linkIcon="OPEN_IN_NEW";A.isDismissed=!1;return A};
_.I(fb,_.a);fb.prototype.onOverlayConditionsChange=function(){var A=_.Va(this.hostElement).querySelector("ytd-info-panel-content-renderer");A&&(A.set("extractOverlay",this.extractOverlay),A.set("roundedContainer",this.roundedContainer))};
fb.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"}}}};
fb.prototype.computeHasTitle=function(A){return!(A==null||!A.title)};
fb.prototype.onClick=function(A){var H,k=(H=this.data)==null?void 0:H.headerEndpoint;!_.XU(_.F_(A),this.hostElement,["BUTTON".toString()])&&k&&this.ytComponentBehavior.resolveCommand(k)};
_.nP.Object.defineProperties(fb.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 A;return((A=this.data)==null?void 0:A.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:A.disableBottomDivider)||!((H=this.data)==null?0:H.title)}}});
fb.prototype.onOverlayConditionsChange=fb.prototype.onOverlayConditionsChange;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],fb.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],fb.prototype,"ytdReduxBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],fb.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],fb.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],fb.prototype,"extractOverlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],fb.prototype,"amsterdamEnabled",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.l("design:type",Object)],fb.prototype,"hasTitle",void 0);
_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.background"),_.l("design:type",Object),_.l("design:paramtypes",[])],fb.prototype,"background",null);_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.titleStyle"),_.l("design:type",Object),_.l("design:paramtypes",[])],fb.prototype,"titleStyle",null);
_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.G("data.titleStyle"),_.l("design:type",Object),_.l("design:paramtypes",[])],fb.prototype,"showLinkIcon",null);_.E([_.C(),_.l("design:type",String)],fb.prototype,"linkIcon",void 0);_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],fb.prototype,"hideDivider",null);
_.E([_.C({selectorArgs:["data.dismissStateEntityKey"],selector:function(A,H){A=_.Mw(A.entities,"dismissState",H);return(A==null?void 0:A.isDismissed)||(A==null?void 0:A.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(A==null?void 0:A.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.l("design:type",Object)],fb.prototype,"isDismissed",void 0);_.E([_.fF("roundedContainer","extractOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fb.prototype,"onOverlayConditionsChange",null);_.E([_.O6({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],fb);
_.Q(fb,"ytd-info-panel-container-renderer",function(){if(RiA!==void 0)return RiA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return RiA=A},{mode:1});var JLw;_.uL("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var wr=function(){return _.a.apply(this,arguments)||this};
_.I(wr,_.a);wr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
wr.prototype.computeStyle=function(A){return A?A:""};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],wr.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.l("design:type",String)],wr.prototype,"titleStyle",void 0);
_.E([_.O6({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],wr);
_.Vu()(wr,"ytd-item-section-header-renderer",function(){if(JLw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);JLw=A}A=JLw;return A},{allowedProps:["data"],
mode:1});var gy1;var bWj,Lqp=function(){return bWj!==void 0?bWj:bWj=document.createElement("template")};
document.head.appendChild(Lqp().content);var vyw;_.oe=new _.SE("VOTING_ANIMATION_CONTROLLER_TOKEN");var jRj=_.c(function(A){var H=A.data;var k=_.GP("div"),d=_.GP("div");A=_.r(_.RV("VOTE_STATUS_NONE",void 0,"YPH5mf"));var W=A.next().value,z=A.next().value,u=_.o9(KKl,function(){var J;return(J=H())==null?void 0:J.entityKey}),B=_.b("web_enable_voting_animation")||_.b("enable_music_web_cairo_voting_animation");
_.CZ(function(){var J;((J=H().initialState)==null?0:J.status)&&z(H().initialState.status)});
var h=function(){var J,g,v=(g=(J=H().initialState)==null?void 0:J.votes)!=null?g:0,y;J=(y=H().initialState)==null?void 0:y.status;return J==="VOTE_STATUS_UPVOTED"?v-1:J==="VOTE_STATUS_DOWNVOTED"?v+1:v},O=function(){return W()==="VOTE_STATUS_UPVOTED"?h()+1:W()==="VOTE_STATUS_DOWNVOTED"?h()-1:h()},T=function(J){var g=J?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
z(g);var v=O(),y=_.wj().resolve(_.fZ(_.oe)),X=u();X&&(J&&(X==null?0:X.upvoteDefaultButtonOnTap)?_.mu(X.upvoteDefaultButtonOnTap,{form:{element:k.value},disableClickTracking:!0}):(X==null?0:X.upvoteToggledButtonOnTap)&&_.mu(X.upvoteToggledButtonOnTap,{form:{element:k.value},disableClickTracking:!0}));var D;J=(D=X==null?void 0:X.enableOptimisticReordering)!=null?D:H().enableOptimisticReordering;B&&y&&H().itemId&&J&&yL1(y,H().itemId,v,g)},m=function(J){var g=J?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
z(g);var v=O(),y=_.wj().resolve(_.fZ(_.oe)),X=u();X&&(J&&(X==null?0:X.downvoteDefaultButtonOnTap)?_.mu(X.downvoteDefaultButtonOnTap,{form:{element:d.value},disableClickTracking:!0}):(X==null?0:X.downvoteToggledButtonOnTap)&&_.mu(X.downvoteToggledButtonOnTap,{form:{element:d.value},disableClickTracking:!0}));var D;J=(D=X==null?void 0:X.enableOptimisticReordering)!=null?D:H().enableOptimisticReordering;B&&y&&H().itemId&&J&&yL1(y,H().itemId,v,g)};
A={};A=_.ER("ytVotingViewModelVoteCount",(A.ytVotingViewModelVoteCountDisabled=function(){return H().isDisabled},A));
return _.x("voting-view-model",{class:"ytVotingViewModelHost"},_.x("div",{el:k},_.x(_.HG,{data:function(){var J=_.L(H().upvoteButton,_.jG);return{toggleButtonViewModel:Object.assign({},J,{isToggled:W()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(J){return _.x(_.qc,{data:J.data,
onToggle:T})}})),_.x("div",{class:A},function(){var J,g,v;
return W()==="VOTE_STATUS_UPVOTED"?(J=H().initialState)==null?void 0:J.compactVotesUpvoted:W()==="VOTE_STATUS_DOWNVOTED"?(g=H().initialState)==null?void 0:g.compactVotesDownvoted:(v=H().initialState)==null?void 0:v.compactVotes}),_.x("div",{el:d},_.x(_.HG,{data:function(){var J=_.L(H().downvoteButton,_.jG);
return{toggleButtonViewModel:Object.assign({},J,{isToggled:W()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(J){return _.x(_.qc,{data:J.data,
onToggle:m})}})))},"ld");_.Sw(_.c(function(A){var H=A.data;return _.x("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.x("div",{class:_.ER("ytEngagementBarViewModelEngagementBarWrapper",A.className)},_.x(_.HG,{data:function(){return H().actions}},{votingViewModel:jRj})))},"md"),"engagement-bar-view-model",{props:{data:_.Ih,
className:_.Ih}});var $x=function(){var A=_.a.apply(this,arguments)||this;A.playlistVotingAnimationEnabled=_.b("web_enable_voting_animation");A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.downloadState="DOWNLOAD_STATE_UNKNOWN";A.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";A.offlineVideoPolicyExpirationTimestamp=0;return A};
_.I($x,_.a);_.q=$x.prototype;_.q.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"}}}};
_.q.canReorderChanged=function(){this.persistentDragHandle=_.b("kevlar_playlist_drag_handles")&&this.canReorder};
_.q.onDrag=function(){if(this.thumbnail){var A=_.Va(this.thumbnail).querySelector("yt-image");A&&(A.shouldRenderLazy=!1)}};
_.q.onMenuOverlayChanged=function(A,H){this.menuOpened=H};
_.q.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.q.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.q.onContentsTap=function(A){var H,k=(H=this.data)==null?void 0:H.serviceEndpoints;if(k&&k.length===1&&_.L(k[0],QUV)&&!_.XU(_.F_(A),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(k[0]);else{var d;(H=(d=this.data)==null?void 0:d.navigationEndpoint)&&_.b("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?IaZ(_.wj().resolve(_.L6),H):(_.Hi().playlistSuggestionsShelfActivation=
!0,_.Y$p(_.wj().resolve(_.L6),H)):H&&!_.XU(_.F_(A),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.b("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Ed(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))}};
_.q.computeStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.q.computeThumbnailWidth=function(A){return A==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.q.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=kUA(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))}};
_.q.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.q.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.q.dataChanged=function(){if(this.data){var A,H,k,d=((A=this.downloadRenderData)==null?void 0:A.badges)&&((H=this.downloadRenderData)==null?void 0:H.badges)!==((k=this.data)==null?void 0:k.badges),W,z,u;A=((W=this.downloadRenderData)==null?void 0:W.thumbnailOverlays)&&((z=this.downloadRenderData)==null?void 0:z.thumbnailOverlays)!==((u=this.data)==null?void 0:u.thumbnailOverlays);(!this.downloadRenderData||d||A)&&this.downloadStateChanged()}};
_.q.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var A,H,k=(A=this.data.menu)==null?void 0:(H=A.menuRenderer)==null?void 0:H.items;if(k)for(A=_.r(k),H=A.next();!H.done;H=A.next())if(H=H.value,k=void 0,_.L((k=H.menuServiceItemRenderer)==null?void 0:k.serviceEndpoint,_.Tr)){var d=k=void 0,W=void 0;H=(k=H)==null?void 0:(d=k.menuServiceItemRenderer)==null?void 0:(W=d.serviceEndpoint)==null?void 0:W.playlistEditEndpoint;W=d=void 0;if(k=(d=H)==null?void 0:(W=d.actions)==null?void 0:
W[0])d=void 0,k.setVideoId=(d=this.data)==null?void 0:d.setVideoId;W=d=k=void 0;if(H=(k=H)==null?void 0:(d=k.clientActions)==null?void 0:(W=d[0])==null?void 0:W.playlistRemoveVideosAction)k=void 0,H.setVideoIds=[(k=this.data)==null?void 0:k.setVideoId]}}};
_.nP.Object.defineProperties($x.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
$x.prototype.setVideoIdChanged=$x.prototype.setVideoIdChanged;$x.prototype.dataChanged=$x.prototype.dataChanged;$x.prototype.downloadStateChanged=$x.prototype.downloadStateChanged;$x.prototype.onMenuOverlayChanged=$x.prototype.onMenuOverlayChanged;$x.prototype.canReorderChanged=$x.prototype.canReorderChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],$x.prototype,"ytdReduxBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],$x.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],$x.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],$x.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$x.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],$x.prototype,"canReorder",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],$x.prototype,"menuOpened",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],$x.prototype,"handleIsHovered",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],$x.prototype,"persistentDragHandle",void 0);_.E([_.C(),_.l("design:type",Object)],$x.prototype,"downloadRenderData",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],$x.prototype,"styleType",void 0);_.E([_.C({computed:"computeThumbnailWidth(data.style)"}),_.l("design:type",Number)],$x.prototype,"thumbnailWidth",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],$x.prototype,"isDownloads",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],$x.prototype,"playlistVotingAnimationEnabled",void 0);
_.E([_.C({selector:Jr,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],$x.prototype,"downloadProgress",void 0);_.E([_.C(),_.l("design:type",Number)],$x.prototype,"relativeDateReference",void 0);_.E([_.C({selector:_.TK,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],$x.prototype,"transferState",void 0);_.E([_.C({selector:Zgm,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],$x.prototype,"downloadState",void 0);
_.E([_.C({selector:Slm,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],$x.prototype,"offlinePolicyAction",void 0);_.E([_.C({selector:CuC,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],$x.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.E([_.C({selector:apI,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],$x.prototype,"entityInfo",void 0);_.E([_.C({selector:_.hr}),_.l("design:type",Boolean)],$x.prototype,"miniplayerIsActive",void 0);
_.E([_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],$x.prototype,"playlistVideoId",null);_.E([_.ol("#thumbnail"),_.l("design:type",Object)],$x.prototype,"thumbnail",void 0);_.E([_.s6("canReorder"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$x.prototype,"canReorderChanged",null);
_.E([_.Ze("yt-menu-overlay-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Boolean]),_.l("design:returntype")],$x.prototype,"onMenuOverlayChanged",null);_.E([_.s6("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$x.prototype,"downloadStateChanged",null);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$x.prototype,"dataChanged",null);_.E([_.s6("data.setVideoId"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$x.prototype,"setVideoIdChanged",null);_.E([_.O6({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],$x);
_.Q($x,"ytd-playlist-video-renderer",function(){if(vyw!==void 0)return vyw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);A.content.insertBefore(Lqp().content.cloneNode(!0),A.content.firstChild);return vyw=A},{mode:1});var P6G;var Am=function(){return _.a.apply(this,arguments)||this};
_.I(Am,_.a);_.E([_.C(),_.l("design:type",Object)],Am.prototype,"data",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Am.prototype,"rendererBehavior",void 0);_.E([_.O6({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Am);
_.Q(Am,"ytd-premium-browse-footer-renderer",function(){if(P6G!==void 0)return P6G;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return P6G=A},{mode:1});var Guj;var H6=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return A};
_.I(H6,_.a);_.q=H6.prototype;_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.handleDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.q.computeHeaderLogoThumbnail=function(A,H){if(A)return H?A.darkLogo:A.lightLogo};
_.q.computeHeaderLogoHeight=function(A,H){var k,d,W;return(A=(k=this.computeHeaderLogoThumbnail(A,H))==null?void 0:(d=k.thumbnails)==null?void 0:(W=d[0])==null?void 0:W.height)&&A%31===0?"31":"24"};
_.q.computeHeaderLogoMarginBottom=function(A,H){return this.computeHeaderLogoHeight(A,H)==="24"?"0":"-7"};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],H6.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],H6.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],H6.prototype,"isDarkTheme",void 0);_.E([_.C({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.l("design:type",Object)],H6.prototype,"themeLogo",void 0);
_.E([_.C({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.l("design:type",String)],H6.prototype,"logoHeight",void 0);_.E([_.C({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.l("design:type",String)],H6.prototype,"logoMarginBottom",void 0);_.E([_.O6({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],H6);
_.Q(H6,"ytd-primetime-promo-header-renderer",function(){if(Guj!==void 0)return Guj;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Guj=A},{mode:1});var Fqw;_.sf=_.c(function(A){var H=A.className;var k=A.data;var d=A.isOverlay;var W=A.maxLinesOverride;var z=A.useMediumText;var u=function(){return k().alwaysShowTruncationText},B=function(){return k().truncationText},h=function(){return z!==void 0&&z()?"medium":"small"},O=function(){return d!==void 0&&d()?"overlay":"default"},T=function(){var v,y;
return(y=(v=_.L(k().rendererContext,_.zF))==null?void 0:v.label)!=null?y:""};
A=_.r(_.RV(!1,void 0,"llBUm"));var m=A.next().value,J=A.next().value;A=_.lc(function(){k().expandOnTap&&J(!m());return!1});
var g={};return _.x("yt-description-preview-view-model",{el:_.P8(_.OF(function(){return k().rendererContext})),
class:_.ER("ytDescriptionPreviewViewModelHost",H,(g.ytDescriptionPreviewViewModelClickable=function(){var v;return!((v=_.L(k().rendererContext,_.R5))==null||!v.onTap)},g.ytDescriptionPreviewViewModelIsOverlay=d,g)),
"on:click":A},_.x(_.R,{cond:function(){return k().description},
then:function(v){return _.x(_.R,{cond:m,then:function(){var y={};return _.x("div",{class:_.ER("ytDescriptionPreviewViewModelDescription",(y.ytDescriptionPreviewViewModelDescriptionMediumText=z,y))},_.x(_.j$,{text:v}))},
else:function(){return _.x(SSA,{text:v,alwaysShowTruncationText:u,truncationText:B,maxLines:function(){var y;return(y=W==null?void 0:W())!=null?y:k().maxLines},
textStyle:O,accessibilityLabel:T,textSize:h})}})}}))},"nd");
_.sf.idomCompat=!0;var D$w=_.c(function(A){var H=_.lc(function(W){var z;(z=A.onClick)==null||z.call(A,W)}),k={},d={};
return _.x("yt-shelf-header-layout",{class:_.ER("yt-shelf-header-layout",(k["yt-shelf-header-layout--disable-horizontal-padding"]=A.disableHorizontalPadding,k["yt-shelf-header-layout--disable-vertical-padding"]=A.disableVerticalPadding,k["yt-shelf-header-layout--responsive"]=A.useResponsiveLayout,k["yt-shelf-header-layout--narrow"]=function(){var W,z;return((W=A.useResponsiveLayout)==null?void 0:W.call(A))&&((z=A.forceSmallLayout)==null?void 0:z.call(A))},k["yt-shelf-header-layout--is-overlay"]=A.isOverlay,
k["yt-shelf-header-layout--tappable"]=A.isInteractive,k["yt-shelf-header-layout--optional-medium-layout-padding"]=A.useUpdatedPadding,k)),
"on:click":H,tabindex:function(){var W;return((W=A.isInteractive)==null?0:W.call(A))?0:void 0}},_.x("div",{class:"yt-shelf-header-layout__header-row"},_.x(_.R,{cond:A.leadingIcon,
then:function(W){return _.x("div",{class:"yt-shelf-header-layout__leading-icon"},_.x(_.n3,{icon:W}))},
else:function(){return _.x(_.R,{cond:A.hasLeadingImage,then:function(){var W,z={};return _.x("div",{class:_.ER("yt-shelf-header-layout__leading-image",(z["yt-shelf-header-layout__leading-image--circular-image"]=A.circularImage,z))},(W=A.leadingImage)==null?void 0:W.call(A))}})}}),_.x("div",{class:"yt-shelf-header-layout__label-container"},_.x(_.R,{cond:A.hasSuperlabel,
then:function(){var W;return _.x("div",{class:"yt-shelf-header-layout__superlabel"},(W=A.superlabel)==null?void 0:W.call(A))}}),_.x("div",{class:"yt-shelf-header-layout__title-row"},_.x(X1Q,{text:A.title,
className:_.ER("yt-shelf-header-layout__title",(d["yt-shelf-header-layout__title--small-title"]=A.forceSmallLayout,d)),tagLevel:A.tagLevel}),_.x(_.R,{cond:A.hasDetail,then:function(){var W;return _.x("div",{class:"yt-shelf-header-layout__detail"},(W=A.detail)==null?void 0:W.call(A))}})),_.x(_.R,{cond:A.hasSublabel,
then:function(){var W;return _.x("div",{class:"yt-shelf-header-layout__sublabel"},(W=A.sublabel)==null?void 0:W.call(A))}})),_.x(_.R,{cond:A.hasTrailingActions,
then:function(){var W;return _.x("div",{class:"yt-shelf-header-layout__trailing-actions"},(W=A.trailingActions)==null?void 0:W.call(A))}})),_.x(_.R,{cond:A.hasBottomAccessory,
then:function(){var W;return _.x("div",{class:"yt-shelf-header-layout__bottom-accessory"},(W=A.bottomAccessory)==null?void 0:W.call(A))}}))},"od");
D$w.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var X1Q=_.c(function(A){var H=A.text;var k=A.className;var d=A.tagLevel;return _.x(_.Yl,null,_.x(_.y$,{when:function(){return(d==null?void 0:d())===0}},function(){return _.x("h2",{class:k},H())}),_.x(_.y$,{when:function(){return(d==null?void 0:d())===1}},function(){return _.x("h3",{class:k},H())}),_.x(_.y$,{when:function(){return(d==null?void 0:d())===2}},function(){return _.x("h4",{class:k},H())}),_.x(_.jp,null,function(){return _.x("h2",{class:k},H())}))},"pd");var Kqw,S$A,C6A;_.kG=_.c(function(A){var H=A.className;var k=A.data;var d=A.disableHorizontalPadding;var W=A.disableVerticalPadding;var z=A.forceSmallLayout;var u=A.useResponsiveLayout;var B=A.isOverlay;A=A.useUpdatedPadding;return _.x("yt-section-header-view-model",{class:_.ER("ytSectionHeaderViewModelHost",H),style:_.Mt({"background-color":function(){return $H(k().backgroundColor)?_.h1($H(k().backgroundColor)):void 0}})},_.x(D$w,{hasDetail:!1,
title:function(){return _.x(_.j$,{text:function(){return k().headline}})},
hasTitle:!0,sublabel:function(){return _.x(S$A,{data:k})},
hasSublabel:function(){return!!k().sublabel||!!k().bottomBadge},
superlabel:function(){return _.x(C6A,{data:k})},
hasSuperlabel:function(){return!!k().superlabel||!!k().topBadge},
leadingImage:function(){return _.x(Kqw,{leadingAccessory:function(){return k().leadingAccessory}})},
hasLeadingImage:function(){return!!k().leadingAccessory},
trailingActions:function(){return _.x(_.HG,{data:function(){return k().trailingActions}},{flexibleActionsViewModel:_.mg})},
hasTrailingActions:function(){return!!k().trailingActions},
disableHorizontalPadding:function(){return(d==null?void 0:d())||k().disableHorizontalPadding},
disableVerticalPadding:W,forceSmallLayout:z,useResponsiveLayout:u,isOverlay:B,isInteractive:function(){return!!_.i2(k().rendererContext)},
onClick:function(h){if(_.hc(k().rendererContext)){var O=_.i2(k().rendererContext);O&&_.OR(O,{form:{element:h.target,event:h}})}},
bottomAccessory:function(){return _.x(_.HG,{data:function(){return k().bottomAccessory}},{descriptionPreviewViewModel:function(h){return _.x(_.sf,{data:h.data,
useMediumText:!0})},
commonMarkViewModel:function(h){h=h.data;var O;return _.x(_.sD,null,(O=_.wj().resolve(_.fZ(fli)))==null?void 0:O({data:h}))}})},
hasBottomAccessory:function(){return!!k().bottomAccessory},
useUpdatedPadding:A}))},"qd");
Kqw=_.c(function(A){var H=A.leadingAccessory;return _.x(_.sD,null,_.x(_.R,{cond:function(){var k;return(k=H().image)!=null?k:_.vG(H().themedImage)},
then:function(k){return _.x(_.GA,{data:k,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.x(_.R,{cond:function(){return _.L(H().avatar,_.TV)},
then:function(k){return _.x(_.RW,{data:k})}}))},"rd");
S$A=_.c(function(A){var H=A.data;return _.x(_.sD,null,_.x(_.R,{cond:function(){return _.L(H().bottomBadge,pwp)},
then:function(k){var d={};return _.x(_.CK,{data:k,class:_.ER((d.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!k()&&!!H().sublabel},d))})}}),_.x(_.R,{cond:function(){return H().sublabel},
then:function(k){return _.x(_.j$,{text:k})}}))},"sd");
C6A=_.c(function(A){var H=A.data;return _.x(_.sD,null,_.x(_.R,{cond:function(){return _.L(H().topBadge,pwp)},
then:function(k){var d={};return _.x(_.CK,{data:k,class:_.ER((d.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!k()&&!!H().superlabel},d))})}}),_.x(_.R,{cond:function(){return H().superlabel},
then:function(k){return _.x(_.j$,{text:k})}}))},"td");_.Sw(_.kG,"yt-section-header-view-model",{props:{data:_.Ih,className:_.Ih,disableHorizontalPadding:_.Ih,disableVerticalPadding:_.Ih,forceSmallLayout:_.Ih,useResponsiveLayout:_.Ih,isOverlay:_.Ih,useUpdatedPadding:_.Ih}});_.uL("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var dT=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return A};
_.I(dT,_.a);_.q=dT.prototype;_.q.attached=function(){this.requestElementsPerRow()};
_.q.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"}}}};
_.q.onDataChange=function(){var A=this;_.No(this,function(){A.updateItemVisibility()})};
_.q.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A,this.updateItemVisibility())};
_.q.updateItemVisibility=function(){var A=this;this.data&&this.data.panels&&_.Va(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(H,k){H.hidden=k>A.elementsPerRow-1})};
_.q.requestElementsPerRow=function(){_.Ed(this.hostElement,"yt-request-elements-per-row")};
dT.prototype.onDataChange=dT.prototype.onDataChange;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],dT.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],dT.prototype,"actionHandlerBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],dT.prototype,"data",void 0);_.E([_.C({value:3}),_.l("design:type",Number)],dT.prototype,"elementsPerRow",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dT.prototype,"onDataChange",null);_.E([_.O6({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],dT);
_.Q(dT,"ytd-primetime-promo-renderer",function(){if(Fqw!==void 0)return Fqw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Fqw=A},{mode:1});var aaJ;var W6=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return A};
_.I(W6,_.a);W6.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
W6.prototype.handleButtonRefreshAction=function(A){if(A=_.L(A,owi))this.set("data.button",A.membershipButton),this.notifyPath("data.button")};
_.nP.Object.defineProperties(W6.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:(H=A.avatars)==null?void 0:H.slice(0,8))||[]}}});
_.E([_.C(),_.l("design:type",Object)],W6.prototype,"data",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],W6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],W6.prototype,"rendererBehavior",void 0);_.E([_.G("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],W6.prototype,"avatars",null);
_.E([_.O6({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],W6);
_.Q(W6,"ytd-recognition-shelf-renderer",function(){if(aaJ!==void 0)return aaJ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return aaJ=A},{mode:1});var cLQ;var p1Q;var z$=function(){var A=_.a.apply(this,arguments)||this;A.modernButtons=_.b("web_modern_buttons");return A};
_.I(z$,_.a);_.q=z$.prototype;
_.q.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]]"}}}}}};
_.q.dataChanged=function(){this.collapsed=!0};
_.q.computeVisibleItems=function(A,H){return A!==void 0&&A.items?H?A.items.slice(0,this.data.collapsedItemCount):A.items:[]};
_.q.computeHideShowMore=function(A,H,k){return A>=H||!k};
_.q.computeHideShowAll=function(A,H,k){return!(A&&H)||k};
_.q.onMoreClick=function(){this.collapsed=!1};
_.nP.Object.defineProperties(z$.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.b("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.k6("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.b("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
z$.prototype.dataChanged=z$.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],z$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],z$.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],z$.prototype,"isSearch",void 0);
_.E([_.C({computed:"computeVisibleItems(data,collapsed)"}),_.l("design:type",Array)],z$.prototype,"visibleItems",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],z$.prototype,"collapsed",void 0);_.E([_.C({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.l("design:type",Boolean)],z$.prototype,"hideShowMore",void 0);
_.E([_.C({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.l("design:type",Boolean)],z$.prototype,"hideShowAll",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],z$.prototype,"modernButtons",void 0);_.E([_.G("isSearch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z$.prototype,"typographyBump",null);
_.E([_.G("isSearch"),_.l("design:type",Object),_.l("design:paramtypes",[])],z$.prototype,"lockupExperiments",null);_.E([_.G("isSearch"),_.l("design:type",String),_.l("design:paramtypes",[])],z$.prototype,"thumbnailWidth",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z$.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],z$);
_.Q(z$,"ytd-vertical-list-renderer",function(){if(p1Q!==void 0)return p1Q;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return p1Q=A},{mode:1});var QRw=_.XO(["#"]);_.uL("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var qA=function(){var A=_.a.apply(this,arguments)||this;A.isConstrainedList=!1;return A};
_.I(qA,_.a);_.q=qA.prototype;
_.q.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"}}}};
_.q.computeThumbnailStyle=function(A){return A||""};
_.q.computePlaceAnnotationUnderTitle=function(){var A;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((A=this.data)==null?void 0:A.thumbnailStyle)||"")};
_.q.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A)||_.y2f(QRw)};
_.q.computeIsPromoShelf=function(A){var H;return(A=A==null?void 0:(H=A[0])==null?void 0:H.metadataBadgeRenderer)?A.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.q.computePlaceBadgeBesideTitle=function(A){var H;return(A==null?0:(H=A[0])==null?0:H.metadataBadgeRenderer)?!this.computeIsPromoShelf(A):!1};
_.q.computeMenuIcon=function(A){return this.computeIsPromoShelf(A)?"yt-icons:more_vert":"yt-icons:more"};
_.q.onDataChange=function(){var A,H;((A=this.data)==null?0:(H=A.content)==null?0:H.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.q.onLockupRequested=function(A){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&A.detail&&A.detail.videoIds){for(var H=this.data.content.gridRenderer.items,k=new Set,d=_.r(A.detail.videoIds),W=d.next();!W.done;W=d.next())k.add(W.value);A.detail.returnValue=H.filter(function(z){return z.gridVideoRenderer&&z.gridVideoRenderer.videoId&&k.has(z.gridVideoRenderer.videoId)}).map(function(z){return z.gridVideoRenderer})}};
_.q.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
qA.prototype.onLockupRequested=qA.prototype.onLockupRequested;qA.prototype.onDataChange=qA.prototype.onDataChange;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],qA.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],qA.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.WU),_.l("design:type",Object)],qA.prototype,"ironResizableBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],qA.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],qA.prototype,"isSearch",void 0);_.E([_.C(),_.l("design:type",Object)],qA.prototype,"isConstrainedList",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("kevlar_fluid_dismiss")}}),
_.l("design:type",Boolean)],qA.prototype,"enableFluidDismiss",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.l("design:type",String)],qA.prototype,"thumbnailStyle",void 0);_.E([_.C({computed:"computeMenuIcon(data.badges)"}),_.l("design:type",String)],qA.prototype,"menuIcon",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.l("design:type",Boolean)],qA.prototype,"featuredPromo",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qA.prototype,"onDataChange",null);_.E([_.Ze("yt-lockup-requested"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],qA.prototype,"onLockupRequested",null);_.E([_.O6({is:"ytd-shelf-renderer",disableElementRegistration:!0})],qA);
_.Q(qA,"ytd-shelf-renderer",function(){if(cLQ!==void 0)return cLQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cLQ=A},{mode:1});var VSA;var rT=function(){return _.a.apply(this,arguments)||this};
_.I(rT,_.a);rT.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.nP.Object.defineProperties(rT.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rT.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],rT.prototype,"isPlaylist",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],rT.prototype,"isClipList",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],rT.prototype,"isPlaylistPageWithFilters",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],rT.prototype,"hasTitle",null);_.E([_.C(),_.G("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.l("design:type",Object),_.l("design:paramtypes",[])],rT.prototype,"isRightAligned",null);
_.E([_.O6({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],rT);
_.Q(rT,"ytd-sort-filter-header-renderer",function(){if(VSA!==void 0)return VSA;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return VSA=A},{mode:1});var EyZ;var uM=function(){var A=_.a.apply(this,arguments)||this;A.enableRightArrowHidden=_.b("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return A};
_.I(uM,_.a);uM.prototype.attached=function(){var A=this;this.enableRightArrowHidden&&(this.JSC$16876_throttledOnResize=new _.Nt(function(){var H;(H=A.ytdHorizontalListBehavior)==null||H.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var H;
(H=A.JSC$16876_throttledOnResize)==null||H.fire()}),this.resizeObserver.observe(this.hostElement))};
uM.prototype.detached=function(){if(this.enableRightArrowHidden){var A;(A=this.resizeObserver)==null||A.disconnect();var H;(H=this.JSC$16876_throttledOnResize)==null||H.dispose()}};
uM.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]]"}}}}}};
uM.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.nP.Object.defineProperties(uM.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.b("enable_creator_details_shelf_m2")){var A=[],H;((H=this.data)==null?0:H.creatorVideosButton)&&A.push(this.data.creatorVideosButton);var k;((k=this.data)==null?0:k.creatorAboutButton)&&A.push(this.data.creatorAboutButton);H=_.r(this.data.creatorCustomUrlButtons||[]);for(k=H.next();!k.done;k=H.next())A.push(k.value);return A}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.b("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.pg.YtdHorizontalListBehavior),_.l("design:type",Object)],uM.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uM.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],uM.prototype,"engagementPanel",void 0);
_.E([_.C(),_.l("design:type",Object)],uM.prototype,"enableRightArrowHidden",void 0);_.E([_.G("enableRightArrowHidden","atEnd"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uM.prototype,"hideRightArrow",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],uM.prototype,"creatorCustomUrlButtons",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data","creatorCustomUrlButtons"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uM.prototype,"showCreatorCustomUrlButtons",null);_.E([_.G("showCreatorCustomUrlButtons"),_.l("design:type",Number),_.l("design:paramtypes",[])],uM.prototype,"channelAvatarSize",null);_.E([_.O6({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],uM);
_.Q(uM,"ytd-video-description-infocards-section-renderer",function(){if(EyZ!==void 0)return EyZ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return EyZ=A},{mode:2});var U$A;var B6=function(){return _.a.apply(this,arguments)||this};
_.I(B6,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],B6.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.infoIcon)"}),_.l("design:type",Object)],B6.prototype,"infoIcon",void 0);_.E([_.O6({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],B6);
_.Q(B6,"ytd-eom-settings-disclaimer-renderer",function(){if(U$A!==void 0)return U$A;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return U$A=A},{mode:1});var laG;var e2=function(){return _.a.apply(this,arguments)||this};
_.I(e2,_.a);_.nP.Object.defineProperties(e2.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.suppressPaddingDisclaimer)}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],e2.prototype,"componentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],e2.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],e2.prototype,"suppressPaddingDisclaimer",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],e2);
_.Q(e2,"ytd-product-list-header-renderer",function(){if(laG!==void 0)return laG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return laG=A},{mode:1});var tSZ;var xG=function(){return _.a.apply(this,arguments)||this};
_.I(xG,_.a);xG.prototype.computeThumbnailStyle=function(A){if(A&&(A=_.iw(A)))return"background-color:"+A+";"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xG.prototype,"rendererBehaviors",void 0);_.E([_.C(),_.l("design:type",Object)],xG.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],xG);
_.Q(xG,"ytd-hashtag-tile-renderer",function(){if(tSZ!==void 0)return tSZ;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tSZ=A},{mode:1});var Ngw;var iM=function(){return _.a.apply(this,arguments)||this};
_.I(iM,_.a);iM.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}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],iM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],iM.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],iM);
_.Q(iM,"ytd-sponsorships-alert-renderer",function(){if(Ngw!==void 0)return Ngw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Ngw=A},{mode:1});var MSw;var hm=function(){return _.a.apply(this,arguments)||this};
_.I(hm,_.a);hm.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.nP.Object.defineProperties(hm.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.b("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.E([_.P(_.JB),_.l("design:type",Object)],hm.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],hm.prototype,"ytdLockupBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.E([_.C({selector:_.Ot}),_.l("design:type",Object)],hm.prototype,"isGridViewEnabled",void 0);
_.E([_.G("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],hm.prototype,"watchFeedBigThumbs",null);_.E([_.G("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],hm.prototype,"thumbnailWidth",null);_.E([_.C(),_.l("design:type",Object)],hm.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],hm);
_.Q(hm,"ytd-compact-movie-renderer",function(){if(MSw!==void 0)return MSw;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return MSw=A},{mode:1});var nyw;var ZWG;var fak=_.pZ("HTML_DIR")==="rtl",Of=function(){var A=_.a.apply(this,arguments)||this;A.engagementPanel=!1;A.maxLines=2;A.expandButtonOffset=0;A.showExpandButton=!1;A.isTruncated=!1;A.isExpanded=!1;A.currentSnippetType=2;A.alwaysShowExpandButton=!1;A.JSC$16893_lastWidth=NaN;A.observer=null;A.left=0;A.right=0;A.mid=0;A.longestSnippetLength=0;A.isFinalSnippet=!1;A.isFirstMutation=!1;A.isResetMutation=!1;A.OVERFLOW_THRESHOLD=5;return A};
_.I(Of,_.a);_.q=Of.prototype;_.q.onClick=function(A){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.XU(_.F_(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;if((H=window.getSelection())==null||!H.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.q.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.q.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.q.updateTextOnSnippetTypeChange=function(){_.b("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.q.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.q.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Pq(new _.Ti("AttributedSnippet is empty when the description is not empty",this.text))};
_.q.mutationCallback=function(){if(this.observer!=null){var A=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var H=Math.floor(A*this.maxLines/8);this.setSnippetText(this.text,H);H!==0||this.attributedTextIsEmpty()||_.Pq(new _.Ti("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;A=A*this.maxLines/8;this.left=0;var k;this.right=Math.min(A*2,(k=(H=this.simpleText)==null?void 0:H.length)!=null?k: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)}}};
_.q.mutationObserve=function(A){var H=this;this.observer||(this.observer=new MutationObserver(function(){H.mutationCallback()}));
this.observer.observe(A,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.q.attached=function(){var A=this;_.No(this,function(){A.resize()})};
_.q.isExpandedChanged=function(){_.Ed(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.q.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)};
_.q.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var A="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((fak?"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",A);this.snippetContainer.style.setProperty("mask-image",
A)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(fak?"right":"left",this.expandButtonOffset+"px")};
_.q.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.q.setSnippetText=function(A,H){A||(A={});if(_.jw(A)){var k=yw(A,H);k.attachmentRuns||k.commandRuns||k.decorationRuns||k.styleRuns||k.alignment||k.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:yw(A,H),headerRuns:RBf(H,this.headerRuns)},this.currentSnippetType=0):_.Pq(new _.Ti("Tried to set snippet text when HTML element was null",A)):(this.plainSnippetText.textContent=bc(A.content||"",H),this.currentSnippetType=2)}else{a:{k=aHN(A,H);if(k.runs){k=_.r(k.runs);for(var d=
k.next();!d.done;d=k.next())if(d=d.value,d.bold||d.deemphasize||d.italics||d.strikethrough||d.textColor||d.navigationEndpoint||_.L(d,ew)){k=!0;break a}}k=!1}k?this.formattedSnippetText?(this.formattedSnippetText.text=aHN(A,H),this.currentSnippetType=1):_.Pq(new _.Ti("Tried to set snippet text when HTML element was null",A)):(this.plainSnippetText.textContent=bc(_.PK(A),H),this.currentSnippetType=2)}};
_.q.attributedSnippetIsEmpty=function(){var A=this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl:this.plainSnippetText;return _.b("web_wiz_attributed_string")?A.innerText.length===0:A.childNodes.length===0};
_.q.attributedTextIsEmpty=function(){var A=this.text;if(!_.jw(A))return!0;var H;return((H=A.content)==null?void 0:H.length)===0?!0:!1};
_.q.resize=function(A){if(this.snippetText){if(A===void 0?0:A)this.JSC$16893_lastWidth=NaN;var H=this.hostElement.offsetWidth;if(H!==this.JSC$16893_lastWidth&&!this.isExpanded)if(this.JSC$16893_lastWidth=H,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;A=0;var k,d;H=Math.min(H*this.maxLines/8*2,(d=(k=this.simpleText)==null?void 0:k.length)!=null?d:0)-1;for(k=0;A<=H;)d=Math.floor(A+(H-A)/2),this.setSnippetText(this.text,d),this.isOverflowing()?H=d-1:(A=d+1,k=d);this.setSnippetText(this.text,k);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.q.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.q.onExpandClick=function(){var A=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.b("inline_expander_reset_focus_killswitch")||_.No(this,function(){var H;((H=_.wj().resolve(_.fZ(_.ah)))==null?0:H.isKeyBoardInUse())&&_.EY(A.hostElement)});
_.Ed(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.q.onCollapseClick=function(){this.collapse();_.Ed(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.q.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.q.computeExpandButtonOffset=function(){var A=this.expandSizer;return A?fak?A.offsetParent?A.offsetParent.offsetWidth-A.offsetWidth-A.offsetLeft:0:A.offsetLeft:0};
_.nP.Object.defineProperties(Of.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.jw(this.text)?this.text.content||"":_.PK(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 _.jw(this.text)?!0:this.text&&_.b("web_replace_formatted_with_attributed_string")&&UzI(this.text)?(this.text=_.B8(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}}});
Of.prototype.onTextChanged=Of.prototype.onTextChanged;Of.prototype.updateMaskAndExpandButtonOffset=Of.prototype.updateMaskAndExpandButtonOffset;Of.prototype.updateSnippetContainerMaxHeight=Of.prototype.updateSnippetContainerMaxHeight;Of.prototype.isExpandedChanged=Of.prototype.isExpandedChanged;Of.prototype.updateTextOnSnippetTypeChange=Of.prototype.updateTextOnSnippetTypeChange;Of.prototype.updateIsFormattedExpanded=Of.prototype.updateIsFormattedExpanded;Of.prototype.updateIsAttributedExpanded=Of.prototype.updateIsAttributedExpanded;
Of.prototype.onClick=Of.prototype.onClick;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Of.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Of.prototype,"text",void 0);_.E([_.C(),_.l("design:type",Array)],Of.prototype,"headerRuns",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Of.prototype,"engagementPanel",void 0);_.E([_.C(),_.l("design:type",Object)],Of.prototype,"maxLines",void 0);
_.E([_.C(),_.l("design:type",String)],Of.prototype,"expandLabel",void 0);_.E([_.C(),_.l("design:type",String)],Of.prototype,"collapseLabel",void 0);_.E([_.C(),_.l("design:type",Object)],Of.prototype,"expandCommand",void 0);_.E([_.C(),_.l("design:type",Object)],Of.prototype,"expandButtonOffset",void 0);_.E([_.G("text"),_.l("design:type",String),_.l("design:paramtypes",[])],Of.prototype,"simpleText",null);
_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Of.prototype,"onClick",null);_.E([_.G("text","isExpanded"),_.l("design:type",Object),_.l("design:paramtypes",[])],Of.prototype,"expandedText",null);_.E([_.G("headerRuns","isExpanded"),_.l("design:type",Object),_.l("design:paramtypes",[])],Of.prototype,"expandedHeaderRuns",null);
_.E([_.G("text"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Of.prototype,"hasAttributedStringText",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Of.prototype,"showExpandButton",void 0);_.E([_.G("collapseLabel","isExpanded"),_.l("design:type",Object),_.l("design:paramtypes",[])],Of.prototype,"showCollapseButton",null);_.E([_.C(),_.l("design:type",Object)],Of.prototype,"isTruncated",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Of.prototype,"isExpanded",void 0);_.E([_.C(),_.l("design:type",Boolean)],Of.prototype,"isAttributedExpanded",void 0);_.E([_.fF("isExpanded","hasAttributedStringText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Of.prototype,"updateIsAttributedExpanded",null);_.E([_.C(),_.l("design:type",Boolean)],Of.prototype,"isFormattedExpanded",void 0);
_.E([_.fF("isExpanded","hasAttributedStringText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Of.prototype,"updateIsFormattedExpanded",null);_.E([_.C(),_.l("design:type",Number)],Of.prototype,"currentSnippetType",void 0);_.E([_.G("currentSnippetType"),_.l("design:type",Object),_.l("design:paramtypes",[])],Of.prototype,"useAttributedSnippet",null);
_.E([_.G("currentSnippetType"),_.l("design:type",Object),_.l("design:paramtypes",[])],Of.prototype,"useFormattedSnippet",null);_.E([_.G("currentSnippetType"),_.l("design:type",Object),_.l("design:paramtypes",[])],Of.prototype,"usePlainSnippet",null);_.E([_.C(),_.l("design:type",Object)],Of.prototype,"alwaysShowExpandButton",void 0);_.E([_.fF("currentSnippetType"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Of.prototype,"updateTextOnSnippetTypeChange",null);
_.E([_.C(),_.l("design:type",Object)],Of.prototype,"attributedSnippetText",void 0);_.E([_.ol("#snippet"),_.l("design:type",HTMLElement)],Of.prototype,"snippetContainer",void 0);_.E([_.ol("#snippet-text"),_.l("design:type",HTMLElement)],Of.prototype,"snippetText",void 0);_.E([_.ol("#plain-snippet-text"),_.l("design:type",HTMLElement)],Of.prototype,"plainSnippetText",void 0);_.E([_.ol("#formatted-snippet-text"),_.l("design:type",Object)],Of.prototype,"formattedSnippetText",void 0);
_.E([_.ol("#attributed-snippet-text"),_.l("design:type",HTMLElement)],Of.prototype,"attributedSnippetTextEl",void 0);_.E([_.ol("#expand"),_.l("design:type",HTMLElement)],Of.prototype,"expandButton",void 0);_.E([_.ol("#expand-sizer"),_.l("design:type",HTMLElement)],Of.prototype,"expandSizer",void 0);_.E([_.s6("isExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Of.prototype,"isExpandedChanged",null);
_.E([_.fF("isExpanded","maxLines"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Of.prototype,"updateSnippetContainerMaxHeight",null);_.E([_.fF("isTruncated","showExpandButton","expandButtonOffset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Of.prototype,"updateMaskAndExpandButtonOffset",null);
_.E([_.s6("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Of.prototype,"onTextChanged",null);_.E([_.O6({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Of);
_.Q(Of,"ytd-text-inline-expander",function(){if(ZWG===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);ZWG=A}A=ZWG;return A},{mode:2});var RZ=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return A};
_.I(RZ,_.a);RZ.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
RZ.prototype.handleUpdateDescriptionAction=function(A){if(A=_.L(A,_.x6w))if(A.attributedDescription)this.set("data.attributedDescriptionBodyText",A.attributedDescription);else if(A.description){var H;((H=this.data)==null?0:H.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.B8(A.description)):this.set("data.descriptionBodyText",A.description)}};
_.nP.Object.defineProperties(RZ.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var A,H;return!((A=this.data)==null||!A.attributedDescriptionBodyText)||!((H=this.data)==null||!H.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.collapsedLineCount){var H;return(H=this.data)==null?void 0:H.collapsedLineCount}A=_.H5("web_watch_description_collapsed_default_lines",12);if(_.b("ww_desc_line_page_size_ks"))return A;H=Math.round(_.$u().height*_.H5("web_watch_description_screen_height_percentage",.5)/20);return Math.max(H,A)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return(k=(A=this.data)==null?void 0:A.descriptionBodyText)!=null?k:(H=this.data)==null?void 0:H.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.sourceAttributions}}});
RZ.prototype.panelContentVisibleChanged=RZ.prototype.panelContentVisibleChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],RZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],RZ.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],RZ.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Boolean)],RZ.prototype,"panelContentVisible",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],RZ.prototype,"engagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],RZ.prototype,"shortsPanel",void 0);_.E([_.ol("#inline-expander"),_.l("design:type",Object)],RZ.prototype,"inlineExpander",void 0);
_.E([_.fF("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RZ.prototype,"panelContentVisibleChanged",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],RZ.prototype,"hasDescriptionText",null);_.E([_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],RZ.prototype,"collapsedLines",null);
_.E([_.G("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.l("design:type",Object),_.l("design:paramtypes",[])],RZ.prototype,"descriptionText",null);_.E([_.G("data","data.headerRuns"),_.l("design:type",Object),_.l("design:paramtypes",[])],RZ.prototype,"headerRuns",null);_.E([_.G("data","data.sourceAttributions"),_.l("design:type",Object),_.l("design:paramtypes",[])],RZ.prototype,"sourceAttributions",null);
_.E([_.O6({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],RZ);
_.Q(RZ,"ytd-expandable-video-description-body-renderer",function(){if(nyw!==void 0)return nyw;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return nyw=A},{mode:2});var w1G;var oyA=_.c(function(A){var H=A.data;return _.x("factoid-renderer",{class:"ytwFactoidRendererHost"},_.x("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return H().accessibilityText}},_.x("span",{class:"ytwFactoidRendererValue"},_.x(_.j$,{text:function(){return H().value}})),_.x("span",{class:"ytwFactoidRendererLabel"},_.x(_.j$,{text:function(){return H().label}}))))},"ud");_.Sw(oyA,"factoid-renderer",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;return _.x("upload-time-factoid-renderer",null,_.x(_.HG,{data:function(){return H().factoid}},{factoidRenderer:oyA}))},"vd"),"upload-time-factoid-renderer",{props:{data:_.Fc}});_.Sw(_.c(function(A){var H=A.data;return _.x("view-count-factoid-renderer",null,_.x(_.HG,{data:function(){return H().factoid}},{factoidRenderer:oyA}))},"wd"),"view-count-factoid-renderer",{props:{data:_.Fc}});var T$=function(){var A=_.a.apply(this,arguments)||this;A.shortsPanel=!1;A.engagementPanel=!1;A.watchWhileSdp=_.b("shorts_desktop_watch_while_sdp");return A};
_.I(T$,_.a);T$.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"}}}}};
_.nP.Object.defineProperties(T$.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var A;return(A=this.data)==null?void 0:A.channel}}});
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],T$.prototype,"componentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],T$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],T$.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],T$.prototype,"shortsPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],T$.prototype,"engagementPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],T$.prototype,"watchWhileSdp",void 0);_.E([_.G("shortsPanel","engagementPanel","data.channel"),_.l("design:type",Object),_.l("design:paramtypes",[])],T$.prototype,"showChannelInfo",null);_.E([_.O6({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],T$);
_.Q(T$,"ytd-video-description-header-renderer",function(){if(w1G!==void 0)return w1G;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return w1G=A},{mode:1});var $$Z;var mo=function(){return _.a.apply(this,arguments)||this};
_.I(mo,_.a);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],mo.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],mo.prototype,"noPadding",void 0);_.E([_.C(),_.l("design:type",Object)],mo.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],mo);
_.Q(mo,"ytd-list-item-view-model",function(){if($$Z!==void 0)return $$Z;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return $$Z=A},{mode:1});var A5J;var Hu0;var sdk;var kvw;var Jm=function(){var A=_.a.apply(this,arguments)||this;A.adaptiveFullWidth=!1;A.modernButtons=_.b("web_modern_buttons");A.buttonOverrides={style:"call-to-action",type:"filled"};A.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return A};
_.I(Jm,_.a);Jm.prototype.handleSetTimestamp_=function(A){this.data&&this.data.shortUrl&&(_.Va(this.hostElement).querySelector("#share-url").value=A.isSet?_.Aj(this.data.shortUrl,"t",A.timestamp):this.data.shortUrl)};
Jm.prototype.handleSignalActionCopyShareUrl_=function(A,H){(_.b("killswitch_copy_link_target_check")||_.Va(this.hostElement).querySelector("#copy-button")===H)&&this.copyUrlToClipboard()};
Jm.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Va(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Jm.prototype.computeStyle_=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Jm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Jm.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.l("design:type",String)],Jm.prototype,"rendererStyle",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Jm.prototype,"adaptiveFullWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Jm.prototype,"modernButtons",void 0);_.E([_.C(),_.l("design:type",Object)],Jm.prototype,"buttonOverrides",void 0);_.E([_.h6({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Jm);
_.Q(Jm,"yt-copy-link-renderer",function(){if(kvw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;sdk===void 0&&(sdk=document.createElement("template"));var d=sdk;k.call(H,d.content.cloneNode(!0),A.content.firstChild);kvw=A}A=kvw;return A},{mode:2});_.uL("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var gT=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return A};
_.I(gT,_.a);_.q=gT.prototype;_.q.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.q.attached=function(){this.keyboardFocused=!1};
_.q.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var A=_.wj().resolve(_.fZ(_.ah));A&&(this.keyboardFocused=A.isKeyBoardInUse())}};
_.q.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.q.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}};
_.q.onChange_=function(){if(this.data){var A=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;A&&this.ytComponentBehavior.resolveCommand(A);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.q.handleUpdateToggleAction_=function(A){(A=_.L(A,YuA))&&this.data&&A.targetId==this.data.targetId&&this.set("data.toggled",A.toggled)};
_.q.toBoolean_=function(A){return!!A};
_.q.reset=function(){};
_.q.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("data-changed",this.data))};
_.q.updateDataToggledFromBinding=function(A){this.set("data.toggled",A.detail.value)};
gT.prototype.dataChangedForBinding=gT.prototype.dataChangedForBinding;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],gT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],gT.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],gT.prototype,"data",void 0);_.E([_.C({computed:"computeDescription_(data.*)"}),_.l("design:type",Object)],gT.prototype,"description_",void 0);_.E([_.C({value:function(){return!!_.wj().resolve(_.fZ(_.ah))&&_.b("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.l("design:type",Boolean)],gT.prototype,"useKeyboardFocused",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],gT.prototype,"keyboardFocused",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gT.prototype,"dataChangedForBinding",null);_.E([_.h6({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],gT);
_.Q(gT,"yt-toggle-form-field-renderer",function(){if(Hu0===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;A5J===void 0&&(A5J=document.createElement("template"));var d=A5J;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Hu0=A}A=Hu0;return A},{mode:2});var dyQ;var Wnw;var bM=function(){var A=_.a.apply(this,arguments)||this;A.isDarkTheme=!1;A.isSearch=!1;A.noTopMargin=_.b("kevlar_watch_no_top_margin");A.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 A};
_.I(bM,_.a);_.q=bM.prototype;_.q.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}}}}}};
_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.q.dataChanged=function(){var A=this.getSelectedIndex();if(A>0)this.selected=A;else{this.selected=0;var H,k;(H=this.ytScrollableChipCloudBehavior)==null||(k=H.reset)==null||k.call(H)}};
_.q.getSelectedIndex=function(){var A;if((A=this.data)==null||!A.chips)return-1;A=-1;for(var H,k=0;k<((H=this.data)==null?void 0:H.chips.length);k++){var d=void 0,W=void 0;if((d=this.data)==null?0:(W=d.chips[k].chipCloudChipRenderer)==null?0:W.isSelected){A=k;break}}return A};
_.q.onResize=function(){var A=this.ytScrollableChipCloudBehavior;_.No(A,A.setContainerWidthDiff);A=this.ytScrollableChipCloudBehavior;_.No(A,A.setButtonsState)};
_.q.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.q.handleRelatedChipCommand=function(A,H){A=this.JSC$16919_chipsSelector.indexOf(H);A!==-1&&this.JSC$16919_chipsSelector.selectIndex(A)};
_.q.handleChipCloudChipSelectAction=function(A){A=this.JSC$16919_chipsSelector.indexOf(A);A>-1&&this.JSC$16919_chipsSelector.selectIndex(A)};
_.q.handleChipCloudChipDeselectAction=function(){var A=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16919_chipsSelector&&((A==null?0:A.continuationCommand)?_.tx(this.hostElement,[A]):(A==null?0:A.searchEndpoint)?this.ytComponentBehavior.resolveCommand(A):A&&_.NT(this.hostElement,[A],this.hostElement),this.JSC$16919_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.q.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
bM.prototype.onResize=bM.prototype.onResize;bM.prototype.dataChanged=bM.prototype.dataChanged;bM.prototype.isSearchChanged=bM.prototype.isSearchChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],bM.prototype,"actionHandlerBehavior",void 0);
_.E([_.P(_.WU),_.l("design:type",Object)],bM.prototype,"ironResizableBehavior",void 0);_.E([_.P(),_.l("design:type",H_)],bM.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],bM.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bM.prototype,"data",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],bM.prototype,"selected",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],bM.prototype,"isDarkTheme",void 0);_.E([_.C({value:160}),_.l("design:type",Number)],bM.prototype,"scrollDistance",void 0);_.E([_.C(),_.l("design:type",Object)],bM.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],bM.prototype,"noTopMargin",void 0);_.E([_.ol("#chips"),_.l("design:type",Object)],bM.prototype,"JSC$16919_chipsSelector",void 0);
_.E([_.fF("isSearch"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bM.prototype,"isSearchChanged",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bM.prototype,"dataChanged",null);_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bM.prototype,"onResize",null);_.E([_.h6({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],bM);
_.Q(bM,"yt-chip-cloud-renderer",function(){if(Wnw===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;dyQ===void 0&&(dyQ=document.createElement("template"));var d=dyQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Wnw=A}A=Wnw;return A},{mode:2});var zoA,qzA=function(){return zoA!==void 0?zoA:zoA=document.createElement("template")};
document.head.appendChild(qzA().content);var r5J;var uKk=document.head,Bc1=uKk.appendChild,eo1;if(r5J===void 0){var xyp=document.createElement("template");_.Y(xyp,"");xyp.content.insertBefore(qzA().content.cloneNode(!0),xyp.content.firstChild);r5J=xyp}eo1=r5J;Bc1.call(uKk,eo1.content);var iu0=_.c(function(A){var H=A.data;return _.x("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.x("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.x("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.x(_.R,{cond:function(){return _.vG(H().image)},
then:function(k){return _.x("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.x(_.GA,{data:k,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.x("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.x(_.j$,{text:function(){return H().subtitle}})))),_.x(_.R,{cond:function(){var k;
return(k=H())==null?void 0:k.hasBottomDivider},
then:function(){return _.x("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"xd");var ho0=_.c(function(A){var H=A.data;return _.x("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.x("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.x(_.HG,{data:function(){var k;return(k=H().offerPlanDetailsItem)!=null?k:[]}},{offerPlanDetailsItemViewModel:function(k){return _.x("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.x(iu0,{data:k.data}))}})),_.x("div",null,_.x(_.R,{cond:function(){return H().hasBottomDivider},
then:function(){return _.x("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.x("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.x("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.x("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.x("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"yd");var Ouw=_.c(function(A){var H=A.data;A=_.r(_.RV(!1,void 0,"MrXxy"));var k=A.next().value,d=A.next().value,W=_.lc(function(){d(!k());return!1}),z=function(){var u;
return(u=H().offerPlanDetailsContainer)!=null?u:[]};
return _.x("lp-complex-offer-card-details-view-model",null,_.x("div",null,_.x(_.R,{cond:function(){return k()},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.x("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":W,"aria-expanded":k},_.x(_.j$,{text:function(){return H().expandedTitle}})),_.x("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.x(_.HG,{data:z},{offerPlanDetailsContainerViewModel:function(u){return _.x("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.x(ho0,{data:u.data}))}})),_.x("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.x(_.j$,{text:function(){return H().legalText}})))},
else:function(){return _.x("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":W,"aria-expanded":k},_.x(_.j$,{text:function(){return H().collapsedTitle}}),_.x("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.x(_.n3,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"zd");var RoG=_.c(function(A){var H=A.data;return _.x("lp-complex-offer-card-option-view-model",null,_.x("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.x(_.R,{cond:function(){return H().topDividerText},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.x("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.x("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.x("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.x(_.j$,{text:function(){return H().topDividerText}}))))}}),_.x(_.R,{cond:function(){return H().description},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.x(_.j$,{text:function(){return H().description}}))}}),_.x(_.R,{cond:function(){return H().planPricingPrimary},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.x(_.j$,{text:function(){return H().planPricingPrimary}}))}}),_.x(_.R,{cond:function(){return H().planPricingSecondary},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.x(_.j$,{text:function(){return H().planPricingSecondary}}))}}),_.x(_.R,{cond:function(){return H().primaryButton},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.x(_.HG,{data:function(){return H().primaryButton}},{buttonViewModel:function(k){return _.x(_.U7,{data:k.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Ad");var Tck=_.c(function(A){var H=A.data;var k=function(){var z;return((z=H())==null?void 0:z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
A={};var d={},W={};return _.x("ytm-lp-complex-offer-card-view-model",null,_.x("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.x("div",{class:_.ER((A.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=k,A),"ytmLpComplexOfferCardViewModelCardContainer")},_.x(_.R,{cond:function(){var z;return(z=H())==null?void 0:z.bannerText},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.x("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.x(_.j$,{text:function(){return H().bannerText}})))}}),_.x(_.R,{cond:function(){return _.vG(H().logo)},
then:function(z){var u={};return _.x("div",{class:_.ER((u.ytmLpComplexOfferCardViewModelLogoAlignLeft=k,u),"ytmLpComplexOfferCardViewModelLogo")},_.x(_.GA,{data:z,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.x("div",{class:_.ER((d.ytmLpComplexOfferCardViewModelTitleAlignLeft=k,d),"ytmLpComplexOfferCardViewModelTitle")},_.x(_.j$,{text:function(){return H().title}})),_.x(_.R,{cond:function(){var z;
return(z=H())==null?void 0:z.subtitle},
then:function(){var z={};return _.x("div",{class:_.ER((z.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=k,z),"ytmLpComplexOfferCardViewModelSubtitle")},_.x(_.j$,{text:function(){return H().subtitle}}))}}),_.x(_.R,{cond:function(){return H().planPricingPrimary},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.x(_.j$,{text:function(){return H().planPricingPrimary}}))}}),_.x(_.R,{cond:function(){return H().planPricingSecondary},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.x(_.j$,{text:function(){return H().planPricingSecondary}}))}}),_.x(_.R,{cond:function(){return H().purchaseButton},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.x(_.HG,{data:function(){return H().purchaseButton}},{buttonViewModel:function(z){return _.x(_.U7,{data:z.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.x(_.R,{cond:function(){var z;
return(z=H())==null?void 0:z.offerOptions},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.x(_.HG,{data:function(){return H().offerOptions}},{lpComplexOfferCardOptionViewModel:RoG}))}}),_.x("div",{class:_.ER((W.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=k,W),"ytmLpComplexOfferCardViewModelLegalText")},_.x(_.j$,{text:function(){return H().legalText}})),_.x(_.R,{cond:function(){var z;
return(z=H())==null?void 0:z.offerCardDetails},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.x(_.HG,{data:function(){return H().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:Ouw}))}}))))},"Bd");var myw=_.c(function(A){var H=A.data;var k=function(){var u;return((u=H())==null?void 0:u.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
A={};var d={},W={},z={};return _.x("ytm-lp-complex-offer-card-section-view-model",null,_.x("div",{class:_.ER("ytmLpComplexOfferCardSectionViewModelHost")},_.x("div",{class:_.ER((A.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=k,A),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.x("div",{class:_.ER((d.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=k,d),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.x("h2",{class:_.ER((W.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
k,W),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.x(_.j$,{text:function(){return H().title}}))),_.x(_.R,{cond:function(){var u;
return(u=H())==null?void 0:u.subtitle},
then:function(){var u={},B={};return _.x("div",{class:_.ER((u.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=k,u),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.x("div",{class:_.ER((B.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=k,B),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.x(_.j$,{text:function(){return H().subtitle}})))}}),_.x("div",{class:_.ER((z.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=k,z),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.x(_.HG,{data:function(){var u;
return(u=H().offerPlans)!=null?u:[]}},{lpComplexOfferCardViewModel:function(u){return _.x("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.x(Tck,{data:u.data}))}})))))},"Cd");var J50=_.c(function(A){return _.x("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.x("div",{class:"ytLpCouponBannerViewModelIcon"},_.x(_.n3,{icon:function(){return"price_tag"}})),_.x("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.x("div",{class:"ytLpCouponBannerViewModelContent"},_.x("div",{class:"ytLpCouponBannerViewModelHeading"},_.x(_.j$,{text:function(){var H;
return(H=A.data())==null?void 0:H.title}})),_.x("div",{class:"ytLpCouponBannerViewModelBody"},_.x(_.j$,{text:function(){var H;
return(H=A.data())==null?void 0:H.subtitle}})))))},"Dd");
J50.idomCompat=!0;_.LU=QPr.getInstance();var gMJ;gMJ=_.c(function(A){return _.x("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":A.shouldAriaHideContent},_.x("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:A.questionId},_.x(_.j$,{text:A.question})))},"Ed");
_.bui=_.c(function(A){var H=A.data;var k=A.themeOverride;A=_.r(_.RV(!1,void 0,"pNli2b"));var d=A.next().value,W=A.next().value;A=_.lc(function(){W(!d());return!1});
var z=function(){return d()?"EXPAND_LESS":"EXPAND_MORE"},u=("faq-container"+_.Ta(_.LU)).toString(),B="faq-question-and-answers-section-question"+_.Ta(_.LU),h={},O={};
return _.x("faq-entry-view-model",null,_.x("div",{class:_.ER("ytLpFaqEntryViewModelHost",(h.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return k==null?void 0:k().useDarkTheme},h))},_.x("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":A,role:"button","aria-expanded":d,"aria-labelledby":B.toString(),"tab-index":"0"},_.x(gMJ,{question:function(){return H().question},
questionId:B,shouldAriaHideContent:!0}),_.x(_.R,{cond:function(){return d()!==void 0},
then:function(){return _.x("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.x(_.n3,{icon:z,ariaHidden:!0}),_.x("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.x("div",{class:_.ER("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(O.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!d()},O))},_.x("div",{id:u},_.x(_.Ix,{each:function(){return H().answers||[]}},function(T){return _.x("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.x(_.j$,
{text:T}))})))))},"Fd");
_.bui.idomCompat=!0;var LnQ=_.c(function(A){var H=A.data;var k=A.themeOverride;A={};return _.x("lp-faq-section-view-model",null,_.x("div",{class:_.ER("yt-lp-faq-section-view-model",(A["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},A["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(k==null||!k().useDarkTheme)},A))},_.x("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.x(_.R,{cond:function(){return H().header},
then:function(d){return _.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.x(_.j$,{text:d}))}}),_.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.x(_.HG,{data:function(){return H().faqs}},{faqEntryViewModel:function(d){return _.x(_.bui,{data:d.data,
themeOverride:k})}})),_.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.x(_.Ix,{each:function(){return H().footers||[]}},function(d){return _.x(_.j$,{text:d})})),_.x(_.R,{cond:function(){return H().legal},
then:function(d){return _.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.x(_.j$,{text:d}))}}))))},"Gd");
LnQ.idomCompat=!0;var vMG=_.c(function(A){var H=A.data;var k=A.themeOverride;_.CZ(function(){var u=H().gtmId;u&&_.W2(u,_.pZ("GL",""))});
var d={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var u,B,h;return(h=(u=H().logo)==null?void 0:(B=u.accessibilityData)==null?void 0:B.label)!=null?h:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},W=_.wj().resolve(_.fZ(_.sF)),z=function(){return W&&W()||(k==null?void 0:k().useDarkTheme)};
return _.x("lp-header-section-view-model",null,_.x("div",{class:function(){var u=H().layoutType,B=H().marginType==="LP_SECTION_MARGIN_TYPE_TOP",h=k==null?void 0:k().useDarkTheme,O=["lp-header-section-view-model"];switch(u){case "LP_MODULE_LAYOUT_TYPE_PTC":O.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":O.push("lp-header-section-view-model--narrow-header-layout-type")}B&&O.push("lp-header-section-view-model__lp-header-section-margin");h&&O.push("lp-header-section-view-model--premium-force-dark-mode");
return O.join(" ")}},_.x(_.R,{cond:function(){return H().logo},
then:function(){return _.x("div",null,_.x(_.R,{cond:z,then:function(){return _.x(_.R,{cond:function(){var u;return(u=H().logo)==null?void 0:u.imageDark},
then:function(u){return _.x(_.GA,Object.assign({},{data:u},d))}})},
else:function(){return _.x(_.R,{cond:function(){var u;return(u=H().logo)==null?void 0:u.imageLight},
then:function(u){return _.x(_.GA,Object.assign({},{data:u},d))}})}}))}}),_.x(_.R,{cond:function(){return H().title},
then:function(u){return _.x("div",{class:"lp-header-section-view-model__lp-header-title"},_.x(_.j$,{text:u}))}}),_.x("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.x(_.R,{cond:function(){return H().subtitles},
then:function(u){return _.x(_.Ix,{each:u},function(B){return _.x("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.x(_.j$,{text:B}))})}})),_.x(_.R,{cond:function(){return H().additionalInfo},
then:function(u){return _.x("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.x(_.j$,{text:u}))}}),_.x("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.x(_.R,{cond:function(){return H().primaryButton},
then:function(u){return _.x("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.x(_.HG,{data:u},{buttonViewModel:_.U7}))}}),_.x(_.R,{cond:function(){return H().secondaryButton},
then:function(u){return _.x("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.x(_.HG,{data:u},{buttonViewModel:_.U7}))}})),_.x(_.R,{cond:function(){return H().otherOffersInfo},
then:function(u){return _.x("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.x(_.j$,{text:u}))}}),_.x("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.x(_.R,{cond:function(){return H().billingInfo},
then:function(u){return _.x(_.Ix,{each:u},function(B){return _.x("div",null,_.x(_.j$,{text:B}))})}}))))},"Hd");
vMG.idomCompat=!0;var y5N=_.c(function(A){return _.x("lp-header-upsell-banner-view-model",{class:_.ER("lpHeaderUpsellBannerViewModelHost",A.className,{})},_.x("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.x(_.n3,{icon:function(){return"CAMPAIGN"}})),_.x("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.x("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.x("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.x("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.x(_.j$,{text:function(){var H;
return(H=A.data())==null?void 0:H.description}})))),_.x(_.HG,{data:function(){var H;
return(H=A.data())==null?void 0:H.purchaseButton}},{buttonViewModel:function(H){return _.x(_.U7,{data:H.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Id");var jdJ=_.c(function(A){var H=A.data;var k=_.DS(A.themeOverride,{useDarkTheme:!1});A={};A=_.ER("ytmLpHeadlineSectionViewModelHost",(A.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return k().useDarkTheme},A));
return _.x("lp-headline-section-view-model",null,_.x("div",{class:A},_.x(_.R,{cond:function(){return H().title},
then:function(d){return _.x("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.x(_.j$,{text:d}))}}),_.x(_.R,{cond:function(){return H().subtitle},
then:function(d){return _.x("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.x(_.j$,{text:d}))}})))},"Jd");var I9Z=_.c(function(A){var H=A.data;var k=A.themeOverride;var d=_.wj().resolve(_.fZ(_.sF)),W=function(){return d&&d()||(k==null?void 0:k().useDarkTheme)},z=function(){var O,T;
var m=W()?(O=H().textBackgroundImage)==null?void 0:O.imageDark:(T=H().textBackgroundImage)==null?void 0:T.imageLight;return jur((m==null?void 0:m.sources)||[])},u=function(){var O,T;
return W()?(O=H().featureImage)==null?void 0:O.imageDark:(T=H().featureImage)==null?void 0:T.imageLight},B=function(){return H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},h=function(){var O,T;
return W()?(O=H().logo)==null?void 0:O.imageDark:(T=H().logo)==null?void 0:T.imageLight};
return _.x("ytm-lp-large-feature-section-view-model",null,_.x("div",{class:function(){var O=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",T=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",m=(H().index||0)%2===1,J=k==null?void 0:k().useDarkTheme,g=["yt-lp-large-feature-section-view-model"];O?g.push("yt-lp-large-feature-section-view-model--music-feature-type"):T?g.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):m||g.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
J&&g.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return g.join(" ")}},_.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.x(_.R,{cond:u,
then:function(){return _.x(_.GA,{data:function(){return u()},
alt:function(){var O,T,m;return(m=(O=H().featureImage)==null?void 0:(T=O.accessibilityData)==null?void 0:T.label)!=null?m:""},
contentMode:B})}})),_.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var O;return((O=z())==null?0:O.url)?"background-image: url("+_.fx(z().url)+");":""}},_.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.x(_.R,{cond:h,
then:function(){return _.x(_.GA,{data:function(){return h()},
alt:function(){var O,T,m;return(m=(O=H().logo)==null?void 0:(T=O.accessibilityData)==null?void 0:T.label)!=null?m:""},
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"})}}),_.x(_.R,{cond:function(){return H().eyebrowText},
then:function(){return _.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.x(_.j$,{text:function(){return H().eyebrowText}}))}}),_.x(_.R,{cond:function(){return H().title},
then:function(){return _.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.x(_.j$,{text:function(){return H().title}}))}}),_.x(_.R,{cond:function(){return H().subtitles},
then:function(){return _.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.x(_.Ix,{each:function(){return H().subtitles||[]}},function(O){return _.x(_.j$,{text:O})}))}})))))},"Kd");
I9Z.idomCompat=!0;var YzQ=_.c(function(A){return _.x("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.x("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.x(_.n3,{icon:function(){var H;return(H=A.data())==null?void 0:H.iconType},
className:function(){var H;switch((H=A.data())==null?void 0:H.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 H;return((H=A.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.x("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.x(_.j$,{text:function(){var H;
return(H=A.data())==null?void 0:H.text},
className:function(){var H;return((H=A.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Ld");var PYA=_.c(function(A){A=_.SD(A,{config:void 0,themeOverride:void 0});var H=A.data,k=A.config,d=A.themeOverride;A={};A=_.ER("ytmLpOfferCardOptionViewModelHost",(A.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var B;return(B=d())==null?void 0:B.useDarkTheme},A));
var W=_.lc(function(){var B,h;(B=k())==null||(h=B.handleRadioButtonClick)==null||h.call(B,H());return!1}),z=function(){var B;
return(B=k())==null?void 0:B.shouldDisplayRadioButton},u=function(){var B;
return(B=H().featureListItems)!=null?B:[]};
return _.x("ytm-lp-offer-card-option-view-model",null,_.x("div",{class:A,"on:click":_.lc(function(){if(z()){var B,h;(B=k())==null||(h=B.handleRadioButtonClick)==null||h.call(B,H())}return!1})},_.x(_.R,{cond:z,
then:function(){return _.x("div",null,_.x("input",{type:"radio","on:click":W,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var B;return!((B=k())==null||!B.isOptionSelected)}}))}}),_.x("div",null,_.x("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.x(_.j$,{text:function(){return H().eyebrowText}})),_.x("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.x(_.j$,
{text:function(){return H().subtitle}})),_.x(_.R,{cond:function(){return u().length>0},
then:function(){return _.x("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.x(_.HG,{data:u},{lpFeatureListItemViewModel:YzQ}))}}),_.x("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.x(_.j$,{text:function(){return H().description}})))))},"Md");
PYA.idomCompat=!0;var GvA=_.c(function(A){var H=A.data;var k=A.themeOverride;A=_.r(_.C0(function(){var z,u=(z=H().offerOptions)==null?void 0:z[0];return _.L(u,vTj)||{}}));
var d=A.next().value,W=A.next().value;A={};return _.x("ytm-lp-offer-card-view-model",null,_.x("div",{class:_.ER("ytmLpOfferCardViewModelHost",(A.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(k==null||!k().useDarkTheme)},A))},_.x("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.x(_.R,{cond:function(){return H().titleIconType},
then:function(){return _.x("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.x(_.n3,{icon:function(){var z;return((z=H().titleIconType)==null?void 0:z.toString())||""}}))}}),_.x("div",{class:"ytmLpOfferCardViewModelTitleText"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.HG,{data:function(){return H().titleBadge}},{badgeViewModel:function(z){return _.x("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.x(_.CK,{data:z.data}))}})),_.x("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.x(_.HG,{data:function(){return H().offerOptions}},{lpOfferCardOptionViewModel:function(z){var u=z.data;
return _.x(_.sD,null,_.x("div",{class:"ytmLpOfferCardViewModelDivider"}),_.x(PYA,{data:u,config:function(){var B;return{shouldDisplayRadioButton:(H().offerOptions||[]).length>1,isOptionSelected:u().id===((B=d())==null?void 0:B.id),handleRadioButtonClick:function(h){return void W(h)}}},
themeOverride:k}))}})),_.x("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.x(_.HG,{data:function(){var z;
return(z=d())==null?void 0:z.purchaseButtonOverride}},{buttonViewModel:_.U7}))))},"Nd");
GvA.idomCompat=!0;var Fnj=_.c(function(A){var H=A.data;var k=A.themeOverride;A={};A=_.ER("ytmLpOfferCardSectionViewModelHost",(A.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var d;return k==null?void 0:(d=k())==null?void 0:d.useDarkTheme},A));
return _.x("ytm-lp-offer-card-section-view-model",null,_.x("div",{class:A},_.x(_.R,{cond:function(){return H().title!==void 0},
then:function(){return _.x("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.x("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.R,{cond:function(){return H().subtitle},
then:function(){return _.x("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.x(_.j$,{text:function(){return H().subtitle}}))}}))}}),_.x("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.x(_.HG,{data:function(){return H().offerCards}},{lpOfferCardViewModel:function(d){return _.x("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.x(GvA,{data:d.data,
themeOverride:k}))}})),_.x(_.R,{cond:function(){return H().footer},
then:function(){return _.x("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.x(_.j$,{text:function(){return H().footer}}))}})))},"Od");var Xvw=_.c(function(A){var H=A.data;var k={badgeText:"New",badgeStyle:"BADGE_STATUS_NEW"};return _.x("lp-offer-table-cell-content-view-model",null,_.x("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.x(_.Yl,null,_.x(_.y$,{when:function(){return H().title}},function(){return _.x(_.j$,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return H().title}})}),_.x(_.y$,{when:function(){return H().subTitle}},function(){return _.x(_.j$,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return H().subTitle}})}),_.x(_.y$,{when:function(){return H().featureDescription}},function(){return _.x(_.j$,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return H().featureDescription}})}),_.x(_.y$,{when:function(){return H().description}},function(){return _.x(_.j$,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return H().description}})}),_.x(_.y$,{when:function(){return H().iconType}},function(){return _.x("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.x(_.n3,{icon:function(){return H().iconType.toString()}}))}),_.x(_.y$,{when:function(){return H().purchaseButton}},function(){return _.x(_.HG,{data:function(){return H().purchaseButton}},{buttonViewModel:function(d){return _.x("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.x(_.U7,
{data:d.data}))}})}),_.x(_.y$,{when:function(){return H().note}},function(){return _.x(_.j$,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return H().note}})}),_.x(_.y$,{when:function(){return H().featureDetail}},function(){return _.x(_.j$,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return H().featureDetail}})}),_.x(_.y$,{when:function(){return H().badge}},function(){return _.x(_.HG,{data:function(){return H().badge}},{badgeViewModel:_.CK})}),_.x(_.y$,{when:function(){return H().includeBadgeSpacer}},function(){return _.x("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellBadgeSpacer",
"aria-hidden":"true"},_.x(_.CK,{data:k}))}))))},"Pd");
Xvw.idomCompat=!0;var Dyk=_.c(function(A){var H=A.data;return _.x("lp-offer-table-cell-view-model",null,_.x("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(H().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;"}}},_.x(_.HG,{data:function(){return H().contents}},{lpOfferTableCellContentViewModel:Xvw})))},
"Qd");
Dyk.idomCompat=!0;var Szw=_.c(function(A){var H=A.data;var k=A.lpTableIsFirstRow;var d=A.lpTableIsLastRow;var W=A.hasThreeColumns;var z=function(){return(k==null?0:k())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},u=function(){return(k==null?0:k())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(d==null?0:d())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
A={};return _.x("ytm-lp-offer-table-row-view-model",null,_.x("div",{class:_.ER("ytLpOfferTableRowViewModelHost",(A.ytLpOfferTableRowViewModelHostThreeColumns=function(){return!(W==null||!W())},A))},_.x(_.HG,{data:function(){return H().rowHeaderCell}},{lpOfferTableCellViewModel:function(B){return _.x("div",{class:z},_.x(Dyk,{data:B.data}))}}),_.x(_.HG,{data:function(){return H().contentCells}},{lpOfferTableCellViewModel:function(B){return _.x("div",{class:u},_.x(Dyk,{data:B.data}))}})))},"Rd");
Szw.idomCompat=!0;var CYk=_.c(function(A){var H=A.data;var k=A.themeOverride;var d=_.wj().resolve(_.fZ(_.sF)),W=function(){return _.L(H().logo,tZw)||{}},z=function(){var u,B,h;
return((B=_.L((u=H().rows)==null?void 0:u[0],y0A))==null?void 0:(h=B.contentCells)==null?void 0:h.length)===3};
A={};return _.x("ytm-lp-offer-table-section-view-model",null,_.x("div",{class:"ytLpOfferTableViewModelHost"},_.x(_.R,{cond:function(){var u,B;return d&&d()||(k==null?0:k().useDarkTheme)?(u=W())==null?void 0:u.imageDark:(B=W())==null?void 0:B.imageLight},
then:function(u){return _.x(_.GA,{data:u,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var B,h,O;return(O=(B=W())==null?void 0:(h=B.accessibilityData)==null?void 0:h.label)!=null?O:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.x(_.j$,{text:function(){return H().subtitle}})),_.x(_.R,{cond:function(){return H().disclaimers},
then:function(u){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.x(_.Ix,{each:u},function(B){return _.x("div",null,_.x(_.j$,{text:B}))}))}}),_.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.x(_.HG,{data:function(){return H().rows}},{lpOfferTableRowViewModel:function(u,B){return _.x(Szw,{data:u.data,
lpTableIsFirstRow:function(){return B()===0},
lpTableIsLastRow:function(){return B()===H().rows.length-1},
hasThreeColumns:z})}})),_.x("div",{class:_.ER((A.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return H().hasFooterBackground},A))},_.x(_.R,{cond:function(){return H().footer},
then:function(){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.x(_.j$,{text:function(){return H().footer}}))}}),_.x(_.R,{cond:function(){return H().footerTitle},
then:function(){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.x(_.j$,{text:function(){return H().footerTitle}}))}}),_.x(_.R,{cond:function(){return H().footerDescription},
then:function(){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.x(_.j$,{text:function(){return H().footerDescription}}))}}),_.x(_.R,{cond:function(){return H().footerDescriptions},
then:function(u){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.x(_.Ix,{each:u},function(B){return _.x("div",null,_.x(_.j$,{text:B}))}))}}))))},"Sd");
CYk.idomCompat=!0;var KnN=_.c(function(A){var H=A.data;var k=A.themeOverride;var d=_.wj().resolve(_.fZ(_.sF)),W=function(){var B;return k==null?void 0:(B=k())==null?void 0:B.useDarkTheme},z=function(){var B,h;
return d&&d()||W()?(B=H().image)==null?void 0:B.imageDark:(h=H().image)==null?void 0:h.imageLight};
A={};A=_.ER("ytmLpSmallFeatureSectionViewModelHost",(A.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=W,A));var u=function(){var B,h,O;return(O=(B=H().image)==null?void 0:(h=B.accessibilityData)==null?void 0:h.label)!=null?O:""};
return _.x("ytm-lp-small-feature-section-view-model",{class:A},_.x(_.R,{cond:function(){return z()&&!jUN},
then:function(){return _.x("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.x(_.GA,{data:function(){return z()},
alt:u,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.x("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.x("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.x(_.R,{cond:function(){return H().title},
then:function(B){return _.x(_.j$,{text:B})}})),_.x("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.x(_.j$,{text:function(){return H().description}}))))},"Td");
KnN.idomCompat=!0;var a9w=_.c(function(A){var H=A.data;var k=A.themeOverride;A={};return _.x("ytm-lp-small-feature-section-group-view-model",null,_.x("div",{class:_.ER("ytmLpSmallFeatureSectionGroupViewModelHost",(A.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(k==null||!k().useDarkTheme)},A))},_.x("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.x(_.HG,{data:function(){return H().smallFeatures}},{lpSmallFeatureSectionViewModel:function(d){return _.x("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.x(KnN,{data:d.data,
themeOverride:k}))}}))))},"Ud");
a9w.idomCompat=!0;_.Sw(_.c(function(A){var H=A.data;var k=function(){return H().forcedTheme==="USER_INTERFACE_THEME_DARK"},d=function(){return H().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},W=function(){var u="",B,h;
var O=_.wj().resolve(_.fZ(_.sF));O=k()||(O==null?0:O())?(B=H().themedImageViewModel)==null?void 0:B.imageDark:(h=H().themedImageViewModel)==null?void 0:h.imageLight;(B=jur((O==null?void 0:O.sources)||[]))&&B.url&&(u=d()?"background-image: linear-gradient(to bottom, transparent, "+(H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.fx(B.url)+");":"background-image: url("+_.fx(B.url)+");");return u},z=function(){return{useDarkTheme:k()}};
A={};return _.x("yt-section-group-view-model",null,_.x("div",{class:_.ER("yt-lp-section-group-view-model",(A["yt-lp-section-group-view-model--premium-force-dark-mode"]=k,A["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},A))},_.x(_.R,{cond:function(){return W().length},
then:function(){var u={};return _.x("div",{class:_.ER("yt-lp-section-group-view-model__bg-image",(u["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=d,u)),style:W})}}),_.x("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.x(_.HG,{data:function(){return H().sections}},{lpHeaderUpsellBannerViewModel:function(u){return _.x(y5N,{data:u.data})},
lpFaqSectionViewModel:function(u){return _.x(LnQ,{data:u.data,themeOverride:z})},
lpHeaderSectionViewModel:function(u){return _.x(vMG,{data:u.data,themeOverride:z})},
lpHeadlineSectionViewModel:function(u){return _.x(jdJ,{data:u.data,themeOverride:z})},
lpLargeFeatureSectionViewModel:function(u){return _.x(I9Z,{data:u.data,themeOverride:z})},
lpOfferCardSectionViewModel:function(u){return _.x(Fnj,{data:u.data,themeOverride:z})},
lpComplexOfferCardSectionViewModel:function(u){return _.x(myw,{data:u.data})},
lpOfferTableSectionViewModel:function(u){return _.x(CYk,{data:u.data,themeOverride:z})},
lpSmallFeatureSectionGroupViewModel:function(u){return _.x(a9w,{data:u.data,themeOverride:z})},
lpCouponBannerViewModel:function(u){return _.x(J50,{data:u.data})}}))))},"Vd"),"yt-section-group-view-model",{props:{data:_.Ih}});_.c5j=_.c(function(A){var H=_.o9(cEI,function(){var u;return(u=A.data())==null?void 0:u.chipBarStateEntityKey}),k=function(){return A.data().disableDeselection},d=_.r(_.C0(function(){var u;
if(((u=H())==null?void 0:u.selectedIndex)!=void 0)return H().selectedIndex;var B,h;u=_.r(((B=A.data())==null?void 0:(h=B.chips)==null?void 0:h.entries())||[]);for(B=u.next();!B.done;B=u.next()){B=_.r(B.value);h=B.next().value;B=B.next().value;var O=void 0;if((O=_.L(B,_.yF))==null?0:O.selected)return h}return-1})),W=d.next().value,z=d.next().value;
return _.x("chip-bar-view-model",{class:_.ER("ytChipBarViewModelHost",A.className),role:"tablist"},_.x(_.HG,{data:function(){return A.data().chips}},{chipViewModel:function(u,B){return _.x("div",{class:"ytChipBarViewModelChipWrapper"},_.x(_.qgw,{data:u.data,
selected:function(){return B()===W()},
callback:function(h,O){h=!!O;O=B();z(h?O:-1);var T,m=(T=A.data())==null?void 0:T.chipBarStateEntityKey;m&&h&&_.XI(_.kH("chipBarStateEntity",m,{key:m,selectedIndex:O}))},
disableDeselection:A.disableDeselection||k}))}}))},"Wd");window.customElements&&_.Sw(_.c5j,"chip-bar-view-model",{props:{data:_.Fc,className:_.Fc,disableDeselection:_.Fc}});_.pvQ=_.c(function(A){var H=A.data;A={};return _.x("divider-view-model",{class:_.ER("dividerViewModelHost",(A.dividerViewModelInsetThinPadding=function(){return H().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},A))},_.x("div",{class:_.ER("dividerViewModelBaseDivider",function(){return pOv(H().dividerStyle)})}))},"Xd");
_.pvQ.idomCompat=!0;_.Sw(_.pvQ,"divider-view-model",{props:{data:_.Ih}});var Av=new Map,Hl=new Map,ENI=0,s5;var nN8=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],wOV={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var QdG,Vfk;QdG=function(A){return function(H){return function(){return(H==null?void 0:H())!==void 0?String(H())+A:void 0}}};
_.v6=QdG("px");Vfk=QdG("s");_.yX=new _.SE("CHUNK_REGISTRY_TOKEN");_.dy(ApW,{debugName:"shortsLockupViewModel"});_.$l(_.yX,function(A){_.j2(A,"shortsLockupViewModel","dpUCFd",ApW)});var EMw=_.dy(stI,{debugName:"shortsLockupViewModelWithDismissible"});_.$l(_.yX,function(A){_.j2(A,"shortsLockupViewModelWithDismissible","U9vrqd",stI)});var Uy0=p9I(function(A){return A.targetGroupId}).useUpdatableData;_.IZ=_.c(function(A){function H(WV){return function(){var hA=X().numItemsPerGridRow,qv=WV()*hA;hA=qv+hA;var eN,mr;return(mr=(eN=d().contents)==null?void 0:eN.slice(qv,hA))!=null?mr:[]}}
var k=_.SD(A,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),d=k.data,W=k.layoutContainerWidth,z=k.shouldUseOwnContainerSize,u=k.marginSettings,B=k.useUpdatedMargin,h=Lhl(),O=_.r(Uy0(function(){var WV,hA;return{targetGroupId:(WV=d().targetingContext)==null?void 0:(hA=WV.targetGroupId)==null?void 0:hA[0]}})).next().value;
k=_.r(_.RV(!0,void 0,"CC9Rdb"));var T=k.next().value,m=k.next().value,J=function(){var WV,hA=(WV=_.L(d().showMoreButton,_.vY))==null?void 0:WV.trackingParams;hA&&_.wN(_.A7(),hA);m(!1)},g=function(){var WV,hA=(WV=_.L(d().showLessButton,_.vY))==null?void 0:WV.trackingParams;
hA&&_.wN(_.A7(),hA);m(!0)};
k=_.r(_.kq({canHaveZeroSize:!1}));var v=k.next().value;k=k.next().value;var y=function(){var WV;return(WV=d().contentAspectRatio)!=null?WV:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},X=_.be(function(){var WV=z()&&v.width()>0?v.width()||W():W(),hA,qv=(hA=A.data())==null?void 0:hA.responsiveContainerConfiguration;
WV=_.b2({containerWidth:WV,sizing:qv?Lh(qv==null?void 0:qv.responsiveSize):"EXTRA_COMPACT",marginSettings:u(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:WV.maxContainerWidth,numItemsPerGridRow:WV.numItems,contentPadding:z()?WV.margin:WV.contentMargin,itemWidth:WV.itemWidth,itemMargin:WV.gutter/2}},void 0,"YIvnde"),D=function(){if(d().enableVerticalExpansion){if(T())return K();
var WV,hA,qv=(hA=(WV=d().contents)==null?void 0:WV.length)!=null?hA:0;return Math.ceil(qv/X().numItemsPerGridRow)}return X().numItemsPerGridRow<=2?2:1},K=function(){var WV;
return Math.ceil(((WV=d().minCollapsedItemCount)!=null?WV:1)/X().numItemsPerGridRow)},N=function(){return d().enableVerticalExpansion&&d().showLessButton&&!T()&&D()>K()},U=function(){var WV,hA;
return d().enableVerticalExpansion&&d().showMoreButton&&T()&&((hA=(WV=d().contents)==null?void 0:WV.length)!=null?hA:0)>X().numItemsPerGridRow*K()},p=function(){return!N()},M=function(){return!U()},Z={};
return _.x("grid-shelf-view-model",{class:_.ER("ytGridShelfViewModelHost",A.className,(Z.ytGridShelfViewModelHostHasBottomButton=function(){return N()||U()},Z.ytGridShelfViewModelHostIsDismissed=function(){var WV,hA=(WV=O())!=null?WV:{};
WV=hA.behavior;var qv=hA.isDismissed,eN=hA.stamperContextTargetId;hA=hA.stamperIndex;if(!(_.b("mweb_see_fewer_shorts_group_dismissal")&&qv&&WV&&eN))return!1;var mr;qv=h;for(var Cl,pl,UC=((Cl=qv)==null?0:Cl.targetId)?_.pA((pl=qv)==null?void 0:pl.targetId):void 0;((mr=qv)==null?0:mr.parent)&&UC!==eN;)qv=qv.parent,pl=Cl=void 0,UC=((Cl=qv)==null?0:Cl.targetId)?_.pA((pl=qv)==null?void 0:pl.targetId):void 0;mr=UC===eN?qv:void 0;if(!mr)return!1;var hk;eN=mr==null?void 0:(hk=mr.stamperIndex)==null?void 0:
hk.call(mr);return WV==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||WV==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&eN!=null&&hA!=null&&eN>hA},Z.ytGridShelfViewModelHostOptionalMediumLayoutMargin=B,Z)),
el:_.P8(k),style:_.Mt({"margin-left":(0,_.v6)(function(){return X().contentPadding}),
"margin-right":(0,_.v6)(function(){return X().contentPadding})})},_.x(_.R,{cond:function(){return _.L(d().header,$KZ)},
then:function(WV){return _.x(_.kG,{data:WV,useUpdatedPadding:B,disableHorizontalPadding:!0})}}),_.x("div",null,_.x(_.Ix,{each:function(){return Array(D())}},function(WV,hA){return _.x(l9Q,{className:A.className,
items:H(hA),responsiveGridShelfLayout:X,contentAspectRatio:y})})),_.x("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.x(_.HG,{data:function(){return d().showMoreButton}},{buttonViewModel:function(WV){return _.x("div",{hidden:M},_.x(_.U7,{data:WV.data,
onClick:J}))}}),_.x(_.HG,{data:function(){return d().showLessButton}},{buttonViewModel:function(WV){return _.x("div",{hidden:p},_.x(_.U7,{data:WV.data,
onClick:g}))}})))},"Zd");
_.IZ.idomCompat=!0;var l9Q=_.c(function(A){var H=A.items;var k=A.responsiveGridShelfLayout;var d=A.contentAspectRatio;A=A.className;var W=(0,_.v6)(function(){return-k().itemMargin});
return _.x("div",{el:_.P8(VWI(function(z){a:{for(var u=H(),B=[],h=0;h<u.length;h++){var O=_.L(u[h],FyA);if(!O||O==null||!O.inlinePlayerData){z=null;break a}var T=z.children.item(h);if(!T){z=null;break a}B.push({thumbnailElement:T,videoData:O})}z={gridVideoPreviewData:{gridItems:B}}}return z})),
class:_.ER("ytGridShelfViewModelGridShelfRow",A),style:_.Mt({"margin-left":W,"margin-right":W})},_.x(_.HG,{data:H,replacementWrapper:function(z){return _.x(tfQ,{responsiveGridShelfLayout:k},z)}},{shortsLockupViewModel:function(z){return _.x(tfQ,{responsiveGridShelfLayout:k},_.x(EMw,{data:z.data,
aspectRatio:function(){return d()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.b("mweb_enable_one_line_title_on_shorts")?1:_.b("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(z){return _.x(tfQ,{responsiveGridShelfLayout:k},_.x(_.oW,{data:z.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"$d"),tfQ=_.c(function(A){return _.x("div",{style:_.Mt({width:(0,_.v6)(function(){return A.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+A.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},A.children)},"ae");
_.IZ.idomCompat=!0;_.Sw(_.IZ,"grid-shelf-view-model",{props:{data:_.Ih,layoutContainerWidth:_.Ih,shouldUseOwnContainerSize:_.Ih,marginSettings:_.Ih,useUpdatedMargin:_.Ih,className:_.Ih}});_.Ncw=_.c(function(A){var H=_.r(_.RV(!1,void 0,"FVl30c")),k=H.next().value,d=H.next().value;H={};return _.x("yt-alert-banner-view-model",{class:_.ER("ytAlertBannerViewModelHost",A.className,function(){var W;a:switch((W=A.data())==null?void 0:W.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":W="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":W="ytAlertBannerViewModelWarning";break a;default:W="ytAlertBannerViewModelInformational"}return W},(H.ytAlertBannerViewModelDismissed=
k,H.ytAlertBannerViewModelFullbleed=A.fullbleed,H.ytAlertBannerViewModelNarrow=A.narrow,H.ytAlertBannerViewModelIsInRichGrid=A.isInRichGrid,H))},_.x(_.R,{cond:function(){var W;
return!((W=A.data())==null?0:W.hideIcon)},
then:function(){return _.x("div",{class:"ytAlertBannerViewModelIcon"},_.x(_.n3,{icon:function(){var W,z;return((W=A.data())==null?void 0:(z=W.iconOverride)==null?void 0:z.toLowerCase())||"info_circle"}}))}}),_.x("div",{class:"ytAlertBannerViewModelOuterContainer"},_.x("div",{class:"ytAlertBannerViewModelContainer"},_.x("div",{class:"ytAlertBannerViewModelContent"},_.x("div",{class:"ytAlertBannerViewModelHeading"},_.x(_.j$,{text:function(){var W;
return(W=A.data())==null?void 0:W.heading}})),_.x("div",{class:"ytAlertBannerViewModelBody"},_.x(_.j$,{text:function(){var W;
return(W=A.data())==null?void 0:W.body}})))),_.x(_.HG,{data:function(){var W;
return(W=A.data())==null?void 0:W.actionButton}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.x(_.HG,{data:function(){var W;
return(W=A.data())==null?void 0:W.dismissButton}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var z;((z=A.data())==null?0:z.disableLocalDismissBehavior)||d(!0)}})}}))},"be");_.Sw(_.Ncw,"yt-alert-banner-view-model",{props:{data:_.Ih,fullbleed:_.Ih,narrow:_.Ih,isInRichGrid:_.Ih,className:_.Ih}});var MfQ;_.YG=_.c(function(A){return _.x("basic-content-view-model",{class:_.ER("ytBasicContentViewModelHost",_.DS(A.className))},_.x(_.R,{cond:function(){return A.data().headline},
then:function(H){return _.x("div",{class:"ytBasicContentViewModelHeadline"},_.x(_.j$,{text:H}))}}),_.x(_.Ix,{each:function(){return A.data().paragraphs||[]},
keyBy:"INDEX"},function(H){return _.x("div",{class:"ytBasicContentViewModelParagraph"},_.x(_.R,{cond:function(){var k=H();return!!(k.header||k.customHeader||k.headline)},
then:function(){return _.x(MfQ,{paragraph:H})}}),_.x(_.R,{cond:function(){return H().asset||H().text},
then:function(){return _.x("div",{class:"ytBasicContentViewModelParagraphContent"},_.x(_.R,{cond:function(){return H().asset},
then:function(k){return _.x("div",{class:"ytBasicContentViewModelParagraphAsset"},_.x(_.HG,{data:k},{contentPreviewImageViewModel:_.to}))}}),_.x(_.R,{cond:function(){return H().text},
then:function(k){return _.x("div",{class:"ytBasicContentViewModelParagraphText"},_.x(_.j$,{text:k}))}}))}}))}))},"ce");
MfQ=_.c(function(A){var H=A.paragraph;return _.x(_.sD,null,_.x(_.R,{cond:function(){return H().headline},
then:function(k){return _.x(_.j$,{text:k,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.x(_.HG,{data:function(){return H().header||H().customHeader}},{sectionHeaderViewModel:function(k){return _.x(_.kG,{data:k.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"de");_.nMw=_.c(function(A){function H(){var g,v;h((v=(g=W)==null?void 0:g.isKeyBoardInUse())!=null?v:!1)}
function k(){h(!1)}
function d(){var g;return B()?(g=A.focusedClassName)==null?void 0:g.call(A):""}
var W=_.wj().resolve(_.fZ(_.ah)),z=_.r(_.RV(!1,void 0,"SgkTXc")),u=z.next().value;z=z.next().value;var B=u,h=z,O=function(){var g,v;return((g=A.toggleable)==null?0:g.call(A))?(v=A.toggled)==null?void 0:v.call(A):void 0},T=_.lc(function(g){var v,y=(v=A.command)==null?void 0:v.call(A);
y&&_.wj().resolve(_.J7).resolveCommand(y);var X;(X=A.onClick)==null||X.call(A,g)}),m=_.lc(H),J=_.lc(k);
return _.x(_.R,{cond:function(){var g;if(g=A.command){g=A.command();g=wkl(g);var v=g.href;g=!(!g.navigatingCommand||!v)}return g},
then:function(){return _.x(_.c2,Object.assign({},{command:A.command,style:A.style,ariaDescribedby:A.ariaDescribedby,ariaHidden:A.ariaHidden,ariaLabel:A.ariaLabel,ariaLabelledby:A.ariaLabelledby,ariaSelected:A.ariaSelected,disabled:A.disabled,dir:A.dir,tabIndex:A.tabIndex,target:A.target,title:A.title,onClick:A.onClick},{className:_.ER("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",A.className,function(){return d()}),
onFocusin:H,onFocusout:k,ariaCurrent:function(){var g,v;return(v=(g=A.ariaCurrent)==null?void 0:g.call(A))!=null?v:O()}}),A.children)},
else:function(){return _.x("button",{"on:click":T,"on:focusin":m,"on:focusout":J,class:_.ER("ytButtonOrAnchorHost","ytButtonOrAnchorButton",A.className,function(){return d()}),
style:A.style,"aria-describedby":A.ariaDescribedby,"aria-hidden":A.ariaHidden,"aria-label":A.ariaLabel,"aria-labelledby":A.ariaLabelledby,"aria-pressed":O,dir:A.dir,disabled:A.disabled,tabindex:A.tabIndex,title:A.title},A.children)}})},"ee");var ZuN=_.c(function(A){A=_.SD(A,{disabled:!1});var H=A.active,k=A.disabled;A={};A=_.ER("ytSwitchShapeTrack",(A.ytSwitchShapeTrackActive=function(){return H()},A.ytSwitchShapeTrackDisabled=function(){return k()},A));
var d={};d=_.ER("ytSwitchShapeKnob",(d.ytSwitchShapeKnobActive=function(){return H()},d));
return _.x("switch-shape",{class:"ytSwitchShapeHost"},_.x("div",{class:A}),_.x("div",{class:d}))},"fe");var f9k=_.c(function(A){var H=_.SD(A,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),k=H.data;A=H.className;var d=H.handleOnTapEventInParent,W=H.parentActive,z=H.onTap;H=_.r(_.C0(function(){var J;return(J=W())!=null?J:k().switchedOnByDefault||!1}));
var u=H.next().value,B=H.next().value,h=function(){return k().isDisabled},O=_.GP("button");
H=_.lc(function(J){return J.key==="Enter"?(J.preventDefault(),O.value.click(),!1):!0});
var T=_.lc(function(J){if(k().handleOnTapEventInParent||d())return!0;if(h())return!1;if(z)return z(J),!0;dWm(k(),u(),J);B(!u());return!1}),m={};
m=_.ER("ytSwitchButtonViewModelButton",(m.ytSwitchButtonViewModelTappable=function(){return!h()},m));
return _.x("switch-button-view-model",{class:_.ER("ytSwitchButtonViewModelHost",A)},_.x("button",{el:O,class:m,"on:click":T,"on:keydown":H,"aria-label":function(){return u()?k().a11yLabelSwitchedOn:k().a11yLabelSwitchedOff},
"aria-checked":u,"aria-disabled":h,role:"switch"},_.x(ZuN,{active:u,disabled:h})))},"ge");var wvA=_.c(function(A){var H=A.data;var k=A.isLeading;var d=A.hideSelectionTextChevron;var W=A.isToggled;var z=A.shouldNotFillIcon;var u=function(){if(k())var m=H().leadingImage;else{var J;m=(J=H().trailingImage)!=null?J:_.vG(H().themedTrailingImage)}return m},B=function(){a:switch(H().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var m="expand_more";
break a;default:m="chevron_right"}return m};
A={};var h=_.ER("yt-list-item-view-model__image-container",(A["yt-list-item-view-model__leading"]=k,A["yt-list-item-view-model__trailing"]=function(){return!k()},A)),O=_.ER("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
A={};var T=_.ER("yt-list-item-view-model__accessory",(A["yt-list-item-view-model__leading"]=k,A["yt-list-item-view-model__trailing"]=function(){return!k()},A));
return _.x(_.R,{cond:function(){var m=H(),J=k();return!!(J&&(m.leadingImage||m.leadingAccessory)||!J&&(m.trailingImage||m.trailingButton||m.trailingButtons||m.selectionText||m.themedTrailingImage||m.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.x(_.sD,null,_.x(_.R,{cond:u,then:function(m){return _.x("div",{class:h,"aria-hidden":"true"},_.x(_.GA,{data:m,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var J=(k()?H().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":H().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?k()?qo8(H().leadingIconAccessorySize):qo8(H().trailingIconAccessorySize):void 0;return J},
className:O,isToggled:function(){return!(z==null?0:z())&&(W==null?void 0:W())}}))}}),_.x(_.R,{cond:function(){return k()&&H().leadingAccessory},
then:function(){return _.x("div",{class:h},_.x(_.HG,{data:function(){return H().leadingAccessory}},{avatarViewModel:function(m){return _.x(_.RW,{data:m.data,
avatarButtonCustomClassName:O})},
collectionThumbnailViewModel:function(m){return _.x(Wz0,{data:m.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.x(_.R,{cond:function(){return!k()&&H().trailingButton},
then:function(){return _.x("div",{class:"yt-list-item-view-model__button-container"},_.x(_.HG,{data:function(){return H().trailingButton}},{buttonViewModel:function(m){return _.x(_.U7,{data:m.data,
className:T})}}))}}),_.x(_.R,{cond:function(){var m;
return!k()&&((m=H().trailingButtons)==null?void 0:m.buttons)},
then:function(){return _.x("div",{class:"yt-list-item-view-model__button-container"},_.x(_.HG,{data:function(){var m;return(m=H().trailingButtons)==null?void 0:m.buttons}},{buttonViewModel:function(m){return _.x(_.U7,{data:m.data,
className:T})},
accountLinkButtonViewModel:function(m){return _.x(MQw,{data:m.data,className:T})},
switchButtonViewModel:function(m){return _.x(f9k,{data:m.data,className:T})},
subscribeButtonViewModel:function(m){return _.x(_.Rr,{data:m.data,isOverlay:!1,animateWidth:!1,className:T})},
toggleButtonViewModel:function(m){return _.x(_.qc,{data:m.data,className:T})}}))}}),_.x(_.R,{cond:function(){return!k()&&!!H().selectionText},
then:function(){return _.x(_.sD,null,_.x(_.j$,{text:function(){return H().selectionText},
className:_.ER("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.x(_.R,{cond:function(){return!(d==null?0:d())},
then:function(){return _.x(_.n3,{icon:B,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.x(_.R,{cond:function(){return!k()&&H().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.x("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"he");var oMA=_.c(function(A){var H=A.data;return _.x(_.R,{cond:function(){return H().title||H().subtitle},
then:function(){return _.x("div",{class:"yt-list-item-view-model__text-wrapper"},_.x(_.R,{cond:function(){return H().title},
then:function(k){return _.x("div",{class:"yt-list-item-view-model__title-wrapper"},_.x(_.j$,{text:k,className:"yt-list-item-view-model__title"}))}}),_.x(_.R,{cond:function(){return H().subtitle},
then:function(k){return _.x(_.j$,{text:k,className:"yt-list-item-view-model__subtitle"})}}))}})},"ie");var $yG=_.c(function(A){var H=A.data;var k=A.hideSelectionTextChevron;var d=A.TrailingAccessory;var W=A.isToggled;var z=A.disabled;var u=A.isSelectItem;var B=A.isCompact;var h=A.inPopup;var O=A.disableHorizontalPadding;var T=A.isTappableWithoutSelect;var m=A.useButtonOrAnchor;var J=A.onTap;var g=A.shouldNotFillIcon;var v=function(){return _.x(oMA,{data:H,onTap:J,useButtonOrAnchor:m,isTappableWithoutSelect:T,isToggled:W})};
A={};return _.x("div",{class:_.ER("yt-list-item-view-model__label",(A["yt-list-item-view-model__container"]=function(){return!(u==null?0:u())},A["yt-list-item-view-model__container--disabled"]=function(){return!!H().isDisabled||!(z==null||!z())},A["yt-list-item-view-model__container--has-subtitle"]=function(){return!!H().subtitle},A["yt-list-item-view-model__container--compact"]=B,A["yt-list-item-view-model__container--tappable"]=T,A["yt-list-item-view-model__container--in-popup"]=h,A["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(O==null?void 0:O())&&!(u==null?0:u())},A))},_.x(wvA,{data:H,
isLeading:!0,hideSelectionTextChevron:k,isToggled:W,shouldNotFillIcon:g}),_.x(_.R,{cond:function(){return(m==null?void 0:m())&&(T==null?void 0:T())},
then:function(){return _.x(_.nMw,{command:function(){return _.i2(H().rendererContext)},
onClick:J,className:"yt-list-item-view-model__button-or-anchor",toggleable:W!==void 0,toggled:W},_.x(v,null))},
else:function(){return _.x(v,null)}}),_.x(_.R,{cond:function(){return!!d},
then:function(){return _.x("div",{class:"yt-list-item-view-model__trailing"},d&&_.x(d,null))},
else:function(){return _.x(wvA,{data:H,isLeading:!1,hideSelectionTextChevron:k,isToggled:W,shouldNotFillIcon:g})}}))},"je");var Hl_=_.c(function(A){var H=_.SD(A,{checked:!1,disabled:!1});A=H.name;var k=H.onChange,d=H.onClick,W=H.checked,z=H.labelRenderable,u=H.hasLeadingLabel,B=H.labelClass,h=H.isCompact,O=H.selectElementClass,T=H.disableHorizontalPadding;H=H.disabled;var m="checkbox"+_.Ta(_.LU),J=_.lc(function(y){d==null||d(y);return!1}),g=_.lc(function(y){k==null||k(y);
return!1}),v={};
return _.x("checkbox-shape",null,_.x("label",{class:_.ER("ytCheckboxShapeHost",B,(v.ytCheckboxShapeHostCompact=h,v.ytCheckboxShapeDisableHorizontalPadding=T,v))},_.x("input",{class:"ytCheckboxShapeInput",id:m,checked:W,name:A,type:"checkbox",disabled:H,"prop:checked":W,"on:change":g,"on:click":J}),_.x(_.R,{cond:function(){return!(u==null?0:u())},
then:function(){return _.x(AAB,{isLeading:!0,selectElementClass:O})}}),_.x(_.R,{cond:function(){return!!z},
then:function(){return _.x("div",{class:"ytCheckboxShapeLabel"},z==null?void 0:z())}}),_.x(_.R,{cond:u,
then:function(){return _.x(AAB,{isLeading:!1,selectElementClass:O})}})))},"ke");
Hl_.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var AAB=_.c(function(A){var H=A.selectElementClass;A={};return _.x("div",{class:_.ER("ytCheckboxShapeCheckbox",H,(A.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(H==null?0:H())},A)),
"aria-hidden":"true"},_.x(_.n3,{icon:_.b("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.x(_.n3,{icon:_.b("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"le");_.P6=_.c(function(A){var H=A.name;var k=A.onChange;var d=A.onClick;var W=A.checked;var z=A.labelRenderable;var u=A.useCheckIcon;var B=A.hasLeadingLabel;var h=A.labelClass;var O=A.isCompact;var T=A.selectElementClass;var m=A.ariaLabel;var J=A.className;A=A.disabled;var g="radio"+_.Ta(_.LU),v=_.GP("input"),y=_.b("enable_ios_webview_radio_button_responsiveness"),X=_.lc(function(Z){v.value.checked=!(W==null||!W());k==null||k(Z);return!1}),D=_.lc(function(Z){d==null||d(Z);
return!1}),K=_.r(_.RV(!1,void 0,"Ucg5gd")),N=K.next().value,U=K.next().value;
K=_.lc(function(){var Z;((Z=_.wj().resolve(_.fZ(_.ah)))==null?0:Z.isKeyBoardInUse())&&U(!0)});
var p=_.lc(function(){U(!1)}),M={};
return _.x("radio-shape",{class:_.ER("yt-radio-shape",J)},_.x("input",{el:v,class:"yt-radio-shape__input",id:g,"prop:checked":W,name:H,type:"radio",disabled:A,"on:change":X,"on:click":D,"aria-label":m,"on:focusin":K,"on:focusout":p}),_.x("label",{class:_.ER("yt-radio-shape__label-container",h,(M["yt-radio-shape--compact"]=O,M["yt-radio-shape__label-container--keyboard-focused"]=N,M)),for:g},_.x(_.R,{cond:function(){return!(B==null?0:B())},
then:function(){return _.x(sbL,{checked:W,useCheckIcon:u,isLeading:!0,selectElementClass:T,usePassthrough:y})}}),_.x(_.R,{cond:function(){return!!z},
then:function(){var Z={};return _.x("div",{class:_.ER("yt-radio-shape__label",(Z["yt-radio-shape--event-passthrough"]=y,Z)),"aria-hidden":function(){return(m==null?0:m())?"true":"false"}},z==null?void 0:z())}}),_.x(_.R,{cond:B,
then:function(){return _.x(sbL,{checked:W,useCheckIcon:u,isLeading:!1,selectElementClass:T,usePassthrough:y})}})))},"me");
_.P6.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};
var sbL=_.c(function(A){var H=A.useCheckIcon;var k=A.selectElementClass;A=A.usePassthrough;var d=_.b("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE",W=_.b("enable_web_delhi_icons")?"CIRCLE_FULL":d,z={};return _.x("div",{class:_.ER("yt-radio-shape__radio",k,(z["yt-radio-shape__radio--check-icon"]=H,z["yt-radio-shape__radio--radio-default-style"]=function(){return!(k==null?0:k())},z["yt-radio-shape--event-passthrough"]=A,z)),
"aria-hidden":"true"},_.x(_.n3,{icon:function(){return(H==null?0:H())?"CHECK":d}}),_.x(_.n3,{icon:function(){return(H==null?0:H())?"CHECK":W},
active:function(){return!(H==null?0:H())}}))},"ne");_.G$=_.c(function(A){var H=A.data;var k=A.isMenuItem;var d=A.isCompact;var W=A.onTap;var z=A.trailingAccessory;var u=A.hideSelectionTextChevron;var B=A.disabled;var h=A.inPopup;var O=A.disableHorizontalPadding;var T=A.isOverlay;var m=A.isToggled;var J=A.ariaLabel;var g=A.ariaPressed;var v=A.shouldNotFillIcon;var y=!_.b("web_enable_killswitch_for_selectable_list_item_on_tap_fix");A=!_.b("web_enable_killswitch_for_skip_child_tags");var X=_.oy(function(eA){return rpl(H(),eA)}),D=function(){return(O==
null?void 0:O())||H().disableHorizontalPadding},K=function(){var eA;
return!((eA=H())==null||!eA.entitySelectorType)},N=function(){return K()?Object.assign({},H(),X().data):H()},U=function(){return!!N().isDisabled||!(B==null||!B())},p=_.B8v(function(){return N().rendererContext}),M=function(){return!(N().isSelected===void 0||!N().selectionStyle||N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},Z=function(){return(_.hc(N().rendererContext)||W)&&!M()},WV={},hA=_.ER("yt-list-item-view-model__container",(WV["yt-list-item-view-model__container--tappable"]=
function(){return _.hc(N().rendererContext)||M()},WV["yt-list-item-view-model__container--compact"]=d,WV["yt-list-item-view-model__container--in-popup"]=h,WV["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(D==null?void 0:D())&&M()},WV)),qv=function(){return N().leadingImage||N().leadingAccessory},eN=_.ER("yt-list-item-view-model__image-container",function(){return qv()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
WV=_.BG();var mr=_.r(_.RV(!1,void 0,"ef0FO")),Cl=mr.next().value,pl=mr.next().value,UC=function(){return _.x($yG,{data:N,hideSelectionTextChevron:u,TrailingAccessory:z,isToggled:m,disabled:B,isSelectItem:M,isCompact:d,inPopup:h,disableHorizontalPadding:D,isTappableWithoutSelect:Z,useButtonOrAnchor:hk,onTap:W,shouldNotFillIcon:v})},hk=_.b("web_button_or_anchor_list_item");
mr={};return _.x("yt-list-item-view-model",{el:_.P8(_.OF(function(){return U()?void 0:N().rendererContext},void 0,void 0,hk?["A".toString(),
"BUTTON".toString()]:[]),uiW(function(eA){if(!U()){var lI;if(lI=y)lI=N().selectionStyle,lI=lI==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||lI==="LIST_ITEM_SELECTION_STYLE_RADIO"||lI==="LIST_ITEM_SELECTION_STYLE_DEFAULT";lI||W==null||W(eA)}},A?["A".toString(),
"BUTTON".toString()]:[]),mkX(function(){return Z==null?void 0:Z()},{focusin:function(){var eA;
((eA=_.wj().resolve(_.fZ(_.ah)))==null?0:eA.isKeyBoardInUse())&&pl(!0)},
focusout:function(){pl(!1)}})),
class:_.ER("yt-list-item-view-model",(mr["yt-list-item-view-model--is-overlay"]=T,mr["yt-list-item-view-model--keyboard-focused"]=Cl,mr["yt-list-item-view-model--hidden"]=function(){return K()?X().isHidden:!1},mr)),
role:function(){return(k==null?0:k())?"menuitem":"listitem"},
tabindex:function(){var eA=Z();var lI=hk;M();eA=lI?void 0:_.b("web_enable_killswitch_tabindex_fix")?W||eA?0:void 0:eA?0:void 0;return eA},
"on:keydown":WV,"aria-label":function(){var eA;return(J==null?void 0:J())||((eA=p())==null?void 0:eA.label)},
"aria-pressed":g},_.x(_.R,{cond:M,then:function(){return _.x(_.Yl,null,_.x(_.y$,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.x(Hl_,{labelRenderable:UC,
isCompact:d,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!qv()},
labelClass:hA,selectElementClass:eN,disableHorizontalPadding:D,onClick:y?W:void 0,disabled:U})}),_.x(_.y$,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.x(_.P6,{labelRenderable:UC,
isCompact:d,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!qv()},
labelClass:hA,selectElementClass:eN,onClick:y?W:void 0,disabled:U})}),_.x(_.y$,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.x(_.P6,{labelRenderable:UC,
isCompact:d,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!qv()},
labelClass:hA,selectElementClass:eN,useCheckIcon:!0,onClick:y?W:void 0,disabled:U})}),_.x(_.jp,null,UC))},
else:UC}))},"oe");
_.G$.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Fx=_.c(function(A){var H=_.r(_.kq({canHaveZeroSize:!1})),k=H.next().value;H=H.next().value;var d=function(){return LiN(k.width(),A.data().responsiveContainerConfiguration)||T8X(k.width(),A.data().linearLayoutContainerConfiguration)};
return _.x("yt-linear-layout-view-model",{el:_.P8(H),class:"ytLinearLayoutViewModelHost"},_.x("div",{class:_.ER("ytLinearLayoutViewModelContainer",function(){a:switch(A.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var W="ytLinearLayoutViewModelHorizontal";break a;default:W="ytLinearLayoutViewModelVertical"}return W},function(){var W=A.data().linearLayoutContainerConfiguration;
return W?[h5W(W.flexDirection),OQb(W.justifyContent),R5W(W.alignItems)].join(" "):""}),
style:function(){var W;var z=((W=d())==null?void 0:W.containerStyles)||{};return _.Mt(z)()}},_.x(_.HG,{data:function(){return A.data().items},
wrapper:function(W,z,u){return _.x("div",{style:function(){var B=u(),h;if((h=d())==null)B=void 0;else{var O=h.itemStyles,T,m;var J=(m=(T=A.data().items)==null?void 0:T.length)!=null?m:0;B=O.call(h,B===0,B===J-1)}return _.Mt(B||{})()}},W())}},{lockupViewModel:function(W){return _.x(_.oW,{data:W.data,
containerLayoutConfig:function(){var z;return(z=d())==null?void 0:z.containerLayoutConfig}})},
basicContentViewModel:_.YG,buttonViewModel:_.U7,chipBarViewModel:_.c5j,linearLayoutViewModel:_.Fx,thumbnailViewModel:QY,descriptionPreviewViewModel:_.sf,listItemViewModel:_.G$,sectionHeaderViewModel:_.kG})))},"pe");_.Sw(_.Fx,"yt-linear-layout-view-model",{props:{data:_.Ih}});_.Sw(_.dr,"chips-shelf-view-model",{props:{data:_.Ih,callback:_.Fc,selectionBehavior:_.Ih,disableChipsScrollAnimation:_.Ih,nextButtonStyle:_.Ih}});_.Sw(_.c(function(A){return _.x("yt-comment-filter-context-view-model",{class:_.ER("ytCommentFilterContextHost",A.className)},_.x(_.j$,{text:function(){return A.data().text}}))},"qe"),"yt-comment-filter-context-view-model",{props:{data:_.Ih,
className:_.Fc}});_.kfB=_.c(function(A){var H=A.data;var k=A.onTap;var d=A.onSwitch;var W=A.overrideDisabled;A=A.disableHorizontalPadding;var z=_.r(_.C0(function(){var J;return((J=z58(T()))==null?void 0:J.switchedOnByDefault)||!1})),u=z.next().value,B=z.next().value;
z=_.r(_.RV(!1,void 0,"V0hCrd"));var h=z.next().value,O=z.next().value,T=function(){var J;if(!(J=H().switchButton)){var g=H();J=W==null?void 0:W();g={switchOnCommand:g.switchOnCommand,switchOffCommand:g.switchOffCommand,switchedOnByDefault:g.switchedOnByDefault,isDisabled:g.isDisabled,a11yLabelSwitchedOn:g.a11yLabelSwitchedOn,a11yLabelSwitchedOff:g.a11yLabelSwitchedOff};J!==void 0&&(g.isDisabled=J);J={switchButtonViewModel:g}}return J},m=function(J){var g=z58(T());
!g||g.isDisabled||H().ignoreTapUntilCommandCompletes&&h()||(k==null||k(J),dWm(g,u(),J,H().ignoreTapUntilCommandCompletes,O),B(!u()),d==null||d(u()))};
return _.x("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.x(_.G$,{data:function(){return{title:H().title,subtitle:H().attributedSubtitle,leadingImage:H().leadingImage,leadingAccessory:H().leadingAccessory,isDisabled:H().isDisabled}},
onTap:m,isToggled:u,shouldNotFillIcon:!0,trailingAccessory:function(){return _.x(_.HG,{data:T},{switchButtonViewModel:function(J){return _.x(f9k,{data:J.data,parentActive:u,onTap:m})}})},
disableHorizontalPadding:A}))},"re");var dvi=_.c(function(A){var H=A.data;A=A.className;var k=function(){var B;return((B=d())==null?void 0:B.isToggled)!==void 0},d=_.oy(function(B){a:{var h=H().entityKey,O=H().entitySelectorType;
if(O)switch(O){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":if(!h)break;var T,m;B={isToggled:(m=(T=_.z2.toggleMenuServiceItemEntitySelector(B,h))==null?void 0:T.isToggled)!=null?m:!1};break a;default:_.Pq(new _.Ti("Error: entitySelectorType defined but not matched in selector.",B,O))}B=void 0}return B}),W=_.r(_.C0(function(){var B,h,O;
return k()?(B=d())==null?void 0:B.isToggled:(h=H())==null?void 0:(O=h.initialState)==null?void 0:O.isToggled})),z=W.next().value,u=W.next().value;
return _.x("toggleable-list-item-view-model",{el:_.P8(_.OF(function(){return H().rendererContext},{onTap:function(B,h){h();
k()||u(!z())}})),
class:_.ER("toggleableListItemViewModelHost",A)},_.x(_.R,{cond:function(){if(z()){var B=H().toggledListItem;B=_.L(B,_.WG)}else B=H().defaultListItem,B=_.L(B,_.WG);return B},
then:function(B){return _.x(_.G$,{data:B,isToggled:z,ariaLabel:function(){var h=z()?H().toggledListItem:H().defaultListItem,O;h=(O=_.L(h,_.WG))==null?void 0:O.rendererContext;var T;return(T=_.L(h,_.zF))==null?void 0:T.label},
ariaPressed:function(){return z()}})}}))},"se");var WrG=_.$r("DOWNLOAD",{},"Download"),zmL=_.$r("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),qCL=_.$r("RETRY",{},"Retry"),rAe=_.$r("PAUSE_DOWNLOADING",{},"Pause downloading"),uXe=_.$r("RESUME_DOWNLOAD",{},"Resume download"),vPW={text:WrG,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},qL={text:zmL,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},IEm={text:qCL,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
ypf={text:rAe,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},jtv={text:uXe,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var BI_=_.c(function(A){var H=function(){var B=A.data();B=_.i2(B.rendererContext);var h;return(h=_.L(B,_.fj))==null?void 0:h.videoId},k=_.oy(function(B){var h=H(),O=GSC(A.data());
return h?_.TK(B,h):O?_.mj(B,O):"TRANSFER_STATE_UNKNOWN"}),d=_.o9(_.nLA,H),W=_.oy(function(B){return _.V3W(B,H(),GSC(A.data()))}),z=function(){return PqX(k(),d(),_.i2(A.data().rendererContext),!!GSC(A.data()))},u=function(){return W()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.x("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:u},_.x(_.R,{cond:function(){return!u()},
then:function(){return _.x(_.R,{cond:z,then:function(B){return _.x(_.Ix,{each:B},function(h){return _.x(_.G$,{data:h,isCompact:A.isCompact,isMenuItem:A.isMenuItem,inPopup:A.inPopup,disableHorizontalPadding:A.disableHorizontalPadding})})}})}}))},"te");
BI_.idomCompat=!0;_.emB=_.c(function(A){var H=A.data;var k=A.isCompact;var d=A.hideSelectionTextChevron;var W=A.inPopup;var z=A.isOverlay;var u=A.disableHorizontalPadding;var B=function(){return FiW(H())&&(W==null?void 0:W())},h=_.b("web_list_view_model_listbox_killswitch")?"menu":"listbox";
A=_.lc(function(T){if(W!=null&&W()&&_.b("web_enable_arrow_key_navigation_in_dropdown")){var m=_.qCI(T.currentTarget);if(m.length!==0){var J=Array.prototype.indexOf.call(m,document.activeElement);switch(T.key){case "ArrowDown":T.preventDefault();Xsv(m,J);break;case "ArrowUp":T.preventDefault();DWf(m,J);break;case "Tab":T.preventDefault(),T.shiftKey?DWf(m,J):Xsv(m,J)}}}});
var O={};return _.x("yt-list-view-model",{class:_.ER("ytListViewModelHost",(O.ytListViewModelHostKaiosSpatNav=jUN&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",O)),role:function(){return B()?h:"list"},
style:_.Mt({"max-height":function(){var T,m=(T=H())==null?void 0:T.visibleElementCount;if(m)return(m+.5)*40+"px"}}),
"on:keydown":A},_.x(_.HG,{data:function(){return H().listItems}},{listItemViewModel:function(T){return _.x(_.G$,{data:T.data,
isMenuItem:B,isCompact:k,hideSelectionTextChevron:d,inPopup:W,isOverlay:z,disableHorizontalPadding:u})},
toggleableListItemViewModel:function(T){return _.x(dvi,{data:T.data})},
downloadListItemViewModel:function(T){return _.x(BI_,{data:T.data,isMenuItem:B,isCompact:k,inPopup:W,disableHorizontalPadding:u})},
switchListItemViewModel:function(T){return _.x(_.kfB,{data:T.data,disableHorizontalPadding:u})}}))},"ue");
_.emB.idomCompat=!0;var xvI=_.c(function(A){var H=A.data;var k=A.isOverlay;A={};return _.x("yt-course-perks-view-model",{class:_.ER("ytwCoursePerksViewModelHost",(A.ytwCoursePerksViewModelHostOverlay=k,A))},_.x("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",null,_.x(_.R,{cond:function(){return H().perks},
then:function(d){return _.x(_.emB,{data:function(){return{listItems:d()}},
isCompact:!0,isOverlay:k})}})))},"ve");_.Sw(xvI,"yt-course-perks-view-model",{props:{data:_.Fc,isOverlay:_.Fc}});_.Sw(_.c(function(A){var H=A.data;return _.x("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.x("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.x(_.j$,{text:function(){return H().progressSummary}})),_.x("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.x("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Mt({width:function(){return H().progressPercentage*100+"%"}})})))},"we"),"yt-course-progress-view-model",{props:{data:_.Ih}});var ilV=_.c(function(A){var H={};return _.x("yt-progress-view-model",{class:_.ER("ytwProgressViewModelHost",(H.ytwProgressViewModelHostOverlay=_.DS(A.isOverlay,!1),H))},_.x(_.R,{cond:function(){return A.data().progressSummary},
then:function(k){return _.x("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.x(_.j$,{text:k}))}}),_.x("div",{class:"ytwProgressViewModelHostProgressContainer"},_.x(_.R,{cond:function(){return A.data().leadingLabel},
then:function(k){return _.x("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.x(_.j$,{text:k}))}}),_.x("div",{class:"ytwProgressViewModelHostProgressBar"},_.x("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(A.data().progressPercentage||0)*100+"%"}}))))},"xe");var Xx=_.c(function(A){var H=A.starNumber;var k=A.data;var d=function(){var W;return((W=k())==null?void 0:W.rating)||0};
return _.x(_.R,{cond:function(){return H()},
then:function(W){return _.x(_.Yl,null,_.x(_.y$,{when:function(){return d()>=W()-.25}},function(){return _.x("div",{class:"ytStarRatingViewModelHostStar"},_.x(_.n3,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.x(_.y$,{when:function(){return d()>=W()-.75}},function(){return _.x("div",{class:"ytStarRatingViewModelHostStar"},_.x(_.n3,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.x(_.jp,null,function(){return _.x("div",{class:"ytStarRatingViewModelHostStar"},_.x(_.n3,{icon:"STAR",
size:function(){return 24}}))}))}})},"ye"),hmB=_.c(function(A){A=A.data;
return _.x("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.x(Xx,{starNumber:1,data:A}),_.x(Xx,{starNumber:2,data:A}),_.x(Xx,{starNumber:3,data:A}),_.x(Xx,{starNumber:4,data:A}),_.x(Xx,{starNumber:5,data:A}))},"ze");_.Sw(_.c(function(A){var H=_.SD(A,{}).data;return _.x("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.x("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.x(_.j$,{text:function(){var k;return(k=H())==null?void 0:k.title}})),_.x("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.x(_.R,{cond:function(){return H().starProgressViewModels},
then:function(k){return _.x("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.x(_.HG,{data:k},{progressViewModel:ilV}))}}),_.x("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.x("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.x(_.j$,{text:function(){var k;
return(k=H())==null?void 0:k.averageRatingLabel}})),_.x(_.R,{cond:function(){return H().zeroStateText},
then:function(k){return _.x("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.x(_.j$,{text:k}))}}),_.x(_.R,{cond:function(){return H().starRatingViewModel},
then:function(k){return _.x("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.x(_.HG,{data:k},{starRatingViewModel:hmB}))}}),_.x("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.x(_.j$,{text:function(){var k;
return(k=H())==null?void 0:k.totalRatingsCountLabel}})))))},"Ae"),"yt-course-ratings-view-model",{props:{data:_.Fc}});var OlM;OlM={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"}};_.Rm_=_.c(function(A){var H=_.GP("yt-learning-journey-loader-view-model"),k=_.nj();_.Sp(function(){requestAnimationFrame(function(){var W;(W=k.lottieEl)==null||W.addEventListener("DOMLoaded",function(){var z;(z=A.onLottieLoaded)==null||z.call(A)})});
var d=A.data().browseEndpoint;d&&_.mu(d)});
return _.x("yt-learning-journey-loader-view-model",{class:_.ER("learningJourneyLoaderViewModelHost",A.className),"data-target-id":function(){return A.data().targetId||""},
el:H},_.x(_.Zb,{className:_.ER("learningJourneyLoaderViewModelLoader",A.className),animationName:function(){return OlM.animationConfig.name},
data:OlM,animationRef:k}))},"Ce");_.Sw(_.Rm_,"yt-learning-journey-loader-view-model",{props:{data:_.Ih,className:_.Fc,onLottieLoaded:_.Fc}});var TIG=_.c(function(A){var H=function(){return A.data()},k=function(){return!!_.Bl(_.ry(H())).optionColor},d=_.r(_.RV(-1,void 0,"gXOYR")),W=d.next().value,z=d.next().value,u=function(m){return W()===m},B=function(m){return H().correctAnswerIndex===m},h=function(){return W()!==-1};
d=_.r(_.RV("",void 0,"BFwDQb"));var O=d.next().value,T=d.next().value;return _.x("learning-journey-quiz-view-model",{class:_.ER("learningQuizComponentHost","learningJourneyQuizYoututorHost",A.className),style:_.Mt({background:function(){return _.Bl(_.ry(H())).backgroundColor}})},_.x("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},O),_.x("div",{class:"learningQuizComponentQuizContainer"},_.x("div",{class:"learningQuizComponentQuiz"},_.x("div",{class:"learningQuizComponentQuizContent"},_.x(_.R,{cond:function(){return!!H().aiGeneratedQuizLabel},
then:function(){return _.x("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.x(_.j$,{text:function(){return H().aiGeneratedQuizLabel}}))}}),_.x("div",{class:"learningQuizComponentQuizHeader",
style:_.Mt({"align-items":function(){return H().overflowMenu?"start":"center"}})},_.x("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Mt({"min-height":function(){return H().overflowMenu?"48px":"26px"}})},_.x("div",{class:"learningJourneyQuizYoututorText",
style:_.Mt({color:function(){return _.Bl(_.ry(H())).primaryTextColor}})},_.x(_.j$,{text:function(){return H().questionHeaderText}})))),_.x("div",{class:"learningQuizComponentQuizSubheader",
style:_.Mt({color:function(){return _.Bl(_.ry(H())).secondaryTextColor}})},_.x(_.j$,{text:function(){var m=H();
return h()?m.explanationText:m.questionSubheaderText}}))),_.x("div",{role:"group",
class:_.ER("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.x(_.Ix,{each:function(){return H().optionsData||[]}},function(m,J){var g={};
return _.x("button",{class:_.ER("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(g.learningQuizComponentQuizHover=function(){return!h()},g.learningQuizComponentQuizOptionWithCustomColor=k,g.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return h()&&B(J())},g.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return W()!==H().correctAnswerIndex&&u(J())},g.learningQuizComponentQuizIncorrectShake=
function(){return W()!==H().correctAnswerIndex&&u(J())},g)),
"on:click":_.lc(function(){_.vn(_.A7(),{data:m});if(h())return!1;z(J());var v,y;T(B(J())?((v=H().successTitle)==null?void 0:v.content)||"":((y=H().failureTitle)==null?void 0:y.content)||"");return!1}),
style:_.Mt({background:"transparent"}),"aria-description":function(){var v,y;return h()?B(J())?(v=H().successTitle)==null?void 0:v.content:(y=H().failureTitle)==null?void 0:y.content:""},
"aria-disabled":h},_.x("div",{class:"learningQuizComponentQuizOptionContainer"},_.x(_.j$,{text:m.optionText}),_.x(_.R,{cond:function(){var v=J();return h()&&(u(v)||B(v))},
then:function(){var v={};return _.x(_.n3,{className:_.ER("learningJourneyQuizYoututorOptionIcon",(v.learningQuizComponentQuizPulse=function(){return W()===H().correctAnswerIndex&&B(J())},v)),
size:24,icon:function(){return B(J())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.x(_.R,{cond:h,
then:function(){return _.x("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.x("div",{class:"learningJourneyQuizYoututorExplanationText"},_.x(_.j$,{text:function(){return H().explanationHeaderText}})),_.x(_.j$,{text:function(){return H().optionsData[W()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"De");
TIG.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var aEC=function(){},mv_;
(mv_=window.requestIdleCallback)==null||mv_.bind(window);var CqX=new Set,Sor=null;var JAB;_.g8I=_.c(function(A){var H=null,k=null,d=null,W=function(){return A.data()},z=function(){return _.Bl(_.ry(W()))},u=function(){return!!z().optionColor},B=_.r(_.RV(-1,void 0,"H2gnQb")),h=B.next().value,O=B.next().value,T=function(U){return h()===U},m=function(U){return W().correctAnswerIndex===U},J=function(){return h()!==-1},g=function(){return h()===W().correctAnswerIndex},v=function(){var U=W(),p=J(),M=g();
return p?M?U.successTitle:U.failureTitle:U.questionHeaderText},y=function(){var U=J(),p=g();
return U?p?264685:264684:264683},X=function(){var U=W();
return J()?U.explanationText:U.questionSubheaderText},D=function(){return!!W().video},K=function(U){return g()&&m(U)},N=_.lc(function(){O(-1);
return!1});
return _.x(_.R,{cond:function(){return W().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.x(TIG,{data:function(){return W()}})},
else:function(){return _.x("learning-journey-quiz-view-model",{class:_.ER("learningQuizComponentHost",A.className),style:_.Mt({background:function(){return z().backgroundColor}})},_.x(_.R,{cond:D,
then:function(){return _.x("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.Mt({background:function(){return z().videoBackgroundColor}})},_.x(_.HG,{data:function(){return W().video}},{lockupViewModel:function(U){return _.x(_.oW,{data:U.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.x("div",{class:"learningQuizComponentQuizContainer"},_.x("div",{class:"learningQuizComponentQuiz"},_.x("div",{class:"learningQuizComponentQuizContent"},_.x(_.R,{cond:function(){return!!W().aiGeneratedQuizLabel},
then:function(){return _.x("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.x(_.j$,{text:function(){return W().aiGeneratedQuizLabel}}))}}),_.x("div",{class:"learningQuizComponentQuizHeader",
style:_.Mt({"align-items":function(){return W().overflowMenu?"start":"center"}})},_.x("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Mt({"min-height":function(){return W().overflowMenu?"48px":"26px"}})},_.x("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.P8(function(U){_.eY(y(),U,H,function(p){H=p})}),
style:_.Mt({color:function(){return z().primaryTextColor}}),
"client-ve-type":y},_.x(_.j$,{text:v}))),_.x("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.x(_.R,{cond:J,then:function(){return _.x("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.P8(function(U){_.eY(264687,U,k,function(p){k=p})}),
"on:click":N,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.x("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Mt({fill:function(){return z().primaryTextColor}})},_.x("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"})))}}),
_.x(_.HG,{data:function(){return W().overflowMenu}},{buttonViewModel:function(U){return _.x(_.U7,{data:U.data})}}))),_.x("div",{class:"learningQuizComponentQuizSubheader",
el:_.P8(function(U){_.eY(264688,U,d,function(p){d=p})}),
style:_.Mt({color:function(){return z().secondaryTextColor}}),
"client-ve-type":264688},_.x(_.j$,{text:X}))),_.x("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.x(_.Ix,{each:function(){return W().optionsData||[]}},function(U,p){var M={};
return _.x("button",{class:_.ER("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(M.learningQuizComponentQuizHover=function(){return!J()},M.learningQuizComponentQuizOptionWithCustomColor=u,M.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return K(p())},M.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!g()&&T(p())},M.learningQuizComponentQuizIncorrectShake=function(){return!g()&&
T(p())},M.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return J()&&!T(p())},M)),
"on:click":_.lc(function(){_.vn(_.A7(),{data:U});if(J())return!1;O(p());return!1}),
style:_.Mt({background:function(){var Z=p();return J()&&T(Z)?"":u()?z().optionColor:"transparent"}}),
"aria-disabled":J},_.x("div",{class:"learningQuizComponentQuizOptionContainer"},_.x(_.R,{cond:J,then:function(){return _.x(JAB,{isOptionCorrect:m,optionIndex:p,isOptionSelectedAndCorrect:K,colors:z})}}),_.x(_.j$,{text:U.optionText})))})))))}})},"Ee");
JAB=_.c(function(A){var H={};return _.x("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var k=A.optionIndex();return A.isOptionCorrect(k)?"0 0 24 24":"0 -960 960 960"},
class:_.ER("learningJourneyQuizViewModelQuizOptionIconLeading",(H.learningQuizComponentQuizPulse=function(){return A.isOptionSelectedAndCorrect(A.optionIndex())},H)),
style:_.Mt({fill:function(){return A.colors().primaryTextColor}})},_.x("path",{d:function(){var k=A.optionIndex();
return A.isOptionCorrect(k)?"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"}}))},"Fe");
_.g8I.idomCompat=!0;_.Sw(_.g8I,"learning-journey-quiz-view-model",{props:{data:_.Ih,className:_.Ih}});var blR=_.c(function(A){var H=_.r((0,_.Gq)(function(){var u;return{targetId:(u=A.data().config)==null?void 0:u.suspenseKey,contents:[A.data()]}})).next().value,k=_.wj().resolve(_.J7),d=function(){var u=H().contents.length>0?H().contents[0]:void 0;
return u==null?void 0:u.config},W=function(){var u;
return(u=d())==null?void 0:u.entityTriggerConfig},z=_.o9(YOI,function(){var u,B;
return(B=(u=W())==null?void 0:u.entityKey)!=null?B:""});
_.CA(function(){var u,B,h,O=(h=Number((u=W())==null?void 0:(B=u.invalidationTimestamp)==null?void 0:B.seconds))!=null?h:0,T,m,J;if(((J=Number((T=z())==null?void 0:(m=T.lastUpdated)==null?void 0:m.seconds))!=null?J:0)>O){var g;(u=(g=d())==null?void 0:g.continuationCommand)&&k.resolveCommand(u)}},"tC8nKe");
return _.x("yt-suspense-view-model",{class:_.ER("ytSuspenseViewModelHost")},_.x(_.HG,{data:function(){var u;return(u=d())==null?void 0:u.contents}},{lockupViewModel:_.oW}))},"He");var Lr3=_.c(function(A){var H=_.SD(A,{palette:void 0,isLastItem:!1}),k=H.palette,d=H.isLastItem,W=function(){return A.data().isHighlighted},z=function(){var h;
return cpl((h=k())==null?void 0:h.iconDisabledColor)},u=function(){var h;
return cpl((h=k())==null?void 0:h.primaryTitleColor)},B=function(){var h;
return cpl((h=k())==null?void 0:h.secondaryTitleColor)};
H={};return _.x("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.P8(_.OF(function(){return A.data().rendererContext}))},_.x(_.HG,{data:function(){return A.data().thumbnail}},{thumbnailViewModel:QY}),_.x("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.x("div",{class:_.ER("ytMacroMarkerListItemViewModelTimeDescription",(H.ytMacroMarkerListItemViewModelHighlighted=W,H)),
style:_.Mt({"background-color":function(){return W()?u():z()},
color:function(){return W()?"":B()}})},_.x(_.j$,{text:function(){return A.data().timestamp}})),_.x("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Mt({"background-color":function(){return d()?"transparent":z()}})}),_.x("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(W()?u():B())}},_.x(_.j$,{text:function(){return A.data().title}}))))},"Ie");_.Dr=_.c(function(A){function H(QW){K("transform:translateX("+(_.pZ("HTML_DIR")==="rtl"?"":"-")+QW+"px)")}
function k(QW){return Math.min(Math.max(QW,0),D()-Z())}
function d(QW){var mG=p()+eN();if(!W())return 0;QW===void 0&&(QW=Math.round(Z()/mG)||1);return QW*mG}
var W=function(){return A.data().items||[]},z=function(){return A.data().previousButton},u=function(){return A.data().nextButton},B=function(){var QW,mG;
return(mG=(QW=A.disableArrows)==null?void 0:QW.call(A))!=null?mG:!1},h=function(){var QW;
return!((QW=A.forceNarrowLayout)==null||!QW.call(A))},O=_.be(function(){var QW;
return!((QW=A.centerAlignItems)==null||!QW.call(A))&&D()<=Z()},void 0,"iGOqxd"),T=_.GP("horizontal-shelf-view-model"),m=_.GP("div"),J=_.r(_.RV(0,void 0,"tieKmf")),g=J.next().value,v=J.next().value;
J=_.r(_.RV(0,void 0,"W2lvv"));var y=J.next().value,X=J.next().value,D=y;y=_.r(_.RV("",void 0,"PEePkc"));J=y.next().value;var K=y.next().value;y=_.r(_.RV(0,void 0,"c7a4W"));var N=y.next().value,U=y.next().value,p=N;y=_.r(_.RV(0,void 0,"KGhRJf"));N=y.next().value;var M=y.next().value,Z=N;y=_.r(_.RV(!1,void 0,"fgWgyc"));var WV=y.next().value,hA=y.next().value;y=_.r(_.RV(0,void 0,"pe79rc"));N=y.next().value;var qv=y.next().value,eN=N;y=_.r(_.RV(0,void 0,"CTqisc"));var mr=y.next().value,Cl=y.next().value;
y=_.r(_.RV(0,void 0,"S2Yf1b"));var pl=y.next().value,UC=y.next().value;y=_.r(_.RV("50%",void 0,"kjP5ke"));var hk=y.next().value,eA=y.next().value,lI=function(){var QW,mG=(QW=A.data())==null?void 0:QW.responsiveContainerConfiguration,nN,G0;return mG?Lh(mG==null?void 0:mG.responsiveSize):(G0=(nN=A.sizing)==null?void 0:nN.call(A))!=null?G0:"STANDARD"},Rp=function(){var QW,mG=(QW=A.data())==null?void 0:QW.responsiveContainerConfiguration;
return mG?mG.enableContentSpecificAspectRatio===!1:!1};
y=_.be(function(){return!B()&&g()>0},void 0,"jT8Bud");
N=_.be(function(){return!B()&&g()<D()-Z()},void 0,"mt4gsb");
var vj=function(){T.value!==null&&Y1()},T0;
_.CZ(function(){Y1();window.ResizeObserver?(T0=new ResizeObserver(_.hK(vj,0)),T0.observe(T.value)):window.addEventListener("resize",vj)});
_.aV(function(){if(window.ResizeObserver){var QW;(QW=T0)==null||QW.disconnect()}else window.removeEventListener("resize",vj)});
var Y1=function(){var QW=T.value.clientWidth,mG=A.includeMargin!==void 0?A.includeMargin():!1,nN;var G0=A.hasPeek!==void 0?A.hasPeek():!((nN=A.data())==null||!nN.hasPeek);QW=_.b2({containerWidth:QW,hasPeek:G0,sizing:lI(),marginSettings:mG?h()?4:1:0});qv(QW.gutter);Cl(QW.margin);U(QW.itemWidth);hA(QW.maxContainerWidth<528||h());M(QW.maxContainerWidth);W()&&X((QW.itemWidth+QW.gutter)*W().length-QW.gutter);if(W()){var $Z;if((($Z=A.thumbnailAspectRatio)==null?void 0:$Z.call(A))!==void 0){var F9;eA(p()/
dsW((F9=A.thumbnailAspectRatio)==null?void 0:F9.call(A))/2+"px")}else eA("50%")}},ze={},Tf={};
return _.x("horizontal-shelf-view-model",{class:_.ER("ytwHorizontalShelfViewModelHost",A.className),el:T},_.x(_.R,{cond:function(){var QW;return A.data().header&&!((QW=A.horizontalShelfExperiments)==null?0:QW.call(A).hideHeader)},
then:function(){return _.x("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Mt({width:function(){return Z()+"px"},
padding:function(){return"0 "+mr()+"px"}})},_.x(_.HG,{data:function(){return A.data().header}},{sectionHeaderViewModel:function(QW){return _.x(_.kG,{data:QW.data,
disableHorizontalPadding:!0,forceSmallLayout:WV,useResponsiveLayout:!0})}}))}}),_.x("div",{class:_.ER("ytwHorizontalShelfViewModelOuterContainer",(ze.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return O()},ze)),
style:_.Mt({"margin-top":function(){var QW,mG=A.data().header&&!((QW=A.horizontalShelfExperiments)==null?0:QW.call(A).hideHeader),nN;return(((nN=A.ensureMarginTop)==null?0:nN.call(A))&&!mG?12:0)+"px"}})},_.x("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Mt({width:function(){return Z()+"px"},
padding:function(){return"0 "+mr()+"px"},
overflow:function(){return B()?"auto":"hidden"}})},_.x("div",{class:_.ER("ytwHorizontalShelfViewModelItems",(Tf.ytwHorizontalShelfViewModelCenterAlignItems=function(){return O()},Tf)),
el:m,style:J},_.x(_.HG,{data:W},{macroMarkerListItemViewModel:function(QW,mG){return _.x("div",{style:_.Mt({width:function(){return p()+"px"},
"margin-right":function(){return(mG()===W().length-1?0:eN())+"px"}})},_.x(Lr3,{data:QW.data,
palette:_.DS(A.palette),isLastItem:function(){return mG()===W().length-1}}))},
lockupViewModel:function(QW,mG){var nN=QW.data;return _.x("div",{"on:focusin":_.lc(function(){var G0=mG();G0!==pl()&&(G0<pl()?v(k(g()-d(1))):v(k(g()+d(1))),H(g()),UC(G0));return!0}),
style:_.Mt({width:function(){return p()+"px"},
"margin-right":function(){return(mG()===W().length-1?0:eN())+"px"}})},_.x(_.oW,{data:nN,
containerType:4,sizing:lI,protectBackground:A.protectBackground,thumbnailFixedWidth:function(){return psI(nN())+"px"},
thumbnailTargetWidth:function(){return psI(nN())},
force16By9ThumbnailAspectRatio:Rp}))},
suspenseViewModel:function(QW,mG){return _.x("div",{style:_.Mt({width:function(){return p()+"px"},
"margin-right":function(){return(mG()===W().length-1?0:eN())+"px"}})},_.x(blR,{data:QW.data}))}}))),_.x(_.R,{cond:y,
then:function(){return _.x("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Mt({top:function(){return hk()}})},_.x(_.HG,{data:z},{buttonViewModel:function(QW){return _.x(_.U7,{data:QW.data,
onClick:function(){v(k(g()-d(void 0)));H(g())}})}}))}}),_.x(_.R,{cond:N,
then:function(){return _.x("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Mt({top:function(){return hk()}})},_.x(_.HG,{data:u},{buttonViewModel:function(QW){return _.x(_.U7,{data:QW.data,
onClick:function(){v(k(g()+d(void 0)));H(g())}})}}))}})))},"Je");
_.Dr.idomCompat=!0;var v8R=_.c(function(A){var H=function(){return A.data().targetId||""},k=function(){var y;
return((y=A.data())==null?void 0:y.expansionEntityKey)||""},d=_.o9(_.IUC,k),W=!0,z=function(){var y;
return((y=d())==null?void 0:y.value)===H()},u=function(y){_.XI(_.kH("stringEntity",k(),{key:k(),
value:y?H():""}))};
_.Sp(function(){W=!1;A.data().isExpanded&&u(!0)});
var B=function(){if(z()){var y=!0;A.onCollapse!==void 0&&(y=A.onCollapse());y&&u(!1)}else u(!0)},h=_.lc(B),O=function(){var y;
return(((y=A.accordionStyle)==null?void 0:y.call(A))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},T=_.GP("div"),m=function(){var y,X;
return(X=(y=_.L(A.data().rendererContext,_.zF))==null?void 0:y.label)!=null?X:""},J=function(){var y,X;
return{disabled:(y=A.hideIfNotExpanded)==null?void 0:y.call(A),ariaHidden:(X=A.hideIfNotExpanded)==null?void 0:X.call(A)}},g={},v={};
return _.x("yt-accordion-item-view-model",{class:_.ER("ytAccordionItemViewModelHost",A.className,(g.ytAccordionItemViewModelExpanded=function(){return z()},g.ytAccordionItemViewModelHidden=function(){var y;
return(y=A.hideIfNotExpanded)==null?void 0:y.call(A)},g.ytAccordionItemViewModelMini=O,g)),
"data-target-id":H},_.x("div",{class:"ytAccordionItemViewModelContainer"},_.x("div",{class:"ytAccordionItemViewModelLeftSection","on:click":h,title:m,"aria-hidden":function(){var y;return(y=A.hideIfNotExpanded)==null?void 0:y.call(A)}},_.x(_.j$,{text:function(){return A.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:m})),_.x("div",{class:"ytAccordionItemViewModelRightSection"},_.x(_.HG,{data:function(){return z()?A.data().expandButton:A.data().collapseButton}},{buttonViewModel:function(y){return _.x(_.U7,{data:y.data,
className:"ytAccordionItemViewModelToggleButton",onClick:B,buttonOverrides:J})}}))),_.x("div",{class:"ytAccordionItemViewModelContainer"},_.x("div",{class:_.ER("ytAccordionItemViewModelContent",(v.ytAccordionItemViewModelExpandedSubtitle=function(){return z()},v)),
el:T,style:_.Mt({"max-height":function(){return W?"auto":z()?T.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!z()}},_.x(_.R,{cond:function(){return!O()},
then:function(){return _.x(_.j$,{text:function(){return A.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.x(_.HG,{data:function(){return A.data().content}},{horizontalShelfViewModel:function(y){return _.x(_.Dr,{data:y.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Le");_.yA3=_.c(function(A){var H=_.r((0,_.Gq)(A.data)).next().value,k=function(){return A.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},d=function(){return k()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},W=_.r(_.RV(!0,void 0,"VFpYAb")),z=W.next().value,u=W.next().value,B=function(){return d()&&z()},h=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){u(!z())}}},O=_.lc(function(){H().onTitleTap&&_.mu(H().onTitleTap||{})});
W={};return _.x("yt-accordion-view-model",{class:_.ER("ytAccordionViewModelHost",(W.ytAccordionViewModelMinimized=function(){return B()},W)),
"data-target-id":function(){return A.data().targetId||""}},_.x(_.R,{cond:function(){return d()||!!H().title},
then:function(){return _.x("div",{class:"ytAccordionViewModelHeader"},_.x("div",{class:"ytAccordionViewModelTitleSection"},_.x("div",{class:"ytAccordionViewModelTitleWrapper"},_.x(_.R,{cond:function(){return!!A.data().headerIcon},
then:function(){return _.x(_.n3,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var T;return(T=A.data().headerIcon)==null?void 0:T.iconType}})}}),_.x("div",{class:"ytAccordionViewModelTitle",
"on:click":O},_.x(_.j$,{className:"ytAccordionViewModelTitleText",text:function(){return H().title}})))),_.x("div",{class:"ytAccordionViewModelButtonSection"},_.x(_.R,{cond:d,
then:function(){return _.x(_.E7,{data:h,iconName:function(){return B()?"chevron_down":"chevron_collapse"}})}})))}}),_.x("div",{class:"ytAccordionViewModelContent"},_.x(_.HG,{data:function(){return H().contents}},{accordionItemViewModel:function(T){return _.x(v8R,{data:T.data,
className:"ytAccordionViewModelRow",accordionStyle:k,hideIfNotExpanded:B,onCollapse:function(){return d()?(u(!0),!1):!0}})}})),_.x("div",null,_.x(_.R,{cond:function(){return!d()&&(!!H().disclaimerFooter||!!H().footer)},
then:function(){return _.x("div",{class:"ytAccordionViewModelFooter"},_.x(_.j$,{text:function(){return H().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.x(_.HG,{data:function(){return A.data().footer}},{flexibleActionsViewModel:function(T){return _.x(_.mg,{data:T.data,
layout:0})}}))}})))},"Me");_.Sw(_.yA3,"yt-accordion-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=null,k=null,d,W=(d=_.wj().resolve(_.fZ(_.sF)))==null?void 0:d(),z=_.r(_.RV(!1,void 0,"CmEVtc"));d=z.next().value;var u=z.next().value;z=_.r(_.RV(!0,void 0,"yo9dR"));var B=z.next().value,h=z.next().value,O=_.GP("textarea",function(X){_.eY(264503,X,H,function(D){H=D})}),T=function(X){u(!0);
X={learningJourneyFormData:{query:X}};_.mu(A.data().searchEndpoint||{},{form:{formData:X}});return!1},m=_.lc(function(X){X.target.closest("button-view-model")&&u(!0)});
z=_.lc(function(){h(O.value.value.length===0)});
var J=_.lc(function(X){if(X.key==="Enter"&&!X.shiftKey&&!B()){var D=X.target;X.preventDefault();T(D.value)}}),g={},v={},y={};
return _.x("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.x("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.x(_.GA,{data:function(){return A.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.x("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.x("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.x("div",{class:_.ER("ytLearningJourneyZeroStateSearchBar",(g.ytLearningJourneyZeroStateSearchBarDark=W,g))},_.x("textarea",{class:_.ER("ytLearningJourneyZeroStateTextInput",(v.ytLearningJourneyZeroStateTextInputDark=W,v)),el:O,"on:keyup":z,"on:keydown":J,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.x("div",{class:_.ER("ytLearningJourneyZeroStateSearchButtonContainer",(y.ytLearningJourneyZeroStateSearchButtonContainerDark=W,y))},_.x(_.U7,{data:function(){return _.L(A.data().searchButton,_.vY)},
className:"search-button",onClick:function(){return T(O.value.value)},
buttonOverrides:function(){return{disabled:B(),style:W?"mono-inverse":"mono",size:"XL"}}}))),_.x(_.R,{cond:function(){return!!A.data().errorBanner},
then:function(){return _.x("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.P8(function(X){_.eY(264617,X,k,function(D){k=D})})},_.x(_.HG,{data:function(){return A.data().errorBanner}},{alertBannerViewModel:function(X){return _.x(_.Ncw,{data:X.data,
"client-ve-type":264617})}}))}})),_.x(_.R,{cond:d,
then:function(){return _.x("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.x(_.HG,{data:function(){return A.data().loader}},{learningJourneyLoaderViewModel:function(X){return _.x(_.Rm_,{data:X.data})}}))},
else:function(){return _.x("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.x(_.R,{cond:function(){return!!A.data().learningJourneyShelf},
then:function(){return _.x("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.x("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return A.data().learningJourneySectionTitle}),_.x(_.HG,{data:function(){return A.data().learningJourneyShelf}},{horizontalShelfViewModel:function(X){return _.x(_.Dr,{data:X.data,
centerAlignItems:!0})}}))}}),_.x("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.x("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return A.data().suggestedJourneySectionTitle}),_.x("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":m},_.x(_.HG,{data:function(){return A.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(X){return _.x(_.mg,{data:X.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ne"),"yt-learning-journey-zero-state",{props:{data:_.Ih}});var jb1=_.c(function(A){var H=A.data;return _.x("ytvl-live-leaderboard-item-action-content-view-model",{class:_.ER("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.x(_.j$,{text:function(){var k;return(k=H())==null?void 0:k.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.x(_.HG,{data:function(){return H().actionButton}},{buttonViewModel:function(k){return _.x(_.U7,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:k.data})}}))},"Oe");var IQ3=_.c(function(A){var H=A.data;return _.x("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.ER("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.x(_.j$,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var k;return(k=H())==null?void 0:k.displayName},
ellipsisTruncate:!0}),_.x(_.HG,{data:function(){return H().badge}},{buttonViewModel:function(k){return _.x(_.U7,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:k.data})}}))},"Pe");_.Sw(_.c(function(A){var H=A.data;return _.x("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.x("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.x(_.j$,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var k;return(k=H())==null?void 0:k.rank}})),_.x("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.x(_.HG,{data:function(){return H().avatar}},{avatarViewModel:_.RW})),_.x("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.x(_.HG,{data:function(){return H().content}},{liveLeaderboardItemChannelContentViewModel:IQ3,
liveLeaderboardItemActionContentViewModel:jb1})),_.x(_.j$,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var k;return(k=H())==null?void 0:k.points}}))},"Qe"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;return _.x("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.x(_.j$,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var k,d;return(k=H())==null?void 0:(d=k.ranking)==null?void 0:d.rank}}),_.x("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.x(_.HG,{data:function(){return H().avatar}},{avatarViewModel:_.RW})),_.x(_.j$,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var k,d;return(k=H())==null?void 0:(d=k.channelContent)==null?void 0:d.channelName}}),_.x(_.j$,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var k;return(k=H())==null?void 0:k.points}}))},"Re"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Ih}});var YCB=_.c(function(A){A=_.SD(A,{wrapper:!1}).wrapper;return _.x(_.R,{cond:A,then:function(){return _.x("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.x("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.x("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Se");
YCB.idomCompat=!0;var PI_=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],GfI=_.c(function(A){var H=A.data;var k=_.P8(),d=_.be(function(){return H().command},void 0,"fyYsT");
_.CA(function(){d()&&_.OR(d(),{form:{element:k.value}})},"B0nxdb");
return _.x("div",{el:k,class:"YtQrCodeRendererHostContainer"},_.x(_.R,{cond:function(){return H().qrCodeImage},
then:function(W){return _.x(_.GA,{data:W,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.x(_.R,{cond:function(){return H().spinner},
then:function(){return _.x(YCB,null)}})}}),_.x(_.R,{cond:function(){return H().label},
then:function(W){return _.x(_.j$,{text:W,className:"YtQrCodeRendererHostLabel"})}}),_.x(_.R,{cond:function(){return H().labels},
then:function(W){return _.x("div",{class:"YtQrCodeRendererHostLabels"},_.x(_.Ix,{each:W},function(z){return _.x(_.j$,{text:z})}))}}))},"Ve");_.Sw(_.c(function(A){var H=A.data;var k=_.be(function(){return H().qrEntityKey},void 0,"LmZ2xf"),d=_.be(function(){return H().deleteEntityOnDismiss},void 0,"my0Tzb"),W=_.be(function(){return H().command},void 0,"hzECIb"),z=_.o9(EQm,k);
A=_.be(function(){return H().qrCodeImage},void 0,"AnD9rc");
var u=_.be(function(){return H().style&&PI_.includes(H().style)},void 0,"f5fZv"),B=_.NV({visibilityCallback:function(h){h&&W()&&_.OR(W())},
showOption:{calledOnce:!0,state:"visible"}});_.CZ(function(){_.aV(function(){d()&&k()&&_.FI().dispatch(_.kH("qrCodeEntity",k()))})});
return _.x("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.P8(B)},_.x(_.R,{cond:u,then:function(){return _.x(_.R,{cond:z,then:function(h){return _.x(GfI,{data:h})}})}}),_.x(_.R,{cond:A,
then:function(h){return _.x(_.GA,{data:h,alt:""})}}))},"Te"),"yt-qr-code-renderer",{props:{data:_.Ih}});var XV3=_.c(function(A){var H=function(){return _.h1(1728053247&(A.barColor!==void 0?$H(A.barColor()):4278190080))};
return _.x("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.x("div",{class:"ytVideoOverviewGhostCardDetails"},_.x(FrM,{animationDelay:0,percentWidth:100,barColor:function(){return H()}}),_.x(FrM,{animationDelay:600,
percentWidth:60,barColor:function(){return H()}})))},"We"),FrM=_.c(function(A){return _.x("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+A.percentWidth()+"%"}},_.x("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var H=A.animationDelay(),k=A.barColor();return"animation-delay:"+H+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+k+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Xe");var DvV,SCI;DvV=_.yP.inlinePreviewEnabledSelector;_.CIR=_.c(function(A){function H(D){u(D)}
var k=A.data;var d=_.FQ("yt-video-overview-view-model"),W=_.P8();A=_.r(_.RV(-1,void 0,"kc60qe"));var z=A.next().value,u=A.next().value;A=_.r(_.RV(0,void 0,"YSTbVe"));var B=A.next().value,h=A.next().value,O={},T=_.o9(Qtf,function(){return k().asyncDataEntityKey}),m=_.oy(DvV);
A=_.wj().resolve(_.fZ(EbZ));var J=function(){var D;if((D=T())==null?0:D.videoOverviewViewModel){var K;return _.L((K=T())==null?void 0:K.videoOverviewViewModel,oTi)}return k()};
A&&d&&A({enabled:function(){return m()},
itemPlaybackModel:function(){var D;return(D=J())==null?void 0:D.itemPlayback},
thumbnailElRef:function(){return O.thumbnailElRef},
containerElRef:d,options:function(){return{thumbnail:O.thumbnail,thumbnailOverlays:O.thumbnailOverlays||[],thumbnailSize:O.thumbnailSize,mouseleaveCallback:function(){}}}});
_.CZ(function(){var D,K=d==null?void 0:(D=d.value)==null?void 0:D.clientWidth;K&&h(Math.min((K-24)/4-8,72))});
var g=function(){var D;return((D=J())==null?void 0:D.headerSubtext)!==void 0?!0:!1},v=function(){var D,K=$H((D=J())==null?void 0:D.titleColor);
return K?"color: "+_.h1(K)+";":void 0},y=function(){var D,K=$H((D=J())==null?void 0:D.subtextColor);
return K?"color: "+_.h1(K)+";":void 0},X=function(){return _.x("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.x("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return v()}},_.x(_.j$,{text:function(){var D;
return(D=J())==null?void 0:D.headerText}})),_.x(_.R,{cond:g,
then:function(){return _.x("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.x("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return y()}},_.x(_.n3,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.x("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return y()}},_.x(_.j$,{text:function(){var D;
return(D=J())==null?void 0:D.headerSubtext}})))}}))};
A={};return _.x("yt-video-overview-view-model",{class:_.ER("ytGenAiVideoOverviewViewModelHost",(A.ytGenAiVideoOverviewViewModelMweb=!1,A.ytGenAiVideoOverviewViewModelDesktop=!0,A)),el:d,style:function(){var D,K=$H((D=J())==null?void 0:D.backgroundColor);return K?"background-color: "+_.h1(K)+";":void 0}},_.x(_.R,{cond:function(){var D;
return(D=J())==null?void 0:D.isLoading},
then:function(){return _.x(XV3,{barColor:function(){var D;return(D=J())==null?void 0:D.titleColor}})},
else:function(){return _.x(_.sD,null,null,_.x("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.x(_.HG,{data:function(){var D;return(D=J())==null?void 0:D.thumbnail}},{thumbnailViewModel:function(D){return _.x(QY,{data:D.data,
aspectRatio:0,playbackRef:V4v(O),width:9999})}})),_.x("div",{class:"ytGenAiVideoOverviewViewModelDetails"},X(),_.x(_.R,{cond:function(){var D,K,N,U;
return((D=J())==null?void 0:(K=D.listItems)==null?void 0:K.length)!==void 0&&((N=J())==null?void 0:(U=N.listItems)==null?void 0:U.length)>0?!0:!1},
then:function(){return _.x("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:W},_.x(_.Ix,{each:function(){var D;return(D=J())==null?void 0:D.listItems}},function(D,K){return _.x(SCI,{image:D.image,
index:K,isSelected:function(){return K()===z()},
onClick:H,itemWidth:B})}))}}),_.x("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.x("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return v()}},_.x(_.j$,{text:function(){var D,K,N,U,p,M,Z;
return(Z=(D=J())==null?void 0:(K=D.listItems)==null?void 0:(N=K[z()])==null?void 0:N.headline)!=null?Z:(U=J())==null?void 0:(p=U.listItems)==null?void 0:(M=p[0])==null?void 0:M.headline}})),_.x("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return y()}},_.x(_.j$,{text:function(){var D,K,N,U,p,M,Z;
return(Z=(D=J())==null?void 0:(K=D.listItems)==null?void 0:(N=K[z()])==null?void 0:N.subtext)!=null?Z:(U=J())==null?void 0:(p=U.listItems)==null?void 0:(M=p[0])==null?void 0:M.subtext}})))))}}))},"Ye");
SCI=_.c(function(A){var H=A.image;var k=A.itemWidth;var d=A.index;var W=A.isSelected;var z=A.onClick;A=_.lc(function(){d!==void 0&&z!==void 0&&z(d());return!1});
var u={};return _.x("div",{class:_.ER("ytGenAiVideoOverviewViewModelCarouselItem",(u.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return W==null?void 0:W()},u)),
style:function(){return"width: "+k()+"px;"},
"on:click":A},_.x(_.GA,{data:H,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.x(_.R,{cond:function(){return W==null?void 0:W()},
then:function(){return _.x("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.x("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ze");
_.CIR.idomCompat=!0;_.Sw(_.CIR,"yt-video-overview-view-model",{props:{data:_.Ih}});_.Kre=_.c(function(A){var H=A.data;var k=A.topbarOffset;var d,W=((d=_.wj().resolve(_.fZ(_.sF)))==null?void 0:d())||!1;return _.x("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var z=H();var u,B,h=W?(u=z.config)==null?void 0:u.darkThemeBackgroundColor:(B=z.config)==null?void 0:B.lightThemeBackgroundColor;z=h?_.iw(h):void 0;z="background-color: "+z+";";k!==void 0&&(z+="top: -"+k()+"px;");return z},
"aria-hidden":!0},_.x(_.R,{cond:function(){var z,u,B;return!!((z=H().backgroundImageConfig)==null?0:(u=z.image)==null?0:(B=u.sources)==null?0:B.length)},
then:function(){return _.x(_.GA,{data:function(){var z;return(z=H().backgroundImageConfig)==null?void 0:z.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.x("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+V5X(W,H().gradientColorConfig)+";"}}))},"$e");
_.Kre.idomCompat=!0;var aQB=_.c(function(A){var H=A.data;var k=A.isOverlay;return _.x("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.x("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.x(_.HG,{data:function(){return H().header}},{sectionHeaderViewModel:function(d){return _.x(_.kG,{data:d.data,
isOverlay:k})}})),_.x("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.x(_.HG,{data:function(){return H().channelInfoButtons}},{flexibleActionsViewModel:_.mg})),_.x("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.x(_.HG,{data:function(){return H().description}},{descriptionPreviewViewModel:function(d){return _.x(_.sf,{data:d.data,
isOverlay:k})}})))},"af");
aQB.idomCompat=!0;var cAI=_.c(function(A){var H=A.data;var k={};return _.x("factoid-view-model",{class:_.ER("ytwFactoidViewModelHost",(k.ytwFactoidViewModelHostOverlay=A.isOverlay,k))},_.x(_.j$,{text:function(){return H().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.x(_.j$,{text:function(){return H().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bf");
cAI.idomCompat=!0;var pVM=_.c(function(A){var H=A.data;var k=A.isOverlay;return _.x("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.x(_.HG,{data:function(){return H().factoids}},{factoidViewModel:function(d){return _.x(cAI,{data:d.data,
isOverlay:k})}}))},"cf");
pVM.idomCompat=!0;_.QbB=_.c(function(A){var H=A.data;var k=A.isOverlay;return _.x("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.x(_.HG,{data:function(){return H().items}},{channelInfoViewModel:function(d){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(aQB,{data:d.data,
isOverlay:k}))},
coursePerksViewModel:function(d){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(xvI,{data:d.data,isOverlay:k}))},
descriptionPreviewViewModel:function(d){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(_.sf,{data:d.data,isOverlay:k}))},
factoidsRowViewModel:function(d){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(pVM,{data:d.data,isOverlay:k}))},
progressViewModel:function(d){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(ilV,{data:d.data,isOverlay:k}))}}))},"df");var VNR=_.c(function(A){return _.x("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.x(_.HG,{data:function(){return A.data().content}},{courseMetadataViewModel:function(H){return _.x(_.QbB,{data:H.data,
isOverlay:A.isOverlay})},
progressViewModel:function(H){return _.x(ilV,{data:H.data})}}))},"ef");var E8e=_.c(function(A){var H=A.data;A=A.className;var k=function(){var W;return _.hc((W=H())==null?void 0:W.rendererContext)},d={};
d=(d.dynamicTextViewModelHost=!0,d.dynamicTextViewModelHostTappable=function(){return k()},d);
return _.x("yt-dynamic-text-view-model",{el:_.P8(_.OF(function(){var W;return(W=H())==null?void 0:W.rendererContext})),
role:function(){return k()?"link":void 0},
tabindex:function(){return k()?0:void 0},
class:_.ER(A,d)},_.x("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var W,z,u;return(u=(z=_.L((W=H())==null?void 0:W.rendererContext,_.zF))==null?void 0:z.label)!=null?u:""}},_.x(_.j$,{text:function(){return H().text},
userInput:!0})))},"ff");
E8e.idomCompat=!0;_.S2=_.c(function(A){var H=A.data;var k=A.isPositionRelative;var d=_.UWX("(max-width: 527.9px)"),W=function(){var z,u;return(u=(z=H())==null?void 0:z.style)!=null?u:"IMAGE_BANNER_STYLE_FULL_BLEED"};
A={};return _.x("yt-image-banner-view-model",{el:_.P8(_.OF(function(){var z;return(z=H())==null?void 0:z.rendererContext})),
class:_.ER((A.ytImageBannerViewModelHost=!0,A.ytImageBannerViewModelInset=function(){return lEf(W())},A.ytImageBannerViewModelPositionAbsolute=function(){return _.pA(!0)&&!(k==null?0:k())},A.ytImageBannerViewModelSmallInset=function(){return lEf(W())&&d()},A.ytImageBannerViewModelTappable=function(){var z;
return _.hc((z=H())==null?void 0:z.rendererContext)},A))},_.x(_.R,{cond:function(){var z;
return(z=H())==null?void 0:z.image},
then:function(){return _.x(_.GA,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.x(_.HG,{data:function(){var z;
return(z=H())==null?void 0:z.overlays}},{thumbnailHoverOverlayViewModel:Oe}))},"gf");
_.S2.idomCompat=!0;var Uv1;Uv1=_.c(function(A){var H=A.condition;var k=A.content;return _.x(_.R,{cond:H,then:function(){return _.x("div",{class:"yt-page-header-view-model__scroll-container"},k())},
else:function(){return k()}})},"hf");
_.lQG=_.c(function(A){var H=A.data;var k=A.noPadding;var d=A.enableBanner;var W=A.cinematicContainerTopbarOffset;var z=A.allowCinematicContainerOverflow;var u=A.displayAsSidebar;var B=A.displayAsPanel;var h=A.alwaysUseMediumTextDescription;var O=t5v(),T=function(){return!!H().image||!!H().animatedImage},m=function(){return!!H().background},J=function(){return(u==null?0:u())||(B==null?0:B())?1:O()},g=function(){return J()===1},v=function(){return g()||J()===2},y=function(){return J()===4},X=function(){var mr=
H();
var Cl=!!H().heroImage;var pl=J(),UC=N8V(H()),hk=u==null?void 0:u(),eA=!mr.metadata,lI;if(lI=Cl?_.L(mr.heroImage,Q6G):_.L(mr.animatedImage||mr.image,Q6G)){mr=lI.style;var Rp=lI.layoutMode;if(Rp!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(lI=hyA(iql(lI)),Cl)Cl=EPb(pl,mr,Rp,lI,hk);else b:if(eA)Cl=pl===1?{size:48}:{size:72};else switch(pl){case 1:Cl={size:72};break b;case 2:Cl={size:120};break b;default:Cl=UC<4?{size:120}:{size:160}}else Cl=void 0}else Cl={size:0};return Cl};
A={};A=_.ER((A["yt-page-header-view-model"]=!0,A["yt-page-header-view-model--no-padding"]=function(){return!(k==null||!k())},A["yt-page-header-view-model--small-top-padding"]=function(){return g()&&!H().actions&&!(B==null?0:B())||J()===2&&!(T()||H().heroImage)},A["yt-page-header-view-model--small-bottom-padding"]=function(){return v()&&!H().actions&&!(B==null?0:B())},A["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(z==null?0:z())},A["yt-page-header-view-model--display-as-sidebar"]=
u,A));
var D={},K=_.ER((D["yt-page-header-view-model__page-header-headline"]=!0,D["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var mr;return(mr=X())==null?void 0:mr.allowFullWidth},D)),N=function(){var mr;
return v()&&!((mr=X())==null?0:mr.allowFullWidth)},U=function(){return g()&&(!!H().heroImage||T())&&N8V(H())>0},p=function(){return U()&&(B==null?void 0:B())};
D={};var M=_.ER((D["yt-page-header-view-model__page-header-title"]=!0,D["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!U()},D["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return U()&&!p()},D["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=p,D["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=m,D));
D={};var Z=_.ER((D["yt-page-header-view-model__page-header-headline-image"]=!0,D["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!H().heroImage&&v()},D));
D={};var WV=_.ER((D["yt-page-header-view-model__page-header-banner-container"]=d,D["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var mr;return(d==null?void 0:d())&&((mr=_.L(H().banner,_.ELA))==null?void 0:mr.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},D));
D={};var hA=_.ER((D["yt-page-header-view-model__page-header-content-metadata"]=!0,D["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=m,D));D={};var qv=_.ER((D["yt-page-header-view-model__page-header-flexible-actions"]=!0,D["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!H().metadata||v()},D["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!v()},D));
D={};var eN=_.ER((D["yt-page-header-view-model__page-header-attribution"]=!0,D["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=m,D));return _.x("yt-page-header-view-model",{class:A},_.x(_.R,{cond:m,then:function(){return _.x("div",{class:"yt-page-header-view-model__page-header-background"},_.x(_.HG,{data:function(){return H().background}},{cinematicContainerViewModel:function(mr){return _.x(_.Kre,{data:mr.data,
topbarOffset:W})}}))}}),_.x(Uv1,{condition:function(){return!(u==null||!u())},
content:function(){return _.x("div",{class:"yt-page-header-view-model__page-header-content"},_.x(_.R,{cond:function(){return(d==null?void 0:d())&&H().banner},
then:function(){return _.x("div",{class:WV},_.x(_.HG,{data:function(){return H().banner}},{imageBannerViewModel:_.S2}))}}),_.x("div",{class:K},_.x(_.R,{cond:T,
then:function(){return _.x(_.HG,{data:function(){var mr;if(!(mr=H().animatedImage)){mr=H();if(T()){var Cl=mr=Object.assign({},mr),pl=J(),UC=N8V(H()),hk=Cl.image,eA=_.L(hk,V3i),lI=eA==null?void 0:eA.avatar,Rp=_.L(lI,_.TV);if(hk&&lI&&Rp){switch(pl){case 1:Rp.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Rp.avatarImageSize="AVATAR_SIZE_XXL";break;default:UC<4?Rp.avatarImageSize="AVATAR_SIZE_XXL":Rp.avatarImageSize="AVATAR_SIZE_XXXL"}_.uc(lI,_.TV,Object.assign({},Rp));eA.avatar=Object.assign({},lI);_.uc(hk,
V3i,Object.assign({},eA));Cl.image=Object.assign({},hk)}}mr=mr.image}return mr}},{contentPreviewImageViewModel:function(mr){return _.x(_.to,{data:mr.data,
className:Z,imageSizeConfig:X})},
decoratedAvatarViewModel:function(mr){return _.x(_.TU,{data:mr.data,className:Z})}})}}),_.x(_.R,{cond:function(){return!!H().heroImage&&!N()},
then:function(){return _.x(_.HG,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function(mr){return _.x(_.to,{data:mr.data,
className:Z,imageSizeConfig:X})}})}}),_.x("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.x(_.R,{cond:function(){return!!H().heroImage&&N()},
then:function(){return _.x("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.x(_.HG,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function(mr){return _.x(_.to,{data:mr.data,
className:Z,imageSizeConfig:X})}}))}}),_.x(_.HG,{data:function(){return H().title}},{dynamicTextViewModel:function(mr){return _.x(E8e,{data:mr.data,
className:M})}}),_.x(_.HG,{data:function(){return H().metadata}},{contentMetadataViewModel:function(mr){return _.x(_.MO,{data:mr.data,
layout:function(){return g()?1:0},
className:hA,isOverlay:m,useMediumText:y})}}),_.x(_.R,{cond:function(){return H().description&&!g()},
then:function(){return _.x(_.HG,{data:function(){return H().description}},{descriptionPreviewViewModel:function(mr){return _.x(_.sf,{data:mr.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:m,maxLinesOverride:function(){return g()?void 0:1},
useMediumText:function(){return(h==null?void 0:h())||y()}})}})}}),_.x(_.R,{cond:function(){return H().attribution&&!v()},
then:function(){return _.x(_.HG,{data:function(){return H().attribution}},{attributionViewModel:function(mr){return _.x(NO,{data:mr.data,
className:eN,useMediumText:y})}})}}),_.x(_.R,{cond:function(){return H().actions&&!v()},
then:function(){return _.x(_.HG,{data:function(){return H().actions}},{flexibleActionsViewModel:function(mr){return _.x(_.mg,{data:mr.data,
layout:function(){return M5v(J())},
className:qv})}})}}))),_.x("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.x(_.R,{cond:function(){return H().description&&g()},
then:function(){return _.x(_.HG,{data:function(){return H().description}},{descriptionPreviewViewModel:function(mr){return _.x(_.sf,{data:mr.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:m,maxLinesOverride:function(){return g()?void 0:1},
useMediumText:function(){return(h==null?void 0:h())||y()}})}})}}),_.x(_.R,{cond:function(){return H().attribution&&v()},
then:function(){return _.x(_.HG,{data:function(){return H().attribution}},{attributionViewModel:function(mr){return _.x(NO,{data:mr.data,
className:eN,useMediumText:y})}})}}),_.x(_.R,{cond:function(){return H().actions&&v()},
then:function(){return _.x(_.HG,{data:function(){return H().actions}},{flexibleActionsViewModel:function(mr){return _.x(_.mg,{data:mr.data,
layout:function(){return M5v(J())},
className:qv})}})}})),_.x("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.x(_.HG,{data:function(){return H().bottomMetadataFlexibleContainer}},{flexibleContainer:function(mr){return _.x(VNR,{data:mr.data,
isOverlay:m})}})))}}))},"jf");
_.lQG.idomCompat=!0;_.Sw(_.c(function(A){var H=_.r(_.RV(!1,void 0,"qvRy4d")),k=H.next().value,d=H.next().value;return _.x("yt-official-card-view-model",{class:_.ER("ytOfficialCardViewModelHost",A.className),style:_.Mt({"background-color":function(){var W,z=$H((W=A.data())==null?void 0:W.backgroundColor);return z?_.h1(z):void 0}})},_.x(_.HG,{data:function(){return A.data().header}},{pageHeaderViewModel:function(W){return _.x(_.lQG,{data:W.data,
noPadding:!0})}}),_.x(_.HG,{data:function(){return A.data().contents}},{horizontalShelfViewModel:function(W){return _.x(_.Dr,{data:W.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.x(_.R,{cond:k,
then:function(){return _.x("div",{class:"ytOfficialCardViewModelExpandedContent"},_.x(_.HG,{data:function(){return A.data().expandedContents}},{horizontalShelfViewModel:function(W){return _.x(_.Dr,{data:W.data,
sizing:"MINI"})}}),_.x("div",{class:"ytOfficialCardViewModelCollapseButton"},_.x(_.HG,{data:function(){return A.data().collapseButton}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
onClick:function(){d(!k())}})}})))},
else:function(){return _.x("div",{class:"ytOfficialCardViewModelExpandButton"},_.x(_.HG,{data:function(){return A.data().expandButton}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
onClick:function(){d(!k())}})}}))}}))},"kf"),"yt-official-card-view-model",{props:{data:_.Ih,
className:_.Ih}});var tN_=_.c(function(A){var H,k=(H=_.wj().resolve(_.fZ(_.sF)))==null?void 0:H();return _.x("ytw-search-friction-view-model",{class:_.ER("ytwSearchFrictionViewModelHost",A.className)},_.x("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.x("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.x(_.R,{cond:function(){return k&&A.data().darkThemeImage?A.data().darkThemeImage:A.data().image},
then:function(d){return _.x(_.GA,{data:d,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.x(_.HG,{data:function(){return A.data().overflowMenuButton}},{buttonViewModel:function(d){return _.x(_.U7,{data:d.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.x(_.j$,{text:function(){return A.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.x(_.Ix,{each:function(){return A.data().bodyText||[]}},function(d){return _.x(_.j$,{text:d,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.x(_.HG,{data:function(){return A.data().actions}},{buttonViewModel:function(d){return _.x(_.U7,{data:d.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.x(_.j$,{text:function(){return A.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.x(_.j$,{text:function(){return A.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"lf");
tN_.idomCompat=!0;_.Sw(tN_,"ytw-search-friction-view-model",{props:{data:_.Ih,className:_.Ih}});_.CU=_.c(function(A){var H=_.GP("markdown-div"),k,d=(k=_.wj().resolve(_.fZ(_.sF)))==null?void 0:k();_.CA(function(){var W=H.value;var z=new YI1,u=new Map(z.JSC$9611_sanitizerTable.globalAttributePolicies);u.set("style",{policyAction:4});z.JSC$9611_sanitizerTable=new OX(z.JSC$9611_sanitizerTable.allowedElements,z.JSC$9611_sanitizerTable.elementPolicies,z.JSC$9611_sanitizerTable.allowedGlobalAttributes,u,z.JSC$9611_sanitizerTable.globallyAllowedAttributePrefixes);var B=["data-time"];if(B===void 0)u=
new Set(z.JSC$9611_sanitizerTable.globallyAllowedAttributePrefixes),u.add("data-"),z.JSC$9611_sanitizerTable=new OX(z.JSC$9611_sanitizerTable.allowedElements,z.JSC$9611_sanitizerTable.elementPolicies,z.JSC$9611_sanitizerTable.allowedGlobalAttributes,z.JSC$9611_sanitizerTable.globalAttributePolicies,u);else{u=new Set(z.JSC$9611_sanitizerTable.allowedGlobalAttributes);B=_.r(B);for(var h=B.next();!h.done;h=B.next()){h=h.value;if(h.indexOf("data-")!==0)throw Error("la`"+h);u.add(h)}z.JSC$9611_sanitizerTable=
new OX(z.JSC$9611_sanitizerTable.allowedElements,z.JSC$9611_sanitizerTable.elementPolicies,u,z.JSC$9611_sanitizerTable.globalAttributePolicies,z.JSC$9611_sanitizerTable.globallyAllowedAttributePrefixes)}u=new Set(z.JSC$9611_sanitizerTable.allowedGlobalAttributes);u.add("class");z.JSC$9611_sanitizerTable=new OX(z.JSC$9611_sanitizerTable.allowedElements,z.JSC$9611_sanitizerTable.elementPolicies,u,z.JSC$9611_sanitizerTable.globalAttributePolicies,z.JSC$9611_sanitizerTable.globallyAllowedAttributePrefixes);
_.ON(W,_.LAj(z.build(),ZQl(A.text())));fEr(H.value)},"CUInJc");
k={};return _.x("div",null,_.x("markdown-div",{class:_.ER("ytwMarkdownDivHost",A.className,(k.ytwMarkdownDivDark=d,k.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var W;return((W=A.isSmallText)==null?void 0:W.call(A))||!1},k.ytwMarkdownDivHostWrapCodeBlocks=function(){var W;
return((W=A.wrapCodeBlocks)==null?void 0:W.call(A))||!1},k.ytwMarkdownDivHostEnableDefaultStyling=function(){var W;
return!((W=A.disableDefaultStyling)==null?0:W.call(A))},k)),
el:H}))},"nf");
_.CU.idomCompat=!0;var NI_=_.c(function(A){var H=A.imageData;var k=_.DS(A.isInList,!1),d=function(){return k()?{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 _.x("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.x(_.R,{cond:function(){return H().image},
then:function(W){return _.x(_.GA,{data:W,alt:function(){return d().alt},
contentMode:function(){return d().contentMode},
targetWidth:function(){return d().targetWidth},
targetHeight:function(){return d().targetHeight},
className:function(){return d().className}})}}),_.x("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.x("div",{class:_.ER("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.x(_.j$,{text:function(){return H().title}})),_.x(_.Ix,{each:function(){var W;
return(W=H().description)!=null?W:[]}},function(W){return _.x("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.x(KU,{content:W}))})))},"of"),MNi=_.c(function(A){var H=A.list;
var k=function(){var d;return(d=H().items)!=null?d:[]};
return _.x("div",{class:"ytwGenAiRichTextViewModelListContent"},_.x(_.R,{cond:function(){return H().title},
then:function(d){return _.x("div",{class:_.ER("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.x(_.j$,{text:d}))}}),_.x(_.R,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.x("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.x(_.Ix,{each:k},function(d){return _.x("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.x(KU,{content:d,isInList:!0}))}))}}),_.x(_.R,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.x("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.x(_.Ix,{each:k},function(d){return _.x("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.x(KU,{content:d,isInList:!0}))}))}}),_.x(_.R,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.x("div",{class:"ytwGenAiRichTextViewModelImageList"},_.x(_.Ix,{each:k},function(d){return _.x("div",{class:"ytwGenAiRichTextViewModelListItem"},_.x(KU,{content:d,isInList:!0}))}))}}))},"pf"),n81=_.c(function(A){var H=A.table;
return _.x("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.x("thead",null,_.x("tr",null,_.x(_.Ix,{each:function(){var k,d;return(d=(k=H().header)==null?void 0:k.cells)!=null?d:[]}},function(k){return _.x("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.x(_.Ix,{each:function(){return k.contents}},function(d){return _.x(KU,{content:d})}))}))),_.x("tbody",null,_.x(_.Ix,{each:function(){var k;
return(k=H().rows)!=null?k:[]}},function(k){return _.x("tr",null,_.x(_.Ix,{each:function(){return k.cells}},function(d){return _.x("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.x(_.Ix,{each:function(){return d.contents}},function(W){return _.x(KU,{content:W})}))}))})))},"qf"),KU=_.c(function(A){var H=A.content;
var k=_.DS(A.isInList,!1),d=function(){var W,z;return(z=(W=H().contentBlock)==null?void 0:W.contents)!=null?z:[]};
return _.x("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.x(_.R,{cond:function(){return H().text},
then:function(W){return _.x(_.j$,{className:"ytwGenAiRichTextViewModelText",text:W})}}),_.x(_.R,{cond:function(){return H().image},
then:function(W){return _.x(NI_,{imageData:W,isInList:k})}}),_.x(_.R,{cond:function(){return H().list},
then:function(W){return _.x(MNi,{list:W})}}),_.x(_.R,{cond:function(){return H().contentBlock},
then:function(){return _.x("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.x(_.Ix,{each:d},function(W){return _.x(KU,{content:W,isInList:!1})}))}}),_.x(_.R,{cond:function(){return H().table},
then:function(W){return _.x(n81,{table:W})}}))},"rf"),ZlV=_.c(function(A){var H={};
H=_.u2("ytwGenAiRichTextViewModelHost",(H.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.k6("search_overview_link_style")),H));return _.x("gen-ai-rich-text-view-model",{class:H},_.x(KU,{content:function(){return A.data().content}}))},"sf");_.fQG=_.c(function(A){var H=A.data;var k=function(){var y;return((y=H().loadingUi)!=null?y:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},d=function(){return H().isLoading&&(k()==="UNSPECIFIED"||k()==="GHOST_CARD")},W=function(){return!H().isLoading},z=function(){return!!H().content&&!H().contents},u=function(){return!!H().contents},B=function(){return!!H().nextQueryButtons},h=function(){return H().isLoading&&k()==="INVISIBLE"},O=function(){var y,X;
return(X=(y=H().headerIcon)==null?void 0:y.iconType)!=null?X:""},T=function(){var y;
return(y=H().content)!=null?y:""},m=function(){return!!H().sourcesSection},J,g=!((J=_.wj().resolve(_.fZ(_.sF)))==null||!J()),v=_.be(function(){var y=[],X=H().contents;
if(X)for(var D=0;D<X.length;D++){var K=_.L(X&&X[D],wfZ);K&&y.push(K)}return y},void 0,"gcCsZb");
_.CZ(function(){H().isLoading||_.OH("so_re",void 0,"search_overview_answer")});
return _.x("ytd-overview-answer-view-model",{class:function(){var y={};y=(y.ytdOverviewAnswerViewModelHost=!0,y.ytdOverviewAnswerViewModelDarkBackground=g&&!h(),y.ytdOverviewAnswerViewModelLightBackground=!g&&!h(),y);return _.u2(y)}},_.x(_.R,{cond:function(){return!h()},
then:function(){return _.x(_.sD,null,_.x("h2",null,_.x("div",{class:"ytdOverviewAnswerViewModelHeader"},_.x(_.R,{cond:O,then:function(y){return _.x("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.x(_.n3,{icon:y}))}}),_.x("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.x("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return H().headerText}),_.x("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.x(_.j$,{text:function(){return H().headerSubtext}}))))),_.x(_.R,{cond:d,
then:function(){return _.x(wsA,null)}}),_.x(_.R,{cond:W,
then:function(){return _.x(_.sD,null,_.x(_.R,{cond:z,then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelText"},_.x(_.CU,{text:T,isSmallText:!0}))}}),_.x(_.R,{cond:u,
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelRichText"},_.x(_.Ix,{each:v},function(y){return _.x(ZlV,{data:y})}))}}),_.x(_.R,{cond:B,
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.x(_.HG,{data:function(){return H().nextQueryButtons}},{buttonViewModel:function(y){return _.x(_.U7,{data:y.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Dr}))}}),_.x("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.x("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.x(_.R,{cond:function(){return!!_.L(H().likeButtonViewModel,_.vp)&&!!_.L(H().dislikeButtonViewModel,_.yj)},
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.x(_.gq,{data:function(){return _.L(H().likeButtonViewModel,_.vp)},
disableIconAnimation:!0}),_.x(_.Jz,{data:function(){return _.L(H().dislikeButtonViewModel,_.yj)}}))}})),_.x(_.R,{cond:function(){var y;
return(y=H().sourcesSection)==null?void 0:y.headerText},
then:function(y){return _.x("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.x(_.j$,{text:y}))}})),_.x(_.R,{cond:m,
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelSources"},_.x(_.HG,{data:function(){var y;return(y=H().sourcesSection)==null?void 0:y.sourcesShelf}},{buttonViewModel:_.U7,
horizontalShelfViewModel:function(y){return _.x(_.Dr,{data:y.data,includeMargin:!0,hasPeek:!0})}}))}}),_.x(_.R,{cond:function(){return H().disclaimerText},
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.x(_.j$,{text:function(){return H().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"tf");var wVR=_.c(function(A){var H=_.SD(A,{}).data;return _.x("yt-shopping-content-line-item-view-model",{class:_.ER("ytShoppingContentLineItemViewModelHost")},_.x(_.j$,{text:function(){var k;return(k=H().text)==null?void 0:k.attributedString}}))},"uf");_.aZ=_.c(function(A){A=_.SD(A,{});var H=A.data,k={};return _.x("yt-shopping-content-line-view-model",{class:_.ER("ytShoppingContentLineViewModelHost",A.className,(k.ytShoppingContentLineViewModelTruncateText=function(){return!H().wrapContent},k)),
style:_.Mt({"--shopping-content-line-gap":function(){return H().itemGap?H().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return H().lineHeight?H().lineHeight+"px":void 0}})},_.x(_.Ix,{each:function(){return(H().items||[]).map(function(d){return _.L(d,kBA)}).filter(function(d){return!!d})}},function(d){return _.x(wVR,{data:d})}))},"vf");var o8Q=_.c(function(A){var H=A.data;var k=function(){var z;return((z=H().image)==null?void 0:z.height)||48},d=function(){var z;
return((z=H().image)==null?void 0:z.width)||48},W=function(){return"width: "+d()+"px; height: "+k()+"px;"};
return _.x("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var z,u,B,h=((z=_.wj().resolve(_.fZ(_.sF)))==null?0:z())?(u=H())==null?void 0:u.darkThemeBackgroundColor:(B=H())==null?void 0:B.lightThemeBackgroundColor;return"background-color: "+(h?_.h1(h):"")+";"},
el:_.P8(_.OF(function(){var z;return(z=H())==null?void 0:z.rendererContext})),
role:"link",tabindex:0},_.x(_.R,{cond:function(){var z,u;return(u=(z=H().image)==null?void 0:z.image)!=null?u:H().thumbnail},
then:function(z){return _.x("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var u;return"background-color: "+(((u=H().image)==null?0:u.backgroundColor)?_.h1(H().image.backgroundColor):"")+";"+W()}},_.x(_.GA,{data:z,
height:k,width:d,style:W,alt:""}))}}),_.x("div",{class:"ytShoppingDescriptionItemViewModelText"},_.x(_.HG,{data:function(){return H().line1}},{shoppingContentLineViewModel:function(z){return _.x(_.aZ,{data:z.data})}}),_.x(_.HG,{data:function(){return H().line2}},{shoppingContentLineViewModel:function(z){return _.x(_.aZ,{data:z.data})}}),_.x(_.HG,{data:function(){return H().line3}},{shoppingContentLineViewModel:function(z){return _.x(_.aZ,{data:z.data})}})))},"wf");var $v3=_.c(function(A){var H=A.data;var k=A.active;var d=_.GP("transcript-segment-view-model");_.CA(function(){var W,z,u,B=((W=_.wj().resolve(_.fZ(_.sF)))==null?0:W())?(z=H())==null?void 0:z.darkThemeColorPalette:(u=H())==null?void 0:u.lightThemeColorPalette;B&&(B.additiveBackground&&d.value.style.setProperty("--timestamp-active-background-color",_.h1(B.additiveBackground)),B.textSecondary&&d.value.style.setProperty("--timestamp-active-color",_.iw(B.textSecondary)))},"TnVCnb");
A={};return _.x("transcript-segment-view-model",{class:_.ER("ytwTranscriptSegmentViewModelHost",(A.ytwTranscriptSegmentViewModelHostActive=k,A.ytwTranscriptSegmentViewModelHostModern=_.b("enable_timeline_view_modern_transcript")||_.b("enable_timeline_view_modern_transcript_fe"),A)),el:d},_.x(_.R,{cond:function(){var W;return(W=H())==null?void 0:W.timestamp},
then:function(W){var z={};return _.x(_.sD,null,_.x("div",{class:_.ER("ytwTranscriptSegmentViewModelTimestamp",(z.ytwTranscriptSegmentViewModelTimestampActive=k,z)),"aria-hidden":!0},W),_.x("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var u=W().split(":").map(Number),B=_.r(u.reverse());u=B.next().value;var h=B.next().value;B=B.next().value;return _.PBr({hours:B,minutes:h,seconds:u})}))}}),_.x(_.j$,{text:function(){var W,z,u;
return(u=(W=H())==null?void 0:W.attributedText)!=null?u:{content:(z=H())==null?void 0:z.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yf");var AkM=_.c(function(A){var H=A.data;return _.x("div",{class:"videoAttributesSectionViewModelHeader"},_.x("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.x("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return H().headerTitle}),_.x(_.R,{cond:function(){return H().headerInfoButton},
then:function(){return _.x(_.HG,{data:function(){return H().headerInfoButton}},{buttonViewModel:function(k){return _.x(_.U7,{data:k.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.x(_.R,{cond:function(){return H().headerSubtitle},
then:function(){return _.x("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return H().headerSubtitle})}}))},"zf"),HNR=_.c(function(A){function H(y){return Math.max(Math.min(y,0),O()-B())}
var k=A.data;var d;A=_.GP("div",function(y){var X=function(){T(y.clientWidth)};
X();window.ResizeObserver&&(d=new ResizeObserver(X),d.observe(y))});
var W=_.GP("div",function(y){h(y.scrollWidth)}),z=_.r(_.RV(0,void 0,"C3XQAe")),u=z.next().value;
z=z.next().value;var B=u,h=z;z=_.r(_.RV(0,void 0,"db7y3"));u=z.next().value;z=z.next().value;var O=u,T=z;u=_.r(_.RV(0,void 0,"RchC7"));var m=u.next().value,J=u.next().value;_.aV(function(){var y;(y=d)==null||y.disconnect()});
var g=function(){J(H(m()+O()))},v=function(){J(H(m()-O()))};
return _.x("yt-video-attributes-section-view-model",null,_.x("div",{class:"videoAttributesSectionViewModelHost"},_.x(_.R,{cond:function(){return k().headerTitle},
then:function(){return _.x(AkM,{data:k})}}),_.x("div",{class:_.ER("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:A},_.x("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.Mt({transform:function(){var y=m();_.pZ("HTML_DIR")==="rtl"&&(y*=-1);return"translateX("+y+"px)"}}),
el:W},_.x(_.HG,{data:function(){return k().videoAttributeViewModels}},{videoAttributeViewModel:aiw}))),_.x(_.HG,{data:function(){return k().footerButton}},{buttonViewModel:function(y){return _.x(_.U7,{data:y.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.x(_.R,{cond:function(){return m()<0&&k().previousButton},
then:function(){return _.x("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.x(_.HG,{data:function(){return k().previousButton}},{buttonViewModel:function(y){return _.x(_.U7,{data:y.data,
onClick:g})}}))}}),_.x(_.R,{cond:function(){return m()>O()-B()&&k().nextButton},
then:function(){return _.x("div",{class:"videoAttributesSectionViewModelRightArrow"},_.x(_.HG,{data:function(){return k().nextButton}},{buttonViewModel:function(y){return _.x(_.U7,{data:y.data,
onClick:v})}}))}})))},"Af");
HNR.idomCompat=!0;var spI=_.c(function(A){var H=A.data;var k=A.active;var d={},W={};return _.x("timeline-item-view-model",{class:_.ER("ytwTimelineItemViewModelHost",(d.ytwTimelineItemViewModelHostChapterChild=A.chapterChild,d.ytwTimelineItemViewModelModern=_.b("enable_timeline_view_modern_transcript")||_.b("enable_timeline_view_modern_transcript_fe"),d))},_.x("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.x("div",{class:_.ER("ytwTimelineItemViewModelTimestamp",(W.ytwTimelineItemViewModelTimestampActive=
k,W))},function(){return H().timestamp})),_.x("div",{class:"ytwTimelineItemViewModelContentItems"},_.x(_.HG,{data:function(){return H().contentItems}},{transcriptSegmentViewModel:function(z){return _.x($v3,{data:z.data,
active:k})},
videoAttributesSectionViewModel:HNR})))},"Bf");var k0_=_.c(function(A){var H=A.data;A={};return _.x("timeline-chapter-view-model",{class:_.ER("ytwTimelineChapterViewModelHost")},_.x("div",{class:_.ER("ytwTimelineChapterViewModelTitle",(A.ytwTimelineChapterViewModelModern=_.b("enable_timeline_view_modern_transcript")||_.b("enable_timeline_view_modern_transcript_fe"),A))},function(){return H().title}),_.x(_.HG,{data:function(){return H().contents}},{timelineItemViewModel:function(k){return _.x(spI,{data:k.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(k){return _.x(HNR,{data:k.data})}}))},"Cf");var dQR=_.c(function(A){var H=A.data;var k=_.GP("macro-markers-panel-item-view-model"),d=_.o9(_.ajm,function(){var z;return(z=H().markersEngagementPanelSyncEntityKey)!=null?z:""}),W=function(){var z;
return((z=d())==null?void 0:z.activeItemIndex)===H().index};
A=_.lc(function(z){var u,B,h,O,T;return _.e(function(m){if(m.nextAddress==1)return z.stopPropagation(),_.xH(_.eu(z),k.value,["A".toString(),"BUTTON".toString()])?m.return():(u=_.h7(H().onTap))?m.yield(_.NN(),2):m.return();B=m.yieldResult;O=(h=_.L(u,_.Yr))==null?void 0:h.startTimeSeconds;O===void 0||(T=B)!=null&&T.seekTo(O,!0);_.EN(m)})});
return _.x("macro-markers-panel-item-view-model",{class:_.ER("ytwMacroMarkersPanelItemViewModelHost",{"is-active":W}),el:k,"on:click":A,tabindex:function(){return _.L(H().item,dYw)?void 0:0},
role:function(){return _.L(H().item,dYw)?void 0:"button"}},_.x(_.HG,{data:function(){var z;
return(z=H())==null?void 0:z.item}},{timelineChapterViewModel:function(z){return _.x(k0_,{data:z.data,
active:W})},
timelineItemViewModel:function(z){return _.x(spI,{data:z.data,active:W})},
videoAttributeViewModel:aiw,shoppingDescriptionItemViewModel:o8Q}))},"Df");
dQR.idomCompat=!0;_.Sw(dQR,"macro-markers-panel-item-view-model",{props:{data:_.Ih}});_.Sw(HNR,"yt-video-attributes-section-view-model",{props:{data:_.Ih}});var WGV=_.c(function(A){var H=function(){var k,d,W;return(W=(k=A.data().leadingLogoAccessibility)==null?void 0:(d=k.accessibilityData)==null?void 0:d.label)!=null?W:""};
return _.x("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.x(_.R,{cond:function(){return A.data().leadingLogo},
then:function(k){return _.x(_.GA,{className:"ytwFantasySectionHeaderViewModelLogo",data:k,alt:H})}}),_.x("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.x(_.j$,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return A.data().title}}),_.x(_.j$,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return A.data().subtitle}})),_.x(_.HG,{data:function(){return A.data().trailingButton}},{buttonViewModel:function(k){return _.x(_.U7,{data:k.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ef");var zwM=_.c(function(A){var H={};H=_.ER("ytwFantasyTeamViewModelHost",(H.ytwFantasyTeamViewModelCompact=function(){var W;return!((W=A.compact)==null||!W.call(A))},H.ytwFantasyTeamViewModelUser=function(){return A.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},H.ytwFantasyTeamViewModelOpponent=function(){return A.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},H));
var k=function(){var W,z,u;return(u=(W=A.data().teamLogoAccessibility)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label)!=null?u:""},d=_.o9(pdC,function(){return A.data().teamEntityKey});
return _.x("ytw-fantasy-team-view-model",{class:H},_.x(_.R,{cond:function(){return A.data().teamLogo},
then:function(W){return _.x(_.GA,{className:"ytwFantasyTeamViewModelLogo",data:W,alt:k})}}),_.x("div",{class:"ytwFantasyTeamViewModelMetadata"},_.x("div",{class:"ytwFantasyTeamViewModelHeader"},_.x(_.j$,{className:"ytwFantasyTeamViewModelScore",
text:function(){var W;return(W=d())==null?void 0:W.score}}),_.x(_.n3,{icon:function(){var W;
return(W=d())==null?void 0:W.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.x(_.j$,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var W;return(W=d())==null?void 0:W.projectedScore}})),_.x(_.j$,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return A.data().primaryText}}),_.x(_.j$,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return A.data().secondaryText}}),_.x(_.j$,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return A.data().tertiaryText}})),_.x(_.j$,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var W;return(W=d())==null?void 0:W.score}}))},"Ff");_.Sw(_.c(function(A){return _.x("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.x("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.x(_.HG,{data:function(){return A.data().summaryHeader}},{fantasySectionHeaderViewModel:WGV})),_.x(_.HG,{data:function(){return A.data().userTeam}},{fantasyTeamViewModel:zwM}),_.x(_.HG,{data:function(){return A.data().opponentTeam}},{fantasyTeamViewModel:zwM}))},"Gf"),"fantasy-league-summary-view-model",{props:{data:_.Ih}});var qwL=_.c(function(A){var H=_.SD(A,{shape:{},useCustomTabRenderable:!1}),k=H.shape;H=H.useCustomTabRenderable;var d=A.customTabRenderable,W=function(){return k().disabled},z=function(){return k().selected},u=function(){return k().title},B=function(){return k().icon},h=_.GP("yt-tab-shape");
A=_.lc(function(m){var J;if(!W()&&((J=k().aTagConfig)==null?0:J.onclick))k().aTagConfig.onclick(m);return!1});
var O=_.lc(function(m){if(m.key==="Enter"||m.key==="ArrowUp"||m.key==="ArrowDown")m.preventDefault(),h.value.click();return!1}),T={};
return _.x("yt-tab-shape",{class:_.ER("yt-tab-shape",function(){return k().className},(T["yt-tab-shape__tab--last-tab"]=function(){return k().isLastTab},T["yt-tab-shape--host-disabled"]=W,T["yt-tab-shape--host-clickable"]=!d,T)),
role:d?void 0:"tab","aria-selected":z!=null?z:!1,"aria-disabled":W,tabindex:d?void 0:0,"on:click":A,"on:keydown":O,el:h,"tab-identifier":function(){return k().identifier},
"tab-title":u},_.x(_.R,{cond:H,then:function(){return d()},
else:function(){var m={},J={};return _.x(_.sD,null,_.x("div",{class:_.ER("yt-tab-shape__tab",(m["yt-tab-shape__tab--tab-selected"]=z,m))},_.x(_.R,{cond:B,then:function(g){return _.x(_.n3,{className:"yt-tab-shape__tab-icon",icon:function(){return g().iconType}})}}),u),_.x("div",{class:_.ER("yt-tab-shape__tab-bar",(J["yt-tab-shape__tab-bar--tab-bar-selected"]=z,J))}))}}))},"Hf");
qwL.idomCompat={callbacks:{customTabRenderable:!0}};_.uAL=_.c(function(A){var H=A.shape;A=_.r(_.RV(48,void 0,"nDAx4"));var k=A.next().value,d=A.next().value;A=_.r(_.RV(0,void 0,"GCgjqb"));var W=A.next().value,z=A.next().value,u=function(){return H().tabs},B=_.GP("yt-tab-group-shape"),h=function(){var J,g;
return(g=(J=u())==null?void 0:J.findIndex(function(v){return v.selected}))!=null?g:-1};
A=_.r(_.RV(!1,void 0,"SU01tf"));var O=A.next().value,T=A.next().value,m=function(){O()||_.IE.addJob(function(){T(!0)},0)};
_.CA(function(){var J=h(),g=_.IE.addJob(function(){var v,y=((v=B.value)==null?void 0:v.querySelectorAll("yt-tab-shape"))||[],X;d(((X=J>-1?y[J]:void 0)==null?void 0:X.getBoundingClientRect().width)||0);for(X=v=0;X<J;X++)v+=y[X].offsetWidth+24;_.pZ("HTML_DIR")==="rtl"&&(v=-v);z(v);m()},8,0);
_.aV(function(){_.IE.cancelJob(g)})},"PMwgb");
A={};return _.x("yt-tab-group-shape",{class:_.ER("tabGroupShapeHost",(A.tabGroupShapeOverflowHidden=function(){return H().isOverflowHidden},A)),
el:B},_.x(_.R,{cond:u,then:function(J){return _.x(_.sD,null,_.x("div",{class:"tabGroupShapeTabs",role:"tablist"},_.x(_.Ix,{each:J},function(g,v){return _.x(qwL,{shape:function(){return Object.assign({},g,{isLastTab:v()===J().length-1})},
customTabRenderable:g.customTabRenderable,useCustomTabRenderable:!!g.customTabRenderable})})),_.x(rk_,{width:k,
sliderOffset:W,enableTransition:O}))}}))},"Jf");
_.uAL.idomCompat=!0;var rk_=_.c(function(A){var H=_.DS(A.sliderOffset,0),k=A.width,d=A.enableTransition;A={};return _.x("div",{class:_.ER("tabGroupShapeSlider",(A.tabGroupShapeSliderTransition=function(){return d()},A)),
style:_.Mt({width:function(){return k()+"px"},
transform:function(){return"translateX("+H()+"px)"}})})},"Kf");var Bw_=_.c(function(A){var H=function(){var z,u,B;return(B=(z=A.data().playerLogoAccessibility)==null?void 0:(u=z.accessibilityData)==null?void 0:u.label)!=null?B:""},k=_.o9(QAN,function(){return A.data().playerEntityKey}),d={};
d=_.ER("ytwFantasyPlayerViewModelHost",(d.ytwFantasyPlayerViewModelPlaying=function(){var z;return!((z=k())==null||!z.isPlayerPlaying)},d.ytwFantasyPlayerViewModelOnField=function(){var z;
return((z=k())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},d.ytwFantasyPlayerViewModelRedZone=function(){var z;
return((z=k())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},d));
var W=function(){var z,u,B,h=((z=_.wj().resolve(_.fZ(_.sF)))==null?0:z())?(u=A.data().playerLogoBackgroundColor)==null?void 0:u.darkTheme:(B=A.data().playerLogoBackgroundColor)==null?void 0:B.lightTheme;return h===void 0?"":_.h1(h)};
return _.x("ytw-fantasy-player-view-model",{class:d},_.x(_.R,{cond:function(){return A.data().playerLogo},
then:function(z){return _.x("div",{class:"ytwFantasyPlayerViewModelLogo"},_.x("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.x(_.GA,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Mt({"background-color":W}),data:z,alt:H})),_.x("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.x(_.n3,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.x("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.x("div",{class:"ytwFantasyPlayerViewModelHeader"},_.x(_.j$,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var z;return(z=A.data())==null?void 0:z.playerNameText}}),_.x(_.j$,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var z;return(z=A.data())==null?void 0:z.playerDescriptionText}})),_.x("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.x(_.j$,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=k())==null?void 0:z.gamePeriodText}}),_.x(_.j$,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=A.data())==null?void 0:z.opponentTeamText}}),_.x(_.j$,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=k())==null?void 0:z.gameStatusText}}),_.x(_.j$,{className:_.ER("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var z;return(z=k())==null?void 0:z.playerStatusText}})),_.x("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.x(_.j$,{text:function(){var z;
return(z=k())==null?void 0:z.playerStatsText}}))),_.x(_.j$,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var z;return(z=k())==null?void 0:z.fantasyScore}}))},"Lf");var ewL=_.c(function(A){return _.x("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.x(_.R,{cond:function(){return A.data().players},
then:function(H){return _.x(_.HG,{data:H},{fantasyPlayerViewModel:Bw_})}}))},"Mf");var xQB=_.c(function(A){var H=_.r(_.C0(function(){var W;return(W=A.data().selectedTabIdentifierKey)!=null?W:""})),k=H.next().value,d=H.next().value;
_.Sp(function(){var W;(W=A.setSelectedTabSignal)==null||W.call(A,k)});
return _.x("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.x("div",{class:"ytTabbedViewModelTabGroup"},_.x(_.uAL,{shape:function(){var W=A.data(),z=[],u={tabs:z};if(!W.tabs)return u;W=_.r(W.tabs);for(var B=W.next(),h={};!B.done;h={tabViewModel:void 0},B=W.next())if(h.tabViewModel=_.L(B.value,umN),h.tabViewModel){var O=B=void 0;z.push({aTagConfig:{onclick:function(T){return function(){var m;d((m=T.tabViewModel.tabIdentifier)!=null?m:"")}}(h)},
identifier:h.tabViewModel.tabIdentifier,selected:k()===h.tabViewModel.tabIdentifier,title:(O=(B=h.tabViewModel.title)==null?void 0:B.content)!=null?O:""})}return u}})),_.x(_.HG,{data:function(){var W,z=_.r((W=A.data().tabs)!=null?W:[]);
for(W=z.next();!W.done;W=z.next())if((W=_.L(W.value,umN))&&W.tabIdentifier===k())return W.content}},{fantasyRosterViewModel:ewL}))},"Of");_.Sw(_.c(function(A){var H=_.r(oPW()),k=H.next().value,d=H.next().value;return _.x("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.x(_.j$,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return A.data().title}}),_.x(_.R,{cond:function(){return A.data().tabbedViewModel},
then:function(W){return _.x(_.HG,{data:W},{tabbedViewModel:function(z){return _.x(xQB,{data:z.data,setSelectedTabSignal:d})}})}}),_.x(_.R,{cond:function(){var W,z=(W=_.L(A.data().tabbedViewModel,Bqw))==null?void 0:W.tabs;
W=_.L(z==null?void 0:z[0],umN);z=_.L(z==null?void 0:z[1],umN);var u=W==null?void 0:W.tabIdentifier;if(k()===u){var B,h;if(!((B=_.L(W==null?void 0:W.content,Jqj))==null?0:(h=B.players)==null?0:h.length))return A.data().noUserTeamPlayersText}else{var O,T;if(!((O=_.L(z==null?void 0:z.content,Jqj))==null?0:(T=O.players)==null?0:T.length))return A.data().noOpponentTeamPlayersText}},
then:function(W){return _.x(_.j$,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:W})}}))},"Pf"),"ytw-fantasy-matchup-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){return _.x("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.x(_.j$,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return A.data().title}}),_.x(_.R,{cond:function(){return A.data().matchupTeamPairs},
then:function(H){return _.x(_.Ix,{each:H,keyBy:"INDEX"},function(k){return _.x("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.x(_.HG,{data:function(){return[k().firstTeam,k().secondTeam]}},{fantasyTeamViewModel:function(d){return _.x(zwM,{data:d.data,
compact:!0})}}))})}}))},"Qf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=function(){var W,z,u;return(u=(W=A.data().userLogoAccessibility)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label)!=null?u:""},k=function(){var W,z,u;
return(u=(W=A.data().opponentLogoAccessibility)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label)!=null?u:""},d=_.o9(cQX,function(){return A.data().entityKey});
return _.x("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.x("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.x(_.R,{cond:function(){return A.data().userLogo},
then:function(W){return _.x(_.GA,{className:"ytwFantasyWinProbabilityViewModelLogo",data:W,alt:H})}}),_.x("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.x(_.j$,{text:function(){return A.data().title}})),_.x(_.R,{cond:function(){return A.data().opponentLogo},
then:function(W){return _.x(_.GA,{className:"ytwFantasyWinProbabilityViewModelLogo",data:W,alt:k})}})),_.x("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.x("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.x(_.j$,{text:function(){var W;
return(W=d())==null?void 0:W.userWinNumberLabel}})),_.x("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.x("div",{class:_.ER("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Mt({flex:function(){var W,z;return(z=(W=d())==null?void 0:W.userWinNumber)!=null?z:50}})}),_.x("div",{class:_.ER("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Mt({flex:function(){var W,z;return(z=(W=d())==null?void 0:W.opponentWinNumber)!=null?z:50}})})),_.x("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.x(_.j$,{text:function(){var W;
return(W=d())==null?void 0:W.opponentWinNumberLabel}}))))},"Rf"),"fantasy-win-probability-view-model",{props:{data:_.Ih}});var iNQ={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},hwB=_.c(function(A){return _.x(_.HG,{data:A.button},{buttonViewModel:function(H){return _.x(_.U7,{data:H.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Sf"),ONI=_.c(function(A){return _.x("ytd-backstage-locked-post-view-model",{class:_.ER("ytdBackstageLockedPostViewModelHost",A.className)},_.x("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.x("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.x(_.HG,
{data:function(){return A.data().authorAvatar}},{decoratedAvatarViewModel:_.TU})),_.x("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.x("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.x(_.j$,{text:function(){return A.data().authorText}})),_.x("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.x(_.j$,{text:function(){return A.data().publishedTimeText}}),_.x(_.HG,{data:function(){return A.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(H){return _.x(BQw,
{data:H.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.x("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.x(_.j$,{text:function(){return A.data().contentText}})),_.x(_.Yl,null,_.x(_.y$,{when:function(){return A.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.x("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.x(_.GA,{data:iNQ,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.x(_.j$,{text:function(){return A.data().lockedText}}))}),_.x(_.y$,{when:function(){return A.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.x("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.x("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.x(_.GA,{data:iNQ,
alt:""})),_.x(_.j$,{text:function(){return A.data().lockedText}}))})),_.x("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.x(hwB,{button:function(){return A.data().likeButton}}),_.x("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return A.data().voteCountA11y}},_.x(_.j$,{text:function(){return A.data().voteCount}})),_.x(hwB,{button:function(){return A.data().dislikeButton}}),_.x(hwB,{button:function(){return A.data().commentButton}}),_.x("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return A.data().commentCountA11y}},_.x(_.j$,{text:function(){return A.data().commentCount}}))))},"Tf");
ONI.idomCompat=!0;_.Sw(ONI,"ytd-backstage-locked-post-view-model",{props:{data:_.Ih,className:_.Ih}});_.uL("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var c6=function(){var A=_.a.apply(this,arguments)||this;A.darkerPanels=_.b("web_watch_darker_panels");A.commentsHidePanelButton=!1;A.isWatchGrid=!1;A.continuationShowButton=!1;A.isSearch=!1;A.isConstrainedList=!1;A.isWatch=!1;A.eligibleToSwitchToGrid=!1;A.useBigThumbs=!1;A.epRestyle=!1;A.isCarouselInFeed=!0;A.topSpacingZero=!1;A.continuationIsInitialLoad=!0;A.enableSqueezebackPanels=_.b("web_shorts_enable_squeezeback_panels");A.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");A.notSticky=
!0;A.mastheadHeight=0;A.isStickyChipBarSetup=!1;A.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};A.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return A};
_.I(c6,_.a);_.q=c6.prototype;_.q.updateLockupContainerTypes=function(A){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||H.forEach(function(k){k.containerType=A})}};
_.q.getItemsPath=function(){return"data.contents"};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.q.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:_.b("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.b("kevlar_low_priority_continuation")}}};
_.q.created=function(){};
_.q.updateStickySetup=function(){_.b("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.q.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(KPw(!this.notSticky))};
_.q.setupStickyChipBar=function(){var A=this;if(!this.isStickyChipBarSetup&&_.b("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.nF(this,this.updateHeaderState));var H;this.mastheadHeight=((H=document.querySelector("ytd-masthead"))==null?void 0:H.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(k){A.handleIntersect(k)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){A.updateHeaderState();A.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.q.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.nF(this,this.updateHeaderState));var A;(A=this.intersectionObserver)==null||A.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect()}};
_.q.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.q.handleIntersect=function(A){this.notSticky=A[0].intersectionRatio===1};
_.q.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.q.detached=function(){this.teardownStickyChipBar()};
_.q.updated=function(A){A.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.q.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var A=_.Va(this.hostElement).querySelector("ytd-comments-header-renderer");A&&(A.hidePanelButton=this.commentsHidePanelButton)}};
_.q.onRetrieveLocation=function(A,H){this.containsComments()&&(this.firstCommentsLoaded=H.hasComments=!0)};
_.q.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.q.onLoadReloadContinuation=function(A,H){var k=this;A.stopPropagation();this.isReloading=!0;_.Ed(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(d){var W=_.wj().resolve(_.sJ);d=H(d);W.postData(d).then(function(z){k.onReloadContinuationData(z)})}})};
_.q.onReloadContinuationData=function(A){if(A=this.get("response.continuationContents.itemSectionContinuation",A)||this.get("response.contents.itemSectionRenderer",A)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",A)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",A))this.set("data.contents",A.contents||A.results),A.header&&this.set("data.header",A.header),this.set("data.continuations",
A.continuations||[]);this.isReloading=!1};
_.q.computeContentsClass=function(A){return A?"reloading":""};
_.q.computeSectionIdentifier=function(A){return A==null?void 0:A.sectionIdentifier};
_.q.computeFitContainer=function(A){return(A==null?void 0:A.sectionIdentifier)==="youchat-item-section"};
_.q.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.b("kevlar_disable_comments_auto_load")};
_.q.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.q.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.q.computeHasDestinationShelfRenderer=function(A){var H,k;return!!(A==null?0:(H=A.contents)==null?0:(k=H[0])==null?0:k.destinationShelfRenderer)};
_.q.computeHasSectionGroupViewModel=function(A){var H,k;return!!(A==null?0:(H=A.contents)==null?0:(k=H[0])==null?0:k.sectionGroupViewModel)};
_.q.computeHasQrCodeRenderer=function(A){var H,k;return!!(A==null?0:(H=A.contents)==null?0:(k=H[0])==null?0:k.qrCodeRenderer)};
_.q.computeStaticCommentsHeader=function(A){return A&&this.containsComments()};
_.q.computeEpRestyle=function(A){return _.b("web_ep_restyling")&&A&&this.containsComments()};
_.q.computeIsContinuationCommentSection=function(A){return(A==null?void 0:A.targetId)==="shorts-engagement-panel-comments-section"||(A==null?void 0:A.targetId)==="comments-section"||(A==null?void 0:A.targetId)==="engagement-panel-comments-section"};
_.q.computeSuppressPaddingDisclaimer=function(){var A,H,k,d;return!!((A=this.data)==null?0:(H=A.contents)==null?0:(k=H[0])==null?0:(d=k.productListHeaderRenderer)==null?0:d.suppressPaddingDisclaimer)};
_.q.computeHeaderStyle=function(A){switch(A==null?void 0:A.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.q.dataChanged=function(){this.firstCommentsLoaded=!1};
_.q.observeDataContentsLength=function(){var A,H;((A=this.data)==null?0:(H=A.contents)==null?0:H.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.q.onYtDismissibleItemDismissedChange=function(A){this._setItemDismissed(A.type==="yt-dismissible-item-dismissed")};
_.q.triggerContinuations=function(){for(var A=_.Va(this.hostElement).querySelector("#continuations").children,H=0;H<A.length;H++)A[H].trigger()};
_.q.triggerInitialContinuations=function(){for(var A=_.Va(this.hostElement).querySelector("#continuations").children,H=0;H<A.length;H++)A[H].triggerIfNotPreviouslyTriggered()};
_.q.handleYtItemSectionContinuation=function(A,H){var k;H&&((k=this.data)==null?void 0:k.sectionIdentifier)!==H||(this.set("data.continuations",[A]),this.triggerContinuations())};
_.q.handleYtItemSectionReplace=function(A,H){var k;H&&((k=this.data)==null?void 0:k.sectionIdentifier)!==H||(this.set("data.contents",A),this.set("data.continuations",[]))};
_.q.computeUseHeightHack=function(A){return A&&!_.b("kevlar_disable_height_hack")};
_.q.computeTopSpacingZero=function(A){return A};
_.q.continuationShowButtonChanged=function(){var A=_.Va(this.hostElement).querySelector("ytd-continuation-item-renderer");A&&(A.showButton=this.continuationShowButton)};
_.q.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("data-changed",this.data))};
_.nP.Object.defineProperties(c6.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.b("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}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return!!((A=this.data)==null?0:(H=A.contents)==null?0:(k=H[0])==null?0:k.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d,W,z,u;return!!((A=this.data)==null?0:(H=A.contents)==null?0:(k=H[0])==null?0:(d=k.shelfRenderer)==null?0:(W=d.content)==null?0:(z=W.gridRenderer)==null?0:(u=z.targetId)==null?0:u.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return!!((A=this.data)==null?0:(H=A.contents)==null?0:(k=H[0])==null?0:k.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return!!((A=this.data)==null?0:(H=A.contents)==null?0:(k=H[0])==null?0:k.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.k6("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.b("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.b("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.b("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var A,H;return!!((A=this.data)==null?0:(H=A.header)==null?0:H.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.b("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.b("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
c6.prototype.dataChangedForBinding=c6.prototype.dataChangedForBinding;c6.prototype.continuationShowButtonChanged=c6.prototype.continuationShowButtonChanged;c6.prototype.onYtDismissibleItemDismissedChange=c6.prototype.onYtDismissibleItemDismissedChange;c6.prototype.observeDataContentsLength=c6.prototype.observeDataContentsLength;c6.prototype.dataChanged=c6.prototype.dataChanged;c6.prototype.onServiceRequestCompleted=c6.prototype.onServiceRequestCompleted;c6.prototype.onLoadReloadContinuation=c6.prototype.onLoadReloadContinuation;
c6.prototype.onRetrieveLocation=c6.prototype.onRetrieveLocation;c6.prototype.commentsHidePanelButtonChanged=c6.prototype.commentsHidePanelButtonChanged;c6.prototype.dispatchChipBarIsSticky=c6.prototype.dispatchChipBarIsSticky;c6.prototype.updateStickySetup=c6.prototype.updateStickySetup;c6.prototype.updateLockupContainerTypes=c6.prototype.updateLockupContainerTypes;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],c6.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.cw.YtLazyListBehavior),_.l("design:type",Object)],c6.prototype,"ytLazyListBehavior",void 0);_.E([_.P(_.So.YtNextContinuationBehavior),_.l("design:type",Object)],c6.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.P(_.DV),_.l("design:type",Object)],c6.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],c6.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],c6.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],c6.prototype,"darkerPanels",void 0);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Boolean)],c6.prototype,"engagementPanel",void 0);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"commentsHidePanelButton",void 0);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"isWatchGrid",void 0);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"continuationShowButton",void 0);_.E([_.C({computed:"computeIsContinuationCommentSection(data)"}),_.l("design:type",Boolean)],c6.prototype,"continuationIsCommentsSection",void 0);
_.E([_.C({value:!0}),_.l("design:type",Boolean)],c6.prototype,"autoFill",void 0);_.E([_.C(),_.l("design:type",Boolean)],c6.prototype,"continuationDisablePrescanVisibility",void 0);_.E([_.C(),_.l("design:type",Boolean)],c6.prototype,"isReloading",void 0);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"isSearch",void 0);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"isConstrainedList",void 0);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"isWatch",void 0);
_.E([_.C(),_.l("design:type",Object)],c6.prototype,"eligibleToSwitchToGrid",void 0);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"useBigThumbs",void 0);_.E([_.C({selector:_.Ot,reflectToAttribute:!0}),_.l("design:type",Object)],c6.prototype,"isGridViewEnabled",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.l("design:type",Object)],c6.prototype,"epRestyle",void 0);
_.E([_.G("isWatch"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],c6.prototype,"hideShortsShelfHeader",null);_.E([_.G("isSearch","isWatch"),_.l("design:type",String),_.l("design:paramtypes",[])],c6.prototype,"thumbnailWidth",null);_.E([_.G("isSearch","containerWidth"),_.l("design:type",Object),_.l("design:paramtypes",[])],c6.prototype,"thumbnailTargetWidth",null);
_.E([_.G("isSearch","isWatch","useBigThumbs"),_.l("design:type",String),_.l("design:paramtypes",[])],c6.prototype,"sizing",null);_.E([_.G("isWatch","isGridViewEnabled","useBigThumbs","data"),_.C({reflectToAttribute:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],c6.prototype,"lockupContainerType",null);_.E([_.fF("lockupContainerType","data"),_.l("design:type",Function),_.l("design:paramtypes",[Number]),_.l("design:returntype")],c6.prototype,"updateLockupContainerTypes",null);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],c6.prototype,"pageSubtype",void 0);_.E([_.C(),_.l("design:type",Number)],c6.prototype,"containerWidth",void 0);_.E([_.C(),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],c6.prototype,"isPlaylist",null);_.E([_.C(),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],c6.prototype,"isClipList",null);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"isCarouselInFeed",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],c6.prototype,"isPlaylistVideoContainer",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],c6.prototype,"isSearchFrictionPage",null);_.E([_.C({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.l("design:type",Boolean)],c6.prototype,"useHeightHack",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.l("design:type",Object)],c6.prototype,"topSpacingZero",void 0);_.E([_.C({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.l("design:type",Boolean)],c6.prototype,"showButton",void 0);_.E([_.C(),_.l("design:type",Boolean)],c6.prototype,"firstCommentsLoaded",void 0);_.E([_.C(),_.l("design:type",Object)],c6.prototype,"continuationIsInitialLoad",void 0);
_.E([_.C({reflectToAttribute:!0,readOnly:!0}),_.l("design:type",Boolean)],c6.prototype,"itemDismissed",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.l("design:type",String)],c6.prototype,"sectionIdentifier",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.l("design:type",String)],c6.prototype,"fitContainer",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.l("design:type",Boolean)],c6.prototype,"hasDestinationShelfRenderer",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.l("design:type",Boolean)],c6.prototype,"staticCommentsHeader",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],c6.prototype,"enableSqueezebackPanels",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],c6.prototype,"enableAnchoredPanel",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.l("design:type",Boolean)],c6.prototype,"hasSectionGroupViewModel",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.l("design:type",Boolean)],c6.prototype,"hasQrCodeRenderer",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.l("design:type",Boolean)],c6.prototype,"suppressDisclaimerSeparator",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.l("design:type",String)],c6.prototype,"headerStyle",void 0);_.E([_.G("isSearch","isWatch","useBigThumbs"),_.l("design:type",Object),_.l("design:paramtypes",[])],c6.prototype,"lockupExperiments",null);
_.E([_.G("isSearch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],c6.prototype,"typographyBump",null);_.E([_.ol("#header"),_.l("design:type",HTMLElement)],c6.prototype,"header",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],c6.prototype,"notSticky",void 0);_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Object),_.l("design:paramtypes",[])],c6.prototype,"useChipBarViewModelHeader",null);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],c6.prototype,"expFixPlaylistHeader",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],c6.prototype,"expFixPlaylistHeaderV2",null);_.E([_.fF("pageSubtype"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c6.prototype,"updateStickySetup",null);
_.E([_.fF("notSticky"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c6.prototype,"dispatchChipBarIsSticky",null);_.E([_.fF("commentsHidePanelButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c6.prototype,"commentsHidePanelButtonChanged",null);_.E([_.Ze("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],c6.prototype,"onRetrieveLocation",null);
_.E([_.Ze("yt-load-reload-continuation"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Function]),_.l("design:returntype")],c6.prototype,"onLoadReloadContinuation",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c6.prototype,"onServiceRequestCompleted",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c6.prototype,"dataChanged",null);
_.E([_.s6("data.contents.length"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c6.prototype,"observeDataContentsLength",null);_.E([_.Ze("yt-dismissible-item-dismissed"),_.Ze("yt-dismissible-item-undismissed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],c6.prototype,"onYtDismissibleItemDismissedChange",null);
_.E([_.fF("continuationShowButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c6.prototype,"continuationShowButtonChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c6.prototype,"dataChangedForBinding",null);_.E([_.O6({is:"ytd-item-section-renderer",disableElementRegistration:!0})],c6);
_.Q(c6,"ytd-item-section-renderer",function(){if(gy1!==void 0)return gy1;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return gy1=A},{mode:1});var Rwi;var HaI=_.Yu(_.$r("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Twi={},Atm=(Twi[0]={title:_.K8(_.$r("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.K8(_.$r("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.Sc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Twi[1]={title:_.K8(_.$r("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.Sc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Twi);_.uL("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var pU=function(){var A=_.a.apply(this,arguments)||this;A.allVideosCount=0;A.allPlaylistCount=0;A.isOnline=!1;A.shouldRenderDownloadsBanner=!1;A.shouldRenderDownloadsBannerUpsell=!1;A.hasOptedIntoSmartDownloads=!1;A.areAllSmartDownloadsDeleted=!1;A.smartDownloadsCompleted=!1;return A};
_.I(pU,_.a);pU.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
pU.prototype.attached=function(){this.downloadsToRenderChanged()};
pU.prototype.detached=function(){this.set("renderableData",{})};
pU.prototype.downloadsToRenderChanged=function(){var A=_.F3().getState().entities,H=_.uk(A),k=_.b("kevlar_playlist_dl_page_killswitch")?LfI(A):_.BK(A),d=_.Og8(A),W=_.JBl(A),z=_.ku(H);A=_.eX(A);this.set("renderableData",kzA(k,H,d,W,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,z,A))};
pU.prototype.downloadsToRenderChanged=pU.prototype.downloadsToRenderChanged;_.E([_.P(_.TG),_.l("design:type",Object)],pU.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],pU.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pU.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],pU.prototype,"renderableData",void 0);_.E([_.C({selector:_.Kfm}),_.l("design:type",Object)],pU.prototype,"allVideosCount",void 0);_.E([_.C({selector:SPm}),_.l("design:type",Object)],pU.prototype,"allPlaylistCount",void 0);_.E([_.C({selector:_.Rc}),_.l("design:type",Object)],pU.prototype,"isOnline",void 0);_.E([_.C({selector:_.UKI}),_.l("design:type",Object)],pU.prototype,"shouldRenderDownloadsBanner",void 0);
_.E([_.C({selector:_.M3I}),_.l("design:type",Object)],pU.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.C({selector:_.lp8}),_.l("design:type",Object)],pU.prototype,"hasOptedIntoSmartDownloads",void 0);_.E([_.C({selector:_.t3b}),_.l("design:type",Object)],pU.prototype,"areAllSmartDownloadsDeleted",void 0);_.E([_.C({selector:NfA}),_.l("design:type",Object)],pU.prototype,"smartDownloadsCompleted",void 0);
_.E([_.s6("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pU.prototype,"downloadsToRenderChanged",null);_.E([_.O6({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],pU);
_.Q(pU,"ytd-offline-item-section-renderer",function(){if(Rwi!==void 0)return Rwi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Rwi=A},
{mode:1});var mQB;var Jk_;var QX=function(){return _.a.apply(this,arguments)||this};
_.I(QX,_.a);
QX.prototype.onDataChanged=function(){if(this.JSC$17190_lastData){var A=this.getFilterClass(this.JSC$17190_lastData.status);A&&this.hostElement.classList.remove(A)}var H;(A=this.getFilterClass((H=this.data)==null?void 0:H.status))&&this.hostElement.classList.add(A);A==="selected"?_.Va(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Va(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");A==="disabled"?_.Va(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Va(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17190_lastData=this.data};
QX.prototype.getFilterClass=function(A){switch(A){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
QX.prototype.onDataChanged=QX.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],QX.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QX.prototype,"onDataChanged",null);_.E([_.O6({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],QX);
_.Q(QX,"ytd-search-filter-renderer",function(){if(Jk_!==void 0)return Jk_;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Jk_=A},{mode:2});var VX=function(){return _.a.apply(this,arguments)||this};
_.I(VX,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],VX.prototype,"data",void 0);_.E([_.O6({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],VX);
_.Q(VX,"ytd-search-filter-group-renderer",function(){if(mQB!==void 0)return mQB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return mQB=A},{mode:2});var gZL;var Ef=function(){return _.a.apply(this,arguments)||this};
_.I(Ef,_.a);Ef.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Mr());this.isCollapsed=!this.isCollapsed};
Ef.prototype.navigateToAboutTheseResultsPage=function(){var A=_.nx("https://www.youtube.com/howyoutubeworks/product-features/search/");A?_.rU(window,A,"_blank"):_.V$(Error("Vh"))};
Ef.prototype.dataChanged=function(){this.isCollapsed=!0};
Ef.prototype.computeShowBottomBorder=function(){var A,H,k;return!!((A=this.data)==null?0:(H=A.button)==null?0:H.toggleButtonRenderer)||!((k=this.data)==null||!k.aboutTheseResultsButton)};
Ef.prototype.dataChanged=Ef.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ef.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.l("design:type",Boolean)],Ef.prototype,"showBottomBorder",void 0);_.E([_.C(),_.l("design:type",Boolean)],Ef.prototype,"renderCollapsibleMenu",void 0);
_.E([_.C(),_.l("design:type",Boolean)],Ef.prototype,"isCollapsed",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ef.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Ef);
_.Q(Ef,"ytd-search-sub-menu-renderer",function(){if(gZL!==void 0)return gZL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return gZL=A},{mode:1});var bNI;var LG3=new _.SE("SECTION_LIST_RENDERER_TOKEN");var vZM;var Uf=function(){return _.a.apply(this,arguments)||this};
_.I(Uf,_.a);Uf.prototype.computeStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Uf.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],Uf.prototype,"headerStyle",void 0);_.E([_.O6({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Uf);
_.Q(Uf,"ytd-text-header-renderer",function(){if(vZM!==void 0)return vZM;var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return vZM=A},{mode:1});var ykL;var lM=function(){return _.a.apply(this,arguments)||this};
_.I(lM,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lM.prototype,"data",void 0);_.E([_.O6({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],lM);
_.Q(lM,"ytd-minor-moment-header-renderer",function(){if(ykL!==void 0)return ykL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ykL=A},{mode:1});var jpV;var tm=function(){return _.a.apply(this,arguments)||this};
_.I(tm,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],tm.prototype,"data",void 0);_.E([_.O6({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],tm);
_.Q(tm,"ytd-minor-moment-setting-alert-renderer",function(){if(jpV!==void 0)return jpV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return jpV=A},{mode:1});var I1V;var Ywi;var NA=function(){var A=_.a.apply(this,arguments)||this;A.booleanSettingById=!1;A.smartDownloadsEnabledVE=_.t8(128287);A.smartDownloadsDisabledVE=_.t8(128286);A.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return A};
_.I(NA,_.a);_.q=NA.prototype;_.q.attachSmartDownloadsSettingVes=function(){var A;this.activeVeForLogging||((A=this.data)==null?void 0:A.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.n4(_.A7(),this.smartDownloadsEnabledVE),_.n4(_.A7(),this.smartDownloadsDisabledVE))};
_.q.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Ed(this.hostElement,"yt-settings-switch-ready")};
_.q.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.q.onSwitchChange=function(A){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(A=_.X_(A).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.b("kevlar_settings_switch_resolve_command_killswitch")?_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(A)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.q.handleUpdateSettingsSwitch=function(A){(A=_.L(A,QSJ))&&this.data&&this.data.id===A.id&&this.set("data.enabled",!!A.enabled)};
_.q.onToggleSettingsSwitch=function(A,H){this.data&&this.data.id===A&&this.set("data.enabled",H!=null?H:!this.data.enabled)};
_.q.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.aD.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.q.maybeLogSmartDownloadsSettingVisibility=function(){var A=_.hx(),H;A&&((H=this.data)==null?void 0:H.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.IN(A,[this.smartDownloadsEnabledVE]),_.YB(A,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.IN(A,[this.smartDownloadsDisabledVE]),_.YB(A,[this.smartDownloadsEnabledVE])))};
_.q.maybeLogSmartDownloadsSettingClick=function(){var A;((A=this.data)==null?void 0:A.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.f4(_.A7(),this.activeVeForLogging)};
_.q.updateDataEnabledFromBinding=function(A){this.set("data.enabled",A.detail.value)};
_.nP.Object.defineProperties(NA.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!A&&(A=this.ytRendererBehavior.getSimpleString(this.data.title));return A}}});
NA.prototype.dataChanged=NA.prototype.dataChanged;_.E([_.P(_.TG),_.l("design:type",Object)],NA.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],NA.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],NA.prototype,"data",void 0);_.E([_.C({selector:function(A,H){if(Object.keys(A==null?void 0:A.entities).length)switch(H){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return vLr(A.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.l("design:type",Object)],NA.prototype,"booleanSettingById",void 0);_.E([_.C(),_.l("design:type",_.xr)],NA.prototype,"activeVeForLogging",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],NA.prototype,"toggleAriaLabel",null);_.E([_.s6("data"),_.s6("booleanSettingById"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],NA.prototype,"dataChanged",null);
_.E([_.O6({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],NA);
_.Q(NA,"ytd-settings-switch-renderer",function(){if(Ywi!==void 0)return Ywi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Ywi=A},{mode:1});var MA=function(){return _.a.apply(this,arguments)||this};
_.I(MA,_.a);MA.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}}}}};
_.nP.Object.defineProperties(MA.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var A=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(A+=" remove-left-margin");this.data.extraBottomSpace&&(A+=" extra-bottom-space");return A}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],MA.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],MA.prototype,"contentsClassName",null);_.E([_.O6({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],MA);
_.Q(MA,"ytd-minor-moment-setting-section-renderer",function(){if(I1V!==void 0)return I1V;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return I1V=A},{mode:1});var PJM;var nU=function(){return _.a.apply(this,arguments)||this};
_.I(nU,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],nU.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],nU.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],nU);
_.Q(nU,"ytd-empty-product-details-renderer",function(){if(PJM!==void 0)return PJM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return PJM=A},{mode:1});var G0_;var FGQ;var Zr=function(){var A=_.a.apply(this,arguments)||this;A.expanded=!0;return A};
_.I(Zr,_.a);Zr.prototype.getBadgeRowClass=function(A,H,k){for(var d=_.r(this.hostElement.querySelectorAll("yt-img-shadow")),W=d.next();!W.done;W=d.next())W.value.onShow();A=A.selected;return k?A!==-1?A===H?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(A!==void 0?A:0)===H?"badge-line":"badge-hidden"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Zr.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Zr.prototype,"expanded",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Zr);
_.Q(Zr,"ytd-sponsorships-loyalty-badges-renderer",function(){if(FGQ!==void 0)return FGQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return FGQ=A},{mode:1});var XjQ;var fU=function(){var A=_.a.apply(this,arguments)||this;A.expanded=!0;return A};
_.I(fU,_.a);fU.prototype.getContainerClasses=function(A,H){A=A?"expanded":"collapsed";H&&(A+=" item");return A};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],fU.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],fU.prototype,"expanded",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],fU);
_.Q(fU,"ytd-sponsorships-perk-renderer",function(){if(XjQ!==void 0)return XjQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return XjQ=A},{mode:1});var DQM;var wT=function(){var A=_.a.apply(this,arguments)||this;A.expanded=!0;return A};
_.I(wT,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],wT.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],wT.prototype,"expanded",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],wT);
_.Q(wT,"ytd-sponsorships-perks-renderer",function(){if(DQM!==void 0)return DQM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return DQM=A},{mode:1});var oZ=function(){var A=_.a.apply(this,arguments)||this;A.isCollapsed=!1;return A};
_.I(oZ,_.a);oZ.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
oZ.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
oZ.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var A;this.expandCollapseButton=_.L((A=this.data)==null?void 0:A.expandButton,_.gN)}else{var H;this.expandCollapseButton=_.L((H=this.data)==null?void 0:H.collapseButton,_.gN)}};
oZ.prototype.updateExpandCollapseButton=oZ.prototype.updateExpandCollapseButton;oZ.prototype.onDataChanged=oZ.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],oZ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],oZ.prototype,"isCollapsed",void 0);_.E([_.C(),_.l("design:type",Object)],oZ.prototype,"expandCollapseButton",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oZ.prototype,"onDataChanged",null);_.E([_.s6("data","isCollapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oZ.prototype,"updateExpandCollapseButton",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],oZ);
_.Q(oZ,"ytd-sponsorships-expandable-perks-renderer",function(){if(G0_!==void 0)return G0_;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return G0_=A},{mode:1});var SwG;var $G=function(){return _.a.apply(this,arguments)||this};
_.I($G,_.a);$G.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],$G.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$G.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],$G);
_.Q($G,"ytd-sponsorships-actionable-message-renderer",function(){if(SwG!==void 0)return SwG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return SwG=A},{mode:1});var CJV;var A_=function(){return _.a.apply(this,arguments)||this};
_.I(A_,_.a);_.q=A_.prototype;_.q.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.q.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.q.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.q.computeMessageContainerStyle=function(A){var H=A.expandableItems?" style-clickable":"";return A.messageContainerStyle?A.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+H:"style-unspecified"+H};
_.q.isSinglePerk=function(A){return!!A.messageContainerStyle&&(A.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||A.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.q.onExpandedChanged=function(){var A=this;if(this.expanded)for(var H=_.r(this.hostElement.querySelectorAll("yt-img-shadow")),k=H.next();!k.done;k=H.next())k.value.onShow();_.No(this,function(){_.Ed(A.hostElement,"yt-refit")})};
_.q.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
A_.prototype.onDataChanged=A_.prototype.onDataChanged;A_.prototype.onExpandedChanged=A_.prototype.onExpandedChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],A_.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],A_.prototype,"expanded",void 0);
_.E([_.fF("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],A_.prototype,"onExpandedChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],A_.prototype,"onDataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],A_);
_.Q(A_,"ytd-sponsorships-expandable-message-renderer",function(){if(CJV!==void 0)return CJV;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return CJV=A},{mode:2});var KGL;var Hg=function(){return _.a.apply(this,arguments)||this};
_.I(Hg,_.a);Hg.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"}}}}};
Hg.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.L(this.data.endButton,_.gN).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Hg.prototype.onDataChanged=Hg.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Hg.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hg.prototype,"onDataChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Hg);
_.Q(Hg,"ytd-sponsorships-heading-renderer",function(){if(KGL!==void 0)return KGL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return KGL=A},{mode:1});var a1I;var s0=function(){return _.a.apply(this,arguments)||this};
_.I(s0,_.a);_.E([_.C(),_.l("design:type",Object)],s0.prototype,"data",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],s0);
_.Q(s0,"ytd-sponsorships-links-renderer",function(){if(a1I!==void 0)return a1I;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return a1I=A},{mode:1});var ck_;var ki=function(){return _.a.apply(this,arguments)||this};
_.I(ki,_.a);_.q=ki.prototype;_.q.onDataChanged=function(){if(this.data&&this.data.expandableItems){var A;(A=_.Va(this.hostElement).querySelector("tp-yt-paper-button"))==null||A.setAttribute("role","button")}else{var H;(H=_.Va(this.hostElement).querySelector("tp-yt-paper-button"))==null||H.removeAttribute("role")}};
_.q.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.q.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.q.getTileClasses=function(A){return A?"tile expandable-tile":"tile"};
_.q.getButtonDisabled=function(A){return A?void 0:""};
ki.prototype.onDataChanged=ki.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ki.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],ki.prototype,"expanded",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ki.prototype,"onDataChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],ki);
_.Q(ki,"ytd-sponsorships-list-tile-renderer",function(){if(ck_!==void 0)return ck_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ck_=A},{mode:1});var pjR;var QpI;var da=function(){return _.a.apply(this,arguments)||this};
_.I(da,_.a);da.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],da.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],da.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],da);
_.Q(da,"ytd-sponsorships-promotion-renderer",function(){if(QpI!==void 0)return QpI;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return QpI=A},{mode:1});var VAB;var Wg=function(){return _.a.apply(this,arguments)||this};
_.I(Wg,_.a);Wg.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Wg.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Wg);
_.Q(Wg,"ytd-sponsorships-purchase-option-renderer",function(){if(VAB!==void 0)return VAB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return VAB=A},{mode:1});var EZ_;var UQi;var l11=function(){return _.a.apply(this,arguments)||this};
_.I(l11,_.a);_.E([_.C(),_.l("design:type",Object)],l11.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],l11);
_.Q(l11,"ytd-ypc-offer-promo-renderer",function(){if(UQi!==void 0)return UQi;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return UQi=A},{mode:1});var zm=function(){return _.a.apply(this,arguments)||this};
_.I(zm,_.a);_.q=zm.prototype;
_.q.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"}}}}};
_.q.expansionCTA=function(A,H){return A&&(H?A.collapseCallToAction:A.expansionCallToAction)};
_.q.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.q.expansionCallToActionTap=function(){var A=this;this.expanded=!this.expanded;_.No(this,function(){_.Ed(A.hostElement,"yt-refit")})};
_.q.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var A,H=(A=this.data)==null?void 0:A.onVisible;H&&this.ytComponentBehavior.resolveCommand(H)};
_.q.computeDisplayTitle=function(A){return!(!A||this.titledisplaystatus!=="show")};
_.q.computeDisplaySeparator=function(){return!1};
_.q.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
zm.prototype.onDataChanged=zm.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zm.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],zm.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zm.prototype,"data",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],zm.prototype,"expanded",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],zm.prototype,"purchaseButtonClicked",void 0);_.E([_.C({reflectToAttribute:!0,value:"show"}),_.l("design:type",String)],zm.prototype,"titledisplaystatus",void 0);_.E([_.C({computed:"computeDisplayTitle(data.title)"}),_.l("design:type",Boolean)],zm.prototype,"displayTitle",void 0);
_.E([_.C({computed:"computeDisplaySeparator(data)"}),_.l("design:type",Boolean)],zm.prototype,"displaySeparator",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zm.prototype,"onDataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],zm);
_.Q(zm,"ytd-sponsorships-tier-renderer",function(){if(EZ_!==void 0)return EZ_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return EZ_=A},{mode:2});var q1=function(){return _.a.apply(this,arguments)||this};
_.I(q1,_.a);
q1.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"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],q1.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],q1);
_.Q(q1,"ytd-sponsorships-management-renderer",function(){if(pjR!==void 0)return pjR;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return pjR=A},{mode:1});var tA_;var ra=function(){return _.a.apply(this,arguments)||this};
_.I(ra,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ra.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],ra);
_.Q(ra,"ytd-open-in-native-app-view-model",function(){if(tA_!==void 0)return tA_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tA_=A},{mode:2});var Nw_;var MAM;var nZG=_.XO(["top-"]),ZNI=_.XO(["bottom-"]),f1B=_.XO(["left-"]),wjM=_.XO(["right-"]),oZG={},$QQ=function(A,H,k){A.removeAttribute("top-"+k);A.removeAttribute("bottom-"+k);A.removeAttribute("left-"+k);A.removeAttribute("right-"+k);H&&(H.top&&_.R4([_.y6(nZG)],A,"top-"+k,H.top),H.bottom&&_.R4([_.y6(ZNI)],A,"bottom-"+k,H.bottom),H.left&&_.R4([_.y6(f1B)],A,"left-"+k,H.left),H.right&&_.R4([_.y6(wjM)],A,"right-"+k,H.right))};
oZG.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(A){var H,k=_.Va((H=this.hostElement)!=null?H:this),d;H=this.cardItemBoxBehaviorMarginTargetId&&k?k.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(d=this.hostElement)!=null?d:this;$QQ(H,A,"margin")},
cardItemContainerPaddingChanged_:function(A){var H,k=_.Va((H=this.hostElement)!=null?H:this),d;H=this.cardItemBoxBehaviorPaddingTargetId&&k?k.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(d=this.hostElement)!=null?d:this;$QQ(H,A,"padding")}}];var ub={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-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",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 AVe;var HLB;var Bg=function(){return _.a.apply(this,arguments)||this};
_.I(Bg,_.a);Bg.prototype.textColorChanged_=function(){this.hostElement.style.color=ub[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Bg.prototype.textColorChanged_=Bg.prototype.textColorChanged_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.E([_.P(oZG.YtCardItemBoxBehavior),_.l("design:type",Object)],Bg.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Bg.prototype,"data",void 0);_.E([_.fF("data.textColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bg.prototype,"textColorChanged_",null);
_.E([_.h6({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Bg);
_.Q(Bg,"yt-card-item-text-renderer",function(){if(HLB===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;AVe===void 0&&(AVe=document.createElement("template"));var d=AVe;k.call(H,d.content.cloneNode(!0),A.content.firstChild);HLB=A}A=HLB;return A},{mode:2});var s_1;var keQ;var ej=function(){return _.a.apply(this,arguments)||this};
_.I(ej,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ej.prototype,"data",void 0);_.E([_.h6({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],ej);
_.Q(ej,"yt-card-item-badge-renderer",function(){if(keQ===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;s_1===void 0&&(s_1=document.createElement("template"));var d=s_1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);keQ=A}A=keQ;return A},{mode:2});var diI;var WB_;var xi=function(){return _.a.apply(this,arguments)||this};
_.I(xi,_.a);xi.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xi.prototype,"data",void 0);_.E([_.h6({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],xi);
_.Q(xi,"yt-card-item-text-collection-renderer",function(){if(WB_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;diI===void 0&&(diI=document.createElement("template"));var d=diI;k.call(H,d.content.cloneNode(!0),A.content.firstChild);WB_=A}A=WB_;return A},{mode:2});var zM1;var qBV;var ib=function(){return _.a.apply(this,arguments)||this};
_.I(ib,_.a);ib.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]]"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ib.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Number)],ib.prototype,"iconSize",void 0);_.E([_.h6({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],ib);
_.Q(ib,"yt-card-item-text-with-button-renderer",function(){if(qBV===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;zM1===void 0&&(zM1=document.createElement("template"));var d=zM1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);qBV=A}A=qBV;return A},{mode:2});var h_=function(){return _.a.apply(this,arguments)||this};
_.I(h_,_.a);h_.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],h_.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],h_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],h_.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],h_);
_.Q(h_,"ytd-commerce-cart-summary-line-item-renderer",function(){if(MAM!==void 0)return MAM;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return MAM=A},{mode:1});_.uL("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var O0=function(){var A=_.a.apply(this,arguments)||this;A.hidden=!1;return A};
_.I(O0,_.a);_.q=O0.prototype;_.q.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"}}}}};
_.q.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.q.updateSummary=function(){var A=this.commerceCartCheckoutButtonEntity,H;if(((H=this.data)==null?0:H.cartButton)&&A.checkoutSummaryText){var k,d=is((k=this.data)==null?void 0:k.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+d+".cardItemTextRenderer.text",hv(A.checkoutSummaryText));if(A.checkoutDetailText){var W;k=is((W=this.data)==null?void 0:W.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+k+".cardItemTextRenderer.text",hv(A.checkoutDetailText))}if(A.checkoutAdditionalMetadataText){var z;
W=is((z=this.data)==null?void 0:z.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+W+".cardItemTextRenderer.text",hv(A.checkoutAdditionalMetadataText))}}else A.estimatedTotalPrice&&(z=is((d=this.data)==null?void 0:d.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+z+".cardItemTextRenderer.text",hv(A.estimatedTotalPrice)))};
_.q.updateIsHidden=function(){var A,H=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isHidden;H!==void 0&&(this.hidden=H)};
_.q.updateCheckoutButton=function(){var A,H=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isDisabled;H!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",H);var k;A=(k=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:k.innertubeCommand;A!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",A);var d;k=(d=this.commerceCartCheckoutButtonEntity)==null?void 0:d.checkoutButtonText;k!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:k})};
O0.prototype.entityChanged=O0.prototype.entityChanged;_.E([_.P(_.TG),_.l("design:type",Object)],O0.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],O0.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],O0.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],O0.prototype,"fullWidth",void 0);_.E([_.C(),_.l("design:type",Object)],O0.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],O0.prototype,"compact",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],O0.prototype,"hidden",void 0);
_.E([_.C({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:G3b}),_.l("design:type",Object)],O0.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.fF("commerceCartCheckoutButtonEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],O0.prototype,"entityChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],O0);
_.Q(O0,"ytd-commerce-cart-checkout-button-renderer",function(){if(Nw_!==void 0)return Nw_;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Nw_=A},{mode:2});var rVB;_.uGe={};
_.uGe.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",_.nF(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.nF(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(A){!this.tappableItemBehaviorTapEnabled||A.keyCode!==13&&A.keyCode!==32||A.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var A=this.data.onTap;A.ypcGetCartEndpoint?(_.tx(this.hostElement,[A]),this.tappableItemBehaviorTapEnabled=!1):A.ypcOffersEndpoint?_.tx(this.hostElement,[A]):_.NT(this.hostElement,[A],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(A){this.tappableItemBehaviorTapEnabled=!!A},
tappableItemBehaviorOnTapEnabledChanged_:function(){var A=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(A.setAttribute("tabIndex",0),A.setAttribute("role","button")):(A.removeAttribute("tabIndex"),A.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(A){A.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var BLR;var eML;var RG=function(){return _.a.apply(this,arguments)||this};
_.I(RG,_.a);RG.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Bn("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Bn("sharingToggleButtonAndDefaultButton")}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],RG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],RG.prototype,"data",void 0);_.E([_.h6({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],RG);
_.Q(RG,"yt-card-item-actions-renderer",function(){if(eML===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;BLR===void 0&&(BLR=document.createElement("template"));var d=BLR;k.call(H,d.content.cloneNode(!0),A.content.firstChild);eML=A}A=eML;return A},{mode:2});var xiM;var iLQ;var hMi;var OLL;var RMe;var TLB;var Tm=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return A};
_.I(Tm,_.a);Tm.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Tm.prototype.handleDarkModeToggledAction_=function(A){this.isDarkTheme_=A};
Tm.prototype.computeThemeImage_=function(A,H){if(!A||!A.imageLight)return!1;this.isCircular_=A.isCircular;A.imageWidth&&(this.hostElement.style.width=A.imageWidth+"px");A.imageHeight&&(this.hostElement.style.height=A.imageHeight+"px");A.borderWidth&&(this.image.style.borderWidth=A.borderWidth+"px",this.image.style.borderStyle="solid");A.borderColor&&(this.image.style.borderColor=_.h1(A.borderColor));return H&&A.imageDark?A.imageDark:A.imageLight};
Tm.prototype.computeThemeIcon_=function(A){var H,k;if(!(A==null?0:(H=A.themedIcon)==null?0:(k=H.icon)==null?0:k.iconType))return!1;this.icon.style.color=ub[A.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(A.imageWidth||18)+"px";this.icon.style.height=(A.imageHeight||18)+"px";return _.N0(A.themedIcon.icon.iconType)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Tm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(oZG.YtCardItemBoxBehavior),_.l("design:type",Object)],Tm.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Tm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Tm.prototype,"data",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],Tm.prototype,"fit",void 0);_.E([_.C(),_.l("design:type",Boolean)],Tm.prototype,"isDarkTheme_",void 0);_.E([_.C({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.l("design:type",Object)],Tm.prototype,"themeImage_",void 0);_.E([_.C({computed:"computeThemeIcon_(data)"}),_.l("design:type",Object)],Tm.prototype,"themeIcon_",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Object)],Tm.prototype,"isCircular_",void 0);
_.E([_.ol("#image"),_.l("design:type",Object)],Tm.prototype,"image",void 0);_.E([_.ol("#icon"),_.l("design:type",Object)],Tm.prototype,"icon",void 0);_.E([_.h6({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Tm);
_.Q(Tm,"yt-themed-image-renderer",function(){if(TLB===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;RMe===void 0&&(RMe=document.createElement("template"));var d=RMe;k.call(H,d.content.cloneNode(!0),A.content.firstChild);TLB=A}A=TLB;return A},{mode:2});var mI=function(){return _.a.apply(this,arguments)||this};
_.I(mI,_.a);mI.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"}}}}};
mI.prototype.computeImagePlacement_=function(A){return A||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mI.prototype,"data",void 0);_.E([_.C({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.l("design:type",String)],mI.prototype,"imagePlacement",void 0);
_.E([_.h6({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],mI);
_.Q(mI,"yt-card-item-text-with-image-renderer",function(){if(OLL===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;hMi===void 0&&(hMi=document.createElement("template"));var d=hMi;k.call(H,d.content.cloneNode(!0),A.content.firstChild);OLL=A}A=OLL;return A},{mode:2});var J_=function(){return _.a.apply(this,arguments)||this};
_.I(J_,_.a);J_.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"}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],J_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],J_.prototype,"data",void 0);_.E([_.h6({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],J_);
_.Q(J_,"yt-card-item-error-renderer",function(){if(iLQ===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;xiM===void 0&&(xiM=document.createElement("template"));var d=xiM;k.call(H,d.content.cloneNode(!0),A.content.firstChild);iLQ=A}A=iLQ;return A},{mode:2});var mi3;var JVB;_.uL("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var bb=function(){return _.a.apply(this,arguments)||this};
_.I(bb,_.a);_.q=bb.prototype;
_.q.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"}}}}};
_.q.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.q.backgroundColorChanged_=function(){var A,H=(A=this.data)==null?void 0:A.backgroundColor;A=ub[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Va(this.hostElement).querySelector("#main-content").style.backgroundColor=A};
_.q.headerPromoBackgroundColorChanged_=function(){var A,H=(A=this.data)==null?void 0:A.headerPromoBackgroundColor;A=ub[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Va(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=A};
_.q.errorRendererVisibilityChanged_=function(){var A=this.isExpanded_,H;this.isErrorRendererVisible_=!((H=this.data)==null||!H.errorRenderer)&&!A};
_.q.onYtToggleButton_=function(A,H){this.isExpanded_=H.toggled};
bb.prototype.onYtToggleButton_=bb.prototype.onYtToggleButton_;bb.prototype.errorRendererVisibilityChanged_=bb.prototype.errorRendererVisibilityChanged_;bb.prototype.headerPromoBackgroundColorChanged_=bb.prototype.headerPromoBackgroundColorChanged_;bb.prototype.backgroundColorChanged_=bb.prototype.backgroundColorChanged_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(oZG.YtCardItemBoxBehavior),_.l("design:type",Object)],bb.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.P(_.uGe.YtTappableItemBehavior),_.l("design:type",Object)],bb.prototype,"ytTappableItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bb.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],bb.prototype,"isExpanded_",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],bb.prototype,"isErrorRendererVisible_",void 0);_.E([_.fF("data.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bb.prototype,"backgroundColorChanged_",null);_.E([_.fF("data.headerPromoBackgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bb.prototype,"headerPromoBackgroundColorChanged_",null);
_.E([_.fF("data.errorRenderer","isExpanded_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bb.prototype,"errorRendererVisibilityChanged_",null);_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Object]),_.l("design:returntype")],bb.prototype,"onYtToggleButton_",null);_.E([_.h6({is:"yt-card-item-renderer",disableElementRegistration:!0})],bb);
_.Q(bb,"yt-card-item-renderer",function(){if(JVB===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;mi3===void 0&&(mi3=document.createElement("template"));var d=mi3;k.call(H,d.content.cloneNode(!0),A.content.firstChild);JVB=A}A=JVB;return A},{mode:2});_.uL("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var LJ=function(){var A=_.a.apply(this,arguments)||this;A.hidden=!1;return A};
_.I(LJ,_.a);_.q=LJ.prototype;_.q.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.q.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.q.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var A,H=(A=this.commerceCartHeaderEntity)==null?void 0:A.isHidden;H!==void 0&&(this.hidden=H)}};
_.q.updateTitle=function(){var A=this.commerceCartHeaderEntity.isDisabled,H,k,d=(k=_.L((H=this.data)==null?void 0:H.item,QrA))==null?void 0:k.headingRenderer;d&&(H=is(d,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".0.cardItemTextRenderer.textColor",A?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.q.updateSummaryText=function(){var A=this.commerceCartHeaderEntity;if(this.compact){var H,k,d=(k=_.L((H=this.data)==null?void 0:H.item,QrA))==null?void 0:k.headingRenderer;d&&(H=is(d,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".1.cardItemTextRenderer.text",A.shortHeaderSummaryText?hv(A.shortHeaderSummaryText):A.headerSummaryText?hv(A.headerSummaryText):""))}else{var W;if(H=(W=_.L((d=this.data)==null?void 0:d.item,QrA))==null?void 0:W.additionalInfoRenderer)H=is(H,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".text",A.headerSummaryText?hv(A.headerSummaryText):"")}};
_.q.updateCheckoutButton=function(){var A=this.commerceCartHeaderEntity,H,k,d=(k=_.L((H=this.data)==null?void 0:H.item,QrA))==null?void 0:k.additionalInfoRenderer;H=is(d,"buttonRenderer");var W;k=(W=this.commerceCartHeaderEntity)==null?void 0:W.isButtonDisabled;var z;W=(z=this.commerceCartHeaderEntity)==null?void 0:z.isButtonHidden;k!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.isDisabled",k);W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
W);var u;A=(u=A.checkoutButtonCommand)==null?void 0:u.innertubeCommand;A!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.command",A)};
LJ.prototype.entityChanged=LJ.prototype.entityChanged;_.E([_.P(_.TG),_.l("design:type",Object)],LJ.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],LJ.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],LJ.prototype,"compact",void 0);_.E([_.C({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(A,H){return _.Mw(A.entities,"commerceCartHeaderEntity",H)}}),
_.l("design:type",Object)],LJ.prototype,"commerceCartHeaderEntity",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],LJ.prototype,"hidden",void 0);_.E([_.fF("commerceCartHeaderEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LJ.prototype,"entityChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],LJ);
_.Q(LJ,"ytd-commerce-cart-header-renderer",function(){if(rVB!==void 0)return rVB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return rVB=A},{mode:1});var g13;var bLB=_.hK(function(A,H){var k;return(k=A.onChangeCallback)==null?void 0:k.call(A,H)},1E3),LBI=_.c(function(A){var H=A.data;
var k=A.iconMinus;A=A.iconPlus;var d=function(){return!!H().disabled},W=_.r(_.RV(0,void 0,"mKh0af")),z=W.next().value,u=W.next().value;
W=_.lc(function(){if(z()===1){var m,J;(J=(m=H()).onRemoveCommand)==null||J.call(m)}m=z()>H().maxValue?H().maxValue:z()-1;u(m);bLB(H(),m);return!1});
var B=_.lc(function(){if(z()===H().maxValue)return!1;var m=z()+1;u(m);bLB(H(),m);return!1});
_.Sp(function(){u(H().value)});
var h={},O={},T={};return _.x("quantity-incrementer-shape",null,_.x("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.x("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return z()===(H().onRemoveCommand?0:1)||d()},
"aria-label":function(){return z()!==1?H().minusLabel:H().minimumReachedLabel},
"on:click":W},_.x(_.pM,{model:{circular:!0}}),_.x("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.x("div",{class:_.ER("ytSpecQuantityIncrementerShapeIcon",(h.ytSpecQuantityIncrementerShapeIconDisabled=function(){return d()||z()===(H().onRemoveCommand?0:1)},h))},k()))),_.x("div",{class:_.ER("ytSpecQuantityIncrementerShapeText",(O.ytSpecQuantityIncrementerShapeTextInvalid=function(){return z()>H().maxValue},O.ytSpecQuantityIncrementerShapeTextDisabled=d,O))},z),_.x("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return z()>=H().maxValue||d()},
"aria-label":function(){return z()!==H().maxValue?H().plusLabel:H().maximumReachedLabel},
"on:click":B},_.x(_.pM,{model:{circular:!0}}),_.x("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.x("div",{class:_.ER("ytSpecQuantityIncrementerShapeIcon",(T.ytSpecQuantityIncrementerShapeIconDisabled=function(){return z()>=H().maxValue||d()},T))},A())))))},"Vf");_.Sw(_.c(function(A){function H(){k().onRemoveCommand&&_.mu(k().onRemoveCommand)}
var k=A.data;var d=_.o9(loW,function(){return k().quantityIncrementerEntityKey});
return _.x("yt-quantity-incrementer-view-model",null,_.x(LBI,{data:function(){var W=k(),z;var u=d()?!((z=d())==null||!z.disabled):!1;var B;z=d()?(B=d())==null?void 0:B.quantity:k().quantity;return zqC(W,u,H,z)},
iconMinus:function(){return _.x(_.n3,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.x(_.n3,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Wf"),"yt-quantity-incrementer-view-model",{props:{data:_.Ih}});var vg=function(){var A=_.a.apply(this,arguments)||this;A.compact=!1;A.hasQuantityIncrementer=!1;return A};
_.I(vg,_.a);vg.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"}}}};
vg.prototype.computeHasQuantityIncrementer=function(){var A;return!!_.L((A=this.data)==null?void 0:A.picker,lkZ)};
vg.prototype.onLabelClick=function(){var A;(A=this.dropdownEl)==null||A.open()};
_.E([_.ol("ytd-dropdown-renderer"),_.l("design:type",Object)],vg.prototype,"dropdownEl",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],vg.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],vg.prototype,"quantityColor",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vg.prototype,"compact",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.l("design:type",Object)],vg.prototype,"hasQuantityIncrementer",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],vg);
_.Q(vg,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(g13!==void 0)return g13;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return g13=A},{mode:1});var v1B;var yVL;var yR=function(){return _.a.apply(this,arguments)||this};
_.I(yR,_.a);yR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
yR.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
yR.prototype.updateTitle=function(){var A=this.disabledCartItemEntity;A.disableActionName&&this.set("data.title",hv(A.disableActionName))};
yR.prototype.updateButton=function(){var A,H=(A=this.disabledCartItemEntity.undoCommand)==null?void 0:A.innertubeCommand;H!==void 0&&(this.set("data.actionButton.buttonRenderer.command",H),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
yR.prototype.entityChanged=yR.prototype.entityChanged;_.E([_.P(_.TG),_.l("design:type",Object)],yR.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(A,H){return _.Mw(A.entities,"disabledCartItemEntity",H)}}),
_.l("design:type",Object)],yR.prototype,"disabledCartItemEntity",void 0);_.E([_.C(),_.l("design:type",Object)],yR.prototype,"data",void 0);_.E([_.fF("disabledCartItemEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yR.prototype,"entityChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],yR);
_.Q(yR,"ytd-disabled-cart-item-renderer",function(){if(yVL!==void 0)return yVL;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return yVL=A},{mode:1});_.uL("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var jj=function(){var A=_.a.apply(this,arguments)||this;A.compact=!1;A.hidden=!1;A.errorHidden=!1;A.noOnTap=!1;return A};
_.I(jj,_.a);_.q=jj.prototype;
_.q.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"}}}};
_.q.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.q.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var A=this.firstButtonElement;A.alignByText=!0;A.iconAlignByText=!0}};
_.q.computeNoOnTap=function(A){return!A};
_.q.updateQuantityColor=function(){if(this.pickerElement){var A,H=(A=this.commerceCartItemEntity)==null?void 0:A.quantityColor;this.pickerElement.quantityColor=H}};
_.q.updateTotalPriceColor=function(){var A,H=(A=this.commerceCartItemEntity)==null?void 0:A.totalPriceColor;if(H){var k;A=_.L((k=this.data)==null?void 0:k.quantityPicker,E0A);if(k=_.L(A==null?void 0:A.price,VZk))k.textColor=H}};
_.q.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var A,H=(A=this.commerceCartItemEntity)==null?void 0:A.isHidden;H!==void 0&&(this.hidden=H)}};
_.q.updateHideErrorMessage=function(){var A,H=(A=this.commerceCartItemEntity)==null?void 0:A.hideErrorMessage;H!==void 0&&(this.errorHidden=H)};
_.q.updateQuantity=function(){var A=this,H,k=(H=this.commerceCartItemEntity)==null?void 0:H.quantity,d;H=(d=this.commerceCartItemEntity)==null?void 0:d.totalPrice;if(k){this.updateTotalPriceColor();this.updateQuantityColor();var W;d=_.L((W=this.data)==null?void 0:W.quantityPicker,E0A);if(W=_.L(d==null?void 0:d.price,VZk))W.text=H?{simpleText:H.content}:void 0;if(H=_.L(d==null?void 0:d.picker,lkZ))H.quantity=k;var z;if(W=(z=_.L(d==null?void 0:d.picker,ETi))==null?void 0:z.entries){z=!1;H=void 0;W=
_.r(W);for(d=W.next();!d.done;d=W.next())d=d.value,d.dropdownItemRenderer&&(H||(H=d.dropdownItemRenderer),d.dropdownItemRenderer.isSelected=!1,k===d.dropdownItemRenderer.int32Value&&(z=!0,d.dropdownItemRenderer.isSelected=!0));!z&&H&&(H.isSelected=!0)}_.No(this,function(){var u;A.set("data.quantityPicker",_.iK.unsafeClone((u=A.data)==null?void 0:u.quantityPicker))})}};
jj.prototype.onYtRendererstamperFinished=jj.prototype.onYtRendererstamperFinished;jj.prototype.entityChanged=jj.prototype.entityChanged;_.E([_.C(),_.l("design:type",Object)],jj.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jj.prototype,"compact",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],jj.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],jj.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(A,H){return _.Mw(A.entities,"commerceCartItemEntity",H)}}),
_.l("design:type",Object)],jj.prototype,"commerceCartItemEntity",void 0);_.E([_.C(),_.l("design:type",Object)],jj.prototype,"quantityPicker",void 0);_.E([_.C(),_.l("design:type",Object)],jj.prototype,"compactQuantityPicker",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jj.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jj.prototype,"errorHidden",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.l("design:type",Object)],jj.prototype,"noOnTap",void 0);_.E([_.ol("ytd-commerce-cart-item-quantity-picker-renderer"),_.l("design:type",Object)],jj.prototype,"pickerElement",void 0);_.E([_.ol("yt-button-renderer"),_.l("design:type",Element)],jj.prototype,"firstButtonElement",void 0);
_.E([_.fF("commerceCartItemEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jj.prototype,"entityChanged",null);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jj.prototype,"onYtRendererstamperFinished",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],jj);
_.Q(jj,"ytd-commerce-cart-item-renderer",function(){if(v1B!==void 0)return v1B;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return v1B=A},{mode:2});var j_I;var I3L;var IG=function(){return _.a.apply(this,arguments)||this};
_.I(IG,_.a);IG.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}}}}}};
IG.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
IG.prototype.updateCheckoutLineItems=function(){var A,H=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.checkoutLineItems;H&&(A=H.map(function(k){a:{var d=k.price,W=k.description;switch(k.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":k={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:hv(W),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:hv(d),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:k={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:hv(W),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:hv(d),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 k}),this.set("data.summaryLineItems",A))};
IG.prototype.updateIsHidden=function(){var A,H=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isHidden;H!==void 0&&(this.hostElement.hidden=H)};
IG.prototype.entityChanged=IG.prototype.entityChanged;_.E([_.P(_.TG),_.l("design:type",Object)],IG.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],IG.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],IG.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:G3b}),_.l("design:type",Object)],IG.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.fF("commerceCartCheckoutButtonEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IG.prototype,"entityChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],IG);
_.Q(IG,"ytd-commerce-cart-summary-renderer",function(){if(I3L!==void 0)return I3L;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return I3L=A},{mode:1});var YBi={};YBi.InjectBehavior=[V6I.InjectBehavior];var PQL;var Ge1;var Yi=function(){return _.a.apply(this,arguments)||this};
_.I(Yi,_.a);
Yi.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:_.Bn("menuRenderer")}}};
Yi.prototype.onMenuTap=function(A){A.stopPropagation()};
_.nP.Object.defineProperties(Yi.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 A,H;return!(((A=this.data)==null||!A.sectionHeading)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var A,H;return!(((A=this.data)==null||!A.image)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var A,H;return!(((A=this.data)==null||!A.menu)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.uGe.YtTappableItemBehavior),_.l("design:type",Object)],Yi.prototype,"ytTappableItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Yi.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data.accessibilityData"),_.l("design:type",String),_.l("design:paramtypes",[])],Yi.prototype,"ariaLabel",null);_.E([_.G("data.sectionHeading","data.layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Yi.prototype,"sectionHeadingVisible",null);_.E([_.G("data.image","data.layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Yi.prototype,"imageVisible",null);
_.E([_.G("data.menu","data.layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Yi.prototype,"menuVisible",null);_.E([_.h6({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Yi);
_.Q(Yi,"yt-activity-item-renderer",function(){if(Ge1===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;PQL===void 0&&(PQL=document.createElement("template"));var d=PQL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Ge1=A}A=Ge1;return A},{mode:2});var FBI;var XRB;var DiQ;var SB1;var Pg=function(){return _.a.apply(this,arguments)||this};
_.I(Pg,_.a);
Pg.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"}}}}};
Pg.prototype.backgroundColorChanged_=function(){var A,H=(A=this.data)==null?void 0:A.backgroundColor;this.hostElement.style.backgroundColor=ub[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Pg.prototype.backgroundColorChanged_=Pg.prototype.backgroundColorChanged_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Pg.prototype,"data",void 0);
_.E([_.fF("data.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pg.prototype,"backgroundColorChanged_",null);_.E([_.h6({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Pg);
_.Q(Pg,"yt-offer-item-upsell-renderer",function(){if(SB1===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;DiQ===void 0&&(DiQ=document.createElement("template"));var d=DiQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);SB1=A}A=SB1;return A},{mode:2});_.uL("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Gm=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};A.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return A};
_.I(Gm,_.a);_.q=Gm.prototype;
_.q.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:_.Bn("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.q.computeContainerStyle_=function(A){return A};
_.q.computeContainerIsHidden_=function(A){return A&&!!A.isHidden};
_.q.computeShowSpinner_=function(A,H){return A&&H==="in-progress"};
_.q.computeShowMoreContentsButton_=function(A,H,k,d,W){return!(!(d&&d.length||W&&W.length&&k)||!A||H)};
_.q.onToggleButton_=function(A){var H=this;A.stopPropagation();this.isExpanded_=A.detail&&A.detail.toggled;var k,d;this.isExpanded_&&!this.data.continuationSection.length&&((k=this.data)==null?0:(d=k.continuation)==null?0:d.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Ed(this.hostElement,"yt-load-next-continuation",function(W){return H.getContinuationUrl_(H.data.continuation.onClickContinuationData,W)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.tx(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.q.onShowMoreContentsButtonClicked_=function(A){var H=this;A.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Ed(this.hostElement,"yt-load-next-continuation",function(k){return H.getContinuationUrl_(H.data.continuations[0].nextContinuationData,k)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.tx(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.q.getContinuationUrl_=function(A,H){var k=A.continuation;A=A.clickTrackingParams;var d=_.hx();A&&d&&_.P0(d,_.db(A));return _.$d(H,{continuation:k})};
_.q.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var A=_.Va(this.hostElement).querySelector("#continuation-section");A&&(A=A.querySelectorAll("ytmusic-item-section-renderer"))&&A.forEach(function(H){return H.classList.add("memberships-and-purchases")})};
_.q.dataChanged_=function(){var A;this.isExpanded_=!((A=this.data)==null||!A.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.q.updateCardOnClickCommand_=function(A){A=_.L(A,XxN);var H,k;this.data&&((H=this.data)==null?0:H.targetId)&&A&&A.targetId===((k=this.data)==null?void 0:k.targetId)&&A.onClickCommand&&(this.data.onClickCommand=A.onClickCommand,this.isOnClickCommand_=!0)};
_.q.backgroundColorChanged_=function(){var A,H=(A=this.data)==null?void 0:A.backgroundColor;this.hostElement.style.backgroundColor=ub[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Gm.prototype.backgroundColorChanged_=Gm.prototype.backgroundColorChanged_;Gm.prototype.dataChanged_=Gm.prototype.dataChanged_;Gm.prototype.nextContinuationDataUpdated_=Gm.prototype.nextContinuationDataUpdated_;Gm.prototype.onToggleButton_=Gm.prototype.onToggleButton_;_.E([_.P(_.DV),_.l("design:type",Object)],Gm.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Gm.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.So.YtNextContinuationBehavior),_.l("design:type",Object)],Gm.prototype,"ytNextContinuationBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.E([_.P(YBi.InjectBehavior),_.l("design:type",Object)],Gm.prototype,"injectBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Gm.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Gm.prototype,"compact",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Gm.prototype,"isExpanded_",void 0);_.E([_.C({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.l("design:type",String)],Gm.prototype,"containerStyle_",void 0);_.E([_.C({value:"not-started"}),_.l("design:type",String)],Gm.prototype,"continuationStatus_",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.l("design:type",Boolean)],Gm.prototype,"showSpinner_",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Gm.prototype,"isOnClickCommand_",void 0);_.E([_.C({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.l("design:type",Boolean)],Gm.prototype,"showMoreContentsButton_",void 0);
_.E([_.C({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(A,H){return!H||A.entities?null:_.Mw(A.entities,"cardItemContainerEntity",H)}}),
_.l("design:type",Object)],Gm.prototype,"cardItemContainerEntity_",void 0);_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Gm.prototype,"onToggleButton_",null);_.E([_.Ze("yt-next-continuation-data-updated"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gm.prototype,"nextContinuationDataUpdated_",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gm.prototype,"dataChanged_",null);_.E([_.fF("data.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gm.prototype,"backgroundColorChanged_",null);_.E([_.h6({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Gm);
_.Q(Gm,"yt-card-item-container-renderer",function(){if(XRB===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;FBI===void 0&&(FBI=document.createElement("template"));var d=FBI;k.call(H,d.content.cloneNode(!0),A.content.firstChild);XRB=A}A=XRB;return A},{mode:2});var F2=function(){return _.a.apply(this,arguments)||this};
_.I(F2,_.a);F2.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"}}}};
F2.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
F2.prototype.computeLoadingHidden=function(){var A;return!((A=this.commerceCartPageStateEntity)==null?0:A.cartActionInProgress)};
F2.prototype.updateNotification=function(){var A,H=(A=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:A.summaryText;H&&this.set("data.cartNotification",hv(H))};
F2.prototype.notificationEntityChanged=F2.prototype.notificationEntityChanged;_.E([_.P(_.TG),_.l("design:type",Object)],F2.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],F2.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],F2.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(A,H){return _.Mw(A.entities,"commerceCartExpandableNotificationEntity",H)}}),
_.l("design:type",Object)],F2.prototype,"commerceCartExpandableNotificationEntity",void 0);_.E([_.C({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(A,H){return _.Mw(A.entities,"commerceCartPageStateEntity",H)}}),
_.l("design:type",Object)],F2.prototype,"commerceCartPageStateEntity",void 0);_.E([_.ol("#spinner"),_.l("design:type",HTMLElement)],F2.prototype,"spinner",void 0);_.E([_.fF("commerceCartExpandableNotificationEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],F2.prototype,"notificationEntityChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],F2);
_.Q(F2,"ytd-commerce-cart-renderer",function(){if(j_I!==void 0)return j_I;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return j_I=A},{mode:1});var CQ_;var X2=function(){var A=_.a.apply(this,arguments)||this;A.bigImage=!1;return A};
_.I(X2,_.a);_.nP.Object.defineProperties(X2.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.placeholderImageUrl}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],X2.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],X2.prototype,"bigImage",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],X2.prototype,"placeholderImageUrl",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],X2);
_.Q(X2,"ytd-empty-product-shelf-renderer",function(){if(CQ_!==void 0)return CQ_;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return CQ_=A},{mode:1});var KBM;var Dg=function(){var A=_.a.apply(this,arguments)||this;A.itemStyle="link-item";A.watchMetadataRefresh=!1;A.skinnyMode=!1;A.metaPanel=!1;A.inStructuredDescription=!1;A.detailedDescriptionOverride=!1;A.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};A.updateOnResizeDebouncer=null;return A};
_.I(Dg,_.a);_.q=Dg.prototype;_.q.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.q.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"}}}}};
_.q.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.q.attachVEs=function(A){A.trackingParams&&_.A7().graftServerVe(A.trackingParams)};
_.q.handleUpdateMerchShelfAction=function(A){var H=this,k=_.L(A.updateMerchandiseShelfAction.merchandiseShelf,_.shj);k&&(k.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){H.attachVEs(k);H.data=k},Number(k.renderDelayMs))):(this.attachVEs(k),this.data=k))};
_.q.updateOnResize=function(){if(this.JSC$17358_scrollContainer!==void 0&&this.JSC$17358_scrollContainer.clientWidth!==0&&this.items!==void 0){var A=this.JSC$17358_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-A));this.ytdHorizontalListBehavior.reposition_();var H;switch((H=this.data)==null?void 0:H.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var k,
d;((k=this.data)==null?void 0:(d=k.items)==null?void 0:d.length)===1?this.itemStyle="cta-item":this.itemStyle=A>=740?"large-item":"small-item"}}};
_.q.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.E4(this.updateOnResizeDebouncer,_.Gt.after(100),this.updateOnResize)};
Dg.prototype.debouncedUpdateOnResize=Dg.prototype.debouncedUpdateOnResize;Dg.prototype.dataChanged=Dg.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.pg.YtdHorizontalListBehavior),_.l("design:type",Object)],Dg.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Dg.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Dg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Dg.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Dg.prototype,"itemStyle",void 0);_.E([_.C({value:6}),_.l("design:type",Number)],Dg.prototype,"initialCount",void 0);
_.E([_.C({value:"data.items"}),_.l("design:type",String)],Dg.prototype,"itemsPath",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Dg.prototype,"watchMetadataRefresh",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Dg.prototype,"skinnyMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Dg.prototype,"metaPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Dg.prototype,"inStructuredDescription",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Dg.prototype,"detailedDescriptionOverride",void 0);_.E([_.ol("#items"),_.l("design:type",HTMLDivElement)],Dg.prototype,"items",void 0);_.E([_.ol("#scroll-container"),_.l("design:type",HTMLDivElement)],Dg.prototype,"JSC$17358_scrollContainer",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Dg.prototype,"dataChanged",null);
_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Dg.prototype,"debouncedUpdateOnResize",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Dg);
_.Q(Dg,"ytd-merch-shelf-renderer",function(){if(KBM!==void 0)return KBM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return KBM=A},{mode:2});var a3B;var Sj=function(){var A=_.a.apply(this,arguments)||this;A.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 A};
_.I(Sj,_.a);_.q=Sj.prototype;
_.q.addBackstagePostAction=function(A){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(A=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",A))&&(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:A}):this.set("data.contents",[{backstagePostThreadRenderer:A}]))};
_.q.addBackstageCommentAction=function(A){var H=this.get("addBackstageCommentAction.parentId",A);A=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",A);if(H&&A){H=this.postIdToIndices(H);for(var k=0;k<H.length;k++){var d=H[k];if(d<0)break;d="data.contents."+d+".backstagePostThreadRenderer.comments";this.get(d)&&(this.get(d+".backstageCommentsRenderer.contents")&&this.push(d+".backstageCommentsRenderer.contents",{commentThreadRenderer:A}),this.get(d+".backstageCommentsRenderer.teaserContents")?
this.push(d+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:A}):this.set(d+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:A}]))}}};
_.q.addBackstageReplyAction=function(A){var H=this.get("addBackstageReplyAction.parentId",A);A=this.get("addBackstageReplyAction.renderer.commentRenderer",A);H&&A&&this.setCreatorReply(H,A)};
_.q.banAuthorAction=function(A){var H=this.get("banAuthorAction.commentId",A);H&&(A=this.get("banAuthorAction.parentCommentId",A)||this.getParentPostId(H),this.removeFromStream(H,A))};
_.q.hideReportedCommentAction=function(A){var H=this.get("hideReportedCommentAction.commentId",A);H&&((A=this.get("hideReportedCommentAction.parentCommentId",A))||(A=this.getParentPostId(H)),this.removeFromStream(H,A))};
_.q.replaceBackstageCommentAction=function(A){var H=this.get("replaceBackstageCommentAction.commentId",A),k=this.get("replaceBackstageCommentAction.parentId",A);A=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",A);if(H&&k&&A){k=this.postIdToIndices(k);for(var d=0;d<k.length;d++){var W=k[d];if(W<0)break;var z=this.commentIdToIndex(H,W,!1);if(z>=0){var u=this.get("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z+".commentThreadRenderer.replies.commentRepliesRenderer");
u&&(A.replies={commentRepliesRenderer:u});this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",z,1,{commentThreadRenderer:A})}z=this.commentIdToIndex(H,W,!0);if(z>=0){if(u=this.get("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(z+".commentThreadRenderer.replies.commentRepliesRenderer")))A.replies={commentRepliesRenderer:u};this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
z,1,{commentThreadRenderer:A})}}}};
_.q.replaceBackstagePostAction=function(A){var H=this.get("replaceBackstagePostAction.itemId",A);if(H){H=this.postIdToIndices(H);for(var k=0;k<H.length;k++){var d=H[k];if(d<0)break;var W=this.getPostRendererType(d),z=this.get("replaceBackstagePostAction.renderer."+W,A);if(!z&&W!=="sharedPostRenderer")break;var u=!1;z||(u=!0,z=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",A));if(!z)break;var B={};u?(_.uc(B,Rvj,z),this.set("data.contents."+d+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
B)):(_.uc(B,new _.Dt(W),z),this.set("data.contents."+d+".backstagePostThreadRenderer.post",B))}}};
_.q.replaceBackstageReplyAction=function(A){var H=this.get("replaceBackstageReplyAction.replyId",A),k=this.get("replaceBackstageReplyAction.parentId",A);A=this.get("replaceBackstageReplyAction.renderer.commentRenderer",A);H&&A&&k&&this.setCreatorReply(k,A)};
_.q.removeCommentAction=function(A){var H=this.get("removeCommentAction.commentId",A);if(H){var k=this.get("removeCommentAction.parentCommentId",A);k&&this.get("removeCommentAction.isCreatorReply",A)?this.setCreatorReply(k,void 0):(k||(k=this.getParentPostId(H)),this.removeFromStream(H,k))}};
_.q.setCreatorReply=function(A,H){var k=this.getParentPostId(A);if(k){k=this.postIdToIndices(k);for(var d=0;d<k.length;d++){var W=k[d];if(W<0)break;var z=this.commentIdToIndex(A,W,!1);if(z>=0){var u="data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z;z=u+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";u+=".commentThreadRenderer.replies";H==void 0?(this.set(u,{}),this.set(z,!1)):(this.set(u,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),
this.set(u+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(z,!0))}z=this.commentIdToIndex(A,W,!0);z>=0&&(z="data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+z,W=z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",z+=".commentThreadRenderer.replies",H==void 0?(this.set(z,{}),this.set(W,!1)):(this.set(z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),this.set(W,!0)))}}};
_.q.removeFromStream=function(A,H){if(H){H=this.postIdToIndices(H);for(var k=0;k<H.length;k++){var d=H[k];if(d<0)break;var W=this.commentIdToIndex(A,d,!1);W>=0&&this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",W,1);W=this.commentIdToIndex(A,d,!0);W>=0&&this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",W,1);d="data.contents."+d+".backstagePostThreadRenderer.post.backstagePostRenderer";
W=d+".backstageAttachment.pollRenderer.votedCommentId";this.get(W)===A&&(this.set(W,null),this.set(d+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(H=this.postIdToIndices(A).reverse(),k=0;k<H.length;k++){d=H[k];if(d<0)break;W=this.getPostRendererType(d);var z=this.get("backstagePostThreadRenderer.post."+W,this.data.contents[d]);z.postId===A?this.splice("data.contents",d,1):W==="sharedPostRenderer"&&this.set("data.contents."+d+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);z.scheduledPublishTimeSec&&_.Ud(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.q.postIdToIndices=function(A){for(var H=[],k=0;k<this.data.contents.length;k++){var d=this.getPostRendererType(k);this.get("backstagePostThreadRenderer.post."+d+".postId",this.data.contents[k])===A&&H.push(k);if(d==="sharedPostRenderer"){var W=this.get("backstagePostThreadRenderer.post."+d+".originalPost.backstagePostRenderer.postId",this.data.contents[k]);d=this.get("backstagePostThreadRenderer.post."+d+".originalPost.postRenderer.postId",this.data.contents[k]);W!==A&&d!==A||H.push(k)}}return H};
_.q.commentIdToIndex=function(A,H,k){if(H<0)return-1;var d,W,z,u,B=_.L((d=this.data)==null?void 0:(W=d.contents)==null?void 0:(z=W[H])==null?void 0:(u=z.backstagePostThreadRenderer)==null?void 0:u.comments,hvw);return(H=k?B==null?void 0:B.teaserContents:B==null?void 0:B.contents)&&H.length?H.findIndex(function(h){return _.L(h,wow).comment.commentRenderer.commentId===A}):-1};
_.q.getParentPostId=function(A){A=A.split(".");if(A[1])return A[0]};
_.q.getPostRendererType=function(A){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[A])?"sharedPostRenderer":"backstagePostRenderer"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Sj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Sj.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:_.b("enable_community_page_on_desktop")}),_.l("design:type",Boolean)],Sj.prototype,"useSmallerPostContainer",void 0);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-backstage-items"})],Sj);
_.Q(Sj,"ytd-backstage-items",function(){if(a3B!==void 0)return a3B;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return a3B=
A},{mode:1});var cVL;var pRL={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},CJ=function(){var A=_.a.apply(this,arguments)||this;A.disablePrescanVisibility=!0;A.canScheduleJobs=!0;A.engagementPanel=!1;A.hidePanelButton=!1;A.isWatchGrid=
!1;A.hasShownSubscribersOnlyDisclaimer=!1;A.hasShownSuperfanOnlyDisclaimer=!1;A.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_"};A.TEST_ONLY=void 0;return A};
_.I(CJ,_.a);_.q=CJ.prototype;_.q.created=function(){this.initCommentsCsi_();_.b("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.b("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.q.contentsChanged_=function(){var A;(A=this.data)!=null&&A.contents&&this.tickForCommentsTimer_("cml")};
_.q.headerChanged_=function(){var A;(A=this.data)!=null&&A.header&&this.tickForCommentsTimer_("cmhl")};
_.q.initCommentsCsi_=function(){_.hZ("wn_comments");var A=_.hx();A&&_.xB({clientScreenNonce:A},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.q.createCommentAction_=function(A){A=_.iK.unsafeClone(A);var H,k;if(A=(H=_.L(A,Esj))==null?void 0:(k=H.contents)==null?void 0:k.commentThreadRenderer){var d,W,z,u,B,h;!this.isBackstage&&((d=this.data)==null?0:(W=d.header)==null?0:(z=W.commentsHeaderRenderer)==null?0:(u=z.createRenderer)==null?0:(B=u.commentSimpleboxRenderer)==null?0:(h=B.zeroStep)==null?0:h.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var O,
T,m;this.isBackstage&&_.L((O=this.data)==null?void 0:(T=O.header)==null?void 0:(m=T.commentsHeaderRenderer)==null?void 0:m.zeroStateMessage,T61)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(A)}};
_.q.doReplyInsert_=function(A,H,k,d){d?this.splice(A,d,0,H):this.push(A,H)};
_.q.getRepliesPath_=function(A){return"data.contents."+A+".commentThreadRenderer.replies"};
_.q.getRepliesContentsPath_=function(A,H){A=this.getRepliesPath_(A);return H?A+".commentRepliesRenderer.teaserContents":A+".commentRepliesRenderer.contents"};
_.q.showSubscribersOnlyDisclaimer_=function(A){(A=A.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&(_.Ud(this.hostElement,"yt-open-popup-action",[A,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.q.showSuperfanOnlyDisclaimer_=function(A){(A=A.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&(_.Ud(this.hostElement,"yt-open-popup-action",[A,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.q.createCommentReplyAction_=function(A){A=_.iK.unsafeClone(A);var H=_.L(A,Urw);if(A=H==null?void 0:H.contents){var k=this.commentIdToIndex_(H==null?void 0:H.parentCommentId);if(!(k<0)){var d=this.getRepliesPath_(k);if(this.get(d)){H=H.replyToCommentId;d=this.getRepliesContentsPath_(k,!1);if(this.get(d)){var W=this.get(d).length,z=d+"."+(W-1)+".continuationItemRenderer";this.get(z+".button")?(z=this.replyIdToIndex_(H,k,!1),this.doReplyInsert_(d,A,z,W-1)):this.get(z)||(W=this.replyIdToIndex_(H,k,
!1),this.doReplyInsert_(d,A,W,null))}d=this.getRepliesContentsPath_(k,!0);this.get(d)?(k=this.replyIdToIndex_(H,k,!0),(!H||k>=0)&&this.doReplyInsert_(d,A,k,null)):this.set(d,[A])}else this.set(d,{commentRepliesRenderer:{teaserContents:[A]}})}}};
_.q.hideReportedCommentAction_=function(A){var H=_.L(A,uqN);if(A=H==null?void 0:H.commentId)(H=this.get("parentCommentId",H))||(H=this.getParentCommentId_(A)),this.remove_(A,H)};
_.q.getParentCommentId_=function(A){A=A.split(".");if(A[1])return A[0]};
_.q.removeCommentAction_=function(A){var H=_.L(A,ns0);if(A=H==null?void 0:H.commentId)H=(H==null?void 0:H.parentCommentId)||this.getParentCommentId_(A),this.remove_(A,H)};
_.q.pinCommentAction_=function(A){A=_.iK.unsafeClone(A);var H=_.L(A,MJQ);H!=null&&H.commentId&&(A=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",A))&&(this.remove_(H.commentId),this.insert_(A,!0))};
_.q.unpinCommentAction_=function(A){A=_.iK.unsafeClone(A);A=_.L(A,ZiJ);if(A!=null&&A.commentId){var H,k,d=(H=A.actionResult)==null?void 0:(k=H.update)==null?void 0:k.commentThreadRenderer;d&&(this.remove_(A.commentId),this.insert_(d))}};
_.q.banAuthorAction_=function(A){var H=_.L(A,VJQ);H!=null&&H.commentId&&(A=H.commentId,H=H.parentCommentId||this.getParentCommentId_(A),this.remove_(A,H))};
_.q.handleScrollToCommentElement_=function(A){this.hostElement.contains(A)&&(this.nearestScrollParent||(this.nearestScrollParent=qyW(A)),this.isCommentVisibleInScrollParent(A)||A.scrollIntoView({behavior:"smooth",block:"nearest"}))};
_.q.isCommentVisibleInScrollParent=function(A){if(!this.nearestScrollParent)return!1;A=A.getBoundingClientRect();var H=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return A.top>=H.top&&A.bottom<=H.bottom};
_.q.commentIdToIndex_=function(A){var H;return A&&(H=this.data)!=null&&H.contents?this.data.contents.findIndex(function(k){k=k.commentThreadRenderer;var d;return A===((k==null?void 0:k.commentViewModel)&&((d=_.L(k.commentViewModel,kLp))==null?void 0:d.commentId))}):-1};
_.q.insert_=function(A,H){H=H===void 0?!1:H;var k,d;if((k=this.data)==null?0:(d=k.contents)==null?0:d.some(function(z){return!!z.commentThreadRenderer}))for(k=0,d=this.data.contents.length;k<d;k++){var W=this.data.contents[k].commentThreadRenderer;
if(pRL[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=pRL[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){H&&pRL[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===pRL[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",k,1,{commentThreadRenderer:A}):this.splice("data.contents",k,0,{commentThreadRenderer:A});break}}else this.set("data.contents",[{commentThreadRenderer:A}])};
_.q.doReplyRemove_=function(A,H,k){A=this.replyIdToIndex_(A,H,k);A<0||(H=this.getRepliesContentsPath_(H,k),this.splice(H,A,1))};
_.q.remove_=function(A,H){H=this.commentIdToIndex_(H);H<0?(H=this.commentIdToIndex_(A),H<0||this.splice("data.contents",H,1)):_.b("web_delhi_comment_threads")||(this.doReplyRemove_(A,H,!1),this.doReplyRemove_(A,H,!0))};
_.q.replyIdToIndex_=function(A,H,k){if(H<0)return-1;H=this.getRepliesContentsPath_(H,k);H=this.get(H);if(!H||!H.length)return-1;k=0;for(var d=H.length;k<d;k++){var W=void 0,z=void 0;if(((W=H[k])==null?void 0:(z=W.commentViewModel)==null?void 0:z.commentId)===A)return k}return-1};
_.q.tickForCommentsTimer_=function(A){_.RN(A,void 0,"wn_comments")};
_.q.reloadComments_=function(A){A=_.L(A,HoG);_.L(A==null?void 0:A.command,_.Tc)&&_.tx(this.hostElement,[A==null?void 0:A.command])};
_.nP.Object.defineProperties(CJ.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return!!((A=this.data)==null?0:(H=A.header)==null?0:(k=H.commentsHeaderRenderer)==null?0:k.isBackstageContent)}}});
_.nP.Object.defineProperties(CJ,{template:{configurable:!0,enumerable:!0,get:function(){if(cVL===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);cVL=A}A=cVL;return A}}});
CJ.prototype.showSuperfanOnlyDisclaimer_=CJ.prototype.showSuperfanOnlyDisclaimer_;CJ.prototype.showSubscribersOnlyDisclaimer_=CJ.prototype.showSubscribersOnlyDisclaimer_;CJ.prototype.headerChanged_=CJ.prototype.headerChanged_;CJ.prototype.contentsChanged_=CJ.prototype.contentsChanged_;_.E([_.P(_.Kk),_.l("design:type",Object)],CJ.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",Function)],CJ.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],CJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],CJ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.header.commentsHeaderRenderer.isBackstageContent"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CJ.prototype,"isBackstage",null);
_.E([_.C(),_.l("design:type",Object)],CJ.prototype,"disablePrescanVisibility",void 0);_.E([_.C(),_.l("design:type",Object)],CJ.prototype,"canScheduleJobs",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],CJ.prototype,"engagementPanel",void 0);_.E([_.C(),_.l("design:type",Object)],CJ.prototype,"hidePanelButton",void 0);_.E([_.C(),_.l("design:type",Object)],CJ.prototype,"isWatchGrid",void 0);_.E([_.C(),_.l("design:type",Object)],CJ.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.E([_.C(),_.l("design:type",Object)],CJ.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.E([_.fF("data.contents"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CJ.prototype,"contentsChanged_",null);_.E([_.fF("data.header"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CJ.prototype,"headerChanged_",null);
_.E([_.Ze("yt-show-subscribers-only-disclaimer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],CJ.prototype,"showSubscribersOnlyDisclaimer_",null);_.E([_.Ze("yt-show-superfan-only-snackbar"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],CJ.prototype,"showSuperfanOnlyDisclaimer_",null);_.E([_.O6({is:"ytd-comments"})],CJ);var KJ=function(){return _.A6.apply(this,arguments)||this};
_.I(KJ,_.A6);_.q=KJ.prototype;_.q.bindIf=function(A,H,k){return A?H:k};
_.q.bindIfDefined=function(A,H){return A!==void 0?A:H};
_.q.booleanString=function(A){return(!!A).toString()};
_.q.equals=function(){for(var A=_.o7.apply(0,arguments),H=A[0],k=1;k<A.length;k++)if(H!=A[k])return!1;return!0};
_.q.isGreaterThan=function(A,H){return A>H};
_.q.isLessThan=function(A,H){return A<H};
_.q.logicalAND=function(){for(var A=_.o7.apply(0,arguments),H=!!A[0],k=1;k<A.length;k++)H=H&&!!A[k];return H};
_.q.logicalOR=function(){for(var A=_.o7.apply(0,arguments),H=!!A[0],k=1;k<A.length;k++)H=H||!!A[k];return H};
_.q.toBool=function(A){return!!A};
KJ.prototype.toBool=KJ.prototype.toBool;KJ.prototype.logicalOR=KJ.prototype.logicalOR;KJ.prototype.logicalAND=KJ.prototype.logicalAND;KJ.prototype.isLessThan=KJ.prototype.isLessThan;KJ.prototype.isGreaterThan=KJ.prototype.isGreaterThan;KJ.prototype.equals=KJ.prototype.equals;KJ.prototype.booleanString=KJ.prototype.booleanString;KJ.prototype.bindIfDefined=KJ.prototype.bindIfDefined;KJ.prototype.bindIf=KJ.prototype.bindIf;_.E([_.HW()],KJ);_.Q_3=[KJ.prototype];var VI_;var E1_;var aG=function(){return _.a.apply(this,arguments)||this};
_.I(aG,_.a);aG.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
aG.prototype.onBackIconTap_=function(){window.history.back()};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],aG.prototype,"data",void 0);_.E([_.h6({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],aG);
_.Q(aG,"yt-header-with-back-renderer",function(){if(E1_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;VI_===void 0&&(VI_=document.createElement("template"));var d=VI_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);E1_=A}A=E1_;return A},{mode:2});var UiB;var l31;var cg=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(cg,_.a);_.q=cg.prototype;_.q.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.q.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A,this.setUrl())};
_.q.dataChanged=function(){var A=this;if(this.data){var H=this.setUrl();H&&_.nX({destination:window,iframe:this.iframe,origin:_.fLm(H.toString()),channelName:"yt-iframe",onMessage:function(k){(k=A.getCommunicationCommand(k.data))&&A.ytComponentBehavior.resolveCommand(k)},
onEstablished:function(){}})}};
_.q.setUrl=function(){if(this.data&&this.data.iframeUrl){var A=_.Yh(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(A)return _.zM(this.iframe,A),A}};
_.q.getCommunicationCommand=function(A){var H;if((H=this.data)!=null&&H.onCommunicationCommandsMap){H=this.data.onCommunicationCommandsMap.find(function(W){return W.key===A});
if(H==null?0:H.value)return H==null?void 0:H.value;try{var k=Lgw(_.$8(A)),d=this.data.onCommunicationCommandsMap.find(function(W){return W.key===(k==null?void 0:k.getMethodName())});
if(d==null?0:d.value)return d==null?void 0:d.value}catch(W){}}};
cg.prototype.dataChanged=cg.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],cg.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],cg.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cg.prototype,"data",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],cg.prototype,"isDarkTheme",void 0);_.E([_.ol("#iframe"),_.l("design:type",HTMLIFrameElement)],cg.prototype,"iframe",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cg.prototype,"dataChanged",null);_.E([_.h6({is:"yt-iframe-renderer",disableElementRegistration:!0})],cg);
_.Q(cg,"yt-iframe-renderer",function(){if(l31===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;UiB===void 0&&(UiB=document.createElement("template"));var d=UiB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);l31=A}A=l31;return A},{mode:2});_.pJ=function(A){_.dF.call(this);this.callback=A;this.bezier=new B3I(0,0,.4,0,.2,1,1,1);this.delay=new _.wo(this.next,window,this);this.JSC$17398_animating=!1;_.ZL(this,this.delay)};
_.I(_.pJ,_.dF);_.pJ.prototype.isAnimating=function(){return this.JSC$17398_animating};
_.pJ.prototype.start=function(A,H,k){this.config={from:A,to:H,duration:k,startTime:(0,_.w2)()};this.JSC$17398_animating=!0;this.next()};
_.pJ.prototype.stop=function(){this.delay.stop();this.JSC$17398_animating=!1;this.config=void 0};
_.pJ.prototype.next=function(){if(this.config){var A=this.config,H=A.from,k=A.to,d=A.duration;A=A.startTime;var W=(0,_.w2)()-A;A=this.bezier;d=DFJ(A,W/d);if(d==0)A=A.y0;else if(d==1)A=A.y3;else{W=GO(A.y0,A.y1,d);var z=GO(A.y1,A.y2,d);A=GO(A.y2,A.y3,d);W=GO(W,z,d);z=GO(z,A,d);A=GO(W,z,d)}A=_.Py(A,0,1);this.callback(H+(k-H)*A);A<1?this.delay.start():this.JSC$17398_animating=!1}};_.QR=new _.SE("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var tIL={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},MIQ=function(A,H,k,d){_.dF.call(this);this.JSC$17410_miniAppId=A;this.localReleaseId=H;this.derivedDeviceInterface=k;this.isForeground=d;this.JSC$17410_playNonceResolver=new _.lk;this.playPingTimerId=NaN;this.playPingIntervalMs=_.H5("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.H5("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.b("enable_displaying_ppn");this.JSC$17410_miniAppClientDataProvider=_.wj().resolve(_.QR);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;NLL(this);var W=setTimeout(function(){_.Pq(new _.Ti("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17410_playNonceResolver.promise.then(function(){clearTimeout(W)})};
_.I(MIQ,_.dF);var ZLL=function(A,H){A.JSC$17410_playNonceResolver.resolve(H!=null?H:e1(8));A.enableDisplayingPpn&&n1R(A).then(function(k){A.JSC$17410_miniAppClientDataProvider.clientData.set("post_play_nonce",k)})},n1R=function(A){return _.e(function(H){return H.nextAddress==1?H.yield(A.JSC$17410_playNonceResolver.promise,2):H.return(H.yieldResult)})},NLL=function(A){var H,k;
_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$17410_playNonceResolver.promise,2);H=d.yieldResult;k={miniAppInfo:{externalPostId:A.JSC$17410_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:H,derivedDeviceInterface:A.derivedDeviceInterface}};_.xB(k);_.EN(d)})},wRM=function(A){A.state!==0?_.Pq(new _.Ti("[MiniAppPlayLogger] recordPlayStart failed with state "+tIL[A.state])):(A.state=1,VR(A,"ma_cl"),E0(A,"PLAY_EVENT_TYPE_PLAY_START"),f3B(A))},o1_=function(A){A.isForeground=!1;
E0(A,"PLAY_EVENT_TYPE_PLAY_PAUSE")},$iQ=function(A){A.state!==1&&A.state!==2?_.Pq(new _.Ti("[MiniAppPlayLogger] recordPlayEnd failed with state "+tIL[A.state])):(A.state=3,window.clearInterval(A.playPingTimerId),A.playPingTimerId=NaN,ofr(),E0(A,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},AGG=function(A,H){A.state===2&&A.gameReady&&(A.firstClickRecorded?Date.now()-A.clickRecordedMs<A.playClickIntervalMs||(A.clickRecordedMs=Date.now(),E0(A,"PLAY_EVENT_TYPE_PLAY_CLICK")):H&&(VR(A,"ma_fua"),E0(A,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),A.firstClickRecorded=!0,A.clickRecordedMs=Date.now()))};
MIQ.prototype.logError=function(A){var H=this,k;_.e(function(d){if(d.nextAddress==1)return A.metadata.externalPostId=H.JSC$17410_miniAppId,k=A.metadata,d.yield(Promise.race([H.JSC$17410_playNonceResolver.promise,new Promise(function(W){setTimeout(function(){W("")},3E4)})]),2);
k.postPlayNonce=d.yieldResult;A.metadata.localReleaseId=H.localReleaseId;A.loggingError.level="WARNING";_.I3(A.loggingError,A.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:A.metadata});_.EN(d)})};
var HxL=function(A,H,k,d){var W,z,u,B,h,O;_.e(function(T){if(T.nextAddress==1)return T.yield(A.JSC$17410_playNonceResolver.promise,2);W=T.yieldResult;z={externalPostId:A.JSC$17410_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:W,sdkVersion:k,api:H};d!==void 0&&(z.networkRequestsMeasurement={networkRequests:_.QJ(d,1),cachedRequests:_.QJ(d,2),transferredBytes:_.QJ(d,3)},(u=d)==null?0:_.dd(u,PU,6))&&(z.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((B=_.Af(d,
PU,6))==null?void 0:T5(B,1))||"0",cacheHits:((h=_.Af(d,PU,6))==null?void 0:T5(h,2))||"0",cachedBytes:((O=_.Af(d,PU,6))==null?void 0:T5(O,3))||"0"});_.yr("miniAppSdkUsage",z);_.EN(T)})},kwB=function(A,H,k){var d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K;
_.e(function(N){if(N.nextAddress==1)return N.yield(A.JSC$17410_playNonceResolver.promise,2);d=N.yieldResult;W={externalPostId:A.JSC$17410_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:d,sdkVersion:k,measurementWindow:{startTimestampMs:String(ip(H,1)),endTimestampMs:String(ip(H,2))},frameRate:{averageFrameTimeDeltaMs:hY(H,3),averageFrameIdleTimeMs:hY(H,4)}};_.dd(H,Gl,5)&&(W.networkRequests={networkRequests:(z=cU(H))==null?void 0:_.QJ(z,1),cachedRequests:(u=cU(H))==null?void 0:_.QJ(u,2),transferredBytes:(B=
cU(H))==null?void 0:_.QJ(B,3),sameOriginStatusCodeToCounts:s7L((h=cU(H))==null?void 0:_.NLl(h,4,void 0,AVf,AVf)),crossOriginStatusCodeToCounts:s7L((O=cU(H))==null?void 0:_.NLl(O,5,void 0,AVf,AVf))},(T=cU(H))==null?0:_.dd(T,PU,6))&&(W.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((m=cU(H))==null?void 0:(J=_.Af(m,PU,6))==null?void 0:T5(J,1))||"0",cacheHits:((g=cU(H))==null?void 0:(v=_.Af(g,PU,6))==null?void 0:T5(v,2))||"0",cachedBytes:((y=cU(H))==null?void 0:(X=_.Af(y,PU,6))==
null?void 0:T5(X,3))||"0"});_.dd(H,r9G,7)&&(W.gameCapture={averageFrameTimeDeltaMs:(D=_.Af(H,r9G,7))==null?void 0:hY(D,1),averageFrameIdleTimeMs:(K=_.Af(H,r9G,7))==null?void 0:hY(K,2)});_.yr("miniAppPerformanceMetrics",W);_.EN(N)})},dR_=function(A,H){var k,d;
return _.e(function(W){if(W.nextAddress==1)return W.yield(A.JSC$17410_playNonceResolver.promise,2);k=W.yieldResult;d={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:A.JSC$17410_miniAppId,postPlayNonce:k,miniAppReleaseId:A.localReleaseId},derivedDeviceInterface:A.derivedDeviceInterface,adTriggerType:H,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.yr("miniAppAdEvent",d);_.EN(W)})};
MIQ.prototype.disposeInternal=function(){_.dF.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var E0=function(A,H,k,d){k=k===void 0?{}:k;d=d===void 0?!1:d;var W,z,u,B;_.e(function(h){if(h.nextAddress==1)return W=A.isForeground,z=A.beforeReady,h.yield(A.JSC$17410_playNonceResolver.promise,2);u=h.yieldResult;B={externalPostId:A.JSC$17410_miniAppId,localReleaseId:A.localReleaseId,derivedDeviceInterface:A.derivedDeviceInterface,postPlayNonce:u,type:H};k.sequenceGroup=u;B.playState=z?"PLAY_STATE_NOT_READY":W?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.yr("miniAppPlayEvent",B,
k);d&&_.jM();_.EN(h)})},VR=function(A,H){var k;
_.e(function(d){if(d.nextAddress==1)return k=(0,_.w2)(),d.yield(A.JSC$17410_playNonceResolver.promise,2);_.OH(H,k);_.EN(d)})},f3B=function(A){isNaN(A.playPingTimerId)&&(A.playPingTimerId=_.q4(function(){A.state!==1&&A.state!==2?_.Pq(new _.Ti("[MiniAppPlayLogger] reportPlayPing failed with state "+tIL[A.state])):E0(A,"PLAY_EVENT_TYPE_PLAY_PING")},A.playPingIntervalMs))},s7L=function(A){return Array.from(A.entries()).map(function(H){var k=_.r(H);
H=k.next().value;k=k.next().value;return{key:H,value:k}})};var W3R=function(){this.adResolvers=new Map},zIi=function(A,H){A.showMiniAppAdCommand=H.showMiniAppAdCommand;
A.isEmbeddedInWebview=H.isEmbeddedInWebview;A.playLogger=H.playLogger},rG1=function(A){return _.e(function(H){return H.return(qWI(A,1))})},ufM=function(A){return _.e(function(H){return H.return(qWI(A,2))})},eIL=function(A,H){return _.e(function(k){return H?k.return(qWI(A,3,H)):k.return(BOL(A,3))})},qWI=function(A,H,k){var d,W,z;
return _.e(function(u){if(u.nextAddress==1){if(!A.showMiniAppAdCommand||!A.isEmbeddedInWebview)return u.return(BOL(A,H));d=crypto.randomUUID();W=new _.lk;A.adResolvers.set(d,W);var B=new uR;B=_.HL(B,3,H);z=_.qC(B,5,k);m8(A.showMiniAppAdCommand,ntZ(z),d);return u.yield(W.promise,2)}return u.return(u.yieldResult)})};
W3R.prototype.onAdFinished=function(A,H){var k=this.adResolvers.get(H);k&&(this.adResolvers.delete(H),A=pSG(A),k.resolve(A))};
var BOL=function(A,H){var k;return _.e(function(d){if(d.nextAddress==1)d=d.yield((k=A.playLogger)==null?void 0:dR_(k,Oal(H)),2);else{var W=d.return;var z=new csw;z=_.HL(z,1,2);d=W.call(d,z)}return d})};var xRB=new _.SE("INNERTUBE_MANAGER_TOKEN");var ixL=function(){this.callbacks={}};
ixL.prototype.initialize=function(A){var H=this;this.callbacks=A;window.youtubewebview?window.youtubewebview.onmessage=function(k){hIQ(H,k)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(k){hIQ(H,k)})};
var hIQ=function(A,H){if(H.data)try{var k=Lgw(H.data);if(_.FG(_.kV(k,1))!=null){var d=Eti(_.O8(k,2));switch(k.getMethodName()){case "yt-mini-app-load-audio-state":var W,z;(z=(W=A.callbacks).onAudioStateLoaded)==null||z.call(W,_.xV(d,xJ(d,rN,1)));break;case "yt-mute-mini-app":var u,B;(B=(u=A.callbacks).onMuteMiniApp)==null||B.call(u);break;case "yt-unmute-mini-app":var h,O;(O=(h=A.callbacks).onUnmuteMiniApp)==null||O.call(h);break;case "yt-playable-exit":var T,m;(m=(T=A.callbacks).onExit)==null||m.call(T);
break;case "yt-post-play-nonce":var J,g;(g=(J=A.callbacks).onPostPlayNonceReceived)==null||g.call(J,m9(d,2,rN));break;case "yt-confirm-exit-mini-app":var v,y;(y=(v=A.callbacks).confirmExitMiniApp)==null||y.call(v);break;case "yt-confirm-exit-mini-app-edu":var X,D;(D=(X=A.callbacks).confirmExitMiniAppEdu)==null||D.call(X);break;case "yt-benchmarking-response":var K,N;(N=(K=A.callbacks).onNativeBenchmarkingMessageReceived)==null||N.call(K,m9(d,2,rN));break;case "yt-mini-app-load-3p-consent-state":var U,
p;(p=(U=A.callbacks).multiplayer3pAckStateLoaded)==null||p.call(U,_.xV(d,xJ(d,rN,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var M,Z;(Z=(M=A.callbacks).exitMiniAppSeenStateLoaded)==null||Z.call(M,_.xV(d,xJ(d,rN,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var WV,hA;(hA=(WV=A.callbacks).onNavigateToNewMiniApp)==null||hA.call(WV);break;case "yt-game-data-available":var qv,eN;(eN=(qv=A.callbacks).onGameDataAvailable)==null||eN.call(qv,m9(d,2,rN));break;case "yt-pause-mini-app":var mr,
Cl;(Cl=(mr=A.callbacks).onPauseMiniApp)==null||Cl.call(mr);break;case "yt-resume-mini-app":var pl,UC;(UC=(pl=A.callbacks).onResumeMiniApp)==null||UC.call(pl);break;case "yt-pause-playable-dialog":var hk,eA;(eA=(hk=A.callbacks).onPausePlayableDialog)==null||eA.call(hk);break;case "yt-resume-playable-dialog":var lI,Rp;(Rp=(lI=A.callbacks).onResumePlayableDialog)==null||Rp.call(lI);break;case "yt-playable-ad-finished":var vj,T0;(T0=(vj=A.callbacks).onAdFinished)==null||T0.call(vj,m9(d,2,rN),_.O8(k,3))}}else _.Pq(Error("Wh"))}catch(Y1){_.I3(Error("Xh"))}else _.Pq(Error("Yh"))};var TJf=function(A){this.rpcErrorCode=A};var U0=function(A,H,k){this.intervalMs=A;this.apiFunc=H;this.type=k;this.schedulerReady=!0};
U0.prototype.call=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1){if(H.type!==1&&A===H.cachedValue)return d.return();H.pendingApiRequestResolver||(H.pendingApiRequestResolver=new _.lk);k=H.pendingApiRequestResolver.promise;H.cachedValue=A;return d.yield(Oxe(H),2)}return d.return(k)})};
U0.prototype.flush=function(A){A=A===void 0?!1:A;var H=this;return _.e(function(k){return H.cachedValue===void 0?k.return():k.yield(H.apiFunc(H.cachedValue,A),0)})};
var Oxe=function(A){var H,k,d;return _.e(function(W){switch(W.nextAddress){case 1:if(!A.schedulerReady||!A.pendingApiRequestResolver)return W.return();A.schedulerReady=!1;H=A.pendingApiRequestResolver;A.pendingApiRequestResolver=void 0;_.S_(W,2);if(A.cachedValue===void 0){W.jumpTo(4);break}return W.yield(A.apiFunc(A.cachedValue),5);case 5:k=W.yieldResult,H.resolve(k);case 4:_.QN(W,3);break;case 2:d=_.VA(W),H.reject(d);case 3:setTimeout(function(){return _.e(function(z){A.schedulerReady=!0;return z.yield(Oxe(A),
0)})},A.intervalMs),_.EN(W)}})};var gRf=window.location.origin+"/miniapp_cloudsaves",mq8=[400,401],RIM=_.H5("cloud_save_game_data_rate_limit_ms",3E3),mRL=function(A){var H=this;this.JSC$17456_miniAppId=A;this.loadAttempts=0;this.cloudSaveIntervalMs=RIM;this.initialDownloadDataSucceeded=!1;this.JSC$17456_playNonceResolver=new _.lk;this.scottyUploadRateLimiter=new U0(this.cloudSaveIntervalMs,function(k,d){return H.uploadData(k,d)},2);
this.downloadDataPromise=TOB(this);this.downloadDataPromise.then(function(){H.initialDownloadDataSucceeded=!0}).catch(function(){})},JGQ=function(A,H){H.then(function(k){return A.JSC$17456_playNonceResolver.resolve(k)})},gpB=function(A){return _.e(function(H){return A.cachedData===void 0?H.return(A.downloadDataPromise):H.return(A.cachedData)})},bxB=function(A,H){return _.e(function(k){A.cachedData=H;
if(!A.initialDownloadDataSucceeded)throw Error("Zh");return k.yield(A.scottyUploadRateLimiter.call(H),0)})},L3Q=function(){return new Promise(function(A){setTimeout(A,1E3,"")})},vp_=function(A,H){var k,d;
return _.e(function(W){if(W.nextAddress==1)return k=A.JSC$17456_miniAppId,W.yield(Promise.race([A.JSC$17456_playNonceResolver.promise,L3Q()]),2);d={"X-YouTube-MiniAppId":k,"X-YouTube-PostPlayNonce":W.yieldResult};"DELEGATED_SESSION_ID"in _.ax&&Uwf(H,d);return W.return(d)})};
mRL.prototype.uploadData=function(A,H){H=H===void 0?!1:H;var k=this;return _.e(function(d){return Rq8()?_.b("enable_cloud_save_error_popup_after_retry")?d.return(new Promise(function(W,z){var u,B,h,O,T;return _.e(function(m){switch(m.nextAddress){case 1:u=0,B=!0,O=h=null;case 2:if(!(B&&u++<2)){m.jumpTo(4);break}_.S_(m,5);return m.yield(yG_(k,A,H),7);case 7:h=m.yieldResult;B=h.ok?!1:!mq8.includes(h.status);_.QN(m,2);break;case 5:O=T=_.VA(m);B=JtW(O);m.jumpTo(2);break;case 4:h?h.ok?(lb(k,RIM),W()):
(lb(k,k.cloudSaveIntervalMs*2),z(Error("$h`"+String(h.status),{cause:{rpcErrorCode:h.status}}))):(lb(k,k.cloudSaveIntervalMs*2),z(O||Error("ai"))),_.EN(m)}})})):d.return(new Promise(function(W,z){var u,B;
return _.e(function(h){if(h.nextAddress==1){if(k.JSC$17456_miniAppId==="")return z(Error("bi")),h.return();_.S_(h,2);return h.yield(yG_(k,A,H),4)}if(h.nextAddress!=2)return u=h.yieldResult,u.ok?(lb(k,RIM),W()):(lb(k,k.cloudSaveIntervalMs*2),z(Error("$h`"+String(u.status),{cause:{rpcErrorCode:u.status}}))),_.QN(h,0);B=_.VA(h);lb(k,k.cloudSaveIntervalMs*2);z(B);_.EN(h)})})):d.return()})};
var yG_=function(A,H,k){k=k===void 0?!1:k;var d,W,z;return _.e(function(u){if(u.nextAddress==1)return d=_.ob((new TextEncoder).encode(H)),W=bar(),u.yield(vp_(A,W),2);z=u.yieldResult;return u.return(fetch(W,{method:"POST",body:new Blob([d]),headers:z,keepalive:k}))})},TOB=function(A){var H,k;
return _.e(function(d){if(d.nextAddress==1){if(!Rq8())return d.return("");if(A.JSC$17456_miniAppId==="")throw Error("bi");if(A.loadAttempts>2)return d.return(A.downloadDataPromise);_.S_(d,2);return d.yield(j7_(A),4)}if(d.nextAddress!=2)return H=d.yieldResult,d.return(H);k=_.VA(d);if(JtW(k)&&++A.loadAttempts<2)return d.return(TOB(A));throw k;})},j7_=function(A){var H,k,d,W,z;
return _.e(function(u){switch(u.nextAddress){case 1:return _.S_(u,2),H=bar(),u.yield(vp_(A,H),4);case 4:return k=u.yieldResult,u.yield(fetch(H,{method:"GET",headers:k}),5);case 5:return d=u.yieldResult,d.ok?u.yield(d.text(),6):u.return(Promise.reject(Error("ci`"+String(d.status),{cause:new TJf(d.status)})));case 6:return W=u.yieldResult,u.return((new TextDecoder).decode(_.$8(W)));case 2:return z=_.VA(u),u.return(Promise.reject(z))}})},lb=function(A,H){A.cloudSaveIntervalMs=H;
A.scottyUploadRateLimiter.intervalMs=A.cloudSaveIntervalMs};
mRL.prototype.flush=function(){var A=this;return _.e(function(H){return A.initialDownloadDataSucceeded?H.yield(A.scottyUploadRateLimiter.flush(!0),0):H.return()})};var IyB=KI(CI(1),DD(1)),t_=KI(CI(1),DD(3)),N1=function(A){this.callbacks=A};
_.q=N1.prototype;_.q.onAudioToggled=function(A,H){(H===void 0||H)&&_.qH("yt-mini-app-is-audio-enabled",A,2592E3)};
_.q.onPause=function(){this.onAudioToggled(!1,!1)};
_.q.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.q.returnNativeBenchmarkingMessage=function(){};
_.q.sendGameData=function(){};
_.q.sendStartGameFrameCapture=function(){};
var LwV=function(A,H,k){this.callbacks=A;var d=this;this.sdkVersion=new _.lk;this.channel=new pXw(_.nX({destination:window,iframe:H,origin:(new URL(k.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var W=M1;var z=CI(5);var u=new nz0;u=_.gd(u,1,1E4);z=_.Cx(z,4,sFw,u);W(d,z);d.onAudioToggled(d.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){d.sdkVersion.resolve("")},1E4)};
_.I(LwV,N1);_.q=LwV.prototype;_.q.onAudioToggled=function(A,H){N1.prototype.onAudioToggled.call(this,A,H===void 0?!0:H);H=M1;var k=CI(2),d=new N3p;A=_.tj(d,1,A);A=_.Cx(k,3,sFw,A);H(this,A)};
_.q.onPause=function(){N1.prototype.onPause.call(this);M1(this,CI(3))};
_.q.onResume=function(){N1.prototype.onResume.call(this);M1(this,CI(4))};
_.q.returnNativeBenchmarkingMessage=function(A){var H=M1,k=CI(6);var d=DD(_.dd(A,aM,1)?1:2);A=_.dd(A,aM,1)?A:null;d=_.Cx(d,5,Sh,A);H(this,KI(k,d))};
_.q.sendGameData=function(A){var H=M1,k=CI(7);A=_.Cx(k,5,sFw,A);H(this,A)};
_.q.sendStartGameFrameCapture=function(){M1(this,CI(9))};
var nJ=function(A,H,k){var d,W,z;return _.e(function(u){if(u.nextAddress==1)return d=A.callbacks,W=d.onSdkCalled,z=H,u.yield(A.sdkVersion.promise,2);W.call(d,z,u.yieldResult,k);_.EN(u)})};
LwV.prototype.onMessage=function(){var A=this;return E7p(pI,function(H){var k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z,WV,hA,qv,eN,mr,Cl,pl,UC,hk,eA,lI,Rp,vj,T0,Y1,ze,Tf,QW,mG,nN,G0,$Z,F9,ww,x1,lJ,Ni,uJ,OB;return _.e(function(Ow){switch(Ow.nextAddress){case 1:if(!xpw(H.data))return _.Pq(Error("di")),Ow.return();k=_.RX(H.data,1);_.b("enable_iframe_message_get_type_via_fields")&&(d=H.data,k=W=_.RX(d,1));switch(k){case 8:if(H.data.hasMetadata()){var NQ=A.sdkVersion,Qi=NQ.resolve;var jI=H.data.getMetadata();
jI=_.O8(jI,1);Qi.call(NQ,jI);clearTimeout(A.sdkVersionTimeoutId)}break;case 6:return Ow.jumpTo(2);case 16:if(!_.WZ(H.data,W7A,14,Qz))return Ow.return();z=_.JY(H.data,W7A,14,Qz);(B=(u=A.callbacks).onGameFrameReceived)==null||B.call(u,z);return Ow.return();case 17:if(!_.WZ(H.data,dpi,15,Qz))return Ow.return();(O=(h=A.callbacks).onGameAudioReceived)==null||O.call(h,_.JY(H.data,dpi,15,Qz));return Ow.return();case 1:if(NQ=_.JY(H.data,wSA,2,Qz))switch(_.RX(NQ,1)){case 1:A.callbacks.onFirstFrameReady();
if(_.b("enable_network_request_logging_on_game_events")&&_.dd(NQ,Gl,4)){nJ(A,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Af(NQ,Gl,4));break}nJ(A,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(jI=(Qi=A.callbacks).onGameReady)==null||jI.call(Qi);if(_.b("enable_network_request_logging_on_game_events")&&_.dd(NQ,Gl,4)){nJ(A,"MINI_APP_SDK_API_GAME_READY",_.Af(NQ,Gl,4));break}nJ(A,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.WZ(NQ,FR,3,ozw))A.callbacks.onResourceLoaded(_.JY(NQ,FR,3,ozw))}return Ow.return();
case 3:return Ow.jumpTo(3);case 4:return Ow.jumpTo(4);case 2:return Ow.jumpTo(5);case 9:return Ow.jumpTo(6);case 10:return A.callbacks.onClick(),Ow.return();case 5:return Ow.jumpTo(7);case 11:if(!_.WZ(H.data,Iq,9,Qz))return Ow.return();T=_.JY(H.data,Iq,9,Qz);(J=(m=A.callbacks).onBenchmarkingMessageReceived)==null||J.call(m,T);NQ=H.reply;Qi=CI(1);jI=DD(1);var WX=new Iq;var Vi=new Uint8Array(Hxw(T,xJ(T,VPA,6))|0);WX=zg(WX,5,VPA,_.SA(Vi,!1));jI=_.Cx(jI,5,Sh,WX);NQ.call(H,KI(Qi,jI));return Ow.return();
case 12:return Ow.jumpTo(8);case 13:return Ow.jumpTo(9);case 15:return Ow.jumpTo(10);case 14:return Ow.jumpTo(11);case 18:return Ow.jumpTo(12);default:return Ow.return()}Ow.jumpTo(0);break;case 2:if(!_.WZ(H.data,aq,5,Qz))return Ow.return();Qi=H.data;NQ=xJ(Qi,Qz,5);Qi=Qi.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=f3C(Qi,Qi[_.qQ]|0,aq,NQ)||aq[wjm]||(aq[wjm]=oZX(aq));NQ=_.c4(g,Yt,1,_.pC());v=_.r(NQ);y=v.next();case 14:if(y.done){Ow.jumpTo(16);break}X=y.value;D=new _.Ti;D.level=_.RX(X,2)===
1?"WARNING":"ERROR";K=ytX(X.getSource());return Ow.yield(A.sdkVersion.promise,17);case 17:N={source:K,sdkVersion:Ow.yieldResult};_.uQ(_.kV(X,6))!=null?(D.message=X.getMessage(),D.stack=_.O8(X,5),N.sdkErrorType=jmX(_.RX(X,6)),_.uQ(_.kV(X,7))!=null&&(N.sdkApi=IFC(_.RX(X,7)))):D.stack=void 0;p=U=void 0;(p=(U=A.callbacks).onError)==null||p.call(U,{loggingError:D,metadata:N});y=v.next();Ow.jumpTo(14);break;case 16:return Ow.return();case 3:return _.S_(Ow,18),NQ=Ow.yield,Qi=A.callbacks,jI=Qi.onSave,WX=
_.JY(H.data,MPw,4,Qz),WX=_.O8(WX,1),NQ.call(Ow,jI.call(Qi,WX),20);case 20:H.reply(IyB);_.QN(Ow,19);break;case 18:return M=_.VA(Ow),Z=Jv,WV=M,hA=A.callbacks,qv="MINI_APP_SDK_API_SAVE_DATA",Ow.yield(A.sdkVersion.promise,21);case 21:Z(WV,hA,qv,Ow.yieldResult),H.reply(t_);case 19:return Ow.yield(nJ(A,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return Ow.return();case 4:return _.S_(Ow,23),Ow.yield(A.callbacks.onLoad(),25);case 25:eN=Ow.yieldResult;NQ=H.reply;Qi=CI(1);jI=DD(1);WX=new MPw;WX=_.qC(WX,1,eN);
jI=_.Cx(jI,3,Sh,WX);NQ.call(H,KI(Qi,jI));_.QN(Ow,24);break;case 23:return mr=_.VA(Ow),Cl=Jv,pl=mr,UC=A.callbacks,hk="MINI_APP_SDK_API_LOAD_DATA",Ow.yield(A.sdkVersion.promise,26);case 26:Cl(pl,UC,hk,Ow.yieldResult),H.reply(t_);case 24:return Ow.yield(nJ(A,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return Ow.return();case 5:_.S_(Ow,28);A.callbacks.onSendHighScore(yT(_.JY(H.data,BtQ,3,Qz).getValue()));H.reply(KI(CI(1),DD(1)));_.QN(Ow,29);break;case 28:return eA=_.VA(Ow),lI=Jv,Rp=eA,vj=A.callbacks,T0=
"MINI_APP_SDK_API_SEND_SCORE",Ow.yield(A.sdkVersion.promise,30);case 30:lI(Rp,vj,T0,Ow.yieldResult),H.reply(t_);case 29:return Ow.yield(nJ(A,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return Ow.return();case 6:if(!_.WZ(H.data,e8w,8,Qz)){Ow.jumpTo(32);break}NQ=Ow.yield;Qi=_.JY(H.data,e8w,8,Qz);Qi=_.RX(Qi,1);return NQ.call(Ow,nJ(A,IFC(Qi)),32);case 32:return Ow.return();case 7:return NQ=H.reply,Qi=CI(1),jI=DD(1),WX=A.callbacks.getLanguage(),jI=zg(jI,4,Sh,Ge(WX)),NQ.call(H,KI(Qi,jI)),Ow.yield(nJ(A,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return Ow.return();case 8:if(!_.WZ(H.data,uri,10,Qz))return Ow.return();Y1=_.JY(H.data,uri,10,Qz);ze=A.callbacks;Tf=ze.onSdkPerformanceUpdate;return Ow.yield(A.sdkVersion.promise,35);case 35:return Tf.call(ze,Y1,Ow.yieldResult),Ow.return();case 9:NQ=H.data;Qi=xJ(NQ,Qz,11);if(_.FG(_.kV(NQ,Qi))==null)return H.reply(KI(CI(1),DD(2))),Ow.return();QW=m9(H.data,11,Qz);A.callbacks.onShareInviteCode(QW);H.reply(IyB);return Ow.yield(nJ(A,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return Ow.return();
case 10:if(!_.b("enable_open_yt_content"))return H.reply(t_),Ow.return();if(!_.WZ(H.data,kak,12,Qz))return H.reply(KI(CI(1),DD(2))),Ow.return();NQ=_.JY(H.data,kak,12,Qz);mG=_.O8(NQ,1);A.callbacks.onOpenYTContent(mG);H.reply(IyB);return Ow.yield(nJ(A,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return Ow.return();case 11:if(_.WZ(H.data,tPA,13,Qz)){Ow.jumpTo(38);break}return Ow.yield(A.callbacks.onShowMiniAppAd(2),39);case 39:return nN=Ow.yieldResult,H.reply(KI(CI(1),A9G(nN))),Ow.yield(nJ(A,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return Ow.return();case 38:NQ=_.JY(H.data,tPA,13,Qz);a:switch(_.RX(NQ,1)){case 1:NQ={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:NQ={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:NQ={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}G0=NQ;$Z=G0.adType;F9=G0.sdkApi;NQ=Ow.yield;Qi=A.callbacks;jI=Qi.onShowMiniAppAd;WX=_.JY(H.data,tPA,13,Qz);WX=_.O8(WX,2);return NQ.call(Ow,jI.call(Qi,$Z,WX||void 0),41);case 41:return ww=Ow.yieldResult,
H.reply(KI(CI(1),A9G(ww))),Ow.yield(nJ(A,F9),42);case 42:return Ow.return();case 12:_.S_(Ow,43);NQ=A.callbacks;Qi=NQ.onMakeIapPurchase;jI=_.JY(H.data,z8Z,16,Qz);jI=_.O8(jI,1);Qi.call(NQ,jI);H.reply(KI(CI(1),DD(1)));_.QN(Ow,44);break;case 43:return x1=_.VA(Ow),lJ=Jv,Ni=x1,uJ=A.callbacks,OB="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",Ow.yield(A.sdkVersion.promise,45);case 45:lJ(Ni,uJ,OB,Ow.yieldResult),H.reply(t_);case 44:return Ow.yield(nJ(A,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return Ow.return()}})})};
var M1=function(A,H){_.e(function(k){A.channel.send(H);_.EN(k)})},yG=function(A,H,k){this.callbacks=A;
var d=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;A=OVI(H,(new URL(k.toString())).origin);this.gameSnacks=new HYJ(A);this.gameSnacks.page.onReady(function(){d.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){d.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var W,z;(z=(W=d.callbacks).onGameReady)==null||z.call(W)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(W,z){try{d.callbacks.onSendHighScore(z)}catch(u){Jv(u,d.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(W,z){var u;return _.e(function(B){if(B.nextAddress==1)return _.S_(B,2),B.yield(d.callbacks.onSave(d.decoder.decode(z)),4);if(B.nextAddress!=2)return _.QN(B,0);u=_.VA(B);Jv(u,d.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return B.return()})});
this.gameSnacks.storage.onLoad(function(){var W,z;return _.e(function(u){if(u.nextAddress==1)return _.S_(u,2),u.yield(d.callbacks.onLoad(),4);if(u.nextAddress!=2)return W=u.yieldResult,u.return(d.encoder.encode(W));z=_.VA(u);Jv(z,d.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return u.return(d.encoder.encode(""))})});
this.gameSnacks.init()};
_.I(yG,N1);yG.prototype.onAudioToggled=function(A,H){N1.prototype.onAudioToggled.call(this,A,H===void 0?!0:H);var k;(k=this.gameSnacks)==null||k.audio.update(A)};
yG.prototype.onPause=function(){N1.prototype.onPause.call(this);var A;(A=this.gameSnacks)==null||A.game.pause()};
yG.prototype.onResume=function(){N1.prototype.onResume.call(this);var A;(A=this.gameSnacks)==null||A.game.resume()};var YW_=Yyv,PmI=_.c(function(A){var H=A.data;var k=A.loadingProgress;var d=A.forPaused;A=_.r(_.RV("",void 0,"LYYTdd"));var W=A.next().value,z=A.next().value;A=_.r(_.RV(!1,void 0,"K0waae"));var u=A.next().value,B=A.next().value,h=[],O=function(){return"transform: scaleX("+(_.pA(k)||0)+")"},T=null,m=function(){return H()&&T!==null&&T!==void 0?T:T=H().showAnniversaryAnimation?6:YW_()};
_.CA(function(){var y;if(H().timeOutMessages&&((y=H().timeOutMessages)==null?0:y.length)){T=null;y=_.r(h);for(var X=y.next();!X.done;X=y.next())clearTimeout(X.value);h.length=0;Pzr(H().timeOutMessages,h,z,B)}},"BNu9j");
var J=function(){return!!H().persistentErrorMessageTitle},g=function(){return k!==void 0},v=function(){return H().title};
return _.x("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.x("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.x("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.x("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var y,X=(y=H().backgroundImage)==null?void 0:y.sources,D;return(X==null?0:X.length)?"background-image: url("+((D=X[0])==null?void 0:D.url)+")":""}}),_.x("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.x(_.R,{cond:function(){return!J()&&!(d==null?0:d())},
then:function(){var y={};return _.x("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.x("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.x(_.Zb,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+m()},
data:function(){var X="loading_animation_"+m();return{animationConfig:{name:X,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+X+".json",loop:!0,autoplay:!0}}}})),_.x("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.x(_.R,{cond:v,
then:function(){return _.x("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},v)}}),_.x("p",{class:_.ER("miniAppSplashScreenViewModelTimeoutMessage",(y.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return u()},y)),
"aria-live":"polite"},W),_.x(_.R,{cond:g,then:function(){return _.x("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.x("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:O}))}})))}}),_.x(_.R,{cond:J,
then:function(){return _.x("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.x("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return H().persistentErrorMessageTitle}),_.x(_.R,{cond:function(){return!!H().persistentErrorMessageDescription},
then:function(){return _.x("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return H().persistentErrorMessageDescription})}}))}}),_.x(_.R,{cond:d,
then:function(){return _.x("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.x("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.x("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},v))}})))},"Yf");var GwI=new _.SE("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var F3e=w0;w0=function(A){function H(k){if(k){var d,W;(d=k.__spec)==null||(W=d.didUnmount)==null||W.call(d);for(d=0;d<k.childNodes.length;d++)H(k.childNodes[d])}}
F3e==null||F3e(A);rb(function(){for(var k=0;k<A.length;k++)H(A[k])})};var XzG=_.c(function(A){var H=A.data;var k=A.score;var d=A.formattedScore;var W=A.onScoreChanged;var z=A.isEmbeddedInWebview;var u=_.FQ("yt-mini-app-score-button-view-model"),B=function(){var g;return _.L(H==null?void 0:(g=H())==null?void 0:g.buttonViewModel,_.vY)},h=function(){var g;
return(k==null?void 0:k())||Number(H==null?void 0:(g=H())==null?void 0:g.lastScore)||0},O=function(){var g;
return(d==null?void 0:d())||((g=B())==null?void 0:g.title)||""},T,m=1;
if(A=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))A=Number(A),m=isNaN(A)?1:A/100;_.CA(function(){W==null||W(h());var g;var v=_.h7((g=B())==null?void 0:g.onTap);if(v){g=_.L(v,Cuw);var y,X,D;g=_.L(g==null?void 0:(y=g.panelLoadingStrategy)==null?void 0:(X=y.inlineContent)==null?void 0:(D=X.dialogViewModel)==null?void 0:D.customContent,ZIj)}else g=void 0;if(y=g)y.score=O()},"Aekez");
A=_.lc(function(){var g,v,y=H==null?void 0:(g=H())==null?void 0:(v=g.loggingDirectives)==null?void 0:v.trackingParams;y&&_.wN(_.wj().resolve(_.Wf),y);return!1});
_.CZ(function(){if(u.value){var g=u.value.querySelector("button"),v=B();g&&v&&FwN(g,v);_.ll("yt-share-playable-with-high-score",function(){var y=h().toString(),X=H==null?void 0:H().onShareHighScoreCommand,D=H==null?void 0:H().highScoreShareClientParamIdentifier,K=z==null?void 0:z();X&&(K?(D=new bgQ,y=_.qC(D,2,y),m8(X,y.JSC$12847_serializeBinary())):D&&(_.wj().resolve(GwI).clientParams.set(D,{miniAppClientParams:{highScore:y}}),BJl(X,!1)))})}});
var J=function(){var g=B();g&&(k==null?0:k())&&g.accessibilityText&&(g.accessibilityText=g.accessibilityText.replace(T,O()));T=O();return{numberValue:h(),numberText:O(),heightPx:36,fontSizeMultiplier:m,shouldAnimate:!(k==null||!k())&&!0}};
return _.x("yt-mini-app-score-button-view-model",{class:function(){var g={};return _.u2("miniAppScoreButtonViewModelHost",(g.miniAppScoreButtonViewModelIsVisible=h()!==0,g))},
el:u,"on:click":A},I$C(!1,function(){return _.x("span",{style:"display:none;"},h)}),_.x(_.HG,{data:function(){var g;
return H==null?void 0:(g=H())==null?void 0:g.buttonViewModel}},{buttonViewModel:function(g){return _.x(_.U7,{data:g.data,
animatedTextProps:J})}}))},"$f");var ayR=_.c(function(A){var H,k=(H=_.r4("yt-mini-app-is-theater-mode-enabled"))!=null?H:!1,d=_.b("enable_playable_container_save_button"),W=_.b("enable_play_next_destination_page_in_toolbar");H={};return _.x("ytm-mini-app-top-bar-view-model",null,_.x("div",{class:_.ER("yt-mini-app-top-bar-view-model",(H["yt-mini-app-top-bar-view-model--mobile"]=!1,H["yt-mini-app-top-bar-view-model--desktop"]=!0,H))},_.x("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.x(_.R,{cond:function(){var z;return!!A.data().backButtonEdu&&
!((z=A.isExitMiniAppSeen)==null?0:z.call(A))},
then:function(){return _.x(_.HG,{data:function(){return A.data().backButtonEdu}},{buttonViewModel:_.U7})},
else:function(){return _.x(_.HG,{data:function(){return A.data().backButton}},{buttonViewModel:_.U7})}}),_.x(_.R,{cond:function(){return A.data().viewAllButton&&!0},
then:function(){return _.x(_.HG,{data:function(){return A.data().viewAllButton}},{buttonViewModel:_.U7})}}),_.x(_.R,{cond:function(){return A.data().title&&!0},
then:function(){return _.x("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return A.data().title})}})),_.x("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.x(_.R,{cond:function(){var z;
return(z=A.isDesktopPlayPage)==null?void 0:z.call(A)},
then:function(){return _.x(_.sD,null,_.x(DRR,{highScoreButton:function(){return A.data().highScoreButton},
score:A.score,formattedScore:A.formattedScore,onScoreChanged:A.onScoreChanged,isEmbeddedInWebview:A.isEmbeddedInWebview}),_.x(SWG,{enableSaveButton:function(){return _.pA(d)},
saveButton:function(){return A.data().saveButton},
isSaved:A.isSaved,onSaveToggled:function(){return A.onSaveToggled}}),_.x(Cmi,{menuButton:function(){return A.data().menuButton}}))},
else:function(){return _.x(_.R,{cond:function(){return!1},
then:function(){return _.x(_.HG,{data:function(){return A.data().playPageButton}},{buttonViewModel:function(z){return _.x(_.U7,{data:z.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.x(DRR,{highScoreButton:function(){return A.data().highScoreButton},
score:A.score,formattedScore:A.formattedScore,onScoreChanged:A.onScoreChanged,isEmbeddedInWebview:A.isEmbeddedInWebview})}})}})),_.x("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.x(_.HG,{data:function(){return A.data().muteButton}},{toggleButtonViewModel:function(z){var u=z.data;
return _.x(_.qc,{data:function(){var B,h;return Object.assign({},u(),{isToggled:(h=(B=A.isAudioEnabled)==null?void 0:B.call(A))!=null?h:!0})},
onToggle:A.onAudioToggled,useOutlinedIcon:!0})}}),_.x(_.HG,{data:function(){return A.data().theatreModeButton}},{toggleButtonViewModel:function(z){var u=z.data;
return _.x("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.x(_.qc,{data:function(){return Object.assign({},u(),{isToggled:k})},
useOutlinedIcon:!0}))}}),_.x(K3I,{fullscreenButton:function(){return A.data().fullscreenButton}}),_.x(_.R,{cond:function(){return _.pA(W)&&A.data().viewAllButton&&!1},
then:function(){return _.x(_.HG,{data:function(){return A.data().viewAllButton}},{buttonViewModel:_.U7})}}),_.x(_.R,{cond:function(){var z;
return!((z=A.isDesktopPlayPage)==null?0:z.call(A))},
then:function(){return _.x(_.sD,null,_.x(SWG,{enableSaveButton:function(){return _.pA(d)},
saveButton:function(){return A.data().saveButton},
isSaved:A.isSaved,onSaveToggled:function(){return A.onSaveToggled}}),_.x(Cmi,{menuButton:function(){return A.data().menuButton}}))}}))))},"ag");
ayR.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Cmi=_.c(function(A){return _.x(_.HG,{data:A.menuButton},{buttonViewModel:_.U7})},"bg"),SWG=_.c(function(A){var H=A.enableSaveButton;
var k=A.saveButton;var d=A.isSaved;var W=A.onSaveToggled;return _.x(_.R,{cond:function(){return H()&&!(k==null||!k())},
then:function(){return _.x(_.HG,{data:function(){var z=_.L(k==null?void 0:k(),_.jG),u;return{toggleButtonViewModel:Object.assign({},z,{isToggled:(u=d==null?void 0:d())!=null?u:!(z==null||!z.isToggled)})}}},{toggleButtonViewModel:function(z){return _.x(_.qc,{data:z.data,
onToggle:W})}})}})},"cg"),DRR=_.c(function(A){var H=A.highScoreButton;
var k=A.score;var d=A.formattedScore;var W=A.onScoreChanged;var z=A.isEmbeddedInWebview;return _.x(_.HG,{data:H},{miniAppScoreButtonViewModel:function(u){return _.x(XzG,{data:u.data,score:k,formattedScore:d,onScoreChanged:W,isEmbeddedInWebview:z})}})},"dg"),K3I=_.c(function(A){A=A.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.x(_.sD,null):_.x(_.HG,{data:A},{buttonViewModel:_.U7})},"eg");_.cGM=_.c(function(A){var H=A.data;var k=A.extractOverlay;A={};return _.x("player-disclosure-view-model",{class:_.ER("ytwPlayerDisclosureViewModelHost",(A.ytwPlayerDisclosureViewModelExtractOverlay=function(){return k==null?void 0:k()},A))},_.x(_.c2,{command:function(){return H().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.x(_.R,{cond:function(){return H().iconName},
then:function(d){return _.x(_.n3,{icon:d})}}),_.x(_.R,{cond:function(){return H().iconName?void 0:H().image},
then:function(d){return _.x(_.GA,{data:d,alt:function(){return H().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.x(_.R,{cond:function(){return H().title||H().secondaryText},
then:function(){return _.x("div",null,_.x("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return H().title}),_.x("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return H().text}),_.x(_.R,{cond:function(){return H().secondaryText},
then:function(d){return _.x(_.sD,null,_.x("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.x("div",{class:"ytwPlayerDisclosureViewModelText"},d))}}))},
else:function(){return _.x("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return H().text})}}),_.x(_.R,{cond:function(){return H().showEndChevron},
then:function(){return _.x(_.n3,{icon:"CHEVRON_RIGHT"})}})))},"fg");_.pzG=new _.SE("DESKTOP_CURRENT_PAGE");var tnL=_.c(function(A){var H=A.data;var k=_.b("force_active_time_logging_webview"),d=!1,W=new ixL,z=void 0,u=void 0,B=_.wj().resolve(xRB),h=new W3R,O=void 0,T=void 0,m=[],J=void 0,g=void 0,v=!1,y=!1,X=!1,D=!1,K=new _.lk,N=_.wj().resolve(GwI),U=_.wj().resolve(_.QR),p=_.wj().resolve(_.fZ(k0)),M,Z=(M=_.wj().resolve(_.fZ(_.pzG)))==null?void 0:M.getCurrentPage(),WV=!1,hA=0,qv=function(Ak){Ak.preventDefault();return Ak.returnValue=""},eN,mr=_.r(_.RV(!((eN=_.r4("yt-mini-app-is-audio-enabled"))!=null&&!eN),
void 0,"y7Nkqd")),Cl=mr.next().value,pl=mr.next().value,UC,hk=_.r(_.RV(!((UC=_.r4("exit-mini-app-seen-state"))==null||!UC),void 0,"ZP6Oxc")),eA=hk.next().value,lI=hk.next().value,Rp=_.r(_.RV(!1,void 0,"BCKP1c")),vj=Rp.next().value,T0=Rp.next().value,Y1=_.r(_.RV(void 0,void 0,"bswUUd")),ze=Y1.next().value,Tf=Y1.next().value,QW=_.r(_.RV(void 0,void 0,"sXcJfc")),mG=QW.next().value,nN=QW.next().value,G0=_.r(_.RV(!0,void 0,"DDj4gb")),$Z=G0.next().value,F9=G0.next().value,ww=_.r(_.RV(!1,void 0,"qXUljf")),
x1=ww.next().value,lJ=ww.next().value,Ni=_.r(_.RV(!1,void 0,"XqvjOc")),uJ=Ni.next().value,OB=Ni.next().value,Ow=_.r(_.RV(void 0,void 0,"S1uX2")),NQ=Ow.next().value,Qi=Ow.next().value,jI=_.r(_.RV(0,void 0,"CGS0ze")),WX=jI.next().value,Vi=jI.next().value,iQ=_.GP("mini-app-container-view-model"),o_=_.r(_.RV(!1,void 0,"AVpgJ")),rO=o_.next().value,O9=o_.next().value,a4=function(){return H().isEmbeddedInWebview},kl=function(){return H().hasPlayNextShelf};
_.Sp(function(){var Ak,R_=(Ak=_.L(H().contentDisclosure,ikj))==null?void 0:Ak.animationParams;if((R_==null?0:R_.shouldHide)&&(R_==null?0:R_.hideDelaySecs)){var XG=setTimeout(function(){O9(!0)},R_.hideDelaySecs*1E3);
_.aV(function(){clearTimeout(XG)})}});
_.ll("yt-page-type-changed",function(Ak){if(_.b("enable_is_mini_app_page_active_bugfix"))Ak.detail.newPageSubtype==="mini_app"&&Ak.detail.newPageType==="ytd-browse"||!$Z()||gY();else if(Ak=_.XB()==="mini_app",Ak!==$Z())if(F9(Ak),Ak){var R_;Ak=(R_=H().playableId)==null?void 0:R_.toString();Ak!==void 0&&window.location.href.includes(Ak)&&!y&&(D=!0,E9(),b1.value&&IO(b1.value))}else Ak||gY()});
_.ll("yt-action",function(Ak){Ak.detail.actionName==="yt-engagement-panel-visible-changed"&&Ak.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Ak.detail.args[2]==="PAmini_app_panel"&&gY();_.b("enable_is_mini_app_page_active_bugfix")?Ak.detail.actionName==="yt-history-load"&&!$Z()&&(Z==null?0:Z.active)?(F9(!0),E9(),b1.value&&IO(b1.value)):Ak.detail.actionName==="yt-history-load"&&$Z()&&!H().isEmbeddedInWebview&&yi():$Z()&&Ak.detail.actionName==="yt-history-load"&&(D?D=!1:H().isEmbeddedInWebview||
yi())});
_.aV(function(){gU()});
_.CA(function(){E9()},"Jr1tnc");
var E9=function(){var Ak=H().playableId,R_=H().localReleaseId,XG=H().derivedDeviceInterface;if(y)_.Pq(new _.Ti("[MiniAppContainerViewModel] onEnter was called more than once"));else{y=!0;z=new MIQ(Ak,R_,XG,document.visibilityState==="visible");wRM(z);u=new mRL(Ak);Q71(B,Ak);zIi(h,{showMiniAppAdCommand:H().showMiniAppAdCommand,isEmbeddedInWebview:H().isEmbeddedInWebview,playLogger:z});Pkb()&&(g=document.body.style.backgroundColor,_.YX(document.body,"background-color","black"));zk();nm();K=new _.lk;
if(H().isEmbeddedInWebview){if(Ak=(new URLSearchParams(window.location.search)).get("postPlayNonce"))ZLL(z,Ak),WV=!0;W.initialize({onAudioStateLoaded:function(Z3){ZQ(Z3)},
onMuteMiniApp:function(){ZQ(!1)},
onUnmuteMiniApp:function(){ZQ(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Z3){WV||(ZLL(z,Z3),WV=!0)},
confirmExitMiniApp:function(){var Z3,Y7,EG;return _.e(function(l5){if(l5.nextAddress==1)return H().confirmExitMiniAppCommand?l5.yield(Promise.race([K.promise,Promise.resolve(!1)]),2):l5.return();(Z3=l5.yieldResult)?!H().confirmExitMiniAppCommandEdu||(EG=(Y7=eA)==null?void 0:Y7())!=null&&EG?w_(H().confirmExitMiniAppCommand):(w_(H().confirmExitMiniAppCommandEdu),_.qH("exit-mini-app-seen-state","true",2592E6)):w_(H().closeMiniAppCommand);_.EN(l5)})},
onNativeBenchmarkingMessageReceived:function(Z3){Z3=U3N(_.lQX(Z3));if(_.WZ(Z3,_.RI,3,QwQ)){var Y7=_.JY(Z3,_.RI,3,QwQ),EG=eqQ();var l5=yT(EG.getSeconds())-yT(Y7.getSeconds());Y7=_.QJ(EG,2)-_.QJ(Y7,2);l5<0&&Y7>0?(l5+=1,Y7-=1E9):l5>0&&Y7<0&&(--l5,Y7+=1E9);l5=(new aM).setSeconds(l5);l5=_.zw(l5,2,_.BR(Y7),0);_.Sn(Z3,1,l5)}var EH;(EH=T)==null||EH.returnNativeBenchmarkingMessage(Z3)},
multiplayer3pAckStateLoaded:function(Z3){yi(Z3)},
exitMiniAppSeenStateLoaded:function(Z3){H().confirmExitMiniAppCommandEdu&&lI(Z3)},
onNavigateToNewMiniApp:function(){w_(H().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Z3){Z3=new URLSearchParams(Z3);var Y7=void 0;Z3.has("invite_code")&&(Y7=new fOZ,Z3=Z3.get("invite_code"),Y7=_.qC(Y7,1,Z3));if(Z3=Y7){var EG;(EG=T)==null||EG.sendGameData(Z3)}},
onPauseMiniApp:function(){d=!0;Y8()},
onResumeMiniApp:function(){d=!0;cV()},
onPausePlayableDialog:function(){X=!0;Y8()},
onResumePlayableDialog:function(){X=!1;cV()},
onAdFinished:function(Z3,Y7){h.onAdFinished(Z3,Y7)}});
H().showMultiplayer3pConsentDialogCommand||K.resolve(!0);w_(H().onContainerReadyCommand)}else ZLL(z),K.resolve(!0),H().runAttestationCommand&&n1R(z).then(function(Z3){var Y7=_.L(rtN(H().runAttestationCommand),_.VEZ);Y7&&Y7.ids&&(Y7.ids.push({postPlayNonce:Z3}),w_(H().runAttestationCommand))});
JGQ(u,n1R(z));n1R(z).then(function(Z3){Z3={miniAppPlayData:{postPlayNonce:Z3}};var Y7,EG=(Y7=H().loggingDirectives)==null?void 0:Y7.trackingParams;EG&&_.A7().stateChanged(EG,Z3)});
Ak=H().showSignInDialogCommand;!Rq8()&&Ak&&(_.qH("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),w_(Ak));H().confirmExitMiniAppCommand&&p&&(Ak=rtN(H().confirmExitMiniAppCommand))&&(p.customConfirmationCommand=Ak)}},gU=function(){g&&_.YX(document.body,"background-color",g);
v=!1;J&&J.release();u.flush().catch(function(Ak){_.Pq(Ak)});
B.flush().catch(function(Ak){_.Pq(Ak)});
$iQ(z);g1();T=void 0;Vni(N)},gY=function(){F9(!1);
gU();T0(!1);Qi(void 0);Tf(void 0);nN(void 0);hA=0;Vi(0);y=!1},Y8=function(){var Ak;
(Ak=T)==null||Ak.onPause();J&&J.release();u.flush().catch(function(R_){_.Pq(R_)});
B.flush().catch(function(R_){_.Pq(R_)});
o1_(z);lJ(!0)},cV=function(){var Ak;
(Ak=T)==null||Ak.onResume();nm();Ak=z;Ak.isForeground=!0;E0(Ak,"PLAY_EVENT_TYPE_PLAY_RESUME");lJ(!1)},ZQ=function(Ak){var R_;
(R_=T)==null||R_.onAudioToggled(Ak);pl(Ak)},yi=function(Ak){H().showMultiplayer3pConsentDialogCommand&&(H().isEmbeddedInWebview&&Ak!==void 0&&K.resolve(Ak),!Ak&&_.XB()==="mini_app"&&w_(H().showMultiplayer3pConsentDialogCommand))},LL=function(){var Ak,R_,XG,Z3;
return _.e(function(Y7){if(Y7.nextAddress==1){!H().isLivestream||H().disableVideoCapture||(Ak=T)!=null&&Ak.sendStartGameFrameCapture();R_=(new URL(window.location.href)).searchParams;if(R_.has("invite_code")){var EG=new fOZ,l5=R_.get("invite_code");XG=_.qC(EG,1,l5);(Z3=T)==null||Z3.sendGameData(XG)}vj()||(T0(!0),EG=z,EG.state!==1?_.Pq(new _.Ti("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+tIL[EG.state])):(_.d2("mini_app_ids_without_game_ready").includes(EG.JSC$17410_miniAppId)&&(EG.gameReady=
!0),EG.state=2,EG.beforeReady=!1,VR(EG,"ma_ffr"),E0(EG,"PLAY_EVENT_TYPE_PLAY_READY")));return Y7.yield(K.promise,2)}w_(H().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();H().isEmbeddedInWebview||yi();_.EN(Y7)})},Yp=function(){var Ak=z;
Ak.gameReady=!0;VR(Ak,"ma_gr")},PR=function(Ak){var R_;
return _.e(function(XG){if(XG.nextAddress==1)return _.S_(XG,2),XG.yield(bxB(u,Ak),4);if(XG.nextAddress!=2)return _.QN(XG,0);R_=_.VA(XG);w_(H().showSavingErrorPopupCommand);throw R_;})},Ip=function(){var Ak,R_;
return _.e(function(XG){if(XG.nextAddress==1)return _.S_(XG,2),XG.yield(gpB(u),4);if(XG.nextAddress!=2)return Ak=XG.yieldResult,XG.return(Ak);R_=_.VA(XG);w_(H().showLoadingErrorDialogCommand);throw R_;})},jA=function(Ak){z.logError(Ak)},V_=function(Ak,R_,XG){HxL(z,Ak,R_,XG)},Wz=function(Ak,R_){kwB(z,Ak,R_)},Jk=function(){!k&&H().isEmbeddedInWebview||_.n5();
AGG(z,!0);v||(window.addEventListener("beforeunload",qv,{capture:!0}),v=!0)},St=function(Ak){var R_,XG,Z3,Y7,EG,l5,EH;
return _.e(function(bs){if(bs.nextAddress==1)return B&&(!O||O<Ak)&&Ak>0?bs.yield(EpM(B,Ak),3):bs.jumpTo(0);R_=bs.yieldResult;XG=_.r(R_);Z3=XG.next().value;Y7=XG.next().value;EG=Z3;l5=Y7;((EH=EG)==null?0:EH.displayString)&&l5&&(Tf(l5),nN(EG.displayString));_.EN(bs)})},Rs=function(Ak){var R_=H().onBenchmarkingMessageReceivedCommand;
if(R_){var XG=eqQ();_.Cx(Ak,3,QwQ,XG);m8(R_,lOw(Ak))}},EW=function(){var Ak=H().iapPurchaseCommand;
Ak&&m8(Ak)},OI=function(Ak){var R_=H().onGameFrameReceivedCommand;
if(R_){var XG=new uR;var Z3=new lDJ;var Y7=ip(Ak,1);Z3=_.hb(Z3,1,Y7);Ak=_.O8(Ak,2);Ak=_.qC(Z3,2,Ak);XG=_.Sn(XG,2,Ak);m8(R_,ntZ(XG))}},sa=function(Ak){var R_=H().onGameAudioDataReceivedCommand;
if(R_){var XG=new uR;var Z3=new NxJ;Ak=_.O8(Ak,1);Z3=_.qC(Z3,1,Ak);XG=_.Sn(XG,4,Z3);m8(R_,ntZ(XG))}},GW=function(){var Ak=new URLSearchParams(window.location.search);
if(H().isEmbeddedInWebview&&Ak&&Ak.get("override_hl")==="true"&&Ak.get("hl"))return Ak.get("hl");Ak=document.documentElement.lang;return Ak!==""?Ak:bk},d0=function(Ak){var R_=H().onShareInviteCodeCommand;
if(R_)if(H().isEmbeddedInWebview){var XG=new bgQ;Ak=_.qC(XG,1,Ak);m8(R_,vLG(Ak))}else XG=H().inviteCodeShareClientParamIdentifier,N.clientParams.set(XG,{miniAppClientParams:{inviteCode:Ak}}),w_(R_)},Hn=function(Ak){var R_,XG,Z3;
return _.e(function(Y7){if(Y7.nextAddress==1)return R_=H().onMiniAppOpenYtContentRequested,B&&_.b("enable_open_yt_content")&&R_?Y7.yield(URR(B,Ak),3):Y7.jumpTo(0);XG=Y7.yieldResult;if(XG==="OK")if(H().isEmbeddedInWebview){var EG=new Qqw;Z3=zg(EG,2,rN,Ge(Ak));m8(R_,U_J(Z3))}else U.clientData.set("video_id",Ak),w_(R_);_.EN(Y7)})},qY=function(Ak){hA+=_.QJ(Ak,3);
Ak=Math.min(Math.log(1+hA/15E6*9)/Math.log(10),.99);Vi(Ak);fT(Ak)},fT=_.hK(function(Ak){var R_=H().updateLoadingProgressCommand;
if(R_){var XG=new Qqw;Ak=zg(XG,3,rN,_.sB(Ak));m8(R_,U_J(Ak))}},100),Jg=function(Ak,R_){switch(Ak){case 1:return rG1(h);
case 2:return ufM(h);case 3:return eIL(h,R_);default:return Promise.reject(Error("ei"))}},nm=function(){var Ak,R_;
((Ak=_.MzA())==null?void 0:(R_=Ak.wakeLock)==null?void 0:R_.request)!=null&&_.MzA().wakeLock.request("screen").then(function(XG){J=XG}).catch(function(){})},b1=_.FQ("iframe");
_.CA(function(){H().isSupportedCountry&&(Rq8()||_.b("enable_sign_in_promo")||!H().showSignInDialogCommand?b1.value&&IO(b1.value):w_(H().onMiniAppReadyCommand))},"I8Fvz");
var WS=function(){return _.x("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return vj()?0:-1},
title:function(){return H().title},
el:b1})},IO=function(Ak,R_){R_=R_===void 0?!1:R_;
var XG=Y9();if(XG&&(R_||XG.toString()!==Ak.getAttribute("src"))){T=vRC(H().source,{isAudioEnabled:Cl,onFirstFrameReady:LL,onGameReady:Yp,onSave:PR,onLoad:Ip,onError:jA,onSdkCalled:V_,onSdkPerformanceUpdate:Wz,onClick:Jk,onSendHighScore:St,onBenchmarkingMessageReceived:Rs,getLanguage:GW,onShareInviteCode:d0,onResourceLoaded:qY,onOpenYTContent:Hn,onShowMiniAppAd:Jg,onGameFrameReceived:OI,onGameAudioReceived:sa,onMakeIapPurchase:EW},Ak,XG);T4(Ak,"load",function(){VR(z,"ma_il");T4(Ak,"load",function(){IO(Ak,
!0)})});
var Z3=_.H5("mini_app_container_iframe_src_update_delay_ms");H().isEmbeddedInWebview&&!R_&&Z3>0?hqX(Ak,XG,Z3):_.zM(Ak,XG)}},Y9=function(){var Ak=H().url;
if(Ak&&(Ak=_.Yh(Ak),Ak!==null)){if(H().source&&H().source==="MINI_APP_SOURCE_GAMESNACKS")Ak=_.Yd(Ak,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.b("enable_origin_query_parameter_bugfix")){var R_=_.lf(_.ngX(Ak.toString()));R_=new URLSearchParams(R_||"");R_.set("origin",window.location.origin);R_=R_.toString();Ak=_.QB(Ak).toString();Ak=_.px(PKZ.exec(Ak)[0]+(R_.trim()?"#"+R_:""))}return Ak}},st=function(){var Ak={};
Ak=_.ER("yt-mini-app-container-view-model__loading-screen",(Ak["yt-mini-app-container-view-model__loading-screen--fade-out"]=vj,Ak));var R_=function(){return vj()?1:WX()};
return _.x("div",{class:Ak},_.x(_.HG,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(XG){return _.x(PmI,{data:XG.data,
loadingProgress:R_})}}))},HZ=function(){var Ak={};
return _.x("div",{class:_.ER("yt-mini-app-container-view-model__pause-interstitial",(Ak["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!x1()},Ak["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=x1,Ak))},_.x(_.HG,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(R_){return _.x(PmI,{data:R_.data,
forPaused:!0})}}))},zk=function(){m=[];
m.push(_.Y3(window,"visibilitychange",function(){X||d&&a4()||(document.visibilityState==="visible"?cV():Y8())}));
m.push(_.Y3(window,"pagehide",function(){gU()}));
m.push(_.Y3(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&iQ.value.dispatchEvent(new Event("tap"))},0)}));
m.push(_.Y3(iQ.value,"pointerdown",function(){AGG(z,!1)},!0));
m.push(_.Y3(iQ.value,"pause",function(){X=!0;Y8()}));
m.push(_.Y3(iQ.value,"play",function(){X=!1;cV()}));
m.push(_.Y3(iQ.value,"exit",function(){gU()}));
var Ak=navigator.keyboard,R_=Ak&&Ak.lock;m.push(_.Y3(window,n5i,function(){OB(HfI());HfI()?(H().hasPlayNextShelf&&Bf("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),s8("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),R_&&Ak.lock(["Escape"])):(H().hasPlayNextShelf&&s8("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Bf("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),R_&&Ak.unlock())}));
H().showMultiplayer3pConsentDialogCommand&&m.push(_.Y3(window,"yt-playables-ack-3p-data-usage",function(){ly1(B)}));
H().confirmExitMiniAppCommandEdu&&m.push(_.Y3(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.qH("exit-mini-app-seen-state","true",2592E6)}));
H().onGameAudioDataReceivedCommand&&m.push(_.Y3(window,"message",function(XG){XG=XG.event_;var Z3,Y7=(Z3=b1.value)==null?void 0:Z3.src;if(Y7&&XG.origin===(new URL(Y7)).origin&&XG.data&&XG.data.type==="GAME_AUDIO"&&XG.data.audio&&XG.data.audio.length>0)if(_.b("enable_sending_unwrapped_game_audio_as_serialized_metadata"))iaI(H().onGameAudioDataReceivedCommand,XG.data.audio);else{var EG=new FileReader;EG.onload=function(){var l5=new uR;var EH=new NxJ;EH=_.qC(EH,1,EG.result);l5=_.Sn(l5,4,EH);m8(H().onGameAudioDataReceivedCommand,
ntZ(l5))};
EG.readAsDataURL(new Blob([XG.data.audio]))}}))},g1=function(){m.forEach(function(Ak){k5(Ak)});
window.removeEventListener("beforeunload",qv,{capture:!0})},w_=function(Ak){Ak&&BJl(Ak,H().isEmbeddedInWebview||!1)},s8=function(Ak,R_){Ak=_.r(iQ.value.getElementsByClassName(Ak));
for(var XG=Ak.next();!XG.done;XG=Ak.next())XG.value.classList.add(R_)},Bf=function(Ak,R_){Ak=_.r(iQ.value.getElementsByClassName(Ak));
for(var XG=Ak.next();!XG.done;XG=Ak.next())XG.value.classList.remove(R_)};
return function(){var Ak={};Ak=_.ER("yt-mini-app-container-view-model",(Ak["yt-mini-app-container-view-model--desktop"]=!0,Ak["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Ak["yt-mini-app-container-view-model--ios-web-view"]=Pkb(),Ak["yt-mini-app-container-view-model--no-top-bar"]=function(){return!H().topBar},Ak["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return H().hasPlayNextShelf},Ak["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return H().hasPlayNextShelf},Ak["yt-mini-app-container-view-model--show-peek-below"]=function(){return!uJ()&&H().hasPlayNextShelf},Ak));
var R_={};R_=_.ER("yt-mini-app-container-view-model__content",(R_["yt-mini-app-container-view-model__content--desktop-content"]=!0,R_["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},R_["yt-mini-app-container-view-model--desktop-play-page"]=function(){return H().hasPlayNextShelf},R_));
return _.x("mini-app-container-view-model",{el:iQ},_.x("div",{class:Ak},_.x(_.R,{cond:function(){return H().topBar&&!uJ()},
then:function(){return _.x(_.HG,{data:function(){return H().topBar}},{miniAppTopBarViewModel:function(XG){return _.x(ayR,{data:XG.data,
isAudioEnabled:Cl,onAudioToggled:function(Z3){ZQ(Z3)},
score:ze,formattedScore:mG,onScoreChanged:function(Z3){O=Z3},
isEmbeddedInWebview:a4,isSaved:NQ,onSaveToggled:function(Z3){Qi(Z3)},
isExitMiniAppSeen:eA,isDesktopPlayPage:kl})}})}}),_.x("div",{class:R_},_.x(_.R,{cond:$Z,
then:function(){return WS()}}),_.x(_.R,{cond:function(){return H().isLivestream},
then:function(){return HZ()}}),_.x(_.R,{cond:function(){return!H().isEmbeddedInWebview},
then:function(){return st()}}),_.x(_.HG,{data:function(){return H().contentDisclosure}},{playerDisclosureViewModel:function(XG){XG=XG.data;
var Z3={};return _.x("div",{class:_.ER("yt-mini-app-container-view-model__content-disclosure-overlay",(Z3["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=rO,Z3))},_.x(_.cGM,{data:XG}))}}))))}()},"jg");
tnL.idomCompat=!0;_.Sw(tnL,"mini-app-container-view-model",{props:{data:_.Ih}});var NO1=_.c(function(A){var H=A.data;return _.x("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.x("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.lc(function(){var k=H().onTap;k&&_.mu(k)})},_.x(_.R,{cond:function(){return H().icon},
then:function(k){return _.x(_.n3,{icon:function(){return k().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.x("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return H().title})))},"kg");
NO1.idomCompat=!0;var MnG=_.c(function(A){var H=_.GP("div"),k=_.r(_.RV(void 0,void 0,"dg3xff")),d=k.next().value,W=k.next().value;k=_.r(_.RV(void 0,void 0,"AgHNfc"));var z=k.next().value,u=k.next().value;k=_.r(_.RV(void 0,void 0,"fuTKCc"));var B=k.next().value,h=k.next().value,O=function(){var D=d();return D!==void 0?Math.abs(D):void 0},T=function(){var D=O();
return D===void 0||D<=3},m=function(){var D=O();
var K=z(),N=B();D=D!==void 0&&K!==void 0&&N!==void 0?K-N-D:void 0;return D===void 0||D<=3},J=function(D){H.value&&H.value.scrollBy({top:0,
left:(_.pZ("HTML_DIR")==="rtl"?-1:1)*D*H.value.clientWidth,behavior:"smooth"})},g=function(){var D;
W((D=H.value)==null?void 0:D.scrollLeft);var K;u((K=H.value)==null?void 0:K.scrollWidth);var N;h((N=H.value)==null?void 0:N.clientWidth)},v=function(){J(-.5)},y=function(){J(.5)};
k=_.lc(function(){g()});
_.Sp(function(){g();if(H.value&&window.ResizeObserver){var D=new ResizeObserver(g);D.observe(H.value);_.aV(function(){D.disconnect()})}});
var X={};return _.x("yt-sponsorships-scrollable-shelf",{class:_.ER("ytdSponsorshipsScrollableShelfHost",A.className)},_.x("div",{class:_.ER("ytdSponsorshipsScrollableShelfContent",(X.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return A.data().previousButton&&A.data().nextButton&&!T()&&!m()},X.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return A.data().previousButton&&!T()&&m()},X.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return A.data().nextButton&&
T()&&!m()},X)),
el:H,"on:scroll":k},A.children),_.x(_.R,{cond:function(){return!T()},
then:function(){return _.x(_.HG,{data:function(){return A.data().previousButton}},{buttonViewModel:function(D){return _.x(_.U7,{data:D.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:v})}})}}),_.x(_.R,{cond:function(){return!m()},
then:function(){return _.x(_.HG,{data:function(){return A.data().nextButton}},{buttonViewModel:function(D){return _.x(_.U7,{data:D.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:y})}})}}))},"mg");
MnG.idomCompat=!0;var Zx_=_.c(function(A){var H=A.data;A={};return _.x("yt-sponsorships-hub",{class:_.ER("ytdSponsorshipsHubHost",(A.ytdSponsorshipsHubHostIndented=function(){return H().indented},A))},_.x("div",{class:"ytdSponsorshipsHubHeader"},_.x("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.x("div",{class:"ytdSponsorshipsHubAvatar"},_.x(_.HG,{data:function(){return H().avatar}},{avatarViewModel:_.RW})),_.x(_.R,{cond:function(){return H().badgeImage},
then:function(k){return _.x("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.x("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.x("div",{class:"ytdSponsorshipsHubBadge"},_.x(_.GA,{data:k,targetWidth:24,targetHeight:24,alt:""}))))}})),_.x("div",{class:"ytdSponsorshipsHubDetails"},_.x("div",{class:"ytdSponsorshipsHubTierName"},function(){return H().tierName}),_.x("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return H().membershipType}),_.x("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return H().membershipDurationOrExpiry})),_.x("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.x(_.HG,{data:function(){return H().manageButton}},{buttonViewModel:function(k){return _.x(_.U7,{data:k.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.x(_.HG,{data:function(){return H().actionMenuButton}},{buttonViewModel:function(k){return _.x(_.U7,{data:k.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.x("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return H().perksTitle}),_.x(MnG,{data:function(){return{previousButton:H().previousPerkButton,
nextButton:H().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.x("div",{class:"ytdSponsorshipsHubPerkCards"},_.x(_.HG,{data:function(){return H().perkCards}},{sponsorshipsHubPerkCardViewModel:NO1}),_.x(_.R,{cond:function(){return H().viewAllPerksButton},
then:function(k){return _.x(np1,{data:k})}}))))},"ng");
Zx_.idomCompat=!0;var np1=_.c(function(A){var H=A.data;return _.x("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.x(_.HG,{data:function(){return H().button}},{buttonViewModel:_.U7}),_.x("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.x("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return H().title}),_.x("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return H().subtitle})))},"og");
np1.idomCompat=!0;_.Sw(Zx_,"yt-sponsorships-hub",{props:{data:_.Ih}});_.fyI=_.c(function(A){var H=A.data;return _.x("yt-dual-avatar-view-model",{class:_.ER("ytDualAvatarViewModelHost",A.className),style:_.Mt({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var k;return((k=H().badgeCutoutRadius)!=null?k:14)+"px"}})},_.x("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.x(_.HG,{data:function(){return H().startAvatar}},{avatarViewModel:_.RW}),_.x(_.HG,{data:function(){return H().endAvatar}},{avatarViewModel:_.RW})),_.x(_.HG,{data:function(){return H().badge}},
{contentPreviewImageViewModel:function(k){return _.x("div",{class:"ytDualAvatarViewModelBadge"},_.x(_.to,{data:k.data}))}}))},"pg");
_.fyI.idomCompat=!0;var opI=_.c(function(A){var H=A.data;var k,d=!((k=_.wj().resolve(_.fZ(_.sF)))==null||!k());A=_.be(function(){var T,m,J=d?(T=H().header)==null?void 0:T.backgroundColorDarkMode:(m=H().header)==null?void 0:m.backgroundColorLightMode;if(J!==void 0)return _.h1(J)},void 0,"TDdh7d");
k=_.be(function(){var T,m;return d?(T=H().header)==null?void 0:T.backgroundImagePart1Dark:(m=H().header)==null?void 0:m.backgroundImagePart1Light},void 0,"X0peMe");
var W=_.be(function(){var T,m;return d?(T=H().header)==null?void 0:T.backgroundImagePart2Dark:(m=H().header)==null?void 0:m.backgroundImagePart2Light},void 0,"an0Hzd"),z=_.be(function(){return _.pZ("HTML_DIR")==="rtl"},void 0,"BltEgb"),u=_.GP("yt-sponsorships-perks-list"),B=!1,h=function(){var T=u.value;
if(T&&!B){var m,J=(m=T.parentElement)==null?void 0:m.parentElement;if(J)for(T=T.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),m=0;m<T.length;++m){var g=T[m];if(g instanceof HTMLElement){J.scrollTo({top:g.offsetTop+g.clientHeight/2-J.clientHeight/2,behavior:"smooth"});B=!0;break}}}};
_.CZ(function(){var T=u.value;if(T&&window.ResizeObserver){var m=new ResizeObserver(h);m.observe(T);_.aV(function(){m.disconnect()})}});
var O={};return _.x("yt-sponsorships-perks-list",{el:u,class:_.ER("ytdSponsorshipsPerksListHost",(O.ytdSponsorshipsPerksListHorizontalPadding=function(){return H().horizontalPaddingEnabled},O))},_.x("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.x("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Mt({"background-color":A})},_.x("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.x(_.R,{cond:k,then:function(T){var m={};return _.x("div",{class:_.ER((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=d,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!d,m.ytdSponsorshipsPerksListFlipped=z,m))},_.x(_.GA,{data:T,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.x("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.x(_.R,{cond:W,
then:function(T){var m={};return _.x("div",{class:_.ER((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=d,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!d,m.ytdSponsorshipsPerksListFlipped=z,m))},_.x(_.GA,{data:T,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.x("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.x(_.HG,{data:function(){var T;
return(T=H().header)==null?void 0:T.dualAvatar}},{dualAvatarViewModel:_.fyI})))),_.x("div",{class:"ytdSponsorshipsPerksListBody"},_.x("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return H().title}),_.x(_.R,{cond:function(){return H().perks},
then:function(T){return _.x(_.Ix,{each:T},function(m,J){var g={};return _.x("div",{class:_.ER("ytdSponsorshipsPerksListPerkContainer",(g.ytdSponsorshipsPerksListSelectedPerk=function(){var v=J(),y=H().selectedPerkIndex;return v===y},g))},_.x(_.R,{cond:function(){return J()>0},
then:function(){return _.x("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.x("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.x(_.R,{cond:function(){return m.icon},
then:function(v){return _.x(_.n3,{icon:function(){return v().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.x("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.x("div",{class:"ytdSponsorshipsPerksListPerkTitle"},m.title),_.x("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.x(_.j$,{text:m.description})),_.x(_.R,{cond:function(){return m.instructions},
then:function(){var v,y;return _.x("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.x("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(v=m.instructions)==null?void 0:v.title),_.x("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.x(_.j$,{text:(y=m.instructions)==null?void 0:y.text})))}}))),_.x(_.R,{cond:function(){return m.emoji},
then:function(v){return _.x("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.x(_.Ix,{each:function(){return v()}},function(y){return _.x(_.GA,{data:y,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.x(wzL,{data:m}))})}})))},"qg");
opI.idomCompat=!0;var wzL=_.c(function(A){var H=A.data;var k=function(u,B){return u===B},d=function(){var u=H();
u=_.L(u==null?void 0:u.badgesShelf,Ylw);return u!==void 0&&u!==null?u:{previousButton:{},nextButton:{}}},W=_.FQ("div"),z=function(){var u=W.value;
if(u){var B=u.parentElement;if(B){u=u.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var h=0;h<u.length;++h){var O=u[h];if(O instanceof HTMLElement){B.scrollTo({left:O.offsetLeft+O.clientWidth/2-B.clientWidth/2,behavior:"instant"});break}}}}};
_.CZ(function(){var u=W.value;if(u){var B=new ResizeObserver(z);B.observe(u);_.aV(function(){B.disconnect()})}});
return _.x("div",null,_.x(_.R,{cond:function(){return H().badges},
then:function(u){return _.x(MnG,{data:d},_.x("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:W},_.x(_.Ix,{each:function(){return u()}},function(B,h){var O={},T={},m={};
return _.x("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.x(_.R,{cond:function(){return h()>0},
then:function(){return _.x("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.x("div",{class:_.ER("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(O.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return k(h(),H().currentBadgeIndex)},O.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!k(h(),H().currentBadgeIndex)},O))},_.x("div",{class:_.ER("ytdSponsorshipsPerksListLoyaltyBadge",(T.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return k(h(),
H().currentBadgeIndex)},T.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!k(h(),H().currentBadgeIndex)},T))},_.x(_.R,{cond:function(){return B.image},
then:function(J){var g={};return _.x("div",{class:_.ER((g.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return k(h(),H().currentBadgeIndex)},g.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!k(h(),H().currentBadgeIndex)},g))},_.x(_.GA,{data:J,
alt:""}))}})),_.x("div",{class:_.ER("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(m.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return k(h(),H().currentBadgeIndex)},m))},B.title)))})))}}))},"rg");
wzL.idomCompat=!0;_.Sw(opI,"yt-sponsorships-perks-list",{props:{data:_.Ih}});_.Sw(_.c(function(A){return _.x("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.x(_.R,{cond:function(){return A.data().image},
then:function(H){return _.x(_.GA,{className:"ytwFantasyEmptyStateViewModelImage",data:H,ariaHidden:!0,alt:""})}}),_.x(_.j$,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return A.data().title}}),_.x(_.j$,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return A.data().subtitle}}),_.x(_.HG,{data:function(){return A.data().primaryButton}},{buttonViewModel:function(H){return _.x(_.U7,{data:H.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"sg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Ih}});var $RV;var A2L=_.c(function(A){var H=A.data;var k=A.uniqueId;var d=A.overrides;A=_.be(function(){var W,z=((W=H().timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:k(),timings:z,experimentEnabled:z.length>0,enabled:z.length>0}},void 0,"hiuXI");
return _.x("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.x(YTA,{settings:A},_.x(_.HG,{data:function(){return H().buttonRenderer}},{buttonRenderer:function(W){return _.x(_.Sg,{data:W.data,
buttonOverrides:d})}})))},"tg");
A2L.idomCompat=!0;_.Sw(A2L,"timed-animation-button-renderer",{props:{data:_.Ih,uniqueId:_.Ih,overrides:_.Ih}});var Zg=function(){var A=_.a.apply(this,arguments)||this;A.hideJoinButtonBeforeSubscribed=_.b("hide_join_button_before_subscribed");A.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return A};
_.I(Zg,_.a);_.q=Zg.prototype;_.q.hasShowDialogCommand=function(A){return!!_.L(A,Cuw)};
_.q.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"}}}};
_.q.updateJoinButtonOverrides=function(){var A,H;(A=_.Va(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(H=A.polymerController)==null||H.set("overrides",this.joinButtonOverrides);if(A=_.Va(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))A.overrides=this.joinButtonOverrides};
_.q.handleButtonRefreshAction=function(A){if(A=_.L(A,owi))this.set("data.membershipButton",A.membershipButton),this.notifyPath("data.membershipButton")};
_.q.onYtServiceRequestError=function(A){_.YH(this.hostElement,A.detail.error.message)};
_.q.onKeydown=function(A){if(A.key==="Enter"){var H;(H=this.data)!=null&&H.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.q.handleUnsubscribeAction=function(){var A,H,k;((A=this.data)==null?void 0:(H=A.membershipButton)==null?void 0:(k=H.buttonRenderer)==null?void 0:k.style)==="STYLE_PRIMARY"&&_.Va(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.nP.Object.defineProperties(Zg.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.subscriptionStateEntity)==null||!A.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var A,H=(A=this.data)==null?void 0:A.membershipButton,k;A=(H==null?void 0:H.buttonRenderer)||_.L(H==null?void 0:(k=H.timedAnimationButtonRenderer)==null?void 0:k.buttonRenderer,_.gN);return(A==null?void 0:A.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(A==null?void 0:A.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(A==null?void 0:A.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var A;if(this.hasShowDialogCommand((A=this.data)==null?void 0:A.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var A;if(this.hasShowDialogCommand((A=this.data)==null?void 0:A.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.attributedTitle)}}});
Zg.prototype.onYtServiceRequestError=Zg.prototype.onYtServiceRequestError;Zg.prototype.updateJoinButtonOverrides=Zg.prototype.updateJoinButtonOverrides;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Zg.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],Zg.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Zg.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.rx),_.l("design:type",Object)],Zg.prototype,"ironButtonState",void 0);_.E([_.C(),_.l("design:type",Object)],Zg.prototype,"data",void 0);_.E([_.G("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zg.prototype,"hideJoin",null);
_.E([_.C(),_.l("design:type",String)],Zg.prototype,"subscribeKey",void 0);_.E([_.C({selectorArgs:["subscribeKey"],selector:vSl}),_.l("design:type",Object)],Zg.prototype,"subscriptionStateEntity",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zg.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.E([_.G("subscriptionStateEntity"),_.C({reflectToAttribute:!0}),_.l("design:type",Object),_.l("design:paramtypes",[])],Zg.prototype,"subscribed",null);
_.E([_.G("subscribed","data.membershipButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zg.prototype,"joinButtonOverrides",null);_.E([_.G("data.navigationEndpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zg.prototype,"channelNameTabIndex",null);_.E([_.G("data.navigationEndpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zg.prototype,"channelNameRole",null);
_.E([_.G("data.attributedTitle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Zg.prototype,"hasAttributedTitle",null);_.E([_.fF("joinButtonOverrides"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zg.prototype,"updateJoinButtonOverrides",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Zg.prototype,"onYtServiceRequestError",null);
_.E([_.O6({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Zg);
var HVQ=_.Vu()(Zg,"ytd-video-owner-renderer",function(){if($RV===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);$RV=A}A=$RV;return A},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.Sw(_.c(function(A){var H=A.data;var k;A=_.r(_.RV(!((k=_.r4("yt-mini-app-is-theater-mode-enabled"))==null||!k),void 0,"i2pjVd"));var d=A.next().value,W=A.next().value;k=_.r(_.RV(!1,void 0,"ga7V5c"));var z=k.next().value,u=k.next().value;_.CZ(function(){var O=_.Y3(window,n5i,function(){u(HfI())});
_.aV(function(){k5(O)})});
var B;k=(B=_.wj().resolve(_.fZ(LG3)))!=null?B:function(){return _.x("div",null)};
_.Qr("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){W(!0);_.qH("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Qr("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){W(!1);_.qH("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
B={};A={};var h={};return _.x("mini-app-play-page-renderer",{class:_.ER("miniAppPlayPageRendererHost",(B.miniAppPlayPageRendererHostDetailsView=function(){return!d()},B))},_.x("div",{class:_.ER("miniAppPlayPageRendererGameContainer",(A.miniAppPlayPageRendererGameContainerDetailsView=function(){return!d()},A))},_.x(_.HG,{data:function(){return H().containerViewModel}},{miniAppContainerViewModel:tnL}),_.x(_.R,{cond:function(){return H().channel&&H().subscribeButton},
then:function(){var O={};return _.x("div",{class:_.ER("miniAppPlayPageRendererChannelContainer",(O.miniAppPlayPageRendererHideVisibility=function(){return z()},O))},_.x(_.HG,{data:function(){return H().channel}},{videoOwnerRenderer:function(T){return _.x(HVQ,{data:T.data})}}),_.x(_.HG,{data:function(){return H().subscribeButton}},{subscribeButtonViewModel:function(T){return _.x(_.Rr,{data:T.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.x(_.R,{cond:function(){return!d()&&H().description},
then:function(){var O={};return _.x("div",{class:_.ER("miniAppPlayPageRendererMiniAppDescriptionWrapper",(O.miniAppPlayPageRendererHideVisibility=function(){return z()},O))},_.x("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return H().description}))}})),_.x("div",{class:_.ER("miniAppPlayPageRendererPlayNextContainer",(h.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!d()},h.miniAppPlayPageRendererHideVisibility=function(){return z()},h))},_.x(_.HG,{data:function(){return H().sectionList}},
{sectionListRenderer:k})))},"ug"),"mini-app-play-page-renderer",{props:{data:_.Ih}});var fJ=function(){var A=_.a.apply(this,arguments)||this;A.isSearch=!1;A.isConstrainedList=!1;A.hasChipsBar=!1;A.inReplyPanel=!1;A.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"}};A.monitorScroll=!0;A.SCROLL_ANIMATION_DURATION_MS=300;A.nextContinuation={continuationType:"sectionListContinuation"};return A};
_.I(fJ,_.a);_.q=fJ.prototype;
_.q.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},alertBannerViewModel:{component:"yt-alert-banner-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(A){switch(A.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:_.b("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.b("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.q.created=function(){var A=this;this.JSC$17556_scrollAnimation=new _.pJ(function(H){A.hostElement.scrollTop=H})};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.q.getItemsPath=function(){return"data.contents"};
_.q.replacePrimaryContent=function(A){this.set("data.contents",A)};
_.q.computeHasSortFilter=function(A){return!!A&&!!A.sortFilterSubMenuRenderer};
_.q.computeShouldScrollInPanel=function(A){var H;return!!(A==null?0:(H=A.scrollPaneStyle)==null?0:H.scrollable)};
_.q.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.UJ(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.q.scrollToTop=function(){this.hostElement.scrollTop=0};
_.q.scrollToItemSection=function(A){if(A=this.getItemByIdentifier(A))A=this.getScrollPositionForItem(A),this.hostElement.scrollTop!==A&&this.JSC$17556_scrollAnimation.start(this.hostElement.scrollTop,A,this.SCROLL_ANIMATION_DURATION_MS)};
_.q.getItemByIdentifier=function(A){var H=this.contents.querySelectorAll("ytd-item-section-renderer");if(H&&H.length!==0){var k=Array.from(H).findIndex(function(d){return d.sectionIdentifier===A});
return H[k===-1?0:k]}};
_.q.getScrollPositionForItem=function(A){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===A)return 0;A=_.mA(A).y+this.hostElement.scrollTop-_.mA(this.hostElement).y;return Math.min(A,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.nP.Object.defineProperties(fJ.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.targetId)==="browse-feedFEclips"}}});
fJ.prototype.onScroll=fJ.prototype.onScroll;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],fJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.cw.YtLazyListBehavior),_.l("design:type",Object)],fJ.prototype,"ytLazyListBehavior",void 0);_.E([_.P(_.So.YtNextContinuationBehavior),_.l("design:type",Object)],fJ.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.P(_.Q_3),_.l("design:type",Object)],fJ.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.P(_.DV),_.l("design:type",Object)],fJ.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],fJ.prototype,"data",void 0);_.E([_.C({value:2}),_.l("design:type",Number)],fJ.prototype,"initialCount",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],fJ.prototype,"autoFill",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.l("design:type",Boolean)],fJ.prototype,"hasSortFilter",void 0);_.E([_.C({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.l("design:type",Boolean)],fJ.prototype,"hideBottomSeparator",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.l("design:type",Boolean)],fJ.prototype,"shouldScrollInPanel",void 0);
_.E([_.C(),_.l("design:type",Object)],fJ.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],fJ.prototype,"isConstrainedList",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],fJ.prototype,"responsiveSizing",void 0);_.E([_.C(),_.l("design:type",Object)],fJ.prototype,"hasChipsBar",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],fJ.prototype,"pageSubtype",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],fJ.prototype,"engagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],fJ.prototype,"liveChatEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],fJ.prototype,"inReplyPanel",void 0);_.E([_.ol("#action-button"),_.l("design:type",HTMLElement)],fJ.prototype,"actionButton",void 0);_.E([_.C(),_.l("design:type",Object)],fJ.prototype,"scrollUpButtonData",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],fJ.prototype,"engagementPanelDropdown",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],fJ.prototype,"engagementPanelDialog",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],fJ.prototype,"isClipList",null);_.E([_.ol("#contents"),_.l("design:type",HTMLElement)],fJ.prototype,"monitorScrollElement",void 0);_.E([_.ol("#contents"),_.l("design:type",HTMLElement)],fJ.prototype,"contents",void 0);
_.E([_.Ze("scroll"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fJ.prototype,"onScroll",null);_.E([_.O6({is:"ytd-section-list-renderer",disableElementRegistration:!0})],fJ);
var s4L=_.Vu()(fJ,"ytd-section-list-renderer",function(){if(bNI===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);bNI=A}A=bNI;return A},{mode:1});var kMM;var dXM;var WJB;var ztQ;var wa=function(){return _.a.apply(this,arguments)||this};
_.I(wa,_.a);wa.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
wa.prototype.onLikeButtonClick=function(A){A.stopPropagation();A.preventDefault()};
_.nP.Object.defineProperties(wa.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.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)})}}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],wa.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],wa.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],wa.prototype,"ytRendererStamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],wa.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.likeStatusEntityKey"],selector:_.R9}),_.l("design:type",Object)],wa.prototype,"likeStatusEntity",void 0);_.E([_.G("data","likeStatusEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],wa.prototype,"likeButtonRenderer",null);_.E([_.O6({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],wa);
_.Q(wa,"ytd-slim-metadata-toggle-button-renderer",function(){if(ztQ!==void 0)return ztQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return ztQ=A},{mode:1});var oG=function(){var A=_.a.apply(this,arguments)||this;A.showEqualizer=_.b("web_enable_playlist_video_lockup_equalizer");A.watchColorUpdate=_.b("kevlar_watch_color_update");A.actionMap={};return A};
_.I(oG,_.a);_.q=oG.prototype;_.q.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"}}}};
_.q.computeEditableClass=function(A){return A&&A.menu?"editable":""};
_.q.computeSelected=function(A){return!(A==null||!A.selected)};
_.q.computeUseColorPalette=function(A){return!!((A==null?0:A.lightColorPalette)&&(A==null?0:A.darkColorPalette))};
_.q.computeLargerPlaylistThumbs=function(A,H){return _.b("web_enable_playlist_bigger_thumbnails")&&!H};
_.q.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.q.onYtServiceRequestSent=function(A,H){H.endpoint&&this.isHideEnclosingAction(H.endpoint)&&!this.selected&&enk(_.FY(),this.data.videoId)};
_.q.isHideEnclosingAction=function(A){var H=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",A);A=this.get("likeEndpoint.status",A)==="INDIFFERENT";return H||A};
_.q.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.q.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.nP.Object.defineProperties(oG.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.b("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 A;return!!(this.withinMiniplayer&&((A=this.data)==null?0:A.actionButtons))}}});
oG.prototype.onYtServiceRequestSent=oG.prototype.onYtServiceRequestSent;oG.prototype.canReorderChanged=oG.prototype.canReorderChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],oG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.I6),_.l("design:type",Object)],oG.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],oG.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],oG.prototype,"withinMiniplayer",void 0);_.E([_.C({computed:"computeSelected(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],oG.prototype,"selected",void 0);
_.E([_.C({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],oG.prototype,"useColorPalette",void 0);_.E([_.C({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.l("design:type",Boolean)],oG.prototype,"largerPlaylistThumbs",void 0);_.E([_.C(),_.l("design:type",Object)],oG.prototype,"showEqualizer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],oG.prototype,"canReorder",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],oG.prototype,"touchPersistentDragHandle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],oG.prototype,"handleIsHovered",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],oG.prototype,"watchColorUpdate",void 0);_.E([_.C(),_.l("design:type",String),_.l("design:paramtypes",[])],oG.prototype,"reorderIcon",null);
_.E([_.C(),_.l("design:type",String),_.l("design:paramtypes",[])],oG.prototype,"playIcon",null);_.E([_.C({reflectToAttribute:!0}),_.G("withinMiniplayer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oG.prototype,"minimizePipBreakages",null);_.E([_.G("largerPlaylistThumbs"),_.l("design:type",Number),_.l("design:paramtypes",[])],oG.prototype,"thumbnailWidth",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oG.prototype,"showActionButtons",null);_.E([_.s6("canReorder"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oG.prototype,"canReorderChanged",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],oG.prototype,"onYtServiceRequestSent",null);
_.E([_.O6({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],oG);
_.Q(oG,"ytd-playlist-panel-video-renderer",function(){if(WJB!==void 0)return WJB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return WJB=A},{mode:2});var $i=function(){return _.a.apply(this,arguments)||this};
_.I($i,_.a);$i.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],$i.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$i.prototype,"data",void 0);_.E([_.O6({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],$i);
_.Q($i,"ytd-playlist-panel-supported-items",function(){if(dXM!==void 0)return dXM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return dXM=
A},{mode:1});ZjA=!0;Y8Z("\\P{N}");var Dqb;var qNR=_.$r("END_OF_PLAYLIST",void 0,"End of playlist"),r2Q=_.$r("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Au=function(){var A=_.a.apply(this,arguments)||this;A.minimizePipBreakages=_.b("web_pip_minimize_breakages");A.hideHeaderText=!1;A.useColorPalette=!1;A.collapsed=!1;A.collapsedPreServerOverride="not_tracked";A.isHovered=!1;A.expandLabel=_.$r("MINIPLAYER_EXPAND_LABEL");A.collapseLabel=_.$r("MINIPLAYER_COLLAPSE_LABEL");A.isFloating=!1;A.metaPanel=
!1;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};A.currentIndex=void 0;return A};
_.I(Au,_.a);_.q=Au.prototype;
_.q.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"}}}};
_.q.created=function(){var A=this;this.scrollThrottle=new _.Nt(this.onThrottledScroll,1E3,this);this.JSC$17578_ytReorderableController=new _.Qjj(56,function(H){A.handleDrop(H)})};
_.q.onMouseEnter=function(){this.isHovered=!0};
_.q.onMouseLeave=function(){this.isHovered=!1};
_.q.computeOverflowMenuData=function(A){return A&&A.menu?A.menu:null};
_.q.computeCollapsible=function(A){return!A};
_.q.computeHasPlaylistButtons=function(A){return!(!A||!A.playlistButtons)};
_.q.computeHasSeparateSaveButton=function(A){return!(!A||!A.saveButton)};
_.q.computeHasToolbarButton=function(A,H){return!(!A||!(H||A.saveButton||A.menu))};
_.q.computePlaylistType=function(A){if(A&&A.playlistId)return A.playlistId.substring(0,4)};
_.q.computeCanReorder=function(A){return A?A.playlistId&&A.playlistId.startsWith("TLPQ")?!0:!!A.isEditable&&!A.isInfinite:!1};
_.q.attached=function(){var A=this;try{_.wj().resolve(_.jd).setPlaylistComponent(this.hostElement)}catch(H){if(_.b("kevlar_park_on_playlist_token_killswitch"))throw H;_.Yf().parkOrScheduleJob(function(){_.wj().resolve(_.jd).setPlaylistComponent(A.hostElement)},2,"ci")}_.KH(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.q.detached=function(){_.aC(this.hostElement);_.Hx(this.JSC$17578_ytReorderableController)};
_.q.computeTrailingIcon=function(A,H,k){return k?H?"yt-icons:collapse":"yt-icons:close":H?"yt-icons:expand":_.b("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.q.computeIndexMessage=function(A,H){return KwC(A+1)+" / "+KwC(H)};
_.q.onRenderStamperFinished=function(){if(this.scrollForStampDom){var A=!0;this.isHovered&&(A=!1);if(this.collapsed||this.hidden)A=!1;A&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.q.collapseChanged=function(){var A=this;this.collapsed||(_.Hp(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.q.hiddenChanged=function(){var A=this;this.hidden||_.Hp(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.scrollToCurrentVideo()})};
_.q.setupReordering=function(){var A=_.Va(this.hostElement).querySelector("#items");x1A?_.VRi(this.JSC$17578_ytReorderableController,A,A,"playlist-drag-handle"):_.VRi(this.JSC$17578_ytReorderableController,A,A)};
_.q.scrollToCurrentVideo=function(){var A=this;_.IE.addJob(function(){var H=_.Va(A.hostElement).querySelector("#items");if(H){H.style.setProperty("padding-bottom","");var k=_.Va(A.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(k){H=k.parentElement||_.mN(document);var d=H||_.mN(document);var W=_.mA(k),z=_.mA(d),u=_.Rck(d);if(d==_.mN(document)){var B=W.x-d.scrollLeft;W=W.y-d.scrollTop}else B=W.x-z.x-u.left,W=W.y-z.y-u.top;k=xZi(k);z=d.clientHeight-
k.height;u=d.scrollLeft;var h=d.scrollTop;u+=B-(d.clientWidth-k.width)/2;d=new _.Ft(u,h+(W-z/2));H.scrollLeft=d.x;H.scrollTop=d.y}}},8)};
_.q.dataChanged=function(){var A=this;_.Hx(this.JSC$17578_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.No(this,function(){_.ma(A.ytTaskEmitterBehavior.getTaskManager(),function(){A.ytRendererBehavior.markDirty();A.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.q.onFullBleedPlayerChanged=function(){_.b("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.q.onFullscreenChanged=function(){_.b("web_watch_imax_theater_mode")||_.b("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.q.updateNowPlayingOverlay=function(){_.b("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.q.onPlaylistLockupNowPlaying=function(A,H){H&&(this.activeNowPlayingRenderer=H);this.updateNowPlayingOverlay()};
_.q.onScroll=function(){this.scrollThrottle.fire()};
_.q.onThrottledScroll=function(){var A=this;_.ma(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.ytRendererBehavior.markDirty()})};
_.q.onToggleExpanded=function(A){!this.collapsible||A&&(_.X_(A).tagName==="A"||_.XU(_.F_(A),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.q.setCollapsed=function(A){this.collapsible&&(this.collapsed=A,_.li(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.q.handleCollapsedFromData=function(A){if(A){var H=A.playlistPanelCollapseState;H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||H==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),H=H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==H&&this.setCollapsed(H)):this.currentPlaylistId!==A.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(H=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==H&&this.setCollapsed(H),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=A.playlistId}};
_.q.handleDrop=function(A){var H=A.currDragItem;A=H.data.playlistSetVideoId;var k=_.ab(H.parentNode.childNodes,H),d=void 0;k>0&&(d=H.parentNode.childNodes[k-1].data.playlistSetVideoId);H=_.FY();if(H.responsePlaylistData&&H.responsePlaylistData.contents){var W=NvQ(A,H.responsePlaylistData);H.responsePlaylistData=(0,_.iK.unsafeClone)(H.responsePlaylistData);pVm(H.responsePlaylistData.contents,W,k);H.queueProxy?V6w(H.queueProxy,W,k,A,d):H.playlistProxy&&V6w(H.playlistProxy,W,k,A,d);_.XY(H,_.D4(H,H.response?
H.response.autoplayRenderer:void 0))}};
_.q.handleDarkModeChange=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
_.q.colorPaletteChanged=function(){var A,H=((A=this.data)==null?void 0:A.contents)||[],k;A=_.r(H);for(H=A.next();!H.done;H=A.next()){H=H.value;var d=void 0;if((d=H.playlistPanelVideoRenderer)==null?0:d.selected){A=H.playlistPanelVideoRenderer;d=H=void 0;(k=this.isDarkTheme?(H=A)==null?void 0:H.darkColorPalette:(d=A)==null?void 0:d.lightColorPalette)&&_.qN(this.hostElement,k);break}}this.useColorPalette=!!k};
_.nP.Object.defineProperties(Au.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.moveThreeDotsMenuToMainHeader)&&_.b("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var A=_.wj().resolve(_.fZ(_.jd)),H;if(((H=this.data)==null?0:H.contents)&&(A==null?0:A.hasAutoplayData())){var k;if(((k=this.playlistLoopStateEntity)==null?void 0:k.state)==="PLAYLIST_LOOP_STATE_ONE"){if(A=this.data.currentIndex,A!==void 0){var d,W;var z=(d=this.data.contents[A])==null?void 0:(W=d.playlistPanelVideoRenderer)==null?void 0:W.title}}else{var u,B=(u=_.L(A.getAutoplayEndpoint(),_.Yr))==null?void 0:u.videoId,h,O;z=(h=this.data.contents.find(function(T){var m;
return((m=T.playlistPanelVideoRenderer)==null?void 0:m.videoId)===B}))==null?void 0:(O=h.playlistPanelVideoRenderer)==null?void 0:O.title}return z}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)!=null&&A.nextVideoLabel?this.nextVideoTitle?_.PK(this.data.nextVideoLabel)+":":qNR:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?0:A.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.b("web_mix_long_byline_from_data"))return _.Yu(r2Q);var H;return(H=this.data)==null?void 0:H.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d=(A=this.data)==null?void 0:(H=A.playlistButtons)==null?void 0:(k=H.menuRenderer)==null?void 0:k.topLevelButtons;if(d)for(A=_.r(d),H=A.next();!H.done;H=A.next())if(H=H.value,H.playlistLoopButtonRenderer)return H.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var A;return!!(this.collapsed&&((A=this.data)==null?0:A.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.b("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Au.prototype.colorPaletteChanged=Au.prototype.colorPaletteChanged;Au.prototype.onPlaylistLockupNowPlaying=Au.prototype.onPlaylistLockupNowPlaying;Au.prototype.updateNowPlayingOverlay=Au.prototype.updateNowPlayingOverlay;Au.prototype.onFullscreenChanged=Au.prototype.onFullscreenChanged;Au.prototype.onFullBleedPlayerChanged=Au.prototype.onFullBleedPlayerChanged;Au.prototype.dataChanged=Au.prototype.dataChanged;Au.prototype.hiddenChanged=Au.prototype.hiddenChanged;Au.prototype.collapseChanged=Au.prototype.collapseChanged;
Au.prototype.onRenderStamperFinished=Au.prototype.onRenderStamperFinished;Au.prototype.onMouseLeave=Au.prototype.onMouseLeave;Au.prototype.onMouseEnter=Au.prototype.onMouseEnter;_.E([_.P(_.WU),_.l("design:type",Object)],Au.prototype,"ironResizableBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(xbi.YtPlaylistPanelBehavior),_.l("design:type",Object)],Au.prototype,"ytPlaylistPanelBehavior",void 0);_.E([_.P(_.Xj.YtTaskEmitterBehavior),_.l("design:type",Object)],Au.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Au.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Au.prototype,"ytdReduxBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Au.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Au.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Au.prototype,"autoplayData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Au.prototype,"withinMiniplayer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Au.prototype,"minimizePipBreakages",void 0);
_.E([_.C({computed:"setMenuData_(data)"}),_.l("design:type",Object)],Au.prototype,"menuRendererData",void 0);_.E([_.C({computed:"computeOverflowMenuData(data)"}),_.l("design:type",Object)],Au.prototype,"overflowMenuDataTopRow",void 0);_.E([_.C({computed:"computeOverflowMenuData(data)"}),_.l("design:type",Object)],Au.prototype,"overflowMenuData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Au.prototype,"hideHeaderText",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Au.prototype,"useColorPalette",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.l("design:type",Boolean)],Au.prototype,"collapsible",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Au.prototype,"collapsed",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Au.prototype,"hidden",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.l("design:type",Boolean)],Au.prototype,"hasPlaylistButtons",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.l("design:type",Boolean)],Au.prototype,"hasSeparateSaveButton",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.l("design:type",Boolean)],Au.prototype,"hasToolbar",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.l("design:type",String)],Au.prototype,"playlistType",void 0);_.E([_.C(),_.l("design:type",Object)],Au.prototype,"isHovered",void 0);_.E([_.C({selectorArgs:["playlistLoopStateEntityKey"],selector:_.z2.playlistLoopStateEntitySelector}),_.l("design:type",Object)],Au.prototype,"playlistLoopStateEntity",void 0);_.E([_.C({computed:"computeCanReorder(data)"}),_.l("design:type",Boolean)],Au.prototype,"canReorder",void 0);
_.E([_.C(),_.l("design:type",Object)],Au.prototype,"expandLabel",void 0);_.E([_.C(),_.l("design:type",Object)],Au.prototype,"collapseLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Au.prototype,"isFloating",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Au.prototype,"metaPanel",void 0);_.E([_.C({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.l("design:type",String)],Au.prototype,"trailingIcon",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Au.prototype,"isDarkTheme",void 0);_.E([_.C({selector:_.hr}),_.l("design:type",Boolean)],Au.prototype,"miniplayerIsActive",void 0);_.E([_.C({selector:function(A){return A.watch.playerState}}),
_.l("design:type",Number)],Au.prototype,"playerState",void 0);_.E([_.C({selector:_.h8}),_.l("design:type",Boolean)],Au.prototype,"isFullscreen",void 0);_.E([_.C({selector:_.iL}),_.l("design:type",Boolean)],Au.prototype,"isTheaterMode",void 0);_.E([_.C(),_.l("design:type",Object)],Au.prototype,"activeNowPlayingRenderer",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Au.prototype,"moveThreeDotMenuToTopRow",null);
_.E([_.G("data","autoplayData","playlistLoopStateEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Au.prototype,"nextVideoTitle",null);_.E([_.G("data","nextVideoTitle"),_.l("design:type",String),_.l("design:paramtypes",[])],Au.prototype,"nextVideoLabel",null);_.E([_.G("collapsed"),_.l("design:type",String),_.l("design:paramtypes",[])],Au.prototype,"buttonAriaLabel",null);
_.E([_.G("data","playlistId","longBylineText"),_.l("design:type",Object),_.l("design:paramtypes",[])],Au.prototype,"mixLongByLine",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Au.prototype,"playlistLoopStateEntityKey",null);_.E([_.Ze("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"onMouseEnter",null);
_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"onMouseLeave",null);_.E([_.C({reflectToAttribute:!0}),_.G("data","collapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Au.prototype,"showNextVideoHeader",null);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"onRenderStamperFinished",null);
_.E([_.fF("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"collapseChanged",null);_.E([_.fF("hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"hiddenChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"dataChanged",null);
_.E([_.G("isTheaterMode","isFullscreen"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Au.prototype,"isFullBleedPlayer",null);_.E([_.fF("isTheaterMode","isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"onFullBleedPlayerChanged",null);_.E([_.fF("isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"onFullscreenChanged",null);
_.E([_.fF("playerState","miniplayerIsActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"updateNowPlayingOverlay",null);_.E([_.Ze("yt-playlist-lockup-now-playing-active"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Au.prototype,"onPlaylistLockupNowPlaying",null);
_.E([_.fF("data","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Au.prototype,"colorPaletteChanged",null);_.E([_.O6({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Au);
_.u9I=_.Vu()(Au,"ytd-playlist-panel-renderer",function(){if(kMM===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);kMM=A}A=kMM;return A},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.BUL={};
_.BUL.YtConditionalRendererBehavior=[_.n.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(A,H){var k=this,d,W;return _.e(function(z){switch(z.nextAddress){case 1:if(!H)return k.hidden=!0,k.showSpinner=!1,z.return();if((d=A)==null?0:(W=d.visibilityCondition)==null?0:W.mode)switch(A.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return z.jumpTo(5);default:return z.jumpTo(6)}k.showSpinner=
!1;k.hidden=!0;return z.yield(k.shouldShow_(A),4);case 4:k.hidden=!z.yieldResult;z.jumpTo(0);break;case 5:return z.yield(k.shouldShow_(A),8);case 8:k.showSpinner=z.yieldResult;k.hidden=!1;z.jumpTo(0);break;case 6:return k.showSpinner=!1,z.yield(k.shouldShow_(A),9);case 9:k.hidden=!z.yieldResult,_.EN(z)}})},
shouldShow_:function(A){return A&&A.supportedDatas&&A.supportedDatas.rendererVisibilityConditionData&&A.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(A.supportedDatas.rendererVisibilityConditionData.showIf):A&&A.visibilityCondition&&A.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(A.visibilityCondition.showIf):A&&A.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(A.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(A){switch(A){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(A){switch(A){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var A=_.Ud(this.hostElement,"yt-get-mdx-status");return A.length==1&&A[0].connected},
isLocationPermissionGranted_:function(){var A;return _.e(function(H){return H.nextAddress==1?navigator.permissions?H.yield(navigator.permissions.query({name:"geolocation"}),3):H.jumpTo(2):H.nextAddress!=2?(A=H.yieldResult,H.return(Promise.resolve(A.state==="granted"))):H.return(Promise.resolve(!1))})}}];var et1=X7r("yt-icon",{callbackProps:["onKeydown"]}),xX_=_.b("kevlar_use_wil_icons")?_.c(function(A){var H=A.icon;var k=A.active;var d=A.className;var W=A.style;var z=A.title;var u=A.size;var B=A.dataSelected;var h=A.dataDisabled;var O=A.role;var T=A.themeOverride;var m=A.animateIcon;var J=A.ariaHidden;var g=A.ariaExpanded;var v=A.ariaLabel;var y=A.tabindex;var X=A.id;var D=A.iconFilter;var K=A.gradientColor;var N=A.onKeydown;var U=function(){var Z=H==null?void 0:H(),WV=null,hA=void 0;Z&&(Z=E_A(Z),
Z=dzA(Z),Z.length&&(WV=Z[1],hA=Z[0]));return{iconName:WV,iconSetName:hA}},p=function(){return Uhi(U().iconName,k==null?void 0:k(),void 0,u==null?void 0:u(),U().iconSetName,_.wj().resolve(_.M0))},M=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:D==null?void 0:D(),iconColor:K==null?void 0:K()}};
return _.x(_.R,{cond:m,then:function(){return _.x(et1,{icon:H,active:k,className:d,style:W,title:z,dataSelected:B,dataDisabled:h,role:O,themeOverride:T,ariaHidden:J,ariaExpanded:g,ariaLabel:v,tabindex:y,id:X,iconFilter:D,gradientColor:K,onKeydown:N})},
else:function(){return _.x(_.R,{cond:p,then:function(Z){return _.x("span",{class:_.ER("ytIconWrapperHost",d),role:O,"aria-label":v,"aria-hidden":J,tabindex:function(){return isNaN(Number(y==null?void 0:y()))?void 0:Number(y==null?void 0:y())},
id:X,style:W,title:z,"on:keydown":_.lc(function(WV){return void(N==null?void 0:N(WV))})},_.x(_.zc,{data:Z,
options:M}))}})}})},"vg"):et1;var iV1=function(A){var H=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Z3A();_.nG("ytglobal.ytUtilActivityCallback_",function(){_.li(A,"yt-user-activity")});
new MG(function(){return H.JSC$17595_onMouseMove});
document.addEventListener("scroll",function(){return H.onScroll});
window.addEventListener("resize",function(){return H.onResize})},htV=function(A,H,k){H in A.eventJobIds||(k=_.iA().addLowPriorityJob(function(){_.n5();
delete A.eventJobIds[H]},k),A.eventJobIds[H]=k)};
iV1.prototype.onScroll=function(A){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):A.target===document&&htV(this,"scroll",200)};
iV1.prototype.onResize=function(){htV(this,"resize",200)};
iV1.prototype.JSC$17595_onMouseMove=function(){htV(this,"mousemove",100)};
_.Kg=function(A){A.scrollEventsToIgnore+=1;A.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){A.scrollEventsToIgnore--},500))};var OVQ=function(A){this.element=A;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
OVQ.prototype.showFeedbackDialog=function(A,H,k,d){var W=RtG();if(!W)return!1;var z=MyI();z.productId=W;H&&(z.flow="submit",z.report={description:H});k&&(RtG()==="59"?z.callback=_.ED(function(){_.yr("userFeedbackEvent",{});k()}):z.callback=_.ED(k));
z.bucket=d||_.pZ("GOOGLE_FEEDBACK_BUCKET","Other");TUI(z);A=mXe(this,"GFEEDBACK",A);try{_.QFw(z,A)}catch(u){return _.V$(u),!1}return!0};
OVQ.prototype.showHelpDialog=function(A,H,k){var d=this,W=RtG();if(!W)return!1;var z={helpCenterPath:"/youtube",productData:mXe(this,"GUIDED_HELP",k)};TUI(z);var u=MyI();u.context=A||z.productData.context||"default";u.defaultHelpArticleId=H;u.enableSendFeedback=!0;(_.UD("gapi.load")||function(B,h){return h()})("client",function(){try{var B=XLG(W,z);
if(_.b("web_always_load_chat_support")&&!d.chatSupportLoaded)try{B.JSC$10289_loadChatSupport(u),d.chatSupportLoaded=!0}catch(h){}B.startHelp(u)}catch(h){_.V$(h)}})};
var RtG=function(){var A=_.pZ("GOOGLE_FEEDBACK_PRODUCT_ID");A||_.V$(Error("ii"));return A},TUI=function(A){A&&(A.locale=_.b("kevlar_help_use_locale")?_.pZ("INNERTUBE_CONTEXT_HL","en"):_.pZ("HTML_LANG","en"))},mXe=function(A,H,k){var d=A.productData;
delete d.origin;d.device=_.bI();var W;a:{if(W=document.createElement("canvas")){var z=W.getContext("experimental-webgl",{stencil:!0});if(z){var u=z.getExtension("WEBGL_debug_renderer_info");if(u){W=z.getParameter(u.UNMASKED_RENDERER_WEBGL);break a}}if(z=W.getContext("webgl")){W=z.getParameter(z.RENDERER);break a}}W=null}d.gpu=W;d.isSDC=!!_.pZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(W=_.pZ("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.iK.extend(d,W);_.ty8(H,d);_.NJA(d);(A=_.li(A.element,"yt-get-autonav-pause-debug-state"))&&
A.length&&(d.autonav_pause_state=A[0]);A=_.dW();d.browser_resolution=A.width+"\u00d7"+A.height+"@"+(window.devicePixelRatio||1)+"x";k&&_.iK.extend(d,k);return d};
OVQ.prototype.resetProductData=function(){this.productData={}};var J2B=function(A){this.feedbackManager=new OVQ(A)};
J2B.prototype.showFeedbackDialog=function(A,H,k,d){return this.feedbackManager.showFeedbackDialog(A,H,k,d)};
J2B.prototype.showHelpDialog=function(A,H,k){return this.feedbackManager.showHelpDialog(A,H,k)};var g7Q=function(){this.baseUrl="";this.aTag=document.createElement("a")},goA=function(A,H,k){k=k===void 0?{}:k;
k.pbj||(k.pbj=1);k=_.XGN(H,k);A.baseUrl&&k&&!_.UG(k)[1]&&!_.te(k)&&(H=A.baseUrl,uI(H,"/")&&(H=H.slice(0,-1)),_.rI(k,"/")&&(k=k.slice(1)),k=H+"/"+k);A2(A.aTag,_.nx(k||""));return A.aTag.href};
g7Q.prototype.fetchData=function(A){return _.pEb(A)};
g7Q.prototype.postData=function(A,H){var k={method:"POST"};if(H){for(var d=_.r(Object.keys(H)),W=d.next();!W.done;W=d.next()){W=W.value;var z=H[W];_.nl(z)&&(H[W]=JSON.stringify(z))}k.postParams=H}return _.pEb(A,k)};
_.bRw=function(A,H,k,d,W){A=goA(A,H,k);if(!A)throw d=Error("ji"),Object.assign(d,{params:H}),d;return _.pEb(A,W,d)};
g7Q.prototype.requestDataForServiceEndpoint=function(A,H){if(_.L(A,_.lUI))return this.fetchData("/getAccountSwitcherEndpoint");H=H||{};var k=_.L(A,s6Z);k?H.se=k.base64EncodedServiceEndpoint:H.sej=JSON.stringify(A);(k=_.hx())&&_.b("enable_service_ajax_csn")&&(H.csn=k);H.theme=_.bw();_.L(A,E$m)&&_.pZ("DELEGATION_CONTEXT")&&(H.delegation_context=JSON.stringify(_.pZ("DELEGATION_CONTEXT")));k=null;for(var d in A)if(uI(d,"Endpoint")||uI(d,"Command")){k=d;break}if(!k){var W=Error("ki");Object.assign(W,{params:A});
_.P2l(W,"WARNING");return new _.Wq(function(u,B){B(W)})}d={name:k};
var z;(k=(z=_.L(A,_.fH))==null?void 0:z.signal)&&(d.signal=k);(z=_.MP(window.location.href))&&z.internalcountrycode&&(d.internalcountrycode=z.internalcountrycode);z="/service_ajax";_.b("debug_forward_web_query_parameters")&&(z=_.Mcb(z,window.location.search));z=_.$d(z,d);A.clickTrackingParams&&_.DZ(z,{itct:A.clickTrackingParams});return this.postData(z,H)};_.bVi=new _.SE("GFEEDBACK_TOKEN");var LJM;var v7I;var y2e;var j4R;var H7=function(){var A=_.a.apply(this,arguments)||this;A.compact=!1;A.dismissButtonDisabled=!1;A.shouldRenderReasonAsFormattedString=!_.b("web_player_error_message_reason_as_formatted_string_killswitch");return A};
_.I(H7,_.a);H7.prototype.computeHasIcon_=function(A){return!!A};
H7.prototype.isSignInIcon_=function(A){return A=="yt-icons:prompted_sign_in"};
H7.prototype.onDismissButtonClick=function(){var A=this,H=this.data.disableOnClick,k,d=(k=this.data.dismissButton)==null?void 0:k.buttonRenderer;H&&!this.dismissButtonDisabled&&d&&setTimeout(function(){A.dismissButtonDisabled=!0},0)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.BUL.YtConditionalRendererBehavior),_.l("design:type",Object)],H7.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],H7.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.l("design:type",Object)],H7.prototype,"icon_",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.l("design:type",Boolean)],H7.prototype,"hasIcon_",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.l("design:type",Boolean)],H7.prototype,"signInIcon_",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],H7.prototype,"compact",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],H7.prototype,"dismissButtonDisabled",void 0);
_.E([_.C({type:Boolean}),_.l("design:type",Object)],H7.prototype,"shouldRenderReasonAsFormattedString",void 0);_.E([_.h6({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],H7);
_.Q(H7,"yt-player-error-message-renderer",function(){if(j4R===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;y2e===void 0&&(y2e=document.createElement("template"));var d=y2e;k.call(H,d.content.cloneNode(!0),A.content.firstChild);j4R=A}A=j4R;return A},{mode:2});var IK1;var YNR;var s2=function(){return _.a.apply(this,arguments)||this};
_.I(s2,_.a);s2.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
s2.prototype.computeIcon_=function(A){return A?"yt-icons:"+A.iconType.toLowerCase():"error_outline"};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],s2.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.l("design:type",Object)],s2.prototype,"icon_",void 0);_.E([_.h6({is:"yt-player-kav-renderer",disableElementRegistration:!0})],s2);
_.Q(s2,"yt-player-kav-renderer",function(){if(YNR===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;IK1===void 0&&(IK1=document.createElement("template"));var d=IK1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);YNR=A}A=YNR;return A},{mode:2});var fFv=_.XO(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.Sw(_.c(function(A){var H=_.GP("div"),k=_.r(_.RV(0,void 0,"jxh75d")),d=k.next().value,W=k.next().value;k=_.r(_.RV(null,void 0,"F5Zm8"));var z=k.next().value,u=k.next().value;_.CZ(function(){wEm(H.value,W,u);H.value.scrollIntoView()});
k=oRl.bind(null,A.data,d);_.ll("resize",function(){var B=z();if(d()===1&&B!==null){var h;(h=window.grecaptcha)==null||h.reset(B)}});
return _.x("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.x("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.x("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var B,h;return(B=A.data().accessibility)==null?void 0:(h=B.accessibilityData)==null?void 0:h.label}),_.x(_.j$,{text:k,
className:_.ER("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.x("div",{el:H,class:"ytwPlayerCaptchaViewModelGridItem"})))},"wg"),"yt-player-captcha-view-model",{props:{data:_.Fc}});var $qN=!1;_.P1Q=_.c(function(A){var H=A.data;return _.x("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.x(_.R,{cond:function(){return H().icon},
then:function(k){return _.x("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.x(_.GA,{data:k,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.x(_.R,{cond:function(){return H().title},
then:function(k){return _.x("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.x(_.j$,{text:k}))}}),_.x(_.R,{cond:function(){return H().description},
then:function(k){return _.x("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.x(_.j$,{text:k}))}}),_.x(_.HG,{data:function(){return H().primaryButton}},{buttonViewModel:function(k){return _.x(_.U7,{data:k.data,
className:"interstitialViewModelFlexItem"})}}),_.x(_.HG,{data:function(){return H().secondaryButton}},{buttonViewModel:function(k){return _.x(_.U7,{data:k.data,
className:"interstitialViewModelFlexItem"})}}))},"xg");
_.P1Q.idomCompat=!0;var GML=_.c(function(A){var H=A.data;_.Pl();return _.x("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.x("div",{class:"playerInterstitialRendererScrim"},_.x(_.HG,{data:function(){return H().content}},{interstitialViewModel:_.P1Q})))},"yg");
GML.idomCompat=!0;_.Sw(GML,"yt-player-interstitial-renderer",{props:{data:_.Ih}});var kC=function(){var A=_.a.apply(this,arguments)||this;A.noBackground=!1;A.compact=!1;A.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return A};
_.I(kC,_.a);kC.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"}}}};
kC.prototype.onUpdatePlayerErrorMessageCommand_=function(A){if(_.L(A,xc0)){var H;if(A=(H=_.L(A,xc0))==null?void 0:H.newPlayerErrorMessageRenderer)this.data=A}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],kC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kC.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],kC.prototype,"status",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],kC.prototype,"noBackground",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],kC.prototype,"compact",void 0);_.E([_.h6({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],kC);
var FJB=_.Vu()(kC,"yt-playability-error-supported-renderers",function(){if(v7I===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;LJM===void 0&&(LJM=document.createElement("template"));var d=LJM;k.call(H,d.content.cloneNode(!0),A.content.firstChild);v7I=A}A=v7I;return A},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var XXG=X7r("ytd-button-renderer");var AHr=void 0,s2C=void 0;var WcI=new RXw;var tv=new _.SE("ENTITY_STATE_TOKEN"),dR=new _.SE("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var DX1=function(A){this.store=A;this.sOR=new _.Jf0},MNQ=function(A,H,k){var d,W;
if(!(W=((d=H.playabilityStatus)==null?void 0:d.status)!=="OK")){A=A.store;var z;W=H.offlineState&&((z=H.videoDetails)==null?0:z.videoId)?_.b("enable_pl_r_c_cd")?Qgv(A.getState().entities,H.videoDetails.videoId):!!igl(A.getState().entities,H.videoDetails.videoId):!1}if(W)return!0;W=uSl(H);if(W===1){if(_.b("ab_v_vid_sig")){var u,B=(u=H.videoDetails)==null?void 0:u.videoId;if(!B||!k||B!==k){var h;H=new _.Ti("282054944_vid",{zfs:k,qME:(h=H.videoDetails)==null?void 0:h.videoId});_.I3(H)}}return!0}YEW=
0;var O,T;h=(B=H.auxiliaryUi)==null?void 0:(O=B.messageRenderers)==null?void 0:(T=O.bkaEnforcementMessageViewModel)==null?void 0:T.displayType;if(W!==3&&(h==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||h==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;h={reason:_.K8(_.$r("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.b("ks_something_wrong_learn_more")?OdQ("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.K8(_.$r("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:_.K8("282054944")};SNQ(H,{playerErrorMessageRenderer:h});return!1},n8Z=function(A,H){if(toV(H)){_.Mm(1,!0);
var k=(k=toV(H))&&_.H9b()?k:void 0;k?(SNQ(H,{enforcementMessageViewModel:k}),A.sOR.increment("IN_PLAYER"),_.Mm(5)):(A.sOR.increment("SKIP_DISPLAY"),_.Mm(2))}},SNQ=function(A,H){A.playabilityStatus=Object.assign({},A.playabilityStatus,{status:"ERROR",
errorScreen:H});A.videoDetails=void 0};
DX1.prototype.handleResponse=function(A,H){if(A.playabilityStatus){var k,d,W,z=(H==null?void 0:(k=H.innerTubeRequest)==null?void 0:k.videoId)||(H==null?void 0:(d=H.innerTubeRequest)==null?void 0:(W=d.playerRequest)==null?void 0:W.videoId);MNQ(this,A,z)&&n8Z(this,A)}};
DX1[ox]=[tv];var tNi=new _.SE("ADBLOCK_DETECTION_SERVICE_TOKEN");var SY=function(A){this.gIr=A};
SY.prototype.bindInnertubeChallengeFetcher=function(A){this.gIr.bicf(A)};
SY.prototype.registerChallengeFetchedCallback=function(A){this.gIr.bcr(A)};
SY.prototype.getLatestChallengeResponse=function(){return this.gIr.blc()};var C1R;C1R=_.XO(["https://static.doubleclick.net/instream/ad_status.js"]);_.KJQ=_.Ia(C1R);var Q4L;_.W7=function(A,H,k){var d=this;this.network=A;this.options=H;this.networkStatusManager=k;this.uY=null;if(H.useBotguardEverywhere){var W=new _.lk;this.uY=W.promise;_.k8.ytAtRC&&_.zV(_.IE,function(){var z,u;return _.e(function(B){if(B.nextAddress==1){if(!_.k8.ytAtRC)return B.return();z=aKI(null);return B.yield(d.ePa(z),2)}u=B.yieldResult;_.k8.ytAtRC&&_.k8.ytAtRC(JSON.stringify(u));_.EN(B)})});
O9W().then(function(z){var u,B,h,O;return _.e(function(T){if(T.nextAddress==1)return z.bindInnertubeChallengeFetcher(function(m){return d.ePa(aKI(m))}),T.yield(vlI(),2);
u=T.yieldResult;B=z.getLatestChallengeResponse();h=B.challenge;if(!h)throw Error("mi");O={challenge:h,z3:X1(h),vm:u,bgChallenge:new GF};W.resolve(O);z.registerChallengeFetchedCallback(function(m){m=m.challenge;if(!m)throw Error("ni");m={challenge:m,z3:X1(m),vm:u,bgChallenge:new GF};d.uY=Promise.resolve(m)});
_.EN(T)})})}else H.preload&&c2I(this,new Promise(function(z){_.ma(_.IE,function(){z(pXL(d))},0)}))};
Q4L=function(A){var H={preload:!0,useBotguardEverywhere:!0},k=!1;if(typeof H==="boolean")var d={preload:H};else typeof H==="undefined"?d={preload:!0}:(d=H,k=!!H.b2c);H=k?void 0:new _.Qv;_.W7.instance=new _.W7(A,d,H);return _.W7.instance};
_.W7.prototype.qGA=function(){var A=this;return _.e(function(H){return H.nextAddress==1?H.yield(Promise.race([A.uY,null]),2):H.return(!!H.yieldResult)})};
_.W7.prototype.vMY=function(A,H,k){var d=this,W,z,u;return _.e(function(B){d.uY===null&&c2I(d,pXL(d));W=!1;z={};u=function(){var h,O,T,m,J;return _.e(function(g){switch(g.nextAddress){case 1:if(!d.options.x06||!d.options.useBotguardEverywhere){g.jumpTo(2);break}return g.yield(h$r(),3);case 3:return h=g.yieldResult,g.yield((O=h)==null?void 0:O.checkForRefresh(),2);case 2:return g.yield(d.uY,5);case 5:T=g.yieldResult;z.challenge=T.challenge;if(!T.vm){"c1a"in T.z3&&(z.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
g.jumpTo(6);break}m=Object.assign({},{c:T.challenge,e:A},H);_.S_(g,7);W=!0;return g.yield(T.vm.snapshot({sq:m}),9);case 9:(J=g.yieldResult)?z.webResponse=J:z.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.QN(g,6);break;case 7:_.VA(g),z.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(A==="ENGAGEMENT_TYPE_PLAYBACK"){var v=T.z3,y={};if(v.c6a){var X=Number(_.pZ("DCLKSTAT",0));y.reportingStatus=String(Number(v.c)^(isNaN(X)?0:X))}v.c6b&&(y.broadSpectrumDetectionResult=String(Number(v.c)^Number(_.pZ("CATSTAT",
0))));z.adblockReporting=y}return g.return(z)}})};
return B.return(Promise.race([u(),V_1(k,function(){var h=Object.assign({},z);W&&(h.error="ATTESTATION_ERROR_VM_TIMEOUT");return h})]))})};
var aKI=function(A){var H={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};A&&(H.interpreterHash=A);return H},pXL=function(A,H){H=H===void 0?0:H;
var k,d,W,z,u,B,h,O,T,m,J,g;return _.e(function(v){switch(v.nextAddress){case 1:k=aKI(m4j().kV1);if(_.b("att_fet_ks"))return _.S_(v,7),v.yield(A.ePa(k),9);_.S_(v,4);return v.yield(E7_(A,k),6);case 6:u=v.yieldResult;W=u.uOE;z=u.vxe;d=u;_.QN(v,3);break;case 4:return _.VA(v),_.Pq(Error("oi`"+H)),UXR(A,864E5),v.return({challenge:"",z3:{},vm:void 0,bgChallenge:void 0});case 9:d=v.yieldResult;if(!d)throw Error("pi");if(!d.challenge)throw Error("qi");W=d.challenge;z=X1(W);if("c1a"in z&&(!d.bgChallenge||
!d.bgChallenge.program))throw Error("ri");_.QN(v,3);break;case 7:B=_.VA(v);_.Pq(B);H++;if(H>=5)return _.Pq(Error("oi`"+H)),UXR(A,864E5),v.return({challenge:"",z3:{},vm:void 0,bgChallenge:void 0});h=1E3*Math.pow(2,H-1)+Math.random()*1E3;return v.return(new Promise(function(y){_.ma(_.IE,function(){y(pXL(A,H))},h)}));
case 3:O=i9I(z);UXR(A,O*1E3);T=void 0;if(!("c1a"in z&&d.bgChallenge)){v.jumpTo(10);break}m=xgV(d.bgChallenge);_.S_(v,11);return v.yield(g6A(m4j(),m),13);case 13:_.QN(v,12);break;case 11:return J=_.VA(v),_.Pq(J),v.return({challenge:W,z3:z,vm:T,bgChallenge:m});case 12:return _.S_(v,14),T=new _.yh({challenge:m,fjM:{cu:"aGIf"}}),v.yield(T.sb6,16);case 16:_.QN(v,10);break;case 14:g=_.VA(v),_.Pq(g),T=void 0;case 10:return v.return({challenge:W,z3:z,vm:T,bgChallenge:m})}})},lKL=function(A,H){var k;
return _.e(function(d){if(d.nextAddress==1)return Dh(2),_.S_(d,2),d.yield(A.network.ePa(H),4);if(d.nextAddress!=2)return(k=d.yieldResult)?k.challenge&&!k.bgChallenge?Dh(1):Dh(4):Dh(3),d.return(k);_.VA(d);Dh(3);return d.return(void 0)})};
_.W7.prototype.ePa=function(A){var H=this,k;return _.e(function(d){k=H.networkStatusManager;if(!k||k.isNetworkAvailable())return d.return(lKL(H,A));_.TH("att_pna",void 0,"attestation_challenge_fetch");return d.return(new Promise(function(W){k.listenOnce("publicytnetworkstatus-online",function(){lKL(H,A).then(W)})}))})};
var t_G=function(A){if(!A)throw Error("pi");if(!A.challenge)throw Error("qi");var H=A.challenge,k=X1(H);if("c1a"in k&&(!A.bgChallenge||!A.bgChallenge.program))throw Error("ri");return Object.assign({},A,{uOE:H,vxe:k})},E7_=function(A,H){var k,d,W,z,u;
return _.e(function(B){switch(B.nextAddress){case 1:k=void 0,d=0,W={};case 2:if(!(d<5)){B.jumpTo(4);break}if(!(d>0)){B.jumpTo(5);break}W.gXA=1E3*Math.pow(2,d-1)+Math.random()*1E3;return B.yield(new Promise(function(h){return function(O){_.ma(_.IE,function(){O(void 0)},h.gXA)}}(W)),5);
case 5:return _.S_(B,7),B.yield(A.ePa(H),9);case 9:return z=B.yieldResult,B.return(t_G(z));case 7:k=u=_.VA(B),u instanceof Error&&_.Pq(u);case 8:d++;W={gXA:void 0};B.jumpTo(2);break;case 4:throw k;}})},c2I=function(A,H){A.uY=H},NUI=function(A){var H,k,d;
return _.e(function(W){if(W.nextAddress==1)return W.yield(Promise.race([A.uY,null]),2);H=W.yieldResult;var z=pXL(A);A.uY=z;(k=H)==null||(d=k.vm)==null||d.dispose();_.EN(W)})},UXR=function(A,H){var k=Date.now()+H,d=function(){var W;
return _.e(function(z){W=k-Date.now();return W<1E3?z.yield(NUI(A),0):(_.ma(_.IE,d,Math.min(W,6E4)),z.jumpTo(0))})};
d()},V_1=function(A,H){return new Promise(function(k){_.ma(_.IE,function(){k(H())},A)})};var M_B=function(){};
M_B.prototype.processContext=function(A){var H=_.W7.instance;if(!H)return _.FP();var k=b98(A);return k?new Gr(H.vMY(k,mgX(A),500).then(function(d){var W;(A==null?0:(W=A.innerTubeRequest)==null?0:W.context)||(A.innerTubeRequest.context={});W=A.innerTubeRequest.context;W.request||(W.request={});W.request.attestationResponseData=d})):_.FP()};var n7B=function(A){this.innertubeTransportService=A};
n7B.prototype.ePa=function(A){_.TH("att_fsr",void 0,"attestation_challenge_fetch");return _.yD(this.innertubeTransportService,A,_.X3(_.LdJ)).then(function(H){_.TH("att_frr",void 0,"attestation_challenge_fetch");return H})};_.ZVV=function(A){this.innertubeTransportService=A};var fKi=new _.SE("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var wXM=function(){},$X3=function(A,H,k,d,W){var z=_.pZ("YPC_MB_URL");
_.qgC(z).then(function(){o7G(z,A,H,k,d,W)})},o7G=function(A,H,k,d,W,z){try{var u=_.QG.payments.business.integration,B=_.QG.payments.business.integration.Style.create().withMaterialDesignStyle(),h=u.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.b("enable_window_constrained_buy_flow_dialog")&&(h=h.usingPopupStyle("windowConstrained"));z&&(h=h.usingCloseCallback(z));var O=k?k:_.pZ("YPC_GB_LANGUAGE"),T=_.pZ("SESSION_INDEX");u.bootstrap.fromPaymentsUrl(A);u.bootstrap.asMashupMode(h).usingGaiaIndex(T).usingLocale(O).usingStyle(B).usingDefaultActivityStatusChangeHandler().inStandaloneContext(u.standaloneContextAuthId.forGaia()).purchaseManager(H,function(m){d&&d(m)}).load(void 0,W)}catch(m){throw W&&W(m),_.I3(m),m;
}};var AeL=new _.SE("PURCHASE_MANAGER_TOKEN");var HYQ=function(){var A=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return A.videos},
getContinuationsPresent:function(){return A.continuationsPresent},
setVideos:function(H){A.videos=H},
getRecommendedVideos:function(){return A.recommendedVideos},
setRecommendedVideos:function(H){A.recommendedVideos=H}}};
HYQ.prototype.addVideos=function(A){A&&(this.videos=A.filter(function(H){return!!_.vKf(H)}).map(function(H){var k=_.vKf(H);
a:{var d;if(H.playlistVideoRenderer&&((d=H.playlistVideoRenderer)==null?0:d.voteSortTiebreaker))var W=H.playlistVideoRenderer.voteSortTiebreaker;else{if(_.L(H,Kw)){var z;if(d=(W=_.L(H,Kw))==null?void 0:(z=W.playlistItemData)==null?void 0:z.voteSortTiebreaker){W=d;break a}}W=""}}return{itemId:k,videoId:_.I0N(H),voteCount:_.Ysm(H),voteSortTiebreaker:W}}),this.continuationsPresent=!!_.L(A[A.length-1],_.pw))};
var saV=function(A,H){return A.videos.findIndex(function(k){return k.itemId===H})},kOi=function(A,H){return A.recommendedVideos.findIndex(function(k){return k.itemId===H})},dxi=function(A){A={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:A}}}}};_.wj().resolve(_.J7).resolveCommand(A)};var W__=function(){HYQ.apply(this,arguments)};
_.I(W__,HYQ);
var yL1=function(A,H,k,d){if(!A.parentElem)throw Error("wi");var W=saV(A,H);W===-1&&(W=kOi(A,H),W=W!==-1?W+A.videos.length:-1);if(W===-1)throw Error("xi");var z=W>=A.videos.length?A.recommendedVideos[W-A.videos.length]:A.videos[W];z.voteCount=k;z.voteSortTiebreaker=Date.now().toString();W>=A.videos.length?A.recommendedVideos.splice(W-A.videos.length,1):A.videos.splice(W,1);var u=A.videos;for(var B=0,h=u.length-1;B<=h;){var O=Math.floor((B+h)/2);if(u[O].voteCount<z.voteCount)h=O-1;else if(u[O].voteCount>z.voteCount)B=
O+1;else{a:{var T=z.voteSortTiebreaker;var m=u[O].voteSortTiebreaker;if(T.length!==m.length)T=T.length>m.length;else{for(var J=0;J<T.length;J++){var g=T.charCodeAt(J),v=m.charCodeAt(J);if(g>v){T=!0;break a}if(g<v)break}T=!1}}T?h=O-1:B=O+1}}u=B;if(u===-1)throw Error("yi");A.videos.splice(u,0,z);W!==u&&z4B(A,W,u,H,k,d)},z4B=function(A,H,k,d,W,z){var u,B=(u=A.parentElem)==null?void 0:u.children,h=Math.min(H,k),O=Math.max(H,k);
if(B)for(u=h;u<=O;u++)B[u].style.viewTransitionName="item-"+String(u);document.startViewTransition(function(){if(A.parentElem){var T=A.parentElem.children;if(!(!T||H<0||H>=T.length||k<0||k>=T.length)){var m=T[H];if(m){m.remove();A.showRefreshPill=k>=A.videos.length-1&&A.continuationsPresent;if(!A.showRefreshPill){T=T[k]||null;var J;(J=A.parentElem)==null||J.insertBefore(m,T)}_.Ed(A.parentElem,"yt-update-video-data-voting-animation",{toIdx:k,itemId:d,newVoteCount:W,voteStatus:z,hideItem:A.showRefreshPill})}}}}).finished.then(function(){if(B)for(var T=
h;T<=O;T++)B[T].style.viewTransitionName="";
if(A.showRefreshPill)dxi(_.$r("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var m;if(m=T=(m=A.parentElem)==null?void 0:m.children[k])m=T.getBoundingClientRect(),T=m.bottom,m=!(m.top>=0&&T<=A.clientHeight);m&&(m=_.AZ(H>k?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(H-k)),dxi(m))}})};var ut1=function(A,H){var k=this;A?this.innertubeTransportServicePromise=Promise.resolve(A):H&&(this.innertubeTransportServicePromise=H(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new U0(3E3,function(d){return qGI(k,d)},0);
this.validateMiniAppVideoIdRateLimiter=new U0(3E3,function(d){return reB(k,d)},1)},Q71=function(A,H){A.JSC$17712_miniAppId=H;
A.reportMiniAppValueRateLimiter=new U0(3E3,function(k){return qGI(A,k)},0);
A.validateMiniAppVideoIdRateLimiter=new U0(3E3,function(k){return reB(A,k)},1)},EpM=function(A,H){var k;
return _.e(function(d){if(d.nextAddress==1)return d.yield(A.reportMiniAppValueRateLimiter.call(H),2);k=d.yieldResult;return d.return([k,H])})},qGI=function(A,H){var k,d,W,z,u,B,h;
return _.e(function(O){switch(O.nextAddress){case 1:return O.yield(A.innertubeTransportServicePromise,2);case 2:return k=O.yieldResult,d=_.X3(PTJ),W=Date.now(),z={externalPostId:A.JSC$17712_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(W/1E3),nanos:Math.round(W%1E3*1E6)},intValue:""+H}},_.S_(O,3),O.yield(_.yD(k,z,d),5);case 5:u=O.yieldResult;_.QN(O,4);break;case 3:throw B=_.VA(O),B;case 4:if(u){if("error"in u&&u.error)throw u.error;if(u.errorMetadata)throw Error("zi`"+
u.errorMetadata.status);if(h=u.userStatResult)return O.return(h);throw Error("Ai");}throw Error("Bi");}})},ly1=function(A){var H,k,d,W,z;
_.e(function(u){switch(u.nextAddress){case 1:return u.yield(A.innertubeTransportServicePromise,2);case 2:return H=u.yieldResult,k=_.X3(PTJ),d={externalPostId:A.JSC$17712_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.S_(u,3),u.yield(_.yD(H,d,k),5);case 5:W=u.yieldResult;_.QN(u,4);break;case 3:throw z=_.VA(u),z;case 4:if(W==null)throw Error("Bi");if("error"in W&&W.error)throw W.error;if(W.errorMetadata)throw Error("zi`"+W.errorMetadata.status);_.EN(u)}})};
ut1.prototype.flush=function(){var A=this;return _.e(function(H){return H.nextAddress==1?H.yield(A.reportMiniAppValueRateLimiter.flush(),2):H.yield(A.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var URR=function(A,H){return _.e(function(k){return k.nextAddress==1?k.yield(A.validateMiniAppVideoIdRateLimiter.call(H),2):k.return(k.yieldResult)})},reB=function(A,H){var k,d,W,z,u,B;
return _.e(function(h){switch(h.nextAddress){case 1:return h.yield(A.innertubeTransportServicePromise,2);case 2:return k=h.yieldResult,d=_.X3(gF1),W={videoId:H},_.S_(h,3),h.yield(_.yD(k,W,d),5);case 5:z=h.yieldResult;_.QN(h,4);break;case 3:throw u=_.VA(h),u;case 4:if(z){if("error"in z&&z.error)throw z.error;if(z.errorMetadata)throw Error("zi`"+z.errorMetadata.status);if(B=z.playabilityStatus)return h.return(B.status);throw Error("Ci");}throw Error("Bi");}})};
ut1[ox]=[_.fZ(_.kI),_.fZ(sZJ)];var B5B=function(){this.clientData=new Map};
B5B.prototype.getData=function(A){return this.clientData.get(A)};var e4B=function(A){this.store=A};
e4B.prototype.handleResponse=function(A){(A=_.L(A.frameworkUpdates,Pn))&&_.oN(A,this.store)};
e4B[ox]=[_.O7];var xx_=new _.SE("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var iYR,h4_,OY_;_.z6=new _.SE("FLOW_STATE_MANAGER_TOKEN");iYR=function(){this.flowStates=new Map};
h4_=function(A,H){A=_.r(A.flowStates.values());for(var k=A.next();!k.done;k=A.next())if(k=k.value,k.flowRenderer.targetId===H)return k};
OY_=function(A,H){var k,d=((k=A.flowRenderer.steps)!=null?k:[]).filter(function(W){return!H.includes(_.L(W,_.ql).stepId)});
A.flowRenderer.steps=d};var R4i=function(A){this.JSC$17736_flowStateManager=A};
_.I(R4i,Yj);R4i.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B;return _.e(function(h){k=_.L(A,YMJ);W=(d=k)==null?void 0:d.stepIds;u=(z=k)==null?void 0:z.targetId;if(!W||!u)return h.return();B=h4_(H.JSC$17736_flowStateManager,u);if(!B)return h.return();OY_(B,W);_.EN(h)})};
var qf=function(){R4i.apply(this,arguments)};
_.I(qf,R4i);qf[ox]=[_.z6];var T5_=function(A,H){this.JSC$17742_reduxStore=A;this.JSC$17742_flowStateManager=H};
_.I(T5_,Yj);
T5_.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O,T,m,J,g,v;return _.e(function(y){k=_.L(A,_.Prk);d=k.stepId;W=k.targetId;z=h4_(H.JSC$17742_flowStateManager,W);B=(u=z)==null?void 0:u.flowRenderer;h=B.flowStateEntityKey;O=_.aI(H.JSC$17742_reduxStore.getState(),h);if(!O)return y.return();T=O.currentStepId;g=(J=(m=O)==null?void 0:m.stepIdStack)!=null?J:[];v=T===g[g.length-1]?d:T;H.JSC$17742_reduxStore.dispatch(_.O5("flowStateEntity",h,{currentStepId:d,stepIdStack:[v]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.EN(y)})};
var rR=function(){T5_.apply(this,arguments)};
_.I(rR,T5_);rR[ox]=[_.O7,_.z6];var mx_=function(A,H,k){this.JSC$17749_reduxStore=A;this.JSC$17749_flowStateManager=H;this.JSC$17749_commandHandler=k};
_.I(mx_,Yj);
mx_.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J,g,v,y;return _.e(function(X){d=_.L(A,_.GlN);W=d.targetId;z=h4_(k.JSC$17749_flowStateManager,W);B=(u=z)==null?void 0:u.flowRenderer;h=B.flowStateEntityKey;O=_.aI(k.JSC$17749_reduxStore.getState(),h);J=[].concat(_.fV((m=(T=O)==null?void 0:T.stepIdStack)!=null?m:[]));g=J.pop();((v=O)==null?void 0:v.currentStepId)===g&&(g=J[J.length-1]);if(!g)return(y=d.onFirstStepCommand)&&k.JSC$17749_commandHandler.resolveCommand(y,H),X.return();
k.JSC$17749_reduxStore.dispatch(_.O5("flowStateEntity",h,{currentStepId:g,stepIdStack:J}));_.EN(X)})};
var uW=function(){mx_.apply(this,arguments)};
_.I(uW,mx_);uW[ox]=[_.O7,_.z6,_.J7];var Je3=function(A,H){this.innertubeTransportService=A;this.JSC$17754_commandHandler=H};
_.I(Je3,Yj);Je3.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B;return _.e(function(h){if(h.nextAddress==1){d=_.L(A,FmG);if(!d)return h.return();_.S_(h,2);return h.yield(_.I9(k.innertubeTransportService,A),4)}if(h.nextAddress!=2){W=h.yieldResult;if(!W)return h.return();(z=W.updateFlowCommand)&&k.JSC$17754_commandHandler.resolveCommand(z,H);return _.QN(h,0)}_.VA(h);(B=(u=d)==null?void 0:u.onFailureCommand)&&k.JSC$17754_commandHandler.resolveCommand(B,H);_.EN(h)})};
var B7=function(){Je3.apply(this,arguments)};
_.I(B7,Je3);B7[ox]=[_.kI,_.J7];var gdL=function(A,H){this.JSC$17760_flowStateManager=A;this.JSC$17760_commandHandler=H};
_.I(gdL,Yj);
gdL.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u;return _.e(function(B){d=_.L(A,_.D_w);W=d.targetId;z=h4_(k.JSC$17760_flowStateManager,W);if(!z)return B.return(Promise.resolve());var h=z,O=(u=d.steps)!=null?u:[],T=[],m=new Map;O=_.r(O);for(var J=O.next();!J.done;J=O.next())J=J.value,m.set(_.L(J,_.ql).stepId,J);var g;O=(g=h.flowRenderer.steps)!=null?g:[];g=_.r(O);for(O=g.next();!O.done;O=g.next())O=O.value,J=_.L(O,_.ql).stepId,m.has(J)?(T.push(m.get(J)),m.delete(J)):T.push(O);T.push.apply(T,
_.fV(m.values()));h.flowRenderer.steps=T;d.flowContinuationCommand&&(z.flowRenderer.flowContinuationCommand=d.flowContinuationCommand);d.entityUpdateCommand&&k.JSC$17760_commandHandler.resolveCommand(d.entityUpdateCommand,H);return B.return(Promise.resolve())})};
var eT=function(){gdL.apply(this,arguments)};
_.I(eT,gdL);eT[ox]=[_.z6,_.J7];var bYL={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]],android_messenger:[[0,1,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,
1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var L_i=new _.SE("ICON_SET_TOKEN"),vde=new _.SE("ICON_URL_PROVIDER_TOKEN"),yeV=new _.SE("PREFETCH_ICONS_TOKEN"),ja3=new _.SE("ICON_MAP_FN_TOKEN");var xC={},I8_=(xC.ACCESS_TIME="clock",xC.ACCOUNT_BOX=_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",xC.ACCOUNT_BOX_CAIRO="person_account_cairo",xC.ACCOUNT_CIRCLE="person_circle",xC.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",xC.ACCOUNT_LINKED="account_link_success",xC.ACCOUNT_UNLINKED="account_link",xC.ADD_FRIEND="people",xC.ADD_MODERATOR="shield_add",xC.ADD_TO_LIBRARY="bookmark",xC.ADD_TO_PLAYLIST="add",xC.ADD_TO_QUEUE_TAIL="list_queue",xC.ADD_TO_REMOTE_QUEUE="list_music",
xC.ADD_TO_WATCH_LATER="clock",xC.ADD_VIDEO_LINK="film_strip_add",xC.ALERT_WARN_RED="alert_triangle",xC.ARROW_BACK="arrow_left",xC.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",xC.ARROW_DROP_DOWN="chevron_down",xC.ARROW_DROP_UP="chevron_up",xC.ARROW_FORWARD="arrow_right",xC.ARTIST="person_music",xC.AUDIOTRACK="audio",xC.AUTO_AWESOME="sparkle",xC.AVATAR_ANONYMOUS="person_circle",xC.AVATAR_LOGGED_OUT="person_circle",xC.BACK="arrow_left",xC.BAR_CHART="bar_graph",xC.BLOCK="slash_circle_left",
xC.BLOCK_USER="slash_circle_left",xC.BOOKMARK_BORDER="bookmark",xC.BREAKING_NEWS_ALT_1="article_alert",xC.BROADCAST_CAIRO="podcast_cairo",xC.BUG_REPORT="bug",xC.CAMERA_ALT="camera",xC.CAMPAIGN="megaphone",xC.CANCEL="x_circle",xC.CAPTIONS="closed_caption",xC.CAST_OUTLINE="chromecast",xC.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",xC.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",xC.CHAT="message_bubble_left",xC.CHAT_BUBBLE="message_bubble_empty",xC.CHAT_SPARK="spark_message_bubble_left",xC.CHECK_BOX_OUTLINE_BLANK=
"box_empty",xC.CHECK_CIRCLE_OUTLINE="check_circle",xC.CHECK_CIRCLE_THICK="check_circle",xC.CLARIFY="article_clarify",xC.CLOSED_CAPTION_SELECTED="closed_caption",xC.CLOSE="x_mark",xC.CLOUD_UPLOAD="cloud_arrow_up",xC.COLLAPSE="chevron_up",xC.COLLAPSE_CAIRO="chevron_up_cairo",xC.COLLECTION="layers",xC.COLOR_LENS="palette",xC.COMMENT="message_bubble_right",xC.CONSENT_SHIELD="person_shield",xC.CONTENT_CUT="scissors",xC.CONTENT_CUT_CAIRO="scissors_cairo",xC.COURSE=_.b("web_enable_course_icon_update")?"creator_academy":
"lightbulb",xC.COURSE_CAIRO=_.b("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",xC.CREATION_LIVE="radar_live",xC.CREATION_POST="box_pencil",xC.CREATION_UPLOAD="my_videos",xC.CREATION_UPLOAD_RED="upload",xC.CREATOR_METADATA_MONETIZATION="dollar_sign",xC.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",xC.CREATOR_STUDIO="youtube_studio",xC.DASHBOARD="grid_asymmetrical",xC.DELETE="trash_can",xC.DELETE_SWEEP="trash_can",xC.DESKTOP="laptop",xC.DISLIKE="thumb_down",xC.DISLIKE_SELECTED=
"thumb_down",xC.DISMISSAL="x_mark",xC.DISMISS_QUEUE="list_remove",xC.DONE_ALL="check_double",xC.DOWN_ARROW="arrow_down",xC.DO_NOT_DISTURB="slash_circle_left",xC.DRAFT="paper_corner_folded",xC.DRAG_HANDLE="bars_2",xC.EDIT="pencil",xC.EMOJI="face_very_happy",xC.EMOJI_FLAGS="flag",xC.EMOJI_OBJECTS="lightbulb",xC.EMOJI_PEOPLE="face_very_happy",xC.EMOJI_RECENT="clock",xC.EMPTY_HEART="heart",xC.EMPTY_LIKE="thumb_up",xC.ERROR_BLACK="alert_circle",xC.ERROR_OUTLINE="alert_circle",xC.EXIT_APP="arrow_in",xC.EXIT_TO_APP=
"arrow_in",xC.EXPAND="chevron_down",xC.EXPAND_ALL="chevron_expand",xC.EXPAND_CAIRO="chevron_down_cairo",xC.EXPAND_LESS="chevron_up",xC.EXPAND_MORE="chevron_down",xC.EXPLORE="compass",xC.EXPLORE_DESTINATION="compass",xC.EXTERNAL_LINK="open_new",xC.FAB_UPLOAD="upload",xC.FACE_HAPPY_OUTLINE="face_happy",xC.FACT_CHECK="article_check",xC.FASHION_LOGO="fashion",xC.FASHION_LOGO_CAIRO="fashion_cairo",xC.FAVORITE="heart",xC.FEEDBACK="message_bubble_alert",xC.FEEDBACK_CAIRO="message_bubble_alert_cairo",xC.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",xC.FILL_ARROW_SOLID_UP_16="arrow_solid_up",xC.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",xC.FILTER="menu_filter",xC.FIRST_PAGE="chevron_first",xC.FLAG="flag",xC.FULL_HEART="heart",xC.GAME_CONSOLE_DPAD="game_console_dpad",xC.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",xC.GAMING_LOGO="gaming",xC.GAMING_LOGO_CAIRO="gaming_cairo",xC.GO_TO_PAGE="arrow_right",xC.GROUPS="people_group",xC.HAPPY="face_happy",xC.HEALTH_AND_SAFETY="shield_plus",xC.HELP="question_circle",xC.HELP_CAIRO=
"question_circle_cairo",xC.HELP_OUTLINE="question_circle",xC.HIDE="slash_circle_left",xC.IMAGE="image",xC.INFINITY_ICON="infinity",xC.INFO="info_circle",xC.INFO_OUTLINE="info_circle",xC.INSERT_CHART="bar_graph_box_vertical",xC.INSERT_CHART_OUTLINED="bar_graph_box_vertical",xC.INSERT_PHOTO="image",xC.KEEP="pin",xC.KEEP_OFF="pin_off",xC.KEYBOARD="keyboard",xC.KEYBOARD_ARROW_DOWN="chevron_down",xC.KEYBOARD_ARROW_UP="chevron_up",xC.KIDS_BLOCK="slash_circle_left",xC.LANGUAGE="globe",xC.LAST_PAGE="chevron_last",
xC.LAUNCH="open_new",xC.LEARNING="lightbulb",xC.LEARNING_CAIRO="lightbulb_cairo",xC.LIBRARY_ADD=X3r("library_add"),xC.LIBRARY_OUTLINE="library",xC.LIBRARY_REMOVE=X3r(),xC.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",xC.LIKES_PLAYLIST="thumb_up",xC.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",xC.LIKE="thumb_up",xC.LIKE_SELECTED="thumb_up",xC.LIVE="radar_live",xC.LIVE_CAIRO="radar_live_cairo",xC.LIVE_UNLISTED="link",xC.LOCATION_ON="location_point",xC.LOCATION_PIN="location_point",xC.LOOP="arrow_repeat",xC.LOOP_ACTIVE=
"arrow_repeat",xC.LOOP_ONE="arrow_repeat_1",xC.LOOP_ONE_ACTIVE="arrow_repeat_1",xC.MEH="face_meh",xC.MEMBERS_ONLY_MODE_OFF="message_bubble_left",xC.MESSAGE="message_bubble_left",xC.MICROPHONE_ON="mic",xC.MIX="youtube_mix",xC.MONETIZATION_ON="dollar_sign_circle",xC.MONEY_FILL="dollar_sign_container",xC.MONEY_FILL_JPY="yen_sign_container",xC.MONEY_HEART="dollar_sign_heart",xC.MORE_HORIZ="overflow_horizontal",xC.MORE_VERT="overflow_vertical",xC.MUSIC="audio",xC.MUSIC_CAIRO="audio_cairo",xC.MUSIC_NOTE_SYMBOL=
"music",xC.MUSIC_SHUFFLE="arrow_shuffle",xC.MY_CHANNEL="person_circle",xC.MY_LOCATION="location_point",xC.NEWS_STORY="news",xC.NEXT="chevron_right",xC.NOTIFICATIONS="bell",xC.NOTIFICATIONS_ACTIVE="bell_on",xC.NOTIFICATIONS_CAIRO="bell_cairo",xC.NOTIFICATIONS_DONE_CHECKMARK="check",xC.NOTIFICATIONS_INBOX="bell",xC.NOTIFICATIONS_NONE="bell",xC.NOTIFICATIONS_OFF="bell_off",xC.NOT_INTERESTED="slash_circle_left",xC.OFFICIAL_ARTIST_BADGE="audio",xC.OFFLINE_CLOUD="cloud_off",xC.OFFLINE_DOWNLOAD="download",
xC.OFFLINE_DOWNLOAD_CAIRO="download_cairo",xC.OFFLINE_PAUSE="pause",xC.OPEN_IN_NEW="open_new",xC.OUTLINE_ADJUST="adjust",xC.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",xC.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",xC.OUTLINE_BAG="bag",xC.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",xC.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",xC.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",xC.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",xC.PAID="dollar_sign",xC.PAUSE_OUTLINED="pause",xC.PAYMENT=
"credit_card",xC.PERSON_RADAR_FILLED="person_radar",xC.PHONE_DOWNLOAD="mobile_download",xC.PLAYABLES_LOGO="tic_tac_toe",xC.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",xC.PLAYLISTS="list_play_arrow",xC.PLAYLISTS_CAIRO="list_play_arrow_cairo",xC.PLAYLIST_ADD=X3r("list_add"),xC.PLAYLIST_ADD_CHECK=X3r("list_check"),xC.PLAYLIST_PLAY="list_play_arrow",xC.PLAY_ALL="play_arrow",xC.PLAY_CIRCLE="play_arrow_circle",xC.PLAY_OUTLINED="play_arrow_circle",xC.PRIVACY_INFO="shield",xC.PRIVACY_PRIVATE="lock",xC.PRIVACY_PUBLIC=
"earth",xC.PRIVACY_UNLISTED="link",xC.PROMOTE="megaphone",xC.PURCHASES="price_tag",xC.PURCHASE_SUPER_CHAT="super_chat",xC.PURCHASE_SUPER_STICKER="super_sticker",xC.QUESTION_ANSWER="message_bubble_question",xC.QUEUE_PLAY_LAST="list_queue_last",xC.QUEUE_PLAY_NEXT="list_play_arrow",xC.REMIX_FILLED="youtube_shorts_remix",xC.REMOVE="bar_circle",xC.REMOVE_CIRCLE="bar_circle",xC.REMOVE_CIRCLE_OUTLINE="bar_circle",xC.REMOVE_DONE="check_double_off",xC.REMOVE_FROM_HISTORY="bar_circle",xC.REMOVE_FROM_PLAYLIST=
"bar_circle",xC.REMOVE_MODERATOR="shield_off",xC.REPLAY="arrow_circle",xC.REPLAY_10="skip_back_10",xC.REPORT_PROBLEM="alert_triangle",xC.SAD="face_sad",xC.SAVE_PLAYLIST="bookmark",xC.SCHEDULE="clock",xC.SCHOOL="creator_academy",xC.SCREEN_FULLSCREEN="screen_full",xC.SEARCH_HISTORY="arrow_time",xC.SELL="price_tag",xC.SETTINGS="gear",xC.SETTINGS_CAIRO="gear_cairo",xC.SETTINGS_LIGHT="gear",xC.SETTINGS_MATERIAL="gear",xC.SHARE_ARROW="share",xC.SHIELD_WITH_AVATAR="person_shield",xC.SHOPPING_BAG="bag",xC.SHOPPING_BAG_CAIRO=
"bag_cairo",xC.SHOPPING_CART="cart",xC.SHORTS_COMMENT="youtube_shorts_message_bubble_right",xC.SHORTS_DISLIKE="youtube_shorts_thumb_down",xC.SHORTS_LIKE="youtube_shorts_thumb_up",xC.SHORTS_SHARE="youtube_shorts_share",xC.SHUFFLE="arrow_shuffle",xC.SLOW_MODE_OFF="message_bubble_left",xC.SOCIAL="people",xC.SORT="menu_sort",xC.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",xC.SPEED_1X="1x",xC.SPEED_1_POINT_2X="1_point_2x",xC.SPEED_1_POINT_5X="1_point_5x",xC.SPEED_1_POINT_8X="1_point_8x",xC.SPEED_2X="2x",
xC.SPEED_POINT_2X="point_2x",xC.SPEED_POINT_8X="point_8x",xC.SPONSORSHIP_STAR="star_circle",xC.STAFF_PICK="spotlight",xC.START_DVR="add",xC.STAR_BORDER="star",xC.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",xC.STICKER_EMOTICON="face_happy",xC.STOP_DVR="stop",xC.SUBSCRIBE="youtube_logo_icon",xC.SUBSCRIBE_PLUS="add_cairo",xC.SUBSCRIPTION_MANAGER="gear",xC.SUPERVISOR_ACCOUNT="people",xC.SUPER_CHAT_FOR_GOOD="hands_heart",xC.SWAP_HORIZ="arrow_swap_horizontal",xC.SWITCH_ACCOUNTS="person_account",xC.TAB_ACCOUNT=
"person",xC.TAB_ACTIVITY="bell",xC.TAB_BOOKMARK="bookmark",xC.TAB_EXPLORE="compass",xC.TAB_HOME="home",xC.TAB_HOME_CAIRO="home_cairo",xC.TAB_INBOX="mail",xC.TAB_LIKED="thumb_up",xC.TAB_MUSIC_PREMIUM="youtube_music",xC.TAB_SHORTS="youtube_shorts",xC.TAB_SHORTS_CAIRO="youtube_shorts_cairo",xC.TAB_SUBSCRIPTIONS="subscriptions",xC.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",xC.TAB_TRENDING="fire",xC.TIMER="stopwatch",xC.TRAILER="youtube_originals",xC.TRENDING="fire",xC.TRENDING_CAIRO="fire_cairo",xC.TRENDING_DOWN=
"rating_down",xC.TRENDING_UP="rating_up",xC.TROPHY="trophy",xC.TROPHY_CELEBRATIONS="fireworks",xC.TUNE="adjust",xC.UNBLOCK_USER="bar_circle",xC.UNLIMITED="youtube_logo_icon",xC.UNPLUGGED_LIVE_GUIDE="radar_live",xC.UNPLUGGED_SPORTS="eye_off",xC.UPLOADS="library",xC.UP_ARROW="arrow_up",xC.VERTICAL_ALIGN_BOTTOM="download",xC.VERY_HAPPY="face_very_happy",xC.VERY_SAD="face_very_sad",xC.VIDEOGAME_ASSET="gaming",xC.VIDEOS="play_arrow_circle",xC.VIDEO_CALL="video_camera_add",xC.VIDEO_LIBRARY_WHITE="library",
xC.VIDEO_YOUTUBE="youtube_logo_icon",xC.VIEW_LIST="list_view",xC.VIEW_LIST_CAIRO="list_view_cairo",xC.VISIBILITY="eye",xC.VISIBILITY_OFF="eye_off",xC.VOLUME_MUTE="volume_off",xC.VOLUME_UP="volume_on",xC.WALLPAPER="image",xC.WARNING="alert_triangle",xC.WATCH_HISTORY="arrow_time",xC.WATCH_HISTORY_CAIRO="arrow_time_cairo",xC.WATCH_LATER="clock",xC.WATCH_LATER_CAIRO="clock_cairo",xC.WATCH_RELATED_MIX="youtube_mix",xC.WHAT_TO_WATCH="home",xC.YOUTUBE_MUSIC_MONOCHROME="youtube_music",xC.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",xC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",xC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",xC.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",xC.YT_OUTLINE_MUSIC_24="music",xC);var iW={},YG1=(iW.ACCESS_TIME="clock",iW.ACCOUNT_BOX="person_square",iW.ACCOUNT_BOX_CAIRO="person_square",iW.ACCOUNT_CIRCLE="person_circle",iW.ACCOUNT_CIRCLE_CAIRO="person_circle",iW.ACCOUNT_LINKED="account_link",iW.ACCOUNT_UNLINKED="account_link",iW.ADD_CIRCLE="add_circle",iW.ADD_CIRCLE_OUTLINE="add_circle",iW.ADD_FRIEND="person_child",iW.ADD_MODERATOR="shield_add",iW.ADD_TO_LIBRARY="bookmark",iW.ADD_TO_PLAYLIST="add",iW.ADD_TO_QUEUE_TAIL="queue",iW.ADD_TO_REMOTE_QUEUE="playlist_audio",iW.ADD_TO_WATCH_LATER=
"clock",iW.ADD_VIDEO_LINK="film_strip_add",iW.ADMIN_PANEL_SETTINGS="person_gear",iW.ALERT_WARN_RED="alert_triangle",iW.ALIGN_LEFT="text_align_left",iW.ARROWS_ALERT="arrow_split_alert",iW.ARROW_BACK="arrow_left",iW.ARROW_CIRCLE="arrow_counterclockwise",iW.ARROW_CIRCLE_PLAY="replay",iW.ARROW_CIRCLE_RIGHT="arrow_clockwise",iW.ARROW_DIAGONAL="arrow_up_left",iW.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",iW.ARROW_DROP_DOWN="triangle_down",iW.ARROW_DROP_UP="triangle_up",iW.ARROW_FORWARD="arrow_right",iW.ARROW_PAUSE=
"pause_history",iW.ARROW_UNDO="undo",iW.ARTICLE="text_page",iW.ARTICLE_ALERT="text_page_alert",iW.ARTICLE_CHECK="text_page_check",iW.ARTICLE_CLARIFY="text_page_info",iW.ARTIST="person_audio",iW.AUDIOTRACK="audio",iW.AUDIO_BADGE="audio_badge",iW.AUDIO_SURROUND="surround_sound",iW.AUTO_AWESOME="sparkles",iW.AVATAR_ANONYMOUS="person_circle",iW.AVATAR_LOGGED_OUT="person_circle",iW.BACK="arrow_left",iW.BAR_CHART="chart_bar",iW.BAR_CIRCLE="minus_circle",iW.BAR_HORIZONTAL="minus",iW.BLOCK="circle_slash",
iW.BLOCK_USER="circle_slash",iW.BOOKMARK_BORDER="bookmark",iW.BOX_OPEN_CHECK="quiz",iW.BOX_PENCIL="square_pencil",iW.BOX_STACK_3="square3_stack",iW.BREAKING_NEWS_ALT_1="text_page_alert",iW.BROADCAST="podcast",iW.BROADCAST_CAIRO="podcast",iW.BUG_REPORT="bug",iW.CAMERA_ALT="camera",iW.CAMPAIGN="megaphone",iW.CANCEL="x_circle",iW.CAPTIONS="closed_captions",iW.CAST_ICON="chromecast",iW.CAST_OUTLINE="chromecast",iW.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",iW.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
iW.CHAT="text_bubble",iW.CHAT_BUBBLE="bubble",iW.CHECK_BOX="check_square",iW.CHECK_BOX_OUTLINE_BLANK="square",iW.CHECK_CIRCLE_FILLED="check_circle",iW.CHECK_CIRCLE_OUTLINE="check_circle",iW.CHECK_CIRCLE_THICK="check_circle",iW.CHECK_DOUBLE="check_done",iW.CHECK_DOUBLE_OFF="check_done_slash",iW.CHEVRON_LEFT="chevron_left",iW.CHEVRON_RIGHT="chevron_right",iW.CHEVRON_RIGHT_CAIRO="chevron_right",iW.CIRCLES_OVERLAP="account_link",iW.CLAPPERBOARD_CAIRO="clapperboard",iW.CLARIFY="text_page_info",iW.CLOCK_ARROWS=
"clock_split",iW.CLOCK_ARROWS_ALERT="clock_split_alert",iW.CLOSED_CAPTION="closed_captions",iW.CLOSED_CAPTION_SELECTED="closed_captions",iW.CLOSE="x",iW.CLOUD_UPLOAD="cloud_arrow_up",iW.COLLAPSE="chevron_up",iW.COLLAPSE_CAIRO="chevron_up",iW.COLLECTION="square3d_stack",iW.COLOR_LENS="paint_palette",iW.COMMENT="text_bubble",iW.CONSENT_SHIELD="person_shield",iW.CONTENT_CUT="scissors",iW.CONTENT_CUT_CAIRO="scissors",iW.COURSE="graduation_cap",iW.COURSE_CAIRO="graduation_cap",iW.CREATION_LIVE="live",
iW.CREATION_POST="square_pencil",iW.CREATION_UPLOAD="video",iW.CREATION_UPLOAD_RED="upload",iW.CREATOR_ACADEMY="graduation_cap",iW.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",iW.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",iW.CREATOR_STUDIO="youtube_studio",iW.DARK_THEME="theme",iW.DELETE="trash_can",iW.DELETE_SWEEP="trash_can",iW.DESKTOP="laptop",iW.DISLIKE="thumb_down",iW.DISLIKE_SELECTED="thumb_down",iW.DISMISSAL="x",iW.DISMISS_QUEUE="playlist_x",iW.DOGFOOD="pawprint",iW.DOLLAR_SIGN=
"dollar_sign_circle",iW.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",iW.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",iW.DOWN_ARROW="arrow_down",iW.DO_NOT_DISTURB="circle_slash",iW.DRAFT="document",iW.DRAG_HANDLE="equal",iW.EARTH="globe",iW.EDIT="pencil",iW.EMOJI="face_very_happy",iW.EMOJI_FLAGS="flag",iW.EMOJI_OBJECTS="lightbulb",iW.EMOJI_PEOPLE="face_very_happy",iW.EMOJI_RECENT="clock",iW.EMPTY_HEART="heart",iW.EMPTY_LIKE="thumb_up",iW.ERROR_BLACK="alert_circle",iW.ERROR_OUTLINE="alert_circle",iW.ERROR_WHITE=
"alert_circle",iW.EXIT_APP="arrow_in",iW.EXIT_TO_APP="arrow_in",iW.EXPAND="chevron_down",iW.EXPAND_ALL="chevron_expand",iW.EXPAND_CAIRO="chevron_down",iW.EXPAND_LESS="chevron_up",iW.EXPAND_MORE="chevron_down",iW.EXPLORE="compass",iW.EXPLORE_DESTINATION="compass",iW.EXTERNAL_LINK="arrow_up_right",iW.EYE_OFF="eye_slash",iW.FAB_UPLOAD="upload",iW.FACE_HAPPY_OUTLINE="face_happy",iW.FACE_MEH="face_neutral",iW.FACT_CHECK="text_page_check",iW.FASHION_LOGO="fashion",iW.FASHION_LOGO_CAIRO="fashion",iW.FAVORITE=
"thumb_up",iW.FEEDBACK="alert_bubble",iW.FEEDBACK_CAIRO="alert_bubble",iW.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",iW.FILL_ARROW_SOLID_UP_16="arrow_solid_up",iW.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",iW.FIRST_PAGE="chevron_left_end",iW.FLAG_CAIRO="flag",iW.FLASH_OFF="flash_slash",iW.FLASH_ON="flash",iW.FULL_HEART="heart",iW.GAMING_LOGO="gaming",iW.GAMING_LOGO_CAIRO="gaming",iW.GO_TO_PAGE="arrow_right",iW.GRID_ASYMMETRICAL="dashboard",iW.GROUPS="person3",iW.HAND_SWIPE_LEFT="gesture_swipe_left",
iW.HAND_SWIPE_RIGHT="gesture_swipe_right",iW.HAPPY="face_happy",iW.HEALTH_AND_SAFETY="shield_health",iW.HEART_BOX="heart_cube",iW.HELP="help_circle",iW.HELP_CAIRO="help_circle",iW.HELP_OUTLINE="help_circle",iW.HIDE="circle_slash",iW.INCOGNITO_CAIRO="incognito",iW.INFINITY_ICON="infinity",iW.INFO="info_circle",iW.INFO_OUTLINE="info_circle",iW.INSERT_CHART="chart_bar_square",iW.INSERT_CHART_OUTLINED="chart_bar_square",iW.INSERT_PHOTO="image",iW.KEEP="pin",iW.KEEP_OFF="pin_slash",iW.KEYBOARD="keyboard",
iW.KEYBOARD_ARROW_DOWN="chevron_down",iW.KEYBOARD_ARROW_UP="chevron_up",iW.KIDS_BLOCK="circle_slash",iW.LANGUAGE="globe",iW.LAST_PAGE="chevron_right_end",iW.LAUNCH="arrow_up_right",iW.LEARNING="lightbulb",iW.LEARNING_CAIRO="lightbulb",iW.LIBRARY_ADD="bookmark",iW.LIBRARY_IMAGE="image_stack",iW.LIBRARY_MUSIC="audio_square_stack",iW.LIBRARY_OUTLINE="play_square_stack",iW.LIBRARY_REMOVE="bookmark",iW.LIBRARY_SAVED="check_square_stack",iW.LIKES_PLAYLIST="thumb_up",iW.LIKES_PLAYLIST_CAIRO="thumb_up",iW.LIKE=
"thumb_up",iW.LIKE_SELECTED="thumb_up",iW.LIST_QUEUE="queue",iW.LIVE_CAIRO="live",iW.LIVE_UNLISTED="link",iW.LOCATION_ON="location_pin",iW.LOCATION_PIN="location_pin",iW.LOCATION_POINT="location_pin",iW.LOOP="repeat",iW.LOOP_ACTIVE="repeat",iW.LOOP_ONE="repeat1",iW.LOOP_ONE_ACTIVE="repeat1",iW.MEET="google_meet",iW.MEH="face_neutral",iW.MEMBERSHIPS="memberships",iW.MEMBERS_ONLY_MODE_OFF="text_bubble",iW.MENU_FILTER="filter",iW.MESSAGE="text_bubble",iW.MESSAGE_BUBBLE_GEAR="bubble_gear",iW.MESSAGE_BUBBLE_LEFT=
"text_bubble",iW.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",iW.MESSAGE_BUBBLE_OVERLAP="bubble_stack",iW.MESSAGE_BUBBLE_QUESTION="help_bubble",iW.MICROPHONE_ON="mic",iW.MONETIZATION_ON="dollar_sign_circle",iW.MONEY_FILL="dollar_sign_rectangle",iW.MONEY_FILL_JPY="yen_sign_rectangle",iW.MONEY_HAND="dollar_sign_circle_hand",iW.MONEY_HEART="dollar_sign_heart",iW.MOON_Z="sleep_timer",iW.MORE_HORIZ="overflow_horizontal",iW.MORE_VERT="overflow_vertical",iW.MUSIC="audio",iW.MUSIC_CAIRO="audio",iW.MUSIC_EXPLICIT_BADGE=
"explicit",iW.MUSIC_NEW_RELEASE="audio_badge",iW.MUSIC_NOTE_SYMBOL="audio",iW.MUSIC_SCISSORS="audio_scissors",iW.MUSIC_SHUFFLE="shuffle",iW.MY_CHANNEL="person_circle",iW.MY_LOCATION="location_pin",iW.MY_VIDEOS="video",iW.MY_VIDEOS_CAIRO="video",iW.NEWS_CAIRO="news",iW.NEWS_STORY="news",iW.NEXT="chevron_right",iW.NOTE_ADD="bubble_pencil",iW.NOTIFICATIONS="bell",iW.NOTIFICATIONS_ACTIVE="bell_waves",iW.NOTIFICATIONS_CAIRO="bell",iW.NOTIFICATIONS_DONE_CHECKMARK="check",iW.NOTIFICATIONS_INBOX="bell",iW.NOTIFICATIONS_NONE=
"bell",iW.NOTIFICATIONS_OFF="bell_slash",iW.NOT_INTERESTED="circle_slash",iW.OFFICIAL_ARTIST_BADGE="audio",iW.OFFLINE_CLOUD="cloud_slash",iW.OFFLINE_DOWNLOAD="download",iW.OFFLINE_DOWNLOAD_CAIRO="download",iW.OFFLINE_PAUSE="pause",iW.OPEN_IN_NEW="arrow_up_right",iW.OUTLINE_ADJUST="adjust",iW.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",iW.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",iW.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",iW.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",iW.OUTLINE_BAG="bag",iW.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",iW.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",iW.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",iW.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",iW.PAID="dollar_sign_circle",iW.PAUSE_OUTLINED="pause",iW.PAYMENT="credit_card",iW.PEOPLE="person_child",iW.PEOPLE_2="person2_rectangle",iW.PEOPLE_GROUP="person3",iW.PEOPLE_NOTE="bubble_asterisk",iW.PERSON_2="person2",iW.PERSON_ACCOUNT="person_square_stack",iW.PERSON_MINUS="person_x",iW.PERSON_MUSIC="person_audio",iW.PERSON_RADAR="person_waves",
iW.PERSON_RADAR_FILLED="person_waves",iW.PERSON_SETTING="person_gear",iW.PHONE="phone",iW.PHONE_DOWNLOAD="mobile_arrow_down",iW.PICTURE_IN_PICTURE="picture_in_picture",iW.PLAYABLES_LOGO="playables",iW.PLAYABLES_LOGO_CAIRO="playables",iW.PLAYLISTS="playlist",iW.PLAYLISTS_CAIRO="playlist",iW.PLAYLIST_ADD_CHECK="bookmark",iW.PLAY_ALL="play",iW.PLAY_ARROW="play",iW.PLAY_ARROW_CIRCLE="play_circle",iW.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",iW.PLAY_CIRCLE="play_circle",iW.PLAY_OUTLINED="play_circle",
iW.PODCAST_ADD="podcast_add",iW.PODCAST_CHECK="podcast_check",iW.PRIVACY_INFO="shield_x",iW.PRIVACY_PRIVATE="lock",iW.PRIVACY_PUBLIC="globe",iW.PRIVACY_UNLISTED="link",iW.PROMOTE="megaphone",iW.PURCHASES="price_tag",iW.PURCHASE_SUPER_CHAT="super_chat",iW.PURCHASE_SUPER_STICKER="super_sticker",iW.QUESTION_ANSWER="help_bubble",iW.QUESTION_CIRCLE="help_circle",iW.QUEUE_PLAY_LAST="queue_last",iW.QUEUE_PLAY_NEXT="queue_next",iW.QUOTATION_MARK="quote",iW.RADAR_LIVE="live",iW.REMOVE="minus_circle",iW.REMOVE_CIRCLE=
"minus_circle",iW.REMOVE_CIRCLE_OUTLINE="minus_circle",iW.REMOVE_FROM_HISTORY="minus_circle",iW.REMOVE_FROM_PLAYLIST="minus_circle",iW.REMOVE_MODERATOR="shield_slash",iW.REPLAY="arrow_counterclockwise",iW.REPLAY_10="skip10_back",iW.REPLAY_ARROW="replay",iW.REPORT_PROBLEM="alert_triangle",iW.RSS_OFF="rss_slash",iW.SAD="face_sad",iW.SAVE_PLAYLIST="bookmark",iW.SCHEDULE="clock",iW.SCHOOL="graduation_cap",iW.SCREEN_DEFAULT="player_default",iW.SCREEN_FULLSCREEN="player_full_enter",iW.SCREEN_LIGHT="ambient_mode",
iW.SCREEN_ROTATION="rotate_portrait",iW.SCREEN_SWITCH="player_switch",iW.SCREEN_THEATRE="player_theater",iW.SEARCH_CAIRO="search",iW.SEARCH_HISTORY="history",iW.SELL="price_tag",iW.SETTINGS="gear",iW.SETTINGS_CAIRO="gear",iW.SETTINGS_LIGHT="gear",iW.SETTINGS_MATERIAL="gear",iW.SETTINGS_REMOTE="remote_waves",iW.SHARE="share",iW.SHARE_ARROW="share",iW.SHARE_CAIRO="share",iW.SHIELD="shield_x",iW.SHIELD_EMPTY="shield",iW.SHIELD_OFF="shield_slash",iW.SHIELD_WITH_AVATAR="person_shield",iW.SHOPPING_BAG=
"bag",iW.SHOPPING_BAG_CAIRO="bag",iW.SHOPPING_CART="cart",iW.SHORTS_COMMENT="text_bubble",iW.SHORTS_DISLIKE="thumb_down",iW.SHORTS_LIKE="thumb_up",iW.SHORTS_SHARE="share",iW.SKIP_FORWARD_30="skip30_forward",iW.SLASH_CIRCLE_LEFT="circle_slash",iW.SLASH_CIRCLE_RIGHT="circle_slash",iW.SLOW_MODE="bubble_slow",iW.SLOW_MODE_OFF="text_bubble",iW.SOCIAL="person_child",iW.SPARKLE="sparkles",iW.SPARK_IMAGE="image_spark",iW.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",iW.SPARK_PENCIL="pencil_spark",iW.SPARK_RADAR=
"spark_waves",iW.SPARK_VIDEO="video_spark",iW.SPEAKER_GROUP="speaker_stack",iW.SPEAKER_OFF="speaker_slash",iW.SPEED_1X="n1x",iW.SPEED_1_POINT_2X="n1point2x",iW.SPEED_1_POINT_5X="n1point5x",iW.SPEED_1_POINT_8X="n1point8x",iW.SPEED_2X="n2x",iW.SPONSORSHIP_STAR="star_circle",iW.SPORTS="basketball",iW.SPOTLIGHT="spotlight",iW.STAFF_PICK="spotlight",iW.START_DVR="add",iW.STAR_BORDER="star",iW.STAR_CIRCLE_RIBBON="memberships_gift",iW.STAR_HALF="star_full_half",iW.STAR_SHOOTING="hype",iW.STICKER="sticker",
iW.STICKER_EMOTICON="face_happy",iW.STOP_DVR="stop",iW.SUBSCRIBE="youtube",iW.SUBSCRIBE_PLUS="add",iW.SUBSCRIPTION_MANAGER="gear",iW.SUPERSTAR="super_star",iW.SUPERVISOR_ACCOUNT="person_child",iW.SUPER_CHAT_FOR_GOOD="hands_heart",iW.SWAP_HORIZ="arrow_swap_horizontal",iW.SWITCH_ACCOUNTS="person_square_stack",iW.TAB_ACCOUNT="person",iW.TAB_ACTIVITY="bell",iW.TAB_BOOKMARK="bookmark",iW.TAB_EXPLORE="compass",iW.TAB_HOME="home",iW.TAB_HOME_CAIRO="home",iW.TAB_INBOX="mail",iW.TAB_LIKED="thumb_up",iW.TAB_MUSIC_PREMIUM=
"youtube_music",iW.TAB_SHORTS="shorts",iW.TAB_SHORTS_CAIRO="shorts",iW.TAB_SUBSCRIPTIONS="subscriptions",iW.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",iW.TAB_TRENDING="trending",iW.TARGET="target",iW.TARGET_ADD="target_add",iW.TEMPLATE_ADD="template_add",iW.TEXT="font",iW.TICKET_STAR="star_ticket",iW.TIMER="stopwatch",iW.TRENDING_CAIRO="trending",iW.TRENDING_DOWN="arrow_trend_down",iW.TRENDING_UP="arrow_trend_up",iW.TROPHY_CAIRO="trophy",iW.TROPHY_CELEBRATIONS="fireworks",iW.TROPHY_STAR="star_trophy",
iW.TUNE="adjust",iW.TV_OFF="tv_slash",iW.UNBLOCK_USER="minus_circle",iW.UNFAVORITE="thumb_down",iW.UNLIMITED="youtube",iW.UNPLUGGED_LIVE_GUIDE="live",iW.UNPLUGGED_SPORTS="eye_slash",iW.UPLOADS="play_square_stack",iW.UP_ARROW="arrow_up",iW.VERTICAL_ALIGN_BOTTOM="chevron_down_end",iW.VERTICAL_ALIGN_TOP="chevron_up_end",iW.VERY_HAPPY="face_very_happy",iW.VERY_SAD="face_very_sad",iW.VIDEOS="play_circle",iW.VIDEO_CALL="video_camera_add",iW.VIDEO_LIBRARY_WHITE="play_square_stack",iW.VIDEO_QUALITY_4K="n4k",
iW.VIDEO_QUALITY_8K="n8k",iW.VIDEO_YOUTUBE="youtube",iW.VIEW_LIST_CAIRO="view_list",iW.VIEW_MODULE="view_column3_row2",iW.VISIBILITY="eye",iW.VISIBILITY_OFF="eye_slash",iW.VOLUME_DOWN="volume_min",iW.VOLUME_MUTE="volume_mute",iW.VOLUME_OFF="volume_mute",iW.VOLUME_STABLE="stable_volume",iW.VOLUME_UP="volume_max",iW.WALLPAPER="image",iW.WARNING="alert_triangle",iW.WATCH_HISTORY="history",iW.WATCH_HISTORY_CAIRO="history",iW.WATCH_LATER="clock",iW.WATCH_LATER_CAIRO="clock",iW.WATCH_RELATED_MIX="mix",
iW.WHAT_TO_WATCH="home",iW.YOUTUBE_LINKED_TV="tv_mobile",iW.YOUTUBE_MUSIC_MONOCHROME="youtube_music",iW.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",iW.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",iW.YOUTUBE_SHORTS_ARROW_UP="arrow_up",iW.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",iW.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",iW.YOUTUBE_SHORTS_OUTLINE_24="shorts",iW.YT_OUTLINE_MUSIC_24="audio",iW);var Pf1={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 GOe={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]],cart_spark:[[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,3,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,2,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]],cube_spark:[[1,1,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_spark:[[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]],globe_image:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],
google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,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,3,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,2,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:[[0,2,24],[1,2,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_pause:[[0,1,24],[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,7,18,!0],[0,7,24,!0],[1,7,18,!0],[1,7,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_add:[[1,1,18],[1,1,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]],slip:[[1,1,18],[1,1,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,11,12],[0,11,24],[1,11,24]],spark_bubble_chat:[[1,1,24]],spark_lightbulb:[[0,3,24],[1,3,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,3,24],[1,3,18],[1,3,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,6,24],[0,6,36],[1,6,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_column2:[[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 F_I={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"},hu=function(A){this.iconUrlProvider=A};
hu.prototype.resolveIcon=function(A,H){var k=F_I[A.iconName.toUpperCase()];k&&(A.iconName=k);var d=A.iconName;d=d.replace(/-/g,"_");A=Object.assign({},A,{iconName:this.mapIconTypeToStandardName(d,!!k)||d.toLowerCase()});if(_.b("enable_web_delhi_icons")||k){var W;return GNX(GOe,A,((W=this.iconUrlProvider)==null?void 0:W.getYtStandardUrl)||SsV,H)}var z;return GNX(Pf1,A,((z=this.iconUrlProvider)==null?void 0:z.getYtStandardUrl)||Dgb,H)};
hu.prototype.mapIconTypeToStandardName=function(A,H){return _.b("enable_web_delhi_icons")||H?YG1[A.toUpperCase()]:I8_[A.toUpperCase()]};
hu[ox]=[_.fZ(vde)];var XyI=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),DxB=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),SG3=function(A){this.urlProvider=this.iconUrlProvider=A};
_.I(SG3,hu);
SG3.prototype.resolveIcon=function(A,H){A.iconName==="youtube_logo"&&(A.iconName="yt-logo-updated");if(A.iconName==="youtube_premium_logo"||A.iconName==="youtube_red_logo")A.iconName="yt-logo-red-updated";var k=Object.assign({},A);A.iconName==="menu"&&(_.b("enable_web_delhi_icons")||(k.iconName="bars_3"),k.iconStyle="youtube_outline");A.iconSetName==="socialNetworksRound"&&(A.iconName==="mail"&&(k.iconName="email"),A.iconName==="embed"&&(k.iconSize=60));A.iconName==="more"&&(k.iconName="overflow_horizontal");
A.iconName==="fullscreen"&&(k.iconName="screen_full");A.iconName==="premium_standalone"&&(k.iconName="premium_standalone_cairo");_.b("enable_connect_icon_update_web")&&A.iconName==="account_linked"&&(k.iconName="circles_overlap_check",k.iconStyle="youtube_fill");_.b("enable_connect_icon_update_web")&&A.iconName==="account_unlinked"&&(k.iconName="circles_overlap",k.iconStyle="youtube_outline");XyI.has(A.iconName)&&(k.iconStyle="youtube_fill");if(_.b("enable_web_delhi_icons")){A.iconName==="playlist_add"&&
(k.iconName="bookmark");A.iconName==="offline_pin"&&(k.iconName="arrow_down_circle",k.iconStyle="youtube_fill");if(A.iconName==="circles_overlap_check"||k.iconName==="circles_overlap_check")k.iconName="account_link",k.iconStyle="youtube_fill";DxB.has(A.iconName)&&(k.iconName+="_updated")}A=Object.assign({},k,{iconName:(hu.prototype.mapIconTypeToStandardName.call(this,k.iconName)||k.iconName).toLowerCase()});var d;return(A=GNX(bYL,A,((d=this.urlProvider)==null?void 0:d.getUrl)||C8f,H))?A:hu.prototype.resolveIcon.call(this,
k,H)};
SG3[ox]=[_.fZ(vde)];_.Cf3=1;var O2=function(A,H){this.JSC$17782_commandHandler=A;this.innertubeTransportService=H};
_.I(O2,Yj);O2.prototype.resolveCommand=function(A,H){var k=this,d,W,z;return _.e(function(u){return(d=_.L(A,lt0))?u.return(K_1(k,d,(W=H)==null?void 0:(z=W.form)==null?void 0:z.element)):u.return()})};
var K_1=function(A,H,k){H={profileCardContext:H.profileCardContext,profileOwnerExternalChannelId:H.profileOwnerExternalChannelId};var d=_.X3(d9N);return _.yD(A.innertubeTransportService,H,d).then(function(W){if(!W)throw new _.Ti("GetProfileCard failed");if(W=W.popupCommand){A.JSC$17782_commandHandler.resolveCommand(W,{form:{element:k}});_.Ml(_.A7(),66557);W=W==null?void 0:W.clickTrackingParams;var z=_.ii();W&&z&&_.A7().graftServerVe(W,z)}})};
O2[ox]=[_.J7,_.kI];var Rk=function(){};
_.I(Rk,Yj);Rk.prototype.resolveCommand=function(A){var H,k;return _.e(function(d){H=_.L(A,$pJ);if(!H)return d.return();k=Number(H.enableDelayedPacfLoggingTvMs);if(isNaN(k)){var W=sb();mWi(W,H,0)}else mWi(sb(),H,k);_.EN(d)})};_.T6=function(){};
_.I(_.T6,Yj);
_.T6.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O;return _.e(function(T){d=_.L(A,A$Q);z=(W=H.form)==null?void 0:W.element;B=(u=z)==null?void 0:u.closest("ytd-enforcement-message-view-model");if(!d||!B)return T.return();k.allowAdsAction||(h=d.fundingChoiceInstructionPageUrl,k.allowAdsAction=new Pl0(window,_.Yh(h)));var m=k.allowAdsAction;m.wallElement=B;m.allowAdsPopup.style.setProperty("display","flex","important");var J=m.scrollManager;J.isScrollingEnabled&&(J.originalBodyOverflow=J.JSC$10314_domHelper.JSC$9639_document_.body.style.overflow,
J.JSC$10314_domHelper.JSC$9639_document_.body.style.overflow="hidden",J.isScrollingEnabled=!1);m.wallElement.style.setProperty("display","none","important");MFJ(m.accessibilityManager,m.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((O=k.allowAdsAction.allowAdsPopup)&&O instanceof HTMLElement)for(m=_.r(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),J=m.next();!J.done;J=m.next()){var g=_.r(J.value);J=g.next().value;g=g.next().value;
O.style.setProperty(J,g)}_.EN(T)})};
_.T6.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var mT=function(){};
_.I(mT,Yj);mT.prototype.resolveCommand=function(A){var H;return _.e(function(k){H=_.L(A,eaA);if(!H)return k.return();zBl(A);_.EN(k)})};_.Ju=new _.SE("AI_CHAT_CONTROLLER_TOKEN");var gR=function(A,H,k,d){this.JSC$17797_commandHandler=A;this.store=H;this.getPlayerCb=k;this.aiChatController=d};
_.I(gR,Yj);gR.prototype.pageContext=function(){var A=_.yP.currentPageSubTypeSelector(this.store.getState()),H;return(H=this.aiChatController)==null?void 0:_.a81(H,A)};
gR.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u;return _.e(function(B){k=_.L(A,evN);W=(d=k)==null?void 0:d.command;if(!W)return B.return();switch((u=k)==null?void 0:u.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var h="youchat-"+Date.now(),O;var T=String(Math.floor(((O=H.getPlayerCb())==null?void 0:O.getCurrentTime())||0)*1E3);z={inputComposerFormData:{clientMessageId:h,playerOffsetMs:T,pageContext:H.pageContext()}}}if(!z)return B.return();H.JSC$17797_commandHandler.resolveCommand(W,
{form:{formData:z}});_.EN(B)})};
gR[ox]=[_.J7,_.O7,HtN,_.fZ(_.Ju)];var cee=new _.SE("SESSION_STORAGE");var bW=function(A){this.sessionStorage=A("conversations")};
_.I(bW,Yj);bW.prototype.resolveCommand=function(A){var H=this,k;return _.e(function(d){k=_.L(A,xrN);if(!k)return d.return();k.conversationId?H.sessionStorage.set("conversation_id",k.conversationId):H.sessionStorage.remove("conversation_id");_.EN(d)})};
bW[ox]=[cee];var Lp=function(A){this.JSC$17809_commandHandler=A};
_.I(Lp,Yj);
Lp.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O;return _.e(function(T){if(T.nextAddress==1){k=_.L(A,abG);if((d=k)==null||!d.text||!navigator.clipboard)return T.return();_.S_(T,2);return T.yield(navigator.clipboard.writeText(k.text),4)}if(T.nextAddress!=2){if(!k.successActions||k.successActions.length===0)return T.return();W=_.r(k.successActions);for(z=W.next();!z.done;z=W.next())u=z.value,H.JSC$17809_commandHandler.resolveCommand(u);return _.QN(T,0)}_.VA(T);if(!k.failureActions||k.failureActions.length===
0)return T.return();B=_.r(k.failureActions);for(h=B.next();!h.done;h=B.next())O=h.value,H.JSC$17809_commandHandler.resolveCommand(O);_.EN(T)})};
Lp[ox]=[_.J7];var v7=function(A){this.JSC$17813_commandHandler=A};
_.I(v7,Yj);
v7.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J;return _.e(function(g){switch(g.nextAddress){case 1:d=_.L(A,mKw);if(!d)return g.return();_.S_(g,2);if(!d.imageBytes&&!d.imageUrl)throw Error("Di");if(!d.imageUrl){if(d.imageBytes){z=d.imageBytes;u=z.replace(/-/g,"+").replace(/_/g,"/");var v=p3m(u);W=_.wO(v)}g.jumpTo(4);break}return g.yield(fetch(d.imageUrl),5);case 5:return B=g.yieldResult,g.yield(B.blob(),6);case 6:h=g.yieldResult,W=_.wO(h);case 4:m=(O=H)==null?void 0:(T=O.form)==
null?void 0:T.element;J=document.createElement("a");A2(J,W);m.appendChild(J);J.download="";J.click();m.removeChild(J);URL.revokeObjectURL(_.NR(W));d.successCommand&&k.JSC$17813_commandHandler.resolveCommand(d.successCommand);_.QN(g,0);break;case 2:_.VA(g),d.errorCommand&&k.JSC$17813_commandHandler.resolveCommand(d.errorCommand),_.EN(g)}})};
v7[ox]=[_.J7];var yU=function(A){this.store=A};
_.I(yU,Yj);yU.prototype.resolveCommand=function(A){var H=this,k,d,W;return _.e(function(z){d=(k=_.L(A,_.x_p))==null?void 0:k.entityBatchUpdate;if(!d)return z.jumpTo(0);W=Object.assign({},d,{mutations:[].concat(_.fV(d.mutations||[]))});return z.yield(_.oN(W,H.store),0)})};
yU[ox]=[tv];var pyL=function(A){this.JSC$17820_commandHandler=A;this.feedbackDialogMap=new Map};
pyL.prototype.openDialog=function(A,H){(A=this.feedbackDialogMap.get(A))&&this.JSC$17820_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:A}},H)};
pyL[ox]=[_.J7];var QaQ=new _.SE("FEEDBACK_CONTROLLER_TOKEN");var jT=function(A,H,k,d){this.dispatch=A;this.controller=H;this.JSC$17823_commandHandler=k;this.innertubeTransportService=d};
_.I(jT,Yj);
jT.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z,WV,hA,qv,eN;return _.e(function(mr){switch(mr.nextAddress){case 1:d=_.L(A,_.Ts);if(z=(W=d)==null?void 0:W.contentId)for(B=_.r(((u=d)==null?void 0:u.actions)||[]),h=B.next();!h.done;h=B.next())O=h.value,Vti(k,O,z);J=(T=H)==null?void 0:(m=T.form)==null?void 0:m.element;return _.b("wug_feedback_endpoint_use_its")?(y=new _.Lj,y.endpoint=A,D=_.I9(k.innertubeTransportService,A,(X=H)==null?void 0:X.form),y.ajaxPromise=
D,_.Ed(J,"yt-service-request-sent",y),mr.yield(D,5)):mr.yield(_.tx(J,[A,{impression:(v=H)==null?void 0:v.disableClickTracking}]).catch(function(){}),4);
case 4:g=mr.yieldResult;mr.jumpTo(3);break;case 5:g=mr.yieldResult,_.Ed(J,"yt-service-request-completed",{data:g});case 3:p=((K=g)==null?void 0:(N=K.data)==null?void 0:N.feedbackResponses)||((U=g)==null?void 0:U.feedbackResponses);if((M=p)==null?0:M.length)(WV=(Z=p[0])==null?void 0:Z.followUpDialog)&&z&&(hA=k.controller)!=null&&hA.feedbackDialogMap.set(z,WV),(eN=(qv=p[0])==null?void 0:qv.isThumbnailReporting)&&k.JSC$17823_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.EN(mr)}})};
var Vti=function(A,H,k){var d=_.L(H,_.nH);if(d){d=_.r(d.commands||[]);for(var W=d.next();!W.done;W=d.next())Vti(A,W.value,k)}_.L(H,_.AS)&&A.dispatch(_.kH("commandEntity",m7b(k),{key:k,command:H}));_.L(H,wFj)&&A.dispatch(_.kH("commandEntity",m7b(k),{key:k,command:H}))};
jT[ox]=[KTQ,QaQ,_.J7,_.kI];var Ik=function(A){this.controller=A};
_.I(Ik,Yj);Ik.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u;return _.e(function(B){d=_.L(A,_.SM);z=(W=d)==null?void 0:W.targetId;if(((u=d)==null?void 0:u.signal)!=="TELL_US_WHY"||!z)return B.return();k.controller.openDialog(z,H);_.EN(B)})};
Ik[ox]=[QaQ];var YC=new _.SE("APP_STORE_TOKEN");var P7=function(A){this.store=A};
_.I(P7,Yj);P7.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O;return _.e(function(T){d=_.L(A,pvv);z=(W=d)==null?void 0:W.contentId;h=(u=H)==null?void 0:(B=u.form)==null?void 0:B.element;O=_.tx(h,[A]);z&&k.undo(z);return T.yield(O,0)})};
P7.prototype.undo=function(A){this.store.dispatch(_.kH("commandEntity",m7b(A),{key:A,command:void 0}))};
P7[ox]=[YC];var G6=function(A){this.JSC$17835_commandHandler=A};
_.I(G6,Yj);G6.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O;return _.e(function(T){k=_.L(A,XUG);d=k.flowStateKey;W=k.validationFailureCommand;z=k.submitValidFormCommand;u=lgf(_.aI,[d||""]);B=_.L(u,Cr0);((h=B)==null?0:h.isValid)&&z&&H.JSC$17835_commandHandler.resolveCommand(z);((O=B)==null?0:O.isValid)||!W||H.JSC$17835_commandHandler.resolveCommand(W);_.EN(T)})};
G6[ox]=[_.J7];var F8=function(A){this.innertubeTransportService=A};
_.I(F8,Yj);F8.prototype.resolveCommand=function(A,H){var k=this,d;return _.e(function(W){return W.yield(_.I9(k.innertubeTransportService,A,(d=H)==null?void 0:d.form).then(function(z){var u,B;H==null||(u=H.commandController)==null||(B=u.onSuccess)==null||B.call(u,A,z)},function(z){var u,B;
H==null||(u=H.commandController)==null||(B=u.onServerError)==null||B.call(u,A,z)}),0)})};
F8[ox]=[_.kI];var X8=function(){};
_.I(X8,Yj);X8.prototype.resolveCommand=function(A){var H,k,d,W;return _.e(function(z){if(H=_.L(A,_.Fg0)){if(k=H.gtmId)d=_.pZ("GL",""),_.W2(k,d);(W=H.gtmData)&&_.zB(W)}_.EN(z)})};var Dm=function(A,H,k){this.innertubeTransportService=A;this.JSC$17846_actionRouter=H;this.JSC$17846_screenManager=k};
_.I(Dm,Yj);Dm.prototype.resolveCommand=function(A){var H=this,k,d;return _.e(function(W){k=_.L(A,y$i);if(!k)return W.return();d=k.command;if(!d)return W.return();H.JSC$17846_actionRouter.triggerAction("yt-insert-rich-section-action",k);return W.yield(_.I9(H.innertubeTransportService,d,{disableCache:!0}).then(function(z){A.clickTrackingParams&&(z==null?0:z.trackingParams)&&H.JSC$17846_screenManager.graftServerVe(z.trackingParams,_.db(A.clickTrackingParams))}),0)})};
Dm[ox]=[_.kI,K4,_.Wf];VbX.bind(null,P$);var EdV=VbX.bind(null,SPw);Ug8.bind(null,P$);var Ux_=Ug8.bind(null,SPw);tbV.bind(null,P$);var l8L=tbV.bind(null,SPw);var ST=function(){};
_.I(ST,Yj);
ST.prototype.resolveCommand=function(A){var H,k,d,W,z,u,B,h,O,T;return _.e(function(m){H=_.L(A,B1Z);if(!H)return m.return();d=((k=H.operations)==null?void 0:k.operations)||[];W=_.r(d);for(z=W.next();!z.done;z=W.next())if(u=z.value,u.insertItemSectionContent){var J=u.insertItemSectionContent,g=J.contents||[];J.insertByPositionInSection?EdV(J.insertByPositionInSection.sectionTargetId,g,J.insertByPositionInSection.position):J.insertByRelativePositionInSection&&J.insertByRelativePositionInSection.sectionTargetId&&J.insertByRelativePositionInSection.itemTargetId&&
Ux_(J.insertByRelativePositionInSection.sectionTargetId,J.insertByRelativePositionInSection.itemTargetId,g,J.insertByRelativePositionInSection.relativePosition)}else u.replaceSection?(J=u.replaceSection,g={},J.replaceByTargetId?g=J.replaceByTargetId:J.replaceByGroupId&&(g={targetId:J.replaceByGroupId.groupId,newContent:J.replaceByGroupId.newContent,undoKey:""}),g.newContent&&aHA(g.targetId,{continuationItems:[g.newContent]})):u.removeItem?(J=u.removeItem,J.removeByTargetId&&J.sectionTargetId&&l8L(J.sectionTargetId,
J.removeByTargetId.targetIds||[])):u.removeSection&&(u.removeSection.removeByTargetId?(B=void 0,ttB(((B=u.removeSection)==null?void 0:B.removeByTargetId.targetIds)||[])):u.removeSection.removeByGroupId&&(h=void 0,ttB(((h=u.removeSection)==null?void 0:h.removeByGroupId.groupIds)||[])));T=((O=H.operations)==null?void 0:O.scrollConfig)||{};N5_(T);_.EN(m)})};
var ttB=function(A){A=_.r(A);for(var H=A.next();!H.done;H=A.next())aHA(H.value,{continuationItems:[]})},N5_=function(A){if(A.scrollToItem){var H=A.scrollToItem.item||{},k=H.itemTargetId;
H=H.sectionTargetId;if(k&&H){var d=document.querySelector("[data-target-id="+H+"]"),W=d==null?void 0:d.querySelector("[data-target-id="+k+"]");d&&W&&setTimeout(function(){var z=W.offsetTop-d.offsetTop,u;if(((u=A.scrollToItem)==null?void 0:u.scrollPosition)==="SCROLL_POSITION_CENTER")z-=d.offsetHeight/2,z+=W.offsetHeight/2;else{var B;((B=A.scrollToItem)==null?void 0:B.scrollPosition)==="SCROLL_POSITION_END"&&(z-=d.offsetHeight,z+=W.offsetHeight)}var h;d.scroll({top:z,behavior:(A==null?void 0:(h=A.animationConfig)==
null?void 0:h.enableAnimation)===!1?"instant":"smooth"})},100)}}};var Cp=new _.SE("CLIENT_NAME_TOKEN");var Mt3=new _.SE("DEFAULT_STORE_EXPIRATION_TOKEN");var NIi=new _.SE("CLIENT_LOCATION_SERVICE_TOKEN");var Kp=function(A,H,k){this.clientName=A||_.pZ("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=H||_.ya.getInstance();this.JSC$17875_commandHandler=k||_.n0.instance};
_.I(Kp,Yj);Kp.prototype.resolveCommand=function(A){var H=this,k,d;return _.e(function(W){d=(k=_.L(A,MGG))==null?void 0:k.onComplete;H.clientLocationService.clearLocationPlayabilityToken(H.clientName);d&&H.JSC$17875_commandHandler.resolveCommand(d);_.EN(W)})};
Kp[ox]=[Cp,NIi,_.J7];var ak=function(A){this.innertubeTransportService=A};
_.I(ak,Yj);ak.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u;return _.e(function(B){z=(d=H)==null?void 0:(W=d.form)==null?void 0:W.element;return B.yield(_.I9(k.innertubeTransportService,A,(u=H)==null?void 0:u.form).then(function(h){pcI(z,new CustomEvent("yt-service-request-completed"),{data:h},_.pZ("openPopupConfig"))}),0)})};
ak[ox]=[_.kI];var c7=function(){};
_.I(c7,Yj);c7.prototype.resolveCommand=function(A){var H,k;return _.e(function(d){H=_.L(A,pUi);k=document.querySelector("mini-app-container-view-model");if(!H||!k)return d.return();H.isPlaying?k.dispatchEvent(new Event("play")):k.dispatchEvent(new Event("pause"));_.EN(d)})};var pp=function(){};
_.I(pp,Yj);pp.prototype.resolveCommand=function(A){var H,k,d,W,z,u,B;return _.e(function(h){H=_.L(A,yz0);if((k=H)==null||!k.paramKeys)return h.return();d=H.paramKeys;W=_.p$(window.location.href);z=_.r(d);for(u=z.next();!u.done;u=z.next())B=u.value,W.JSC$10346_queryData_.remove(B);window.history.replaceState(window.history.state,document.title,W.toString());_.EN(h)})};var ndM=function(){this.dropdownMap=new Map};_.ZY_=new _.SE("DROPDOWN_CONTROLLER_TOKEN");var QU=function(A){this.controller=A};
_.I(QU,Yj);QU.prototype.resolveCommand=function(A){var H=this,k,d,W,z;return _.e(function(u){k=_.L(A,AzG);if(!k)return u.return();d=k;W=d.dropdownId;z=d.selectedOptionIndex;if(W===void 0||z===void 0)return u.return();var B=H.controller.dropdownMap.get(W);B&&B(z);_.EN(u)})};
QU[ox]=[_.ZY_];var VU=function(A){this.controller=A};
_.I(VU,Yj);VU.prototype.resolveCommand=function(A){var H=this,k;return _.e(function(d){return(k=_.L(A,qQi))?d.yield(H.controller.closeDialog(),0):d.return()})};
VU[ox]=[_.iB];var E2=function(A){this.controller=A};
_.I(E2,Yj);E2.prototype.resolveCommand=function(A){var H=this,k,d;return _.e(function(W){k=_.L(A,l4i);if(!k)return W.return();var z,u=k.panelIdentifier||((z=k.identifier)==null?void 0:z.tag);if(!u)throw Error("Ei");return(d=u)?W.yield(H.controller.hidePanel({identifier:d}),0):W.jumpTo(0)})};
E2[ox]=[_.eZ];var U2=function(A){this.controller=A};
_.I(U2,Yj);U2.prototype.resolveCommand=function(A){var H=this,k;return _.e(function(d){return(k=_.L(A,DKi))?d.yield(H.controller.closeSheet(),0):d.return()})};
U2[ox]=[_.x0];var lW=function(A,H){this.innertubeTransportService=A;this.controller=H};
_.I(lW,Yj);lW.prototype.resolveCommand=function(A){var H=this,k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return k=_.L(A,tdi),(d=k)!=null&&d.panelId?u.yield(H.controller.getReloadContinuation(k.panelId),2):u.return();if(u.nextAddress!=3)return(W=u.yieldResult)?u.yield(_.I9(H.innertubeTransportService,A,{continuation:W}),3):u.return();z=u.yieldResult;return u.yield(H.controller.updatePanel({identifier:k.panelId,panelContents:z.content,shouldFocus:!1}),0)})};
lW[ox]=[_.kI,_.eZ];var tu=function(A,H,k){this.innertubeTransportService=A;this.JSC$17916_screenManager=H;this.JSC$17916_commandHandler=k};
_.I(tu,Yj);
tu.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B;return _.e(function(h){if(h.nextAddress==1){k=_.L(A,_.Qhw);if(!k)return h.return();if(k.commands)for(d=_.r(k.commands),W=d.next();!W.done;W=d.next())z=W.value,H.JSC$17916_commandHandler.resolveCommand(z,{disableClickTracking:!0});u=_.db(A.clickTrackingParams);_.Ml(H.JSC$17916_screenManager,21760,u,{layer:7,parentLayer:0});return h.yield(_.I9(H.innertubeTransportService,A),2)}B=h.yieldResult;if(!B)return h.return();H.JSC$17916_screenManager.graftServerVe(B.trackingParams,u,
7);_.EN(h)})};
tu[ox]=[_.kI,_.Wf,_.J7];var Nf=new _.SE("PANEL_LOADING_STRATEGY_TOKEN");var Mf=function(A,H){this.controller=A;this.panelLoadingStrategy=H};
_.I(Mf,Yj);
Mf.prototype.resolveCommand=function(A,H){var k=this,d,W,z;return _.e(function(u){d=_.L(A,Cuw);if((W=d)==null||!W.panelLoadingStrategy)return u.return();z=function(B){var h,O,T,m,J,g,v,y,X,D;return _.e(function(K){O=_.L((h=B.dialogViewModel)==null?void 0:h.header,Hri);T={viewModel:B.dialogViewModel};m={};if(v=_.b("web_enable_dialog_header_label")?(J=O)==null?void 0:(g=J.headline)==null?void 0:g.content:void 0)m.ariaLabel=v;d.dismissOnBackgroundTap===!1&&(m.isModal=!0);return B.dialogViewModel?K.yield(k.controller.openDialog(T,
(D=(y=H)==null?void 0:(X=y.form)==null?void 0:X.element)!=null?D:document.body,m),0):K.return()})};
return u.yield(k.panelLoadingStrategy.execute({command:A,data:d.panelLoadingStrategy,renderFn:z,createScreenConfig:{layer:4}}),0)})};
Mf[ox]=[_.iB,Nf];var np=function(A,H,k){this.innertubeTransportService=A;this.controller=H;this.JSC$17936_screenManager=k};
_.I(np,Yj);
np.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D;return _.e(function(K){switch(K.nextAddress){case 1:d=_.L(A,_.RL);if(!d)return K.return();var N,U=d.panelIdentifier||((N=d.identifier)==null?void 0:N.tag);if(!U)throw Error("Ei");W=U;return K.yield(k.controller.isVisible(W,!0),2);case 2:if((z=K.yieldResult)&&d.blockIfPanelOpen)return K.return();h=(B=(u=k.controller).getPanelContent)==null?void 0:B.call(u,W);if(!(N=h))if(d){var p;N=((p=d.globalConfiguration)==null?void 0:
p.initialState)||d.engagementPanel;if(p=!N)p=!!(d==null?0:(U=d.engagementPanelPresentationConfigs)==null?0:U.engagementPanelPopupPresentationConfig);p&&(N=_.N$C(d.panelIdentifier,d.identifier))}else N=void 0;O=N;T=d.engagementPanelPresentationConfigs;m=d.engagementPanelExtras;return K.yield(k.controller.showPanel({identifier:W,panelContents:O,config:T,extras:m,target:(J=H)==null?void 0:(g=J.form)==null?void 0:g.element}),3);case 3:if(!d.globalConfiguration){K.jumpTo(0);break}if(d.globalConfiguration.reuseModelAndState&&
_.b("enable_ai_companion")&&(X=(y=(v=k.controller).getPanelContent)==null?void 0:y.call(v,W)))return K.return();_.Ml(k.JSC$17936_screenManager,32633);return K.yield(_.I9(k.innertubeTransportService,A),5);case 5:return D=K.yieldResult,k.JSC$17936_screenManager.graftServerVe(D.trackingParams),K.yield(k.controller.updatePanel({identifier:W,panelContents:D.content,shouldFocus:!0,extras:m,updatePanelContinuationData:D.updatePanelContinuationData}),0)}})};
np[ox]=[_.kI,_.eZ,_.Wf];var Zm=function(A,H){this.controller=A;this.panelLoadingStrategy=H};
_.I(Zm,Yj);
Zm.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J,g,v;return _.e(function(y){d=_.L(A,_.d9);if((W=d)==null||!W.panelLoadingStrategy)return y.return();B=f8_(k.controller,(z=H)==null?void 0:(u=z.form)==null?void 0:u.element);O=(h=d.contextualSheetPresentationConfig)==null?void 0:h.position;m=(T=d.contextualSheetPresentationConfig)==null?void 0:T.hoverConfig;g=(J=d.contextualSheetPresentationConfig)==null?void 0:J.expandToFullWidth;v=function(X){var D,K;return _.e(function(N){if(!X.sheetViewModel)return N.return();if(m){var U=
k.controller;U.shouldPreventClosingWhileHovered=!!m.preventCloseWhileHovered;var p;U.hideDelayMs=(p=m.hideDelayMs)!=null?p:0}return N.yield(k.controller.openSheet({viewModel:X.sheetViewModel,sheetPosition:O,expandToFullWidth:g},B,(D=H)==null?void 0:(K=D.form)==null?void 0:K.element),0)})};
return y.yield(k.panelLoadingStrategy.execute({command:A,data:d.panelLoadingStrategy,renderFn:v,createScreenConfig:{layer:0}}),0)})};
Zm[ox]=[_.x0,Nf];var fp=function(A,H){this.controller=A;this.JSC$17947_commandHandler=H};
_.I(fp,Yj);fp.prototype.resolveCommand=function(A,H){var k=this,d,W,z;return _.e(function(u){if(u.nextAddress==1){d=_.L(A,Z1i);var B=_.L(d.showCommand,_.RL),h,O,T=(O=B==null?void 0:B.panelIdentifier)!=null?O:B==null?void 0:(h=B.identifier)==null?void 0:h.tag;if(!T)throw Error("Fi");W=T;return u.yield(k.controller.isVisible(W),2)}return(z=u.yieldResult)?u.yield(k.controller.hidePanel({identifier:W}),0):u.yield(k.JSC$17947_commandHandler.resolveCommand(d.showCommand,H),0)})};
fp[ox]=[_.eZ,_.J7];var wR=function(A,H,k){this.innertubeTransportService=A;this.controller=H;this.JSC$17950_screenManager=k};
_.I(wR,Yj);
wR.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z;return _.e(function(WV){switch(WV.nextAddress){case 1:return d=k=_.L(A,Hkp),W=d.targetPanelIdentifier,z=d.contentSourcePanelIdentifier,u=d.globalConfiguration,((B=W)==null?0:B.tag)&&((h=z)==null?0:h.tag)?u?WV.yield(H.controller.showPanel({identifier:W.tag,panelContents:_.N$C(W.tag,W)}),5):WV.yield((J=(m=H.controller).getPanel)==null?void 0:J.call(m,z.tag),4):WV.return();case 4:g=WV.yieldResult;O=(v=g)==
null?void 0:(X=(y=v).getPanelContent)==null?void 0:X.call(y);WV.jumpTo(3);break;case 5:return WV.yield(_.I9(H.innertubeTransportService,A),6);case 6:D=WV.yieldResult,((K=D)==null?0:K.trackingParams)&&H.JSC$17950_screenManager.graftServerVe(D.trackingParams),O=(N=D)==null?void 0:N.content,T=(U=D)==null?void 0:U.updatePanelContinuationData;case 3:if(M=(p=O)==null?void 0:p.engagementPanelSectionListRenderer)return WV.yield(H.controller.showPanel({identifier:W.tag,panelUpdatableFields:{content:M.content,
secondaryHeaderContent:(Z=M.header)!=null?Z:{},targetId:M.targetId,loggingDirectives:M.loggingDirectives},updatePanelContinuationData:T}),0);WV.jumpTo(0)}})};
wR[ox]=[_.kI,_.eZ,_.Wf];var ok=function(){};
_.I(ok,Yj);ok.prototype.resolveCommand=function(A){var H,k,d;return _.e(function(W){if(W.nextAddress==1)return(H=_.L(A,kdA))?W.yield(_.NN(),2):W.return();k=W.yieldResult;if(!k)return W.return();var z=k,u=(d=H)==null?void 0:d.languageCode,B;(z==null?0:(B=z.isReady)==null?0:B.call(z))&&(u=MbN(z,u))&&z.setAudioTrack(u);_.EN(W)})};var $C=function(){};
_.I($C,my);_.q=$C.prototype;_.q.getApiPaths=function(){return oFj};
_.q.getExtension=function(A){return _.L(A,_.Yr)};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$14498_getStoreKey=function(A){if((A=this.getExtension(A))&&A.videoId){var H={videoId:A.videoId};A.playlistId&&(H.playlistId=A.playlistId);A.index&&(H.index=A.index);A.params&&(H.params=A.params);return _.IC("next",H)}};
_.q.JSC$14491_getClientScreen=function(A){var H;return((H=A.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.q.JSC$14491_buildRequest=function(A,H,k){H.videoId&&(A.videoId=H.videoId);H.playlistId&&(A.playlistId=H.playlistId);H.params&&(A.params=H.params);H.index!==void 0&&(A.playlistIndex=H.index);A.racyCheckOk=!(!k.racyCheckOk&&!H.racyCheckOk);A.contentCheckOk=!!H.contentCheckOk;k.contentPlaybackContext&&(A.autonavState=k.contentPlaybackContext.autonavState,A.playbackContext={vis:k.contentPlaybackContext.vis,lactMilliseconds:k.contentPlaybackContext.lactMilliseconds});k.prefetchPlaybackContext&&(A.context.request||
(A.context.request={}),A.context.request.isPrefetch=!0);_.b("captions_hats_killswitch")||(H=_.sH().getFlag(65),H=H!=null?!H:!1,k=!!_.r4("yt-player-sticky-caption"),A.captionsRequested=H&&k)};
_.q.getRequestConfig=function(A){A=this.JSC$14498_getStoreKey(A);var H;A&&(H={storeStrategy:{storeKey:A}});_.b("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="wn_s",H.responseTick="wn_r");return H};
var AN=function(){};
_.I(AN,my);AN.prototype.getApiPaths=function(){return oFj};
AN.prototype.getExtension=function(A){return _.L(A,_.Tc)};
AN.prototype.JSC$14491_buildRequest=function(A,H){H.token&&(A.continuation=H.token)};var Hk=function(){this.innerTubeTransport=_.wj().resolve(_.kI);this.miniplayerService=_.wj().resolve(_.L6)};
_.I(Hk,Yj);var wyG=function(A){var H;return _.e(function(k){H=_.pZ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;A.JSC$17975_mainAppPlayer=new FJ(H);document.addEventListener("yt-navigate-start",A.JSC$17975_pauseOnNavigation.bind(A));_.EN(k)})},odR=function(A,H){var k,d,W,z;
return _.e(function(u){if(u.nextAddress==1){k=new $C;d=k.JSC$14491_getRequest(H);if(!d)return u.return(void 0);W=d.innerTubeRequest;return u.yield(_.yD(A.innerTubeTransport,W,"/youtubei/v1/next"),2)}z=u.yieldResult;var B;var h,O,T=(B=z.contents)==null?void 0:(h=B.twoColumnWatchNextResults)==null?void 0:(O=h.playlist)==null?void 0:O.playlist,m;B=(T==null?0:(m=T.contents)==null?0:m.length)?T:void 0;return u.return(B)})},$xG=function(A,H){var k,d,W,z,u;
return _.e(function(B){if(B.nextAddress==1)return k=A.JSC$17975_mainAppPlayer,B.yield(k.api,2);if(B.nextAddress!=3)return d=B.yieldResult,H.watchCommand?B.yield(odR(A,H.watchCommand),3):B.return();W=B.yieldResult;if((z=W)==null||!z.contents)return B.return();u=W.contents.map(function(h){var O;return(O=h.playlistPanelVideoRenderer)==null?void 0:O.videoId}).filter(function(h){return!!h}).map(function(h){return{encrypted_id:h}});
d.updatePlaylist({video:u});_.EN(B)})},AjM=function(A,H){var k,d,W;
return _.e(function(z){return z.nextAddress==1?(k=A.JSC$17975_mainAppPlayer,W=(d=H.playerParams)!=null?d:"",H.externalVideoId?z.yield(k.loadVideoWithPlayerVars({videoId:H.externalVideoId,audio_only:"1",player_params:W}),2):z.jumpTo(2)):H.watchCommand?z.yield($xG(A,H),0):z.jumpTo(0)})};
Hk.prototype.JSC$17975_pauseOnNavigation=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1)return H=A.JSC$17975_mainAppPlayer,d.yield(H.api,2);k=d.yieldResult;k.pauseVideo();_.EN(d)})};
Hk.prototype.pauseVideo=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1)return H=A.JSC$17975_mainAppPlayer,d.yield(H.api,2);k=d.yieldResult;k.pauseVideo();_.EN(d)})};
Hk.prototype.playVideo=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1)return H=A.JSC$17975_mainAppPlayer,d.yield(H.api,2);k=d.yieldResult;k.playVideo();_.EN(d)})};
var HC1=function(A){var H,k;return _.e(function(d){if(d.nextAddress==1)return H=A.JSC$17975_mainAppPlayer,d.yield(H.api,2);k=d.yieldResult;k.mute();_.EN(d)})},s8L=function(A){var H,k;
return _.e(function(d){if(d.nextAddress==1)return H=A.JSC$17975_mainAppPlayer,d.yield(H.api,2);k=d.yieldResult;k.unMute();_.EN(d)})};
Hk.prototype.stopVideo=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1)return H=A.JSC$17975_mainAppPlayer,d.yield(H.api,2);k=d.yieldResult;k.stopVideo();_.EN(d)})};
var kEV=function(A,H){return _.e(function(k){switch(k.nextAddress){case 1:switch(H){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return k.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return k.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return k.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return k.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return k.jumpTo(6)}k.jumpTo(0);break;case 2:return k.yield(A.playVideo(),8);case 8:k.jumpTo(0);break;case 3:return k.yield(A.pauseVideo(),
9);case 9:k.jumpTo(0);break;case 4:return k.yield(A.stopVideo(),10);case 10:k.jumpTo(0);break;case 5:return k.yield(HC1(A),11);case 11:k.jumpTo(0);break;case 6:return k.yield(s8L(A),12);case 12:k.jumpTo(0)}})};
Hk.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B;return _.e(function(h){return h.nextAddress==1?(k=_.L(A,GLN),((d=k)==null?0:d.newPlaybackParams)||((W=k)==null?0:W.controlAction)?H.JSC$17975_mainAppPlayer?h.jumpTo(2):h.yield(wyG(H),2):h.return()):((z=k)==null?0:z.newPlaybackParams)?(H.miniplayerService.isMiniplayerActive()&&((u=H.miniplayerService.getPlayerElement())==null||u.pause()),B=k.newPlaybackParams,B.externalVideoId||B.externalPlaylistId?h.yield(AjM(H,B),0):h.return()):h.yield(kEV(H,
k.controlAction),0)})};var sr=function(A){this.JSC$17981_commandHandler=A};
_.I(sr,Yj);
sr.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B;return _.e(function(h){if(h.nextAddress==1)return(k=_.L(A,dEZ))?h.yield(_.NN(),2):h.return();d=h.yieldResult;if(!d)return h.return();var O=d,T=(W=k)==null?void 0:W.languageCode,m=(z=k)==null?void 0:z.isAutoTranslated;O.getVideoData&&_.Z9r(O).length&&((T=w3v(O,T,m))?O.setOption("captions","track",T):(O.setOption("captions","stickyLoading",{}),O.setOption("captions","track",{})));u=d.isSubtitlesOn()?_.$r("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.$r("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");B=_.SX(u,5E3);H.JSC$17981_commandHandler.resolveCommand(B);_.EN(h)})};
sr[ox]=[_.J7];var kA=function(A,H){this.shortsPlayerPromise=A;this.JSC$17985_commandHandler=H};
_.I(kA,Yj);
kA.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O;return _.e(function(T){if(T.nextAddress==1)return(k=_.L(A,Y7Q))?T.yield(H.shortsPlayerPromise,2):T.return();d=T.yieldResult;var m=oKv(d);m!=null&&m.length||(d.loadModule("captions"),m=oKv(d));W=m;if((z=W)==null||!z.length)return u=_.$r("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),B=_.SX(u),H.JSC$17985_commandHandler.resolveCommand(B),T.return();d.toggleSubtitles();h=d.isSubtitlesOn()?_.$r("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.$r("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");O=_.SX(h);H.JSC$17985_commandHandler.resolveCommand(O);_.EN(T)})};
kA[ox]=[_.IBQ,_.J7];var dM=function(A){this.JSC$17988_actionRouter=A;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(H,k){H.triggerAction("yt-dismiss-shopping-timely-shelf-action",k);(H=_.wj().resolve(_.fZ(_.paw)))&&H.dismissFeaturedProductOverlay()}]])};
_.I(dM,Yj);dM.prototype.resolveCommand=function(A){var H=this,k,d,W;return _.e(function(z){k=_.L(A,ryp);if((d=k)==null||!d.overlayId)return z.return();W=H.dismissPlayerOverlayActions.get(k.overlayId);if(!W)throw Error("Gi`"+k.overlayId);W(H.JSC$17988_actionRouter,k);_.EN(z)})};
dM[ox]=[K4];var Wk=function(A){this.JSC$17992_playerPromise=A};
_.I(Wk,Yj);Wk.prototype.resolveCommand=function(A){var H=this,k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return(k=_.L(A,Mdi))?u.yield(H.JSC$17992_playerPromise,2):u.return();d=u.yieldResult;W=d.getVideoData().video_id;k.videoId===W&&(z=Number(k.offsetFromVideoStartMilliseconds),z>=0&&d.seekTo(z/1E3));_.EN(u)})};
Wk[ox]=[_.VI];var dC_=_.Nw("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),zR=function(A){this.store=A};
_.I(zR,Yj);
var WAe=function(A){var H,k,d,W;return _.e(function(z){if(z.nextAddress==1)return H=_.pZ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,k=_.pZ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,d=H||k,A.JSC$17996_mainAppPlayer=new FJ(d),z.yield(A.JSC$17996_mainAppPlayer.api,2);W=z.yieldResult;W.addEventListener("onStateChange",A.JSC$17996_playerStateChangeListener.bind(A));document.addEventListener("yt-page-data-updated",A.JSC$17996_pauseOnNavigation.bind(A));window.addEventListener("state-navigatestart",
A.JSC$17996_pauseOnNavigation.bind(A));_.EN(z)})};
zR.prototype.JSC$17996_playerStateChangeListener=function(A){switch(A){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"}zCB(this)};
var zCB=function(A){A.store.dispatch(_.kH("sfvAudioItemCurrentlyPlayingEntity",dC_,{key:dC_,externalVideoId:A.externalVideoId,sfvAudioItemPlaybackState:A.playbackState,nowPlayingEntityValue:A.nowPlayingEntityValue}))};
zR.prototype.JSC$17996_pauseOnNavigation=function(){var A=this,H,k,d,W;return _.e(function(z){if(z.nextAddress==1){if(!A.JSC$17996_mainAppPlayer){var u=new _.Ti("Error: mainAppPlayer is unavailable",A.JSC$17996_mainAppPlayer);_.I3(u);return z.return()}return z.yield(A.JSC$17996_mainAppPlayer.api,2)}H=z.yieldResult;d=(k=H)==null?void 0:k.getPlayerState();d!==1||(W=H)!=null&&W.pauseVideo();_.EN(z)})};
zR.prototype.playVideo=function(A,H,k){var d=this,W,z;return _.e(function(u){if(u.nextAddress==1)return u.yield((W=d.JSC$17996_mainAppPlayer)==null?void 0:W.api,2);z=u.yieldResult;if(!d.JSC$17996_mainAppPlayer||!z){var B=new _.Ti("Error: mainAppPlayer is unavailable",d.JSC$17996_mainAppPlayer);_.I3(B);return u.return()}return u.yield(d.JSC$17996_mainAppPlayer.loadVideoWithPlayerVars({videoId:d.externalVideoId,audio_only:"1",start:A/1E3,end:A/1E3+H,player_params:k}),0)})};
zR.prototype.pauseVideo=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1){if(!A.JSC$17996_mainAppPlayer){var W=new _.Ti("Error: mainAppPlayer is unavailable",A.JSC$17996_mainAppPlayer);_.I3(W);return d.return()}return d.yield(A.JSC$17996_mainAppPlayer.api,2)}H=d.yieldResult;(k=H)==null||k.pauseVideo();_.EN(d)})};
zR.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U;return _.e(function(p){if(p.nextAddress==1)return k=_.L(A,jgA),W=(d=k)==null?void 0:d.nowPlayingEntityValue,u=(z=k)==null?void 0:z.externalVideoId,m=Number((T=(B=k)==null?void 0:(h=B.defaultStartPoints)==null?void 0:(O=h[0])==null?void 0:O.offsetMs)!=null?T:"0"),D=Number((X=(J=k)==null?void 0:(g=J.defaultStartPoints)==null?void 0:(v=g[0])==null?void 0:(y=v.duration)==null?void 0:y.seconds)!=null?X:"15"),U=(N=
(K=k)==null?void 0:K.playerParams)!=null?N:"",W&&u?H.JSC$17996_mainAppPlayer?p.jumpTo(2):p.yield(WAe(H),2):p.return();if(p.nextAddress!=6){if(H.nowPlayingEntityValue&&W===H.nowPlayingEntityValue)return H.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?p.yield(H.pauseVideo(),0):p.yield(H.playVideo(m,D,U),0);H.externalVideoId=u;H.nowPlayingEntityValue=W;H.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return p.yield(H.playVideo(m,D,U),6)}zCB(H);return p.jumpTo(0)})};
zR[ox]=[tv];var qz=function(A){this.JSC$18014_commandHandler=A};
_.I(qz,Yj);qz.prototype.resolveCommand=function(A,H){var k=this,d,W,z;return _.e(function(u){if(u.nextAddress==1)return(d=_.L(A,WLw))?u.yield(_.NN(),2):u.return();W=u.yieldResult;if(!W)return u.return();(z=$gb(W))&&k.JSC$18014_commandHandler.resolveCommand(z,H);_.EN(u)})};
qz[ox]=[_.J7];var rM=function(A){this.JSC$18020_commandHandler=A};
_.I(rM,Yj);rM.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B;return _.e(function(h){if(h.nextAddress==1)return(d=_.L(A,zDj))?h.yield(_.NN(),2):h.return();W=h.yieldResult;if(!W)return h.return();(z=d5C(W))?k.JSC$18020_commandHandler.resolveCommand(z,H):(u=_.$r("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),B=_.SX(u),k.JSC$18020_commandHandler.resolveCommand(B));_.EN(h)})};
rM[ox]=[_.J7];var u4=function(A){this.JSC$18023_playerPromise=A};
_.I(u4,Yj);u4.prototype.resolveCommand=function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1)return(k=_.L(A,hbi))?W.yield(H.JSC$18023_playerPromise,2):W.return();d=W.yieldResult;d.isFullscreen()&&d.wakeUpControls();_.EN(W)})};
u4[ox]=[_.VI];var Bk=function(A){this.JSC$18026_playerPromise=A};
_.I(Bk,Yj);Bk.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u;return _.e(function(B){if(B.nextAddress==1){k=_.L(A,nfJ);if(!k)return B.return();d=k.overlayRenderer;return d?(W=_.L(d,Jzp))?B.yield(H.JSC$18026_playerPromise,3):B.jumpTo(0):B.return()}z=B.yieldResult;z.renderChapterSeekingAnimation(1,_.PK(W.text),(u=W.icon)==null?void 0:u.iconType);_.EN(B)})};
Bk[ox]=[_.VI];var ex=function(A){this.store=A};
_.I(ex,Yj);
ex.prototype.resolveCommand=function(A){var H=this,k,d,W;return _.e(function(z){if(z.nextAddress==1){k=_.L(A,F6A);if(!k)return z.return();d="";(W=H.store.getState().collabInviteLink)&&k.id===W.playlistId?d=W.inviteLinkURL:k.shortUrl&&(d=k.shortUrl);return d?z.yield(navigator.clipboard.writeText(d),3):z.jumpTo(0)}var u={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.$r("COPY_LINK_SUCCESS_TOAST")}}}}};_.wj().resolve(_.J7).resolveCommand(u);_.EN(z)})};
ex[ox]=[YC];var xA=function(A,H){this.innertubeTransportService=A;this.JSC$18036_commandHandler=H};
_.I(xA,Yj);xA.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J;return _.e(function(g){if(g.nextAddress==1)return(d=_.L(A,_.L4))?g.yield(_.I9(k.innertubeTransportService,A,(W=H)==null?void 0:W.form),2):g.return();(z=g.yieldResult)&&z.errorMetadata&&(u=z,B=_.SX(u.error.message),k.JSC$18036_commandHandler.resolveCommand(B));h=z;if((O=h)==null?0:O.actions)for(T=_.r(h.actions),m=T.next();!m.done;m=T.next())J=m.value,k.JSC$18036_commandHandler.resolveCommand(J);_.EN(g)})};
xA[ox]=[_.kI,_.J7];var i4=function(){};
_.I(i4,Yj);i4.prototype.resolveCommand=function(A){var H;return _.e(function(k){H=_.L(A,Jgw);if(!H)return k.return();(new oGw(H)).show();_.EN(k)})};_.hN=new _.SE("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Or=function(A,H,k,d){this.store=A;this.innertubeTransportService=H;this.controller=k;this.JSC$18044_commandHandler=d};
_.I(Or,Yj);
Or.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z,WV,hA,qv,eN,mr;return _.e(function(Cl){if(Cl.nextAddress==1){d=_.L(A,_.Tr);if(!d)return Cl.return();if(d.clientActions){W=_.r(d.clientActions);for(z=W.next();!z.done;z=W.next())u=z.value,k.JSC$18044_commandHandler.resolveCommand(u,H);var pl,UC=H==null?void 0:(pl=H.form)==null?void 0:pl.element;UC&&_.Ed(UC,"yt-dismissible-item-action",d.clientActions)}return Cl.yield(_.I9(k.innertubeTransportService,A,(B=
H)==null?void 0:B.form),2)}if(h=Cl.yieldResult)h.errorMetadata?(O=h,T=_.SX(O.error.message),k.JSC$18044_commandHandler.resolveCommand(T),"error"in h&&((m=H)==null?0:(J=m.commandController)==null?0:J.onServerError)&&((g=H)==null||(v=g.commandController)==null||v.onServerError(A,h))):(y=H)==null||(X=y.commandController)==null||(K=(D=X).onSuccess)==null||K.call(D,A,h);N=h;((U=N)==null?0:U.collaborationInviteLink)&&d.playlistId&&(_.b("web_enable_invite_collaborators_link")||_.b("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
k.store.dispatch(_.p8({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:d.playlistId,inviteLinkUrl:N.collaborationInviteLink}}));((p=N)==null?0:p.redirectEndpoint)&&k.JSC$18044_commandHandler.resolveCommand(N.redirectEndpoint);((M=N)==null?0:(Z=M.newHeader)==null?0:Z.playlistHeaderRenderer)?qIB(k.controller,N.newHeader.playlistHeaderRenderer):((WV=N)==null?0:(hA=WV.newHeader)==null?0:hA.musicEditablePlaylistDetailHeaderRenderer)&&qIB(k.controller,N.newHeader.musicEditablePlaylistDetailHeaderRenderer);
k.controller.playlistVideoListElement&&((qv=N)==null?0:(eN=qv.playlistEditResults)==null?0:(mr=eN[0])==null?0:mr.playlistEditVideoAddedResultData)&&((UC=k.controller.playlistVideoListElement)==null||UC.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:N.playlistEditResults[0].playlistEditVideoAddedResultData})));_.EN(Cl)})};
Or[ox]=[_.O7,_.kI,_.hN,_.J7];var RT=function(A,H){this.controller=A;this.JSC$18054_commandHandler=H};
_.I(RT,Yj);RT.prototype.resolveCommand=function(A,H){var k=this,d,W,z;return _.e(function(u){d=_.L(A,XDQ);k.controller.showRefreshPill&&((W=d)==null?0:W.command)&&(k.JSC$18054_commandHandler.resolveCommand((z=d)==null?void 0:z.command,H),k.controller.showRefreshPill=!1);_.EN(u)})};
RT[ox]=[_.oe,_.J7];var TR=function(A,H){this.store=A;this.JSC$18058_commandHandler=H||_.n0.instance};
_.I(TR,Yj);TR.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J;return _.e(function(g){d=_.L(A,N10);W=k.store.getState().radioButtonGroup;if((z=d)==null?0:z.command)k.JSC$18058_commandHandler.resolveCommand((u=d)==null?void 0:u.command,H);else if(W&&((B=d)==null?void 0:B.formId)===W.currentFormId)for(h=Object.values(W.commandsMap),O=_.r(h),T=O.next();!T.done;T=O.next())m=T.value,(J=_.h7(m))&&k.JSC$18058_commandHandler.resolveCommand(J,H);_.EN(g)})};
TR[ox]=[_.O7];var m2=new _.SE("USER_PREFS");var JN=function(A){this.JSC$18063_prefCookie=A};
_.I(JN,Yj);JN.prototype.resolveCommand=function(A){var H=this,k;return _.e(function(d){(k=_.L(A,edG))&&typeof k.useListView==="boolean"&&(_.kB(0,155,k.useListView),H.JSC$18063_prefCookie.save());_.EN(d)})};
JN[ox]=[m2];var gM=function(A){this.JSC$18067_prefCookie=A};
_.I(gM,Yj);gM.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u;return _.e(function(B){k=_.L(A,L6w);if((d=k)==null||!d.gl)return B.return();W=k.gl;z={persist_gl:"1",gl:W};H.JSC$18067_prefCookie.set("gl",W);H.JSC$18067_prefCookie.save();u=WMV(z);_.J1(u);_.EN(B)})};
gM[ox]=[m2];var b4=function(A){this.JSC$18071_prefCookie=A};
_.I(b4,Yj);b4.prototype.resolveCommand=function(A){var H=this,k,d;return _.e(function(W){k=_.L(A,SuJ);if(!k)return W.return();d=!1;k.flagNum&&typeof k.value==="boolean"?(_.kB(0,k.flagNum,k.value),d=!0):k.key&&typeof k.stringValue==="string"&&(H.JSC$18071_prefCookie.set(k.key,k.stringValue),d=!0);d&&H.JSC$18071_prefCookie.save();_.EN(W)})};
b4[ox]=[m2];var LB=new _.SE("PREF_STORAGE_PROMISE_TOKEN");var vk=function(A){this.JSC$18075_prefStoragePromise=A};
_.I(vk,Yj);vk.prototype.resolveCommand=function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1)return(k=_.L(A,K6A))?W.yield(H.JSC$18075_prefStoragePromise,2):W.return();d=W.yieldResult;return d===void 0||k.key===void 0||k.value===void 0?W.return():W.yield(d.set(k.key,k.value),0)})};
vk[ox]=[LB];var yk=function(A){this.innertubeTransportService=A};
_.I(yk,Yj);yk.prototype.resolveCommand=function(A,H){var k=this,d,W;return _.e(function(z){(d=_.L(A,_.fJA))&&d&&d.isFirstRequest&&(_.hZ("search_overview_answer"),_.OH("so_rq",void 0,"search_overview_answer"));return z.yield(_.I9(k.innertubeTransportService,A,(W=H)==null?void 0:W.form),0)})};
yk[ox]=[_.kI];var rj_=function(){};
_.I(rj_,Yj);
rj_.prototype.resolveCommand=function(A){var H,k,d,W,z,u,B,h,O;return _.e(function(T){H=_.L(A,NCN);if((k=H)==null?0:k.sectionIdentifier){if(H.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(W=(d=document.getElementsByTagName(H.sectionIdentifier))==null?void 0:d.item(0))W.scrollIntoView({behavior:"smooth"}),(z=QyN(W))&&z.focus({preventScroll:!0});return T.return()}u=document.querySelector("[section-identifier="+H.sectionIdentifier+"]");B=document.querySelector("[section-identifier="+H.referenceSectionIdentifier+
"]");if(!u)return T.return();h=H.verticalScrollOffsetDp?H.verticalScrollOffsetDp:0;B&&(h-=B.offsetTop);window.scrollTo({top:u.offsetTop+h,behavior:"smooth"});(O=QyN(u))&&O.focus({preventScroll:!0})}_.EN(T)})};var jx=function(A){this.JSC$18087_commandHandler=A};
_.I(jx,Yj);
jx.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h;return _.e(function(O){if(O.nextAddress==1){k=_.L(A,JBN);if(!k||!k.imageBytes||!navigator.clipboard)return O.return();if(k.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.I3(Error("Ii")),O.return();_.S_(O,2);W=(d=k)==null?void 0:d.imageBytes;z=W.replace(/-/g,"+").replace(/_/g,"/");u=p3m(z);B={};h=[new ClipboardItem((B[u.type]=u,B))];return O.yield(navigator.clipboard.write(h),4)}if(O.nextAddress!=2)return k.successCommand&&
H.JSC$18087_commandHandler.resolveCommand(k.successCommand),_.QN(O,0);_.VA(O);k.errorCommand&&H.JSC$18087_commandHandler.resolveCommand(k.errorCommand);_.EN(O)})};
jx[ox]=[_.J7];var IT=function(A,H){this.innertubeTransportService=A;this.JSC$18091_commandHandler=H};
_.I(IT,Yj);IT.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B;return _.e(function(h){if(h.nextAddress==1)return(d=_.L(A,gLj))?h.yield(_.I9(k.innertubeTransportService,A,(W=H)==null?void 0:W.form),2):h.return();(z=h.yieldResult)&&z.errorMetadata&&d.onFailureCommand&&k.JSC$18091_commandHandler.resolveCommand(d.onFailureCommand);u=z;((B=u)==null?0:B.shareCommand)&&k.JSC$18091_commandHandler.resolveCommand(u.shareCommand,H);_.EN(h)})};
IT[ox]=[_.kI,_.J7];var YA=function(){};
_.I(YA,Yj);YA.prototype.resolveCommand=function(A){var H,k;return _.e(function(d){H=_.L(A,PSZ);if(!H||!navigator.share)return d.return();k={url:H.url};try{return d.return(navigator.share(k))}catch(W){}_.EN(d)})};var Pk=function(){};
_.I(Pk,Yj);Pk.prototype.resolveCommand=function(){return _.e(function(A){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.EN(A)})};var GR=function(A){this.JSC$18101_navigationConfirmationService=A};
_.I(GR,Yj);GR.prototype.resolveCommand=function(){var A=this;return _.e(function(H){A.JSC$18101_navigationConfirmationService.cancelPendingNavigation();_.EN(H)})};
GR[ox]=[k0];var F0=function(A){this.JSC$18104_screenManager=A};
_.I(F0,Yj);F0.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O;return _.e(function(T){W=(d=H.form)==null?void 0:d.event;u=(z=H.form)==null?void 0:z.element;if(!W)throw new _.Ti("Event not passed in when resolving command");B=_.r(W.composedPath());for(h=B.next();!h.done;h=B.next())if(O=h.value,O.tagName==="YT-COPY-LINK-RENDERER")return O.copyUrlToClipboard(),u&&_.vn(k.JSC$18104_screenManager,u),T.return();_.EN(T)})};
F0[ox]=[_.Wf];var X0=function(){this.JSC$18108_miniAppClientDataProvider=_.wj().resolve(_.QR)};
_.I(X0,Yj);X0.prototype.resolveCommand=function(){var A=this,H,k;return _.e(function(d){if(A.JSC$18108_miniAppClientDataProvider.clientData.has("video_id")){var W=A.JSC$18108_miniAppClientDataProvider,z=W.clientData.get("video_id");z&&W.clientData.delete("video_id");H="https://youtube.com/watch?v="+z;k=_.nx(H);if(k===void 0)throw Error("Ji`"+H);_.rU(window,k)}_.EN(d)})};var DN=function(){};
_.I(DN,Yj);DN.prototype.resolveCommand=function(){return _.e(function(A){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.EN(A)})};var Sx=function(){};
_.I(Sx,Yj);Sx.prototype.resolveCommand=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield(_.wYV(window.document.documentElement),2);(A=document.querySelector("mini-app-container-view-model iframe"))&&A.focus();_.EN(H)})};var CB=function(A){this.JSC$18115_navigationConfirmationService=A};
_.I(CB,Yj);
CB.prototype.resolveCommand=function(){var A=this;return _.e(function(H){var k=A.JSC$18115_navigationConfirmationService,d=_.wj().resolve(_.f1),W;if(((W=k.navigateParams)==null?void 0:W.data)!==void 0){var z;_.ulp(d,k.navigateParams.endpoint,k.navigateParams.data,(z=k.navigateParams.navigationType)!=null?z:1,k.navigateParams.tempData,k.navigateParams.isMiniplayer,void 0,!0);k.navigateParams=void 0;k.customConfirmationCommand=void 0}else k.navigateParams&&(d.navigate(k.navigateParams.endpoint,k.navigateParams.reload,
k.navigateParams.params,k.navigateParams.tempData,k.navigateParams.requestType,k.navigateParams.createScreenConfig,!0),k.navigateParams=void 0,k.customConfirmationCommand=void 0);_.EN(H)})};
CB[ox]=[k0];var KB=function(){};
_.I(KB,Yj);KB.prototype.resolveCommand=function(){return _.e(function(A){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.EN(A)})};var aT=function(A){this.JSC$18120_prefStorage=A};
_.I(aT,Yj);aT.prototype.resolveCommand=function(){var A=this,H,k;return _.e(function(d){switch(d.nextAddress){case 1:return d.yield(A.JSC$18120_prefStorage,2);case 2:return(H=d.yieldResult)?d.yield(H.set("sfvle",!1),3):d.return();case 3:return d.yield(H.set("sfvles",!0),4);case 4:k=_.sH(),_.kB(0,203,!1),_.kB(0,204,!0),k.save(),_.EN(d)}})};
aT[ox]=[LB];var ck=function(A){this.JSC$18123_prefStorage=A};
_.I(ck,Yj);ck.prototype.resolveCommand=function(){var A=this,H,k;return _.e(function(d){switch(d.nextAddress){case 1:return d.yield(A.JSC$18123_prefStorage,2);case 2:return(H=d.yieldResult)?d.yield(H.set("sfvle",!0),3):d.return();case 3:return d.yield(H.set("sfvles",!0),4);case 4:k=_.sH(),_.kB(0,203,!0),_.kB(0,204,!0),k.save(),_.EN(d)}})};
ck[ox]=[LB];_.uEB=new _.SE("SNACKBAR_CONTROLLER_TOKEN");_.BW_=new _.SE("SHOULD_SHOW_PIVOT_BAR_TOKEN");var pB=function(A){this.controller=A};
_.I(pB,Yj);pB.prototype.resolveCommand=function(A){var H=this,k;return _.e(function(d){k=_.L(A,Slw);if(!k)return d.return();var W=H.controller;W.closeSnackbarFn&&W.closeSnackbarFn();_.EN(d)})};
pB[ox]=[_.uEB];var Qk=function(A,H){this.controller=A;this.JSC$18130_sheetController=H};
_.I(Qk,Yj);Qk.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h;return _.e(function(O){d=_.L(A,Kfw);if(!d)return O.return();u=f8_(k.JSC$18130_sheetController,(W=H)==null?void 0:(z=W.form)==null?void 0:z.element);B=_.L(d.content,fpk);if(!B)return O.return();var T=k.controller,m=B,J=(h=d.animationStyle)!=null?h:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(T.showSnackbarFn)T.showSnackbarFn({snackbarViewModel:m,animationStyle:J,durationMs:d.durationSeconds*1E3,target:u});else throw Error("Dj");_.EN(O)})};
Qk[ox]=[_.uEB,_.x0];var Vk=function(){};
_.I(Vk,Yj);Vk.prototype.resolveCommand=function(A){var H;return _.e(function(k){H=_.L(A,CSi);if(!H||typeof H.key!=="string"||typeof H.value!=="string")return k.return();window.localStorage.setItem(H.key,H.value);_.EN(k)})};var Er=function(A){this.store=A};
_.I(Er,Yj);Er.prototype.resolveCommand=function(A){var H=this,k;return _.e(function(d){k=_.L(A,c5V);if(!k||!k.stepId||!k.token)return d.return();H.store.dispatch(G8A({stepId:k.stepId,token:k.token,isSelected:!1}));_.EN(d)})};
Er[ox]=[YC];var Ur=function(A,H,k){this.innertubeTransportService=A;this.store=H;this.JSC$18142_screenManager=k};
_.I(Ur,Yj);
Ur.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z,WV,hA,qv,eN,mr,Cl;return _.e(function(pl){k=_.L(A,jnw);if(!k||(d=k.stepIds)==null||!d.length)return pl.return();W=H.store.getState().talkToRecs;z=[];u=[];B=_.r(k.stepIds);for(h=B.next();!h.done;h=B.next())for(O=h.value,T=void 0,(m=(T=W.stepStates[O])==null?void 0:T.userQuery)&&u.push({userQuery:k.submitEmptyUserQuery?"":m.userQuery,userQueryToken:m.token}),g=J=void 0,v=(g=(J=W.stepStates[O])==null?void 0:
J.selectionStates)!=null?g:{},y=_.r(Object.entries(v)),X=y.next();!X.done;X=y.next())D=X.value,K=_.r(D),N=K.next().value,U=K.next().value,p=N,M=U,M.isSelected&&z.push(p);Z={selectedChipTokens:z,userQueries:u,submittedStepIds:k.stepIds};WV={browseTalk2recsFormData:Z};k.browseEndpoint?(hA=A,_.uc(hA,_.fm,k.browseEndpoint)):k.command&&(hA=k.command);if(!hA)return pl.return();qv=_.L(hA,_.Tc);if((eN=qv)==null?0:eN.command)if(mr=_.L(qv.command,v2p))Cl=_.n0.instance,Cl.resolveCommand(qv.command);return pl.yield(_.I9(H.innertubeTransportService,
hA,{formData:WV,disableCache:!0}).then(function(UC){(UC==null?0:UC.trackingParams)&&H.JSC$18142_screenManager.graftServerVe(UC==null?void 0:UC.trackingParams)}),0)})};
Ur[ox]=[_.kI,YC,_.Wf];var l4=function(A){this.store=A};
_.I(l4,Yj);
l4.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O;return _.e(function(T){k=_.L(A,a9I);if(!k||!k.stepId)return T.return();if(k.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")u=(z=(d=H.store.getState().talkToRecs.stepStates[k.stepId])==null?void 0:(W=d.userQuery)==null?void 0:W.userQuery)!=null?z:"",B=u.length>0?". ":"",h=u+B+k.selectedText,H.store.dispatch(FPj({stepId:k.stepId,userQueryToken:"",userQuery:h}));else if(k.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")H.store.dispatch(FPj({stepId:k.stepId,userQueryToken:"",
userQuery:(O=k.selectedText)!=null?O:""}));else{if(!k.token)return T.return();H.store.dispatch(G8A({stepId:k.stepId,token:k.token,isSelected:!0}))}_.EN(T)})};
l4[ox]=[YC];var tN=function(A){this.store=A};
_.I(tN,Yj);tN.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h;return _.e(function(O){d=_.L(A,IPZ);if(!d||!d.stepId)return O.return();B=(u=(W=H)==null?void 0:(z=W.form)==null?void 0:z.userQuery)!=null?u:"";k.store.dispatch(FPj({stepId:d.stepId,userQuery:B,userQueryToken:(h=d.userQueryToken)!=null?h:""}));_.EN(O)})};
tN[ox]=[YC];_.eCI=new _.SE("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Nz=function(A){this.controller=A};
_.I(Nz,Yj);Nz.prototype.resolveCommand=function(A){var H=this,k,d,W,z;return _.e(function(u){k=_.L(A,UEw);if(!k)return u.return();d=k;W=d.id;z=d.isVisible;if(W===void 0||z===void 0)return u.return();var B;(B=H.controller.timelyActionsMap.get(W))==null||B(W,z);_.EN(u)})};
Nz[ox]=[_.eCI];var xCQ=function(){this.timelyActionsMap=new Map};var Mz=function(A){this.JSC$18168_commandHandler=A};
_.I(Mz,Yj);Mz.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u;return _.e(function(B){k=_.L(A,_.ftj);if(!k)return B.return();z=(d=k.item)==null?void 0:(W=d.notificationTextRenderer)==null?void 0:W.successResponseText;if(!z)return B.return();u=_.Du(z);H.JSC$18168_commandHandler.resolveCommand(u);_.EN(B)})};
Mz[ox]=[_.J7];var nB=function(A,H){this.innertubeTransportService=A;this.JSC$18173_playerApiPromise=H};
_.I(nB,Yj);
nB.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O,T;return _.e(function(m){if(m.nextAddress==1)return m.yield(H.JSC$18173_playerApiPromise,2);k=m.yieldResult;d=k.getOption("captions","track");W=Object.assign({},_.L(A,_.kl0));(u=(z=k.getVideoData())==null?void 0:z.video_id)?W.externalVideoId=u:_.lt(Error("Ki"));if((B=d)==null?0:B.languageCode)W.languageCode=d.languageCode;if((h=d)==null?0:h.kind)W.kind=d.kind;if((O=d)==null?0:O.name)W.name=d.name;T=Object.assign({},A,{getTranscriptEndpoint:W});return m.yield(_.I9(H.innertubeTransportService,
T),0)})};
nB[ox]=[_.kI,_.VI];var ZN=function(){};
_.I(ZN,Yj);ZN.prototype.resolveCommand=function(A){var H,k,d,W,z,u,B,h;return _.e(function(O){H=_.L(A,tVw);if((k=H)==null||!k.paramKeyValuePairs)return O.return();d=window.location.href;W=_.r(H.paramKeyValuePairs);for(z=W.next();!z.done;z=W.next())u=z.value,u.key&&u.value&&(B={},d=_.nZ(d,(B[u.key]=u.value,B)));h=_.wj().resolve(_.$L);_.o6(h,d);_.EN(O)})};_.fB=new _.SE("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var wM=function(A,H,k,d){this.controller=A;this.JSC$18180_playerApiPromise=H;this.innertubeTransportService=k;this.JSC$18180_commandHandler=d};
_.I(wM,Yj);
wM.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N;return _.e(function(U){if(U.nextAddress==1){k=_.L(A,OrJ);if((d=k)==null||!d.watchEndpoint)return U.return();W=new $C;z=W.JSC$14491_getRequest(k.watchEndpoint);if(!z)return U.return();u=k.watchEndpoint.clickTrackingParams;return U.yield(_.yD(H.innertubeTransportService,z.innerTubeRequest,z.input,u,z.config),2)}if(U.nextAddress!=3)return B=U.yieldResult,U.yield(H.JSC$18180_playerApiPromise,3);h=U.yieldResult;h.updateVideoData({raw_watch_next_response:B});
if(v=(O=B)==null?void 0:(T=O.contents)==null?void 0:(m=T.twoColumnWatchNextResults)==null?void 0:(J=m.results)==null?void 0:(g=J.results)==null?void 0:g.contents)X=(y=v.find(function(p){return p.videoPrimaryInfoRenderer}))==null?void 0:y.videoPrimaryInfoRenderer,((D=X)==null?0:D.subtitle)&&iCL(H.controller,X.subtitle);
(N=(K=B)==null?void 0:K.onUiReady)&&H.JSC$18180_commandHandler.resolveCommand(N);_.EN(U)})};
wM[ox]=[_.fB,_.VI,_.kI,_.J7];var hCQ=function(){this.subtitleChangeCallbackMap=new Map},iCL=function(A,H){A=_.r(A.subtitleChangeCallbackMap.values());
for(var k=A.next();!k.done;k=A.next())k=k.value,k(H)};var oT=function(A,H){this.JSC$18190_commandHandler=A;this.innertubeTransportService=H};
_.I(oT,Yj);
oT.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N;return _.e(function(U){switch(U.nextAddress){case 1:return(z=(d=H)==null?void 0:(W=d.form)==null?void 0:W.element)&&_.II(z),u=_.sH().get("hl"),B="",_.S_(U,2),U.yield(rTW(u),4);case 4:B=U.yieldResult;_.QN(U,3);break;case 2:return _.VA(U),z&&_.Yq(z),_.I3(Error("Mi"),"ERROR"),U.return();case 3:h=_.L(A,Yc1);if(!h)return z&&_.Yq(z),U.return();(m=(O=h.commerceActionConfig)==null?void 0:(T=O.commandLifeCycleConfig)==null?
void 0:T.onStartCommand)&&k.JSC$18190_commandHandler.resolveCommand(m);return U.yield(_.I9(k.innertubeTransportService,A,{client_data:{paymentsClientToken:{token:B}}}),5);case 5:(J=U.yieldResult)?(z&&_.Yq(z),((X=J)==null?0:X.command)&&k.JSC$18190_commandHandler.resolveCommand(J.command),(N=(D=h.commerceActionConfig)==null?void 0:(K=D.commandLifeCycleConfig)==null?void 0:K.onSuccessCommand)&&k.JSC$18190_commandHandler.resolveCommand(N)):(z&&_.Yq(z),_.I3(Error("Ni")),(y=(g=h.commerceActionConfig)==
null?void 0:(v=g.commandLifeCycleConfig)==null?void 0:v.onFailureCommand)&&k.JSC$18190_commandHandler.resolveCommand(y)),_.EN(U)}})};
oT[ox]=[_.J7,_.kI];var $A=function(A,H,k){this.store=A;this.JSC$18206_commandHandler=H;this.innertubeTransportService=k};
_.I($A,Yj);
$A.prototype.resolveCommand=function(A,H){var k=this,d,W,z,u,B,h,O,T,m;return _.e(function(J){d=_.L(A,PBG);W=d.googlePaymentPayload;d.onStartCommand&&k.JSC$18206_commandHandler.resolveCommand(d.onStartCommand);z=W.encryptedPurchaseParams;u=W.ypcLogWalletAnalyticDataEndpoint;B=d.serializedTransactionFlowLoggingParams;h=W.serializedPaymentsClientParams;O=d.ypcCujContext;m=e0b(k.innertubeTransportService,(T=H)==null?void 0:T.form,z,u,B,h,O);return J.return(m.then(function(g){u4f(H==null?void 0:H.form,
!1);var v=k.store,y=k.JSC$18206_commandHandler,X=g.integratorData;X==null||X===""||g.error!=null?(String(g.error)==="-1"&&d.onDismissCommand?y.resolveCommand(d.onDismissCommand):String(g.error)!=="-1"&&d.onFailureCommand&&y.resolveCommand(d.onFailureCommand),String(g.error)!=="-1"&&String(g.error)!=="132"&&_.I3(Error("Oi"),"ERROR")):(d.googlePaymentEntityKey&&v.dispatch(_.kH("commerceAcquisitionClientPayloadEntity",d.googlePaymentEntityKey,{key:d.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:X,
fundsGuaranteeCallbackClientData:g.integratorClientCallbackData}}})),d.onSuccessCommand&&y.resolveCommand(d.onSuccessCommand));_.MT()},function(g){u4f(H==null?void 0:H.form,!1);
_.I3(g,"ERROR");d.onFailureCommand&&k.JSC$18206_commandHandler.resolveCommand(d.onFailureCommand)}))})};
$A[ox]=[tv,_.J7,_.kI];var AI=function(A,H){this.JSC$18210_commandHandler=A;this.purchaseManager=H};
_.I(AI,Yj);
AI.prototype.resolveCommand=function(A){var H=this,k,d,W,z,u,B,h,O,T;return _.e(function(m){k=_.L(A,GXA);((d=k)==null?0:(W=d.commandLifeCycleConfig)==null?0:W.onStartCommand)&&H.JSC$18210_commandHandler.resolveCommand(k.commandLifeCycleConfig.onStartCommand);if(!((z=k)==null?0:(u=z.googlePaymentPurchaseManagerPayload)==null?0:u.securePayloadBytes))return _.I3(Error("Pi"),"ERROR"),m.return();B=GAG(_.$8(k.googlePaymentPurchaseManagerPayload.securePayloadBytes));h=_.sH().get("hl");O=_.YE();$X3(B.serialize(),
h,function(J){O.resolve(J)},function(J){O.reject(J)},O.resolve);
T=O.promise;return m.return(T.then(function(J){if(J)if(J==null?0:J.errorCode){_.I3(Error("Qi`"+J.errorCode),"ERROR");var g,v;((g=k)==null?0:(v=g.commandLifeCycleConfig)==null?0:v.onFailureCommand)&&H.JSC$18210_commandHandler.resolveCommand(k.commandLifeCycleConfig.onFailureCommand)}else if(J==null?0:J.isCancelled){var y,X;((y=k)==null?0:(X=y.commandLifeCycleConfig)==null?0:X.onCancelCommand)&&H.JSC$18210_commandHandler.resolveCommand(k.commandLifeCycleConfig.onCancelCommand)}else{var D,K;((D=k)==
null?0:(K=D.commandLifeCycleConfig)==null?0:K.onSuccessCommand)&&H.JSC$18210_commandHandler.resolveCommand(k.commandLifeCycleConfig.onSuccessCommand)}},function(J){_.I3(J,"ERROR");
var g,v;((g=k)==null?0:(v=g.commandLifeCycleConfig)==null?0:v.onFailureCommand)&&H.JSC$18210_commandHandler.resolveCommand(k.commandLifeCycleConfig.onFailureCommand)}))})};
AI[ox]=[_.J7,AeL];var OCM=function(A,H){this.JSC$18218_commandHandler=A;this.commandAllowlistOverride=H;var k;this.commandAllowlist=(k=this.commandAllowlistOverride)!=null?k:ZSf};
OCM.prototype.handleResponse=function(A,H,k){var d,W=H==null?void 0:(d=H.config)==null?void 0:d.command;if(!W||this.commandAllowlist.some(function(z){return!!_.L(W,z)})){H=void 0;
k!==void 0&&(H={form:{element:k}});A.onResponseReceivedCommand&&this.JSC$18218_commandHandler.resolveCommand(A.onResponseReceivedCommand,H);A.onResponseReceivedAction&&this.JSC$18218_commandHandler.resolveCommand(A.onResponseReceivedAction,H);A.onResponseReceivedEndpoint&&this.JSC$18218_commandHandler.resolveCommand(A.onResponseReceivedEndpoint,H);A.command&&this.JSC$18218_commandHandler.resolveCommand(A.command,H);if(A.onResponseReceivedCommands)for(k=_.r(A.onResponseReceivedCommands),d=k.next();!d.done;d=
k.next())this.JSC$18218_commandHandler.resolveCommand(d.value,H);if(A.onResponseReceivedActions)for(k=_.r(A.onResponseReceivedActions),d=k.next();!d.done;d=k.next())this.JSC$18218_commandHandler.resolveCommand(d.value,H);if(A.onResponseReceivedEndpoints)for(k=_.r(A.onResponseReceivedEndpoints),d=k.next();!d.done;d=k.next())this.JSC$18218_commandHandler.resolveCommand(d.value,H);if(A.actions)for(A=_.r(A.actions),k=A.next();!k.done;k=A.next())this.JSC$18218_commandHandler.resolveCommand(k.value,H)}};
OCM[ox]=[_.J7,_.fZ(n$m)];var RCI=new _.SE("INNERTUBE_TOKEN_SERVICE");var TW1=new _.SE("SCHEDULER_TOKEN");var mCi=function(A){this.scheduler=A;A={};this.tokenMap=(A.app={},A.user={},A)};
mCi.prototype.handleResponse=function(A,H){if(!H)throw Error("Ri");var k;if(A=(k=A.responseContext)==null?void 0:k.innertubeTokenJar){if(A.appTokens){var d,W,z;k=(d=H.innerTubeRequest.context)==null?void 0:(W=d.request)==null?void 0:(z=W.innertubeTokenJar)==null?void 0:z.appTokens;Jj1(this,A.appTokens,this.tokenMap.app,k)}if(A.userTokens){var u,B,h;H=(u=H.innerTubeRequest.context)==null?void 0:(B=u.request)==null?void 0:(h=B.innertubeTokenJar)==null?void 0:h.userTokens;Jj1(this,A.userTokens,this.tokenMap.user,
H)}}};
mCi.prototype.processContext=function(A){A.request||(A.request={});var H=Object.keys(this.tokenMap.app).length,k=Object.keys(this.tokenMap.user).length;if(H||k)A.request.innertubeTokenJar={},H&&(A.request.innertubeTokenJar.appTokens=[].concat(_.fV(Object.values(this.tokenMap.app).flat()))),k&&(A.request.innertubeTokenJar.userTokens=[].concat(_.fV(Object.values(this.tokenMap.user).flat())))};
var Jj1=function(A,H,k,d){H=_.r(H);for(var W=H.next(),z={};!W.done;z={token$jscomp$139:void 0},W=H.next()){z.token$jscomp$139=W.value;if(z.token$jscomp$139.type===void 0)throw new _.Ti("InnerTube token has no type",z.token$jscomp$139);if(z.token$jscomp$139.clearTokens)k[z.token$jscomp$139.type]=[];else if(z.token$jscomp$139.value!==void 0){k[z.token$jscomp$139.type]||(k[z.token$jscomp$139.type]=[]);if(d!==void 0&&d.length){W=_.r(d);for(var u=W.next(),B={};!u.done;B={requestToken:void 0},u=W.next())B.requestToken=
u.value,u=k[z.token$jscomp$139.type].findIndex(function(h){return function(O){return O===h.requestToken||(0,_.iK.equals)(O,h.requestToken)}}(B)),u>-1&&k[z.token$jscomp$139.type].splice(u,1)}k[z.token$jscomp$139.type].push(z.token$jscomp$139);
z.token$jscomp$139.maxAgeSeconds&&Number(z.token$jscomp$139.maxAgeSeconds)>0&&A.scheduler.addLowPriorityJob(function(h){return function(){var O=k[h.token$jscomp$139.type].indexOf(h.token$jscomp$139);O>-1&&k[h.token$jscomp$139.type].splice(O,1)}}(z),Number(z.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.Ti("InnerTube token has no value",z.token$jscomp$139);
}};
mCi[ox]=[TW1];var gg3=new _.SE("LOCAL_INNERTUBE_ROUTER_TOKEN"),bCi=new _.SE("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Hh=function(A){this.serviceMap=A};
Hh.prototype.shouldPreferLocalResponse=function(A,H){return(A=LAR(this,A))?A.shouldPreferLocalResponse(H):!1};
Hh.prototype.localInnertubeResponse=function(A,H){var k=this,d;return _.e(function(W){return(d=LAR(k,A))?W.return(d.localInnertubeResponse(H)):W.return(Promise.reject(Error("Si")))})};
Hh.prototype.canProvideFallbackResponse=function(A,H){return(A=LAR(this,A))?A.canProvideFallbackResponse(H):!1};
Hh.prototype.localFallbackInnertubeResponse=function(A,H){var k=this,d;return _.e(function(W){return(d=LAR(k,A))?W.return(d.localFallbackInnertubeResponse(H)):W.return(Promise.reject(Error("Si")))})};
var LAR=function(A,H){H=_.Nx(H);return H?(A=A.serviceMap[H])?A:null:null};
Hh[ox]=[bCi];var uA=function(){};
uA.prototype.shouldPreferLocalResponse=function(){return!1};
uA.prototype.localInnertubeResponse=function(){return _.e(function(A){return A.return(Promise.reject(Error("Ti")))})};
uA.prototype.canProvideFallbackResponse=function(){return!0};
uA.prototype.localFallbackInnertubeResponse=function(){var A,H,k;return _.e(function(d){A=w9("CLOSE_POPUP");H={openPopupAction:iyv()};k={actions:[A,H]};return d.return(k)})};var Yzv=function(A,H){this.JSC$18267_upliftPromise=A;this.store=H};
_.q=Yzv.prototype;_.q.shouldPreferLocalResponse=function(A){var H=A.videoId,k;if(k=H)k=Qgv(this.store.getState().entities,A.videoId);return k&&V0N(this.store.getState().entities,H)?OyV(this.store.getState().entities,A.playlistId):!1};
_.q.localInnertubeResponse=function(A){var H=this,k;return _.e(function(d){return(k=H.getPlayerResponse(A))?d.return(Promise.resolve(k)):d.return(Promise.reject(Error("Ui")))})};
_.q.canProvideFallbackResponse=function(A){return!!A.videoId};
_.q.localFallbackInnertubeResponse=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(H.JSC$18267_upliftPromise,2);k=H.getPlayerResponse(A);var W;k?W=d.return(Promise.resolve(k)):W=WK(H.store.getState().entities,A.videoId)?d.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.K8(_.$r("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:RHA()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
d.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.K8(_.$r("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:OdQ()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return W})};
_.q.getPlayerResponse=function(A){return igl(this.store.getState().entities,A.videoId)};var rK=function(A,H){this.localPlayerService=A;this.localWatchNextService=H};
rK.prototype.shouldPreferLocalResponse=function(A){var H=A.playerRequest;A=A.watchNextRequest;return!!(H&&this.localPlayerService.shouldPreferLocalResponse(H)&&A&&this.localWatchNextService.shouldPreferLocalResponse(A))};
rK.prototype.localInnertubeResponse=function(A){var H=this,k,d,W,z;return _.e(function(u){if(u.nextAddress==1){k=A.playerRequest;d=A.watchNextRequest;if(!k||!d)throw new _.Ti("Missing streaming request",A);return u.yield(H.localPlayerService.localInnertubeResponse(k),2)}if(u.nextAddress!=3)return W=u.yieldResult,u.yield(H.localWatchNextService.localInnertubeResponse(d),3);z=u.yieldResult;return u.return({playerResponse:W,watchNextResponse:z})})};
rK.prototype.canProvideFallbackResponse=function(A){var H=A.playerRequest;A=A.watchNextRequest;return!!(H&&this.localPlayerService.canProvideFallbackResponse(H)&&A&&this.localWatchNextService.canProvideFallbackResponse(A))};
rK.prototype.localFallbackInnertubeResponse=function(A){var H=this,k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return k=A.playerRequest,d=A.watchNextRequest,k&&d?u.yield(H.localPlayerService.localFallbackInnertubeResponse(k),2):u.return(Promise.reject(new _.Ti("Missing streaming request",A)));if(u.nextAddress!=3)return W=u.yieldResult,u.yield(H.localWatchNextService.localFallbackInnertubeResponse(d),3);z=u.yieldResult;return u.return({playerResponse:W,watchNextResponse:z})})};var Wp=function(A){this.JSC$18277_persistentStorePromiseAccessor=A};
Wp.prototype.shouldPreferLocalResponse=function(){return!1};
Wp.prototype.localInnertubeResponse=function(){return _.e(function(A){return A.return(Promise.reject(Error("Vi")))})};
Wp.prototype.canProvideFallbackResponse=function(){return!0};
Wp.prototype.localFallbackInnertubeResponse=function(){var A=this,H,k;return _.e(function(d){return d.nextAddress==1?d.yield(A.JSC$18277_persistentStorePromiseAccessor(),2):d.nextAddress!=3?(H=d.yieldResult)?d.yield(H.get("service:guide:fallback"),3):d.return(Promise.reject(Error("Wi"))):(k=d.yieldResult)&&_.U5(k)?d.return(R0v(_.U5(k))):d.return(Promise.reject(Error("Xi")))})};var Bp=function(){};
Bp.prototype.shouldPreferLocalResponse=function(){return!1};
Bp.prototype.localInnertubeResponse=function(){return _.e(function(A){return A.return(Promise.reject(Error("Yi")))})};
Bp.prototype.canProvideFallbackResponse=function(){return!0};
Bp.prototype.localFallbackInnertubeResponse=function(){var A,H,k;return _.e(function(d){A=w9("CLOSE_POPUP");H={openPopupAction:iyv()};k={actions:[A,H]};return d.return(k)})};var dK=function(){this.urlMap=vgB;this.fallbackCommand=_.kf};
dK.prototype.shouldPreferLocalResponse=function(A){return(A=A.url)?!!yj_(this,A):!1};
dK.prototype.localInnertubeResponse=function(A){var H=this,k;return _.e(function(d){return(k=A.url)?d.return(j81(A,yj_(H,k))):d.return(Promise.reject(Error("Zi")))})};
dK.prototype.canProvideFallbackResponse=function(){return!0};
dK.prototype.localFallbackInnertubeResponse=function(A){var H=this,k,d,W,z,u,B,h;return _.e(function(O){k=A.url;if(!k)return O.return(j81(A,H.fallbackCommand));if(d=yj_(H,k))return O.return(j81(A,d));W=void 0;z=_.Nx(k);z==="/watch"&&(u=_.H4(k,"v"))&&(h=(B=_.H4(k,"list"))!=null?B:void 0,W=_.C8(u,h));W||(W=H.fallbackCommand);return O.return(j81(A,W))})};
var yj_=function(A,H){if(H)return A.urlMap[_.Mx(H)]},j81=function(A,H){H&&A.parentTrackingParams&&(H.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:A.parentTrackingParams}},H.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:H})};var zs=function(A,H,k){this.JSC$18288_upliftPromise=A;this.store=H;this.JSC$18288_persistentStorePromiseAccessor=k};
zs.prototype.shouldPreferLocalResponse=function(){return!1};
zs.prototype.localInnertubeResponse=function(){return _.e(function(A){return A.return(Promise.reject(Error("$i")))})};
zs.prototype.canProvideFallbackResponse=function(){return!0};
zs.prototype.localFallbackInnertubeResponse=function(){var A=this;return _.e(function(H){return H.return(ILi(A))})};
var ILi=function(A){var H,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(E5(A.JSC$18288_upliftPromise,A.store),2);H=d.yieldResult;k={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[h0V(H)]}}}};return d.return(YI3(A,k))})},YI3=function(A,H){var k,d;
return _.e(function(W){if(W.nextAddress==1)return W.yield(A.JSC$18288_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return k=W.yieldResult,W.yield(ls(k),3);d=W.yieldResult;return W.return({responseContext:{},contents:H,topbar:d})})};var sK=function(A,H,k){this.JSC$18295_upliftPromise=A;this.store=H;this.JSC$18295_persistentStorePromiseAccessor=k};
sK.prototype.shouldPreferLocalResponse=function(A){var H=A.videoId;return H&&Qgv(this.store.getState().entities,H)&&V0N(this.store.getState().entities,H)?OyV(this.store.getState().entities,A.playlistId):!1};
sK.prototype.localInnertubeResponse=function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1)return(k=A.videoId)?W.yield(H.JSC$18295_upliftPromise,2):W.return(Promise.reject(Error("aj")));if(W.nextAddress!=3)return W.yield(PK1(H,A,k),3);d=W.yieldResult;return W.return(GE1(H,d,k))})};
sK.prototype.canProvideFallbackResponse=function(A){return A.videoId?!0:!1};
sK.prototype.localFallbackInnertubeResponse=function(A){var H=this,k,d,W,z;return _.e(function(u){switch(u.nextAddress){case 1:return(k=A.videoId)?u.yield(H.JSC$18295_upliftPromise,2):u.return(Promise.reject(Error("aj")));case 2:return u.yield(PK1(H,A,k),3);case 3:d=u.yieldResult;if(WK(H.store.getState().entities,k)){u.jumpTo(4);break}return u.yield(E5(H.JSC$18295_upliftPromise,H.store),5);case 5:return W=u.yieldResult,u.return(FAB(d,W));case 4:return Qgv(H.store.getState().entities,k)&&V0N(H.store.getState().entities,
k)?u.return(GE1(H,d,k)):(z={title:_.K8(_.$r("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:RHA()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},u.return(FAB(d,z)))}})};
var PK1=function(A,H,k){var d,W,z,u,B;return _.e(function(h){if(h.nextAddress==1)return d=H.playlistId,W=_.C8(k,d),h.yield(A.JSC$18295_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3)return z=h.yieldResult,h.yield(ls(z),3);u=h.yieldResult;B={responseContext:{},currentVideoEndpoint:W,topbar:u};return h.return(B)})},GE1=function(A,H,k){if(A=WK(A.store.getState().entities,k)){var d;
k=A.videoEntity;var W,z={title:aN(k.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.c0((d=k.localizedStrings)==null?void 0:d.viewCount),viewCount:_.c0((W=k.localizedStrings)==null?void 0:W.viewCount)}}};k.publishedTimestampMillis&&(z.dateText=_.c0(KgI(new Date(Number(k.publishedTimestampMillis)))));d={videoPrimaryInfoRenderer:z};W=A.videoEntity;A=A.channelEntity;A={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:aN(_.$r("SHOW_MORE",void 0,"Show more")),
showLessText:aN(_.$r("SHOW_LESS",void 0,"Show less")),description:W.formattedDescription,owner:{videoOwnerRenderer:{title:aN(A.title),thumbnail:A.avatar}}}};H.contents={twoColumnWatchNextResults:{results:{results:{contents:[d,A]}}}}}return H},FAB=function(A,H){A.contents={singleColumnWatchNextResults:{results:{results:{contents:[h0V(H)]}}}};
return A};var qe=function(A,H,k){this.JSC$18300_upliftPromise=A;this.store=H;this.JSC$18300_persistentStorePromiseAccessor=k};
qe.prototype.shouldPreferLocalResponse=function(){return!1};
qe.prototype.localInnertubeResponse=function(){return _.e(function(A){return A.return(Promise.reject(Error("bj")))})};
qe.prototype.canProvideFallbackResponse=function(){return!0};
qe.prototype.localFallbackInnertubeResponse=function(){var A=this,H,k,d,W;return _.e(function(z){switch(z.nextAddress){case 1:return z.yield(A.JSC$18300_persistentStorePromiseAccessor(),2);case 2:return H=z.yieldResult,z.yield(ls(H),3);case 3:return k=z.yieldResult,d={responseContext:{},topbar:k},z.yield(A.JSC$18300_upliftPromise,4);case 4:return z.yield(E5(A.JSC$18300_upliftPromise,A.store),5);case 5:return W=z.yieldResult,d.watchStatus={backgroundPromoRenderer:W},z.return(d)}})};var X4R=new _.SE("ENDPOINT_MAP"),DCG=new _.SE("WATCH_ENDPOINT_MAP"),SIR=new _.SE("REEL_ENDPOINT_MAP");var LDV=/^[a-zA-Z0-9_\-]{11}$/;var vnm=_.iP(function(){var A,H;return(H=(A=window).matchMedia)==null?void 0:H.call(A,"(prefers-reduced-motion: reduce)").matches});var CKI=_.iP(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 A=_.UD("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");A||(A=_.$g("VIDEO"),_.nG("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
A));return!!(A&&A.canPlayType&&A.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var KAi=XMLHttpRequest.prototype.fetch,aLB=KAi&&KAi.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!N4?!0:!1;var sn=function(A){this.JSC$18311_storeWithEntities=A};
_.I(sn,my);_.q=sn.prototype;_.q.getApiPaths=function(){return gF1};
_.q.getExtension=function(A){return _.L(A,_.Yr)||_.L(A,_.A1)||_.L(A,e2J)};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$14498_getStoreKey=function(A){if((_.b("kevlar_cache_on_ttl_player")||_.b("mweb_enable_shorts_innertube_player_prefetch")||_.b("mweb_use_new_history_manager")||_.b("web_shorts_prefetch_service_enabled"))&&(A=this.getExtension(A))&&A.videoId){var H={videoId:A.videoId};A.playlistId&&(H.playlistId=A.playlistId);A.playerParams&&(H.params=A.playerParams);return _.IC("player",H)}};
_.q.JSC$14491_getClientScreen=function(A){var H;return((H=A.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.q.JSC$14491_buildRequest=function(A,H,k){if(_.b("enable_interstitial_entity_check")){var d=this.JSC$18311_storeWithEntities;if(H.videoId)for(var W=_.r(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),z=W.next();!z.done;z=W.next()){z=z.value;var u;var B=void 0,h=void 0,O=H.videoId,T=z;(u=d)?(O=_.Nw(O+T,"interstitialInteractionStateEntity"),u=(B=(h=_.Mw(u.getState().entities,"interstitialInteractionStateEntity",O))==null?void 0:h.primaryButtonClicked)!=null?B:!1):u=!1;if(u)switch(z){case "CONTENT_CHECK_REQUIRED":H.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":H.racyCheckOk=!0}}}H.videoId&&(A.videoId=H.videoId);H.playlistId&&(A.playlistId=H.playlistId);H.index!==void 0&&(A.playlistIndex=H.index+1);H.playerParams&&(A.params=H.playerParams);"startTimeSeconds"in H&&H.startTimeSeconds&&(_.b("enable_player_request_builder_start_time_floor")?A.startTimeSecs=Math.floor(H.startTimeSeconds):A.startTimeSecs=H.startTimeSeconds);k.contentPlaybackContext&&(A.playbackContext={contentPlaybackContext:k.contentPlaybackContext});k.prefetchPlaybackContext&&
(A.playbackContext=Object.assign({},A.playbackContext,{prefetchPlaybackContext:k.prefetchPlaybackContext}),A.context.request||(A.context.request={}),A.context.request.isPrefetch=!0);A.playbackContext||(A.playbackContext={});d=CKI();A.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!d,supportXhr:aLB};k.overrideMutedAtStart&&(A.overrideMutedAtStart=k.overrideMutedAtStart);A.racyCheckOk=!!H.racyCheckOk;A.contentCheckOk=!!H.contentCheckOk;!_.b("captions_prefs_killswitch")&&(k=(k=_.r4("yt-player-caption-language-preferences"))?
k:[],k==null?0:k.length)&&(A.captionParams={viewerSelectedCaptionLangs:k})};
_.q.getRequestConfig=function(A){A=this.JSC$14498_getStoreKey(A);var H;A&&(H={storeStrategy:{storeKey:A}});_.b("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="ps_s",H.responseTick="ps_r");return H};
sn[ox]=[tv];var k_=function(A,H){this.playerRequestBuilder=A;this.watchNextRequestBuilder=H};
_.I(k_,my);k_.prototype.getApiPaths=function(){return uyQ};
k_.prototype.getExtension=function(A){return _.L(A,_.Yr)};
k_.prototype.isNavigationCommand=function(){return!0};
k_.prototype.JSC$14491_buildRequest=function(A,H,k){A.playerRequest={};this.playerRequestBuilder.JSC$14491_buildRequest(A.playerRequest,H,k);if(_.b("web_streaming_watch")||_.b("mweb_streaming_watch"))A.watchNextRequest={},this.watchNextRequestBuilder.JSC$14491_buildRequest(A.watchNextRequest,H,k)};
k_[ox]=[sn,$C];var cjQ;_.dz=new _.SE("SHORTS_CONTROLLER_TOKEN");cjQ=new _.SE("SHORTS_STATE_STORE_TOKEN");var Wh=function(A,H){var k=_.o7.apply(2,arguments);A=A===void 0?0:A;_.Ti.call(this,H,k);this.errorType=A;Object.setPrototypeOf(this,this.constructor.prototype)};
_.I(Wh,_.Ti);var p4V,Q8Q,VB_,GvN,jK,E80,lLG,UCL,ZCB,MBB,NWG;p4V=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(A){return A+"="}).join("|"));
Q8Q=RegExp(".*\\?.*playnext=1.*");VB_=function(A,H,k,d,W,z){this.watchEndpointMap=A;this.reelWatchEndpointMap=H;this.innerTubeTransportService=k;this.fetchPbj=d;this.ephemeralStore=W;this.reloadOnPlayerFailure=z===void 0?!0:z};
_.Ege=function(A,H){var k=_.H5("web_pbj_log_warning_rate",0);k=k>0&&Math.random()<k;var d;if((d=_.L(H.commandMetadata,_.wn))==null||!d.rootVe)return k&&_.Pq(Error("gj")),!1;var W;d=(W=_.L(H.commandMetadata,_.wn))==null?void 0:W.url;if(!d)return k&&_.Pq(Error("hj")),!1;if(Q8Q.test(d))return!0;if(p4V.test(d))return k&&_.Pq(Error("ij`"+d)),!1;if(_.L(H,_.Yr)){if(!(A.watchEndpointMap.watchNext&&A.watchEndpointMap.player||_.b("kevlar_fetch_initial_data_op_watch_client")))return k&&_.Pq(Error("cj")),!1;
A=_.H5("web_pbj_log_warning_rate",0);A=A>0&&Math.random()<A;_.L(H,_.Yr)?gnV(H)?H=!0:(A&&_.Pq(Error("dj")),H=!1):(A&&_.Pq(Error("cj")),H=!1);return H}if(_.L(H,_.A1))return byV(H);if(_.L(H,_.m1))return!0;A=_.jO(A.innerTubeTransportService,H);!A&&k&&_.I3(Error("jj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(H)});return A};
GvN=function(A,H,k,d,W,z){H={url:H};if(k==null?0:k.itct)H.parentTrackingParams=k.itct;var u=_.X3(GTG);return _.yD(A.innerTubeTransportService,H,u).then(function(B){(B=B.endpoint)||(B=_.kf);(k==null?0:k.itct)&&B&&!B.trackingParams&&(B.trackingParams=k.itct);var h=oc(B);return jK(A,B,k,d,h,W,z)})};
jK=function(A,H,k,d,W,z,u,B){B=B===void 0?{}:B;if(A.fetchPbj&&!_.Ege(A,H)&&!_.b("force_one_platform")){var h=A.fetchPbj(H),O=_.MT(h.then(function(M){if(!M)throw Error("kj");u(O)||z(H,M);return M}));
return O}var T,m,J={rootVe:(T=_.L(H.commandMetadata,_.wn))==null?void 0:T.rootVe,url:(m=_.L(H.commandMetadata,_.wn))==null?void 0:m.url,endpoint:H,page:W};if(_.L(H,_.Yr)){var g,v={contentPlaybackContext:_.NL(k,(g=_.L(H.commandMetadata,_.wn))==null?void 0:g.url,d)},y=_.YE(),X,D=(X=A.watchEndpointMap.player)==null?void 0:X().JSC$14498_getStoreKey(H);X=D!==void 0&&((h=A.ephemeralStore)==null?void 0:h.has(D));(_.b("web_streaming_watch")||_.b("mweb_streaming_watch"))&&window.TextDecoderStream&&!X?(h=Whj(A.innerTubeTransportService,
H,v,function(M){!J.response&&M.content&&(J.response=M.content);!J.playerResponse&&M.player&&(J.playerResponse=M.player);z(H,J)}),D=VGX(H),D.length&&(J.preconnect=D,z(H,J)),UCL(h,y,J).catch(function(M){M instanceof Wh&&M.errorType===2&&_.b("web_streaming_watch_fallback")&&lLG(A,H,v,J,z,u,y)})):lLG(A,H,v,J,z,u,y);
return y.promise}if(_.L(H,_.A1)){var K;if(((K=_.L(H,_.A1))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var N=_.YE();_.tBL(_.wj().resolve(_.dz),H).then(function(M){NWG(A,k,d,W,z,N,M)});
return N.promise}h=_.MT();X={contentPlaybackContext:_.NL(k,(D=_.L(H.commandMetadata,_.wn))==null?void 0:D.url,d)};(D=A.reelWatchEndpointMap.player)&&(D=D().JSC$14491_getRequest(H,X))&&(h=_.yD(A.innerTubeTransportService,D.innerTubeRequest,D.input,H.clickTrackingParams,D.config));D=_.MT();(B=A.reelWatchEndpointMap.reelItemWatch)&&(B=B().JSC$14491_getRequest(H))&&(D=_.yD(A.innerTubeTransportService,B.innerTubeRequest,B.input,H.clickTrackingParams,B.config));B=_.MT();(T=A.reelWatchEndpointMap.reelWatchSequence)&&
_.L(H,_.A1).sequenceParams&&(X=T().JSC$14491_getRequest(H,X))&&(B=_.yD(A.innerTubeTransportService,X.innerTubeRequest,X.input,H.clickTrackingParams,X.config));X=_.MT(J);T=_.YE();MBB(H,X,h,D,B,z,u,T);return T.promise}var U;if(_.L(H,AlV)&&((U=_.L(H.commandMetadata,_.wn))==null?0:U.url))return h=sv8(_.p$(R8().location.href),_.p$(_.L(H.commandMetadata,_.wn).url)).toString(),GvN(A,h,k,d,z,function(){return!1});
if(_.L(H,_.m1))return z(H,J),_.MT(J);if(_.jO(A.innerTubeTransportService,H)){h=Object.assign({},{tempData:k,disableCache:k.disableCache},B);var p=_.I9(A.innerTubeTransportService,H,h).then(function(M){J.response=M;u(p)||z(H,J);return J});
return p}return _.MT(J)};
_.ngG=function(A,H,k,d){if(_.L(H,_.Yr)||_.L(H,_.A1)&&(_.b("mweb_enable_shorts_innertube_player_prefetch")||_.b("kevlar_enable_shorts_prefetch_in_sequence"))||_.L(H,e2J)&&_.b("web_enable_prefetching_videos_on_home")){var W,z={contentPlaybackContext:_.NL(k,(W=_.L(H.commandMetadata,_.wn))==null?void 0:W.url,d),prefetchPlaybackContext:j$I(k)},u,B,h;if(((u=_.L(H,_.Yr))==null?void 0:(B=u.watchEndpointSupportedPrefetchConfig)==null?void 0:(h=B.prefetchHintConfig)==null?void 0:h.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(k=
A.watchEndpointMap.watchNext)if(z=k().JSC$14491_getRequest(H,z))return Promise.resolve(_.yD(A.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(m){return m}))}else if(k=A.watchEndpointMap.player)if(z=k().JSC$14491_getRequest(H,z))return Promise.resolve(_.yD(A.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(m){return m}))}else if(_.jO(A.innerTubeTransportService,H)){var O={tempData:k},T=$Sp(A.innerTubeTransportService,H);
return T?new Promise(function(m,J){var g,v;return _.e(function(y){if(y.nextAddress==1)return y.yield(T,2);if(y.nextAddress!=4)return g=y.yieldResult,g.JSC$14498_getStoreKey(H,O)?y.yield(_.I9(A.innerTubeTransportService,H,O),4):(J(new _.Ti("Prefetching request builder with no store key.",H)),y.jumpTo(0));v=y.yieldResult;m(v);_.EN(y)})}):Promise.reject(new _.Ti("Prefetching unregistered request builder.",H))}return Promise.reject(new _.Ti("No request builder available to prefetch endpoint.",H))};
E80=function(A,H){var k,d,W;if(_.L(H,_.Yr)){var z=A.watchEndpointMap.watchNext;z&&(k=z());(A=A.watchEndpointMap.player)&&(d=A())}else if(_.L(H,_.A1))(z=A.reelWatchEndpointMap.reelItemWatch)&&(k=z()),(z=A.reelWatchEndpointMap.player)&&(d=z()),(A=A.reelWatchEndpointMap.reelWatchSequence)&&(W=A());else{a:{A=FxQ(H,A.innerTubeTransportService.endpointMap);if(A!==void 0)if(typeof A.then==="function")_.I3(new _.Ti("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",H));else break a;
A=void 0}A&&(k=A)}var u,B,h;return{content:(u=k)==null?void 0:u.JSC$14498_getStoreKey(H),player:(B=d)==null?void 0:B.JSC$14498_getStoreKey(H),reelSequence:(h=W)==null?void 0:h.JSC$14498_getStoreKey(H)}};
lLG=function(A,H,k,d,W,z,u){var B=_.MT(),h=A.watchEndpointMap.player;_.b("web_streaming_player")&&(h=J8(k_));h&&(h=h().JSC$14491_getRequest(H,k))&&(B=_.yD(A.innerTubeTransportService,h.innerTubeRequest,h.input,H.clickTrackingParams,h.config));h=_.MT();var O=A.watchEndpointMap.watchNext;O&&(k=O().JSC$14491_getRequest(H,k))&&(h=_.yD(A.innerTubeTransportService,k.innerTubeRequest,k.input,H.clickTrackingParams,k.config));d=_.MT(d);ZCB(A,H,d,B,h,W,z,u)};
UCL=function(A,H,k){var d;return _.e(function(W){if(W.nextAddress==1)return W.yield(A,2);_.b("web_streaming_watch_delay_200")||_.b("web_streaming_watch_delay_400")?(d=_.b("web_streaming_watch_delay_200")?200:400,setTimeout(function(){H.resolve(k)},d)):H.resolve(k);
_.EN(W)})};
ZCB=function(A,H,k,d,W,z,u,B){var h,O,T,m,J;_.e(function(g){switch(g.nextAddress){case 1:return g.yield(k,2);case 2:h=g.yieldResult;if(u(B.promise))return B.resolve(h),g.return();z(H,h);O=VGX(H);if(!O.length){g.jumpTo(3);break}return g.yield(k,4);case 4:h.preconnect=O,z(H,h);case 3:return _.S_(g,5),g.yield(d,7);case 7:T=g.yieldResult;_.QN(g,6);break;case 5:return m=_.VA(g),B.reject(m),g.return();case 6:if(T===void 0&&A.reloadOnPlayerFailure)return h.reload=!0,z(H,h),B.resolve(h),g.return();if(u(B.promise))return B.resolve(h),
g.return();h.playerResponse=T;z(H,h);(_.b("web_watch_stop_scheduler_on_player_response")||_.b("mweb_watch_stop_scheduler_on_player_response"))&&hW0();_.S_(g,8);return g.yield(W,10);case 10:J=g.yieldResult;_.QN(g,9);break;case 8:_.VA(g);case 9:if(J===void 0)return h.response={responseContext:{}},B.resolve(h),g.return();if(u(B.promise))return B.resolve(h),g.return();h.response=J;z(H,h);B.resolve(h);_.EN(g)}})};
MBB=function(A,H,k,d,W,z,u,B){var h,O,T,m,J,g;_.e(function(v){switch(v.nextAddress){case 1:return v.yield(H,2);case 2:h=v.yieldResult;if(u(B.promise))return B.resolve(h),v.return();z(A,h);O=VGX(A);if(!O.length){v.jumpTo(3);break}return v.yield(H,4);case 4:h.preconnect=O,z(A,h);case 3:return _.S_(v,5),v.yield(k,7);case 7:T=v.yieldResult;_.QN(v,6);break;case 5:return m=_.VA(v),B.reject(m),v.return();case 6:if(T===void 0)return h.reload=!0,z(A,h),B.resolve(h),v.return();if(u(B.promise))return B.resolve(h),
v.return();h.playerResponse=T;z(A,h);(_.b("web_shorts_stop_scheduler_on_player_response")||_.b("mweb_shorts_stop_scheduler_on_player_response"))&&hW0();_.S_(v,8);return v.yield(d,10);case 10:J=v.yieldResult;_.QN(v,9);break;case 8:_.VA(v);case 9:if(J===void 0)return h.response={responseContext:{}},B.resolve(h),v.return();if(u(B.promise))return B.resolve(h),v.return();h.response=J;z(A,h);_.S_(v,11);return v.yield(W,13);case 13:g=v.yieldResult;_.QN(v,12);break;case 11:_.VA(v);case 12:if(u(B.promise))return B.resolve(h),
v.return();g&&(h.reelWatchSequenceResponse=g);z(A,h);B.resolve(h);_.EN(v)}})};
NWG=function(A,H,k,d,W,z,u){var B,h,O,T,m,J;_.e(function(g){if((B=u)==null||!B.replacementEndpoint)return z.reject(),g.return();h=u.replacementEndpoint;(O=_.L(h,_.A1))?(u.sequenceContinuation&&(O.sequenceParams=u.sequenceContinuation),T=_.wj().resolve(_.dz),m=O.sequenceParams,fLM(T,h)&&delete O.sequenceParams,J=jK(A,h,H,k,d,W,function(){return!1}),J.then(function(v){return _.e(function(y){if(y.nextAddress==1)return w4L(T,{reelWatchEndpoint:{sequenceParams:m}},v),y.yield(0,2);
z.resolve(v);_.EN(y)})})):z.reject();
_.EN(g)})};
VB_[ox]=[DCG,SIR,_.kI,_.fZ(ZUw),_.fZ(_.ng)];var og1=function(){var A=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return A.sequenceMap}}},zs1=function(A,H,k){var d,W=(d=H.config)==null?void 0:d.sequenceStrategy;
if(!W)return k();A.sequenceMap.has(W.sequenceKey)||A.sequenceMap.set(W.sequenceKey,[]);A=A.sequenceMap.get(W.sequenceKey);switch(W.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return $CV(A,H,k);case "REQUEST_SEQUENCE_TYPE_REPLACE":return AwI(A,H,k);default:throw new _.Ti("Request could not be sequenced",H);}},$CV=function(A,H,k){var d,W,z;
return _.e(function(u){A.length>0?(W=A[A.length-1],d=W.responsePromise.then(function(){return k()})):d=k();
z={request:H,responsePromise:d};A.push(z);H$G(A,z);return u.return(z.responsePromise)})},AwI=function(A,H,k){k=k();
if(A.length>0)for(var d=_.r(A),W=d.next();!W.done;W=d.next())W.value.responsePromise=k;var z={request:H,responsePromise:k};A.push(z);H$G(A,z);return Promise.resolve().then(function(){return A.indexOf(z)>0?z.responsePromise.then(function(u){return Object.assign({},u,{sequenceMetaData:{skipProcessing:!0}})}):z.responsePromise})},H$G=function(A,H){H.responsePromise.then(function(){var k=A.indexOf(H);
k>-1&&A.splice(k,1)})};var ss_=new _.SE("REQUEST_SEQUENCING");var z7=function(){};
_.I(z7,my);z7.prototype.getApiPaths=function(){return[]};
z7.prototype.getExtension=function(A){return _.L(A,Ew0)};
z7.prototype.JSC$14491_buildRequest=function(A,H){A.recaptchaToken=H.recaptchaToken};
z7.prototype.getApiUrl=function(){return"/das_captcha"};var qh=function(){};
_.I(qh,my);qh.prototype.getApiPaths=function(){return Gqw};
qh.prototype.getExtension=function(A){return _.L(A,gsG)};
qh.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.createBackstagePostParams&&(A.createBackstagePostParams=H.createBackstagePostParams);k.comment_text&&(A.commentText=k.comment_text);if(k.attached_video_id)A.videoAttachment={videoId:k.attached_video_id};else if(k.image_poll_options)A.pollAttachmentData={options:k.image_poll_options};else if(k.poll_options)A.pollAttachment={choices:k.poll_options};else if(k.quiz_options)A.quizAttachmentData={options:k.quiz_options};else if(k.image_blob_id)A.imageAttachment=
{encryptedBlobId:k.image_blob_id},k.source_video_id&&(A.imageAttachment.sourceExternalVideoId=k.source_video_id),k.image_preview_coordinates&&(A.imageAttachment.previewCoordinates=JSON.parse(k.image_preview_coordinates));else if(k.images_data)A.imagesAttachment={imagesData:k.images_data};else if(k.clip_external_video_id!==void 0||k.clip_offset_ms!==void 0||k.clip_duration_ms!==void 0){var d,W,z,u,B;A.clipAttachment={externalVideoId:(z=k.clip_external_video_id)!=null?z:"",offsetMs:(u=(d=k.clip_offset_ms)==
null?void 0:d.toString())!=null?u:"",durationMs:(B=(W=k.clip_duration_ms)==null?void 0:W.toString())!=null?B:""}}else k.shared_post_id&&(A.sharedPostAttachment={postId:k.shared_post_id});k.tagged_video_id&&(A.postCreationData={taggedVideoId:k.tagged_video_id});k.access_restrictions&&(typeof k.access_restrictions==="number"&&(H=k.access_restrictions,A.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof k.access_restrictions==="string"&&
(A.accessRestrictionsParams=k.access_restrictions));k.scheduled_publish_time_sec&&(A.scheduledPublishTimeSec=k.scheduled_publish_time_sec.toString())};var rz=function(){};
_.I(rz,my);rz.prototype.getApiPaths=function(){return aVw};
rz.prototype.getExtension=function(A){return _.L(A,Lyk)};
rz.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.decorateMessageParams&&(A.params=H.decorateMessageParams);k.text&&(A.text=k.text)};var ud=function(){};
_.I(ud,my);ud.prototype.getApiPaths=function(){return kT0};
ud.prototype.getExtension=function(A){return _.L(A,biA)};
ud.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;k.video_id&&(A.videoId=k.video_id)};var Bh=function(){};
_.I(Bh,my);Bh.prototype.getApiPaths=function(){return rlZ};
Bh.prototype.getExtension=function(A){return _.L(A,_.fH)};
Bh.prototype.JSC$14491_buildRequest=function(A,H,k){k.suggestions_query&&(A.input=k.suggestions_query)};var el=function(){};
_.I(el,my);el.prototype.getApiPaths=function(){return EF0};
el.prototype.getExtension=function(A){return _.L(A,LOA)};
el.prototype.JSC$14491_buildRequest=function(A,H,k){k.comment_text!==void 0&&(A.commentText=k.comment_text);k.scheduled_publish_time_sec&&(A.scheduledPublishTimeSec=k.scheduled_publish_time_sec.toString());A.updateBackstagePostParams=H.updateBackstagePostParams};var x_=function(){};
_.I(x_,my);x_.prototype.getApiPaths=function(){return Cw};
x_.prototype.getExtension=function(A){return _.L(A,_.Tc)};
x_.prototype.JSC$14491_buildRequest=function(A,H,k){k.formData&&(A.formData=k.formData);H.token?A.continuation=H.token:H.continuationTokenKey&&(k=_.F3().getState(),H=_.Mw(k.entities,"continuationTokenEntity",H.continuationTokenKey))&&(A.continuation=String(H.continuationToken))};
var k41=function(){};
_.I(k41,my);_.q=k41.prototype;_.q.getApiPaths=function(){return Cw};
_.q.getExtension=function(A){return _.L(A,_.fm)};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$14498_getStoreKey=function(A){if((A=this.getExtension(A))&&A.browseId){var H={browseId:A.browseId};A.browseEndpointContextSupportedConfigs&&(H.browseEndpointContextSupportedConfigs=JSON.stringify(A.browseEndpointContextSupportedConfigs));A.params&&(H.params=A.params);A.query&&(H.query=A.query);return _.IC("browse",H)}};
_.q.JSC$14491_buildRequest=function(A,H,k){H.browseId&&(A.browseId=H.browseId);H.params&&(A.params=H.params);H.query&&(A.query=H.query);k.formData?A.formData=k.formData:H.formData&&(A.formData=H.formData);H.browseId==="FEsubscriptions"&&_.sH().getFlag(155)&&(A.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");H.browseId==="SPaccount_playback"&&(k=_.sH(),A.formData||(A.formData={}),A.formData.accountSettingsFormData={flagCaptionsDefaultOff:k.getFlag(65),flagAutoCaptionsDefaultOn:k.getFlag(66),
flagDisableInlinePreview:k.getFlag(186),flagAudioDescriptionDefaultOn:k.getFlag(198)});if(H.browseId==="FEwhat_to_watch"){k=_.sH();var d=k.getFlag(196);k.getFlag(197)&&(A.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:d}}})}H.browseId==="FEwhat_to_watch"&&(H=_.sH().getFlag(186),A.inlineSettingStatus=H?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.q.getRequestConfig=function(A,H){H=H===void 0?{}:H;var k={};if(A=this.JSC$14498_getStoreKey(A,H))k.storeStrategy={storeKey:A,disableCache:H.disableCache};_.b("web_log_browse_ticks_ks")||(k.requestTick="br_s",k.responseTick="br_r");return k};var id=function(){};
_.I(id,my);id.prototype.getApiPaths=function(){return vjw};
id.prototype.getExtension=function(A){return _.L(A,Aq1)};
id.prototype.JSC$14491_buildRequest=function(A,H,k){A.legacyYoutubeChannelUsername=k.legacyYouTubeChannelUsername||"";A.legacyYoutubeChannelPassword=k.legacyYouTubeChannelPassword||""};var hI=function(){};
_.I(hI,my);hI.prototype.getApiPaths=function(){return FeJ};
hI.prototype.getExtension=function(A){return _.L(A,FON)};
hI.prototype.JSC$14491_buildRequest=function(A,H,k){k.recaptcha_response_token&&(A.recaptchaResponseToken=k.recaptcha_response_token);k.channel_id&&(A.channelId=k.channel_id)};var On=function(){};
_.I(On,my);On.prototype.getApiPaths=function(){return U9G};
On.prototype.getExtension=function(A){return _.L(A,aPk)};
On.prototype.JSC$14491_buildRequest=function(A,H,k){H.externalChannelId&&(A.externalChannelId=H.externalChannelId);k.handle&&(A.handleUpdate={handle:k.handle},H.handleEditSource&&(A.handleUpdate.handleEditSource=H.handleEditSource))};var Ru=function(){};
_.I(Ru,my);Ru.prototype.getApiPaths=function(){return MeA};
Ru.prototype.getExtension=function(A){return _.L(A,zdA)};
Ru.prototype.JSC$14491_buildRequest=function(A,H,k){H.request&&(A.channelId=H.request.channelId);var d;if(k==null?0:(d=k.uploadDefaults)==null?0:d.emojiReactionSet)A.uploadDefaultsRequest||(A.uploadDefaultsRequest={}),A.uploadDefaultsRequest.emojiReactionSet=k.uploadDefaults.emojiReactionSet};var T7=function(){};
_.I(T7,my);T7.prototype.getApiPaths=function(){return fAN};
T7.prototype.getExtension=function(A){return _.L(A,Xo0)};
T7.prototype.JSC$14491_buildRequest=function(A,H,k){H.externalChannelId&&(A.externalChannelId=H.externalChannelId);H.channelHandleEntityKey&&(A.channelHandleEntityKey=H.channelHandleEntityKey);H.handleEditSource&&(A.handleEditSource=H.handleEditSource);k.handle?A.handle=k.handle:k.name&&(A.name=k.name)};var mX=function(){};
_.I(mX,my);mX.prototype.getApiPaths=function(){return IVw};
mX.prototype.getExtension=function(A){return _.L(A,WfG)};
mX.prototype.JSC$14491_buildRequest=function(A,H){H.actions?A.actions=H.actions:H.action&&(A.actions=[H.action])};var JI=function(){};
_.I(JI,my);JI.prototype.getApiPaths=function(){return YEi};
JI.prototype.getExtension=function(A){return _.L(A,_.Tc)};
JI.prototype.JSC$14491_buildRequest=function(A,H){H.token&&(A.continuation=H.token)};var gz=function(){};
_.I(gz,my);gz.prototype.getApiPaths=function(){return HEi};
gz.prototype.getExtension=function(A){return _.L(A,_.Tc)};
gz.prototype.JSC$14491_buildRequest=function(A,H){A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";H.token&&(A.fetchCommentsParams={continuation:H.token})};var bd=function(){};
_.I(bd,my);bd.prototype.getApiPaths=function(){return DMw};
bd.prototype.getExtension=function(A){return _.L(A,dK0)};
bd.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.createReplyParams&&(A.createReplyParams=H.createReplyParams);H.commentText&&(A.commentText=_.PK(H.commentText));k.comment_text&&(A.commentText=k.comment_text);k.image_blob_id&&(A.imageAttachment={encryptedBlobId:k.image_blob_id});k.botguard_response&&(A.botguardResponse=k.botguard_response)};
_.nP.Object.defineProperties(bd.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var L7=function(){};
_.I(L7,my);L7.prototype.getApiPaths=function(){return SEw};
L7.prototype.getExtension=function(A){return _.L(A,_.kGA)};
L7.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.createCommentParams&&(A.createCommentParams=H.createCommentParams);H.commentText&&(A.commentText=_.PK(H.commentText));H.videoPositionMention&&(A.videoPositionMention=H.videoPositionMention);H.sources&&(A.sources=H.sources);k.comment_text&&(A.commentText=k.comment_text);k.attached_video_id?A.videoAttachment={videoId:k.attached_video_id}:k.poll_options?A.pollAttachment={choices:k.poll_options}:k.image_blob_id?A.imageAttachment=
{encryptedBlobId:k.image_blob_id}:k.shared_post_id&&(A.sharedPostAttachment={postId:k.shared_post_id});k.access_restrictions&&typeof k.access_restrictions==="number"&&(H=k.access_restrictions,A.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});k.botguard_response&&(A.botguardResponse=k.botguard_response)};
_.nP.Object.defineProperties(L7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vh=function(){};
_.I(vh,my);vh.prototype.getApiPaths=function(){return lAN};
vh.prototype.getExtension=function(A){return _.L(A,qlA)};
vh.prototype.JSC$14491_buildRequest=function(A,H,k){H.commentText&&(A.replyText=_.PK(H.commentText));k.comment_text&&(A.replyText=k.comment_text);A.updateReplyParams=H.updateReplyParams};
_.nP.Object.defineProperties(vh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yd=function(){};
_.I(yd,my);yd.prototype.getApiPaths=function(){return tej};
yd.prototype.getExtension=function(A){return _.L(A,zak)};
yd.prototype.JSC$14491_buildRequest=function(A,H,k){H.commentText&&(A.commentText=_.PK(H.commentText));k.comment_text&&(A.commentText=k.comment_text);A.updateCommentParams=H.updateCommentParams};
_.nP.Object.defineProperties(yd.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jl=function(){};
_.I(jl,my);jl.prototype.getApiPaths=function(){return NBA};
jl.prototype.getExtension=function(A){return _.L(A,sSw)};
jl.prototype.JSC$14491_buildRequest=function(A,H){H.settings&&(A.settings=H.settings)};var Iu=function(){};
_.I(Iu,my);Iu.prototype.getApiPaths=function(){return nj1};
Iu.prototype.getExtension=function(A){return _.L(A,Drj)};
Iu.prototype.JSC$14491_buildRequest=function(A,H){H.channelCreationToken&&(A.channelCreationToken=H.channelCreationToken);H.source&&(A.source=H.source)};var Y_=function(){};
_.I(Y_,my);Y_.prototype.getApiPaths=function(){return X$Z};
Y_.prototype.getExtension=function(A){return _.L(A,KOj)};
Y_.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;if(k.name&&(k.given_name||k.family_name))A=new _.Ti("channel creation cannot set both GAIA and YouTube names",H),_.I3(A);else{if(H.zeroStepChannelCreationParams){if(!k.comment_text){A=new _.Ti("zero_step_create_comment_params but no zero_step_texts",H);_.I3(A);return}A.zeroStepChannelCreationParams=H.zeroStepChannelCreationParams;A.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(A.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
k.comment_text,k.botguard_response&&(A.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=k.botguard_response))}A.channelCreationToken=H.channelCreationToken;k.given_name&&(A.givenName=k.given_name);k.family_name&&(A.familyName=k.family_name);H.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(A.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(k.name||k.handle||k.avatar_url||k.encryptedBlobId||k.isNameChanged!==void 0||k.isHandleChanged!==void 0||k.isDefaultProfilePhoto!==
void 0||k.obakeImageSource)A.overrideChannelCreationParams={},k.name&&(A.overrideChannelCreationParams.name=k.name),k.handle&&(A.overrideChannelCreationParams.handle=k.handle),k.avatar_url&&(A.overrideChannelCreationParams.avatarUrl=k.avatar_url),k.encryptedBlobId&&(A.overrideChannelCreationParams.blobEncryptionId=k.encryptedBlobId),k.enableIdentityForAllChannelCreationDialog&&(k.encryptedBlobId?A.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
k.isDefaultProfilePhoto!==void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=k.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),k.isNameChanged!==void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationNameTag=k.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),k.isHandleChanged!==
void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=k.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),k.obakeImageSource&&(A.overrideChannelCreationParams.obakeImageSourceType=k.obakeImageSource))}};var Ph=function(){};
_.I(Ph,my);Ph.prototype.getApiPaths=function(A){return(A=this.getExtension(A))&&A.status==="DISLIKE"?VoG:A&&A.status==="INDIFFERENT"?jBk:iEp};
Ph.prototype.getExtension=function(A){return _.L(A,_.BY)};
Ph.prototype.JSC$14491_buildRequest=function(A,H){H.target&&(A.target=H.target);if(H=this.getParams(H))A.params=H};
Ph.prototype.getParams=function(A){switch(A==null?void 0:A.status){case "DISLIKE":return A.dislikeParams;case "INDIFFERENT":return A.removeLikeParams;default:return A==null?void 0:A.likeParams}};var G7=function(){};
_.I(G7,my);G7.prototype.getApiPaths=function(){return Kep};
G7.prototype.getExtension=function(A){return _.L(A,igN)};
G7.prototype.JSC$14491_buildRequest=function(A,H){H.settingItemId&&(A.settingItemId=H.settingItemId);H.stringValue!=null&&H.stringValue!==void 0?A.newValue={stringValue:H.stringValue}:H.intValue?A.newValue={intValue:H.intValue}:H.boolValue!==null&&H.boolValue!==void 0?A.newValue={boolValue:H.boolValue}:(A=new _.Ti("Unknown value type for SetSettingEndpoint.",H),_.I3(A))};var F6=function(){};
_.I(F6,my);F6.prototype.getApiPaths=function(){return pbw};
F6.prototype.getExtension=function(A){return _.L(A,Ffp)||void 0};
F6.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.channelIds&&(A.channelIds=H.channelIds);H.siloName&&(A.siloName=H.siloName);H.params&&(A.params=H.params);k.botguardResponse&&(A.botguardResponse=k.botguardResponse);k.feature&&(A.clientFeature=k.feature)};
_.nP.Object.defineProperties(F6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var X6=function(){};
_.I(X6,my);X6.prototype.getApiPaths=function(){return Vew};
X6.prototype.getExtension=function(A){return _.L(A,haw)||void 0};
X6.prototype.JSC$14491_buildRequest=function(A,H){H.channelIds&&(A.channelIds=H.channelIds);H.siloName&&(A.siloName=H.siloName);H.params&&(A.params=H.params)};
_.nP.Object.defineProperties(X6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var DX=function(A){this.shareClientParamsProvider=A};
_.I(DX,my);DX.prototype.getApiPaths=function(){return JHI};
DX.prototype.getExtension=function(A){return _.L(A,p2i)||_.L(A,_.Qhw)||_.L(A,cU0)};
DX.prototype.JSC$14491_buildRequest=function(A,H){H.serializedShareEntity&&(A.serializedSharedEntity=H.serializedShareEntity);if(H.clientParamIdentifier){var k;if((k=this.shareClientParamsProvider)==null?0:k.clientParams.has(H.clientParamIdentifier)){k=this.shareClientParamsProvider;H=H.clientParamIdentifier;var d=k.clientParams.get(H);d&&k.clientParams.delete(H);A.clientParams=d}}};
DX[ox]=[GwI];var Sl=function(){};
_.I(Sl,my);Sl.prototype.getApiPaths=function(){return gj1};
Sl.prototype.getExtension=function(A){return _.L(A,uRw)};
Sl.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var C7=function(){};
_.I(C7,my);C7.prototype.getApiPaths=function(){return Ejj};
C7.prototype.getExtension=function(A){return _.L(A,qMw)};
C7.prototype.JSC$14491_buildRequest=function(A,H){H.dismissal&&(A.items=[H.dismissal])};
_.nP.Object.defineProperties(C7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var K7=function(){};
_.I(K7,my);K7.prototype.getApiPaths=function(){return ehQ};
K7.prototype.getExtension=function(A){return _.L(A,_.Ts)||void 0};
K7.prototype.JSC$14491_buildRequest=function(A,H,k){A.feedbackTokens=[];H.feedbackToken&&A.feedbackTokens.push(H.feedbackToken);if(H=H.cpn||k.cpn)A.feedbackContext={cpn:H};A.isFeedbackTokenUnencrypted=!!k.is_feedback_token_unencrypted;A.shouldMerge=!1;k.extra_feedback_tokens&&(A.shouldMerge=!0,A.feedbackTokens=A.feedbackTokens.concat(k.extra_feedback_tokens))};
_.nP.Object.defineProperties(K7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var au=function(){};
_.I(au,my);au.prototype.getApiPaths=function(){return ehQ};
au.prototype.getExtension=function(A){return _.L(A,_.fH)};
au.prototype.JSC$14491_buildRequest=function(A,H,k){k.feedback_tokens&&(A.feedbackTokens=k.feedback_tokens,A.shouldMerge=!0)};
_.nP.Object.defineProperties(au.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ch=function(){};
_.I(ch,my);ch.prototype.getApiPaths=function(){return ehQ};
ch.prototype.getExtension=function(A){return _.L(A,pvv)};
ch.prototype.JSC$14491_buildRequest=function(A,H){H.undoToken&&(A.feedbackTokens=[H.undoToken]);H.isUndoTokenUnencrypted&&(A.isFeedbackTokenUnencrypted=H.isUndoTokenUnencrypted)};
_.nP.Object.defineProperties(ch.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var p7=function(){};
_.I(p7,my);p7.prototype.getApiPaths=function(){return wbG};
p7.prototype.getExtension=function(A){return _.L(A,d_w)};
p7.prototype.JSC$14491_buildRequest=function(A,H){H.nextEndpoint&&_.L(H.nextEndpoint,_.KT)?A.nextEndpoint={urlEndpoint:_.L(H.nextEndpoint,_.KT)}:H.nextEndpoint&&_.L(H.nextEndpoint,_.Yr)&&(A.nextEndpoint={watchEndpoint:_.L(H.nextEndpoint,_.Yr)});H.setRacy&&(A.setRacy=H.setRacy);H.setControvercy&&(A.setControvercy=H.setControvercy)};var Qd=function(A){this.JSC$18513_storeWithEntities=A};
_.I(Qd,my);Qd.prototype.getApiPaths=function(){return lVw};
Qd.prototype.getExtension=function(A){return _.L(A,FmG)};
Qd.prototype.JSC$14491_buildRequest=function(A,H){H.flowId&&(A.flowId=H.flowId);H.targetId&&(A.targetId=H.targetId);H.continuation&&(A.continuation=H.continuation);var k=H.flowStateEntityKey;if(H.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&k&&this.JSC$18513_storeWithEntities){var d;if(H=(d=this.JSC$18513_storeWithEntities.getState())==null?void 0:d.entities)if(d=_.Vm(k).entityType,d=_.Mw(H,d,k))A.flowState=d,A.flowStateEntityKey=k}};
_.nP.Object.defineProperties(Qd.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Qd[ox]=[tv];var dZ3=function(){};
_.I(dZ3,my);_.q=dZ3.prototype;_.q.getApiPaths=function(){return BBN};
_.q.JSC$14498_getStoreKey=function(){return _.IC("guide")};
_.q.getRequestConfig=function(){var A=this.JSC$14498_getStoreKey(),H;A&&(H={storeStrategy:{storeKey:A}});return H};
_.q.isNavigationCommand=function(){return!0};
_.q.getExtension=function(A){return _.L(A,_.fH)};
_.q.JSC$14491_buildRequest=function(A){A.fetchLiveState=!0};var Vd=function(){};
_.I(Vd,my);Vd.prototype.getApiPaths=function(){return yPi};
Vd.prototype.getExtension=function(A){return _.L(A,AB0)};
Vd.prototype.JSC$14491_buildRequest=function(){};var En=function(){};
_.I(En,my);En.prototype.getApiPaths=function(){return jHk};
En.prototype.getExtension=function(A){return _.L(A,Hgj)};
En.prototype.JSC$14491_buildRequest=function(){};var Un=function(){};
_.I(Un,my);Un.prototype.getApiPaths=function(){return JPw};
Un.prototype.getExtension=function(A){return _.L(A,_.Tc)};
Un.prototype.JSC$14491_buildRequest=function(A,H){H.token&&(A.continuation=H.token);var k,d;A==null||(k=A.context)==null||(d=k.user)==null||delete d.onBehalfOfUser};
Un.prototype.getRequestConfig=function(A){var H={},k;if(((k=this.getExtension(A))==null?void 0:k.sessionIndex)!==void 0){var d;H={authStrategy:{sessionIndex:(d=this.getExtension(A))==null?void 0:d.sessionIndex}}}return H};var wz=function(){};
_.I(wz,my);wz.prototype.JSC$14491_getRequest=function(A){var H=this.getExtension(A),k=A="";if(H==null?0:H.popup)A="true";if(H==null?0:H.disableSignout)k="true";H={};return{input:"/getAccountSwitcherEndpoint",requestShell:j1("/getAccountSwitcherEndpoint","GET",(H["X-YouTube-Delegation-Context"]=_.pZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),H["X-YouTube-Account-Switcher-Popup"]=A,H["X-YouTube-Account-Switcher-Disable-Signout"]=k,H)),innerTubeRequest:{}}};
wz.prototype.getApiPaths=function(){return[]};
wz.prototype.getExtension=function(A){return _.L(A,_.lUI)};
wz.prototype.JSC$14491_buildRequest=function(){};var ou=function(){};
_.I(ou,my);ou.prototype.JSC$14491_getRequest=function(A){var H="/cross_account_channel_transfer";(A=this.getExtension(A))&&(H=vB8(H,{target_session:A.targetSessionIndex,source_rapt:A.sourceRapt,rapt:A.targetRapt}));return{input:H,requestShell:j1(H,"GET"),innerTubeRequest:{}}};
ou.prototype.getApiPaths=function(){return[]};
ou.prototype.getExtension=function(A){return _.L(A,nww)};
ou.prototype.JSC$14491_buildRequest=function(){};var $_=function(){};
_.I($_,my);$_.prototype.getApiPaths=function(){return toj};
$_.prototype.isNavigationCommand=function(){return!0};
$_.prototype.getExtension=function(A){return _.L(A,_.fH)};
$_.prototype.JSC$14491_buildRequest=function(A){var H=_.sH().get("gsml","");H&&(A.safetyModeLockerObfuscatedGaiaId=H);A.userInterfaceTheme=_.bw(!0);_.LF()?A.deviceTheme="DEVICE_THEME_SELECTED":_.$9W()?A.deviceTheme="DEVICE_THEME_SUPPORTED":A.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var AQ=function(){};
_.I(AQ,my);AQ.prototype.getApiPaths=function(){return JPw};
AQ.prototype.getExtension=function(A){return _.L(A,ZnQ)};
AQ.prototype.JSC$14491_buildRequest=function(A,H){if(H&&H.requestType&&(A.requestType=H.requestType,H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var k=H.nextUrl;k&&(_.jNW(k)||ZR(k))&&(A.nextNavendpoint={urlEndpoint:{url:k}})}H&&H.channelSwitcherQuery&&(A.channelSwitcherQuery=H.channelSwitcherQuery);H&&H.triggerChannelCreation&&(A.triggerChannelCreation=H.triggerChannelCreation);var d;if(H==null?0:(d=H.contentOwnerConfig)==
null?0:d.externalContentOwnerId)A.contentOwnerConfig=H.contentOwnerConfig;A.callCircumstance=H&&H.requestType&&H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var W,z;H=A==null?void 0:(W=A.context)==null?void 0:(z=W.user)==null?void 0:z.onBehalfOfUser;if(H!==void 0){A.obfuscatedSelectedGaiaId=H;var u,B;A==null||(u=A.context)==null||(B=u.user)==null||delete B.onBehalfOfUser}var h,O;if(W=A==null?void 0:(h=A.context)==null?void 0:(O=h.user)==null?
void 0:O.serializedDelegationContext)A.selectedSerializedDelegationContext=W};var Hd=function(){};
_.I(Hd,my);Hd.prototype.getApiPaths=function(){return bvi};
Hd.prototype.getExtension=function(A){return _.L(A,V$i)};
Hd.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var s1=function(){};
_.I(s1,my);s1.prototype.getApiPaths=function(){return Fdj};
s1.prototype.getExtension=function(A){return _.L(A,_.wiZ)};
s1.prototype.JSC$14491_buildRequest=function(A,H){if(H=H.createBroadcastRequest)A.useMasks=H.useMasks,A.broadcastType=H.broadcastType,A.broadcastSource=H.broadcastSource,A.broadcastMetadata=H.broadcastMetadata,A.broadcastMetadataMask=H.broadcastMetadataMask,A.videoMetadata=H.videoMetadata,A.videoMetadataMask=H.videoMetadataMask,A.liveChatSettingsUpdate=H.liveChatSettingsUpdate,A.liveChatSettingsUpdateMask=H.liveChatSettingsUpdateMask,A.cloneVideoId=H.cloneVideoId,A.cloneWithOverrides=H.cloneWithOverrides,
A.targetEntity=H.targetEntity,A.scheduledRedirectMetadata=H.scheduledRedirectMetadata};var kQ=function(){};
_.I(kQ,my);kQ.prototype.getApiPaths=function(){return CDw};
kQ.prototype.getExtension=function(A){return _.L(A,Eek)};
kQ.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.params&&(A.params=H.params);k.questionText&&(A.questionText=k.questionText);k.optionText&&k.optionText.length>0&&(A.optionText=k.optionText)};var dV=function(){};
_.I(dV,my);dV.prototype.getApiPaths=function(){return cP0};
dV.prototype.getExtension=function(A){return _.L(A,QDG)};
dV.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var Wd=function(){};
_.I(Wd,my);Wd.prototype.getApiPaths=function(){return fVw};
Wd.prototype.getExtension=function(A){return _.L(A,K1A)};
Wd.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var zp=function(){};
_.I(zp,my);zp.prototype.getApiPaths=function(){return ojw};
zp.prototype.getExtension=function(A){return _.L(A,a2Z)};
zp.prototype.JSC$14491_buildRequest=function(A,H,k){H.params&&(A.params=H.params);H.continuation&&(A.continuation=H.continuation);k.currentPlayerState&&k.currentPlayerState.playerOffsetMs&&(A.currentPlayerState={playerOffsetMs:k.currentPlayerState.playerOffsetMs.toString()})};var qS=function(){};
_.I(qS,my);qS.prototype.getApiPaths=function(){return $M0};
qS.prototype.getExtension=function(A){return _.L(A,CRk)};
qS.prototype.JSC$14491_buildRequest=function(A,H,k){H.params&&(A.params=H.params);k.continuation&&(A.continuation=k.continuation);"hidden"in k&&(A.webClientInfo={isDocumentHidden:k.hidden});k.isInvalidationTimeoutRequest&&(A.isInvalidationTimeoutRequest=k.isInvalidationTimeoutRequest);k.invalidationPayload&&(H=Smw(_.$8(fY(k.invalidationPayload))),A.invalidationPayloadLastPublishAtUsec=T5(H,2));k.reloadActionPanel&&(A.reloadActionPanel=k.reloadActionPanel);k.fullReload&&(A.fullReload=k.fullReload);
k.currentPlayerState&&(A.currentPlayerState=k.currentPlayerState)};var rV=function(){};
_.I(rV,my);rV.prototype.getApiPaths=function(){return hh0};
rV.prototype.getExtension=function(A){return _.L(A,VGA)};
rV.prototype.JSC$14491_buildRequest=function(A,H){A.params=H.params};var uO=function(){};
_.I(uO,my);uO.prototype.getApiPaths=function(){return w$0};
uO.prototype.getExtension=function(A){return _.L(A,k2w)};
uO.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var Bd=function(){};
_.I(Bd,my);Bd.prototype.getApiPaths=function(){return Alj};
Bd.prototype.getExtension=function(A){return _.L(A,dcN)};
Bd.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var er=function(){};
_.I(er,my);er.prototype.getApiPaths=function(){return OEw};
er.prototype.getExtension=function(A){return _.L(A,Ulp)};
er.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var xQ=function(){};
_.I(xQ,my);xQ.prototype.getApiPaths=function(){return TBJ};
xQ.prototype.getExtension=function(A){return _.L(A,l2i)};
xQ.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var iO=function(){};
_.I(iO,my);iO.prototype.getApiPaths=function(){return IAA};
iO.prototype.getExtension=function(A){return _.L(A,lbG)};
iO.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var hQ=function(){};
_.I(hQ,my);hQ.prototype.getApiPaths=function(){return Sb1};
hQ.prototype.getExtension=function(A){return _.L(A,_.tGN)};
hQ.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.params&&(A.params=H.params);k.client_message_id&&(A.clientMessageId=k.client_message_id);k.recaptcha_token&&(A.recaptchaToken=k.recaptcha_token);k.rich_message&&k.rich_message.text_segments?(H=k.rich_message.text_segments.map(function(d){var W={};d.text&&(W.text=d.text);d.emoji_id&&(W.emojiId=d.emoji_id);return W}),A.richMessage={textSegments:H}):k.message&&(A.message=k.message);
k.currentPlayerState&&(A.currentPlayerState=k.currentPlayerState)};var O1=function(){};
_.I(O1,my);O1.prototype.getApiPaths=function(){return CTw};
O1.prototype.getExtension=function(A){return _.L(A,NNw)};
O1.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var RA=function(){};
_.I(RA,my);RA.prototype.getApiPaths=function(){return QBw};
RA.prototype.getExtension=function(A){return _.L(A,neG)};
RA.prototype.JSC$14491_buildRequest=function(A,H,k){H.isUserInitiated&&(A.isUserInitiated=H.isUserInitiated);H.initiationSource&&(A.initiationSource=H.initiationSource);k.locationInfo&&(A.context.client.locationInfo=k.locationInfo)};var Tp=function(){};
_.I(Tp,my);Tp.prototype.getApiPaths=function(){return Rhw};
Tp.prototype.getExtension=function(A){return _.L(A,ofG)};
Tp.prototype.JSC$14491_buildRequest=function(A,H,k){H.metadataUpdateRequest&&(H=H.metadataUpdateRequest,A.encryptedVideoId=H.encryptedVideoId,H.liveChat&&(H=H.liveChat,A.liveChat||(A.liveChat={}),H.performAsExternalChannelId&&(A.liveChat.performAsExternalChannelId=H.performAsExternalChannelId),H.source&&(A.liveChat.source=H.source)));var d;if(k==null?0:(d=k.liveChat)==null?0:d.liveChatSettings)A.liveChat||(A.liveChat={}),k=k.liveChat.liveChatSettings,A.liveChat.newLiveChatSettings=k,A.liveChat.newLiveChatSettingsMask||
(A.liveChat.newLiveChatSettingsMask={}),k.emojiReactionSet&&(A.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var mZ=function(){};
_.I(mZ,my);mZ.prototype.getApiPaths=function(){return ZE1};
mZ.prototype.getExtension=function(A){return _.L(A,_.OgZ)};
mZ.prototype.JSC$14491_buildRequest=function(A,H,k){k.continuation?A.continuation=k.continuation:H.videoId&&(A.videoId=H.videoId);k.clientParams&&(A.clientParams=k.clientParams)};var JQ=function(){};
_.I(JQ,my);JQ.prototype.getApiPaths=function(){return HEi};
JQ.prototype.getExtension=function(A){return _.L(A,_.RD)};
JQ.prototype.JSC$14491_buildRequest=function(A,H){A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";A.fetchCommentsParams={};H.videoId&&(A.fetchCommentsParams.encryptedVideoId=H.videoId);H.postId&&(A.fetchCommentsParams.postId=H.postId);H.externalChannelId&&(A.fetchCommentsParams.externalChannelId=H.externalChannelId);H.linkedCommentId&&(A.fetchCommentsParams.linkedCommentId=H.linkedCommentId);(0,_.iK.isEmpty)(A.fetchCommentsParams)&&delete A.fetchCommentsParams};var gV=function(){};
_.I(gV,my);gV.prototype.getApiPaths=function(){return Cw};
gV.prototype.JSC$14491_buildRequest=function(A){A.browseId="FEnotifications_inbox"};
gV.prototype.getExtension=function(A){return _.L(A,_.fH)};var bO=function(){};
_.I(bO,my);bO.prototype.getApiPaths=function(){return HEi};
bO.prototype.JSC$14491_buildRequest=function(A,H){H.signal==="GET_NOTIFICATIONS_MENU"&&(A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");H.ctoken&&(A.ctoken=H.ctoken)};
var WMR=function(){};
_.I(WMR,bO);WMR.prototype.getExtension=function(A){return _.L(A,_.fH)};
var zcM=function(){};
_.I(zcM,bO);zcM.prototype.getExtension=function(A){return _.L(A,HIG)};var LD=function(){};
_.I(LD,my);LD.prototype.getApiPaths=function(){return qbp};
LD.prototype.getExtension=function(A){return _.L(A,_.fH)};
LD.prototype.JSC$14491_buildRequest=function(){};var vd=function(){};
_.I(vd,my);vd.prototype.getApiPaths=function(){return m9J};
vd.prototype.getExtension=function(A){return _.L(A,BfZ)||void 0};
vd.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params);H.secondaryParams&&(A.secondaryParams=H.secondaryParams)};var yQ=function(){};
_.I(yQ,my);yQ.prototype.getApiPaths=function(){return Jlp};
yQ.prototype.getExtension=function(A){return _.L(A,EOA)};
yQ.prototype.JSC$14491_buildRequest=function(A,H){H.undo&&(A.undo=H.undo);H.serializedOptOut&&(A.serializedOptOut=H.serializedOptOut);H.serializedRecordInteractionsRequest&&(A.serializedRecordInteractionsRequest=H.serializedRecordInteractionsRequest)};var jr=function(){};
_.I(jr,my);jr.prototype.getApiPaths=function(){return LeA};
jr.prototype.getExtension=function(A){return _.L(A,UYA)};
jr.prototype.JSC$14491_buildRequest=function(A,H){H.serializedInteractionsRequest&&(A.serializedRecordNotificationInteractionsRequest=H.serializedInteractionsRequest)};var IA=function(){};
_.I(IA,my);IA.prototype.getApiPaths=function(){return gKl};
IA.prototype.getExtension=function(A){return _.L(A,_.FU)};
IA.prototype.JSC$14491_buildRequest=function(A,H,k){H=H===void 0?{}:H;k=k===void 0?{}:k;H.videoId?A.videoId=H.videoId:H.playlistId&&(A.playlistId=H.playlistId);var d;A.crossDeviceDownloadData={isCrossDeviceDownload:(d=H.isCrossDeviceDownload)!=null?d:!1};!k.downloadToMobileEduShown&&H.isCrossDeviceDownload&&(A.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var W;if(d=(W=H.offlineWebClientEligibility)!=null?W:k.offlineWebClientEligibility)A.offlineWebClientEligibility=d;var z;if(W=(z=H.preferredFormatType)!=
null?z:k.preferredFormatType)A.preferredFormatType=W;var u;if(z=(u=H.lastOfflineQualitySettingsSavedMs)!=null?u:k.lastOfflineQualitySettingsSavedMs)A.lastOfflineQualitySettingsSavedMs=z;H.params&&(A.params=H.params)};var YQ=function(){};
_.I(YQ,my);YQ.prototype.getApiPaths=function(){return C4};
YQ.prototype.getExtension=function(A){return _.L(A,_.Tc)};
YQ.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.token&&(A.continuation=H.token);k.formData&&(A.formData=k.formData)};var Pd=function(){};
_.I(Pd,my);Pd.prototype.getApiPaths=function(){return C4};
Pd.prototype.getExtension=function(A){return _.L(A,tdi)};
Pd.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;A.continuation=k.continuation};var Gp=function(){};
_.I(Gp,my);Gp.prototype.getApiPaths=function(){return C4};
Gp.prototype.getExtension=function(A){return _.L(A,_.RL)};
Gp.prototype.JSC$14491_buildRequest=function(A,H){var k,d=H.panelIdentifier||((k=H.identifier)==null?void 0:k.tag);d&&(A.panelId=d);var W;if((W=H.globalConfiguration)==null?0:W.params){var z;A.params=(z=H.globalConfiguration)==null?void 0:z.params}if(_.b("enable_ai_companion")){var u;H=H.engagementPanelExtras;if(H==null?0:(u=H.aiCompanionPanelExtras)==null?0:u.includeClientConversationId){var B,h;u=(h=(B=_.wj().resolve(_.fZ(cee)))==null?void 0:B("conversations"))==null?void 0:h.get("conversation_id")}else u=
void 0;if(B=u)A.formData=Object.assign({},A.formData,{inputComposerFormData:{conversationId:B}})}};
_.nP.Object.defineProperties(Gp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fn=function(){};
_.I(Fn,my);Fn.prototype.getApiPaths=function(){return C4};
Fn.prototype.getExtension=function(A){return _.L(A,Cuw)};
Fn.prototype.JSC$14491_buildRequest=function(A,H){H.panelLoadingStrategy&&IM8(A,H.panelLoadingStrategy)};var Xn=function(){};
_.I(Xn,my);Xn.prototype.getApiPaths=function(){return C4};
Xn.prototype.getExtension=function(A){return _.L(A,A0i)};
Xn.prototype.JSC$14491_buildRequest=function(A,H){H.loadingStrategy&&IM8(A,H.loadingStrategy)};var Dj=function(){};
_.I(Dj,my);Dj.prototype.getApiPaths=function(){return C4};
Dj.prototype.getExtension=function(A){return _.L(A,_.d9)};
Dj.prototype.JSC$14491_buildRequest=function(A,H){H.panelLoadingStrategy&&IM8(A,H.panelLoadingStrategy)};var Sr=function(){};
_.I(Sr,my);Sr.prototype.getApiPaths=function(){return C4};
Sr.prototype.getExtension=function(A){return _.L(A,Hkp)};
Sr.prototype.JSC$14491_buildRequest=function(A,H){var k,d=(k=H.contentSourcePanelIdentifier)==null?void 0:k.tag;d&&(A.panelId=d);var W;if((W=H.globalConfiguration)==null?0:W.params){var z;A.params=(z=H.globalConfiguration)==null?void 0:z.params}};var CD=function(){};
_.I(CD,my);CD.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
CD.prototype.getExtension=function(A){return _.L(A,sgw)};
CD.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var KD=function(){};
_.I(KD,my);KD.prototype.getApiPaths=function(){return nFG};
KD.prototype.getExtension=function(A){return _.L(A,Wyi)};
KD.prototype.JSC$14491_buildRequest=function(A,H){H.externalChannelId&&(A.externalChannelId=H.externalChannelId);H.superChatAction&&(A.superChatAction=H.superChatAction);H.superStickersAction&&(A.superStickersAction=H.superStickersAction)};var aA=function(){};
_.I(aA,my);aA.prototype.getApiPaths=function(){return NAZ};
aA.prototype.getExtension=function(A){return _.L(A,$cJ)||_.L(A,AiI)};
aA.prototype.JSC$14491_buildRequest=function(A,H){H.videoIds?A.videoIds=H.videoIds:H.videoId&&(A.videoIds=[H.videoId]);H.playlistId&&(A.playlistId=H.playlistId);H.params&&(A.params=H.params);A.excludeWatchLater=!1};var cd=function(){};
_.I(cd,my);cd.prototype.getApiPaths=function(){return KdZ};
cd.prototype.getExtension=function(A){return _.L(A,_.L4)};
cd.prototype.JSC$14491_buildRequest=function(A,H,k){k.create_playlist_title?A.title=k.create_playlist_title:H.title&&(A.title=H.title);if(k.create_playlist_privacy_status&&typeof k.create_playlist_privacy_status==="number"){a:{var d=k.create_playlist_privacy_status;if(d!==0){if(d===1){d="PUBLIC";break a}if(d===2){d="UNLISTED";break a}}d="PRIVATE"}A.privacyStatus=d}else H.privacyStatus&&(A.privacyStatus=H.privacyStatus);k.create_playlist_description&&(A.description=k.create_playlist_description);H.videoIds&&
(A.videoIds=H.videoIds);H.params&&(A.params=H.params);H.sourcePlaylistId&&(A.sourcePlaylistId=H.sourcePlaylistId)};var pD=function(){};
_.I(pD,my);pD.prototype.getApiPaths=function(){return p$A};
pD.prototype.getExtension=function(A){return _.L(A,rBw)};
pD.prototype.JSC$14491_buildRequest=function(A,H){A.playlistId=H.playlistId};var QQ=function(){};
_.I(QQ,my);QQ.prototype.getApiPaths=function(){return sBJ};
QQ.prototype.getExtension=function(A){return _.L(A,Klk)};
QQ.prototype.JSC$14491_buildRequest=function(A,H){H.playlistId&&(A.playlistId=H.playlistId);H.params&&(A.params=H.params)};var VQ=function(){};
_.I(VQ,my);VQ.prototype.getApiPaths=function(){return bE1};
VQ.prototype.getExtension=function(A){return _.L(A,_.Tr)||void 0};
VQ.prototype.JSC$14491_buildRequest=function(A,H){H.actions&&(A.actions=H.actions);H.params&&(A.params=H.params);H.playlistId&&(A.playlistId=H.playlistId)};var E1=function(){};
_.I(E1,my);_.q=E1.prototype;_.q.getApiPaths=function(){return vFw};
_.q.getExtension=function(A){return _.L(A,_.A1)};
_.q.JSC$14491_buildRequest=function(A,H){H.videoId&&(A.playerRequest={videoId:H.videoId},H.playerParams&&(A.playerRequest.params=H.playerParams),H.racyCheckOk&&(A.playerRequest.racyCheckOk=!!H.racyCheckOk),H.contentCheckOk&&(A.playerRequest.contentCheckOk=!!H.contentCheckOk));H.params&&(A.params=H.params);H.inputType&&(A.inputType=H.inputType);A.disablePlayerResponse=!0};
_.q.getRequestConfig=function(A){var H;(A=this.JSC$14498_getStoreKey(A))&&(H={storeStrategy:{storeKey:A}});_.b("web_log_reels_ticks")&&(H=H||{},H.requestTick="r_wrs",H.responseTick="r_wrr");return H};
_.q.JSC$14498_getStoreKey=function(A){A=this.getExtension(A);if(A!=null&&A.videoId){var H={videoId:A.videoId};A.params&&(H.params=A.params);return _.IC("reel_item_watch",H)}};var U1=function(){};
_.I(U1,my);_.q=U1.prototype;_.q.getApiPaths=function(){return ylk};
_.q.getExtension=function(A){return _.L(A,_.A1)};
_.q.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;A.sequenceParams=H.sequenceParams;var d;((d=k)==null?0:d.contentPlaybackContext)&&_.b("web_shorts_prefetch_service_enabled")&&(A.playbackContext={contentPlaybackContext:k.contentPlaybackContext})};
_.q.JSC$14498_getStoreKey=function(A){if(_.b("shorts_controller_retrieve_seedless_sequence_v2")&&(A=this.getExtension(A),A==null?0:A.sequenceParams))return _.IC("reel_watch_sequence",{sequenceParams:A.sequenceParams})};
_.q.getRequestConfig=function(A){A=this.JSC$14498_getStoreKey(A);var H;A&&(H={storeStrategy:{storeKey:A}});H=H||{};H.requestTick="r_wsrs";H.responseTick="r_wsrr";H.processorTick="r_wsrp";return H};
var lO=function(){};
_.I(lO,my);lO.prototype.getApiPaths=function(){return ylk};
lO.prototype.getExtension=function(A){return _.L(A,_.Tc)};
lO.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.token&&(A.continuation=H.token);var d;((d=k)==null?0:d.contentPlaybackContext)&&_.b("web_shorts_prefetch_service_enabled")&&(A.playbackContext={contentPlaybackContext:k.contentPlaybackContext})};
lO.prototype.getRequestConfig=function(A){A=this.JSC$14498_getStoreKey(A);var H;A&&(H={storeStrategy:{storeKey:A}});H=H||{};H.requestTick="r_wsrs";H.responseTick="r_wsrr";H.processorTick="r_wsrp";return H};var tQ=function(){};
_.I(tQ,my);tQ.prototype.getApiPaths=function(){return UMw};
tQ.prototype.getExtension=function(A){return _.L(A,_.IDA)};
tQ.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.flagAction&&(A.action=H.flagAction);H.flagRequestType&&(A.flagRequestType=H.flagRequestType);H.additionalDetailCheckboxChecked&&(A.additionalDetailCheckboxChecked=H.additionalDetailCheckboxChecked);H.legalCheckboxChecked&&(A.legalCheckboxChecked=H.legalCheckboxChecked);H={};k.flag_issue_type!==void 0&&(H.issue=k.flag_issue_type);k.flag_affiliation!==void 0&&(H.affiliation=k.flag_affiliation);k.flag_full_name&&(H.fullName=k.flag_full_name);
Object.keys(H).length&&(A.legalReportDetails=H);if(k.flag_description||k.text)A.userComments=k.flag_description||k.text;H={};k.minutes!==void 0&&k.seconds!==void 0&&(H.minutes=k.minutes,H.seconds=k.seconds);k.vss_id&&(H.vssId=k.vss_id);Object.keys(H).length&&(A.videoReportDetails=H);H={};k.video_ids&&(H.videoIds=k.video_ids);k.impersonated_channel_url&&(H.impersonatedChannelUrl=k.impersonated_channel_url);Object.keys(H).length&&(A.channelAbuseReportDetails=H)};
_.nP.Object.defineProperties(tQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NS=function(){};
_.I(NS,my);NS.prototype.getApiPaths=function(){return ZvA};
NS.prototype.getExtension=function(A){return _.L(A,sDk)};
NS.prototype.JSC$14491_buildRequest=function(A,H){H.blockedForKidsContent&&(A.blockedForKidsContent=H.blockedForKidsContent)};var MS=function(){};
_.I(MS,my);MS.prototype.getApiPaths=function(){return YbZ};
MS.prototype.getExtension=function(A){return _.L(A,$uX)};
MS.prototype.JSC$14491_buildRequest=function(A,H,k){A.params=H.params;k.impersonated_channel_url&&(A.impersonatedChannelUrl=k.impersonated_channel_url)};var nD=function(){};
_.I(nD,my);nD.prototype.getApiPaths=function(){return x9i};
nD.prototype.getExtension=function(A){return _.L(A,_.krj)};
nD.prototype.JSC$14491_buildRequest=function(A,H){H.items&&(A.items=H.items);H.kidGaiaId&&(A.kidGaiaId=H.kidGaiaId)};var Zj=function(){};
_.I(Zj,my);Zj.prototype.getApiPaths=function(){return Mow};
Zj.prototype.getExtension=function(A){return _.L(A,_.fJA)};
Zj.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params);H.targetId&&(A.targetId=H.targetId)};var fD=function(){};
_.I(fD,my);fD.prototype.getApiPaths=function(){return XbA};
fD.prototype.getExtension=function(A){return _.L(A,sqA)};
fD.prototype.JSC$14491_buildRequest=function(A,H){H.externalVideoId&&(A.externalVideoId=H.externalVideoId);H.query&&(A.query=H.query);H.sourceTimelines&&(A.sourceTimelines=H.sourceTimelines)};var wV=function(){};
_.I(wV,my);wV.prototype.getApiPaths=function(){return D9w};
wV.prototype.getExtension=function(A){return _.L(A,_.Tc)||void 0};
wV.prototype.JSC$14491_buildRequest=function(A,H){H.token&&(A.continuation=H.token)};
_.q93=function(){};
_.I(_.q93,my);_.q=_.q93.prototype;_.q.getApiPaths=function(){return D9w};
_.q.getExtension=function(A){return _.L(A,_.wl)||void 0};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$14498_getStoreKey=function(A,H){H=H===void 0?{}:H;if(!H.disableCache&&(A=this.getExtension(A))&&A.query)return H={query:A.query},A.params&&(H.params=A.params),_.IC("search",H)};
_.q.JSC$14491_buildRequest=function(A,H,k){H.query&&(A.query=H.query);H.params&&(A.params=H.params);_.b("enable_page_type_in_search_request")&&H.pageType&&(A.searchPageType=H.pageType);if(!_.b("web_forward_suggest_stats_killswitch")){var d=_.L(H,PUk);d&&(A.suggestStats=d)}var W;!_.b("kevlar_searchbox_stats_killswitch")&&((W=k.tempData)==null?0:W.gs_l)&&!_.L(H,PUk)&&(A.webSearchboxStatsUrl="/search?oq="+(k.tempData.oq||"")+"&gs_l="+k.tempData.gs_l);var z;if((z=k.tempData)==null?0:z.entityMid)H=A.suggestionSearchParams||
{},H.entityMid=k.tempData.entityMid,A.suggestionSearchParams=H;H=_.sH().getFlag(186);A.inlineSettingStatus=H?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";k.isFromShorts&&(A.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.q.getRequestConfig=function(A,H){H=H===void 0?{}:H;A=this.JSC$14498_getStoreKey(A,H);var k;A&&(k={storeStrategy:{storeKey:A}});_.b("web_log_search_ticks_ks")||(k=k||{},k.requestTick="sr_s",k.responseTick="sr_r");return k};var oA=function(){};
_.I(oA,my);oA.prototype.getApiPaths=function(){return We1};
oA.prototype.getExtension=function(A){return _.L(A,gLj)};
oA.prototype.JSC$14491_buildRequest=function(A,H){H.serializedGetSharingProviderDataParams&&(A.serializedGetSharingProviderDataParams=H.serializedGetSharingProviderDataParams)};var $Q=function(){};
_.I($Q,my);$Q.prototype.getApiPaths=function(){return zhk};
$Q.prototype.getExtension=function(A){return _.L(A,bIA)};
$Q.prototype.JSC$14491_buildRequest=function(A,H){H.endpoint&&(A.endpoint=H.endpoint);H.action&&(A.action=H.action)};var AJ=function(){};
_.I(AJ,my);AJ.prototype.getApiPaths=function(){return QHA};
AJ.prototype.getExtension=function(A){return _.L(A,uJw)};
AJ.prototype.JSC$14491_buildRequest=function(A,H){A.videoId=H.videoId;H.scheduledRedirectMetadataSourceVideoId&&(A.scheduledRedirectMetadata={sourceVideoId:H.scheduledRedirectMetadataSourceVideoId})};var Hc=function(){};
_.I(Hc,my);Hc.prototype.getApiPaths=function(){return aAw};
Hc.prototype.getExtension=function(A){return _.L(A,_.qcA)};
Hc.prototype.JSC$14491_buildRequest=function(A,H){A.params=H.params;A.correctionText=H.correctionText};var sk=function(){};
_.I(sk,my);sk.prototype.getApiPaths=function(){return T$f};
sk.prototype.getExtension=function(A){return _.L(A,_.kl0)};
sk.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params);A.searchQuery=H.searchQuery;A.languageCode=H.languageCode;A.kind=H.kind;A.name=H.name;A.externalVideoId=H.externalVideoId};var ko=function(){};
_.I(ko,my);ko.prototype.getApiPaths=function(){return $9i};
ko.prototype.getExtension=function(A){return _.L(A,v01)};
ko.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.params=H.params)};var dG=function(A){this.JSC$18789_storeWithEntities=A};
_.I(dG,my);dG.prototype.getApiPaths=function(){return PDQ};
dG.prototype.getExtension=function(A){return _.L(A,jrZ)||_.L(A,Yc1)};
dG.prototype.JSC$14491_buildRequest=function(A,H,k){k.client_data&&(A.clientData=k.client_data);if(H.commerceActionConfig){var d=H.commerceActionConfig;H=d.actionId;d=d.commerceActionParams;H&&(A.actionId=H);d&&(A.commerceActionParams=d)}else{var W=H.actionId,z=H.commerceActionParams;k=H.entityKeys;W&&(A.actionId=W);z&&(A.commerceActionParams=z);var u;H=(d=this.JSC$18789_storeWithEntities)==null?void 0:(u=d.getState())==null?void 0:u.entities;if(k&&H){d=[];u=_.r(k);for(k=u.next();!k.done;k=u.next())if(W=
k.value,k=_.Vm(W).entityType,W=_.Mw(H,k,W))z={},d.push((z[k]=W,z));A.entityMutationPayloads=d}}};
dG.prototype.getRequestConfig=function(A){var H,k=(H=_.L(A,jrZ))==null?void 0:H.requestSequenceType;if(k&&A.clickTrackingParams&&k!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:A.clickTrackingParams,sequenceType:k}}};
dG[ox]=[tv];var Wc=function(){};
_.I(Wc,my);Wc.prototype.getApiPaths=function(){return ACA};
Wc.prototype.getExtension=function(A){return _.L(A,_.Nqp)};
Wc.prototype.JSC$14491_buildRequest=function(A,H){H.feedbackData&&(A.feedbackData=H.feedbackData);H.params&&(A.itemParams=H.params)};
_.nP.Object.defineProperties(Wc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rw_=function(){};
_.I(rw_,my);rw_.prototype.getApiPaths=function(){return HsA};
rw_.prototype.getExtension=function(A){return _.L(A,MZ1)};
rw_.prototype.JSC$14491_buildRequest=function(A,H,k){k.payments_payload&&(A.paymentsPayload=k.payments_payload);k.offer_params&&(A.offerParams=k.offer_params);H.transactionParams&&(A.transactionParams=H.transactionParams)};var uaI=function(){};
_.I(uaI,my);uaI.prototype.getApiPaths=function(){return svZ};
uaI.prototype.getExtension=function(A){return _.L(A,_.n0J)};
uaI.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.buybucketParams&&(A.buybucketData={params:H.buybucketParams},H.stickerParams?A.buybucketData.stickerParams=H.stickerParams:(k.rich_chat_message?A.buybucketData.richChatMessage=k.rich_chat_message:k.chat_message_text&&(A.buybucketData.chatMessageText=k.chat_message_text),k.purchase_price_micros&&(A.buybucketData.purchasePriceMicros=k.purchase_price_micros.toString())));H.donationAmountMicros&&(A.tipAmountMicros=H.donationAmountMicros,
H.tipParams&&(A.tipParams=H.tipParams));H.offerParams&&(A.offerParams=H.offerParams);H.productData&&(A.productData=H.productData);H.transactionParams&&(A.transactionParams=H.transactionParams)};var zQ=function(){};
_.I(zQ,my);zQ.prototype.getApiPaths=function(){return khG};
zQ.prototype.getExtension=function(A){return _.L(A,$Oj)};
zQ.prototype.JSC$14491_buildRequest=function(A,H){H.updateFopParams&&(A.updateFopParams=H.updateFopParams)};var BFL=function(){};
_.I(BFL,my);BFL.prototype.getApiPaths=function(){return daN};
BFL.prototype.getExtension=function(A){return _.L(A,_.FB)};
BFL.prototype.JSC$14491_buildRequest=function(A,H){H.couponCode&&(A.couponCode=H.couponCode);H.params&&(A.itemParams=H.params)};var ec_=function(){};
_.I(ec_,my);ec_.prototype.getApiPaths=function(){return WkN};
ec_.prototype.getExtension=function(A){return _.L(A,_.IkZ)};
ec_.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;H.params&&(A.params=H.params);k.ctk&&(A.clientToken=k.ctk)};var qs=function(A){this.JSC$18824_storeWithEntities=A};
_.I(qs,my);qs.prototype.getApiPaths=function(){return z_N};
qs.prototype.getExtension=function(A){return _.L(A,_.ID)};
qs.prototype.JSC$14491_buildRequest=function(A,H,k){k.purchase_price_micros&&(A.productData={pdgData:{purchasePriceMicros:k.purchase_price_micros.toString()}},k.rich_chat_message&&(A.productData.pdgData.richChatMessage=k.rich_chat_message),k.currency_code&&(A.productData.pdgData.currencyCode=k.currency_code));H.transactionParams&&(A.transactionParams=H.transactionParams);H.clientLocationContext&&(A.clientLocationContext=H.clientLocationContext);k.payments_payload&&(A.paymentsPayload=k.payments_payload);
k.funds_guarantee_callback_client_data&&(A.fundsGuaranteeCallbackClientData=k.funds_guarantee_callback_client_data);var d,W;k=(d=this.JSC$18824_storeWithEntities)==null?void 0:(W=d.getState())==null?void 0:W.entities;if(H.entityKeys&&k){d=[];H=_.r(H.entityKeys);for(W=H.next();!W.done;W=H.next()){var z=W.value;W=_.Vm(z).entityType;if(z=_.Mw(k,W,z)){var u={};d.push((u[W]=z,u))}}A.entityMutationPayloads=d}};
qs[ox]=[tv];var xZ_=function(){};
_.I(xZ_,my);xZ_.prototype.getApiPaths=function(){return qjA};
xZ_.prototype.getExtension=function(A){return _.L(A,wAQ)};
xZ_.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;k.backend_analytics&&(A.serializedBackendAnalyticsEvent=k.backend_analytics);H.offerParams&&(A.offerParams=H.offerParams)};var i$B=function(){};
_.I(i$B,my);i$B.prototype.getApiPaths=function(){return daN};
i$B.prototype.getExtension=function(A){return _.L(A,QUV)};
i$B.prototype.JSC$14491_buildRequest=function(A,H){H.params&&(A.itemParams=H.params)};var hce=function(){};
_.I(hce,my);hce.prototype.getApiPaths=function(){return rCG};
hce.prototype.getExtension=function(A){return _.L(A,_.D6J)};
hce.prototype.JSC$14491_buildRequest=function(A,H,k){k.resume_time_ms&&(A.resumeTimeMs=k.resume_time_ms);H.pauseParams&&(A.pauseParams=H.pauseParams)};var O$i=function(){};
_.I(O$i,my);O$i.prototype.getApiPaths=function(){return u5N};
O$i.prototype.getExtension=function(A){return _.L(A,_.ovN)};
O$i.prototype.JSC$14491_buildRequest=function(A,H,k){k=k===void 0?{}:k;k.c&&(A.redeemCode=k.c);k.rd&&(A.riskData=k.rd);k.ctk&&(A.clientToken=k.ctk)};var RcV=function(){};
_.I(RcV,my);RcV.prototype.getApiPaths=function(){return Bmi};
RcV.prototype.getExtension=function(A){return _.L(A,_.ScN)};
RcV.prototype.JSC$14491_buildRequest=function(A,H){H.resumeParams&&(A.resumeParams=H.resumeParams)};var rG=function(A,H){this.clientName=A;this.defaultExpirationDelayMs=H};
rG.prototype.put=function(A,H){var k=this,d;return _.e(function(W){d=Object.assign({},H.data);d.key=A;d.clientName=k.clientName;d.expireTimestampMs===void 0&&(d.expireTimestampMs=(Math.round((0,_.w2)())+k.defaultExpirationDelayMs).toString());return W.return(k.putInternal(A,d))})};
rG[ox]=[Cp,Mt3];var TFL=function(){rG.apply(this,arguments);this.JSC$18854_responseStore=new Map};
_.I(TFL,rG);_.q=TFL.prototype;_.q.get=function(A){var H=this;return _.e(function(k){return k.return(fg(H,A))})};
_.q.putInternal=function(A,H){var k=this,d,W,z;return _.e(function(u){d=k.defaultExpirationDelayMs;H.expireTimestampMs&&(d=Number(H.expireTimestampMs)-Math.round((0,_.w2)()),W=_.H5("mweb_override_response_store_expiration_ms"),W>0&&W<d&&(d=W));z=setTimeout(function(){k.remove(A)},d);
k.JSC$18854_responseStore.set(A,{entryData:H,timer:z});_.EN(u)})};
_.q.remove=function(A){var H=this;return _.e(function(k){mZe(H,A);_.EN(k)})};
_.q.removeAll=function(){var A=this;return _.e(function(H){A.JSC$18854_responseStore.forEach(function(k){clearTimeout(k.timer)});
A.JSC$18854_responseStore.clear();_.EN(H)})};
_.q.has=function(A){return!!this.JSC$18854_responseStore.get(A)};
_.q.getKeys=function(){return this.JSC$18854_responseStore.keys()};
var fg=function(A,H){if(A=A.JSC$18854_responseStore.get(H))return new _.Zp(A.entryData)},mZe=function(A,H){var k=A.JSC$18854_responseStore.get(H);
k&&(clearTimeout(k.timer),A.JSC$18854_responseStore.delete(H))};
TFL.prototype.markAsProcessed=function(A){var H=this,k;return _.e(function(d){k=H.JSC$18854_responseStore.get(A);if(!k)return d.jumpTo(0);k.entryData.isProcessed=!0;return d.yield(H.putInternal(A,k.entryData),0)})};var YgW;var Gxl=function(A,H,k){rG.call(this,A,H);this.token=k};
_.I(Gxl,rG);_.q=Gxl.prototype;_.q.get=function(A){var H=this,k,d;return _.e(function(W){return W.nextAddress==1?W.yield(ML(H.token),2):W.nextAddress!=3?(k=W.yieldResult,W.yield(k.get("ResponseStore",[A,H.clientName]),3)):(d=W.yieldResult)?W.return(new _.Zp(d)):W.return(void 0)})};
_.q.putInternal=function(A,H){var k=this,d;return _.e(function(W){if(W.nextAddress==1)return W.yield(ML(k.token),2);d=W.yieldResult;return W.yield(d.put("ResponseStore",H),0)})};
_.q.remove=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(ML(H.token),2);k=d.yieldResult;return d.return(k.delete("ResponseStore",[A,H.clientName]))})};
_.q.removeAll=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return k.yield(ML(A.token),2);H=k.yieldResult;return k.yield(YHQ(H,IDBKeyRange.only(A.clientName)),0)})};
_.q.has=function(){throw Error("lj");};
_.q.markAsProcessed=function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1)return W.yield(ML(H.token),2);if(W.nextAddress!=3)return k=W.yieldResult,W.yield(k.get("ResponseStore",[A,H.clientName]),3);d=W.yieldResult;if(!d)return W.jumpTo(0);d.isProcessed=!0;return W.yield(k.put("ResponseStore",d),0)})};_.u_=new _.SE("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Jwi=function(A){var H;this.stateTagsData=(H=A.responseContext)==null?void 0:H.stateTags},g3I=function(A){var H;
return((H=A.stateTagsData)==null?void 0:H.stateTagsModified)||[]};var b$_;b$_=function(A){this.JSC$18867_responseStore=A};
_.IL=function(A,H,k){if(!_.b("state_tags_killswitch")){var d=new Jwi(H);if(g3I(d).length>0){var W=A.JSC$18867_responseStore.getKeys();W=_.r(W);for(var z=W.next();!z.done;z=W.next()){z=z.value;var u=fg(A.JSC$18867_responseStore,z);if(u){var B=_.U5(u);a:{var h=void 0;u=g3I(d);B=((h=(new Jwi(B)).stateTagsData)==null?void 0:h.relevantStateTags)||[];h=_.r(B);for(B=h.next();!B.done;B=h.next())if(B=B.value,B.stateTag!=null&&u.includes(B.stateTag)&&B.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){u=
!0;break a}u=!1}u&&mZe(A.JSC$18867_responseStore,z)}}}}var O;d=(O=H.responseContext)==null?void 0:O.maxAgeSeconds;k&&d&&Number(d)>0&&(H=Ut(H,d),A.JSC$18867_responseStore.put(k,new _.Zp(H)))};
b$_.prototype.handleResponse=function(A,H){if(!H)throw Error("mj");var k,d;H=(k=H.config)==null?void 0:(d=k.storeStrategy)==null?void 0:d.storeKey;_.IL(this,A,H)};
b$_[ox]=[_.ng];_.VNj=new _.SE("STORE_RESPONSE_PROCESSOR_TOKEN");var LMB=function(A){this.JSC$18870_responseStore=A};
LMB.prototype.handleResponse=function(A,H){if(H.input.match(_.X3(ylk))){var k;if(A==null?0:(k=A.entries)==null?0:k.length)for(A=_.r(A.entries),H=A.next();!H.done;H=A.next()){k=H.value.command;var d=void 0;H=(d=_.L(k,_.A1))==null?void 0:d.unserializedPrefetchData;if(!k||!H)break;d=(new E1).JSC$14498_getStoreKey(k);var W=_.L(H,Dc1),z=void 0,u=void 0,B=void 0,h=void 0,O=void 0,T=void 0,m=((z=W)==null?0:(u=z.responseContext)==null?0:u.maxAgeSeconds)&&Number((B=W)==null?void 0:(h=B.responseContext)==null?
void 0:h.maxAgeSeconds)>0?Number((O=W)==null?void 0:(T=O.responseContext)==null?void 0:T.maxAgeSeconds):600;d&&m>0&&(W=Ut(W,m),this.JSC$18870_responseStore.put(d,new _.Zp(W)));k=(new sn).JSC$14498_getStoreKey(k);H=_.L(H,OkA);h=B=u=z=W=d=void 0;O=((d=H)==null?0:(W=d.responseContext)==null?0:W.maxAgeSeconds)&&Number((z=H)==null?void 0:(u=z.responseContext)==null?void 0:u.maxAgeSeconds)>0?Number((B=H)==null?void 0:(h=B.responseContext)==null?void 0:h.maxAgeSeconds):600;k&&O>0&&(H=Ut(H,O),this.JSC$18870_responseStore.put(k,
new _.Zp(H)))}}};
LMB[ox]=[_.ng];var v3V=function(A,H){this.innertubeTransportService=A;this.JSC$18873_commandHandler=H};
v3V.prototype.submitForm=function(A,H,k,d,W){var z=this,u,B,h,O,T,m;return _.e(function(J){if(J.nextAddress==1)return u={submitId:A,formData:H,submitBehavior:k,params:d},B=_.X3(cli),J.yield(_.yD(z.innertubeTransportService,u,B,W),2);h=J.yieldResult;if(!h)return J.return(Promise.reject(new _.Ti("Submit API returned an undefined response. Submit ID: "+A)));O=h;(m=(T=O)==null?void 0:T.onResponseReceived)&&z.JSC$18873_commandHandler.resolveCommand(m);return J.return(O)})};
v3V[ox]=[_.kI,_.J7];var ywB=function(){this.scheduler=_.iA()},jsR;
ywB.prototype.pause=function(){throw Error("nj");};
ywB.prototype.resume=function(){throw Error("nj");};
ywB.prototype.queue=function(A){var H=this,k=_.YE(),d=_.ma(this.scheduler,function(){try{var W;if(_.n0.instance)var z=_.n0.instance;else{var u=new _.Ti("Error: Unexpected uninitialized CommandHandler.");_.I3(u);z=void 0}(W=z)==null||W.resolveCommand(A.command);k.resolve()}catch(B){k.reject(B)}});
k.promise.thenCatch(function(W){W instanceof _.jY&&H.scheduler.cancelJob(d)});
return k.promise};
ywB.prototype.queueAll=function(A){var H=new Map;A=_.r(A);for(var k=A.next();!k.done;k=A.next())k=k.value,H.set(k.id,this.queue(k));return H};var Y9B=function(A,H){var k=this;this.taskModel=A;this.onTaskCancelledCallback=H;this.resolver=_.YE();A=A.proto.prefetchConfig;if(!A)throw Error("oj");if(!A.prefetchAction)throw Error("pj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(d){d instanceof _.jY&&(Id1(k,k.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),k.onTaskCancelledCallback(k.taskModel.id,k.jobId),k.tick("pcc"));
throw d;});
this.timerName=this.taskModel.id;_.hZ(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
Y9B.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 Id1=function(A,H){_.xB({prefetchInfo:{cancellationReason:H}},A.timerName)};
Y9B.prototype.tick=function(A){_.OH(A,void 0,this.timerName)};var e7=function(){var A=this;this.scheduler=_.iA();this.maxInflightTasks=_.H5("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.H5("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new EHA;this.onTaskCancelled=function(H,k){k&&A.scheduler.cancelJob(k);P5Q(A,H);Bc(A,3)}},G4B=function(){e7.instance||(e7.instance=new e7);
return e7.instance};
e7.prototype.pause=function(){this.prefetchCoordinatorState=0};
e7.prototype.resume=function(){Bc(this,0)};
e7.prototype.queue=function(A){A=FMB(this,A);Bc(this,1);return A};
e7.prototype.queueAll=function(A){var H=new Map;A=_.r(A);for(var k=A.next();!k.done;k=A.next())k=k.value,H.set(k.id,FMB(this,k));Bc(this,1);return H};
var FMB=function(A,H){var k=A.allPrefetchTasks.get(H.id);if(k)return k.cancellablePromise;try{var d=new Y9B(H,A.onTaskCancelled)}catch(z){return _.qt(z)}k=d;k.tick("pcq");var W={prefetchInfo:{taskId:k.taskModel.id,isPrefetch:!0,fetchAction:k.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:k.taskModel.command.clickTrackingParams}};k.taskModel.csn&&(W.clientScreenNonce=k.taskModel.csn);_.xB(W,k.timerName);A.allPrefetchTasks.set(H.id,d);A.drainingHeap.insert(-d.getPriority(),d);return d.cancellablePromise},
Bc=function(A,H){A.prefetchCoordinatorState===H&&(A.prefetchCoordinatorState=2,XT1(A))},XT1=function(A){for(var H={};A.prefetchCoordinatorState!==0;H={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(A.inflightPrefetchTasks.size>=A.maxInflightTasks){A.prefetchCoordinatorState=3;break}H.prefetchTask$jscomp$1=A.drainingHeap.remove();if(!H.prefetchTask$jscomp$1){A.prefetchCoordinatorState=1;break}H.taskId$jscomp$3=H.prefetchTask$jscomp$1.taskModel.id;if(A.allPrefetchTasks.has(H.taskId$jscomp$3)){var k=-1;A.coordinatorTimeoutMs>0&&(k=_.ma(A.scheduler,function(d){return function(){DZ_(A,d.taskId$jscomp$3,Error("qj"))}}(H),A.coordinatorTimeoutMs));
A.inflightPrefetchTasks.set(H.taskId$jscomp$3,k);if(!A.JSC$18890_commandHandler){if(!_.n0.instance){DZ_(A,H.taskId$jscomp$3,Error("rj"));continue}A.JSC$18890_commandHandler=_.n0.instance}a:switch(H.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":k=1;break a;default:k=0}H.prefetchTask$jscomp$1.jobId=A.scheduler.addJob(function(d){return function(){d.prefetchTask$jscomp$1.tick("pcr");try{A.JSC$18890_commandHandler.resolveCommand(d.prefetchTask$jscomp$1.taskModel.command)||
DZ_(A,d.taskId$jscomp$3,Error("sj"))}catch(W){DZ_(A,d.taskId$jscomp$3,W)}}}(H),k,0)}}},S9e=function(A,H){(H=P5Q(A,H))!=null&&(H.resolver.resolve(),H.tick("pce"));
Bc(A,3)},DZ_=function(A,H,k){(H=P5Q(A,H,k))!=null&&(H.resolver.reject(k),H.tick("pcc"),Id1(H,"CANCELLATION_REASON_ERROR"),Math.random()<=_.H5("prefetch_coordinator_error_logging_sampling_rate")&&(k=new _.Ti("Prefetch Command failed.",H.taskModel.id,k.message),_.I3(k)));
Bc(A,3)},P5Q=function(A,H,k){var d=A.allPrefetchTasks.get(H);
d?((k=A.inflightPrefetchTasks.get(H))&&k!==-1&&A.scheduler.cancelJob(k),A.inflightPrefetchTasks.delete(H),A.allPrefetchTasks.delete(H)):_.Pq(new _.Ti("Unexpected missing prefetch task when deleting task.",H,k==null?void 0:k.message));return d};var C5L=function(A,H,k,d,W){this.id=A;this.triggerOn=H;this.cancelOn=k;this.command=d;this.proto=W};
_.nP.Object.defineProperties(C5L.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var KMB=function(){this.JSC$18895_prefetchCoordinator=G4B();jsR||(jsR=new ywB);this.defaultCoordinator=jsR},ad3;
KMB.getInstance=function(){ad3||(ad3=new KMB);return ad3};
KMB.prototype.get=function(A){switch(A){case 0:return this.JSC$18895_prefetchCoordinator;default:return this.defaultCoordinator}};var xo=function(){this.coordinatorSupplier=KMB.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},QsB=function(A){var H=_.hx()||void 0,k=Object.keys(cwR)[0];
if(k){var d=A.taskIdByTriggerId.get(k);if(d!=null){A.taskIdByTriggerId.delete(k);k=[];d=_.r(d);for(var W=d.next();!W.done;W=d.next())if(W=A.tasks.get(W.value))H!=="UNDEFINED_CSN"&&(W.csn=H),k.push(W);k=D5N(k);H=[];k=_.r(k);for(d=k.next();!d.done;d=k.next()){W=_.r(d.value);d=W.next().value;W=W.next().value;d=A.coordinatorSupplier.get(d).queueAll(W);d=_.r(d);var z=d.next();for(W={};!z.done;W={taskId$jscomp$9:void 0},z=d.next()){var u=_.r(z.value);z=u.next().value;u=u.next().value;W.taskId$jscomp$9=
z;z=u;H.push(W.taskId$jscomp$9);A.queuedPromisesByTask.set(W.taskId$jscomp$9,_.Rw(z,function(B){return function(){pTG(A,B.taskId$jscomp$9)}}(W)))}}}}else _.Pq(new _.Ti("Unexpected malformed TriggerEvent."))};
xo.prototype.trigger=function(A,H){var k=this,d=this.tasks.get(A);if(!d||this.queuedPromisesByTask.has(A))return!1;VvL(this,A,d.triggerOn);H!=="UNDEFINED_CSN"&&(d.csn=H);H=this.coordinatorSupplier.get(d.taskType).queue(d);this.queuedPromisesByTask.set(A,_.Rw(H,function(){pTG(k,A)}));
return!0};
xo.prototype.cancel=function(A){var H=this.queuedPromisesByTask.get(A);if(H)H.cancel();else return pTG(this,A)};
var pTG=function(A,H){A.queuedPromisesByTask.delete(H);var k=A.tasks.get(H);if(!k)return!1;A.tasks.delete(H);VvL(A,H,k.triggerOn);(k=XPA(k.cancelOn))&&(A=A.taskIdByCancelId.get(k))&&A.delete(H);return!0},VvL=function(A,H,k){(k=Object.keys(k)[0])&&(A=A.taskIdByTriggerId.get(k))&&A.delete(H)};var cwR={taskRegistered:{}},E3L=function(){xo.instance||(xo.instance=new xo);this.JSC$18904_taskManager=xo.instance};
_.I(E3L,Yj);
E3L.prototype.resolveCommand=function(A){var H=this,k,d;return _.e(function(W){k=_.L(A,XwA);if((d=k)==null||!d.tasks){var z=new _.Ti("RegisterTasksCommand is missing tasks.");_.I3(z);return W.return()}z=H.JSC$18904_taskManager;for(var u=_.r(k.tasks),B=u.next();!B.done;B=u.next())if(B=B.value,B=B.id&&B.triggerOn&&B.cancelOn&&B.command?new C5L(B.id,B.triggerOn,B.cancelOn,B.command,B):void 0,B){var h=Object.keys(B.triggerOn)[0];if(h){var O=XPA(B.cancelOn);O?(z.tasks.set(B.id,B),z.taskIdByTriggerId.has(h)||z.taskIdByTriggerId.set(h,
new Set),z.taskIdByTriggerId.get(h).add(B.id),z.taskIdByCancelId.has(O)||z.taskIdByCancelId.set(O,new Set),z.taskIdByCancelId.get(O).add(B.id)):_.Pq(new _.Ti("Unexpected malformed cancelOn field."))}else _.Pq(new _.Ti("Unexpected malformed triggerOn field."))}else _.Pq(new _.Ti("Unexpected malformed Task proto."));QsB(H.JSC$18904_taskManager);_.EN(W)})};var UZ_={},lde=(UZ_.rendered={priority:_.b("web_adaptive_early_init")?8:0,callback:function(){var A={};A.numCpu=navigator.hardwareConcurrency;var H={};H.ramGb=_.k8.navigator.deviceMemory;var k={staticContext:{}};H.ramGb&&aCW(H.ramGb)&&(k.staticContext.memoryTotalKbytes=(H.ramGb*1048576).toString());A.numCpu&&aCW(A.numCpu)&&(k.staticContext.cpuCores=A.numCpu);if(_.b("web_enable_adaptive_appl_signal")){A={};H=I4r();H=H.length>0?H[0]:void 0;var d,W=(d=_.mp("rses_dpj"))!=null?d:H==null?void 0:H.tick.rses_dpj,
z;d=(z=_.mp("rsef_dpj"))!=null?z:H==null?void 0:H.tick.rsef_dpj;W&&Number(W)>0&&d&&Number(d)>0&&(z=Math.ceil(Number(d)-Number(W)),z>0&&(A.loadLatency=z));A.loadLatency&&aCW(A.loadLatency)&&(k.appL=A.loadLatency.toString())}_.yr("applicationStarted",k);ciN=k;_.b("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",pam)}},UZ_);var tvV=new _.SE("WINDOW_ON_ERROR"),NFI=new _.SE("ERROR_WEIGHT_MAPS"),MvB=new _.SE("INIT_ERROR");var n31={},Z$V=(n31.initialized={priority:10,callback:function(A){A.injector.resolve(MvB)()}},n31);var fde=function(){},wTQ=function(){var A=_.UD("meta_logger_impl");
A||(A=new fde,_.nG("meta_logger_impl",A));return A},o3e=function(){wTQ().csiSubscriptionKey=m0m("meta_logging_csi_event",function(A){var H=A.timerName;
if(A=A.timelineData){_.hZ(H,{startTime:A.startTime},H);A.infos&&_.xB(A.infos,H);for(var k=_.r(Object.keys(A.ticks)),d=k.next();!d.done;d=k.next())d=d.value,_.OH(d,A.ticks[d],H)}})};
fde.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&b0I(this.csiSubscriptionKey)};var $ZM={},Aa1=($ZM.initialized={priority:10,callback:function(){o3e()}},$ZM);var HAL=function(A,H){this.innertubeClientName=A;this.JSC$18915_prefCookie=H};
HAL.prototype.record=function(){if(_.b("web_li_record_binary_eval_tick")){var A=_.mp("rsef_dpj");var H=_.mp("rses_dpj");A=A!==void 0&&H!==void 0?Math.round(A-H):void 0;if(A!==void 0&&A>0){H=_.r4(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var k=this.poolSize;if(!(H.valuesSeen>=1E9)){if(H.valuesSample.length<k)H.valuesSample.push(A);else{var d=Math.floor(Math.random()*(H.valuesSeen+1));d<k&&(H.valuesSample[d]=A)}H.valuesSeen+=1}_.qH(this.storagePrefix+"-"+this.innertubeClientName,
H,2592E3);A=H.valuesSample;H=Sg8(A);A=A.length<this.poolSize?void 0:H<400?1:H<1700?2:3;A!==void 0&&(this.JSC$18915_prefCookie.set(this.cookiePrefix+this.innertubeClientName,A),this.JSC$18915_prefCookie.save())}}else _.uw(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18915_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18915_prefCookie.save()};
HAL[ox]=[Cp,m2];var sVR=function(){HAL.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.I(sVR,HAL);var kW3=new _.SE("PAGE_LOAD_TIME_TOKEN");var dUL=function(A){this.signal=A;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;A.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.ma(_.IE,this.disableLoggingAndSendPayload,1E4)};
dUL.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.IE.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),WtL(this))};
var WtL=function(A){var H=_.ii();if(H){var k={webClientComponentsData:{components:Array.from(A.ids,function(d){return{id:d}})}};
A.ids.clear();_.A7().visualElementStateChanged(H,k)}};var zLR=eO({a11y:R9N});_.qiQ=xE(zLR)(zLR.a11y,{ephemeralActionSelector:function(A){return A.ephemeralAction||null}});var raI=eO({continuation:bbj});var uCB=xE(raI)(raI.continuation,{continuationCommandSelector:function(A){return A.continuationCommand}});var B0_,xU_,eLG;B0_=function(){this.loadFns=new Map;this.xidToRendererName=new Map};
_.j2=function(A,H,k,d){A.loadFns.has(H)&&A.loadFns.get(H)!==d?_.I3(Error("tj`"+H)):(A.loadFns.set(H,d),A.xidToRendererName.set(k,H))};
xU_=function(A,H){if(typeof H==="string"){var k=eLG(A,H);return A.loadFns.get(k)}return function(){var d;return _.e(function(W){return W.nextAddress==1?(d={},W.yield(Promise.all(H.map(function(z){var u,B;return _.e(function(h){if(h.nextAddress==1){u=eLG(A,z);B=A.loadFns.get(u);if(!B)return d[u]=void 0,h.jumpTo(0);_.S_(h,3);return h.yield(B(),5)}if(h.nextAddress!=3)return d[u]=h.yieldResult,_.QN(h,0);_.VA(h);d[u]=void 0;_.EN(h)})})),2)):W.return(d)})}};
eLG=function(A,H){var k;return(k=A.xidToRendererName.get(H))!=null?k:H};var iAB=new _.SE("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var i_=function(A,H){this.JSC$18947_storeWithEntities=A;this.JSC$18947_commandHandler=H;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
i_.prototype.start=function(){this.JSC$18947_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
i_.prototype.observeDownloadingEntities=function(){var A=_.CVV(this.JSC$18947_storeWithEntities.getState().entities).map(function(d){return KyI(d)});
if(A.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var H={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:TDQ()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.K8(_.$r("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18947_commandHandler.resolveCommand(H)}this.downloadingEntities=A}else if(this.downloadingEntities.length){var k=SpW(this.JSC$18947_storeWithEntities.getState().entities).map(function(d){return KyI(d)});
this.downloadingEntities.filter(function(d){return k.includes(d)}).length&&(A={openPopupAction:x5I()},this.JSC$18947_commandHandler.resolveCommand(A));
this.downloadingEntities=[]}};
i_[ox]=[tv,_.J7];var hLR;_.hJ=function(A,H,k,d,W,z,u,B){this.JSC$18950_playerApiPromise=A;this.JSC$18950_commandHandler=H;this.JSC$18950_screenManager=k;this.offlineWebClientEligibility=d;this.JSC$18950_prefStorage=W;this.JSC$18950_actionRouter=z;this.entityTypeMap=u;this.JSC$18950_persistentStorePromiseAccessor=B;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
hLR=function(){var A=_.wj().resolve(_.hJ),H;_.e(function(k){if(k.nextAddress==1)return A.downloadFailureListenerBound?k.return():k.yield(A.JSC$18950_playerApiPromise,2);H=k.yieldResult;H.addEventListener("onOfflineOperationFailure",function(d){if(d.failureReason&&d.entityKey&&d.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(d.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var W=_.Vm(d.entityKey).entityId;W&&A.JSC$18950_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
W)}else if(_.b("kevlar_woffle")){W=A.JSC$18950_commandHandler;var z=W.resolveCommand;d=d.failureReason;var u=_.$r("TRANSFER_FAILED",void 0,"Download failed");d==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(u=_.$r("STORAGE_FULL",void 0,"Storage full"));z.call(W,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.K8(u),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
A.downloadFailureListenerBound=!0;_.EN(k)})};
_.hJ.prototype.deleteVideo=function(A,H){var k=this,d,W,z;return _.e(function(u){if(u.nextAddress==1)return u.yield(k.JSC$18950_playerApiPromise,2);d=u.yieldResult;z={offlineLoggingData:{offlineDeleteReason:(W=H)!=null?W:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return u.yield(d.queueOfflineAction(A,k.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",z),0)})};
_.hJ.prototype.pauseVideoDownload=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(H.JSC$18950_playerApiPromise,2);k=d.yieldResult;k.pauseVideoDownload(A);_.EN(d)})};
_.hJ.prototype.resumeVideoDownload=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(H.JSC$18950_playerApiPromise,2);k=d.yieldResult;return d.yield(k.resumeVideoDownload(A),0)})};
_.hJ[ox]=[_.VI,_.J7,_.Wf,iAB,LB,K4,ibA,dR];var OA_=new _.SE("DOWNLOAD_STATE_STORE_TOKEN");var RLL=function(A,H){this.JSC$18971_persistentStorePromiseAccessor=A;this.store=H;this.upliftCompletionResolver=new _.lk},JaV=function(){var A=_.wj().resolve(T0I),H;
_.e(function(k){switch(k.nextAddress){case 1:if(A.upliftImplPromise)return k.return(A.upliftImplPromise);_.S_(k,2);A.upliftImplPromise=mUB(A);return k.yield(A.upliftImplPromise,4);case 4:A.upliftCompletionResolver.resolve();_.QN(k,3);break;case 2:throw H=_.VA(k),A.upliftCompletionResolver.reject(H),H;case 3:return k.return(A.upliftImplPromise)}})},mUB=function(A){var H,k,d;
return _.e(function(W){switch(W.nextAddress){case 1:return _.Q$("LOGGED_IN")?W.yield(A.JSC$18971_persistentStorePromiseAccessor(),2):W.return();case 2:H=W.yieldResult;if(!H)return _.OH("vdeur"),W.return();_.OH("vdeus");_.S_(W,3);return W.yield(gUL(H),5);case 5:k=W.yieldResult;A.store.dispatch(J0b(k));H.observe(function(z){gTb(A.store,z)});
_.QN(W,4);break;case 3:throw d=_.VA(W),_.OH("vdeur"),d;case 4:_.OH("vdeuc"),_.EN(W)}})},gUL=function(A){var H;
return _.e(function(k){if(k.nextAddress==1)return k.yield(Q$8(A),2);H=k.yieldResult;return k.return(H.reduce(function(d,W){if(!W.data||!W.key||!W.entityType)return d;d[W.entityType]||(d[W.entityType]={});d[W.entityType][W.key]=W.data;return d},{}))})};
RLL[ox]=[dR,_.O7];var T0I;T0I=new _.SE("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.bA_=new _.SE("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var LtB=function(A,H){this.JSC$18974_persistentStorePromiseAccessor=A;this.transportService=H};
LtB.prototype.refresh=function(){var A=this,H,k,d,W;return _.e(function(z){if(z.nextAddress==1)return _.Q$("LOGGED_IN")?z.yield(A.JSC$18974_persistentStorePromiseAccessor(),2):z.return();if(z.nextAddress!=3)return(H=z.yieldResult)?z.yield(m5W(H),3):z.return();if((k=z.yieldResult)&&!(Number(k.data.refreshTimestampMs||0)<(0,_.w2)()))return z.return();d={browseId:"SPaccount_downloads"};W=_.X3(Cw);_.yD(A.transportService,d,W).then(function(u){var B;if(H&&(u==null?void 0:(B=u.responseContext)==null?void 0:
B.maxAgeSeconds)!==0){var h;B=(u==null?void 0:(h=u.responseContext)==null?void 0:h.maxAgeSeconds)||604800;h=String(Math.floor((0,_.w2)())+B*1E3);H.put("service:downloads_settings:fallback",new _.Zp({innertubeResponse:u,refreshTimestampMs:h}))}});
_.EN(z)})};
LtB[ox]=[_.u_,_.kI];var Ok=function(A,H){this.JSC$18978_playerPromise=A;this.store=H;this.started=!1};
Ok.prototype.start=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return A.started?k.return():k.yield(A.JSC$18978_playerPromise,2);H=k.yieldResult;H.addEventListener("onOrchestrationBecameLeader",A.updateIsLeader.bind(A,!0));H.addEventListener("onOrchestrationLostLeader",A.updateIsLeader.bind(A,!1));if(H.isOrchestrationLeader)A.updateIsLeader(H.isOrchestrationLeader());else{var d=new _.Ti("Function isOrchestrationLeader is undefined",{"player.isReady":H.isReady(),"player.playVideo":H.playVideo?
"defined":"undefined"});_.I3(d);A.updateIsLeader(!1)}A.started=!0;_.EN(k)})};
Ok.prototype.updateIsLeader=function(A){this.store.dispatch(_.p8({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:A}}))};
Ok[ox]=[_.VI,_.O7];var vU3=function(A,H){this.networkStatusManager=A;this.JSC$18981_prefStoragePromise=H;this.redirectsToPreload=["https://youtube.com"]},ya_=function(){var A=_.wj().resolve(vU3),H,k,d,W,z,u;
_.e(function(B){switch(B.nextAddress){case 1:return B.yield(A.JSC$18981_prefStoragePromise,2);case 2:H=B.yieldResult;if(!(k=H)){B.jumpTo(3);break}return B.yield(H.get("yt-redirect-prefetch-id"),4);case 4:k=B.yieldResult;case 3:if(k||!A.networkStatusManager.isNetworkAvailable())return B.return();d={cache:"reload",redirect:"manual"};W=_.r(A.redirectsToPreload);z=W.next();case 5:if(z.done){if(!H){B.jumpTo(0);break}return B.yield(H.set("yt-redirect-prefetch-id",!0,86400),0)}u=z.value;_.S_(B,8);return B.yield(_.k8.fetch(u,
d),10);case 10:_.QN(B,6);break;case 8:_.VA(B);case 6:z=W.next(),B.jumpTo(5)}})};var jV3=function(A){this.JSC$18987_pageManager=A},I51=function(A){var H=[];
lMN(["videoId","contentId"],A.JSC$18987_pageManager.data,new Set,H);return H},Yi_=function(A){return I51(A).filter(function(H){return H.contentType==="video"}).map(function(H){return H.contentId}).filter(function(H){return H!==void 0})};
jV3[ox]=[_.SO];var PeM=new _.SE("PAGE_CONTENT_EXTRACTOR_TOKEN");var GWe=function(A){A?(this.container=A,this.containerWasInjected=!0):this.containerWasInjected=!1};
GWe.prototype.openDialog=function(A,H,k){var d=this,W;return _.e(function(z){(W=d.container)==null||W.openDialog(A,H,k);_.EN(z)})};
GWe.prototype.closeDialog=function(){var A=this,H;return _.e(function(k){(H=A.container)==null||H.closeDialog();_.EN(k)})};
GWe.prototype.isDialogOpen=function(){var A=this,H,k;return _.e(function(d){return d.return((k=(H=A.container)==null?void 0:H.isDialogOpen())!=null?k:!1)})};
GWe[ox]=[_.fZ(DdG)];_.FtG=new _.SE("POPUP_CONTROLLER_TOKEN");var Xe_=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Xe_.prototype.registerPanel=function(A,H){if(A){this.panelMap.set(A,H);var k=this.pendingPanelResolvers.get(A);k&&(k.resolve(H),this.pendingPanelResolvers.delete(A))}};
Xe_.prototype.getPanel=function(A){var H=this,k;return _.e(function(d){return(k=H.panelMap.get(A))?d.return(k):d.return(DUV(H,A))})};
var DUV=function(A,H){var k,d;return _.e(function(W){if(k=A.pendingPanelResolvers.get(H))return W.return(k.promise);d=new _.lk;A.pendingPanelResolvers.set(H,d);return W.return(d.promise)})},SiG=function(A,H){Xe_.call(this);
var k=this;this.popupController=A;this.persistentPanelController=H;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return k.panelMap.size}}};
_.I(SiG,Xe_);_.q=SiG.prototype;_.q.getReloadContinuation=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(H.getPanel(A),2);k=d.yieldResult;return d.return(k.getReloadContinuation())})};
_.q.showPanel=function(A){var H=this,k,d,W,z,u,B,h,O,T,m,J,g;return _.e(function(v){if(v.nextAddress==1){k=A;d=k.identifier;W=k.panelContents;z=k.config;u=k.extras;B=k.panelUpdatableFields;h=k.updatePanelContinuationData;O=A.target;h&&H.updatePanelContinuationDatas.set(d,h);if((T=z)==null?0:(m=T.engagementPanelPopupPresentationConfig)==null?0:m.popupType)if(J=z.engagementPanelPopupPresentationConfig.popupType,O===void 0&&(O=document.body),J==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!H.persistentPanelController)return _.Pq(new _.Ti("Persistent panel controller is not available.")),
v.return();var y=H.persistentPanelController;y.persistentPanelIdentifiers.has(d)||(y.persistentPanelWrapper.appendChild(y.engagementPanelElement({panelIdentifier:d},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),y.persistentPanelIdentifiers.add(d));a:switch(_.yP.currentPageSubTypeSelector(y.store.getState())){case "watch":var X="WATCH";break a;default:X="APP"}_.CeI(y,X);y.store.dispatch(m8N(!0))}else{if(J==="PANEL_POPUP_TYPE_DIALOG"||J==="PANEL_POPUP_TYPE_DROPDOWN"){y=v.return;X=H.popupController;
var D=X.openPopup;a:switch(J){case "PANEL_POPUP_TYPE_DIALOG":var K="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":K="DROPDOWN";break a;default:throw Error("vj`"+J);}return y.call(v,D.call(X,d,W,K,O))}_.Pq(new _.Ti("Popup type "+J+" not supported in PanelController."))}return v.yield(H.getPanel(d),2)}g=v.yieldResult;(W||B)&&g.updatePanel(W,!1,u,B);g.showPanel(u);_.EN(v)})};
_.q.hidePanel=function(A){var H=this,k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return k=A,d=k.identifier,u.yield(H.getPanel(d),2);W=u.yieldResult;W.hidePanel();H.popupController.closePopup(d);(z=H.persistentPanelController)!=null&&z.persistentPanelIdentifiers.has(d)&&z.store.dispatch(m8N(!1));_.EN(u)})};
_.q.isVisible=function(A,H){var k=this,d;return _.e(function(W){if(W.nextAddress==1)return H&&!k.panelMap.has(A)?W.return(!1):W.yield(k.getPanel(A),2);d=W.yieldResult;return W.return(d.isVisible())})};
_.q.updatePanel=function(A){var H=this,k,d,W,z,u,B,h,O;return _.e(function(T){if(T.nextAddress==1){k=A;d=k.identifier;W=k.panelContents;z=k.shouldFocus===void 0?!1:k.shouldFocus;u=k.extras;B=k.panelUpdatableFields;h=k.updatePanelContinuationData;if(!W&&!B)return T.return();h&&H.updatePanelContinuationDatas.set(d,h);_.b("enable_ai_companion")&&d==="PAai_companion"&&_.Ac.remove("youchat_messages_section");return T.yield(H.getPanel(d),2)}O=T.yieldResult;O.updatePanel(W,z,u,B);W&&_.b("enable_ai_companion")&&
H.registerPanelContent(d,W);_.EN(T)})};
_.q.registerPanelContent=function(A,H){A&&this.panelContentMap.set(A,H)};
_.q.unregisterPanelContent=function(A){this.panelContentMap.delete(A)};
_.q.getPanelContent=function(A){return this.panelContentMap.get(A)};
_.q.getUpdatePanelContinuationData=function(A){return this.updatePanelContinuationDatas.get(A)};
SiG[ox]=[_.FtG,_.fZ(_.hz)];var KtQ=function(A,H){this.innertubeTransportService=A;this.JSC$19006_screenManager=H},a5L=function(A){var H;
return!((H=A.panelLoadingStrategy)==null||!H.requestTemplate)};
KtQ.prototype.makeRequest=function(A){var H=this,k,d;return _.e(function(W){switch(W.nextAddress){case 1:if(!a5L(H)){W.jumpTo(2);break}_.S_(W,3);return W.yield(_.I9(H.innertubeTransportService,A),5);case 5:return k=W.yieldResult,k?W.return(k.content):(_.I3(Error("wj")),W.return(void 0));case 3:d=_.VA(W),_.I3(d);case 2:return W.return(void 0)}})};
KtQ.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
KtQ.prototype.execute=function(A){var H=this,k,d,W,z,u,B,h,O,T,m;return _.e(function(J){if(J.nextAddress==1){k=A;d=k.data;W=k.fallbackVe;z=k.parentVe;u=k.createScreenConfig;B=k.renderFn;h=k.command;H.panelLoadingStrategy=d;var g,v,y=((g=H.panelLoadingStrategy)==null?0:g.screenVe)?(v=H.panelLoadingStrategy)==null?void 0:v.screenVe:W;y&&_.Ml(H.JSC$19006_screenManager,y,z,u);return(O=H.getContent())?J.yield(B(O),2):J.jumpTo(2)}return J.nextAddress!=4?a5L(H)?J.yield(H.makeRequest(h),4):J.return():(m=
T=J.yieldResult)?J.yield(B(m),0):J.return()})};
KtQ[ox]=[_.kI,_.Wf];var caL;caL=function(A,H){this.engagementPanelElement=A;this.store=H;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%"};
_.CeI=function(A,H){var k=A.persistentPanelContainerMap.get(H);k?k.contains(A.persistentPanelWrapper)||(A=A.persistentPanelWrapper,_.Xc=!0,_.Df.set(A,!0),k.insertBefore(A,null),_.Df.delete(A),_.Xc=!1):_.Pq(new _.Ti("Persistent panel container not found for surface "+H+"."))};
caL[ox]=[STw,_.O7];var Rf=function(){var A=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){A.isHovered=!0};
this.onTargetHoverLeft=function(){A.isHovered=!1};
this.onSheetHoverEntered=function(){A.isHovered=!0;var H;(H=A.hoverEnterCallback)==null||H.call(A)};
this.onSheetHoverLeft=function(){A.isHovered=!1;var H;(H=A.hoverLeaveCallback)==null||H.call(A)}};
Rf.prototype.getContainer=function(){return _.S1()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Rf.prototype.openSheet=function(A,H,k){k=k===void 0?H:k;var d=this,W,z,u,B,h,O,T;return _.e(function(m){switch(m.nextAddress){case 1:return W={stack:[],error:void 0,hasError:!1},_.S_(m,2,3),z=f$,m.yield(d.isSheetOpen(),5);case 5:u=m.yieldResult;EZi(W,DGr(z));if(!u){m.jumpTo(6);break}if(!d.shouldPreventClosingWhileHovered){if(!_.b("delay_sheet_open_killswitch")){if(_.b("web_close_sheet_if_same_target_killswitch")&&H&&d.currentTarget===H)return(B=d.getContainer())==null||B.closeSheet(),m.return();d.pendingData=
{data:A,target:f8_(d,H)};return m.return()}m.jumpTo(6);break}if(d.currentTarget===H)return m.return();peI(d);QVG(d);return m.yield((h=d.getContainer())==null?void 0:h.closeSheet(),6);case 6:if(A.viewModel&&(A={viewModel:A.viewModel,sheetPosition:A.sheetPosition,expandToFullWidth:A.expandToFullWidth}),(O=d.getContainer())==null||O.openSheet(A,H,k),d.currentTarget=H,d.shouldPreventClosingWhileHovered){d.onTargetHoverEntered();var J;(J=d.currentTarget)==null||J.addEventListener("mouseenter",d.onTargetHoverEntered);
var g;(g=d.currentTarget)==null||g.addEventListener("mouseleave",d.onTargetHoverLeft);VC1(d)}else d.hasRegisteredHoverCallbacks&&VC1(d);case 3:_.KV(m);UQQ(W);_.QA(m,0);break;case 2:T=_.VA(m),W.error=T,W.hasError=!0,m.jumpTo(3)}})};
Rf.prototype.closeSheet=function(){var A=this;return _.e(function(H){return A.hideDelayMs?(setTimeout(function(){return _.e(function(k){return k.yield(EUB(A),0)})},A.hideDelayMs),H.return()):H.yield(EUB(A),0)})};
var EUB=function(A){var H;return _.e(function(k){if(k.nextAddress==1){if(A.shouldPreventClosingWhileHovered){if(A.isHovered)return k.return();peI(A);QVG(A)}else A.hasRegisteredHoverCallbacks&&(QVG(A),A.onSheetHoverLeft());return k.yield((H=A.getContainer())==null?void 0:H.closeSheet(),2)}if(k.nextAddress!=4)return A.resetState(),!A.pendingData||_.b("delay_sheet_open_killswitch")?k.jumpTo(0):k.yield(A.openSheet(A.pendingData.data,A.pendingData.target),4);A.pendingData=void 0;_.EN(k)})};
Rf.prototype.isSheetOpen=function(){var A=this,H,k;return _.e(function(d){return d.return((k=(H=A.getContainer())==null?void 0:H.isSheetOpen())!=null?k:!1)})};
Rf.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var peI=function(A){var H;(H=A.currentTarget)==null||H.removeEventListener("mouseenter",A.onTargetHoverEntered);var k;(k=A.currentTarget)==null||k.removeEventListener("mouseleave",A.onTargetHoverLeft)},VC1=function(A){var H,k=(H=A.getContainer())==null?void 0:H.getSheetContainerElement();
k==null||k.addEventListener("mouseenter",A.onSheetHoverEntered);k==null||k.addEventListener("mouseleave",A.onSheetHoverLeft)},QVG=function(A){var H,k=(H=A.getContainer())==null?void 0:H.getSheetContainerElement();
k==null||k.removeEventListener("mouseenter",A.onSheetHoverEntered);k==null||k.removeEventListener("mouseleave",A.onSheetHoverLeft)},f8_=function(A,H){if(!_.b("web_parent_target_for_sheets"))return H;
var k,d;return(d=(k=A.getContainer())==null?void 0:k.getParentTarget(H))!=null?d:H};var nw=window.documentPictureInPicture;var ALb=_.XO(["dark"]),HWl=_.XO(["system-icons"]),sRN=_.XO(["typography"]),kuI=_.XO(["lang"]),d$r=_.XO(["style"]),fMQ=_.XO(["dir"]),wPQ=_.XO(["rounded-container"]),onI=_.XO(["style"]),zib=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],TQ=function(A){this.JSC$19024_clientRoot=A;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
TQ.prototype.openWindow=function(A){var H=this,k,d;return _.e(function(W){switch(W.nextAddress){case 1:if(!nw||!nw||!Gf()||H.currentPipWindow)return W.return(!1);_.S_(W,2);return W.yield((d=nw?nw:null)==null?void 0:d.requestWindow(A),4);case 4:k=W.yieldResult;_.QN(W,3);break;case 2:return _.VA(W),W.return(!1);case 3:if(!k)return W.return(!1);k.addEventListener("pagehide",function(){UUe(H)});
k.addEventListener("resize",H.handlePipWindowResize);WqI(k);rLC(k);MwX(k);return W.yield(Zyr(k),5);case 5:if(!tzl())return W.return(!1);H.currentPipWindow=k;H.JSC$19024_eventForwarder=q$8(k,H.JSC$19024_clientRoot);H.pipWindowResizeDelay=new _.wo(function(){H.currentPipWindow&&_.Ud(H.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Xt(H.currentPipWindow.innerWidth,H.currentPipWindow.innerHeight)])},k);
H.pipWindowResizeDelay.start();return W.return(!0)}})};
TQ.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var UUe=function(A){if(A.currentPipWindow){var H,k;(H=nw?nw:null)==null||(k=H.window)==null||k.close();A.currentPipWindow.removeEventListener("resize",A.handlePipWindowResize);var d;(d=A.pipWindowResizeDelay)==null||d.dispose();A.pipWindowResizeDelay=void 0;var W;(W=A.JSC$19024_eventForwarder)==null||W.stop();A.JSC$19024_eventForwarder=void 0;H=_.r(A.onCloseCallbacks);for(k=H.next();!k.done;k=H.next())k=k.value,k();A.onCloseCallbacks=[];A.currentPipWindow=null}};
TQ.prototype.getWindow=function(){return this.currentPipWindow};
var l5I=function(A,H){var k;(k=A.onCloseCallbacks)==null||k.push(H)};
TQ.prototype.pictureInPictureSupported=function(){return!(!nw||!nw)&&Gf()};
_.nP.Object.defineProperties(TQ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
TQ[ox]=[fni];var tCG=new _.SE("PICTURE_IN_PICTURE_CONTROLLER");var ugm=function(A,H){this.lengthY=this.lengthX=0;this.lengthX=H.x-A.x;this.lengthY=H.y-A.y};var N0B=function(){},qIB=function(A,H){var k;
(k=A.headerElement)==null||k.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:H}))};var MCe=function(){};
MCe.prototype.openPopup=function(A,H,k,d){var W=this,z;return _.e(function(u){if(!W.container)return u.return();z={openPopupAction:{popup:H,popupType:k,uniqueId:A}};return u.return(W.container.handleOpenPopupAction(z,d))})};
MCe.prototype.closePopup=function(A){this.container&&this.container.closePopup(A)};var nUB=function(){this.openTunnels=new Map},UjC=function(A,H,k){if(iWr(k)){var d=_.H4(k,"gclid");
k={handleEvent:function(B){H&&!H.closed&&typeof H.postMessage==="function"&&B&&B.origin&&B.source===H&&B.data&&B.data.action==="gcl_setup"&&H.postMessage(Object.assign({},{action:"gcl_transfer"},d&&{gclid:d},{gadSource:2}),B.origin)}};
for(var W=_.r(A.openTunnels),z=W.next();!z.done;z=W.next()){var u=_.r(z.value);z=u.next().value;u=u.next().value;if(z.closed)try{window.removeEventListener("message",u),A.openTunnels.delete(z)}catch(B){_.I3(B)}}H&&A.openTunnels.size<15&&(A.openTunnels.set(H,k),window.addEventListener("message",k))}};var ZAG=function(){this.clientParams=new Map},Vni=function(A){for(var H=_.r(A.clientParams.keys()),k=H.next();!k.done;k=H.next())k=k.value,k.startsWith("yt-mini-app-share")&&A.clientParams.delete(k)};var f5Q=function(A,H){_.dF.call(this);var k=this;this.shortsController=A;this.storeWithShorts=H;A=_.dC(this.storeWithShorts,_.BiI,function(d){if(d){var W,z=(W=k.shortsController.getRoot())==null?void 0:W.getPlayer(),u;(W=(u=k.shortsController.alternativePlayerContainerElement)==null?void 0:u.getPlayerContainer())&&(z==null||z.appendTo(W))}else{var B;u=(B=k.shortsController.alternativePlayerContainerElement)==null?void 0:B.getPlayerContainer().querySelector("#player");W=k.shortsController.activeIndex;
(B=(z=k.shortsController.getRoot())==null?void 0:z.querySelector('ytd-reel-video-renderer[id="'+W+'"] #player-container'))&&(u==null||u.appendTo(B,void 0,!0))}});
this.addOnDisposeCallback(A)};
_.I(f5Q,_.dF);var mh=function(A,H,k,d){var W=this;this.storeWithShorts=A;this.ephemeralResponseStore=H;this.innertubeTransportService=k;this.innertubeTransportLoader=d;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.oy(_.VP);this.isShortsPipActive=_.oy(_.EF);this.nextReelVe=_.t8(56921);this.prevReelVe=_.t8(56922);this.backButtonVe=_.t8(22156);this.TEST_ONLY={getActiveModules:function(){return W.activeModules}}},weI=function(A){A.unsubscribeFromStore=
_.dC(A.storeWithShorts,_.uvm,function(H){A.initOrDisposeActiveModules(H);
!H&&A.storeWithShorts.getState().shorts.isFullscreen&&(_.CH(document.documentElement),A.storeWithShorts.dispatch(_.LPj(!1)))});
A.initOrDisposeActiveModules(_.uvm(A.storeWithShorts.getState()))},fLM,w4L,oU_;
mh.prototype.initOrDisposeActiveModules=function(A){A?this.activeModules.push(new f5Q(this,this.storeWithShorts)):(_.KC(this.activeModules),this.activeModules.length=0)};
mh.prototype.registerRootElement=function(A){this.rootElement=A;weI(this)};
mh.prototype.getRoot=function(){return this.rootElement};
mh.prototype.setActiveIndex=function(A){this.activeIndex=A};
_.tBL=function(A,H){var k,d,W,z,u,B,h;return _.e(function(O){switch(O.nextAddress){case 1:return k=new E1,(d=k.JSC$14498_getStoreKey(H))&&A.ephemeralResponseStore.has(d)?O.yield(A.ephemeralResponseStore.get(d),7):O.yield(oU_(A,H),4);case 4:W=O.yieldResult;if(!d){O.jumpTo(3);break}z=Ut(W,3600);return O.yield(A.ephemeralResponseStore.put(d,new _.Zp(z)),3);case 7:W=(u=O.yieldResult)==null?void 0:_.U5(u);case 3:return((B=W)==null?0:B.replacementEndpoint)&&(h=_.L(W.replacementEndpoint,_.A1))&&W.sequenceContinuation&&
(h.sequenceParams=W.sequenceContinuation),O.return(W)}})};
fLM=function(A,H){H=(new U1).JSC$14498_getStoreKey(H);return!!H&&A.ephemeralResponseStore.has(H)};
w4L=function(A,H,k){var d,W,z,u,B;_.e(function(h){if(h.nextAddress==1){d=new U1;W=d.JSC$14498_getStoreKey(H);if(!W)return h.return();if(k.reelWatchSequenceResponse)return z=Ut(k.reelWatchSequenceResponse,3600),A.ephemeralResponseStore.put(W,new _.Zp(z)),h.jumpTo(0);if(!A.ephemeralResponseStore.has(W))return h.jumpTo(0);B=k;return h.yield(A.ephemeralResponseStore.get(W),4)}B.reelWatchSequenceResponse=(u=h.yieldResult)==null?void 0:_.U5(u);_.EN(h)})};
oU_=function(A,H){var k=k===void 0?{}:k;var d,W,z;return _.e(function(u){switch(u.nextAddress){case 1:if(A.innertubeTransportService){d=A.innertubeTransportService;u.jumpTo(2);break}if(!A.innertubeTransportLoader){_.V$(Error("yj"));u.jumpTo(2);break}return u.yield(A.innertubeTransportLoader(),4);case 4:d=u.yieldResult;case 2:return u.yield((W=d)==null?void 0:_.I9(W,H,k),5);case 5:return z=u.yieldResult,u.return(z)}})};
_.nP.Object.defineProperties(mh.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
mh[ox]=[cjQ,_.ng,_.fZ(_.kI),_.fZ(sZJ)];_.$UM=new _.SE("STORAGE_MANAGER_TOKEN");var aaI=["touchmove","scroll"];var A3_=!1;var JLC=!1;var KqI={onSpanEnd:function(A){A.parentId==null&&(A3_||(TgA(),setInterval(TgA,6E5),A3_=!0),bWV(A,"web_tracing_action"))}};var Ia8=URL.createObjectURL;var S$X,HZG={traceAllComponents:_.b("web_tracing_all_components"),exportToCsi:_.b("web_tracing_export_to_csi"),enabledSpansArray:_.d2("web_tracing_enabled_spans"),exportToDevTools:_.b("web_tracing_export_to_devtools"),maxBreadcrumbs:_.H5("tel_max_breadcrumbs",0)};S$X=new jRV(HZG);var C6N=_.b("web_shorts_enable_tracing");var sxL=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},kPL;
sxL.prototype.enqueue=function(A,H){H===1?this.currentPersistentToast=A:this.queue.push(A);_.dPQ(this)};
_.dPQ=function(A){var H;(H=A.currentToast)!=null&&H.isOpened()||(A.queue.length?(A.currentToast=A.queue.shift(),A.currentToast.open()):A.currentPersistentToast&&A.currentPersistentToast.open())};_.JJ=new _.SE("TOAST_MANAGER_TOKEN");var WFB=new _.SE("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var zVi=new _.SE("VIEW_TRANSITION_COORDINATOR_TOKEN");var qDB=function(A){this.config=A;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;A=_.r(A.transitionConfigs);for(var H=A.next();!H.done;H=A.next())H=_.r(H.value).next().value,this.transitionTasksMap.set(H,[])};
qDB.prototype.registerElement=function(A,H,k){k=k===void 0?!1:k;for(var d=_.r(Object.keys(H)),W=d.next(),z={};!W.done;z={viewTransitionName:void 0},W=d.next()){W=W.value;z.viewTransitionName=H[W];var u=this.elementTasksMap.get(A),B=void 0;if((B=u)==null?0:B.has(W)){_.YJ(new _.Ti("Element already registered for transition",A.tagName,W));break}u=u||new Map;u.set(W,{beforeTransition:function(h){return function(){A.style.viewTransitionName=h.viewTransitionName}}(z),
afterTransition:function(){A.style.viewTransitionName&&(A.style.viewTransitionName="")},
runOnce:k});this.elementTasksMap.set(A,u)}};
_.Jc=function(A,H){var k=A.elementTasksMap.get(H);k&&(k.clear(),k.size===0&&A.elementTasksMap.delete(H))};
qDB[ox]=[WFB];var uQG=_.c(function(A){var H=_.GP("yt-expandable-metadata-header-view-model"),k=_.lc(function(d){_.vn(_.A7(),{data:A.data()});if(!_.xH(_.eu(d),H.value,["A".toString(),"BUTTON".toString()])){var W;(W=A.expandedCallback)==null||W.call(A,!1)}});
return _.x("yt-expandable-metadata-header-view-model",{el:H,class:"ytExpandableMetadataHeaderViewModelHost"},_.x(_.R,{cond:function(){return A.expanded()},
then:function(){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":k},_.x("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.x(_.R,{cond:function(){return A.data().expandedTitleImage},
then:function(d){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.x(_.GA,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:d}))}}),_.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.x(_.j$,{text:function(){return A.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.x(_.j$,{text:function(){return A.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.x(_.j$,{text:function(){return A.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.x("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.x(_.HG,{data:function(){return A.data().infoButton}},{buttonViewModel:_.U7}),_.x(_.HG,{data:function(){return A.data().collapseButton}},{buttonViewModel:function(d){return _.x(_.U7,{data:d.data,
onClick:function(){var W;(W=A.expandedCallback)==null||W.call(A,!1)}})}})))},
else:function(){return _.x(r3R,Object.assign({},A))}}))},"Ag"),BjI=_.c(function(A){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.x(_.R,{cond:function(){return A.data().collapsedLabelImage},
then:function(H){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.x(_.GA,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:H,alt:""}))}}),_.x(_.j$,{text:function(){return A.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Bg"),r3R=_.c(function(A){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.lc(function(){_.vn(_.A7(),{data:A.data()});var H;(H=A.expandedCallback)==null||H.call(A,!0)})},_.x("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.x(_.R,{cond:function(){return A.data().collapsedImage},
then:function(H){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.x(_.GA,{height:20,preserveHeight:!0,preserveWidth:!0,data:H,alt:""}))}}),_.x(_.R,{cond:function(){return A.data().showLeadingCollapsedLabel},
then:function(){return _.x(BjI,Object.assign({},A))}}),_.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.x(_.j$,{text:function(){return A.data().collapsedTitle}}))),_.x("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.x(_.R,{cond:function(){return!A.data().showLeadingCollapsedLabel},
then:function(){return _.x(BjI,Object.assign({},A))}}),_.x(_.HG,{data:function(){return A.data().infoButton}},{buttonViewModel:_.U7}),_.x(_.HG,{data:function(){return A.data().expandButton}},{buttonViewModel:function(H){var k=H.data;
return _.x(_.U7,{data:k,onClick:function(){_.vn(_.A7(),{data:k});var d;(d=A.expandedCallback)==null||d.call(A,!0)}})}})))},"Cg");_.eVI=_.c(function(A){var H=_.r(_.C0(function(){return A.data().initiallyExpanded})),k=H.next().value,d=H.next().value,W,z=(W=_.wj().resolve(_.fZ(_.sF)))==null?void 0:W(),u=function(){var B=A.data().colorData;
if(B)return z?B==null?void 0:B.darkColorPalette:B==null?void 0:B.lightColorPalette};
return _.x("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Mt({"background-color":function(){var B=u();return(B==null?0:B.section2Color)?_.h1(B.section2Color):""}})},_.x(_.HG,{data:function(){return A.data().header}},{expandableMetadataHeaderViewModel:function(B){return _.x(uQG,{data:B.data,
expanded:function(){return!!k()},
expandedCallback:function(h){d(h)}})}}),_.x(_.R,{cond:function(){return k()},
then:function(){return _.x("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.x(_.HG,{data:function(){return A.data().expandedContent}},{horizontalShelfViewModel:function(B){return _.x(_.Dr,{data:B.data,
includeMargin:!0,forceNarrowLayout:!0,palette:u})},
videoSummaryContentViewModel:function(B){return _.x(cDw,{data:B.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(B){return _.x(_.oW,{data:B.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(B){return _.x(_.YG,{data:B.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.x(_.HG,{data:function(){return A.data().expandedBottomButtons}},{buttonViewModel:function(B){return _.x("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.x(_.U7,{data:B.data}))}}))}}))},"Dg");var xP1=_.c(function(A){var H=A.text;var k=A.marqueeSpacing;var d=A.scrollDelay;var W=A.scrollDuration;var z=A.enableMarqueeScroll;A=A.large;var u=_.r(_.RV(!1,void 0,"WyNYFf")),B=u.next().value,h=u.next().value,O=_.r(_.RV(0,void 0,"OoTdhe"));u=O.next().value;var T=O.next().value,m=_.GP("marquee-scroll");O=_.GP("div");var J=_.GP("span"),g=_.wj().resolve(_.ju);_.CA(function(){if(z()){var X=J.value.getBoundingClientRect().width,D=m.value.getBoundingClientRect().width;if(X>D){var K=(g==="ltr"?-1:1)*(X+
(k?k():16));Promise.resolve().then(function(){h(!0);T(K)})}}},"dv0Anf");
var v={},y={};return _.x("marquee-scroll",{class:_.ER("ytMarqueeScrollHost",(v.ytMarqueeScrollHostLarge=A,v)),el:m},_.x("div",{id:"marquee-scroll-inner-container",class:_.ER("ytMarqueeScrollInnerContainer",(y.ytMarqueeScrollAnimationEnabled=function(){return B()},y)),
el:O,style:_.Mt({gap:k?(0,_.v6)(k):"16px","animation-duration":W?Vfk(W):"16s","animation-delay":d?Vfk(d):"3s","--marquee-translate":(0,_.v6)(u)})},_.x("span",{el:J,dir:"auto"},_.x(_.j$,{text:H,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.x(_.R,{cond:B,then:function(){return _.x("span",{"aria-hidden":"true",dir:"auto"},_.x(_.j$,{text:H,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fg");_.iZQ=_.c(function(A){var H=A.data;var k=A.overlayDensity;A=_.lc(function(){H().onTapCommand&&_.mu(H().onTapCommand);return!1});
var d=_.BG(),W=function(){return(k==null?void 0:k())===1?22:16},z={};
return _.x("reel-sound-metadata-view-model",{class:_.ER("ytReelSoundMetadataViewModelHost",(z.ytReelSoundMetadataViewModelHostLarge=function(){return(k==null?void 0:k())===1},z)),
"on:click":A,tabindex:0,role:"button","on:keydown":d},_.x("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.x(_.R,{cond:function(){return H().musicIcon},
then:function(u){return _.x(_.GA,{data:u,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:W})}}),_.x("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.x(xP1,{text:function(){return H().soundMetadata},
enableMarqueeScroll:function(){return!!H().enableMarqueeScroll},
large:function(){return(k==null?void 0:k())===1}}))))},"Gg");var hV_,OZ_,mP1,glG,LFi,J3V,jxB,y3L;hV_=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];OZ_=_.H5("wil_icon_max_concurrent_fetches",Infinity);
mP1=function(A,H,k){var d=this;this.iconSet=A;this.appDirection=H;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.k8.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.b("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.b("wil_icon_network_first");this.renderWhenIdle=_.b("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.b("wil_icon_load_immediately");this.isPurging=!1;A=function(){d.cacheStorageAvailable&&(d.cacheStorageAsync=_.k8.caches.open("yt-icons").then(function(z){return d.cacheStorageSync=z}).catch(function(){d.cacheStorageAvailable=!1}))};
k=(k==null?void 0:k())||{};k=_.r(Object.entries(k));for(H=k.next();!H.done;H=k.next()){var W=_.r(H.value);H=W.next().value;W=W.next().value;W=mF(W);RVB(W);this.iconCache[H]=W.cloneNode(!0)}this.isPurging=Tj_(this);this.isPurging instanceof Promise?this.isPurging.then(A):A()};
_.WxX=function(A,H){var k=A.resolveIcon(H);return k?A.renderingMode===1?J3V(A,k,A.renderingMode):(H=A.iconCache[k.url])?(H=H.cloneNode(!0),glG(A,H),J3V(A,k,A.renderingMode,H)):_.bZB(A,k).then(function(d){var W=d?0:1;glG(A,d);return J3V(A,k,W,d)}):(_.YJ(new _.Ti("Icon not found",{iconShape:H})),function(){})};
glG=function(A,H){if(H){A.counter+=1;A="_yt"+A.counter;H=[H].concat(_.fV(H.getElementsByTagName("*")));H=_.r(H);for(var k=H.next();!k.done;k=H.next())if(k=k.value,k.tagName==="style"&&k.textContent)k.textContent=LFi(k.textContent,A,!0);else for(var d=_.r(k.attributes),W=d.next();!W.done;W=d.next()){W=W.value;W.name==="id"&&(W.value+=A);["mask","fill","clip-path"].includes(W.name)&&(W.value=LFi(W.value,A));if(W.name==="style"){var z=k.style;try{z.cssText=LFi(z.cssText,A,!0)}catch(T){var u=void 0,B=
void 0,h=void 0,O=void 0;gG({error:((u=T)==null?void 0:(h=(B=u).toString)==null?void 0:h.call(B))||"",el:k.outerHTML,style:!!z,cssText:(O=z)==null?void 0:O.cssText})}}W.name==="xlink:href"&&(W.value=W.value.replace(/#(.*)/,"#$1"+A))}}};
LFi=function(A,H,k){var d=/url\(["']?#(.*?)["']?\)/;(k===void 0?0:k)&&(d=/url\(["']?#(.*?)["']?\)/g);return A.replace(d,"url(#$1"+H+")")};
J3V=function(A,H,k,d){return function(W,z){var u;var B=Object.assign({},{iconWidth:H.size+"px",iconHeight:H.size+"px",iconDisplay:"block"},z,{iconColor:(u=z==null?void 0:z.iconColor)!=null?u:"currentcolor"});u=_.$g("DIV");z=B.iconColor;var h=B.iconFilter;B="width: "+B.iconWidth+"; height: "+B.iconHeight+"; display: "+B.iconDisplay+";";h&&(B+=" filter: "+h+";");k===0&&(B+=" fill: "+z+";");k===1&&(h=H.url,B+=" -webkit-mask: url("+h+") no-repeat center / cover; mask: url("+(h+") no-repeat center / cover; background-color: ")+
z);H.allowMirroring&&A.appDirection==="rtl"&&(B+=" transform: scale(-1, 1); transform-origin: center center;");u.setAttribute("style",B);k===0&&d&&u.appendChild(d);W.appendChild(u)}};
_.bZB=function(A,H){var k,d,W;return _.e(function(z){k=function(u){return k7(u)};
d=H.url;if(!vlL(d))throw Error("Bj");W=y3L(A,d);return z.return(W.then(function(u){return u.clone().text()}).then(function(u){var B=k(u);
u=H.size;var h=_.$g("DIV");_.ON(h,B);B=_.Aw(h.firstElementChild!==void 0?h.firstElementChild:_.MBw(h.firstChild,!0));u=RVB(B,u);A.iconCache[d]=u.cloneNode(!0);delete A.responsePromises[d];return u}).catch(function(){}))})};
jxB=function(A){var H,k=(H=A.requestAninmationFrameResolver)==null?void 0:H.promise;k||(A.requestAninmationFrameResolver=new _.lk,k=A.requestAninmationFrameResolver.promise,_.k8.requestAnimationFrame(function(){var d;(d=A.requestAninmationFrameResolver)==null||d.resolve();A.requestAninmationFrameResolver=null}));
return k};
y3L=function(A,H){var k,d;return _.e(function(W){if(W.nextAddress==1)return A.waitForAnimationFrame?W.yield(jxB(A),2):W.jumpTo(2);k=A.responsePromises[H];k||(d=function(){var z,u,B;return _.e(function(h){switch(h.nextAddress){case 1:if(!A.cacheStorageAvailable){z=void 0;h.jumpTo(2);break}if(u=A.cacheStorageSync){h.jumpTo(3);break}return h.yield(A.cacheStorageAsync,4);case 4:u=h.yieldResult;case 3:z=u;case 2:return B=z,A.isNetworkFirstStrategy?h.return(A.fetchAndUpdateCache(H,B).catch(A.getCacheStorageResponse.bind(A,
H,B))):h.return(A.getCacheStorageResponse(H,B).catch(A.fetchAndUpdateCache.bind(A,H,B)))}})},k=A.renderWhenIdle?new Promise(function(z,u){_.ma(_.IE,function(){d().then(z).catch(u)},10)}):d(),A.responsePromises[H]=k);
return W.return(k.catch(function(z){delete A.responsePromises[H];gG({error:(z==null?0:z.toString)?z.toString():"",url:H});throw z;}))})};
mP1.prototype.fetchAndUpdateCache=function(A,H){var k=this;return _.e(function(d){return d.return(IR3(k,A).then(function(W){YDR(k,A,W,H);return W}))})};
var IR3=function(A,H){var k;return _.e(function(d){if(A.numFetches<OZ_)return A.numFetches+=1,d.return(PtB(A,H).finally(function(){--A.numFetches;if(Object.keys(A.queuedResponseResolvers).length){var W=Object.keys(A.queuedResponseResolvers)[0],z=A.queuedResponseResolvers[W];delete A.queuedResponseResolvers[W];z.resolve(IR3(A,W))}}));
k=new _.lk;A.queuedResponseResolvers[H]=k;return d.return(k.promise)})},PtB=function(A,H,k){k=k===void 0?2:k;
var d;return _.e(function(W){d={credentials:"same-origin",priority:"low"};return W.return(_.k8.fetch(H,d).then(function(z){return z.ok?z:Promise.reject(Error("Cj`"+z.status+"`"+z.statusText))}).catch(function(z){if(k>0)return PtB(A,H,k-1);
throw z;}))})},YDR=function(A,H,k,d){_.e(function(W){return d?W.return(new Promise(function(z){_.ma(_.IE,function(){var u,B;
return _.e(function(h){switch(h.nextAddress){case 1:if(!A.isNetworkFirstStrategy){u=void 0;h.jumpTo(2);break}return h.yield(d.match(H).catch(function(){}),3);
case 3:u=h.yieldResult;case 2:if(B=u){h.jumpTo(4);break}return h.yield(d.put(H,k.clone()).catch(function(O){gG({error:(O==null?0:O.toString)?O.toString():"",url:H})}),4);
case 4:z(),_.EN(h)}})},50)})):W.return()})};
mP1.prototype.getCacheStorageResponse=function(A,H){return _.e(function(k){return H?k.return(H.match(A).then(function(d){return d&&d.ok?d:Promise.reject()})):k.return(Promise.reject())})};
var RVB=function(A,H){H===void 0||A.getAttribute("viewBox")||A.setAttribute("viewBox","0 0 "+H+" "+H);A.setAttribute("focusable","false");A.setAttribute("aria-hidden","true");H=_.b("killswitch_remove_icon_fill_color");A.getAttribute("fill")!=="currentcolor"&&A.getAttribute("fill")!=="currentColor"||H||A.removeAttribute("fill");try{A.style.pointerEvents="none",A.style.display="inherit",A.style.width="100%",A.style.height="100%"}catch(W){var k;gG({error:((k=W)==null?0:k.toString)?W.toString():""});
try{A.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(z){var d;gG({error:((d=z)==null?0:d.toString)?z.toString():""})}}return A},vlL=function(A){for(var H=_.r(hV_),k=H.next();!k.done;k=H.next())if(A.startsWith(k.value)&&A.endsWith(".svg"))return!0;
return!1};
mP1.prototype.resolveIcon=function(A){return this.iconSet.resolveIcon(A)};
var gG=function(A){_.Pq(new _.Ti("Error in IconManager",A))},Tj_=function(A){if(_.b("wil_icons_cache_purge_killswitch"))return!1;
try{var H=_.k8.localStorage}catch(z){return!1}if(!H||!A.cacheStorageAvailable)return!1;var k=function(z){try{var u;(u=H)==null||u.setItem("yt-icons-last-purged",z.toString())}catch(h){var B;gG({error:((B=h)==null?0:B.toString)?h.toString():""})}},d=Number(H.getItem("yt-icons-last-purged"));
if(!d)return d=new Date,d=d.setDate(d.getDate()-Math.floor(Math.random()*90+1)),k(d),!1;if(function(z,u){z=new Date(z);u=new Date(u);return u.getMonth()-z.getMonth()+12*(u.getFullYear()-z.getFullYear())}(d,Date.now())<3)return!1;
try{return _.k8.caches.delete("yt-icons").then(function(z){z&&k(Date.now());return z}).catch(function(){return!1}).finally(function(){A.isPurging=!1})}catch(z){var W;
gG({error:((W=z)==null?0:W.toString)?z.toString():""});return!1}};
mP1[ox]=[L_i,_.ju,_.fZ(ja3)];_.GPM=function(A,H){this.iconManager=A;this.iconsToFetch=H};
_.GPM[ox]=[_.M0,_.fZ(yeV)];var FFi=function(){};var XIR=function(A,H,k){this.requestKey=A;this.wFB=H;this.bVG=k;this.ux6=function(){return new XMLHttpRequest};
this.fwS=void 0;this.gEZ=[]};
XIR.prototype.getLatestChallengeResponse=function(){return this.bVG};
var CCw=function(A,H,k){var d,W,z,u;return _.e(function(B){if(B.nextAddress==1){_.hZ("attestation_challenge_fetch");_.OH("att_fs",void 0,"attestation_challenge_fetch");if(!A.fwS)throw new _.mv(9,"Missing fetcher");return B.yield(A.fwS(H,k),2)}d=B.yieldResult;z=(W=d)==null?void 0:W.bgChallenge;if(!z)throw new _.mv(15,"Missing field");A.bVG=d;A.gEZ.forEach(function(h){h(d)});
u=xgV(z);_.OH("att_fc",void 0,"attestation_challenge_fetch");i9("attestation_challenge_fetch");return B.return(u)})},dGN=function(A,H){var k,d,W,z,u;
return _.e(function(B){switch(B.nextAddress){case 1:k=new NC(100,3E5,.25,2),d=void 0;case 2:if(!(k.currBackoffCount_<10)){B.jumpTo(4);break}_.S_(B,5);if(!(k.currBackoffCount_>0)){B.jumpTo(7);break}return B.yield(p1v(k.getValue()),7);case 7:return B.yield(DP3(A,H),9);case 9:return W=B.yieldResult,B.return(W);case 5:z=_.VA(B);z instanceof _.mv?d=z:(u=z instanceof Error?z.message:"Unknown",d=new _.mv(9,u));MC0(k);B.jumpTo(2);break;case 4:if(d)throw d;throw new _.mv(9,"Unknown error");}})},DP3=function(A,
H){H=LRZ(v6G(new bGp,H),A.requestKey);
var k=new _.lk,d=A.ux6();d.open("POST",A.wFB);d.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");d.setRequestHeader("Content-Type","application/json+protobuf");d.onload=function(){if(_.p0f(d)){var W=SYw(d.responseText);k.resolve(W)}else k.reject(new _.mv(_.Njl(_.W5(d)),d.statusText))};
d.onerror=function(){k.reject(new _.mv(_.Njl(_.W5(d)),d.statusText))};
d.send(H.serialize());return k.promise};var Ct_=function(A){this.networkStatusManager=A;this.isDownloaded=JTI===void 0?function(){return!1}:JTI;
this.isReady=!1;this.tDE=SDB(this)},SDB=function(A){var H;
return _.e(function(k){if(k.nextAddress==1)return k.yield(vlI(),2);if(k.nextAddress!=3)return H=k.yieldResult,k.yield(fd0(H),3);A.tq=k.yieldResult;VSX(A.tq).then(function(){A.isReady=!0});
return k.return(A.tq)})},KFL=function(A,H,k){A.tq?(A=A.tq.zUM({sq:k,
o1S:!0,h9o:!0}),H.serviceIntegrityDimensions={poToken:A}):_.I3(Error("Ej"))};
Ct_.prototype.processContext=function(A){var H=this;if(A.input.match(_.X3(gF1)))var k=A.innerTubeRequest;else if(A.input.match(_.X3(uyQ)))k=A.innerTubeRequest.playerRequest;else return _.FP();var d,W=(d=k)==null?void 0:d.videoId;return!W||this.isDownloaded(k)||this.networkStatusManager&&!this.tq&&!this.networkStatusManager.isNetworkAvailable()||_.b("webpo_exit_on_net_err")&&!this.tq&&(window.bgens===1||window.bgens===3)?_.FP():this.tq?this.isReady?(KFL(this,k,W),_.FP()):new Gr(VSX(this.tq).then(function(){KFL(H,
k,W)})):new Gr(this.tDE.then(function(z){return _.e(function(u){if(u.nextAddress==1)return u.yield(VSX(z),2);
KFL(H,k,W);_.EN(u)})}))};var aRB=new _.SE("WEB_PO_CONTEXT_PROCESSOR");var c3G=function(A,H){var k=this;this.ejt=0;var d;this.iSy=(d=H==null?void 0:H.iSy)!=null?d:window;this.networkStatusManagerPromise=H==null?void 0:H.networkStatusManagerPromise;var W;this.requestKey=(W=H==null?void 0:H.requestKey)!=null?W:_.k6("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var z;this.ybZ=(z=H==null?void 0:H.ybZ)!=null?z:function(h){return new jP(h)};
var u;d=(u=H==null?void 0:H.z2E)!=null?u:function(h,O,T){return new XIR(h,O,T)};
this.bgChallenge=xgV(A.bgChallenge);this.ttlSeconds=i9I(X1(A.challenge||""));this.xT=d(this.requestKey,_.b("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.k8.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",A);this.qj4=H==null?void 0:H.qj4;QRm(this.xT);var B;this.ji9=(B=H==null?void 0:H.ji9)!=null?B:function(h){_.Y3(k.iSy.document,"visibilitychange",
function(){k.iSy.document.visibilityState==="visible"&&h()})}},QxM=function(A){if(!A.vm){var H={maxAttempts:5,
xDB:A.ttlSeconds*1E3};Ey8(A.iSy);A.vm=A.ybZ({xT:A.xT,fjM:{disable:_.b("html5_web_po_disable_remote_logging"),cu:"aGIf",uZg:SHv("html5_web_po_experiment_ids"),thE:_.b("wpo_dis_lfdms")?0:1E3,hVW:function(d){var W=LoG.get(d);W||(W=new bUA(d),W=new fC(W),LoG.set(d,W));return W}},
yEr:H,kvU:A.bgChallenge,mzT:U$N});A.ejt=Date.now();FRQ(A.vm,function(){A.ejt=Date.now()});
A.iSy.bgevmc={p:function(){var d;(d=A.vm)==null||d.pause()},
r:function(){var d;(d=A.vm)==null||d.resume()},
cr:function(){var d,W;return(W=(d=A.vm)==null?void 0:d.checkForRefresh())!=null?W:Promise.resolve()}};
YDV(A.vm,function(){return _.e(function(d){return d.return(pI1(A))})});
var k=A.u4T.bind(A);A.networkStatusManagerPromise&&A.ttlSeconds>0&&A.networkStatusManagerPromise.then(function(d){d.listen("publicytnetworkstatus-online",k)});
A.ji9(k)}};
c3G.prototype.u4T=function(){if(Date.now()>this.ejt+this.ttlSeconds*1E3){var A;(A=this.vm)==null||Giw(A)}};
var pI1=function(A){if(A.aIV)return A.aIV;if(!A.vm)throw Error("Fj");A.aIV=new Fk({vm:A.vm,xT:A.xT,lzO:!0,onError:U$N,yEr:A.qj4});return A.aIV},tS8=function(A,H){A=new c3G(A,H);
QxM(A);(H==null?0:H.xeg)||pI1(A)};var Vp_=_.qiQ.ephemeralActionSelector,ElV=function(A,H){this.store=A;this.queue=[];H==null||H.addEventListener("yt-navigate-start",this.reset.bind(this))};
ElV.prototype.enqueue=function(A){var H=A.command,k=A.durationMs,d=A.elementToFocus;var W=A.label;var z=A.elementToFocus;A.command?W=_.$r("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:W,shortcut:_.$r("SHIFT_PLUS_ENTER")}):z&&(A=W+". "+_.$r("SHIFT_PLUS_ENTER")+" for more information.",W=_.$r("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:W,shortcut:_.$r("SHIFT_PLUS_ENTER")},A));k={announcement:W,durationMs:k!=null?k:8E3};H?k.command=H:d&&(d.classList.add("ephemeral-action-focusable-element"),k.selector=d.tagName+
".ephemeral-action-focusable-element");this.queue.push(k);UPR(this)};
ElV.prototype.activate=function(A){var H=Vp_(this.store.getState());if(H){if(H==null?0:H.command)_.OR(H.command),this.store.dispatch(Ob1(null));if(H==null?0:H.selector)H=document.querySelector(H.selector),_.CCm(H);A.preventDefault()}};
var UPR=function(A){if(!Vp_(A.store.getState())&&A.queue.length){var H=A.queue.shift();H&&(A.previousAnnouncement===H.announcement&&(H.announcement+="\u00a0"),A.store.dispatch(Ob1(H)),A.previousAnnouncement=H.announcement,A.JSC$19144_timeoutId=setTimeout(function(){if(H.selector){var k;(k=document.querySelector(H.selector))==null||k.classList.remove("ephemeral-action-focusable-element")}A.store.dispatch(Ob1(null));UPR(A)},H.durationMs))}};
ElV.prototype.reset=function(){this.JSC$19144_timeoutId&&clearTimeout(this.JSC$19144_timeoutId);this.store.dispatch(Ob1(null));this.queue.length=0;this.JSC$19144_timeoutId=void 0};
ElV[ox]=[_.O7,_.fZ(_.f1)];_.b_=new _.SE("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var lR_=new _.SE("AUTH_SERVICE_TOKEN");var nyC=_.XO(["about:blank"]),MSm;var tpe=new _.SE("API_IFRAME_TOKEN");var a$Q;a$Q=new _.SE("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.NjL=new _.SE("MISC_UI_SHARED_FLAGS_TOKEN");var Mp_=function(){};
Mp_.prototype.getFlag=function(A){if(A.configType!==2)throw Error("Gj");return nl3(A)};
var nl3=function(A){switch(A.flagType){case "bool":return _.b(A.flagName);case "int":return _.cj(_.H5(A.flagName));case "double":return _.H5(A.flagName);case "string":return _.k6(A.flagName);case "int32_list":return SHv(A.flagName);case "int64_list":return SHv(A.flagName).map(function(H){return _.cj(H)});
case "string_list":return _.d2(A.flagName);default:throw Error("Hj");}};var LR=function(A,H,k){H=H===void 0?{}:H;xs.call(this,k===void 0?"uninitialized":k);this.env=A;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}];H.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=H.shouldWaitOnAsyncImmediate)};
_.I(LR,xs);LR.prototype.init=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?d.yield(A(H.env),2):(A(H.env),d.jumpTo(2));if(d.nextAddress!=4)return H.jobSet?d.yield(H.jobSet.completedResolver.promise,4):d.jumpTo(4);k=_.Yf();k.parkOrScheduleJob(function(){H.transition("rendering")},10,"ci");
_.EN(d)})};
LR.prototype.initialRender=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?d.yield(A(H.env),2):(A(H.env),d.jumpTo(2));if(d.nextAddress!=4)return H.jobSet?d.yield(H.jobSet.completedResolver.promise,4):d.jumpTo(4);k=_.Yf();k.parkOrScheduleJob(function(){H.transition("rendered")},10,"cr");
_.EN(d)})};
LR.prototype.afterRenderImmediate=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?d.yield(A(H.env),2):(A(H.env),d.jumpTo(2));if(d.nextAddress!=4)return H.jobSet?d.yield(H.jobSet.completedResolver.promise,4):d.jumpTo(4);k=_.Yf();k.parkOrScheduleJob(function(){H.transition("after-render-deferred")},10,"carml");
_.EN(d)})};
LR.prototype.afterRenderDeferred=function(A){var H=this;return _.e(function(k){A(H.env);_.EN(k)})};_.cI("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var ZZL={},fR1=(ZZL.rendered={priority:0,callback:function(A){nBp(A.injector.resolve(Jb))}},ZZL);var aQG=new _.SE("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),wI3=new _.SE("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var olB=function(A){this.callbackFnMap=A;this.configMap={}};
olB.prototype.handleResponse=function(A){var H;if(A=(H=A.responseContext)==null?void 0:H.serviceTrackingParams)for(H=_.r(A),A=H.next();!A.done;A=H.next()){A=A.value;var k=A.params,d=A.service;if(k&&d){this.configMap[d]||(this.configMap[d]=new NV1);A=this.configMap[d];var W=void 0,z=(W=this.callbackFnMap)==null?void 0:W[d];k=_.r(k);for(d=k.next();!d.done;d=k.next())W=d.value,d=W.key,W=W.value,d&&W&&(A.set(d,W),z&&z(d,W))}}};
olB.prototype.getConfig=function(A){return this.configMap[A]||void 0};
olB[ox]=[_.fZ(wI3)];var $PL=!1,sdA=0,oyX=null,Huf=null;var An_=new _.SE("NETWORK_SLI_TOKEN");var HGL=function(A){this.networkSli=A};
HGL.prototype.fetch=function(A,H,k){var d=this,W;return _.e(function(z){W=sP1(d,A,H);return z.return(fetch(W).then(function(u){return d.handleResponse(u,k)}).catch(function(u){_.Pq(u);
if((k==null?0:k.expectJsonStrict)&&u instanceof Wh&&u.errorType===1)return Promise.reject(u)}))})};
var dsi=function(A,H,k,d){var W,z,u,B,h,O,T;return _.e(function(m){switch(m.nextAddress){case 1:return W=sP1(A,H,k),_.S_(m,2),m.yield(fetch(W),4);case 4:z=m.yieldResult;_.QN(m,3);break;case 2:throw _.VA(m),new Wh(2,"Failed to parse streaming response",W.url);case 3:if(!z.redirected&&!z.ok)throw(u=A.networkSli)==null||u.failure(),new _.Ti("Streaming fetch request not ok",W.url);if(!z.body)throw new _.Ti("No response body in streaming response",W.url);B={};if(_.b("web_streaming_fast"))return h=z.body.getReader(),
m.return(kiB(A,h,B,d));O=z.body.pipeThrough(new TextDecoderStream).getReader();T=new _.BN;return m.return(d4G(A,O,T,DuX,B,d))}})},sP1=function(A,H,k){if(A.networkSli){var d=_.Nx(_.sI(H,"key"))||"/UNKNOWN_PATH";
A.networkSli.start(d)}A=k;_.b("wug_networking_gzip_request")&&(A=tDm(k));return new window.Request(H,A)},kiB=function(A,H,k,d){var W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z,WV,hA,qv,eN,mr,Cl,pl,UC,hk,eA,lI;
return _.e(function(Rp){switch(Rp.nextAddress){case 1:W=new TextDecoder("utf-8"),z=[],B=u=0,_.S_(Rp,2,3);case 5:return Rp.yield(H.read(),8);case 8:h=Rp.yieldResult;O=h.value;if(T=h.done){m=0;if(z.length>u)for(m=z[u].length-B,J=u+1;J<z.length;J++)m+=z[J].length;m>0&&(g=kvm(z,m,u,B),v=g.indexOf(123),y=g.lastIndexOf(125),v!==-1&&y!==-1&&y>v&&(X=g.subarray(v,y+1),D=JSON.parse(W.decode(X)),DuX(k,D),K=void 0,(K=d)==null||K(k,D)));N=void 0;(N=A.networkSli)==null||N.success();return Rp.return(k)}z.push(O);
U=u;for(p=B;U<z.length;)if(M=z[U],Z=M.indexOf(10,p),Z===-1){if(U===z.length-1)break;U++;p=0}else{WV=U;hA=Z+1;qv=0;if(u===WV)qv=hA-B;else{qv=z[u].length-B;for(eN=u+1;eN<WV;eN++)qv+=z[eN].length;qv+=hA}mr=kvm(z,qv,u,B,WV,hA);Cl=mr.indexOf(123);pl=mr.lastIndexOf(125);if(Cl!==-1&&pl!==-1&&pl>Cl){UC=mr.subarray(Cl,pl+1);try{hk=JSON.parse(W.decode(UC)),DuX(k,hk),eA=void 0,(eA=d)==null||eA(k,hk)}catch(vj){throw new Wh(1,"Failed to parse streaming response object",W.decode(UC));}}u=U;p=B=Z+1;B===M.length&&
(u++,B=0,U=u,p=0)}Rp.jumpTo(5);break;case 3:_.KV(Rp);H.releaseLock();_.QA(Rp,0);break;case 2:lI=_.VA(Rp);if(lI instanceof Wh)throw lI;throw new Wh(1,"Failed to process streaming response");}})},d4G=function(A,H,k,d,W,z){var u,B,h,O,T,m,J,g,v;
return _.e(function(y){if(y.nextAddress==1)return y.yield(H.read(),2);u=y.yieldResult;B=u.value;if(h=u.done)return(O=A.networkSli)==null||O.success(),y.return(W);try{T=k.parse(B)}catch(X){throw new Wh(1,"Failed to parse streaming response",B);}if(T!=null)for(m=_.r(T),J=m.next();!J.done;J=m.next())g=J.value,d(W,g),v=void 0,(v=z)==null||v(W,g);return y.return(d4G(A,H,k,d,W,z))})};
HGL.prototype.handleResponse=function(A,H){var k=A.text().then(function(d){if((H==null?0:H.jspbResponseCtor)&&A.ok)return et8(H.jspbResponseCtor,d);d=d.replace(")]}'","");if((H==null?0:H.expectJsonStrict)&&d)try{var W=JSON.parse(d)}catch(u){throw new Wh(1,"JSON parsing failed after fetch");}var z;return(z=W)!=null?z:JSON.parse(d)});
A.redirected||A.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),k=k.then(function(d){_.Pq(new _.Ti("Error: API fetch failed",A.status,A.url,d));return Object.assign({},d,{errorMetadata:{status:A.status}})}));
return k};
HGL[ox]=[_.fZ(An_)];var WRQ=new _.SE("NETWORK_MANAGER_TOKEN");var zJe=[1,2,4,8,16,30],rnB=function(A){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=A.maxTimeMs;this.maxFrameCount=A.maxFrameCount===void 0?Math.ceil(60*A.maxTimeMs/1E3):A.maxFrameCount;A=_.r(zJe);for(var H=A.next();!H.done;H=A.next())this.brokenFrameSummarizers.push(new qaI(H.value/60*1E3))},uDQ=function(A){var H=A.frameCountInternal>=A.maxFrameCount;
return A.elapsedTimeMs>=A.maxTimeMs||H};
rnB.prototype.summarize=function(){for(var A=[],H=_.r(this.brokenFrameSummarizers),k=H.next();!k.done;k=H.next())k=k.value,k=k.brokenFrameCount!==0?{severityMs:Math.round(k.targetFrameTimeMs),eventCount:k.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(k.averageDurationBetweenEventsMs)}:void 0,k&&A.push(k);return{summaries:A,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.nP.Object.defineProperties(rnB.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 qaI=function(A){this.targetFrameTimeMs=A;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.nP.Object.defineProperties(qaI.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var B2_=function(){};
B2_.prototype.start=function(A,H){var k=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var d=new rnB({maxTimeMs:A});this.monitor=d;this.lastSummaryInternal=void 0;this.metadataToLog=H;return new Promise(function(W){var z=function(u){if(u===void 0)k.stop(),W(void 0);else if(k.monitor!==d)u=Object.assign({},d.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),W(u);else{var B=k.monitor;if(!uDQ(B)){B.frameCountInternal++;if(B.prevTime===
void 0)B.startTime=u;else for(var h=u-B.prevTime,O=_.r(B.brokenFrameSummarizers),T=O.next();!T.done;T=O.next()){T=T.value;var m=T.currTimeMs;T.currTimeMs+=h;h>T.targetFrameTimeMs+2&&(T.brokenFrameCount++,T.timeOfFirstBrokenFrameMs===void 0&&(T.timeOfFirstBrokenFrameMs=m),T.timeOfLastBrokenFrameMs=m)}B.prevTime=u}uDQ(k.monitor)?W(k.stop()):_.IE.addJob(z,5,0)}};
_.IE.addJob(z,5,0)})};
B2_.prototype.stop=function(A){if(!this.monitor)return this.lastSummaryInternal;var H=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(H.monitoringDurationMs){A=A!=null?A:this.metadataToLog;var k={droppedFramesSummary:H,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};A&&(k[A.type]=A.data);_.yr("manualSmoothnessMeasurement",k)}this.monitor=void 0;this.lastSummaryInternal=H;this.metadataToLog=void 0;return H};_.eJG=new _.SE("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var dyv=Promise.resolve();var x4_;x4_=function(A){this.JSC$19186_expiringStorage=new g2(A)};
_.iG_=function(A){if(_.zoN()&&(A=_.LjN(_.Oa()+"::"+A)))return new x4_(A)};
x4_.prototype.set=function(A,H,k){k=k!==void 0?Date.now()+k:void 0;this.JSC$19186_expiringStorage.set(A,H,k)};
x4_.prototype.get=function(A){return this.JSC$19186_expiringStorage.get(A)};
x4_.prototype.remove=function(A){this.JSC$19186_expiringStorage.remove(A)};_.vc=function(){};
_.vc.getInstance=function(){var A=_.UD("ytglobal.storage_");A||(A=new _.vc,_.nG("ytglobal.storage_",A));return A};
_.vc.prototype.estimate=function(){var A,H,k;return _.e(function(d){A=navigator;return((H=A.storage)==null?0:H.estimate)?d.return(A.storage.estimate()):((k=A.webkitTemporaryStorage)==null?0:k.queryUsageAndQuota)?d.return(qzX()):d.return()})};
_.nG("ytglobal.storageClass_",_.vc);var hof=0;var buW=!1;var hJL=_.XO(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),OGQ=_.XO(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var vgB={"/":_.kf,"/?feature=ytca":_.kf,"/feed/downloads":_.idl};var RJ_=uCB.continuationCommandSelector,kc=function(A,H,k){this.JSC$19201_upliftPromise=A;this.store=H;this.JSC$19201_persistentStorePromiseAccessor=k};
kc.prototype.shouldPreferLocalResponse=function(A){return A.browseId==="FEdownloads"||A.browseId==="FEsmart_downloads"&&_.b("kevlar_modern_downloads_page")?!0:!1};
kc.prototype.localInnertubeResponse=function(A){var H=this;return _.e(function(k){return A.browseId==="FEdownloads"?_.b("kevlar_modern_downloads_page")?k.return(T2L(H)):k.return(m4R(H)):A.browseId==="FEsmart_downloads"&&_.b("kevlar_modern_downloads_page")?k.return(JnB(H)):k.return(Promise.reject(Error("Jj")))})};
kc.prototype.canProvideFallbackResponse=function(){return!0};
kc.prototype.localFallbackInnertubeResponse=function(A){var H=this,k,d,W;return _.e(function(z){switch(z.nextAddress){case 1:return z.yield(H.JSC$19201_persistentStorePromiseAccessor(),2);case 2:k=z.yieldResult;if(A.browseId!=="SPaccount_downloads"||!k){z.jumpTo(3);break}return z.yield(m5W(k),4);case 4:if(d=z.yieldResult)return z.return(_.U5(d));case 3:return A.browseId==="FEwhat_to_watch"?z.return(g6I(H)):(W=_.b("web_offline_continuation_automatic_retry")||_.b("web_offline_continuation_retry_button"))&&
A.continuation?z.return(bG_(H)):z.return(LR1(H))}})};
var g6I=function(A){var H;return _.e(function(k){if(k.nextAddress==1)return k.yield(A.JSC$19201_upliftPromise,2);H=_.xKQ(A.store.getState().entities);return H.length?k.return(v6B(A,H)):k.return(LR1(A))})},m4R=function(A){var H,k;
return _.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$19201_upliftPromise,2);if(d.nextAddress!=3)return H=ynL([{offlineItemSectionRenderer:{}}]),d.yield(jP_(A,H),3);k=d.yieldResult;k.onResponseReceivedActions=[w9("REFRESH_DOWNLOADS")];return d.return(k)})},T2L=function(A){var H,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X;
return _.e(function(D){if(D.nextAddress==1)return D.yield(A.JSC$19201_upliftPromise,2);if(D.nextAddress!=3)return H=A.store.getState(),k=H.entities,d=_.uk(k),W=_.BK(k),z=_.lp8(H),u=_.UKI(H),B=_.t3b(H),h=_.Og8(k),O=_.ku(d),T=_.eX(k),m=_.JBl(k),J=_.M3I(H),g=_.Rc(H),v={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.P3Q(d,W,h,m,z,u,O,T,B,J,g),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},y="",_.b("kevlar_modern_downloads_skip_downloads_title")||
(y=_.$r("DOWNLOADS",void 0,"Downloads")),D.yield(Iq_(A,v,y),3);X=D.yieldResult;X.onResponseReceivedActions=[w9("REFRESH_DOWNLOADS")];return D.return(X)})},JnB=function(A){var H,k,d,W,z,u,B,h,O;
return _.e(function(T){if(T.nextAddress==1)return T.yield(A.JSC$19201_upliftPromise,2);if(T.nextAddress!=3)return H=A.store.getState(),k=H.entities,d=_.uk(k),W=_.ku(d),z=_.eX(k),u={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.FKb(d),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},B=_.$r("SMART_DOWNLOADS",void 0,"Smart downloads"),h=IHA(W,z),T.yield(Iq_(A,u,B,h),3);O=T.yieldResult;O.onResponseReceivedActions=
[w9("REFRESH_DOWNLOADS")];return T.return(O)})},LR1=function(A){var H,k;
return _.e(function(d){if(d.nextAddress==1)return d.yield(E5(A.JSC$19201_upliftPromise,A.store),2);H=d.yieldResult;k=ynL([h0V(H)]);return d.return(jP_(A,k))})},bG_=function(A){var H,k,d,W;
return _.e(function(z){if(z.nextAddress==1)return H={},k=RJ_(A.store.getState()),_.uc(H,_.Tc,k),z.yield(E5(A.JSC$19201_upliftPromise,A.store,H,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);d=z.yieldResult;W={};_.uc(W,_.qui,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:d}}}],targetId:"browse-feedFEwhat_to_watch"});return z.return({responseContext:{},onResponseReceivedActions:[W]})})},ynL=function(A){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:A}}}}]}}},v6B=function(A,H){var k,d;
return _.e(function(W){var z={contents:o5(H)};k=z&&z.contents?z:{};_.b("kevlar_modern_downloads_page")&&(k=Object.assign({},_.XOf(H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));d={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:k}}}]}};return W.return(jP_(A,d))})},jP_=function(A,H){var k,d;
return _.e(function(W){if(W.nextAddress==1)return W.yield(A.JSC$19201_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3)return k=W.yieldResult,W.yield(ls(k),3);d=W.yieldResult;return W.return({responseContext:{},contents:H,topbar:d})})},Iq_=function(A,H,k,d){var W,z;
return _.e(function(u){if(u.nextAddress==1)return u.yield(A.JSC$19201_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return W=u.yieldResult,u.yield(ls(W),3);z=u.yieldResult;var B=u.return;var h=k;var O=d;h=h===void 0?"":h;O=O===void 0?"":O;h={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:h}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.$r("SETTINGS",void 0,"Settings"),accessibilityText:_.$r("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:_.Sc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:O}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:h};
return B.call(u,{responseContext:{},contents:H,topbar:z,header:{pageHeaderRenderer:h}})})};var YaI=function(A){this.chunkRegistry=A};
YaI.prototype.handleResponse=function(A){var H=this,k,d,W,z,u;return _.e(function(B){z=(W=(k=_.L(A.responseContext,poQ))==null?void 0:(d=k.webResponseContextPreloadData)==null?void 0:d.preloadMessageNames)!=null?W:[];u=xU_(H.chunkRegistry,z);return B.yield(u(),0)})};
YaI[ox]=[_.yX];var wVj=new _.SE("MSS_RESPONSE_PROCESSOR_TOKEN");var PC1={},GiM=(PC1.rendered={priority:0,callback:function(A){a:{var H=void 0;try{var k;b:{if(_.CTC()){var d=_.v5(_.Oa()+"::pom");if(d){var W=new H2(d);break b}}W=void 0}var z=(k=W)==null?void 0:k.get("role_text");if(!z)break a;H={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:z}]}}}}}}catch(h){}H&&A.injector.resolve(_.J7).resolveCommand(H)}try{var u=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(u){var B=JSON.parse(u);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
B&&A.injector.resolve(_.J7).resolveCommand(B)}}catch(h){}}},PC1);var FRi,X5G={},D4V=(X5G.initialized={priority:10,callback:function(){FRi=xc()}},X5G.rendering={callback:function(A){var H;
return _.e(function(k){if(k.nextAddress==1)return k.yield(FRi,2);H=k.yieldResult;if(!H.endpoint)throw Error("Lj`"+_.k8.location.href);OK(A,H);_.EN(k)})}},X5G);var SaM={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(_.fV(_.b("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(A){var H=A.stack;if(H.includes("chrome://")||H.includes("chrome-extension://")||A.message.includes("chrome-extension://")||H.includes("moz-extension://")||
H.includes("local.adguard.org")||H.includes("auctioneer3.50million.club")||H.includes("youtubedownloader")||H.includes("youtube_home_page")||H.includes("is_youtube_video_no_longer_available")||H.includes("switchScreenSizeHack")||H.includes("yt_main_big_banner.js")||H.includes("YouTubeCenter.js")||H.includes("/mytube.js")||H.includes("JSON.parseWrapper")||H.includes("/inj_js/common.js")||H.includes("firebug-lite")||H.includes(".repl.co/")||H.includes("linkfix")||H.includes("playAfterAd")||A.message.includes("Access is denied for this document")&&
H.includes("<anonymous>")||A.fileName==="user-script"||A.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&H.includes("<anonymous>"))return!0;if(H.includes("https://www.youtube.com"))return!1;A=H.split("\n");if(!A.length)return!1;if(A.length<=3&&H.includes("s.onloadeddata"))return!0;H=0;for(var k=_.r(A),d=k.next();!d.done;d=k.next())d=d.value,(d.includes("https://")||d.includes("http://"))&&H++;return H/A.length>.95},
weight:0},{callback:function(A){return A.message==="Unknown Error"&&A.name.indexOf("NS_")===0},
weight:100},{callback:function(A){if(!_.n6)return!1;var H=A.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||A.message.includes("available to complete this operation"),k=A.stack.includes("webcomponents")&&A.message==="Object doesn't support this action";A=A.message.includes("object that does not implement interface Element");return H||k||A},
weight:0},{callback:function(A){return A.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(A){return A.message==="Operation is not supported"&&(A.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(A){return A.stack.includes("eval code (eval (code:1:1)")||A.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(A){return A.message.includes("Permission denied")&&A.stack.includes("this.domHandler")?!0:A.name.includes("TypeError")&&A.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(A){if(!A.stack)return!1;var H=A.stack.trim().split("\n");H.length&&H[0].endsWith("Error: "+A.message)&&H.shift();H.length&&H[H.length-1].includes("at window.onerror (")&&H.pop();if(!H.length)return!0;if(A.message==="Script error.")return H[0].includes("www.youtube.com")||H.length>=2&&H[0].startsWith("at new")&&H[1].startsWith("at window.onerror");if(A.message==="Unexpected token")return!0;A=_.r(H);for(H=A.next();!H.done;H=A.next())if(H=H.value,!(H.includes("<anonymous>")||
H.startsWith("load@")||H.startsWith("global code@")||H.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(A){return A.message==="Cannot read property 'experiments'"&&A.stack.includes("/s/player/")},
weight:500},{callback:function(A){return A.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(A){return A.stack.includes("/embed.js")?(A.params&&A.params&&(A.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.b("use_error_suppression"))var A=_.pZ("SUPPRESS_CLIENT_ERRORS",!1);else{if(A=_.wK)A=/Chrome\/(\d+)/.exec(_.bI()),A=(A?parseFloat(A[1]):NaN)>=66;A=!(A||_.f6&&_.Zs(65)||_.Dq&&_.Zs(12.1)||N4&&_.Zs(79))}return A},
weight:500}]};var CCM={},KR_=(CCM.initialized={priority:10,callback:function(A){A.injector.addProvider({provide:fni,useValue:A.root});A.injector.addProvider({provide:tvV,useValue:OhI});A.injector.addProvider({provide:NFI,useValue:SaM});var H={};A.injector.addProvider((H.provide=MvB,H.useFactory=function(k,d){return function(){aMN(k,d)}},H[ox]=[tvV,
NFI],H));A.injector.addProvider({provide:Az,useClass:Az})}},CCM);var aq1={},cn1=(aq1.initialized={priority:3,callback:function(){var A;if(A=hFW()){A=A.replace("/",".");var H=_.sH();H.set("tz",A);H.save();A=!0}else A=!1;A||(A=_.sH(),A.set("utco",-Math.floor((new Date).getTimezoneOffset())),A.save())}},aq1);var p5B={},QPB=(p5B.initialized={priority:10,callback:function(A){A.injector.resolve(Az).start();A=_.Il();var H=_.Q$("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Q$("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Q$("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Q$("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.oI(_.vev(),{mainAppWeb:Object.assign({},A,{pageType:H})});_.oI(jD8(),{mainAppWeb:Object.assign({},A,{pageType:H})});
_.oI(I2V(),{mainAppWeb:A});_.oI(Ymb(),{mainAppWeb:A});zW1(function(){_.$q(I2V(),"FAILURE");_.$q(Ymb(),"FAILURE")});
CYA();Knl();jBA()}},p5B);var Vie={},E6V=(Vie.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.OH("dl"),_.Yf().processSignal("pcl");else{var A=function(){_.OH("dl");_.Yf().processSignal("pcl");window.removeEventListener("load",A)};
window.addEventListener("load",A)}}},Vie);var U4Q={},lqL=(U4Q.rendering={priority:0,callback:function(){var A=_.Yf();A.parkOrScheduleJob(function(){A.processSignal("eocs")},10,"eor",5E3)}},U4Q);var tiB=function(){};
_.I(tiB,Yj);
tiB.prototype.resolveCommand=function(A,H){var k,d,W,z,u,B,h,O;return _.e(function(T){W=(k=_.L(A,_.X2w))==null?void 0:(d=k.dialog)==null?void 0:d.commentReplyDialogRenderer;if(!W)throw new _.Ti("No dialog in createCommentReplyDialogEndpoint");u=(z=H.form)==null?void 0:z.event;if(!u)throw new _.Ti("Event not passed in when resolving command");B=_.r(u.composedPath());for(h=B.next();!h.done;h=B.next())if(O=h.value,O.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||O.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return O.showReplyDialog(W),T.return();
_.EN(T)})};var N2B=function(){};
_.I(N2B,Yj);N2B.prototype.resolveCommand=function(){var A;return _.e(function(H){if(A=document.getElementById("creator-chatbots-panel"))A.style.display="none";_.EN(H)})};var Mii=function(){};
_.I(Mii,Yj);Mii.prototype.resolveCommand=function(A){var H,k,d,W,z,u,B;return _.e(function(h){switch(h.nextAddress){case 1:return H=_.L(A,E2A),((k=H)==null?void 0:k.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?h.yield((0,_.$J)("NSzT5"),6):(d=H)!=null&&d.externalChannelId?h.yield((0,_.$J)("NSzT5"),4):h.return();case 4:return W=_.dQj,u=(z=H.forceInstall)!=null?z:!1,h.yield(W(H.externalChannelId,u,H.surface),0);case 6:return B=_.dQj,h.yield(B("",!1,H.surface),7);case 7:return h.return()}})};var yq=function(A){this.JSC$19230_pageRequestService=A;this.JSC$19230_prefetchCoordinator=G4B()};
_.I(yq,Yj);yq.prototype.resolveCommand=function(A){var H=this,k,d,W,z;return _.e(function(u){if(u.nextAddress==1){k=_.L(A,e2J);if((d=k)==null||!d.taskId)throw Error("Mj");W=k.taskId;_.S_(u,2);return u.yield(_.ngG(H.JSC$19230_pageRequestService,A,{},"").then(function(B){if(!B)throw Error("Nj");},function(B){throw Error("Oj`"+B);
}),4)}if(u.nextAddress!=2)return S9e(H.JSC$19230_prefetchCoordinator,W),_.QN(u,0);
z=_.VA(u);DZ_(H.JSC$19230_prefetchCoordinator,W,z);_.EN(u)})};
yq[ox]=[_.eK];var j7=function(A,H){this.innertubeTransportService=A;this.JSC$19234_commandHandler=H};
_.I(j7,Yj);j7.prototype.resolveCommand=function(A){var H=this,k,d,W;return _.e(function(z){if(z.nextAddress==1){k=_.L(A,igN);if(k.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||k.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")d=k.boolValue?2:1,_.aD.getInstance().setState(d,!0,!0);return z.yield(_.I9(H.innertubeTransportService,A),2)}W=z.yieldResult;n6G(H,W);_.EN(z)})};
var n6G=function(A,H){H.actions&&H.actions.forEach(function(k){A.JSC$19234_commandHandler.resolveCommand(k)})};
j7[ox]=[_.kI,_.J7];var If={},Yo=(If.addToPlaylistEndpoint=DW(ak),If.addToToastAction=DW(Mz),If.adsControlFlowOpportunityReceivedCommand=DW(Rk),If.audioTrackSelectActionCommand=DW(ok),If.backgroundAudioPlaybackCommand=DW(Hk),If.captionLanguageSelectActionCommand=DW(sr),If.captionPickerEndpoint=DW(kA),If.changeMiniAppPlayStateCommand=DW(c7),If.changeTimelyActionVisibilityCommand=DW(Nz),If.channelCreationFormEndpoint=DW(F8),If.clearLocationCommand=DW(Kp),If.clearUrlParamCommand=DW(pp),If.copyLinkCommand=DW(ex),If.copyTextEndpoint=
DW(Lp),If.createCommentReplyDialogEndpoint=Y7v(tiB),If.createPlaylistServiceEndpoint=DW(xA),If.dismissDialogEndpoint=DW(VU),If.dismissPlayerOverlayCommand=DW(dM),If.entityUpdateCommand=DW(yU),If.feedbackEndpoint=DW(jT),If.getAnswerCommand=DW(yk),If.getPaymentsClientTokenCommand=DW(oT),If.getTranscriptEndpoint=DW(nB),If.googlePaymentBillingCommand=DW($A),If.googlePaymentPurchaseManagerCommand=DW(AI),If.hideCreatorChatbotEngagementPanelCommand=DW(N2B),If.hideEngagementPanelEndpoint=DW(E2),If.hideSheetCommand=
DW(U2),If.hideSnackbarCommand=DW(pB),If.insertRichSectionCommand=DW(Dm),If.listMutationCommand=DW(ST),If.logGtmCommand=DW(X8),If.notifyDropdownOptionSelectedCommand=DW(QU),If.openAdAllowlistInstructionCommand=DW(_.T6),If.openOnePickAddVideoModalCommand=DW(i4),If.persistSubscriptionsDisplayPreferencesCommand=DW(JN),If.pingingEndpoint=DW(mT),If.playlistEditEndpoint=DW(Or),If.playlistVotingRefreshPopupCommand=DW(RT),If.profileCardCommand=DW(O2),If.refreshPanelEndpoint=DW(lW),If.saveImageToDeviceEndpoint=
DW(v7),If.scrollToSectionEndpoint=Y7v(rj_),If.seekToVideoTimestampCommand=DW(Wk),If.selectCountryCommand=DW(gM),If.setCookieCommand=DW(b4),If.setLocalStorageCommand=DW(Vk),If.setPrefStorageEntryCommand=DW(vk),If.setSettingEndpoint=DW(j7),If.sfvAudioItemPlaybackCommand=DW(zR),If.shareImageCommand=DW(jx),If.sharingProviderDataCommand=DW(IT),If.showAudioTrackPickerActionCommand=DW(qz),If.showCaptionLanguageSelectActionCommand=DW(rM),If.showCreatorChatbotEngagementPanelCommand=DW(Mii),If.showDialogCommand=
DW(Mf),If.showEngagementPanelEndpoint=DW(np),If.showFullscreenPlayerControlsCommand=DW(u4),If.showSheetCommand=DW(Zm),If.showSnackbarCommand=DW(Qk),If.showTransientPlayerScrimOverlayCommand=DW(Bk),If.submitFormWithValidationFlowCommand=DW(G6),If.talkToRecsDeselectCommand=DW(Er),If.talkToRecsNextCommand=DW(Ur),If.talkToRecsSelectCommand=DW(l4),If.talkToRecsUpdateTextCommand=DW(tN),If.toggleEngagementPanelCommand=DW(fp),If.undoFeedbackEndpoint=DW(P7),If.updateEngagementPanelContentCommand=DW(wR),If.updateUrlParamCommand=
DW(ZN),If.updateVideoMetadataCommand=DW(wM),If.verifyCommand=DW(F8),If.webNativeShareCommand=DW(YA),If.webSubmitFormCommand=DW(TR),If.ACK_PLAYABLES_3P_DATA_CONSENT=DW(Pk),If.CANCEL_NAVIGATION=DW(GR),If.COPY_SHARE_URL=DW(F0),If.MINI_APP_EXIT_DIALOG_SEEN=DW(DN),If.MINI_APP_OPEN_URL=DW(X0),If.REQUEST_MINI_APP_FULLSCREEN=DW(Sx),If.RESUME_NAVIGATION=DW(CB),If.SHARE_PLAYABLE_WITH_HIGH_SCORE=DW(KB),If.TELL_US_WHY=DW(Ik),If);
_.b("web_enable_prefetching_videos_on_home")&&(Yo.prefetchWatchCommand=DW(yq),Yo.registerTasksCommand=DW(E3L));_.b("enable_share_panel_navigation_logging_fix_on_web")&&(Yo.shareEntityServiceEndpoint=DW(tu));_.b("web_use_flow_state_manager")&&(Yo.deleteFlowStepsCommand=DW(qf),Yo.flowNextStepCommand=DW(rR),Yo.flowPrevStepCommand=DW(uW),Yo.getFlowCommand=DW(B7),Yo.updateFlowCommand=DW(eT));_.b("enable_ai_companion")&&(Yo.updateConversationIdCommand=DW(bW),Yo.formDataDecoratorCommand=DW(gR));
var ITN=Object.assign({},Yo);var ZGR={},fqB=(ZGR.initialized={priority:10,callback:VfA},ZGR);var w5B={},o6B=(w5B.initialized={callback:function(A){var H={},k={};v4I().install((H.document_disposed={callback:function(){_.b("finalize_all_timelines")?ofr():ec();$$8("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.QQA();var d=A.injector.resolve(Az);d.intervalId!==void 0&&(d.intervalId&&_.IE.cancelJob(d.intervalId),d.intervalId=void 0,--d.currentPartitionIndex,d=KUp(d),d>0&&usG({mainAppWeb:_.Il(),survivalSli:{partitionMinute:d,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Hv1(Ye);PY!=null&&
PY.flush();pm&&pm.snapshotAndFlush();d=_.r(LoG.values());for(var W=d.next();!W.done;W=d.next())W.value.snapshotAndFlush()}},H),(k.flush_logs={callback:function(){_.jM()}},k))}},w5B);var $4i={},AfB=($4i.rendered={priority:0,callback:function(){var A=new hXw;A.increment("STARTED");if(_.pZ("LOGGED_IN")&&!_.pZ("IS_DBSC",!1)&&_.pZ("SERVER_VERSION")!=="test"&&_.pZ("SERVER_VERSION")!=="dev"&&!HC8()&&!Ajm()){A.increment("EXECUTING");var H=document.createElement("iframe");H.style.display="none";_.qX(H,2,_.fx("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(H);A.increment("DONE")}}},
$4i);var H5Q={},sER=(H5Q.rendered={callback:function(){G4B().resume()}},H5Q);var kZ_={acknowledgeChannelTouStrikeCommand:m0(Sl),addToPlaylistServiceEndpoint:m0(aA),addToPlaylistEndpoint:m0(aA),addUpcomingEventReminderEndpoint:m0(Hd),browseEndpoint:m0(k41),channelCreationFormEndpoint:m0(Iu),channelCreationServiceEndpoint:m0(Y_),claimLegacyYoutubeChannelEndpoint:m0(id),clearSearchHistoryEndpoint:m0(Vd),clearWatchHistoryEndpoint:m0(En),commerceActionCommand:J8(dG),createBackstagePostEndpoint:m0(qh),createBroadcastCommand:m0(s1),createCommentEndpoint:m0(L7),createCommentReplyEndpoint:m0(bd),
createLiveChatPollEndpoint:m0(kQ),createPlaylistServiceEndpoint:m0(cd),crossAccountChannelTransferEndpoint:m0(ou),deleteLiveChatMessageCommand:m0(dV),deletePlaylistEndpoint:m0(pD),deleteVideoEndpoint:m0(AJ),dismissalEndpoint:m0(C7),feedbackEndpoint:m0(K7),flagEndpoint:m0(tQ),getAccountSwitcherEndpoint:m0(wz),verifyCommand:m0(z7),getAccountsListInnertubeEndpoint:m0(AQ),getCommentsFromInboxCommand:m0(JQ),getDownloadActionCommand:m0(IA),getFlowCommand:J8(Qd),getKidsBlocklistPickerCommand:m0(NS),getNotificationMenuEndpoint:m0(zcM),
getPaymentInstrumentsParamsCommand:m0(ec_),getPaymentsClientTokenCommand:J8(dG),getPdgBuyFlowCommand:m0(CD),getReportFormEndpoint:m0(MS),getSearchInVideoCommand:m0(fD),getAnswerCommand:m0(Zj),getSurveyCommand:m0($Q),getTranscriptEndpoint:m0(sk),getPostVideoPreviewEndpoint:m0(ud),decorateMessageEndpoint:m0(rz),likeEndpoint:m0(Ph),liveChatActionEndpoint:m0(rV),liveChatEndpoint:m0(qS),liveChatItemContextMenuEndpoint:m0(Wd),liveChatPurchaseMessageEndpoint:m0(uO),liveChatReplayEndpoint:m0(zp),manageLiveChatUserEndpoint:m0(er),
metadataUpdateCommand:m0(Tp),moderateLiveChatEndpoint:m0(xQ),modifyChannelNotificationPreferenceEndpoint:m0(vd),notificationOptOutEndpoint:m0(yQ),openSuperStickerBuyFlowCommand:m0(Bd),performCommentActionEndpoint:m0(mX),playlistEditEndpoint:m0(VQ),playlistEditorEndpoint:m0(QQ),recordNotificationInteractionsEndpoint:m0(jr),reelWatchEndpoint:m0(E1),refreshPanelEndpoint:m0(Pd),removeUpcomingEventReminderEndpoint:m0(iO),resolveLocationCommand:m0(RA),revealBusinessEmailCommand:m0(hI),searchEndpoint:m0(_.q93),
sendLiveChatMessageEndpoint:m0(hQ),sendLiveChatVoteEndpoint:m0(O1),setSettingEndpoint:m0(G7),shareEntityServiceEndpoint:J8(DX),sharingProviderDataCommand:m0(oA),showEngagementPanelEndpoint:m0(Gp),showMoreDrawerCommand:m0(Xn),showSheetCommand:m0(Dj),showDialogCommand:m0(Fn),subscribeEndpoint:m0(F6),transcriptSubmitCaptionCorrectionCommand:m0(Hc),undoFeedbackEndpoint:m0(ch),unsubscribeEndpoint:m0(X6),updateBackstagePostEndpoint:m0(el),updateCommentEndpoint:m0(yd),updateCommentReplyEndpoint:m0(vh),updateCommentsSettingsEndpoint:m0(jl),
updateCreatorChannelInnertubeCommand:m0(Ru),updateKidsBlacklistEndpoint:m0(nD),updateEngagementPanelContentCommand:m0(Sr),updatePdgFeatureEnablementCommand:m0(KD),updatedMetadataEndpoint:m0(mZ),validateChannelHandleCommand:m0(T7),updateChannelPageSettingsEndpoint:m0(On),verifyAgeEndpoint:m0(p7),watchEndpoint:J8(sn),whitelistEditEndpoint:m0(ko),ypcCancelRecurrenceEndpoint:m0(Wc),ypcCompleteTransactionEndpoint:m0(rw_),ypcFixInstrumentEndpoint:m0(zQ),ypcGetCartEndpoint:m0(uaI),ypcGetOffersEndpoint:m0(BFL),
ypcHandleTransactionEndpoint:J8(qs),ypcLogWalletAnalyticDataEndpoint:m0(xZ_),ypcOffersEndpoint:m0(i$B),ypcPauseSubscriptionCommand:m0(hce),ypcRedeemCodeEndpoint:m0(O$i),ypcResumeSubscriptionCommand:m0(RcV),ypcUpdateFopEndpoint:m0(zQ)},Pc={},dGL=(Pc.GET_ACCOUNT_MENU=m0($_),Pc.GET_NOTIFICATIONS_MENU=m0(WMR),Pc.GET_NOTIFICATIONS_INBOX=m0(gV),Pc.GET_UNSEEN_NOTIFICATION_COUNT=m0(LD),Pc.GET_USER_MENTION_SUGGESTIONS=m0(Bh),Pc.LOAD_GUIDE=m0(dZ3),Pc.SUBMIT_FEEDBACK=m0(au),Pc),GQ={},WS_=(GQ.CONTINUATION_REQUEST_TYPE_BROWSE=
m0(x_),GQ.CONTINUATION_REQUEST_TYPE_SEARCH=m0(wV),GQ.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=m0(AN),GQ.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=m0(Un),GQ.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=m0(gz),GQ.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=m0(JI),GQ.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=m0(lO),GQ.CONTINUATION_REQUEST_TYPE_GET_PANEL=m0(YQ),GQ),zXG={player:J8(sn),watchNext:m0($C)},qYB={player:J8(sn),reelItemWatch:m0(E1),reelWatchSequence:m0(U1)},rfQ={watchEndpoint:J8(k_)},uZe=
{commandEndpointMap:kZ_,signalEndpointMap:dGL,continuationEndpointMap:WS_,watchEndpointMap:zXG,reelWatchEndpointMap:qYB,streamingEndpointMap:rfQ};var BeB,eXR,xG_;_.i5G=((eXR=(BeB=window).matchMedia)==null?void 0:(xG_=eXR.call(BeB,"(prefers-reduced-motion: reduce)"))==null?void 0:xG_.matches)||!document.startViewTransition;var hXB={},O5L={disableAllTransitions:_.i5G,ignoredErrors:(hXB.DOCUMENT_HIDDEN=!0,hXB.WINDOW_SIZE_CHANGED=!0,hXB.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,hXB),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 RXL=_.XO("\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(",")),mGR=function(A){var H=this;this.viewTransitionCoordinator=
A;this.disableTransitionsForUltraHigh=_.b("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=Tee();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.k6("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.b("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.b("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.b("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.k6("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.b("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.IE.addJob(function(){H.registerRootElement();if(H.isAnyTransitionEnabled){var k=
_.H5("web_page_transition_exit_ms"),d=_.H5("web_page_transition_wait_ms"),W=_.H5("web_page_transition_enter_fast_ms"),z=_.H5("web_page_transition_watch_exit_ms"),u=_.H5("web_page_transition_watch_wait_ms"),B=_.H5("web_page_transition_watch_enter_ms"),h=_.H5("web_page_transition_watch_next_exit_ms"),O=_.H5("web_page_transition_watch_next_wait_ms"),T=_.H5("web_page_transition_watch_next_enter_fast_ms"),m=_.H5("web_page_transition_enter_ms"),J=_.H5("web_page_transition_watch_next_enter_ms");H.enableFasterTransitions&&
H.isUltraHighBucketDevice&&(m=W,J=T);isNaN(k)&&isNaN(d)&&isNaN(m)&&isNaN(z)&&isNaN(u)&&isNaN(B)&&isNaN(h)&&isNaN(O)&&isNaN(J)||!(k=s8I(RXL,k,d,m,z,u,B,h,O,J))||(d=document.createElement("style"),d.textContent=SNI(k),document.head.appendChild(d))}},8)},Tee=function(){var A=_.k8.navigator.deviceMemory;
return A>=8||A===void 0?!0:!1};
mGR.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var A={};this.viewTransitionCoordinator.registerElement(document.documentElement,(A.slide="root-slide",A["lockup-to-watch"]="root-lockup-to-watch",A["learning-journey"]="root-learning-journey",A))}};
_.yTZ=function(A,H){A.isLockupToWatchTransitionEnabled&&A.isLockupThumbnailRegistrationEnabled&&(A.registeredLockupThumbnail?A.lockupThumbnailRegisteredFromWatchEndpoint?_.Pq(new _.Ti("Lockup thumbnail registration order is incorrect.")):_.Pq(new _.Ti("Lockup thumbnail already registered.")):(A.registeredLockupThumbnail=H,_.Jfe(A,H)))};
_.Jfe=function(A,H){var k={};A.viewTransitionCoordinator.registerElement(H,(k["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",k),!0)};
mGR[ox]=[zVi];var EMm={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData: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 l9v=["videoPrimaryInfoRenderer","title"],tfv=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var ghR;ghR=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.b5L=_.c(function(A){A=_.SD(A,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var H=A.data,k=A.playlistData,d=A.expanded,W=A.onExpandClick,z=A.isReadyToResume,u=function(){var T;return!((T=k())==null||!T.contents)},B=function(){var T=k();
return T&&T.totalVideos&&T.currentIndex!==void 0?T.currentIndex+1+" / "+T.totalVideos:""};
A=_.lc(function(){_.Fz(_.wj().resolve(_.L6));return!1});
var h=_.lc(function(){u()&&W&&W()}),O={};
return _.x("ytd-miniplayer-info-bar",{class:_.ER("ytdMiniplayerInfoBarHost",(O.ytdMiniplayerInfoBarHasPlaylistData=u,O)),"on:click":h},_.x("div",{class:"ytdMiniplayerInfoBarContent"},_.x("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":A},_.x(_.j$,{text:function(){var T=H();var m=k();if(m==null?0:m.contents){var J;T=(J=_.ZKV(m))==null?void 0:J.title}else T=T==null?void 0:T.miniplayerTitle;return Mfv(T)},
noEndpoints:!0,ellipsisTruncate:!0})),_.x("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.x(_.R,{cond:z,then:function(){return _.x(oSA,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:ghR})}}),_.x("h1",null,_.x(_.j$,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var T=H();var m=k();T=z()?{simpleText:_.$r("CONTINUE_WATCHING",void 0,"Continue watching")}:(m==null?0:m.contents)?m.titleText:T==null?void 0:T.miniplayerSubtitle;return Mfv(T)},
noEndpoints:!0,ellipsisTruncate:!0})),_.x(_.R,{cond:function(){return!!B()&&!z()},
then:function(){return _.x("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.x("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.x("span",null,B))}}))),_.x(_.R,{cond:u,
then:function(){return _.x("div",{class:"ytdMiniplayerInfoBarExpand"},_.x(_.E7,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(T){W&&(W(),T.stopPropagation())}}},
iconName:function(){return d()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ig");var LS3;LS3=_.c(function(A){return _.x("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.x(_.E7,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:A.onTap}},
iconName:"yt-icons:close"}))},"Jg");
_.vhe=_.c(function(A){A=_.SD(A,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var H=A.size,k=A.playabilityStatus,d=A.isDisabled,W=A.isPictureInPicture,z=_.GP("div");A=_.r(_.RV(void 0,void 0,"w4RAU"));var u=A.next().value,B=A.next().value;A=_.oy(_.EF);var h=!1,O=function(){return H().height<=0};
_.CA(function(){var g=H(),v=O(),y=u();y&&!v&&y.setInternalSize(g.width,g.height)},"BHFc2b");
_.Sp(function(){var g,v,y;return _.e(function(X){if(X.nextAddress==1){g=_.wj().resolve(_.L6);v=g.getPlayerElement();if(!g.isMiniplayerActive()||!v||!z.value)return X.return();v.appendTo(z.value);return X.yield(v.getPlayerPromise(),2)}y=X.yieldResult;W()||y.setSizeStyle(!1,!0);B(y);_.EN(X)})});
_.aV(function(){T()});
_.CA(function(){var g=u();if(g)if(d()){var v=g.getPlayerState();(h=v===-1||v===1||v===3)&&g.pauseVideo()}else T()},"Invykd");
var T=function(){if(h){h=!1;var g;(g=u())==null||g.playVideo()}},m=_.lc(function(){_.Fz(_.wj().resolve(_.L6))}),J={};
return _.x("ytd-miniplayer-player-container",{class:_.ER("ytdMiniplayerPlayerContainerHost",(J.ytdMiniplayerPlayerContainerHidden=O,J.ytdMiniplayerPlayerContainerHostShortsPip=A,J)),style:_.Mt({width:function(){return H().width+"px"},
height:function(){return H().height+"px"}})},_.x("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:z}),_.x(_.R,{cond:function(){return!!k()&&!_.x$V(k())},
then:function(){return _.x(FJB,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var g;return((g=k())==null?void 0:g.errorScreen)||null},
status:function(){var g;return((g=k())==null?void 0:g.status)||null}})}}),_.x(_.R,{cond:d,
then:function(){return _.x("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":m},_.x(LS3,{onTap:function(){_.wj().resolve(_.L6).close()}}))}}))},"Ng");var kfw;var zmw=null;var jEL=_.c(function(A){var H=A.progressState;var k=A.multiMarkersPlayerBarRenderer;var d=A.progressBarWidth;var W=function(){return BIi(k())},z=function(){return ilk(H())},u=function(){return d()*(H().playedTime/H().videoDuration)};
return _.x("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.x(_.Ix,{each:W},function(B,h){return _.x(yfL,{modifiedProps:z,chapters:W,index:h,playedProgressWidth:u,backgroundGradientPosition:function(){var O=z(),T=W(),m=h(),J=u();return(O.playedTime-Jd(_.L(T[m],mW)))/O.playedTime*J}})}))},"Og"),yfL=_.c(function(A){var H=A.modifiedProps;
var k=A.chapters;var d=A.index;var W=A.playedProgressWidth;var z=A.backgroundGradientPosition;A={};A=_.ER("ytChapteredProgressBarChapteredPlayerBarChapter",(A.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return u().isScrubbing},A.ytChapteredProgressBarHoveredMacroMarker=function(){return u().scrubberHovering},A.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return u().videoPosition==="seen"},A));
var u=function(){return hmG(H(),k(),d())},B=function(){var h=H();
var O=k(),T=d();if(hmG(h,O,T).videoPosition!=="active")h=0;else{var m=Jd(_.L(O[T],mW));h=(h.playedTime-m)/((Jd(_.L(O[T+1],mW))||h.videoDuration)-m)}return h};
return _.x("div",{class:A,style:_.Mt({width:function(){var h=H(),O=k(),T=d(),m=_.L(O[T],mW);O=_.L(O[T+1],mW);return(O?Jd(O)-Jd(m):h.videoDuration-Jd(m))/h.videoDuration*100+"%"},
"background-color":function(){a:{var h=u();switch(h.videoPosition){case "pending":h=h.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":h=h.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:h=""}}return h},
"background-size":function(){return(Olw(u())?W():"")+"px"},
"background-position-x":function(){return(Olw(u())?z():"")+"px"}})},_.x("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var h=H(),O=k(),T=d();if(hmG(h,O,T).videoPosition==="seen")var m=0;else m=Jd(_.L(O[T],mW)),O=Jd(_.L(O[T+1],mW))||h.videoDuration,h=h.videoDuration*h.percentLoaded,m=O<=h?1:m>=h?0:(h-m)/(O-m);return"width: "+m*100+"%"}}),_.x("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Mt({width:function(){return B()*100+"%"},
"background-size":function(){return(Olw(u(),B())?W():"")+"px"},
"background-position-x":function(){return(Olw(u(),B())?z():"")+"px"}})}))},"Pg");var I$B=function(A,H){H=H===void 0?zeJ:H;var k,d=[],W,z=!1;return function(){var u=_.o7.apply(0,arguments);if(z&&k===this&&H(u,d))return W;W=A.apply(this,u);z=!0;k=this;d=u;return W}}(function(A){var H=A.heatMarkers,k=A.minHeightDp===void 0?0:A.minHeightDp,d=A.maxHeightDp===void 0?60:A.maxHeightDp;
var W=W===void 0?!1:W;var z=1E3/H.length;A=[];A.push({x:0,y:100});for(var u=0;u<H.length;u++){var B=void 0,h=((B=_.L(H[u],m6w))==null?void 0:B.heatMarkerIntensityScoreNormalized)||0;B=(u+.5)*z;h=100-_.Py(h*100,k/321*100,d/321*100);u!==0||W||A.push({x:0,y:h});A.push({x:B,y:h});u===H.length-1&&A.push({x:1E3,y:h})}A.push({x:1E3,y:100});H="";for(k=0;k<A.length;k++)W=A[k],k===0?W="M "+W.x.toFixed(1)+","+W.y.toFixed(1):(d=BgI(A[k-1],A[k-2],W),z=BgI(W,A[k-1],A[k+1],!0),W=" C "+(d.x.toFixed(1)+","+d.y.toFixed(1)+
" "+z.x.toFixed(1)+","+z.y.toFixed(1)+" "+W.x.toFixed(1)+","+W.y.toFixed(1))),H+=W;return H});var YYL=_.c(function(A){var H=A.progressBarProps;var k=A.config;var d={};A=_.ER("ytHeatSeekerHost",(d.ytHeatSeekerHighContrast=A.highContrast,d));var W=function(){return oMX(k().chapterData)};
return _.x("yt-progress-bar-heatseeker",{class:A,style:function(){var z;return"height: 320px; display: "+(H().isDragging&&((z=W())==null?0:z.heatMarkers)?"block":"none")}},_.x(_.R,{cond:W,
then:function(z){return _.x(_.R,{cond:function(){return z().heatMarkers},
then:function(){return _.x("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.x("path",{d:function(){return I$B(z())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Qg");var PZG=_.c(function(A){var H=A.progressBarProps;var k=A.config;A={};A=_.ER("ytProgressBarLineProgressBarLine",(A.ytProgressBarLineProgressBarLineRounded=function(){return k().rounded},A.ytProgressBarLineProgressBarLineBottomInset=function(){return k().position===2},A));
return _.x("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.x("div",{class:A},_.x("div",{class:"ytProgressBarLineProgressBarBackground"}),_.x("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+H().percentLoaded*100+"%"}}),_.x("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var d=H();return"width: "+(d.videoDuration?_.Py(d.hoveredTime/d.videoDuration,0,1):0)*100+"%"}}),_.x("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Zul(H())*100+"%"}})))},"Rg");
PZG.idomCompat=!0;var GZQ=_.c(function(A){var H=A.progressBarProps;var k=A.playheadData;var d=A.interpolateDotPosition;var W=A.hidePlayhead;A={};var z=_.ER("ytProgressBarPlayheadProgressBarPlayheadDot",(A.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return H().isDragging},A.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!H().isDragging&&W()},A));
return _.x("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Mt({"margin-left":function(){return f9A(H())*100+"%"},
transform:function(){return"translateX(-"+(d()?f9A(H())*12:6)+"px)"}})},_.x(_.R,{cond:function(){var u;
return(u=_.DS(k)())==null?void 0:u.playheadImage},
then:function(u){var B={};return _.x("div",{class:_.ER("ytProgressBarPlayheadProgressBarPlayheadCustom",(B.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return H().isDragging},B.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!H().isDragging&&W()},B)),
style:_.Mt({"transform-origin":function(){return(d()?f9A(H())*20:10)+"px center"}})},_.x(_.GA,{data:u,
alt:"","aria-hidden":"true"}))},
else:function(){return _.x("div",{class:z,style:_.Mt({"transform-origin":function(){return(d()?f9A(H())*12:6)+"px center"}})})}}))},"Sg");
GZQ.idomCompat=!0;var Xz=function(A,H,k,d,W,z){this.getProgressBarRect=A;this.updateProgressBarRect=H;this.getFilmstripYPosition=k;this.setFineScrubbingDraggedTime=d;this.updateFilmStripDraggedYDistance=W;this.resetFilmStripYOffset=z;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Nt(this.onThrottledSeek,100,this)},FS1=function(A,H,k){return function(d){A.handleClick(d,H(),k())}},SYB=function(A,H){return function(k){XLB(A,
k,DGB(k),H())}},CZG=function(A,H){return function(k){XLB(A,k,{x:k.clientX,
y:k.clientY},H())}},a$i=function(A,H,k){return function(d){var W=H(),z=k();
KS3(A,d,DGB(d),W,z,!0);if(z.onTouchMove)z.onTouchMove(W)}},pL_=function(A,H,k){return function(d){cf_(A,d,H(),k())}},QEB=function(A,H){return function(){A.handleMouseLeave(H())}},EhM=function(A,H,k){return function(){var d=H(),W=k();
VFB(A,d,W);if(W.onTouchEnd)W.onTouchEnd(d)}},UG_=function(A,H,k){return function(){var d=H(),W=k();
VFB(A,d,W);if(W.onTouchEnd)W.onTouchEnd(d)}},l$I=function(A,H,k){return function(){VFB(A,H(),k())}},tFQ=function(A){return function(H){if(H.keyCode===39||H.keyCode===38){var k,d;
(k=A())==null||(d=k.playerApi)==null||d.seekBy(5,void 0,void 0,72)}else if(H.keyCode===37||H.keyCode===40){var W,z;(W=A())==null||(z=W.playerApi)==null||z.seekBy(-5,void 0,void 0,71)}}},Ne1=function(A,H,k){return function(d){!k().disableScrubbing&&A.startPosition&&cf_(A,d,H(),k())}},MFQ=function(A,H,k){return function(){if(!k().disableScrubbing)if(A.startPosition){var d=H(),W=k();
VFB(A,H(),k());if(W.onTouchEnd)W.onTouchEnd(d)}else H().setState({isDragging:!1})}},DGB=function(A){A=A.touches[0];
return{x:A.clientX,y:A.clientY}},cf_=function(A,H,k,d){if(H.buttons!==1){if(H.movementX||H.movementY)H.preventDefault(),H.stopPropagation(),A=nhI(A,k,H.clientX),k.setState({isHovering:!0,
hoveredTime:A*k.videoDuration})}else Z5_(k),KS3(A,H,{x:H.clientX,y:H.clientY},k,d,!1)};
Xz.prototype.handleMouseLeave=function(A){Z5_(A)};
var Z5_=function(A){A.isHovering&&A.setState({isHovering:!1,hoveredTime:0})},XLB=function(A,H,k,d){A.startPosition||(A.startPosition=k,A.updateProgressBarRect(),A.controlsWereVisibleBeforeDragging=d.controlsVisible,H.stopPropagation(),_.b("medium_progress_bar_modification")||H.preventDefault())},KS3=function(A,H,k,d,W,z){if(A.startPosition)if(z&&W.isInlinePlayback&&A.startPosition&&!A.hasDraggedTheMinimumDistance&&Math.abs(k.y-A.startPosition.y)>Math.abs(k.x-A.startPosition.x))VFB(A,d,W);
else if(H.preventDefault(),H.stopPropagation(),d.videoDuration&&(A.startPosition&&!A.hasDraggedTheMinimumDistance&&(A.hasDraggedTheMinimumDistance=Math.abs(k.x-A.startPosition.x)>=1),W.enableFineScrubbing&&(A.startPosition&&(A.isDraggedForFineScrubbing=-(k.y-A.startPosition.y)>=60),!A.startPosition||k.y>=A.startPosition.y||(d.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Rmi(d.draggedTime,d,W.chapterData)}),A.setFineScrubbingDraggedTime(d.draggedTime),A.updateFilmStripDraggedYDistance(A.startPosition.y,
k.y,d))),A.hasDraggedTheMinimumDistance)){H=nhI(A,d,k.x);if(A.isDraggedForFineScrubbing){var u;(u=d.playerApi)==null||u.pauseVideo();d.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:d.draggedTime,filmStripXDistance:Rmi(H*d.videoDuration,d,W.chapterData)})}W.enableFineScrubbing&&(!W.enableFineScrubbing||A.getFilmstripYPosition(d)<68)||d.setState({draggedTime:H*d.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:A.controlsWereVisibleBeforeDragging});var B;(B=
W.cancelAutohideControlsFn)==null||B.call(W)}},VFB=function(A,H,k){var d=k.enableFineScrubbing&&H.fineScrubbingActiveState!=="off";
if(H.isDragging||d){d={isDragging:!1,playedTime:H.draggedTime,controlsVisible:A.controlsWereVisibleBeforeDragging};k.enableFineScrubbing&&H.fineScrubbingActiveState!=="on"&&(A.resetFilmStripYOffset(),d.fineScrubbingActiveState="off");var W=W===void 0?zmw:W;var z=_.hx(0);if(z&&W){var u=Math.round(H.playedTime*1E3),B=Math.round(H.draggedTime*1E3);u>2147483647||B>2147483647||_.GH(z,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(u),endMediaTimeMs:String(B),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}H.setState(d);
A.seekThrottle.fire(H.draggedTime,H,7);_.b("mweb_new_progress_bar_play_on_seek")&&A.resumeVideo(H);k.unmuteOnSeek&&(k=H.playerApi,H.volumeMuted&&(k==null||k.unMute()))}else H.setState({controlsVisible:!H.controlsVisible}),(z=k.triggerAutohideControlsAfterDelayFn)==null||z.call(k);A.startPosition=null;A.hasDraggedTheMinimumDistance=!1;A.isDraggedForFineScrubbing=!1;A.controlsWereVisibleBeforeDragging=!1};
Xz.prototype.handleClick=function(A,H,k){this.updateProgressBarRect();A.stopPropagation();A=nhI(this,H,A.clientX)*H.videoDuration;H.setState({playedTime:A});if(H.playerState!==2){var d;(d=k.triggerAutohideControlsAfterDelayFn)==null||d.call(k)}this.seekThrottle.fire(A,H,7)};
var nhI=function(A,H,k){A=A.getProgressBarRect(H);return _.Py(0,(k-A.left)/A.width,1)};
Xz.prototype.resumeVideo=function(A){if(A.draggedTime<A.videoDuration){var H;(H=A.playerApi)==null||H.playVideo()}};
Xz.prototype.onThrottledSeek=function(A,H,k){if(H=H.playerApi){var d;if((d=H.getVideoData())==null?0:d.isLive)d=this.getProgressState(H),A+=(d==null?void 0:d.seekableStart)||0;H.seekTo(A,void 0,void 0,void 0,k)}};
Xz.prototype.getProgressState=function(A){var H=A==null?void 0:A.getPresentingPlayerType();return A==null?void 0:A.getProgressState(H)};var ohe,wLI,$G3,HTR,f$L,s3L,kge,dVB,WaB;ohe=_.c(function(A){var H=A.progressBarProps;var k=A.config;var d=A.progressBarWidthPx;var W=A.chapterData;var z=blj(H,function(){return k().isShortsPage}),u=function(){return!H().isHovering&&!k().isShortsPage};
A={};var B=_.ER("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(A.ytPlayerStoryboardHostMwebShorts=function(){return k().isShortsPage&&!1},A));
return _.x("yt-player-storyboard",null,_.x(_.R,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.x(_.R,{cond:z,then:function(h){return _.x(_.R,{cond:u,then:function(){return _.x("div",{class:B,"aria-hidden":"true"},_.x(f$L,{props:H,config:k,isBigboard:!0,chapterData:W}))},
else:function(){return _.x(wLI,{props:H,frame:h,config:k,progressBarWidthPx:d,chapterData:W})}})}})}}))},"Tg");
_.AbB=_.c(function(A){var H=A.progressBarProps;var k=blj(H,A.isShortsPage);return _.x("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.x(_.R,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.x(_.R,{cond:k,then:function(d){return _.x($G3,{frame:d,props:H,isBigboard:!0})}})}}))},"Ug");
wLI=_.c(function(A){var H=A.props;var k=A.frame;var d=A.config;var W=A.progressBarWidthPx;A=A.chapterData;var z={};z=_.ER("ytPlayerStoryboardHost",(z.ytPlayerStoryboardHostMwebShorts=function(){return d().isShortsPage&&!1},z.ytPlayerStoryboardHostInlinePlayer=function(){return d().isInlinePlayer},z.ytPlayerStoryboardHostFadeIn=function(){return d().useFadeInAnimation},z));
return _.x("div",{class:z,"aria-hidden":"true",style:function(){var u=H(),B=TIA(k()),h=W();u=mvi(u)/u.videoDuration;var O=h*u,T=B/2+6;B=h-(B/2+6);return"left: "+(O<=T?T/h*100:O>=B?B/h*100:u*100)+"%"}},_.x(_.R,{cond:function(){var u=H();
return!(d().isShortsPage&&u.videoDuration<15)},
then:function(){return _.x($G3,{frame:k,props:H,isBigboard:!1})}}),_.x(f$L,{props:H,
config:d,isBigboard:!1,chapterData:A}))},"Vg");
$G3=_.c(function(A){var H=A.frame;var k=A.props;var d=A.isBigboard;var W=function(){var B,h;return(h=(B=k().playerApi)==null?void 0:B.getVideoContentRect())!=null?h:{width:0,height:0}},z=function(){return TIA(H())},u=function(){var B=H();
return B?B.height/B.rows:0};
A={};A=_.ER((A.ytPlayerStoryboardBigboardImageWrapper=d,A.ytPlayerStoryboardStoryboardImageWrapper=function(){return!d()},A));
return _.x("div",{class:A,style:function(){return"width: "+(d()?W().width:z())+"px; height: "+(d()?W().height:u())+"px;"}},_.x(HTR,{frame:H,
storyboardWidth:z,storyboardHeight:u,storyboardScale:function(){return(d()?W().width:z())/z()}}))},"Wg");
HTR=_.c(function(A){var H=A.frame;var k=A.storyboardWidth;var d=A.storyboardHeight;var W=A.storyboardScale;var z=function(){var u=H().row,B=H().column,h=k(),O=d(),T=W();return{left:-B*h*T,top:-u*O*T}};
return _.x("img",{src:function(){return H().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+z().left+"px; top: "+z().top+"px; width: "+H().width*W()+"px; height: "+H().height*W()+"px;"}})},"Xg");
f$L=_.c(function(A){var H=A.props;var k=A.config;var d=A.isBigboard;var W=A.chapterData;A={};A=_.ER("ytPlayerStoryboardMetadata",(A.ytPlayerStoryboardMetadataBigboard=d,A));return _.x("div",{class:A},_.x(_.R,{cond:d,then:function(){return _.x(_.sD,null,_.x(s3L,{props:H,config:k}),_.x(_.R,{cond:function(){a:{var z=H();var u=k(),B=W(),h;if((u==null?0:u.activeChapter)&&((h=_.L(u==null?void 0:u.activeChapter,mW))==null?0:h.title))z=!0;else{u=_.r($yr(B));for(u=u.next();!u.done;u=u.next()){z=(u=_.L(u.value,
g0A))&&JAw(z,u);break a}z=!1}}return z},
then:function(){return _.x(kge,{props:H,config:k,isBigboard:!0,chapterData:W})}}))},
else:function(){return _.x(_.sD,null,_.x(kge,{props:H,config:k,isBigboard:!0,chapterData:W}),_.x(s3L,{props:H,config:k}))}}))},"Yg");
s3L=_.c(function(A){var H=A.props;var k=A.config;A={};A=_.ER("ytPlayerStoryboardTimestamp",(A.ytPlayerStoryboardTimestampShorts=function(){return k().isShortsPage},A.ytPlayerStoryboardTimestampIsHovering=function(){return H().isHovering||k().isShortsPage&&!0},A));
return _.x("div",{class:A},_.x(_.sD,null,function(){return _.g8A(mvi(H()))}))},"Zg");
kge=_.c(function(A){var H=A.props;var k=A.config;var d=A.isBigboard;var W=A.chapterData;A={};d=_.ER("ytPlayerStoryboardTitle",(A.ytPlayerStoryboardTitleBigboard=d,A));return _.x("div",{class:d},_.x(_.R,{cond:function(){return!k().isShortsPage},
then:function(){return _.x(dVB,{props:H,activeChapter:function(){return k().activeChapter},
chapterData:W})}}))},"$g");
dVB=_.c(function(A){var H=A.props;var k=A.activeChapter;var d=A.chapterData;return _.x(_.sD,null,_.x(_.Ix,{each:function(){return $yr(d())},
keyBy:"INDEX"},function(W){return _.x(_.sD,null,_.x(_.R,{cond:function(){return _.L(W(),g0A)&&JAw(H(),_.L(W(),g0A))},
then:function(){return _.x(WaB,{timedMarker:function(){return _.L(W(),g0A)}})}}))}),_.x(_.R,{cond:function(){var W;
return k()&&((W=_.L(k(),mW))==null?void 0:W.title)},
then:function(W){return _.x(_.j$,{text:W,noPreWrap:!0})}}))},"ah");
WaB=_.c(function(A){var H=A.timedMarker;return _.x(_.sD,null,_.x("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.x(_.n3,{icon:function(){return H().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.x(_.j$,{text:function(){return H().label},
noPreWrap:!0}))},"bh");_.zUG=_.c(function(A){var H=A.progressBarProps;var k=A.playheadData;var d=A.config;A=_.GP("yt-progress-bar");var W=_.GP("div"),z=_.GP("div"),u=_.r(_.RV({width:0,left:0},void 0,"XjZjde")),B=u.next().value,h=u.next().value,O=function(){z.value&&h(z.value.getBoundingClientRect())},T=function(){B().width<=0&&O();
return B()};
_.ll("resize",O);var m=new Xz(T,function(){},function(){return 0},function(){},function(){},function(){}),J=function(){return H()};
u=_.r(_.RV(!1,void 0,"uZlOJc"));var g=u.next().value,v=u.next().value;u=_.lc(function(){v(!0);d().position===2?setTimeout(function(){O()},100):O()});
var y=_.lc(function(){v(!1);QEB(m,J)()}),X=_.lc(function(pl){(d().doSeekOnClick||_.b("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&pl instanceof PointerEvent&&pl.pointerType==="mouse")&&FS1(m,J,d)(pl);
return!1}),D=_.lc(function(pl){SYB(m,J)(pl);
return!1}),K=_.lc(function(pl){CZG(m,J)(pl);
return!1}),N=_.lc(function(pl){a$i(m,J,d)(pl);
return!1}),U=_.lc(function(pl){pL_(m,J,d)(pl);
return!1}),p=_.lc(function(){EhM(m,J,d)();
return!1}),M=_.lc(function(){UG_(m,J,d)();
return!1}),Z=_.lc(function(){l$I(m,J,d)();
return!1}),WV=_.lc(function(pl){tFQ(J)(pl);
return!1});
_.ll("mousemove",Ne1(m,J,d));_.ll("mouseup",MFQ(m,J,d));_.CZ(function(){qCw(W.value);v(!1);O();MFQ(m,J,d)()});
var hA={};hA=_.ER("ytPlayerProgressBarHost",function(){return d().className},(hA.ytPlayerProgressBarHostReadOnly=function(){return d().disableScrubbing},hA.ytPlayerProgressBarHostHidden=function(){return d().hideProgressBar&&!g()},hA.ytPlayerProgressBarHostLowerPlayer=function(){return d().position===0},hA.ytPlayerProgressBarHostBottomEdge=function(){return d().position===1},hA.ytPlayerProgressBarHostBottomInset=function(){return d().position===2},hA.ytPlayerProgressBarHostCustom=function(){return d().position===
3},hA));
var qv={},eN=_.ER("ytPlayerProgressBarBackground",(qv.ytPlayerProgressBarBackgroundHide=function(){return d().position===2&&!g()&&!H().isDragging},qv));
qv={};qv=_.ER("ytPlayerProgressBarDragContainer",(qv.ytPlayerProgressBarDragContainerBottomEdge=function(){return d().position===1},qv));
var mr={};mr=_.ER("ytPlayerProgressBarProgressBar",(mr.ytPlayerProgressBarProgressBarInset=function(){return d().position===2},mr.ytPlayerProgressBarProgressBarInsetMinimized=function(){return d().position===2&&!g()&&!H().isDragging},mr));
var Cl=function(){return Math.floor(Zul(H())*100)};
return _.x("yt-progress-bar",{el:A,class:hA},_.x(_.R,{cond:function(){return d().position===2},
then:function(){return _.x("div",{class:eN})}}),_.x("div",{el:W,
"on:click":X,"on:touchstart":D,"on:touchmove":N,"on:mouseenter":u,"on:mousedown":K,"on:mouseleave":y,"on:mousemove":U,"on:mouseup":M,"on:touchend":p,"on:touchcancel":Z,"on:keydown":WV,class:qv,role:"slider","aria-valuenow":Cl,"aria-valuetext":function(){return Cl()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return H().videoDuration},
draggable:_.b("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.$r("SEEK_SLIDER")},_.x("div",{el:z,class:mr},_.x(YYL,{progressBarProps:H,config:d,highContrast:function(){return!!d().isInlinePlayback}}),_.x(_.R,{cond:function(){return d().chapterData&&AAG(d().chapterData)},
then:function(){return _.x(jEL,{progressState:H,multiMarkersPlayerBarRenderer:function(){return d().chapterData},
progressBarWidth:function(){return B().width}})},
else:function(){return _.x(PZG,{progressBarProps:H,config:d})}}),_.x(GZQ,{progressBarProps:H,
playheadData:k,interpolateDotPosition:function(){return d().position!==2},
hidePlayhead:function(){return d().playheadDotBehavior===1&&!g()}}))),_.x(ohe,{progressBarProps:H,
config:function(){return{activeChapter:xvA(H(),d().chapterData),getProgressBarWidthPx:function(){return T().width},
isShortsPage:!!d().isShortsPage,isInlinePlayer:!!d().isInlinePlayback,useFadeInAnimation:!!d().isInlinePlayback}},
progressBarWidthPx:function(){return B().width},
chapterData:function(){return d().chapterData}}))},"ch");
_.zUG.idomCompat=!0;Object.assign({},_.Hlp(),{setState:function(){},
domMeasurements:{},appApi:_.nMC(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var qv_;
_.rbi=_.c(function(){var A,H=(A=_.gK(Lr1().playerApi))!=null?A:void 0;A=_.r(_.RV(!1,void 0,"Z9NQ1b"));var k=A.next().value,d=A.next().value;A=_.r(_.RV(!1,void 0,"HoVJXe"));var W=A.next().value,z=A.next().value;A=_.r(_.RV(!1,void 0,"DWCY3"));var u=A.next().value,B=A.next().value;A=_.r(_.RV(!1,void 0,"g4C2Zd"));var h=A.next().value,O=A.next().value;A=_.r(_.RV(0,void 0,"lmVfFb"));var T=A.next().value,m=A.next().value;A=_.r(_.RV(0,void 0,"mFLbzb"));var J=A.next().value,g=A.next().value;A=_.r(_.RV(!1,void 0,
"hQN4Wb"));var v=A.next().value,y=A.next().value;A=_.r(_.RV(0,void 0,"WWU0fb"));var X=A.next().value,D=A.next().value;A=_.r(_.RV(0,void 0,"MJ7LMd"));var K=A.next().value,N=A.next().value;A=_.r(_.RV("",void 0,"hnomOe"));var U=A.next().value,p=A.next().value;A=_.r(_.RV(-1,void 0,"ARe3pf"));var M=A.next().value,Z=A.next().value,WV=_.be(function(){var hA={controlsVisible:k(),isOverlayHidden:W(),shouldWaitToHideControls:u(),isDragging:h(),isHovering:v(),videoDuration:X(),playedTime:K(),videoId:U(),draggedTime:J(),
hoveredTime:T(),playerState:M()};return Object.assign({},_.Hlp(),hA,{domMeasurements:{},setState:function(qv){qv.controlsVisible!==void 0&&d(qv.controlsVisible);qv.isOverlayHidden!==void 0&&z(qv.isOverlayHidden);qv.shouldWaitToHideControls!==void 0&&B(qv.shouldWaitToHideControls);qv.isDragging!==void 0&&O(qv.isDragging);qv.isHovering!==void 0&&y(qv.isHovering);qv.draggedTime!==void 0&&g(qv.draggedTime);qv.hoveredTime!==void 0&&m(qv.hoveredTime);qv.videoDuration!==void 0&&D(qv.videoDuration);qv.playedTime!==
void 0&&N(qv.playedTime);qv.videoId!==void 0&&p(qv.videoId);qv.playerState!==void 0&&Z(qv.playerState)},
appApi:_.nMC(),playerApi:H})},void 0,"Au4PIf");
_.Sp(function(){H==null||H.addEventListener("onVideoProgress",WrA(WV));H==null||H.addEventListener("onVideoDataChange",dvQ(WV));H==null||H.addEventListener("onStateChange",sbw(WV))});
_.aV(function(){if(H==null?0:H.isReady())H==null||H.removeEventListener("onVideoProgress",WrA(WV)),H==null||H.removeEventListener("onVideoDataChange",dvQ(WV)),H==null||H.removeEventListener("onStateChange",sbw(WV))});
return _.x("desktop-shorts-player-controls",null,_.x(qv_,{playerControlsProps:WV}))},"eh");
qv_=_.c(function(A){var H=A.playerControlsProps;return _.x("div",{class:"desktopShortsPlayerControlsHost"},_.x(_.zUG,{progressBarProps:H,config:function(){return{isShortsPage:!0,hideProgressBar:H().videoDuration<30&&H().playerState!==2&&!H().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"fh");_.uWL=_.c(function(A){function H(qv){qv!==0||m()?qv>50&&(m()||!g())?(J(!1),v(!0)):qv<=50&&(m()||g())&&(J(!1),v(!1)):J(!0)}
function k(qv,eN){var mr,Cl;return _.e(function(pl){if(pl.nextAddress==1)return _.b("player_controls_volume_controls_use_player_props")?(mr=A.playerApi(),pl.jumpTo(2)):pl.yield(_.NN(),3);pl.nextAddress!=2&&(mr=pl.yieldResult);Cl=mr;eN&&Cl?(Cl.unMute(!0),qv&&(bA(qv,Cl.getVolume()),X(Cl.getVolume()))):Cl&&(Cl.mute(!0),qv&&bA(qv,0));_.EN(pl)})}
function d(qv){var eN,mr,Cl;return _.e(function(pl){if(pl.nextAddress==1)return _.b("player_controls_volume_controls_use_player_props")?(eN=A.playerApi(),pl.jumpTo(2)):pl.yield(_.NN(),3);pl.nextAddress!=2&&(eN=pl.yieldResult);mr=eN;Cl=50;mr&&(Cl=mr.getVolume(),mr.isMuted()?bA(qv,0):bA(qv,Cl));X(Cl);_.EN(pl)})}
var W=_.GP("volume-controls"),z=_.GP("button"),u=_.FQ("input"),B=_.r(_.RV(!1,void 0,"fLGgJf")),h=B.next().value,O=B.next().value,T=_.r(_.RV(!1,void 0,"Xt2eee"));B=T.next().value;T=T.next().value;var m=B,J=T;T=_.r(_.RV(!0,void 0,"elP6bd"));B=T.next().value;T=T.next().value;var g=B,v=T;B=_.r(_.RV(50,void 0,"A8a4Tb"));var y=B.next().value,X=B.next().value;B=_.be(function(){var qv=m();return _.b("web_shorts_keyboard_enable_mute_shortcut")?qv?_.$r("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.$r("PLAYER_LABEL_MUTE",
void 0,"Mute (m)"):qv?_.$r("UNMUTE_VOLUME",void 0,"Unmute"):_.$r("MUTE_VOLUME",void 0,"Mute")},void 0,"hDaVF");
T=_.be(function(){var qv=m(),eN=g();return{sources:[{clientResource:{imageName:qv?"VOLUME_OFF_FILLED":eN?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lXC46");
var D=_.be(function(){var qv=y();return m()?qv+"% volume muted":qv+"% volume"},void 0,"eTE2A"),K=_.be(function(){return A.orientation()==="vertical_down"},void 0,"crhgzb");
_.CZ(function(){function qv(){O(!0)}
function eN(){O(!1)}
u&&u.value&&(u.value.addEventListener("focus",qv),u.value.addEventListener("focusout",eN),d(u.value).then(function(){H(Number(yA1(u.value)))}));
z&&z.value&&(z.value.addEventListener("focus",qv),z.value.addEventListener("focusout",eN));_.aV(function(){var mr;u==null||(mr=u.value)==null||mr.removeEventListener("focus",qv);var Cl;u==null||(Cl=u.value)==null||Cl.removeEventListener("focusout",eN);var pl;z==null||(pl=z.value)==null||pl.removeEventListener("focus",qv);var UC;z==null||(UC=z.value)==null||UC.removeEventListener("focusout",eN)})});
var N=function(qv){qv=qv.muted?0:qv.volume;X(qv);H(qv);u.value&&bA(u.value,qv)};
_.CA(function(){if(_.b("player_controls_volume_controls_use_player_props")){var qv=A.playerApi();qv&&(qv.addEventListener("onVolumeChange",N),_.aV(function(){qv.removeEventListener("onVolumeChange",N)}))}},"hxbOCd");
var U=_.lc(function(){if(u&&u.value){var qv=Number(yA1(u.value));v8j(qv,_.b("player_controls_volume_controls_use_player_props")?A.playerApi():void 0);X(qv);u.value.style.setProperty("--gradient-percent",qv+"%");H(qv)}return!1}),p=_.lc(function(){O(!0)}),M=_.lc(function(){u&&u.value&&(k(u.value,m()),J(!m()));
return!1}),Z={},WV={},hA={};
return _.x("volume-controls",{"on:pointerleave":_.lc(function(){O(!1)}),
class:_.ER("ytdVolumeControlsHost",(Z.ytdVolumeControlsHostVertical=K,Z.ytdVolumeControlsHostExpanded=function(){return h()},Z)),
el:W},_.x(_.R,{cond:function(){return!K()},
then:function(){var qv={};return _.x("div",{class:_.ER("ytdVolumeControlsBackgroundScrim",(qv.ytdVolumeControlsBackgroundScrimExpanded=h,qv))})}}),_.x("div",{class:_.ER((WV.ytdVolumeControlsMuteIconButtonContainer=K,WV))},_.x("button",{"aria-label":B,
title:B,el:z,"on:click":M,"on:pointerenter":p,class:"ytdVolumeControlsMuteIconButton"},T?_.x(_.GA,{data:T,alt:B,className:"ytdVolumeControlsMuteIcon"}):null)),_.x("div",{class:_.ER("ytdVolumeControlsSliderContainer",(hA.ytdVolumeControlsSliderContainerExpanded=h,hA.ytdVolumeControlsSliderContainerVertical=K,hA.ytdVolumeControlsSliderContainerVerticalDown=K,hA.ytdVolumeControlsSliderContainerVerticalExpanded=function(){return h()&&K()},hA))},_.x("input",{"aria-label":_.$r("VOLUME"),
title:_.$r("VOLUME"),el:u,"on:input":U,type:"range",class:"ytdVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":y,"aria-valuetext":D,"aria-valuemin":0,"aria-valuemax":100})))},"hh");var B__=_.c(function(A){var H=A.data;var k=A.overlayDensity;A={};return _.x("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.x(_.HG,{data:function(){return H().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(d){var W=d.data;
return _.x(_.TU,{data:function(){return(k==null?void 0:k())===1?Object.assign({},W(),{avatar:{avatarViewModel:Object.assign({},_.L(W().avatar,_.TV),{avatarImageSize:"AVATAR_SIZE_M"})}}):W()}})}}),_.x(_.HG,{data:function(){return H().avatarStackViewModel}},{avatarStackViewModel:function(d){return _.x(_.mE,{data:d.data})}}),_.x(_.j$,{className:_.ER("ytReelChannelBarViewModelChannelName",(A.ytReelChannelBarViewModelChannelNameLarge=function(){return(k==null?void 0:k())===1},A.ytReelChannelBarViewModelChannelNameDecluttered=
function(){return _.b("enable_shorts_declutter_ui")},A)),
text:function(){return H().channelName},
linkInheritColor:!0,userInput:!0}),_.x("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.x(_.HG,{data:function(){return H().subscribeButtonViewModel}},{subscribeButtonViewModel:function(d){var W=d.data;
return _.x(_.Rr,{data:function(){return(k==null?void 0:k())===1?Object.assign({},W(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},W().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):W()},
isOverlay:!1})},
buttonViewModel:_.U7})),_.x("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.x(_.HG,{data:function(){var d,W;return(W=_.L((d=H())==null?void 0:d.sponsorButtonViewModel,XfG))==null?void 0:W.sponsorButton}},{buttonViewModel:function(d){return _.x(_.U7,{data:d.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ih");var eUI=_.c(function(A){var H=function(){var W;return((W=A.overlayDensity)==null?void 0:W.call(A))===1},k=function(){return H()?22:16},d={};
return _.x("yt-reel-multi-format-link-view-model",{class:_.ER("ytReelMultiFormatLinkViewModelHost",(d.ytReelMultiFormatLinkViewModelHostTall=!0,d.ytReelMultiFormatLinkViewModelHostLarge=function(){return H()},d))},_.x(_.c2,{ariaLabel:function(){return A.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return A.data().command}},_.x("h3",{class:function(){return H()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.x(_.R,{cond:function(){return A.data().icon},
then:function(W){return _.x(_.GA,{data:W,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:k})}}),_.x(_.j$,{text:function(){return A.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"jh");
eUI.idomCompat=!0;var xVV=_.c(function(A){var H=A.data;var k=A.overlayDensity;var d=A.extractOverlay;var W=_.GP("yt-shorts-suggested-action-view-model");A=_.r(_.RV(!1,void 0,"cmyYgf"));var z=A.next().value,u=A.next().value;A=_.r(_.RV(!1,void 0,"qY6byb"));var B=A.next().value,h=A.next().value,O=function(){return H().isMultiLineSa},T=_.o9(Vrr,function(){var qv,eN;
return(eN=(qv=H().toggleableContent)==null?void 0:qv.entityKey)!=null?eN:""}),m=function(){var qv,eN,mr;
return(mr=H().toggleableContent)!=null&&mr.entityKey?(eN=(qv=T())==null?void 0:qv.value)!=null?eN:!1:!1},J=function(){var qv,eN,mr,Cl,pl,UC,hk,eA,lI,Rp,vj;
return H().toggleableContent?m()?(qv=H().toggleableContent)==null?void 0:qv.toggledData:(eN=H().toggleableContent)==null?void 0:eN.untoggledData:{primaryText:(eA=(mr=H().defaultContent)==null?void 0:mr.primaryText)!=null?eA:H().text,secondaryText:(Cl=H().defaultContent)==null?void 0:Cl.secondaryText,onTapCommand:(lI=(pl=H().defaultContent)==null?void 0:pl.onTapCommand)!=null?lI:H().onTapCommand,icon:(Rp=(UC=H().defaultContent)==null?void 0:UC.icon)!=null?Rp:H().icon,image:(vj=(hk=H().defaultContent)==
null?void 0:hk.image)!=null?vj:H().image}},g=function(){return O()?H().trailingTapTarget:void 0},v=function(qv,eN){return function(){return z()?eN:qv}},y=function(qv){return function(){return _.b("enable_shorts_declutter_ui")?qv()+"Decluttered":""}},X=function(){return{leadingSection:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(k==null?void 0:k())===1?v("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):v("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:v("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:v("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
A={};A=_.ER((A.ytShortsSuggestedActionViewModelStaticHost=function(){return!O()},A.ytShortsSuggestedActionViewModelDynamicHost=O,A.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return O()&&B()},A.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return O()&&!B()},A.ytShortsSuggestedActionViewModelExtractOverlay=function(){return d==null?void 0:d()},A));
_.CZ(function(){if(O()){var qv=0,eN;if((eN=H().animationParams)==null?0:eN.shouldExpand){var mr,Cl;qv=((Cl=(mr=H().animationParams)==null?void 0:mr.expansionDelaySecs)!=null?Cl:0)*1E3}var pl,UC=((pl=H().animationParams)==null?0:pl.shouldExpand)?setTimeout(function(){u(!0)},qv):void 0,hk,eA;
qv=((hk=H().animationParams)==null?0:hk.visibilityDelaySecs)?((eA=H().animationParams)==null?NaN:eA.visibilityDelaySecs)*1E3:0;var lI=setTimeout(function(){h(!0)},qv);
_.aV(function(){UC&&clearTimeout(UC);clearTimeout(lI)})}});
var D=function(qv){_.mu(qv,Object.assign({},{form:{element:W.value}}))},K=_.lc(function(){var qv,eN=(qv=J())==null?void 0:qv.onTapCommand;
eN&&D(eN)}),N=_.lc(function(){var qv,eN;
if(qv=(eN=g())==null?void 0:eN.onTapCommand)return D(qv),!1}),U=_.b("enable_shorts_declutter_ui")?_.Mt({height:function(){return g()?"40px":z()?"44px":"32px"},
padding:"0px","padding-inline-end":function(){return g()?"8px":"16px"}}):_.Mt({}),p=_.Mt({"vertical-align":"bottom",
"border-radius":function(){var qv;return O()?((qv=H().defaultContent)==null?0:qv.isCircleImage)?"50%":"4px":"0px"},
width:function(){var qv,eN,mr;return O()&&((qv=H().defaultContent)==null?0:qv.imageSize)&&!_.b("enable_shorts_declutter_ui")?((mr=(eN=H().defaultContent)==null?void 0:eN.imageSize)!=null?mr:24)+"px":null},
height:function(){var qv,eN,mr;return O()&&((qv=H().defaultContent)==null?0:qv.imageSize)&&!_.b("enable_shorts_declutter_ui")?((mr=(eN=H().defaultContent)==null?void 0:eN.imageSize)!=null?mr:24)+"px":null}}),M=function(){return O()?X().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},Z=function(){return O()?X().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"},WV=function(){return O()?X().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
hA={};
return _.x("yt-shorts-suggested-action-view-model",{class:A,el:W},_.x("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.x("button",{class:_.ER(function(){return O()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var qv;
return(qv=H().useFullRoundedBorder)!=null&&qv?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!g()&&O()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":O()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var qv;
return(qv=H().disableFixedHeight)!=null&&qv?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(hA.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(k==null?void 0:k())===1},hA.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return d==null?void 0:d()},hA)),
"on:click":K,style:U},_.x(_.pM,{model:{color:4}}),_.x("div",{class:_.ER(function(){return Z()+" "+y(Z)()})},_.x(_.R,{cond:function(){var qv;
return(qv=J())==null?void 0:qv.image},
then:function(qv){return _.x(_.GA,{data:qv,alt:"",className:function(){return WV()+" "+y(WV)()},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:p})}}),_.x(_.R,{cond:function(){var qv,eN;
return(qv=J())==null?void 0:(eN=qv.icon)==null?void 0:eN.iconType},
then:function(qv){return _.x(_.n3,{icon:qv,active:m,className:function(){return M()+" "+y(M)()}})}})),_.x("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection "+y(function(){return"ytShortsSuggestedActionViewModelStaticHostTextSection"})()},_.x(_.R,{cond:function(){var qv;
return(qv=J())==null?void 0:qv.primaryText},
then:function(qv){var eN={};return _.x("div",{class:_.ER("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(eN.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(k==null?void 0:k())===1},eN))},_.x(_.j$,{text:qv}))}}),_.x(_.R,{cond:function(){var qv;
return(qv=J())==null?void 0:qv.secondaryText},
then:function(qv){return _.x("div",{class:function(){return X().secondaryText()}},_.x(_.j$,{text:qv}))}}))),_.x(_.R,{cond:g,
then:function(qv){return _.x("div",{class:_.ER(function(){return X().trailingSection()+" "+y(X().trailingSection)()},function(){var eN,mr;
return(d==null?void 0:d())&&((mr=(eN=X()).trailingSectionExtractOverlay)==null?void 0:mr.call(eN))||""}),
"aria-label":function(){var eN;return(eN=qv().a11yLabel)!=null?eN:""},
"on:click":N,role:"button",tabindex:0},_.x(_.pM,{model:{color:4}}),_.x(_.n3,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"kh");var iTQ=_.c(function(A){var H=A.data;var k=A.overlayDensity;var d=_.GP("yt-shorts-video-title-view-model");A=_.lc(function(u){if(_.xH(_.eu(u),d.value,["A".toString()]))return!1;(u=H().truncatedTextOnTapCommand)&&_.mu(u);return!1});
var W={},z={};return _.x("yt-shorts-video-title-view-model",{el:d,class:_.ER("ytShortsVideoTitleViewModelHost",(W.ytShortsVideoTitleViewModelHostClickable=function(){return!!H().truncatedTextOnTapCommand},W)),
"on:click":A},_.x("h2",{class:_.ER("ytShortsVideoTitleViewModelShortsVideoTitle",(z.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(k==null?void 0:k())===1},z.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.b("enable_shorts_declutter_ui")},z.ytShortsVideoTitleViewModelShortsVideoTitleDecluttered=function(){return _.b("enable_desktop_small_title_on_immersive_shorts")},z))},_.x(_.j$,{text:function(){return H().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(k==null?void 0:k())===1}})))},"lh");_.hUi=_.c(function(A){var H=A.data;var k=A.overlayDensity;var d=A.extractOverlay;var W=function(){return(k==null?void 0:k())===1},z=function(){return _.b("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelMetapanelItemDecluttered":"ytReelMetapanelViewModelMetapanelItem"},u=function(){return _.b("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelExpansiveDecluttered":"ytReelMetapanelViewModelExpansiveBlock"};
return _.x("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.x(_.HG,{data:function(){return H().metadataItems}},{badgeViewModel:function(B){B=B.data;
return _.x("div",{class:_.ER(function(){return W()?u():z()})},_.x(_.CK,{data:B}))},
playerDisclosureViewModel:function(B){B=B.data;return _.x("div",{class:_.ER(function(){return W()?u():z()})},_.x(_.cGM,{data:B,
extractOverlay:d}))},
shortsSuggestedActionViewModel:function(B){B=B.data;return _.x("div",{class:_.ER(function(){return W()?u():z()})},_.x(xVV,{data:B,
overlayDensity:k,extractOverlay:d}))},
reelChannelBarViewModel:function(B){B=B.data;var h={};return _.x("div",{class:_.ER(z(),(h.ytReelMetapanelViewModelExpansive=function(){return W()&&!_.b("enable_shorts_declutter_ui")},h.ytReelMetapanelViewModelExpansiveDecluttered=function(){return W()&&_.b("enable_shorts_declutter_ui")},h))},_.x(B__,{data:B,
overlayDensity:k}))},
reelMultiFormatLinkViewModel:function(B){B=B.data;var h={};return _.x("div",{class:_.ER(z(),(h.ytReelMetapanelViewModelExpansive=function(){return W()&&!_.b("enable_shorts_declutter_ui")},h.ytReelMetapanelViewModelExpansiveDecluttered=function(){return W()&&_.b("enable_shorts_declutter_ui")},h))},_.x(eUI,{data:B,
overlayDensity:k}))},
shortsVideoTitleViewModel:function(B){B=B.data;var h={};return _.x("div",{class:_.ER(z(),(h.ytReelMetapanelViewModelExpansive=function(){return W()&&!_.b("enable_shorts_declutter_ui")},h.ytReelMetapanelViewModelExpansiveDecluttered=function(){return W()&&_.b("enable_shorts_declutter_ui")},h))},_.x(iTQ,{data:B,
overlayDensity:k}))},
reelSoundMetadataViewModel:function(B){B=B.data;var h={};return _.x("div",{class:_.ER(z(),(h.ytReelMetapanelViewModelExpansive=function(){return W()&&!_.b("enable_shorts_declutter_ui")},h.ytReelMetapanelViewModelExpansiveDecluttered=function(){return W()&&_.b("enable_shorts_declutter_ui")},h))},_.x(_.iZQ,{data:B,
overlayDensity:k}))},
toggleButtonViewModel:function(B){B=B.data;var h={};return _.x("div",{class:_.ER(z(),(h.ytReelMetapanelViewModelExpansive=function(){return W()&&!_.b("enable_shorts_declutter_ui")},h.ytReelMetapanelViewModelExpansiveDecluttered=function(){return W()&&_.b("enable_shorts_declutter_ui")},h))},_.x(_.qc,{data:B}))}}))},"mh");var OTe=_.c(function(A){var H=_.SD(A,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),k=H.size,d=H.onTap,W=H.disabled,z=H.tooltipText;return _.x("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.x(_.E7,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:k(),disabled:W(),tooltipText:z(),onTap:d}},
iconName:A.iconType}))},"nh"),RUV=_.c(function(A){function H(J){J.stopPropagation();
J.code==="ArrowUp"?(J.preventDefault(),PIp(B.value)):J.code==="ArrowDown"?(J.preventDefault(),GfA(B.value)):J.code==="KeyM"?jbZ():(J.code==="KeyK"||J.code==="Space")&&IQ1(h())}
var k=_.SD(A,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});A=k.previousButtonDisabled;var d=k.nextButtonDisabled,W=k.data,z=k.playabilityStatus,u=k.previewThumbnail,B=_.GP("ytd-shorts-miniplayer-overlay"),h=_.oy(_.XwN),O=_.r(_.RV(null,void 0,"bUc1Pb"));k=O.next().value;var T=O.next().value,m;_.Sp(function(){_.NN().then(function(J){T(J)});
(m=_.TE(B.value))&&m.addEventListener("keydown",H)});
_.aV(function(){var J;(J=m)==null||J.removeEventListener("keydown",H)});
O=function(){var J,g;var v=_.L((J=W())==null?void 0:(g=J.reelPlayerOverlayRenderer)==null?void 0:g.buttonBar,Ypw);if(v){var y;J=Object.assign({},v,{buttonViewModels:(y=v.buttonViewModels)==null?void 0:y.filter(YCw)})}else J=void 0;return J};
return _.x("ytd-shorts-miniplayer-overlay",{el:B,class:"ytdShortsMiniplayerOverlayHost"},_.x("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Mt({"background-image":function(){var J=u();return J?'url("'+_.K3(J.thumbnails)+'")':""}})}),_.x("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.x("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.x(OTe,{iconType:function(){var J=h();
return J===2||J===-1||J===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){IQ1(h())},
tooltipText:function(){var J=h();return J===1||J===3?_.$r("PLAYER_LABEL_PAUSE"):_.$r("PLAYER_LABEL_PLAY")}}),_.x(_.uWL,{orientation:"horizontal_right",
playerApi:k})),_.x("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.x(OTe,{iconType:"YOUTUBE_SHORTS_ARROW_UP",disabled:A,onTap:function(){PIp(B.value)},
tooltipText:_.$r("PREVIOUS_VIDEO_LABEL")}),_.x(OTe,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:d,onTap:function(){GfA(B.value)},
tooltipText:_.$r("NEXT_VIDEO_LABEL")}),_.b("web_shorts_pip_like_button")?_.x(_.R,{cond:O,then:function(J){return _.x("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.x(_.PqA,{data:J,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.x("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.x(_.R,{cond:function(){var J,g;
return _.L((J=W())==null?void 0:(g=J.reelPlayerOverlayRenderer)==null?void 0:g.metapanel,PVw)},
then:function(J){return _.x("div",{class:_.ER("ytdShortsMiniplayerOverlayInteractive")},_.x(_.hUi,{data:J}))}})),_.x("div",{class:_.ER("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var J;return!((J=W())==null||!J.adsOverlay)||z()&&!eil(z())}},_.x("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.x(_.rbi,null)))),_.x(_.R,{cond:function(){var J=W(),g,v;
J=_.L(J==null?void 0:(g=J.adsOverlay)==null?void 0:(v=g.fulfillmentContent)==null?void 0:v.fulfilledLayout,drw);return _.L(J==null?void 0:J.renderingContent,B6A)},
then:function(J){return _.x("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.x(CqA,{data:J}))}}))},"ph");var Frw=_.c(function(){var A=_.r(_.RV(new _.Xt(NaN,NaN),void 0,"ejTaF")),H=A.next().value,k=A.next().value;A=_.r(_.RV(!1,void 0,"aTA69e"));var d=A.next().value,W=A.next().value,z=_.r(_.RV(!1,void 0,"OsC2Ib"));A=z.next().value;var u=z.next().value;z=_.wj().resolve(_.L6).miniplayerPropSignalMap[0];var B=z.data,h=z.shortsData,O=z.nextButtonDisabled,T=z.shortsPreviewThumbnail,m=z.previousButtonDisabled,J=z.externalPlaylistData,g=z.playabilityStatus,v=z.isDisabled,y=z.playerVe,X=z.closeVe;z=_.oy(_.EF);
_.Qr("yt-pip-window-resized",function(U){k(U)});
_.Qr("yt-activate-pip-miniplayer",function(){return _.e(function(U){u(!0);_.EN(U)})});
var D=function(){var U;return!((U=J())==null||!U.contents)&&d()},K=function(){var U=H(),p=!!B(),M=D();
U=U.clone();p&&(U.height-=76);M&&(U.height-=285);return U},N=function(){W(!d())};
_.CA(function(){var U=y(),p=_.hx(11),M=_.ii(11);p&&M&&U&&(_.v0(p,M,U),M=X())&&(_.ym(p,U,[M]),_.IN(p,[M]))},"h5qKie");
return _.x("ytd-pip-container",{class:"ytdPipContainerHost"},_.x(_.R,{cond:A,then:function(){return _.x(_.vhe,{isDisabled:v,playabilityStatus:g,size:K,isPictureInPicture:!0})}}),_.x(_.R,{cond:B,
then:function(){return _.x(_.b5L,{data:B,expanded:d,onExpandClick:N,playlistData:J})}}),_.x(_.R,{cond:D,
then:function(){return _.x("div",{class:"ytdPipContainerPlaylistPanel"},_.x(_.u9I,{data:J,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.x(_.R,{cond:z,
then:function(){return _.x(RUV,{data:h,nextButtonDisabled:O,previousButtonDisabled:m,playabilityStatus:g,previewThumbnail:T})}}))},"rh");var Dz=function(A,H,k){var d=this;this.pipController=A;this.JSC$19368_clientRoot=H;this.JSC$19368_pageRequestService=k;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Uyf();this.JSC$19368_watchPipEnabled=_.b("web_watch_pip");this.watchPipManualOnlyEnabled=_.b("web_watch_pip_manual");this.shortsPipEnabled=_.b("web_shorts_pip");this.JSC$19368_watchWhileEnabled=_.b("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;_.dC(_.F3(),Ipb,function(W){d.isSingleOptionSurveyActive=W});
this.JSC$19368_onPlayerPlayVideo=this.JSC$19368_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);_.cq(_.a3.getInstance(),this.miniplayerServiceActionMap,this.JSC$19368_clientRoot);A.pictureInPictureSupported()&&_.yr("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},HcN,I71,LaQ,YvL,IaZ,Ple,GgM,FaM,ybB;
Dz.prototype.handleMediaSessionPipActivation=function(A){var H=this,k,d;return _.e(function(W){_.Hi().mediaSessionPipActivation=!0;k=_.wj().resolve(_.SO);if(k.isOnWatch()&&H.JSC$19368_watchPipEnabled){if(H.watchPipManualOnlyEnabled&&((d=A)==null?void 0:d.enterPictureInPictureReason)!=="useraction")return sQ(),W.return();_.Hi().watchPipActivation=!0;_.T__(H,k.data);return W.jumpTo(0)}return k.isOnShorts()&&H.shortsPipEnabled?(_.Hi().shortsPipActivation=!0,_.mVB(H),W.jumpTo(0)):!H.isMiniplayerActive()||
!H.JSC$19368_watchPipEnabled||H.watchWhileMode||H.watchPipManualOnlyEnabled?W.jumpTo(0):W.yield(JbQ(H),0)})};
var JbQ=function(A){var H,k,d,W;return _.e(function(z){if(z.nextAddress==1)return H=!A.miniplayerToPipMode,k=A.playerElement,d=A.miniplayerData,W=A.watchResponse,z.yield(A.deactivate(),2);if(z.nextAddress!=3)return H?(_.Hi().mediaSessionPipActivation=!0,_.Hi().watchPipActivation=!0):_.Hi().miniplayerButtonActivation=!0,z.yield(A.activate(k,d,W),3);A.miniplayerToPipMode=H;_.EN(z)})};
Dz.prototype.onDownloadedVideoDeleted=function(A){var H,k=_.L((H=this.miniplayerData)==null?void 0:H.watchEndpoint,_.Yr),d,W;k&&((d=this.watchResponse)==null?void 0:(W=d.playerResponse)==null?void 0:W.offlineState)!==void 0&&(H=k.videoId)&&A&&H===A&&this.close()};
Dz.prototype.onShowMiniplayerCommand=function(A){var H=this,k,d,W,z,u,B,h,O,T,m,J;return _.e(function(g){switch(g.nextAddress){case 1:return k=_.L(A,BC1),W=(d=k)==null?void 0:d.miniplayerCommand,z=_.L(W,_.Yr),W&&z&&!H.active?g.yield(_.ed.getInstance(),2):g.return();case 2:return u=g.yieldResult,g.yield((B=u)==null?void 0:B.get("yt-miniplayer-shown-video-id"),3);case 3:h=g.yieldResult;O=z.videoId;if(!O||h===O)return g.return();T=_.wj().resolve(_.SO);if(T.isOnWatch())return _.Pq(Error("Xj")),g.return();
m={channelItem:{externalId:btoa(O)}};H.readyToResumeVe=_.t8(121253,void 0,void 0,m);_.Hi().showMiniplayerCommandActivation=!0;return g.yield(_.Y$p(H,W,!0),4);case 4:return H.active&&(_.S7(H,{readyToResumeVe:H.readyToResumeVe,isReadyToResume:!0}),H.isReadyToResume=!0),g.yield((J=u)==null?void 0:J.set("yt-miniplayer-shown-video-id",z.videoId),5);case 5:H.readyToResumeVe=void 0,_.EN(g)}})};
Dz.prototype.init=function(A){this.miniplayerEl?_.Pq(new _.Ti("MiniplayerService already initialized.")):this.miniplayerEl=A};
Dz.prototype.isInitialized=function(){var A=!!this.miniplayerEl;A||_.Pq(new _.Ti("MiniplayerService used before initialized."));return A};
_.T__=function(A,H){if(A.isInitialized()){var k=_.Ncm(H.response,H.playerResponse),d=_.wj().resolve(_.SO).getPlayerFromWatch();_.Hi().currentEndpoint=k.watchEndpoint||null;A.activate(d,k,H)}};
_.mVB=function(A){if(A.isInitialized()){var H=_.wj().resolve(_.SO).getPlayerFromShorts();A.activate(H)}};
HcN=function(A,H){var k;(k=!A.isInitialized())||(k=_.wj().resolve(_.SO).isOnWatch()&&A.watchPipMode,k=!(A.isMiniplayerActive()&&(_.Hi().userActivation||_.Hi().lockupActivation||k)));if(k)return!1;gJ3(A,H)?_.Fz(A):IaZ(A,H);return A.watchPipMode?!_.wj().resolve(_.SO).isOnWatch():!0};
Dz.prototype.isMiniplayerActive=function(){return this.active};
var gJ3=function(A,H){var k;H=(k=_.L(H,_.Yr))==null?void 0:k.videoId;var d,W;A=(W=_.L((d=A.miniplayerData)==null?void 0:d.watchEndpoint,_.Yr))==null?void 0:W.videoId;return H!=null&&H===A};
Dz.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Ed(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Ud(this.miniplayerEl,"yt-navigate-home-action"))};
_.Y$p=function(A,H,k,d){k=k===void 0?!1:k;var W,z,u,B;return _.e(function(h){switch(h.nextAddress){case 1:if(A.active){h.jumpTo(2);break}W=_.wj().resolve(_.SO);if(u=(z=A.playerElement)!=null?z:W.getPlayerFromWatch()){h.jumpTo(3);break}return h.yield(_.wj().resolve(_.VI),4);case 4:u=W.getPlayerFromWatch();case 3:if(!u){_.Pq(Error("Zj"));h.jumpTo(2);break}return h.yield(A.activate(u,d),2);case 2:return A.active?h.yield(IaZ(A,H,k),7):h.return();case 7:(B=A.getPlayerElement())==null||B.focusOnPlayer(),
_.EN(h)}})};
Dz.prototype.activate=function(A,H,k){var d=this,W,z,u,B,h,O,T,m,J;return _.e(function(g){switch(g.nextAddress){case 1:if(!d.isInitialized())return g.return();if(!A)return _.Pq(Error("Zj")),g.return();if(_.Kkk()||d.isMiniplayerActive())var v=!0;else v=_.Hi().watchPipActivation||_.Hi().watchWhileActivation,_.wj().resolve(_.SO).isOnWatch()&&!v?(_.Pq(new _.Ti("miniplayer activated on watch page")),v=!0):v=_.Hi().watchWhileActivation?d.userDeactivatedWatchWhile||!!document.pictureInPictureElement||tzl():
!1;if(v)return sQ(),g.return();W=_.Hi().mediaSessionPipActivation;z=_.Hi().shortsPipActivation;u=_.Hi().watchPipActivation;h=(B=_.Hi().watchWhileActivation)||u;O=u||z;if(!d.pictureInPictureEnabled()||!O){g.jumpTo(2);break}return g.yield(bTB(d,W),3);case 3:if(!g.yieldResult)return _.Pq(Error("Yj")),sQ(),g.return();case 2:return d.setActive(!0),d.watchResponse=k,d.playerElement=A,d.updateMiniplayerData(H),g.yield(LaQ(d,A),4);case 4:if(!d.active)return _.Pq(new _.Ti("miniplayer deactivated during activation")),
d.removePlayerListeners(),g.return();v=_.wj().resolve(_.jd);v.addEventListener("yt-navigate",_.nF(d,d.onPlaylistNavigate));v.addEventListener("yt-playlist-data-updated",_.nF(d,d.JSC$19368_onPlaylistDataUpdated));d.JSC$19368_onPlaylistDataUpdated();sQ();d.JSC$19368_watchWhileEnabled&&_.vJ_(d,B);d.pictureInPictureEnabled()&&d.shortsPipEnabled&&(d.shortsPipMode=z,_.F3().dispatch(vxJ(d.shortsPipMode)));d.pictureInPictureEnabled()&&d.JSC$19368_watchPipEnabled&&(d.watchPipMode=u,!d.JSC$19368_watchPipEnabled||
d.watchPipManualOnlyEnabled&&!(_.NpW()&&_.v8V("Chromium")>=142)||d.watchPipManualOnlyEnabled||_.nnQ(d.handleMediaSessionPipActivation));d.player&&(T=d.player.getPlayerState(),m=T===1,_.F3().dispatch(Sqw(T)),_.li(d.miniplayerEl,"yt-miniplayer-play-state-changed",[m]),_.Hi().isVideoPlaying=m);_.li(d.miniplayerEl,"yt-miniplayer-endpoint-changed");ybB(d);_.j3L(d);if(d.shortsPipMode||d.watchPipMode)g=g.yield(_.Ud(d.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{v=g.yield;var y=_.Ud(d.miniplayerEl,
"yt-activate-miniplayer",[h])[0];g=v.call(g,y,6)}return g;case 6:if(d.watchResponse){v=d.getScreenLayer();y=_.hx(0);var X=uPI(0);y&&X&&(_.RC(y,X,v),v===0&&qmW(void 0,0))}I71(d);YvL(d,!0);(J=d.getPlayerElement())==null||J.focusOnPlayer();_.EN(g)}})};
Dz.prototype.updateMiniplayerData=function(A){this.miniplayerData=A;_.S7(this,{data:A})};
_.j3L=function(A){var H,k,d=((H=A.miniplayerData)==null?void 0:(k=H.miniplayerRenderer)==null?void 0:k.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";H=A.watchWhileMode||A.watchPipMode?d&&!_.wj().resolve(_.SO).isOnWatch():d;_.S7(A,{isDisabled:H});var W,z;k=_.L((W=A.miniplayerData)==null?void 0:(z=W.miniplayerRenderer)==null?void 0:z.minimizedEndpoint,_.dN);H&&k&&_.wj().resolve(_.x0).openSheet({openPopupActionCommand:{openPopupAction:k}},A.miniplayerEl)};
I71=function(A){if(A.watchResponse&&(!A.watchWhileMode||!_.b("kevlar_watch_while_counterfactual"))){var H,k=(H=A.watchResponse.playerResponse)==null?void 0:H.trackingParams;k&&(_.S7(A,{expandVe:_.t8(35989),closeVe:_.t8(34699),readyToResumeCloseVe:_.t8(131070),repositionVe:_.t8(226204),resizeVe:_.t8(226205)}),_.S7(A,{playerVe:_.db(k)}))}};
LaQ=function(A,H){return _.e(function(k){if(k.nextAddress==1)return H.preparePlayer(),k.yield(H.getPlayerPromise(),2);A.player=k.yieldResult;A.player&&(A.player.addEventListener("onPlayVideo",A.JSC$19368_onPlayerPlayVideo),A.player.addEventListener("onCloseMiniplayer",A.onPlayerCloseMiniplayer),A.player.addEventListener("onExpandMiniplayer",A.onPlayerExpandMiniplayer),A.player.addEventListener("onStateChange",A.onPlayerStateChange));_.EN(k)})};
_.q=Dz.prototype;_.q.JSC$19368_onPlayerPlayVideo=function(A){var H=A.sessionData&&"autonav"in A.sessionData,k;A.sessionData&&A.sessionData.itct&&(k=A.sessionData.itct);var d=A.watchEndpoint;H=d&&H?_.q_8(d,k):_.C8(A.videoId,A.listId||void 0,k);A.sessionData&&_.DZ(_.L(H.commandMetadata,_.wn).url,A.sessionData);IaZ(this,H)};
_.q.onPlayerExpandMiniplayer=function(){_.Fz(this)};
_.q.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.q.onPlayerStateChange=function(){if(this.player){var A=this.player.getPlayerState(),H=A===1;_.F3().dispatch(Sqw(A));_.F3().dispatch(_.mL(A));_.li(this.miniplayerEl,"yt-miniplayer-play-state-changed",[H]);_.Hi().isVideoPlaying=H;if(A===0){H=!_.aD.getInstance().isAutoplaySetExplicitly();var k,d,W,z,u,B,h=(k=this.watchResponse.response)==null?void 0:(d=k.contents)==null?void 0:(W=d.twoColumnWatchNextResults)==null?void 0:(z=W.autoplay)==null?void 0:(u=z.autoplay)==null?void 0:(B=u.autoplayExplicitChoiceDialogRenderer)==
null?void 0:B.confirmDialogRenderer;H&&h&&this.player.setAutonavState(1)}A===0&&this.watchWhileMode&&this.deactivate()}};
_.q.onPlaylistNavigate=function(A,H){var k=this,d,W,z,u,B,h,O;return _.e(function(T){if(T.nextAddress==1){if(!_.L(H.endpoint,_.Yr))return T.return();_.Hi().currentEndpoint=H.endpoint;_.li(k.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.wj().resolve(_.SO).isOnWatch()&&(k.watchWhileMode||k.watchPipMode))return T.return();A.stopPropagation();(z=(W=_.L((d=H.endpoint)==null?void 0:d.commandMetadata,_.wn))==null?void 0:W.url)&&H.tempData&&!_.iK.isEmpty(H.tempData)&&_.DZ(z,H.tempData);u={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};B=new KoA(function(){return k.getPlayerElement()},u,{layer:k.getScreenLayer()});
h=function(m){B.processChunk({endpoint:H.endpoint,data:m})};
Ple(k);k.miniplayerFetchRequest=GgM(k,H.endpoint,h);_.S_(T,2);return T.yield(k.miniplayerFetchRequest,4)}if(T.nextAddress!=2)return O=T.yieldResult,FaM(k,O),_.QN(T,0);_.VA(T);_.EN(T)})};
_.q.JSC$19368_onPlaylistDataUpdated=function(){var A=_.wj().resolve(_.jd).getPlaylistData();this.hasPlaylistData=!!A;_.S7(this,{externalPlaylistData:A||{}})};
_.q.close=function(A){if(this.isInitialized())if(A){if(!((this.watchWhileMode||this.watchPipMode)&&_.wj().resolve(_.SO).isOnWatch()||this.shortsPipMode)){var H;(H=this.getPlayerElement())==null||H.stop()}this.deactivate()}else _.FY().closeMiniplayer(this.miniplayerEl)};
_.q.deactivate=function(A){var H=this,k,d,W,z;return _.e(function(u){if(u.nextAddress==1){if(!H.isInitialized()||!H.active)return u.return();H.setActive(!1);Ple(H);(k=!!A&&gJ3(H,A))&&H.isSingleOptionSurveyActive&&_.Ud(H.miniplayerEl,"yt-show-watch-page-survey",[H.isSingleOptionSurveyActive]);return u.yield(Xq1(H),2)}if(u.nextAddress!=3){YvL(H,!1);H.isReadyToResume=!1;H.watchResponse=void 0;H.updateMiniplayerData(void 0);H.shortsPipMode&&(H.shortsPipMode=!1,_.F3().dispatch(vxJ(H.shortsPipMode)),UUe(H.pipController),
(d=H.player)==null||d.setInternalSize(NaN,NaN));H.watchPipMode&&(H.watchPipMode=!1,UUe(H.pipController));(W=H.watchWhileMode)&&_.vJ_(H,!1);H.removePlayerListeners();var B=_.wj().resolve(_.jd);B.removeEventListener("yt-navigate",_.nF(H,H.onPlaylistNavigate));B.removeEventListener("yt-playlist-data-updated",_.nF(H,H.JSC$19368_onPlaylistDataUpdated));_.Hi().currentEndpoint=null;_.li(H.miniplayerEl,"yt-miniplayer-endpoint-changed");H.playerElement=null;sQ();if(H.shortsPipMode||H.watchPipMode)u=u.jumpTo(3);
else{B=u.yield;var h=_.Ud(H.miniplayerEl,"yt-deactivate-miniplayer",[k,W])[0];u=B.call(u,h,3)}return u}(z=H.player)==null||z.setInternalSize(NaN,NaN);H.player=null;_.EN(u)})};
var Xq1=function(A){var H;return _.e(function(k){H=_.wj().resolve(_.SO);return A.shortsPipMode?k.yield(H.movePlayerToShorts(A.playerElement),0):k.yield(H.movePlayerToWatch(A.playerElement),0)})};
Dz.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19368_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Dz.prototype.setActive=function(A){this.active=A;this.isSingleOptionSurveyActive?_.Ud(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Ud(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.F3().dispatch(_.p8({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.vJ_=function(A,H){A.watchWhileMode=H;_.S7(A,{watchWhile:H})};
YvL=function(A,H){if(A.shortsPipMode||A.watchPipMode){var k;(k=A.player)==null||k.setDocumentPictureInPicture(H)}else{var d;(d=A.player)==null||d.setMinimized(H)}};
_.Fz=function(A){var H;return _.e(function(k){switch(k.nextAddress){case 1:if(!A.isInitialized())return k.return();_.S_(k,2);return k.yield(A.miniplayerFetchRequest,4);case 4:_.QN(k,3);break;case 2:_.VA(k);case 3:A.watchResponse&&A.miniplayerData&&A.miniplayerData.watchEndpoint?(H={url:A.watchResponse.url,endpoint:A.miniplayerData.watchEndpoint,data:A.watchResponse,miniplayer:!0},_.Ed(A.miniplayerEl,"yt-navigate-cache",H)):A.miniplayerData&&A.miniplayerData.watchEndpoint&&_.Ed(A.miniplayerEl,"yt-navigate",
{endpoint:A.miniplayerData.watchEndpoint}),_.EN(k)}})};
IaZ=function(A,H,k){var d,W,z,u;return _.e(function(B){if(B.nextAddress==1){if(gJ3(A,H))return B.return();_.Hi().currentEndpoint=H;_.li(A.miniplayerEl,"yt-miniplayer-endpoint-changed");_.li(A.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Hi().isVideoPlaying=!1;d={clientParams:{miniplayer:!0,autoSaveToQueue:!k}};W=new KoA(function(){return A.getPlayerElement()},d,{layer:A.getScreenLayer(),
parentLayer:0},void 0,A.readyToResumeVe);z=function(h){var O,T,m=Object.assign({},(O=h.playerResponse)==null?void 0:(T=O.playerConfig)==null?void 0:T.playbackStartConfig,{startPaused:!0}),J;k&&((J=h.playerResponse)==null?0:J.playerConfig)&&(h.playerResponse.playerConfig.playbackStartConfig=m);W.processChunk({endpoint:H,data:h})};
Ple(A);A.miniplayerFetchRequest=GgM(A,H,z);_.S_(B,2);return B.yield(A.miniplayerFetchRequest,4)}if(B.nextAddress!=2)return u=B.yieldResult,FaM(A,u),_.QN(B,0);_.VA(B);_.EN(B)})};
Dz.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
Ple=function(A){A.miniplayerFetchRequest&&(A.miniplayerFetchRequest.cancel&&A.miniplayerFetchRequest.cancel("Active request obsolete"),A.miniplayerFetchRequest=null)};
GgM=function(A,H,k){var d,W=(d=_.L(H.commandMetadata,_.wn))==null?void 0:d.url,z;d=!W||_.Wl("disable_miniplayer_tempdata")?{}:(z=Z4I(W))!=null?z:{};return jK(A.JSC$19368_pageRequestService,H,d,window.location.href,"watch",function(u,B){k(B)},function(u){return u!==A.miniplayerFetchRequest})};
FaM=function(A,H){var k;_.e(function(d){if(!H)return d.return();A.watchResponse=H;I71(A);ybB(A);k=_.Ncm(H.response,H.playerResponse);if(A.isMiniplayerActive()){H.response&&(A.playerElement.watchNextData=H.response);var W=_.iK.getValueByKeys.apply(_.iK,[H].concat(_.fV(NrA)));_.iK.getValueByKeys.apply(_.iK,[H].concat(_.fV(w_w)))&&W&&_.wj().resolve(_.jd).setAutoplayRenderer(W);if(W)if(_.b("kevlar_is_pupi_enabled")){var z,u,B,h,O,T=((z=H.response)==null?0:(u=z.playerOverlays)==null?0:(B=u.playerOverlayRenderer)==
null?0:(h=B.autonavToggle)==null?0:(O=h.autoplaySwitchButtonRenderer)==null?0:O.enabled)?2:1;_.aD.getInstance().setState(T,!1,!1)}else z=TCI()?2:1,(T=A.player)==null||T.setAutonavState(z);A.updateMiniplayerData(k);_.j3L(A)}_.EN(d)})};
ybB=function(A){var H,k,d=(H=A.watchResponse)==null?void 0:(k=H.playerResponse)==null?void 0:k.playabilityStatus,W;H=d==null?void 0:(W=d.miniplayer)==null?void 0:W.miniplayerRenderer;(H==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&H.minimizedEndpoint&&_.tx(A.miniplayerEl,[H.minimizedEndpoint]);_.S7(A,{playabilityStatus:d})};
_.S7=function(A,H){(0,A.miniplayerPropSignalMap[1])(H)};
Dz.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var A;return this.playerElement?this.playerElement:(A=_.Va(this.miniplayerEl).querySelector("#player-container"))==null?void 0:A.firstElementChild};
Dz.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var bTB=function(A,H){H=H===void 0?!1:H;var k,d,W,z,u,B;return _.e(function(h){if(h.nextAddress==1){if(!A.pictureInPictureSupported()||!Dvk()&&!H)return h.return(!1);k=DVi(A);d=k.width;W=k.height;return h.yield(A.pipController.openWindow({width:d,height:W}),2)}z=h.yieldResult;u=A.pipController.getWindow();if(!u||!z)return h.return(!1);u.document.body.style.overflow="hidden";B=XV1(u);l5I(A.pipController,function(){SvR(A);B()});
return h.return(!0)})},DVi=function(A){var H=_.Hi().shortsPipActivation,k,d;
A=H?.5625:(d=(k=A.player)==null?void 0:k.getVideoAspectRatio())!=null?d:16/9;k=Math.min(window.innerWidth,window.innerHeight)/2;H=H?0:76;return A>1?new _.Xt(k,H+k/A):new _.Xt(k*A,H+k)},SvR=function(A){var H;
_.e(function(k){H=_.wj().resolve(_.SO);return H.isOnWatch()&&A.watchPipMode||H.isOnShorts()&&A.shortsPipMode?k.yield(A.deactivate(),0):A.miniplayerToPipMode?k.yield(JbQ(A),0):A.watchPipMode?k.yield(_.Fz(A),0):k.jumpTo(0)})};
Dz.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19368_watchPipEnabled||this.shortsPipEnabled)};
_.nP.Object.defineProperties(Dz.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Dz[ox]=[tCG,fni,_.eK];var Cl3="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(" "),
Ka1="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(" "),a7L="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
cbR="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var pqL=function(A,H,k){_.dF.call(this);this.store=A;this.panelController=H;this.pageContentExtractor=k;this.isInitialized=!1};
_.I(pqL,_.dF);
pqL.prototype.init=function(A){var H=this;this.isInitialized||(this.isInitialized=!0,this.environment=A!=null?A:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.yP.currentPageSubTypeSelector(this.store.getState()),A=_.dC(this.store,_.yP.currentPageSubTypeSelector,function(k){a:if(_.Q33(H))switch(k){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var d=!0;break a;default:d=!1}else d=!1;d&&H.panelController.hidePanel({identifier:"PAai_companion"});
H.pageSubtype!==k&&(H.pageSubtype=k)}),this.addOnDisposeCallback(A))};
_.a81=function(A,H){if(_.Q33(A))switch(H){case "watch":var k,d;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(k=_.MN())==null?void 0:(d=k.getVideoData())==null?void 0:d.video_id};case "search":var W,z,u;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(z=(W=A.pageContentExtractor)==null?void 0:Yi_(W))!=null?z:[],entityId:(u=(new URLSearchParams(window.location.search)).get("search_query"))!=null?u:void 0};case "companion-canvas":var B,h;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(h=(B=
A.pageContentExtractor)==null?void 0:Yi_(B))!=null?h:[]};default:var O,T;A={videoIds:(T=(O=A.pageContentExtractor)==null?void 0:Yi_(O))!=null?T:[]};return _.b("enable_ai_companion_default_page_context")?A:void 0}};
_.Q33=function(A){return A.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
pqL[ox]=[_.O7,_.eZ,_.fZ(PeM)];var VMQ=_.c(function(A){return _.x("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.x(_.CU,{className:A.className,text:function(){return A.data().text||""},
wrapCodeBlocks:A.shouldWrapCodeBlock}))},"th");_.EJM=_.c(function(A){return _.x("yt-ai-companion-attachment-view-model",{el:_.P8(_.OF(function(){return A.data().rendererContext})),
class:_.ER("ytAiCompanionAttachmentViewModelHost",A.className)},_.x("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.x(_.R,{cond:function(){return A.data().title},
then:function(H){return _.x("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return H().content}},_.x(_.j$,{text:H}))}}),_.x(_.R,{cond:function(){return _.vG(A.data().trailingTitleIcon)},
then:function(H){return _.x("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.x(_.GA,{data:H,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.x(_.R,{cond:function(){return A.data().description},
then:function(H){return _.x("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.x(_.j$,{text:H}))}}),_.x(_.R,{cond:function(){return A.data().bottomItem},
then:function(H){return _.x("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.x(_.HG,{data:H},{tableViewModel:Rlk}))}}))},"uh");_.UV_=_.c(function(A){return _.x("yt-channel-attribution-view-model",{class:_.ER("ytChannelAttributionViewModelHost",A.className)},_.x("div",{class:"ytChannelAttributionViewModelUpper"},_.x(_.HG,{data:function(){return A.data().avatar}},{decoratedAvatarViewModel:_.TU}),_.x("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.x(_.j$,{text:function(){return A.data().title}}))),_.x("div",{class:"ytChannelAttributionViewModelBottom"},_.x(_.j$,{text:function(){return A.data().subtitle}})))},"vh");var l7L=_.c(function(A){var H=_.r(_.RV(!1,void 0,"MFRKRb")),k=H.next().value,d=H.next().value,W=function(){return A.data().activeRenderer},z=function(){return A.data().inactiveRenderer};
return _.x("yt-channel-disclosure-view-model",{"on:mouseleave":_.lc(function(){d(!1)}),
"on:mouseover":_.lc(function(){d(!0)}),
class:_.ER("ytChannelDisclosureViewModelHost",A.className)},_.x(_.R,{cond:function(){return k()},
then:function(){return _.x(_.HG,{data:W},{channelAttributionViewModel:_.UV_})},
else:function(){return _.x(_.HG,{data:z},{decoratedAvatarViewModel:_.TU})}}))},"wh");var tMG=null;var N_G={},MML=(N_G.initialized={priority:10,callback:function(A){var H=_.wj();H.addProvider({provide:a$Q,useClass:Mp_});H.addProvider({provide:_.NjL,useFactory:function(){return new cfp}});
H.addProvider({provide:Cp,useValue:_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});H.addProvider({provide:Mt3,useValue:5184E6});H.addProvider({provide:TW1,useValue:_.iA()});H.addProvider({provide:kW3,useClass:fNZ});H.addProvider({provide:Fs,useClass:Fs});H.addProvider({provide:_.VI,useFactory:function(){return yhk.promise}});
H.addProvider({provide:_.IBQ,useFactory:function(){return _.jeJ.promise}});
H.addProvider({provide:HtN,useValue:function(){var h;return((h=_.Kj())==null?void 0:h.getPlayer())||null}});
var k={};H.addProvider((k.provide=_.u_,k.useFactory=function(h,O){return function(){return FDf(h,O)}},k[ox]=[Cp,
Mt3],k));k={};H.addProvider((k.provide=_.ng,k.useClass=TFL,k[ox]=[Cp,Mt3],k));k={};H.addProvider((k.provide=_.VNj,k.useClass=b$_,k[ox]=[_.ng],k));H.addProvider({provide:YC,useFactory:_.F3});H.addProvider({provide:tv,useFactory:_.F3});H.addProvider({provide:OA_,useFactory:_.F3});H.addProvider({provide:_.paw,useFactory:function(){var h;return((h=_.Kj())==null?void 0:h.getPlayer())||null}});
H.addProvider({provide:cjQ,useFactory:_.F3});H.addProvider({provide:_.O7,useFactory:_.F3});k={};H.addProvider((k.provide=KTQ,k.useFactory=function(h){return h.dispatch.bind(h)},k[ox]=[_.O7],k));
H.addProvider({provide:dR,useValue:_.f8});H.addProvider({provide:lR_,useClass:jll});H.addProvider({provide:xx_,useClass:e4B});H.addProvider({provide:dG,useClass:dG});H.addProvider({provide:sn,useClass:sn});H.addProvider({provide:$C,useClass:$C});H.addProvider({provide:k_,useClass:k_});H.addProvider({provide:qs,useClass:qs});H.addProvider({provide:Qd,useClass:Qd});H.addProvider({provide:DX,useClass:DX});H.addProvider({provide:X4R,useValue:uZe});k={};H.addProvider((k.provide=DCG,k.useFactory=function(h){return h.watchEndpointMap||
{}},k[ox]=[X4R],k));
k={};H.addProvider((k.provide=SIR,k.useFactory=function(h){return h.reelWatchEndpointMap||{}},k[ox]=[X4R],k));
H.addProvider({provide:_.Wf,useFactory:_.A7});H.addProvider({provide:m2,useFactory:_.sH});k={};H.addProvider((k.provide=Xvm,k.useFactory=function(h){return function(O){var T={automatedLogEventSource:5};T=T===void 0?{}:T;var m,J,g=(J=_.L((m=O.endpoint)==null?void 0:m.commandMetadata,_.wn))==null?void 0:J.rootVe;if(g){var v,y;if(m=O.previousCsn||((y=_.L((v=O.endpoint)==null?void 0:v.commandMetadata,nTw))==null?void 0:y.parentCsn)){var X=X===void 0?{}:X;if(m!==_.hx(X.layer)||g!==uPI(X.layer))hgr(m,X.cttAuthInfo,
X.layer||0),qmW(m,X.layer||0),v=X.layer||0,_.cI(rSX(v===void 0?0:v),g);T.parentCsn=m}O.endpoint&&m?JCA(h,O.endpoint,T):_.Ml(h,g,void 0,T);var D;((D=O.response)==null?0:D.trackingParams)&&h.graftServerVe(O.response.trackingParams);var K;((K=O.playerResponse)==null?0:K.trackingParams)&&h.graftServerVe(O.playerResponse.trackingParams);var N;((N=O.reelWatchSequenceResponse)==null?0:N.trackingParams)&&h.graftServerVe(O.reelWatchSequenceResponse.trackingParams)}}},k[ox]=[_.Wf],k));
k={};H.addProvider((k.provide=T0I,k.useClass=RLL,k[ox]=[dR,_.O7],k));k={};H.addProvider((k.provide=Ok,k.useClass=Ok,k[ox]=[_.VI,_.O7],k));k={};H.addProvider((k.provide=i_,k.useClass=i_,k[ox]=[tv,_.J7],k));H.addProvider({provide:_.FtG,useClass:MCe});k={};H.addProvider((k.provide=_.eZ,k.useClass=SiG,k[ox]=[_.FtG,_.fZ(_.hz)],k));H.addProvider({provide:_.fB,useClass:hCQ});k={};H.addProvider((k.provide=wM,k.useClass=wM,k[ox]=[_.fB,_.VI,_.kI,_.J7],k));H.addProvider({provide:_.x0,useClass:Rf});H.addProvider({provide:_.uEB,
useClass:FFi});H.addProvider({provide:_.iB,useClass:GWe});_.b("enable_ai_companion")&&(H.addProvider({provide:_.hz,useClass:caL}),H.addProvider({provide:_.nai,useClass:RHk}),H.addProvider({provide:PeM,useClass:jV3}),H.addProvider({provide:bW,useClass:bW}),H.addProvider({provide:gR,useClass:gR}),H.addProvider({provide:nbJ,useValue:l7L}),H.addProvider({provide:_.ZqG,useValue:_.EJM}),H.addProvider({provide:fli,useValue:VMQ}));_.b("enable_ai_chat_controller")&&H.addProvider({provide:_.Ju,useClass:pqL});
k={};H.addProvider((k.provide=_.hN,k.useClass=N0B,k[ox]=[_.hN],k));H.addProvider({provide:_.oe,useClass:W__});H.addProvider({provide:F8,useClass:F8});H.addProvider({provide:Hk,useClass:Hk});H.addProvider({provide:ak,useClass:ak});k={};H.addProvider((k.provide=O2,k.useClass=O2,k[ox]=[_.J7,_.kI],k));H.addProvider({provide:Nf,useClass:KtQ});k={};H.addProvider((k.provide=Zm,k.useClass=Zm,k[ox]=[_.x0,Nf],k));k={};H.addProvider((k.provide=U2,k.useClass=U2,k[ox]=[_.x0],k));H.addProvider({provide:jT,useClass:jT});
H.addProvider({provide:QaQ,useClass:pyL});_.b("web_enable_feedback_endpoint_resolver_batch_2")&&(k={},H.addProvider((k.provide=P7,k.useClass=P7,k[ox]=[YC],k)),k={},H.addProvider((k.provide=Ik,k.useClass=Ik,k[ox]=[QaQ],k)));k={};H.addProvider((k.provide=Mf,k.useClass=Mf,k[ox]=[_.iB,Nf],k));k={};H.addProvider((k.provide=VU,k.useClass=VU,k[ox]=[_.iB],k));k={};H.addProvider((k.provide=np,k.useClass=np,k[ox]=[_.kI,_.eZ],k));k={};H.addProvider((k.provide=tu,k.useClass=tu,k[ox]=[_.kI,_.Wf],k));H.addProvider({provide:jx,
useClass:jx});k={};H.addProvider((k.provide=TR,k.useClass=TR,k[ox]=[YC],k));H.addProvider({provide:Qk,useClass:Qk});H.addProvider({provide:pB,useClass:pB});k={};H.addProvider((k.provide=Er,k.useClass=Er,k[ox]=[YC],k));k={};H.addProvider((k.provide=Ur,k.useClass=Ur,k[ox]=[_.kI,YC],k));k={};H.addProvider((k.provide=l4,k.useClass=l4,k[ox]=[YC],k));k={};H.addProvider((k.provide=tN,k.useClass=tN,k[ox]=[YC],k));k={};H.addProvider((k.provide=E2,k.useClass=E2,k[ox]=[_.eZ],k));k={};H.addProvider((k.provide=
F0,k.useClass=F0,k[ox]=[_.Wf],k));k={};H.addProvider((k.provide=aT,k.useClass=aT,k[ox]=[LB],k));k={};H.addProvider((k.provide=ck,k.useClass=ck,k[ox]=[LB],k));H.addProvider({provide:Sx,useClass:Sx});H.addProvider({provide:CB,useClass:CB});H.addProvider({provide:GR,useClass:GR});k={};H.addProvider((k.provide=fp,k.useClass=fp,k[ox]=[_.eZ,_.J7],k));H.addProvider({provide:ST,useClass:ST});k={};H.addProvider((k.provide=lW,k.useClass=lW,k[ox]=[_.kI,_.eZ],k));H.addProvider({provide:c7,useClass:c7});k={};
H.addProvider((k.provide=Or,k.useClass=Or,k[ox]=[YC,_.kI,_.hN],k));k={};H.addProvider((k.provide=xA,k.useClass=xA,k[ox]=[_.kI,_.J7],k));H.addProvider({provide:EbZ,useValue:cHW});H.addProvider({provide:wt0,useValue:TVX});H.addProvider({provide:i4,useClass:i4});k={};H.addProvider((k.provide=ex,k.useClass=ex,k[ox]=[YC],k));k={};H.addProvider((k.provide=RT,k.useClass=RT,k[ox]=[_.oe,_.J7],k));k={};H.addProvider((k.provide=G6,k.useClass=G6,k[ox]=[_.J7],k));k={};H.addProvider((k.provide=yU,k.useClass=yU,
k[ox]=[tv],k));H.addProvider({provide:NIi,useFactory:_.ya.getInstance});k={};H.addProvider((k.provide=Kp,k.useClass=Kp,k[ox]=[Cp,NIi,_.J7],k));H.addProvider({provide:X8,useClass:X8});H.addProvider({provide:Rk,useClass:Rk});H.addProvider({provide:mT,useClass:mT});H.addProvider({provide:_.T6,useClass:_.T6});H.addProvider({provide:nB,useClass:nB});k={};H.addProvider((k.provide=zR,k.useClass=zR,k[ox]=[tv],k));k={};H.addProvider((k.provide=ok,k.useClass=ok,k[ox]=[_.J7],k));k={};H.addProvider((k.provide=
qz,k.useClass=qz,k[ox]=[_.J7],k));k={};H.addProvider((k.provide=rM,k.useClass=rM,k[ox]=[_.J7],k));_.b("web_enable_prefetching_videos_on_home")&&(H.addProvider({provide:E3L,useClass:E3L}),H.addProvider({provide:yq,useClass:yq}));k={};H.addProvider((k.provide=Mz,k.useClass=Mz,k[ox]=[_.J7],k));H.addProvider({provide:Lp,useClass:Lp});k={};H.addProvider((k.provide=IT,k.useClass=IT,k[ox]=[_.kI,_.J7],k));k={};H.addProvider((k.provide=v7,k.useClass=v7,k[ox]=[_.J7],k));k={};H.addProvider((k.provide=j7,k.useClass=
j7,k[ox]=[_.kI,_.J7],k));H.addProvider({provide:Mii,useClass:Mii});H.addProvider({provide:N2B,useClass:N2B});H.addProvider({provide:kA,useClass:kA});k={};H.addProvider((k.provide=sr,k.useClass=sr,k[ox]=[tv,_.J7],k));H.addProvider({provide:dM,useClass:dM});k={};H.addProvider((k.provide=$A,k.useClass=$A,k[ox]=[tv,_.J7,_.kI],k));k={};H.addProvider((k.provide=AI,k.useClass=AI,k[ox]=[_.J7],k));k={};H.addProvider((k.provide=oT,k.useClass=oT,k[ox]=[_.J7,_.kI],k));k={};H.addProvider((k.provide=yk,k.useClass=
yk,k[ox]=[_.J7,_.kI],k));k={};H.addProvider((k.provide=Bk,k.useClass=Bk,k[ox]=[_.VI],k));k={};H.addProvider((k.provide=u4,k.useClass=u4,k[ox]=[_.VI],k));k={};H.addProvider((k.provide=Wk,k.useClass=Wk,k[ox]=[_.VI],k));H.addProvider({provide:b4,useClass:b4});H.addProvider({provide:vk,useClass:vk});H.addProvider({provide:Vk,useClass:Vk});H.addProvider({provide:YA,useClass:YA});H.addProvider({provide:gM,useClass:gM});H.addProvider({provide:pp,useClass:pp});H.addProvider({provide:JN,useClass:JN});H.addProvider({provide:_.dz,
useClass:mh});H.addProvider({provide:K4,useFactory:function(){return _.a3.getInstance()}});
H.addProvider({provide:iAB,useFactory:U5V});H.addProvider({provide:LB,useFactory:function(){return _.ed.getInstance()}});
H.addProvider({provide:ibA,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});k={};H.addProvider((k.provide=_.hJ,k.useClass=_.hJ,k[ox]=[_.VI,_.J7,_.Wf,iAB,LB,K4,ibA,dR],k));H.addProvider({provide:_.$L,useClass:X9A});H.addProvider({provide:_.ZY_,useClass:ndM});k={};H.addProvider((k.provide=QU,k.useClass=QU,k[ox]=[_.ZY_],k));k={};H.addProvider((k.provide=_.bA_,k.useFactory=function(h){return h.upliftCompletionResolver.promise},k[ox]=[T0I],k));
k=_.Q$("IS_SHELL_LOAD")?"aa":"eocs";var d=_.Q$("IS_SHELL_LOAD")?3:2;_.Yf().parkOrScheduleJob(function(){JaV()},d,k);
_.Yf().parkOrScheduleJob(function(){_.wj().resolve(Ok).start()},2,"eocs");
_.Yf().parkOrScheduleJob(function(){hLR()},2,"eocs");
_.Yf().parkOrScheduleJob(function(){_.wj().resolve(i_).start()},2,"eocs");
_.b("kevlar_debug_data_app_registration_ks")||GYQ();H.addProvider({provide:_.A8,useValue:new iV1(A.root)});H.addProvider({provide:CT,useValue:new Vuf});H.addProvider({provide:_.bVi,useValue:new J2B(A.root)});H.addProvider({provide:_.sJ,useValue:new g7Q});H.addProvider({provide:_.f1,useClass:dq});H.addProvider({provide:tCG,useClass:TQ});_.b("kevlar_network_sli_killswitch")||H.addProvider({provide:An_,useValue:D1N});H.addProvider({provide:tpe,useFactory:ZWr});k={};H.addProvider((k.provide=bCi,k.useFactory=
PYN,k[ox]=[_.bA_,YC,_.u_],k));k={};H.addProvider((k.provide=gg3,k.useClass=Hh,k[ox]=[bCi],k));H.addProvider({provide:ss_,useClass:og1});H.addProvider({provide:RCI,useClass:mCi});k=[].concat(_.fV(ZSf));k.push(_.Tc);k.push(jrZ);_.b("enable_share_panel_navigation_logging_fix_on_web")&&k.push(_.Qhw);H.addProvider({provide:n$m,useValue:k});H.addProvider({provide:Zlk,useClass:OCM});H.addProvider({provide:WRQ,useClass:HGL});k={};H.addProvider((k.provide=tNi,k.useClass=DX1,k[ox]=[tv],k));_.IE.addLowPriorityJob(function(){dgC()});
k={};H.addProvider((k.provide=ZUw,k.useFactory=function(h){return function(O){var T,m=(T=_.L(O.commandMetadata,_.wn))==null?void 0:T.url;if(!m)throw new _.Ti("No URL for PBJ Command",O);m=vB8(m,{pbj:"1"});T=Uwf(m,{})||{};T=Object.assign({},T,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.pZ("STS").toString()});O=_.oa({command:JSON.stringify(O),session_token:_.pZ("XSRF_TOKEN")});return h.fetch(m,{method:"POST",headers:T,body:O})}},k[ox]=[WRQ],k));
H.addProvider({provide:wI3,useFactory:function(){var h={};return h.CSI=w1r(),h.ECATCHER=faA(),h}});
H.addProvider({provide:aQG,useClass:olB});k=[];k.push(H.resolve(RCI));d={};d=(d.client_location=_.ya.getInstance(),d.consistency=_.khr(),d.entities=H.resolve(xx_),d.response_received_commands=H.resolve(Zlk),d.store=H.resolve(_.VNj),d.tokens=H.resolve(RCI),d.service_params=H.resolve(aQG),d);if(_.b("web_shorts_prefetch_service_enabled")){var W=new LMB(H.resolve(_.ng));d.shorts_prefetch=W}d.adblock_detection=H.resolve(tNi);_.b("web_enable_chunk_prediction")&&(H.addProvider({provide:_.yX,useClass:B0_}),
H.addProvider({provide:wVj,useClass:YaI}),d.mss=H.resolve(wVj),_.Y3(window,"yt-navigate-start",function(h){var O;h=(O=h.detail)==null?void 0:O.endpoint;var T;if(O=(T=_.L(h==null?void 0:h.commandMetadata,_.wn))==null?void 0:T.rootVe){T=_.pZ("VE_TYPE_TO_XIDS",{});var m,J;h=(J=(m=T["0"])==null?void 0:m.xids)!=null?J:[];var g,v;m=(v=(g=T[O])==null?void 0:g.xids)!=null?v:[];g=h.concat(m);if(O in T&&g.length>0){var y;(y=xU_(_.wj().resolve(_.yX),g))==null||y()}}}));
H.addProvider({provide:_.Qv,useClass:_.Qv});W=H.resolve(X4R);var z=[];_.b("PremiumClientSharedConfig__enable_att_context_processor")&&(H.addProvider({provide:fKi,useClass:M_B}),z.push(H.resolve(fKi)));if(_.b("owl_pl_await")){var u={};H.addProvider((u.provide=aRB,u.useFactory=function(h){return new Ct_(h)},u[ox]=[_.Qv],u));
z.push(H.resolve(aRB))}oQZ(W,H.resolve(WRQ),H.resolve(lR_),d,H.resolve(_.ng),k,z,H.resolve(gg3),H.resolve(ss_));H.addProvider({provide:_.kI,useValue:_.yI.instance});_.b("start_client_gcf")&&H.addProvider({provide:Jb,useValue:tck()});H.addProvider({provide:vU3,useFactory:function(){return new vU3(_.wj().resolve(_.Qv),_.ed.getInstance())}});
_.Yf().parkOrScheduleJob(function(){ya_()},1,"eocs");
k={};H.addProvider((k.provide=LtB,k.useClass=LtB,k[ox]=[_.u_,_.kI],k));H.addProvider({provide:_.$UM,useFactory:_.vc.getInstance});_.Yf().parkOrScheduleJob(function(){_.wj().resolve(LtB).refresh()},0,"eocs");
H.addProvider({provide:_.eK,useClass:VB_});_.b("kevlar_signal_collection_killswitch")||(k={},H.addProvider((k.provide=sVR,k.useClass=sVR,k[ox]=[Cp,m2],k)),_.Yf().parkOrScheduleJob(function(){_.wj().resolve(sVR).record()},1,"eocs"));
_.b("web_debug_handler_registration_killswitch")||_.Yf().parkOrScheduleJob(function(){Y_I("DOWNLOAD_PES",En8);_.b("offline_client_state_export_ks")||Y_I("OFFLINE_CLIENT_STATE",pPW)},0,"eocs");
_.b("kevlar_prevent_polymer_dynamic_font_load")&&_.Yf().parkOrScheduleJob(function(){var h=[_.Ia(hJL),_.Ia(OGQ)];h=_.r(h);for(var O=h.next();!O.done;O=h.next()){O=O.value;var T=document.createElement("link");_.TM(T,O,"stylesheet");document.head.appendChild(T)}},1,"eocs");
k=A.injector.resolve(_.kI);_.ZVV.instance=new _.ZVV(k);R$b(Q4L(new n7B(k)));k={};A.injector.addProvider((k.provide=tb,k.useFactory=function(h){(h=h==null?void 0:h.getCurrentPage())?h=h.visibilityObserver:(tMG||(tMG=rl8()),h=tMG);return h},k[ox]=[_.fZ(_.SO)],k.skipCache=!0,k));
H.addProvider({provide:_.L6,useClass:Dz});H.addProvider({provide:k0,useClass:EaN});A.injector.addProvider({provide:K2A,useValue:xX_});H.addProvider({provide:yFj,useValue:XXG});H.addProvider({provide:STw,useValue:XEf});H.addProvider({provide:_.sF,useValue:lFW});A=H.addProvider;kPL||(kPL=new sxL);A.call(H,{provide:_.JJ,useValue:kPL});H.addProvider({provide:_.ju,useValue:_.pZ("HTML_DIR")==="rtl"?"rtl":"ltr"});H.addProvider({provide:L_i,useClass:SG3});H.addProvider({provide:_.M0,useClass:mP1});_.wj().addProvider({provide:yeV,
useValue:_.b("enable_web_delhi_icons")?Ka1.concat(cbR):Cl3.concat(a7L)});H.addProvider({provide:_.GPM,useClass:_.GPM});H.addProvider({provide:_.eJG,useValue:new B2_});H.addProvider({provide:xRB,useClass:ut1});H.addProvider({provide:Pk,useClass:Pk});H.addProvider({provide:X0,useClass:X0});A={};H.addProvider((A.provide=wR,A.useClass=wR,A[ox]=[_.kI,_.eZ],A));H.addProvider({provide:ZN,useClass:ZN});H.addProvider({provide:GwI,useClass:ZAG});H.addProvider({provide:KB,useClass:KB});H.addProvider({provide:VzG,
useValue:j$J});H.addProvider({provide:_.QR,useClass:B5B});_.b("enable_payments_purchase_manager")&&H.addProvider({provide:AeL,useClass:wXM});H.addProvider({provide:cee,useFactory:function(){return function(h){return _.iG_(h)}}});
H.addProvider({provide:_.eCI,useClass:xCQ});A={};H.addProvider((A.provide=Nz,A.useClass=Nz,A[ox]=[_.eCI],A));H.addProvider({provide:DN,useClass:DN});H.addProvider({provide:LG3,useValue:s4L});H.addProvider({provide:zlw,useValue:_.eVI});H.addProvider({provide:lCN,useClass:nUB});H.addProvider({provide:WFB,useValue:O5L});A={};H.addProvider((A.provide=zVi,A.useClass=qDB,A[ox]=[WFB],A));A={};H.addProvider((A.provide=_.uv,A.useClass=mGR,A[ox]=[zVi],A));A={};H.addProvider((A.provide=_.b_,A.useClass=ElV,A[ox]=
[_.O7,_.f1],A));if(_.b("web_explore_hub_on_hover")||_.b("web_client_explore_hub_on_hover"))A={},H.addProvider((A.provide=Dm,A.useClass=Dm,A[ox]=[_.kI,K4],A));if(_.b("web_enable_renderer_logger")){var B=new TyC;uYI(function(){B.abort()});
H.addProvider({provide:szr,useValue:new dUL(B.signal)})}H.addProvider({provide:cIi,useValue:wcb});H.addProvider({provide:C7m,useClass:v3V});_.b("web_use_flow_state_manager")&&(H.addProvider({provide:_.z6,useClass:iYR}),A={},H.addProvider((A.provide=qf,A.useClass=qf,A[ox]=[_.z6],A)),A={},H.addProvider((A.provide=rR,A.useClass=rR,A[ox]=[_.O7,_.z6],A)),A={},H.addProvider((A.provide=uW,A.useClass=uW,A[ox]=[_.O7,_.z6,_.J7],A)),A={},H.addProvider((A.provide=B7,A.useClass=B7,A[ox]=[_.kI,_.J7],A)),A={},H.addProvider((A.provide=
eT,A.useClass=eT,A[ox]=[_.z6,_.J7],A)))}},N_G);var nJV={},ZTI=(nJV.initialized={priority:10,callback:function(){if(!$PL){Z3A();$$8("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.q4(_.H0($$8,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.b("log_heartbeat_with_lifecycles")){var A={};S3.instance||(S3.instance=new S3);S3.instance.install((A.document_visible={callback:A5I,priority:10},A.document_hidden={callback:A5I,priority:10},A))}else _.NG(document,"visibilitychange",A5I);$PL=!0}(A=_.hx())&&A!=="UNDEFINED_CSN"&&W1A(A)}},nJV);var f7Q={},wqQ=(f7Q.initialized={callback:function(A){var H=_.t8(232091),k=A.injector.resolve(_.Wf);_.n4(k,H);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?SCA()&&_.f4(k,H):(A=A.injector.resolve(cee)("refresh_detector"))&&(A.get("first_tab_load")?_.f4(k,H):A.set("first_tab_load","1"))}},f7Q);var oJI={},$VM=(oJI.initialized={priority:0,callback:function(){var A=new i5A,H="other";_.wK?H="chrome":_.f6?H="firefox":_.Dq?H="safari":N4&&(H="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(k){A.increment(_.hn(),k,H)}).catch(function(){A.increment(_.hn(),!1,H)}):A.increment(_.hn(),!1,H)}},oJI);var AMQ={},HPe=(AMQ.rendering={priority:8,callback:CIj},AMQ);var s0L={},kbL=(s0L.rendering={priority:10,callback:o8J},s0L.rendered={callback:fQA},s0L),doe={},WbM=(doe.rendering={callback:o8J},doe.rendered={callback:fQA},doe);var zj3=!1,qZL={},rM3=(qZL.initialized={priority:10,callback:function(){zj3||(OHC({didPatch:function(A){A.el&&iuf(A.el,A.props)},
didUnmount:function(A){eoQ(A.el)}}),zj3=!0)}},qZL);var uF1=/^\/shorts\/?$/;_.cI("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:{}}}}}}});_.b("kevlar_use_common_module_manager_ks")?(_.cn8(new $v1),XlC()):Akw();
(function(){var A=document.querySelector("ytd-app");if(!A)throw Error("ak");WnC();A=new LR({root:A,injector:_.wj()});A.install(ZTI);var H={};A.install((H.initialized={priority:10,callback:ZEQ},H));_.b("wp_lat_b")&&(H={},A.install((H.initialized={priority:10,callback:function(){NgC()}},H)));
H={};A.install((H.rendered={priority:0,callback:NBX},H));H={};A.install((H.rendered={priority:0,callback:function(){_.IE.addLowPriorityJob(function(){_.Cf3>1&&(pbm(),lAl())},4E4)}},H));
A.install(E6V);A.install(wqQ);A.install(rM3);vMr();A.install(o6B);A.install(KR_);A.install(QPB);A.install(Z$V);A.install(Aa1);A.install(fqB);A.install(MML);A.install(cn1);A.install($VM);if(!_.Q$("IS_SHELL_LOAD")||_.b("kevlar_fetch_initial_data_promise_client")||_.b("sw_nav_preload_pbj")){var k=_.Nx(window.location.href);H=k&&k==="/watch";k=k&&k.match(uF1);H?A.install(WbM):k?A.install(HPe):A.install(kbL)}else A.install(D4V);A.install(lqL);_.b("web_enable_prefetching_videos_on_home")&&A.install(sER);
_.b("start_client_gcf")&&A.install(fR1);A.install(lde);(new hXw).increment("INSTALLED");A.install(AfB);A.install(GiM);A.transition("initialized");cLv();Y$b()})();
_.UA=[[["amg1ZGN4a2luZCN4eGp1OWk=","NHkwMzJzdmFsdWUjeW5qajV1"],"djk2YXk0QURfUExBQ0VNRU5UX0tJTkRfUEFVU0UjbmxjeWxt"]];_.EA=["bG1ucDFnZ2xvYmFsQ2FsbGJhY2tzIzhraGxpdA==","ZHF1Z2xib25BYm5vcm1hbGl0eURldGVjdGVkIzk1dXlsag==","YmF2NDZqb25BZFNraXAjM3p0b3Ft","ajJ3ZzVzcmF3X3BsYXllcl9yZXNwb25zZSN0YXZ3bTU=","azlwb3o2cmVuZGVyaW5nQ29udGVudCMyeXRtbW8="];_.Sd="bG1ucDFnZ2xvYmFsQ2FsbGJhY2tzIzhraGxpdA== ZHF1Z2xib25BYm5vcm1hbGl0eURldGVjdGVkIzk1dXlsag== YmF2NDZqb25BZFNraXAjM3p0b3Ft ajJ3ZzVzcmF3X3BsYXllcl9yZXNwb25zZSN0YXZ3bTU= eHoxcTBnd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2J4dGU4Zg== YnlpcGpoYWJfc2FfZWYjbm5xendy azlwb3o2cmVuZGVyaW5nQ29udGVudCMyeXRtbW8=".split(" ");

_._ModuleManager_initialize=function(A,H){if(!_.Jw){if(!_.gF)return;_.cn8(_.gF())}_.Jw.setAllModuleInfoString(A,H)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy5/sy2:2/sy3:2/sy4/sy6/sy7:1,2,6/hU04te/kevlar_main_module:3,4,7,8/dpUCFd/U9vrqd/n0DHg/HwlOhd/JoU6vf/dIvQ6c/m9Vw4/mcjWUc/QiZf0e:7/f8YPh:3/b3MoKf:4/NSzT5:5',['sy5','sy6','sy1','sy4','sy3','sy2','sy7','hU04te','NSzT5','b3MoKf','f8YPh','QiZf0e','mcjWUc','m9Vw4','dIvQ6c','JoU6vf','HwlOhd','n0DHg','U9vrqd','dpUCFd','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.GbV=function(A,H){if(_.b("web_enable_chat_autoscroll_to_user_turn")&&A&&H)return A-4+"px"};
}catch(e){_._DumpException(e)}
try{
var ToV,JM1;_.CR=function(A){var H=A.clientMessageId;var k=A.playerOffsetMs;var d=A.pageContext;A=A.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:H},!!k&&{playerOffsetMs:k},!!d&&{pageContext:d},!!A&&{userInputText:A})}};
_.RjI=function(A,H,k){H=H===void 0?5:H;if(H!==0){var d=typeof A==="function"?A():document.querySelector(A);d?(k==null?0:k.enableSmartFocus)?_.CCm(d):d.focus():setTimeout(function(){_.RjI(A,H-1,k)},500)}};
ToV=function(A,H){return _.Mw(A.entities,"inlineExpansionEntity",H)};
_.mo_=function(A){return{continuationCommand:{token:A,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
JM1=function(A,H){if(H)return"ytCardViewModelCardSelected";switch(A){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
_.gYR=function(A,H){return _.Mw(A.entities,"youchatPendingResponseEntity",H)};
_.bPB=function(A){return function(H){_.XI(_.kH("youchatPendingResponseEntity",A,{entityKey:A,isPendingResponse:H}))}};_.vY_=_.c(function(A){var H=A.data;var k=function(){var d;return _.hc((d=H())==null?void 0:d.rendererContext)};
A={};return _.x("content-list-item-view-model",{el:_.P8(_.OF(function(){return H().rendererContext})),
class:_.ER("ytContentListItemViewModelHost",(A.ytContentListItemViewModelTappable=k,A)),role:function(){return k()?"listitem":void 0},
tabindex:function(){return k()?0:void 0},
"on:keydown":_.BG()},_.x("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.x("div",{class:"ytContentListItemViewModelImageContainer"},_.x(_.R,{cond:function(){return H().image},
then:function(d){return _.x(_.GA,{data:d,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.x(_.HG,{data:function(){var d;
return(d=H())==null?void 0:d.avatar}},{avatarViewModel:_.RW})),_.x("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.x("div",{class:_.ER("ytContentListItemViewModelTitle",function(){a:{switch(H().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var d="ytContentListItemViewModelProminentTitle";
break a}d=void 0}return d})},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytContentListItemViewModelMetadata"},_.x(_.HG,{data:function(){return H().metadata}},{contentMetadataViewModel:function(d){return _.x(_.MO,{data:d.data,
layout:1})}})))),_.x("div",{class:"ytContentListItemViewModelActionButton"},_.x(_.HG,{data:function(){var d;
return(d=H())==null?void 0:d.actionButton}},{buttonViewModel:_.U7,
toggleButtonViewModel:_.qc})))},"xh");var yMB=_.c(function(A){var H=A.data,k=function(){var W;return(W=H())==null?void 0:W.description},d=function(){var W;
return(W=H())==null?void 0:W.title};
return _.x("ytfc-youth-basic-section-header-view-model",{class:_.ER("ytfcYouthBasicSectionHeaderViewModelHost",A.className)},_.x("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.x(_.HG,{data:function(){var W;return(W=H())==null?void 0:W.avatar}},{avatarViewModel:_.RW}),_.x(_.R,{cond:function(){var W;
return _.vG((W=H())==null?void 0:W.themedImage)},
then:function(W){return _.x(_.GA,{data:W,alt:function(){var z,u;return(u=(z=d())==null?void 0:z.content)!=null?u:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.x("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.x(_.R,{cond:d,
then:function(){return _.x(_.j$,{text:d,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.x("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.x(_.HG,{data:function(){var W;
return(W=H())==null?void 0:W.bottomBadge}},{badgeViewModel:function(W){return _.x("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.x(_.CK,{data:W.data}))}}),_.x(_.R,{cond:k,
then:function(){return _.x(_.j$,{text:k,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"yh");var j0Q=_.c(function(A){var H=A.data;return _.x("ytfc-youth-section-body-view-model",{class:_.ER("ytfcYouthSectionBodyViewModelHost",A.className)},_.x(_.HG,{data:function(){var k;return(k=H())==null?void 0:k.topContent}},{avatarStackViewModel:function(k){return _.x(_.mE,{data:k.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.x(_.j$,{text:function(){var k;
return(k=H())==null?void 0:k.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"zh");var IcV=_.c(function(A){var H=_.r(_.RV(!1,void 0,"SrK51e")),k=H.next().value,d=H.next().value,W=function(){return A.data().inlineExpansionEntityKey},z=_.o9(ToV,W),u=function(){if(A.isSelected!==void 0)return A.isSelected();
if(W()){var h;return(h=z())==null?void 0:h.expanded}return k()};
H={};var B={};return _.x("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.lc(function(){A.isSelected!==void 0||W()||d(!k())})},_.x("div",{class:"ytInlineExpanderViewModelHeader"},_.x(_.HG,{data:function(){return A.data().headerContent}},{youthBasicSectionHeaderViewModel:yMB}),_.x("div",{class:_.ER("ytInlineExpanderViewModelButton",(H.ytInlineExpanderViewModelButtonExpanded=u,H))},_.x(_.E7,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:u(),accessibilityLabel:u()?_.$r("SHOW_LESS",void 0,"Show Less"):_.$r("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.x("div",{class:_.ER("ytInlineExpanderViewModelBody",(B.ytInlineExpanderViewModelBodyExpanded=u,B)),"aria-hidden":function(){return!u()}},_.x("div",{class:"ytInlineExpanderViewModelBodyContent"},_.x(_.HG,{data:function(){return A.data().bodyContent}},{youthSectionBodyViewModel:j0Q}))))},"Ah");var YZ3=new _.SE("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.PoG=_.c(function(A){var H=function(){return A.data().background},k=function(){return A.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},d=function(){return A.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},W=_.wj().resolve(_.fZ(YZ3)),z={};
return _.x("yt-card-view-model",{el:_.P8(_.OF(function(){return A.data().rendererContext})),
class:_.ER("ytCardViewModelHost",A.className,(z.ytCardViewModelClickable=function(){return _.i2(A.data().rendererContext)},z))},_.x(_.nK,{contentId:function(){return A.data().contentId}},function(){var u={};
return _.x("div",{class:_.ER("ytCardViewModelCardViewModelInner",function(){var B;return JM1(A.data().cardStyle,(B=A.isSelected)==null?void 0:B.call(A))},function(){if(A.isSelected===void 0){var B;
a:{switch((B=A.data().cardState)==null?void 0:B.selectionState){case "CARD_SELECTION_STATE_SELECTED":B="ytCardViewModelSelected";break a}B=void 0}return B}})},_.x(_.HG,{data:H},{cinematicContainerViewModel:function(B){return _.x(_.Kre,{data:B.data})}}),_.x("div",{class:"ytCardViewModelContentWrapper"},_.x(_.R,{cond:function(){return!k()},
then:function(){var B={},h={};return _.x("div",{class:"ytCardViewModelTopContentContainer"},_.x("div",{class:_.ER("ytCardViewModelTopContent",(B.ytCardViewModelInnerPadding=function(){return!A.data().disableTopContentPadding&&A.data().topContent},B))},_.x(_.HG,{data:function(){return A.data().topContent}},{contentListItemViewModel:function(O){return _.x(_.vY_,{data:O.data})},
basicContentViewModel:_.YG,linearLayoutViewModel:_.Fx})),_.x("div",{class:_.ER("ytCardViewModelInlineTrailingAction",(h.ytCardViewModelInlineCenterTrailingAction=d,h.ytCardViewModelInlineTrailingActionMargin=function(){return A.data().trailingAction},h))},_.x(_.HG,{data:function(){return A.data().trailingAction}},{buttonViewModel:function(O){return _.x(_.U7,{data:O.data})}})))}}),_.x("div",{class:_.ER((u.ytCardViewModelInnerPadding=function(){return!A.data().disableBodyContentPadding&&A.data().bodyContent},
u))},_.x(_.HG,{data:function(){return A.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.UV_,
contentListItemViewModel:_.vY_,descriptionPreviewViewModel:_.sf,inlineExpanderViewModel:function(B){return _.x(IcV,{data:B.data,isSelected:A.isSelected})},
linearLayoutViewModel:_.Fx,listItemViewModel:_.G$},W&&{contentSectionViewModel:W})))),_.x(_.R,{cond:function(){return k()},
then:function(){return _.x("div",{class:"ytCardViewModelOverlayTrailingAction"},_.x(_.HG,{data:function(){return A.data().trailingAction}},{buttonViewModel:function(B){return _.x(_.U7,{data:B.data})}}))}}))}))},"Bh");
}catch(e){_._DumpException(e)}
try{
var SZB;_.KR=function(A){var H=document.createElement("link");_.TM(H,A,"stylesheet");document.head.appendChild(H)};
_.af=function(A,H){var k,d;return _.e(function(W){k=document.createElement("div");k.id=A.id;A.className&&(k.className=A.className);d=A.element;if(!d)throw Error("bk");if(A.location==="prepend")d.prepend(k);else if(A.location==="appendChild")d.appendChild(k);else if(A.location==="after")d.after(k);else throw Error("ck");return W.return(_.DR(k,H,"Gh"))})};
_.cc=function(A){var H;return _.e(function(k){(H=document.getElementById(A))&&H.remove();_.EN(k)})};
_.pR=function(A,H){var k=document.querySelector(A);k?H(k):setTimeout(function(){_.pR(A,H)},1E3)};
_.CoV=function(A,H,k){var d;_.e(function(W){if(W.nextAddress==1)return(d=document.getElementById(A))?W.jumpTo(2):W.yield(SZB(A,H,k),2);if(d=document.getElementById(A))d.style.display="block";_.EN(W)})};
SZB=function(A,H,k){return _.e(function(d){return d.return(new Promise(function(W){_.pR("div #panels",function(z){_.af({element:z,location:"appendChild",id:A,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+k},H);W()})}))})};_.Qq=_.c(function(A){var H=A.text;var k=A.onClick;var d=A.color;var W=A.backgroundColor;var z=A.buttonSize;var u=A.disabled;var B=A.iconName;var h=A.iconSize;var O=A.className;var T=A.iconClassName;A=A.ariaLabel;var m=_.lc(function(g){k(g)}),J={};
return _.x("button",{class:_.ER("ytpStandardButtonsHost",(J.ytpStandardButtonsLarge=function(){return(z==null?void 0:z())==="large"},J),O),
"on:click":m,style:_.Mt({color:d,"background-color":W}),disabled:u,"aria-label":A},_.x(_.R,{cond:B,then:function(){return _.x(_.n3,{className:_.ER("ytpStandardButtonsIconContainer",T),icon:B,size:h})}}),H)},"Fh");_.KbB=_.c(function(A){var H,k,d={};return _.x("div",{class:_.ER("ytprototypesEngagementPanelComponentHost",(d.ytprototypesEngagementPanelComponentHostMweb=A.isMweb,d),A.className),id:A.id},_.x("div",{class:_.ER("ytprototypesEngagementPanelComponentEngagementPanelHeader",A.headerClassName)},_.x("div",null,A.header()),_.x("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.x("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(H=A.HeaderButton)==null?void 0:H.call(A)),
_.x(_.Qq,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var W;(W=A.onHide)==null||W.call(A);var z;if((z=A.preventDefault)==null||!z.call(A))if(W=A.id(),W=document.getElementById(W))W.style.display="none"}}))),_.x("div",{class:_.ER("ytprototypesEngagementPanelComponentEngagementPanelContent",A.contentClassName),
style:function(){var W,z;return"height: "+(((W=A.height)==null?0:W.call(A))||((z=A.isMweb)==null?0:z.call(A))?"100%":"800px")+";"}},A.content()),_.x("div",null,(k=A.Footer)==null?void 0:k.call(A)))},"Hh");
}catch(e){_._DumpException(e)}
try{
var Do1=function(A){if(A.backgroundStyle)switch(A.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return A.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};_.spA=_.c(function(A){var H=function(){return A.data().choiceSelectedText};
return _.x("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.Mt({"min-height":function(){var k,d;return _.GbV((k=A.containerHeight)==null?void 0:k.call(A),(d=A.isLastItem)==null?void 0:d.call(A))}}),
"data-target-id":function(){var k;return(k=A.data().itemTargetId)!=null?k:""}},_.x(_.R,{cond:H,
then:function(){return _.x("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.x(_.j$,{text:H}))}}),_.x("div",{class:_.ER("ytChatUserTurnViewModelUserMessage",function(){return Do1(A.data())})},function(){return A.data().text}))},"Eh");
}catch(e){_._DumpException(e)}
try{
var Xu_=function(A){A=_.L(A,Fbe);if(A==null?0:A.trustedAnimationUrl){var H;return(H=_.Yh(A.trustedAnimationUrl))==null?void 0:H.toString()}return A==null?void 0:A.animationUrl},Fbe=new _.Dt("lottieAnimationViewModel");_.k0i=_.c(function(A){var H=function(){var z;return((z=_.wj().resolve(_.fZ(_.sF)))==null?0:z())&&A.data().darkThemeAnimation?Xu_(A.data().darkThemeAnimation):A.data().animation?Xu_(A.data().animation):A.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},k=_.nj(),d=_.wj().resolve(_.ju);
_.Sp(function(){requestAnimationFrame(function(){var z;(z=k.lottieEl)==null||z.addEventListener("DOMLoaded",function(){var u;(u=A.onLottieLoaded)==null||u.call(A)})})});
var W={};return _.x("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){return A.data().targetId||""},
"aria-label":function(){return A.data().loadingAnimationA11yLabel||""},
role:function(){return A.data().loadingAnimationA11yLabel?"progressbar":void 0},
style:_.Mt({"min-height":function(){var z,u;return _.GbV((z=A.containerHeight)==null?void 0:z.call(A),(u=A.isLastItem)==null?void 0:u.call(A))}})},_.x(_.Zb,{"aria-hidden":"true",
className:_.ER((W.ytChatLoadingViewModelRtl=d==="rtl",W)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:H()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||H()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:H()}}},
animationRef:k}))},"Dh");
}catch(e){_._DumpException(e)}
try{
var ac_,pu_,Q0B,EY3,Uoi;ac_=function(A){return String.raw.apply(String,[{raw:A}].concat(_.fV(_.o7.apply(1,arguments).map(function(H){return H instanceof Array?H.join(""):H}))))};
pu_=function(A){var H=_.o7.apply(1,arguments),k=H.length;if(!Array.isArray(A)||!Array.isArray(A.raw)||A.length!==A.raw.length||!_.OYi&&A===A.raw||!(_.OYi&&!_.R4Q||_.VB(A))||k+1!==A.length)throw new TypeError("aa");return new cM3(Object.freeze({strings:Object.freeze(A),args:Object.freeze(H)}))};
Q0B=function(){return _.o7.apply(0,arguments).flat().filter(function(A){return A}).join(";")};
EY3=function(){return pu_(V8B,Q0B.apply(null,_.fV(_.o7.apply(0,arguments))))};
Uoi=function(A){A==null||A.addEventListener("DOMLoaded",function(){A.goToAndPlay(A.totalFrames-48,!0)})};
_.$U=function(A){this.__isSoyCss=!0;this.css=ac_.apply(null,[A.strings].concat(_.fV(A.args)))};
_.$U.prototype.toString=function(){return this.css};
var cM3=function(){_.$U.apply(this,arguments)};
_.I(cM3,_.$U);var V8B=_.XO(["",""]);var lcL=_.c(function(A){var H=void 0,k=function(){return A.data()},d=function(){return!!_.Bl(_.ry(k())).optionColor},W=_.r(_.RV(-1,void 0,"m6Iyqc")),z=W.next().value,u=W.next().value,B=function(J){return z()===J},h=function(J){return k().correctAnswerIndex===J},O=function(){return z()!==-1};
W=_.r(_.RV("",void 0,"jvMkLd"));var T=W.next().value,m=W.next().value;return _.x("yoututor-quiz-view-model",{class:_.ER("learningQuizComponentHost","learningYoututorQuizHost",A.className),style:_.Mt({background:function(){return _.Bl(_.ry(k())).backgroundColor}})},_.x("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},T),_.x("div",{class:"learningQuizComponentQuizContainer"},_.x("div",{class:"learningQuizComponentQuiz"},_.x("div",{class:"learningQuizComponentQuizContent"},_.x(_.R,{cond:function(){return!!k().aiGeneratedQuizLabel},
then:function(){return _.x("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.x(_.j$,{text:function(){return k().aiGeneratedQuizLabel}}))}}),_.x("div",{class:"learningQuizComponentQuizHeader"},_.x("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.x("div",{class:"learningYoututorQuizText",
style:_.Mt({color:function(){return _.Bl(_.ry(k())).primaryTextColor}})},_.x(_.j$,{text:function(){return k().questionHeaderText}}))))),_.x("div",{role:"group",
class:_.ER("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.x(_.Ix,{each:function(){return k().optionsData||[]}},function(J,g){var v={};
return _.x("button",{class:_.ER("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(v.learningQuizComponentQuizHover=function(){return!O()},v.learningQuizComponentQuizOptionWithCustomColor=d,v.learningYoututorQuizOptionSelectedCorrectOutline=function(){return O()&&h(g())},v.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return z()!==k().correctAnswerIndex&&B(g())},v.learningQuizComponentQuizIncorrectShake=function(){return z()!==
k().correctAnswerIndex&&B(g())},v)),
"on:click":_.lc(function(){_.vn(_.A7(),{data:J});if(O())return!1;u(g());m(h(g())?k().correctAnswerAriaLabel||"":k().incorrectAnswerAriaLabel||"");return!1}),
style:_.Mt({background:"transparent"}),"aria-description":function(){return O()?h(g())?k().correctAnswerAriaLabel:k().incorrectAnswerAriaLabel:""},
"aria-disabled":O,el:_.P8(function(y){_.eY(271905,y,H,function(X){H=X})}),
"client-ve-type":271905},_.x("div",{class:"learningQuizComponentQuizOptionContainer"},_.x(_.j$,{text:J.optionText}),_.x(_.R,{cond:function(){var y=g();return O()&&(B(y)||h(y))},
then:function(){var y={};return _.x(_.n3,{className:_.ER("learningYoututorQuizOptionIcon",(y.learningQuizComponentQuizPulse=function(){return z()===k().correctAnswerIndex&&h(g())},y)),
size:24,icon:function(){return h(g())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.x(_.R,{cond:O,
then:function(){return _.x("div",{class:"learningYoututorQuizExplanationContainer"},_.x("div",{class:"learningYoututorQuizExplanationText"},_.x(_.j$,{text:function(){return k().explanationHeaderText}})),_.x(_.j$,{text:function(){return k().optionsData[z()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Ih");
lcL.idomCompat=!0;var t8G=_.c(function(A){var H=A.thumbsUp,k=A.thumbsDown,d=A.rightAlignThumbs;A=_.r(_.RV(!1,void 0,"OxPsH"));var W=A.next().value,z=A.next().value;A=_.r(_.RV(!1,void 0,"V5vWne"));var u=A.next().value,B=A.next().value;A={};return _.x("div",{class:_.ER("ytwThumbsUpDownThumbs",(A.ytwThumbsUpDownRightAlign=function(){return d==null?void 0:d()},A))},_.x(_.qc,{data:H,
onToggle:function(h){z(h);u()&&B(!1)},
buttonShapeOverrides:function(){return{toggled:W()}}}),_.x(_.qc,{data:k,
onToggle:function(h){B(h);W()&&z(!1)},
buttonShapeOverrides:function(){return{toggled:u()}}}))},"Jh");
t8G.idomCompat=!0;var M8B=_.c(function(A){var H=function(){return A.data().pendingStateEntityKey||""},k=_.o9(_.gYR,H),d=function(){var B;
if(!(B=A.disabled())){var h;B=!((h=k())==null||!h.isPendingResponse)}return B},W=_.r(_.RV(EY3(""),void 0,"Q6q6y")),z=W.next().value,u=W.next().value;
_.Sp(function(){requestAnimationFrame(function(){var B=A.data().onShowAnimationMs||0;B=B>0?EY3("--chip-animation-duration: "+B+"ms;"):EY3("");u(B)})});
return _.x("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:z},_.x(_.Ix,{each:function(){return A.data().chipData||[]},
keyBy:"REFERENCE"},function(B){return _.x(No_,{data:B,disabled:d,pendingStateKey:H,onError:A.onError})}))},"Lh"),No_=_.c(function(A){var H=_.FQ("button"),k=_.r(_.RV(!0,void 0,"baSFEf")),d=k.next().value,W=k.next().value,z=function(){return A.data().text.content},u=function(){return A.data().transparentWhenLoading},B=_.oy(_.yP.currentPageSubTypeSelector),h=function(){var T;
return(T=_.wj().resolve(_.fZ(_.Ju)))==null?void 0:_.a81(T,B())},O=_.lc(function(T){var m,J,g,v,y,X,D,K;
return _.e(function(N){switch(N.nextAddress){case 1:T.stopPropagation();if(A.disabled())return N.return();J=String(Math.floor(((m=_.MN())==null?void 0:m.getCurrentTime())||0)*1E3);g="youchat-"+Date.now();v=function(){_.OR(A.data().onClick||{});var U=_.mo_(A.data().continuation),p=_.CR({clientMessageId:g,playerOffsetMs:J,pageContext:h()});return new Promise(function(M,Z){_.OR(U,{form:{formData:p},commandController:{onSuccess:function(WV,hA){M(hA)},
onServerError:function(WV,hA){Z(hA.error)}}})})};
y=_.bPB(A.pendingStateKey());y(!0);_.RjI("#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");W(!1);_.S_(N,2);return N.yield(v(),4);case 4:_.QN(N,3);break;case 2:X=_.VA(N),(K=(D=A).onError)==null||K.call(D,X);case 3:y(!1),_.EN(N)}})});
return _.x(_.R,{cond:d,then:function(){return _.x("div",{class:"ytwYouChatChipsDataChipWrapper"},_.x("button",{el:H,class:"ytwYouChatChipsDataChip","data-disabled":A.disabled,"data-transparent-loading":u,"on:click":O,tabindex:0},z))}})},"Mh");var nY_=_.c(function(A){var H=A.data;var k=A.initiallyExpanded;var d=function(){var O;return(O=H().conversationResourceData)==null?void 0:O.learningGuideData};
A=_.r(_.C0(function(){var O;return(O=k==null?void 0:k())!=null?O:!1}));
var W=A.next().value,z=A.next().value,u=function(){var O,T=_.L((O=d())==null?void 0:O.expandButton,_.vY);T&&_.vn(_.A7(),{data:T});z(!0)},B=_.be(function(){var O,T;
return(T=(O=d())==null?void 0:O.sections)!=null?T:[]},void 0,"V7sYqc"),h=_.be(function(){return B().length>4},void 0,"GFFPnd");
A=_.be(function(){var O;return!W()&&h()&&(O=d())!=null&&O.expandButton?B().slice(0,4):B()},void 0,"Rbi7Ke");
return _.x("yt-conversation-resource-view-model",{class:_.ER("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.x(_.HG,{data:A},{expandableMetadataViewModel:_.eVI}),_.x(_.R,{cond:function(){return h()&&!W()},
then:function(){return _.x("div",{id:"showMoreButton"},_.x(_.HG,{data:function(){var O;return(O=d())==null?void 0:O.expandButton}},{buttonViewModel:function(O){return _.x(_.U7,{data:O.data,
onClick:u})}}))}}))},"Nh");_.LbB=_.c(function(A){var H=_.b("web_enable_youchat_ux_changes"),k=function(){var p,M;return((p=A.data().text)==null?void 0:p.content)||((M=A.data().textContent)==null?void 0:M.content)||""},d=function(){var p,M;
return(p=A.data().webData)==null?void 0:(M=p.textResult)==null?void 0:M.content},W=_.wj().resolve(_.ju),z=_.nj(),u=function(){return A.data().chatResponseStyle},B=function(){return!A.data().transparentBackground},h=function(){return A.data().rightAlignThumbs},O=function(){return A.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||A.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"||!!A.data().icon},
T=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:O()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:A.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},m=function(){var p,M;
return A.data().webData||((p=A.data().text)==null?void 0:p.content)||A.data().videoResultsData||A.data().conversationResourceViewModel||A.data().quiz||A.data().yoututorQuiz||A.data().richContent||A.data().content||((M=A.data().textContent)==null?void 0:M.content)},J=function(){return!!A.data().sectionHeader||m()},g=function(){return A.data().hideIcon||u()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||u()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:J()},v=function(){var p;
return(p=A.data().videoResultsData)==null?void 0:p.videoShelf},y=function(){var p;
return(p=A.data().webData)==null?void 0:p.sourcesShelf},X=function(){return u()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||u()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:A.data().thumbsDownViewModel&&A.data().thumbsUpViewModel},D=function(){return _.L(A.data().thumbsUpViewModel,_.jG)},K=function(){return _.L(A.data().thumbsDownViewModel,_.jG)},N=function(){return O()};
_.Sp(function(){requestAnimationFrame(function(){var p;(p=A.shouldAnimateIcon)!=null&&p.call(A)&&Uoi(z.lottieEl)})});
var U={};return _.x("you-chat-item-view-model",{class:_.ER("ytwYouChatItemViewModelYouChatItemViewModel",(U.ytwYouChatItemViewModelColumnLayout=N,U.ytwYouChatItemViewModelYouChatItemViewModelNoZIndex=H,U)),style:_.Mt({"min-height":function(){var p,M;return _.GbV((p=A.containerHeight)==null?void 0:p.call(A),(M=A.isLastItem)==null?void 0:M.call(A))}}),
"data-target-id":function(){return A.data().id||""}},_.x(_.R,{cond:function(){return A.data().removeIcon||O()&&!g()?!1:J()},
then:function(){return _.x("div",{"aria-hidden":"true"},_.x(_.R,{cond:function(){return A.data().icon},
then:function(p){var M={};return _.x(_.GA,{data:p,className:_.ER("ytwYouChatItemViewModelIcon",(M.ytwYouChatItemViewModelIconVertical=N,M)),alt:""})},
else:function(){var p={};return _.x(_.Zb,{className:_.ER("ytwYouChatItemViewModelIcon",(p.ytwYouChatItemViewModelRtl=W==="rtl",p.ytwYouChatItemViewModelHidden=function(){return!g()},p)),
animationName:"YOUCHAT_ICON",data:T,animationRef:z})}}))}}),_.x(_.R,{cond:J,
then:function(){var p={};return _.x("div",{class:_.ER("ytwYouChatItemViewModelHost",(p.ytwYouChatItemViewModelHostNoPadding=function(){return!!A.data().sectionHeader&&!m()},p.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return u()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},p.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return u()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},p.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return u()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
p.ytwYouChatItemViewModelGradientBackground=B,p.ytwYouChatItemViewModelHostAlignStart=function(){return!O()},p.ytwYouChatItemViewModelHostDefaultFlex=function(){return!O()},p)),
role:"alert"},_.x(_.R,{cond:k,then:function(M){return _.x(_.CU,{text:M,wrapCodeBlocks:!0})}}),_.x(_.HG,{data:function(){return A.data().sectionHeader}},{sectionHeaderViewModel:function(M){var Z={};
return _.x(_.kG,{data:M.data,className:_.ER("ytwYouChatItemViewModelSectionHeader",(Z.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!A.data().sectionHeader&&!m()},Z)),
forceSmallLayout:!0})}}),_.x(_.R,{cond:d,
then:function(M){return _.x(_.CU,{text:M,wrapCodeBlocks:!0})}}),_.x(_.R,{cond:v,
then:function(){return _.x("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.x(_.HG,{data:function(){var M;return(M=A.data().videoResultsData)==null?void 0:M.videoShelf}},{horizontalShelfViewModel:function(M){return _.x(_.Dr,{data:M.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.x(_.R,{cond:y,
then:function(){return _.x("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.x(_.HG,{data:function(){var M;return(M=A.data().webData)==null?void 0:M.sourcesShelf}},{horizontalShelfViewModel:function(M){return _.x(_.Dr,{data:M.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.x(_.HG,{data:function(){return A.data().conversationResourceViewModel}},{conversationResourceViewModel:nY_}),_.x(_.HG,{data:function(){return A.data().quiz}},{learningJourneyQuizViewModel:_.g8I}),_.x(_.HG,{data:function(){return A.data().yoututorQuiz}},{yoututorQuizViewModel:lcL}),_.x(_.HG,{data:function(){return A.data().richContent}},{cardViewModel:_.PoG,
linearLayoutViewModel:_.Fx}),_.x(_.HG,{data:function(){return A.data().content}},{cardViewModel:_.PoG,
yoututorQuizViewModel:lcL,linearLayoutViewModel:_.Fx,learningJourneyQuizViewModel:_.g8I,conversationResourceViewModel:nY_}),_.x(_.R,{cond:X,then:function(){return _.x(t8G,{thumbsUp:D,thumbsDown:K,rightAlignThumbs:h})}}))}}),_.x(_.R,{cond:function(){return A.data().chipsData},
then:function(p){return _.x(M8B,{data:p,disabled:A.pending,onError:A.onError})}}))},"Ph");
_.LbB.idomCompat={callbacks:{onError:!0,onSend:!0}};
}catch(e){_._DumpException(e)}
try{
_.L$("hU04te");
_.HNj=_.c(function(A){return _.x("yt-feedback-prompt-view-model",{class:_.ER("ytFeedbackPromptViewModelHost",A.className)},_.x(_.R,{cond:function(){return A.data().text},
then:function(H){return _.x(_.j$,{text:H,className:"ytFeedbackPromptViewModelPrompt"})}}),_.x(_.HG,{data:function(){return A.data().likeButton}},{likeButtonViewModel:function(H){return _.x(_.gq,{data:H.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.x(_.HG,{data:function(){return A.data().dislikeButton}},{dislikeButtonViewModel:_.Jz}))},"Qh");
_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("NSzT5");
var nEW=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield(_.wj().resolve(_.VI),2);(A=H.yieldResult)&&A.pauseVideo();_.EN(H)})};var Zjf=_.XO(["https://portraits.google.com"]),fG3=_.XO(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),wnp=_.XO(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),oEG=_.Ia(Zjf),$NB=_.c(function(A){function H(m){var J;if(m=(J=m.detail)==null?void 0:J.endpoint){J=_.L(m,_.fm);var g;J&&((g=J.browseId)==null?0:g.startsWith("UC"))&&J.browseId!==W()&&(_.cc("creator-chatbots-panel-persistent"),O.removeEventListener("yt-navigate-start",H))}}
var k=A.usePlayerHeight;var d=A.isPersistentPanel;var W=A.creatorChannelId;var z=_.oy(_.v$X),u=_.P8(function(m){var J=W();J=_.Ia(fG3,J);_.qX(m,1,J)}),B=function(){var m,J,g;
return _.e(function(v){return v.nextAddress==1?v.yield(_.wj().resolve(_.VI),2):(m=v.yieldResult)?v.return({video_id:(g=(J=m.getVideoData())==null?void 0:J.video_id)!=null?g:"",timestamp_sec:m.getCurrentTime().toString()}):v.return({})})};
_.ll("message",function(m){var J,g,v,y,X,D,K,N,U,p;return _.e(function(M){if(M.nextAddress==1){if(m.origin!==oEG.toString())return console.warn("Received message from untrusted origin:",m.origin),M.return();J=m.data;if(typeof J!=="object"||J===null||!J.action)return M.return();if(J.action==="pause")return M.yield(nEW(),0);if(J.action!=="getYouTubeContext")return M.jumpTo(0);v=((g=d)==null?0:g())?"creator-chatbots-panel-persistent":"creator-chatbots-panel";y=document.getElementById(v);if(((X=d)==null?
0:X())&&y&&y.style.display!=="none"&&m.source)return(D=m.source)==null||D.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:m.origin}),M.jumpTo(0);if(!m.source)return M.jumpTo(0);K=m.source;N=K.postMessage;U=JSON;p=U.stringify;return M.yield(B(),8)}N.call(K,p.call(U,{youTubeContext:M.yieldResult}),{targetOrigin:m.origin});return M.jumpTo(0)})});
var h=function(){var m,J;(m=u.value)==null||(J=m.contentWindow)==null||J.postMessage("ep_closed",oEG.toString())};
_.ll("yt-page-type-changed",function(){if(d==null?0:d()){var m;((m=_.wj().resolve(_.SO).getCurrentPage())==null?void 0:m.pageSubtype)!=="channels"&&(m=document.getElementById("creator-chatbots-panel-persistent"))&&(m.style.display="none")}else _.wj().resolve(_.SO).isOnWatch()||document.getElementById("creator-chatbots-panel")&&_.cc("creator-chatbots-panel")});
var O=_.wj().resolve(_.f1),T;(T=O)==null||T.addEventListener("yt-navigate-start",H);_.Sp(function(){var m=(d==null?0:d())?"creator-chatbots-panel-persistent":"creator-chatbots-panel",J=document.getElementById(m);if(J){var g=new MutationObserver(function(v){v.forEach(function(y){y.type==="attributes"&&y.attributeName==="style"&&J.style.display==="none"&&h()})});
g.observe(J,{attributes:!0});_.aV(function(){g.disconnect()})}});
_.aV(function(){var m;(m=O)==null||m.removeEventListener("yt-navigate-start",H)});
A={};return _.x("div",{class:_.ER("ytprotoCreatorChatbotsAppHost",(A.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return z()},A)),
style:_.Mt({height:function(){return(k==null?0:k())?"var(--ytd-watch-flexy-panel-max-height)":"100%"},
"max-height":function(){return(d==null?0:d())?"800px":void 0}})},_.x(_.KbB,{id:function(){return(d==null?0:d())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(d==null?0:d())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){d!=null&&d()||(h(),_.cc("creator-chatbots-panel"))},
header:function(){return _.x("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.x("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.x(_.Lr,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.x(_.Qq,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var m=_.nx("https://portraits.google.com/gallery?ytChannelId="+W());m&&_.rU(window,m,"_blank");h()}})},
content:function(){return _.x("iframe",{el:u,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+oEG.toString()})}}))},"Xo"),Acz=_.c(function(A){var H=A.creatorChannelId;
var k=_.oy(_.v$X),d=_.P8(function(z){var u=H();u=_.Ia(wnp,u);_.qX(z,1,u)}),W=_.$9(_.A7(),{veType:281629});
A={};return _.x("div",{class:_.ER("ytprotoCreatorChatbotsAppHost",(A.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return k()},A)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.x(_.KbB,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.x("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.x("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.x(_.Lr,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.x("iframe",{el:d,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.x("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.x(_.Qq,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var z=_.nx("https://portraits.google.com/gallery?ytChannelId="+H());z&&_.rU(window,z,"_blank");nEW();W&&_.vn(_.A7(),{visualElement:W})},
"client-ve-type":281629}),_.x("div",null,"This will take you to Google Portraits"))}}))},"Yo");var HhW=_.XO(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),s5n=_.Ia(HhW);_.zww=function(A){A=A===void 0?"":A;_.cc("creator-chatbots-panel");_.KR(s5n);_.pR("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.CoV("creator-chatbots-panel",function(){return _.x($NB,{usePlayerHeight:!0,creatorChannelId:A})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.WGk=function(A){A=A===void 0?"":A;_.cc("creator-chatbots-panel");_.pR("ytd-watch-metadata #top-level-buttons-computed",function(){_.CoV("creator-chatbots-panel",function(){return _.x(Acz,{creatorChannelId:A})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.dQj=function(A,H,k){A=A===void 0?"":A;H=H===void 0?!1:H;k=k===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":k;var d,W;return _.e(function(z){if(k==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(d=document.getElementById("creator-chatbots-panel"))d.style.display="block";return z.jumpTo(0)}W=document.getElementById("creator-chatbots-panel-persistent");return!H||W?(!H&&W&&W.style.display==="none"&&(W.style.display="block"),z.jumpTo(0)):z.yield(new Promise(function(u){_.pR("ytd-app",
function(B){_.af({element:B,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.x($NB,{isPersistentPanel:!0,creatorChannelId:A})});
u()})}),0)})};
_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("b3MoKf");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("f8YPh");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("QiZf0e");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("mcjWUc");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("m9Vw4");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("dIvQ6c");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("JoU6vf");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("HwlOhd");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("n0DHg");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("U9vrqd");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("dpUCFd");

_.vT();
}catch(e){_._DumpException(e)}
try{
_.L$("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 ZP_,Vq,fcL,wuQ,oYM,$oL,AWG,H2L,s1L,kyI,dnB,WVL,Ek,zpV,q3R,rWB,uL1,BYi,epR,xn_,i2G,hpB,O2L,RpI,TYV,mnG,JWi,b2V,LVG,yWM,j1V,I6R,PgQ,GyL,FVI,XNV,Uk,S33,CgL,KV_,l_,a6B,VLM,EkL,UnG,l6_,NY1,MLe,wN1,$ne,f6G,gkM,AxI,HHe,sCG,tJ,Ns,kCQ,dTQ,zA1,qd_,uVL,Bn1,eAR,xTL,iHV,hAi,OHB,RAB,Ms,Tni,Jxe,gr_,bHV,LCB,vrB,jCG,IZe,YdB,Pi3,XBB,DT1,KC3,aZQ,pBQ,QCi,ErV,nR,UTB,t1I,NnV,M1e,ZHe,wBQ,orL,$Te,AZR,H8L,sNR,kHL,dwL,WpQ,zW3,qH3,rZG,up1,BEe,eWB,xw1,i8I,RWL,TE1,mwL,JZL,gBL,b8e,Lp_,vB1,jN_,IW3,YHi,P9I,GHL,FpG,X0L,DwI,SHi,
wG,C9Q,KpV,aWL,cZB,p0e,QN_,of,Vc3,EB_,Uwe,lWL,tcV,NEL,Mc_,nB_,Z83,fWM,w0e,oBL,$o,$w_,Are,HmB,sc_,kKQ,dmG,WjR,zFV,qAL,rrR,u3Q,Bl3,eFI,xm1,imL,hF_,Om1,RFM,mmI,bmG,LjI,vuM,yrG,jcV,Iu_,YA3,Pk_,GKL,Fj_,XK1,Dm_,SA3,Hr,sO,Kji,auI,crG,pKL,Qce,VX1,EuL,UmQ,lu3,tXI,ZmG,dH_,r1L,u_L,hYR,RYB,iFI,eYi,vIe,IeB,DHL,B4I,PwQ,y1G,OF_,CwI,c1_,Vs_,pMQ,QlB,EIB,N4G,leB,Ms_,nII,tsM,UHM,ZFL,zJ,qu,H0V,rk,sOM,knL,uh,d0e,W$_,z7I,x0_,i0e,O0V,R7I,Tu3,m0M,Br,J6L,g9V,b0Q,eU,x$,v91,y6R,ih,IS1,Y61,hO,GnB,OO,Ri,TJ,mx,D0L,XW_,S6I,CyR,
JO,K$_,gk,aSM,bh,LS,tDM,vr,Nu_,MD_,n9B,yy,A7Q,fS3,$0e,H3_,wW_,kAL,o9_,zS1,dt3,WuR,qRL,uc_,r7G,i3R,Tbi,Pr,GJ,O3M,J7i,RS_,mtQ,XT,SU,CS,KS,E5I,X81,twM,Nbe,MwG,n5_,ffI,IfI,YRB,pS,GAB,ai,cr,FuM,Z3V,UtM,PcL,Vy,r8L,BHG,eRR,uUi,dNG,ij_,RRL,s9_,A8I,HjV,J8_,kcG,lh,OjV,W03,hR_,qte,$tM,zR1,bjL,F0M,Xn_,DN3,StM,CLi,K0L,c8B,fS,Q9e,VOL,UNG,lGB,tOR,NH_,MOi,nEB,ZjG,fGB,wn1,wk,oEV,$N_,AcR,HhB,rc1,oi,qFi,kVG,zEe,W53,dF_,s5I,uBV,B9e,eEi,xFQ,$$,ih_,hEB,mFL,Ha,REV,k4,Ai,s_,T9B,OhL,Jce,gHL,bh3,L5B,vHe,yc1,IvG,YFI,P2L,GVi,
F5V,XGI,DFQ,SF3,C23,K5I,ccR,pG3,Vue,lvB,tu3,N9_,nHQ,fvV,oHR,$F1,Av_,Hwe,kFB,dLV,W8L,zOB,q53,rvG,u1L,eOL,xLL,OwL,TyB,JvR,RO3,iwB,hOL,vqL,L81,gqR,yvB,bw_,jI_,F8I,GF_,Y5R,PsM,d7,XlB,S51,Cs_,K8B,VYQ,EqG,UL1,lhL,tYV,Ny3,MYM,nqM,Zwe,fhR,wlM,oq3,$L_,AdI,H6L,sLe,ksi,deQ,WWL,zeQ,qKB,rdL,uO1,BK_,xeL,i6G,he_,O6Q,ReG,TKB,meI,Jde,gcL,b6R,yde,IsL,PAM,GsI,FWR,XpG,LW1,vcB,CAe,KWI,asR,cdQ,ppB,QLV,VKL,EcM,Ue_,lsL,tKM,NKQ,nc_,MK_,fsB,wp3,$eI,AYQ,sXB,k5R,r7,q8_,rYL,BdL,e6i,iXB,xJe,R6Q,h6Q,OX1,Td_,mJe,JYe,gVG,bXL,L9Q,
vV1,yY3,jX_,I_B,Y81,Pp3,F9I,G5G,XZQ,CpM,K9L,a__,un,cYi,pZB,QXB,VaQ,EVe,UJi,l_R,ta_,NdB,MaB,nVL,f_Q,wZ_,oV1,$JV,kjM,WNI,zZ_,rKL,qXB,uoR,BS3,eZL,xBG,hZL,OOL,RZG,TSB,mBe,JK_,gXI,bO_,LN_,vX_,yK_,PP3,Gj3,IIe,YXM,jMG,FNQ,SXB,XJV,DBi,aIR,CPB,KNL,cKM,pJe,QMI,VmL,UBe,lIe,tmM,Mm_,nX_,fIL,oXG,AsI,swi,d3_,zkI,rsB,B3Q,if_,OfL,RkR,T3G,Js_,m3B,bfQ,LvM,vzQ,ysQ,ek,jw_,IOB,YxL,Qwi,EzV,U3L,MPB,O_,nze,ZfB,fO1,ozM,wSI,$3Q,A9B,HnL,sFM,kaV,NlG,dp_,W7I,z81,HfQ,qhB,r9B,lZV,ur_,Bti,e8B,xpB,inB,h8M,OnL,R8_,TtV;
ZP_=function(){switch(_.c7I()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
Vq=function(A){if(!A)return"browse";var H=A.page,k=A.url,d,W,z,u=(d=A.response)==null?void 0:(W=d.responseContext)==null?void 0:(z=W.webResponseContextExtensionData)==null?void 0:z.pageTheme;if(u)H=u.toLowerCase().replace(/_/g,"-");else if(H!=="watch"&&H!=="learning_journey_watch"){var B,h;if((H==="browse"||H==="settings")&&((B=A.response)==null?0:(h=B.sidebar)==null?0:h.settingsSidebarRenderer))H="WEB_PAGE_TYPE_SETTINGS";else{var O,T;H==="browse"&&((O=A.response)==null?0:(T=O.metadata)==null?0:T.channelMetadataRenderer)?
H="channel":k&&(H=_.ojC(k)||H)}}return H};
fcL=function(){return new Promise(function(A){var H=window;H.attmp!==void 0?A(H.attmp):(H.attmq===void 0&&(H.attmq=[]),H.attmq.push(function(k){A(k)}))})};
wuQ=function(){var A=_.UD("yt.aba.att");return A?A:_.W7.instance!==void 0?_.W7.instance.vMY.bind(_.W7.instance):null};
oYM=function(A,H){var k,d,W;return _.e(function(z){if(z.nextAddress==1){if(!_.b("attmusi")||!_.b("attmusi_ue"))return z.jumpTo(2);k=window;return k.attmp!==void 0?z.return(k.attmp.s(A,H,6E4)):z.yield(fcL(),3)}return z.nextAddress!=2?(d=z.yieldResult,z.return(d.s(A,H,6E4))):(W=wuQ())?z.return(W(A,H,6E4)):z.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
$oL=function(A,H,k,d,W){H=H===void 0?[]:H;W=W?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:W}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.K8(A),dialogMessages:H.map(function(z){return _.K8(z)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.K8(k),serviceEndpoint:W}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.K8(d)}}}}}};
AWG=function(A,H,k,d){k||(A?d&&(d.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||d.WINDOW_SIZE_CHANGED&&(H.width!==window.innerWidth||H.height!==window.innerHeight)||d.SAFARI_ABORTED_BY_NEW_TRANSITION&&A instanceof DOMException&&A.name==="AbortError"&&A.message.includes("Old view transition aborted by new view transition"))||_.I3(A):_.I3(Error("Aj")))};
H2L=function(A,H){H=H===void 0?{}:H;var k,d,W,z,u,B,h,O,T,m,J,g,v;return _.e(function(y){switch(y.nextAddress){case 1:k=H;d=k.shouldWrap===void 0?!0:k.shouldWrap;W=k.skipTransitionTimeoutMs===void 0?300:k.skipTransitionTimeoutMs;z=k.beforeTransition;u=k.afterTransition;if(!d||!document.startViewTransition||document.visibilityState==="hidden")return y.return(A());B={width:window.innerWidth,height:window.innerHeight};h=!1;(O=z)==null||O();_.S_(y,2);T=document.startViewTransition(A);m=setTimeout(function(){T.skipTransition();
h=!0},W);
return y.yield(T.ready,4);case 4:return clearTimeout(m),y.yield(T.finished,5);case 5:clearTimeout(m);(J=u)==null||J();_.QN(y,0);break;case 2:g=_.VA(y),(v=u)==null||v(),AWG(g,B,h,H.ignoredErrors),_.EN(y)}})};
s1L=function(A,H,k){k=k===void 0?!1:k;var d=_.Hi(),W=!!_.FY().queueProxy,z,u,B;A=A==null?void 0:(z=A.response)==null?void 0:(u=z.currentVideoEndpoint)==null?void 0:(B=u.watchEndpoint)==null?void 0:B.playlistId;if((W||A)&&!_.b("web_watch_disable_playlist_auto_miniplayer"))return k&&(d.playlistWatchPageActivation=!0),!0;switch(Vq(H)){case "yts-products":return k&&(d.productDetailsPageActivation=!0),!0;case "mini_app":return k&&(d.miniAppPageActivation=!0),!0;case "playables":return k&&(d.playablesDestPageActivation=
!0),!0;case "companion-canvas":return k&&(d.companionCanvasActivation=!0),!0;default:return!1}};
kyI=function(A){A=_.qCI(A);A.length>0&&A[0].focus()};
dnB=function(A,H,k){for(var d=typeof A==="string"?A.split(""):A,W=A.length-1;W>=0;--W)W in d&&H.call(k,d[W],W,A)};
WVL=function(A,H,k){for(var d=A.length,W=typeof A==="string"?A.split(""):A,z=0;z<d;z++)if(z in W&&H.call(k,W[z],z,A))return z;return-1};
Ek=function(A,H,k){H=WVL(A,H,k);return H<0?null:typeof A==="string"?A.charAt(H):A[H]};
zpV=function(A,H){H=WVL(A,H);H>=0&&_.XVQ(A,H)};
q3R=function(A){return Array.prototype.concat.apply([],arguments)};
rWB=function(A){var H=void 0;H!=null||(H=_.hV?1024:0);if(!_.qi(A))throw _.sw("uint64");var k=typeof A;switch(H){case 512:switch(k){case "string":return _.EZW(A);case "bigint":return String((0,_.y_)(64,A));default:return _.QpN(A)}case 1024:switch(k){case "string":return _.UQv(A);case "bigint":return _.cj((0,_.y_)(64,A));default:return _.VAr(A)}case 0:switch(k){case "string":return _.EZW(A);case "bigint":return _.cj((0,_.y_)(64,A));default:return _.pjV(A)}default:return _.HR(H,"Unknown format requested type for int64")}};
uL1=function(A,H,k){if(H)return _.I_(A);var d;return(d=_.FG(A))!=null?d:k?"":void 0};
BYi=function(A){A!=null&&(A=A.JSC$9133_value_||"",A=typeof A==="string"?A:new Uint8Array(A));return A};
epR=function(A,H){var k=_.IK8(H);k!=="javascript:"&&k!=="data:"&&A.setAttribute("href",H)};
xn_=function(A,H,k){return Math.abs(A-H)<=(k||1E-6)};
i2G=function(A,H){var k=[];for(H=H||0;H<A.length;H+=2)_.H$X(A[H],A[H+1],k);return k.join("&")};
hpB=function(A,H){var k=arguments.length==2?i2G(arguments[1],0):i2G(arguments,1);return _.AwN(A,k)};
O2L=function(A,H){if(/-[a-z]/.test(H))return null;if(_.jsj&&A.dataset){if(_.g8N()&&!(H in A.dataset))return null;A=A.dataset[H];return A===void 0?null:A}return A.getAttribute("data-"+_.wY(H))};
RpI=function(){var A=_.Dq&&_.JA(_.PgJ,10)>=0,H;if(H=_.yVN)H=_.JA(_.Y3p,10)>=0;var k=_.wK&&_.JA(_.PgJ,85)>=0;return _.s3||A||H||k};
TYV=function(A){var H=_.hc0(A);return H&&RpI()?-A.scrollLeft:H&&_.K$(A,"overflowX")!="visible"?A.scrollWidth-A.clientWidth-A.scrollLeft:A.scrollLeft};
mnG=function(A,H){H=Math.max(H,0);_.hc0(A)?RpI()?A.scrollLeft=-H:A.scrollLeft=A.scrollWidth-H-A.clientWidth:A.scrollLeft=H};
JWi=function(){var A=window.location.hash;A.charAt(0)==="#"&&(A=A.charAt(1)==="!"?A.substring(2):A.substring(1));return _.NP(A)};
b2V=function(){var A=gkM;_.UD("yt.ads.biscotti.getId_")||_.nG("yt.ads.biscotti.getId_",A)};
LVG=function(A){_.nG("yt.ads.biscotti.lastId_",A)};
yWM=function(){var A={};for(_.yN=new vkB(A.handleError===void 0?_.YJ:A.handleError,A.logEvent===void 0?_.yr:A.logEvent);_.ji.length>0;)switch(A=_.ji.shift(),A.type){case "ERROR":_.yN.logError(A.payload);break;case "EVENT":_.yN.logEvent(A.eventType,A.payload)}};
j1V=function(A,H,k){return _.Eul(function(d){return k?d.userIdentifier!==void 0&&!A.includes(d.userIdentifier)&&k.includes(d.publicName):d.userIdentifier!==void 0&&!A.includes(d.userIdentifier)},H)};
I6R=function(A){var H,k;return _.e(function(d){if(d.nextAddress==1)return H=_.Oa("YtIdbMeta hasAnyMeta other"),d.yield(_.Eul(function(W){return W.userIdentifier!==void 0&&W.userIdentifier!==H},A),2);
k=d.yieldResult;return d.return(k.length>0)})};
PgQ=function(A,H){Y3_||(Y3_=_.IE.addLowPriorityJob(function(){var k,d,W,z,u;return _.e(function(B){switch(B.nextAddress){case 1:return B.yield(_.Zq(),2);case 2:k=B.yieldResult;if(!k)return B.return();d=!0;_.S_(B,3);return B.yield(j1V(A,k,H),5);case 5:W=B.yieldResult;if(!W.length){d=!1;B.jumpTo(6);break}z=W[0];return B.yield(_.VN(z.actualName),7);case 7:return B.yield(_.lC(z.actualName,k),6);case 6:_.QN(B,4);break;case 3:u=_.VA(B),_.IP(u),d=!1;case 4:_.IE.cancelJob(Y3_),Y3_=0,d&&PgQ(A,H),_.EN(B)}})}))};
GyL=function(){var A;return _.e(function(H){return H.nextAddress==1?H.yield(_.Zq(),2):(A=H.yieldResult)?H.return(I6R(A)):H.return(!1)})};
FVI=function(A){var H=100;H=H===void 0?500:H;var k,d,W,z,u,B;return _.e(function(h){return h.nextAddress==1?(k=_.pZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),d=[k,(0,_.w2)()-2592E6],W=[k,(0,_.w2)()],z=IDBKeyRange.bound(d,W),h.yield(_.i3V(A),2)):h.nextAddress!=3?(u=h.yieldResult,B=[],h.yield(_.Ua(u,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(O){B.length=0;return _.oP(O.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:z,direction:"prev"},function(T){if(T.getValue()&&B.length<
H)return B.push(T.getValue()),T.delete().then(function(){return T.continue()})})}),3)):h.return(B)})};
XNV=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield(_.Zq(),2);A=H.yieldResult;if(!A||!_.RP()&&!_.b("nwl_init_require_datasync_id_killswitch")||!_.X88())return H.jumpTo(0);_.SRl=!0;_.Dtb.isNwlInitialized=_.SRl;return H.yield(_.Jrw().awaitInitialization(),0)})};
Uk=function(A,H){_.w8b[A]=!0;var k=_.f5();k&&k.publish.apply(k,arguments);_.w8b[A]=!1};
S33=function(){if(_.GnC()&&!DnM){var A=function(k){k=k.data;if(k.op==="serializedGelBatch"){var d=_.wn8.get(k.key);d&&(_.$NW(k.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),_.wn8.delete(k.key))}},H=_.Pyb();
H&&(H.addEventListener("message",A),H.onerror=function(){_.wn8.clear()});
DnM=!0}};
CgL=function(){this.relativeTimeStart_=_.Vj()};
KV_=function(A,H){A!=null&&this.append.apply(this,arguments)};
l_=function(){for(var A=Array(36),H=0,k,d=0;d<36;d++)d==8||d==13||d==18||d==23?A[d]="-":d==14?A[d]="4":(H<=2&&(H=33554432+Math.random()*16777216|0),k=H&15,H>>=4,A[d]=_.U3l[d==19?k&3|8:k]);return A.join("")};
a6B=function(){return _.Jx("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
VLM=function(){var A=_.iK.clone(cW_),H;return(new _.Wq(function(k,d){A.onSuccess=function(W){_.p0f(W)?k(new pNL(W)):d(new Q1B("Request failed, status="+_.W5(W),"net.badstatus",W))};
A.onError=function(W){d(new Q1B("Unknown request error","net.unknown",W))};
A.onTimeout=function(W){d(new Q1B("Request timed out","net.timeout",W))};
H=_.uC("//googleads.g.doubleclick.net/pagead/id",A)})).thenCatch(function(k){if(k instanceof _.jY){var d;
(d=H)==null||d.abort()}return _.qt(k)})};
EkL=function(A,H,k){k=k===void 0?!1:k;var d,W,z,u,B;return _.e(function(h){switch(h.nextAddress){case 1:_.iC("SOCS",A,34128E3,"youtube.com",!0);if(_.f6)return W=fetch(H,{method:"POST",mode:_.yS(H),credentials:_.vB(H),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),z=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.yS("/upgrade_visitor_cookie?eom=1"),credentials:_.vB("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),h.yield(Promise.all([W,z]).then(function(O){return O[1]}),5);
fetch(H,{method:"POST",mode:_.yS(H),credentials:_.vB(H),cache:"no-store",headers:{"Content-Type":"text/plain"}});return h.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.yS("/upgrade_visitor_cookie?eom=1"),credentials:_.vB("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:d=h.yieldResult;h.jumpTo(3);break;case 5:d=u=h.yieldResult;case 3:if(!d.ok)throw Error("vf");return h.yield(d.text(),7);case 7:B=h.yieldResult,
!B.includes('"state_switch":true')&&!k||B.includes("skip_reload_for_test")||window.location.reload(),_.EN(h)}})};
UnG=function(A){return _.e(function(H){return H.nextAddress==1?H.yield(EkL(A.socsCookie,A.savePreferenceUrl,!0),2):H.return()})};
l6_=function(A){return _.e(function(H){return H.nextAddress==1?H.yield(EkL(A.socsCookie,A.savePreferenceUrl),2):H.return()})};
NY1=function(A){a:{var H="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(H="EMBEDDED_PLAYER_MODE_PFL");var k=A.raw_embedded_player_response;if(!k&&(A=A.embedded_player_response))try{k=JSON.parse(A)}catch(W){break a}if(k)b:{A=tLQ;for(var d in A)if(A[d]==k.embeddedPlayerMode){H=A[d];break b}}}return H==="EMBEDDED_PLAYER_MODE_PFL"};
MLe=function(){if(_.b("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.l2W())return Error("xf");var A=_.pZ("PLAYER_VARS",{});if(_.iK.get(A,"privembed",!1)=="1")return Error("yf");if(NY1(A))return Error("zf")};
wN1=function(A){A=A.xhr.responseText;if(!_.rI(A,")]}'"))throw new nkL;A=JSON.parse(A.substr(4));if((A.type||1)>1)throw new nkL;A=A.id;LVG(A);Z2B=_.FP(A);f6G(18E5,2);return A};
$ne=function(A,H){H=new ok1(H);LVG("");Z2B=_.iv1(H);A>0&&f6G(12E4,A-1);throw H;};
f6G=function(A,H){_.zi(function(){VLM().then(wN1,function(k){return $ne(H,k)}).thenCatch(_.xX)},A)};
gkM=function(){var A=MLe();if(A!==void 0)return _.qt(A);Z2B||(Z2B=VLM().then(wN1).thenCatch(function(H){return $ne(2,H)}));
return Z2B};
AxI=function(){var A=document;return Ek(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(H){return"on"+H.toLowerCase()in A})};
HHe=function(A){A.addEventListener("click",function(H){var k=H.target;k&&k.getAttribute("href")&&(k=k.getAttribute("href"),_.rU(window,k,"_blank"),H.preventDefault(),H.stopImmediatePropagation())})};
sCG=function(){var A=_.dE();A.info||(A.info={});return A.info};
tJ=function(){return(_.b("csi_use_time_origin")||_.b("csi_use_time_origin_tvhtml5"))&&_.u9.timeOrigin?Math.floor(_.u9.timeOrigin):_.u9.timing.navigationStart};
Ns=function(A){return Math.round(tJ()+A)};
kCQ=function(){var A;if(_.b("csi_use_performance_navigation_timing")){var H,k,d,W=_.u9==null?void 0:(A=_.u9.getEntriesByType)==null?void 0:(H=A.call(_.u9,"navigation"))==null?void 0:(k=H[0])==null?void 0:(d=k.toJSON)==null?void 0:d.call(k);W?(W.requestStart=Ns(W.requestStart),W.responseEnd=Ns(W.responseEnd),W.redirectStart=Ns(W.redirectStart),W.redirectEnd=Ns(W.redirectEnd),W.domainLookupEnd=Ns(W.domainLookupEnd),W.connectStart=Ns(W.connectStart),W.connectEnd=Ns(W.connectEnd),W.responseStart=Ns(W.responseStart),
W.secureConnectionStart=Ns(W.secureConnectionStart),W.domainLookupStart=Ns(W.domainLookupStart),W.isPerformanceNavigationTiming=!0,A=W):A=_.u9.timing}else A=_.b("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.u9.timing)):_.u9.timing;return A};
dTQ=function(){if(_.u9.getEntriesByType){var A=_.u9.getEntriesByType("paint");if(A=Ek(A,function(k){return k.name==="first-paint"}))return Ns(A.startTime)}var H;
_.b("csi_use_performance_navigation_timing")?H=_.u9.getEntriesByType("first-paint")[0].startTime:H=_.u9.timing.msFirstPaint;return H?Math.max(0,H):0};
zA1=function(){var A=window.location.protocol,H=_.u9.getEntriesByType("resource");H=_.Ne(H,function(k){return k.name.indexOf(A+"//fonts.gstatic.com/s/")===0});
(H=WC3(H,function(k,d){return d.duration>k.duration?d:k}))&&H.startTime>0&&H.responseEnd>0&&(_.qw("wffs",Ns(H.startTime)),_.qw("wffe",Ns(H.responseEnd)))};
qd_=function(A,H){A=document.querySelector(A);if(!A)return!1;var k="",d=A.nodeName;d==="SCRIPT"?(k=A.src,k||(k=A.getAttribute("data-timing-href"))&&(k=window.location.protocol+k)):d==="LINK"&&(k=A.href);_.u1(document)&&A.setAttribute("nonce",_.u1(document));return k?(A=_.u9.getEntriesByName(k))&&A[0]&&(A=A[0],k=tJ(),_.qw("rsf_"+H,k+Math.round(A.fetchStart)),_.qw("rse_"+H,k+Math.round(A.responseEnd)),A.transferSize!==void 0&&A.transferSize===0)?!0:!1:!1};
uVL=function(A,H){_.ED(function(){_.zH("").info.actionType=A;H&&_.cI("TIMING_AFT_KEYS",H);_.cI("TIMING_ACTION",A);var k=_.UEC(_.pZ("TIMING_INFO",{}));Object.keys(k).length>0&&_.rE(k);k={isNavigation:!0,actionType:_.FLN(_.pZ("TIMING_ACTION"))};var d=_.pZ("PREVIOUS_ACTION");d&&(k.previousAction=_.FLN(d));if(d=_.pZ("CLIENT_PROTOCOL"))k.httpProtocol=d;if(d=_.pZ("CLIENT_TRANSPORT"))k.transportProtocol=d;(d=_.hx())&&d!=="UNDEFINED_CSN"&&(k.clientScreenNonce=d);d=ZP_();if(d===1||d===-1)k.isVisible=!0;d=
_.LL8().loadType==="cold";var W=sCG();d||(d=W.yt_lt==="cold");if(d){k.loadType="cold";d=sCG();W=kCQ();var z=tJ(),u=_.pZ("CSI_START_TIMESTAMP_MILLIS",0);u>0&&!_.b("embeds_web_enable_csi_start_override_killswitch")&&(z=u);z&&(_.qw("srt",W.responseStart),d.prerender!==1&&_.KLV(z));d=dTQ();d>0&&_.qw("fpt",d);d=kCQ();d.isPerformanceNavigationTiming&&_.rE({performanceNavigationTiming:!0},void 0);_.qw("nreqs",d.requestStart,void 0);_.qw("nress",d.responseStart,void 0);_.qw("nrese",d.responseEnd,void 0);
d.redirectEnd-d.redirectStart>0&&(_.qw("nrs",d.redirectStart,void 0),_.qw("nre",d.redirectEnd,void 0));d.domainLookupEnd-d.domainLookupStart>0&&(_.qw("ndnss",d.domainLookupStart,void 0),_.qw("ndnse",d.domainLookupEnd,void 0));d.connectEnd-d.connectStart>0&&(_.qw("ntcps",d.connectStart,void 0),_.qw("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=tJ()&&d.connectEnd-d.secureConnectionStart>0&&(_.qw("nstcps",d.secureConnectionStart,void 0),_.qw("ntcpe",d.connectEnd,void 0));_.u9&&"getEntriesByType"in
_.u9&&zA1();d=[];if(document.querySelector&&_.u9&&_.u9.getEntriesByName)for(var B in rx1)rx1.hasOwnProperty(B)&&(W=rx1[B],qd_(B,W)&&d.push(W));if(d.length>0)for(k.resourceInfo=[],B=_.r(d),d=B.next();!d.done;d=B.next())k.resourceInfo.push({resourceCache:d.value})}_.rE(k);k=_.W0();k.preLoggedGelInfos||(k.preLoggedGelInfos=[]);B=k.preLoggedGelInfos;k=_.yyI();d=void 0;for(W=0;W<B.length;W++)if(z=B[W],z.loadType){d=z.loadType;break}if(_.LL8().loadType==="cold"&&(k.loadType==="cold"||d==="cold")){d=_.vfl();
W=_.W0();W=W.gelTicks?W.gelTicks:W.gelTicks={};for(var h in d)h in W||typeof d[h]==="number"&&_.qw(h,_.B0(h));h={};d=!1;B=_.r(B);for(W=B.next();!W.done;W=B.next())d=W.value,_.mC(k,d),_.mC(h,d),d=!0;d&&_.rE(h)}_.tdW(!0);h=_.pZ("TIMING_ACTION");_.UD("ytglobal.timingready_")&&h&&_.AU8()&&_.l4W()&&_.Vdl()})()};
Bn1=function(A){var H,k,d,W=(d=(k=((H=A.mainDownloadsListEntity)!=null?H:{})[_.Rar])==null?void 0:k.refresh)!=null?d:"",z;A=(z=A.refresh)==null?void 0:z[W];W=A!=null?A:{};return(W==null?0:W.refreshTime)?Number(W==null?void 0:W.refreshTime):0};
eAR=function(A,H){var k=_.qm(A);return H.every(function(d){var W;d=d==null?void 0:(W=d.playbackDataEntity)==null?void 0:W.key;if(!d)return!1;W=_.Nw(_.Vm(d).entityId,"mainVideoEntity");return!!k[W]})};
xTL=function(A){return A.ui.guideIsVisibleButNotPersistent};
iHV=function(A){return A.ui.scrollAtTop};
hAi=function(A){return A.ui.tabGesturesIsActive};
OHB=function(A){A=_.dl(A.entities);return _.FyX(A).length};
RAB=function(A,H){if(H){var k;A=(k=_.Mw(A.entities,"downloadQualityPickerEntity",H))!=null?k:void 0}else A=void 0;return A};
Ms=function(A,H,k){var d;return _.e(function(W){if(W.nextAddress==1)return W.yield(H(),2);d=W.yieldResult;k(d,A);_.EN(W)})};
Tni=function(){return _.e(function(A){return A.nextAddress==1?A.yield((MLe()!==void 0?_.qt(Error("Af")):VLM()).then(function(){return 1},function(H){if(H.message==="Biscotti id is disabled")return 3;
_.Pq("Failed fetching bid");return 0}),2):A.return(A.yieldResult)})};
Jxe=function(){var A=_.Cm("ZjdmNmRmeXQtaGF2ZW4tZW1iZWQtcGxheWVyIzd5OW91NQ=="),H=_.Cm("bnhwcGlzaWZyYW1lI2dmY2lnMQ==");return document.querySelector(H+mT_+A)?0:1};
gr_=function(A){var H=document.getElementsByTagName("ytd-enforcement-message-view-model");H.length===0||getComputedStyle(H[0]).display==="none"?A(0,"p.h_"):A(1,"p.h_")};
bHV=function(){return _.FdV(_.Sd)};
LCB=function(){return _.X$8()===0?0:_.DMI()};
vrB=function(){return _.cPf(_.ovl([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
jCG=function(){return _.LdI(yxG)};
IZe=function(A){_.e(function(H){switch(H.nextAddress){case 1:return H.yield(Ms("b.f_",Tni,A),2);case 2:return H.yield(Ms("j.s_",_.gjQ,A),3);case 3:return H.yield(Ms("r.s_",_.TAQ,A),4);case 4:return H.yield(Ms("e.h_",jCG,A),5);case 5:if(!_.b("ab_det_sc_inj")){H.jumpTo(6);break}return H.yield(Ms("s.i_",_.PDv,A),6);case 6:if(_.b("ab_deg_unex_thr")){H.jumpTo(8);break}return H.yield(Ms("a.o_",_.IVC,A),8);case 8:if(_.b("ks_get_o_pp")){H.jumpTo(10);break}return H.yield(Ms("g.o_",_.jHA,A),10);case 10:if(_.b("ks_det_gpbl")){H.jumpTo(12);
break}return H.yield(Ms("p.i_",_.yPW,A),12);case 12:return H.yield(Ms("f.i_",_.zKf,A),14);case 14:return H.yield(Ms("a.b_",_.OvW,A),15);case 15:return H.yield(Ms("p.m_",_.usr,A),16);case 16:if(!_.b("ab_det_el_h_v2")){H.jumpTo(17);break}return H.yield(Ms("n.h_",vrB,A),17);case 17:return H.yield(Ms("o.p_",bHV,A),19);case 19:return H.yield(Ms("e.i_",Jxe,A),20);case 20:if(_.b("ab_det_apm"))return H.yield(Ms("o.a_",LCB,A),0);H.jumpTo(0)}})};
YdB=function(A){switch(A){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:_.HR(A,"unknown result type")}};
Pi3=function(A,H,k){H=_.NA8[H];k={detected:A===0,source:H.iWX,detectionResult:YdB(A),contentCpn:k};_.yr("biscottiBasedDetection",k);_.Yfk.increment(H.iWX,A);H.gMX!==void 0&&_.cI("CATSTAT",_.lVC(A,H))};
XBB=function(){GC1=0;var A=[_.$u(!0)];FCi&&_.li(FCi,"yt-window-resized",A)};
DT1=function(){GC1||(GC1=_.IE.addLowPriorityJob(XBB,200))};
KC3=function(){SdL=0;Cie=_.Q8J(document);var A=[Cie];FCi&&_.li(FCi,"yt-window-scrolled",A)};
aZQ=function(){SdL||(SdL=_.IE.addLowPriorityJob(KC3,200))};
pBQ=function(A){A=A===void 0?null:A;cxM.push(_.NG(window,"resize",DT1));cxM.push(_.NG(window,"scroll",aZQ));A&&(FCi=A)};
QCi=function(A){A=A.target.result;A.objectStoreNames.contains("swpushnotificationsstore")&&A.deleteObjectStore("swpushnotificationsstore");A.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
ErV=function(){return V1I?Promise.resolve(V1I):new Promise(function(A,H){var k=self.indexedDB.open("swpushnotificationsdb");k.onerror=H;k.onsuccess=function(){var d=k.result;if(d.objectStoreNames.contains("swpushnotificationsstore"))V1I=d,A(V1I);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),ErV()};
k.onupgradeneeded=QCi})};
nR=function(A){var H=new _.Ti("Error accessing DB");return ErV().then(function(k){return new Promise(function(d,W){try{var z=k.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(A);z.onsuccess=function(){var u=z.result;d(u?u.value:null)};
z.onerror=function(){H.params={key:A,source:"onerror"};W(H)}}catch(u){H.params={key:A,
thrownError:String(u)},W(H)}})},function(){return null})};
UTB=function(A,H){var k={};k.key=A;k.value=H;return ErV().then(function(d){return new Promise(function(W,z){try{var u=d.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(k);u.onsuccess=function(){W()};
u.onerror=function(){z()}}catch(B){z(B)}})})};
t1I=function(){var A=_.d4.getLocalStorage();A&&lZV(A,A.mechanism.__iterator__(!0))};
NnV=function(A){_.e(function(H){if(H.nextAddress==1)return H.yield(A.delete("yt-appshell-assets"),2);_.EN(H)})};
M1e=function(A){return _.Ea((0,_.OJZ)(),A)};
ZHe=function(){var A;_.e(function(H){return H.nextAddress==1?H.yield(Zz.getInstance(),2):(A=H.yieldResult)?H.yield(nr_(A),0):H.jumpTo(0)})};
wBQ=function(){var A;_.e(function(H){return H.nextAddress==1?H.yield(fR.getInstance(),2):(A=H.yieldResult)?H.yield(fZe(A),0):H.jumpTo(0)})};
orL=function(A){NnV(A);ZHe();wBQ()};
$Te=function(A){var H,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(_.TBI(A),2);if(H=d.yieldResult){var W;a:{if(H.headers&&(W=H.headers.get("date"))&&(W=Date.parse(W),!isNaN(W))){W=Math.round((0,_.w2)()-W);break a}W=-1}k=W;if(k>-1)return d.return(k)}return d.return(-1)})};
AZR=function(){var A=_.k8.caches,H=_.Q$("IS_SHELL_LOAD"),k,d;_.e(function(W){if(W.nextAddress==1)return k=-1,H?W.yield($Te(A),3):(d=tJ(),k=Math.round((0,_.w2)()-d),W.jumpTo(2));W.nextAddress!=2&&(k=W.yieldResult);k>=0&&k<2147483648&&_.xB({appInstallDataAgeMs:k});_.EN(W)})};
H8L=function(A){var H=_.p$(_.k8.location.href),k={};"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(d){var W=H.JSC$10346_queryData_.getValues(d);if(W==null?0:W.length)k[d]=W});
return _.Yd(A,new Map(Object.entries(k)))};
sNR=function(A){return _.SbQ(_.D9C(A&16777215))<.5};
kHL=function(A){A=A.match(/(.*)::.*::.*/);if(A!==null)return A[1]};
dwL=function(A){if(_.CTC()){var H=Object.keys(window.localStorage);H=_.r(H);for(var k=H.next();!k.done;k=H.next()){k=k.value;var d=kHL(k);d===void 0||A.includes(d)||self.localStorage.removeItem(k)}}};
WpQ=function(){if(!_.CTC())return!1;var A=_.Oa(),H=Object.keys(window.localStorage);H=_.r(H);for(var k=H.next();!k.done;k=H.next())if(k=kHL(k.value),k!==void 0&&k!==A)return!0;return!1};
zW3=function(A){return UTB("NotificationsDisabled",A)};
qH3=function(){var A=_.k6("service_worker_scope");try{return navigator.serviceWorker.getRegistration(A)}catch(H){return Promise.reject(H)}};
rZG=function(){return Notification.permission!="granted"?Promise.resolve():qH3().then(function(A){return A?A.pushManager.getSubscription().then(function(H){if(H)return Promise.resolve();H={userVisibleOnly:!0,applicationServerKey:_.$8("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return A.pushManager.subscribe(H).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
up1=function(A){return qH3().then(function(H){if(!H||!H.active)return Promise.reject(new _.Ti("serviceworker.postMessage",A,H));try{return H.active.postMessage(A),Promise.resolve()}catch(k){return Promise.reject(k)}})};
BEe=function(){up1({type:"notifications_register",data:_.pZ("ID_TOKEN")})};
eWB=function(A){return!(!A||!A.pushManager)};
xw1=function(){return qH3().then(eWB).catch(function(){return!1})};
i8I=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?xw1():Promise.resolve(!1)};
RWL=function(){var A={isWide:_.x6.get("wide","0")==="1"},H=_.sH();if(H=H.getFlag(165)||H.getFlag(174))A.theme=_.bw(!0);if(_.$9W()){var k=_.g4()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";A.systemTheme=k}!H&&_.b("parent_tools_enable_app_settings")&&_.MP(window.location.href).theme!==void 0&&(A.theme=_.bw());if((H=hWe)?!_.iK.equals(H,A):A)H={currentValue:A},O8M&&(H.timeSinceLastSnapshotSecs=Math.round(((0,_.w2)()-O8M)/1E3)),hWe&&(H.previousValue=hWe),_.yr("appSettingsCaptured",H),hWe=
A,O8M=(0,_.w2)()};
TE1=function(){if(!_.Q$("LOGGED_IN"))return Promise.resolve(!1);var A=_.k6("service_worker_push_force_notification_prompt_tag");return A?nR("PromptTags").then(function(H){if(!H)return!0;var k=[];try{k=JSON.parse(H)}catch(d){return!1}return k&&k.indexOf(A)==-1}):Promise.resolve(!1)};
mwL=function(){var A=_.H5("service_worker_push_prompt_delay_microseconds");return A?nR("PromptTime").then(function(H){return Promise.resolve(Date.now()-A>(H||0))}):Promise.resolve(!0)};
JZL=function(){var A=_.H5("service_worker_push_logged_out_prompt_watches");return A==-1?Promise.resolve(!1):nR("WatchCount").then(function(H){return H>=A})};
gBL=function(){var A=_.cn(document,"yt-push-prompt-modal-bg");A&&_.Aw(A)};
b8e=function(){return _.H5("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):nR("PromptCount").then(function(A){A||(A=0);return Promise.resolve(A<_.H5("service_worker_push_prompt_cap"))})};
Lp_=function(A){return _.Q$("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Q$("LOGGED_IN")&&(A===void 0?0:A)?TE1().then(function(H){if(H)return!0;H=[b8e(),mwL()];_.Q$("LOGGED_IN")||H.push(JZL());return Promise.all(H).then(function(k){return k.every(function(d){return d})})}):Promise.resolve(!1)};
vB1=function(){nR("PromptCount").then(function(A){return UTB("PromptCount",A+1)}).then(function(){return UTB("PromptTime",Date.now())}).then(function(){var A=_.k6("service_worker_push_force_notification_prompt_tag");
if(A)return nR("PromptTags").then(function(H){var k=[];if(H)try{k=JSON.parse(H)}catch(d){return!1}k||(k=[]);k.push(A);return UTB("PromptTags",JSON.stringify(k))})})};
jN_=function(){yZG||gBL()};
IW3=function(A){A.style.zIndex=2147483648;A.style.pointerEvents="auto";A.style.backgroundColor="rgba(0, 0, 0, 0.6)";A.style.width="100%";A.style.height="100vh";A.style.position="absolute";A.style.top="0";A.style.left="0";A.style.border="none"};
YHi=function(){var A=_.cn(document,"yt-push-prompt-modal-bg");yZG=_.b("service_worker_push_prompt_modal_ignore_click");A?IW3(A):(A=_.JK("div",{id:"yt-push-prompt-modal-bg"}),IW3(A),document.body.appendChild(A),_.Nbf(document,"click",jN_))};
P9I=function(){var A=arguments;_.b("service_worker_push_prompt_modal_enable")&&YHi();return Notification.requestPermission().then(function(H){gBL();var k=document.getElementById("ticker");k&&(k.className=k.classList.remove("show"));if(H=="granted")return rZG().then(function(){zW3(!1);BEe();return Promise.resolve(!0)});
H=="denied"&&BEe();return Promise.resolve(!1)}).catch(function(){gBL();
return Promise.reject.apply(Promise,_.fV(A))})};
GHL=function(A){A=A===void 0?!1:A;var H=_.js().client;if(H&&H.browserVersion){var k=H.browserVersion,d=H.browserName=="CHROME"&&_.JA(k,"50.0.0")<0;H=H.browserName=="OPERA"&&_.JA(k,"42.0.0")<0;if(d||H)return Promise.resolve()}return i8I().then(function(W){if(!W)return Promise.resolve();W=rZG().then(function(){return up1({type:"notifications_check_registration",data:_.pZ("ID_TOKEN")})});
return Notification.permission!="default"?W.catch(function(){}):W.then(function(){return Lp_(A)}).then(function(z){if(z)return vB1(),P9I().then(function(){})}).catch(function(){})})};
FpG=function(A){return eWB(A)?GHL():Promise.resolve()};
X0L=function(A){var H=A.installing||A.waiting;return A.active||!H?Promise.resolve(A):new Promise(function(k){var d=function(W){W=W.target;if(W.state==="activated"||W.state==="redundant")H.removeEventListener("statechange",d),k(A)};
H.addEventListener("statechange",d)})};
DwI=function(){var A=new _.L1f("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.oI(A,{mainAppWeb:_.Il()});var H=_.KI1;_.b("service_worker_forward_exp_params")&&(H=H8L(H));try{var k=_.z_l(H).catch(function(){_.$q(A,"FAILURE");return new Promise(function(){})});
_.b("service_worker_push_enabled")&&k.then(function(d){_.$q(A,"SUCCESS");return d}).then(X0L).then(FpG)}catch(d){if(_.$q(A,"FAILURE"),d.name!=="SecurityError")throw d;
}};
SHi=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&DwI()};
wG=function(A,H,k,d,W){var z={};H&&(z[H]=k);d?z.errorType=d:W&&(z.errorReason=W);_.yr(A,z);_.jM()};
C9Q=function(A,H){var k={};H&&(k.serializedYpcFamilyCreateLoggingParams=H);_.yr(A,k);_.jM()};
KpV=function(A,H){var k={};k.serializedYpcRefundFlowLoggingParams=H;A&&(k.eventType=A);_.yr("ypcRefundFlowEvent",k);_.jM()};
aWL=function(A){A&&_.rCr("transactionFlowSucceeded",A)};
cZB=function(){wG("ypcRedeemFlowStarted")};
p0e=function(A){wG("ypcRedeemFlowFailed",void 0,void 0,void 0,A)};
QN_=function(A){A&&wG("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
of=function(A){return function(H,k){var d=A||k.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(H,k,{get:function(){var W;return this.$?this.$[d]:(W=_.w4(this))==null?void 0:W.querySelector("#"+d)},
enumerable:!0,configurable:!0})}};
Vc3=function(A){if(A=_.yII(A)){var H;(H=A.sources)!=null&&H[0]?(H=_.IXQ(A),H=H<1?"VERTICAL":H>1?"HORIZONTAL":"SQUARE"):H=void 0;return H}};
EB_=function(A){return(A=_.yII(A))?_.IXQ(A):0};
Uwe=function(A){var H,k,d,W,z,u,B;_.e(function(h){if(h.nextAddress==1)return h.yield(_.bDb(),2);if(h.nextAddress!=3){if(!h.yieldResult)return h.return(!1);H=[];return h.yield(_.Qw.keys(),3)}k=h.yieldResult;d=_.r(k);for(W=d.next();!W.done;W=d.next())z=W.value,u=_.JQQ(z),B=u.datasyncId,!B||A.includes(B)||H.push(_.Qw.delete(z));return h.return(Promise.all(H).then(function(O){return O.some(function(T){return T})}))})};
lWL=function(){var A,H,k,d,W,z,u;return _.e(function(B){if(B.nextAddress==1)return B.yield(_.bDb(),2);if(B.nextAddress!=3){if(!B.yieldResult)return B.return(!1);A=_.Oa("cache contains other");return B.yield(_.Qw.keys(),3)}H=B.yieldResult;k=_.r(H);for(d=k.next();!d.done;d=k.next())if(W=d.value,z=_.JQQ(W),(u=z.datasyncId)&&u!==A)return B.return(!0);return B.return(!1)})};
tcV=function(A,H){return _.Mw(A.entities,"timedMarkersListSyncEntity",H)};
NEL=function(A,H){return _.Mw(A.entities,"liveReactionsDataEntity",H)};
Mc_=function(A,H){A=_.Mw(A.entities,"booleanEntity",H);return!(!A||!A.value)};
nB_=function(A,H){var k=_.hx();k&&A&&_.v0(k,_.db(A),H)};
Z83=function(A){return A.watch.isWatchActive};
fWM=function(A){return A.watch.isLearningJourneyActive};
w0e=function(A){return A.watch.watchWindowSize};
oBL=function(A){return!_.v$X(A)};
$o=function(A){return A.watch.watchScrollTop};
$w_=function(A){return A.watch.isLiveChatCollapsed};
Are=function(A,H){return _.Mw(A.entities,"flowStateEntity",H)};
HmB=function(){var A=_.wj().resolve(_.fZ(_.paw));return A?A.getCurrentTime():0};
sc_=function(A,H){A={videoId:A};H&&(A.playlistId=H);return A};
kKQ=function(){var A,H,k,d,W,z,u,B,h,O,T,m,J,g;return _.e(function(v){switch(v.nextAddress){case 1:A={},H=_.jQf(),k=_.r(Object.entries(H)),d=k.next();case 4:if(d.done){v.jumpTo(3);break}W=d.value;z=_.r(W);u=z.next().value;B=z.next().value;h=u;O=B;if(!O){v.jumpTo(5);break}return v.yield(O(),8);case 8:A[h]=v.yieldResult;case 5:d=k.next();v.jumpTo(4);break;case 2:T=_.r(),m=T.next();case 9:if(m.done){v.jumpTo(3);break}J=m.value;g=H[J];if(!g){v.jumpTo(10);break}return v.yield(g(),13);case 13:A[J]=v.yieldResult;
case 10:m=T.next();v.jumpTo(9);break;case 3:return v.return(A)}})};
dmG=function(){var A;_.e(function(H){if(H.nextAddress==1)return H.yield(kKQ(),2);A=H.yieldResult;return H.yield(navigator.clipboard.writeText(JSON.stringify(A,null,2)),0)})};
WjR=function(A,H){if(A&&H){var k=_.$E();k().set(A,H);_.SVQ(k())}};
zFV=function(A,H){if(A&&H){var k=_.$E();k().set(A,H);_.SVQ(k())}};
qAL=function(A,H){return _.Mw(A.entities,"superThanksSelectedTierEntity",H)};
rrR=function(A,H){return _.Mw(A.entities,"contextNoteUserRatingEntityPayload",H)};
u3Q=function(){_.b("web_watch_log_theater_mode")&&_.ZcI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
Bl3=function(A,H,k){if(!A.includes("START_TIME_PLACEHOLDER")||!A.includes("END_TIME_PLACEHOLDER"))return A;var d=new Date(0),W=new Date(0);d.setUTCMilliseconds(H);W.setUTCMilliseconds(k);return A.replace("START_TIME_PLACEHOLDER",_.yc(d,7)).replace("END_TIME_PLACEHOLDER",_.yc(W,7))};
eFI=function(A,H,k){var d=k.minimumRowsOfVideosBetweenSections===void 0?1:k.minimumRowsOfVideosBetweenSections;return A<(k.minimumRowsOfVideosAtStart===void 0?2:k.minimumRowsOfVideosAtStart)||H!==null&&A-H<=d?!1:!0};
xm1=function(A,H){var k=0,d=0;A=_.r(A);for(var W=A.next();!W.done;W=A.next()){var z=W.value;if(z.richItemRenderer)z.richItemRenderer.rowIndex=d,z.richItemRenderer.colIndex=k++,k===H&&(k=0,d++);else if(z.richGroupRenderer&&z.richGroupRenderer.numColumns!==void 0)z.richGroupRenderer.rowIndex=d,z.richGroupRenderer.colIndex=k,k+=z.richGroupRenderer.numColumns,k===H&&(k=0,d++);else if(z.richSectionRenderer){var u=W=void 0;if(z=_.L((W=z)==null?void 0:(u=W.richSectionRenderer)==null?void 0:u.content,_.fwi))z.rowIndex=
d++}}};
imL=function(A,H){var k=H.contentElement;H=H.rendererToTagNameMap;if(k&&H&&H.size!==0){for(var d=new Map,W=_.r(k.children),z=W.next();!z.done;z=W.next()){z=z.value;var u=z.tagName.toLowerCase(),B=d.get(u);B||(B=[],d.set(u,B));B.push(z)}if(d.size!==0)for(W=Math.min(A.length,k.children.length),z=new Map,u=0;u<W;u++){B=Object.keys(A[u])[0];B=H.get(B);if(!B)break;var h=z.get(B);h===void 0&&(h=0,z.set(B,h));var O=d.get(B);if(!O||h>=O.length)break;z.set(B,h+1);B=O[h];h=k.children[u];h!==B&&(_.Xc=!0,_.Df.set(B,
!0),k.insertBefore(B,h),_.Df.delete(B),_.Xc=!1)}}};
hF_=function(A,H,k,d,W,z,u){d=d===void 0?{}:d;if(!A||!A.length)return{orderedContent:[]};A=A.slice();var B=[],h=[];W=null;for(var O=0,T=function(N){h.sort(function(M,Z){return Z.skippedOnRow-M.skippedOnRow});
for(var U,p=(U=h.shift())==null?void 0:U.content;p;)!p.richSectionRenderer&&N||B.push(p),U=void 0,p=(U=h.shift())==null?void 0:U.content},m=void 0,J=void 0,g=new Set;A.length>0||h.length>0;){for(var v=[],y=H;y>0;){var X=void 0,D=void 0,K=(D=h[0]&&h[0].skippedOnRow<O?(X=h.shift())==null?void 0:X.content:void 0)!=null?D:A.shift();
if(!K)break;if(K.richItemRenderer)X=K.richItemRenderer.targetId,D=void 0,X&&((D=u)==null?0:D.has(X))&&(D=u.get(X),!m||D&&D.timestamp>m.timestamp)&&(m=D,J&&g.add(J),J=X),v.push(K),y--;else if(K.richGroupRenderer&&K.richGroupRenderer.numColumns!==void 0)K.richGroupRenderer.numColumns<=y?(v.push(K),y-=K.richGroupRenderer.numColumns):y===H&&K.richGroupRenderer.numColumns>H?(v.push({richGroupRenderer:Object.assign({},K.richGroupRenderer,{numColumns:H})}),y=0):h.push({content:K,skippedOnRow:O});else if(K.richSectionRenderer)if(eFI(O,
W,d)&&y===H){B.push(K);W=O;O++;continue}else h.push({content:K,skippedOnRow:O});else if(K.continuationItemRenderer){T(!0);B.push(K);y=0;break}if(y===0)B.push.apply(B,_.fV(v));else if(!k&&A.length===0){T(!1);B.push.apply(B,_.fV(v));y=0;break}}O++;m&&(B.push(m.content),O++);J=m=void 0}xm1(B,H);z&&imL(B,z);return{orderedContent:B,pinnedContentNotShownTargetIds:g}};
Om1=function(A){return A.shorts.isSmallScreenSqueezeback};
RFM=function(A){return A.shorts.isPlaybackStarted};
mmI=function(){if(_.b("kevlar_home_skeleton")&&!TlV){var A=document.querySelector("#home-page-skeleton");A&&(_.OH("hgcr"),_.Aw(A),TlV=!0)}};
bmG=function(){if(_.l2W()){var A=_.pZ("PLAYER_VARS",{});if(_.iK.get(A,"privembed",!1)!="1"&&!NY1(A)){var H=function(){JrB=!0;"google_ad_status"in window?_.cI("DCLKSTAT",1):_.cI("DCLKSTAT",2)};
try{_.bi(_.KJQ,H)}catch(k){}gu_.push(_.IE.addLowPriorityJob(function(){if(!(JrB||"google_ad_status"in window)){try{_.K1N(_.KJQ.toString(),H)}catch(k){}JrB=!0;_.cI("DCLKSTAT",3)}},5E3))}}};
LjI=function(A){return!!A.getOptions("captions")};
vuM=function(A){return(A=A.getOption("captions","track"))?!!A.displayName:!1};
yrG=function(A){return Ek(A,function(H){return H.languageCode==="en"})};
jcV=function(A){var H=AO;if(vuM(A))A.setOption("captions","stickyLoading",{}),A.setOption("captions","track",{});else{var k=Ek(_.Z9r(A),function(d){return d.displayName===H});
A.setOption("captions","track",k)}};
Iu_=function(A,H){return{popup:{searchSuggestionReportDialog:{searchQuery:A,title:_.$r("SBOX_INAPPROPRIATE_TITLE"),suggestions:H,categoryLabel:_.$r("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.$r("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.$r("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.$r("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.$r("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.$r("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.$r("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.$r("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.$r("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.$r("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
YA3=function(A){var H=_.sH();if(H.getFlag(202))H=H.getFlag(201);else{var k;H=(A==null?void 0:(k=A.config)==null?void 0:k.settingOnByDefault)!==void 0?A.config.settingOnByDefault:!_.Wl("web_shorts_cinematics_disabled_by_default")}return H};
Pk_=function(A){var H=_.sH();_.kB(0,201,A);_.kB(0,202,!0);H.save()};
GKL=function(A){var H,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N;return _.e(function(U){switch(U.nextAddress){case 1:return U.yield(_.f8(),2);case 2:return(H=U.yieldResult)?U.yield(_.cT8(H),3):U.return();case 3:k=U.yieldResult;if(!k)return U.return();W=((d=k.offlineVideos)==null?void 0:d.length)||0;u=((z=k.offlinePlaylists)==null?void 0:z.length)||0;if(W===0&&u===0)return U.return();B=0;if(k.offlineVideos)for(h=_.r(k.offlineVideos),O=h.next();!O.done;O=h.next())T=O.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
T.videoState&&(B+=1);A.offline_videos_count=W.toString();_.b("kevlar_log_offline_current_network_type_ks")||(A.offline_current_network_type=(m=_.RFm())!=null?m:"CONN_INVALID");_.b("kevlar_log_updated_time_for_smart_downloads")&&(J=_.F3().getState().entities,g=_.eX(J),v=Bn1(J),A.offline_smart_downloads_last_sync_time_ms=g.toString(),A.offline_smart_downloads_next_sync_time_ms=v.toString());A.offline_videos_playable=B.toString();A.offline_playlists_count=u.toString();k.offlineVideos&&(y=k.offlineVideos.reduce(function(p,
M){M.downloadedBytes&&(p+=Number(M.downloadedBytes));return p},0).toString())&&(A.offline_used_disk_space_bytes=y);
if(!((X=navigator)==null?0:(D=X.storage)==null?0:D.estimate)){U.jumpTo(4);break}return U.yield(navigator.storage.estimate(),5);case 5:K=U.yieldResult,A.offline_free_disk_space_bytes=(((N=K)==null?void 0:N.quota)||0).toString();case 4:A.offline_client_state=JSON.stringify(k),_.EN(U)}})};
Fj_=function(A){A=A.match(/(.*)::.*::.*/);if(A!==null)return A[1]};
XK1=function(A){if(_.zoN()){var H=Object.keys(window.sessionStorage);H=_.r(H);for(var k=H.next();!k.done;k=H.next()){k=k.value;var d=Fj_(k);d===void 0||A.includes(d)||self.sessionStorage.removeItem(k)}}};
Dm_=function(){if(!_.zoN())return!1;var A=_.Oa(),H=Object.keys(window.sessionStorage);H=_.r(H);for(var k=H.next();!k.done;k=H.next())if(k=Fj_(k.value),k!==void 0&&k!==A)return!0;return!1};
SA3=function(A){if(!A)return 0;var H=A.getPresentingPlayerType(),k=A.getVideoData();return k&&k.isLive?(A=A.getProgressState(H),A.seekableEnd-A.seekableStart):A.getDuration(H)};
Hr=function(A,H){_.eY(H,A,function(){return CkQ[H]},function(k){CkQ[H]=k;
if(!_.b("mweb_player_ve_show_ks")){var d=_.hx(0);d&&k&&_.jc(d,k)}})};
sO=function(A){(A=CkQ[A])&&_.f4(_.A7(),A)};
Kji=function(A,H){for(var k=_.r(Object.keys(A)),d=k.next();!d.done;d=k.next())if(d=d.value,A[d]!==H[d])return!1;return!0};
auI=function(){return document.getElementById("player-control-overlay")};
crG=function(A){A!==-1&&_.b("player_controls_log_creation_enabled")&&auI()&&(_.OH("pcu_cs",A),_.OH("pcu_ce"))};
pKL=function(A){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:A}}]}}}};
Qce=function(A,H,k,d){var W=_.b("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;H=Object.assign({},{text:H,hasGradientBackground:k},d&&{backgroundStyle:d},W&&{itemTargetId:W});W=_.b("web_enable_chat_autoscroll_to_user_turn")&&W?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:W,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:H}],
insertByPositionInSection:{sectionTargetId:A,position:"INSERTION_POSITION_LAST"}}}]},W?{scrollConfig:W}:{})}}};
VX1=function(A,H){return _.Mw(A.entities,"booleanEntity",H)};
EuL=function(){return function(A){_.XI(_.kH("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:A}))}};
UmQ=function(A,H){H.stack&&(A.stack+="\n"+H.stack);return A};
lu3=function(){this.isInputValid_=!0;this.JSC$19614_streamPos_=0;this.leftoverInput_=""};
tXI=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19617_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
ZmG=function(A){var H=NlG(A,"Content-Type");if(!H)return null;H=H.toLowerCase();if(H.startsWith("application/json"))return H.startsWith("application/json+protobuf")?new MXB:new _.BN;if(H.startsWith("application/x-protobuf")){A=NlG(A,"Content-Transfer-Encoding");if(!A)return new tXI;if(A.toLowerCase()=="base64")return new nu3}return null};
dH_=function(A,H,k,d){var W=new fu1(function(B,h){return wK_.has(h)?B.sentinel==="gal"&&B.event!==void 0:!1},function(B){B.event?(B=ou1(B.event),B=!B||$m3(d,B)?!0:_.WZ(A.lastEvent,k$,2,dk)?!_.WZ(B,Wr,1,dk)&&!_.WZ(B,k$,2,dk):!_.WZ(B,Wr,1,dk)&&!_.WZ(B,k$,3,dk)):B=!0;
return B});
k=_.Yd(A.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",A13(k)]]));if(A.nestedOrigins!==void 0)for(var z=_.r(A.nestedOrigins),u=z.next();!u.done;u=z.next())k=_.Yd(k,new Map([["origin",u.value]]));return HFR(W,k,H).then(function(B){B=sl1(B.event);if(_.WZ(B,Wr,1,dk)){var h,O=(h=_.JY(B,Wr,1,dk))==null?void 0:_.RX(h,2);O&&d.JSC$19669_logErrorEvent(kDi(O));h=_.JY(B,Wr,1,dk);_.RX(h,2)===4?(B=_.JY(B,Wr,1,dk),B={statusCode:11,statusMessage:_.O8(B,
3)}):(B=_.JY(B,Wr,1,dk),B={statusCode:12,statusMessage:_.O8(B,3)});return B}_.WZ(B,k$,3,dk)?(B=_.JY(B,k$,3,dk),B={statusCode:1,consentLanguageKeys:_.O8(B,2)}):B={statusCode:1};return B}).catch(function(B){return B.errorCode!==void 0?{statusCode:B.errorCode,
statusMessage:B.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
r1L=function(A){var H={};if(A===void 0||A===null)return H;A.getToken()!==void 0&&WHB(A.getToken())&&WHB(A.getToken()).length>0&&(H.scopes=new Set(WHB(A.getToken())));A.getToken()!==void 0&&zYV(A.getToken())&&zYV(A.getToken()).length>0&&(H.capabilities=new Set(zYV(A.getToken())));_.O8(A,3)!==void 0&&(H.consistencyKey=_.O8(A,3));A.getName()!==void 0&&A.getName()!==""&&(H.linkName=A.getName());_.dd(A,qJ1,4)&&(A=_.Af(A,qJ1,4),A=Object.assign({},_.O8(A,1)&&{userId:_.O8(A,1)},_.O8(A,2)&&{displayName:_.O8(A,
2)},_.O8(A,3)&&{email:_.O8(A,3)},_.O8(A,5)&&{username:_.O8(A,5)},_.O8(A,4)&&{profilePicture:_.O8(A,4)}),H.profile=A);return H};
u_L=function(A,H){var k=A.flowParams,d;return{serviceId:k.serviceId,sessionId:k.sessionId,currentFlow:A.currentFlow,googleScopesString:H,linkingSessionSerialized:A.session.serialize(),consentLanguageKeys:k.consentLanguageKeys,callerState:A.callerState,dynamicUrlParameters:k.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(d=k.partnerConfigMinReadTimestamp)==null?void 0:d.serialize()}};
hYR=function(A){var H=A.googleScopes!==void 0?Array.from(A.googleScopes).join(","):"";B4I(u_L(A,H),A.config.localStorage);H=eYi(A);return H===null?Promise.resolve(xHM):H.start().then(function(k){var d,W=(d=k.link)==null?void 0:d.consistencyKey;return k.statusCode===1&&A.googleScopes!==void 0&&A.googleScopes.size>0&&W!==void 0?(d=A.flowParams,iFI(d.serviceId,d.sessionId,A.googleScopes,W,d.galService,A.config,k)):k})};
RYB=function(A){var H=eYi(A);return H===null?Promise.resolve(OF_({statusCode:7,statusMessage:"Failed to create flow object"},A.callerState)):H.complete().then(function(k){var d,W=(d=k.link)==null?void 0:d.consistencyKey;return k.statusCode===1&&A.googleScopes!==void 0&&A.googleScopes.size>0&&W!==void 0?(d=A.flowParams,iFI(d.serviceId,d.sessionId,A.googleScopes,W,d.galService,A.config,k)):OF_(k,A.callerState)},function(k){return OF_({statusCode:12,
statusMessage:"Failed to complete the flow: "+k.message},A.callerState)})};
iFI=function(A,H,k,d,W,z,u){return T41(W,{serviceId:A,sessionId:H,googleScopes:k,consistencyKey:d}).then(function(){return u},function(B){return W.deleteLink({serviceId:A,
sessionId:H,accountLinkingEntryPoint:z.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+B.message}},function(h){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+h.message}})})};
eYi=function(A){switch(A.currentFlow){case 1:var H=A.flowParams;A=_.Af(A.session,mH3,1);return J1R.createOAuthFlow(H,A);case 2:case 3:return H=A.flowParams,A=_.Af(A.session,gI1,6),bF_.createStreamlinedFlow(H,A);default:return null}};
vIe=function(A,H){A===2&&(A=3);var k=0;LHL.indexOf(A)!==-1&&(k=LHL.indexOf(A)+1);for(A=k;A<LHL.length;A++)if(H.has(LHL[A]))return LHL[A]};
IeB=function(A){var H=A.serviceId;var k=A.sessionId;var d=A.config;var W=A.galService;var z=A.capabilities;var u=A.scopes;var B=A.loginHint;var h=A.callerState;var O=A.consentLanguageKeys;var T=A.linkName;var m=A.dynamicUrlParameters;var J=A.partnerConfigMinReadTimestamp;A=d.dataUsageNoticeConfig?d.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return W.startLinkingSession({serviceId:H,sessionId:k,capabilities:z,scopes:u,loginHint:B,callerState:h,supportedFlows:y1G(d.supportedFlows),completionUrl:d.completionUrl,
accountLinkingEntryPoint:d.accountLinkingEntryPoint,consentLanguageKeys:O,dataUsageNoticeConfig:A,linkName:T,dynamicUrlParameters:m,partnerConfigMinReadTimestamp:J}).then(function(g){return new jlL(H,k,d,W,g,void 0,h,O,m,J)})};
DHL=function(A,H,k){var d=(new YJe(H.localStorage)).getSession(A);if(d===null)return Promise.resolve({statusCode:2});PwQ(A,H.localStorage);var W=GDe(d.linkingSessionSerialized),z=d.googleScopesString!==""&&d.googleScopesString!==void 0?new Set(d.googleScopesString.split(",")):void 0,u=d.partnerConfigMinReadTimestampSerialized?FHB(d.partnerConfigMinReadTimestampSerialized):void 0;return XMV(new jlL(A,d.sessionId,H,k,W,z,d.callerState,d.consentLanguageKeys,d.dynamicUrlParameters,u),d.currentFlow,d.consentLanguageKeys)};
B4I=function(A,H){H=new YJe(H);H.storage!==null&&H.storage.set("SAVED_SESSION",A)};
PwQ=function(A,H){H=new YJe(H);if(H.storage!==null){var k=H.storage.get("SAVED_SESSION");k!==void 0&&k.serviceId===A&&H.storage.remove("SAVED_SESSION")}};
y1G=function(A){var H=new Set;A=_.r(A);for(var k=A.next();!k.done;k=A.next())k=k.value,k!==1&&SJR.has(k)&&H.add(SJR.get(k));return H};
OF_=function(A,H){H!==void 0&&(A.callerState=H);return A};
CwI=function(A){switch(A){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
c1_=function(A){return new KHB(A,new aeG(A))};
Vs_=function(A,H){H=H===void 0?!1:H;var k=document.createElement("div");A&&(k.style.transform="scaleX(-1)");k.style.backgroundColor=H?"rgba(138,180,248,.24)":"#e8f0fe";k.style.height="4px";k.style.overflow="hidden";k.style.position="absolute";k.style.top="0";k.style.width="100%";k.style.zIndex="1500";k.setAttribute("aria-label","Loading");k.setAttribute("aria-live","polite");A=document.createElement("style");A.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  }";
k.appendChild(A);A=pMQ();A.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";A.style.left="-145.166611%";var d=QlB(H);d.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";A.appendChild(d);k.appendChild(A);A=pMQ();A.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";A.style.left="-54.888891%";H=QlB(H);H.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
A.appendChild(H);k.appendChild(A);return k};
pMQ=function(){var A=document.createElement("div");A.style.height="100%";A.style.position="absolute";A.style.transformOrigin="top left";A.style.width="100%";return A};
QlB=function(A){var H=document.createElement("span");H.style.borderTop=A?"4px solid #669df6":"4px solid #4285f4";H.style.display="inline-block";H.style.position="absolute";H.style.width="100%";return H};
EIB=function(A){return A==null?void 0:_.S90(A).valueOf()};
N4G=function(A){var H=document.body,k=!1,d=function(){k||(k=!0,UHM(W,z),setTimeout(function(){H.removeChild(z);H.removeChild(W)},150))},W=leB(A,getComputedStyle(H).direction==="rtl",d),z=tsM(d);
UHM(W,z);H.appendChild(z);H.appendChild(W);window.requestAnimationFrame(function(){z.style.opacity="1";W.style.opacity="1";W.style.transform="translate(-50%, -50%) scale(1)";W.children[0].focus()})};
leB=function(A,H,k){var d=document.createElement("div");d.style.position="fixed";d.style.alignItems="center";d.style.backgroundColor=A?"rgb(32, 33, 36)":"white";d.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";d.style.display="flex";d.style.flexDirection="column";d.style.justifyContent="center";d.style.left="50%";d.style.top="50%";d.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";d.style.zIndex="2002";document.body.clientWidth>=
660?(d.style.borderRadius="8px",d.style.minHeight="220px",d.style.maxHeight="90%",d.style.maxWidth="90%",d.style.minWidth="540px"):(d.style.height="100%",d.style.width="100%");d.setAttribute("aria-label","Error");d.setAttribute("aria-modal","true");d.setAttribute("role","alertdialog");d.addEventListener("keydown",function(z){z.key==="Escape"&&k()});
H=Ms_(A,H,k);d.appendChild(nII(H));d.appendChild(H);var W=document.createElement("img");W.src=A?"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";W.style.height="72px";W.style.width="72px";W.style.color="#9aa0a6";W.setAttribute("alt","");d.appendChild(W);W=document.createElement("h1");W.textContent="Something went wrong.  Try again.";
W.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";W.style.lineHeight="24px";W.style.fontSize="16px";W.style.textAlign="center";W.style.letterSpacing="0.1px";W.style.color=A?"rgb(232,234,237)":"#3c4043";d.appendChild(W);d.appendChild(nII(H));return d};
Ms_=function(A,H,k){var d=document.createElement("button");d.style.backgroundColor="transparent";d.style.border="none";d.style.borderRadius="50%";d.style.cursor="pointer";d.style.outline="none";d.style.padding="12px";d.setAttribute("aria-label","Close dialog");d.style.position="absolute";d.style.top="0";H?d.style.right="0":d.style.left="0";d.addEventListener("focus",function(){d.style.backgroundColor=A?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
d.addEventListener("blur",function(){d.style.backgroundColor="transparent"});
d.addEventListener("mouseenter",function(){d.style.backgroundColor=A?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
d.addEventListener("mouseleave",function(){d.style.backgroundColor="transparent"});
d.addEventListener("click",k);d.addEventListener("keydown",function(W){W.key!=="Enter"&&W.key!=="Space"||k()});
H=document.createElement("img");H.src=A?"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";H.style.display="block";H.style.height="24px";H.style.width="24px";H.setAttribute("alt","");d.appendChild(H);return d};
nII=function(A){var H=document.createElement("div");H.setAttribute("tabindex","0");H.setAttribute("aria-hidden","true");H.addEventListener("focus",function(){return void A.focus()});
return H};
tsM=function(A){var H=document.createElement("div");H.style.backgroundColor="rgba(32,33,36,0.6)";H.style.bottom="0";H.style.left="0";H.style.position="fixed";H.style.right="0";H.style.top="0";H.style.transition=" opacity 150 ms linear";H.style.zIndex="2001";H.addEventListener("click",A);return H};
UHM=function(A,H){H.style.opacity="0";A.style.opacity="0";A.style.transform="translate(-50%, -50%) scale(0.8)"};
ZFL=function(A,H){A.sandbox&&A.sandbox.add&&(A.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),A.sandbox.add("allow-downloads"));A.src=H};
zJ=function(A){this.JSC$19857_value_=void 0;this.childNodes_={};if(A){var H=_.OT0(A);A=_.cS(A);for(var k=0;k<H.length;k++)this.set(H[k],A[k])}};
qu=function(A){fee.call(this,A)};
H0V=function(A,H){H=H===void 0?!1:H;this.parsedImageUrl_=null;A instanceof wMB||(oIQ==void 0&&(oIQ=new $HL),A=oIQ.parse(A.toString(),H));A=this.parsedImageUrl_=A;A.JSC$19882_parsedOptions_==void 0&&((H=A.getOptions())||(H=""),A.JSC$19882_parsedOptions_=(new A6_).parse(H));fee.call(this,A.JSC$19882_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;A=this.parsedImageUrl_;H=A.uri_.JSC$10346_port_;this.JSC$19884_domain_=A.uri_.JSC$10346_domain_+(H?":"+H:"");this.JSC$19884_query_=
this.parsedImageUrl_.uri_.JSC$10346_queryData_.toString()};
rk=function(A){_.qp.call(this,"upload");this.opts.query=A};
sOM=function(A){this.mode=4;this.data=A;this.parsedData=[];A=0;for(var H=this.data.length;A<H;A++){var k=[],d=this.data.charCodeAt(A);d>65536?(k[0]=240|(d&1835008)>>>18,k[1]=128|(d&258048)>>>12,k[2]=128|(d&4032)>>>6,k[3]=128|d&63):d>2048?(k[0]=224|(d&61440)>>>12,k[1]=128|(d&4032)>>>6,k[2]=128|d&63):d>128?(k[0]=192|(d&1984)>>>6,k[1]=128|d&63):k[0]=d;this.parsedData.push(k)}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))};
knL=function(A){this.typeNumber=0;this.errorCorrectLevel=A===void 0?2:A;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
uh=function(A,H){if(A.length==void 0)throw Error("Lk`"+A.length+"`"+H);for(var k=0;k<A.length&&A[k]==0;)k++;this.num=Array(A.length-k+H);for(H=0;H<A.length-k;H++)this.num[H]=A[H+k]};
d0e=function(A,H){this.totalCount=A;this.dataCount=H};
W$_=function(){this.buffer=[];this.length=0};
z7I=function(){var A=!1;if(_.yAQ()){A=_.bI();var H="";_.YCC()?(H=/Windows (?:NT|Phone) ([0-9.]+)/,H=(A=H.exec(A))?A[1]:"0.0"):_.XX()?(H=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,H=(A=H.exec(A))&&A[1].replace(/_/g,".")):_.IQQ()?(H=/Mac OS X ([0-9_.]+)/,H=(A=H.exec(A))?A[1].replace(/_/g,"."):"10"):_.OC(_.bI(),"KaiOS")?(H=/(?:KaiOS)\/(\S+)/i,H=(A=H.exec(A))&&A[1]):_.yAQ()?(H=/Android\s+([^\);]+)(\)|;)/,H=(A=H.exec(A))&&A[1]):_.PIb()&&(H=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,H=(A=H.exec(A))&&A[1]);A=
H||""}return A};
x0_=function(A,H){this.JSC$19913__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(H)for(var k in H)this.JSC$19913__htOption[k]=H[k];this.JSC$19913__htOption.useSVG&&(q6Q=r6B);this.JSC$19913__android=z7I();this.JSC$19913__el=A;this._oQRCode=null;this._oDrawing=new q6Q(this.JSC$19913__el,this.JSC$19913__htOption);this.JSC$19913__htOption.text&&(A=this.JSC$19913__htOption.text,this._oQRCode=new knL(this.JSC$19913__htOption.correctLevel),uIG(this._oQRCode,
A),H=this._oQRCode,Bu_(H,!1,e7e(H)),this.JSC$19913__el.title=A,this._oDrawing.draw(this._oQRCode),this.makeImage())};
i0e=function(A,H,k,d,W){A.save();var z=new Path2D;z.roundRect(H,k,d*7,d*7,d*2);z.roundRect(H+d,k+d,d*5,d*5,d*1.3);z.roundRect(H+2*d,k+2*d,d*3,d*3,d);A.clip(z,"evenodd");A.fillStyle=W;A.fillRect(0,0,A.canvas.width,A.canvas.height);A.restore()};
O0V=function(){return h71=h71||new _.Is};
R7I=function(A){_.NZ.call(this,"serverreachability",A)};
Tu3=function(A){var H=O0V();H.dispatchEvent(new R7I(H,A))};
m0M=function(A,H){_.NZ.call(this,"statevent",A);this.stat=H};
Br=function(A){var H=O0V();H.dispatchEvent(new m0M(H,A))};
J6L=function(A,H,k,d){_.NZ.call(this,"timingevent",A);this.size=H;this.rtt=k;this.retries=d};
g9V=function(A,H,k){var d=O0V();d.dispatchEvent(new J6L(d,A,H,k))};
b0Q=function(A,H){if(typeof A!=="function")throw Error("Ok");return _.k8.setTimeout(function(){A()},H)};
eU=function(){this.redactEnabled_=!0};
x$=function(A,H,k,d,W){this.JSC$19935_channel_=A;this.JSC$19935_channelDebug_=H;this.sid_=k;this.JSC$19935_rid_=d;this.JSC$19935_retryId_=W||1;this.JSC$19935_eventHandler_=new _.qZ(this);this.timeout_=45E3;this.JSC$19935_extraHeaders_=null;this.JSC$19935_successful_=!1;this.JSC$19935_postData_=this.JSC$19935_requestUri_=this.JSC$19935_baseUri_=this.JSC$19935_type_=this.JSC$19935_requestStartTime_=this.JSC$19935_watchDogTimeoutTime_=this.JSC$19935_watchDogTimerId_=null;this.JSC$19935_pendingMessages_=
[];this.JSC$19935_xmlHttp_=null;this.JSC$19935_xmlHttpChunkStart_=0;this.JSC$19935_lastError_=this.JSC$19935_verb_=null;this.JSC$19935_lastStatusCode_=-1;this.JSC$19935_cancelled_=!1;this.JSC$19935_readyStateChangeThrottleMs_=0;this.JSC$19935_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new L$1};
v91=function(A,H){var k=new eU;k.debug("TestLoadImage: loading "+A);if(_.k8.Image){var d=new Image;d.onload=_.H0(ih,k,"TestLoadImage: loaded",!0,H,d);d.onerror=_.H0(ih,k,"TestLoadImage: error",!1,H,d);d.onabort=_.H0(ih,k,"TestLoadImage: abort",!1,H,d);d.ontimeout=_.H0(ih,k,"TestLoadImage: timeout",!1,H,d);_.k8.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);
d.src=A}else H(!1)};
y6R=function(A,H){var k=new eU,d=new AbortController,W=setTimeout(function(){d.abort();ih(k,"TestPingServer: timeout",!1,H)},1E4);
fetch(A,{signal:d.signal}).then(function(z){clearTimeout(W);z.ok?ih(k,"TestPingServer: ok",!0,H):ih(k,"TestPingServer: server error",!1,H)}).catch(function(){clearTimeout(W);
ih(k,"TestPingServer: error",!1,H)})};
ih=function(A,H,k,d,W){try{A.debug(H),W&&(W.onload=null,W.onerror=null,W.onabort=null,W.ontimeout=null),d(k)}catch(z){}};
IS1=function(){this.JSC$19949_parser_=new jOV};
Y61=function(A,H,k){return k&&k.internalChannelParams?k.internalChannelParams[A]||H:H};
hO=function(A){this.serverVersion_=0;this.JSC$19954_outgoingMaps_=[];this.JSC$19954_channelDebug_=new eU;this.JSC$19954_hostPrefix_=this.JSC$19954_backChannelUri_=this.JSC$19954_forwardChannelUri_=this.JSC$19954_path_=this.JSC$19954_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19954_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19954_extraHeaders_=null;this.JSC$19954_nextMapId_=this.JSC$19954_nextRid_=0;this.JSC$19954_failFast_=Y61("failFast",
!1,A);this.enableStreaming_=this.JSC$19954_deadBackChannelTimerId_=this.JSC$19954_backChannelTimerId_=this.JSC$19954_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19954_lastPostResponseArrayId_=this.JSC$19954_lastArrayId_=-1;this.JSC$19954_backChannelAttemptId_=this.JSC$19954_backChannelRetryCount_=this.JSC$19954_forwardChannelRetryCount_=0;this.JSC$19954_baseRetryDelayMs_=Y61("baseRetryDelayMs",5E3,A);this.JSC$19954_retryDelaySeedMs_=
Y61("retryDelaySeedMs",1E4,A);this.JSC$19954_forwardChannelMaxRetries_=Y61("forwardChannelMaxRetries",2,A);this.JSC$19954_forwardChannelRequestTimeoutMs_=Y61("forwardChannelRequestTimeoutMs",2E4,A);this.JSC$19954_xmlHttpFactory_=A&&A.xmlHttpFactory||void 0;this.networkTestUrl_=A&&A.networkTestUrl||void 0;this.usesFetchStreams_=A&&A.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19954_supportsCrossDomainXhrs_=A&&A.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new Py_(A&&A.concurrentRequestLimit);this.maxMapsPerRequest_=Math.min(A&&A.maxMessagesPerRequest||1E3,1E3);this.wireCodec_=new IS1;this.fastHandshake_=A&&A.fastHandshake||!1;this.encodeInitMessageHeaders_=A&&A.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19954_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=A&&A.blockingHandshake||!1;A&&A.disableRedact&&
this.JSC$19954_channelDebug_.disableRedact();A&&A.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&A&&A.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;A&&A.longPollingTimeout&&A.longPollingTimeout>0&&(this.longPollingTimeout_=A.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
GnB=function(){};
OO=function(A,H){if(A instanceof OO)this.array_=A.array_;else{var k;if(k=_.Nv(A))a:{for(var d=k=0;d<A.length;d++){if(!_.Nv(A[d])||k>0&&A[d].length!=k){k=!1;break a}for(var W=0;W<A[d].length;W++)if(typeof A[d][W]!=="number"){k=!1;break a}k==0&&(k=A[d].length)}k=k!=0}if(k)this.array_=_.tA(A);else if(A instanceof _.Xt)this.array_=F$Q(A.height,A.width);else if(typeof A==="number"&&typeof H==="number"&&A>0&&H>0)this.array_=F$Q(A,H);else throw Error("Sk");}this.size_=new _.Xt(this.array_[0].length,this.array_.length)};
Ri=function(A,H){if(typeof A!=="function")throw Error("Ok");return _.k8.setTimeout(function(){A()},H)};
TJ=function(A,H,k,d,W){this.JSC$19981_channel_=A;this.JSC$19981_channelDebug_=H;this.sid_=k;this.JSC$19981_rid_=d;this.JSC$19981_retryId_=W||1;this.timeout_=45E3;this.JSC$19981_eventHandler_=new _.qZ(this);this.pollingTimer_=new _.BT;this.pollingTimer_.setInterval(250)};
mx=function(){};
D0L=function(A,H,k,d,W){(new mx).debug("TestLoadImageWithRetries: "+W);if(d==0)k(!1);else{var z=W||0;d--;XW_(A,H,function(u){u?k(!0):_.k8.setTimeout(function(){D0L(A,H,k,d,z)},z)})}};
XW_=function(A,H,k){var d=new mx;d.debug("TestLoadImage: loading "+A);var W=new Image;W.onload=function(){try{d.debug("TestLoadImage: loaded"),S6I(W),k(!0)}catch(z){}};
W.onerror=function(){try{d.debug("TestLoadImage: error"),S6I(W),k(!1)}catch(z){}};
W.onabort=function(){try{d.debug("TestLoadImage: abort"),S6I(W),k(!1)}catch(z){}};
W.ontimeout=function(){try{d.debug("TestLoadImage: timeout"),S6I(W),k(!1)}catch(z){}};
_.k8.setTimeout(function(){if(W.ontimeout)W.ontimeout()},H);
W.src=A};
S6I=function(A){A.onload=null;A.onerror=null;A.onabort=null;A.ontimeout=null};
CyR=function(A,H){this.JSC$19988_channel_=A;this.JSC$19988_channelDebug_=H;this.JSC$19988_parser_=new jOV};
JO=function(A,H,k){this.state_=1;this.JSC$19991_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19991_channelDebug_=new mx;this.JSC$19991_parser_=new jOV;this.firstTestResults_=A||null;this.secondTestResults_=H!=null?H:null;this.asyncTest_=k||!1};
K$_=function(){this.front_=[];this.back_=[]};
gk=function(A){this.JSC$20006_map_=new _.ig;this.size=0;A&&this.addAll(A)};
aSM=function(A,H){this.action=A;this.params=H||{}};
bh=function(A,H){_.dF.call(this);this.delay_=new _.z4(this.JSC$20080_onTick_,0,this);_.ZL(this,this.delay_);this.JSC$20078_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof A==="function")H&&(A=(0,_.WT)(A,H));else if(A&&typeof A.handleEvent==="function")A=(0,_.WT)(A.handleEvent,A);else throw Error("za");this.JSC$20080_listener_=A};
LS=function(A,H,k,d,W,z,u,B,h,O,T,m,J,g,v,y){var X=this;k=k===void 0?!1:k;d=d===void 0?function(){return""}:d;
W=W===void 0?!1:W;z=z===void 0?!1:z;u=u===void 0?!1:u;B=B===void 0?function(){return _.MT({})}:B;
h=h===void 0?!1:h;T=T===void 0?!1:T;m=m===void 0?!1:m;J=J===void 0?!1:J;g=g===void 0?!1:g;this.JSC$20081_pathPrefix_=A;this.defaultQueryParams_=H;this.pubsub_=new _.B5;this.retryLogger_=y;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!v)?v(function(){X.safeReconnect_()}):new bh(this.safeReconnect_,this);
this.JSC$20081_channel_=null;this.JSC$20081_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20081_pendingMessages_=[];this.enableAsyncTest_=k;this.JSC$20081_getXsrfToken_=d;this.useAsyncBrowserChannelHandler_=z;this.getAuthorizationHeader_=B;this.getAuthorizationHeaderSync_=O;this.enableCachedUpdateAuthorizationHeader_=u;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.MT();this.enableLoungeTokenRefresh_=W;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
h;this.disableMdxAuthForNonPlaybackMessages_=T;this.disableMdxAuthForAdMessages_=m;this.enableMdxAuthForConnectionOnly_=J;this.disableMdxAuthForShortsMessages_=g;this.JSC$20081_channelOpenedCounter=new c6R;this.JSC$20081_channelClosedCounter=new pWM;this.channelMessageSentCounter=new QOQ;this.JSC$20081_channelMessageReceivedCounter=new VDM;this.JSC$20081_channelErrorCounter=new E9e;this.pendingMapsOnClosedCounter=new U0R;this.undeliveredMapsOnClosedCounter=new lSV};
tDM=function(A){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;A=A||document.location.href;var H=Number(_.UG(A)[4]||null)||"";H&&(this.port=":"+H);this.domain=_.te(A)||"";A=_.bI();A.search("MSIE")>=0&&_.JA(A.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
vr=function(A){A=A||{};this.name=A.name||"";this.id=A.id||A.screenId||"";this.token=A.token||A.loungeToken||"";this.uuid=A.uuid||A.dialId||"";this.idType=A.screenIdType||"normal";this.secret=A.screenIdSecret||""};
Nu_=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(A){var H=Math.random()*16|0;return(A=="x"?H:H&3|8).toString(16)})};
MD_=function(A){return _.hj(A,function(H){return{key:H.id,name:H.name}})};
n9B=function(A,H){return Ek(A,function(k){return k||H?!k!=!H?!1:k.id==H.id:!0})};
yy=function(A,H){return Ek(A,function(k){return Z0B(k,H)})};
A7Q=function(){var A=fS3(),H=wW_();if(o9_()){var k=A,d=_.aQr(k,H);d<0&&_.SCN(k,-(d+1),0,H)}A=$0e(A);if(A.length==0)try{_.xm8("remote_sid")}catch(W){}else try{_.iC("remote_sid",A.join(","),-1)}catch(W){}};
fS3=function(){var A=_.r4("yt-remote-connected-devices")||[];A.sort(_.Krf);return A};
$0e=function(A){if(A.length==0)return[];var H=A[0].indexOf("#"),k=H==-1?A[0]:A[0].substring(0,H);return _.hj(A,function(d,W){return W==0?d:d.substring(k.length)})};
H3_=function(A){_.qH("yt-remote-connected-devices",A,86400)};
wW_=function(){if(syL)return syL;var A=_.r4("yt-remote-device-id");A||(A=Nu_(),_.qH("yt-remote-device-id",A,31536E3));for(var H=fS3(),k=1,d=A;_.VW(H,d);)k++,d=A+"#"+k;return syL=d};
kAL=function(){return _.r4("yt-remote-session-browser-channel")};
o9_=function(){return _.r4("yt-remote-session-screen-id")};
zS1=function(A){A.length>5&&(A=A.slice(A.length-5));var H=_.hj(dt3(),function(d){return d.loungeToken}),k=_.hj(A,function(d){return d.loungeToken});
_.XbX(k,function(d){return!_.VW(H,d)})&&WuR();
_.qH("yt-remote-local-screens",A,31536E3)};
dt3=function(){return _.r4("yt-remote-local-screens")||[]};
WuR=function(){_.qH("yt-remote-lounge-token-expiration",!0,86400)};
qRL=function(A){A||(_.uw("yt-remote-session-screen-id"),_.uw("yt-remote-session-video-id"));A7Q();A=fS3();_.EC(A,wW_());H3_(A)};
uc_=function(){r7G();return jU?!!jU.get("yt-remote-use-staging-server"):!1};
r7G=function(){if(!jU){var A=_.v5();A&&(jU=new _.mR(A))}};
i3R=function(A,H,k,d,W){k=k===void 0?function(){return""}:k;
var z=function(){return new LS(Ii(A,"/bc"),H,!1,k,d)};
return _.b("enable_mdx_web_channel_desktop")?new BbG(function(){return new eS_(Ii(A,"/wc"),H,k)}):new xtM(z,W)};
Tbi=function(){var A=hS3;O3M();Y$.push(A);RS_()};
Pr=function(A,H){O3M();var k=mtQ(A,String(H));Y$.length==0?J7i(k):(RS_(),_.t3(Y$,function(d){d(k)}))};
GJ=function(A){Pr("CP",A)};
O3M=function(){Y$||(Y$=_.UD("yt.mdx.remote.debug.handlers_")||[],_.nG("yt.mdx.remote.debug.handlers_",Y$))};
J7i=function(A){var H=(g5G+1)%50;g5G=H;b3M[H]=A;Lu3||(Lu3=H==49)};
RS_=function(){var A=Y$;if(b3M[0]){var H=Lu3?g5G:-1,k={};do k={record$jscomp$15:void 0},H=(H+1)%50,k.record$jscomp$15=b3M[H],_.t3(A,function(d){return function(W){W(d.record$jscomp$15)}}(k));
while(H!=g5G);b3M=Array(50);g5G=-1;Lu3=!1}};
mtQ=function(A,H){var k=(Date.now()-v5i)/1E3;k.toFixed&&(k=k.toFixed(3));var d=[];d.push("[",k+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(A+": "+H,"\n");return d.join("")};
XT=function(A){FT.call(this);this.JSC$20110_logName_=A;this.screens=[]};
SU=function(A){XT.call(this,"LocalScreenService");this.JSC$20117_http_=A;this.loungeTokenRefreshTimer_=NaN;DU(this);this.info("Initializing with "+y7V(this.screens))};
CS=function(A,H){H=H===void 0?!1:H;XT.call(this,"ScreenService");this.JSC$20123_http_=A;this.disableAutomaticScreenCache_=H;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};jye(this)};
KS=function(A,H,k){FT.call(this);this.JSC$20127_logName_=k;this.JSC$20127_screenService_=A;this.receiver_=H;this.screen_=null};
E5I=function(A,H,k){k.disableCastApi?ai("Cannot initialize because disabled by Mdx config."):IfI()?YRB(A,k)&&(PcL(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?GAB(H):(window.__onGCastApiAvailable=function(d,W){d?GAB(H):(cr("Failed to load cast API: "+W),FuM(!1),PcL(!1),_.uw("yt-remote-cast-available"),_.uw("yt-remote-cast-receiver"),X81(),H(!1))},k.loadCastApiSetupScript?_.bi(Dt_):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
SRL()>=60&&CcG():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Ku_():SRL()>=89?afL():(c7L(),p8B(QyI.map(VwM))))):ai("Cannot initialize because not running Chrome")};
X81=function(){ai("dispose");var A=pS();A&&A.dispose();_.nG("yt.mdx.remote.cloudview.instance_",null);UtM(!1);_.o5C(lf1);lf1.length=0};
twM=function(){return!!_.r4("yt-remote-cast-installed")};
Nbe=function(){var A=_.r4("yt-remote-cast-receiver");return A?A.friendlyName:null};
MwG=function(){ai("clearCurrentReceiver");_.uw("yt-remote-cast-receiver")};
n5_=function(){return twM()?pS()?pS().getCastSession():(cr("getCastSelector: Cast is not initialized."),null):(cr("getCastSelector: Cast API is not installed!"),null)};
ffI=function(A,H){Z3V()?pS().setConnectedScreenStatus(A,H):cr("setConnectedScreenStatus called before ready.")};
IfI=function(){var A=_.bI().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.wK||A};
YRB=function(A,H){var k=!1;pS()||(A=new Qy(A,H),A.subscribe("yt-remote-cast2-availability-change",function(d){_.qH("yt-remote-cast-available",d);Uk("yt-remote-cast2-availability-change",d)}),A.subscribe("yt-remote-cast2-receiver-selected",function(d){ai("onReceiverSelected: "+d.friendlyName);
_.qH("yt-remote-cast-receiver",d);Uk("yt-remote-cast2-receiver-selected",d)}),A.subscribe("yt-remote-cast2-receiver-resumed",function(d){ai("onReceiverResumed: "+d.friendlyName);
_.qH("yt-remote-cast-receiver",d);Uk("yt-remote-cast2-receiver-resumed",d)}),A.subscribe("yt-remote-cast2-session-change",function(d){ai("onSessionChange: "+w8_(d));
d||_.uw("yt-remote-cast-receiver");Uk("yt-remote-cast2-session-change",d)}),_.nG("yt.mdx.remote.cloudview.instance_",A),k=!0);
ai("cloudview.createSingleton_: "+k);return k};
pS=function(){return _.UD("yt.mdx.remote.cloudview.instance_")};
GAB=function(A){FuM(!0);PcL(!1);pS().init(!1,function(H){H?(UtM(!0),_.$tm("yt-remote-cast2-api-ready")):(cr("Failed to initialize cast API."),FuM(!1),_.uw("yt-remote-cast-available"),_.uw("yt-remote-cast-receiver"),X81());A(H)})};
ai=function(A){Pr("cloudview",A)};
cr=function(A){Pr("cloudview",A)};
FuM=function(A){ai("setCastInstalled_ "+A);_.qH("yt-remote-cast-installed",A)};
Z3V=function(){return!!_.UD("yt.mdx.remote.cloudview.apiReady_")};
UtM=function(A){ai("setApiReady_ "+A);_.nG("yt.mdx.remote.cloudview.apiReady_",A)};
PcL=function(A){_.nG("yt.mdx.remote.cloudview.initializing_",A)};
Vy=function(A){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(A)};
r8L=function(A){r7G();if(!jU||!jU.get("yt-remote-disable-remote-module-for-dev")){A=_.pZ("MDX_CONFIG")||A;t1I();A7Q();o5B||(o5B=new tDM(A?A.loungeApiHost:void 0),uc_()&&(o5B.basePath="/api/loungedev"));EO||(EO=_.UD("yt.mdx.remote.deferredProxies_")||[],_.nG("yt.mdx.remote.deferredProxies_",EO));$tM();var H=A8I();if(!H){var k=new CS(o5B,A?A.disableAutomaticScreenCache||!1:!1);_.nG("yt.mdx.remote.screenService_",k);H=A8I();var d={};A&&(d={appId:A.appId,disableDial:A.disableDial,theme:A.theme,loadCastApiSetupScript:A.loadCastApiSetupScript,
disableCastApi:A.disableCastApi,enableDialLoungeToken:A.enableDialLoungeToken,enableCastLoungeToken:A.enableCastLoungeToken,forceMirroring:A.forceMirroring});_.nG("yt.mdx.remote.enableConnectWithInitialState_",A?A.enableConnectWithInitialState||!1:!1);E5I(k,function(z){z?HjV()&&ffI(HjV(),"YouTube TV"):k.subscribe("onlineScreenChange",function(){Uk("yt-remote-receiver-availability-change")})},d)}if(A&&!_.UD("yt.mdx.remote.initialized_")){_.nG("yt.mdx.remote.initialized_",!0);
s9_("Initializing: "+_.Js(A));UO.push(_.$h("yt-remote-cast2-api-ready",function(){Uk("yt-remote-api-ready")}));
UO.push(_.$h("yt-remote-cast2-availability-change",function(){Uk("yt-remote-receiver-availability-change")}));
UO.push(_.$h("yt-remote-cast2-receiver-selected",function(){kcG();Uk("yt-remote-auto-connect","cast-selector-receiver")}));
UO.push(_.$h("yt-remote-cast2-receiver-resumed",function(){Uk("yt-remote-receiver-resumed","cast-selector-receiver")}));
UO.push(_.$h("yt-remote-cast2-session-change",dNG));UO.push(_.$h("yt-remote-connection-change",function(z){z?ffI(HjV(),"YouTube TV"):W03()||(ffI(null,null),MwG())}));
UO.push(_.$h("yt-remote-cast2-session-failed",function(){Uk("yt-remote-connection-failed")}));
d=zR1();A.isAuto&&(d.id+="#dial");var W=A.capabilities||[];W.length>0&&(d.capabilities=W);d.name=A.device;d.app=A.app;(A=A.theme)&&(d.theme=A);s9_(" -- with channel params: "+_.Js(d));d?(_.qH("yt-remote-session-app",d.app),_.qH("yt-remote-session-name",d.name)):(_.uw("yt-remote-session-app"),_.uw("yt-remote-session-name"));_.nG("yt.mdx.remote.channelParams_",d);H.start();HjV()||qte()}}};
BHG=function(){var A=A8I().instance_.$_gos();var H=uUi();H&&lh()&&(n9B(A,H)||A.push(H));return MD_(A)};
eRR=function(){var A=BHG(),H=uUi();H||(H=W03());return Ek(A,function(k){return H&&Z0B(H,k.key)?!0:!1})};
uUi=function(){var A=HjV();if(!A)return null;var H=A8I().getScreens();return yy(H,A)};
dNG=function(A){s9_("remote.onCastSessionChange_: "+w8_(A));if(A){var H=uUi();if(H&&H.id==A.id){if(ffI(H.id,"YouTube TV"),A.idType=="shortLived"&&(A=A.token))xNL&&(xNL.token=A),(H=lh())&&H.setLoungeToken(A)}else H&&ij_(),hR_(A,1)}else lh()&&ij_()};
ij_=function(){Z3V()?pS().stopSession():cr("stopSession called before API ready.");var A=lh();A&&(A.disconnect(1),OjV(null))};
RRL=function(){var A=lh();return A&&A.getProxyState()!=3?new tO(lh(),void 0):null};
s9_=function(A){Pr("remote",A)};
A8I=function(){if(!TH3){var A=_.UD("yt.mdx.remote.screenService_");TH3=A?new mNL(A):null}return TH3};
HjV=function(){return _.UD("yt.mdx.remote.currentScreenId_")};
J8_=function(A){_.nG("yt.mdx.remote.currentScreenId_",A)};
kcG=function(){_.nG("yt.mdx.remote.connectData_",null)};
lh=function(){return _.UD("yt.mdx.remote.connection_")};
OjV=function(A){var H=lh();kcG();A||J8_("");_.nG("yt.mdx.remote.connection_",A);EO&&(_.t3(EO,function(k){k(A)}),EO.length=0);
H&&!A?Uk("yt-remote-connection-change",!1):!H&&A&&Uk("yt-remote-connection-change",!0)};
W03=function(){var A=o9_();if(!A)return null;var H=A8I();if(!H)return null;H=H.getScreens();return yy(H,A)};
hR_=function(A,H){gEB?xNL=A:(J8_(A.id),A=new Nu(o5B,A,zR1(),_.UD("yt.mdx.remote.enableConnectWithInitialState_")||!1),A.connect(H,_.UD("yt.mdx.remote.connectData_")),A.subscribe("beforeDisconnect",function(k){Uk("yt-remote-before-disconnect",k)}),A.subscribe("beforeDispose",function(){lh()&&OjV(null)}),A.subscribe("browserChannelAuthError",function(){var k=uUi();
k&&k.idType=="shortLived"&&(Z3V()?pS().handleBrowserChannelAuthError():cr("refreshLoungeToken called before API ready."))}),OjV(A))};
qte=function(){var A=W03();A?(s9_("Resume connection to: "+w8_(A)),hR_(A,0)):(qRL(),MwG(),s9_("Skipping connecting because no session screen found."))};
$tM=function(){var A=zR1();if(_.iK.isEmpty(A)){A=wW_();var H=_.r4("yt-remote-session-name")||"",k=_.r4("yt-remote-session-app")||"";A={device:"REMOTE_CONTROL",id:A,name:H,app:k,mdxVersion:3};A.authuser=String(_.pZ("SESSION_INDEX","0"));(H=_.pZ("DELEGATED_SESSION_ID"))&&(A.pageId=String(H));_.nG("yt.mdx.remote.channelParams_",A)}};
zR1=function(){return _.UD("yt.mdx.remote.channelParams_")||{}};
bjL=function(){var A,H;return _.e(function(k){if(k.nextAddress==1)return(_.CcX()||_.b("use_new_nwl"))&&_.Fum().isNetworkAvailable()?k.yield(_.Zq(),2):k.return();if(k.nextAddress!=3)return(A=k.yieldResult)?k.yield(FVI(A),3):k.return();H=k.yieldResult;if(!H.length)return k.return();H.forEach(function(d){var W={timestamp:d.timestamp};d=d.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:d.appShellAssetLoadReport,options:W}:d.clientError?{payloadName:"clientError",payload:d.clientError,
options:W}:void 0;d&&_.yr(d.payloadName,d.payload,d.options)});
H.length===100&&_.IE.addLowPriorityJob(bjL);_.EN(k)})};
F0M=function(A,H,k){k=k===void 0?!1:k;var d=Math.max(A.width,L0V);if(_.b("kevlar_watch_feed_big_thumbs")&&A.width>=1550-Mu()&&A.height>=800)d-=vEG;else if(A.width>=nS){var W=y8B+j9_+ZU;_.b("kevlar_watch_feed_big_thumbs")&&(W=IGB);d-=W}else d-=y8B;d=Math.min(d,YtL);W=240;k&&(W=380);H<.5624||(!_.b("kevlar_watch_flexy_disable_small_window_sizing")&&(A.height<630&&A.width>=657||A.height>=630&&A.width>=nS&&A.width<1327)?W=360:!_.b("kevlar_watch_flexy_disable_large_window_sizing")&&A.height>=630&&A.width>=
1327&&(W=480));var z=Math.min(d*H,A.height-(56+PLL+Gc_));z=Math.max(z,W);H<1?d=z/H:A.width>=nS&&(d=F0M(A,.5625,k).width);return new _.Xt(Math.round(d),Math.round(z))};
Xn_=function(A){if(A.playerResponse){if(A=A.playerResponse,A.messages&&A.messages.length>0&&(A=A.messages.find(function(H){return!(!H||!H.mealbarPromoRenderer)}))&&A.mealbarPromoRenderer)return A.mealbarPromoRenderer}else if(A.response&&(A=A.response)&&A.overlay&&A.overlay.mealbarPromoRenderer)return A.overlay.mealbarPromoRenderer};
DN3=function(A){if(A.response){var H=A.response;if(H&&H.overlay&&H.overlay.tooltipRenderer)return H.overlay.tooltipRenderer}if(A.playerResponse&&(A=A.playerResponse,A.messages&&A.messages.length>0&&(A=A.messages.find(function(k){return!(!k||!k.tooltipRenderer)}))&&A.tooltipRenderer))return A.tooltipRenderer};
StM=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
CLi=function(){var A,H,k;return _.e(function(d){switch(d.nextAddress){case 1:return d.yield(_.ed.getInstance(),2);case 2:A=d.yieldResult;if(!A){H=void 0;d.jumpTo(3);break}return d.yield(A.get("lmqf"),4);case 4:H=d.yieldResult;case 3:switch((k=H)||(k="SD"),k){case "HD":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
K0L=function(A){var H,k,d;return _.e(function(W){if(W.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.b("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(H=A===z)return W.jumpTo(2);d=k=A;return W.yield(CLi(),3)}W.nextAddress!=2&&(H=d===W.yieldResult);return W.return(H)})};
c8B=function(){var A=_.H5("user_engagement_experiments_rate_limit_ms"),H=aG3.get("last-user-engagement-exp-trigger-timestamp");return!H||(0,_.w2)()>=H+A?(aG3.set("last-user-engagement-exp-trigger-timestamp",(0,_.w2)()),!0):!1};
fS=function(A,H,k,d,W){H=H===void 0?null:H;k=k===void 0?null:k;d=d===void 0?null:d;W=W===void 0?null:W;A={youThereEventType:A};k&&(A.lactThresholdMs=k.lactThresholdMs,A.mediaPosSec=k.promptDelaySec,A.lactServerRequestMs=k.lactServerRequestMs,A.triggerReason=k.triggerReason);W!=null&&(A.renderingMediaPosSec=Math.round(W));H||(H=_.hx());H&&(A.clientScreenNonce=H);d&&(A.clientPlaybackNonce=d);_.yr("youThere",A)};
Q9e=function(A){if(!pnQ&&(A=A||_.pZ("ZWIEBACK_PING_URLS"))&&A.length){pnQ=!0;for(var H=0;H<A.length;H++)_.cL(A[H])}};
VOL=function(A){var H=0;A.indexOf("h")!=-1&&(A=A.split("h"),H=A[0]*60*60,A=A[1]);A.indexOf("m")!=-1&&(A=A.split("m"),H=A[0]*60+H,A=A[1]);A.indexOf("s")!=-1?(A=A.split("s"),H=A[0]*1+H):H=A*1+H;return H};
UNG=function(A){if(_.iK.get(_.pZ("PLAYER_VARS",{}),"privembed",!1)!="1"){A&&b2V();try{EER().then(function(){},function(){}),_.zi(UNG,18E5)}catch(H){_.V$(H)}}};
lGB=function(){var A=_.sH(),H=A.getFlag(119),k=window.devicePixelRatio>1;document.body&&_.SP(document.body,"exp-invert-logo")&&(k&&!_.SP(document.body,"inverted-hdpi")?_.Y5(document.body,"inverted-hdpi"):!k&&_.SP(document.body,"inverted-hdpi")&&_.Iy(document.body,"inverted-hdpi"));H!=k&&(_.kB(0,119,k),A.save())};
tOR=function(){_.H5("service_worker_push_logged_out_prompt_watches")!=-1&&nR("WatchCount").then(function(A){A>=100||UTB("WatchCount",A+1)})};
NH_=function(A){return A.filter(function(H){return"ypcGetCartEndpoint"in H||"ypcFixInstrumentEndpoint"in H})};
MOi=function(A){return A.filter(function(H){return!_.L(H,_.n0J)})};
nEB=function(A){switch(A){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}};
ZjG=function(A,H,k){var d=_.h7(k);A&&H&&d&&A.getPlayerPromise().then(function(W){_.war(d)&&_.jM();(new _.hP(W)).executeCommand(d,H);_.b("continue_playback_on_desktop_companion_click")||W.pauseVideo()})};
fGB=function(A){var H=_.Kj(),k;if(k=_.UD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;k=(d=k())==null?void 0:d.layoutId}else k=null;ZjG(H,k,A)};
wn1=function(A){var H=_.Kj(),k;if(k=_.UD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;k=(d=k())==null?void 0:d.layoutId}else k=null;ZjG(H,k,A)};
wk=function(A,H){var k=A<0?"-":"";A=Math.abs(A);var d=Math.floor(A/3600),W=Math.floor(A)%3600,z=Math.floor(W/60);W=Math.floor(W)%60;var u="";(H===void 0?0:H)&&(u="."+Math.round((A-Math.floor(A))*10));return d>0?k+d+":"+(z<10?"0"+z:""+z)+":"+(W<10?"0"+W:""+W)+u:k+z+":"+(W<10?"0"+W:""+W)+u};
oEV=function(A){var H=A.match(/[^0-9:\.]/g);if(H&&H.length>0)return null;A=A.split(":");if(A.length===0||A.length>3)return null;H=1;for(var k=0;A.length>0;){var d=A.pop();if(d===void 0)break;var W=Number(d);if(d===""||isNaN(W))return null;k+=W*H;H*=60}return k};
$N_=function(A,H,k,d){A=Math.max(k,A);H=Math.min(H,d-k);A+H>d?(k=d,A=k-H):k=A+H;return{start:A,end:k}};
AcR=function(A,H,k,d,W,z){A<k?A=k:A+W>d&&(A=d-W);H>d&&(H=d);H=Math.min(A+z,Math.max(A+W,H));return{start:A,end:H}};
HhB=function(A,H,k,d,W,z){H>d?H=d:H-W<k&&(H=k+W);A<k&&(A=k);A=Math.min(H-W,Math.max(H-z,A));return{start:A,end:H}};
rc1=function(A,H){var k=_.DS(A,{}),d=s5I("top",H),W=s5I("bottom",H),z=s5I("left",H),u=s5I("right",H);return _.Mt({top:function(){return oi(k().position,d)},
bottom:function(){return oi(k().position,W)},
left:function(){return oi(k().position,z)},
right:function(){return oi(k().position,u)},
position:function(){return oi(k().positionType,kVG)},
height:function(){return oi(k().height,$$)},
width:function(){return oi(k().width,$$)},
"min-width":function(){return oi(k().minWidth,$$)},
"min-height":function(){return oi(k().minHeight,$$)},
"max-width":function(){return oi(k().maxWidth,$$)},
"max-height":function(){return oi(k().maxHeight,$$)},
"aspect-ratio":function(){return oi(k().aspectRatio,String)},
"margin-top":function(){return oi(k().margin,d)},
"margin-bottom":function(){return oi(k().margin,W)},
"margin-left":function(){return oi(k().margin,z)},
"margin-right":function(){return oi(k().margin,u)},
"padding-top":function(){return oi(k().padding,d)},
"padding-bottom":function(){return oi(k().padding,W)},
"padding-left":function(){return oi(k().padding,z)},
"padding-right":function(){return oi(k().padding,u)},
"flex-direction":function(){return oi(k().flexDirection,dF_)},
"justify-content":function(){return oi(k().justifyContent,W53)},
"align-items":function(){return oi(k().alignItems,zEe)},
"flex-grow":function(){return oi(k().flexGrow,String)},
"flex-shrink":function(){return oi(k().flexShrink,String)},
"flex-basis":function(){return oi(k().flexBasis,$$)},
"align-self":function(){return oi(k().alignSelf,zEe)},
"flex-wrap":function(){return oi(k().flexWrap,qFi)},
"align-content":function(){return oi(k().alignContent,zEe)}})};
oi=function(A,H){return A!==void 0?H(A):void 0};
qFi=function(A){switch(A){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
kVG=function(A){switch(A){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
zEe=function(A){switch(A){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"}};
W53=function(A){switch(A){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"}};
dF_=function(A){switch(A){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"}};
s5I=function(A,H){var k=H==="rtl";switch(A){case "top":var d=uBV;break;case "bottom":d=B9e;break;case "left":d=eEi;break;default:d=xFQ}return function(W){return oi(d(W,k),$$)}};
uBV=function(A){var H=A.top;var k=A.vertical;A=A.all;var d;return(d=H!=null?H:k)!=null?d:A};
B9e=function(A){var H=A.bottom;var k=A.vertical;A=A.all;var d;return(d=H!=null?H:k)!=null?d:A};
eEi=function(A,H){var k=A.left;var d=A.end;var W=A.start;var z=A.horizontal;A=A.all;var u,B;return(B=(u=k!=null?k:H?d:W)!=null?u:z)!=null?B:A};
xFQ=function(A,H){var k=A.right;var d=A.end;var W=A.start;var z=A.horizontal;A=A.all;var u,B;return(B=(u=k!=null?k:H?W:d)!=null?u:z)!=null?B:A};
$$=function(A){var H=A.value;switch(A.unit){case "YPC_DIMENSION_UNIT_POINT":return H+"px";case "YPC_DIMENSION_UNIT_FRACTION":return H+"%";default:return""+H}};
ih_=function(A){switch(A){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"}};
hEB=function(A){var H=A!=null?A:{};A=H.fontRole;var k=H.fontSize;H=H.fontWeight;if(A!==null&&k!==null)switch(A){case "YPC_FONT_ROLE_DISPLAY":switch(k){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(k){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return H===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(k){case "YPC_FONT_SIZE_XL":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
mFL=function(A,H,k){function d(m){return Object.values(m).map(function(J){var g=J.productId;J=J.pricingOptionIndex;return Ai(W(g).pricingOptions,J).pricingOptionId})}
function W(m){return h().get(m)}
function z(m){m=d(m);k(m)}
function u(m,J){return Array.from(Ha(m.pricingOptions)).filter(function(g){g=_.r(g);g.next();g=g.next().value;return s_(g.pricingGroupAttributes,J)}).map(function(g){return _.r(g).next().value})}
var B=OhL([A,H],function(m,J){var g=m==null?void 0:m.selectedPricingOptions;m={};var v=!0;if(g&&J.length)for(var y=_.r(J),X=y.next();!X.done;X=y.next()){X=X.value;var D=REV(X.pricingOptions,function(U){a:{U=U.pricingOptionId;for(var p=_.r(g),M=p.next();!M.done;M=p.next())if(M.value===U){U=!0;break a}U=!1}return U});
if(D>=0){v=!1;var K=Ai(X.pricingOptions,D),N=void 0;m[X.groupId]={productId:X.productId,pricingOptionIndex:D,pricingGroupAttributes:(N=K)==null?void 0:N.pricingGroupAttributes}}}v&&J.length&&(v=Ai(J[0].pricingOptions,0),m[J[0].groupId]={productId:J[0].productId,pricingOptionIndex:0,pricingGroupAttributes:v==null?void 0:v.pricingGroupAttributes});return m}),h=OhL([H],function(m){return new Map(m.map(function(J){return[J.productId,
J]}))}),O=OhL([H],function(m){var J=new Map;
m=_.r(m);for(var g=m.next();!g.done;g=m.next()){var v=g.value;g=v.groupId;var y=v.productId;v=_.r(Ha(v.pricingOptions));for(var X=v.next();!X.done;X=v.next()){var D=_.r(X.value);X=D.next().value;D=D.next().value;J.set(D.pricingOptionId,{groupId:g,productId:y,index:X,pricingOption:D,pricingGroupAttributes:D.pricingGroupAttributes})}}return J}),T=OhL([H],function(m){var J=new Map;
m=_.r(m);for(var g=m.next();!g.done;g=m.next()){var v=g.value;g=v.groupId;var y=v.productId,X=void 0;v=_.r(Ha((X=v.pricingGroups)!=null?X:[]));for(X=v.next();!X.done;X=v.next()){var D=_.r(X.value);X=D.next().value;D=D.next().value;J.set(D.pricingGroupId,{groupId:g,productId:y,index:X,pricingGroup:D,pricingGroupAttributes:D.pricingGroupAttributes})}}return J});
return{getProductById:W,isProductSelected:function(m){var J=W(m);if(!J)return!1;var g;return((g=B()[J.groupId])==null?void 0:g.productId)===m},
getSelectedPricingOptions:function(){return Object.values(B()).map(function(m){var J=m.productId;m=m.pricingOptionIndex;return Ai(W(J).pricingOptions,m)})},
getSelectedPricingGroupAttributesByGroupId:function(m){var J;return(m=(J=B()[m])==null?void 0:J.pricingGroupAttributes)?Array.from(m):void 0},
getSelectedProductByGroupId:function(m){var J;return(m=(J=B()[m])==null?void 0:J.productId)?W(m):void 0},
onProductSelected:function(m){var J=W(m);if(J){var g=B(),v;if(((v=g[J.groupId])==null?void 0:v.productId)!==m){var y=(v=(y=g[J.groupId])==null?void 0:y.productId)?W(v):void 0;var X;v=(X=g[J.groupId])==null?void 0:X.pricingGroupAttributes;var D;X=(D=g[J.groupId])==null?void 0:D.pricingOptionIndex;if(y&&X!==void 0)if(v){D=u(y,v).indexOf(X);if(D===-1)throw Error("Cl`"+X+"`"+y.productId);X=u(J,v);D=D<X.length?X[D]:X.length>0?X[0]:0}else D=X<k4(J.pricingOptions)?X:0;else D=0;k4(J.pricingOptions)<=D&&(D=
0);X=Ai(J.pricingOptions,D);var K;y={};z(Object.assign({},g,(y[J.groupId]={productId:m,pricingOptionIndex:D,pricingGroupAttributes:(K=X==null?void 0:X.pricingGroupAttributes)!=null?K:[]},y)))}}},
onPricingOptionSelected:function(m){var J=O().get(m);if(J){m=J.groupId;var g=J.productId;J=J.index;var v=B(),y,X;if(((y=v[m])==null?void 0:y.productId)!==g||((X=v[m])==null?void 0:X.pricingOptionIndex)!==J){var D,K;y={};z(Object.assign({},v,(y[m]={productId:g,pricingOptionIndex:J,pricingGroupAttributes:(K=(D=v[m])==null?void 0:D.pricingGroupAttributes)!=null?K:[]},y)))}}},
onPricingGroupSelected:function(m){var J=T().get(m);if(J){m=J.groupId;var g=J.productId,v=J.pricingGroup.pricingGroupAttributes,y=W(g);if(y){J=B();var X=J[m].pricingGroupAttributes,D;if(((D=J[m])==null?void 0:D.productId)!==g||!s_(T9B(X,k4(v)),v)){D=Array.from(v);for(v=k4(v);v<k4(X);v++){var K="",N=!1,U=Array.from(D);U.push(Ai(X,v));for(var p=_.r(y.pricingGroups),M=p.next();!M.done;M=p.next())if(M=M.value,s_(M.pricingGroupAttributes,U)){D.push(Ai(X,v));N=!0;break}else K===""&&k4(M.pricingGroupAttributes)===
U.length&&s_(T9B(M.pricingGroupAttributes,D.length),D)&&(K=Ai(M.pricingGroupAttributes,v));N||D.push(K)}K=J[m].pricingOptionIndex;v=[];N=new Map;U=0;y=_.r(Ha(y.pricingOptions));for(p=y.next();!p.done;p=y.next())M=_.r(p.value),p=M.next().value,M=M.next().value,s_(M.pricingGroupAttributes,D)&&v.push(p),s_(M.pricingGroupAttributes,X)&&N.set(p,U++);v.length===0?X=0:(X=N.get(K),X=X!==void 0&&X<v.length?v[X]:v[0]);y={};z(Object.assign({},J,(y[m]={productId:g,pricingOptionIndex:X,pricingGroupAttributes:D},
y)))}}}},
onClearGroupSelected:function(m){var J=B();J[m]&&(J=Object.fromEntries(Object.entries(J).filter(function(g){return _.r(g).next().value!==m})),z(J))}}};
Ha=function(A){return function k(){var d,W,z,u,B;return _.fw(k,function(h){switch(h.nextAddress){case 1:_.pV(h,2),d=0,W=_.r(A),z=W.next();case 4:if(z.done){h.jumpTo(2);break}u=z.value;B=_.wy;return h.yield([d++,u],7);case 7:B(h.yieldResult);z=W.next();h.jumpTo(4);break;case 2:_.KV(h),_.QA(h,0)}})}()};
REV=function(A,H){A=_.r(Ha(A));for(var k=A.next();!k.done;k=A.next()){var d=_.r(k.value);k=d.next().value;d=d.next().value;if(H(d))return k}return-1};
k4=function(A){var H=0;for(A=A[Symbol.iterator]();!A.next().done;)++H;return H};
Ai=function(A,H){A=_.r(Ha(A));for(var k=A.next();!k.done;k=A.next()){var d=_.r(k.value);k=d.next().value;d=d.next().value;if(k===H)return d}};
s_=function(A,H){if(!A&&!H)return!0;if(!A||!H)return!1;A=Array.from(A);H=Array.from(H);if(A.length!==H.length)return!1;for(var k=0;k<A.length;k++)if(A[k]!==H[k])return!1;return!0};
T9B=function(A,H){H=H===void 0?Infinity:H;var k=[];A=_.r(Ha(A));for(var d=A.next();!d.done;d=A.next()){var W=_.r(d.value);d=W.next().value;W=W.next().value;if(d>=H)break;d>=0&&k.push(W)}return k};
OhL=function(A,H){var k,d;return function(){for(var W=A.map(function(u){return u()}),z=0;z<W.length;z++)if(!k||W[z]!==k[z]){k=W;
d=H.apply(null,_.fV(W));break}return d}};
Jce=function(A,H,k){var d=[];A=_.r(A);for(var W=A.next();!W.done;W=A.next()){W=W.value;var z=void 0;((z=H)==null?0:z.length)&&!s_(W.pricingGroupAttributes,H)||d.push({pricingOption:W,isSelected:k.includes(W.pricingOptionId)})}return d};
gHL=function(A,H){return _.Mw(A.entities,"pdpStateEntity",H)};
bh3=function(A){var H,k;return!!(A.productId&&A.groupId&&((H=A.pricingOptions)==null?0:H.length)&&A.pricingOptions.every(function(d){return d.pricingOptionId})&&((k=A.pricingGroups)==null||!k.length||Array.isArray(A.pricingGroups)&&A.pricingGroups.every(function(d){return d.pricingGroupId&&d.pricingGroupAttributes&&d.pricingGroupAttributes.length>0})))};
L5B=function(A,H,k){return mFL(A,OhL([H],function(d){return d.filter(bh3)}),k)};
vHe=function(A,H){return H.length===0?[A]:[A.slice(0,H[0]),A.slice(H[0])].filter(function(k){return k.length>0})};
yc1=function(A){switch(A){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""}};
IvG=function(A,H,k,d){d=Object.assign({},d);_.uc(d,j5i,{selectedOptionId:A,primaryButtonOverride:k});_.FI().dispatch(_.kH("flowStateEntity",H,d))};
YFI=function(A,H,k){!_.L(k,j5i)&&A.noPreselect&&H!==""&&A.defaultButtonOverride&&IvG("default",H,A.defaultButtonOverride,k)};
P2L=function(A){switch(A){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"}};
GVi=function(A){switch(A){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"}};
F5V=function(A,H){H.includes(A)?H=H.filter(function(k){return k!==A}):H.push(A);
return[].concat(_.fV(H))};
XGI=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("n0DHg"),2);A=_.Ncw;return H.return(A)})};
DFQ=function(A,H){return _.Mw(A.entities,"contextNoteFeedEntityPayload",H)};
SF3=function(A,H){switch(A){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return H==null?void 0:H.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return H==null?void 0:H.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return H==null?void 0:H.ratingNotHelpfulText}};
C23=function(A,H,k){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:k||A.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:A.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:A.deleteDialogTitle}]},dialogMessages:[{runs:[{text:A.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.deleteActionText}]},command:{performCommentActionEndpoint:{action:H}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
K5I=function(A,H,k){var d;if(A&&((d=H())==null?0:d.includes(A))){var W;k((W=H())==null?void 0:W.filter(function(z){return z!==A}))}else k([].concat(_.fV(H()||[]),[A]))};
ccR=function(A,H){if(A){var k=[];H=_.r((H==null?void 0:H.checkboxes)||[]);for(var d=H.next();!d.done;d=H.next()){d=_.L(d.value,avR);var W=void 0;((W=d)==null?0:W.value)&&A.includes(d.key||"")&&k.push(d.value)}return k}};
pG3=function(A,H){return A===H?!0:(A==null?void 0:A.formId)===(H==null?void 0:H.formId)&&(A==null?void 0:A.fieldId)===(H==null?void 0:H.fieldId)};
Vue=function(A){var H=Q5L.get(A);if(H)return H;H=A.replace(/_([a-zA-Z0-9])/g,function(k,d){return d.toUpperCase()});
Q5L.set(A,H);return H};
lvB=function(A){var H=_.be(function(){var d;return(d=_.pA(A))!=null?d:{}},{equals:pG3},"rjkP8c"),k=_.be(function(){var d=H(),W=d.formId;
d=d.fieldId;var z;if(z=W&&d){if(d==="formId")throw Error("Jl`"+"Field id cannot be formId.".replace(/\n\s*/g," "));b:{if(W&&(EHG?EHG():(z=_.r(_.RV(0,void 0,"VxY0fb")),EHG=z.next().value,z.next(),z.next(),EHG()),z=UFG.get(W))){z=z.form;break b}z=void 0}if(z){var u=Vue(d);z=z[u]}else z=void 0}if(z)throw Error("Jl`"+("Field "+d+" in form "+W+" is not a ScalarField.").replace(/\n\s*/g," "));},void 0,"OhSJ8e");
return function(){return k()}};
tu3=function(A){A.style.height="auto";A.style.height=A.scrollHeight+"px"};
N9_=function(A){return[A.syncStep,A.asyncStep].filter(function(H){return H!==void 0})};
nHQ=function(A){var H,k,d;if(A=(H=A.structuredContextNoteFormSchema)==null?void 0:(k=H.fieldSchemas)==null?void 0:(d=k.noteBody)==null?void 0:d.validationSchema)for(H=_.r(N9_(A)),k=H.next();!k.done;k=H.next()){k=k.value.rules;if(!k)break;k=_.r(k);for(k=k.next();!k.done;k=k.next())return _.L(k.value,Mu_)}};
fvV=function(A){if(A){A=_.r(N9_(A));for(var H=A.next();!H.done;H=A.next()){H=H.value.rules;if(!H)break;H=_.r(H);for(H=H.next();!H.done;H=H.next())return _.L(H.value,ZhL)}}};
oHR=function(A){if(A){A=_.r(N9_(A));for(var H=A.next();!H.done;H=A.next()){H=H.value.rules;if(!H)break;H=_.r(H);for(H=H.next();!H.done;H=H.next())return _.L(H.value,wG3)}}};
$F1=function(A){A=/^https?:\/\//.test(A)?A:"http://"+A;try{var H=_.p$(A)}catch(k){return!1}if(H.toString()!==A)return!1;A=H.JSC$10346_domain_.split(".");return A.length>1&&A.every(function(k){return!!k})};
Av_=function(A,H,k,d){var W;d=(W=d.structuredContextNoteData)==null?void 0:W.createCommentEndpoint;if(W=_.L(d,_.kGA))return W.commentText=_.Yu(A),W.videoPositionMention=H,W.sources=k,d};
Hwe=function(A){return A==null?void 0:A.stringValue};
kFB=function(A,H,k){A=A.map(function(d,W){return{listItemViewModel:{title:d.title,subtitle:d.subtitle,leadingImage:d.leadingImage,trailingImage:W===H?sIM:void 0,rendererContext:{commandContext:{onTap:d.onTap}}}}});
return Object.assign({},k&&{header:{panelHeaderViewModel:{title:k}}},{content:{listViewModel:{listItems:A}}})};
dLV=function(A,H){if(A&&H)switch(H){case "SELECTION_TYPE_BOOL":return A.boolValue;case "SELECTION_TYPE_INT":return A.intValue;case "SELECTION_TYPE_STRING":return A.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return A.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return A.timePickerFormatValue}};
W8L=function(A){var H;A=(H=A.options)==null?void 0:H.findIndex(function(k){return k.isSelected});
return A===void 0?-1:A};
zOB=function(A,H,k){var d=function(){return A().label},W={},z=_.ER("ytDropdownViewModelLabel",(W.ytDropdownViewModelLabelError=H,W));
return _.x(_.R,{cond:function(){return A().label&&!(k()===-1&&A().label&&!A().placeholderText)},
then:function(){return _.x("div",{class:z},_.x(_.j$,{text:d}))}})};
q53=function(A,H){var k={};k=_.ER("ytDropdownViewModelTitle",(k.ytDropdownViewModelTitlePlaceholder=function(){return H()===-1},k));
return _.x("div",{class:k},_.x(_.j$,{text:function(){var d=A();var W=H();if(W===-1)d=d.placeholderText?d.placeholderText:d.label;else{var z,u;d=(z=d.options)==null?void 0:(u=z[W])==null?void 0:u.title}return d}}))};
rvG=function(A,H){var k=function(){return A().hint};
return _.x(_.sD,null,_.x(_.R,{cond:function(){return k()&&!H()},
then:function(){return _.x("div",{class:_.ER("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.x(_.j$,{text:k,className:"ytDropdownViewModelSupportText"}))}}),_.x(_.R,{cond:H,
then:function(){return _.x("div",{id:"dropdown-view-model-error",role:"alert",class:_.ER("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.x(_.n3,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.x(_.j$,{text:H,className:"ytDropdownViewModelSupportText"}))}}))};
u1L=function(A,H){var k=_.wj().resolve(_.ZY_);_.CZ(function(){var d=A().id;d&&k!=null&&k.dropdownMap.set(d,H)})};
eOL=function(A){A=_.L(A.scheduleButton,ByV);A=_.L(A==null?void 0:A.primaryButton,_.vY);A=_.L(A==null?void 0:A.onTap,_.ic);var H,k,d=((k=_.L(A,_.nH))==null?void 0:k.commands)||[A];k=_.r(d);for(A=k.next();!A.done&&!(H=_.L(A.value,_.wiZ));A=k.next());var W;H=(W=H)==null?void 0:W.createBroadcastRequest;if(!H)throw Error("Pl");return H};
xLL=function(A){var H,k;return((k=_.L((H=A.steps)==null?void 0:H[0],_.ql))==null?void 0:k.stepId)||""};
OwL=function(A,H){if(H){var k=_.F3().getState().entities.flowStateEntity,d=iwB(A),W=[H];d&&d!==H&&W.push(d);var z=!0,u;if(k&&A.flowStateEntityKey&&((u=k[A.flowStateEntityKey])==null?void 0:u.primaryButtonDisabled)!==void 0){var B;z=!((B=k[A.flowStateEntityKey])==null||!B.primaryButtonDisabled)}hOL(A,d!=null?d:H,W,z)}};
TyB=function(A){return _.dC(_.F3(),function(H){return H.entities.flowStateEntity},function(H,k){if(A.flowStateEntityKey){var d,W=H==null?void 0:(d=H[A.flowStateEntityKey])==null?void 0:d.currentStepId,z;
k=k==null?void 0:(z=k[A.flowStateEntityKey])==null?void 0:z.currentStepId;z=_.F3().getState().talkToRecs;if(W&&W!==k){var u;H=(H==null?void 0:(u=H[A.flowStateEntityKey])==null?void 0:u.stepIdStack)||Object.keys(z.stepStates);u=!RO3(z==null?void 0:z.stepStates[W]);hOL(A,W,H,u)}}})};
JvR=function(A){return _.dC(_.F3(),mL1,function(H){var k=iwB(A);if(k){var d=Object.keys(H.stepStates);H=!RO3(H==null?void 0:H.stepStates[k]);hOL(A,k,d,H)}})};
RO3=function(A){var H=Object.keys((A==null?void 0:A.selectionStates)||{}).reduce(function(z,u){return z||(A==null?void 0:A.selectionStates[u].isSelected)},!1),k,d,W=!!(A==null?0:(k=A.userQuery)==null?0:(d=k.userQuery)==null?0:d.trim());
return H||W};
iwB=function(A){if(A.flowStateEntityKey){var H,k,d=(H=_.F3().getState().entities.flowStateEntity)==null?void 0:(k=H[A.flowStateEntityKey])==null?void 0:k.currentStepId;if(d)return d}};
hOL=function(A,H,k,d){_.F3().dispatch(_.kH("flowStateEntity",A.flowStateEntityKey,{currentStepId:H,stepIdStack:k,key:A.flowStateEntityKey,primaryButtonDisabled:d}))};
vqL=function(A,H,k){k=k===void 0?{}:k;var d,W;return _.e(function(z){if(d=gqR(H))return z.return(d);(W=bw_(A,H,k))&&L81(H,W);return z.return(W)})};
L81=function(A,H){var k=yvB(A);k&&H.then(function(d){_.wj().resolve(_.ng).put(k,new _.Zp({innertubeResponse:d}))})};
gqR=function(A){if(A=yvB(A)){var H=_.wj().resolve(_.ng);if(H.has(A))return H.get(A).then(function(k){return k==null?void 0:_.U5(k)})}return null};
yvB=function(A){var H=_.L(A.endpoint,_.Yr);if(H!=null&&H.videoId)return H={videoId:H.videoId},_.b("web_imp_player_mute_params")&&(H.mutedAtStart=A.startPlaybackInMutedState),_.IC("inline_playback",H)};
bw_=function(A,H,k){A=_.I9(A,H.endpoint,jI_(H,k)).then(function(d){return d});
return Promise.resolve(A)};
jI_=function(A,H){H=_.b("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!A.startPlaybackInMutedState},H):Object.assign({},{vis:5,autonav:"1"},H);var k;H={contentPlaybackContext:_.NL(H,(k=_.L(A.endpoint.commandMetadata,_.wn))==null?void 0:k.url,window.location.href)};_.b("web_imp_player_mute_params")&&(H.overrideMutedAtStart=!A.startPlaybackInMutedState);return H};
F8I=function(A,H){var k=window.MutationObserver;k&&(IhB=new k(function(d,W){d=_.r(d);for(var z=d.next();!z.done;z=d.next()){z=z.value;var u;if(u=z.type==="childList"&&z.target)a:{u=A;z=Y5R(z.target);u=Y5R(u);for(var B=null,h=0;h<z.length;h++)if(u.includes(z[h])){if(h===0){u=!1;break a}B=z[h];break}B?(z=PsM(z,B),u=PsM(u,B),u=z<u):u=!1}if(u){H();W.disconnect();break}}}),(k=GF_())&&IhB.observe(k,{childList:!0,
subtree:!0}))};
GF_=function(){var A=document.getElementsByTagName("ytd-rich-grid-renderer");if(A.length>0)return A[0];A=document.getElementsByTagName("ytd-section-list-renderer");return A.length>0?A[0]:null};
Y5R=function(A){for(var H=[];A;)H.push(A),A=A.parentElement;return H};
PsM=function(A,H){var k=Array.from(H.children);H=A.indexOf(H);return H>0?k.indexOf(A[H-1]):-1};
d7=function(A,H,k){k=k===void 0?{}:k;return _.$r(A,k,H)};
XlB=function(A){switch(A){case "MUSIC":return!0;default:return!1}};
S51=function(A){if(A=A==null?void 0:A.find(function(d){var W,z;return((W=_.L(d,DLe))==null?void 0:(z=W.inlinePlaybackBadgeData)==null?void 0:z.replicateAsTimestamp)===!0}))if(A=_.L(A,DLe),A==null?0:A.icon){var H,k;
if((A=(H=_.Ynm(A.icon))==null?void 0:(k=H.clientResource)==null?void 0:k.imageName)&&XlB(A))return A}};
Cs_=function(A){return A==null?void 0:A.filter(function(H){return H.premiereTrailerBadgeRenderer})};
K8B=function(A){var H,k=A==null?void 0:(H=A.find(function(h){return h.thumbnailOverlayTimeStatusRenderer}))==null?void 0:H.thumbnailOverlayTimeStatusRenderer,d,W;
if((k==null?0:(d=k.icon)==null?0:d.iconType)&&XlB(k==null?void 0:(W=k.icon)==null?void 0:W.iconType)){var z;return{icon:k==null?void 0:(z=k.icon)==null?void 0:z.iconType}}var u;if(H=A==null?void 0:(u=A.find(function(h){return h.thumbnailOverlayBadgeViewModel}))==null?void 0:u.thumbnailOverlayBadgeViewModel)if(u=S51(H.thumbnailBadges))return{icon:u};
var B;if(A=A==null?void 0:(B=A.find(function(h){return h.thumbnailBottomOverlayViewModel}))==null?void 0:B.thumbnailBottomOverlayViewModel)if(B=S51(A.badges))return{icon:B};
return{}};
VYQ=function(A,H){var k=new ah1(function(z){W(z)},H);
H=_.r(_.RV(cvG(k),void 0,"D2uee"));var d=H.next().value,W=H.next().value;_.CA(function(){Promise.resolve().then(function(){var z,u=(z=A())!=null?z:{};k.playerControlsData=u;k.lastSeenPlayerApi=_.gK(u.playerApi);pli(k)});
_.aV(function(){QIB(k)})},"xfRk8b");
return d};
EqG=function(A){return function(H){var k=A(),d={playerState:H};if(H===1){var W;(W=k.playerApi)==null||W.loadModule("captions")}if(H===0){var z;(z=k.playerApi)==null||z.unloadModule("captions")}H!==-1&&k.setState(d)}};
UL1=function(A){return function(H){A().setState({playbackRate:H})}};
lhL=function(A){return function(H){var k=A(),d=k.playerApi,W=d==null?void 0:d.getVideoData(),z=(W==null?void 0:W.isLive)||!1;W=W==null?void 0:W.video_id;z={videoDuration:SA3(d||void 0),isLive:z,videoId:W};z.videoId!==k.videoId&&(z=Object.assign({},_.Hlp(d),z));if(H==null?0:H.playertype)z.playerType=H.playertype;if(d){z.captionsAvailable=LjI(d);H=z;var u;W=(u=d.getStoryboardLevel(d.getNumberOfStoryboardLevels()-1))==null?void 0:u.intervalMs;H.storyboardInterval=W?W/1E3:void 0;z.captionsAvailable&&
(z.captionsEnabled=vuM(d))}z.volumeMuted=!(d==null||!d.isMuted());k.setState(z)}};
tYV=function(A){return function(H){var k=A(),d=k.playerApi;if(d){var W=d.getPresentingPlayerType();H={playedTime:H||0,percentLoaded:d.getVideoLoadedFraction(),playerType:W};k.playerState===0&&(H.playedTime=k.videoDuration);k.isLive&&(W=d.getProgressState(W),H.playedTime-=W.seekableStart,H.videoDuration=SA3(d));if(k.playerType===1)d=!1;else{var z;if((z=k.uxConfig)==null?0:z.showCuedOverlay){var u;d=!((u=k.playerApi)==null?0:u.getPlayerStateObject(k.playerType).isDomPaused)}else d=!0}d&&delete H.playedTime;
k.setState(H)}}};
Ny3=function(A){return function(){var H=A(),k,d,W,z={volume:(W=(k=H.playerApi)==null?void 0:k.getVolume())!=null?W:0,volumeMuted:!((d=H.playerApi)==null||!d.isMuted())};H.setState(z)}};
MYM=function(A){return function(){var H=A(),k=H.playerApi;if(k){var d={captionsAvailable:LjI(k)};d.captionsAvailable&&(d.captionsEnabled=vuM(k));H.setState(d)}}};
nqM=function(A){return{appApi:Object.assign({},_.nMC(),{showCaptionsToggleToast:function(H){var k,d;(d=(k=A()).showCaptionsToggleToast)==null||d.call(k,H)},
openInMiniplayer:function(){var H,k;(k=(H=A()).openInMiniplayer)==null||k.call(H)}})}};
Zwe=function(A,H){var k,d,W;return!!(A==null?0:(k=A.playerResponse)==null?0:(d=k.playerConfig)==null?0:(W=d.inlinePlaybackConfig)==null?0:W.showScrubbingControls)&&!(H==null?0:H.hideScrubbingControls)};
fhR=function(A){var H=!A.miniplayerIsActive;return[5,2,0].includes(A.miniplayerPlaybackState)||H};
wlM=function(A){return _.b("web_transcript_cue_id_killswitch")?String(A):"ytd-transcript-renderer_"+A};
oq3=function(A){return _.b("web_transcript_cue_id_killswitch")?!0:A.startsWith("ytd-transcript-renderer")};
$L_=function(A){var H=_.Kj(),k;if(k=_.UD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;k=(d=k())==null?void 0:d.layoutId}else k=null;ZjG(H,k,A)};
AdI=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("HwlOhd"),2);A=_.c5j;return H.return(A)})};
H6L=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("JoU6vf"),2);A=_.IZ;return H.return(A)})};
sLe=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("hU04te"),2);A=_.HNj;return H.return(A)})};
ksi=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("dIvQ6c"),2);A=_.Rm_;return H.return(A)})};
deQ=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("m9Vw4"),2);A=_.yA3;return H.return(A)})};
WWL=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("mcjWUc"),2);A=_.CIR;return H.return(A)})};
zeQ=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("QiZf0e"),2);A=_.LbB;return H.return(A)})};
qKB=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("f8YPh"),2);A=_.k0i;return H.return(A)})};
rdL=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield((0,_.$J)("b3MoKf"),2);A=_.spA;return H.return(A)})};
uO1=function(A){A.style.height="auto";A.style.height=Math.min(A.scrollHeight||20,80)+"px"};
BK_=function(){var A;return String(Math.floor(((A=_.MN())==null?void 0:A.getCurrentTime())||0)*1E3)};
xeL=function(A){if(A.onWelcomeCommand)return _.h7(A.onWelcomeCommand);A=_.L(A.inputComposerViewModel,ee_);if(A==null?0:A.welcomeFeatureContinuation)return _.mo_(A.welcomeFeatureContinuation)};
i6G=function(A){var H=_.Kj(),k;k=(k=_.UD("yt.www.ads.eventcache.getLastCompanionData"))?(k=k())&&k.layoutId:null;ZjG(H,k,A)};
he_=function(A){var H=_.Kj(),k;k=(k=_.UD("yt.www.ads.eventcache.getLastCompanionData"))?(k=k())&&k.layoutId:null;ZjG(H,k,A)};
O6Q=function(A){return A.filter(function(H){return!_.L(H,_.yj)})};
ReG=function(A){var H,k,d,W;if(A=A==null?void 0:(H=A.contents)==null?void 0:(k=H.twoColumnWatchNextResults)==null?void 0:(d=k.results)==null?void 0:(W=d.results)==null?void 0:W.contents){var z,u;return(u=(z=A.find(function(B){return!!B.videoPrimaryInfoRenderer}))==null?void 0:z.videoPrimaryInfoRenderer)==null?void 0:u.updatedMetadataEndpoint}};
TKB=function(A,H){var k;return(k=A.sourceConfigs)==null?void 0:k.find(function(d){return d.videoId===H})};
meI=function(A){return A==="End of video"||A==="End of playlist"};
Jde=function(A){var H,k,d,W;return(H=A.getWatchNextResponse())==null?void 0:(k=H.contents)==null?void 0:(d=k.twoColumnWatchNextResults)==null?void 0:(W=d.playlist)==null?void 0:W.playlist};
gcL=function(A){var H,k,d,W,z,u;return(H=Jde(A))==null?void 0:(k=H.playlistButtons)==null?void 0:(d=k.menuRenderer)==null?void 0:(W=d.topLevelButtons)==null?void 0:(z=W[0])==null?void 0:(u=z.playlistLoopButtonRenderer)==null?void 0:u.playlistLoopStateEntityKey};
b6R=function(A){var H=_.wj().resolve(_.jd),k;return(H=(k=_.L(H.getAutoplayEndpoint(),_.Yr))==null?void 0:k.playlistId)&&H===A};
yde=function(A,H,k,d,W){function z(){_.IE.cancelJob(Wa);var u=LW1(H,k/A.getPlaybackRate()),B=u.hours,h=u.minutes;u=(u.seconds*1E3||6E4)/A.getPlaybackRate();A.setVideoTimeLeft(vcB(B,h));d&&A.getPlayerState()!==0&&A.setSleepTimerTimeLeft(vcB(B,h,!0));(B>0||h>0)&&!W&&(Wa=_.zV(_.IE,z,u))}
_.IE.cancelJob(Wa);Wa=_.zV(_.IE,z)};
IsL=function(A,H,k){function d(){_.IE.cancelJob(jL_);var W=LW1(H,k),z=W.hours;W=W.minutes;var u=6E4/A.getPlaybackRate();if(z>0||W>0)A.setSleepTimerTimeLeft(vcB(z,W,!0)),jL_=_.zV(_.IE,d,u)}
_.IE.cancelJob(jL_);jL_=_.zV(_.IE,d)};
PAM=function(A,H){var k=A.getVolume()/(H/500),d=function(W){_.IE.cancelJob(YK_);var z=Math.floor(W-k);A.setVolume(z,!1);z>0&&(YK_=_.zV(_.IE,function(){d(z)},500))};
_.IE.cancelJob(YK_);YK_=_.zV(_.IE,function(){d(A.getVolume())})};
GsI=function(A,H){_.IE.cancelJob(YK_);H&&A.syncVolume()};
FWR=function(){var A={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.$r("SLEEP_TIMER_DISRUPTED")}}}}};_.wj().resolve(_.J7).resolveCommand(A)};
XpG=function(A){return(A.getDuration()-A.getProgressState().current)*1E3};
LW1=function(A,H){A=A+H-(0,_.w2)();if(A<=0)return{hours:0,minutes:0,seconds:0};var k=new Dee(0,0,0,0,0,0,A);A=k.getHours();H=k.getMinutes();k=k.getSeconds();k!==0&&H++;H!==0&&H%60===0&&(A++,H=0);return{hours:A,minutes:H,seconds:k}};
vcB=function(A,H,k){return A>0&&H>0?k?_.$r("TIME_LEFT_HOURS_MINUTES",{hours:A.toString(),minutes:H.toString()}):_.$r("TIME_HOURS_MINUTES",{hours:A.toString(),minutes:H.toString()}):A>0?k?_.AZ("TIME_LEFT_HOURS",A):_.AZ("TIME_HOURS",A):k?_.$r("TIME_LEFT_MINUTES",{minutes:H.toString()}):_.$r("TIME_MINUTES",{minutes:H.toString()})};
CAe=function(A,H){if(A.timelyActions)return A.timelyActions.find(function(k){var d;return((d=_.L(k,SK_))==null?void 0:d.cueRangeId)===H})};
KWI=function(A){return _.b("kevlar_watch_cinematics_invisible")||A.fullscreen&&_.b("kevlar_watch_cinematics_invisible_in_fullscreen")||A.theater&&!A.fullscreen&&_.b("kevlar_watch_cinematics_invisible_in_theater")};
asR=function(){var A=document.createElement("canvas"),H=A.getContext("2d");if(!H)throw Error("Tl");_.YX(A,{position:"absolute",width:"100%",height:"100%"});return{element:A,context:H}};
cdQ=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.b("kevlar_watch_cinematics_css_blur")};
ppB=function(A){var H=A.externalVideoId||"";return H?A.isShortsEligible?"https://www.youtube.com/shorts/"+H:"https://www.youtube.com/watch?v="+H:""};
QLV=function(A){var H=[];A.viewCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:A.viewCount});A.likeCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:A.likeCount});return H};
VKL=function(A){var H,k,d={"@context":"https://schema.org","@type":"VideoObject",description:_.PK(A.description),duration:"PT"+(A.lengthSeconds||"0")+"S",embedUrl:A.embed?A.embed.iframeUrl:"",name:_.PK(A.title),thumbnailUrl:((H=A.thumbnail)==null?void 0:(k=H.thumbnails)==null?void 0:k.map(function(T){return T&&T.url||""}))||[],
uploadDate:A.publishDate};_.b("mweb_video_schema_id_killswitch")||(d["@id"]=ppB(A));H=QLV(A);H.length&&(d.interactionStatistic=H);A.category&&(d.genre=A.category);A.ownerChannelName&&(d.author=A.ownerChannelName);A.liveBroadcastDetails&&(d.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:A.liveBroadcastDetails.startTimestamp,endDate:A.liveBroadcastDetails.endTimestamp}]);if(A.learningResource){A=A.learningResource;d["@type"]=["VideoObject","LearningResource"];var W;if((W=A.learningResourceType)==
null?0:W.length)d.learningResourceType=A.learningResourceType[0];var z;if((z=A.educationalAlignment)==null?0:z.length)d.educationalAlignment={"@type":"AlignmentObject",targetName:A.educationalAlignment[0]};var u;if((u=A.educationalLevel)==null?0:u.length){W=A.educationalLevel[0];var B;if((B=A.educationalLevelCountry)==null?0:B.length)W+=" ("+A.educationalLevelCountry+")";d.educationalLevel=W}var h,O;if(((h=A.learningResourceType)==null?0:h.length)&&A.learningResourceType[0]==="Problem walkthrough"&&
((O=A.problemDescriptions)==null?0:O.length))for(d.hasPart=[],B=_.r(A.problemDescriptions),h=B.next();!h.done;h=B.next())W=h.value,h=W.problemDescriptionText,O=W.startOffset,W=W.url,h&&O!==void 0&&W&&d.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:h,text:h,startOffset:O,url:W})}return d};
EcM=function(A){return A?A.status==="LIVE_STREAM_OFFLINE":!1};
Ue_=function(A){return A&&A.contents&&A.contents.twoColumnWatchNextResults&&A.contents.twoColumnWatchNextResults.results&&A.contents.twoColumnWatchNextResults.results.results.contents};
lsL=function(A){if((A==null?void 0:A.value)===void 0||A==null||!A.unit)return"initial";a:{switch(A.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var H="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":H="%";break a}H=void 0}return H?""+A.value+H:"initial"};
tKM=function(A){return A?A.status==="LIVE_STREAM_OFFLINE":!1};
NKQ=function(A){return A&&A.contents&&A.contents.twoColumnWatchNextResults&&A.contents.twoColumnWatchNextResults.results&&A.contents.twoColumnWatchNextResults.results.results.contents};
nc_=function(A,H){var k,d,W,z,u,B,h;_.e(function(O){switch(O.nextAddress){case 1:k=_.ya.getInstance();d=_.n0.instance;W=_.yI.instance;if(!W)return MK_(A,d,H),O.return();_.S_(O,2);A.onLoadingCommand&&d.resolveCommand(A.onLoadingCommand);return O.yield(k.getCurrentPositionFromGeolocation(),4);case 4:z=O.yieldResult;if(!A.resolveLocationCommand){O.jumpTo(5);break}u=k.createLocationInfo(z);return O.yield(_.I9(W,A.resolveLocationCommand,{locationInfo:u}),6);case 6:B=O.yieldResult;if(!B||"error"in B&&B.error||
B.errorMetadata)return MK_(A,d,H),O.return();var T;if(B==null?0:(T=B.onResponseReceivedActions)==null?0:T.length){T=_.r(B.onResponseReceivedActions);for(var m=T.next();!m.done;m=T.next())d.resolveCommand(m.value)}(_.L(A.onSuccessCommand,_.Yr)||_.L(A.onSuccessCommand,_.fm))&&_.Ed(H.hostElement,"yt-navigate",{endpoint:A.onSuccessCommand,reload:!0});case 5:_.QN(O,0);break;case 2:h=_.VA(O);if(h instanceof GeolocationPositionError&&h.code===GeolocationPositionError.PERMISSION_DENIED)return A.onDeniedCommand&&
d.resolveCommand(A.onDeniedCommand),O.return();MK_(A,d,H);_.EN(O)}})};
MK_=function(A,H,k){A.onFailureCommand&&(H.resolveCommand(A.onFailureCommand),_.Ud(k.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
fsB=function(A,H){var k=_.L(A,_.hd1);if(k&&H){A=k.videoIds||[k.videoId];var d;H=(d=_.Ed(H,"yt-lockup-requested",{videoIds:A}).detail)==null?void 0:d.returnValue;var W;k.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?W=H?H:A.map(function(z){return{videoId:z,navigationEndpoint:k.videoCommand}}):H&&(W=H);
W&&(d=W.map(function(z){var u=Object,B=u.assign;var h=z.navigationEndpoint;if(!_.L(h,_.A1)){var O=_.L(h,_.Yr);if(O){if(delete O.index,delete O.playlistId,O=_.L(h==null?void 0:h.commandMetadata,_.wn),O==null?0:O.url){var T=O.url;T=_.sI(T,"list");T=_.sI(T,"index");O.url=T}}else h=void 0}return B.call(u,{},z,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:h})}),Z6_(d,k))}};
wp3=function(A){var H=_.FY();if(A=_.L(A,_.Oop))A.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&H.clearQueue(),A.closeMiniplayer&&_.wj().resolve(_.L6).close(!0)};
$eI=function(A){ocI(_.FY(),A)};
AYQ=function(A){var H;(A=(H=_.L(A,_.x2w))==null?void 0:H.setVideoIds)&&A.forEach(function(k){_.xAk(_.FY(),k)})};
sXB=function(A){HX1(_.FY(),A)};
k5R=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(A){return!1}};
r7=function(A,H,k){(_.b("desktop_keyboard_shortcut_usage_log")||k&&_.b("web_shorts_keyboard_shortcut_usage_log"))&&(H?zY.get(A):qj.get(A))&&(A=H?dJI.get(A):W9R.get(A))&&_.P0(_.hx(),A)};
q8_=function(A){return A.findIndex(function(H){return z6B.indexOf(H.tagName)>-1})>-1};
rYL=function(A,H){return A.findIndex(function(k){return k.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(H.keyCode):!1};
BdL=function(A,H){return _.x(uMR,{data:A,onYtNavigate:H})};
e6i=function(A,H){return _.Mw(A.entities,"pageHeaderEntity",H)};
iXB=function(A,H){return A.map(function(k){if(k.tabRenderer)return xJe(k.tabRenderer);if(k.expandableTabRenderer&&H){var d=k.expandableTabRenderer;return{customTabRenderable:function(){return H(d)}}}return{}})};
xJe=function(A){return{identifier:A.tabIdentifier,aTagConfig:_.Ry({innertubeCommand:A.endpoint,forceNewState:!0}),title:A.title,selected:A.selected,disabled:A.unselectable,icon:A.icon}};
R6Q=function(A,H,k,d){if(A)return d=d||A.likeStatus,H?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:d==="LIKE",isDisabled:!A.likesAllowed,defaultIcon:{iconType:k},defaultText:d==="LIKE"?A.likeCountWithUnlikeText:A.likeCountText,toggledText:d==="LIKE"?A.likeCountText:A.likeCountWithLikeText,defaultNavigationEndpoint:h6Q(A,"LIKE"),defaultServiceEndpoint:OX1(A,"LIKE"),toggledServiceEndpoint:OX1(A,"INDIFFERENT"),defaultTooltip:_.PK(A.likeCountTooltipText),toggledTooltip:_.PK(A.likeCountTooltipText),
targetId:A.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:d==="DISLIKE",isDisabled:!A.likesAllowed,defaultIcon:{iconType:k},defaultText:d==="DISLIKE"?A.dislikeCountWithUndislikeText:A.dislikeCountText,toggledText:d==="DISLIKE"?A.dislikeCountText:A.dislikeCountWithDislikeText,defaultNavigationEndpoint:h6Q(A,"DISLIKE"),defaultServiceEndpoint:OX1(A,"DISLIKE"),toggledServiceEndpoint:OX1(A,"INDIFFERENT"),defaultTooltip:_.PK(A.dislikeCountTooltipText),
toggledTooltip:_.PK(A.dislikeCountTooltipText)}};
h6Q=function(A,H){if(H==="LIKE")return A.likeCommand;if(H==="DISLIKE")return A.dislikeNavigationEndpoint};
OX1=function(A,H){var k;return(k=A.serviceEndpoints)==null?void 0:k.find(function(d){var W;return((W=_.L(d,_.BY))==null?void 0:W.status)===H})};
Td_=function(A,H,k,d){A=H-A;k=d-k;return Math.sqrt(A*A+k*k)};
mJe=function(A){var H=A>>8&255,k=A&255;return"#"+(A>>16&255).toString(16).padStart(2,"0")+H.toString(16).padStart(2,"0")+k.toString(16).padStart(2,"0")};
JYe=function(A,H){A&&_.wj().resolve(_.J7).resolveCommand(A,{forceClickLogging:!0,form:{element:H}})};
gVG=function(A){if(A.simpleText)return[{text:A.simpleText}];var H;return(H=A.runs)!=null?H:[]};
bXL=function(A){var H=A.startEndTimeTemplate,k=A.startTimeUtcMillis;A=A.endTimeUtcMillis;if(H&&k&&A)return _.Yu(Bl3(_.PK(H),Number(k),Number(A)))};
L9Q=function(A,H){var k,d,W=A==null?void 0:(k=A.viewCount)==null?void 0:(d=k.videoViewCountRenderer)==null?void 0:d.shortViewCount;if(!H&&W)return W;var z,u;return A==null?void 0:(z=A.viewCount)==null?void 0:(u=z.videoViewCountRenderer)==null?void 0:u.viewCount};
vV1=function(A,H){var k=A==null?void 0:A.relativeDateText;return!H&&k?[k,!0]:[A==null?void 0:A.dateText,!1]};
yY3=function(A,H,k,d,W){d=d===void 0?"":d;W=W===void 0?!1:W;var z=L9Q(A,H),u=_.r(vV1(A,H)),B=u.next().value;u=u.next().value;H=H?A==null?void 0:A.sponsorsOnlyFirstTimeLongText:A==null?void 0:A.sponsorsOnlyFirstTimeShortText;var h=[];k&&z&&h.push(z);!k&&u||!B||h.push(B);A=[W?A==null?void 0:A.subtitle:void 0].concat(_.fV(h),[H,A==null?void 0:A.stationName,A==null?void 0:A.rating,A?bXL(A):void 0,A==null?void 0:A.upNextProgramText,A==null?void 0:A.superTitleLink]).filter(function(O){return!!O});
k={runs:[]};for(W=0;W<A.length;W++)k.runs.push.apply(k.runs,_.fV(gVG(A[W]))),W<A.length-1&&k.runs.push({text:" "+d+" "});return k};
jX_=function(A,H){var k=_.CHA(H,{},A,!0);return new Promise(function(d,W){k.listenOnce("n",function(){W(Error("fm`"+k.JSC$30560_getErrorDescription()))});
k.listenOnce("l",function(){var z=k.getResponseCode();if(z!==200)W(Error("gm`"+H+"`"+A.type+"`"+A.size+"`"+z));else try{d(JSON.parse(k.getResponseText()).encryptedBlobId)}catch(u){W(u)}});
k.run()})};
I_B=function(A){return A.substring(A.indexOf(":")+1,A.indexOf(";"))};
Y81=function(A){return new Promise(function(H,k){var d=new FileReader;d.onloadend=function(){try{var W=new Uint8Array(d.result);W.length<8&&k(void 0);var z=W.subarray(0,8);W="";for(var u=0;u<z.length;u++)W+=("0"+z[u].toString(16)).substr(-2);W.startsWith("ffd8ff")?H("image/jpeg"):W.startsWith("47494638")?H("image/gif"):W.startsWith("89504e470d0a1a0a")?H("image/png"):W.startsWith("424d")?H("image/bmp"):H(void 0)}catch(B){k(B)}};
d.onerror=k;d.readAsArrayBuffer(A)})};
Pp3=function(A){return new Promise(function(H,k){var d=new Image;d.crossOrigin="anonymous";d.onload=function(){var W=document.createElement("canvas");W.width=d.naturalWidth;W.height=d.naturalHeight;var z=W.getContext("2d");if(!z)throw Error("hm");z.drawImage(d,0,0);z=I_B(A);W.toBlob(function(u){u?H(u):k()},z)};
d.src=A})};
F9I=function(A,H){var k;if(((k=_.L(A,_.A1))==null?void 0:k.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var d;_.Ed((d=H.hostElement)!=null?d:H,"yt-shorts-reset");_.tBL(_.wj().resolve(_.dz),A).then(function(z){G5G(z,H,A)})}else{var W;
_.tx((W=H.hostElement)!=null?W:H,[A]).then(function(z){z&&G5G(z.data,H,A)})}};
G5G=function(A,H,k){if(A){var d=_.L(A.replacementEndpoint,_.A1);if(d){A.sequenceContinuation&&(d.sequenceParams=A.sequenceContinuation);var W;_.Ed((W=H.hostElement)!=null?W:H,"yt-navigate",{endpoint:A.replacementEndpoint})}else if((A==null?void 0:A.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(A==null?0:A.watchStatus)&&_.L(A.watchStatus,_.H4N)){var z;_.Ed((z=H.hostElement)!=null?z:H,"yt-navigate",{endpoint:k})}}};
XZQ=function(A){var H=_.wj().resolve(_.O7),k=_.yP.currentPageTypeSelector(H.getState())||"";H=_.yP.currentPageSubTypeSelector(H.getState())||"";k=k==="ytd-browse"&&H==="home";return _.b("web_guide_entry_enable_cache_for_non_home_pages")?(A=(A==null?void 0:A.navigationEndpoint)&&_.Zu(A.navigationEndpoint)==="home",{disableCache:k&&A}):{disableCache:k}};
CpM=function(A,H,k,d){if(A&&A.length){var W={};if(H){var z=void 0;k&&(z={commandContext:{onTap:{innertubeCommand:k||{}}}});W.header={panelHeaderViewModel:{title:_.B8(H),rendererContext:z}}}H=[];A=_.r(A);for(k=A.next();!k.done;k=A.next()){z=k.value;k=_.L(z,DJB);z=_.L(z,S8i);var u=void 0,B=void 0;if((u=z)==null?0:(B=u.expandableItems)==null?0:B.length)for(z=_.r(z.expandableItems),u=z.next();!u.done;u=z.next()){u=u.value.guideEntryRenderer;var h=B=void 0;if(((B=u)==null?void 0:(h=B.icon)==null?void 0:
h.iconType)==="VIEW_LIST_CAIRO"){k=u;break}}B=u=void 0;z=((u=k)==null?0:u.formattedTitle)?_.B8((B=k)==null?void 0:B.formattedTitle):void 0;u=void 0;B=(u=k)==null?void 0:u.isPrimary;if(k&&z&&!B){z={title:z};k.navigationEndpoint&&(z.rendererContext={commandContext:{onTap:{innertubeCommand:k.navigationEndpoint}}});u=[];h=B=void 0;if(((B=k)==null?0:(h=B.thumbnail)==null?0:h.thumbnails)&&k.thumbnail.thumbnails.length>0){B=_.r(k.thumbnail.thumbnails);for(h=B.next();!h.done;h=B.next())u.push({url:h.value.url});
z.leadingAccessory={avatarViewModel:{image:{sources:u},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(B=void 0,(B=k.icon)==null?0:B.iconType)u.push({clientResource:{imageName:k.icon.iconType||""}}),z.leadingImage={sources:u};B=u=void 0;((u=k)==null?0:(B=u.badges)==null?0:B.liveBroadcasting)?(z.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",z.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},z.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
k.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?z.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":k.count&&(z.trailingLabel={content:k.count.toString()});H.push({listItemViewModel:z})}}H.length!==0?(W.content={listViewModel:{listItems:H}},d===0&&(W.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):W=void 0;if(W)return H=void 0,d===0&&(H={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:W}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:H}}}}};
K9L=function(A,H,k,d){if(H!=null&&H.isPrimary){switch(d){case 1:if(H.serviceEndpoint)break;k=CpM(k,H.formattedTitle,H.navigationEndpoint,d);if(!k)break;H.serviceEndpoint=k;H.navigationEndpoint=void 0;break;case 0:!H.mouseEnterEndpoint&&(k=CpM(k,H.formattedTitle,void 0,d))&&(H.mouseEnterEndpoint=k,H.mouseLeaveEndpoint={hideSheetCommand:{}})}A.push({guideEntryRenderer:H})}};
a__=function(A){if(!A)return!1;try{if(A.host&&A.host.tagName==="YT-FORMATTED-STRING"&&A.host.id==="contenteditable-textarea"||A.nodeType===Node.ELEMENT_NODE&&A.tagName==="YTD-COMMENT-INPUT")return!0}catch(H){return!1}return a__(A.parentNode)};
un=function(A){return A?A.tagName==="A"&&A.href&&A.classList.contains("yt-simple-endpoint"):!1};
cYi=function(A){return A?A.tagName==="IMG"&&A.classList.contains("emoji"):!1};
pZB=function(A,H,k){if(!A)return null;var d=un(A);if(d&&k)return H=A.pathname.substring(A.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(d&&!k)return document.createTextNode("");if(cYi(A))return k=A.alt,A=A.dataset.emojiId,!A&&H&&(H=_.l2(H,k))&&H.isCustomEmoji&&(A=H.emojiId),A?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+A+">"):document.createTextNode(k);d=A.cloneNode(!1);for(var W=0;W<A.childNodes.length;++W){var z=pZB(A.childNodes[W],H,k);z&&d.appendChild(z)}return d};
QXB=function(A){return A?un(A)?A:QXB(A.lastChild):null};
VaQ=function(A){return A?un(A)?A:VaQ(A.firstChild):null};
EVe=function(A){if(!A)return null;for(var H=A.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=QXB(H))?A=H:A=(A=A.parentNode)?QXB(A.previousElementSibling):null;return A};
UJi=function(A){if(!A)return null;for(var H=A.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=VaQ(H))?H:UJi(A.parentNode)};
l_R=function(A){var H=_.kk(),k=H.JSC$11667_getStartNode();if(!a__(k.parentNode))return null;H=H.JSC$11667_getStartOffset();if(k.nodeType===Node.TEXT_NODE){var d=_.Jj(k,un);if(d){if(A&&H===0||!A&&H===k.length)return d}else{if(A&&H===k.length)return!k||k.nodeName==="BR"||k.nextElementSibling&&_.NF(k.nextElementSibling,"display")==="block"?null:VaQ(k.nextElementSibling);if(!A&&H===0)return k?QXB(k.previousElementSibling):null}}if(k.nodeType===Node.ELEMENT_NODE)if(A){if(0<=H&&H<k.childNodes.length)return VaQ(k.childNodes[H])}else if(0<
H&&H<=k.childNodes.length)return QXB(k.childNodes[H-1]);return null};
ta_=function(A,H,k){if(!A)return null;if(A.nodeType===Node.TEXT_NODE)if(k){var d=EVe(A);if(d&&!/^\s+\S/.test(A.wholeText.substr(0,H)))return d}else if((d=UJi(A))&&!/\S\s+/.test(A.wholeText.substr(H,A.wholeText.length)))return d;return A.nodeType===Node.ELEMENT_NODE?k?EVe(A.childNodes[H]):UJi(A.childNodes[H]):ta_(A.parentNode,H,k)};
NdB=function(A){if(A.hasChildNodes())switch(A.tagName){case "DIV":case "A":case "SPAN":var H="";for(A=A.firstChild;A;A=A.nextSibling)H+=NdB(A);return H;default:return""}else switch(A.nodeType){case 3:return A.textContent;default:return""}};
MaB=function(A){switch(A){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"}};
nVL=function(A){return A.map(function(H){return{settingsRadioOptionRenderer:{title:_.c0(H.name),asideText:_.c0(H.approximateSize),id:MaB(H.format)}}})};
f_Q=function(A){if(A&&A.length!==0)return A.filter(ZXG()).map(function(H){return{settingsRadioOptionRenderer:{title:H.name,asideText:H.approximateSize,id:MaB(H.formatType)}}})};
wZ_=function(A){if(A)return A.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
oV1=function(A,H){A=new Set(A!=null?A:[]);if(A.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(A.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(A.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(A.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(A.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(H)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
$JV=function(A){var H=A.indexOf("(");return H!==-1?A.substring(H+1,A.length-1):A};
_.HOL=function(A,H,k,d,W){k||(k=_.AKL);var z;(z=_.L(k.commandMetadata,_.wn))!=null&&z.url||(k=Error("mm`"+JSON.stringify(k)),_.I3(k),k=_.AKL);k=_.iK.unsafeClone(k);z=_.kg(_.L(k.commandMetadata,_.wn).url,"search_query",A);_.H4(location.href,"sv")==="1"&&(_.L(k,_.wl).params="EgOAAgE%3D",z=_.kg(z,"sv","1"));_.L(k,_.wl)&&(_.L(k,_.wl).query=A);z=z.replace(/%20/g,"+");_.L(k.commandMetadata,_.wn).url=z;W=_.b("desktop_enable_entity_suggest")?{entityMid:W}:{};_.wj().resolve(_.J7).resolveCommand(k,{form:{tempData:Object.assign({},
{gs_l:H,oq:d!=null?d:A},W),isFromShorts:_.XB()==="shorts"}})};
_.sM1=function(A){var H=_.pZ("SBOX_SETTINGS"),k="https://"+(H.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";k+="&delq="+encodeURIComponent(A);(A=H==null?void 0:H.PSUGGEST_TOKEN)&&(k+="&tok="+A);(H=H==null?void 0:H.SESSION_INDEX)&&(k+="&authuser="+H);return k};
kjM=function(A){switch(A){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
WNI=function(A,H,k,d,W,z){var u=_.iK.clone(dBG);u.locale=_.pZ("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;u.report={description:W||"<empty>"};W=_.pZ("SBOX_SETTINGS",{});H=H.join(",");var B=Date.now();A={choice_cc:d,choice_id_cc:k,choices_sc:H,gl:W.REQUEST_DOMAIN,hl:W.REQUEST_LANGUAGE,query:A,time:B};z&&(A.choice_additional_comment_cc=z);_.QFw(u,A)};
zZ_=function(A){var H=new Map;H.set("authuser",_.pZ("SESSION_INDEX","0"));return _.Yd(A,H)};
rKL=function(A){var H;return _.e(function(k){switch(k.nextAddress){case 1:if(!A||!qXB(A))return k.return(null);H=null;switch(_.pZ("INNERTUBE_CLIENT_NAME")){case "WEB":return k.jumpTo(2);case "WEB_REMIX":H=A.getPlayer()}k.jumpTo(3);break;case 2:return k.yield(A.getPlayerPromise(),4);case 4:H=k.yieldResult;k.jumpTo(3);break;case 3:return k.return(H)}})};
qXB=function(A){return["ytd-player","ytmusic-player"].includes(String(A.tagName||"").toLowerCase())};
uoR=function(A){A=Math.round(A);return A%2?A-1:A};
BS3=function(A){A=Math.round(A);return A%2===0?A-1:A};
eZL=function(A){var H=["h","m","s"],k=_.tA(H);k.reverse();var d={};A=(A.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(u){var B=(u.match(/[hms]/)||[""])[0];return B?(d[B]=parseInt(u.match(/\d+/)[0],10),!1):!0});
for(A.reverse();A.length&&k.length;){var W=k.shift();W in d||(d[W]=parseInt(A.shift(),10))}if(A.length||d.s>59||d.m>59||d.h>9)return null;var z="";H.forEach(function(u){d[u]&&(z+=""+d[u]+u)});
return z||null};
xBG=function(A){var H,k,d;if(A=(H=A.createPlaylistDialogFormSchema)==null?void 0:(k=H.fieldSchemas)==null?void 0:(d=k.title)==null?void 0:d.validationSchema)for(H=[A.syncStep,A.asyncStep].filter(function(W){return W!==void 0}),H=_.r(H),k=H.next();!k.done;k=H.next()){k=k.value.rules;
if(!k)break;k=_.r(k);for(k=k.next();!k.done;k=k.next())return _.L(k.value,Mu_)}};
hZL=function(A){var H,k,d;if(A=(H=A.createPlaylistDialogFormSchema)==null?void 0:(k=H.fieldSchemas)==null?void 0:(d=k.visibility)==null?void 0:d.validationSchema)for(H=[A.syncStep,A.asyncStep].filter(function(W){return W!==void 0}),H=_.r(H),k=H.next();!k.done;k=H.next()){k=k.value.rules;
if(!k)break;k=_.r(k);for(d=k.next();!d.done;d=k.next())if(d=_.L(d.value,iO3))return H=void 0,(H=d.translations)==null?void 0:H.visibilityNotValidErrorMessage}};
OOL=function(){var A,H;return(H=(A=_.wj().resolve(_.fZ(_.sF)))==null?void 0:A())!=null?H:!1};
RZG=function(A){var H=21;if(!A)return H;H+=A.headerTitle?27:0;H+=A.headerTitle&&A.hasHeaderActionHeader?4:0;return H+=A.headerTitle&&A.headerSubtitle?16:0};
TSB=function(A){var H=0;if(!A)return H;H+=A.hasFooterPrimaryButton||A.hasFooterSecondaryButton?48:0;H+=A.footerTrailingLabel||A.footerLeadingLabel?30:0;return H+=A.hasFooterPrimaryButton||A.hasFooterSecondaryButton||!A.footerTrailingLabel&&!A.footerLeadingLabel?0:12};
mBe=function(A){var H=new _.B5,k=A;return{subscribe:function(d){H.subscribe("changed",d)},
dispatch:function(d,W){var z=k;if(d==="Touch Start")k=Object.assign({},z,{isAnimating:!1,initialY:W.event.touches[0].clientY});else if(d==="Touch Move"){d=W.contentScrollable?-1*(z.initialY-24):0;var u,B=(u=W.headerDivHeight)!=null?u:RZG(W.header),h;u=(h=W.footerDivHeight)!=null?h:TSB(W.footer);h=Math.min(W.fullContentWrapperHeight,W.heightMap[W.contentWrapperId]+B-u);k=Object.assign({},z,{currentY:Math.max(d,W.event.touches[0].clientY-z.initialY),maxHeightForContentWrapper:Math.min(h,Math.max(0,
(z.isFullScreen?h:W.contentWrapperHeight)-z.currentY))})}else k=d==="Snap To Full Screen"?Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:W.maxHeight}):d==="Snap To Neutral Position"?Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:W.maxHeight}):d==="Close Sheet"?Object.assign({},z,{isAnimating:!0,currentY:W.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:W.maxHeight}):z;H.publish("changed",k)}}};
JK_=function(){_.wj().resolve(_.x0).closeSheet()};
gXI=function(A){var H,k,d,W,z,u,B,h,O,T,m;return{headerTitle:(H=A.headerTitle)==null?void 0:H.call(A),headerSubtitle:(k=A.headerSubtitle)==null?void 0:k.call(A),headerActionHeader:A.headerActionHeader,footerPrimaryButton:A.footerPrimaryButton,footerSecondaryButton:A.footerSecondaryButton,footerButtonType:(d=A.footerButtonType)==null?void 0:d.call(A),footerLeadingLabel:(W=A.footerLeadingLabel)==null?void 0:W.call(A),footerTrailingLabel:(z=A.footerTrailingLabel)==null?void 0:z.call(A),shouldShowIcons:(u=
A.shouldShowIcons)==null?void 0:u.call(A),skipContentClick:(B=A.skipContentClick)==null?void 0:B.call(A),additionalClassName:(h=A.additionalClassName)==null?void 0:h.call(A),onClosedCallback:A.onClosedCallback,focusOnClose:(O=A.focusOnClose)==null?void 0:O.call(A),isDisabled:(T=A.isDisabled)==null?void 0:T.call(A),disabledCommand:(m=A.disabledCommand)==null?void 0:m.call(A),headerFn:A.headerFn,contentFn:A.contentFn,footerFn:A.footerFn,hasHeaderFn:A.hasHeaderFn(),hasContentFn:A.hasContentFn(),hasFooterFn:A.hasFooterFn(),
hasFooterPrimaryButton:A.hasFooterPrimaryButton(),hasFooterSecondaryButton:A.hasFooterSecondaryButton(),hasHeaderActionHeader:A.hasHeaderActionHeader()}};
bO_=function(A){switch(A){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""}};
LN_=function(A){switch(A){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""}};
vX_=function(A){switch(A){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""}};
yK_=function(A,H,k){H.forEach(function(d){_.wN(_.wj().resolve(_.Wf),d)});
_.Ud(A,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",k])};
PP3=function(A,H,k,d){var W=_.L(k,_.ID).commandLifeCycleConfig;W&&W.onStartCommand&&_.NT(A,[W.onStartCommand],H);_.II(H);var z=_.yI.instance;z&&_.jO(z,k)?_.I9(z,k,d).then(function(u){if(!u||(u==null?0:u.error))return u=_.L(k,_.ID).serializedTransactionFlowLoggingParams,_.Yq(H),_.qt(new Ba("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",u));_.Yq(H);return{data:u}}).then(function(u){_.Yq(H);
jMG(u.data);var B=u.data.command;B&&_.NT(A,[B],H);B=IIe(k,u.data);if(!B){var h=u.data;u=!1;if(h&&h.command&&_.L(h.command,_.nH)){var O;h=((O=_.L(h.command,_.nH))==null?void 0:O.commands)||[];for(O=0;O<h.length;O++)if(_.L(h[O],_.Fg0)){u=!0;break}}u||_.zB('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!B&&W&&W.onSuccessCommand?_.NT(A,[W.onSuccessCommand],H):B&&W&&W.onFailureCommand&&_.NT(A,[W.onFailureCommand],H)},function(){_.Yq(H);
W&&W.onFailureCommand&&_.NT(A,[W.onFailureCommand],H);YXM(k)}):_.I3(Error("ym"),"ERROR")};
Gj3=function(A,H,k){var d=[H];k&&d.push(k);return _.tx(A,d).then(function(W){var z=_.L(H,_.ID).serializedTransactionFlowLoggingParams,u=W.data,B=IIe(H,u);B?W=_.qt(new Ba(B,z)):jMG(u);return W},function(){var W=_.L(H,_.ID).serializedTransactionFlowLoggingParams;
YXM(H);return _.qt(new Ba("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",W))})};
IIe=function(A,H){A=_.L(A,_.ID).serializedTransactionFlowLoggingParams;var k=null;switch(H.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":k="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":k="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":k="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}k?_.PM(k,A):aWL(A);return k};
YXM=function(A){_.PM("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.L(A,_.ID).serializedTransactionFlowLoggingParams)};
jMG=function(A){if(A.trackingParams){var H=_.hx(),k=_.ii();H&&k&&_.v0(H,k,_.db(A.trackingParams))}};
FNQ=function(A,H,k){var d=_.yI.instance,W=_.qgC(_.pZ("YPC_MB_URL")),z=(new _.WDb).init(),u=_.z0v(),B=_.L(k,_.IkZ).languageCode;B===void 0?_.I3(Error("Li"),"ERROR"):_.Ox([z,W]).then(function(){var h={ctk:_.QG.payments.business.integration.ClientTokenFactory.createClientToken(B,u)};d&&_.jO(d,k)?_.I9(d,k,h).then(function(O){return{data:O}}).then(function(O){_.Ed(H,"yt-service-request-completed",O);
O.code!=="ERROR"&&(O=O.data.command)&&_.NT(A,[O],H)}):_.I3(Error("ym"),"ERROR")})};
SXB=function(A,H,k,d){var W=_.yI.instance;W&&_.jO(W,k)?_.I9(W,k,d).then(function(z){return{data:z}}).then(function(z){XJV(A,H,k,z)},function(){DBi(k)}):(W=_.wj().resolve(_.fZ(_.sJ)))&&W.requestDataForServiceEndpoint(k,d).then(function(z){XJV(A,H,k,z)},function(){DBi(k)})};
XJV=function(A,H,k,d){_.Ed(H,"yt-service-request-completed",d);if(d.code&&d.code=="ERROR")DBi(k);else{(d=d.data.commands)&&_.NT(A,d,H);var W;(A=(W=_.L(k,_.D6J))==null?void 0:W.serializedYpcPauseFlowLoggingParams)&&A&&wG("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",A)}};
DBi=function(A){var H;(A=(H=_.L(A,_.D6J))==null?void 0:H.serializedYpcPauseFlowLoggingParams)&&A&&wG("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
aIR=function(A,H,k){var d=_.yI.instance;d&&_.jO(d,k)?_.I9(d,k).then(function(W){return{data:W}}).then(function(W){CPB(A,H,k,W)},function(){KNL(k)}):(d=_.wj().resolve(_.fZ(_.sJ)))&&d.requestDataForServiceEndpoint(k).then(function(W){CPB(A,H,k,W)},function(){KNL(k)})};
CPB=function(A,H,k,d){_.Ed(H,"yt-service-request-completed",d);d.code&&d.code=="ERROR"?KNL(k):((d=d.data.commands)&&_.NT(A,d,H),(A=_.L(k,_.ScN).serializedYpcResumeFlowLoggingParams)&&A&&wG("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",A))};
KNL=function(A){(A=_.L(A,_.ScN).serializedYpcResumeFlowLoggingParams)&&A&&wG("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
cKM=function(A){A=A===void 0?{}:A;_.wj().resolve(_.bVi).showFeedbackDialog(A.customProductData,A.feedbackContent,A.onFeedbackSubmitted,A.bucket)};
pJe=function(A){A=A===void 0?{}:A;_.wj().resolve(_.bVi).showHelpDialog(A.helpContext,A.articleId,A.productData)};
QMI=function(){pJe()};
VmL=function(){cKM()};
UBe=function(A,H,k){var d,W,z,u,B,h,O;return _.e(function(T){switch(T.nextAddress){case 1:d=_.L(A,EXG);if((W=d)==null?0:W.productId){h={productId:d.productId,bucket:d.bucket,enableAnonymousFeedback:(B=d.enableAnonymousFeedback)!=null?B:!0,allowNonLoggedInFeedback:!0};O={feedbackChoice:k.feedbackChoice};if(!_.b("web_collect_offline_state")){T.jumpTo(8);break}_.S_(T,9);return T.yield(GKL(O),11)}u={bucket:(z=d)==null?void 0:z.bucket};if(!_.b("web_collect_offline_state")){T.jumpTo(4);break}u.customProductData=
{};_.S_(T,5);return T.yield(GKL(u.customProductData),7);case 7:_.QN(T,4);break;case 5:_.VA(T);case 4:cKM(u);T.jumpTo(0);break;case 11:_.QN(T,8);break;case 9:_.VA(T);case 8:_.NJA(O),_.ty8("GFEEDBACK",O),d.productId==="5295751"&&(O.client_attestation=Number(_.pZ("CATSTAT",0))),d.productId==="5295751"&&(O.client_time=Date.now()/1E3/3600),d.productId==="5295751"&&(O.original_playback_id=_.vGA||""),_.QFw(h,O),_.EN(T)}})};
lIe=function(A){if(A=_.L(A,_.t7r)){var H={bucket:A.bucketIdentifier};A.additionalDatas&&(H.customProductData={},A.additionalDatas.forEach(function(k){if(k=k.userFeedbackEndpointProductSpecificValueData)H.customProductData[k.key]=k.value}));
cKM(H)}};
tmM=function(A){var H=_.a3.getInstance();var k=_.$r("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var d=_.$r("DELETE",void 0,"Delete"),W=_.$r("CANCEL",void 0,"Cancel");k=$oL(k,void 0,d,W,{signal:"DELETE_ALL_DOWNLOADS"});_.h$(H,[{openPopupAction:k}],A)};
Mm_=function(){return _.e(function(A){return A.nextAddress==1?A.yield(_.wj().resolve(_.bA_),2):A.yield(NSM(),0)})};
nX_=function(A){var H,k;return _.e(function(d){return d.nextAddress==1?(k=(H=_.L(A,_.SM))==null?void 0:H.targetId)?d.yield(_.wj().resolve(_.bA_),3):d.jumpTo(0):d.yield(_.wj().resolve(_.hJ).deleteVideo(k),0)})};
fIL=function(A){var H,k;return _.e(function(d){return d.nextAddress==1?(k=(H=_.L(A,_.SM))==null?void 0:H.targetId)?d.yield(_.wj().resolve(_.bA_),3):d.jumpTo(0):d.yield(ZO3(_.wj().resolve(_.hJ),k),0)})};
oXG=function(A){var H,k;return _.e(function(d){return(k=(H=_.L(A,_.SM))==null?void 0:H.targetId)?d.yield(wJQ(k),0):d.jumpTo(0)})};
AsI=function(){_.b("kevlar_woffle_refresh_dl_load_killswitch")||$BV()};
swi=function(){_.b("kevlar_woffle")&&_.vM.instance&&HfQ()};
d3_=function(A){var H;if((H=_.L(A,_.fj))==null||!H.videoId)return!1;kkB(_.wj().resolve(_.hJ),_.L(A,_.fj),A.clickTrackingParams);return!0};
zkI=function(A){var H;if((H=_.L(A,_.wH))==null||!H.playlistId)return!1;WvL(_.wj().resolve(_.hJ),_.L(A,_.wH),A.clickTrackingParams);return!0};
rsB=function(A){var H=_.L(A,_.Tfp);(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||qxG(_.wj().resolve(_.hJ),_.L(A,_.Tfp))};
B3Q=function(A){A=_.L(A,_.t$0);var H;(A==null?0:(H=A.actions)==null?0:H.length)&&ukG(A)};
if_=function(A){var H,k;return _.e(function(d){H=_.L(A,ekL);return(k=H)!=null&&k.localWatchHistoryCommandType?d.yield(x3e(H),0):d.return()})};
OfL=function(){return _.e(function(A){return A.yield(hk1(),0)})};
RkR=function(A){setTimeout(function(){requestAnimationFrame(A)},80)};
T3G=function(A){return Object.entries(A).map(function(H){return H.join(":")}).join(";")};
Js_=function(A){var H,k,d;_.e(function(W){if(W.nextAddress==1)return W.yield(m3B(),2);H=W.yieldResult;k=_.n0.instance;switch(H){case "granted":d=A.getLocationCommand;break;case "denied":d=A.openDeniedDialogAction;break;case "prompt":d=A.openCollectionDialogAction;break;default:d=A.openCollectionDialogAction}d&&k.resolveCommand(d);_.EN(W)})};
m3B=function(){var A,H;return _.e(function(k){if(k.nextAddress==1)return A="prompt",navigator.permissions?k.yield(navigator.permissions.query({name:"geolocation"}),3):k.jumpTo(2);k.nextAddress!=2&&(H=k.yieldResult,A=H.state);return k.return(A)})};
bfQ=function(){_.e(function(A){return A.yield(_.gzM(),0)})};
LvM=function(){var A,H,k;return _.e(function(d){if(d.nextAddress==1)return A=_.wj().resolve(_.kI),A?d.yield(_.I9(A,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Pq(Error("Bm")),d.return(void 0));if(H=d.yieldResult){if(H.errorMetadata)return _.Pq(Error("Cm`"+H.errorMetadata.status+"`"+H.error)),d.return(void 0);k=H.datasyncIds;_.Cf3=k.length;return d.return(k)}_.Pq(Error("Dm"));return d.return(void 0)})};
vzQ=function(){LvM().then(function(A){A&&(PgQ(A),Uwe(A),dwL(A),XK1(A))})};
ysQ=function(A){_.IE.addLowPriorityJob(function(){var H,k,d,W,z;return _.e(function(u){switch(u.nextAddress){case 1:if(_.b("ytidb_clear_optimizations_killswitch")){u.jumpTo(2);break}H=_.Oa("clear");if(H.startsWith("V")&&H.endsWith("||")){var B=[H];PgQ(B);Uwe(B);dwL(B);XK1(B);return u.return()}k=WpQ();d=Dm_();return u.yield(lWL(),3);case 3:return W=u.yieldResult,u.yield(GyL(),4);case 4:if(z=u.yieldResult,!(k||d||W||z))return u.return();case 2:A.isNetworkAvailable()?vzQ():A.listenOnce("publicytnetworkstatus-online",
vzQ),_.EN(u)}})})};
ek=function(A){A={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Yu(A)}}}};_.n0.instance&&_.n0.instance.resolveCommand(A)};
jw_=function(A){if(A){var H=_.A7();_.Ml(H,3854,void 0,{layer:0,parentLayer:4});switch(A){case 1:var k=238708;break;case 2:k=238715;break;case 3:k=238710;break;case 6:k=238709}k&&(A=_.$9(H,{veType:k}))&&_.f4(H,A)}};
IOB=function(A){if(A){var H=_.A7();_.Ml(H,3854,void 0,{layer:0,parentLayer:4});switch(A){case 1:var k=238714;break;case 2:k=238711;break;case 8:k=238709;break;case 7:k=238713;break;case 3:case 4:case 5:k=238712}k&&(A=_.$9(H,{veType:k}))&&_.f4(H,A)}};
YxL=function(A){switch(A.latencyType){case 0:_.hZ("consent_primitive_flow");_.OH("cpit",A.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.OH("cpist",A.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.OH("cprtif",A.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.OH("cprtli",A.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.OH("cprt",A.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.OH("cpdt",A.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.OH("cpjct",A.timestampEpochMillis,"consent_primitive_flow")}};
Qwi=function(A,H){var k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p;return _.e(function(M){switch(M.nextAddress){case 1:_.S_(M,2);(d=(k=_.L(A,PxB))==null?void 0:k.serializedConsentRequest)||(d=(W=_.L(A,Gki))==null?void 0:W.serializedConsentRequest);d&&(z=FvQ(_.$8(d)));if(z===void 0)return M.return();u=XSG(z);u.latencyCallback=YxL;H&&D33(u,function(){H.then(function(Z){Z.pauseVideo();(new Sxi).increment()})});
return((B=_.L(A,PxB))==null?void 0:B.consentAction)==="CONSENT_ACTION_PREWARM"||((h=_.L(A,Gki))==null?void 0:h.consentAction)==="CONSENT_ACTION_PREWARM"?M.yield(CxM(u),5):M.yield(KvQ(u),6);case 6:O=M.yieldResult;T=_.qJ(O,x4);if(T===1){if(((m=_.JY(O,aO3,1,x4))==null?void 0:_.RX(m,1))===1||((J=_.JY(O,aO3,1,x4))==null?void 0:_.RX(J,1))===2||((g=_.JY(O,aO3,1,x4))==null?void 0:_.RX(g,1))===3)_.L(A,Gki)?ek(_.$r("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
ek(_.$r("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));jw_((v=_.JY(O,aO3,1,x4))==null?void 0:_.RX(v,1),_.c4(O,csL,3,_.pC()))}else T===2?(((y=pSB(O))==null?void 0:_.RX(y,1))===5?_.L(A,Gki)?ek(_.$r("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):ek(_.$r("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((X=pSB(O))==null?void 0:_.RX(X,1))===1||((D=pSB(O))==null?void 0:_.RX(D,1))===4?
ek(_.$r("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((K=pSB(O))==null?void 0:_.RX(K,1))===7&&((N=z)==null?void 0:(U=_.Af(N,hi,4))==null?void 0:_.RX(U,4))!==1&&ek(_.$r("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),IOB((p=pSB(O))==null?void 0:_.RX(p,1))):ek(_.$r("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));M.jumpTo(5);break;case 5:_.QN(M,0);break;case 2:_.VA(M),ek(_.$r("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.EN(M)}})};
EzV=function(){if(!VPI.has("Worker")){VPI.set("Worker",!0);var A={api:"BROWSER_API_WEB_WORKER"};A.available="Worker"in window?!0:!1;_.yr("apiTest",A)}};
U3L=function(A){return typeof A==="undefined"?"-1":String(Math.ceil(A/1048576))};
MPB=function(A,H){lOM(new tPI(_.L(H,N3_).addToken,_.L(H,N3_).commonToken)).then(function(){_.Ed(A,"yt-invoke-instrument-manager-action-completed")},function(k){_.Ed(A,"yt-invoke-instrument-manager-action-error",k)})};
O_=function(){return _.pZ("HTML_DIR")==="rtl"};
nze=function(){var A,H;return(H=(A=window).matchMedia)==null?void 0:H.call(A,"(prefers-reduced-motion: reduce)").matches};
ZfB=function(A){var H=_.wj().resolve(_.fZ(_.uv));if(H&&H.isAnyTransitionEnabled){var k={};H.viewTransitionCoordinator.registerElement(A,(k.slide="miniplayer-page-transition",k["lockup-to-watch"]="miniplayer-page-transition",k["learning-journey"]="miniplayer-page-transition",k))}};
fO1=function(A,H,k){return{horizontalAlignment:A.x+k.width/2<H.width/2?"west":"east",verticalAlignment:A.y+k.height/2<H.height/2?"north":"south"}};
ozM=function(A,H,k,d,W){W=W===void 0?new _.Ft(0,0):W;A=wSI(A,H,k,d,!1);return new _.Ft(A.x+W.x,A.y+W.y)};
wSI=function(A,H,k,d,W){W=(W===void 0?0:W)?400:0;return new _.Ft(A==="west"?16+(O_()?W:0):k.width-d.width-16-(O_()?0:W),H==="north"?16:k.height-d.height-16)};
$3Q=function(A,H){var k=0;A&&(k+=76);H&&(k+=285);return k};
A9B=function(A){return _.yV(A)};
HnL=function(A){var H=1;A=A.split(":");for(var k=[];H>0&&A.length;)k.push(A.shift()),H--;A.length&&k.push(A.join(":"));return k};
sFM=function(A){var H=new _.As;return _.gd(H,11,A)};
kaV=function(A){var H={};A=A.getAllResponseHeaders().split("\r\n");for(var k=0;k<A.length;k++)if(!_.BV(A[k])){var d=HnL(A[k]),W=d[0];d=d[1];if(typeof d==="string"){d=d.trim();var z=H[W]||[];H[W]=z;z.push(d)}}return _.iK.map(H,function(u){return u.join(", ")})};
NlG=function(A,H){return A.JSC$10109_xhr_?A.JSC$10109_xhr_.getResponseHeader(H):null};
dp_=function(A,H){if(A.isDisposed())throw Error("Fa");A.ta.pw("n");var k=_.vS(A.ta,function(){return A.rZ8([H.sq,H.sLA,H.hTc,H.gl1])},"n");
A.ta.hTY(k.length);A.ta.b0();return k};
W7I=function(A,H,k){Array.isArray(k)||(k=[String(k)]);_.ybw(A.JSC$10346_queryData_,H,k);return A};
z81=function(A){var H=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.ZO(A);A.keyMap_.forEach(function(k,d){_.VW(H,d)||this.remove(d)},A)};
HfQ=function(){var A=_.vM.instance;_.e(function(H){return A.deferredInstallPrompt?H.yield(A.deferredInstallPrompt.prompt(),0):H.jumpTo(0)})};
qhB=function(A,H,k){if(_.Nv(A))_.t3(A,H,k);else for(A=_.mww(A);;){var d=A.next();if(d.done)break;H.call(k,d.value,void 0,A)}};
r9B=function(A,H){var k=[];qhB(H,function(d){try{var W=_.eL.prototype.getWrapper.call(this,d,!0)}catch(z){if(z=="Storage: Invalid value was encountered")return;throw z;}W===void 0?k.push(d):_.TEZ(W)&&k.push(d)},A);
return k};
lZV=function(A,H){r9B(A,H).forEach(function(k){_.eL.prototype.remove.call(this,k)},A)};
ur_=function(A){var H=_.gx;H._minimumZ=Math.max(H._minimumZ,A)};
Bti=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];e8B=function(A,H){_.CC(A.vm);A.vm=H};
xpB=function(A,H,k,d){A.setState(5);var W=!!A.d1r&&Bti.includes(_.te(A.d1r)||"");try{var z=new _.yh({program:H,globalName:k,fjM:{disable:!_.b("att_web_record_metrics")||!_.b("att_skip_metrics_for_cookieless_domains_ks")&&W,cu:"aGIf"}});z.sb6.then(function(){A.setState(6);d&&d(H)});
e8B(A,z)}catch(u){A.setState(7),u instanceof Error&&_.Pq(u)}};
inB=function(A,H,k,d,W,z){var u=u===void 0?"trayride":u;k?(A.setState(2),_.bi(_.i5(k),function(){if(window[u])xpB(A,d,u,W);else{A.setState(3);var B=_.a28(k),h=document.getElementById(B);h&&(_.HjA(B),h.parentNode.removeChild(h));_.Pq(new _.Ti("BL:ULB",k))}},z)):H?(z=_.$g("SCRIPT"),H instanceof _.BX?_.i1(z,H):z.textContent=H,z.nonce=_.u1(document),document.head.appendChild(z),document.head.removeChild(z),window[u]?xpB(A,d,u,W):(A.setState(4),_.Pq(new _.Ti("BL:ULBJ")))):_.Pq(new _.Ti("BL:ULV"))};
h8M=function(){this.state=1;this.vm=null;this.d1r=void 0};
_.q=h8M.prototype;_.q.initialize=function(A,H,k,d){this.d1r=d;if(A.program){var W;d=(W=A.interpreterUrl)!=null?W:null;if(A.interpreterSafeScript)W=_.y6V(A.interpreterSafeScript);else{var z;W=(z=A.interpreterScript)!=null?z:null}A.interpreterSafeUrl&&(d=_.Yh(A.interpreterSafeUrl).toString());inB(this,W,d,A.program,H,k)}else _.Pq(Error("tf"))};
_.q.isInitialized=function(){return!!this.vm};
_.q.getState=function(){return this.state};
_.q.isLoading=function(){return this.state===2};
_.q.invoke=function(A){A=A===void 0?{}:A;var H;this.vm?H=dp_(this.vm,{sq:A}):H=null;return H};
_.q.dispose=function(){e8B(this,null);this.setState(8)};
_.q.setState=function(A){this.state=A};
OnL=function(A,H){return A.vm.snapshot(H)};
R8_=function(A,H){var k=_.H5("botguard_async_snapshot_timeout_ms",3E3);H=H===void 0?{}:H;k=k===void 0?3E3:k;return A.vm?new Promise(function(d,W){var z=!1,u=_.IE.addJob(function(){z=!0;W(Error("uf"))},1,k);
A.vm?OnL(A,{sq:H}).then(function(B){_.IE.cancelJob(u);z||d(B)}).catch(function(B){_.IE.cancelJob(u);
z||W(B)}):(_.IE.cancelJob(u),d(null))}):Promise.resolve(null)};
TtV=["att/log"];_.AKL={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var mp_={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},J9e=function(A,H){return _.$B(A,{mode:"readwrite",enableRetries:!0},function(k){return _.OkN(k,H,"settingEntity")})},gwI=function(A,H,k){return _.$B(A,{mode:"readonly",
enableRetries:!0},function(d){return _.WPp(d,H,k)})},bn1=function(A){if(!A.storage)return!1;
a:{if(A.storage){try{var H=A.storage.get("TLPQtimestamp")}catch(k){}A=Number(H);if(!isNaN(A))break a}A=void 0}return A?Date.now()-A<864E5:!1},L7V=function(A){if(A.storage){try{var H=A.storage.get("TLPQindex")}catch(k){}A=Number(H);
if(!isNaN(A))return A}},RQ=function(A){var H=_.Yf();
return _.dAA(H,A,1)},vwM=function(A,H){A.queueProxy&&H.forEach(function(k){if(k.videoId&&k.trackingParams&&A.queueProxy instanceof _.L1){var d=_.hx();
A.queueProxy.attributionData.set(k.videoId,{enqueueingVe:_.db(k.trackingParams).getAsJson(),enqueueingCsn:d?d:void 0,clientEnqueueingTimeMs:Math.floor((0,_.w2)()).toString()})}})},y9L=function(A){var H=_.EGp(A);
H!=A.currentSnapState_&&(A.currentSnapState_=H,A.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},TY=function(A){this.JSC$13544_networkManager_=A;
this.partCallbacks_=[]};
TY.prototype.getCacheKeyForEndpoint=function(A){return _.kTf(A,!1)};
TY.prototype.onPartsCallback_=function(A){this.partCallbacks_.forEach(function(H){A&&H(A)})};
var ms=function(A,H,k){TY.call(this,A);this.player_=H;this.autoplayData_=k};
_.I(ms,TY);ms.prototype.getCacheKeyForEndpoint=function(A){return _.kTf(A,!!this.autoplayData_)};
ms.prototype.getTempData=function(A,H){H=H.timeBeforeNextVideo;A={itct:A.clickTrackingParams,lact:_.Z$(),pbis:H,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(A.autonav=1);return A};
ms.prototype.getXhrParams=function(A){return Object.assign({pbj:"prefetch"},A)};
ms.prototype.getParams=function(A){A={frags:A.fragmentsRequested.join(",")};_.b("kevlar_droppable_prefetchable_requests")&&(A.prefetch=1);return A};
var jFM=function(A){A.playerEvents_.forEach(function(H){A.player.removeEventListener(H.eventName,H.callback)});
A.playerEvents_.length=0},Iti=function(A,H,k){this.player=A;
this.JSC$13554_taskManager=H;this.prefetchDelay=k;this.completionResolver_=null;this.playerEvents_=[]};
Iti.prototype.start=function(){var A=this;this.completionResolver_=_.YE();_.Rw(this.completionResolver_.promise,function(){jFM(A);A.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Yhi=function(A,H,k){A.player.addEventListener(H,k);A.playerEvents_.push({eventName:H,callback:k})},PH_={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},GaI={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},F7i=function(A,H,k){Iti.call(this,A,H,k);this.cueId_="playbackTrigger-"+Math.random()};
_.I(F7i,Iti);
F7i.prototype.prepareTrigger=function(A){var H=this,k=this.player.getDuration(),d=this.player.getVideoData(),W=d.isLive&&d.hasProgressBarBoundaries;if(W&&d.progressBarEndPositionUtcTimeMillis){var z=d.progressBarEndPositionUtcTimeMillis/1E3;isNaN(z)||(k=z)}var u=0;this.prefetchDelay>=0?W?d.progressBarStartPositionUtcTimeMillis&&(d=d.progressBarStartPositionUtcTimeMillis/1E3,isNaN(d)||(u=d+this.prefetchDelay)):u=this.prefetchDelay:u=k+this.prefetchDelay;W?this.player.addUtcCueRange(this.cueId_,u,k):
this.player.addCueRange(this.cueId_,u,k);_.Rw(A.promise,function(){H.player.removeCueRange(H.cueId_)});
Yhi(this,"onCueRangeEnter",function(B){B==H.cueId_&&A.resolve(k-u)})};
var XFL=function(A,H){A.fragmentConfiguration_[H].requiredKeys.every(function(k){return!!A.prefetchedData_[k]})&&(A.validatedFragments_.push(H),H=A.missingFragments_.indexOf(H),H!==-1&&A.missingFragments_.splice(H,1))},Dpe=function(A){A.prefetchedFragments_.forEach(function(H){XFL(A,H)})},ShI=function(A,H,k){this.pageFragments_=A;
this.prefetchedFragments_=H;this.fragmentConfiguration_=GaI;this.prefetchedData_=k;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Dpe(this)},CHG=function(){},K7i=function(A){this.JSC$13568_playlistManager_=A};
_.I(K7i,CHG);K7i.prototype.getPrefetchEndpoint=function(){return this.JSC$13568_playlistManager_.getAutoplayEndpoint()};
var atL=function(A){this.autonavEndpoints_=A};
_.I(atL,CHG);atL.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var c9M=function(A,H,k,d,W){this.autonavEndpoints=A;this.foregroundTrigger=H;this.backgroundTrigger=k;this.pageType=d;this.isInPlaylist=W},pFV=function(A,H){if(A.webPrefetchData&&A.webPrefetchData.navigationEndpoints&&A.webPrefetchData.navigationEndpoints.length){A=A.webPrefetchData.navigationEndpoints;
var k=_.L(A[0],_.Yr);if(k.watchEndpointSupportedPrefetchConfig&&k.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var d=k.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;k=d.playbackRelativeSecondsPrefetchCondition;k=typeof k==="number"&&Math.abs(k)<H.videoDuration?k:void 0;d=d.countdownUiRelativeSecondsPrefetchCondition;d=typeof d!=="number"||_.b("prefetch_job_config_cleanup_ks")&&H.inPlaylist?void 0:d;if(typeof d==="number")return new c9M(A,H.makeUpNextTrigger(d),H.makePlaybackTrigger(d),
"watch",H.inPlaylist);if(typeof k==="number")return new c9M(A,H.makePlaybackTrigger(k),null,"watch",H.inPlaylist)}}},QFB=function(A){return A.prefetchJobConfig_.backgroundTrigger?_.ED(ZP_)()==0?A.prefetchJobConfig_.backgroundTrigger:A.prefetchJobConfig_.foregroundTrigger:A.prefetchJobConfig_.foregroundTrigger},VE1=function(A){_.xz(document,"visibilitychange",A.onVisibilityChange_,!1,A)},Ji=function(A){TY.call(this,A)};
_.I(Ji,TY);Ji.prototype.getCacheKeyForEndpoint=function(A){return TY.prototype.getCacheKeyForEndpoint.call(this,A)};
Ji.prototype.getTempData=function(){return{}};
Ji.prototype.getXhrParams=function(A){return A};
Ji.prototype.getParams=function(){return{}};
var Ewe=function(A,H,k){var d=A.prefetchDelay*1E3;if(Math.abs(d)>H)k.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var W=d,z=H-d;d<0&&(W=H+d,z=Math.abs(d));var u=A.JSC$13554_taskManager.addJob(function(){k.resolve(z/1E3)},10,W);
k.promise.thenCatch(function(){A.JSC$13554_taskManager.cancelJob(u)})}},UpR=function(A,H,k){Iti.call(this,A,H,k)};
_.I(UpR,Iti);UpR.prototype.prepareTrigger=function(A){var H=this;Yhi(this,"onAutonavCoundownStarted",function(k){Ewe(H,k,A)})};
var lte=function(A){A.pendingPrefetchJob_&&(A.pendingPrefetchJob_.cancel(),A.pendingPrefetchJob_=null)},tEQ=function(A,H,k){if(!A.triggeredTargets.has(H)){var d=_.zGj(A,H);
d.action=k;_.WIw(A,H,d)}},NtM=function(A){_.oAN();
_.$El("cpt")&&_.Pq(Error("mh"));_.k8.requestAnimationFrame(function(){_.k8.setTimeout(function(){_.OH("cpt");var H=_.mp("vpl"),k=_.mp("cpt");H&&k&&_.OH("ol",Math.max(H,k))})});
try{_.OH("fr_s"),A()}catch(H){_.I3(H)}_.k8.requestAnimationFrame(function(){_.OH("bcp")})},MEB={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},nwL=function(A,H){A.serviceEndpointHandlers.push(H)},Zni=function(A,H){H=A.pendingPages_.indexOf(H);
H>-1&&A.pendingPages_.splice(H,1)},ftR=function(A,H){var k=_.jQ0.indexOf(H);
k>-1&&_.jQ0.splice(k,1);A.targetPage_==H?(A.abort(),_.Y_w(A)):Zni(A,H)},wFR=function(A,H){A.reloadContinuationItemsCommandMatcher=H},ow_=function(A,H,k){H&&k&&(A.videos.forEach(function(d){d.videoId===H&&(d.itemId=k)}),A.recommendedVideos.forEach(function(d){d.videoId===H&&(d.itemId=k)}))},$pQ=function(A){this.onStepChangeCallback=function(){};
this.flowRenderer=A};
$pQ.prototype.getCurrentStep=function(){var A=this,H;return((H=this.flowRenderer.steps)!=null?H:[]).map(function(k){return _.L(k,_.ql)}).find(function(k){return k&&k.stepId===A.currentStepId})};
var A$i=function(A,H){var k=H.flowStateEntityKey,d=A.flowStates.get(k);if(d)return d;H=new $pQ(H);A.flowStates.set(k,H);return H},HiB=function(A,H){for(var k=_.r(A.flowStates.entries()),d=k.next();!d.done;d=k.next()){var W=_.r(d.value);
d=W.next().value;W=W.next().value;if(W.flowRenderer.targetId===H){A.flowStates.delete(d);break}}},sn_=function(A,H){A.onStepChangeCallback=H;
A.onStepChangeCallback(A.getCurrentStep())},ktI=function(A,H){var k;
return((k=A.flowRenderer.steps)!=null?k:[]).map(function(d){return _.L(d,_.ql)}).find(function(d){return d&&d.stepId===H})?(A.currentStepId=H,A.onStepChangeCallback(A.getCurrentStep()),!0):!1},drM=function(A,H,k,d){H={challenge:H};
k&&(H.webResponse=k);return _.yD(A.innertubeTransportService,H,_.X3(TtV),d)},WOM=function(A,H,k){if(!H.challenge)throw Error("ti");
if(H.botguardData&&H.botguardData.program){var d=new h8M;d.initialize(H.botguardData,function(){R8_(d,{atr_challenge:H.challenge}).then(function(W){if(!W)throw Error("ui");return drM(A,H.challenge,W,k)}).catch(function(W){_.Pq(W);
return drM(A,H.challenge,void 0,k)})},void 0)}else drM(A,H.challenge,void 0,k)},zv1=function(A,H,k){var d={};
H.ids&&(d.ids=[].concat(_.fV(H.ids)));H.engagementType&&(d.engagementType=H.engagementType);return _.yD(A.innertubeTransportService,d,_.X3(_.LdJ),k).then(function(W){if(!W)throw new _.Ti("GetAttestationChallenge returned falsy");WOM(A,W,k)}).thenCatch(function(W){_.I3(W)})},q4L=function(A,H,k){return new _.Wq(function(d,W){var z;
return _.e(function(u){if(u.nextAddress==1){var B=u.yield,h=H.engagementType,O=H.ids,T={};O=_.r(O!=null?O:[]);for(var m=O.next();!m.done;m=O.next())m=m.value,m.encryptedVideoId?T.encryptedVideoId=m.encryptedVideoId:m.externalChannelId?T.externalChannelId=m.externalChannelId:m.commentId?T.commentId=m.commentId:m.externalOwnerId?T.externalOwnerId=m.externalOwnerId:m.artistId?T.artistId=m.artistId:m.playlistId?T.playlistId=m.playlistId:m.externalPostId?T.externalPostId=m.externalPostId:m.shareId?T.shareId=
m.shareId:m.postPlayNonce&&(T.postPlayNonce=m.postPlayNonce);return B.call(u,oYM(h,T),2)}z=u.yieldResult;if(!z.challenge)return _.Pq(Error("vi")),zv1(A,H,k).then(d,W),u.return();B=z;h={challenge:B.challenge};h.webResponse=B.webResponse;h.engagementType=H.engagementType;h.ids=H.ids;_.yD(A.innertubeTransportService,h,_.X3(TtV),k).then(d,W);_.EN(u)})})},HX1=function(A,H){var k,d,W,z;
_.e(function(u){if(u.nextAddress==1){k=_.L(H,_.T1j);if(!(k&&k.listId&&A.response&&A.response.playingVideoId)||A.listId!==k.listId)return u.return();A.index===void 0&&(A.index=0);return u.yield(_.lBw(A.JSC$13407_playlistNetworkManager,k.listId,A.index,A.response.playingVideoId),2)}d=u.yieldResult;if(!d)return u.return();W=d.playlistId;z=d.playlistPanelRenderer;A.setPlaylistData(W,z,d.autoplayRenderer);_.EN(u)})},r$Q=function(A,H,k){var d=A.getParams(k),W=_.XGN(H,d),z=A.getTempData(H,k);
z.endpoint=JSON.stringify(H);_.b("enable_unknown_lact_fix_on_html5")&&(_.wj().resolve(_.A8),z.lact=_.Z$());var u={headers:{"X-YouTube-STS":_.pZ("STS"),"x-youtube-csoc":1}};_.DZ(W,z);return new _.Wq(function(B,h){var O=A.getXhrParams(d),T;_.b("kevlar_cache_on_ttl_player")&&(T=_.wj().resolve(_.eK));T&&_.Ege(T,H)?_.ngG(T,H,z,window.location.href).then(function(m){m?B(m):h()},h):_.bRw(A.JSC$13544_networkManager_,H,O,A.onPartsCallback_.bind(A),u).then(function(m){m?B(m):h()},h)})},udR=function(A,H){A.triggerPromise_=
H.start();
A.triggerPromise_.then(function(k){var d=A.prefetchEndpointProvider_.getPrefetchEndpoint();if(d){var W=PH_[A.prefetchJobConfig_.pageType].prefetchedFragments;A.prefetchRequestPromise_=r$Q(A.JSC$13580_networkPrefetchRequest_,d,{fragmentsRequested:W,timeBeforeNextVideo:k});A.prefetchResponseCacheKey_=A.JSC$13580_networkPrefetchRequest_.getCacheKeyForEndpoint(d);VE1(A);A.prefetchRequestPromise_.then(function(z){A.storePrefetchedDataCallback_(A.prefetchResponseCacheKey_,z);if(_.b("web_prefetch_preload_video")&&
W.length===1&&W[0]==="pl"&&z&&!z.playerAds&&!z.adPlacements){var u=_.L(d,_.A1),B=u!=null,h={raw_player_response:z,watch_endpoint:u};(z=_.wj().resolve(B?_.IBQ:_.VI))&&d&&z.then(function(O){B&&_.b("web_queue_preload_video")?(h.prefer_gapless=!0,O.queueNextVideo(h)):O.preloadVideoByPlayerVars(h)})}})}})},g7=function(A,H,k,d){this.prefetchEndpointProvider_=A;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=H;this.prefetchJobConfig_=k;this.JSC$13580_networkPrefetchRequest_=d;this.prefetchResponseCacheKey_=null};
g7.prototype.enqueue=function(){this.triggerPromise_||(udR(this,QFB(this)),_.Y3(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
g7.prototype.resolve=function(){this.cancel()};
g7.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.");VE1(this)};
g7.prototype.onVisibilityChange_=function(){var A=this;_.ED(ZP_)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){A.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||udR(this,QFB(this))};
var B6G=function(A,H,k,d,W){H&&(H==null?0:H.videoId)&&k&&k.entries&&_.b("kevlar_enable_shorts_prefetch_in_sequence")&&(lte(A),H=k.entries.map(function(z){var u;return(u=_.L(z.command,_.A1))==null?void 0:u.videoId}).indexOf(H.videoId),k=k.entries[H+1],k!=null&&k.command&&!_.L(k==null?void 0:k.command,_.m1)&&(d=new c9M([k.command],new F7i(d,_.IE,1),null,"shorts",!1),A.pendingPrefetchJob_=new g7(new atL(d.autonavEndpoints),function(){return!1},d,new Ji(W)),A.pendingPrefetchJob_.enqueue()))},evL=function(A,
H,k,d,W,z){var u=_.aD.getInstance();
if(!_.b("block_all_player_prefetch_requests")){lte(A);var B=!!k.getPlaylistId(),h=k.getVideoData().isLive&&k.getVideoData().hasProgressBarBoundaries;if((u.getState()==2||B||h)&&(!k.getVideoData().isLive||h)){u={inPlaylist:B,videoDuration:k.getDuration(),makeUpNextTrigger:function(T){return new UpR(k,_.IE,T)},
makePlaybackTrigger:function(T){return new F7i(k,_.IE,T)}};
var O=pFV(H,u);O&&(A.pendingPrefetchJob_=new g7(O.isInPlaylist?new K7i(W):new atL(O.autonavEndpoints),function(T,m){m=new ShI(PH_[O.pageType].pageFragments,PH_[O.pageType].prefetchedFragments,m);return _.frp(m)?(A.prefetchCache_.set(T,m),!0):!1},O,new ms(d,k,z,W)),A.pendingPrefetchJob_.enqueue())}}},xrL=function(){var A=_.FY();
A.signals.parkOrScheduleJob(function(){var H=A.storage;if(H.storage)if(bn1(H)){var k=H.getPlaylistId();H=L7V(H);k=!!k&&H!==void 0}else H.clear(),k=!1;else k=!1;if(k){k=A.JSC$13407_pageManager.isOnWatch();a:{var d=A.storage;if(d.storage&&bn1(d)&&(H=d.getPlaylistId(),d=L7V(d),H&&d!==void 0)){k={recoverPlaylistCommand:{listId:H,index:d,openMiniplayer:!k,openListPanel:k,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}k=void 0}k&&_.h$(A.JSC$13407_actionRouter,[k],null)}},0,"ma")},iiQ=function(A,H,k,
d,W,z){var u=_.t8(7111);
_.n4(A.JSC$18950_screenManager,u,z?_.db(z):void 0);_.f4(A.JSC$18950_screenManager,u,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:d,offlineId:H,offlineabilityFormatType:k,isDefaultFormatType:W==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:W}})},hvL=function(A,H,k,d,W){var z,u,B,h,O;
return _.e(function(T){if(T.nextAddress==1)return T.yield(A.JSC$18950_playerApiPromise,2);z=T.yieldResult;iiQ(A,H,k,"OFFLINE_OBJECT_TYPE_PLAYLIST",d,W);if(B=_.x8i[A.entityTypeMap.listEntityType])O={},u=(O[B]={maximumDownloadQuality:(h=k)!=null?h:void 0},O);return T.yield(z.queueOfflineAction(H,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",u),0)})},OiQ=function(A,H){var k,d,W,z;
return _.e(function(u){if(u.nextAddress==1)return u.yield(A.JSC$18950_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3){k=u.yieldResult;if(!k)return _.Pq(new _.Ti("PES is undefined")),u.return();d=_.Nw(H,"downloadStatusEntity");return u.yield(gwI(k,d,"downloadStatusEntity"),3)}W=u.yieldResult;return u.return((z=W)==null?void 0:z.downloadState)})},RvR=function(A,H,k,d,W){var z,u,B,h,O,T;
return _.e(function(m){switch(m.nextAddress){case 1:return m.yield(A.JSC$18950_playerApiPromise,2);case 2:z=m.yieldResult;iiQ(A,H,k,"OFFLINE_OBJECT_TYPE_VIDEO",d,W);if(B=_.x8i[A.entityTypeMap.singleEntityType])O={},u=(O[B]={maximumDownloadQuality:(h=k)!=null?h:void 0},O);return m.yield(OiQ(A,H),3);case 3:T=m.yieldResult;if(T!=="DOWNLOAD_STATE_USER_DELETED"){m.jumpTo(4);break}return m.yield(A.deleteVideo(H),4);case 4:return m.yield(z.queueOfflineAction(H,A.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
u),0)}})},T63=function(A,H,k,d,W){return _.e(function(z){return z.nextAddress==1?z.yield(A.deleteVideo(H,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):z.yield(RvR(A,H,k,d,W),0)})},mr_=function(A,H,k){var d,W;
return _.e(function(z){if(z.nextAddress==1)return z.yield(A.JSC$18950_playerApiPromise,2);d=z.yieldResult;W=_.Nw(H,"mainVideoDownloadStateEntity");return z.yield(d.updateDownloadState(W,k),0)})},wJQ=function(A){var H=_.wj().resolve(_.hJ);
return _.e(function(k){if(k.nextAddress==1)return H.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&H.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?k.jumpTo(2):k.yield(H.resumeVideoDownload(A),2);if(k.nextAddress!=4)return k.yield(mr_(H,A,H.previousDownloadStateForVideo[A]),4);delete H.previousDownloadStateForVideo[A];_.EN(k)})},ZO3=function(A,H){var k;
return _.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$18950_playerApiPromise,2);k=d.yieldResult;return d.yield(k.queueOfflineAction(H,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},NSM=function(){var A=_.wj().resolve(_.hJ),H,k;
return _.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$18950_playerApiPromise,2);if(d.nextAddress!=3)return H=d.yieldResult,k={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},d.yield(H.queueOfflineAction("!*$_ALL_ENTITIES_!*$",A.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",k),3);var W=A.JSC$18950_commandHandler,z=W.resolveCommand,u=_.$r("DELETING_ALL",void 0,"Downloads are being deleted");z.call(W,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.K8(u)}},
popupType:"TOAST"}});_.EN(d)})},J$I=function(A,H){var k,d,W,z,u,B;
return _.e(function(h){if(h.nextAddress==1)return h.yield(A.JSC$18950_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3)return k=h.yieldResult,k?h.yield(gwI(k,_.rl,"downloadsPageViewConfigurationEntity"),3):(_.Pq(new _.Ti("PES is undefined")),h.return());W=(d=h.yieldResult)!=null?d:{};B=(u=(z=W)==null?void 0:z.downloadsUpsellBannerVisibility)!=null?u:{};return B.visibleWithConnection?h.yield(H.refreshAllStaleEntities(0),0):h.jumpTo(0)})},gsB=function(A){var H,k;
return _.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$18950_prefStorage,2);H=d.yieldResult;return d.return((k=H)==null?void 0:k.get("sdois"))})},biI=function(A){var H,k,d,W,z,u;
return _.e(function(B){if(B.nextAddress==1)return B.yield(A.JSC$18950_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3){H=B.yieldResult;if(!H)return _.Pq(new _.Ti("PES is undefined")),B.return();k=_.Nw("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return B.yield(gwI(H,k,"settingEntity"),3)}d=B.yieldResult;return B.return((u=(W=d)==null?void 0:(z=W.settingOptionValue)==null?void 0:z.boolValue)!=null?u:!1)})},LOI=function(A,H){var k,d,W,z;
return _.e(function(u){switch(u.nextAddress){case 1:return((k=H)==null?void 0:k.formatType)===void 0?u.return():u.yield(A.JSC$18950_prefStorage,2);case 2:d=u.yieldResult;if(d===void 0)return u.return();if(((W=H)==null?void 0:W.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return u.yield(d.set("lmqf",H.formatType),8);if(((z=H)==null?void 0:z.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){u.jumpTo(0);break}return u.yield(d.set("lmqf",H.formatType),6);case 6:return u.yield(d.set("lmqflst",
Math.floor((0,_.w2)())),0);case 8:return u.yield(d.remove("lmqflst"),0)}})},vs_=function(A){var H,k;
return _.e(function(d){switch(d.nextAddress){case 1:return d.yield(A.JSC$18950_prefStorage,2);case 2:H=d.yieldResult;if(!H){d.jumpTo(3);break}return d.yield(H.get("lmqflst"),4);case 4:if(k=d.yieldResult,k!==void 0)return d.return(k);case 3:return d.return(0)}})},y$_=function(A){var H,k,d;
return _.e(function(W){return W.nextAddress==1?W.yield(A.JSC$18950_prefStorage,2):W.nextAddress!=3?(H=W.yieldResult,W.yield((k=H)==null?void 0:k.get("ldtmes"),3)):W.return((d=W.yieldResult)!=null?d:!1)})},hk1=function(){var A=_.wj().resolve(_.hJ),H;
return _.e(function(k){if(k.nextAddress==1)return k.yield(A.JSC$18950_prefStorage,2);H=k.yieldResult;return H===void 0?k.return():k.yield(H.set("ldtmes",!0),0)})},jnL=function(A){var H,k;
return _.e(function(d){switch(d.nextAddress){case 1:return d.yield(A.JSC$18950_prefStorage,2);case 2:H=d.yieldResult;if(H===void 0){d.jumpTo(3);break}return d.yield(H.get("lmqf"),4);case 4:if(k=d.yieldResult,k!==void 0)return d.return(k);case 3:return d.return("SD")}})},WvL=function(A,H,k){var d,W,z,u,B,h,O,T;
_.e(function(m){switch(m.nextAddress){case 1:return m.yield(LOI(A,(d=H)==null?void 0:d.actionParams),2);case 2:W=H.playlistId;if(!W)return m.return();if(H.action==="ACTION_ADD")return((u=H.actionParams)==null?0:u.formatType)?m.yield(hvL(A,W,H.actionParams.formatType,(T=H.actionParams)==null?void 0:T.settingsAction,k),0):m.yield(A.offlineWebClientEligibility,14);if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var J=A.JSC$18950_commandHandler,g=J.resolveCommand,v=_.pZ("INNERTUBE_CLIENT_NAME");var y=v===
"WEB_REMIX"?_.$r("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.$r("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var X=v==="WEB_REMIX"?[_.$r("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];v=v==="WEB_REMIX"?_.$r("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.$r("DELETE",void 0,"Delete");var D=_.$r("CANCEL",void 0,"Cancel");y=$oL(y,X,v,D,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:W});g.call(J,{openPopupAction:y});return m.return()}if(H.action===
"ACTION_REMOVE")return m.yield(ZO3(A,W),0);if(H.action!=="ACTION_SYNC"){m.jumpTo(0);break}return m.yield(A.JSC$18950_playerApiPromise,9);case 9:return z=m.yieldResult,m.yield(z.queueOfflineAction(W,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return B=m.yieldResult,m.yield(jnL(A),15);case 15:return h=m.yieldResult,m.yield(vs_(A),16);case 16:O=m.yieldResult,H.onAddCommand&&A.JSC$18950_commandHandler.resolveCommand(H.onAddCommand,{form:{preferredFormatType:h,
offlineWebClientEligibility:B,lastOfflineQualitySettingsSavedMs:O.toString()}}),m.jumpTo(0)}})},kkB=function(A,H,k){var d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z;
_.e(function(WV){switch(WV.nextAddress){case 1:return WV.yield(LOI(A,(d=H)==null?void 0:d.actionParams),2);case 2:W=H.videoId;if(!W)return WV.return();if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var hA=A.JSC$18950_commandHandler,qv=hA.resolveCommand,eN=_.pZ("INNERTUBE_CLIENT_NAME");var mr=eN==="WEB_REMIX"?_.$r("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.$r("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Cl=eN==="WEB_REMIX"?[_.$r("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];eN=eN==="WEB_REMIX"?_.$r("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.$r("DELETE",void 0,"Delete");var pl=_.$r("CANCEL",void 0,"Cancel");mr=$oL(mr,Cl,eN,pl,{signal:"DELETE_DOWNLOAD",targetId:W});qv.call(hA,{openPopupAction:mr});return WV.return()}if(H.action==="ACTION_ADD")return((N=H.actionParams)==null?0:N.formatType)?WV.yield(RvR(A,W,H.actionParams.formatType,(Z=H.actionParams)==null?void 0:Z.settingsAction,k),0):WV.yield(A.offlineWebClientEligibility,
29);if(H.action==="ACTION_RETRY")return WV.yield(jnL(A),25);if(H.action==="ACTION_PAUSE")return WV.yield(A.pauseVideoDownload(W),0);if(H.action==="ACTION_RESUME")return WV.yield(A.resumeVideoDownload(W),0);if(H.action==="ACTION_REMOVE")return WV.yield(OiQ(A,W),19);if(!H.onAddCommand||!_.L(H.onAddCommand,_.FU)){WV.jumpTo(0);break}z=_.L(H.onAddCommand,_.FU);B=(u=z)==null?void 0:u.isCrossDeviceDownload;if(!B){WV.jumpTo(0);break}h="HD";return WV.yield(vs_(A),16);case 16:return O=WV.yieldResult,WV.yield(y$_(A),
17);case 17:return T=WV.yieldResult,WV.yield(A.offlineWebClientEligibility,18);case 18:m=WV.yieldResult;A.JSC$18950_commandHandler.resolveCommand(H.onAddCommand,{form:{preferredFormatType:h,lastOfflineQualitySettingsSavedMs:O.toString(),downloadToMobileEduShown:T,offlineWebClientEligibility:m}});WV.jumpTo(0);break;case 19:return J=WV.yieldResult,A.previousDownloadStateForVideo[W]=(g=J)!=null?g:"DOWNLOAD_STATE_UNKNOWN",WV.yield(mr_(A,W,"DOWNLOAD_STATE_USER_DELETED"),20);case 20:if(A.previousDownloadStateForVideo[W]!==
"DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&A.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){WV.jumpTo(21);break}return WV.yield(A.pauseVideoDownload(W),21);case 21:hA=_.$r("DELETED_VIDEO",void 0,"Video deleted from downloads.");qv=_.$r("UNDO_ACTION",void 0,"Undo");mr=_.$r("CLOSE",void 0,"Close");v={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.K8(hA),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.K8(qv),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",targetId:W}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:hA+" "+qv}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:W}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:mr}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},
popupType:"TOAST"}};A.JSC$18950_commandHandler.resolveCommand(v);WV.jumpTo(0);break;case 25:y=WV.yieldResult;y==="UNKNOWN_FORMAT_TYPE"&&(y="SD");X="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((D=H.actionParams)==null?0:D.formatType)y=H.actionParams.formatType,X=(K=H.actionParams)==null?void 0:K.settingsAction;return WV.yield(T63(A,W,y,X,k),26);case 26:return WV.return();case 29:return U=WV.yieldResult,WV.yield(jnL(A),30);case 30:return p=WV.yieldResult,WV.yield(vs_(A),31);case 31:M=WV.yieldResult,
H.onAddCommand&&A.JSC$18950_commandHandler.resolveCommand(H.onAddCommand,{form:{preferredFormatType:p,offlineWebClientEligibility:U,lastOfflineQualitySettingsSavedMs:M.toString()}}),WV.jumpTo(0)}})},IP1=function(A,H){var k,d,W,z,u,B,h;
return _.e(function(O){if(O.nextAddress==1)return O.yield(A.JSC$18950_persistentStorePromiseAccessor(),2);k=O.yieldResult;if(!k)return _.Pq(new _.Ti("PES is undefined")),O.return();if((d=H)==null||!d.settingItemId)return O.return();W=H;z=W.settingItemId;u=W.boolValue;B=_.Nw(z,"settingEntity");h={key:B,settingOptionValue:{boolValue:u}};return O.yield(J9e(k,h),0)})},Y4_=function(A,H){var k,d,W,z,u,B,h;
return _.e(function(O){switch(O.nextAddress){case 1:return O.yield(A.JSC$18950_prefStorage,2);case 2:return k=O.yieldResult,d=_.sH(),O.yield(A.JSC$18950_persistentStorePromiseAccessor(),3);case 3:return W=O.yieldResult,k?W?O.yield(k.get("sdois"),4):(_.Pq(new _.Ti("PES is undefined")),O.return()):(_.Pq(new _.Ti("prefStorage is undefined")),O.return());case 4:z=O.yieldResult;B=(u=H)==null?void 0:u.boolValue;B===void 0||_.b("kevlar_set_sd_enabled_flag_killswitch")||_.kB(0,197,!0);z===void 0&&B===void 0&&
(B=!1);if(B===void 0){O.jumpTo(0);break}return O.yield(k.set("sdois",B),6);case 6:return _.b("kevlar_set_sd_enabled_flag_killswitch")||(_.kB(0,196,B),d.save()),h={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:B},O.yield(IP1(A,h),0)}})},PGQ=function(A,H,k){var d,W,z,u,B;
return _.e(function(h){switch(h.nextAddress){case 1:return h.yield(gsB(A),2);case 2:return d=h.yieldResult,h.yield(Y4_(A,k),3);case 3:return h.yield(gsB(A),4);case 4:return W=h.yieldResult,z=W!==d,h.yield(biI(A),5);case 5:u=h.yieldResult&&!_.b("kevlar_modern_downloads_page");if((B=!W&&!u)||z)return h.yield(H.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);h.jumpTo(0)}})},$BV=function(){var A=_.wj().resolve(_.hJ),
H;
_.e(function(k){switch(k.nextAddress){case 1:return k.yield(A.JSC$18950_playerApiPromise,2);case 2:H=k.yieldResult;if(!_.b("kevlar_force_refresh_smart_downloads")){k.jumpTo(3);break}return k.yield(H.refreshAllStaleEntities(0),4);case 4:return k.return();case 3:return k.yield(H.refreshAllStaleEntities(),5);case 5:return k.yield(PGQ(A,H),6);case 6:if(_.b("enable_download_pep_for_premium_countries_web"))return k.yield(J$I(A,H),0);k.jumpTo(0)}})},qxG=function(A,H){var k,d;
_.e(function(W){switch(W.nextAddress){case 1:return W.yield(A.JSC$18950_playerApiPromise,2);case 2:k=W.yieldResult;switch((d=H)==null?void 0:d.settingItemId){case "SMART_DOWNLOADS_ENABLED":return W.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return W.jumpTo(4)}W.jumpTo(0);break;case 3:return W.yield(PGQ(A,k,H),6);case 6:W.jumpTo(0);break;case 4:return W.yield(IP1(A,H),7);case 7:W.jumpTo(0)}})},Gti=function(A,H){var k,d,W;
return _.e(function(z){if(z.nextAddress==1)return z.yield(A.JSC$18950_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3){k=z.yieldResult;if(!k)return _.Pq(new _.Ti("PES is undefined")),z.return(!1);if(!H)return z.return(!1);d=_.Nw(H,"mainVideoEntity");return z.yield(gwI(k,d,"mainVideoEntity"),3)}W=z.yieldResult;return z.return(W!==void 0)})},ukG=function(A){var H=_.wj().resolve(_.hJ),k,d,W,z,u,B,h,O,T,m,J;
_.e(function(g){switch(g.nextAddress){case 1:return g.yield(H.JSC$18950_playerApiPromise,2);case 2:k=g.yieldResult;W=(d=A)==null?void 0:d.actions;if(!W)return g.return();z=_.r(W);u=z.next();case 3:if(u.done){g.jumpTo(0);break}B=u.value;O=h=void 0;if(!(((h=B)==null?0:h.entityKey)&&((O=B)==null?0:O.actionType))){g.jumpTo(4);break}T=_.Vm(B.entityKey);m=T.entityId;J=T.entityType;return g.yield(k.queueOfflineAction(m,J,B.actionType),4);case 4:u=z.next(),g.jumpTo(3)}})},FOL=function(A,H){var k,d,W,z,u;
return _.e(function(B){if(B.nextAddress==1)return B.yield(A.JSC$18950_prefStorage,2);if(B.nextAddress!=3)return(k=B.yieldResult)?B.yield(k.get("psi"),3):B.return();d=B.yieldResult;u={isPaused:H,lastSyncTimestamp:(z=(W=d)==null?void 0:W.lastSyncTimestamp)!=null?z:"0"};return B.yield(k.set("psi",u),0)})},x3e=function(A){var H=_.wj().resolve(_.hJ),k,d,W,z,u,B,h,O;
return _.e(function(T){switch(T.nextAddress){case 1:return T.yield(H.JSC$18950_playerApiPromise,2);case 2:k=T.yieldResult;W=((d=A)==null?void 0:d.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((B=A)==null?void 0:B.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 T.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return T.jumpTo(4)}T.jumpTo(5);break;case 3:return T.yield(FOL(H,W),6);case 6:T.jumpTo(5);break;case 4:return T.yield(Gti(H,(h=A)==null?void 0:h.videoId),7);case 7:T.yieldResult&&(z=(O=A)==null?void 0:O.videoId,u="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");T.jumpTo(5);break;case 5:if(z&&u)return T.yield(k.queueOfflineAction(z,"videoPlaybackPositionEntity",u),0);T.jumpTo(0)}})},Xoe=function(A,H){_.wj().resolve(_.hz).persistentPanelContainerMap.set(H,A)},
DrR=function(A,H,k){A.hasRegisteredHoverCallbacks=!0;
A.hoverEnterCallback=H!=null?H:void 0;A.hoverLeaveCallback=k!=null?k:void 0},S4_=function(){return _.wj().resolve(_.dz).dismissedIndices},CGe=function(){var A=_.wj().resolve(_.dz);
_.p8C(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(A.isFullscreenEnabled()?_.CH(document.documentElement):_.wYV(document.documentElement))},KOR=function(A,H){var k;
H!==1||((k=A.currentPersistentToast)==null?0:k.isOpened())?_.dPQ(A):A.currentPersistentToast=void 0},aPV=function(A,H){var k;
return(k=A.transitionTasksMap.get(H))!=null?k:[]},c$L=function(A,H){var k=[];
A.elementTasksMap.forEach(function(d){(d=d.get(H))&&k.push(d)});
return k},poi=function(A,H,k,d,W){W=W===void 0?{}:W;
var z=H.defaultViewTransitionOptions;return Object.assign({},z,W,{beforeTransition:function(){d.forEach(function(O){O.beforeTransition()});
var u;(u=z.beforeTransition)==null||u.call(z);var B,h;(h=(B=W).beforeTransition)==null||h.call(B);k.forEach(function(O){O.beforeTransition()})},
afterTransition:function(){d.forEach(function(O){O.afterTransition()});
var u;(u=z.afterTransition)==null||u.call(z);var B,h;(h=(B=W).afterTransition)==null||h.call(B);k.forEach(function(O){O.afterTransition()})},
ignoredErrors:A.config.ignoredErrors})},QnG=function(A,H,k){A.transitionTasksMap.has(H)?A.transitionTasksMap.get(H).push(k):(A=new _.Ti("Transition task registered for unknown transition type",H),_.I3(A))},VJi=function(A,H,k){if(A.transitionTasksMap.has(H)){var d=A.transitionTasksMap.get(H).filter(function(W){return W!==k});
A.transitionTasksMap.set(H,d)}},EsR=function(A,H){var k=aPV(A,H);
k=_.r(k);for(var d=k.next();!d.done;d=k.next())d=d.value,d.runOnce&&VJi(A,H,d);A.elementTasksMap.forEach(function(W,z){W.forEach(function(u,B){u.runOnce&&H===B&&(W.delete(B),W.size===0&&A.elementTasksMap.delete(z))})})},UrB=function(A,H,k){var d,W,z,u,B,h,O,T,m;
_.e(function(J){if(J.nextAddress==1){if(A.config.disableAllTransitions)return J.return(H());if((d=k)==null||!d.transitionType)return J.return(H2L(H,Object.assign({},(W=k)==null?void 0:W.viewTransitionOptions,{ignoredErrors:A.config.ignoredErrors})));z=k;u=z.transitionType;B=z.viewTransitionOptions;h=A.config.transitionConfigs.get(u);if(!h)return J.return(H());O=aPV(A,u);T=c$L(A,u);m=H2L(H,poi(A,h,O,T,B));return J.yield(m,2)}EsR(A,u);_.EN(J)})},lP_=function(A,H){var k,d,W,z,u;
_.e(function(B){if(!H.length)return B.return([]);k=[];d=_.r(H);for(W=d.next();!W.done;W=d.next())z=W.value,(u=A.resolveIcon(z))&&!A.iconCache[u.url]&&k.push(_.bZB(A,u).then(function(){}).catch(function(){}));
return B.return(Promise.all(k))})},tJB=function(A,H){var k=[];
H=(new Set(H)).values();H=_.r(H);for(var d=H.next();!d.done;d=H.next()){d=d.value;for(var W=_.r(Object.values(MEB)),z=W.next();!z.done;z=W.next())k.push({iconName:d,iconStyle:z.value})}lP_(A.iconManager,k)},N6B=function(A,H,k){var d=k!=null?k:A.iconsToFetch;
d!=null&&d.length?H!==void 0&&H>=0?_.ma(_.IE,function(){tJB(A,d)},H):tJB(A,d):Promise.resolve()},MJi=function(){var A,H,k,d;
return _.e(function(W){if(W.nextAddress==1)return A=navigator,(H=A.storage)!=null&&H.persisted?W.yield((k=A.storage)==null?void 0:k.persisted(),2):W.return("PERSISTED_STATE_NOT_SUPPORTED");d=W.yieldResult;return W.return(d?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},nse=function(){var A,H,k,d;
return _.e(function(W){if(W.nextAddress==1)return A=navigator,(H=A.storage)!=null&&H.persist?W.yield((k=A.storage)==null?void 0:k.persist(),2):W.return("PERSISTED_STATE_NOT_SUPPORTED");d=W.yieldResult;return W.return(d?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},ZiQ=function(){var A,H;
return _.e(function(k){switch(k.nextAddress){case 1:return A="PERSISTED_STATE_NOT_SUPPORTED",_.S_(k,2),k.yield(MJi(),4);case 4:A=k.yieldResult;if(A!=="PERSISTED_STATE_NOT_GRANTED"){k.jumpTo(5);break}return k.yield(nse(),6);case 6:A=k.yieldResult;case 5:_.QN(k,3);break;case 2:H=_.VA(k),H instanceof Error&&_.I3(H);case 3:return _.yr("persistentStorageStateChecked",{persistedState:A}),k.return(A)}})},fPM=function(A,H,k){if(A.isAnyTransitionEnabled){var d={beforeTransition:function(){k(!0);
H.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){H.style.viewTransitionName&&(H.style.viewTransitionName="",k(!1))}};
QnG(A.viewTransitionCoordinator,"slide",d);QnG(A.viewTransitionCoordinator,"lockup-to-watch",d);QnG(A.viewTransitionCoordinator,"watch-next-appears",d);QnG(A.viewTransitionCoordinator,"learning-journey",d)}},woL=function(A,H,k,d){if(A.isLockupToWatchTransitionEnabled){if(H){var W={};
W=(W["watch-next-appears"]="player-watch-next-loaded",W);W["lockup-to-watch"]=A.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";A.viewTransitionCoordinator.registerElement(H,W)}k&&(H={},A.viewTransitionCoordinator.registerElement(k,(H["lockup-to-watch"]="below-lockup-to-watch",H["watch-next-appears"]="below-watch-next-loaded",H)));d&&(k={},A.viewTransitionCoordinator.registerElement(d,(k["watch-next-appears"]="secondary-watch-next-loaded",
k)))}},osV=function(A,H){A.isBrowseTransitionEnabled?UrB(A.viewTransitionCoordinator,H,{transitionType:"slide"}):(H(),Promise.resolve())},$rM=function(A,H){A.isLockupToWatchTransitionEnabled?UrB(A.viewTransitionCoordinator,H,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){A.registeredLockupThumbnail=void 0;A.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(H(),Promise.resolve())},Ag_=function(A,H){A.isLockupToWatchTransitionEnabled?UrB(A.viewTransitionCoordinator,H,{transitionType:"watch-next-appears"}):(H(),Promise.resolve())},HoB=function(A,H){A.isLearningJourneyTransitionEnabled?UrB(A.viewTransitionCoordinator,H,{transitionType:"learning-journey"}):(H(),Promise.resolve())},sSB=function(A,H,k){if(A.isInitialized()){var d=
Vq(k),W=d==="watch";
d=d==="shorts";var z=Vq(H)==="watch";if(W)z||(A.backgroundPageData=H),A.watchPipMode&&z||A.deactivate(k.endpoint);else if(d){if(Vq(H)!=="shorts"){var u;(u=A.getPlayerElement())==null||u.pause()}}else z&&!A.watchPipMode&&(s1L(H,k,!0)?(A.watchWhileMode&&_.vJ_(A,!1),_.T__(A,H)):A.isMiniplayerActive()&&A.watchWhileMode&&A.deactivate());z&&_.j3L(A);A.shortsPipMode&&!d&&(window.focus(),A.deactivate());if(A.pictureInPictureEnabled())if(d&&A.shortsPipEnabled||W&&A.JSC$19368_watchPipEnabled&&(!A.watchPipManualOnlyEnabled||
_.NpW()&&_.v8V("Chromium")>=142))_.nnQ(A.handleMediaSessionPipActivation);else if((!A.isMiniplayerActive()||A.watchPipManualOnlyEnabled)&&(A.shortsPipEnabled||A.JSC$19368_watchPipEnabled)&&_.NpW()){A=_.MzA().mediaSession;try{A.setActionHandler("enterpictureinpicture",null)}catch(B){}}}},kL_=function(A,H){var k,d;
_.e(function(W){if(W.nextAddress==1){if(!A||!A.navigationEndpoint)return W.return();_.Hi().lockupActivation=!0;var z;H?z=_.Yu(_.$r("QUEUE",void 0,"Queue")):z=A.longBylineText;d=(k=z)&&A.title?{miniplayerTitle:A.title,miniplayerSubtitle:k,playlistData:null}:void 0;return W.yield(_.Y$p(_.wj().resolve(_.L6),A.navigationEndpoint,!0,d),2)}_.Hi().userActivation=!0;_.EN(W)})},ocI=function(A,H){var k,d,W,z,u,B;
_.e(function(h){if(h.nextAddress==1){k=_.L(H,_.Rd0);if(!k||!k.listId)return h.return();A.index=k.index||A.index||0;d=A.response&&A.response.playingVideoId||void 0;return h.yield(_.lBw(A.JSC$13407_playlistNetworkManager,k.listId,A.index,d),2)}W=h.yieldResult;if(!W)return h.return();z=W.playlistId;u=W.playlistPanelRenderer;!A.queueProxy&&z&&u&&z.startsWith("TLPQ")&&(A.queueProxy=new _.L1(A.JSC$13407_playlistNetworkManager,z,A.setPlaylistData.bind(A),A.clearQueue.bind(A),_.nv8(u),A.storage));if(k.openMiniplayer&&
(B=_.ZKV(u))&&!A.JSC$13407_pageManager.isOnWatch()){var O=B,T=k.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";A.isMiniplayerActive()||kL_(O,T)}A.setPlaylistData(z,u,W.autoplayRenderer);_.EN(h)})},Z6_=function(A,H){var k=_.FY();
k.index===void 0&&(k.index=0);k.temporaryItems.push.apply(k.temporaryItems,_.fV(A));if((H.videoId||H.videoIds)&&k.index!==void 0&&H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!k.queueProxy){var d=[];if(k.response){var W=_.wj().resolve(_.L6).isMiniplayerActive();if(k.response.playlistPanelRenderer&&k.response.playlistId&&!k.response.playlistId.startsWith("TLPQ")){if(k.JSC$13407_pageManager.isOnWatch()||W)d=_.nv8(k.response.playlistPanelRenderer)}else k.response.playingVideoId&&!H.openMiniplayer?
d.push(k.response.playingVideoId):W&&k.response.playingVideoId&&H.openMiniplayer&&d.push(k.response.playingVideoId)}k.queueProxy=new _.L1(k.JSC$13407_playlistNetworkManager,"",k.setPlaylistData.bind(k),k.clearQueue.bind(k),d,k.storage);k.queueProxy.JSC$13353_setCurrentIndex(k.index)}k.queueProxy.addVideos(H.videoIds||[H.videoId],H)}vwM(k,A);k.response&&_.XY(k,_.D4(k,k.response.autoplayRenderer));k.JSC$13407_pageManager.isOnWatch()||(A=A[0],H=H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",k.isMiniplayerActive()||
kL_(A,H))},d2G=function(A,H){var k;
return _.e(function(d){return d.nextAddress==1?H&&A.lastWelcomeContinuationSent!==H?_.Q33(A)?d.yield(A.panelController.isVisible("PAai_companion"),3):d.jumpTo(2):d.return(!1):d.nextAddress==2||(k=d.yieldResult,k)?d.return(!0):d.return(!1)})},W6L=function(A){var H,k,d,W,z;
return _.e(function(u){if(u.nextAddress==1){if(!A.welcomeOptions)return u.return();H=A.welcomeOptions;k=H.command;d=H.setPending;if(k){var B;var h=(B=_.L(k,_.Tc))==null?void 0:B.token}else h=void 0;W=h;return u.yield(d2G(A,W),2)}if(!u.yieldResult)return u.return();A.lastWelcomeContinuationSent=W;(z=d)==null||z(!0);h="youchat-"+Date.now();B=(B=_.MN())?String(Math.floor(B.getCurrentTime())*1E3):void 0;_.OR(k,{form:{formData:_.CR({clientMessageId:h,playerOffsetMs:B,pageContext:_.a81(A,A.pageSubtype)})}});
_.EN(u)})},zdI=function(A,H){_.e(function(k){A.welcomeOptions=H;
return k.yield(W6L(A),0)})},qu_=function(A){var H=_.dL(A);
if(H=="object"||H=="array"){if(typeof A.clone==="function")return A.clone();if(typeof Map!=="undefined"&&A instanceof Map)return new Map(A);if(typeof Set!=="undefined"&&A instanceof Set)return new Set(A);H=H=="array"?[]:{};for(var k in A)H[k]=qu_(A[k]);return H}return A},WC3=function(A,H){return Array.prototype.reduce.call(A,H,{duration:0})},bn=function(A,H){return _.PJm(_.kV(A,H,void 0,_.AY))},L_=function(A,H){return _.eI(_.kV(A,H,void 0,_.AY))},va=function(A,H){return _.kV(A,H,void 0,_.AY,_.k1)},
rgI=_.Tw(function(A,H,k,d){if(_.td)return _.dXm(A,H,k,d);
if(A.nextWireType_!==0)return!1;_.I7(H,k,d,_.jn(A.decoder_,_.Z1));return!0},_.Lx,_.PZ),uqL=_.Tw(function(A,H,k){if(_.td)return _.qNV(A,H,k);
if(A.nextWireType_!==1)return!1;var d=A.decoder_;A=_.ja(d);d=_.ja(d);A=_.tk(A,d);_.m3(H,k,A);return!0},_.ZxW,_.DRj),B11=_.Tw(function(A,H,k){if(A.nextWireType_!==5)return!1;
_.m3(H,k,_.ja(A.decoder_));return!0},function(A,H,k){H=_.XjI(H);
H!=null&&(_.JG(A,k,5),_.gO(A.encoder_,H))},_.GwA),edB=_.Tw(function(A,H,k){if(A.nextWireType_!==2)return!1;
A=_.RIw(A);_.m3(H,k,A===_.D1()?void 0:A);return!0},_.A2I,_.K3A),x2B=_.Q78(function(A,H,k){if(A.nextWireType_!==0&&A.nextWireType_!==2)return!1;
H=_.qR(H,H[_.qQ]|0,k);A.nextWireType_==2?_.TOw(A,A9B,H):H.push(_.yV(A.decoder_));return!0},function(A,H,k){H=_.pzX(_.eI,H,!0);
if(H!=null&&H.length){k=_.vpi(A,k);for(var d=0;d<H.length;d++)_.NO8(A.encoder_,H[d]);_.yGp(A,k)}},_.ayj),ioM=_.Tw(function(A,H,k,d){if(A.nextWireType_!==0)return!1;
_.I7(H,k,d,_.yV(A.decoder_));return!0},_.s4l,_.ayj),hd3=function(A,H){return A==H?!0:A&&H?A.width==H.width&&A.height==H.height:!1},yg=function(A,H){A.insertBefore(H,A.childNodes[0]||null)},Oo_=function(A){return A.previousElementSibling!==void 0?A.previousElementSibling:_.MBw(A.previousSibling,!1)},FHB=_.Xf(_.RI),Rde=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Rde,_.OW);Rde.prototype.getTypeName=function(){return _.O8(this,1).split("/").pop()};
Rde.prototype.getValue=function(){var A=_.kV(this,2);if(Array.isArray(A)||A instanceof _.OW)throw Error("X");return _.z5(this,2)};
var T1R=[0,2,_.aX],c6R=function(){var A=_.Qc();this.JSC$10231_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.UI("channel_type"))};
c6R.prototype.increment=function(A){this.JSC$10231_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",A)};
var pWM=function(){var A=_.Qc();this.JSC$10234_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.UI("channel_type"))};
pWM.prototype.increment=function(A){this.JSC$10234_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",A)};
var VDM=function(){var A=_.Qc();this.JSC$10237_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.UI("channel_type"))};
VDM.prototype.increment=function(A){this.JSC$10237_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",A)};
var QOQ=function(){var A=_.Qc();this.JSC$10240_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
QOQ.prototype.increment=function(){this.JSC$10240_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var E9e=function(){var A=_.Qc();this.JSC$10243_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.UI("channel_type"),_.UI("error_type"))};
E9e.prototype.increment=function(A,H){this.JSC$10243_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",A,H)};
var U0R=function(){var A=_.Qc();this.JSC$10246_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
U0R.prototype.increment=function(){this.JSC$10246_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var lSV=function(){var A=_.Qc();this.JSC$10249_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
lSV.prototype.increment=function(){this.JSC$10249_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var Sxi=function(){var A=_.Qc();this.JSC$10255_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
Sxi.prototype.increment=function(){this.JSC$10255_streamzService.JSC$10100_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var m2i=function(A){return A.getCount&&typeof A.getCount=="function"?A.getCount():_.Nv(A)||typeof A==="string"?A.length:_.iK.getCount(A)},JgB=function(A,H){if(typeof A.every=="function")return A.every(H,void 0);
if(_.Nv(A)||typeof A==="string")return Array.prototype.every.call(A,H,void 0);for(var k=_.OT0(A),d=_.cS(A),W=d.length,z=0;z<W;z++)if(!H.call(void 0,d[z],k&&k[z],A))return!1;return!0},g2_=function(A,H,k,d){var W=new _.PB(null);
A&&_.pf(W,A);H&&_.Qh(W,H);k&&_.Vh(W,k);d&&_.Ex(W,d);return W},boG=function(A){if(A>=48&&A<=57||A>=96&&A<=106||A>=65&&A<=90||_.HN&&A==0)return!0;
switch(A){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 _.s3;default:return!1}},L6M=function(A){if(A.altKey&&!A.ctrlKey||A.metaKey||A.keyCode>=112&&A.keyCode<=123)return!1;
if(boG(A.keyCode))return!0;switch(A.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!_.s3;default:return A.keyCode<166||A.keyCode>183}},v2_=[0,
_.FM,B11,-1],ygB={IMMEDIATE:10,AFTER_RENDER:8,MEASURE:5,INPUT:4,HIGH:3,MEDIUM:2,LOW:1,IDLE:0,10:"IMMEDIATE",8:"AFTER_RENDER",5:"MEASURE",4:"INPUT",3:"HIGH",2:"MEDIUM",1:"LOW",0:"IDLE"},Y3_=0,DnM=!1,Dee=function(A,H,k,d,W,z,u){this.date=typeof A==="number"?new Date(A,H||0,k||1,d||0,W||0,z||0,u||0):new Date(A&&A.getTime?A.getTime():_.Vj())};
_.EK(Dee,_.d1);_.q=Dee.prototype;_.q.getHours=function(){return this.date.getHours()};
_.q.getMinutes=function(){return this.date.getMinutes()};
_.q.getSeconds=function(){return this.date.getSeconds()};
_.q.getMilliseconds=function(){return this.date.getMilliseconds()};
_.q.getUTCDay=function(){return this.date.getUTCDay()};
_.q.getUTCHours=function(){return this.date.getUTCHours()};
_.q.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.q.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.q.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.q.setHours=function(A){this.date.setHours(A)};
_.q.setMinutes=function(A){this.date.setMinutes(A)};
_.q.setSeconds=function(A){this.date.setSeconds(A)};
_.q.setMilliseconds=function(A){this.date.setMilliseconds(A)};
_.q.setUTCHours=function(A){this.date.setUTCHours(A)};
_.q.setUTCMinutes=function(A){this.date.setUTCMinutes(A)};
_.q.setUTCSeconds=function(A){this.date.setUTCSeconds(A)};
_.q.setUTCMilliseconds=function(A){this.date.setUTCMilliseconds(A)};
_.q.add=function(A){_.d1.prototype.add.call(this,A);A.hours&&this.setUTCHours(this.date.getUTCHours()+A.hours);A.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+A.minutes);A.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+A.seconds)};
_.q.JSC$11650_toIsoString=function(A){var H=_.d1.prototype.JSC$11650_toIsoString.call(this,A);return A?H+"T"+_.wd(this.getHours(),2)+":"+_.wd(this.getMinutes(),2)+":"+_.wd(this.getSeconds(),2):H+"T"+_.wd(this.getHours(),2)+_.wd(this.getMinutes(),2)+_.wd(this.getSeconds(),2)};
_.q.equals=function(A){return this.getTime()==A.getTime()};
_.q.toString=function(){return this.JSC$11650_toIsoString()};
_.q.clone=function(){var A=new Dee(this.date);A.firstDayOfWeek_=this.firstDayOfWeek_;A.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return A};
CgL.prototype.set=function(A){this.relativeTimeStart_=A};
CgL.prototype.reset=function(){this.set(_.Vj())};
CgL.prototype.get=function(){return this.relativeTimeStart_};
var jSR=null,IwQ=function(){jSR||(jSR=new CgL)},YuG=function(){jSR||(jSR=new CgL)};
_.EK(YuG,IwQ);_.q=KV_.prototype;_.q.JSC$11676_buffer_="";_.q.set=function(A){this.JSC$11676_buffer_=""+A};
_.q.append=function(A,H,k){this.JSC$11676_buffer_+=String(A);if(H!=null)for(var d=1;d<arguments.length;d++)this.JSC$11676_buffer_+=arguments[d];return this};
_.q.clear=function(){this.JSC$11676_buffer_=""};
_.q.getLength=function(){return this.JSC$11676_buffer_.length};
_.q.toString=function(){return this.JSC$11676_buffer_};
var tLQ={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"},pNL=function(A){this.xhr=A},Q1B=function(A,H,k){_.AA.call(this,A+", errorCode="+H);
this.errorCode=H;this.xhr=k;this.name="PromiseAjaxError"};
_.I(Q1B,_.AA);var PS1=!1,ok1=function(A){_.AA.call(this,A.message||A.description||A.name);this.isMissing=A instanceof nkL;this.isTimeout=A instanceof Q1B&&A.errorCode=="net.timeout";this.isCanceled=A instanceof _.jY};
_.I(ok1,_.AA);ok1.prototype.name="BiscottiError";var nkL=function(){_.AA.call(this,"Biscotti ID is missing from server")};
_.I(nkL,_.AA);nkL.prototype.name="BiscottiMissingError";var cW_={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Z2B=null,EER=function(){try{var A=_.UD("yt.ads.biscotti.getId_");return A?A():gkM()}catch(H){return _.qt(H)}},rx1={'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"},GLL=function(A,H){return _.p8({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:A,command:H}})},F6G=function(A){return _.p8({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:A}})},XDi=function(A){return _.p8({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:A}})},D2R=function(A){return _.p8({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:A}})},SuQ=function(A){return _.p8({type:"SET_GUIDE_IS_EXPANDED",
payload:A})},CS_=function(A){return _.p8({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:A})},K6G=function(A){return _.p8({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:A})},awB=function(A){return _.p8({type:"SET_ONLINE_STATUS",
payload:A})},cgG=function(A){return _.p8({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:A}})},pD_=function(A){return _.p8({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:A}})},QSQ=function(A){return _.p8({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:A}})},VVG=function(A,H){return _.p8({type:"SET_TRANSCRIPTION_STATE",
payload:{high:A,low:H}})},E2I=function(A){return _.p8({type:"SET_OVERLAY_STATE",
payload:A})},yxG=[[["MTEzdmx3cHJpbWFyeSMyYWxtYnc=",
null,null],[null,["cXIwaGdqeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjNXh5NXE2","ZjFpNzd6c3R5bGUtc2NvcGUjNmQzNm80"],null],["Y2l0OXRjbWFzdGhlYWQtYWQjYnpiZmJv",["bzk5bHJneXRkLXJpY2gtZ3JpZC1yZW5kZXJlciMyYTR0aTc="],null],[null,["OGtvZDQzeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNobTFuNXY=","ZmttaGFvc3R5bGUtc2NvcGUjc2g3Ymd0"],null],[null,["emNycXA3eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciN3bW1rOWg=","OXJsNjV5c3R5bGUtc2NvcGUjOThnMno4"],null],[null,["N2RzdTM5eXRkLWFkLXNsb3QtcmVuZGVyZXIjbmN4a29m"],null]],[["dnJvNXB5cGxheWVyLWFkcyNucmZwMTE=",
null,null]],[[null,null,"cmQ5Z3UxeXRsci1iYW5uZXItY3RhLXJlbmRlcmVyI2NkeGtzcA=="]]],mT_="#",U2i=0,lwR=function(A,H,k){var d=this;this.priority=H;this.delay=k;this.jobId=0;this.completionCallback=_.xX;this.wrappedJob=function(){A();d.completionCallback()};
this.id=++U2i};
lwR.prototype.enqueue=function(A){this.completionCallback=A;this.jobId=_.IE.addJob(this.wrappedJob,this.priority,this.delay)};
var jk=function(){_.aF.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.I(jk,_.aF);jk.prototype.addJob=function(A,H,k){A=new lwR(A,H,k);this.taskIdToTask.set(A.id,A);this.isActive?tVM(this,A):this.suspendedTasks.add(A);return A.id};
var tVM=function(A,H){A.scheduledTasks.add(H);H.enqueue(function(){A.scheduledTasks.delete(H)})};
jk.prototype.cancelJob=function(A){(A=this.taskIdToTask.get(A))&&(this.scheduledTasks.delete(A)?_.IE.cancelJob(A.jobId):this.suspendedTasks.delete(A))};
jk.prototype.pause=function(){var A=this;this.isActive=!1;this.scheduledTasks.forEach(function(H){_.IE.cancelJob(H.jobId);A.suspendedTasks.add(H)});
this.scheduledTasks.clear()};
jk.prototype.start=function(){var A=this;this.isActive=!0;this.suspendedTasks.forEach(function(H){tVM(A,H)});
this.suspendedTasks.clear()};
jk.prototype.reset=function(){this.scheduledTasks.forEach(function(A){_.IE.cancelJob(A.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var N1e=function(A,H){this.JSC$13533_networkService_=A;this.pageRequestPromise=H};
N1e.prototype.fetchData=function(A){MVG(this,this.JSC$13533_networkService_.fetchData(A))};
N1e.prototype.postData=function(A,H){MVG(this,this.JSC$13533_networkService_.postData(A,H))};
N1e.prototype.requestDataForServiceEndpoint=function(A,H){MVG(this,this.JSC$13533_networkService_.requestDataForServiceEndpoint(A,H))};
var MVG=function(A,H){H.then(A.pageRequestPromise.onSuccess,A.pageRequestPromise.onFailure,A.pageRequestPromise)};
N1e.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var n2B=function(A){this.buildNetworkRequest_=A;this.pendingRequests_=new Set};
n2B.prototype.reset=function(){this.pendingRequests_.forEach(function(A){A.cancel()});
this.pendingRequests_.clear()};
n2B.prototype.fetchData=function(A){var H=ZoG(this);H.fetchData(A);return H.pageRequestPromise};
n2B.prototype.postData=function(A,H){var k=ZoG(this);k.postData(A,H);return k.pageRequestPromise};
n2B.prototype.requestDataForServiceEndpoint=function(A,H){var k=ZoG(this);k.requestDataForServiceEndpoint(A,H);return k.pageRequestPromise};
var ZoG=function(A){var H=A.buildNetworkRequest_();A.pendingRequests_.add(H);var k=function(){A.pendingRequests_.delete(H)};
H.pageRequestPromise.then(k,k);return H},fw_=function(A){var H=new jk;
this.JSC$13540_networkService_=A;this.JSC$13540_taskManager_=H;this.JSC$13540_networkManager_=new n2B(this.networkRequestFactory_.bind(this))};
_.q=fw_.prototype;_.q.networkRequestFactory_=function(){return new N1e(this.JSC$13540_networkService_,new _.n1(this.JSC$13540_taskManager_))};
_.q.reset=function(){this.JSC$13540_taskManager_.reset();this.JSC$13540_networkManager_.reset()};
_.q.start=function(){this.JSC$13540_taskManager_.start()};
_.q.pause=function(){this.JSC$13540_taskManager_.pause()};
_.q.getTaskManager=function(){return this.JSC$13540_taskManager_};
_.q.getNetworkManager=function(){return this.JSC$13540_networkManager_};
var Cie=null,cxM=[],GC1=0,SdL=0,FCi=null,V1I=null,fR=function(A){this.token=A};
fR.getInstance=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield(_.Zq(),2);A=H.yieldResult;if(!A)return H.return();fR.instance||(fR.instance=new fR(A));return H.return(fR.instance)})};
var fZe=function(A){var H;return _.e(function(k){if(k.nextAddress==1)return k.yield(M1e(A.token),2);H=k.yieldResult;return k.return(H.clear("resource-manifest-assets"))})},Zz=function(A){this.token=A};
Zz.getInstance=function(){var A;return _.e(function(H){if(H.nextAddress==1)return H.yield(_.Zq(),2);A=H.yieldResult;if(!A)return H.return();Zz.instance||(Zz.instance=new Zz(A));return H.return(Zz.instance)})};
var nr_=function(A){var H;return _.e(function(k){if(k.nextAddress==1)return k.yield(M1e(A.token),2);H=k.yieldResult;return k.yield(H.clear("auth"),0)})},wDi=!1,hWe=null,O8M=void 0,yZG=!1,o2_=function(A){if(!_.cn(document,"gtm-noscript")){var H=document.createElement("noscript");
H.id="gtm-noscript";H.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+A+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(H)}},$2V=function(A){_.AA.call(this,A)};
_.I($2V,_.bdi);
var TlV=!1,gu_=[],JrB=!1,CkQ={},ah1=function(A,H){var k=Aq3,d=this;this.renderFn=A;this.listeners=k;this.context=H;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var W;this.lastSeenPlayerApi=_.gK((W=this.playerControlsData)==null?void 0:W.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Hlp(),void 0);_.b("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){cvG(d).setState({playerState:-1});d.resetRecentlyNavigatedJobId&&
_.IE.cancelJob(d.resetRecentlyNavigatedJobId);d.recentlyNavigated=!0;d.resetRecentlyNavigatedJobId=_.IE.addJob(function(){d.recentlyNavigated=!1},8,1E4)})};
ah1.prototype.setState=function(A){if(!_.b("mweb_player_skip_no_op_state_changes")||!Kji(A,this.state))if(this.state=Object.assign({},this.state,A),!_.b("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated){A=_.b("player_controls_log_creation_enabled");var H=-1;A&&!auI()&&(H=(0,_.w2)());A&&_.OH("pcu_s");A&&(_.OH("pcu_se"),_.OH("pcu_rs"));this.renderFn(cvG(this));A&&(_.OH("pcu_re"),crG(H),_.IE.addJob(function(){_.OH("pcu_ap")},8))}};
var cvG=function(A){if(A.getPlayerApi)var H=_.gK(A.getPlayerApi());else{var k;H=_.gK((k=A.playerControlsData)==null?void 0:k.playerApi)}return Object.assign({},A.state,{setState:A.boundSetState,domMeasurements:{progressBarLineRect:A.progressBarLineRect},playerApi:H,appApi:A.context.appApi,playerContainer:A.context.playerContainer,playerControlContainer:A.context.playerControlContainer,uxConfig:A.context.uxConfig})},pli=function(A){A.listeners.forEach(function(H){A.eventListenerCleanupFunctions.push(H.register(function(){return cvG(A)},
function(){return A.getData()}))})},QIB=function(A){A.eventListenerCleanupFunctions.forEach(function(H){H()});
A.eventListenerCleanupFunctions.length=0};
ah1.prototype.getData=function(){return this.playerControlsData};var SRL=function(){var A=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return A?parseInt(A[1],10):0},HIB=function(A){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+A)!=-1||document.currentScript.src.indexOf("&"+A)!=-1)},sqI=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},p8B=function(A){A.length?kle(A.shift(),function(){p8B(A)}):Ku_()},VwM=function(A){return"chrome-extension://"+A+"/cast_sender.js"},kle=function(A,
H,k){var d=document.createElement("script");
d.onerror=H;k&&(d.onload=k);_.h2(d,_.i5(A));(document.head||document.documentElement).appendChild(d)},d_M=function(){var A=SRL(),H=[];
if(A>1){var k=A-1;H.push("//www.gstatic.com/eureka/clank/"+A+"/cast_sender.js");H.push("//www.gstatic.com/eureka/clank/"+k+"/cast_sender.js")}return H},Ku_=function(){var A=sqI();
A&&A(!1,"No cast extension found")},c7L=function(){if(WmB){var A=2,H=sqI(),k=function(){A--;
A==0&&H&&H(!0)};
window.__onGCastApiAvailable=k;kle("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Ku_,k)}},CcG=function(){c7L();
var A=d_M();A.push("//www.gstatic.com/eureka/clank/cast_sender.js");p8B(A)},afL=function(){c7L();
var A=d_M();A.push.apply(A,_.fV(QyI.map(VwM)));A.push("//www.gstatic.com/eureka/clank/cast_sender.js");p8B(A)},WmB=HIB("loadCastFramework")||HIB("loadCastApplicationFramework"),QyI=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var z1L=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(z1L,_.OW);var qMM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(qMM,_.OW);var rqR=function(){var A=new qMM;return _.bp(A,1,3)};var IQ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(IQ,_.OW);var qJ1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(qJ1,_.OW);var uRL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(uRL,_.OW);uRL.prototype.getToken=function(){return _.O8(this,1)};
uRL.prototype.setToken=function(A){return _.F1(this,1,A)};
var WHB=function(A){return _.Hz(A,3,_.FG,_.pC())},zYV=function(A){return _.Hz(A,6,_.FG,_.pC())};var Y4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Y4,_.OW);Y4.prototype.getToken=function(){return _.Af(this,uRL,2)};
Y4.prototype.setToken=function(A){return _.Sn(this,2,A)};
Y4.prototype.getName=function(){return _.O8(this,6)};
var BxI=_.Xf(Y4);var e1_=function(A,H,k){this.requestMessage=A;this.methodDescriptor=H;this.metadata=k};
e1_.prototype.getMetadata=function(){return this.metadata};var x__=function(A,H){H=H===void 0?{}:H;this.responseMessage=A;this.metadata=H;this.status=null};
x__.prototype.getMetadata=function(){return this.metadata};
x__.prototype.getStatus=function(){return this.status};var Pa=function(A,H,k,d,W){this.name=A;this.methodType="unary";this.requestType=H;this.responseType=k;this.requestSerializeFn=d;this.responseDeserializeFn=W},iIL=function(A,H,k){k=k===void 0?{}:k;
return new e1_(H,A,k)};
Pa.prototype.getName=function(){return this.name};var GY=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(GY,_.OW);GY.prototype.getHeader=function(){return _.Af(this,IQ,1)};
GY.prototype.setHeader=function(A){return _.Sn(this,1,A)};
GY.prototype.hasHeader=function(){return _.dd(this,IQ,1)};var h1Q=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(h1Q,_.OW);var OI_=new Pa("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",GY,h1Q,function(A){return A.serialize()},_.Xf(h1Q));var Fu=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Fu,_.OW);Fu.prototype.getHeader=function(){return _.Af(this,IQ,1)};
Fu.prototype.setHeader=function(A){return _.Sn(this,1,A)};
Fu.prototype.hasHeader=function(){return _.dd(this,IQ,1)};var R1R=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(R1R,_.OW);var TxL=new Pa("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Fu,R1R,function(A){return A.serialize()},_.Xf(R1R));var Xu=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Xu,_.OW);Xu.prototype.getHeader=function(){return _.Af(this,IQ,1)};
Xu.prototype.setHeader=function(A){return _.Sn(this,1,A)};
Xu.prototype.hasHeader=function(){return _.dd(this,IQ,1)};var m_V=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(m_V,_.OW);m_V.prototype.getValues=function(A){return _.kww(this,1,A)};var JqR=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(JqR,_.OW);JqR.prototype.getLink=function(){return _.Af(this,Y4,1)};var gt_=new Pa("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Xu,JqR,function(A){return A.serialize()},_.Xf(JqR));var DC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(DC,_.OW);DC.prototype.getHeader=function(){return _.Af(this,IQ,1)};
DC.prototype.setHeader=function(A){return _.Sn(this,1,A)};
DC.prototype.hasHeader=function(){return _.dd(this,IQ,1)};var bII=new Pa("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",DC,Y4,function(A){return A.serialize()},BxI);var LmM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(LmM,_.OW);var vt_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(vt_,_.OW);vt_.prototype.getUrl=function(){return _.O8(this,2)};
vt_.prototype.setUrl=function(A){return _.F1(this,2,A)};var yq3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(yq3,_.OW);var jqR=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(jqR,_.OW);var IDG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(IDG,_.OW);var gI1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(gI1,_.OW);var mH3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(mH3,_.OW);var YMQ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(YMQ,_.OW);var GDe=_.Xf(YMQ);var PrV=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(PrV,_.OW);var GlL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(GlL,_.OW);_.q=GlL.prototype;_.q.getHeader=function(){return _.Af(this,IQ,1)};
_.q.setHeader=function(A){return _.Sn(this,1,A)};
_.q.hasHeader=function(){return _.dd(this,IQ,1)};
_.q.getCompletionUrl=function(){return _.O8(this,6)};
_.q.getDeviceId=function(){return _.O8(this,11)};var FmB=new Pa("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",GlL,YMQ,function(A){return A.serialize()},GDe);var XUB=new Set(["SAPISIDHASH","APISIDHASH"]);var D_B=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(D_B,_.OW);D_B.prototype.getMessage=function(){return _.O8(this,2)};
var SMB=_.Xf(D_B);var Km3=function(A,H){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=A.nodeReadableStream;this.grpcResponseDeserializeFn=H;this.xhr=A.xhr;this.xhrNodeReadableStream&&Cre(this)},U_Q=function(A,H){var k=new aDI;
_.Y3(A.xhr,"complete",function(){if(A.xhr.isSuccess()){var d=A.xhr.getResponseText();var W;if(W=H)W=A.xhr,W.JSC$10109_xhr_&&W.isComplete()?(W=W.JSC$10109_xhr_.getResponseHeader("Content-Type"),W=W===null?void 0:W):W=void 0,W=W==="text/plain";if(W){if(!atob)throw Error("dk");d=atob(d)}try{var z=A.grpcResponseDeserializeFn(d)}catch(B){cqQ(A,UmQ(new _.mv(13,"Error when deserializing response data; error: "+B+(", response: "+d)),k));return}d=_.Njl(A.xhr.getStatus());pU_(A,QqM(A));d===0?VhI(A,z):cqQ(A,
UmQ(new _.mv(d,"Xhr succeeded but the status code is not 200"),k))}else{d=A.xhr.getResponseText();z=QqM(A);if(d){var u=Et_(A,d);d=u.code;W=u.details;u=u.metadata}else d=2,W="Rpc failed due to xhr error. uri: "+String(A.xhr.JSC$10109_lastUri_)+", error code: "+(A.xhr.JSC$10109_lastErrorCode_+", error: ")+A.xhr.getLastError(),u=z;pU_(A,z);cqQ(A,UmQ(new _.mv(d,W,u),k))}})},Cre=function(A){A.xhrNodeReadableStream.on("data",function(H){if("1"in H){var k=H["1"];
try{var d=A.grpcResponseDeserializeFn(k)}catch(W){cqQ(A,new _.mv(13,"Error when deserializing response data; error: "+W+(", response: "+k)))}d&&VhI(A,d)}if("2"in H)for(H=Et_(A,H["2"]),k=0;k<A.onStatusCallbacks.length;k++)A.onStatusCallbacks[k](H)});
A.xhrNodeReadableStream.on("end",function(){pU_(A,QqM(A));for(var H=0;H<A.onEndCallbacks.length;H++)A.onEndCallbacks[H]()});
A.xhrNodeReadableStream.on("error",function(){if(A.onErrorCallbacks.length!==0){var H=A.xhr.JSC$10109_lastErrorCode_;H!==0||A.xhr.isSuccess()||(H=6);var k=-1;switch(H){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:k=A.xhr.getStatus();d=_.Njl(k);break;default:d=14}pU_(A,QqM(A));H=_.wI1(H)+", error: "+A.xhr.getLastError();k!==-1&&(H+=", http status code: "+k);cqQ(A,new _.mv(d,H))}})},QqM=function(A){var H={},k=kaV(A.xhr);
Object.keys(k).forEach(function(d){H[d]=k[d]});
return H},Et_=function(A,H){var k=2,d={};
try{var W=SMB(H);k=_.QJ(W,1);var z=W.getMessage();_.c4(W,Rde,3,_.pC()).length&&(d["grpc-web-status-details-bin"]=H)}catch(u){A.xhr&&A.xhr.getStatus()===404?(k=5,z="Not Found: "+String(A.xhr.JSC$10109_lastUri_)):(k=14,z="Unable to parse RpcStatus: "+u)}return{code:k,details:z,metadata:d}};
Km3.prototype.on=function(A,H){A==="data"?this.onDataCallbacks.push(H):A==="metadata"?this.onMetadataCallbacks.push(H):A==="status"?this.onStatusCallbacks.push(H):A==="end"?this.onEndCallbacks.push(H):A==="error"&&this.onErrorCallbacks.push(H);return this};
var lDQ=function(A,H){H=A.indexOf(H);H>-1&&A.splice(H,1)};
Km3.prototype.removeListener=function(A,H){A==="data"?lDQ(this.onDataCallbacks,H):A==="metadata"?lDQ(this.onMetadataCallbacks,H):A==="status"?lDQ(this.onStatusCallbacks,H):A==="end"?lDQ(this.onEndCallbacks,H):A==="error"&&lDQ(this.onErrorCallbacks,H);return this};
Km3.prototype.cancel=function(){this.xhr.abort()};
var VhI=function(A,H){for(var k=0;k<A.onDataCallbacks.length;k++)A.onDataCallbacks[k](H)},pU_=function(A,H){for(var k=0;k<A.onMetadataCallbacks.length;k++)A.onMetadataCallbacks[k](H)},cqQ=function(A,H){for(var k=0;k<A.onErrorCallbacks.length;k++)A.onErrorCallbacks[k](H)},aDI=function(){var A=Error.call(this);
this.message=A.message;"stack"in A&&(this.stack=A.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.I(aDI,Error);var thM=function(A){this.JSC$19604_worker_=A.worker||null;this.JSC$19604_streamBinaryChunks_=A.streamBinaryChunks||!1;this.JSC$19604_credentialsMode_=void 0};
_.EK(thM,_.nlQ);thM.prototype.createInstance=function(){var A=new Sk(this.JSC$19604_worker_,this.JSC$19604_streamBinaryChunks_);this.JSC$19604_credentialsMode_&&A.setCredentialsMode(this.JSC$19604_credentialsMode_);return A};
thM.prototype.setCredentialsMode=function(A){this.JSC$19604_credentialsMode_=A};
var Sk=function(A,H){_.Is.call(this);this.JSC$19608_worker_=A;this.JSC$19608_streamBinaryChunks_=H;this.JSC$19608_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$19608_responseHeaders_=null;this.JSC$19608_method_="GET";this.JSC$19608_url_="";this.inProgress_=!1;this.JSC$19608_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.EK(Sk,_.Is);Sk.prototype.open=function(A,H){if(this.readyState!=0)throw this.abort(),Error("ek");this.JSC$19608_method_=A;this.JSC$19608_url_=H;this.readyState=1;NxQ(this)};
Sk.prototype.send=function(A){if(this.readyState!=1)throw this.abort(),Error("fk");if(this.abortController_.signal.aborted)throw this.abort(),Error("gk");this.inProgress_=!0;var H={headers:this.requestHeaders_,method:this.JSC$19608_method_,credentials:this.JSC$19608_credentialsMode_,cache:void 0,signal:this.abortController_.signal};A&&(H.body=A);(this.JSC$19608_worker_||_.k8).fetch(new Request(this.JSC$19608_url_,H)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Sk.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,Mh_(this));this.readyState=0};
Sk.prototype.handleResponse_=function(A){if(this.inProgress_&&(this.fetchResponse_=A,this.JSC$19608_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19608_responseHeaders_=A.headers,this.readyState=2,NxQ(this)),this.inProgress_&&(this.readyState=3,NxQ(this),this.inProgress_)))if(this.responseType==="arraybuffer")A.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.k8.ReadableStream!==
"undefined"&&"body"in A){this.currentReader_=A.body.getReader();if(this.JSC$19608_streamBinaryChunks_){if(this.responseType)throw Error("hk");this.response=[]}else this.response=this.responseText="",this.JSC$19608_textDecoder_=new TextDecoder;nt1(this)}else A.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var nt1=function(A){A.currentReader_.read().then(A.handleDataFromStream_.bind(A)).catch(A.handleSendFailure_.bind(A))};
Sk.prototype.handleDataFromStream_=function(A){if(this.inProgress_){if(this.JSC$19608_streamBinaryChunks_&&A.value)this.response.push(A.value);else if(!this.JSC$19608_streamBinaryChunks_){var H=A.value?A.value:new Uint8Array(0);if(H=this.JSC$19608_textDecoder_.decode(H,{stream:!A.done}))this.response=this.responseText+=H}A.done?Mh_(this):NxQ(this);this.readyState==3&&nt1(this)}};
Sk.prototype.handleResponseText_=function(A){this.inProgress_&&(this.response=this.responseText=A,Mh_(this))};
Sk.prototype.handleResponseArrayBuffer_=function(A){this.inProgress_&&(this.response=A,Mh_(this))};
Sk.prototype.handleSendFailure_=function(){this.inProgress_&&Mh_(this)};
var Mh_=function(A){A.readyState=4;A.fetchResponse_=null;A.currentReader_=null;A.JSC$19608_textDecoder_=null;NxQ(A)};
Sk.prototype.setRequestHeader=function(A,H){this.requestHeaders_.append(A,H)};
Sk.prototype.getResponseHeader=function(A){return this.JSC$19608_responseHeaders_?this.JSC$19608_responseHeaders_.get(A.toLowerCase())||"":""};
Sk.prototype.getAllResponseHeaders=function(){if(!this.JSC$19608_responseHeaders_)return"";for(var A=[],H=this.JSC$19608_responseHeaders_.entries(),k=H.next();!k.done;)k=k.value,A.push(k[0]+": "+k[1]),k=H.next();return A.join("\r\n")};
Sk.prototype.setCredentialsMode=function(A){this.JSC$19608_credentialsMode_=A};
var NxQ=function(A){A.onreadystatechange&&A.onreadystatechange.call(A)};
Object.defineProperty(Sk.prototype,"withCredentials",{get:function(){return this.JSC$19608_credentialsMode_==="include"},
set:function(A){this.setCredentialsMode(A?"include":"same-origin")}});var ZIR=function(A){var H="";_.iK.forEach(A,function(k,d){H+=d;H+=":";H+=k;H+="\r\n"});
return H},fDB=function(A,H,k){if(_.iK.isEmpty(k))return A;
k=ZIR(k);if(typeof A==="string")return _.Aj(A,_.w5(H),k);_.VT(A,H,k);return A};lu3.prototype.isInputValid=function(){return this.isInputValid_};
lu3.prototype.decode=function(A){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ik`"+this.JSC$19614_streamPos_+"`stream already broken`"+A);this.leftoverInput_+=A;A=Math.floor(this.leftoverInput_.length/4);if(A==0)return null;try{var H=_.lQX(this.leftoverInput_.slice(0,A*4))}catch(k){throw H=this.leftoverInput_,A=k.message,this.isInputValid_=!1,Error("ik`"+this.JSC$19614_streamPos_+"`"+A+"`"+H);}this.JSC$19614_streamPos_+=A*4;this.leftoverInput_=this.leftoverInput_.slice(A*4);return H};tXI.prototype.isInputValid=function(){return this.state_!=3};
var wUM=function(A,H,k,d){A.state_=3;A.errorMessage_="The stream is broken @"+A.JSC$19617_streamPos_+"/"+k+". Error: "+d+". With input:\n"+H;throw Error(A.errorMessage_);};
tXI.prototype.acceptsBinaryInput=function(){return!0};
tXI.prototype.parse=function(A){function H(h){h&128&&wUM(z,u,B,"invalid tag");(h&7)!=2&&wUM(z,u,B,"invalid wire type");z.tag_=h>>>3;z.tag_!=1&&z.tag_!=2&&z.tag_!=15&&wUM(z,u,B,"unexpected tag");z.state_=1;z.length_=0;z.countLengthBytes_=0}
function k(h){z.countLengthBytes_++;z.countLengthBytes_==5&&h&240&&wUM(z,u,B,"message length too long");z.length_|=(h&127)<<(z.countLengthBytes_-1)*7;h&128||(z.state_=2,z.countMessageBytes_=0,typeof Uint8Array!=="undefined"?z.messageBuffer_=new Uint8Array(z.length_):z.messageBuffer_=Array(z.length_),z.length_==0&&W())}
function d(h){z.messageBuffer_[z.countMessageBytes_++]=h;z.countMessageBytes_==z.length_&&W()}
function W(){if(z.tag_<15){var h={};h[z.tag_]=z.messageBuffer_;z.result_.push(h)}z.state_=0}
for(var z=this,u=A instanceof Array?A:new Uint8Array(A),B=0;B<u.length;){switch(z.state_){case 3:wUM(z,u,B,"stream already broken");break;case 0:H(u[B]);break;case 1:k(u[B]);break;case 2:d(u[B]);break;default:throw Error("jk`"+z.state_);}z.JSC$19617_streamPos_++;B++}A=z.result_;z.result_=[];return A.length>0?A:null};var nu3=function(){this.errorMessage_=null;this.JSC$19620_streamPos_=0;this.base64Decoder_=new lu3;this.pbParser_=new tXI};
nu3.prototype.isInputValid=function(){return this.errorMessage_===null};
var otL=function(A,H,k){A.errorMessage_="The stream is broken @"+A.JSC$19620_streamPos_+". Error: "+k+". With input:\n"+H;throw Error(A.errorMessage_);};
nu3.prototype.acceptsBinaryInput=function(){return!1};
nu3.prototype.parse=function(A){this.errorMessage_!==null&&otL(this,A,"stream already broken");var H=null;try{var k=this.base64Decoder_.decode(A);H=k===null?null:this.pbParser_.parse(k)}catch(d){otL(this,A,d.message)}this.JSC$19620_streamPos_+=A.length;return H};var MXB=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19623_streamPos_=0;this.result_=[];this.statusParsed_=!1};
MXB.prototype.isInputValid=function(){return this.errorMessage_===null};
MXB.prototype.acceptsBinaryInput=function(){return!1};
MXB.prototype.parse=function(A){function H(h){z.state_=6;z.errorMessage_="The stream is broken @"+z.JSC$19623_streamPos_+"/"+u+". Error: "+h+". With input:\n";throw Error(z.errorMessage_);}
function k(){z.jsonStreamParser_=new _.BN({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function d(h){if(h)for(var O=0;O<h.length;O++){var T={};T[1]=h[O];z.result_.push(T)}}
function W(h){if(h){(z.statusParsed_||h.length>1)&&H("extra status: "+h);z.statusParsed_=!0;var O={};O[2]=h[0];z.result_.push(O)}}
for(var z=this,u=0;u<A.length;){var B;if(B=z.state_!==2){a:{for(;u<A.length;){if(!_.Ko(A[u])){B=!0;break a}u++;z.JSC$19623_streamPos_++}B=!1}B=!B}if(B)return null;switch(z.state_){case 6:H("stream already broken");break;case 0:A[u]==="["?(z.state_=1,u++,z.JSC$19623_streamPos_++):H("unexpected input token");break;case 1:A[u]==="["?(z.state_=2,k()):A[u]===","||A.slice(u,u+5)=="null,"?z.state_=3:A[u]==="]"?(z.state_=5,u++,z.JSC$19623_streamPos_++):H("unexpected input token");break;case 2:B=z.jsonStreamParser_.parse(A.substring(u));
d(B);z.jsonStreamParser_.done()?(z.state_=3,B=z.jsonStreamParser_.JSC$11800_buffer_,z.JSC$19623_streamPos_+=A.length-u-B.length,A=B,u=0):(z.JSC$19623_streamPos_+=A.length-u,u=A.length);break;case 3:A[u]===","||A.slice(u,u+5)=="null,"?(z.state_=4,k(),z.jsonStreamParser_.parse("["),u+=A[u]===","?1:5,z.JSC$19623_streamPos_++):A[u]==="]"&&(z.state_=5,u++,z.JSC$19623_streamPos_++);break;case 4:B=z.jsonStreamParser_.parse(A.substring(u));W(B);z.jsonStreamParser_.done()?(z.state_=5,B=z.jsonStreamParser_.JSC$11800_buffer_,
z.JSC$19623_streamPos_+=A.length-u-B.length,A=B,u=0):(z.JSC$19623_streamPos_+=A.length-u,u=A.length);break;case 5:H("extra input after stream end")}}return z.result_.length>0?(A=z.result_,z.result_=[],A):null};var $_M=function(A){this.JSC$19626_xhr_=A;this.JSC$19626_parser_=null;this.status_=this.JSC$19626_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19626_textDecoder_=null;this.JSC$19626_eventHandler_=new _.qZ(this);this.JSC$19626_eventHandler_.listen(this.JSC$19626_xhr_,"readystatechange",this.JSC$19628_readyStateChangeHandler_)},C_=function(A,H){A.status_!=H&&(A.status_=H,A.statusHandler_&&A.statusHandler_())},ASQ=function(A){A.JSC$19626_eventHandler_.removeAll();
if(A.JSC$19626_xhr_){var H=A.JSC$19626_xhr_;A.JSC$19626_xhr_=null;H.abort();H.dispose()}};
$_M.prototype.getStatus=function(){return this.status_};
$_M.prototype.JSC$19628_readyStateChangeHandler_=function(A){A=A.target;try{if(A==this.JSC$19626_xhr_)a:{var H=_.bx(this.JSC$19626_xhr_),k=this.JSC$19626_xhr_.JSC$10109_lastErrorCode_,d=this.JSC$19626_xhr_.getStatus(),W=this.JSC$19626_xhr_.getResponseText();A=[];if(this.JSC$19626_xhr_.getResponse()instanceof Array){var z=this.JSC$19626_xhr_.getResponse();z.length>0&&z[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,A=z)}if(!(H<3||H==3&&!W&&A.length==0))if(d=d==200||d==206,H==4&&(k==8?
C_(this,7):k==7?C_(this,8):d||C_(this,3)),this.JSC$19626_parser_||(this.JSC$19626_parser_=ZmG(this.JSC$19626_xhr_),this.JSC$19626_parser_==null&&C_(this,5)),this.status_>2)ASQ(this);else{if(A.length>this.JSC$19626_pos_){var u=A.length;k=[];try{if(this.JSC$19626_parser_.acceptsBinaryInput())for(var B=0;B<u;B++){var h=this.JSC$19626_parser_.parse(Array.from(A[B]));h&&(k=k.concat(h))}else{h="";if(!this.JSC$19626_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("kk");this.JSC$19626_textDecoder_=
new TextDecoder}for(B=0;B<u;B++)h+=this.JSC$19626_textDecoder_.decode(A[B],{stream:H==4&&B==u-1});k=this.JSC$19626_parser_.parse(h)}A.splice(0,u);k&&this.dataHandler_(k)}catch(T){C_(this,5);ASQ(this);break a}}else if(W.length>this.JSC$19626_pos_){B=W.slice(this.JSC$19626_pos_);this.JSC$19626_pos_=W.length;try{var O=this.JSC$19626_parser_.parse(B);O!=null&&this.dataHandler_&&this.dataHandler_(O)}catch(T){C_(this,5);ASQ(this);break a}}H==4?(W.length!=0||this.hasStreamingResponseData_?C_(this,2):C_(this,
4),ASQ(this)):C_(this,1)}}}catch(T){C_(this,6),ASQ(this)}};var H4L=function(A){A=this.xhrReader_=A;var H=(0,_.WT)(this.onData_,this);A.dataHandler_=H;A=this.xhrReader_;H=(0,_.WT)(this.onStatusChange_,this);A.statusHandler_=H;this.JSC$19630_callbackMap_={};this.callbackOnceMap_={}};
_.q=H4L.prototype;_.q.on=function(A,H){var k=this.JSC$19630_callbackMap_[A];k||(k=[],this.JSC$19630_callbackMap_[A]=k);k.push(H);return this};
_.q.addListener=function(A,H){this.on(A,H);return this};
_.q.removeListener=function(A,H){var k=this.JSC$19630_callbackMap_[A];k&&_.EC(k,H);(A=this.callbackOnceMap_[A])&&_.EC(A,H);return this};
_.q.once=function(A,H){var k=this.callbackOnceMap_[A];k||(k=[],this.callbackOnceMap_[A]=k);k.push(H);return this};
_.q.onData_=function(A){var H=this.JSC$19630_callbackMap_.data;H&&sDV(A,H);(H=this.callbackOnceMap_.data)&&sDV(A,H);this.callbackOnceMap_.data=[]};
var sDV=function(A,H){for(var k={},d=0;d<A.length;k={message$jscomp$1008:void 0},d++)k.message$jscomp$1008=A[d],H.forEach(function(W){return function(z){try{z(W.message$jscomp$1008)}catch(u){}}}(k))};
H4L.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:krR(this,"readable");break;case 5:case 6:case 4:case 7:case 3:krR(this,"error");break;case 8:krR(this,"close");break;case 2:krR(this,"end")}};
var krR=function(A,H){var k=A.JSC$19630_callbackMap_[H];k&&k.forEach(function(d){try{d()}catch(W){}});
(k=A.callbackOnceMap_[H])&&k.forEach(function(d){d()});
A.callbackOnceMap_[H]=[]};var dlR=function(){var A={format:"jspb"};A=A===void 0?{}:A;this.suppressCorsPreflight=A.suppressCorsPreflight||_.UD("suppressCorsPreflight",A)||!1;this.withCredentials=A.withCredentials||_.UD("withCredentials",A)||!1;this.streamInterceptors=A.streamInterceptors||[];this.unaryInterceptors=A.unaryInterceptors||[];this.workerScope=A.workerScope;this.chunkedServerStreaming=A.useFetchDownloadStreams||!1},qm_=function(A,H,k,d,W,z){z=z===void 0?{}:z;
var u=H.substring(0,H.length-W.name.length),B,h=(B=z)==null?void 0:B.signal;return W1V(function(O){return new Promise(function(T,m){if(h==null?0:h.aborted){var J=new _.mv(1,"Aborted");J.cause=h.reason;m(J)}else{var g={},v=zg1(A,O,u);v.on("error",function(y){return void m(y)});
v.on("metadata",function(y){g=y});
v.on("data",function(y){var X=g;X=X===void 0?{}:X;T(new x__(y,X))});
h&&h.addEventListener("abort",function(){v.cancel();var y=new _.mv(1,"Aborted");y.cause=h.reason;m(y)})}})},A.unaryInterceptors).call(A,iIL(W,k,d)).then(function(O){return O.responseMessage})},rSG=function(A,H,k,d,W,z){z=z===void 0?{}:z;
return qm_(A,H,k,d,W,z)};
dlR.prototype.serverStreaming=function(A,H,k,d){var W=this,z=A.substring(0,A.length-d.name.length);return uPL(function(u){var B=u.methodDescriptor,h=u.getMetadata(),O=BNe(W,!1);h=eg3(W,h,O,z+B.getName());var T=xlM(O,B.responseDeserializeFn,!0);u=B.requestSerializeFn(u.requestMessage);O.send(h,"POST",u);return T},this.streamInterceptors).call(this,iIL(d,H,k))};
var zg1=function(A,H,k){var d=H.methodDescriptor,W=H.getMetadata(),z=BNe(A,!0);A=eg3(A,W,z,k+d.getName());k=xlM(z,d.responseDeserializeFn,!1);U_Q(k,W["X-Goog-Encode-Response-If-Executable"]==="base64");H=d.requestSerializeFn(H.requestMessage);z.send(A,"POST",H);return k},BNe=function(A,H){H=A.chunkedServerStreaming&&!H;
return A.workerScope||H?new _.g3(new thM({worker:A.workerScope,streamBinaryChunks:H})):new _.g3},eg3=function(A,H,k,d){H["Content-Type"]="application/json+protobuf";
H["X-User-Agent"]="grpc-web-javascript/0.1";var W=H.Authorization;if(W&&XUB.has(W.split(" ")[0])||A.withCredentials)k.JSC$10109_withCredentials_=!0;if(A.suppressCorsPreflight)d=fDB(d,"$httpHeaders",H);else for(A=_.r(Object.keys(H)),W=A.next();!W.done;W=A.next())W=W.value,k.headers.set(W,H[W]);return d},xlM=function(A,H,k){if(k){k=new $_M(A);
var d=new H4L(k)}return new Km3({xhr:A,nodeReadableStream:d},H)},uPL=function(A,H){return H.reduce(function(k,d){return function(W){return d.intercept(W,k)}},A)},W1V=function(A,H){return H.reduce(function(k,d){return function(W){return d.intercept(W,k)}},A)};var i4I=function(A){this.client_=new dlR;this.hostname_=A==void 0?A:A.replace(/\/+$/,"")};
_.q=i4I.prototype;_.q.JSC$19648_depositGoogleCredential=function(A,H,k){return rSG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",A,H||{},TxL,k)};
_.q.deleteLink=function(A,H,k){return rSG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",A,H||{},OI_,k)};
_.q.JSC$19648_finishOAuth=function(A,H,k){return rSG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",A,H||{},gt_,k)};
_.q.getLink=function(A,H,k){return rSG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",A,H||{},bII,k)};
_.q.startLinkingSession=function(A,H,k){return rSG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",A,H||{},FmB,k)};var hgB=[0,_.KX,1,x2B,[0,_.QV,[0,_.cZ,-1]],[0,edB],[0,_.tY,-1,[0,_.lP]],[0,edB]];var O4_=function(){this.storage=new Map},TN_=function(A,H,k,d,W){if(!A.storage.has(H))return null;
A=_.r(A.storage.get(H));for(H=A.next();!H.done;H=A.next())if(H=H.value,!W||H.linkName===W)if(k&&H.scopes&&RgI(H.scopes,k)||d&&H.capabilities&&RgI(H.capabilities,d))return H;return null},mli=function(A,H,k){if(!k)A.storage.delete(H);
else if(A.storage.has(H)){var d=A.storage.get(H).filter(function(W){return W.linkName!==k});
d.length>0?A.storage.set(H,d):A.storage.delete(H)}},RgI=function(A,H){H=_.r(H);
for(var k=H.next();!k.done;k=H.next())if(!A.has(k.value))return!1;return!0};var JSL=function(){var A=_.pZ("LINK_GAL_DOMAIN");this.alsDomain1p=_.pZ("LINK_GAL_DOMAIN");this.alsDomain3p=A;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},geG=function(A,H){A.apiKey=H;
return A};
JSL.prototype.build=function(){var A={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("lk");A.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("mk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("nk");A.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(A.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)A.apiKey=
this.apiKey,A.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ok");A.oauthToken=this.oauthToken;A.alsDomain=this.alsDomain3p}A.clientXd3=this.clientXd3;A.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(A.authUser=this.authUser);this.bucket!==void 0&&(A.bucket=this.bucket);this.completionUrl!==void 0&&(A.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(A.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(A.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(A.locale=this.locale);this.localStorage!==void 0&&(A.localStorage=this.localStorage);A.loggerType=this.loggerType;A.clientEnvironment=this.clientEnvironment;A.colorScheme=this.colorScheme;A.showCloseOption=this.showCloseOption;return A};var k$=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(k$,_.OW);var b4L=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(b4L,_.OW);var L1e=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(L1e,_.OW);var Wr=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Wr,_.OW);var vei=function(A){return _.RX(A,1)};var ySG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(ySG,_.OW);var sl1=_.Xf(ySG),dk=[1,2,3,4,5];var ou1=function(A){try{return sl1(A)}catch(H){return null}},jD1=function(){},$m3=function(A,H){switch(_.qJ(H,dk)){case 4:return(H=_.JY(H,L1e,4,dk))&&A.logStateTransition(_.RX(H,1)),!0;
case 5:return(H=_.JY(H,b4L,5,dk))&&A.logInternalEvent(_.RX(H,1)),!0}return!1},kDi=function(A){switch(A){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.HR(A)}};var fu1=function(A,H){var k=this;this.validator=A;this.messageListener=H;this.dismissCallback=function(){I2R(k,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19677_receiveMessage=function(d){d.type==="message"&&(d=d.event_,d!==null&&(new URL(k.iframe.src)).origin===d.origin&&k.validator(d.data,d.origin)&&!k.messageListener(d.data)&&(k.JSC$19677_resolveCb!==void 0&&k.JSC$19677_resolveCb(d.data),Ym_(k)))}},HFR=function(A,H,k){A.uiHandler!==void 0&&I2R(A,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(d,W){A.JSC$19677_resolveCb=d;A.JSC$19677_rejectCb=W;A.iframe=document.createElement("iframe");_.zM(A.iframe,H);A.uiHandler=k.displayContent(A.iframe,A.dismissCallback);_.Y3(window,"message",A.JSC$19677_receiveMessage,!1,A)})},I2R=function(A,H){A.JSC$19677_rejectCb!==void 0&&A.JSC$19677_rejectCb(H);
Ym_(A)},Ym_=function(A){A.uiHandler!==void 0&&A.uiHandler.hideContent();
_.xz(window,"message",A.JSC$19677_receiveMessage,!1,A);A.JSC$19677_resolveCb=void 0;A.JSC$19677_rejectCb=void 0;A.uiHandler=void 0;A.iframe=void 0};var PRe=function(A){if(A===2){var H;A=((H=window)==null?0:H.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return A},A13=function(A){A=PRe(A);
switch(A){case 0:return"light";case 1:return"dark";default:_.HR(A)}};var wK_=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Gr3=function(A,H){this.JSC$19689_linkingSession=A;this.noticeConfig=H;this.displayInfoMap=new Map;var k=new Map;if(_.dd(this.JSC$19689_linkingSession,yq3,7))for(A=_.Af(this.JSC$19689_linkingSession,yq3,7),A=_.c4(A,vt_,1,_.pC()),A=_.r(A),H=A.next();!H.done;H=A.next())H=H.value,k.set(_.RX(H,1),_.rnC(_.Af(H,_.e$I,3)));if(k.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){H=this.noticeConfig.enabledDataUsageNoticeUis;A=H.has(0)?k.get(1):void 0;H=H.has(1)?k.get(2):void 0;k=A!==void 0&&H!==void 0?k.get(3):void 0;var d=this.noticeConfig.nestedOrigins;var W=new ySG;var z=new k$;W=_.Cx(W,2,dk,z);z=new ySG;var u=new k$;z=_.Cx(z,3,dk,u);u=[];A!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:A,lastEvent:W,nestedOrigins:d}]),u.push({trustedUrl:A,lastEvent:W,nestedOrigins:d}));H!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:H,lastEvent:z,nestedOrigins:d}]),u.push({trustedUrl:H,lastEvent:z,nestedOrigins:d}));k!==void 0?this.displayInfoMap.set(3,[{trustedUrl:k,lastEvent:z,nestedOrigins:d}]):this.displayInfoMap.set(3,u)}};var F1B=function(A){var H=new O4_;this.galService=A;this.galCache=H};
F1B.prototype.getLink=function(A){var H=A.serviceId;var k=A.scopes;var d=A.capabilities;var W=A.linkName;var z=this,u;return _.e(function(B){if(d!==void 0&&k!==void 0)throw Error("pk");u=TN_(z.galCache,H,k,d,W);return u!==null?B.return(u):B.return(z.galService.getLink({serviceId:H,sessionId:Math.floor(Math.random()*2147483648),scopes:k,capabilities:d,linkName:W}).then(function(h){h=r1L(h);var O=z.galCache;O.storage.has(H)?O.storage.get(H).push(h):O.storage.set(H,[h]);return h}))})};
F1B.prototype.deleteLink=function(A,H,k){var d=this;return _.e(function(W){mli(d.galCache,A,k);return W.return(d.galService.deleteLink({serviceId:A,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:H,linkName:k}).then(function(){return!0}))})};var DlI=function(A,H){var k=this;this.validator=A;this.msgHandler=H;this.closedPopupTimeout=this.JSC$19711_rejectCb=this.JSC$19711_resolveCb=this.popup=null;this.JSC$19711_receiveMessage=function(d){if(d!==null&&(d=d.event_,d.source===k.popup)){var W=d.data;if(k.validator(W,d.origin)){var z;(z=k.msgHandler)!=null&&z.call(k,W)||(k.JSC$19711_resolveCb!==null&&k.JSC$19711_resolveCb(W),XYG(k))}}}};
DlI.prototype.open=function(A,H){var k=this;this.popup!==null&&SmM(this);return new Promise(function(d,W){k.JSC$19711_resolveCb=d;k.JSC$19711_rejectCb=W;k.popup=_.rU(window,A,"",H);_.Y3(window,"message",k.JSC$19711_receiveMessage,!1,k);CRV(k)})};
var SmM=function(A,H){A.JSC$19711_rejectCb!==null&&A.JSC$19711_rejectCb(H);XYG(A)},XYG=function(A){A.closedPopupTimeout&&(A.closedPopupTimeout.cancel(),A.closedPopupTimeout=null);
A.popup&&A.popup.close();_.xz(window,"message",A.JSC$19711_receiveMessage,!1,A);A.popup=null;A.JSC$19711_resolveCb=null;A.JSC$19711_rejectCb=null},CRV=function(A){A.closedPopupTimeout=_.NjN(100).then(function(){A.popup?A.popup.closed?K1I(A):CRV(A):SmM(A,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},K1I=function(A){A.closedPopupTimeout=_.NjN(100).then(function(){SmM(A,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var a21=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),cS1=function(A,H,k,d,W,z,u,B,h,O){var T=this;this.serviceId=A;this.sessionId=H;this.galService=k;this.oauthDetails=d;this.galLogger=W;this.interactionMode=z;this.redirectServiceUrl=u;this.consentLanguageKeys=B;this.dynamicUrlParameters=h;this.partnerConfigMinReadTimestamp=O;this.started=!1;this.JSC$19717_dataValidator=function(m,
J){var g=a21.has(J);g||T.redirectServiceUrl===void 0||(g=T.redirectServiceUrl===J);return g?m.sentinel==="gdi":!1}};
cS1.prototype.complete=function(){var A=this,H;return _.e(function(k){if(A.interactionMode!==1)return k.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=J1R.getRedirectStateFromUri();return H===null?k.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):k.return(pYR(A,H))})};
cS1.prototype.start=function(){var A=this,H;return _.e(function(k){if(A.started)return k.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.O8(A.oauthDetails,1))return k.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(A.interactionMode===1)return J1R.setLocation(_.O8(A.oauthDetails,1)),k.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));A.started=!0;A.galLogger.logStateTransition(5);
H=J1R.getPostMessagePopup(A.JSC$19717_dataValidator);return k.return(H.open(_.O8(A.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(d){A.started=!1;var W=A.galLogger;if((d==null?void 0:d.error)!==void 0)throw W.logInternalEvent(59),Error("qk");if((d==null?void 0:d.redirect_state)===void 0)throw W.logInternalEvent(131),Error("rk");return pYR(A,d.redirect_state)}).catch(function(d){A.started=
!1;
return d.errorCode!==void 0?{statusCode:d.errorCode,statusMessage:d.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var pYR=function(A,H){return _.e(function(k){return k.return(QDB(A.galService,{serviceId:A.serviceId,sessionId:A.sessionId,dynamicUrlParameters:A.dynamicUrlParameters,redirectState:H,consentLanguageKeys:A.consentLanguageKeys,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp}).then(function(d){var W={statusCode:1,link:r1L(d.getLink())};BYi(_.z5(d,3))!==void 0&&(W.callerState=BYi(_.z5(d,3)));_.NLl(d,4,m_V,uL1).size>0&&(W.redirectUriParams=new Map(Array.from(_.NLl(d,4,m_V,uL1).entries()).map(function(z){var u=
_.r(z);z=u.next().value;var B=u.next().value;u=[];var h=u.concat;B=_.Hz(B,1,_.FG,_.pC());return[z,h.call(u,_.fV(B))]})));
A.galLogger.logInternalEvent(134);return W}))})},J1R={getPostMessagePopup:function(A){return new DlI(A)},
getRedirectStateFromUri:function(){var A=_.p$(J1R.getLocation()).fragment_;return(new _.N3(A)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(A){_.C1V(window.location,_.fx(A))},
createOAuthFlow:function(A,H){return new cS1(A.serviceId,A.sessionId,A.galService,H,A.galLogger,A.interactionMode,A.redirectServiceUrl,A.consentLanguageKeys,A.dynamicUrlParameters,A.partnerConfigMinReadTimestamp)}};var VGG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(VGG,_.OW);var EeV=_.Xf(VGG);var Ul_=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),l2_=function(A,H,k,d,W,z,u,B,h){var O=this;this.serviceId=A;this.sessionId=H;this.galService=k;this.gsiWebFlowDetails=d;this.colorScheme=W;this.showCloseOption=z;this.galLogger=u;this.interactionMode=B;this.redirectServiceUrl=h;this.started=!1;this.JSC$19730_dataValidator=function(T,m){var J=Ul_.has(m);J||O.redirectServiceUrl===
void 0||(J=O.redirectServiceUrl===m);return J?T.sentinel==="gal":!1};
this.logEventProcessor=function(T){return T.result?(T=ou1(T.result))?$m3(O.galLogger,T):!1:!1}};
l2_.prototype.complete=function(){var A=this,H,k;return _.e(function(d){if(A.interactionMode!==1)return d.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=bF_.getRedirectStateFromUri();if(H===void 0)return A.galLogger.JSC$19669_logErrorEvent(131),d.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return k=tGL(A,H),d.return(NNB(A,k))}catch(W){return d.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
l2_.prototype.start=function(){var A=this,H;return _.e(function(k){if(A.started)return k.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.O8(A.gsiWebFlowDetails,1))return k.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(A.interactionMode===1)return bF_.setLocation(MGB(A,_.O8(A.gsiWebFlowDetails,1))),k.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
A.started=!0;H=bF_.getPostMessagePopup(A.JSC$19730_dataValidator,A.logEventProcessor);return k.return(H.open(MGB(A,_.O8(A.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(d){A.started=!1;if((d==null?void 0:d.result)===void 0)throw A.galLogger.JSC$19669_logErrorEvent(131),Error("rk");d=tGL(A,d.result);return NNB(A,d)}).catch(function(d){A.started=!1;
return d.errorCode!==void 0?{statusCode:d.errorCode,statusMessage:d.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var MGB=function(A,H){A=["result_channel",A.interactionMode===1?"2":"1","color_scheme",A13(A.colorScheme),"show_close_option",A.showCloseOption];return hpB(H,A)},NNB=function(A,H){if(H!==null&&_.dd(H,Wr,2)){var k,d=H==null?void 0:(k=_.Af(H,Wr,2))==null?void 0:_.RX(k,2);
d&&A.galLogger.JSC$19669_logErrorEvent(kDi(d));return vei(_.Af(H,Wr,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 A.galService.getLink({serviceId:A.serviceId,sessionId:A.sessionId,consistencyKey:_.O8(H,1)}).then(function(W){W=r1L(W);A.galLogger.logInternalEvent(134);return{statusCode:1,link:W}})},tGL=function(A,H){H=EeV(H);
if(!_.dd(H,Wr,2)&&_.O8(H,1)==="")throw A.galLogger.JSC$19669_logErrorEvent(5),Error("sk");return H},bF_={getPostMessagePopup:function(A,H){return new DlI(A,H)},
getRedirectStateFromUri:function(){return _.QT(_.p$(bF_.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(A){_.C1V(window.location,_.fx(A))},
createStreamlinedFlow:function(A,H){return new l2_(A.serviceId,A.sessionId,A.galService,H,A.colorScheme,A.showCloseOption,A.galLogger,A.interactionMode,A.redirectServiceUrl)}};var YJe=function(A){this.storage=(A=A?_.v5("GAL"):_.LjN("GAL"))?new _.mR(A):null};
YJe.prototype.getSession=function(A){if(this.storage!==null)try{var H=this.storage.get("SAVED_SESSION");if(H===void 0)return null;if(H.serviceId===A)return H}catch(k){}return null};var neB=function(){};
_.I(neB,jD1);neB.prototype.logStateTransition=function(){};
neB.prototype.logInternalEvent=function(){};
neB.prototype.JSC$19669_logErrorEvent=function(){};var Z4Q=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Z4Q,_.OW);Z4Q.prototype.getCompletionUrl=function(){return _.O8(this,15)};var K_=function(A,H,k,d,W,z){this.serviceId=A;this.environment=H;this.sessionId=k;this.colorSchemeSelected=d;this.colorThemeDisplayed=W;this.JSC$19743_transport=z;this.currentState=1};
_.I(K_,jD1);K_.prototype.logStateTransition=function(A){var H=f2_(this);H=_.HL(H,3,this.currentState);H=_.HL(H,1,A);this.currentState=A;A=sFM(1);this.dispatch(H,A)};
K_.prototype.logInternalEvent=function(A){A=sFM(A);this.dispatch(f2_(this),A)};
K_.prototype.JSC$19669_logErrorEvent=function(A){var H=f2_(this);H=_.HL(H,1,10);A=sFM(A);this.dispatch(H,A)};
var f2_=function(A){var H=new Z4Q;H=_.HL(H,1,A.currentState);H=_.qC(H,7,A.serviceId);var k,d;var W=((k=window)==null?0:(d=k.location)==null?0:d.href)?_.p$(window.location.href).JSC$10346_domain_:"NO_PACKAGE_NAME";k=_.qC(H,8,W);k=_.HL(k,6,A.environment);k=_.qC(k,5,"100");k=_.HL(k,11,A.colorSchemeSelected);return _.HL(k,12,A.colorThemeDisplayed)};
K_.prototype.dispatch=function(A,H){H===void 0&&(H=new _.As);var k=H;A=A.serialize();k=_.qC(k,8,A);_.hb(k,12,this.sessionId);this.JSC$19743_transport.dispatch(H)};var wYR=function(A,H){this.loggerType=A;this.sessionIndex=H!=null?H:0},oeL;
wYR.prototype.create=function(A,H,k,d,W){switch(this.loggerType){case 0:return new neB;case 1:return oeL||(oeL=(new _.nC(555,this.sessionIndex.toString())).build()),new K_(A,H,k,d,W,oeL);default:_.HR(this.loggerType,"unknown logger type")}};var LHL=[6,2,3,1],SJR=new Map([[4,1],[1,6],[2,2],[3,3]]),xHM={statusCode:7,statusMessage:"Failed to create flow object"},jlL=function(A,H,k,d,W,z,u,B,h,O){this.serviceId=A;this.sessionId=H;this.config=k;this.galService=d;this.JSC$19750_linkingSession=W;this.googleScopes=z;this.callerState=u;this.consentLanguageKeys=B;this.dynamicUrlParameters=h;this.partnerConfigMinReadTimestamp=O;this.currentFlow=0;d=this.JSC$19750_linkingSession;W=new Set;_.dd(d,mH3,1)&&W.add(1);_.dd(d,IDG,2)&&_.dd(d,gI1,6)&&W.add(2);
_.dd(d,jqR,3)&&_.dd(d,gI1,6)&&W.add(3);_.dd(d,LmM,4)&&W.add(6);this.supportedFlows=W;d=k.loggerType;W=k.clientEnvironment;a:{z=k.colorScheme;switch(z){case 0:z=1;break a;case 1:z=2;break a;case 2:z=3;break a;default:_.HR(z)}z=void 0}a:{u=k.colorScheme;u=PRe(u);switch(u){case 0:u=1;break a;case 1:u=2;break a;default:_.HR(u)}u=void 0}this.galLogger=(new wYR(d,k.authUser)).create(A,W,H,z,u)},H1_=function(A){return new Promise(function(H){var k,d,W,z,u,B,h,O,T,m;
return _.e(function(J){switch(J.nextAddress){case 1:k=vIe(A.currentFlow,A.supportedFlows),d=!1,W=new Gr3(A.JSC$19750_linkingSession,A.config.dataUsageNoticeConfig);case 2:if(k===void 0){J.jumpTo(4);break}_.S_(J,5);var g=W,v=k,y=void 0;d?v===1&&(y=g.displayInfoMap.get(2)):v===2||v===3?y=g.displayInfoMap.get(1):v===1&&(y=g.displayInfoMap.get(3));z=y?y:[];u=A.consentLanguageKeys;B=_.r(z);h=B.next();case 7:if(h.done)return A.currentFlow=k,J.yield(hYR($l_(A,u)),11);O=h.value;return J.yield(dH_(O,A.config.dataUsageNoticeConfig.uiAdapter,
A.config.colorScheme,A.galLogger),10);case 10:T=J.yieldResult;if(T.statusCode!==1)return AyR(A),H(OF_({statusCode:T.statusCode,statusMessage:T.statusMessage},A.callerState)),J.return();T.consentLanguageKeys!==void 0&&(u=T.consentLanguageKeys);h=B.next();J.jumpTo(7);break;case 11:m=J.yieldResult;if(m.statusCode!==10)return m.statusCode!==6&&AyR(A),m.statusCode!==1&&A.callerState!==void 0&&(m.callerState=A.callerState),H(m),J.return();_.QN(J,6);break;case 5:_.VA(J);case 6:k=vIe(A.currentFlow,A.supportedFlows);
d=!0;J.jumpTo(2);break;case 4:AyR(A),H(OF_({statusCode:12,statusMessage:"Linking failed"},A.callerState)),_.EN(J)}})})},AyR=function(A){PwQ(A.serviceId,A.config.localStorage);
A.currentFlow=0},XMV=function(A,H,k){A.currentFlow=H;
return RYB($l_(A,k)).then(function(d){return d.statusCode===10&&A.config.interactionMode===1&&vIe(A.currentFlow,A.supportedFlows)!==void 0?H1_(A):d})},$l_=function(A,H){return{flowParams:{serviceId:A.serviceId,
sessionId:A.sessionId,galService:A.galService,galLogger:A.galLogger,interactionMode:A.config.interactionMode,redirectServiceUrl:A.config.redirectServiceUrl,colorScheme:A.config.colorScheme,consentLanguageKeys:H,dynamicUrlParameters:A.dynamicUrlParameters,showCloseOption:A.config.showCloseOption,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp},currentFlow:A.currentFlow,config:A.config,session:A.JSC$19750_linkingSession,googleScopes:A.googleScopes,callerState:A.callerState}};var KHB=function(A,H){this.config=A;this.galService=H.getService();this.JSC$19763_galRepository=H.JSC$19781_galRepository};
KHB.prototype.getLink=function(A,H){return sYI(this,A,H)};
var sYI=function(A,H,k){return A.JSC$19763_galRepository.getLink({serviceId:H,scopes:void 0,capabilities:void 0,linkName:k}).then(function(d){return{statusCode:1,link:d}}).catch(function(d){return{statusCode:CwI(d.code),
statusMessage:d.message}})};
KHB.prototype.deleteLink=function(A,H){return this.JSC$19763_galRepository.deleteLink(A,this.config.accountLinkingEntryPoint,H).then(function(){return{statusCode:1}}).catch(function(k){return{statusCode:CwI(k.code),
statusMessage:k.message}})};
KHB.prototype.startLinkingSession=function(A){var H=A.serviceId;var k=A.sessionId;return IeB({serviceId:H,sessionId:k!==void 0?k:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:A.loginHint,callerState:A.callerState,consentLanguageKeys:A.consentLanguageKeys,linkName:A.linkName,dynamicUrlParameters:A.dynamicUrlParameters,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp})};var aQ=function(A,H,k,d,W,z,u){this.apiKey=H;this.authUser=k;this.oauthToken=d;this.bucket=W;this.locale=z;this.galSdkEventHandler=u;if(d===void 0){if(H===void 0)throw Error("tk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new i4I(A)};
aQ.prototype.deleteLink=function(A){var H=A.serviceId;var k=A.sessionId;var d=A.accountLinkingEntryPoint;var W=A.linkName;var z=this,u;return _.e(function(B){var h=(new GY).setHeader(z.getHeader(k));var O=kdI({serviceId:H,linkName:W});h=_.Sn(h,2,O);u=_.bp(h,3,d);return B.return(z.makeRequest(z.galServiceClient.deleteLink,u,[1,3],[2,4]))})};
var QDB=function(A,H){var k=H.serviceId;var d=H.sessionId;var W=H.dynamicUrlParameters;var z=H.redirectState;var u=H.consentLanguageKeys;var B=H.partnerConfigMinReadTimestamp;var h;return _.e(function(O){var T=(new Xu).setHeader(A.getHeader(d,W));T=_.F1(T,2,k);h=_.F1(T,4,z);u!==void 0&&_.F1(h,5,u);B!==void 0&&_.Sn(h,6,B);return O.return(A.makeRequest(A.galServiceClient.JSC$19648_finishOAuth,h,[1,3],[2,4]))})};
aQ.prototype.getLink=function(A){var H=A.serviceId;var k=A.sessionId;var d=A.scopes;var W=A.capabilities;var z=A.consistencyKey;var u=A.linkName;var B=this,h;return _.e(function(O){var T=(new DC).setHeader(B.getHeader(k)),m=kdI({serviceId:H,scopes:d,capabilities:W,linkName:u});h=_.Sn(T,2,m);z!==void 0&&(T=rqR(),T=_.F1(T,2,z),_.Sn(h,3,T));return O.return(B.makeRequest(B.galServiceClient.getLink,h,[1,3],[2,4]))})};
var T41=function(A,H){var k=H.serviceId;var d=H.sessionId;var W=H.googleScopes;var z=H.consistencyKey;var u;return _.e(function(B){var h=(new Fu).setHeader(A.getHeader(d));h=_.F1(h,2,k);var O=Array.from(W.values());h=_.dO(h,3,O,_.I_);O=rqR();O=_.F1(O,2,z);u=_.Sn(h,4,O);return B.return(A.makeRequest(A.galServiceClient.JSC$19648_depositGoogleCredential,u,[1,3],[2,4]))})};
aQ.prototype.startLinkingSession=function(A){var H=A.serviceId;var k=A.sessionId;var d=A.scopes;var W=A.capabilities;var z=A.loginHint;var u=A.supportedFlows;var B=A.completionUrl;var h=A.usePingPong;var O=A.twoWayLinking;var T=A.accountLinkingEntryPoint;var m=A.callerState;var J=A.consentLanguageKeys;var g=A.googleScopes;var v=A.dataUsageNoticeConfig;var y=A.linkName;var X=A.dynamicUrlParameters;var D=A.partnerConfigMinReadTimestamp;var K=this,N,U;return _.e(function(p){if(W!==void 0&&d!==void 0)throw Error("pk");
var M=(new GlL).setHeader(K.getHeader(k,X));N=_.F1(M,2,H);y!==void 0&&_.F1(N,14,y);if(W!==void 0){M=N;var Z=Array.from(W.values());_.dO(M,5,Z,_.I_)}else d!==void 0&&(M=N,Z=Array.from(d.values()),_.dO(M,3,Z,_.I_));B!==void 0&&_.F1(N,6,B);h!==void 0&&_.BB(N,15,h);u!==void 0&&(M=N,Z=Array.from(u.values()),_.dO(M,4,Z,_.rL));if(O!==void 0){if(O&&(!g||g.size===0))throw Error("uk");_.BB(N,8,O)}T!==void 0&&_.bp(N,9,T);z!==void 0&&_.F1(N,13,z);m!==void 0&&(M=N,Z=(new TextEncoder).encode(m),_.zw(M,12,_.SA(Z,
!1),_.D1()));J!==void 0&&_.F1(N,16,J);D!==void 0&&_.Sn(N,18,D);if(v!==void 0&&v.size>0||g!==void 0&&g.size>0)U=new PrV,g!==void 0&&g.size>0&&(M=U,Z=Array.from(g.values()),_.dO(M,1,Z,_.I_)),v!==void 0&&(v.has(0)&&_.$iI(U,2,_.rL,1,_.uQ),v.has(1)&&_.$iI(U,2,_.rL,2,_.uQ)),_.Sn(N,17,U);return p.return(K.makeRequest(K.galServiceClient.startLinkingSession,N,[1],[2]))})};
aQ.prototype.getMetadata=function(){var A=this,H,k;return _.e(function(d){H={};A.useFpa?(H["X-Goog-Api-Key"]=A.apiKey,H["X-Goog-AuthUser"]=A.authUser!==void 0?A.authUser.toString():"0",(k=_.MDW([]))&&(H.Authorization=k)):H.Authorization="Bearer "+A.oauthToken;A.locale&&(H["accept-language"]=A.locale);return d.return(H)})};
aQ.prototype.makeRequest=function(A,H,k,d){var W=this,z;return _.e(function(u){if(u.nextAddress==1)return u.yield(W.getMetadata(),2);z=u.yieldResult;dE1(W,k);return u.return(A.bind(W.galServiceClient)(H,z).finally(function(){dE1(W,d)}))})};
var dE1=function(A,H){A.galSdkEventHandler!==void 0&&H.forEach(function(k){A.galSdkEventHandler.onEvent(k)})};
aQ.prototype.getHeader=function(A,H){var k=new IQ;A=_.zw(k,2,_.BR(A),0);A=_.bp(A,5,3);H=_.dO(A,8,H,_.I_);this.bucket!==void 0&&_.F1(H,1,this.bucket);return H};
var kdI=function(A){var H=A.serviceId;var k=A.scopes;var d=A.capabilities;A=A.linkName;if(d!==void 0&&k!==void 0)throw Error("pk");var W=new z1L;H=_.F1(W,1,H);d!==void 0?(k=Array.from(d.values()),_.dO(H,5,k,_.I_)):k!==void 0&&(k=Array.from(k.values()),_.dO(H,3,k,_.I_));A!==void 0&&_.F1(H,6,A);return H};var aeG=function(A){this.galService=new aQ(A.alsDomain,A.apiKey,A.authUser,A.oauthToken,A.bucket,A.locale,A.galSdkEventHandler);this.JSC$19781_galRepository=new F1B(this.galService)};
aeG.prototype.getService=function(){return this.galService};var WLL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(WLL,_.OW);var zDR=function(A){var H=new WLL;return _.HL(H,1,A)};
WLL.prototype.setErrorMessage=function(A){return _.qC(this,2,A)};var qQ_=[0,_.lp,_.aX,_.lp];var ca=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(ca,_.OW);var ry_=[0,[1,2,3],_.VV,[0,_.lyZ,B11,-1],_.VV,[0,uqL,-1],_.pX];var uYQ=[0,_.Sa,1,_.lp,_.aX,-1,1,_.E8,_.FM,_.lp,-1,ry_];var BC3=[0,_.lp,[0,_.E8,_.FM,[0,_.aX]],_.CX,[0,_.lp,-1]];var hi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(hi,_.OW);var eDe=[0,_.aX,_.lp,-2,_.Sa,_.lp,_.Sa,_.lp,-2,1,_.CX];var xEB=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(xEB,_.OW);var i1V=[0,_.Sa];var hD3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(hD3,_.OW);var O1V=[0,_.lp,BC3,i1V,eDe,uYQ];var FvQ=_.Pz(hD3,O1V);var RD_=[0,hgB];var csL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(csL,_.OW);var TCL=[0,[1,3],ioM,_.lp,ioM];var aO3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(aO3,_.OW);var mEB=[0,_.lp];var Jyi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Jyi,_.OW);var pSB=function(A){return _.JY(A,WLL,2,x4)},gfR=function(A){var H=new Jyi;
return _.Cx(H,2,x4,A)},x4=[1,
2];var b1e=[0,x4,_.VV,mEB,_.VV,qQ_,_.QV,TCL,1,_.lp,RD_];var LL1=[0,1,[0,[1,2,3],_.VV,[0],_.VV,[0,T1R],_.VV,[0,hgB]]];var vfL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(vfL,_.OW);var jY3=function(A){var H=new vfL;return _.Cx(H,3,yyQ,A)},yyQ=[2,
3];var I4B=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(I4B,_.OW);var YQ_=function(A,H){return _.Sn(A,2,H)},P$_=function(A,H){return _.Sn(A,8,H)},GdR=function(A,H){return _.Sn(A,3,H)};var FLI=[0,_.lp,b1e,O1V,_.tK,[0,[5,6,7],[0,_.lp,-2],[0,_.Sa,_.lp,_.aX],[0,ry_],[0,_.aX,_.lp,-1,_.lP,_.lp],_.VV,[0,[0,_.Sa],_.lp,-1],_.VV,[0,[3,4],_.lp,-1,_.VV,[0,[0,_.lp,_.CX]],_.VV,[0,[0,[0,[1,2,3],_.VV,[0],_.VV,[0],_.VV,[0]]]]],_.VV,[0,_.lp]],_.tK,-1,[0,yyQ,_.lp,_.VV,mEB,_.VV,qQ_,_.QV,TCL,[0,hgB],LL1]];var XiV=_.Pz(I4B,FLI),DEQ=_.Ff(FLI);var SQM=function(){_.dF.call(this)};
_.I(SQM,_.dF);SQM.prototype.init=function(){};
new SQM;_.Vj();var C$B=_.XO(["data-"]),KLR=_.XO(["aria-"]),a4_=_.XO(["aria-"]),p_=function(A,H){this.isLatencyMeasurementExperiment=A===void 0?!1:A;this.enableDialogA11yFix=H===void 0?!1:H;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.fLm(_.k8.location.href)},D33=function(A,H){A.onConsentPrimitiveShownCallback=H},cyR=function(A,H){return A.overriddenIframeLoadTimeout?A.overriddenIframeLoadTimeout:H!==void 0?H:5E3},CxM=function(A){if(A.prewarmPromise!==void 0)return A.prewarmPromise;
A.prewarmPromise=new Promise(function(H,k){Qg(A,1);piR(A,QYM(A,!0),VdL(A));A.iframe?A.prewarmChannel||EfB(A,A.iframe,H):k(Error("vk"))});
A.prewarmPromise.finally(function(){A.prewarmPromise=void 0});
return A.prewarmPromise};
p_.prototype.showPrimitive=function(){var A=this;if(this.consentPromise!==void 0)return this.consentPromise;var H=Date.now();UEB(this,H);this.consentPromise=new Promise(function(k,d){Qg(A,0,H);var W=A.isDarkTheme();A.isLatencyMeasurementExperiment||A.initialLoadingStrategy===1||A.initialLoadingStrategy===2||(A.loadingBar||(A.loadingBar=Vs_(getComputedStyle(document.body).direction==="rtl",W),A.loadingBar.style.position="fixed",A.loadingBar.style.zIndex="15000"),document.body.appendChild(A.loadingBar));
piR(A,QYM(A),VdL(A));A.iframe?A.channel||l4_(A,A.iframe,k,d):(td_(A),d(Error("vk")))});
this.consentPromise.finally(function(){A.consentPromise=void 0});
return this.consentPromise};
var l4_=function(A,H,k,d){var W,z;_.e(function(u){switch(u.nextAddress){case 1:Qg(A,3);W=!1;setTimeout(function(){if(!W){td_(A);NCL(A);Md_(A);var B=zDR(7).setErrorMessage("Timeout connecting to iframe");k(P$_(YQ_(new I4B,gfR(B)),jY3(B)))}},cyR(A,nfQ(A)));
if(!A.prewarmPromise){u.jumpTo(2);break}_.S_(u,3);return u.yield(A.prewarmPromise,5);case 5:_.QN(u,2);break;case 3:_.VA(u),z=zDR(4).setErrorMessage("Error while prewarming."),k(P$_(YQ_(new I4B,gfR(z)),jY3(z)));case 2:A.prewarmChannel&&A.prewarmChannel.send(DEQ(GdR(new I4B,A.consentPrimitiveRequest))),A.channel=_.nX({destination:A.win,iframe:H,origin:Z1_(A),channelName:"cpw",onEstablished:function(){W=!0;td_(A);A.isLatencyMeasurementExperiment||(A.JSC$19810_previousBodyOverflow=document.body.style.overflow,
A.JSC$19810_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,A.JSC$19810_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",A.enableDialogA11yFix&&window.addEventListener("blur",A.focusChangeListener));var B=A.iframe;B.style.bottom="0";B.style.position="fixed";B.style.right="0";B.style.border="none";B.style.left="0";B.style.top=
"0";B.style.zIndex="5000";B.style.pointerEvents="";B.style.visibility="";A.initialLoadingStrategy===2||A.initialLoadingStrategy===3?Qg(A,4):Qg(A,6);var h;(h=A.onConsentPrimitiveShownCallback)==null||h.call(A)},
onMessage:function(B){B=XiV(B.data);switch(_.RX(B,1)){case 1:NCL(A);var h=EIB(_.Af(B,_.RI,7));h&&(A.initialLoadingStrategy!==2&&A.initialLoadingStrategy!==3||Qg(A,6,h),Qg(A,5,h));if(h=EIB(_.Af(B,_.RI,6)))Qg(A,7,h),Qg(A,8);var O,T;((O=_.Af(B,Jyi,2))==null?void 0:_.qJ(O,x4))!==0&&((T=_.Af(B,vfL,8))==null?void 0:_.qJ(T,yyQ))!==0||d(Error("wk"));k(B);break;case 2:Md_(A)}}}),_.EN(u)}})},EfB=function(A,H,k){A.prewarmChannel=_.nX({destination:A.win,
iframe:H,origin:Z1_(A),channelName:"pwcp",onEstablished:function(){Qg(A,2);k()}})},Z1_=function(A){var H=_.QB(A.src).toString();
return H&&H.indexOf("://")<0&&H.indexOf("//")!==0?A.origin:_.fLm(H)},QYM=function(A,H){H=H===void 0?!1:H;
var k,d=new Map([["origin",A.origin],["hl",(k=f41(A))!=null?k:null]]);H&&d.set("pw","1");H=_.r([["cpr",A.consentPrimitiveRequest.serialize()]]);for(k=H.next();!k.done;k=H.next()){var W=_.r(k.value);k=W.next().value;W=W.next().value;d.set(k,W)}A.isDarkTheme()&&d.set("color_scheme","dark");return _.Yd(A.src,d)},td_=function(A){A.isLatencyMeasurementExperiment||A.loadingBar&&document.body.removeChild(A.loadingBar)};
p_.prototype.getSrc=function(){var A=_.te(this.origin),H;var k=(H=_.Af(this.consentPrimitiveRequest,xEB,3))==null?void 0:_.QJ(H,1);H="consent.google.com";k=k?"/u/"+encodeURIComponent(k.toString()):"";(A==null?0:A.endsWith("youtube.com"))?H="consent.youtube.com":(A=A==null?void 0:A.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(H="consent.google."+((A[1]?"co.":"")+encodeURIComponent(A[2])));return _.px("https://"+H+"/signedin"+k+"/landing")};
var piR=function(A,H,k){A.iframe||(A.iframe=document.createElement("iframe"),A.iframe.style.width="100%",A.iframe.style.height="100%",k!==112496729&&(A.iframe.style.colorScheme="auto"),A.isLatencyMeasurementExperiment&&(A.iframe.style.display="none"),_.zM(A.iframe,H),A.iframe.setAttribute("jsname","C5o1O"),wi1(A.iframe),document.body.appendChild(A.iframe))},wi1=function(A){A.style.bottom="-200vh";
A.style.position="fixed";A.style.right="-200vw";A.style.border="";A.style.left="";A.style.top="";A.style.zIndex="";A.style.pointerEvents="none";A.style.visibility="hidden"},NCL=function(A){A.iframe&&(A.isLatencyMeasurementExperiment||(A.JSC$19810_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=A.JSC$19810_previousHtmlOverscroll),A.JSC$19810_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=A.JSC$19810_previousBodyOverscroll),A.JSC$19810_previousBodyOverflow!==
void 0&&(document.body.style.overflow=A.JSC$19810_previousBodyOverflow),A.enableDialogA11yFix&&ofB(A,!1)),wi1(A.iframe))};
p_.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(ofB(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var ofB=function(A,H){var k,d,W=(k=A.iframe)==null?void 0:(d=k.parentElement)==null?void 0:d.children;if(W)for(k=0;k<W.length;k++)d=W[k],d!==A.iframe&&(H?(d.hasAttribute("aria-hidden")&&_.R4([_.y6(C$B)],d,"data-old-aria-hidden",d.getAttribute("aria-hidden")),_.R4([_.y6(KLR)],d,"aria-hidden","true")):(d.removeAttribute("aria-hidden"),d.hasAttribute("data-old-aria-hidden")&&(_.R4([_.y6(a4_)],d,"aria-hidden",d.getAttribute("data-old-aria-hidden")),d.removeAttribute("data-old-aria-hidden"))))},Qg=function(A,
H,k){var d;
(d=A.latencyCallback)==null||d.call(A,{latencyType:H,timestampEpochMillis:k!=null?k:Date.now()})};var $EL=function(A,H,k){p_.call(this,H,k===void 0?!1:k);this.consentPrimitiveRequest=A;A=f41(this);_.rkW(A);this.src=this.getSrc();var d;this.initialLoadingStrategy=(d=_.Af(this.consentPrimitiveRequest,hi,4))==null?void 0:_.RX(d,4)},AU1;
_.I($EL,p_);var XSG=function(A){A={request:A,enableDialogA11yFix:!0};AU1||(AU1=new $EL(A.request,A.isLatencyMeasurementExperiment||_.RX(A.request,1)===2,A.enableDialogA11yFix));return AU1},f41=function(A){var H;
return(H=_.Af(A.consentPrimitiveRequest,hi,4))==null?void 0:_.O8(H,1)},UEB=function(A,H){if(!_.dd(A.consentPrimitiveRequest,ca,5)){var k=A.consentPrimitiveRequest,d=new ca;
_.Sn(k,5,d)}var W;if((W=_.Af(A.consentPrimitiveRequest,ca,5))==null||_.AGA(W,8)==null){var z;(z=_.Af(A.consentPrimitiveRequest,ca,5))!=null&&_.hb(z,8,H)}},VdL=function(A){var H;
return(H=_.Af(A.consentPrimitiveRequest,ca,5))==null?void 0:_.QJ(H,1)};
$EL.prototype.isDarkTheme=function(){var A;return((A=_.Af(this.consentPrimitiveRequest,hi,4))==null?void 0:_.RX(A,2))===2};
var nfQ=function(A){var H;return((H=_.Af(A.consentPrimitiveRequest,hi,4))==null?void 0:_.QJ(H,5))||void 0},Md_=function(A){A.channel=void 0;
A.prewarmChannel=void 0;A.iframe&&(document.body.contains(A.iframe)&&document.body.removeChild(A.iframe),A.iframe=void 0);AU1=void 0},KvQ=function(A){return p_.prototype.showPrimitive.call(A).then(function(H){return _.Af(H,Jyi,2)})};for(var Vg={},HML=(Vg[64]="ma",Vg[73]="ogb",Vg[89]="cr",Vg[21]="test",Vg[0]="unkn",Vg[137]="con",Vg[155]="hl",Vg[78]="yt",Vg[171]="lp",Vg[172]="ap",Vg[177]="amo",Vg[178]="pqe",Vg[74]="gg",Vg[1]="gm",Vg[140]="am",Vg[193]="sc",Vg),shR=_.r(Object.keys(HML)),kBG=shR.next();!kBG.done;kBG=shR.next());var dYM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(dYM,_.OW);var WlL=[0,[2,3,4],_.lp,rgI,ioM,_.pX];var zPI=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(zPI,_.OW);var q7e=_.Pz(zPI,[0,_.tY,_.aX,_.lp,_.aX,_.lp,WlL]);var rUQ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(rUQ,_.OW);rUQ.prototype.getCommand=function(){return _.RX(this,1)};
var ujQ=function(){var A=new rUQ;return _.bp(A,1,0)};var BXL=_.Ff([0,_.tY,_.aX,[0,_.lp,_.aX,-1]]);var ePi=new _.r3("s"),xYe=new _.r3("t"),iMQ=new _.r3("u"),hP_=new _.r3("v"),OM_=function(A,H,k){_.NZ.call(this,ePi);this.mediaKey=A;this.photoUrl=H;this.photoSource=k};
_.I(OM_,_.NZ);var RPV=function(){_.NZ.call(this,xYe)};
_.I(RPV,_.NZ);var TXM=function(A){A=A===void 0?!1:A;_.NZ.call(this,iMQ);this.isError=A};
_.I(TXM,_.NZ);var mYB=function(){_.NZ.call(this,hP_)};
_.I(mYB,_.NZ);var JUM=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,vO1=function(A){if(typeof A=="string"){if(A.charAt(0)==".")return gO_(A.substr(1));if(A.charAt(0)=="["){var H=JUM.exec(A);A=A.indexOf("=")==-1?void 0:H[3];return bML(H[1],A)}return Ll1(A)}return A},gO_=function(A){return function(H){return H.getAttribute&&_.SP(H,A)}},bML=function(A,H){return function(k){return H!==void 0?k.getAttribute&&k.getAttribute(A)==H:k.hasAttribute&&k.hasAttribute(A)}},Ll1=function(A){A=A.toUpperCase();
return function(H){return(H=H.tagName)&&H.toUpperCase()==A}},yUe=function(){return!0};var E_=function(A,H){this.JSC$19838_key_=A;this.JSC$19838_value_=H},jhM=function(A){throw Error("xk`"+A.JSC$19838_key_);
},IbL=function(A,H){return new TypeError("yk`"+H+"`"+A.JSC$19838_key_+"`"+A.JSC$19838_value_+"`"+typeof A.JSC$19838_value_)};
E_.prototype.string=function(A){return arguments.length==0?Y7i(this):PUV(this,A)};
var PUV=function(A,H){var k;return(k=GBe(A))!=null?k:H},Y7i=function(A){var H=GBe(A);
H===null&&jhM(A);return H},GBe=function(A){var H=A.JSC$19838_value_;
if(H==null)return null;if(typeof H==="string")return H;throw IbL(A,"string");};
E_.prototype.bool=function(A){if(arguments.length==0){var H=this.optionalBool();H===null&&jhM(this)}else{var k;H=(k=this.optionalBool())!=null?k:A}return H};
E_.prototype.optionalBool=function(){var A=this.JSC$19838_value_;if(A==null)return null;if(typeof A==="boolean")return A;if(typeof A==="string"){A=A.toLowerCase();if(A==="true"||A==="1")return!0;if(A==="false"||A==="0")return!1}throw IbL(this,"boolean");};
E_.prototype.number=function(A){if(arguments.length==0){var H=FlQ(this);H===null&&jhM(this)}else H=X2L(this,A);return H};
var X2L=function(A,H){var k;return(k=FlQ(A))!=null?k:H},FlQ=function(A){var H=A.JSC$19838_value_;
if(H==null)return null;if(typeof H==="number")return H;if(typeof H==="string"){var k=Number(H);if(!isNaN(k)&&(k!==0||H.trim().length!==0))return k}throw IbL(A,"number");};
E_.prototype.toString=function(){return Y7i(this)};
E_.prototype.enum=function(A,H){var k=!0,d=void 0,W;for(W in A){var z=A[W];k&&(k=!1,d=typeof z==="number"?X2L(this,H):PUV(this,H));if(z==d)return d}JSON.stringify(A);return d};
E_.prototype.array=function(A){if(arguments.length==0){var H=DYL(this);H===null&&jhM(this);return H}H=DYL(this);return H==null?A:H};
var DYL=function(A){var H=A.JSC$19838_value_;if(H==null)return null;Array.isArray(H)||(typeof H!=="string"?H=[H]:(H=H.trim(),H=H==""?[]:H.split(",").map(function(k){return k.trim()})));
return S7_(A,H)},S7_=function(A,H){var k=A.JSC$19838_key_+"[";
return Array.from(H,function(d,W){return new E_(k+W+"]",d)})};
E_.prototype.object=function(A){var H=this.JSC$19838_value_;if(H==null)return A===void 0&&jhM(this),A;if(typeof H==="object"&&H.constructor===Object){A={};var k=this.JSC$19838_key_+".",d;for(d in H)A[d]=new E_(k+d,H[d]);return A}throw IbL(this,"object");};var U_=function(A){this.list_=CU1(A)},CU1=function(A){if(A instanceof U_)A=A.list_;
else if(A[0]instanceof U_){for(var H=new Set,k=0;k<A.length;k++)for(var d=_.r(A[k].list_),W=d.next();!W.done;W=d.next())H.add(W.value);A=H}return[].concat(_.fV(A))};
_.q=U_.prototype;_.q.each=function(A,H,k){((k===void 0?0:k)?dnB:_.t3)(this.list_,A,H);return this};
_.q.size=function(){return this.list_.length};
_.q.isEmpty=function(){return this.list_.length===0};
_.q.get=function(A){return this.list_[A]||null};
_.q.el=function(){return this.list_[0]||null};
_.q.map=function(A,H){return _.hj(this.list_,A,H)};
_.q.equals=function(A){return this===A||_.wI(this.list_,A.list_)};
_.q.first=function(){return this.list_.length==0?null:new ln(this.list_[0])};
_.q.last=function(){return this.list_.length==0?null:new ln(this.list_[this.list_.length-1])};
_.q.find=function(A){var H=[];this.each(function(k){k=k.querySelectorAll(String(A));for(var d=0;d<k.length;d++)H.push(k[d])});
return new U_(H)};
_.q.parent=function(){var A=[];this.each(function(H){(H=H.parentElement||null)&&!_.VW(A,H)&&A.push(H)});
return new U_(A)};
_.q.children=function(){var A=[];this.each(function(H){H=_.jm(H);for(var k=0;k<H.length;k++)A.push(H[k])});
return new U_(A)};
_.q.filter=function(A){A=_.Ne(this.list_,vO1(A));return new U_(A)};
_.q.closest=function(A){var H=[],k=vO1(A),d=function(W){return _.Zd(W)&&k(W)};
this.each(function(W){(W=_.Jj(W,d,!0))&&!_.VW(H,W)&&H.push(W)});
return new U_(H)};
_.q.next=function(A){return KlV(this,_.ngA,A)};
_.q.prev=function(A){return KlV(this,Oo_,A)};
var KlV=function(A,H,k){var d=[];var W=k?vO1(k):yUe;A.each(function(z){(z=H(z))&&W(z)&&d.push(z)});
return new U_(d)};
U_.prototype.setClass=function(A){return this.each(function(H){_.DO(H,A)})};
var abB=function(A,H){return A.each(function(k){_.Y5(k,H)})},cUe=function(A,H){return A.each(function(k){_.Iy(k,H)})};
U_.prototype.toggleClass=function(A,H){return H===!0?abB(this,A):H===!1?cUe(this,A):this.each(function(k){_.SP(k,A)?_.Iy(k,A):_.Y5(k,A)})};
U_.prototype.setText=function(A){return this.each(function(H){_.IM(H,A)})};
var p2_=function(A){A.each(function(H){H.removeAttribute("aria-hidden")})};
U_.prototype.getStyle=function(A){if(this.list_.length>0){var H=this.list_[0],k=H.style[_.o1(A)];return typeof k!=="undefined"?k:H.style[_.zcw(H,A)]||""}};
U_.prototype.getData=function(A){if(this.list_.length===0)return new E_(A,null);var H=O2L(this.list_[0],A);return new E_(A,H)};
U_.prototype.focus=function(A){try{A?this.el().focus(A):this.el().focus()}catch(H){}return this};
U_.prototype.click=function(){var A=_.TE(this.el());if(A.createEvent){var H=A.createEvent("MouseEvents");H.initMouseEvent("click",!0,!0,A.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(H)}else A=A.createEventObject(),A.clientX=0,A.clientY=0,A.screenX=0,A.screenY=0,A.altKey=!1,A.ctrlKey=!1,A.shiftKey=!1,A.button=0,this.el().fireEvent("onclick",A)};
var ti=function(A,H,k,d){function W(B,h,O){var T=h;h&&h.parentNode&&(T=h.cloneNode(!0));B(T,O)}
d=d===void 0?!1:d;if(A.list_.length==1){var z=A.list_[0],u=function(B){return H(B,z)};
k instanceof U_?k.each(u,void 0,d):Array.isArray(k)?(d?dnB:_.t3)(k,u):u(k);return A}return A.each(function(B){k instanceof U_?k.each(function(h){W(H,h,B)}):Array.isArray(k)?_.t3(k,function(h){W(H,h,B)}):W(H,k,B)})};
_.q=U_.prototype;_.q.append=function(A){return ti(this,function(H,k){H&&k.appendChild(H)},A)};
_.q.appendTo=function(A){(new U_([A])).append(this);return this};
_.q.remove=function(){return ti(this,function(A,H){_.Aw(H)},null)};
_.q.empty=function(){return ti(this,function(A,H){_.LO(H)},null)};
_.q.after=function(A,H){return ti(this,function(k,d){k&&_.yZ(k,d)},A,!(H===void 0||H))};
_.q.before=function(A){return ti(this,function(H,k){H&&_.vJ(H,k)},A)};
_.q.replaceWith=function(A){return ti(this,function(H,k){H&&_.tBw(H,k)},A)};
_.q.toggle=function(A){return this.each(function(H){_.U9(H,A)})};
_.q.show=function(){return this.toggle(!0)};
_.q.hide=function(){return this.toggle(!1)};
_.q.trigger=function(A,H,k,d){return QhB(this,A,H,k,d)};
var QhB=function(A,H,k,d,W){return A.each(function(z){_.PZX(_.TE(z)).triggerWizEventInternal(z,H,k,d,W)})},ln=function(A,H){A instanceof U_&&(H=A.list_,A=null);
this.list_=CU1(A!=null?[A]:H)};
_.EK(ln,U_);_.q=ln.prototype;_.q.children=function(){return new U_(Array.prototype.slice.call(_.jm(this.list_[0])))};
_.q.each=function(A,H){A.call(H,this.list_[0],0);return this};
_.q.size=function(){return 1};
_.q.el=function(){return this.list_[0]};
_.q.first=function(){return this};var Nj=function(A,H){H=H===void 0?window:H;this.hostId=A;this.win=H;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$19849_previousHtmlOverscroll=this.JSC$19849_previousBodyOverscroll=this.JSC$19849_previousBodyOverflow="";this.eventTarget=new _.Is;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},UYG=function(A){var H=
V$_(V$_(V$_(new EOG(78),"po"),"hppp"),"hhc");
H.authUser=Number(_.pZ("SESSION_INDEX","0"));H.colorScheme=A;return H};
Nj.prototype.getOrigin=function(){return this.origin?this.origin:_.Vh(_.Qh(_.pf(new _.PB,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
Nj.prototype.getTargetOrigin=function(){return _.Vh(_.Qh(_.pf(new _.PB,this.scheme),this.domain),this.port)};
Nj.prototype.preloadIframe=function(A){var H=this;if(this.iframeLoadPromise===void 0){var k=document.createElement("iframe");this.iframe=k;ZFL(k,A);this.iframeLoadPromise=new Promise(function(d,W){var z=!1,u=function(B){B.stopPropagation();k.removeEventListener("error",u);k.removeEventListener("securitypolicyviolation",u);W(Error("zk",{cause:B}))};
k.addEventListener("error",u);k.addEventListener("securitypolicyviolation",u);setTimeout(function(){z||W(Error("Ak"))},3E4);
lbB(H,k,function(){z=!0;k.removeEventListener("error",u);k.removeEventListener("securitypolicyviolation",u);d()})});
t$e(this);A=this.getTargetOrigin().toString();k.setAttribute("allow","camera "+A+"; display-capture "+A);this.parentElement.appendChild(k)}return this.iframeLoadPromise};
var nOM=function(A,H){var k,d;return _.e(function(W){if(W.nextAddress==1)return k=Vs_(getComputedStyle(A.parentElement).direction==="rtl"),A.parentElement.appendChild(k),document.activeElement instanceof HTMLElement&&(A.elementToFocusAfterClose=document.activeElement),_.S_(W,2),W.yield(A.preloadIframe(H),4);if(W.nextAddress!=2){A.parentElement.removeChild(k);A.JSC$19849_previousBodyOverflow=A.parentElement.style.overflow;A.JSC$19849_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
A.JSC$19849_previousBodyOverscroll=A.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";A.parentElement.style.overscrollBehavior="contain";A.parentElement.style.overflow="hidden";var z=A.iframe;z.style.bottom="0";z.style.border="none";z.style.height="100%";z.style.left="0";z.style.position=A.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");
A.opened=!0;NXG(A);return _.QN(W,0)}d=_.VA(W);A.parentElement.removeChild(k);N4G(A.isDarkTheme());M$R(A,!1);throw Error("Bk",{cause:d});})},M$R=function(A,H){H=H===void 0?!0:H;
A.iframe!==void 0&&(ZM_(A),document.documentElement.style.overscrollBehavior=A.JSC$19849_previousHtmlOverscroll,A.parentElement.style.overscrollBehavior=A.JSC$19849_previousBodyOverscroll,A.parentElement.style.overflow=A.JSC$19849_previousBodyOverflow,A.elementToFocusAfterClose!==void 0&&(A.elementToFocusAfterClose.focus(),A.elementToFocusAfterClose=void 0),H?t$e(A):(A.parentElement.removeChild(A.iframe),A.iframe=void 0,A.iframeLoadPromise=void 0,A.mainChannel=void 0),A.opened=!1)},ZM_=function(A){A.backgroundElementsAriaHiddenIsNull&&
(p2_(A.backgroundElementsAriaHiddenIsNull),A.backgroundElementsAriaHiddenIsNull=void 0);
A.backgroundElementsAriaHiddenIsFalse&&(A.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","false")}),A.backgroundElementsAriaHiddenIsFalse=void 0);
A.backgroundElementsWithoutInert&&(A.backgroundElementsWithoutInert.each(function(H){H.removeAttribute("inert")}),A.backgroundElementsWithoutInert=void 0)},NXG=function(A){A.backgroundElementsAriaHiddenIsNull=(new ln(A.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")===null&&H!==A.iframe});
A.backgroundElementsAriaHiddenIsNull.each(function(H){H.setAttribute("aria-hidden","true")});
A.backgroundElementsAriaHiddenIsFalse=(new ln(A.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")==="false"&&H!==A.iframe});
A.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","true")});
A.backgroundElementsWithoutInert=(new ln(A.iframe.parentElement)).children().filter(function(H){return!H.hasAttribute("inert")&&H!==A.iframe});
A.backgroundElementsWithoutInert.each(function(H){H.setAttribute("inert","true")})},t$e=function(A){A=A.iframe;
A.style.bottom="-1000px";A.style.position="fixed";A.style.right="-1000px";A.style.border="";A.style.height="";A.style.left="";A.style.top="";A.style.width="";A.style.zIndex="";A.setAttribute("aria-hidden","true");A.setAttribute("aria-modal","false")};
Nj.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var EOG=function(A,H){Nj.call(this,HML[A],H);this.options=[];this.style=""};
_.I(EOG,Nj);var fbB=function(A){A.style="youtube";return A},w21=function(A,H){A.eventTarget.listen(iMQ,H);
return A},oOQ=function(A,H){A.eventTarget.listen(ePi,H);
return A},V$_=function(A,H){A.options.push(H);
return A},$Y_=function(A){var H=[A.getOrigin()];
A.ancestorOrigins&&H.push.apply(H,_.fV(A.ancestorOrigins));var k=new _.PB(A.win.location.href),d=A.startUrl?A.startUrl:A.options.includes("po")?"profile-picture/art":"profile-picture";H=W7I(_.Ex(A.getTargetOrigin(),d),"origin",H);A.startUrl&&_.VT(H,"startPath",A.startUrl);A.authUser>0&&_.VT(H,"authuser",A.authUser);A.pageId!==void 0&&_.VT(H,"pageId",A.pageId);_.VT(H,"hostId",A.hostId);A.jsMode!==void 0&&_.VT(H,"jsmode",A.jsMode);A.rectangleRatio!==void 0&&_.VT(H,"rectangleRatio",A.rectangleRatio);
A.options.length>0&&_.VT(H,"opts",A.options.join(","));try{for(var W=_.r(["utm_source","utm_medium","utm_campaign","utm_content"]),z=W.next();!z.done;z=W.next()){var u=z.value;_.QT(k,u)&&_.VT(H,u,_.QT(k,u))}var B,h=(B=A.hl)!=null?B:_.QT(k,"hl");h!==void 0&&_.VT(H,"hl",h)}catch(O){if(!(O instanceof URIError))throw O;}A.colorScheme&&_.VT(H,"theme",A.colorScheme);A.style&&_.VT(H,"style",A.style);return H},A0_=function(A,H){A.mainChannel=_.nX({destination:A.win,
iframe:H,origin:A.getTargetOrigin().toString(),channelName:"ow",onMessage:function(k){k=q7e(k.data);if(H===A.iframe)switch(_.RX(k,1)){case 1:A.eventTarget.dispatchEvent(new TXM);M$R(A);break;case 2:A.eventTarget.dispatchEvent(new OM_(_.O8(k,4),_.O8(k,2),_.RX(k,5),_.Af(k,dYM,6)));break;case 0:var d;A.eventTarget.dispatchEvent(new RPV(_.O8(k,2),(d=_.RX(k,3))!=null?d:0));break;case 3:A.eventTarget.dispatchEvent(new TXM(!0));M$R(A,!1);break;case 4:A.eventTarget.dispatchEvent(new mYB)}}})},lbB=function(A,
H,k){_.nX({destination:A.win,
iframe:H,origin:_.Vh(_.Qh(_.pf(new _.PB,A.scheme),A.domain),A.port).toString(),channelName:"owi",onMessage:function(d){H===A.iframe&&(k!==void 0&&k(),A0_(A,H),A.opened&&A.mainChannel.send(BXL(ujQ())),d.reply(),lbB(A,H))}})};
EOG.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Nj.prototype.preloadIframe.call(this,$Y_(this).toString()):this.iframeLoadPromise};
EOG.prototype.openPicker=function(A){var H=this;return _.e(function(k){if(k.nextAddress==1)return H.startUrl=A?A:H.options.includes("po")?"profile-picture/art":"profile-picture",k.yield(nOM(H,$Y_(H).toString()),2);if(H.mainChannel){var d=H.mainChannel,W=d.send;var z=ujQ();z=_.qC(z,2,H.startUrl);W.call(d,BXL(z))}_.EN(k)})};var Hk_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(Hk_,_.OW);_.q=Hk_.prototype;_.q.getSize=function(){return L_(this,1)};
_.q.setSize=function(A){return _.gd(this,1,A)};
_.q.getWidth=function(){return L_(this,12)};
_.q.getHeight=function(){return L_(this,13)};
_.q.setCenterCrop=function(A){return _.tj(this,20,A)};
_.q.getHtml=function(){return _.xV(this,4)};
_.q.getToken=function(){return _.o8(this,24)};
_.q.setToken=function(A){return _.qC(this,24,A)};
_.q.getBackgroundColor=function(){return L_(this,87)};
_.q.hasBackgroundColor=function(){return _.eI(_.kV(this,87))!=null};
_.q.getStoryboardLevel=function(){return L_(this,109)};zJ.prototype.set=function(A,H){sgB(this,A,H,!1)};
zJ.prototype.add=function(A,H){sgB(this,A,H,!0)};
var sgB=function(A,H,k,d){for(var W=0;W<H.length;W++){var z=H.charAt(W);A.childNodes_[z]||(A.childNodes_[z]=new zJ);A=A.childNodes_[z]}if(d&&A.JSC$19857_value_!==void 0)throw Error("Ck`"+H);A.JSC$19857_value_=k},k2B=function(A,H){for(var k=0;k<H.length;k++)if(A=A.childNodes_[H.charAt(k)],!A)return;
return A};
zJ.prototype.get=function(A){return(A=k2B(this,A))?A.JSC$19857_value_:void 0};
zJ.prototype.getValues=function(){var A=[];dcL(this,A);return A};
var dcL=function(A,H){A.JSC$19857_value_!==void 0&&H.push(A.JSC$19857_value_);for(var k in A.childNodes_)dcL(A.childNodes_[k],H)};
zJ.prototype.getKeys=function(A){var H=[];if(A){for(var k=this,d=0;d<A.length;d++){var W=A.charAt(d);if(!k.childNodes_[W])return[];k=k.childNodes_[W]}Wy_(k,A,H)}else Wy_(this,"",H);return H};
var Wy_=function(A,H,k){A.JSC$19857_value_!==void 0&&k.push(H);for(var d in A.childNodes_)Wy_(A.childNodes_[d],H+d,k)};
_.q=zJ.prototype;_.q.containsKey=function(A){return this.get(A)!==void 0};
_.q.containsValue=function(A){if(this.JSC$19857_value_===A)return!0;for(var H in this.childNodes_)if(this.childNodes_[H].containsValue(A))return!0;return!1};
_.q.clear=function(){this.childNodes_={};this.JSC$19857_value_=void 0};
_.q.remove=function(A){for(var H=this,k=[],d=0;d<A.length;d++){var W=A.charAt(d);if(!H.childNodes_[W])throw Error("Dk`"+A);k.push([H,W]);H=H.childNodes_[W]}A=H.JSC$19857_value_;for(delete H.JSC$19857_value_;k.length>0;)if(d=k.pop(),H=d[0],d=d[1],H.childNodes_[d].isEmpty())delete H.childNodes_[d];else break;return A};
_.q.clone=function(){return new zJ(this)};
_.q.getCount=function(){return m2i(this.getValues())};
_.q.isEmpty=function(){return this.JSC$19857_value_===void 0&&_.iK.isEmpty(this.childNodes_)};var A6_=function(){if(!z2M){var A=z2M=new zJ,H;for(H in qp_)A.add(H,qp_[H])}},z2M,Mj=function(A,H){this.types=A;
this.setters=H},qp_={a:new Mj([3,
0],[function(A,H){_.tj(A,21,H)},
function(A,H){_.gd(A,56,H)}]),
al:new Mj([3],[function(A,H){_.tj(A,74,H)}]),
b:new Mj([3,0],[function(A,H){_.tj(A,23,H)},
function(A,H){_.gd(A,38,H)}]),
ba:new Mj([0],[function(A,H){_.gd(A,85,H)}]),
bc:new Mj([0],[function(A,H){_.gd(A,87,H)}]),
br:new Mj([0],[function(A,H){_.gd(A,86,H)}]),
c:new Mj([3,0],[function(A,H){_.tj(A,2,H)},
function(A,H){_.gd(A,39,H)}]),
cc:new Mj([3],[function(A,H){_.tj(A,51,H)}]),
ci:new Mj([3],[function(A,H){_.tj(A,32,H)}]),
ckm:new Mj([3],[function(A,H){_.tj(A,104,H)}]),
cp:new Mj([0],[function(A,H){_.gd(A,92,H)}]),
cr:new Mj([3],[function(A,H){_.tj(A,108,H)}]),
cv:new Mj([0],[function(A,H){_.gd(A,94,H)}]),
d:new Mj([3],[function(A,H){_.tj(A,3,H)}]),
dc:new Mj([5],[function(A,H){_.qC(A,99,H)}]),
df:new Mj([3],[function(A,H){_.tj(A,80,H)}]),
dv:new Mj([3],[function(A,H){_.tj(A,90,H)}]),
e:new Mj([0],[function(A,H){_.gd(A,15,H)}]),
em:new Mj([0],[function(A,H){_.gd(A,107,H)}]),
f:new Mj([4],[function(A,H){_.qC(A,16,H)}]),
fg:new Mj([3],[function(A,H){_.tj(A,34,H)}]),
fh:new Mj([3],[function(A,H){_.tj(A,30,H)}]),
fm:new Mj([3],[function(A,H){_.tj(A,84,H)}]),
fo:new Mj([2],[function(A,H){_.sY(A,79,_.sB(H))}]),
ft:new Mj([3],[function(A,H){_.tj(A,50,H)}]),
fv:new Mj([3],[function(A,H){_.tj(A,31,H)}]),
g:new Mj([3],[function(A,H){_.tj(A,14,H)}]),
gce:new Mj([4],[function(A,H){_.qC(A,112,H)}]),
gd:new Mj([3],[function(A,H){_.tj(A,83,H)}]),
gm:new Mj([3],[function(A,H){_.tj(A,105,H)}]),
h:new Mj([3,0],[function(A,H){_.tj(A,4,H)},
function(A,H){_.gd(A,13,H)}]),
i:new Mj([3],[function(A,H){_.tj(A,22,H)}]),
ic:new Mj([0],[function(A,H){_.gd(A,71,H)}]),
id:new Mj([3],[function(A,H){_.tj(A,70,H)}]),
il:new Mj([3],[function(A,H){_.tj(A,96,H)}]),
ip:new Mj([3],[function(A,H){_.tj(A,54,H)}]),
iv:new Mj([0],[function(A,H){_.hb(A,75,H)}]),
j:new Mj([1],[function(A,H){_.sY(A,29,H==null?H:rWB(H))}]),
k:new Mj([3,0],[function(A,H){_.tj(A,17,H)},
function(A,H){_.gd(A,42,H)}]),
l:new Mj([0],[function(A,H){_.gd(A,44,H)}]),
lf:new Mj([3],[function(A,H){_.tj(A,65,H)}]),
lo:new Mj([3],[function(A,H){_.tj(A,97,H)}]),
m:new Mj([0],[function(A,H){_.gd(A,63,H)}]),
md:new Mj([3],[function(A,H){_.tj(A,91,H)}]),
mm:new Mj([4],[function(A,H){_.qC(A,81,H)}]),
mo:new Mj([3],[function(A,H){_.tj(A,73,H)}]),
mp:new Mj([0],[function(A,H){_.gd(A,115,H)}]),
mv:new Mj([3],[function(A,H){_.tj(A,66,H)}]),
n:new Mj([3],[function(A,H){A.setCenterCrop(H)}]),
nc:new Mj([3],[function(A,H){_.tj(A,55,H)}]),
nd:new Mj([3],[function(A,H){_.tj(A,53,H)}]),
ng:new Mj([3],[function(A,H){_.tj(A,95,H)}]),
ngm:new Mj([3],[function(A,H){_.tj(A,106,H)}]),
no:new Mj([3],[function(A,H){_.tj(A,37,H)}]),
ns:new Mj([3],[function(A,H){_.tj(A,40,H)}]),
nt0:new Mj([4],[function(A,H){_.qC(A,36,H)}]),
ntm:new Mj([3],[function(A,H){_.tj(A,114,H)}]),
nu:new Mj([3],[function(A,H){_.tj(A,46,H)}]),
nw:new Mj([3],[function(A,H){_.tj(A,48,H)}]),
o:new Mj([1,3],[function(A,H){_.sY(A,7,H==null?H:rWB(H))},
function(A,H){_.tj(A,27,H)}]),
p:new Mj([3,0],[function(A,H){_.tj(A,19,H)},
function(A,H){_.gd(A,43,H)}]),
pa:new Mj([3],[function(A,H){_.tj(A,61,H)}]),
pc:new Mj([0],[function(A,H){_.gd(A,88,H)}]),
pd:new Mj([3],[function(A,H){_.tj(A,60,H)}]),
pf:new Mj([3],[function(A,H){_.tj(A,67,H)}]),
pg:new Mj([3],[function(A,H){_.tj(A,72,H)}]),
pi:new Mj([2],[function(A,H){_.sY(A,76,_.sB(H))}]),
pp:new Mj([3],[function(A,H){_.tj(A,52,H)}]),
pt:new Mj([4],[function(A,H){_.qC(A,111,H)}]),
q:new Mj([4],[function(A,H){_.qC(A,28,H)}]),
r:new Mj([3,0],[function(A,H){_.tj(A,6,H)},
function(A,H){_.gd(A,26,H)}]),
ra:new Mj([3],[function(A,H){_.tj(A,103,H)}]),
rf:new Mj([3],[function(A,H){_.tj(A,100,H)}]),
rg:new Mj([3],[function(A,H){_.tj(A,59,H)}]),
rh:new Mj([3],[function(A,H){_.tj(A,49,H)}]),
rj:new Mj([3],[function(A,H){_.tj(A,57,H)}]),
ro:new Mj([2],[function(A,H){_.sY(A,78,_.sB(H))}]),
rp:new Mj([3],[function(A,H){_.tj(A,58,H)}]),
rw:new Mj([3],[function(A,H){_.tj(A,35,H)}]),
rwa:new Mj([3],[function(A,H){_.tj(A,64,H)}]),
rwu:new Mj([3],[function(A,H){_.tj(A,41,H)}]),
s:new Mj([3,0],[function(A,H){_.tj(A,33,H)},
function(A,H){A.setSize(H)}]),
sb:new Mj([0],[function(A,H){_.gd(A,110,H)}]),
sc:new Mj([0],[function(A,H){_.gd(A,89,H)}]),
sg:new Mj([3],[function(A,H){_.tj(A,82,H)}]),
sl:new Mj([0],[function(A,H){_.gd(A,109,H)}]),
sm:new Mj([3],[function(A,H){_.tj(A,93,H)}]),
t:new Mj([4],[function(A,H){A.setToken(H)}]),
tm:new Mj([3],[function(A,H){_.tj(A,113,H)}]),
u:new Mj([3],[function(A,H){_.tj(A,18,H)}]),
ut:new Mj([3],[function(A,H){_.tj(A,45,H)}]),
v:new Mj([0],[function(A,H){_.gd(A,62,H)}]),
vb:new Mj([0],[function(A,H){_.hb(A,68,H)}]),
vf:new Mj([4],[function(A,H){_.qC(A,102,H)}]),
vl:new Mj([0],[function(A,H){_.hb(A,69,H)}]),
vm:new Mj([3],[function(A,H){_.tj(A,98,H)}]),
w:new Mj([0],[function(A,H){_.gd(A,12,H)}]),
x:new Mj([0],[function(A,H){_.gd(A,9,H)}]),
y:new Mj([0],[function(A,H){_.gd(A,10,H)}]),
ya:new Mj([2],[function(A,H){_.sY(A,77,_.sB(H))}]),
z:new Mj([0],[function(A,H){_.gd(A,11,H)}])};
A6_.prototype.parse=function(A){var H=new Hk_,k=new Hk_;if(A=="")A=!0;else{A=A.split("-");for(var d=!0,W=0;W<A.length;W++){var z=A[W];if(z.length==0)d=!1;else{var u=z,B=!1;var h=u;var O=u.charAt(0);O!=O.toLowerCase()&&(B=!0,h=u.charAt(0).toLowerCase()+u.substring(1));var T=z2M;for(O=1;O<=h.length;++O){var m=T,J=h.substring(0,O);if(J.length==0?m.isEmpty():!k2B(m,J))break}h=O==1?null:(h=T.get(h.substring(0,O-1)))?{option:u.substring(0,O-1),value:u.substring(O-1),signed:B,attributes:h}:null;if(h){u=
[];B=[];O=!1;for(T=0;T<h.attributes.types.length;T++){m=h.attributes.types[T];var g=h.value;J=W;if(h.signed&&m==1)for(var v=g.length;v<12&&J<A.length-1;)g+="-"+A[J+1],v=g.length,++J;else if(m==2)for(;J<A.length-1&&A[J+1].match(/^[\d\.]/);)g+="-"+A[J+1],++J;v=h.attributes.setters[T];g=r01(this,m)(h.option,g,H,k,v);if(g===null){O=!0;W=J;break}else u.push(m),B.push(g)}if(!O)for(h=0;h<B.length;h++)T=u[h],g=B[h],uwM(this,T)(z,g);d=d&&O}else d=!1}}A=d}return new BsL(H,k,A)};
var e2Q=function(A,H,k,d,W,z){W(k,H);A=A.charAt(0);z=z(A==A.toUpperCase());W(d,z)};
_.q=A6_.prototype;_.q.parseAndSetIntOption_=function(A,H,k,d,W){if(H=="")return 0;isFinite(H)&&(H=String(H));H=typeof H==="string"?/^\s*-?0x/i.test(H)?parseInt(H,16):parseInt(H,10):NaN;if(isNaN(H))return 1;e2Q(A,H,k,d,W,Number);return null};
_.q.logIntParseError_=function(){};
_.q.parseAndSetFloatOption_=function(A,H,k,d,W){if(H=="")return 0;var z=Number(H);H=z==0&&_.BV(H)?NaN:z;if(isNaN(H))return 1;e2Q(A,H,k,d,W,Number);return null};
_.q.logFloatParseError_=function(){};
_.q.parseAndSetBoolOption_=function(A,H,k,d,W){if(H!="")return 2;e2Q(A,!0,k,d,W,Boolean);return null};
_.q.logBoolParseError_=function(){};
_.q.parseAndSetStringOption_=function(A,H,k,d,W){if(H=="")return 0;e2Q(A,H,k,d,W,function(z){return z?"1":""});
return null};
_.q.logStringParseError_=function(){};
_.q.parseAndSetUint64Base64Option_=function(A,H,k,d,W){if(H=="")return 0;e2Q(A,H,k,d,W,function(z){return z?1:0});
return null};
var r01=function(A,H){switch(H){case 0:return(0,_.WT)(A.parseAndSetIntOption_,A);case 2:return(0,_.WT)(A.parseAndSetFloatOption_,A);case 3:return(0,_.WT)(A.parseAndSetBoolOption_,A);case 4:return(0,_.WT)(A.parseAndSetStringOption_,A);case 1:return(0,_.WT)(A.parseAndSetUint64Base64Option_,A);default:return function(){}}},uwM=function(A,H){switch(H){case 0:return(0,_.WT)(A.logIntParseError_,A);
case 2:return(0,_.WT)(A.logFloatParseError_,A);case 3:return(0,_.WT)(A.logBoolParseError_,A);case 4:case 1:return(0,_.WT)(A.logStringParseError_,A);default:return function(){}}},BsL=function(A,H,k){this.valueProto_=A;
this.signatureFlagProto_=H;this.JSC$19869_valid_=k};
BsL.prototype.isValid=function(){return this.JSC$19869_valid_};var fee=function(A){this.JSC$19870_parser_=null;this.JSC$19870_components_=[];this.JSC$19870_parsedOptions_=null;xce(this,A)},ikR=function(A){A.JSC$19870_parser_==null&&(A.JSC$19870_parser_=new A6_);
return A.JSC$19870_parser_},xce=function(A,H){A.JSC$19870_parsedOptions_=H?typeof H==="string"?ikR(A).parse(H):H:ikR(A).parse("")},n_=function(A,H){return A==H?!1:!0};
_.q=fee.prototype;_.q.JSC$19872_setCrop=function(A){A=A||void 0;var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,_.xV(k,2),_.xV(H.signatureFlagProto_,2))&&_.tj(k,2,A);return this};
_.q.JSC$19872_setCircleCrop=function(A){A=A||void 0;var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,bn(k,51),bn(H.signatureFlagProto_,51))&&_.tj(k,51,A);return this};
_.q.JSC$19872_setImageCrop=function(A){A=A||void 0;var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,bn(k,32),bn(H.signatureFlagProto_,32))&&_.tj(k,32,A);return this};
_.q.JSC$19872_setHeight=function(A){var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,k.getHeight(),H.signatureFlagProto_.getHeight())&&_.gd(k,13,A);return this};
_.q.setCenterCrop=function(A){A=A||void 0;var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,_.xV(k,20),_.xV(H.signatureFlagProto_,20))&&k.setCenterCrop(A);return this};
_.q.JSC$19872_setSmartCrop=function(A){A=A||void 0;var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,_.xV(k,19),_.xV(H.signatureFlagProto_,19))&&_.tj(k,19,A);return this};
_.q.JSC$19872_setPad=function(A){A=A||void 0;var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,bn(k,60),bn(H.signatureFlagProto_,60))&&_.tj(k,60,A);return this};
_.q.JSC$19872_setSmartCropUseFace=function(A){A=A||void 0;var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,_.xV(k,67),_.xV(H.signatureFlagProto_,67))&&_.tj(k,67,A);return this};
_.q.JSC$19872_setSmartCropNoClip=function(A){A=A||void 0;var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,_.xV(k,52),_.xV(H.signatureFlagProto_,52))&&_.tj(k,52,A);return this};
_.q.setSize=function(A){var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,k.getSize(),H.signatureFlagProto_.getSize())&&k.setSize(A);return this};
_.q.setToken=function(A){A=A||void 0;var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,k.getToken(),H.signatureFlagProto_.getToken())&&k.setToken(A);return this};
_.q.JSC$19872_setWidth=function(A){var H=this.JSC$19870_parsedOptions_,k=H.valueProto_;n_(A,k.getWidth(),H.signatureFlagProto_.getWidth())&&_.gd(k,12,A);return this};
_.q.clearOptions=function(){xce(this,"");return this};
_.q.build=function(){this.JSC$19870_components_.length=0;var A=this.JSC$19870_parsedOptions_,H=A.valueProto_;A=A.signatureFlagProto_;ZC(this,"s",H.getSize(),A.getSize());ZC(this,"w",H.getWidth(),A.getWidth());f_(this,"c",_.xV(H,2),_.xV(A,2));f_(this,"d",_.xV(H,3),_.xV(A,3));ZC(this,"h",H.getHeight(),A.getHeight());f_(this,"s",bn(H,33),bn(A,33));f_(this,"h",H.getHtml(),A.getHtml());f_(this,"p",_.xV(H,19),_.xV(A,19));f_(this,"pp",_.xV(H,52),_.xV(A,52));f_(this,"pf",_.xV(H,67),_.xV(A,67));f_(this,"n",
_.xV(H,20),_.xV(A,20));ZC(this,"r",L_(H,26),L_(A,26));f_(this,"r",_.xV(H,6),_.xV(A,6));f_(this,"o",bn(H,27),bn(A,27));var k=_.ea(H,7,_.AY);w7(this,"o",k,_.ea(A,7,_.AY));k=_.ea(H,29,_.AY);w7(this,"j",k,_.ea(A,29,_.AY));ZC(this,"x",L_(H,9),L_(A,9));ZC(this,"y",L_(H,10),L_(A,10));ZC(this,"z",L_(H,11),L_(A,11));f_(this,"g",_.xV(H,14),_.xV(A,14));ZC(this,"e",L_(H,15),L_(A,15));w7(this,"f",_.o8(H,16),_.o8(A,16));f_(this,"k",bn(H,17),bn(A,17));f_(this,"u",bn(H,18),!0);f_(this,"ut",bn(H,45),!0);f_(this,"i",
bn(H,22),!0);f_(this,"a",bn(H,21),bn(A,21));f_(this,"b",_.xV(H,23),_.xV(A,23));ZC(this,"b",L_(H,38),L_(A,38));ZC(this,"c",L_(H,39),L_(A,39),16,8);w7(this,"q",_.o8(H,28),_.o8(A,28));f_(this,"fh",bn(H,30),bn(A,30));f_(this,"fv",bn(H,31),bn(A,31));f_(this,"fg",_.xV(H,34),_.xV(A,34));f_(this,"ci",bn(H,32),bn(A,32));w7(this,"t",H.getToken(),A.getToken());w7(this,"nt0",_.o8(H,36),_.o8(A,36));f_(this,"rw",_.xV(H,35),_.xV(A,35));f_(this,"rwu",_.xV(H,41),_.xV(A,41));f_(this,"rwa",_.xV(H,64),_.xV(A,64));f_(this,
"nw",_.xV(H,48),_.xV(A,48));f_(this,"rh",_.xV(H,49),_.xV(A,49));f_(this,"no",_.xV(H,37),_.xV(A,37));f_(this,"ns",bn(H,40),bn(A,40));ZC(this,"k",L_(H,42),L_(A,42));ZC(this,"p",L_(H,43),L_(A,43));ZC(this,"l",L_(H,44),L_(A,44));ZC(this,"v",L_(H,62),L_(A,62));f_(this,"nu",bn(H,46),bn(A,46));f_(this,"ft",bn(H,50),bn(A,50));f_(this,"cc",bn(H,51),bn(A,51));f_(this,"nd",bn(H,53),bn(A,53));f_(this,"ip",bn(H,54),bn(A,54));f_(this,"nc",bn(H,55),bn(A,55));ZC(this,"a",L_(H,56),L_(A,56));f_(this,"rj",bn(H,57),
bn(A,57));f_(this,"rp",bn(H,58),bn(A,58));f_(this,"rg",bn(H,59),bn(A,59));f_(this,"pd",bn(H,60),bn(A,60));f_(this,"pa",bn(H,61),bn(A,61));ZC(this,"m",L_(H,63),L_(A,63));ZC(this,"vb",_.BZ(H,68,_.AY),_.BZ(A,68,_.AY));ZC(this,"vl",_.BZ(H,69,_.AY),_.BZ(A,69,_.AY));f_(this,"lf",bn(H,65),bn(A,65));f_(this,"mv",bn(H,66),bn(A,66));f_(this,"id",bn(H,70),bn(A,70));ZC(this,"ic",L_(H,71),!0);f_(this,"pg",_.xV(H,72),_.xV(A,72));f_(this,"mo",bn(H,73),bn(A,73));f_(this,"al",bn(H,74),bn(A,74));ZC(this,"iv",_.BZ(H,
75,_.AY),_.BZ(A,75,_.AY));ZC(this,"pi",va(H,76),va(A,76));ZC(this,"ya",va(H,77),va(A,77));ZC(this,"ro",va(H,78),va(A,78));ZC(this,"fo",va(H,79),va(A,79));f_(this,"df",bn(H,80),bn(A,80));w7(this,"mm",_.o8(H,81),_.o8(A,81));f_(this,"sg",bn(H,82),bn(A,82));f_(this,"gd",bn(H,83),bn(A,83));f_(this,"fm",bn(H,84),bn(A,84));ZC(this,"ba",L_(H,85),L_(A,85));ZC(this,"br",L_(H,86),L_(A,86));ZC(this,"bc",H.getBackgroundColor(),A.getBackgroundColor(),16,8);ZC(this,"pc",L_(H,88),L_(A,88),16,8);ZC(this,"sc",L_(H,
89),L_(A,89),16,8);f_(this,"dv",bn(H,90),bn(A,90));f_(this,"md",bn(H,91),bn(A,91));ZC(this,"cp",L_(H,92),L_(A,92));f_(this,"sm",bn(H,93),bn(A,93));ZC(this,"cv",L_(H,94),L_(A,94));f_(this,"ng",bn(H,95),bn(A,95));f_(this,"il",bn(H,96),bn(A,96));f_(this,"lo",bn(H,97),bn(A,97));f_(this,"vm",bn(H,98),bn(A,98));w7(this,"dc",_.o8(H,99),_.o8(A,99));f_(this,"rf",bn(H,100),bn(A,100));w7(this,"vf",_.o8(H,102),_.o8(A,102));f_(this,"ra",_.xV(H,103),_.xV(A,103));f_(this,"ckm",bn(H,104),bn(A,104));f_(this,"gm",
bn(H,105),bn(A,105));f_(this,"ngm",bn(H,106),bn(A,106));ZC(this,"em",L_(H,107),L_(A,107));f_(this,"cr",bn(H,108),bn(A,108));ZC(this,"sl",H.getStoryboardLevel(),A.getStoryboardLevel());ZC(this,"sb",L_(H,110),L_(A,110));w7(this,"pt",_.o8(H,111),_.o8(A,111));w7(this,"gce",_.o8(H,112),_.o8(A,112));f_(this,"tm",bn(H,113),bn(A,113));f_(this,"ntm",bn(H,114),bn(A,114));ZC(this,"mp",L_(H,115),L_(A,115));return this.JSC$19870_components_.join("-")};
var ZC=function(A,H,k,d,W,z){if(k!=null){var u=W==void 0||W!=10&&W!=16?10:W;k=Number(k).toString(u);W=new KV_;W.append(u==16?"0x":"");u=W.append;z==void 0?z="":(z-=k.length,z=z<=0?"":(0,_.Cf1)("0",z));u.call(W,z);W.append(k);h2B(A,H,W.toString(),!!Number(d))}},f_=function(A,H,k,d){k&&h2B(A,H,"",!!d)},w7=function(A,H,k,d){k&&h2B(A,H,String(k),!!Number(d))},h2B=function(A,H,k,d){d&&(H=H.charAt(0).toUpperCase()+H.substring(1));
A.JSC$19870_components_.push(H+k)};_.EK(qu,fee);_.q=qu.prototype;_.q.JSC$19872_setCrop=function(A){A&&oQ(this);return qu.superClass_.JSC$19872_setCrop.call(this,A)};
_.q.JSC$19872_setHeight=function(A){A=A==null||A<0?void 0:A;A!=null&&this.setSize();return qu.superClass_.JSC$19872_setHeight.call(this,A)};
_.q.JSC$19872_setImageCrop=function(A){A&&oQ(this);return qu.superClass_.JSC$19872_setImageCrop.call(this,A)};
_.q.JSC$19872_setCircleCrop=function(A){A&&oQ(this);return qu.superClass_.JSC$19872_setCircleCrop.call(this,A)};
_.q.setSize=function(A){_.nl(A)&&(A=Math.max(A.width,A.height));A=A==null||A<0?void 0:A;A!=null&&(this.JSC$19872_setWidth(),this.JSC$19872_setHeight());return qu.superClass_.setSize.call(this,A)};
_.q.JSC$19872_setSmartCrop=function(A){A&&oQ(this);return qu.superClass_.JSC$19872_setSmartCrop.call(this,A)};
_.q.JSC$19872_setSmartCropNoClip=function(A){A&&oQ(this);return qu.superClass_.JSC$19872_setSmartCropNoClip.call(this,A)};
_.q.JSC$19872_setSmartCropUseFace=function(A){A&&oQ(this);return qu.superClass_.JSC$19872_setSmartCropUseFace.call(this,A)};
_.q.setCenterCrop=function(A){A&&oQ(this);return qu.superClass_.setCenterCrop.call(this,A)};
_.q.JSC$19872_setPad=function(A){A&&oQ(this);return qu.superClass_.JSC$19872_setPad.call(this,A)};
_.q.JSC$19872_setWidth=function(A){A=A==null||A<0?void 0:A;A!=null&&this.setSize();return qu.superClass_.JSC$19872_setWidth.call(this,A)};
var OkI=function(A){A.clearOptions();var H=A.JSC$19870_parsedOptions_,k=H.valueProto_;n_(!0,_.xV(k,3),_.xV(H.signatureFlagProto_,3))&&_.tj(k,3,!0);return A},oQ=function(A){A.setCenterCrop();
A.JSC$19872_setCircleCrop();A.JSC$19872_setCrop();A.JSC$19872_setImageCrop();A.JSC$19872_setPad();A.JSC$19872_setSmartCrop();A.JSC$19872_setSmartCropNoClip();A.JSC$19872_setSmartCropUseFace()};
qu.prototype.build=function(){var A=this.JSC$19870_parsedOptions_.valueProto_;bn(A,18)||bn(A,45)?A.getSize()||this.setSize(0):(A=this.JSC$19870_parsedOptions_.valueProto_,A.getSize()||A.getWidth()||A.getHeight()||(this.setSize(),this.JSC$19872_setHeight(),this.JSC$19872_setWidth(),oQ(this)));return qu.superClass_.build.call(this)};var R2B=/^[^\/]*\/\//,TsL=function(A,H){H=H===void 0?!1:H;this.original_=A;this.originalPrefix_="";(A=this.original_.match(R2B))&&A[0]?(this.originalPrefix_=A[0],A=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):A="http://"+this.original_;this.uri_=_.p$(A,!0);this.isFreeformUrl_=H;this.JSC$19876_valid_=!0;this.obfuscated_=!1},mcL=function(A,H){A.JSC$19878_pathPrefix_=A.JSC$19878_pathPrefix_?A.JSC$19878_pathPrefix_+("/"+H):H},$4=function(A){if(A.JSC$19878_components_==
void 0){var H=A.uri_.getPath().substring(1);
A.JSC$19878_pathPrefix_=null;if(A.isFreeformUrl_){A.JSC$19878_components_=[];if((H.match(/=/g)||[]).length>1)return A.JSC$19876_valid_=!1,A.JSC$19878_components_;var k=H.indexOf("=");k!=-1?(A.JSC$19878_components_.push(H.substr(0,k)),A.JSC$19878_components_.push(H.substr(k+1))):A.JSC$19878_components_.push(H);return A.JSC$19878_components_}A.JSC$19878_components_=H.split("/");H=A.JSC$19878_components_.length;H>2&&A.JSC$19878_components_[0]=="u"&&(mcL(A,A.JSC$19878_components_[0]+"/"+A.JSC$19878_components_[1]),
A.JSC$19878_components_.shift(),A.JSC$19878_components_.shift(),H-=2);if(H==0||H==4||H>7)return A.JSC$19876_valid_=!1,A.JSC$19878_components_;if(H==2)mcL(A,A.JSC$19878_components_[0]);else if(A.JSC$19878_components_[0]=="image")mcL(A,A.JSC$19878_components_[0]);else if(H==7||H==3)return A.JSC$19876_valid_=!1,A.JSC$19878_components_;if(H<=3){A.obfuscated_=!0;H==3&&(mcL(A,A.JSC$19878_components_[1]),A.JSC$19878_components_.shift(),--H);--H;k=A.JSC$19878_components_[H];var d=k.indexOf("=");d!=-1&&(A.JSC$19878_components_[H]=
k.substr(0,d),A.JSC$19878_components_.push(k.substr(d+1)))}}return A.JSC$19878_components_};
TsL.prototype.isValid=function(){$4(this);return this.JSC$19876_valid_};
TsL.prototype.isObfuscated=function(){$4(this);return this.obfuscated_};
var J0_=function(A){$4(A);return A.isFreeformUrl_},AX=function(A){$4(A);
A.JSC$19878_pathPrefix_==void 0&&(A.JSC$19878_pathPrefix_=null);return A.JSC$19878_pathPrefix_},gT_=function(A){switch($4(A).length){case 7:return!0;
case 6:return AX(A)==null;case 5:return!1;case 3:return!0;case 2:return AX(A)==null;case 1:return!1;default:return!1}},H9=function(A,H){if(J0_(A))a:{switch(H){case 7:H=0;
break;case 4:if(!gT_(A)){A=null;break a}H=1;break;default:A=null;break a}A=$4(A)[H]}else if(A.isObfuscated())a:{var k=AX(A)!=null?1:0;switch(H){case 6:H=k;break;case 4:if(!gT_(A)){A=null;break a}H=1+k;break;default:A=null;break a}A=$4(A)[H]}else a:{k=AX(A)!=null?1:0;switch(H){case 0:H=k;break;case 1:H=1+k;break;case 2:H=2+k;break;case 3:H=3+k;break;case 4:if(!gT_(A)){A=null;break a}H=4+k;break;case 5:H=gT_(A)?1:0;H=4+k+H;break;default:A=null;break a}A=$4(A)[H]}return A};
TsL.prototype.getOptions=function(){this.options_==void 0&&(this.options_=H9(this,4));return this.options_};var $HL=function(){};
$HL.prototype.parse=function(A,H){return new wMB(A,H===void 0?!1:H)};
var wMB=function(A,H){TsL.call(this,A,H===void 0?!1:H)};
_.I(wMB,TsL);_.EK(H0V,qu);var oIQ;H0V.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
H0V.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var A=H0V.superClass_.build.call(this),H=[];AX(this.parsedImageUrl_)!=null&&H.push(AX(this.parsedImageUrl_));var k=J0_(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var d=this.parsedImageUrl_;d.obfuscatedData_==void 0&&(d.obfuscatedData_=H9(d,6));H.push(d.obfuscatedData_+(A?"="+A:""))}else if(k){d=H.push;var W=this.parsedImageUrl_;W.freeformUrlPath_===void 0&&(W.freeformUrlPath_=
H9(W,7));d.call(H,W.freeformUrlPath_);A&&H.push(A)}else d=H.push,W=this.parsedImageUrl_,W.obfuscatedGaiaId_==void 0&&(W.obfuscatedGaiaId_=H9(W,0)),d.call(H,W.obfuscatedGaiaId_),d=H.push,W=this.parsedImageUrl_,W.photoId_==void 0&&(W.photoId_=H9(W,1)),d.call(H,W.photoId_),d=H.push,W=this.parsedImageUrl_,W.imageVersion_==void 0&&(W.imageVersion_=H9(W,2)),d.call(H,W.imageVersion_),d=H.push,W=this.parsedImageUrl_,W.signature_==void 0&&(W.signature_=H9(W,3)),d.call(H,W.signature_),A&&H.push(A),A=H.push,
d=this.parsedImageUrl_,d.filename_==void 0&&(d.filename_=H9(d,5)),A.call(H,d.filename_);H=k?H.join("="):H.join("/");H=_.p$(this.protocolPrefix_+this.JSC$19884_domain_+"/"+H+(this.JSC$19884_query_?"?"+this.JSC$19884_query_:"")).toString();H.startsWith("%3a//")&&(H=H.replace("%3a//","://"));return H};_.EK(rk,_.qp);rk.prototype.JSC$10388_setLabel=function(A){rk.superClass_.JSC$10388_setLabel.call(this,A);return this};
rk.prototype.addUploadMetadata=function(A,H){rk.superClass_.addUploadMetadata.call(this,A,H);return this};var bkV=function(A){if(A!=="youtubebanner"&&A!=="youtube-channel-banner")throw Error("Ek");rk.call(this,A)};
_.I(bkV,rk);bkV.prototype.JSC$10388_setLabel=function(A){rk.prototype.JSC$10388_setLabel.call(this,A);return this};
bkV.prototype.addUploadMetadata=function(A,H){rk.prototype.addUploadMetadata.call(this,A,H);return this};var LyV=[0,_.lp,_.Sa,_.lp,-1,_.Sa,[0,_.CX,_.aX,-1],_.lp,-1];var vTR=[0,[1,2,3],_.pX,-2];var y0G=[0,_.lp];var jgG=_.XO(["viewBox"]),IJI=_.XO(["width"]),YpB=_.XO(["height"]),PVB=_.XO(["fill"]),G23=_.XO(["id"]),FyG=_.XO(["x"]),XfB=_.XO(["y"]);sOM.prototype.getLength=function(){return this.parsedData.length};
sOM.prototype.write=function(A){for(var H=0,k=this.parsedData.length;H<k;H++)A.put(this.parsedData[H],8)};
var uIG=function(A,H){var k=new sOM(H);A.dataList.push(k);k=A.errorCorrectLevel;var d=1,W=encodeURI(H).toString().replace(/%[0-9a-fA-F]{2}/g,"a");H=W.length+(W.length!=H?3:0);W=0;for(var z=sV.length;W<=z;W++){var u=0;switch(k){case 1:u=sV[W][0];break;case 0:u=sV[W][1];break;case 3:u=sV[W][2];break;case 2:u=sV[W][3]}if(H<=u)break;else d++}if(d>sV.length)throw Error("Nk");A.typeNumber=d;A.dataCache=null};
knL.prototype.isDark=function(A,H){if(A<0||this.moduleCount<=A||H<0||this.moduleCount<=H)throw Error("Fk`"+A+"`"+H);return this.modules[A][H]};
for(var Bu_=function(A,H,k){A.moduleCount=A.typeNumber*4+17;A.modules=Array(A.moduleCount);for(var d=0;d<A.moduleCount;d++){A.modules[d]=Array(A.moduleCount);for(var W=0;W<A.moduleCount;W++)A.modules[d][W]=null}Dc3(A,0,0);Dc3(A,A.moduleCount-7,0);Dc3(A,0,A.moduleCount-7);d=Sp_[A.typeNumber-1];for(W=0;W<d.length;W++)for(var z=0;z<d.length;z++){var u=d[W],B=d[z];if(A.modules[u][B]==null)for(var h=-2;h<=2;h++)for(var O=-2;O<=2;O++)A.modules[u+h][B+O]=h==-2||h==2||O==-2||O==2||h==0&&O==0?!0:!1}for(d=
8;d<A.moduleCount-8;d++)A.modules[d][6]==null&&(A.modules[d][6]=d%2==0);for(d=8;d<A.moduleCount-8;d++)A.modules[6][d]==null&&(A.modules[6][d]=d%2==0);d=A.errorCorrectLevel<<3|k;for(W=d<<10;ka(W)-ka(1335)>=0;)W^=1335<<ka(W)-ka(1335);d=(d<<10|W)^21522;for(W=0;W<15;W++)z=!H&&(d>>W&1)==1,W<6?A.modules[W][8]=z:W<8?A.modules[W+1][8]=z:A.modules[A.moduleCount-15+W][8]=z;for(W=0;W<15;W++)z=!H&&(d>>W&1)==1,W<8?A.modules[8][A.moduleCount-W-1]=z:W<9?A.modules[8][15-W-1+1]=z:A.modules[8][15-W-1]=z;A.modules[A.moduleCount-
8][8]=!H;if(A.typeNumber>=7){d=A.typeNumber;for(W=d<<12;ka(W)-ka(7973)>=0;)W^=7973<<ka(W)-ka(7973);d=d<<12|W;for(W=0;W<18;W++)z=!H&&(d>>W&1)==1,A.modules[Math.floor(W/3)][W%3+A.moduleCount-8-3]=z;for(W=0;W<18;W++)z=!H&&(d>>W&1)==1,A.modules[W%3+A.moduleCount-8-3][Math.floor(W/3)]=z}if(A.dataCache==null){W=A.typeNumber;z=A.dataList;H=A.errorCorrectLevel;d=CVR(W,H);if(d==void 0)throw Error("Mk`"+W+"`"+H);u=d.length/3;H=[];for(B=0;B<u;B++){h=d[B*3];O=d[B*3+1];for(var T=d[B*3+2],m=0;m<h;m++)H.push(new d0e(O,
T))}d=new W$_;for(u=0;u<z.length;u++)B=z[u],d.put(B.mode,4),d.put(B.getLength(),KyL(B.mode,W)),B.write(d);for(u=W=0;u<H.length;u++)W+=H[u].dataCount;if(d.length>W*8)throw Error("Gk`"+d.length+"`"+W*8);for(d.length+4<=W*8&&d.put(0,4);d.length%8!=0;)aJB(d,!1);for(;!(d.length>=W*8);){d.put(236,8);if(d.length>=W*8)break;d.put(17,8)}z=W=O=0;u=Array(H.length);B=Array(H.length);for(h=0;h<H.length;h++){m=H[h].dataCount;var J=H[h].totalCount-m;W=Math.max(W,m);z=Math.max(z,J);u[h]=Array(m);for(T=0;T<u[h].length;T++)u[h][T]=
255&d.buffer[T+O];O+=m;T=J;m=new uh([1],0);for(J=0;J<T;J++)m=m.multiply(new uh([1,c0e(J)],0));T=m;m=(new uh(u[h],T.getLength()-1)).mod(T);B[h]=Array(T.getLength()-1);for(T=0;T<B[h].length;T++)J=T+m.getLength()-B[h].length,B[h][T]=J>=0?m.get(J):0}for(T=d=0;T<H.length;T++)d+=H[T].totalCount;d=Array(d);for(T=O=0;T<W;T++)for(h=0;h<H.length;h++)T<u[h].length&&(d[O++]=u[h][T]);for(T=0;T<z;T++)for(h=0;h<H.length;h++)T<B[h].length&&(d[O++]=B[h][T]);A.dataCache=d}H=A.dataCache;d=-1;W=A.moduleCount-1;z=7;u=
0;for(B=A.moduleCount-1;B>0;B-=2)for(B==6&&B--;;){for(h=0;h<2;h++)A.modules[W][B-h]==null&&(O=!1,u<H.length&&(O=(H[u]>>>z&1)==1),pf_(k,W,B-h)&&(O=!O),A.modules[W][B-h]=O,z--,z==-1&&(u++,z=7));W+=d;if(W<0||A.moduleCount<=W){W-=d;d=-d;break}}},Dc3=function(A,H,k){for(var d=-1;d<=7;d++)if(!(H+d<=-1||A.moduleCount<=H+d))for(var W=-1;W<=7;W++)k+W<=-1||A.moduleCount<=k+W||(A.modules[H+d][k+W]=0<=d&&d<=6&&(W==0||W==6)||0<=W&&W<=6&&(d==0||d==6)||2<=d&&d<=4&&2<=W&&W<=4?!0:!1)},e7e=function(A){for(var H=0,
k=0,d=0;d<8;d++){Bu_(A,!0,d);
var W=A;for(var z=W.moduleCount,u=0,B=0;B<z;B++)for(var h=0;h<z;h++){for(var O=0,T=W.isDark(B,h),m=-1;m<=1;m++)if(!(B+m<0||z<=B+m))for(var J=-1;J<=1;J++)h+J<0||z<=h+J||(m!=0||J!=0)&&T==W.isDark(B+m,h+J)&&O++;O>5&&(u+=3+O-5)}for(B=0;B<z-1;B++)for(h=0;h<z-1;h++)if(O=0,W.isDark(B,h)&&O++,W.isDark(B+1,h)&&O++,W.isDark(B,h+1)&&O++,W.isDark(B+1,h+1)&&O++,O==0||O==4)u+=3;for(B=0;B<z;B++)for(h=0;h<z-6;h++)W.isDark(B,h)&&!W.isDark(B,h+1)&&W.isDark(B,h+2)&&W.isDark(B,h+3)&&W.isDark(B,h+4)&&!W.isDark(B,h+5)&&
W.isDark(B,h+6)&&(u+=40);for(h=0;h<z;h++)for(B=0;B<z-6;B++)W.isDark(B,h)&&!W.isDark(B+1,h)&&W.isDark(B+2,h)&&W.isDark(B+3,h)&&W.isDark(B+4,h)&&!W.isDark(B+5,h)&&W.isDark(B+6,h)&&(u+=40);for(h=O=0;h<z;h++)for(B=0;B<z;B++)W.isDark(B,h)&&O++;W=u+=Math.abs(100*O/z/z-50)/5*10;if(d==0||H>W)H=W,k=d}return k},Sp_=[[],
[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]],ka=function(A){for(var H=0;A!=0;)H++,A>>>=1;return H},pf_=function(A,H,k){switch(A){case 0:return(H+k)%2==0;
case 1:return H%2==0;case 2:return k%3==0;case 3:return(H+k)%3==0;case 4:return(Math.floor(H/2)+Math.floor(k/3))%2==0;case 5:return H*k%2+H*k%3==0;case 6:return(H*k%2+H*k%3)%2==0;case 7:return(H*k%3+(H+k)%2)%2==0;default:throw Error("Hk`"+A);}},KyL=function(A,H){if(1<=H&&H<10)switch(A){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ik`"+A);}else if(H<27)switch(A){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ik`"+A);}else if(H<41)switch(A){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ik`"+A);}else throw Error("Jk`"+H);},V0I=function(A){if(A<1)throw Error("Kk`"+A);
return Qgi[A]},c0e=function(A){for(;A<0;)A+=255;
for(;A>=256;)A-=255;return dZ[A]},dZ=Array(256),Qgi=Array(256),ET_=0;ET_<8;ET_++)dZ[ET_]=1<<ET_;
for(var W9=8;W9<256;W9++)dZ[W9]=dZ[W9-4]^dZ[W9-5]^dZ[W9-6]^dZ[W9-8];for(var UcV=0;UcV<255;UcV++)Qgi[dZ[UcV]]=UcV;uh.prototype.get=function(A){return this.num[A]};
uh.prototype.getLength=function(){return this.num.length};
uh.prototype.multiply=function(A){for(var H=Array(this.getLength()+A.getLength()-1),k=0;k<this.getLength();k++)for(var d=0;d<A.getLength();d++)H[k+d]^=c0e(V0I(this.get(k))+V0I(A.get(d)));return new uh(H,0)};
uh.prototype.mod=function(A){if(this.getLength()-A.getLength()<0)return this;for(var H=V0I(this.get(0))-V0I(A.get(0)),k=Array(this.getLength()),d=0;d<this.getLength();d++)k[d]=this.get(d);for(d=0;d<A.getLength();d++)k[d]^=c0e(V0I(A.get(d))+H);return(new uh(k,0)).mod(A)};
var lJ1=[[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]],CVR=function(A,H){switch(H){case 1:return lJ1[(A-1)*4];case 0:return lJ1[(A-1)*4+1];case 3:return lJ1[(A-1)*4+2];case 2:return lJ1[(A-1)*4+3]}};
W$_.prototype.get=function(A){return(this.buffer[Math.floor(A/8)]>>>7-A%8&1)==1};
W$_.prototype.put=function(A,H){for(var k=0;k<H;k++)aJB(this,(A>>>H-k-1&1)==1)};
var aJB=function(A,H){var k=Math.floor(A.length/8);A.buffer.length<=k&&A.buffer.push(0);H&&(A.buffer[k]|=128>>>A.length%8);A.length++},sV=[[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]],r6B=function(){var A=function(H,k){this.JSC$19910__el=H;this.JSC$19910__htOption=k};
A.prototype.draw=function(H){function k(T,m){T=document.createElementNS("http://www.w3.org/2000/svg",T);for(var J in m)m.hasOwnProperty(J)&&(J==="href"?epR(T,m[J]):_.R4([_.y6(jgG),_.y6(IJI),_.y6(YpB),_.y6(PVB),_.y6(G23),_.y6(FyG),_.y6(XfB)],T,J,m[J]));return T}
var d=this.JSC$19910__htOption,W=this.JSC$19910__el,z=H.moduleCount;this.clear();var u=k("svg",{viewBox:"0 0 "+String(z)+" "+String(z),width:"100%",height:"100%",fill:d.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});W.appendChild(u);u.appendChild(k("rect",{fill:d.colorLight,width:"100%",height:"100%"}));u.appendChild(k("rect",{fill:d.colorDark,width:"1",height:"1",id:"template"}));for(var B=0;B<z;B++)for(var h=0;h<z;h++)if(H.isDark(B,h)){var O=k("use",{x:String(B),y:String(h),href:"#template"});
u.appendChild(O)}};
A.prototype.clear=function(){for(;this.JSC$19910__el.hasChildNodes();)this.JSC$19910__el.removeChild(this.JSC$19910__el.lastChild)};
return A}(),q6Q=document.documentElement.tagName.toLowerCase()==="svg"?r6B:typeof CanvasRenderingContext2D!="undefined"?function(){var A=function(H,k){this._bIsPainted=!1;
z7I();this.JSC$19910__htOption=k;this._elCanvas=document.createElement("canvas");this._elCanvas.width=k.width;this._elCanvas.height=k.height;H.appendChild(this._elCanvas);this.JSC$19910__el=H;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$19910__el.appendChild(this._elImage);this._bSupportDataURI=null};
A.prototype._onMakeImage=function(){var H=this._elCanvas.toDataURL("image/png");this._elImage.src=H;this._elImage.style.display="block";this._elCanvas.style.display="none"};
A.prototype._safeSetDataURI=function(H,k){var d=this;d._fFail=k;d._fSuccess=H;d._bSupportDataURI===null?(H=_.$g("IMG"),k=function(){d._bSupportDataURI=!1;d._fFail&&d._fFail.call(d)},H.onabort=k,H.onerror=k,H.onload=function(){d._bSupportDataURI=!0;
d._fSuccess&&d._fSuccess.call(d)},H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):d._bSupportDataURI===!0&&d._fSuccess?d._fSuccess.call(d):d._bSupportDataURI===!1&&d._fFail&&d._fFail.call(d)};
A.prototype.draw=function(H){var k=this._oContext,d=this.JSC$19910__htOption,W=H.moduleCount,z=d.width/W,u=d.height/W,B=Math.round(z),h=Math.round(u);this._elImage.style.display="none";this.clear();for(var O=0;O<W;O++)for(var T=0;T<W;T++){var m=H.isDark(O,T),J=T*z,g=O*u;k.strokeStyle=m?d.colorDark:d.colorLight;k.lineWidth=1;k.fillStyle=m?d.colorDark:d.colorLight;k.fillRect(J,g,z,u);k.strokeRect(Math.floor(J)+.5,Math.floor(g)+.5,B,h);k.strokeRect(Math.ceil(J)-.5,Math.ceil(g)-.5,B,h)}this._bIsPainted=
!0};
A.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
A.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
A.prototype.round=function(H){return H?Math.floor(H*1E3)/1E3:H};
return A}():function(){var A=function(H,k){this.JSC$19910__el=H;
this.JSC$19910__htOption=k};
A.prototype.draw=function(H){for(var k=this.JSC$19910__htOption,d=this.JSC$19910__el,W=H.moduleCount,z=Math.floor(k.width/W),u=Math.floor(k.height/W),B=['<table style="border:0;border-collapse:collapse;">'],h=0;h<W;h++){B.push("<tr>");for(var O=0;O<W;O++)B.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+z+"px;height:"+u+"px;background-color:"+(H.isDark(h,O)?k.colorDark:k.colorLight)+';"></td>');B.push("</tr>")}B.push("</table>");H=B.join("");H=_.LAj(_.yji,H);_.ON(d,H);
H=d.childNodes[0];W=(k.width-H.offsetWidth)/2;z=(k.height-H.offsetHeight)/2;W>0&&z>0&&(H.style.margin=z+"px "+W+"px")};
A.prototype.clear=function(){this.JSC$19910__el.textContent=""};
return A}();
x0_.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19913__android||this.JSC$19913__android>=3)&&this._oDrawing.makeImage()};
x0_.prototype.clear=function(){this._oDrawing.clear()};
_.k8.QRCode=x0_;var t0B={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var jOV=function(){};
jOV.prototype.stringify=function(A){return _.k8.JSON.stringify(A,void 0)};
jOV.prototype.parse=function(A){return _.k8.JSON.parse(A,void 0)};var Nse=function(){_.NZ.call(this,"z")};
_.EK(Nse,_.NZ);var M03=function(){_.NZ.call(this,"y")};
_.EK(M03,_.NZ);var h71=null;_.EK(R7I,_.NZ);_.EK(m0M,_.NZ);_.EK(J6L,_.NZ);eU.prototype.disableRedact=function(){this.redactEnabled_=!1};
var nTB=function(A,H,k,d,W,z){A.info(function(){if(A.redactEnabled_)if(z){var u="";for(var B=z.split("&"),h=0;h<B.length;h++){var O=B[h].split("=");if(O.length>1){var T=O[0];O=O[1];var m=T.split("_");u=m.length>=2&&m[1]=="type"?u+(T+"="+O+"&"):u+(T+"=redacted&")}}}else u=null;else u=z;return"XMLHTTP REQ ("+d+") [attempt "+W+"]: "+H+"\n"+k+"\n"+u})},Zke=function(A,H,k,d,W,z,u){A.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+W+"]: "+H+"\n"+k+"\n"+z+" "+u})},z_=function(A,H,k,d){A.info(function(){return"XMLHTTP TEXT ("+
H+"): "+fJI(A,k)+(d?" "+d:"")})},wf1=function(A,H){A.info(function(){return"TIMEOUT: "+H})};
eU.prototype.debug=function(){};
eU.prototype.info=function(){};
eU.prototype.warning=function(){};
var fJI=function(A,H){if(!A.redactEnabled_)return H;if(!H)return null;try{var k=JSON.parse(H);if(k)for(var d=0;d<k.length;d++)if(Array.isArray(k[d])){var W=k[d];if(!(W.length<2)){var z=W[1];if(Array.isArray(z)&&!(z.length<1)){var u=z[0];if(u!="noop"&&u!="stop"&&u!="close")for(var B=1;B<z.length;B++)z[B]=""}}}return _.Js(k)}catch(h){return A.debug("Exception parsing expected JS array - probably was not JS"),H}};var L$1=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},oT_=function(A,H){switch(A){case 0:return"Non-200 return code ("+H+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},$cQ={},ABe={};
x$.prototype.setTimeout=function(A){this.timeout_=A};
var s61=function(A,H,k){A.JSC$19935_type_=1;A.JSC$19935_baseUri_=_.nf(H.clone());A.JSC$19935_postData_=k;A.decodeChunks_=!0;HgR(A,null)},HgR=function(A,H){A.JSC$19935_requestStartTime_=Date.now();
kGG(A);A.JSC$19935_requestUri_=A.JSC$19935_baseUri_.clone();W7I(A.JSC$19935_requestUri_,"t",A.JSC$19935_retryId_);A.JSC$19935_xmlHttpChunkStart_=0;var k=A.JSC$19935_channel_.JSC$19954_supportsCrossDomainXhrs_;A.fetchResponseState_=new L$1;A.JSC$19935_xmlHttp_=dKe(A.JSC$19935_channel_,k?H:null,!A.JSC$19935_postData_);A.JSC$19935_readyStateChangeThrottleMs_>0&&(A.JSC$19935_readyStateChangeThrottle_=new _.Nt((0,_.WT)(A.JSC$19939_xmlHttpHandler_,A,A.JSC$19935_xmlHttp_),A.JSC$19935_readyStateChangeThrottleMs_));
A.JSC$19935_eventHandler_.listen(A.JSC$19935_xmlHttp_,"readystatechange",A.JSC$19939_readyStateChangeHandler_);H=A.JSC$19935_extraHeaders_?_.iK.clone(A.JSC$19935_extraHeaders_):{};A.JSC$19935_postData_?(A.JSC$19935_verb_||(A.JSC$19935_verb_="POST"),H["Content-Type"]="application/x-www-form-urlencoded",A.JSC$19935_xmlHttp_.send(A.JSC$19935_requestUri_,A.JSC$19935_verb_,A.JSC$19935_postData_,H)):(A.JSC$19935_verb_="GET",A.JSC$19935_xmlHttp_.send(A.JSC$19935_requestUri_,A.JSC$19935_verb_,null,H));Tu3(1);
nTB(A.JSC$19935_channelDebug_,A.JSC$19935_verb_,A.JSC$19935_requestUri_,A.JSC$19935_rid_,A.JSC$19935_retryId_,A.JSC$19935_postData_)};
x$.prototype.JSC$19939_readyStateChangeHandler_=function(A){A=A.target;var H=this.JSC$19935_readyStateChangeThrottle_;H&&_.bx(A)==3?(this.JSC$19935_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19939_xmlHttpHandler_(A)};
x$.prototype.JSC$19939_xmlHttpHandler_=function(A){try{A==this.JSC$19935_xmlHttp_?WfB(this):this.JSC$19935_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(H){this.JSC$19935_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),zaV(this)}finally{}};
var WfB=function(A){var H=_.bx(A.JSC$19935_xmlHttp_),k=A.JSC$19935_xmlHttp_.JSC$10109_lastErrorCode_,d=A.JSC$19935_xmlHttp_.getStatus();if(!(H<3||H==3&&!zaV(A))){A.JSC$19935_cancelled_||H!=4||k==7||(k==8||d<=0?Tu3(3):Tu3(2));qlG(A);var W=A.JSC$19935_xmlHttp_.getStatus();A.JSC$19935_lastStatusCode_=W;k=rBL(A);zaV(A)||A.JSC$19935_channelDebug_.debug(function(){return"No response text for uri "+A.JSC$19935_requestUri_+" status "+W});
A.JSC$19935_successful_=W==200;Zke(A.JSC$19935_channelDebug_,A.JSC$19935_verb_,A.JSC$19935_requestUri_,A.JSC$19935_rid_,A.JSC$19935_retryId_,H,W);if(A.JSC$19935_successful_){if(A.decodeInitialResponse_&&!A.initialResponseDecoded_)if(d=uJL(A))z_(A.JSC$19935_channelDebug_,A.JSC$19935_rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),A.initialResponseDecoded_=!0,Bf1(A,d);else{A.JSC$19935_successful_=!1;A.JSC$19935_lastError_=3;Br(12);A.JSC$19935_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
A.JSC$19935_rid_+")");qb(A);eaI(A);return}A.decodeChunks_?xK3(A,H,k):(z_(A.JSC$19935_channelDebug_,A.JSC$19935_rid_,k,null),Bf1(A,k));H==4&&qb(A);A.JSC$19935_successful_&&!A.JSC$19935_cancelled_&&(H==4?igL(A.JSC$19935_channel_,A):(A.JSC$19935_successful_=!1,kGG(A)))}else kaV(A.JSC$19935_xmlHttp_),W==400&&k.indexOf("Unknown SID")>0?(A.JSC$19935_lastError_=3,Br(12),A.JSC$19935_channelDebug_.warning("XMLHTTP Unknown SID ("+A.JSC$19935_rid_+")")):(A.JSC$19935_lastError_=0,Br(13),A.JSC$19935_channelDebug_.warning("XMLHTTP Bad status "+
W+" ("+A.JSC$19935_rid_+")")),qb(A),eaI(A)}},uJL=function(A){return A.JSC$19935_xmlHttp_&&(A=NlG(A.JSC$19935_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.BV(A)?A:null},rBL=function(A){if(!haB(A))return A.JSC$19935_xmlHttp_.getResponseText();
var H=A.JSC$19935_xmlHttp_.getResponse();if(H==="")return"";var k="",d=H.length,W=_.bx(A.JSC$19935_xmlHttp_)==4;if(!A.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return qb(A),eaI(A),"";A.fetchResponseState_.textDecoder=new _.k8.TextDecoder}for(var z=0;z<d;z++)A.fetchResponseState_.responseArrivedForFetch=!0,k+=A.fetchResponseState_.textDecoder.decode(H[z],{stream:!(W&&z==d-1)});H.length=0;A.fetchResponseState_.responseBuffer+=k;A.JSC$19935_xmlHttpChunkStart_=0;return A.fetchResponseState_.responseBuffer},
zaV=function(A){return A.JSC$19935_xmlHttp_?A.fetchResponseState_.responseArrivedForFetch?!0:!(!A.JSC$19935_xmlHttp_.getResponseText()&&!A.JSC$19935_xmlHttp_.getResponse()):!1},haB=function(A){return A.JSC$19935_xmlHttp_?A.JSC$19935_verb_=="GET"&&A.JSC$19935_type_!=2&&A.JSC$19935_channel_.usesFetchStreams_:!1},xK3=function(A,H,k){for(var d=!0,W;!A.JSC$19935_cancelled_&&A.JSC$19935_xmlHttpChunkStart_<k.length;)if(W=Og1(A,k),W==ABe){H==4&&(A.JSC$19935_lastError_=4,Br(14),d=!1);
z_(A.JSC$19935_channelDebug_,A.JSC$19935_rid_,null,"[Incomplete Response]");break}else if(W==$cQ){A.JSC$19935_lastError_=4;Br(15);z_(A.JSC$19935_channelDebug_,A.JSC$19935_rid_,k,"[Invalid Chunk]");d=!1;break}else z_(A.JSC$19935_channelDebug_,A.JSC$19935_rid_,W,null),Bf1(A,W);haB(A)&&A.JSC$19935_xmlHttpChunkStart_!=0&&(A.fetchResponseState_.responseBuffer=A.fetchResponseState_.responseBuffer.slice(A.JSC$19935_xmlHttpChunkStart_),A.JSC$19935_xmlHttpChunkStart_=0);H!=4||k.length!=0||A.fetchResponseState_.responseArrivedForFetch||
(A.JSC$19935_lastError_=1,Br(16),d=!1);A.JSC$19935_successful_=A.JSC$19935_successful_&&d;d?k.length>0&&!A.firstByteReceived_&&(A.firstByteReceived_=!0,H=A.JSC$19935_channel_,H.JSC$19954_backChannelRequest_==A&&H.detectBufferingProxy_&&!H.bpDetectionDone_&&(H.JSC$19954_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+k.length),RaB(H),H.bpDetectionDone_=!0,Br(11))):(z_(A.JSC$19935_channelDebug_,A.JSC$19935_rid_,k,"[Invalid Chunked Response]"),qb(A),eaI(A))},Og1=function(A,
H){var k=A.JSC$19935_xmlHttpChunkStart_,d=H.indexOf("\n",k);
if(d==-1)return ABe;k=Number(H.substring(k,d));if(isNaN(k))return $cQ;d+=1;if(d+k>H.length)return ABe;H=H.slice(d,d+k);A.JSC$19935_xmlHttpChunkStart_=d+k;return H};
x$.prototype.cancel=function(){this.JSC$19935_cancelled_=!0;qb(this)};
var kGG=function(A){A.JSC$19935_watchDogTimeoutTime_=Date.now()+A.timeout_;Tf_(A,A.timeout_)},Tf_=function(A,H){if(A.JSC$19935_watchDogTimerId_!=null)throw Error("Pk");
A.JSC$19935_watchDogTimerId_=b0Q((0,_.WT)(A.JSC$19939_onWatchDogTimeout_,A),H)},qlG=function(A){A.JSC$19935_watchDogTimerId_&&(_.k8.clearTimeout(A.JSC$19935_watchDogTimerId_),A.JSC$19935_watchDogTimerId_=null)};
x$.prototype.JSC$19939_onWatchDogTimeout_=function(){this.JSC$19935_watchDogTimerId_=null;var A=Date.now();A-this.JSC$19935_watchDogTimeoutTime_>=0?(wf1(this.JSC$19935_channelDebug_,this.JSC$19935_requestUri_),this.JSC$19935_type_!=2&&(Tu3(3),Br(17)),qb(this),this.JSC$19935_lastError_=2,eaI(this)):(this.JSC$19935_channelDebug_.warning("WatchDog timer called too early"),Tf_(this,this.JSC$19935_watchDogTimeoutTime_-A))};
var eaI=function(A){A.JSC$19935_channel_.state_==0||A.JSC$19935_cancelled_||igL(A.JSC$19935_channel_,A)},qb=function(A){qlG(A);
_.CC(A.JSC$19935_readyStateChangeThrottle_);A.JSC$19935_readyStateChangeThrottle_=null;A.JSC$19935_eventHandler_.removeAll();if(A.JSC$19935_xmlHttp_){var H=A.JSC$19935_xmlHttp_;A.JSC$19935_xmlHttp_=null;H.abort();H.dispose()}};
x$.prototype.getLastError=function(){return this.JSC$19935_lastError_};
var Bf1=function(A,H){try{var k=A.JSC$19935_channel_;if(k.state_!=0&&(k.JSC$19954_backChannelRequest_==A||mKM(k.forwardChannelRequestPool_,A)))if(!A.initialResponseDecoded_&&mKM(k.forwardChannelRequestPool_,A)&&k.state_==3){try{var d=k.wireCodec_.JSC$19949_parser_.parse(H)}catch(B){d=null}if(Array.isArray(d)&&d.length==3){H=d;if(H[0]==0)a:if(k.JSC$19954_channelDebug_.debug("Server claims our backchannel is missing."),k.JSC$19954_backChannelTimerId_)k.JSC$19954_channelDebug_.debug("But we are currently starting the request.");
else{if(k.JSC$19954_backChannelRequest_)if(k.JSC$19954_backChannelRequest_.JSC$19935_requestStartTime_+3E3<A.JSC$19935_requestStartTime_)JBL(k),gLR(k);else break a;else k.JSC$19954_channelDebug_.warning("We do not have a BackChannel established");bgi(k);Br(18)}else{k.JSC$19954_lastPostResponseArrayId_=H[1];var W=k.JSC$19954_lastPostResponseArrayId_-k.JSC$19954_lastArrayId_;if(0<W){var z=H[2];k.JSC$19954_channelDebug_.debug(z+" bytes (in "+W+" arrays) are outstanding on the BackChannel");z<37500&&
k.enableStreaming_&&k.JSC$19954_backChannelRetryCount_==0&&!k.JSC$19954_deadBackChannelTimerId_&&(k.JSC$19954_deadBackChannelTimerId_=b0Q((0,_.WT)(k.JSC$19956_onBackChannelDead_,k),6E3))}}if(LfQ(k.forwardChannelRequestPool_)<=1&&k.forwardChannelFlushedCallback_){try{k.forwardChannelFlushedCallback_()}catch(B){}k.forwardChannelFlushedCallback_=void 0}}else k.JSC$19954_channelDebug_.debug("Bad POST response data returned"),rZ(k,11)}else if((A.initialResponseDecoded_||k.JSC$19954_backChannelRequest_==
A)&&JBL(k),!_.BV(H)){var u=k.wireCodec_.JSC$19949_parser_.parse(H);k.onInput_(u,A)}Tu3(4)}catch(B){}};var vLB=function(A,H){this.JSC$19942_mapId=A;this.map=H;this.context=null};var Py_=function(A){this.maxPoolSizeConfigured_=A||10;_.k8.PerformanceNavigationTiming?(A=_.k8.performance.getEntriesByType("navigation"),A=A.length>0&&(A[0].nextHopProtocol=="hq"||A[0].nextHopProtocol=="h2")):A=!!(_.k8.chrome&&_.k8.chrome.loadTimes&&_.k8.chrome.loadTimes()&&_.k8.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19945_maxSize_=A?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19945_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19945_request_=null;this.JSC$19945_pendingMessages_=
[]},yB_=function(A){return A.JSC$19945_request_?!0:A.requestPool_?A.requestPool_.size>=A.JSC$19945_maxSize_:!1},LfQ=function(A){return A.JSC$19945_request_?1:A.requestPool_?A.requestPool_.size:0},mKM=function(A,H){return A.JSC$19945_request_?A.JSC$19945_request_==H:A.requestPool_?A.requestPool_.has(H):!1},j6Q=function(A,H){A.requestPool_?A.requestPool_.add(H):A.JSC$19945_request_=H},Ip_=function(A,H){A.JSC$19945_request_&&A.JSC$19945_request_==H?A.JSC$19945_request_=null:A.requestPool_&&A.requestPool_.has(H)&&
A.requestPool_.delete(H)};
Py_.prototype.cancel=function(){this.JSC$19945_pendingMessages_=YlB(this);if(this.JSC$19945_request_)this.JSC$19945_request_.cancel(),this.JSC$19945_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var A=_.r(this.requestPool_.values()),H=A.next();!H.done;H=A.next())H.value.cancel();this.requestPool_.clear()}};
var YlB=function(A){if(A.JSC$19945_request_!=null)return A.JSC$19945_pendingMessages_.concat(A.JSC$19945_request_.JSC$19935_pendingMessages_);if(A.requestPool_!=null&&A.requestPool_.size!==0){var H=A.JSC$19945_pendingMessages_;A=_.r(A.requestPool_.values());for(var k=A.next();!k.done;k=A.next())H=H.concat(k.value.JSC$19935_pendingMessages_);return H}return _.tA(A.JSC$19945_pendingMessages_)},Pu_=function(A,H){A.JSC$19945_pendingMessages_=A.JSC$19945_pendingMessages_.concat(H)};hO.prototype.JSC$19956_channelVersion_=8;hO.prototype.state_=1;
hO.prototype.connect=function(A,H,k,d){this.JSC$19954_channelDebug_.debug("connect()");Br(0);this.JSC$19954_path_=A;this.JSC$19954_extraParams_=H||{};k&&d!==void 0&&(this.JSC$19954_extraParams_.OSID=k,this.JSC$19954_extraParams_.OAID=d);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19954_channelDebug_.debug("connectChannel_()");A=GGQ(this,null,this.JSC$19954_path_);this.JSC$19954_channelDebug_.debug("GetForwardChannelUri: "+A);this.JSC$19954_forwardChannelUri_=A;Ff_(this)};
hO.prototype.disconnect=function(){this.JSC$19954_channelDebug_.debug("disconnect()");XwI(this);if(this.state_==3){var A=this.JSC$19954_nextRid_++,H=this.JSC$19954_forwardChannelUri_.clone();_.VT(H,"SID",this.sid_);_.VT(H,"RID",A);_.VT(H,"TYPE","terminate");DK_(this,H);A=new x$(this,this.JSC$19954_channelDebug_,this.sid_,A);A.JSC$19935_type_=2;A.JSC$19935_baseUri_=_.nf(H.clone());H=!1;if(_.k8.navigator&&_.k8.navigator.sendBeacon)try{H=_.k8.navigator.sendBeacon(A.JSC$19935_baseUri_.toString(),"")}catch(k){}!H&&
_.k8.Image&&((new Image).src=A.JSC$19935_baseUri_,H=!0);H||(A.JSC$19935_xmlHttp_=dKe(A.JSC$19935_channel_,null),A.JSC$19935_xmlHttp_.send(A.JSC$19935_baseUri_));A.JSC$19935_requestStartTime_=Date.now();kGG(A)}SlM(this)};
var gLR=function(A){A.JSC$19954_backChannelRequest_&&(RaB(A),A.JSC$19954_backChannelRequest_.cancel(),A.JSC$19954_backChannelRequest_=null)},XwI=function(A){gLR(A);
A.JSC$19954_backChannelTimerId_&&(_.k8.clearTimeout(A.JSC$19954_backChannelTimerId_),A.JSC$19954_backChannelTimerId_=null);JBL(A);A.forwardChannelRequestPool_.cancel();A.JSC$19954_forwardChannelTimerId_&&(typeof A.JSC$19954_forwardChannelTimerId_==="number"&&_.k8.clearTimeout(A.JSC$19954_forwardChannelTimerId_),A.JSC$19954_forwardChannelTimerId_=null)};
hO.prototype.getState=function(){return this.state_};
var Ff_=function(A){yB_(A.forwardChannelRequestPool_)||A.JSC$19954_forwardChannelTimerId_||(A.JSC$19954_forwardChannelTimerId_=!0,_.hs(A.JSC$19956_onStartForwardChannelTimer_,A),A.JSC$19954_forwardChannelRetryCount_=0)},KfM=function(A,H){if(LfQ(A.forwardChannelRequestPool_)>=A.forwardChannelRequestPool_.JSC$19945_maxSize_-(A.JSC$19954_forwardChannelTimerId_?1:0))return!1;
if(A.JSC$19954_forwardChannelTimerId_)return A.JSC$19954_channelDebug_.debug("Use the retry request that is already scheduled."),A.JSC$19954_outgoingMaps_=H.JSC$19935_pendingMessages_.concat(A.JSC$19954_outgoingMaps_),!0;if(A.state_==1||A.state_==2||A.JSC$19954_forwardChannelRetryCount_>=(A.JSC$19954_failFast_?0:A.JSC$19954_forwardChannelMaxRetries_))return!1;A.JSC$19954_channelDebug_.debug("Going to retry POST");A.JSC$19954_forwardChannelTimerId_=b0Q((0,_.WT)(A.JSC$19956_onStartForwardChannelTimer_,
A,H),CuB(A,A.JSC$19954_forwardChannelRetryCount_));A.JSC$19954_forwardChannelRetryCount_++;return!0};
hO.prototype.JSC$19956_onStartForwardChannelTimer_=function(A){if(this.JSC$19954_forwardChannelTimerId_)if(this.JSC$19954_forwardChannelTimerId_=null,this.JSC$19954_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!A){this.JSC$19954_channelDebug_.debug("open_()");this.JSC$19954_nextRid_=Math.floor(Math.random()*1E5);A=this.JSC$19954_nextRid_++;var H=new x$(this,this.JSC$19954_channelDebug_,"",A),k=this.JSC$19954_extraHeaders_;this.initHeaders_&&(k?(k=_.iK.clone(k),_.iK.extend(k,this.initHeaders_)):
k=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(H.JSC$19935_extraHeaders_=k,k=null);var d;if(this.fastHandshake_)a:{for(var W=d=0;W<this.JSC$19954_outgoingMaps_.length;W++){b:{var z=this.JSC$19954_outgoingMaps_[W];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;d+=z;if(d>4096){d=W;break a}if(d===4096||W===this.JSC$19954_outgoingMaps_.length-1){d=W+1;break a}}d=this.maxMapsPerRequest_}else d=
this.maxMapsPerRequest_;d=apQ(this,H,d);W=this.JSC$19954_forwardChannelUri_.clone();_.VT(W,"RID",A);_.VT(W,"CVER",22);this.httpSessionIdParam_&&_.VT(W,"X-HTTP-Session-Id",this.httpSessionIdParam_);DK_(this,W);k&&(this.encodeInitMessageHeaders_?d="headers="+_.w5(ZIR(k))+"&"+d:this.httpHeadersOverwriteParam_&&fDB(W,this.httpHeadersOverwriteParam_,k));j6Q(this.forwardChannelRequestPool_,H);this.blockingHandshake_&&_.VT(W,"TYPE","init");this.fastHandshake_?(_.VT(W,"$req",d),_.VT(W,"SID","null"),H.decodeInitialResponse_=
!0,s61(H,W,null)):s61(H,W,d);this.state_=2}}else this.state_==3&&(A?cBi(this,A):this.JSC$19954_outgoingMaps_.length==0?this.JSC$19954_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):yB_(this.forwardChannelRequestPool_)||(cBi(this),this.JSC$19954_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var cBi=function(A,H){var k;H?k=H.JSC$19935_rid_:k=A.JSC$19954_nextRid_++;var d=A.JSC$19954_forwardChannelUri_.clone();_.VT(d,"SID",A.sid_);_.VT(d,"RID",k);_.VT(d,"AID",A.JSC$19954_lastArrayId_);DK_(A,d);A.httpHeadersOverwriteParam_&&A.JSC$19954_extraHeaders_&&fDB(d,A.httpHeadersOverwriteParam_,A.JSC$19954_extraHeaders_);k=new x$(A,A.JSC$19954_channelDebug_,A.sid_,k,A.JSC$19954_forwardChannelRetryCount_+1);A.httpHeadersOverwriteParam_===null&&(k.JSC$19935_extraHeaders_=A.JSC$19954_extraHeaders_);
H&&(A.JSC$19954_outgoingMaps_=H.JSC$19935_pendingMessages_.concat(A.JSC$19954_outgoingMaps_));H=apQ(A,k,A.maxMapsPerRequest_);k.setTimeout(Math.round(A.JSC$19954_forwardChannelRequestTimeoutMs_*.5)+Math.round(A.JSC$19954_forwardChannelRequestTimeoutMs_*.5*Math.random()));j6Q(A.forwardChannelRequestPool_,k);s61(k,d,H)},DK_=function(A,H){A.JSC$19954_extraParams_&&_.iK.forEach(A.JSC$19954_extraParams_,function(k,d){_.VT(H,d,k)});
A.handler_&&_.iK.forEach({},function(k,d){_.VT(H,d,k)})},apQ=function(A,H,k){k=Math.min(A.JSC$19954_outgoingMaps_.length,k);
var d=A.handler_?(0,_.WT)(A.handler_.JSC$19960_badMapError,A.handler_,A):null;a:{for(var W=A.JSC$19954_outgoingMaps_,z=-1;;){var u=["count="+k];z==-1?k>0?(z=W[0].JSC$19942_mapId,u.push("ofs="+z)):z=0:u.push("ofs="+z);for(var B=!0,h=0;h<k;h++){var O=W[h].JSC$19942_mapId,T=W[h].map;O-=z;if(O<0)z=Math.max(0,W[h].JSC$19942_mapId-100),B=!1;else try{O="req"+O+"_"||"";try{var m=T instanceof Map?T:Object.entries(T);for(var J=_.r(m),g=J.next();!g.done;g=J.next()){var v=_.r(g.value),y=v.next().value,X=v.next().value,
D=X;_.nl(X)&&(D=_.Js(X));u.push(O+y+"="+encodeURIComponent(D))}}catch(K){throw u.push(O+"type="+encodeURIComponent("_badmap")),K;}}catch(K){d&&d(T)}}if(B){m=u.join("&");break a}}m=void 0}A=A.JSC$19954_outgoingMaps_.splice(0,k);H.JSC$19935_pendingMessages_=A;return m},pw_=function(A){A.JSC$19954_backChannelRequest_||A.JSC$19954_backChannelTimerId_||(A.JSC$19954_backChannelAttemptId_=1,_.hs(A.JSC$19956_onStartBackChannelTimer_,A),A.JSC$19954_backChannelRetryCount_=0)},bgi=function(A){if(A.JSC$19954_backChannelRequest_||
A.JSC$19954_backChannelTimerId_||A.JSC$19954_backChannelRetryCount_>=3)return!1;
A.JSC$19954_channelDebug_.debug("Going to retry GET");A.JSC$19954_backChannelAttemptId_++;A.JSC$19954_backChannelTimerId_=b0Q((0,_.WT)(A.JSC$19956_onStartBackChannelTimer_,A),CuB(A,A.JSC$19954_backChannelRetryCount_));A.JSC$19954_backChannelRetryCount_++;return!0};
hO.prototype.JSC$19956_onStartBackChannelTimer_=function(){this.JSC$19954_backChannelTimerId_=null;Q6B(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19954_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19954_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19954_backChannelRequest_+" "+this.handshakeRttMs_);else{var A=4*this.handshakeRttMs_;this.JSC$19954_channelDebug_.info("BP detection timer enabled: "+A);this.bpDetectionTimerId_=b0Q((0,_.WT)(this.onBpDetectionTimer_,
this),A)}};
hO.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19954_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19954_backChannelRequest_.JSC$19935_xmlHttp_!=null){var A=this.JSC$19954_backChannelRequest_.JSC$19935_xmlHttp_.getResponseText();A&&this.JSC$19954_channelDebug_.warning("Timer should have been cancelled : "+A)}this.JSC$19954_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Br(10);gLR(this);Q6B(this)}else this.JSC$19954_channelDebug_.warning("Invalid operation.")};
var RaB=function(A){A.bpDetectionTimerId_!=null&&(A.JSC$19954_channelDebug_.debug("Cancel the BP detection timer."),_.k8.clearTimeout(A.bpDetectionTimerId_),A.bpDetectionTimerId_=null)},Q6B=function(A){A.JSC$19954_channelDebug_.debug("Creating new HttpRequest");
A.JSC$19954_backChannelRequest_=new x$(A,A.JSC$19954_channelDebug_,A.sid_,"rpc",A.JSC$19954_backChannelAttemptId_);A.httpHeadersOverwriteParam_===null&&(A.JSC$19954_backChannelRequest_.JSC$19935_extraHeaders_=A.JSC$19954_extraHeaders_);A.JSC$19954_backChannelRequest_.JSC$19935_readyStateChangeThrottleMs_=0;var H=A.JSC$19954_backChannelUri_.clone();_.VT(H,"RID","rpc");_.VT(H,"SID",A.sid_);_.VT(H,"AID",A.JSC$19954_lastArrayId_);_.VT(H,"CI",A.enableStreaming_?"0":"1");!A.enableStreaming_&&A.longPollingTimeout_&&
_.VT(H,"TO",A.longPollingTimeout_);_.VT(H,"TYPE","xmlhttp");DK_(A,H);A.httpHeadersOverwriteParam_&&A.JSC$19954_extraHeaders_&&fDB(H,A.httpHeadersOverwriteParam_,A.JSC$19954_extraHeaders_);A.backChannelRequestTimeoutMs_&&A.JSC$19954_backChannelRequest_.setTimeout(A.backChannelRequestTimeoutMs_);var k=A.JSC$19954_backChannelRequest_,d=A.JSC$19954_hostPrefix_;k.JSC$19935_type_=1;k.JSC$19935_baseUri_=_.nf(H.clone());k.JSC$19935_postData_=null;k.decodeChunks_=!0;HgR(k,d);A.JSC$19954_channelDebug_.debug("New Request created")};
hO.prototype.JSC$19956_onBackChannelDead_=function(){this.JSC$19954_deadBackChannelTimerId_!=null&&(this.JSC$19954_deadBackChannelTimerId_=null,gLR(this),bgi(this),Br(19))};
var JBL=function(A){A.JSC$19954_deadBackChannelTimerId_!=null&&(_.k8.clearTimeout(A.JSC$19954_deadBackChannelTimerId_),A.JSC$19954_deadBackChannelTimerId_=null)},igL=function(A,H){A.JSC$19954_channelDebug_.debug("Request complete");
var k=null;if(A.JSC$19954_backChannelRequest_==H){JBL(A);RaB(A);A.JSC$19954_backChannelRequest_=null;var d=2}else if(mKM(A.forwardChannelRequestPool_,H))k=H.JSC$19935_pendingMessages_,Ip_(A.forwardChannelRequestPool_,H),d=1;else return;if(A.state_!=0)if(H.JSC$19935_successful_)d==1?(g9V(H.JSC$19935_postData_?H.JSC$19935_postData_.length:0,Date.now()-H.JSC$19935_requestStartTime_,A.JSC$19954_forwardChannelRetryCount_),Ff_(A)):pw_(A);else{var W=H.JSC$19935_lastStatusCode_,z=H.getLastError();if(z==3||
z==0&&W>0)A.JSC$19954_channelDebug_.debug("Not retrying due to error type"),W>200&&(A.errorResponseStatusCode_=H.JSC$19935_lastStatusCode_);else{A.JSC$19954_channelDebug_.debug(function(){return"Maybe retrying, last error: "+oT_(z,A.errorResponseStatusCode_)});
if(d==1&&KfM(A,H)||d==2&&bgi(A))return;A.JSC$19954_channelDebug_.debug("Exceeded max number of retries")}k&&k.length>0&&Pu_(A.forwardChannelRequestPool_,k);A.JSC$19954_channelDebug_.debug("Error: HTTP request failed");switch(z){case 1:rZ(A,5);break;case 4:rZ(A,10);break;case 3:rZ(A,6);break;default:rZ(A,2)}}},CuB=function(A,H){var k=A.JSC$19954_baseRetryDelayMs_+Math.floor(Math.random()*A.JSC$19954_retryDelaySeedMs_);
A.isActive()||(A.JSC$19954_channelDebug_.debug("Inactive channel"),k*=2);return k*H};
hO.prototype.onInput_=function(A,H){for(var k=0;k<A.length;k++){var d=A[k],W=d[0];if(W<=this.JSC$19954_lastArrayId_)this.JSC$19954_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+W+", lastArrayId: "+this.JSC$19954_lastArrayId_);else if(W>this.JSC$19954_lastArrayId_+1&&this.JSC$19954_lastArrayId_>-1&&this.JSC$19954_channelDebug_.warning("Received non-consecutive message with arrayId: "+W+", lastArrayId: "+this.JSC$19954_lastArrayId_),this.JSC$19954_lastArrayId_=W,
d=d[1],this.state_==2)if(d[0]=="c"){this.sid_=d[1];this.JSC$19954_hostPrefix_=d[2];W=d[3];W!=null&&(this.JSC$19956_channelVersion_=W,this.JSC$19954_channelDebug_.info("VER="+this.JSC$19956_channelVersion_));W=d[4];W!=null&&(this.serverVersion_=W,this.JSC$19954_channelDebug_.info("SVER="+this.serverVersion_));d=d[5];d!=null&&typeof d==="number"&&d>0&&(this.backChannelRequestTimeoutMs_=d*=1.5,this.JSC$19954_channelDebug_.info("backChannelRequestTimeoutMs_="+d));if(d=H.JSC$19935_xmlHttp_){var z=NlG(d,
"X-Client-Wire-Protocol");z&&(W=this.forwardChannelRequestPool_,!W.requestPool_&&(_.iI(z,"spdy")||_.iI(z,"quic")||_.iI(z,"h2"))&&(W.JSC$19945_maxSize_=W.maxPoolSizeConfigured_,W.requestPool_=new Set,W.JSC$19945_request_&&(j6Q(W,W.JSC$19945_request_),W.JSC$19945_request_=null)));this.httpSessionIdParam_&&((d=NlG(d,"X-HTTP-Session-Id"))?(this.httpSessionId_=d,_.VT(this.JSC$19954_forwardChannelUri_,this.httpSessionIdParam_,d)):this.JSC$19954_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19960_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-H.JSC$19935_requestStartTime_,this.JSC$19954_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));d=H;W=GGQ(this,this.JSC$19954_supportsCrossDomainXhrs_?this.JSC$19954_hostPrefix_:null,this.JSC$19954_path_);this.JSC$19954_channelDebug_.debug("GetBackChannelUri: "+W);this.JSC$19954_backChannelUri_=W;d.initialResponseDecoded_?(this.JSC$19954_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
Ip_(this.forwardChannelRequestPool_,d),W=d,(z=this.backChannelRequestTimeoutMs_)&&W.setTimeout(z),W.JSC$19935_watchDogTimerId_&&(qlG(W),kGG(W)),this.JSC$19954_backChannelRequest_=d):pw_(this);this.JSC$19954_outgoingMaps_.length>0&&Ff_(this)}else d[0]!="stop"&&d[0]!="close"||rZ(this,7);else this.state_==3&&(d[0]=="stop"||d[0]=="close"?d[0]=="stop"?rZ(this,7):this.disconnect():d[0]!="noop"&&this.handler_&&this.handler_.JSC$19960_channelHandleArray(d),this.JSC$19954_backChannelRetryCount_=0)}};
var rZ=function(A,H){A.JSC$19954_channelDebug_.info("Error code "+H);if(H==2){var k=(0,_.WT)(A.testNetworkCallback_,A),d=A.networkTestUrl_,W=!d;d=new _.PB(d||"//www.google.com/images/cleardot.gif");_.k8.location&&_.k8.location.protocol=="http"||_.pf(d,"https");_.nf(d);W?v91(d.toString(),k):y6R(d.toString(),k)}else Br(2);A.onError_(H)};
hO.prototype.testNetworkCallback_=function(A){A?(this.JSC$19954_channelDebug_.info("Successfully pinged google.com"),Br(2)):(this.JSC$19954_channelDebug_.info("Failed to ping google.com"),Br(1))};
hO.prototype.onError_=function(A){this.JSC$19954_channelDebug_.debug("HttpChannel: error - "+A);this.state_=0;this.handler_&&this.handler_.JSC$19960_channelError(A);SlM(this);XwI(this)};
var SlM=function(A){A.state_=0;A.nonAckedMapsAtChannelClose_=[];if(A.handler_){var H=YlB(A.forwardChannelRequestPool_);if(H.length!=0||A.JSC$19954_outgoingMaps_.length!=0)A.JSC$19954_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+H.length+", outgoing: "+A.JSC$19954_outgoingMaps_.length}),_.Mv(A.nonAckedMapsAtChannelClose_,H),_.Mv(A.nonAckedMapsAtChannelClose_,A.JSC$19954_outgoingMaps_),A.forwardChannelRequestPool_.JSC$19945_pendingMessages_.length=0,_.tA(A.JSC$19954_outgoingMaps_),
A.JSC$19954_outgoingMaps_.length=0;
A.handler_.JSC$19960_channelClosed()}},V3_=function(A){if(A.state_==0)return A.nonAckedMapsAtChannelClose_;
var H=[];_.Mv(H,YlB(A.forwardChannelRequestPool_));_.Mv(H,A.JSC$19954_outgoingMaps_);return H},GGQ=function(A,H,k){var d=_.p$(k);
d.JSC$10346_domain_!=""?(H&&_.Qh(d,H+"."+d.JSC$10346_domain_),_.Vh(d,d.JSC$10346_port_)):(d=_.k8.location,d=g2_(d.protocol,H?H+"."+d.hostname:d.hostname,+d.port,k));H=A.httpSessionIdParam_;k=A.httpSessionId_;H&&k&&_.VT(d,H,k);_.VT(d,"VER",A.JSC$19956_channelVersion_);DK_(A,d);return d},dKe=function(A,H,k){if(H&&!A.JSC$19954_supportsCrossDomainXhrs_)throw Error("Qk");
H=A.usesFetchStreams_&&!A.JSC$19954_xmlHttpFactory_?new _.g3(new thM({streamBinaryChunks:k})):new _.g3(A.JSC$19954_xmlHttpFactory_);H.JSC$10109_withCredentials_=A.JSC$19954_supportsCrossDomainXhrs_;return H};
hO.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var ELG=function(){};
_.q=ELG.prototype;_.q.JSC$19960_channelOpened=function(){};
_.q.JSC$19960_channelHandleArray=function(){};
_.q.JSC$19960_channelError=function(){};
_.q.JSC$19960_channelClosed=function(){};
_.q.isActive=function(){return!0};
_.q.JSC$19960_badMapError=function(){};var B9=function(A,H){_.Is.call(this);this.JSC$19963_channel_=new hO(H);this.JSC$19963_url_=A;this.messageUrlParams_=H&&H.messageUrlParams||null;A=H&&H.messageHeaders||null;H&&H.clientProtocolHeaderRequired&&(A?_.iK.set(A,"X-Client-Protocol","webchannel"):A=_.iK.create("X-Client-Protocol","webchannel"));this.JSC$19963_channel_.JSC$19954_extraHeaders_=A;A=H&&H.initMessageHeaders||null;H&&H.messageContentType&&(A?_.iK.set(A,"X-WebChannel-Content-Type",H.messageContentType):A=_.iK.create("X-WebChannel-Content-Type",
H.messageContentType));H&&H.clientProfile&&(A?_.iK.set(A,"X-WebChannel-Client-Profile",H.clientProfile):A=_.iK.create("X-WebChannel-Client-Profile",H.clientProfile));this.JSC$19963_channel_.initHeaders_=A;(A=H&&H.httpHeadersOverwriteParam)&&!_.BV(A)&&(this.JSC$19963_channel_.httpHeadersOverwriteParam_=A);this.supportsCrossDomainXhr_=H&&H.supportsCrossDomainXhr||!1;this.sendRawJson_=H&&H.sendRawJson||!1;(H=H&&H.httpSessionIdParam)&&!_.BV(H)&&(this.JSC$19963_channel_.httpSessionIdParam_=H,_.iK.containsKey(this.messageUrlParams_,
H)&&_.iK.remove(this.messageUrlParams_,H));this.channelHandler_=new u7(this)};
_.EK(B9,_.Is);B9.prototype.open=function(){this.JSC$19963_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19963_channel_.JSC$19954_supportsCrossDomainXhrs_=!0);this.JSC$19963_channel_.connect(this.JSC$19963_url_,this.messageUrlParams_||void 0)};
B9.prototype.close=function(){this.JSC$19963_channel_.disconnect()};
B9.prototype.send=function(A){var H=this.JSC$19963_channel_;if(typeof A==="string"){var k={};k.__data__=A;A=k}else this.sendRawJson_&&(k={},k.__data__=_.Js(A),A=k);H.JSC$19954_outgoingMaps_.push(new vLB(H.JSC$19954_nextMapId_++,A));H.state_==3&&Ff_(H)};
B9.prototype.disposeInternal=function(){this.JSC$19963_channel_.handler_=null;delete this.channelHandler_;this.JSC$19963_channel_.disconnect();delete this.JSC$19963_channel_;B9.superClass_.disposeInternal.call(this)};
var UKQ=function(A){Nse.call(this);A.__headers__&&(this.headers=A.__headers__,this.statusCode=A.__status__,delete A.__headers__,delete A.__status__);var H=A.__sm__;H?this.data=(this.metadataKey=_.iK.getAnyKey(H))?_.iK.get(H,this.metadataKey):H:this.data=A};
_.EK(UKQ,Nse);var lp1=function(A){M03.call(this);this.status=1;this.errorCode=A};
_.EK(lp1,M03);var u7=function(A){this.JSC$19970_channel_=A};
_.EK(u7,ELG);u7.prototype.JSC$19960_channelOpened=function(){this.JSC$19970_channel_.dispatchEvent("w")};
u7.prototype.JSC$19960_channelHandleArray=function(A){this.JSC$19970_channel_.dispatchEvent(new UKQ(A))};
u7.prototype.JSC$19960_channelError=function(A){this.JSC$19970_channel_.dispatchEvent(new lp1(A))};
u7.prototype.JSC$19960_channelClosed=function(){this.JSC$19970_channel_.dispatchEvent("x")};
var t3_=function(A,H){this.transportChannel_=A;this.JSC$19973_channel_=H},NfV=function(A){return V3_(A.JSC$19973_channel_).map(function(H){var k=A.transportChannel_;
H=H.map;"__data__"in H?(H=H.__data__,k=k.sendRawJson_?_.fRZ(H):H):k=H;return k})};
t3_.prototype.commit=function(A){this.JSC$19973_channel_.forwardChannelFlushedCallback_=A};var M3Q=function(A,H,k){for(var d=0;d<A.getSize().height;d++)for(var W=0;W<A.getSize().width;W++)H.call(k,A.array_[d][W],d,W,A)},nLV=function(A,H){var k=new OO(A.getSize());
M3Q(A,function(d,W,z){k.array_[W][z]=H.call(void 0,d,W,z,A)});
return k},F$Q=function(A,H){for(var k=[],d=0;d<A;d++){k[d]=[];
for(var W=0;W<H;W++)k[d][W]=0}return k};
OO.prototype.add=function(A){if(!hd3(this.size_,A.getSize()))throw Error("Tk");return nLV(this,function(H,k,d){return H+A.array_[k][d]})};
OO.prototype.equals=function(A,H){if(this.size_.width!=A.size_.width||this.size_.height!=A.size_.height)return!1;H=H||0;for(var k=0;k<this.size_.height;k++)for(var d=0;d<this.size_.width;d++)if(!xn_(this.array_[k][d],A.array_[k][d],H))return!1;return!0};
OO.prototype.getSize=function(){return this.size_};
var eR=function(A,H,k){return H>=0&&H<A.size_.height&&k>=0&&k<A.size_.width?A.array_[H][k]:null};
OO.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var ZgM=function(A,H,k,d){if(!(H>=0&&H<A.size_.height&&k>=0&&k<A.size_.width))throw Error("Uk`"+H+"`"+k+"`"+A.size_.height+"`"+A.size_.width);A.array_[H][k]=d};
OO.prototype.multiply=function(A){if(A instanceof OO){if(this.size_.width!=A.getSize().height)throw Error("Vk");return fpV(this,A)}if(typeof A==="number")return wwB(this,A);throw Error("Wk");};
var fpV=function(A,H){var k=new OO(A.size_.height,H.getSize().width);M3Q(k,function(d,W,z){for(var u=d=0;u<this.size_.width;u++)d+=eR(this,W,u)*eR(H,u,z);ZgM(k,W,z,d)},A);
return k},wwB=function(A,H){return nLV(A,function(k){return k*H})};var xa=function(A){oL_.dispatchEvent(new $K1(oL_,A))},oL_=new _.Is,$K1=function(A,H){_.NZ.call(this,"statevent",A);
this.stat=H};
_.I($K1,_.NZ);_.q=TJ.prototype;_.q.JSC$19983_extraHeaders_=null;_.q.JSC$19983_successful_=!1;_.q.JSC$19983_watchDogTimerId_=null;_.q.JSC$19983_watchDogTimeoutTime_=null;_.q.JSC$19983_requestStartTime_=null;_.q.JSC$19983_type_=null;_.q.JSC$19983_baseUri_=null;_.q.JSC$19983_requestUri_=null;_.q.JSC$19983_postData_=null;_.q.JSC$19983_xmlHttp_=null;_.q.JSC$19983_xmlHttpChunkStart_=0;_.q.trident_=null;_.q.JSC$19983_verb_=null;_.q.JSC$19983_lastError_=null;_.q.JSC$19983_lastStatusCode_=-1;_.q.sendClose_=!0;
_.q.JSC$19983_cancelled_=!1;_.q.JSC$19983_readyStateChangeThrottleMs_=0;_.q.JSC$19983_readyStateChangeThrottle_=null;var AzB=function(A,H){switch(A){case 0:return"Non-200 return code ("+H+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Hr_={},sr1={};
TJ.prototype.setTimeout=function(A){this.timeout_=A};
var d6L=function(A,H,k){A.JSC$19983_type_=1;A.JSC$19983_baseUri_=_.nf(H.clone());A.JSC$19983_postData_=k;A.decodeChunks_=!0;kXR(A,null)},Wg1=function(A,H,k,d,W){A.JSC$19983_type_=1;
A.JSC$19983_baseUri_=_.nf(H.clone());A.JSC$19983_postData_=null;A.decodeChunks_=k;W&&(A.sendClose_=!1);kXR(A,d)},kXR=function(A,H){A.JSC$19983_requestStartTime_=Date.now();
zbL(A);A.JSC$19983_requestUri_=A.JSC$19983_baseUri_.clone();W7I(A.JSC$19983_requestUri_,"t",A.JSC$19981_retryId_);A.JSC$19983_xmlHttpChunkStart_=0;A.JSC$19983_xmlHttp_=A.JSC$19981_channel_.JSC$19990_createXhrIo(A.JSC$19981_channel_.JSC$19990_shouldUseSecondaryDomains()?H:null);A.JSC$19983_readyStateChangeThrottleMs_>0&&(A.JSC$19983_readyStateChangeThrottle_=new _.Nt((0,_.WT)(A.JSC$19983_xmlHttpHandler_,A,A.JSC$19983_xmlHttp_),A.JSC$19983_readyStateChangeThrottleMs_));A.JSC$19981_eventHandler_.listen(A.JSC$19983_xmlHttp_,
"readystatechange",A.JSC$19983_readyStateChangeHandler_);H=A.JSC$19983_extraHeaders_?_.iK.clone(A.JSC$19983_extraHeaders_):{};A.JSC$19983_postData_?(A.JSC$19983_verb_="POST",H["Content-Type"]="application/x-www-form-urlencoded",A.JSC$19983_xmlHttp_.send(A.JSC$19983_requestUri_,A.JSC$19983_verb_,A.JSC$19983_postData_,H)):(A.JSC$19983_verb_="GET",A.sendClose_&&!_.HN&&(H.Connection="close"),A.JSC$19983_xmlHttp_.send(A.JSC$19983_requestUri_,A.JSC$19983_verb_,null,H));A.JSC$19981_channel_.notifyServerReachabilityEvent(1);
H=A.JSC$19981_channelDebug_;var k=A.JSC$19983_postData_;if(k){var d="";k=k.split("&");for(var W=0;W<k.length;W++){var z=k[W].split("=");if(z.length>1){var u=z[0];z=z[1];var B=u.split("_");d=B.length>=2&&B[1]=="type"?d+(u+"="+z+"&"):d+(u+"=redacted&")}}}else d=null;H.info("XMLHTTP REQ ("+A.JSC$19981_rid_+") [attempt "+A.JSC$19981_retryId_+"]: "+A.JSC$19983_verb_+"\n"+A.JSC$19983_requestUri_+"\n"+d)};
TJ.prototype.JSC$19983_readyStateChangeHandler_=function(A){A=A.target;var H=this.JSC$19983_readyStateChangeThrottle_;H&&_.bx(A)==3?(this.JSC$19981_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19983_xmlHttpHandler_(A)};
TJ.prototype.JSC$19983_xmlHttpHandler_=function(A){try{if(A==this.JSC$19983_xmlHttp_)a:{var H=_.bx(this.JSC$19983_xmlHttp_),k=this.JSC$19983_xmlHttp_.JSC$10109_lastErrorCode_,d=this.JSC$19983_xmlHttp_.getStatus();if(_.HN&&!_.Zs("420+")){if(H<4)break a}else if(H<3||H==3&&!this.JSC$19983_xmlHttp_.getResponseText())break a;this.JSC$19983_cancelled_||H!=4||k==7||(k==8||d<=0?this.JSC$19981_channel_.notifyServerReachabilityEvent(3):this.JSC$19981_channel_.notifyServerReachabilityEvent(2));qcI(this);var W=
this.JSC$19983_xmlHttp_.getStatus();this.JSC$19983_lastStatusCode_=W;var z=this.JSC$19983_xmlHttp_.getResponseText();z||this.JSC$19981_channelDebug_.debug("No response text for uri "+this.JSC$19983_requestUri_+" status "+W);this.JSC$19983_successful_=W==200;this.JSC$19981_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19981_rid_+") [ attempt "+this.JSC$19981_retryId_+"]: "+this.JSC$19983_verb_+"\n"+this.JSC$19983_requestUri_+"\n"+H+" "+W);if(this.JSC$19983_successful_){H==4&&rzB(this);if(this.decodeChunks_){for(A=
!0;!this.JSC$19983_cancelled_&&this.JSC$19983_xmlHttpChunkStart_<z.length;){var u=umL(this,z);if(u==sr1){H==4&&(this.JSC$19983_lastError_=4,xa(15),A=!1);BqL(this.JSC$19981_channelDebug_,this.JSC$19981_rid_,null,"[Incomplete Response]");break}else if(u==Hr_){this.JSC$19983_lastError_=4;xa(16);BqL(this.JSC$19981_channelDebug_,this.JSC$19981_rid_,z,"[Invalid Chunk]");A=!1;break}else BqL(this.JSC$19981_channelDebug_,this.JSC$19981_rid_,u,null),ebL(this,u)}H==4&&z.length==0&&(this.JSC$19983_lastError_=
1,xa(17),A=!1);this.JSC$19983_successful_=this.JSC$19983_successful_&&A;A||(BqL(this.JSC$19981_channelDebug_,this.JSC$19981_rid_,z,"[Invalid Chunked Response]"),rzB(this),x6B(this))}else BqL(this.JSC$19981_channelDebug_,this.JSC$19981_rid_,z,null),ebL(this,z);this.JSC$19983_successful_&&!this.JSC$19983_cancelled_&&(H==4?this.JSC$19981_channel_.JSC$19990_onRequestComplete(this):(this.JSC$19983_successful_=!1,zbL(this)))}else W==400&&z.indexOf("Unknown SID")>0?(this.JSC$19983_lastError_=3,xa(13),this.JSC$19981_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19981_rid_+")")):(this.JSC$19983_lastError_=0,xa(14),this.JSC$19981_channelDebug_.warning("XMLHTTP Bad status "+W+" ("+this.JSC$19981_rid_+")")),rzB(this),x6B(this)}else this.JSC$19981_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(B){this.JSC$19981_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var umL=function(A,H){var k=A.JSC$19983_xmlHttpChunkStart_,d=H.indexOf("\n",k);if(d==-1)return sr1;k=Number(H.substring(k,d));if(isNaN(k))return Hr_;d+=1;if(d+k>H.length)return sr1;H=H.slice(d,d+k);A.JSC$19983_xmlHttpChunkStart_=d+k;return H};
TJ.prototype.cancel=function(){this.JSC$19983_cancelled_=!0;rzB(this)};
var zbL=function(A){A.JSC$19983_watchDogTimeoutTime_=Date.now()+A.timeout_;irI(A,A.timeout_)},irI=function(A,H){if(A.JSC$19983_watchDogTimerId_!=null)throw Error("Pk");
A.JSC$19983_watchDogTimerId_=Ri((0,_.WT)(A.JSC$19983_onWatchDogTimeout_,A),H)},qcI=function(A){A.JSC$19983_watchDogTimerId_&&(_.k8.clearTimeout(A.JSC$19983_watchDogTimerId_),A.JSC$19983_watchDogTimerId_=null)};
TJ.prototype.JSC$19983_onWatchDogTimeout_=function(){this.JSC$19983_watchDogTimerId_=null;var A=Date.now();A-this.JSC$19983_watchDogTimeoutTime_>=0?(this.JSC$19981_channelDebug_.info("TIMEOUT: "+this.JSC$19983_requestUri_),this.JSC$19983_type_!=2&&this.JSC$19981_channel_.notifyServerReachabilityEvent(3),rzB(this),this.JSC$19983_lastError_=2,xa(18),x6B(this)):(this.JSC$19981_channelDebug_.warning("WatchDog timer called too early"),irI(this,this.JSC$19983_watchDogTimeoutTime_-A))};
var x6B=function(A){A.JSC$19981_channel_.JSC$19990_isClosed()||A.JSC$19983_cancelled_||A.JSC$19981_channel_.JSC$19990_onRequestComplete(A)},rzB=function(A){qcI(A);
_.CC(A.JSC$19983_readyStateChangeThrottle_);A.JSC$19983_readyStateChangeThrottle_=null;A.pollingTimer_.stop();A.JSC$19981_eventHandler_.removeAll();if(A.JSC$19983_xmlHttp_){var H=A.JSC$19983_xmlHttp_;A.JSC$19983_xmlHttp_=null;H.abort();H.dispose()}A.trident_&&(A.trident_=null)};
TJ.prototype.getLastError=function(){return this.JSC$19983_lastError_};
var ebL=function(A,H){try{A.JSC$19981_channel_.JSC$19990_onRequestData(A,H),A.JSC$19981_channel_.notifyServerReachabilityEvent(4)}catch(k){}};var BqL=function(A,H,k,d){var W=A.info;a:if(k&&k!="y2f%"){try{var z=JSON.parse(k);if(z)for(var u=0;u<z.length;u++)if(Array.isArray(z[u])){var B=z[u];if(!(B.length<2)){var h=B[1];if(Array.isArray(h)&&!(h.length<1)){var O=h[0];if(O!="noop"&&O!="stop")for(var T=1;T<h.length;T++)h[T]=""}}}var m=_.Js(z);break a}catch(J){A.debug("Exception parsing expected JS array - probably was not JS");m=k;break a}m=void 0}else m=k;W.call(A,"XMLHTTP TEXT ("+H+"): "+m+(d?" "+d:""))};
mx.prototype.debug=function(A){this.info(A)};
mx.prototype.info=function(){};
mx.prototype.warning=function(){};_.q=CyR.prototype;_.q.JSC$19990_extraHeaders_=null;_.q.JSC$19990_request_=null;_.q.receivedIntermediateResult_=!1;_.q.JSC$19990_path_=null;_.q.state_=null;_.q.JSC$19990_lastStatusCode_=-1;_.q.JSC$19990_hostPrefix_=null;_.q.blockedPrefix_=null;
_.q.connect=function(A){this.JSC$19990_path_=A;A=hb_(this.JSC$19988_channel_,this.JSC$19990_path_);xa(3);Date.now();var H=this.JSC$19988_channel_.firstTestResults_;H!=null?(this.JSC$19990_hostPrefix_=H[0],(this.blockedPrefix_=H[1])?(this.state_=1,OrQ(this)):(this.state_=2,RbQ(this))):(W7I(A,"MODE","init"),this.JSC$19990_request_=new TJ(this,this.JSC$19988_channelDebug_),this.JSC$19990_request_.JSC$19983_extraHeaders_=this.JSC$19990_extraHeaders_,Wg1(this.JSC$19990_request_,A,!1,null,!0),this.state_=
0)};
var OrQ=function(A){var H=TqR(A.JSC$19988_channel_,A.blockedPrefix_,"/mail/images/cleardot.gif");_.nf(H);D0L(H.toString(),5E3,(0,_.WT)(A.checkBlockedCallback_,A),3,2E3);A.notifyServerReachabilityEvent(1)};
CyR.prototype.checkBlockedCallback_=function(A){if(A)this.state_=2,RbQ(this);else{xa(4);var H=this.JSC$19988_channel_;H.JSC$19991_channelDebug_.debug("Test Connection Blocked");H.JSC$19995_lastStatusCode_=H.connectionTest_.JSC$19990_lastStatusCode_;i7(H,9)}A&&this.notifyServerReachabilityEvent(2)};
var RbQ=function(A){A.JSC$19988_channelDebug_.debug("TestConnection: starting stage 2");var H=A.JSC$19988_channel_.secondTestResults_;H!=null?(A.JSC$19988_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+H?"Buffered":"Unbuffered"),xa(5),H?(xa(11),m6B(A.JSC$19988_channel_,A,!1)):(xa(12),m6B(A.JSC$19988_channel_,A,!0))):(A.JSC$19990_request_=new TJ(A,A.JSC$19988_channelDebug_),A.JSC$19990_request_.JSC$19983_extraHeaders_=A.JSC$19990_extraHeaders_,H=Jz_(A.JSC$19988_channel_,
A.JSC$19990_hostPrefix_,A.JSC$19990_path_),xa(5),W7I(H,"TYPE","xmlhttp"),Wg1(A.JSC$19990_request_,H,!1,A.JSC$19990_hostPrefix_,!1))};
_.q=CyR.prototype;_.q.JSC$19990_createXhrIo=function(A){return this.JSC$19988_channel_.JSC$19990_createXhrIo(A)};
_.q.abort=function(){this.JSC$19990_request_&&(this.JSC$19990_request_.cancel(),this.JSC$19990_request_=null);this.JSC$19990_lastStatusCode_=-1};
_.q.JSC$19990_isClosed=function(){return!1};
_.q.JSC$19990_onRequestData=function(A,H){this.JSC$19990_lastStatusCode_=A.JSC$19983_lastStatusCode_;if(this.state_==0)if(this.JSC$19988_channelDebug_.debug("TestConnection: Got data for stage 1"),H){try{var k=this.JSC$19988_parser_.parse(H)}catch(d){g0G(this.JSC$19988_channel_,this);return}this.JSC$19990_hostPrefix_=k[0];this.blockedPrefix_=k[1]}else this.JSC$19988_channelDebug_.debug("TestConnection: Null responseText"),g0G(this.JSC$19988_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(xa(7),Date.now()):H=="11111"?(xa(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19990_lastStatusCode_=200,this.JSC$19990_request_.cancel(),this.JSC$19988_channelDebug_.debug("Test connection succeeded; using streaming connection"),xa(12),m6B(this.JSC$19988_channel_,this,!0)):(xa(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.q.JSC$19990_onRequestComplete=function(){this.JSC$19990_lastStatusCode_=this.JSC$19990_request_.JSC$19983_lastStatusCode_;this.JSC$19990_request_.JSC$19983_successful_?this.state_==0?(this.JSC$19988_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,OrQ(this)):(this.state_=2,RbQ(this))):this.state_==2&&(this.JSC$19988_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19988_channelDebug_.debug("Test connection succeeded; using streaming connection"),
xa(12),m6B(this.JSC$19988_channel_,this,!0)):(this.JSC$19988_channelDebug_.debug("Test connection failed; not using streaming"),xa(11),m6B(this.JSC$19988_channel_,this,!1))):(this.JSC$19988_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?xa(9):this.state_==2&&xa(10),g0G(this.JSC$19988_channel_,this,this.JSC$19990_request_.getLastError()))};
_.q.JSC$19990_shouldUseSecondaryDomains=function(){return this.JSC$19988_channel_.JSC$19990_shouldUseSecondaryDomains()};
_.q.isActive=function(){return this.JSC$19988_channel_.isActive()};
_.q.notifyServerReachabilityEvent=function(A){this.JSC$19988_channel_.notifyServerReachabilityEvent(A)};var brM=function(A,H){this.JSC$19993_mapId=A;this.map=H;this.context=null};
_.q=JO.prototype;_.q.JSC$19995_extraHeaders_=null;_.q.JSC$19995_extraParams_=null;_.q.forwardChannelRequest_=null;_.q.JSC$19995_backChannelRequest_=null;_.q.JSC$19995_path_=null;_.q.JSC$19995_forwardChannelUri_=null;_.q.JSC$19995_backChannelUri_=null;_.q.JSC$19995_hostPrefix_=null;_.q.JSC$19995_nextRid_=0;_.q.JSC$19995_nextMapId_=0;_.q.handler_=null;_.q.JSC$19995_forwardChannelTimerId_=null;_.q.JSC$19995_backChannelTimerId_=null;_.q.JSC$19995_deadBackChannelTimerId_=null;_.q.connectionTest_=null;
_.q.useChunked_=null;_.q.JSC$19995_lastArrayId_=-1;_.q.JSC$19995_lastPostResponseArrayId_=-1;_.q.JSC$19995_lastStatusCode_=-1;_.q.JSC$19995_forwardChannelRetryCount_=0;_.q.JSC$19995_backChannelRetryCount_=0;_.q.JSC$19995_channelVersion_=8;var LgB={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},v03=function(A,H,k,d){_.NZ.call(this,"timingevent",A);this.size=H;this.rtt=k;this.retries=d};
_.EK(v03,_.NZ);var yze=function(A){_.NZ.call(this,"serverreachability",A)};
_.EK(yze,_.NZ);JO.prototype.connect=function(A,H,k,d,W){this.JSC$19991_channelDebug_.debug("connect()");xa(0);this.JSC$19995_path_=H;this.JSC$19995_extraParams_=k||{};d&&W!==void 0&&(this.JSC$19995_extraParams_.OSID=d,this.JSC$19995_extraParams_.OAID=W);this.asyncTest_?(Ri((0,_.WT)(this.connectTest_,this,A),100),jr1(this)):this.connectTest_(A)};
JO.prototype.disconnect=function(){this.JSC$19991_channelDebug_.debug("disconnect()");Ik1(this);if(this.state_==3){var A=this.JSC$19995_nextRid_++,H=this.JSC$19995_forwardChannelUri_.clone();_.VT(H,"SID",this.sid_);_.VT(H,"RID",A);_.VT(H,"TYPE","terminate");Yc3(this,H);A=new TJ(this,this.JSC$19991_channelDebug_,this.sid_,A);A.JSC$19983_type_=2;A.JSC$19983_baseUri_=_.nf(H.clone());(new Image).src=A.JSC$19983_baseUri_.toString();A.JSC$19983_requestStartTime_=Date.now();zbL(A)}PBB(this)};
JO.prototype.connectTest_=function(A){this.JSC$19991_channelDebug_.debug("connectTest_()");this.connectionTest_=new CyR(this,this.JSC$19991_channelDebug_);this.connectionTest_.JSC$19990_extraHeaders_=this.JSC$19995_extraHeaders_;this.connectionTest_.JSC$19988_parser_=this.JSC$19991_parser_;this.connectionTest_.connect(A)};
var jr1=function(A){A.JSC$19991_channelDebug_.debug("connectChannel_()");A.JSC$19995_ensureInState_(1,0);A.JSC$19995_forwardChannelUri_=hb_(A,A.JSC$19995_path_);GXI(A)},Ik1=function(A){A.connectionTest_&&(A.connectionTest_.abort(),A.connectionTest_=null);
A.JSC$19995_backChannelRequest_&&(A.JSC$19995_backChannelRequest_.cancel(),A.JSC$19995_backChannelRequest_=null);A.JSC$19995_backChannelTimerId_&&(_.k8.clearTimeout(A.JSC$19995_backChannelTimerId_),A.JSC$19995_backChannelTimerId_=null);Fge(A);A.forwardChannelRequest_&&(A.forwardChannelRequest_.cancel(),A.forwardChannelRequest_=null);A.JSC$19995_forwardChannelTimerId_&&(_.k8.clearTimeout(A.JSC$19995_forwardChannelTimerId_),A.JSC$19995_forwardChannelTimerId_=null)},XxL=function(A,H){if(A.state_==0)throw Error("Xk");
A.JSC$19991_outgoingMaps_.length==1E3&&A.JSC$19991_parser_.stringify(H);A.JSC$19991_outgoingMaps_.push(new brM(A.JSC$19995_nextMapId_++,H));A.state_!=2&&A.state_!=3||GXI(A)};
JO.prototype.JSC$19990_isClosed=function(){return this.state_==0};
JO.prototype.getState=function(){return this.state_};
var GXI=function(A){A.forwardChannelRequest_||A.JSC$19995_forwardChannelTimerId_||(A.JSC$19995_forwardChannelTimerId_=Ri((0,_.WT)(A.JSC$19995_onStartForwardChannelTimer_,A),0),A.JSC$19995_forwardChannelRetryCount_=0)};
JO.prototype.JSC$19995_onStartForwardChannelTimer_=function(A){this.JSC$19995_forwardChannelTimerId_=null;D6Q(this,A)};
var D6Q=function(A,H){A.JSC$19991_channelDebug_.debug("startForwardChannel_");if(A.state_==1){if(!H){A.JSC$19991_channelDebug_.debug("open_()");A.JSC$19995_nextRid_=Math.floor(Math.random()*1E5);H=A.JSC$19995_nextRid_++;var k=new TJ(A,A.JSC$19991_channelDebug_,"",H);k.JSC$19983_extraHeaders_=A.JSC$19995_extraHeaders_;var d=ScL(A),W=A.JSC$19995_forwardChannelUri_.clone();_.VT(W,"RID",H);_.VT(W,"CVER","1");Yc3(A,W);d6L(k,W,d);A.forwardChannelRequest_=k;A.state_=2}}else A.state_==3&&(H?CBB(A,H):A.JSC$19991_outgoingMaps_.length==
0?A.JSC$19991_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):A.forwardChannelRequest_||(CBB(A),A.JSC$19991_channelDebug_.debug("startForwardChannel_ finished, sent request")))},CBB=function(A,H){if(H)if(A.JSC$19995_channelVersion_>6){A.JSC$19991_outgoingMaps_=A.pendingMaps_.concat(A.JSC$19991_outgoingMaps_);
A.pendingMaps_.length=0;var k=A.JSC$19995_nextRid_-1;H=ScL(A)}else k=H.JSC$19981_rid_,H=H.JSC$19983_postData_;else k=A.JSC$19995_nextRid_++,H=ScL(A);var d=A.JSC$19995_forwardChannelUri_.clone();_.VT(d,"SID",A.sid_);_.VT(d,"RID",k);_.VT(d,"AID",A.JSC$19995_lastArrayId_);Yc3(A,d);k=new TJ(A,A.JSC$19991_channelDebug_,A.sid_,k,A.JSC$19995_forwardChannelRetryCount_+1);k.JSC$19983_extraHeaders_=A.JSC$19995_extraHeaders_;k.setTimeout(1E4+Math.round(1E4*Math.random()));A.forwardChannelRequest_=k;d6L(k,d,
H)},Yc3=function(A,H){A.handler_&&(A=A.handler_.JSC$20002_getAdditionalParams())&&_.iK.forEach(A,function(k,d){_.VT(H,d,k)})},ScL=function(A){var H=Math.min(A.JSC$19991_outgoingMaps_.length,1E3),k=["count="+H];
if(A.JSC$19995_channelVersion_>6&&H>0){var d=A.JSC$19991_outgoingMaps_[0].JSC$19993_mapId;k.push("ofs="+d)}else d=0;for(var W={},z=0;z<H;W={mapId$jscomp$3:void 0},z++){W.mapId$jscomp$3=A.JSC$19991_outgoingMaps_[z].JSC$19993_mapId;var u=A.JSC$19991_outgoingMaps_[z].map;W.mapId$jscomp$3=A.JSC$19995_channelVersion_<=6?z:W.mapId$jscomp$3-d;try{_.iK.forEach(u,function(B){return function(h,O){k.push("req"+B.mapId$jscomp$3+"_"+O+"="+encodeURIComponent(h))}}(W))}catch(B){k.push("req"+W.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}A.pendingMaps_=A.pendingMaps_.concat(A.JSC$19991_outgoingMaps_.splice(0,H));
return k.join("&")},KgQ=function(A){A.JSC$19995_backChannelRequest_||A.JSC$19995_backChannelTimerId_||(A.JSC$19995_backChannelAttemptId_=1,A.JSC$19995_backChannelTimerId_=Ri((0,_.WT)(A.JSC$19995_onStartBackChannelTimer_,A),0),A.JSC$19995_backChannelRetryCount_=0)},czQ=function(A){if(A.JSC$19995_backChannelRequest_||A.JSC$19995_backChannelTimerId_||A.JSC$19995_backChannelRetryCount_>=3)return!1;
A.JSC$19991_channelDebug_.debug("Going to retry GET");A.JSC$19995_backChannelAttemptId_++;A.JSC$19995_backChannelTimerId_=Ri((0,_.WT)(A.JSC$19995_onStartBackChannelTimer_,A),akL(A,A.JSC$19995_backChannelRetryCount_));A.JSC$19995_backChannelRetryCount_++;return!0};
JO.prototype.JSC$19995_onStartBackChannelTimer_=function(){this.JSC$19995_backChannelTimerId_=null;this.JSC$19991_channelDebug_.debug("Creating new HttpRequest");this.JSC$19995_backChannelRequest_=new TJ(this,this.JSC$19991_channelDebug_,this.sid_,"rpc",this.JSC$19995_backChannelAttemptId_);this.JSC$19995_backChannelRequest_.JSC$19983_extraHeaders_=this.JSC$19995_extraHeaders_;this.JSC$19995_backChannelRequest_.JSC$19983_readyStateChangeThrottleMs_=0;var A=this.JSC$19995_backChannelUri_.clone();_.VT(A,
"RID","rpc");_.VT(A,"SID",this.sid_);_.VT(A,"CI",this.useChunked_?"0":"1");_.VT(A,"AID",this.JSC$19995_lastArrayId_);Yc3(this,A);_.VT(A,"TYPE","xmlhttp");Wg1(this.JSC$19995_backChannelRequest_,A,!0,this.JSC$19995_hostPrefix_,!1);this.JSC$19991_channelDebug_.debug("New Request created")};
var m6B=function(A,H,k){A.JSC$19991_channelDebug_.debug("Test Connection Finished");A.useChunked_=A.secondTestResults_==null?k:!A.secondTestResults_;A.JSC$19995_lastStatusCode_=H.JSC$19990_lastStatusCode_;A.asyncTest_||jr1(A)},g0G=function(A,H){A.JSC$19991_channelDebug_.debug("Test Connection Failed");
A.JSC$19995_lastStatusCode_=H.JSC$19990_lastStatusCode_;i7(A,2)};
JO.prototype.JSC$19990_onRequestData=function(A,H){if(this.state_!=0&&(this.JSC$19995_backChannelRequest_==A||this.forwardChannelRequest_==A))if(this.JSC$19995_lastStatusCode_=A.JSC$19983_lastStatusCode_,this.forwardChannelRequest_==A&&this.state_==3)if(this.JSC$19995_channelVersion_>7){try{var k=this.JSC$19991_parser_.parse(H)}catch(d){k=null}if(Array.isArray(k)&&k.length==3)if(H=k,H[0]==0)a:if(this.JSC$19991_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19995_backChannelTimerId_)this.JSC$19991_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19995_backChannelRequest_)if(this.JSC$19995_backChannelRequest_.JSC$19983_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19983_requestStartTime_)Fge(this),this.JSC$19995_backChannelRequest_.cancel(),this.JSC$19995_backChannelRequest_=null;else break a;else this.JSC$19991_channelDebug_.warning("We do not have a BackChannel established");czQ(this);xa(19)}else this.JSC$19995_lastPostResponseArrayId_=H[1],A=this.JSC$19995_lastPostResponseArrayId_-this.JSC$19995_lastArrayId_,0<
A&&(H=H[2],this.JSC$19991_channelDebug_.debug(H+" bytes (in "+A+" arrays) are outstanding on the BackChannel"),H<37500&&this.useChunked_&&this.JSC$19995_backChannelRetryCount_==0&&!this.JSC$19995_deadBackChannelTimerId_&&(this.JSC$19995_deadBackChannelTimerId_=Ri((0,_.WT)(this.JSC$19995_onBackChannelDead_,this),6E3)));else this.JSC$19991_channelDebug_.debug("Bad POST response data returned"),i7(this,11)}else H!="y2f%"&&(this.JSC$19991_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
i7(this,11));else this.JSC$19995_backChannelRequest_==A&&Fge(this),_.BV(H)||(A=this.JSC$19991_parser_.parse(H),this.onInput_(A))};
JO.prototype.JSC$19995_onBackChannelDead_=function(){this.JSC$19995_deadBackChannelTimerId_!=null&&(this.JSC$19995_deadBackChannelTimerId_=null,this.JSC$19995_backChannelRequest_.cancel(),this.JSC$19995_backChannelRequest_=null,czQ(this),xa(20))};
var Fge=function(A){A.JSC$19995_deadBackChannelTimerId_!=null&&(_.k8.clearTimeout(A.JSC$19995_deadBackChannelTimerId_),A.JSC$19995_deadBackChannelTimerId_=null)};
JO.prototype.JSC$19990_onRequestComplete=function(A){this.JSC$19991_channelDebug_.debug("Request complete");if(this.JSC$19995_backChannelRequest_==A){Fge(this);this.JSC$19995_backChannelRequest_=null;var H=2}else if(this.forwardChannelRequest_==A)this.forwardChannelRequest_=null,H=1;else return;this.JSC$19995_lastStatusCode_=A.JSC$19983_lastStatusCode_;if(this.state_!=0)if(A.JSC$19983_successful_)if(H==1){H=A.JSC$19983_postData_?A.JSC$19983_postData_.length:0;A=Date.now()-A.JSC$19983_requestStartTime_;
var k=oL_;k.dispatchEvent(new v03(k,H,A,this.JSC$19995_forwardChannelRetryCount_));GXI(this);this.handler_&&this.handler_.JSC$20002_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else KgQ(this);else{k=A.getLastError();if(k==3||k==7||k==0&&this.JSC$19995_lastStatusCode_>0)this.JSC$19991_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19991_channelDebug_.debug("Maybe retrying, last error: "+AzB(k,this.JSC$19995_lastStatusCode_));var d;if(d=H==1)this.forwardChannelRequest_||
this.JSC$19995_forwardChannelTimerId_||this.state_==1||this.JSC$19995_forwardChannelRetryCount_>=2?d=!1:(this.JSC$19991_channelDebug_.debug("Going to retry POST"),this.JSC$19995_forwardChannelTimerId_=Ri((0,_.WT)(this.JSC$19995_onStartForwardChannelTimer_,this,A),akL(this,this.JSC$19995_forwardChannelRetryCount_)),this.JSC$19995_forwardChannelRetryCount_++,d=!0);if(d||H==2&&czQ(this))return;this.JSC$19991_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19991_channelDebug_.debug("Error: HTTP request failed");
switch(k){case 1:i7(this,5);break;case 4:i7(this,10);break;case 3:i7(this,6);break;case 7:i7(this,12);break;default:i7(this,2)}}};
var akL=function(A,H){var k=5E3+Math.floor(Math.random()*1E4);A.isActive()||(A.JSC$19991_channelDebug_.debug("Inactive channel"),k*=2);return k*H};
JO.prototype.onInput_=function(A){for(var H=0;H<A.length;H++){var k=A[H];this.JSC$19995_lastArrayId_=k[0];k=k[1];this.state_==2?k[0]=="c"?(this.sid_=k[1],this.JSC$19995_hostPrefix_=k[2],k=k[3],k!=null?this.JSC$19995_channelVersion_=k:this.JSC$19995_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20002_channelOpened(),this.JSC$19995_backChannelUri_=Jz_(this,this.JSC$19995_hostPrefix_,this.JSC$19995_path_),KgQ(this)):k[0]=="stop"&&i7(this,7):this.state_==3&&(k[0]=="stop"?i7(this,7):
k[0]!="noop"&&this.handler_&&this.handler_.JSC$20002_channelHandleArray(k),this.JSC$19995_backChannelRetryCount_=0)}};
JO.prototype.JSC$19995_ensureInState_=function(A){if(!_.VW(arguments,this.state_))throw Error("Yk`"+this.state_);};
var i7=function(A,H){A.JSC$19991_channelDebug_.info("Error code "+H);if(H==2||H==9){var k=null;A.handler_&&(k=null);var d=(0,_.WT)(A.testGoogleComCallback_,A);k||(k=new _.PB("//www.google.com/images/cleardot.gif"),_.nf(k));XW_(k.toString(),1E4,d)}else xa(2);A.onError_(H)};
JO.prototype.testGoogleComCallback_=function(A){A?(this.JSC$19991_channelDebug_.info("Successfully pinged google.com"),xa(2)):(this.JSC$19991_channelDebug_.info("Failed to ping google.com"),xa(1),this.onError_(8))};
JO.prototype.onError_=function(A){this.JSC$19991_channelDebug_.debug("HttpChannel: error - "+A);this.state_=0;this.handler_&&this.handler_.JSC$20002_channelError(A);PBB(this);Ik1(this)};
var PBB=function(A){A.state_=0;A.JSC$19995_lastStatusCode_=-1;if(A.handler_)if(A.pendingMaps_.length==0&&A.JSC$19991_outgoingMaps_.length==0)A.handler_.JSC$20002_channelClosed();else{A.JSC$19991_channelDebug_.debug("Number of undelivered maps, pending: "+A.pendingMaps_.length+", outgoing: "+A.JSC$19991_outgoingMaps_.length);var H=_.tA(A.pendingMaps_),k=_.tA(A.JSC$19991_outgoingMaps_);A.pendingMaps_.length=0;A.JSC$19991_outgoingMaps_.length=0;A.handler_.JSC$20002_channelClosed(H,k)}},hb_=function(A,
H){H=TqR(A,null,H);
A.JSC$19991_channelDebug_.debug("GetForwardChannelUri: "+H);return H},Jz_=function(A,H,k){H=TqR(A,A.JSC$19990_shouldUseSecondaryDomains()?H:null,k);
A.JSC$19991_channelDebug_.debug("GetBackChannelUri: "+H);return H},TqR=function(A,H,k){var d=_.p$(k);
if(d.JSC$10346_domain_!="")H&&_.Qh(d,H+"."+d.JSC$10346_domain_),_.Vh(d,d.JSC$10346_port_);else{var W=window.location;d=g2_(W.protocol,H?H+"."+W.hostname:W.hostname,+W.port,k)}A.JSC$19995_extraParams_&&_.iK.forEach(A.JSC$19995_extraParams_,function(z,u){_.VT(d,u,z)});
_.VT(d,"VER",A.JSC$19995_channelVersion_);Yc3(A,d);return d};
JO.prototype.JSC$19990_createXhrIo=function(A){if(A)throw Error("Qk");A=new _.g3;A.JSC$10109_withCredentials_=!1;return A};
JO.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
JO.prototype.notifyServerReachabilityEvent=function(A){var H=oL_;H.dispatchEvent(new yze(H,A))};
JO.prototype.JSC$19990_shouldUseSecondaryDomains=function(){return!1};
new YuG;var pxi=function(){};
_.q=pxi.prototype;_.q.JSC$20002_channelOpened=function(){};
_.q.JSC$20002_channelHandleArray=function(){};
_.q.JSC$20002_channelSuccess=function(){};
_.q.JSC$20002_channelError=function(){};
_.q.JSC$20002_channelClosed=function(){};
_.q.JSC$20002_getAdditionalParams=function(){return{}};
_.q.isActive=function(){return!0};var QrG=function(A){A.front_.length===0&&(A.front_=A.back_,A.front_.reverse(),A.back_=[])};
_.q=K$_.prototype;_.q.enqueue=function(A){this.back_.push(A)};
_.q.peek=function(){QrG(this);return _.DQ(this.front_)};
_.q.getCount=function(){return this.front_.length+this.back_.length};
_.q.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.q.clear=function(){this.front_=[];this.back_=[]};
_.q.contains=function(A){return _.VW(this.front_,A)||_.VW(this.back_,A)};
_.q.remove=function(A){var H=this.front_;var k=Array.prototype.lastIndexOf.call(H,A,H.length-1);k>=0?(_.XVQ(H,k),H=!0):H=!1;return H||_.EC(this.back_,A)};
_.q.getValues=function(){for(var A=[],H=this.front_.length-1;H>=0;--H)A.push(this.front_[H]);H=this.back_.length;for(var k=0;k<H;++k)A.push(this.back_[k]);return A};var VZV=function(A){var H=typeof A;return H=="object"&&A||H=="function"?"o"+_.fl(A):H.charAt(0)+A};
_.q=gk.prototype;_.q.getCount=function(){return this.JSC$20006_map_.size};
_.q.add=function(A){this.JSC$20006_map_.set(VZV(A),A);this.size=this.JSC$20006_map_.size};
_.q.addAll=function(A){A=_.cS(A);for(var H=A.length,k=0;k<H;k++)this.add(A[k]);this.size=this.JSC$20006_map_.size};
_.q.removeAll=function(A){A=_.cS(A);for(var H=A.length,k=0;k<H;k++)this.remove(A[k]);this.size=this.JSC$20006_map_.size};
_.q.delete=function(A){A=this.JSC$20006_map_.remove(VZV(A));this.size=this.JSC$20006_map_.size;return A};
_.q.remove=function(A){return this.delete(A)};
_.q.clear=function(){this.JSC$20006_map_.clear();this.size=0};
_.q.isEmpty=function(){return this.JSC$20006_map_.size===0};
_.q.has=function(A){return this.JSC$20006_map_.containsKey(VZV(A))};
_.q.contains=function(A){return this.JSC$20006_map_.containsKey(VZV(A))};
_.q.getValues=function(){return this.JSC$20006_map_.getValues()};
_.q.values=function(){return this.JSC$20006_map_.values()};
_.q.clone=function(){return new gk(this)};
_.q.equals=function(A){return this.getCount()==m2i(A)&&E0G(this,A)};
var E0G=function(A,H){var k=m2i(H);if(A.getCount()>k)return!1;!(H instanceof gk)&&k>5&&(H=new gk(H));return JgB(A,function(d){var W=H;return W.contains&&typeof W.contains=="function"?W.contains(d):W.containsValue&&typeof W.containsValue=="function"?W.containsValue(d):_.Nv(W)||typeof W==="string"?_.VW(W,d):_.iK.containsValue(W,d)})};
gk.prototype.__iterator__=function(){return this.JSC$20006_map_.__iterator__(!1)};
gk.prototype[Symbol.iterator]=function(){return this.values()};_.uy({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 A=this.query;A&&(this.full||A[0]==="("||(A="("+A+")"),this._mq=window.matchMedia(A),this._add(),this.queryHandler(this._mq))},
queryHandler:function(A){this._setQueryMatches(A.matches)}});var U6_={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(A){return(this._clampValue(A)-this.min)/(this.max-this.min)},
_clampValue:function(A){return Math.min(this.max,Math.max(this.min,this._calcStep(A)))},
_calcStep:function(A){A=parseFloat(A);if(!this.step)return A;A=Math.round((A-this.min)/this.step);return this.step<1?A/(1/this.step)+this.min:A*this.step+this.min},
_validateValue:function(){var A=this._clampValue(this.value);this.value=this.oldValue=isNaN(A)?this.oldValue:A;return this.value!==A},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var lk1=[_.WU,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(A){_.WB(A).path[0]!==this&&(this.resetLayout(),A.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var A=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.E4(this._layoutDebouncer,_.zA,A);_.U4(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var A=this;requestAnimationFrame(function(){A.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(A){this.resizerShouldNotify(A)&&this._notifyDescendant(A)},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 tZM=[_.LWZ,{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(A,H){var k=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[A];if(!k)throw new ReferenceError(this._getUndefinedMsg(A));A=this._boundEffect(k,H||{});A.setUp();return A},
_effectsChanged:function(A,H,k){this._tearDownEffects();A&&k&&(A.split(" ").forEach(function(d){var W;d!==""&&((W=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[d])?this._effects.push(this._boundEffect(W,H[d])):console.warn(this._getUndefinedMsg(d)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(A,H){H=H||{};var k=parseFloat(H.startsAt||0),d=parseFloat(H.endsAt||1),W=d-k,z=function(){};
d=k===0&&d===1?A.run:function(u,B){A.run.call(this,Math.max(0,(u-k)/W),B)};
return{setUp:A.setUp?A.setUp.bind(this,H):z,run:A.run?d.bind(this):z,tearDown:A.tearDown?A.tearDown.bind(this):z}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(A){A.setUp()!==!1&&this._effectsRunFn.push(A.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(A){A.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(A,H){this._effectsRunFn&&this._effectsRunFn.forEach(function(k){k(A,H)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var A=this._clampedScrollTop;this._updateScrollState(A);this.threshold>0&&this._setThresholdTriggered(A>=this.threshold)}},
_getDOMRef:function(A){console.warn("_getDOMRef","`"+A+"` is undefined")},
_getUndefinedMsg:function(A){return"Scroll effect `"+A+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+A+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Zk`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(A){var H={};A=parseFloat(A.scalar);H.background=this._getDOMRef("background");H.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");H.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");H.deltaBg=H.backgroundFrontLayer.offsetHeight-H.background.offsetHeight;H.deltaBg===0?(isNaN(A)&&(A=.8),H.deltaBg=(this._dHeight||0)*A):(isNaN(A)&&(A=
1),H.deltaBg*=A);this._fxParallaxBackground=H},
run:function(A){var H=this._fxParallaxBackground;this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,A)+"px, 0px)",H.backgroundFrontLayer);H.backgroundRearLayer&&this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,A)+"px, 0px)",H.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Nq_;var MZ3;_.uy({_template:function(){if(MZ3!==void 0)return MZ3;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;Nq_===void 0&&(Nq_=document.createElement("template"));var d=Nq_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return MZ3=A},
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(){_.No(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(A){A.keyCode===27&&(A.preventDefault(),this.close())},
_track:function(A){if(!this.persistent&&!this.disableSwipe)switch(A.preventDefault(),A.detail.state){case "start":this._trackStart(A);break;case "track":this._trackMove(A);break;case "end":this._trackEnd(A)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var A=this.$.contentContainer.getBoundingClientRect();this._savedWidth=A.width;this._translateOffset=this.position==="left"?A.left:A.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(A){this._trackDetails&&(this._translateDrawer(A.detail.dx+this._translateOffset),this._trackDetails.push({dx:A.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(A){if(this._trackDetails){var H=A.detail.dx+this._translateOffset,k=this.getWidth();H=this.position==="left"?H>=0||H<=-k:H<=0||H>=k;if(!H){var d=this._trackDetails;this._trackDetails=null;this._flingDrawer(A,d);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}k/=2;A.detail.dx<-k?this.opened=this.position==="right":A.detail.dx>k&&(this.opened=this.position==="left");H?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(A,H){for(var k=Date.now(),d=k-100,W,z=0,u=H.length-1;z<=u;){var B=z+u>>1,h=H[B];h.timeStamp>=d?(W=h,u=B-1):z=B+1}return W?(A.detail.dx-W.dx)/(k-W.timeStamp||1):0},
_flingDrawer:function(A,H){H=this._calculateVelocity(A,H);if(!(Math.abs(H)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;A=A.detail.dx+this._translateOffset;var k=this.getWidth(),d=this.position==="left",W=H>0;W?(H=Math.max(H,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(H=Math.min(H,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");H=this._FLING_INITIAL_SLOPE*(!W&&d?-(A+k):W&&!d?k-A:-A)/H;this._styleTransitionDuration(H);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,H)}},
_styleTransitionDuration:function(A){this.style.transitionDuration=A+"ms";this.$.contentContainer.style.transitionDuration=A+"ms";this.$.scrim.style.transitionDuration=A+"ms"},
_styleTransitionTimingFunction:function(A){this.$.contentContainer.style.transitionTimingFunction=A;this.$.scrim.style.transitionTimingFunction=A},
_translateDrawer:function(A){var H=this.getWidth();this.position==="left"?(A=Math.max(-H,Math.min(A,0)),this.$.scrim.style.opacity=1+A/H):(A=Math.max(0,Math.min(A,H)),this.$.scrim.style.opacity=1-A/H);this.translate3d(A+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var A=this._drawerState;A===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;A!==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=""),A!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var A=_.WB(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"])');A.length>0?(this._firstTabStop=A[0],this._lastTabStop=A[A.length-1]):
this._lastTabStop=this._firstTabStop=null;(A=this.getAttribute("tabindex"))&&parseInt(A,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(A){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||A.keyCode!==9||(A.shiftKey?this._firstTabStop&&_.WB(A).localTarget===this._firstTabStop&&(A.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.WB(A).localTarget===this._lastTabStop&&(A.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(A,H){this.toggleClass("visible",A&&!H,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 n0Q;var ZrB;var fkB=function(){};
_.q=fkB.prototype;_.q._scrollTargetChanged=function(){};
_.q.scroll=function(){};
_.q._isValidScrollTarget=function(){};
_.q._toggleScrollListener=function(){};
_.q.toggleScrollListener=function(){};
_.q.createEffect=function(){};
_.q._effectsChanged=function(){};
_.q._layoutIfDirty=function(){};
_.q._boundEffect=function(){};
_.q._setUpEffect=function(){};
_.q._tearDownEffects=function(){};
_.q._runEffects=function(){};
_.q._scrollHandler=function(){};
_.q._scrollStateChanged=function(){};
_.q._getUndefinedMsg=function(){};
_.q.notifyResize=function(){};
_.q.assignParentResizable=function(){};
_.q.stopResizeNotificationsFor=function(){};
_.q._subscribeIronResize=function(){};
_.q._unsubscribeIronResize=function(){};
_.q.resizerShouldNotify=function(){};
_.q._onDescendantIronResize=function(){};
_.q._fireResize=function(){};
_.q._onIronRequestResizeNotifications=function(){};
_.q._parentResizableChanged=function(){};
_.q._notifyDescendant=function(){};
_.q._requestResizeNotifications=function(){};
_.q._findParent=function(){};
_.q._appResetLayoutHandler=function(){};
_.q.resetLayout=function(){};
_.q._notifyLayoutChanged=function(){};
_.q._notifyDescendantResize=function(){};
_.q._setThresholdTriggered=function(){};
fkB=_.uy({_template:function(){if(ZrB!==void 0)return ZrB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;n0Q===void 0&&(n0Q=document.createElement("template"));var d=n0Q;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return ZrB=A},
is:"tp-yt-app-header",behaviors:[tZM,lk1],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 A=_.WB(this.$.slot).getDistributedNodes(),H=0,k;k=A[H];H++)if(k.nodeType===Node.ELEMENT_NODE)if(k.hasAttribute("sticky")){this._stickyElRef=k;break}else this._stickyElRef||(this._stickyElRef=k);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var A=this._clampedScrollTop,H=this._height===0||A===0,k=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;H||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();H?this._updateScrollState(A,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=k}},
_updateScrollState:function(A,H){if(this._height!==0){var k=0,d=this._top;var W=this._maxHeaderTop;var z=A-this._lastScrollTop,u=Math.abs(z),B=A>this._lastScrollTop,h=performance.now();this._mayMove()&&(k=this._clamp(this.reveals?d+z:A,0,W));A>=this._dHeight&&(k=this.condenses&&!this.fixed?Math.max(this._dHeight,k):k,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&u<100){if(h-this._initTimestamp>300||this._wasScrollingDown!==B)this._initScrollTop=A,this._initTimestamp=h;A>=W&&
(Math.abs(this._initScrollTop-A)>30||u>10?(B&&A>=W?k=W:!B&&A>=this._dHeight&&(k=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((k-d)/(z/(h-this._lastTimestamp)),0,300)+"ms"):k=this._top)}W=this._dHeight===0?A>0?1:0:k/this._dHeight;H||(this._lastScrollTop=A,this._top=k,this._wasScrollingDown=B,this._lastTimestamp=h);if(H||W!==this._progress||d!==k||A===0)this._progress=W,this._runEffects(W,k),this._transformHeader(k)}},
_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(A){this.translate3d(0,-A+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&A>=this._stickyElTop?Math.min(A,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(A,H,k){return Math.min(k,Math.max(H,A))},
_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),_.WB(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(A){switch(A){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.WB(this).querySelector("[main-title]");case "condensedTitle":return _.WB(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var wxR;var o0V;_.uy({_template:function(){if(o0V!==void 0)return o0V;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;wxR===void 0&&(wxR=document.createElement("template"));var d=wxR;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return o0V=A},
is:"tp-yt-app-header-layout",behaviors:[lk1],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 _.WB(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var A=this.header;if(this.isAttached&&A){this.$.wrapper.classList.remove("initializing");A.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)A.style.left="",A.style.right="";else{var H=this.getBoundingClientRect(),k=document.documentElement.clientWidth-H.right;A.style.left=H.left+"px";A.style.right=k+"px"}H=this.$.contentContainer.style;k=A.offsetHeight;A.fixed&&!A.condenses&&this.hasScrollingRegion?
(H.marginTop=k+"px",H.paddingTop=""):(H.paddingTop=k+"px",H.marginTop="")}}});/*

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 $6G=_.XO(['<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>']),
AoL=_.Y6Z($6G);AoL.setAttribute("style","display: none;");document.head.appendChild(AoL.content);var HKV;var sWe;/*

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
*/
_.uy({_template:function(){if(sWe!==void 0)return sWe;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;HKV===void 0&&(HKV=document.createElement("template"));var d=HKV;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return sWe=A},
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(A,H){var k=this._resolveSrc(A);k!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",A===""||H?this._setLoading(!1):(this._resolvedSrc=k,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 A=this.$.sizedImgDiv.style,H=this.$.placeholder.style;A.backgroundSize=H.backgroundSize=this.sizing;A.backgroundPosition=H.backgroundPosition=this.sizing?this.position:"";A.backgroundRepeat=H.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(A){A=_.Hu(A,this.$.baseURIAnchor.href);A.length>=2&&A[0]==="/"&&A[1]!=="/"&&(A=(location.origin||location.protocol+"//"+location.host)+A);return A}});var kUV;var dO_;_.uy({_template:function(){if(dO_!==void 0)return dO_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=
A.content,k=H.insertBefore;kUV===void 0&&(kUV=document.createElement("template"));var d=kUV;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return dO_=A},
is:"tp-yt-iron-pages",behaviors:[_.WU,_.jD],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var WEi;var zQB;_.uy({_template:function(){if(zQB!==void 0)return zQB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;WEi===void 0&&(WEi=document.createElement("template"));var d=WEi;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return zQB=A},
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(A){return A?"false":"true"},
_headingChanged:function(A){var H=this.getAttribute("heading"),k=this.getAttribute("aria-label");typeof k==="string"&&k!==H||this.setAttribute("aria-label",A)},
_computeHeadingClass:function(A){return A?" over-image":""},
_computeAnimated:function(A){return A}});var qei;var roL;_.uy({_template:function(){if(roL!==void 0)return roL;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;qei===void 0&&(qei=document.createElement("template"));var d=qei;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return roL=A},
is:"tp-yt-paper-checkbox",behaviors:[_.YXw],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.No(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var A=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),H="px",k=A.match(/[A-Za-z]+$/);k!==null&&(H=k[0]);A=parseFloat(A);k=8/3*A;H==="px"&&(k=Math.floor(k),k%2!==A%2&&k++);this.updateStyles({"--paper-checkbox-ink-size":k+
H})}})},
_computeCheckboxClass:function(A,H){var k="";A&&(k+="checked ");H&&(k+="invalid");return k},
_computeCheckmarkClass:function(A){return A?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.jMA._createRipple.call(this)}});var u$L;var BvL;var eQ_=_.$2.IronButtonState,xOV=(0,_.su)(HTMLElement);
_.uy({_template:function(){if(BvL!==void 0)return BvL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;u$L===void 0&&(u$L=document.createElement("template"));var d=u$L;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return BvL=A},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[eQ_,_.w1,_.Aq,_.kt],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(A){var H=(0,_.R0)(this);H.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:A});H.shadowRoot.appendChild(A);return xOV.prototype._attachDom.call(this,A)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var A=this.contentElement;A&&A.selectedItem&&this._setSelectedItem(A.selectedItem)},
get contentElement(){for(var A=_.WB(this.$.content).getDistributedNodes(),H=0,k=A.length;H<k;H++)if(A[H].nodeType===Node.ELEMENT_NODE)return A[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(A){this._setSelectedItem(A.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(A){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)===this&&this.open()},
_selectedItemChanged:function(A){var H="";A?H=A.label||A.getAttribute("label")||A.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(A,H){return H?H:A?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var A=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",A)}});var iKI;var hQQ;_.uy({_template:function(){if(hQQ!==void 0)return hQQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
var H=A.content,k=H.insertBefore;iKI===void 0&&(iKI=document.createElement("template"));var d=iKI;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return hQQ=A},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var OKL;var RQI;_.uy({_template:function(){if(RQI!==void 0)return RQI;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;OKL===void 0&&(OKL=document.createElement("template"));var d=OKL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return RQI=A},
is:"tp-yt-paper-progress",behaviors:[U6_],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(A){this.toggleClass("indeterminate",A,this.$.primaryProgress)},
_transformProgress:function(A,H){A.style.transform=A.style.webkitTransform="scaleX("+H/100+")"},
_mainRatioChanged:function(A){this._transformProgress(this.$.primaryProgress,A)},
_progressChanged:function(A,H,k,d,W){A=this._clampValue(A);H=this._clampValue(H);var z=this._calcRatio(A)*100,u=this._calcRatio(H)*100;this._setSecondaryRatio(z);this._transformProgress(this.$.secondaryProgress,z);this._transformProgress(this.$.primaryProgress,u);this.secondaryProgress=A;W?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",H);this.setAttribute("aria-valuemin",k);this.setAttribute("aria-valuemax",d)},
_disabledChanged:function(A){this.setAttribute("aria-disabled",A?"true":"false")},
_hideSecondaryProgress:function(A){return A===0}});var TvQ;var mOL;var Jo3=function(){};
_.q=Jo3.prototype;_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._noinkChanged=function(){};
_.q._focusedChanged=function(){};
_.q._createRipple=function(){};
_.q.registered=function(){};
_.q._invalidChanged=function(){};
_.q.hasValidator=function(){};
_.q.validate=function(){};
_.q._getValidity=function(){};
_.q._requiredChanged=function(){};
_.q._valueChanged=function(){};
_.q._checkedChanged=function(){};
_.q._buttonStateChanged=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
Jo3=_.uy({is:"tp-yt-paper-radio-button",_template:function(){if(mOL!==void 0)return mOL;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;TvQ===void 0&&(TvQ=document.createElement("template"));var d=TvQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return mOL=A},
behaviors:[_.YXw],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(){_.No(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var A=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),H=Math.floor(3*A);H%2!==A%2&&H++;this.updateStyles({"--paper-radio-button-ink-size":H+"px"})}})}});var gvB;var bKR;_.uy({_template:function(){if(bKR!==void 0)return bKR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;gvB===void 0&&(gvB=document.createElement("template"));var d=gvB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return bKR=A},
is:"tp-yt-paper-radio-group",behaviors:[_.gcN],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(A){var H=this._valueToItem(A);if(!H||!H.hasAttribute("disabled")){if(this.selected){H=this._valueToItem(this.selected);if(this.selected==A)if(this.allowEmptySelection)A="";else{H&&(H.checked=!0);return}H&&
(H.checked=!1)}_.jD.select.apply(this,[A]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(A){this._focusPrevious();A.preventDefault();this._activateFocusedItem()},
_onDownKey:function(A){this._focusNext();A.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(A){_.Jd0._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(A){_.Jd0._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.jD._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.dx._resetTabindices.apply(this,arguments);this.items.forEach(function(A){A.removeAttribute("aria-selected")},this)}});var LEL;var vvV;var yoL=function(){};
_.q=yoL.prototype;_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._buttonStateChanged=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._noinkChanged=function(){};
_.q._calcRatio=function(){};
_.q._clampValue=function(){};
_.q._calcStep=function(){};
_.q._validateValue=function(){};
_.q._update=function(){};
_.q._setImmediateValue=function(){};
_.q._setExpand=function(){};
_.q._setDragging=function(){};
_.q._setTransiting=function(){};
_.q._setMarkers=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
_.q._setRatio=function(){};
yoL=_.uy({_template:function(){if(vvV!==void 0)return vvV;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;LEL===void 0&&(LEL=document.createElement("template"));var d=LEL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return vvV=A},
is:"tp-yt-paper-slider",behaviors:[_.fo,_.Aq,_.II0,U6_],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&&_.FF(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(A,H,k){this.setAttribute("aria-valuemin",H);this.setAttribute("aria-valuemax",k);this.setAttribute("aria-valuenow",A);this._positionKnob(this._calcRatio(A)*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(A){this._setImmediateValue(this._calcStep(this._calcKnobPosition(A)));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(A){return(this.max-this.min)*A/100+this.min},
_onTrack:function(A){A.stopPropagation();switch(A.detail.state){case "start":this._trackStart(A);break;case "track":this._trackX(A);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(A){this.dragging||this._trackStart(A);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,A.detail.dx*(this._isRTL?-1:1)));A=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(A);A=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(A+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var A=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;A.transform=A.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(A){this._expandKnob();A.preventDefault();this.focus()},
_bartrack:function(A){this._allowBarEvent(A)&&this._onTrack(A)},
_barclick:function(A){this._w=this.$.sliderBar.offsetWidth;var H=this.$.sliderBar.getBoundingClientRect();H=(A.detail.x-H.left)/this._w*100;this._isRTL&&(H=100-H);var k=this.ratio;this._setTransiting(!0);this._positionKnob(H);k===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
A.preventDefault();this.focus()},
_bardown:function(A){this._allowBarEvent(A)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(A))},
_knobTransitionEnd:function(A){A.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(A,H,k,d){d||this._setMarkers([]);H=Math.round((k-H)/this.step);H>A&&(H=A);if(H<0||!isFinite(H))H=0;this._setMarkers(Array(H))},
_mergeClasses:function(A){return Object.keys(A).filter(function(H){return A[H]}).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(A){return!this.ignoreBarTouch||A.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(A){this._isRTL?this._incrementKey(A):this._decrementKey(A)},
_rightKey:function(A){this._isRTL?this._decrementKey(A):this._incrementKey(A)},
_incrementKey:function(A){this.disabled||(A.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),A.preventDefault())},
_decrementKey:function(A){this.disabled||(A.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),A.preventDefault())},
_changeValue:function(A){this.value=A.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(A){A.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.jMA._createRipple.call(this)},
_focusedChanged:function(A){A&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=A?"":"none",this._ripple.holdDown=A)}});var jWB;var IYV;var hX=null,YeV=function(){};
_.q=YeV.prototype;_.q.fit=function(){};
_.q._discoverInfo=function(){};
_.q.resetFit=function(){};
_.q.refit=function(){};
_.q.position=function(){};
_.q.constrain=function(){};
_.q._sizeDimension=function(){};
_.q.__sizeDimension=function(){};
_.q.center=function(){};
_.q.__getNormalizedRect=function(){};
_.q.__getOffscreenArea=function(){};
_.q.__getPosition=function(){};
_.q.notifyResize=function(){};
_.q.assignParentResizable=function(){};
_.q.stopResizeNotificationsFor=function(){};
_.q._subscribeIronResize=function(){};
_.q._unsubscribeIronResize=function(){};
_.q.resizerShouldNotify=function(){};
_.q._onDescendantIronResize=function(){};
_.q._fireResize=function(){};
_.q._onIronRequestResizeNotifications=function(){};
_.q._parentResizableChanged=function(){};
_.q._notifyDescendant=function(){};
_.q._requestResizeNotifications=function(){};
_.q._findParent=function(){};
_.q.toggle=function(){};
_.q.open=function(){};
_.q.close=function(){};
_.q.cancel=function(){};
_.q.invalidateTabbables=function(){};
_.q._ensureSetup=function(){};
_.q._canceledChanged=function(){};
_.q._withBackdropChanged=function(){};
_.q._prepareRenderOpened=function(){};
_.q._finishRenderOpened=function(){};
_.q._finishRenderClosed=function(){};
_.q._preparePositioning=function(){};
_.q._finishPositioning=function(){};
_.q._applyFocus=function(){};
_.q._onCaptureClick=function(){};
_.q._onCaptureFocus=function(){};
_.q._onCaptureEsc=function(){};
_.q._onCaptureTab=function(){};
_.q._onIronResize=function(){};
_.q._onNodesChange=function(){};
_.q.__ensureFirstLastFocusables=function(){};
_.q.__openedChanged=function(){};
_.q.__deraf=function(){};
_.q.__updateScrollObservers=function(){};
_.q.__addScrollListeners=function(){};
_.q.__removeScrollListeners=function(){};
_.q.__isValidScrollAction=function(){};
_.q.__onCaptureScroll=function(){};
_.q.__saveScrollPosition=function(){};
_.q.__restoreScrollPosition=function(){};
_.q._setCanceled=function(){};
YeV=_.uy({_template:function(){if(IYV!==void 0)return IYV;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;jWB===void 0&&(jWB=document.createElement("template"));var d=jWB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return IYV=A},
is:"tp-yt-paper-toast",behaviors:[_.LI],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(){_.k2._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Tl.requestAvailability()},
show:function(A){typeof A=="string"&&(A={text:A});for(var H in A)H.indexOf("_")===0?_.k2._warn('The property "'+H+'" is private and was not set.'):H in this?this[H]=A[H]:_.k2._warn('The property "'+H+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(A){A&&A.target===this&&A.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(hX&&hX!==this&&hX.close(),hX=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):hX===this&&(hX=null);_.br._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(A){this.positionTarget=A},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var PaQ=new _.Dt("disablePersonalizationAction");var PxB=new _.Dt("showDmaConsentFlowCommand");var Gki=new _.Dt("showMmgNoticeCommand");var GU3=new _.Dt("saveConsentAction");var FER=new _.Dt("navigateAction");var XAM=new _.Dt("replaceFeedContentAction");var DOi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(DOi,_.OW);var Se3=_.BUI(DOi);var CaI=new _.Dt("imageTileRenderer");var KEG=new _.Dt("promotedSparklesWebRenderer");var aYQ=new _.Dt("adGridCardCollectionViewModel");var coR=new _.Dt("addRendererToItemSectionAction");var pAL=new _.Dt("updateTopbarAvatarAction");var QWM=new _.Dt("channelHandleValidationResultRenderer");var Vgi=new _.Dt("generateHandleFromNameResultRenderer");var Ev_=new _.Dt("channelHandleInputRenderer");var UOV=new _.Dt("copyLinkRenderer");var lYG=new _.Dt("carouselTitleViewModel");var tgG=new _.Dt("ctaCarouselItemViewModel");var Nv3=new _.Dt("timedCommand");var MgM=new _.Dt("textFieldViewModel");var nv1=new _.Dt("crowdsourcedContextUserRatingFormFlowState");var ZKR=new _.Dt("noteViewModel");var fYG=new _.Dt("alertCommand");var wAi=new _.Dt("clearCookieAction");var ovL=new _.Dt("engagementPanelHeaderShowNavigationButtonCommand");var $OR=new _.Dt("getMultiPageMenuAction");var AP1=new _.Dt("addToGuideSectionAction"),Hv3=new _.Dt("removeFromGuideSectionAction");var sHG=new _.Dt("hideEngagementPanelScrimAction");var kqM=new _.Dt("updateNotificationsUnseenCountAction");var dML=new _.Dt("resetChannelUnreadCountCommand");var WdV=new _.Dt("resetSubscriptionsUnreadDotCommand");var zKe=new _.Dt("selectLanguageCommand");var EXG=new _.Dt("sendFeedbackAction");var qEQ=new _.Dt("setActivePanelItemAction");var rPG=new _.Dt("showEngagementPanelScrimAction");var usB=new _.Dt("updateEngagementPanelAction");var BAI=new _.Dt("updateSearchInVideoResultsAction");var eKM=new _.Dt("uploadImageToScottyCommand");var xMI=new _.Dt("webWatchNextResponseExtensionData");var iv3=new _.Dt("manageLabsStateCommand");var hKL=new _.Dt("registerPromoCommand");var Ov_=new _.Dt("setPushNotificationsEnabledCommand");var RKB=new _.Dt("updateSentimentBarStateCommand");var TA3=new _.Dt("desktopTopbarRenderer");var mMV=new _.Dt("surveyFollowUpRenderer");var JPM=new _.Dt("formRenderer");var gj3=new _.Dt("inlineFormRenderer");var bv_=new _.Dt("handlesClaimingRadioOptionRenderer");var LdQ=new _.Dt("hotkeyDialogRenderer");var vjB=new _.Dt("playlistSidebarPrimaryInfoRenderer");var yP_=new _.Dt("transcriptCueGroupRenderer");var jHV=new _.Dt("transcriptCueRenderer");var IVB=new _.Dt("transcriptFooterRenderer");var YE_=new _.Dt("engagementPanelAdSubtitleRenderer");var PDi=new _.Dt("videoDescriptionFantasySectionViewModel");var GqM=new _.Dt("inlineSurveyRenderer");var FdR=new _.Dt("radioButtonSurveyOptionRenderer"),X$1=new _.Dt("checkboxSurveyOptionRenderer");var DML=new _.Dt("showSurveyCommand");var OV=new _.Dt("abuseReportFlowState");var SEB=new _.Dt("modifyReportFormCommand");var CDL=new _.Dt("feedbackFormFlowState");var Kd1=new _.Dt("inputBoxViewModel");var aVM=new _.Dt("flowRootRenderer");var Mu_=new _.Dt("lengthValidationRule");var ZhL=new _.Dt("regexValidationRule");var wG3=new _.Dt("selectedValidationRule");var R9L=new _.Dt("accountLinkCommand");var TrB=new _.Dt("accountUnlinkCommand");var m8L=new _.Dt("deleteClipEngagementPanelCommand");var JhL=new _.Dt("logAccountLinkingEventCommand");var gxL=new _.Dt("loopCommand");var S8i=new _.Dt("guideCollapsibleEntryRenderer");var bbR=new _.Dt("guideDownloadsEntryRenderer");var DJB=new _.Dt("guideEntryRenderer");var LPR=[0,_.aX,_.lp,_.tK];var vxQ=[0,_.Sa,-2,v2_];var yhV=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.UB(A)};
_.I(yhV,_.OW);yhV.prototype.getFeature=function(){return _.O8(this,6)};
yhV.prototype.hasFeature=function(){return _.FG(_.kV(this,6))!=null};var jeQ=[0,_.aX];var IBi=_.Pz(yhV,[0,_.Sa,-2,v2_,_.Sa,_.aX,-1,_.D_,-1,_.aX,-3,_.fyA,_.CX,vxQ,_.aX,-1,LyV,_.D_,_.aX,LPR,[0,[0,_.aX,-2,2,_.aX,-1,[0,_.aX],[0,_.lp,_.aX],[0,_.lp],[0,_.aX],2,[0,_.lp,2,[0,[2,3],_.lp,ioM,_.VV,[0,[1,2,3],ioM,-2]],[0,_.QV,vTR],1,[0,y0G],1,[0,_.aX],1,[0,[2],_.aX,_.VV,[0,_.Sa]]],[0,_.CX],[0,[1,2],_.VV,[0,_.aX],_.VV,[0,_.aX,_.U8,-1]],[0,_.lp],[0,_.aX,[0,[1,2,3,4],_.VV,[0,[0,_.aX],jeQ],_.VV,[0,[0,_.aX],jeQ],_.VV,[0,jeQ],_.VV,[0,[0,_.aX],jeQ]]],[0,_.aX],1,[0,_.aX,_.lp],1,[0,_.aX],[0,_.CX],[0,_.aX,
_.lp,-1,[0,_.aX,-4]],[0,_.aX],[0,_.aX,-2],1,[0,_.aX],[0,_.CX],[0,_.CX,_.aX],1,[0,_.CX],[0],[0]],_.aX,_.lp,_.FM,1,_.E8,_.aX,_.lp],_.Sa,_.E8,_.lp,-1,_.Sa]);var Yq_=new _.Dt("interstitialViewModel");var PvM=new _.Dt("changeCreatorEndscreenVisibilityCommand");var G8G=new _.Dt("liveChatCallForQuestionsRenderer");var FPR=new _.Dt("getLocationCommand");var X_B=new _.Dt("locationCollectionCommand");var D81=new _.Dt("chipsShelfViewModel");var Rj=new _.Dt("cinematicContainerRenderer");var T_=new _.Dt("changeMarkersVisibilityCommand");var SqM=new _.Dt("updateTimedMarkersSyncObserverCommand");var CvQ=new _.Dt("storiesItemViewModel");var KPB=new _.Dt("talkToRecsViewModel");var SK_=new _.Dt("timelyActionViewModel");var aBB=new _.Dt("timelyActionsOverlayViewModel");var chV=new _.Dt("addToRemoteQueueAction");var p_L=new _.Dt("insertInRemoteQueueAction");var Qei=new _.Dt("removeFromRemoteQueueAction");var V6L=new _.Dt("productDetailsThumbnailRenderer"),ExV=new _.Dt("productDetailsVariantRenderer"),U8R=new _.Dt("productDetailsVariantOptionRenderer"),lBL=new _.Dt("productDetailsOffersContainerRenderer"),t6_=new _.Dt("productDetailsOfferRenderer");var NrG=new _.Dt("shoppingFlaggingRenderer");var M6I=new _.Dt("notificationActionRenderer");var nxi=new _.Dt("notificationRenderer");var ekL=new _.Dt("localWatchHistoryCommand");var ZbG=new _.Dt("pdgBuyFlowHeaderRenderer");var fBI=new _.Dt("pdgColorSliderRenderer");var w_M=new _.Dt("pdgCommentOptionRenderer");var oxG=new _.Dt("pdgCommentPreviewRenderer");var $8Q=new _.Dt("superVodSelectableItemButtonRenderer");var AmL=new _.Dt("creatorGoalSetUpFlowDropdownItemViewModel");var HUV=new _.Dt("creatorGoalSetUpFlowDropdownViewModel");var sZQ=new _.Dt("repeatChapterCommand");var k$e=new _.Dt("watchPlayerOverflowMenuCommand");var dAG=new _.Dt("compositeVideoOverlayRenderer");var WoG=new _.Dt("playlistBylineRenderer");var znL=new _.Dt("reelNavigateCommand");var qfB=new _.Dt("reelNonVideoContentDismissalCommand");var rmM=new _.Dt("showReelsCommentsOverlayCommand");var ux_=new _.Dt("switchButtonRenderer");var BTL=new _.Dt("responsiveContainerConfiguration");var enV=new _.Dt("sortFilterSubMenuRenderer");var xAV=new _.Dt("upsellDialogRenderer");var iUL=new _.Dt("insertChannelTabCommand");var hnI=new _.Dt("feedbackQuestionRenderer"),OUG=new _.Dt("feedbackOptionRenderer");var RnV=new _.Dt("sponsorshipsTierRenderer"),TTL=new _.Dt("sponsorshipsPromotionChannelRenderer");var mAB=new _.Dt("simpleSurveyMessageRenderer");var DLe=new _.Dt("thumbnailBadgeViewModel");var JmQ=new _.Dt("checkboxGroupViewModel");var avR=new _.Dt("checkboxItemViewModel");var gGL=new _.Dt("radioButtonGroupViewModel");var bUI=new _.Dt("radioButtonItemViewModel");var LoB=new _.Dt("switchListItemViewModel");var ee_=new _.Dt("inputComposerViewModel");var ByV=new _.Dt("panelFooterViewModel");var vGI=new _.Dt("transcriptEditSegmentCommand");var ymi=new _.Dt("transcriptUpdateSegmentTextCommand");var jZ_=new _.Dt("transcriptSearchBoxRenderer");var Ire=new _.Dt("transcriptSegmentListRenderer");var YfV=new _.Dt("transcriptSegmentRenderer");var PM_=new _.Dt("videoInteractionPopUpRenderer");var G$_=new _.Dt("updateDateTextAction");var FoQ=new _.Dt("updateTitleAction");var X6M=new _.Dt("updateViewershipAction");var DA3=new _.Dt("relatedChipCommand");var Sf_=new _.Dt("carouselLockupRenderer");var CMQ=new _.Dt("engagementPanelSectionListRenderer");var mU=new _.Dt("expandableVideoDescriptionBodyRenderer");var KoI=new _.Dt("videoDescriptionHeaderRenderer");var arQ=new _.Dt("videoDescriptionYouchatSectionViewModel");var N3_=new _.Dt("invokeInstrumentManagerAction");var cme=new _.Dt("logYpcFlowDismissCommand");var p6M=new _.Dt("logYpcFlowStartCommand");var QZG=new _.Dt("ypcCancelRecurrenceCommand");var V2Q=new _.Dt("cancellationFlowState");var j5i=new _.Dt("premiumPurchaseFlowState");var EG_=new _.Dt("unlimitedCreateFamilyEndpoint");var UAG=new _.Dt("surveyAnswerCardRenderer");var lr1=new _.Dt("iconBadgeRenderer");var t2G=new _.Dt("showMoreButtonRenderer");var NTL=new _.Dt("pollChoiceData");var iO3=new _.Dt("collaborativePlaylistVisibilityValidationRule");var M2B=function(A){_.NZ.call(this,"channelMessage");this.message=A};
_.I(M2B,_.NZ);var nGB=function(A){_.NZ.call(this,"channelError");this.error=A};
_.I(nGB,_.NZ);var ZUL={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"},fr_={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},w6L={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},oGB={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},$AL={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var JX=function(A){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 _.ig;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;A&&(this.id=A.id||A.name,this.name=A.name,this.clientName=A.clientName?A.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=A.app,this.type=A.type||"REMOTE_CONTROL",this.username=A.user||"",this.avatar=A.userAvatarUri||"",this.obfuscatedGaiaId=A.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=A.ownerObfuscatedGaiaId||"",this.castUserId=A.castUserId||"",this.theme=A.theme||"u",A_L(this,A.capabilities||""),HJR(this,
A.compatibleSenderThemes||""),sGV(this,A.experiments||""),this.remoteControllerUrl=A.remoteControllerUrl||"",this.localChannelEncryptionKey=A.localChannelEncryptionKey||"",this.deviceContext=A.deviceContext,this.brand=A.brand||"",this.model=A.model||"",this.year=A.year||0,this.os=A.os||"",this.osVersion=A.osVersion||"",this.chipset=A.chipset||"",this.mdxDialServerType=A.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=A.pairingType||"unknown",A=A.deviceInfo)&&(A=JSON.parse(A),this.brand=
A.brand||"",this.model=A.model||"",this.year=A.year||0,this.os=A.os||"",this.osVersion=A.osVersion||"",this.chipset=A.chipset||"",this.clientName=A.clientName?A.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=A.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
JX.prototype.copy=function(){var A={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&&(A.brand=this.brand);
this.model&&(A.model=this.model);this.year&&(A.year=this.year);this.os&&(A.os=this.os);this.osVersion&&(A.osVersion=this.osVersion);this.chipset&&(A.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(A.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(A.mdxDialServerType=this.mdxDialServerType);A=new JX(A);A.connected=this.connected;A.remoteControllerUrl=this.remoteControllerUrl;A.localChannelEncryptionKey=this.localChannelEncryptionKey;A.deviceContext=
this.deviceContext;A.castUserId=this.castUserId;return A};
JX.prototype.equals=function(A){return A?this.id==A.id:!1};
var A_L=function(A,H){A.capabilities.clear();_.Ne(H.split(","),_.H0(_.iK.contains,ZUL)).forEach(function(k){A.capabilities.add(k)})},HJR=function(A,H){A.compatibleSenderThemes.clear();
_.Ne(H.split(","),_.H0(_.iK.contains,fr_)).forEach(function(k){A.compatibleSenderThemes.add(k)})},sGV=function(A,H){A.experiments.clear();
H.split(",").forEach(function(k){A.experiments.add(k)})};_.EK(bh,_.dF);_.q=bh.prototype;_.q.JSC$20080_onTick_=function(){this.retryCount++;this.JSC$20078_interval_=Math.min(3E5,this.JSC$20078_interval_*2);this.JSC$20080_listener_();this.nextTickTime_&&this.start()};
_.q.getRetryCount=function(){return this.retryCount};
_.q.start=function(){var A=this.JSC$20078_interval_+15E3*Math.random(),H=this.delay_;H.isActive()||H.start(A);this.nextTickTime_=Date.now()+A};
_.q.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.q.isActive=function(){return this.delay_.isActive()};
_.q.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$20078_interval_=5E3};_.EK(LS,pxi);_.q=LS.prototype;_.q.subscribe=function(A,H,k){return this.pubsub_.subscribe(A,H,k)};
_.q.unsubscribe=function(A,H,k){return this.pubsub_.unsubscribe(A,H,k)};
_.q.unsubscribeByKey=function(A){return this.pubsub_.unsubscribeByKey(A)};
_.q.publish=function(A,H){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.q.dispose=function(){this.JSC$20081_disposed_||(this.JSC$20081_disposed_=!0,_.CC(this.pubsub_),this.disconnect(),_.CC(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20081_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.MT({})})};
_.q.isDisposed=function(){return this.JSC$20081_disposed_};
_.q.connect=function(A,H,k){var d=this,W,z,u,B;return _.e(function(h){if(h.nextAddress==1)return _.pV(h,2),d.useAsyncBrowserChannelHandler_?h.yield(d.connectPromise_,2):h.jumpTo(2);_.KV(h);if(d.JSC$20081_disposed_||d.JSC$20081_channel_&&d.JSC$20081_channel_.getState()==2&&!d.isInitialReconnectTimer_)return h.return();d.sCookie_="";d.isInitialReconnectTimer_||d.reconnectTimer_.stop();d.connectionParams_=A||null;d.connectUi_=H||0;W=d.JSC$20081_pathPrefix_+"/test";z=d.JSC$20081_pathPrefix_+"/bind";u=
new JO(k?k.firstTestResults:null,k?k.secondTestResults:null,d.enableAsyncTest_);if(B=d.JSC$20081_channel_)B.handler_=null;u.handler_=d;d.JSC$20081_channel_=u;if(d.useAsyncBrowserChannelHandler_)return d.connectPromise_=km_(d).then(function(){return d11(d,W,z,B,k)}),h.return(d.connectPromise_.then(function(){d.connectPromise_=_.MT()}));
d11(d,W,z,B,k);return _.QA(h,0)})};
var d11=function(A,H,k,d,W){WIM(A);if(A.JSC$20081_channel_){var z=_.pZ("ID_TOKEN"),u=A.JSC$20081_channel_.JSC$19995_extraHeaders_||{};z?u["x-youtube-identity-token"]=z:delete u["x-youtube-identity-token"];A.JSC$20081_channel_.JSC$19995_extraHeaders_=u}zGR(A);d?(d.getState(),A.JSC$20081_channel_.connect(H,k,A.defaultQueryParams_,d.sid_,d.JSC$19995_lastArrayId_)):W?A.JSC$20081_channel_.connect(H,k,A.defaultQueryParams_,W.sessionId,W.arrayId):A.JSC$20081_channel_.connect(H,k,A.defaultQueryParams_);A.isInitialReconnectTimer_&&
!A.reconnectTimer_.isActive()&&A.reconnectTimer_.start();A.retryLogger_&&A.retryLogger_.startLogTimeout()};
LS.prototype.disconnect=function(A){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.MT())}finally{this.disconnectUi_=A||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),WIM(this),this.JSC$20081_channel_&&(this.JSC$20081_channel_.getState()==3&&D6Q(this.JSC$20081_channel_),this.JSC$20081_channel_.disconnect()),this.disconnectUi_=0}};
LS.prototype.sendMessage=function(A,H){var k=this,d;return _.e(function(W){switch(W.nextAddress){case 1:_.pV(W,2);if(!k.useAsyncBrowserChannelHandler_){W.jumpTo(2);break}return W.yield(k.connectPromise_,2);case 2:_.KV(W);if(k.JSC$20081_disposed_)return W.return();d={_sc:A};H&&_.iK.extend(d,H);if(k.reconnectTimer_.isActive()||(k.JSC$20081_channel_?k.JSC$20081_channel_.getState():0)==2){k.JSC$20081_pendingMessages_.push(d);W.jumpTo(6);break}if(!k.isChannelOpened()){W.jumpTo(6);break}_.pV(W,8);if(!k.useAsyncBrowserChannelHandler_||
q0e(k,A)){W.jumpTo(8);break}return W.yield(km_(k),8);case 8:_.KV(W,0,0,1);k.isChannelOpened()&&(q0e(k,A)||zGR(k),WIM(k),XxL(k.JSC$20081_channel_,d));_.QA(W,6,1);break;case 6:_.QA(W,0)}})};
var q0e=function(A,H){return A.enableMdxAuthForConnectionOnly_?!0:A.disableMdxAuthForAdMessages_?Object.values(w6L).includes(H):A.disableMdxAuthForNonPlaybackMessages_?!Object.values(oGB).includes(H):A.disableMdxAuthForShortsMessages_?Object.values($AL).includes(H):!1};
LS.prototype.JSC$20002_channelOpened=function(){this.retryLogger_&&this.reconnectTimer_&&this.reconnectTimer_.getRetryCount()>0&&(this.retryLogger_.logRetry(this.reconnectTimer_.getRetryCount(),this.isInitialReconnectTimer_,!0),this.retryLogger_.logSuccess());this.retryLogger_&&this.retryLogger_.cancelLogTimeout();this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.CC(this.reconnectTimer_),this.reconnectTimer_=new bh(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();
this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20081_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)r__(this);else{var A=this.JSC$20081_pendingMessages_;this.JSC$20081_pendingMessages_=[];var H=A.length;zGR(this);u2R(this,A,H);Bai(this)}else Bai(this)};
var r__=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return _.pV(d,2),d.yield(km_(A),2);_.KV(d);H=A.JSC$20081_pendingMessages_;A.JSC$20081_pendingMessages_=[];k=H.length;u2R(A,H,k);Bai(A);return _.QA(d,0)})},u2R=function(A,H,k){for(var d=0;d<k;++d)XxL(A.JSC$20081_channel_,H[d]);
Bai(A)},Bai=function(A){A.publish("handlerOpened");
A.JSC$20081_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.q=LS.prototype;_.q.JSC$20002_channelError=function(A){var H=A==2&&this.JSC$20081_channel_.JSC$19995_lastStatusCode_==401;A==4||H||(this.isInitialReconnectTimer_&&!this.reconnectTimer_.isActive()&&(_.CC(this.reconnectTimer_),this.reconnectTimer_=new bh(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1),this.reconnectTimer_.start());this.publish("handlerError",A,H);H=Object.keys(LgB).find(function(k){return LgB[k]===A});
this.JSC$20081_channelErrorCounter.increment("BROWSER_CHANNEL",H!=null?H:"UNKNOWN")};
_.q.JSC$20002_channelClosed=function(A,H){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(H)for(var k=H.length,d=0;d<k;++d){var W=H[d].map;W&&this.JSC$20081_pendingMessages_.push(W)}this.JSC$20081_channelClosedCounter.increment("BROWSER_CHANNEL");A&&this.pendingMapsOnClosedCounter.JSC$10246_streamzService.JSC$10100_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",A.length);H&&this.undeliveredMapsOnClosedCounter.JSC$10249_streamzService.JSC$10100_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
H.length)};
_.q.JSC$20002_channelSuccess=function(A,H){H!=null&&A!=null&&this.channelMessageSentCounter.increment()};
_.q.JSC$20002_getAdditionalParams=function(){var A={v:2};this.sCookie_&&(A.gsessionid=this.sCookie_);this.connectUi_!=0&&(A.ui=""+this.connectUi_);this.disconnectUi_!=0&&(A.ui=""+this.disconnectUi_);this.connectionParams_&&_.iK.extend(A,this.connectionParams_);return A};
_.q.JSC$20002_channelHandleArray=function(A){A[0]=="S"?this.sCookie_=A[1]:A[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20081_channel_.disconnect()):this.publish("handlerMessage",new aSM(A[0],A[1]));this.JSC$20081_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.q.isChannelOpened=function(){return!!this.JSC$20081_channel_&&this.JSC$20081_channel_.getState()==3};
var WIM=function(A){if(A.JSC$20081_channel_){var H=A.JSC$20081_getXsrfToken_(),k=A.JSC$20081_channel_.JSC$19995_extraHeaders_||{};H?k["x-youtube-lounge-xsrf-token"]=H:delete k["x-youtube-lounge-xsrf-token"];A.JSC$20081_channel_.JSC$19995_extraHeaders_=k}},km_=function(A){if(A.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.MT();
if(!A.enableCachedUpdateAuthorizationHeader_)return eGQ(A);A.updateAuthorizationHeaderPromise_===null&&(A.updateAuthorizationHeaderPromise_=eGQ(A));return A.updateAuthorizationHeaderPromise_},eGQ=function(A){return _.Rw(A.getAuthorizationHeader_().then(function(H){x1I(A,H)}).thenCatch(function(){}),function(){A.updateAuthorizationHeaderPromise_=null})},x1I=function(A,H){if(A.JSC$20081_channel_){var k=A.JSC$20081_channel_.JSC$19995_extraHeaders_||{};
H&&Object.keys(H).length>0?k=Object.assign({},k,H):delete k.Authorization;A.JSC$20081_channel_.JSC$19995_extraHeaders_=k}},zGR=function(A){A.getAuthorizationHeaderSync_&&!A.useAsyncBrowserChannelHandler_&&x1I(A,A.getAuthorizationHeaderSync_())};
_.q=LS.prototype;_.q.setLoungeToken=function(A){(this.defaultQueryParams_.loungeIdToken=A)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20081_channel_){var H=this.JSC$20081_channel_.JSC$19995_extraHeaders_||{};A?H["X-YouTube-LoungeId-Token"]=A:delete H["X-YouTube-LoungeId-Token"];this.JSC$20081_channel_.JSC$19995_extraHeaders_=H}};
_.q.getDeviceId=function(){return this.defaultQueryParams_.id};
_.q.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.q.reconnect=function(){var A=this.reconnectTimer_;A.delay_.fire();A.start()};
_.q.safeReconnect_=function(){var A=this.JSC$20081_channel_,H=0;A.JSC$19995_backChannelRequest_&&H++;A.forwardChannelRequest_&&H++;H==0&&this.connect(this.connectionParams_,this.connectUi_)};var Ii=function(A,H){var k=A.basePath;A.supportCors&&(k=A.scheme+"://"+A.domain+A.port+A.basePath);return _.$d(k+H,{})};
tDM.prototype.sendRequest=function(A,H,k,d,W,z,u){A={format:z?"RAW":"JSON",method:A,context:this,timeout:5E3,withCredentials:!!u,onSuccess:_.H0(this.JSC$20088_onSuccess_,d,!z),onError:_.H0(this.onError_,W),onTimeout:_.H0(this.JSC$20088_onTimeout_,W)};k&&(A.postParams=k,A.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.uC(H,A)};
tDM.prototype.JSC$20088_onSuccess_=function(A,H,k,d){H?A(d):A({text:k.responseText})};
tDM.prototype.onError_=function(A,H){A(Error("$k`"+H.status))};
tDM.prototype.JSC$20088_onTimeout_=function(A){A(Error("al"))};var Z0B=function(A,H){return!!H&&(A.id==H||A.uuid==H)},iJ_=function(A){return{name:A.name,
screenId:A.id,loungeToken:A.token,dialId:A.uuid,screenIdType:A.idType,screenIdSecret:A.secret}},hGB=function(A){return new vr(A)},OJ1=function(A){return Array.isArray(A)?_.hj(A,hGB):[]},w8_=function(A){if(!A)return"null";
var H=A.token?".."+A.token.slice(-6):"-",k=A.uuid?".."+A.uuid.slice(-6):"-",d=A.secret?".."+A.secret.slice(-6):"-";return'{name:"'+A.name+'",id:'+A.id.substr(0,6)+"..,token:"+(H+",uuid:"+k+",idType:"+A.idType+",secret:")+(d+"}")},y7V=function(A){return Array.isArray(A)?"["+_.hj(A,w8_).join(",")+"]":"null"};var syL="",jU=null;var xtM=function(A,H){_.Is.call(this);var k=this;this.handler=A();this.handler.subscribe("handlerOpened",this.JSC$20095_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(d,W){k.onError(W)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=H};
_.I(xtM,_.Is);_.q=xtM.prototype;_.q.connect=function(A,H,k){this.handler.connect(A,H,k)};
_.q.disconnect=function(A){this.handler.disconnect(A)};
_.q.reconnect=function(){this.handler.reconnect()};
_.q.getDeviceId=function(){return this.handler.getDeviceId()};
_.q.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.q.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.q.JSC$20095_onOpened=function(){this.dispatchEvent("channelOpened");var A=this.handler,H=this.currentScreenId;_.qH("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!A.JSC$20081_channel_.useChunked_,sessionId:A.JSC$20081_channel_.sid_,arrayId:A.JSC$20081_channel_.JSC$19995_lastArrayId_});_.qH("yt-remote-session-screen-id",H);A=fS3();H=wW_();_.VW(A,H)||A.push(H);H3_(A);A7Q()};
_.q.onClosed=function(){this.dispatchEvent("channelClosed")};
_.q.onMessage=function(A){this.dispatchEvent(new M2B(A))};
_.q.onError=function(A){this.dispatchEvent(new nGB(A?1:0))};
_.q.sendMessage=function(A,H){this.handler.sendMessage(A,H)};
_.q.setLoungeToken=function(A){this.handler.setLoungeToken(A)};
_.q.dispose=function(){this.handler.dispose()};var eS_=function(A,H,k){var d=this;k=k===void 0?function(){return""}:k;
var W=W===void 0?new GnB:W;var z=z===void 0?new _.B5:z;this.pathPrefix=A;this.defaultQueryParams=H;this.getXsrfToken=k;this.JSC$20098_pubsub=z;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new bh(function(){var u;((u=d.channel)==null?void 0:LfQ((new t3_(u,u.JSC$19963_channel_)).JSC$19973_channel_.forwardChannelRequestPool_))===0&&d.connect(d.connectionParams,d.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20098_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20098_channelOpenedCounter=new c6R;this.JSC$20098_channelClosedCounter=new pWM;this.JSC$20098_channelMessageReceivedCounter=new VDM;this.JSC$20098_channelErrorCounter=new E9e};
eS_.prototype.connect=function(A,H){A=A===void 0?{}:A;H=H===void 0?0:H;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=A,this.connectUi=H,RGI(this),(A=_.pZ("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=A: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 B9(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,TaQ(this))};
var TaQ=function(A){_.Y3(A.channel,"w",function(){A.channelState=3;A.reconnectTimer.reset();A.connectionParams=null;A.connectUi=0;for(var H=_.r(A.nonAckedMessagesOnChannelClosed),k=H.next();!k.done;k=H.next())k=k.value,A.channel&&A.channel.send(k);A.nonAckedMessagesOnChannelClosed=[];A.publish("webChannelOpened");A.JSC$20098_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Y3(A.channel,"x",function(){A.channelState=0;A.reconnectTimer.isActive()||A.publish("webChannelClosed");var H,k=(H=A.channel)==null?void 0:NfV(new t3_(H,H.JSC$19963_channel_));k&&(A.nonAckedMessagesOnChannelClosed=[].concat(_.fV(k)));A.JSC$20098_channelClosedCounter.increment("WEB_CHANNEL")});
_.Y3(A.channel,"z",function(H){var k=H.data;k[0]==="gracefulReconnect"?(A.reconnectTimer.start(),A.channel&&A.channel.close()):A.publish("webChannelMessage",new aSM(k[0],k[1]));A.lastStatusCode=H.statusCode;A.JSC$20098_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Y3(A.channel,"y",function(){A.lastStatusCode===401||A.reconnectTimer.start();A.publish("webChannelError");A.JSC$20098_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.q=eS_.prototype;_.q.disconnect=function(A){this.disconnectUi=A===void 0?0:A;this.reconnectTimer.stop();RGI(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.q.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.q.reconnect=function(){var A=this.reconnectTimer;A.delay_.fire();A.start()};
_.q.sendMessage=function(A,H){this.channel&&(RGI(this),A=Object.assign({},{_sc:A},H),this.channel.send(A))};
_.q.setLoungeToken=function(A){A||this.reconnectTimer.stop();A?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=A:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var RGI=function(A){var H=A.getXsrfToken();H?A.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=H:delete A.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.q=eS_.prototype;_.q.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.q.publish=function(A){return this.JSC$20098_pubsub.publish.apply(this.JSC$20098_pubsub,[A].concat(_.fV(_.o7.apply(1,arguments))))};
_.q.subscribe=function(A,H,k){return this.JSC$20098_pubsub.subscribe(A,H,k)};
_.q.unsubscribe=function(A,H,k){return this.JSC$20098_pubsub.unsubscribe(A,H,k)};
_.q.unsubscribeByKey=function(A){return this.JSC$20098_pubsub.unsubscribeByKey(A)};
_.q.dispose=function(){this.JSC$20098_disposed||(this.JSC$20098_disposed=!0,_.CC(this.JSC$20098_pubsub),this.disconnect(),_.CC(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.q.isDisposed=function(){return this.JSC$20098_disposed};var BbG=function(A){_.Is.call(this);this.webChannelService=A();this.webChannelService.subscribe("webChannelOpened",this.JSC$20106_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.I(BbG,_.Is);_.q=BbG.prototype;_.q.connect=function(A,H){this.webChannelService.connect(A,H)};
_.q.disconnect=function(A){this.webChannelService.disconnect(A)};
_.q.reconnect=function(){this.webChannelService.reconnect()};
_.q.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.q.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.q.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.q.JSC$20106_onOpened=function(){this.dispatchEvent("channelOpened")};
_.q.onClosed=function(){this.dispatchEvent("channelClosed")};
_.q.onMessage=function(A){this.dispatchEvent(new M2B(A))};
_.q.onError=function(){this.dispatchEvent(new nGB(this.webChannelService.lastStatusCode===401?1:0))};
_.q.sendMessage=function(A,H){this.webChannelService.sendMessage(A,H)};
_.q.setLoungeToken=function(A){this.webChannelService.setLoungeToken(A)};
_.q.dispose=function(){this.webChannelService.dispose()};var v5i=Date.now(),Y$=null,b3M=Array(50),g5G=-1,Lu3=!1;var FT=function(A){A=A===void 0?!1:A;_.dF.call(this);this.pubSub_=new _.B5(A);_.ZL(this,this.pubSub_)};
_.EK(FT,_.dF);FT.prototype.subscribe=function(A,H,k){return this.isDisposed()?0:this.pubSub_.subscribe(A,H,k)};
FT.prototype.unsubscribe=function(A,H,k){return this.isDisposed()?!1:this.pubSub_.unsubscribe(A,H,k)};
FT.prototype.unsubscribeByKey=function(A){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(A)};
FT.prototype.publish=function(A,H){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.EK(XT,FT);XT.prototype.getScreens=function(){return this.screens};
XT.prototype.contains=function(A){return!!n9B(this.screens,A)};
XT.prototype.get=function(A){return A?yy(this.screens,A):null};
var m1I=function(A,H){var k=A.get(H.uuid)||A.get(H.id);if(k)return A=k.name,k.id=H.id||k.id,k.name=H.name,k.token=H.token,k.uuid=H.uuid||k.uuid,k.name!=A;A.screens.push(H);return!0},J_1=function(A,H){var k=A.screens.length!=H.length;
A.screens=_.Ne(A.screens,function(z){return!!n9B(H,z)});
for(var d=H.length,W=0;W<d;W++)k=m1I(A,H[W])||k;return k},giL=function(A,H){var k=A.screens.length;
A.screens=_.Ne(A.screens,function(d){return!(d||H?!d!=!H?0:d.id==H.id:1)});
return A.screens.length<k};
XT.prototype.info=function(A){Pr(this.JSC$20110_logName_,A)};var bJ_=function(A,H,k,d,W){FT.call(this);this.JSC$20113_http_=A;this.pairingCode_=H;this.deviceId_=k;this.friendlyName_=d;this.enableShortLivedLoungeToken_=W;this.pollIndex_=0;this.JSC$20113_xhr_=null;this.JSC$20113_timer_=NaN};
_.I(bJ_,FT);_.q=bJ_.prototype;_.q.start=function(){!this.JSC$20113_xhr_&&isNaN(this.JSC$20113_timer_)&&this.poll_()};
_.q.stop=function(){this.JSC$20113_xhr_&&(this.JSC$20113_xhr_.abort(),this.JSC$20113_xhr_=null);isNaN(this.JSC$20113_timer_)||(_.r2(this.JSC$20113_timer_),this.JSC$20113_timer_=NaN)};
_.q.disposeInternal=function(){this.stop();FT.prototype.disposeInternal.call(this)};
_.q.poll_=function(){this.JSC$20113_timer_=NaN;this.JSC$20113_xhr_=_.uC(Ii(this.JSC$20113_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.WT)(this.JSC$20115_onSuccess_,this),onError:(0,_.WT)(this.onError_,this),onTimeout:(0,_.WT)(this.JSC$20115_onTimeout_,this)})};
_.q.JSC$20115_onSuccess_=function(A,H){this.JSC$20113_xhr_=null;A=H.screen||{};A.dialId=this.deviceId_;A.name=this.friendlyName_;H=-1;this.enableShortLivedLoungeToken_&&A.shortLivedLoungeToken&&A.shortLivedLoungeToken.value&&A.shortLivedLoungeToken.refreshIntervalMs&&(A.screenIdType="shortLived",A.loungeToken=A.shortLivedLoungeToken.value,H=A.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new vr(A),H)};
_.q.onError_=function(A){this.JSC$20113_xhr_=null;A.status&&A.status==404?this.pollIndex_>=LI_.length?this.publish("pairingFailed",Error("bl")):(A=LI_[this.pollIndex_],this.JSC$20113_timer_=_.zi((0,_.WT)(this.poll_,this),A),this.pollIndex_++):this.publish("pairingFailed",Error("cl`"+A.status))};
_.q.JSC$20115_onTimeout_=function(){this.JSC$20113_xhr_=null;this.publish("pairingFailed",Error("dl"))};
var LI_=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.EK(SU,XT);_.q=SU.prototype;_.q.start=function(){DU(this)&&this.publish("screenChange");!_.r4("yt-remote-lounge-token-expiration")&&viL(this);_.r2(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.zi((0,_.WT)(this.start,this),1E4)};
_.q.add=function(A,H){DU(this);m1I(this,A);y_L(this,!1);this.publish("screenChange");H(A);A.token||viL(this)};
_.q.remove=function(A,H){var k=DU(this);giL(this,A)&&(y_L(this,!1),k=!0);H(A);k&&this.publish("screenChange")};
_.q.updateName=function(A,H,k,d){var W=DU(this),z=this.get(A.id);z?(z.name!=H&&(z.name=H,y_L(this,!1),W=!0),k(A)):d(Error("el"));W&&this.publish("screenChange")};
_.q.disposeInternal=function(){_.r2(this.loungeTokenRefreshTimer_);SU.superClass_.disposeInternal.call(this)};
var viL=function(A){if(A.screens.length){var H=_.hj(A.screens,function(d){return d.id}),k=Ii(A.JSC$20117_http_,"/pairing/get_lounge_token_batch");
A.JSC$20117_http_.sendRequest("POST",k,{screen_ids:H.join(",")},(0,_.WT)(A.handleLoungeTokens_,A),(0,_.WT)(A.handleLoungeTokenError_,A))}};
SU.prototype.handleLoungeTokens_=function(A){DU(this);var H=this.screens.length;A=A&&A.screens||[];for(var k=A.length,d=0;d<k;++d){var W=A[d],z=this.get(W.screenId);z&&(z.token=W.loungeToken,--H)}y_L(this,!H);H&&Pr(this.JSC$20110_logName_,"Missed "+H+" lounge tokens.")};
SU.prototype.handleLoungeTokenError_=function(A){Pr(this.JSC$20110_logName_,"Requesting lounge tokens failed: "+A)};
var DU=function(A){if(_.b("deprecate_pair_servlet_enabled"))return J_1(A,[]);var H=OJ1(dt3());H=_.Ne(H,function(k){return!k.uuid});
return J_1(A,H)},y_L=function(A,H){zS1(_.hj(A.screens,iJ_));
H&&WuR()};var gZ=function(A,H){FT.call(this);this.getScreensToCheck_=H;H=(H=_.r4("yt-remote-online-screen-ids")||"")?H.split(","):[];for(var k={},d=this.getScreensToCheck_(),W=d.length,z=0;z<W;++z){var u=d[z].id;k[u]=_.VW(H,u)}this.screenIdSet_=k;this.JSC$20120_http_=A;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;jGR("Initialized with "+_.Js(this.screenIdSet_))};
_.I(gZ,FT);gZ.prototype.isOnline=function(A){return!!this.screenIdSet_[A]};
gZ.prototype.start=function(){var A=parseInt(_.r4("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Vj()-144E5<A?0:A)?Ig3(this):(this.fastCheckEndTime_=_.Vj()+3E5,_.qH("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
gZ.prototype.isEmpty=function(){return _.iK.isEmpty(this.screenIdSet_)};
gZ.prototype.update=function(){jGR("Updating availability on schedule.");var A=this.getScreensToCheck_(),H=_.iK.filter(this.screenIdSet_,function(k,d){return k&&!!yy(A,d)},this);
Y0I(this,H)};
var PbI=function(A,H,k){var d=Ii(A.JSC$20120_http_,"/pairing/get_screen_availability");A.JSC$20120_http_.sendRequest("POST",d,{lounge_token:H.token},(0,_.WT)(function(W){W=W.screens||[];for(var z=W.length,u=0;u<z;++u)if(W[u].loungeToken==H.token){k(W[u].status=="online");return}k(!1)},A),(0,_.WT)(function(){k(!1)},A))};
gZ.prototype.disposeInternal=function(){_.r2(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);FT.prototype.disposeInternal.call(this)};
var Y0I=function(A,H){a:if(_.iK.getCount(H)!=_.iK.getCount(A.screenIdSet_))var k=!1;else{k=_.iK.getKeys(H);for(var d=k.length,W=0;W<d;++W)if(!A.screenIdSet_[k[W]]){k=!1;break a}k=!0}k||(jGR("Updated online screens: "+_.Js(A.screenIdSet_)),A.screenIdSet_=H,A.publish("screenChange"));Gm_(A)},Ig3=function(A){isNaN(A.refreshTimer_)||_.r2(A.refreshTimer_);
A.refreshTimer_=_.zi((0,_.WT)(A.requestScreenAvailability_,A),A.fastCheckEndTime_>0&&A.fastCheckEndTime_<_.Vj()?2E4:1E4)};
gZ.prototype.requestScreenAvailability_=function(){_.r2(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var A=FI3(this);if(_.iK.getCount(A)){var H=Ii(this.JSC$20120_http_,"/pairing/get_screen_availability"),k={lounge_token:_.iK.getKeys(A).join(",")};this.currentRequest_=this.JSC$20120_http_.sendRequest("POST",H,k,(0,_.WT)(this.onScreenAvailability_,this,A),(0,_.WT)(this.onScreenAvailabilityError_,this))}else Y0I(this,{}),Ig3(this)};
gZ.prototype.onScreenAvailability_=function(A,H){this.currentRequest_=null;var k=_.iK.getKeys(FI3(this));if(_.wI(k,_.iK.getKeys(A))){H=H.screens||[];k={};for(var d=H.length,W=0;W<d;++W)k[A[H[W].loungeToken]]=H[W].status=="online";Y0I(this,k);Ig3(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
gZ.prototype.onScreenAvailabilityError_=function(A){this.warn_("Screen availability failed: "+A);this.currentRequest_=null;Ig3(this)};
var jGR=function(A){Pr("OnlineScreenService",A)};
gZ.prototype.warn_=function(A){Pr("OnlineScreenService",A)};
var FI3=function(A){var H={};_.t3(A.getScreensToCheck_(),function(k){k.token?H[k.token]=k.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return H},Gm_=function(A){A=_.iK.getKeys(_.iK.filter(A.screenIdSet_,function(H){return H}));
A.sort(_.Krf);A.length?_.qH("yt-remote-online-screen-ids",A.join(","),60):_.uw("yt-remote-online-screen-ids")};_.EK(CS,XT);_.q=CS.prototype;_.q.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.q.add=function(A,H,k){this.localScreenService_.add(A,H,k)};
_.q.remove=function(A,H,k){this.localScreenService_.remove(A,H,k);this.onlineScreenService_.update()};
_.q.updateName=function(A,H,k,d){this.localScreenService_.contains(A)?this.localScreenService_.updateName(A,H,k,d):(A="Updating name of unknown screen: "+A.name,Pr(this.JSC$20110_logName_,A),d(Error(A)))};
_.q.getScreens=function(A){return A?this.screens:q3R(this.screens,_.Ne(this.automaticScreens_,function(H){return!this.contains(H)},this))};
_.q.JSC$20125_getOnlineScreens=function(){return _.Ne(this.getScreens(!0),function(A){return this.onlineScreenService_.isOnline(A.id)},this)};
var D1L=function(A,H,k,d,W,z){A.info("getAutomaticScreenByIds "+k+" / "+H);k||(k=A.deviceToScreenId_[H]);var u=A.getScreens(),B=k?yy(u,k):null;k&&(A.disableAutomaticScreenCache_||B)||(B=yy(u,H));if(B){B.uuid=H;var h=b7(A,B);PbI(A.onlineScreenService_,h,function(O){W(O?h:null)})}else k?XgG(A,k,(0,_.WT)(function(O){var T=b7(this,new vr({name:d,
screenId:k,loungeToken:O,dialId:H||""}));PbI(this.onlineScreenService_,T,function(m){W(m?T:null)})},A),z):W(null)};
CS.prototype.JSC$20125_getScreenByPollingPairingCode=function(A,H,k,d,W,z){var u=this;this.info("getDialScreenByPairingCode "+A+" / "+H);var B=new bJ_(this.JSC$20123_http_,A,H,k,d);B.subscribe("pairingComplete",function(h,O){_.CC(B);W(b7(u,h),O)});
B.subscribe("pairingFailed",function(h){_.CC(B);z(h)});
B.start();return(0,_.WT)(B.stop,B)};
var S0B=function(A,H){for(var k=A.screens.length,d=0;d<k;++d)if(A.screens[d].name==H)return A.screens[d];return null};
CS.prototype.JSC$20125_getScreenByPairingCode=function(A,H,k,d){_.uC(Ii(this.JSC$20123_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:A},timeout:5E3,onSuccess:(0,_.WT)(function(W,z){W=new vr(z.screen||{});if(!W.name||S0B(this,W.name)){a:{z=W.name;for(var u=2,B=H(z,u);S0B(this,B);){u++;if(u>20)break a;B=H(z,u)}z=B}W.name=z}k(b7(this,W))},this),
onError:(0,_.WT)(function(W){d(Error("fl`"+W.status))},this),
onTimeout:(0,_.WT)(function(){d(Error("gl"))},this)})};
var CbL=function(A,H,k){PbI(A.onlineScreenService_,H,k)};
CS.prototype.disposeInternal=function(){_.CC(this.localScreenService_);_.CC(this.onlineScreenService_);CS.superClass_.disposeInternal.call(this)};
var XgG=function(A,H,k,d){A.info("requestLoungeToken_ for "+H);var W={postParams:{screen_ids:H},method:"POST",context:A,onSuccess:function(z,u){z=u&&u.screens||[];z[0]&&z[0].screenId==H?k(z[0].loungeToken):d(Error("hl"))},
onError:function(){d(Error("il"))}};
_.uC(Ii(A.JSC$20123_http_,"/pairing/get_lounge_token_batch"),W)},KI3=function(A){A.screens=A.localScreenService_.getScreens();
for(var H=_.iK.transpose(A.deviceToScreenId_),k=A.screens.length,d=0;d<k;++d){var W=A.screens[d];W.uuid=H[W.id]||""}A.info("Updated manual screens: "+y7V(A.screens))};
CS.prototype.handleScreenChange_=function(){KI3(this);this.publish("screenChange");this.onlineScreenService_.update()};
var jye=function(A){ag1(A);A.localScreenService_=new SU(A.JSC$20123_http_);A.localScreenService_.subscribe("screenChange",(0,_.WT)(A.handleScreenChange_,A));KI3(A);A.disableAutomaticScreenCache_||(A.automaticScreens_=OJ1(_.r4("yt-remote-automatic-screen-cache")||[]));ag1(A);A.info("Initializing automatic screens: "+y7V(A.automaticScreens_));A.onlineScreenService_=new gZ(A.JSC$20123_http_,(0,_.WT)(A.getScreens,A,!0));A.onlineScreenService_.subscribe("screenChange",(0,_.WT)(function(){this.publish("onlineScreenChange")},
A))},b7=function(A,H){var k=A.get(H.id);
k?(k.uuid=H.uuid,H=k):((k=yy(A.automaticScreens_,H.uuid))?(k.id=H.id,k.token=H.token,H=k):A.automaticScreens_.push(H),A.disableAutomaticScreenCache_||c_R(A));ag1(A);A.deviceToScreenId_[H.uuid]=H.id;_.qH("yt-remote-device-id-map",A.deviceToScreenId_,31536E3);return H},c_R=function(A){A=_.Ne(A.automaticScreens_,function(H){return H.idType!="shortLived"});
_.qH("yt-remote-automatic-screen-cache",_.hj(A,iJ_))},ag1=function(A){A.deviceToScreenId_=_.r4("yt-remote-device-id-map")||{}};
CS.prototype.dispose=CS.prototype.dispose;_.EK(KS,FT);var Lt=function(A,H){A.screen_=H;A.publish("sessionScreen",A.screen_)},pg_=function(A,H){A.screen_&&(A.screen_.token=H,b7(A.JSC$20127_screenService_,A.screen_));
A.publish("sessionScreen",A.screen_)};
KS.prototype.onSessionStopped=function(A){this.isDisposed()||(A&&(v9(this,""+A),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
KS.prototype.info=function(A){Pr(this.JSC$20127_logName_,A)};
var v9=function(A,H){Pr(A.JSC$20127_logName_,H)};
KS.prototype.JSC$20129_getCastSession=function(){return null};
KS.prototype.setDisplayStatus=function(A){var H=this.receiver_;A?(H.displayStatus=new chrome.cast.ReceiverDisplayStatus(A,[]),H.displayStatus.showStop=!0):H.displayStatus=null;chrome.cast.setReceiverDisplayStatus(H,(0,_.WT)(function(){this.info("Updated receiver status for "+H.friendlyName+": "+A)},this),(0,_.WT)(function(){v9(this,"Failed to update receiver status for: "+H.friendlyName)},this))};
KS.prototype.disposeInternal=function(){this.setDisplayStatus("");KS.superClass_.disposeInternal.call(this)};var yf=function(A,H,k){KS.call(this,A,H,"CastSession");var d=this;this.config_=k;this.JSC$20132_session_=null;this.JSC$20132_boundSessionUpdate_=(0,_.WT)(this.JSC$20134_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.WT)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.zi(function(){QGR(d,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20132_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20132_isInitLoungeToken_=!1;this.JSC$20132_lastLoungeTokenRefreshError_="unknown"};
_.I(yf,KS);_.q=yf.prototype;
_.q.setCastSession=function(A){if(this.JSC$20132_session_){if(this.JSC$20132_session_==A)return;v9(this,"Overriding cast session with new session object");VjL(this);this.JSC$20132_isInitLoungeToken_=!1;this.JSC$20132_lastLoungeTokenRefreshError_="unknown";this.JSC$20132_session_.removeUpdateListener(this.JSC$20132_boundSessionUpdate_);this.JSC$20132_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20132_session_=A;this.JSC$20132_session_.addUpdateListener(this.JSC$20132_boundSessionUpdate_);this.JSC$20132_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);EiR(this,"getMdxSessionStatus")};
_.q.launchWithParams=function(A){this.info("launchWithParams no-op for Cast: "+_.Js(A))};
_.q.stop=function(){if(this.JSC$20132_session_)this.JSC$20132_session_.stop((0,_.WT)(function(){this.onSessionStopped()},this),(0,_.WT)(function(){this.onSessionStopped(Error("jl"))},this));
else this.onSessionStopped(Error("kl"))};
_.q.setDisplayStatus=function(){};
_.q.disposeInternal=function(){this.info("disposeInternal");VjL(this);this.JSC$20132_session_&&(this.JSC$20132_session_.removeUpdateListener(this.JSC$20132_boundSessionUpdate_),this.JSC$20132_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20132_session_=null;KS.prototype.disposeInternal.call(this)};
var lge=function(A,H){_.r2(A.getLoungeTokenTimeoutKey_);A.getLoungeTokenTimeoutKey_=0;H==0?U1i(A):A.getLoungeTokenTimeoutKey_=_.zi(function(){U1i(A)},H)},U1i=function(A){EiR(A,"getLoungeToken");
_.r2(A.onLoungeTokenTimeoutKey_);A.onLoungeTokenTimeoutKey_=_.zi(function(){tjI(A,null)},3E4)},EiR=function(A,H){A.info("sendYoutubeMessage_: "+H+" "+_.Js(void 0));
var k={};k.type=H;A.JSC$20132_session_?A.JSC$20132_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",k,function(){},(0,_.WT)(function(){v9(this,"Failed to send message: "+H+".")},A)):v9(A,"Sending yt message without session: "+_.Js(k))};
yf.prototype.onYoutubeMessage_=function(A,H){if(!this.isDisposed())if(H)if(H=_.ui(H),_.nl(H))switch(A=""+H.type,H=H.data||{},this.info("onYoutubeMessage_: "+A+" "+_.Js(H)),A){case "mdxSessionStatus":QGR(this,H);break;case "loungeToken":tjI(this,H);break;default:v9(this,"Unknown youtube message: "+A)}else v9(this,"Unable to parse message.");else v9(this,"No data in message.")};
var Nae=function(A,H){if(H)A.info("onConnectedScreenId_: Received screenId: "+H),A.screen_&&A.screen_.id==H||A.getScreen_(H,function(k){Lt(A,k)},function(){return A.onSessionStopped()},5);
else A.onSessionStopped(Error("ll"))},niL=function(A,H,k){A.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(H));
var d=new vr(H);MjR(A,d,function(W){W?(A.JSC$20132_isInitLoungeToken_=!0,b7(A.JSC$20127_screenService_,d),Lt(A,d),A.JSC$20132_lastLoungeTokenRefreshError_="unknown",lge(A,k)):(_.V$(Error("ml`"+JSON.stringify(H))),A.onSessionStopped())},5)},QGR=function(A,H){_.r2(A.sessionStatusTimeoutKey_);
A.sessionStatusTimeoutKey_=0;if(H)A.config_.enableCastLoungeToken&&H.loungeToken?H.deviceId?A.screen_&&A.screen_.uuid==H.deviceId||(H.loungeTokenRefreshIntervalMs?niL(A,{name:A.receiver_.friendlyName,screenId:H.screenId,loungeToken:H.loungeToken,dialId:H.deviceId,screenIdType:"shortLived"},H.loungeTokenRefreshIntervalMs):(_.V$(Error("ol`"+JSON.stringify(H))),Nae(A,H.screenId))):(_.V$(Error("nl`"+JSON.stringify(H))),Nae(A,H.screenId)):Nae(A,H.screenId);else A.onSessionStopped(Error("ll"))},tjI=function(A,
H){_.r2(A.onLoungeTokenTimeoutKey_);
A.onLoungeTokenTimeoutKey_=0;var k=null;if(H)if(H.loungeToken){var d;((d=A.screen_)==null?void 0:d.token)==H.loungeToken&&(k="staleLoungeToken")}else k="missingLoungeToken";else k="noLoungeTokenResponse";k?(A.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(H)+", error: "+k)),A.JSC$20132_lastLoungeTokenRefreshError_=k,lge(A,3E4)):(pg_(A,H.loungeToken),A.JSC$20132_isInitLoungeToken_=!1,A.JSC$20132_lastLoungeTokenRefreshError_="unknown",lge(A,H.loungeTokenRefreshIntervalMs))};
yf.prototype.getScreen_=function(A,H,k,d){_.r2(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;D1L(this.JSC$20127_screenService_,this.receiver_.label,A,this.receiver_.friendlyName,(0,_.WT)(function(W){W?H(W):d>=0?(v9(this,"Screen "+A+" appears to be offline. "+d+" retries left."),this.getScreenTimeoutKey_=_.zi((0,_.WT)(this.getScreen_,this,A,H,k,d-1),300)):k(Error("pl"))},this),k)};
var MjR=function(A,H,k,d){_.r2(A.JSC$20132_checkScreenAvailabilityTimeoutKey_);A.JSC$20132_checkScreenAvailabilityTimeoutKey_=0;CbL(A.JSC$20127_screenService_,H,function(W){W||d<0?k(W):A.JSC$20132_checkScreenAvailabilityTimeoutKey_=_.zi(function(){MjR(A,H,k,d-1)},300)})};
yf.prototype.JSC$20129_getCastSession=function(){return this.JSC$20132_session_};
yf.prototype.JSC$20134_onSessionUpdate_=function(A){this.isDisposed()||A||(v9(this,"Cast session died."),this.onSessionStopped())};
var VjL=function(A){_.r2(A.getScreenTimeoutKey_);A.getScreenTimeoutKey_=0;_.r2(A.JSC$20132_checkScreenAvailabilityTimeoutKey_);A.JSC$20132_checkScreenAvailabilityTimeoutKey_=0;_.r2(A.sessionStatusTimeoutKey_);A.sessionStatusTimeoutKey_=0;_.r2(A.onLoungeTokenTimeoutKey_);A.onLoungeTokenTimeoutKey_=0;_.r2(A.getLoungeTokenTimeoutKey_);A.getLoungeTokenTimeoutKey_=0};var jR=function(A,H,k,d){KS.call(this,A,H,"DialSession");this.config_=d;this.JSC$20136_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20136_theme_=k;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20136_deferredLaunchDeadlineTimer_=NaN;this.JSC$20136_boundSessionUpdate_=(0,_.WT)(this.JSC$20138_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20136_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20136_isInitLoungeToken_=!1;this.JSC$20136_lastLoungeTokenRefreshError_="unknown"};
_.I(jR,KS);jR.prototype.setCastSession=function(A){this.JSC$20136_session_=A;this.JSC$20136_session_.addUpdateListener(this.JSC$20136_boundSessionUpdate_)};
jR.prototype.launchWithParams=function(A){this.connectData_=A;this.deferredLaunch_()};
jR.prototype.stop=function(){ZJi(this);if(this.JSC$20136_session_)this.JSC$20136_session_.stop((0,_.WT)(this.onSessionStopped,this,null),(0,_.WT)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
jR.prototype.disposeInternal=function(){ZJi(this);this.JSC$20136_session_&&this.JSC$20136_session_.removeUpdateListener(this.JSC$20136_boundSessionUpdate_);this.JSC$20136_session_=null;KS.prototype.disposeInternal.call(this)};
var fgR=function(A){var H;return!!(A.config_.enableDialLoungeToken&&((H=A.JSC$20136_session_)==null?0:H.getDialAppInfo))},oiQ=function(A){A.cancelPolling_=A.JSC$20127_screenService_.JSC$20125_getScreenByPollingPairingCode(A.reversePairingCode_,A.receiver_.label,A.receiver_.friendlyName,fgR(A),function(H,k){A.cancelPolling_=function(){};
A.JSC$20136_isInitLoungeToken_=!0;Lt(A,H);H.idType=="shortLived"&&k>0&&wgM(A,k)},function(H){A.cancelPolling_=function(){};
A.onSessionStopped(H)})};
jR.prototype.JSC$20138_onSessionUpdate_=function(A){this.isDisposed()||A||(v9(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var $1_=function(A){var H={};H.pairingCode=A.reversePairingCode_;H.theme=A.JSC$20136_theme_;uc_()&&(H.env_useStageMdx=1);return _.oa(H)},AuB=function(A){return new Promise(function(H){A.reversePairingCode_=Nu_();
if(A.connectData_){var k=new chrome.cast.DialLaunchResponse(!0,$1_(A));H(k);oiQ(A)}else A.deferredLaunch_=function(){_.r2(A.JSC$20136_deferredLaunchDeadlineTimer_);A.deferredLaunch_=function(){};
A.JSC$20136_deferredLaunchDeadlineTimer_=NaN;var d=new chrome.cast.DialLaunchResponse(!0,$1_(A));H(d);oiQ(A)},A.JSC$20136_deferredLaunchDeadlineTimer_=_.zi(function(){A.deferredLaunch_()},100)})},skB=function(A,H,k){A.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(H));
var d=new vr(H);return(new Promise(function(W){HpV(A,d,function(z){z?(A.JSC$20136_isInitLoungeToken_=!0,b7(A.JSC$20127_screenService_,d),Lt(A,d),wgM(A,k)):_.V$(Error("rl`"+JSON.stringify(H)));W(z)},5)})).then(function(W){return W?new chrome.cast.DialLaunchResponse(!1):AuB(A)})},k6B=function(A,H){var k=A.launchData_.receiver.label,d=A.receiver_.friendlyName;
return(new Promise(function(W){D1L(A.JSC$20127_screenService_,k,H,d,function(z){z&&z.token&&Lt(A,z);W(z)},function(z){v9(A,"Failed to get DIAL screen: "+z);
W(null)})})).then(function(W){return W&&W.token?new chrome.cast.DialLaunchResponse(!1):AuB(A)})},HpV=function(A,H,k,d){_.r2(A.JSC$20136_checkScreenAvailabilityTimeoutKey_);
A.JSC$20136_checkScreenAvailabilityTimeoutKey_=0;CbL(A.JSC$20127_screenService_,H,function(W){W||d<0?k(W):A.JSC$20136_checkScreenAvailabilityTimeoutKey_=_.zi(function(){HpV(A,H,k,d-1)},300)})},wgM=function(A,H){A.info("getDialAppInfoWithTimeout_ "+H);
fgR(A)&&(_.r2(A.getDialAppInfoTimeoutKey_),A.getDialAppInfoTimeoutKey_=0,H==0?df1(A):A.getDialAppInfoTimeoutKey_=_.zi(function(){df1(A)},H))},df1=function(A){fgR(A)&&A.JSC$20136_session_.getDialAppInfo(function(H){A.info("getDialAppInfo dialLaunchData: "+JSON.stringify(H));
H=H.extraData||{};var k=null;if(H.loungeToken){var d;((d=A.screen_)==null?void 0:d.token)==H.loungeToken&&(k="staleLoungeToken")}else k="missingLoungeToken";k?(A.JSC$20136_lastLoungeTokenRefreshError_=k,wgM(A,3E4)):(A.JSC$20136_isInitLoungeToken_=!1,A.JSC$20136_lastLoungeTokenRefreshError_="unknown",pg_(A,H.loungeToken),wgM(A,H.loungeTokenRefreshIntervalMs))},function(H){A.info("getDialAppInfo error: "+H);
A.JSC$20136_lastLoungeTokenRefreshError_="noLoungeTokenResponse";wgM(A,3E4)})},ZJi=function(A){_.r2(A.JSC$20136_checkScreenAvailabilityTimeoutKey_);
A.JSC$20136_checkScreenAvailabilityTimeoutKey_=0;_.r2(A.getDialAppInfoTimeoutKey_);A.getDialAppInfoTimeoutKey_=0;A.cancelPolling_();A.cancelPolling_=function(){};
_.r2(A.JSC$20136_deferredLaunchDeadlineTimer_)};var Ij=function(A,H){KS.call(this,A,H,"ManualSession");this.JSC$20140_deferredLaunchDeadlineTimer_=_.zi((0,_.WT)(this.launchWithParams,this,null),150)};
_.I(Ij,KS);Ij.prototype.stop=function(){this.onSessionStopped()};
Ij.prototype.setCastSession=function(){};
Ij.prototype.launchWithParams=function(){_.r2(this.JSC$20140_deferredLaunchDeadlineTimer_);this.JSC$20140_deferredLaunchDeadlineTimer_=NaN;var A=yy(this.JSC$20127_screenService_.getScreens(),this.receiver_.label);if(A)Lt(this,A);else this.onSessionStopped(Error("sl"))};
Ij.prototype.disposeInternal=function(){_.r2(this.JSC$20140_deferredLaunchDeadlineTimer_);this.JSC$20140_deferredLaunchDeadlineTimer_=NaN;KS.prototype.disposeInternal.call(this)};var Qy=function(A,H){FT.call(this);this.config_=H;this.JSC$20143_screenService_=A;this.JSC$20143_appId_=H.appId||"233637DE";this.JSC$20143_theme_=H.theme||"cl";this.disableDial_=H.disableCastApi||!1;this.forceMirroring_=H.forceMirroring||!1;this.JSC$20143_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.WT)(this.onReceiverAction_,this)};
_.I(Qy,FT);
Qy.prototype.init=function(A,H){chrome.cast.timeout.requestSession=3E4;var k=new chrome.cast.SessionRequest(this.JSC$20143_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.b("desktop_enable_cast_connect")&&(k.androidReceiverCompatible=!0);this.disableDial_||(k.dialRequest=new chrome.cast.DialRequest("YouTube"));var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;A=A||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var W=(0,_.WT)(this.onReceiverUpdated_,this);
k=new chrome.cast.ApiConfig(k,(0,_.WT)(this.onSessionEstablished_,this),W,d,A);k.customDialLaunchCallback=(0,_.WT)(this.onDialLaunchRequested_,this);chrome.cast.initialize(k,(0,_.WT)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Tbi(),this.JSC$20143_screenService_.subscribe("onlineScreenChange",(0,_.WT)(this.JSC$20145_onScreenChange_,this)),this.customReceivers_=WTG(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.WT)(function(z){this.warn_("Failed to set initial custom receivers: "+
_.Js(z))},this)),this.publish("yt-remote-cast2-availability-change",zrG(this)),H(!0))},this),(0,_.WT)(function(z){this.warn_("Failed to initialize API: "+_.Js(z));
H(!1)},this))};
Qy.prototype.setConnectedScreenStatus=function(A,H){Ya("Setting connected screen ID: "+A+" -> "+H);if(this.JSC$20143_session_){var k=this.JSC$20143_session_.screen_;if(!A||k&&k.id!=A)Ya("Unsetting old screen status: "+this.JSC$20143_session_.receiver_.friendlyName),P9(this,null)}if(A&&H){if(!this.JSC$20143_session_){A=yy(this.JSC$20143_screenService_.getScreens(),A);if(!A){Ya("setConnectedScreenStatus: Unknown screen.");return}if(A.idType=="shortLived"){Ya("setConnectedScreenStatus: Screen with id type to be short lived.");
return}k=q2_(this,A);k||(Ya("setConnectedScreenStatus: Connected receiver not custom..."),k=new chrome.cast.Receiver(A.uuid?A.uuid:A.id,A.name),k.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(k),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.WT)(function(d){this.warn_("Failed to set initial custom receivers: "+_.Js(d))},this)));
Ya("setConnectedScreenStatus: new active receiver: "+k.friendlyName);P9(this,new Ij(this.JSC$20143_screenService_,k),!0)}this.JSC$20143_session_.setDisplayStatus(H)}else Ya("setConnectedScreenStatus: no screen.")};
var q2_=function(A,H){return H?Ek(A.customReceivers_,function(k){return Z0B(H,k.label)},A):null};
Qy.prototype.setLaunchParams=function(A){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20143_session_?this.JSC$20143_session_.launchWithParams(A):this.warn_("Setting connection data without a session")};
Qy.prototype.JSC$20145_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20143_session_?(this.JSC$20143_session_.stop(),P9(this,null)):Ya("Stopping non-existing session")};
Qy.prototype.requestSession=function(){chrome.cast.requestSession((0,_.WT)(this.onSessionEstablished_,this),(0,_.WT)(this.onSessionRequestFailed_,this))};
Qy.prototype.disposeInternal=function(){this.JSC$20143_screenService_.unsubscribe("onlineScreenChange",(0,_.WT)(this.JSC$20145_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.EC(_.UD("yt.mdx.remote.debug.handlers_")||[],hS3);_.CC(this.JSC$20143_session_);FT.prototype.disposeInternal.call(this)};
var Ya=function(A){Pr("Controller",A)};
Qy.prototype.warn_=function(A){Pr("Controller",A)};
var hS3=function(A){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(A)},zrG=function(A){return A.hasCastReceiver_||!!A.customReceivers_.length||!!A.JSC$20143_session_},P9=function(A,H,k){H!=A.JSC$20143_session_&&(_.CC(A.JSC$20143_session_),(A.JSC$20143_session_=H)?(k?A.publish("yt-remote-cast2-receiver-resumed",H.receiver_):A.publish("yt-remote-cast2-receiver-selected",H.receiver_),H.subscribe("sessionScreen",(0,_.WT)(A.onSessionScreen_,A,H)),H.subscribe("sessionFailed",
function(){return rui(A,H)}),H.screen_?A.publish("yt-remote-cast2-session-change",H.screen_):k&&A.JSC$20143_session_.launchWithParams(null)):A.publish("yt-remote-cast2-session-change",null))},rui=function(A,H){A.JSC$20143_session_==H&&A.publish("yt-remote-cast2-session-failed")};
_.q=Qy.prototype;_.q.onSessionScreen_=function(A,H){this.JSC$20143_session_==A&&(H||P9(this,null),this.publish("yt-remote-cast2-session-change",H))};
_.q.onReceiverAction_=function(A,H){if(!this.isDisposed())if(A)switch(A.friendlyName=chrome.cast.unescape(A.friendlyName),Ya("onReceiverAction_ "+A.label+" / "+A.friendlyName+"-- "+H),H){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20143_session_)if(this.JSC$20143_session_.receiver_.label!=A.label)Ya("onReceiverAction_: Stopping active receiver: "+this.JSC$20143_session_.receiver_.friendlyName),this.JSC$20143_session_.stop();else{Ya("onReceiverAction_: Casting to active receiver.");this.JSC$20143_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20143_session_.screen_);break}switch(A.receiverType){case chrome.cast.ReceiverType.CUSTOM:P9(this,new Ij(this.JSC$20143_screenService_,A));break;case chrome.cast.ReceiverType.DIAL:P9(this,new jR(this.JSC$20143_screenService_,A,this.JSC$20143_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:P9(this,new yf(this.JSC$20143_screenService_,A,this.config_));break;default:this.warn_("Unknown receiver type: "+A.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20143_session_&&
this.JSC$20143_session_.receiver_.label==A.label?this.JSC$20143_session_.stop():this.warn_("Stopping receiver w/o session: "+A.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.q.onDialLaunchRequested_=function(A){if(this.isDisposed())return Promise.reject(Error("tl"));var H=A.receiver;H.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+H.friendlyName),H.receiverType=chrome.cast.ReceiverType.DIAL);var k=this.JSC$20143_session_?this.JSC$20143_session_.receiver_:null;if(!k||k.label!=H.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+H.friendlyName),Promise.reject(Error("ul"));if(k&&k.label==H.label&&k.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20143_session_.screen_)return Ya("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20143_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+k.receiverType+'" to "dial" for '+H.friendlyName);P9(this,new jR(this.JSC$20143_screenService_,H,this.JSC$20143_theme_,this.config_))}H=this.JSC$20143_session_;H.launchData_=A;H.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(A=H.launchData_.extraData||{},k=A.screenId||null,fgR(H)&&A.loungeToken?A.loungeTokenRefreshIntervalMs?A=skB(H,{name:H.receiver_.friendlyName,screenId:A.screenId,loungeToken:A.loungeToken,dialId:H.launchData_.receiver.label,screenIdType:"shortLived"},A.loungeTokenRefreshIntervalMs):(_.V$(Error("ql`"+JSON.stringify(A))),A=k6B(H,k)):A=k6B(H,k)):A=AuB(H);return A};
_.q.onSessionEstablished_=function(A){var H=this;if(!this.isDisposed()&&!this.forceMirroring_){Ya("New cast session ID: "+A.sessionId);var k=A.receiver;if(k.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20143_session_)if(k.receiverType==chrome.cast.ReceiverType.CAST)Ya("Got resumed cast session before resumed mdx connection."),k.friendlyName=chrome.cast.unescape(k.friendlyName),P9(this,new yf(this.JSC$20143_screenService_,k,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var d=this.JSC$20143_session_.receiver_,W=yy(this.JSC$20143_screenService_.getScreens(),d.label);W&&Z0B(W,k.label)&&d.receiverType!=chrome.cast.ReceiverType.CAST&&k.receiverType==chrome.cast.ReceiverType.CAST&&(Ya("onSessionEstablished_: manual to cast session change "+k.friendlyName),_.CC(this.JSC$20143_session_),this.JSC$20143_session_=new yf(this.JSC$20143_screenService_,k,this.config_),this.JSC$20143_session_.subscribe("sessionScreen",(0,_.WT)(this.onSessionScreen_,this,this.JSC$20143_session_)),
this.JSC$20143_session_.subscribe("sessionFailed",function(){return rui(H,H.JSC$20143_session_)}),this.JSC$20143_session_.launchWithParams(null));
this.JSC$20143_session_.setCastSession(A)}}};
_.q.JSC$20145_getCastSession=function(){return this.JSC$20143_session_?this.JSC$20143_session_.JSC$20129_getCastSession():null};
_.q.onSessionRequestFailed_=function(A){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+_.Js(A)),A.code!=chrome.cast.ErrorCode.CANCEL&&P9(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.q.onReceiverUpdated_=function(A){Ya("Receiver availability updated: "+A);if(!this.isDisposed()){var H=zrG(this);this.hasCastReceiver_=A==chrome.cast.ReceiverAvailability.AVAILABLE;zrG(this)!=H&&this.publish("yt-remote-cast2-availability-change",zrG(this))}};
var WTG=function(A){var H=A.JSC$20143_screenService_.JSC$20125_getOnlineScreens(),k=A.JSC$20143_session_&&A.JSC$20143_session_.receiver_;A=_.hj(H,function(d){k&&Z0B(d,k.label)&&(k=null);var W=d.uuid?d.uuid:d.id,z=q2_(this,d);z?(z.label=W,z.friendlyName=d.name):(z=new chrome.cast.Receiver(W,d.name),z.receiverType=chrome.cast.ReceiverType.CUSTOM);return z},A);
k&&(k.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(k=new chrome.cast.Receiver(k.label,k.friendlyName),k.receiverType=chrome.cast.ReceiverType.CUSTOM),A.push(k));return A};
Qy.prototype.JSC$20145_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=WTG(this),Ya("Updating custom receivers: "+_.Js(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.WT)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",zrG(this)))};
Qy.prototype.setLaunchParams=Qy.prototype.setLaunchParams;Qy.prototype.setConnectedScreenStatus=Qy.prototype.setConnectedScreenStatus;Qy.prototype.stopSession=Qy.prototype.JSC$20145_stopSession;Qy.prototype.getCastSession=Qy.prototype.JSC$20145_getCastSession;Qy.prototype.requestSession=Qy.prototype.requestSession;Qy.prototype.init=Qy.prototype.init;Qy.prototype.dispose=Qy.prototype.dispose;var u8e=_.XO(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),lf1=[],Dt_=_.Ia(u8e);var BRi=function(A){A.audioTrackId=null;A.trackData=null;A.playerState=-1;A.hasPrevious=!1;A.hasNext=!1;A.playerTime_=0;A.playerTimeAt_=_.Vj();A.seekableStart_=0;A.seekableEnd_=0;A.duration_=0;A.loadedTime=0;A.liveIngestionTime_=NaN;A.isLive_=!1};
_.q=Vy.prototype;
_.q.reset=function(A){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;A&&(this.index=A.index,this.listId=A.listId,this.videoId=A.videoId,this.playerState=A.playerState,this.volume=A.volume,this.muted=A.muted,this.audioTrackId=A.audioTrackId,this.trackData=A.trackData,this.hasPrevious=A.hasPrevious,this.hasNext=A.hasNext,this.playerTime_=A.playerTime,this.playerTimeAt_=A.playerTimeAt,this.seekableStart_=A.seekableStart,this.seekableEnd_=A.seekableEnd,this.duration_=A.duration,this.loadedTime=
A.loadedTime,this.liveIngestionTime_=A.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.q.stopPlayer=function(){this.index=-1;this.videoId="";BRi(this)};
_.q.isPlaying=function(){return this.playerState==1};
_.q.isBuffering=function(){return this.playerState==3};
_.q.isAdPlaying=function(){return this.playerState==1081};
var G_=function(A,H){A.playerTime_=H;A.playerTimeAt_=_.Vj()},er3=function(A){switch(A.playerState){case 1:case 1081:return(_.Vj()-A.playerTimeAt_)/1E3+A.playerTime_;
case -1E3:return 0}return A.playerTime_};
Vy.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Vj()-this.playerTimeAt_)/1E3:0):this.duration_};
var xfB=function(A,H,k){var d=A.videoId;A.videoId=H;A.index=k;H!=d&&BRi(A)},ipL=function(A){var H={};
H.index=A.index;H.listId=A.listId;H.videoId=A.videoId;H.playerState=A.playerState;H.volume=A.volume;H.muted=A.muted;H.audioTrackId=A.audioTrackId;H.trackData=_.iK.unsafeClone(A.trackData);H.hasPrevious=A.hasPrevious;H.hasNext=A.hasNext;H.playerTime=A.playerTime_;H.playerTimeAt=A.playerTimeAt_;H.seekableStart=A.seekableStart_;H.seekableEnd=A.seekableEnd_;H.duration=A.duration_;H.loadedTime=A.loadedTime;H.liveIngestionTime=A.liveIngestionTime_;return H};
Vy.prototype.clone=function(){return new Vy(ipL(this))};var tO=function(A,H){FT.call(this);var k=this;this.state_=0;this.connection_=A;this.contextSubscriptions_=[];this.actionQueue_=new K$_;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.WT)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.WT)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.WT)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.WT)(this.onCloudviewAvailabilityChange_,this);var d=0;A?(d=A.getProxyState(),
d!=3&&(A.subscribe("proxyStateChange",this.setState_,this),hr1(this))):d=3;d!=0&&(H?this.setState_(d):_.zi(function(){k.setState_(d)},0));
(A=n5_())&&Opi(this,A);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.I(tO,FT);tO.prototype.getState=function(){return this.state_};
tO.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
tO.prototype.reconnect=function(){this.connection_.reconnect()};
var Fb=function(A){return new Vy(A.connection_.getPlayerContextData())};
_.q=tO.prototype;_.q.play=function(){Xb(this)?(this.castMedia_?this.castMedia_.play(null,_.xX,RrV(this,"play")):Dn(this,"play"),TRL(this,1,er3(Fb(this))),this.publish("remotePlayerChange")):SR(this,this.play)};
_.q.pause=function(){Xb(this)?(this.castMedia_?this.castMedia_.pause(null,_.xX,RrV(this,"pause")):Dn(this,"pause"),TRL(this,2,er3(Fb(this))),this.publish("remotePlayerChange")):SR(this,this.pause)};
_.q.seekTo=function(A){if(Xb(this)){if(this.castMedia_){var H=Fb(this),k=new chrome.cast.media.SeekRequest;k.currentTime=A;H.isPlaying()||H.isBuffering()?k.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:k.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(k,_.xX,RrV(this,"seekTo",{newTime:A}))}else Dn(this,"seekTo",{newTime:A});TRL(this,3,A);this.publish("remotePlayerChange")}else SR(this,_.H0(this.seekTo,A))};
_.q.stop=function(){if(Xb(this)){this.castMedia_?this.castMedia_.stop(null,_.xX,RrV(this,"stopVideo")):Dn(this,"stopVideo");var A=Fb(this);A.stopPlayer();Ct(this,A);this.publish("remotePlayerChange")}else SR(this,this.stop)};
_.q.setVolume=function(A,H){if(Xb(this)){var k=Fb(this);if(this.castSession_){if(k.volume!=A){var d=Math.round(A)/100;this.castSession_.setReceiverVolumeLevel(d,(0,_.WT)(function(){GJ("set receiver volume: "+d)},this),(0,_.WT)(function(){this.warn_("failed to set receiver volume.")},this))}k.muted!=H&&this.castSession_.setReceiverMuted(H,(0,_.WT)(function(){GJ("set receiver muted: "+H)},this),(0,_.WT)(function(){this.warn_("failed to set receiver muted.")},this))}else{var W={volume:A,
muted:H};k.volume!=-1&&(W.delta=A-k.volume);Dn(this,"setVolume",W)}k.muted=H;k.volume=A;Ct(this,k)}else SR(this,_.H0(this.setVolume,A,H))};
_.q.setAudioTrack=function(A,H){Xb(this)?(H=H.getLanguageInfo().getId(),Dn(this,"setAudioTrack",{videoId:A,audioTrackId:H}),A=Fb(this),A.audioTrackId=H,Ct(this,A)):SR(this,_.H0(this.setAudioTrack,A,H))};
_.q.addVideo=function(A){Xb(this)?Dn(this,"addVideo",{videoId:A}):SR(this,_.H0(this.addVideo,A))};
_.q.addPlaylist=function(A){Xb(this)?Dn(this,"addVideos",{listId:A}):SR(this,_.H0(this.addPlaylist,A))};
_.q.addVideos=function(A){A.length==0?this.warn_("Ignore add videos request due to empty list"):Xb(this)?Dn(this,"addVideos",{videoIds:A.join(",")}):SR(this,_.H0(this.addVideos,A))};
_.q.JSC$20155_removeVideo=function(A){Xb(this)?Dn(this,"removeVideo",{videoId:A}):SR(this,_.H0(this.JSC$20155_removeVideo,A))};
_.q.JSC$20155_insertVideo=function(A){Xb(this)?Dn(this,"insertVideo",{videoId:A}):SR(this,_.H0(this.JSC$20155_insertVideo,A))};
_.q.playVideo=function(A,H,k,d,W,z,u){d=d===void 0?null:d;W=W===void 0?null:W;z=z===void 0?null:z;u=u===void 0?null:u;var B=Fb(this),h={videoId:A};k!==void 0&&(h.currentIndex=k);xfB(B,A,k||0);H!==void 0&&(G_(B,H),h.currentTime=H);d&&(h.listId=d);W&&(h.playerParams=W);z&&(h.clickTrackingParams=z);u&&(h.locationInfo=_.Js(u));Dn(this,"setPlaylist",h);d||Ct(this,B)};
_.q.nextVideo=function(A,H){if(Xb(this)){if(A&&H){var k=Fb(this);xfB(k,A,H);Ct(this,k)}Dn(this,"next")}else SR(this,_.H0(this.nextVideo,A,H))};
_.q.clearPlaylist=function(){if(Xb(this)){Dn(this,"clearPlaylist");var A=Fb(this);A.reset();Ct(this,A);this.publish("remotePlayerChange")}else SR(this,this.clearPlaylist)};
_.q.dispose=function(){if(this.state_!=3){var A=this.state_;this.state_=3;this.publish("proxyStateChange",A,this.state_)}FT.prototype.dispose.call(this)};
_.q.disposeInternal=function(){mfB(this);this.connection_=null;this.actionQueue_.clear();Opi(this,null);FT.prototype.disposeInternal.call(this)};
var hr1=function(A){_.t3("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(H){this.contextSubscriptions_.push(this.connection_.subscribe(H,_.H0(this.onProxyEvent_,H),this))},A)},mfB=function(A){_.t3(A.contextSubscriptions_,function(H){this.connection_.unsubscribeByKey(H)},A);
A.contextSubscriptions_.length=0},Xb=function(A){return A.getState()==1},SR=function(A,H){A.actionQueue_.getCount()<50&&A.actionQueue_.enqueue(H)},TRL=function(A,H,k){var d=Fb(A);
G_(d,k);d.playerState!=-1E3&&(d.playerState=H);Ct(A,d)},Dn=function(A,H,k){A.connection_.sendMessage(H,k)},Ct=function(A,H){mfB(A);
A.connection_.setPlayerContextData(ipL(H));hr1(A)};
tO.prototype.setState_=function(A){if((A!=this.state_||A==2)&&this.state_!=3&&A!=0){var H=this.state_;this.state_=A;this.publish("proxyStateChange",H,A);if(A==1)for(;!this.actionQueue_.isEmpty();)A=this.actionQueue_,QrG(A),A.front_.pop().apply(this);else A==3&&this.dispose()}};
tO.prototype.onProxyEvent_=function(A,H){this.publish(A,H)};
var Opi=function(A,H){A.castSession_&&(A.castSession_.removeUpdateListener(A.boundCastStatusListener_),A.castSession_.removeMediaListener(A.boundCastMediaListener_),A.onCastMediaChange_(null));A.castSession_=H;if(A.castSession_&&(GJ("Setting cast session: "+A.castSession_.sessionId),A.castSession_.addUpdateListener(A.boundCastStatusListener_),A.castSession_.addMediaListener(A.boundCastMediaListener_),A.castSession_.media.length))A.onCastMediaChange_(A.castSession_.media[0])};
tO.prototype.onCastStatusUpdate_=function(A){if(!A)this.onCastMediaChange_(null),Opi(this,null);else if(this.castSession_.receiver.volume){A=this.castSession_.receiver.volume;var H=Fb(this),k=Math.round(100*A.level||0);if(H.volume!=k||H.muted!=A.muted)GJ("Cast volume update: "+A.level+(A.muted?" muted":"")),H.volume=k,H.muted=!!A.muted,Ct(this,H)}};
tO.prototype.onCastMediaChange_=function(A){GJ("Cast media: "+!!A);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=A)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),JuQ(this),this.publish("remotePlayerChange")};
var JuQ=function(A){var H=A.castMedia_.media,k=A.castMedia_.customData;if(H&&k){var d=Fb(A);H.contentId!=d.videoId&&GJ("Cast changing video to: "+H.contentId);d.videoId=H.contentId;d.playerState=k.playerState;G_(d,A.castMedia_.getEstimatedTime());Ct(A,d)}else GJ("No cast media video. Ignoring state update.")};
tO.prototype.onCastMediaUpdate_=function(A){if(A)JuQ(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
tO.prototype.onCloudviewAvailabilityChange_=function(){var A=n5_();A&&Opi(this,A)};
tO.prototype.warn_=function(A){Pr("CP",A)};
var RrV=function(A,H,k){return(0,_.WT)(function(d){this.warn_("Failed to "+H+" with cast v2 channel. Error code: "+d.code);d.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+H+" using MDx browser channel."),Dn(this,H,k))},A)};var Nu=function(A,H,k,d){d=d===void 0?!1:d;FT.call(this);var W=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$20160_http_=A;this.enableConnectWithInitialState_=d;this.listeners_.push(_.NG(window,"beforeunload",function(){W.JSC$20163_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Vy;this.currentScreenId_=H.id;this.currentScreenIdType_=H.idType;this.channelService=i3R(this.JSC$20160_http_,k,this.JSC$20163_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){gCV(W)});
this.channelService.listen("channelClosed",function(){Kt("Channel closed");isNaN(W.connectTimerId_)?qRL(!0):qRL();W.dispose()});
this.channelService.listen("channelError",function(z){qRL();isNaN(W.getReconnectTimeout_())?(z==1&&W.currentScreenIdType_=="shortLived"&&W.publish("browserChannelAuthError",z),Kt("Channel error: "+z+" without reconnection"),W.dispose()):(W.reconnecting_=!0,Kt("Channel error: "+z+" with reconnection in "+W.getReconnectTimeout_()+" ms"),bpM(W,2))});
this.channelService.listen("channelMessage",function(z){LTe(W,z)});
this.channelService.setLoungeToken(H.token);this.subscribe("remoteQueueChange",function(){var z=W.playerContext_.videoId;o9_()&&_.qH("yt-remote-session-video-id",z)})};
_.I(Nu,FT);
Nu.prototype.connect=function(A,H){if(H){var k=H.listId,d=H.videoId,W=H.videoIds,z=H.playerParams,u=H.clickTrackingParams,B=H.index,h={videoId:d},O=H.currentTime,T=H.locationInfo;H=H.loopMode;O!==void 0&&(h.currentTime=O<=5?0:O);z&&(h.playerParams=z);T&&(h.locationInfo=T);u&&(h.clickTrackingParams=u);k&&(h.listId=k);W&&W.length>0&&(h.videoIds=W.join(","));B!==void 0&&(h.currentIndex=B);this.enableConnectWithInitialState_&&(h.loopMode=H||"LOOP_MODE_OFF");k&&(this.playerContext_.listId=k);this.playerContext_.videoId=
d;this.playerContext_.index=B||0;this.playerContext_.state=3;G_(this.playerContext_,O);this.autoplayMode_="UNSUPPORTED";k=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Kt("Connecting with "+k+" and params: "+_.Js(h));this.channelService.connect({method:k,params:_.Js(h)},A,kAL())}else Kt("Connecting without params"),this.channelService.connect({},A,kAL());vCB(this)};
Nu.prototype.setLoungeToken=function(A){this.channelService.setLoungeToken(A)};
Nu.prototype.dispose=function(){this.isDisposed()||(_.nG("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),bpM(this,3));FT.prototype.dispose.call(this)};
Nu.prototype.disposeInternal=function(){yuV(this);jkG(this);Imi(this);_.r2(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.r2(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.twm(this.listeners_);this.listeners_.length=0;this.channelService.dispose();FT.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Y2B=function(A){return Ek(A.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"})},Kt=function(A){Pr("conn",A)},bpM=function(A,H){A.publish("proxyStateChange",H)},vCB=function(A){A.connectTimerId_=_.zi(function(){Kt("Connecting timeout");
A.JSC$20163_disconnect_(1)},2E4)},yuV=function(A){_.r2(A.connectTimerId_);
A.connectTimerId_=NaN},Imi=function(A){_.r2(A.reconnectedCheckScreenTimeout_);
A.reconnectedCheckScreenTimeout_=NaN},G61=function(A){jkG(A);
A.playingSyncTimerId_=_.zi(function(){PW3(A,"getNowPlaying")},2E4)},jkG=function(A){_.r2(A.playingSyncTimerId_);
A.playingSyncTimerId_=NaN},gCV=function(A){Kt("Channel opened");
A.reconnecting_&&(A.reconnecting_=!1,Imi(A),A.reconnectedCheckScreenTimeout_=_.zi(function(){Kt("Timing out waiting for a screen.");A.JSC$20163_disconnect_(1)},15E3))},X7B=function(A,H){var k=null;
if(H){var d=Y2B(A);d&&(k={clientName:d.clientName,deviceMake:d.brand,deviceModel:d.model,osVersion:d.osVersion})}_.nG("yt.mdx.remote.remoteClient_",k);H&&(yuV(A),Imi(A));k=A.channelService.isChannelOpened()&&isNaN(A.connectTimerId_);H==k?H&&(bpM(A,1),PW3(A,"getSubtitlesTrack")):H?(A.getOtherConnectedRemoteId_()&&A.playerContext_.reset(),bpM(A,1),PW3(A,"getNowPlaying"),FTL(A)):A.JSC$20163_disconnect_(1)},DfB=function(A,H){var k=H.params.videoId;
delete H.params.videoId;k==A.playerContext_.videoId&&(_.iK.isEmpty(H.params)?A.playerContext_.trackData=null:A.playerContext_.trackData=H.params,A.publish("remotePlayerChange"))},S2e=function(A,H,k){var d=H.params.videoId||H.params.video_id,W=parseInt(H.params.currentIndex,10);
A.playerContext_.listId=H.params.listId||A.playerContext_.listId;xfB(A.playerContext_,d,W);A.publish("remoteQueueChange",k)},CWV=function(A,H){H.params=H.params||{};
S2e(A,H,"NOW_PLAYING_MAY_CHANGE");A.onStateChange_(H);A.publish("autoplayDismissed")};
Nu.prototype.onStateChange_=function(A){var H=parseInt(A.params.currentTime||A.params.current_time,10);G_(this.playerContext_,isNaN(H)?0:H);H=parseInt(A.params.state,10);H=isNaN(H)?-1:H;H==-1&&this.playerContext_.playerState==-1E3&&(H=-1E3);this.playerContext_.playerState=H;H=Number(A.params.loadedTime);this.playerContext_.loadedTime=isNaN(H)?0:H;H=Number(A.params.duration);this.playerContext_.duration_=isNaN(H)?0:H;H=this.playerContext_;var k=Number(A.params.liveIngestionTime);H.liveIngestionTime_=
k;H.isLive_=isNaN(k)?!1:!0;H=this.playerContext_;k=Number(A.params.seekableStartTime);A=Number(A.params.seekableEndTime);H.seekableStart_=isNaN(k)?0:k;H.seekableEnd_=isNaN(A)?0:A;this.playerContext_.playerState==1?G61(this):jkG(this);this.publish("remotePlayerChange")};
Nu.prototype.onAdStateChange_=function(A){if(this.playerContext_.playerState!=-1E3){var H=1085;switch(parseInt(A.params.adState,10)){case 1:H=1081;break;case 2:H=1084;break;case 0:H=1083}this.playerContext_.playerState=H;A=parseInt(A.params.currentTime,10);G_(this.playerContext_,isNaN(A)?0:A);this.publish("remotePlayerChange")}};
var KTi=function(A,H){var k=H.params.muted=="true";A.playerContext_.volume=parseInt(H.params.volume,10);A.playerContext_.muted=k;A.publish("remotePlayerChange")},amL=function(A,H){A.autoplayVideoId_=H.params.videoId;
A.publish("nowAutoplaying",parseInt(H.params.timeout,10))},cuQ=function(A,H){A.autoplayVideoId_=H.params.videoId||null;
A.publish("autoplayUpNext",A.autoplayVideoId_)},p71=function(A,H){A.autoplayMode_=H.params.autoplayMode;
A.publish("autoplayModeChange",A.autoplayMode_);A.autoplayMode_=="DISABLED"&&A.publish("autoplayDismissed")},Qke=function(A,H){var k=H.params.hasNext=="true";
A.playerContext_.hasPrevious=H.params.hasPrevious=="true";A.playerContext_.hasNext=k;A.publish("previousNextChange")};
Nu.prototype.isCapabilitySupportedOnConnectedDevices_=function(A){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var H=_.r(this.connectedDevices_),k=H.next();!k.done;k=H.next())if(!k.value.capabilities.has(A))return!1;return!0};
var LTe=function(A,H){H=H.message;H.params?Kt("Received: action="+H.action+", params="+_.Js(H.params)):Kt("Received: action="+H.action+" {}");switch(H.action){case "loungeStatus":H=_.ui(H.params.devices);A.connectedDevices_=_.hj(H,function(d){return new JX(d)});
H=!!Ek(A.connectedDevices_,function(d){return d.type=="LOUNGE_SCREEN"});
X7B(A,H);H=A.isCapabilitySupportedOnConnectedDevices_("mlm");A.publish("multiStateLoopEnabled",H);break;case "loungeScreenDisconnected":zpV(A.connectedDevices_,function(d){return d.type=="LOUNGE_SCREEN"});
X7B(A,!1);break;case "remoteConnected":var k=new JX(_.ui(H.params.device));Ek(A.connectedDevices_,function(d){return d.equals(k)})||_.Frm(A.connectedDevices_,k);
break;case "remoteDisconnected":k=new JX(_.ui(H.params.device));zpV(A.connectedDevices_,function(d){return d.equals(k)});
break;case "gracefulDisconnect":break;case "playlistModified":S2e(A,H,"QUEUE_MODIFIED");break;case "nowPlaying":CWV(A,H);break;case "onStateChange":A.onStateChange_(H);break;case "onAdStateChange":A.onAdStateChange_(H);break;case "onVolumeChanged":KTi(A,H);break;case "onSubtitlesTrackChanged":DfB(A,H);break;case "nowAutoplaying":amL(A,H);break;case "autoplayDismissed":A.publish("autoplayDismissed");break;case "autoplayUpNext":cuQ(A,H);break;case "onAutoplayModeChanged":p71(A,H);break;case "onHasPreviousNextChanged":Qke(A,
H);break;case "requestAssistedSignIn":A.publish("assistedSignInRequested",H.params.authCode);break;case "onLoopModeChanged":A.publish("loopModeChange",H.params.loopMode);break;default:Kt("Unrecognized action: "+H.action)}};
_.q=Nu.prototype;_.q.getProxyState_=function(){var A=3;this.isDisposed()||(A=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(A=1):A=2);return A};
_.q.JSC$20163_disconnect_=function(A){Kt("Disconnecting with "+A);_.nG("yt.mdx.remote.remoteClient_",null);yuV(this);this.publish("beforeDisconnect",A);A==1&&qRL();this.channelService.disconnect(A);this.dispose()};
_.q.getPlayerContextData_=function(){var A=this.playerContext_;this.clientVideoId_&&(A=this.playerContext_.clone(),xfB(A,this.clientVideoId_,A.index));return ipL(A)};
_.q.setPlayerContextData_=function(A){var H=this,k=new Vy(A);k.videoId&&k.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=k.videoId,_.r2(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.zi(function(){if(H.clientVideoId_){var W=H.clientVideoId_;H.clientVideoId_=null;H.playerContext_.videoId!=W&&PW3(H,"getNowPlaying")}},5E3));
var d=[];this.playerContext_.listId==k.listId&&this.playerContext_.videoId==k.videoId&&this.playerContext_.index==k.index||d.push("remoteQueueChange");this.playerContext_.playerState==k.playerState&&this.playerContext_.volume==k.volume&&this.playerContext_.muted==k.muted&&er3(this.playerContext_)==er3(k)&&_.Js(this.playerContext_.trackData)==_.Js(k.trackData)||d.push("remotePlayerChange");this.playerContext_.reset(A);_.t3(d,function(W){this.publish(W)},this)};
_.q.getOtherConnectedRemoteId_=function(){var A=this.channelService.getDeviceId(),H=Ek(this.connectedDevices_,function(k){return k.type=="REMOTE_CONTROL"&&k.id!=A});
return H?H.id:""};
_.q.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.q.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.q.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.q.JSC$20163_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var FTL=function(A){_.r2(A.idleDisconnectTimerId_);A.idleDisconnectTimerId_=_.zi(function(){A.JSC$20163_disconnect_(1)},864E5)},PW3=function(A,H,k){k?Kt("Sending: action="+H+", params="+_.Js(k)):Kt("Sending: action="+H);
A.channelService.sendMessage(H,k)};
Nu.prototype.sendMessageWithUserAction_=function(A,H){PW3(this,A,H);FTL(this)};
Nu.prototype.JSC$20163_getXsrfToken_=function(){var A=_.x6.get("SAPISID","")||_.x6.get("__Secure-1PAPISID",void 0)||"",H=_.x6.get("__Secure-3PAPISID","")||"";if(!A&&!H)return"";A=_.ob(_.zf(A),2);H=_.ob(_.zf(H),2);return _.ob(_.zf(","+A+","+H),2)};
Nu.prototype.subscribe=Nu.prototype.subscribe;Nu.prototype.unsubscribeByKey=Nu.prototype.unsubscribeByKey;Nu.prototype.getProxyState=Nu.prototype.getProxyState_;Nu.prototype.disconnect=Nu.prototype.JSC$20163_disconnect_;Nu.prototype.getPlayerContextData=Nu.prototype.getPlayerContextData_;Nu.prototype.setPlayerContextData=Nu.prototype.setPlayerContextData_;Nu.prototype.getOtherConnectedRemoteId=Nu.prototype.getOtherConnectedRemoteId_;Nu.prototype.getReconnectTimeout=Nu.prototype.getReconnectTimeout_;
Nu.prototype.getAutoplayMode=Nu.prototype.getAutoplayMode_;Nu.prototype.getAutoplayVideoId=Nu.prototype.getAutoplayVideoId_;Nu.prototype.reconnect=Nu.prototype.JSC$20163_reconnect_;Nu.prototype.sendMessage=Nu.prototype.sendMessageWithUserAction_;Nu.prototype.getXsrfToken=Nu.prototype.JSC$20163_getXsrfToken_;Nu.prototype.isCapabilitySupportedOnConnectedDevices=Nu.prototype.isCapabilitySupportedOnConnectedDevices_;var mNL=function(A){XT.call(this,"ScreenServiceProxy");this.instance_=A;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.WT)(this.JSC$20166_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.WT)(this.onOnlineScreenChange_,this)))};
_.I(mNL,XT);_.q=mNL.prototype;_.q.getScreens=function(A){return this.instance_.$_gs(A)};
_.q.contains=function(A){return!!this.instance_.$_c(A)};
_.q.get=function(A){return this.instance_.$_g(A)};
_.q.start=function(){this.instance_.$_st()};
_.q.add=function(A,H,k){this.instance_.$_a(A,H,k)};
_.q.remove=function(A,H,k){this.instance_.$_r(A,H,k)};
_.q.updateName=function(A,H,k,d){this.instance_.$_un(A,H,k,d)};
_.q.disposeInternal=function(){for(var A=this.subscriptionKeys_.length,H=0;H<A;++H)this.instance_.$_ubk(this.subscriptionKeys_[H]);this.subscriptionKeys_.length=0;this.instance_=null;XT.prototype.disposeInternal.call(this)};
_.q.JSC$20166_onScreenChange_=function(){this.publish("screenChange")};
_.q.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
CS.prototype.$_st=CS.prototype.start;CS.prototype.$_gspc=CS.prototype.JSC$20125_getScreenByPairingCode;CS.prototype.$_gsppc=CS.prototype.JSC$20125_getScreenByPollingPairingCode;CS.prototype.$_c=CS.prototype.contains;CS.prototype.$_g=CS.prototype.get;CS.prototype.$_a=CS.prototype.add;CS.prototype.$_un=CS.prototype.updateName;CS.prototype.$_r=CS.prototype.remove;CS.prototype.$_gs=CS.prototype.getScreens;CS.prototype.$_gos=CS.prototype.JSC$20125_getOnlineScreens;CS.prototype.$_s=CS.prototype.subscribe;
CS.prototype.$_ubk=CS.prototype.unsubscribeByKey;var xNL=null,gEB=!1,o5B=null,EO=null,TH3=null,UO=[];var VT_=new _.D$("yt-menu"),ECQ=function(){},lmI=function(A,H,k){A=H=="right-click"?k.rightClickMenuPopupHint:k.menuPopupHint;
if(!(UfR(H)>10))return H=H||"default",VT_.set(H+"-impression",UfR(H)+1),A},UfR=function(A){return parseInt(VT_.get((A||"default")+"-impression")||0,10)};
_.Qj(ECQ);var tTB=function(){this.contexts_=new WeakMap;this.JSC$20172_networkService_=this.activeContext_=null},NR3=function(A,H,k){var d=A.contexts_.get(H);
d||(d=new fw_(A.JSC$20172_networkService_),A.contexts_.set(H,d));A.activeContext_=d;k&&A.activeContext_.reset();A.activeContext_.start();return A.activeContext_};var Mu=_.b5l(function(A){var H=_.$g("DIV");A&&(H.className=A);H.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";A=_.$g("DIV");_.uaA(A,"200px","200px");H.appendChild(A);document.body.appendChild(H);A=H.offsetWidth-H.clientWidth;_.Aw(H);return A});var ZU=_.H5("kevlar_watch_page_horizontal_margin",24),PLL=_.H5("kevlar_watch_page_columns_top_padding",24),L0V=426+ZU*2,nS=_.H5("kevlar_watch_two_column_width_threshold",1E3),y8B=ZU*2,j9_=_.H5("kevlar_watch_secondary_width",402),YtL=_.H5("kevlar_watch_max_player_width",1280),Gc_=_.H5("kevlar_watch_flexy_metadata_height",136),IGB=y8B+310+ZU,vEG=y8B+360+ZU;var aj=function(){};
aj.prototype.enqueue=function(){var A=this,H;return _.e(function(k){if(A.isCounterfactual())return(H=A.getCounterfactualData())&&A.shouldLogCounterfactualImpression()&&A.sendImpressionEndpoints(H),k.return();A.doEnqueue();_.EN(k)})};
aj.prototype.sendImpressionEndpoints=function(A){_.a3.getInstance().triggerOptionalAction("yt-service-request",{},A[0])};var c9=function(A,H){this.renderer=A;this.page=H};
_.I(c9,aj);c9.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
c9.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
c9.prototype.shouldLogCounterfactualImpression=function(){return!0};
c9.prototype.doEnqueue=function(){var A=_.Cj(this.page);A&&A.pause();this.renderer.impressionCommand&&_.a3.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.h$(_.a3.getInstance(),[this.renderer.promoCommand],this.page)};var MTQ=function(A,H){this.renderer=A;this.resolver=_.YE();this.JSC$20184_enforcementCounter=new _.Jf0;H?this.JSC$20184_playerManager=_.Cj(H):this.JSC$20184_playerManager=null;_.Mm(1,!0)};
_.I(MTQ,aj);_.q=MTQ.prototype;_.q.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var A=[];this.renderer.impressionEndpoints.forEach(function(H){(H=_.h7(H))&&A.push(H)});
return A}};
_.q.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.q.shouldLogCounterfactualImpression=function(){var A=_.H9b();A?(this.JSC$20184_enforcementCounter.increment("POPUP"),_.Mm(3)):_.Mm(2);return A};
_.q.cancel=function(){this.resolver.promise.cancel()};
_.q.doEnqueue=function(){var A=this;_.H9b()?(this.JSC$20184_enforcementCounter.increment("POPUP"),_.Mm(3),nCB(this)):this.JSC$20184_playerManager?(this.resolver.promise.then(function(){nCB(A)}),ZpL(this.resolver,this.JSC$20184_playerManager)):_.Mm(2)};
var ZpL=function(A,H){var k=_.YE();H.getPlayerPromise().then(function(d){k.resolve(d)});
k.promise.then(function(d){d.addEventListener("onAbnormalityDetected",A.resolve);_.Rw(A.promise,function(){d.removeEventListener("onAbnormalityDetected",A.resolve)})});
A.promise.thenCatch(function(){k.promise.cancel()})},nCB=function(A){_.Mm(3);
var H={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:A.renderer}};H=_.a3.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});Promise.all(H).then(function(){fmQ();A.JSC$20184_playerManager&&A.JSC$20184_playerManager.pause()})},fmQ=function(){gr_(function(A,H){Pi3(A,H);
A===0?_.Mm(7):_.Mm(4)})};var w7L=function(A,H){this.renderer=A;this.page=H;this.resolver=_.YE()};
_.I(w7L,aj);_.q=w7L.prototype;_.q.cancel=function(){this.resolver.promise.cancel()};
_.q.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.q.isCounterfactual=function(){return!this.renderer.isVisible};
_.q.shouldLogCounterfactualImpression=function(){return!0};
_.q.doEnqueue=function(){var A=this;this.resolver.promise.then(function(){var k={popup:{mealbarPromoRenderer:A.renderer},popupType:"MEALBAR"};_.a3.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:k},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var H=_.Cj(this.page);H&&oC1(this.resolver,H)}break;default:this.resolver.resolve()}};
var oC1=function(A,H){var k=_.YE();H.getPlayerPromise().then(function(d){k.resolve(d)});
k.promise.then(function(d){d.addEventListener("onAdEnd",A.resolve);_.Rw(A.promise,function(){d.removeEventListener("onAdEnd",A.resolve)})});
A.promise.thenCatch(function(){k.promise.cancel()})};var $fV=function(A,H){this.renderer=A;this.page=H};
_.I($fV,aj);_.q=$fV.prototype;_.q.cancel=function(){this.JSC$20192_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20192_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20192_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.q.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.q.isCounterfactual=function(){return!this.renderer.isVisible};
_.q.shouldLogCounterfactualImpression=function(){return!0};
_.q.doEnqueue=function(){var A=this,H,k;((H=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(k=H.playbackUpsellDialogTriggerConditionData)==null?void 0:k.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20192_downloadedVideosCountSelectorUnsubscriber=_.dC(_.F3(),OHB,function(d,W){d>W&&(AN_(A),A.cancel())}):AN_(this)};
var AN_=function(A){var H={popup:{upsellDialogRenderer:A.renderer},popupType:"MODAL"};_.a3.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});(A=_.Cj(A.page))&&A.pause()};var pt={},HBB=(pt.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",pt.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",pt.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",pt.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",pt.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",pt.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",pt.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",pt),sTe=function(A,H){this.renderer=A;this.targetManager=
H};
_.I(sTe,aj);_.q=sTe.prototype;_.q.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20199_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20199_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20199_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.q.getCounterfactualData=function(){if(this.isCounterfactual()){var A;return(A=this.renderer.promoConfig)==null?void 0:A.impressionEndpoints}};
_.q.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.q.shouldLogCounterfactualImpression=function(){return!0};
_.q.doEnqueue=function(){var A=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20199_downloadedVideosCountSelectorUnsubscriber=_.dC(_.F3(),OHB,function(H,k){A.renderer.targetId&&H>k&&(tEQ(A.targetManager,A.renderer.targetId,kRB(A)),A.cancel())});
break;default:tEQ(this.targetManager,this.renderer.targetId,kRB(this))}};
var kRB=function(A){var H;if((H=A.renderer.suggestedPosition)==null?0:H.type)var k=HBB[A.renderer.suggestedPosition.type];k||(k="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:A.renderer},popupType:"HINT",position:k}}};var dzV=function(){this.previousPage=null},W2B;
dzV.prototype.registerPromoCommand=function(A,H){z3L(this,void 0,void 0,_.L(A.roadblock,xAV),void 0,void 0,H)};
var z3L=function(A,H,k,d,W,z,u){A.previousPage!==u&&A.pendingTooltipPromo&&A.pendingTooltipPromo.cancel();A.previousPage=u;W?(A.pendingEnforcementPromo&&A.pendingEnforcementPromo.cancel(),A.pendingEnforcementPromo=new MTQ(W,u),A.pendingEnforcementPromo.enqueue()):z?(A.pendingCommandWrapperPromo=new c9(z,u),A.pendingCommandWrapperPromo.enqueue()):d?(A.pendingRoadblockPromo&&A.pendingRoadblockPromo.cancel(),A.pendingRoadblockPromo=new $fV(d,u),A.pendingRoadblockPromo.enqueue()):H?(A.pendingMealbarPromo&&
A.pendingMealbarPromo.cancel(),A.pendingMealbarPromo=new w7L(H,u),A.pendingMealbarPromo.enqueue()):k&&(A.pendingTooltipPromo&&A.pendingTooltipPromo.cancel(),A.pendingTooltipPromo=new sTe(k,_.$f()),A.pendingTooltipPromo.enqueue())},qrB=function(){W2B||(W2B=new dzV);
return W2B};var rNQ=function(){this.horizontal=!1},u0L=function(A,H){A.horizontal=H};
rNQ.prototype.position=function(A,H,k,d){d=d===void 0?1:d;A=this.delta(A)*d+H;d=Math.max(H,k);return A>=Math.min(H,k)&&A<=d?A:k};
rNQ.prototype.axis=function(A){A=this.direction(A);return A==="up"||A==="down"?"Y":"X"};var Qf=function(A,H,k){H=H===void 0?_.AU():H;this.target=A;this.manager=H;this.touchAction=k;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Qf.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(_.fV(this.events)));for(var A=_.r(this.events),H=A.next();!H.done;H=A.next())this.listen(H.value)}};
Qf.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.fV(this.events)));for(var A=_.r(this.events),H=A.next();!H.done;H=A.next())this.unlisten(H.value)}};
Qf.prototype.listen=function(A){this.eventMap[A]&&this.target.addEventListener(A,this.eventMap[A])};
Qf.prototype.unlisten=function(A){this.eventMap[A]&&this.target.removeEventListener(A,this.eventMap[A])};var Vf=function(){rNQ.apply(this,arguments)};
_.I(Vf,rNQ);Vf.prototype.direction=function(A){var H=A.detail;A=H.deltaY;H=H.deltaX;return A&&!this.horizontal?A>0?"down":"up":H&&this.horizontal?H>0?"right":"left":"none"};
Vf.prototype.distance=function(A){return Math.abs(this.delta(A))};
Vf.prototype.delta=function(A){var H=this.direction(A),k=A.detail;A=k.deltaX;k=k.deltaY;return H==="up"||H==="down"?k||0:A||0};
Vf.prototype.velocity=function(A){var H=this.direction(A),k=A.detail;A=k.velocityX;k=k.velocityY;return Math.abs(H==="up"||H==="down"?k||0:A||0)};var EV=function(A,H,k,d,W,z){W=W===void 0?new Vf:W;z=z===void 0?_.AU():z;Qf.call(this,H,z,d);var u=this;this.element=A;this.target=H;this.config=k;this.input=W;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(B){var h=BMR(u,B);if(h){u.move(B,h);h.fade&&u.fade(B,h);var O=u.input.direction(B);h.moveAction&&h.moveAction(e3L(u,B,h),O)}};
this.onPanEnd=function(B){var h,O,T,m,J,g;return _.e(function(v){if(v.nextAddress==1){u.animationRequestId&&cancelAnimationFrame(u.animationRequestId);u.animationRequestId=void 0;h=BMR(u,B);if(!h)return v.return();O=h;T=O.triggerAction;m=O.fade;J=O.disableFinish;g=O.translateBack;var y=u.input.velocity(B),X=u.input.distance(B),D=u.threshold(h);return y>.3&&X>10||X>D?J?v.jumpTo(6):m?v.yield(xzL(u,B),6):v.yield(iBB(u,B,h),6):g?v.yield(u.translateBack(B),3):v.jumpTo(3)}v.nextAddress!=3&&T&&T();u.config.draggingClass&&
u.element.classList.remove(u.config.draggingClass);u.reset();_.EN(v)})};
A=Object.keys(k.triggers);this.directions=new Set(A);u0L(this.input,this.directions.has("right")||this.directions.has("left"))};
_.I(EV,Qf);EV.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var BMR=function(A,H){H=A.input.direction(H);return A.config.triggers[H]};
EV.prototype.move=function(A,H){var k=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var d=k.input.axis(A),W=k.input.position(A,k.config.startPosition,H.endPosition,H.moveRatio||1);k.element.style.transform="translate"+d+"("+W+"px)";k.animationRequestId=void 0}))};
var e3L=function(A,H,k){var d=k.moveRatio||1;k=Math.abs(A.config.startPosition-k.endPosition);return Math.min(A.input.distance(H)*d,k)/k};
EV.prototype.fade=function(A,H){var k=H.endOpacity;A=e3L(this,A,H);A>0&&(this.element.style.opacity=""+(((k||0)-1)*A+1))};
EV.prototype.threshold=function(A){return A.threshold?A.threshold:Math.abs(A.endPosition-this.config.startPosition)/3};
var iBB=function(A,H,k){var d,W,z,u,B,h,O;return _.e(function(T){if(T.nextAddress==1)return d=A.input.delta(H)+A.config.startPosition,W=A.input.axis(H),z=k,u=z.endPosition,B=z.transitionEndPosition,O=(h=B)!=null?h:u,T.yield(A.element.animate([{transform:"translate"+W+"("+d+"px)"},{transform:"translate"+W+"("+O+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.element.style.transform="translate"+W+"("+O+"px)";_.EN(T)})};
EV.prototype.translateBack=function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1){if(!H.element.style.transform)return W.return();k=H.input.axis(A);d=H.config.startPosition;return W.yield(H.element.animate([{transform:H.element.style.transform},{transform:"translate"+k+"("+d+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}H.element.style.transform="translate"+k+"("+d+"px)";_.EN(W)})};
var xzL=function(A,H){var k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return k=A.input.delta(H)+A.config.startPosition,d=A.input.axis(H),W=k+70,z=A.element.style.opacity===""?1:A.element.style.opacity,u.yield(A.element.animate([{transform:"translate"+d+"("+k+"px)",opacity:z},{transform:"translate"+d+"("+W+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.element.style.transform="translate"+d+"("+W+"px)";A.element.style.opacity="0";_.EN(u)})};var aG3=new _.D$("ratelimit");var h3_=function(A,H){this.playerProvider_=A;this.actionSenderElement_=H;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
h3_.prototype.reset=function(){OBM(this);this.isUserPredictedAbsent_=!1};
var OBM=function(A,H){!A.youThereData_||A.showWarningJob_||H!==void 0&&H||(fS("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.hx(),A.youThereData_,A.clientPlaybackNonce_),_.jM());_.IE.cancelJob(A.showWarningJob_);A.showWarningJob_=0;_.IE.cancelJob(A.showBlockingWarningJob_);A.showBlockingWarningJob_=0;_.IE.cancelJob(A.pausePlaybackJob_);A.pausePlaybackJob_=0;A.youThereData_=null;A.clientPlaybackNonce_=void 0;A.inYouThereFlow_=!1},TM_=function(A,H){var k,d,W;
_.e(function(z){if(z.nextAddress==1)return A.reset(),z.yield(A.playerProvider_().getPlayerPromise(),2);k=z.yieldResult;A.clientPlaybackNonce_=k.getVideoData().cpn;A.youThereData_=H.configData.youThereData;if(!A.youThereData_)return z.return();if(A.youThereData_.triggerReason&&A.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!c8B())return fS("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.hx(),A.youThereData_,A.clientPlaybackNonce_),z.return();d=A.youThereData_.promptDelaySec;W=k.getCurrentTime();
A.showWarningJob_=_.IE.addLowPriorityJob(function(){return _.e(function(u){A.showWarningJob_=0;return u.yield(R3e(A),0)})},Math.max(d-W,0)*1E3);
_.EN(z)})},R3e=function(A){var H,k,d,W,z,u;
return _.e(function(B){if(B.nextAddress==1)return B.yield(A.playerProvider_().getPlayerPromise(),2);if(B.nextAddress!=3)return H=B.yieldResult,k=H.getCurrentTime(),B.yield(mze(A),3);d=B.yieldResult;if(!d||!A.youThereData_)return B.return();if(_.b("check_user_lact_at_prompt_shown_time_on_web")&&(W=parseInt(A.youThereData_.lactThresholdMs,10),_.Z$()<W))return fS("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.hx(),A.youThereData_,A.clientPlaybackNonce_),B.return();if(A.youThereData_.playbackPauseDelayMs<=
0)return JNQ(A),B.return();!_.b("external_fullscreen")&&(z=_.S1())&&(A.ignoreFullscreenExitUserActivity_=!0,_.IE.addLowPriorityJob(function(){A.ignoreFullscreenExitUserActivity_=!1},2E3),_.CH(z));
A.youThereData_.showToastWarningPrompt&&(UV(A,A.youThereData_.showWarningActions),A.inYouThereFlow_=!0,fS("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.hx(),A.youThereData_,A.clientPlaybackNonce_,k),fS("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.hx(),A.youThereData_,A.clientPlaybackNonce_,k));u=0;A.youThereData_.blockingPromptDelayMs&&(u=A.youThereData_.blockingPromptDelayMs);A.showBlockingWarningJob_=_.IE.addLowPriorityJob(function(){return _.e(function(h){A.showBlockingWarningJob_=0;return h.yield(gAi(A),
0)})},u);
_.EN(B)})},gAi=function(A){var H,k,d;
return _.e(function(W){if(W.nextAddress==1)return W.yield(mze(A),2);H=W.yieldResult;if(!A.youThereData_)return W.return();H&&(A.youThereData_.showBlockingWarningAction&&(fS("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.hx(),A.youThereData_,A.clientPlaybackNonce_),(k=_.L(A.youThereData_.showBlockingWarningAction,_.nH))?UV(A,k.commands):UV(A,[A.youThereData_.showBlockingWarningAction]),A.inYouThereFlow_=!0),d=A.youThereData_.playbackPauseDelayMs,A.pausePlaybackJob_=_.IE.addLowPriorityJob(function(){return _.e(function(z){A.pausePlaybackJob_=
0;return z.yield(JNQ(A),0)})},d));
_.EN(W)})},JNQ=function(A){var H;
return _.e(function(k){if(k.nextAddress==1)return k.yield(mze(A),2);H=k.yieldResult;if(!A.youThereData_)return k.return();H&&(fS("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.hx(),A.youThereData_,A.clientPlaybackNonce_),UV(A,A.youThereData_.showPausedActions),A.inYouThereFlow_=!0);_.EN(k)})};
h3_.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var A=_.L(this.youThereData_.userActiveDuringFlowAction,_.nH);A?UV(this,A.commands):UV(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(fS("YOU_THERE_EVENT_TYPE_LACT_RESET",_.hx(),this.youThereData_,this.clientPlaybackNonce_),_.jM());OBM(this,!0)}bBQ(this,!1)};
var L2M=function(A){fS("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.hx(),A.youThereData_,A.clientPlaybackNonce_)},mze=function(A){var H,k;
return _.e(function(d){if(d.nextAddress==1)return d.yield(A.playerProvider_().getPlayerPromise(),2);H=d.yieldResult;k=H.getPlayerState();return d.return(k==-1||k==1||k==3)})},bBQ=function(A,H){var k;
_.e(function(d){if(d.nextAddress==1){if(A.isUserPredictedAbsent_==H)return d.jumpTo(0);A.isUserPredictedAbsent_=H;return d.yield(A.playerProvider_().getPlayerPromise(),3)}k=d.yieldResult;k.setUserEngagement(H);H&&fS("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.hx(),A.youThereData_,A.clientPlaybackNonce_);_.EN(d)})},UV=function(A,H){if(_.b("handle_service_request_actions")||_.b("kevlar_youthere_service_endpoint_actions_killswitch"))_.NT(A.actionSenderElement_,H,A.actionSenderElement_);
else{H=_.r(H);for(var k=H.next();!k.done;k=H.next())k=k.value,k.commandMetadata&&k.commandMetadata.webCommandMetadata&&k.commandMetadata.webCommandMetadata.sendPost?_.tx(A.actionSenderElement_,[k]):_.NT(A.actionSenderElement_,[k],A.actionSenderElement_)}};var pnQ=!1;var vA_={PAUSE_CHAT:18};var tPI=function(A,H){var k=_.pZ("SESSION_INDEX");this.actionToken_=A;this.commonToken_=H;this.sessionIndex_=k},lOM=function(A){var H=_.YE(),k=_.UD("payments.business.integration.bootstrap"),d=_.UD("payments.business.integration"),W=d.Style.create().withMaterialDesignStyle(),z=d.mashupMode.popup("instrument-manager");
k.asMashupMode(z).usingUserIndex(A.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(W).inStandaloneContext(d.standaloneContextAuthId.forUserId()).instrumentManager(A.actionToken_,A.commonToken_.length>0?A.commonToken_:void 0,function(u){var B=u.instrumentId;B?H.resolve(B):(B=_.UD("payments.business.integration.scenario.InstrumentManager"),H.reject(u.errorCode&&u.errorCode===B.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(u){_.V$(u);
H.reject("instrumentManagerLoadError")});
return H.promise};var Ba=function(A,H,k){this.payloadName="transactionFlowFailed";this.payload={errorType:A,serializedTransactionFlowLoggingParams:H,isUserDismiss:k===void 0?!1:k}};
_.nG("yt.ypc.shared.YpcTransactionFlowError",Ba);var l7=function(){return _.A6.apply(this,arguments)||this};
_.I(l7,_.A6);l7.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
l7.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
l7.prototype.onErrorMessageDismiss=l7.prototype.onErrorMessageDismiss;_.E([_.C({readOnly:!0,observer:"errorRendererChanged"}),_.l("design:type",Object)],l7.prototype,"errorRenderer",void 0);_.E([_.Ze("yt-live-chat-error-message-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],l7.prototype,"onErrorMessageDismiss",null);_.E([_.HW()],l7);var yNI=[l7.prototype];var jTB;var INB,YrL=function(){if(INB!==void 0)return INB;var A=document.createElement("template");_.Y(A,'\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="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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;jTB===void 0&&(jTB=document.createElement("template"));var d=jTB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return INB=A};var tX=function(){var A=_.a.apply(this,arguments)||this;A.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";A.goalDescription="";A.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";A.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";A.startButtonId="start-button";A.exampleButtonId="example-button";return A};
_.I(tX,_.a);_.q=tX.prototype;_.q.getGoalDropdownItems=function(){var A,H;return(H=_.L((A=this.data)==null?void 0:A.purchaseTargetDropdown,HUV))==null?void 0:H.dropdownItems};
_.q.getTimerDropdownItems=function(){var A,H;return(H=_.L((A=this.data)==null?void 0:A.timerDropdown,HUV))==null?void 0:H.dropdownItems};
_.q.getColorDropdownItems=function(){var A,H;return(H=_.L((A=this.data)==null?void 0:A.colorDropdown,HUV))==null?void 0:H.dropdownItems};
_.q.getDropdownItemText=function(A){var H;return(H=_.L(A,AmL))==null?void 0:H.itemLabel};
_.q.getDropdownItemValue=function(A){A=_.L(A,AmL);return(A==null?void 0:A.timeLimit)||(A==null?void 0:A.purchaseTarget)||(A==null?void 0:A.eligiblePurchaseType)};
_.q.updateFlowState=function(A){_.Ud(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:A}])};
_.q.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.q.updateGoalValue=function(A){this.goal=A.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.q.onTextValueChanged=function(A){this.goalDescription=A.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.q.updateTimerValue=function(A){this.timer=A.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.q.updateTierValue=function(A){this.tier=A.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.q.getButtonViewModel=function(A){A=(A==null?void 0:A.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var H,k=_.L((H=this.data)==null?void 0:H.startGoalButton,_.vY);return Object.assign({},k,{state:A})};
_.nP.Object.defineProperties(tX,{template:{configurable:!0,enumerable:!0,get:function(){return YrL()}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],tX.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],tX.prototype,"goal",void 0);_.E([_.C(),_.l("design:type",Object)],tX.prototype,"goalDescription",void 0);_.E([_.C(),_.l("design:type",Object)],tX.prototype,"timer",void 0);_.E([_.C(),_.l("design:type",Object)],tX.prototype,"tier",void 0);
_.E([_.C(),_.l("design:type",Object)],tX.prototype,"startButtonId",void 0);_.E([_.C(),_.l("design:type",Object)],tX.prototype,"exampleButtonId",void 0);_.E([_.h6({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],tX);_.Q(tX,"yt-creator-goal-set-up-flow-view-model",function(){return YrL()},{mode:0});var P4M;var GR_;var Nb=function(){return _.a.apply(this,arguments)||this};
_.I(Nb,_.a);Nb.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Nb.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var A=_.L(this.data.button,_.vY);A&&(A.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.nP.Object.defineProperties(Nb,{template:{configurable:!0,enumerable:!0,get:function(){if(GR_===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;P4M===void 0&&(P4M=document.createElement("template"));var d=P4M;k.call(H,d.content.cloneNode(!0),A.content.firstChild);GR_=A}A=GR_;return A}}});
_.E([_.P(_.Rh),_.l("design:type",Object)],Nb.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Nb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({selectorArgs:["data.enabledEntityKey"],selector:Mc_,observer:"onEnabledChange"}),_.l("design:type",Boolean)],Nb.prototype,"enabled",void 0);_.E([_.C(),_.l("design:type",Object)],Nb.prototype,"data",void 0);_.E([_.h6({is:"yt-disableable-button-view-model",noInjection:!0})],Nb);var F2R;var Xke;var Dz3=["transVert01","transVert02","transVert03"],SrB="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Mb=function(){var A=_.a.apply(this,arguments)||this;A.emojiManager=_.y5;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};A.reactionBuckets=[];A.noEmojiIdentifier="NO_EMOJI";return A};
_.I(Mb,_.a);_.q=Mb.prototype;_.q.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.q.desktopFountainEmojiSizePxChanged=function(){_.NH(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.q.createUserReactionAnimation=function(A){this.createEmojiAnimation(A,!0)};
_.q.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var A;((A=this.data)==null?0:A.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.kH("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.fV(this.emojiContainer.children)).forEach(function(H){H.remove()})};
_.q.detached=function(){this.cleanupFountain()};
_.q.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var A;this.reactionBuckets=_.iK.unsafeClone((A=this.emojiFountainData)==null?void 0:A.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.q.processEmojiBucket=function(A){var H=this;if(this.reactionBuckets&&!(A>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var k=this.reactionBuckets[A];this.generateEmojiAnimations(k);if(A<this.reactionBuckets.length-1){var d;if(k==null?0:(d=k.duration)==null?0:d.seconds)this.emojiBucketTimerId=setTimeout(function(){H.processEmojiBucket(A+1)},Number(k.duration.seconds)*1E3)}}};
_.q.generateEmojiAnimations=function(A){var H=this,k=this.getRandomEmojiIdFromBucketWithOverride(A);if(k&&k!==this.noEmojiIdentifier){var d=0;A.targetEps?(d=this.linearInterpolateBounded(1,20,100,12,A.emojiSizeIndex||0),this.createEmojiAnimation(k,!1,A.emojiAnimationMs,d),d=this.getEmojiDelayMsFromTargetEps(A.targetEps)):(this.createEmojiAnimation(k),d=this.getEmojiDelayMsFromDistribution(A.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){H.generateEmojiAnimations(A)},d)}};
_.q.getRandomEmojiIdFromBucketWithOverride=function(A){if(!(A&&A.reactionsData&&A.reactionsData.length&&A.totalReactions))return this.noEmojiIdentifier;for(var H=A.totalReactions,k=1,d=_.r(A.reactionsData),W=d.next();!W.done;W=d.next())W=W.value,(W.reactionWeightOverride||W.reactionWeightOverride===0)&&W.reactionCount&&(H-=W.reactionCount,k-=W.reactionWeightOverride);d=!0;k<0&&(d=!1,H=A.totalReactions,k=1);if(d&&k>0&&H===0)if(k===1){W=0;for(var z=_.r(A.reactionsData),u=z.next();!u.done;u=z.next())u=
u.value,u.reactionCount&&u.reactionCount>0&&W++;W=1/W;z=_.r(A.reactionsData);for(u=z.next();!u.done;u=z.next())u.value.reactionWeightOverride=W}else for(W=1/(1-k),z=_.r(A.reactionsData),u=z.next();!u.done;u=z.next())u=u.value,u.reactionWeightOverride&&(u.reactionWeightOverride*=W);W=Math.random();z=0;u=_.r(A.reactionsData);for(var B=u.next();!B.done;B=u.next())if(B=B.value,B.reactionCount&&(z=(B.reactionWeightOverride||B.reactionWeightOverride===0)&&d?z+B.reactionWeightOverride:z+k*B.reactionCount/
H,z>W&&(B.reactionCount--,A.totalReactions--,B=this.reactionItemToEmojiString(B),B!==this.noEmojiIdentifier)))return B;return this.noEmojiIdentifier};
_.q.reactionItemToEmojiString=function(A){if(A.unicodeEmojiId)return A.unicodeEmojiId;if(A.emoteId)return A.emoteId;if(A.videoReactionType)switch(A.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.q.createEmojiAnimation=function(A,H,k,d){H=H===void 0?!1:H;this.lastEmojiRequestedForTesting=A;var W=A.startsWith("yt-icons:"),z=_.Lk(this.emojiManager,A);if(z||W){var u=document.createElement("emoji");u.classList.add("yt-emoji-fountain-view-model");u.classList.add(Dz3[Math.floor(Math.random()*Dz3.length)]);var B=document.createElement("div");B.classList.add("yt-emoji-fountain-view-model");B.classList.add("horizontal-container");B.classList.add(SrB[Math.floor(Math.random()*SrB.length)]);H?(k=document.createElement("div"),
k.classList.add("user-reaction-bubble"),k.classList.add("yt-emoji-fountain-view-model"),B.appendChild(k)):(k&&(u.style.animationDuration=k+"ms",B.style.animationDuration=k+"ms"),d&&(u.style.width=d+"px",u.style.height=d+"px"));W?(W=document.createElement("yt-icon"),W.polymerController.icon=A,d&&(W.style.width=d+"px",W.style.height=d+"px"),A=W):A=this.emojiManager.createEmoji(z,!1);A.classList.add("yt-emoji-fountain-view-model");B.appendChild(A);u.appendChild(B);this.emojiContainer.appendChild(u);
u.addEventListener("animationend",function(){u.remove()});
var h,O;if((h=this.data)==null?0:(O=h.loggingDirectives)==null?0:O.trackingParams)H=H?_.t8(183501):_.t8(183500),nB_(this.data.loggingDirectives.trackingParams,H),_.C_Q(H);setTimeout(function(){u&&u.remove()},2E3)}};
_.q.getEmojiDelayMsFromDistribution=function(A){return Math.random()*(A||1)*1E3};
_.q.getEmojiDelayMsFromTargetEps=function(A){return Math.random()*2*(1/A)*1E3};
_.q.linearInterpolateBounded=function(A,H,k,d,W){W=Math.min(Math.max(W,A),k);return(H*(k-W)+d*(W-A))/(k-A)};
Mb.prototype.onEmojiFountainDataEntityUpdate=Mb.prototype.onEmojiFountainDataEntityUpdate;Mb.prototype.desktopFountainEmojiSizePxChanged=Mb.prototype.desktopFountainEmojiSizePxChanged;Mb.prototype.isActiveChanged=Mb.prototype.isActiveChanged;_.E([_.C(),_.l("design:type",_.bV)],Mb.prototype,"emojiManager",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],Mb.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Mb.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Mb.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(A,H){return _.Mw(A.entities,"emojiFountainDataEntity",H)}}),
_.l("design:type",Object)],Mb.prototype,"emojiFountainData",void 0);_.E([_.C(),_.l("design:type",Boolean)],Mb.prototype,"isActive",void 0);_.E([_.fF("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mb.prototype,"isActiveChanged",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Mb.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",String)],Mb.prototype,"lastEmojiRequestedForTesting",void 0);
_.E([_.C({value:function(){return _.H5("desktop_fountain_emoji_size_px",20)}}),
_.l("design:type",Number)],Mb.prototype,"desktopFountainEmojiSizePx",void 0);_.E([_.fF("desktopFountainEmojiSizePx"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mb.prototype,"desktopFountainEmojiSizePxChanged",null);_.E([_.ol("#emoji-container"),_.l("design:type",HTMLElement)],Mb.prototype,"emojiContainer",void 0);
_.E([_.fF("emojiFountainData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mb.prototype,"onEmojiFountainDataEntityUpdate",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Mb);
_.Q(Mb,"yt-emoji-fountain-view-model",function(){if(Xke===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;F2R===void 0&&(F2R=document.createElement("template"));var d=F2R;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Xke=A}A=Xke;return A},{mode:0});var C4B;var K2I;var nt=function(){return _.a.apply(this,arguments)||this};
_.I(nt,_.a);nt.prototype.onChoiceChanged=function(){this.data&&_.NH(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
nt.prototype.onChoiceChanged=nt.prototype.onChoiceChanged;_.E([_.C(),_.l("design:type",Object)],nt.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nt.prototype,"onChoiceChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],nt);
_.Q(nt,"yt-live-chat-banner-poll-choice",function(){if(K2I===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;C4B===void 0&&(C4B=document.createElement("template"));var d=C4B;k.call(H,d.content.cloneNode(!0),A.content.firstChild);K2I=A}A=K2I;return A},{mode:0});var aNR;var cNe;var Zn=function(){var A=_.a.apply(this,arguments)||this;A.modern=_.b("web_button_rework_with_live");A.small=!1;return A};
_.I(Zn,_.a);Zn.prototype.computeIsSmall=function(){var A;return((A=this.buttonOverrides)==null?void 0:A.size)==="S"};
Zn.prototype.computeId=function(){return this.data&&this.data.targetId};
_.E([_.P(_.TB.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],Zn.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",String)],Zn.prototype,"id",void 0);_.E([_.C(),_.l("design:type",Object)],Zn.prototype,"buttonOverrides",void 0);_.E([_.C(),_.l("design:type",Object)],Zn.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zn.prototype,"modern",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.l("design:type",Object)],Zn.prototype,"small",void 0);_.E([_.O6({disableElementRegistration:!0,is:"yt-live-chat-button"})],Zn);
_.Q(Zn,"yt-live-chat-button",function(){if(cNe===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;aNR===void 0&&(aNR=document.createElement("template"));var d=aNR;k.call(H,d.content.cloneNode(!0),A.content.firstChild);cNe=A}A=cNe;return A},{mode:0});var pkG;var QTG;var ft=function(){var A=_.a.apply(this,arguments)||this;A.inCollapsedBanner=!1;A.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};A.questionButtonOverrides={style:"mono",type:"filled"};return A};
_.I(ft,_.a);_.q=ft.prototype;_.q.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]]"}}}}}};
_.q.onContextMenuButtonClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
_.q.onYtRendererstamperFinished=function(){this.menuButton=_.Va(this.hostElement).querySelector("#menu-button")};
_.q.dataChanged=function(){var A,H;if((H=_.L((A=this.data)==null?void 0:A.overflowMenuButton,_.gN))==null?0:H.command)this.data.contextMenuEndpoint=_.L(this.data.overflowMenuButton,_.gN).command};
_.q.onButtonClick=function(){var A,H=_.L((A=this.data)==null?void 0:A.askQuestionButton,_.gN);if(H){if(H.trackingParams&&(A=_.db(H.trackingParams))){var k=_.hx();k&&_.P0(k,A)}_.Ed(this.hostElement,"innertube-command",H.command)}};
ft.prototype.onYtRendererstamperFinished=ft.prototype.onYtRendererstamperFinished;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],ft.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],ft.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C({observer:"dataChanged"}),_.l("design:type",Object)],ft.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ft.prototype,"inCollapsedBanner",void 0);_.E([_.C(),_.l("design:type",Object)],ft.prototype,"buttonOverrides",void 0);_.E([_.C(),_.l("design:type",Object)],ft.prototype,"questionButtonOverrides",void 0);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ft.prototype,"onYtRendererstamperFinished",null);
_.E([_.O6({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],ft);
_.Q(ft,"yt-live-chat-call-for-questions-renderer",function(){if(QTG===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;pkG===void 0&&(pkG=document.createElement("template"));var d=pkG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);QTG=A}A=QTG;return A},{mode:0});var Vxe={};Vxe.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 A=this;window.requestAnimationFrame(function(){A.restoreFocusNode_||(A.restoreFocusNode_=document.activeElement);var H=_.zZi(A.hostElement);H.length&&H[H.length-1].focus()})},
isAttachedChanged_:function(A,H){A?this.focusChild_():H&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(A){this.hidden||_.F_(A).indexOf(this.hostElement)!==-1||(A.stopPropagation(),this.focusChild_())}};var EA_;var UzQ;var wZ=function(){return _.a.apply(this,arguments)||this};
_.I(wZ,_.a);wZ.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
wZ.prototype.onClick=function(A){A.target!==this.confirmButton&&A.target!==this.cancelButton&&(this.hidden=!0)};
_.E([_.ol("#confirm_button"),_.l("design:type",Object)],wZ.prototype,"confirmButton",void 0);_.E([_.ol("#cancel_button"),_.l("design:type",Object)],wZ.prototype,"cancelButton",void 0);_.E([_.C(),_.l("design:type",lNQ)],wZ.prototype,"data",void 0);_.E([_.C({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],wZ.prototype,"hidden",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(Vxe.YtLiveChatDialogBehavior),_.l("design:type",Object)],wZ.prototype,"ytLiveChatDialogBehavior",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],wZ);
var lNQ=_.Q(wZ,"yt-live-chat-dialog-renderer",function(){if(UzQ===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;EA_===void 0&&(EA_=document.createElement("template"));var d=EA_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);UzQ=A}A=UzQ;return A},{mode:0});var tx_;var NMI,MxB=function(){if(NMI!==void 0)return NMI;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;tx_===void 0&&(tx_=document.createElement("template"));var d=tx_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);return NMI=A};var nAQ;var ZB_;var oj=function(){var A=_.a.apply(this,arguments)||this;A.icon=null;return A};
_.I(oj,_.a);oj.prototype.dismiss=function(){_.Ed(this.hostElement,"yt-live-chat-error-message-dismiss")};
oj.prototype.computeIcon=function(A){return A&&A.iconType?"yt-icons:"+A.iconType.toLowerCase():"yt-icons:close"};
_.E([_.C(),_.l("design:type",Object)],oj.prototype,"data",void 0);_.E([_.C({computed:"computeIcon(data.icon)"}),_.l("design:type",Object)],oj.prototype,"icon",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],oj);
_.Q(oj,"yt-live-chat-error-message-renderer",function(){if(ZB_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;nAQ===void 0&&(nAQ=document.createElement("template"));var d=nAQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);ZB_=A}A=ZB_;return A},{mode:0});var fN1;var wkL;var $a=function(){var A=_.a.apply(this,arguments)||this;A.tooltip=null;A.data=null;A.id="";A.active=!1;A.icon="";A.disabled=!1;A.showTooltip=!1;A.useToggledActiveState=!0;A.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return A};
_.I($a,_.a);_.q=$a.prototype;
_.q.dataChanged=function(){var A;((A=this.data)==null?0:A.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,_.t1)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var H;if((H=this.data)==null?0:H.disabled)this.disabled=!0};
_.q.computeId=function(A){return A};
_.q.computeIcon=function(A,H){if(!A)return"";if(this.useToggledActiveState)return"yt-icons:"+A.toLowerCase();var k,d;return H&&((k=this.data)==null?0:(d=k.toggledIcon)==null?0:d.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+A.toLowerCase()};
_.q.logPDGEntryPoint=function(){_.njQ(_.tr("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")};
_.q.immediatelyShowTooltip=function(){var A=_.Va(this.hostElement).querySelector("#tooltip");A.animationDelay=0;A.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};A.show()};
_.q.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.q.onClick=function(A){var H;((H=this.data)==null?0:H.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(),A.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Ed(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.q.computeShowTooltip=function(A,H){return!!(A&&A.tooltip&&H)};
_.q.maybeUpdateTooltipText=function(){var A=this,H;if((H=this.data)==null?0:H.tooltip){var k=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.t1)(A.tooltip).textContent=k},250)}};
_.q.handleLiveChatActions=function(A){var H=this;A.length&&(this.id!=="creator"&&this.id!=="product-picker"||A.forEach(function(k){(k=H.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",k))&&k.durationSec===k.fullDurationSec&&H.startBubble(H.colorFromDecimal(k.startBackgroundColor))}))};
_.q.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.q.startBubble=function(A){_.NH(this.hostElement,{"--yt-live-chat-monetization-button-glow":A});this.hostElement.setAttribute("bubble","")};
_.q.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.q.colorFromDecimal=function(A){typeof A==="string"&&(A=Number(A));return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
$a.prototype.onAnimationEnd=$a.prototype.onAnimationEnd;$a.prototype.disabledChanged=$a.prototype.disabledChanged;$a.prototype.dataChanged=$a.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],$a.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.TB.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],$a.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$a.prototype,"data",void 0);_.E([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",Object)],$a.prototype,"id",void 0);_.E([_.C({notify:!0,reflectToAttribute:!0}),_.l("design:type",Object)],$a.prototype,"active",void 0);
_.E([_.C({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.l("design:type",Object)],$a.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$a.prototype,"disabled",void 0);_.E([_.C({computed:"computeShowTooltip(data, disabled)"}),_.l("design:type",Object)],$a.prototype,"showTooltip",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$a.prototype,"useToggledActiveState",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$a.prototype,"dataChanged",null);_.E([_.fF("disabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$a.prototype,"disabledChanged",null);_.E([_.Ze("animationend"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],$a.prototype,"onAnimationEnd",null);
_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],$a);
_.Q($a,"yt-live-chat-icon-toggle-button-renderer",function(){if(wkL===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;fN1===void 0&&(fN1=document.createElement("template"));var d=fN1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);wkL=A}A=wkL;return A},{mode:0});var oAL;var $z1;var AR=function(){return _.a.apply(this,arguments)||this};
_.I(AR,_.a);AR.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.C(),_.l("design:type",Object)],AR.prototype,"data",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.O6({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],AR);
_.Q(AR,"yt-live-chat-message-input-prompt-header-renderer",function(){if($z1===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;oAL===void 0&&(oAL=document.createElement("template"));var d=oAL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);$z1=A}A=$z1;return A},{mode:0});var AIM;var H7_;var su_;var k7L;var dhR;var WXG;var zBL=function(){return _.a.apply(this,arguments)||this};
_.I(zBL,_.a);_.E([_.C(),_.l("design:type",Object)],zBL.prototype,"data",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],zBL);
_.Q(zBL,"yt-live-chat-message-subtext-renderer",function(){if(WXG===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;dhR===void 0&&(dhR=document.createElement("template"));var d=dhR;k.call(H,d.content.cloneNode(!0),A.content.firstChild);WXG=A}A=WXG;return A},{mode:0});var HC=function(){var A=_.a.apply(this,arguments)||this;A.subtextOnBottom=!1;A.buttonOverrides={style:"mono",type:"tonal"};return A};
_.I(HC,_.a);HC.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],HC.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],HC.prototype,"subtextOnBottom",void 0);_.E([_.C(),_.l("design:type",Object)],HC.prototype,"buttonOverrides",void 0);
_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],HC);
_.Q(HC,"yt-live-chat-message-renderer",function(){if(k7L===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;su_===void 0&&(su_=document.createElement("template"));var d=su_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);k7L=A}A=k7L;return A},{mode:0});var qnV;var rI3;var sT=function(){var A=_.a.apply(this,arguments)||this;A.isRemovable=!1;A.hasPrefilledText=!1;A.isInputDirty=!1;A.overCharacterLimit=!1;A.underCharacterLimit=!1;A.showErrorMessage=!1;return A};
_.I(sT,_.a);_.q=sT.prototype;_.q.computeId=function(){return this.data.id};
_.q.computeInputData=function(){return this.data.inputData};
_.q.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.q.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.q.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.q.getLiveChatRichMessageInput=function(){return _.Va(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.q.clearInput=function(){_.Va(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.q.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.q.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.q.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.q.handleTextInputCharCountChanged=function(A){A=A.detail&&A.detail.characterCount;A!==void 0&&(this.characterCount=A,A!==0&&(this.isInputDirty=!0))};
_.q.onInputFocusOut=function(){this.isInputDirty=!0};
_.q.onClickCloseButton=function(){_.Ed(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
sT.prototype.handleTextInputCharCountChanged=sT.prototype.handleTextInputCharCountChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],sT.prototype,"data",void 0);_.E([_.C({computed:"computeId(data.id)"}),_.l("design:type",String)],sT.prototype,"id",void 0);_.E([_.C({computed:"computeInputData(data.inputData)"}),_.l("design:type",Object)],sT.prototype,"inputData",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.l("design:type",Object)],sT.prototype,"isRemovable",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.l("design:type",Object)],sT.prototype,"hasPrefilledText",void 0);_.E([_.C({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.l("design:type",Number)],sT.prototype,"charactersRemaining",void 0);
_.E([_.C(),_.l("design:type",Number)],sT.prototype,"characterCount",void 0);_.E([_.C(),_.l("design:type",Object)],sT.prototype,"isInputDirty",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.l("design:type",Object)],sT.prototype,"overCharacterLimit",void 0);_.E([_.C({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.l("design:type",Object)],sT.prototype,"underCharacterLimit",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.l("design:type",Object)],sT.prototype,"showErrorMessage",void 0);_.E([_.Ze("yt-live-chat-text-input-field-renderer-character-count-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],sT.prototype,"handleTextInputCharCountChanged",null);
_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],sT);
_.Q(sT,"yt-live-chat-poll-editor-input",function(){if(rI3===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;qnV===void 0&&(qnV=document.createElement("template"));var d=qnV;k.call(H,d.content.cloneNode(!0),A.content.firstChild);rI3=A}A=rI3;return A},{mode:0});var u6B;var BzV;var eBL={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},kS=function(){var A=_.a.apply(this,arguments)||this;A.modern=_.b("web_button_rework_with_live");A.closeButtonOverrides={iconPosition:"icon-only"};A.startButtonOverrides={style:"mono",type:"filled"};A.addOptionButtonOverrides={style:"mono",type:"text"};return A};
_.I(kS,_.a);_.q=kS.prototype;
_.q.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"}}}}};
_.q.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var A;_.L((A=this.data)==null?void 0:A.startButton,_.gN)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.q.computeId=function(){return this.data&&this.data.id||""};
_.q.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.q.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.q.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.q.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.q.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var A=0;A<this.pollEditorInfoWithDefaults.minPollOptions;A++)this.addPollOptionData()};
_.q.getIsValidPoll=function(){var A=this;if(!this.pollEditorInfoWithDefaults)return!1;var H=this.pollEditorInfoWithDefaults,k=H.minPollOptionChars,d=H.maxPollOptionChars,W=H.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>H.maxPollQuestionChars)return!1;H=_.Va(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(H).every(function(z,u){z=z.characterCount;!z&&W[u]&&(z=A.ytRendererBehavior.getSimpleString(W[u]).length);return z!==void 0&&z>=k&&z<=d})};
_.q.isValidPollChanged=function(){var A;_.L((A=this.data)==null?void 0:A.startButton,_.gN)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.q.addPollOptionData=function(){var A=this.pollEditorInfoWithDefaults,H=A.maxPollOptionChars,k=A.optionPlaceholderText,d=A.customOptionPlaceholderText,W=A.pollOptionData;this.currentNumPollOptions>=A.maxPollOptions||(A={liveChatPollOptionInput:{inputData:{placeholder:d[this.currentNumPollOptions]||k,maxCharacterLimit:H},maxCharacterLimit:H,minCharacterLimit:A.minPollOptionChars,hasPrefilledText:!!d[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=A.minPollOptions}},W.charCountErrorText&&
(A.liveChatPollOptionInput.charCountErrorText=W.charCountErrorText),W.charsRemainingAltLabel&&(A.liveChatPollOptionInput.charsRemainingAltLabel=W.charsRemainingAltLabel),W.removeOptionAltText&&(A.liveChatPollOptionInput.removeOptionAltText=W.removeOptionAltText),this.push("pollOptionsData",A),W=Array.from(_.Va(_.Va(this.hostElement).querySelector("#poll-options")).children),W.forEach(function(z,u){z.polymerController.set("data.id",u)}),_.Va(W[W.length-1]).querySelector("#input").focus())};
_.q.getPollOptionInputValues=function(){var A=this,H=[],k=_.Va(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),d=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(k).forEach(function(W,z){var u=null;W=W.getLiveChatRichMessageInput();var B;(W==null?0:(B=W.textSegments)==null?0:B.length)?u=_.gH(W):d[z]&&(u=A.formattedStringToLiveChatRichMessageInput(d[z]));H.push(u)});
return H};
_.q.requestCreateAndStartPoll=function(A){var H=this.getPollOptionInputValues();if(!H.some(function(d){return!d})){H={optionText:H};
var k=_.Va(_.Va(this.hostElement).querySelector("#poll-question")).firstChild;k&&k.liveChatRichMessageInput&&(H.questionText=_.gH(k.liveChatRichMessageInput));_.tx(this.hostElement,[A,H])}};
_.q.selectedChanged=function(){if(this.selected){var A=_.Va(_.Va(this.hostElement).querySelector("#start-button")).firstElementChild;if(A){var H;(H=_.Va(A).querySelector("#button")||_.EJ(A).querySelector("button"))==null||H.focus()}}};
_.q.handleTextInputChanged=function(A){var H;((H=A.target)==null?void 0:H.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=A.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.q.handleStartButtonAction=function(A){A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),(A=A.detail.args[1])&&this.requestCreateAndStartPoll(A))};
_.q.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.q.handleServiceRequestCompleted=function(A){this.createPollRequestInFlight=!1;(A=A.detail&&A.detail.data)&&A.success&&(_.Ed(this.hostElement,"picker-cancelled"),_.Ud(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.q.onCloseClick=function(){_.Ed(this.hostElement,"picker-cancelled");_.Ud(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.q.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.q.handlePollEditorInputClosed=function(A){var H=this.pollOptionsData.findIndex(function(k){return k.liveChatPollOptionInput.id===A.detail.id});
this.splice("pollOptionsData",H,1);this.isValidPoll=this.getIsValidPoll()};
_.q.onPickerCancelled=function(){this.reset()};
_.q.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var A=_.Va(_.Va(this.hostElement).querySelector("#poll-question")).firstChild;A&&A.setLiveChatRichMessageInput(null);if(A=_.Va(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){A=_.r(Array.from(A));for(var H=A.next();!H.done;H=A.next())H.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.q.formattedStringToLiveChatRichMessageInput=function(A){return A.simpleText?{text_segments:[A.simpleText]}:{text_segments:A.runs}};
_.nP.Object.defineProperties(kS.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(eBL,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
kS.prototype.onPickerCancelled=kS.prototype.onPickerCancelled;kS.prototype.handlePollEditorInputClosed=kS.prototype.handlePollEditorInputClosed;kS.prototype.handleServiceRequestCompleted=kS.prototype.handleServiceRequestCompleted;kS.prototype.handleServiceRequestSent=kS.prototype.handleServiceRequestSent;kS.prototype.handleTextInputChanged=kS.prototype.handleTextInputChanged;kS.prototype.selectedChanged=kS.prototype.selectedChanged;kS.prototype.isValidPollChanged=kS.prototype.isValidPollChanged;
kS.prototype.shouldInitializePollChanged=kS.prototype.shouldInitializePollChanged;kS.prototype.dataChanged=kS.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],kS.prototype,"modern",void 0);
_.E([_.C(),_.l("design:type",Object)],kS.prototype,"closeButtonOverrides",void 0);_.E([_.C(),_.l("design:type",Object)],kS.prototype,"startButtonOverrides",void 0);_.E([_.C(),_.l("design:type",Object)],kS.prototype,"addOptionButtonOverrides",void 0);_.E([_.C({computed:"computeId(data.id)",reflectToAttribute:!0}),_.l("design:type",String)],kS.prototype,"id",void 0);_.E([_.C({value:function(){return[]}}),
_.l("design:type",Array)],kS.prototype,"pollOptionsData",void 0);_.E([_.G("pollEditorInfoWithDefaults"),_.l("design:type",Object),_.l("design:paramtypes",[])],kS.prototype,"pollQuestionData",null);_.E([_.C({value:0}),_.l("design:type",Number)],kS.prototype,"pollQuestionCharacterCount",void 0);_.E([_.G("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.l("design:type",Object),_.l("design:paramtypes",[])],kS.prototype,"pollQuestionCharactersRemaining",null);
_.E([_.C({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.l("design:type",Boolean)],kS.prototype,"overQuestionCharacterLimit",void 0);_.E([_.G("data.pollEditorInfo"),_.l("design:type",Object),_.l("design:paramtypes",[])],kS.prototype,"pollEditorInfoWithDefaults",null);_.E([_.C({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.l("design:type",Number)],kS.prototype,"currentNumPollOptions",void 0);
_.E([_.C({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.l("design:type",Boolean)],kS.prototype,"hasMaxNumPollOptions",void 0);_.E([_.G("pollEditorInfoWithDefaults","pollOptionsData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],kS.prototype,"shouldInitializePoll",null);_.E([_.C(),_.l("design:type",Object)],kS.prototype,"isValidPoll",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],kS.prototype,"createPollRequestInFlight",void 0);_.E([_.C(),_.l("design:type",Object)],kS.prototype,"selected",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.l("design:type",Boolean)],kS.prototype,"showQuestionErrorMessage",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kS.prototype,"dataChanged",null);_.E([_.fF("shouldInitializePoll"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kS.prototype,"shouldInitializePollChanged",null);_.E([_.fF("isValidPoll"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kS.prototype,"isValidPollChanged",null);
_.E([_.fF("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kS.prototype,"selectedChanged",null);_.E([_.Ze("yt-live-chat-text-input-field-renderer-character-count-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],kS.prototype,"handleTextInputChanged",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kS.prototype,"handleServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],kS.prototype,"handleServiceRequestCompleted",null);
_.E([_.Ze("yt-live-chat-poll-editor-input-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],kS.prototype,"handlePollEditorInputClosed",null);_.E([_.Ze("picker-cancelled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kS.prototype,"onPickerCancelled",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],kS);
_.Q(kS,"yt-live-chat-poll-editor-panel-renderer",function(){if(BzV===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;u6B===void 0&&(u6B=document.createElement("template"));var d=u6B;k.call(H,d.content.cloneNode(!0),A.content.firstChild);BzV=A}A=BzV;return A},{mode:0});var xhe;var i7_;var dP=function(){return _.a.apply(this,arguments)||this};
_.I(dP,_.a);dP.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
dP.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.nP.Object.defineProperties(dP.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var A,H;return(A=this.data)==null?void 0:(H=A.title)==null?void 0:H.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var A;return _.h7((A=this.data)==null?void 0:A.onTapCommand)}}});
_.E([_.P(_.MY.YtEndpointBehavior),_.l("design:type",Object)],dP.prototype,"ytEndpointBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],dP.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],dP.prototype,"itemId",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dP.prototype,"hasPromotion",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],dP.prototype,"innertubeCommand",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],dP);
_.Q(dP,"yt-live-chat-product-picker-panel-item-view-model",function(){if(i7_===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;xhe===void 0&&(xhe=document.createElement("template"));var d=xhe;k.call(H,d.content.cloneNode(!0),A.content.firstChild);i7_=A}A=i7_;return A},{mode:0});var hBB;var O73;var WC=function(){var A=_.a.apply(this,arguments)||this;A.id="product-picker";A.selected=!1;A.closeButtonId="close-button";A.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return A};
_.I(WC,_.a);_.q=WC.prototype;_.q.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.q.observeSelected=function(){this.selected&&this.hostElement.focus();var A=_.Va(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");A.length&&A[0].focus()};
_.q.onCloseBuyFlow=function(){_.Ed(this.hostElement,"picker-cancelled")};
_.q.onCloseClick=function(){_.Ed(this.hostElement,"picker-cancelled");var A;((A=this.data)==null?0:A.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.L(this.data.closeButton,_.vY))};
_.q.onCloseEngageWithAudienceEditorPanels=function(){_.Ed(this.hostElement,"picker-cancelled")};
WC.prototype.observeSelected=WC.prototype.observeSelected;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],WC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],WC.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],WC.prototype,"id",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],WC.prototype,"selected",void 0);_.E([_.C(),_.l("design:type",Object)],WC.prototype,"closeButtonId",void 0);_.E([_.fF("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WC.prototype,"observeSelected",null);
_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],WC);
_.Q(WC,"yt-live-chat-product-picker-panel-view-model",function(){if(O73===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;hBB===void 0&&(hBB=document.createElement("template"));var d=hBB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);O73=A}A=O73;return A},{mode:0});var RBe;var TzL;var z3=function(){var A=_.a.apply(this,arguments)||this;A.iconId="";A.icon="";A.disabled=!1;A.systemIcons=_.b("kevlar_system_icons");return A};
_.I(z3,_.a);_.q=z3.prototype;_.q.computeIconId=function(A){return A&&A.icon&&A.icon.iconType?A.icon.iconType.toLowerCase():""};
_.q.computeIcon=function(A){return A&&A.icon&&A.icon.iconType?(A=A.icon.iconType.toLowerCase(),(A.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+A):""};
_.q.computeDisabled=function(A){return!!A};
_.q.computeCommand=function(A,H){return H?void 0:A};
_.q.computeTooltip=function(A,H){return H&&A?A:""};
_.q.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.nP.Object.defineProperties(z3.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var A="",H,k,d;if((H=this.data)==null?0:(k=H.text)==null?0:(d=k.runs)==null?0:d.length)A=this.data.text.runs[0].text||"";else{var W,z;if((W=this.data)==null?0:(z=W.text)==null?0:z.simpleText)A=this.data.text.simpleText}var u,B,h;if((u=this.data)==null?0:(B=u.subtext)==null?0:(h=B.runs)==null?0:h.length)A&&(A+=". "),A+=this.data.subtext.runs[0].text||"";else{var O,T;if((O=this.data)==null?0:(T=O.subtext)==
null?0:T.simpleText)A&&(A+=". "),A+=this.data.subtext.simpleText}return A}}});
_.E([_.P(_.MY.YtEndpointBehavior),_.l("design:type",Object)],z3.prototype,"ytEndpointBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],z3.prototype,"data",void 0);_.E([_.C({computed:"computeIconId(data)",reflectToAttribute:!0}),_.l("design:type",Object)],z3.prototype,"iconId",void 0);
_.E([_.C({computed:"computeIcon(data)",reflectToAttribute:!0}),_.l("design:type",Object)],z3.prototype,"icon",void 0);_.E([_.C({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.l("design:type",Object)],z3.prototype,"disabled",void 0);_.E([_.C({computed:"computeCommand(data.command, disabled)"}),_.l("design:type",Object)],z3.prototype,"command",void 0);_.E([_.C({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.l("design:type",String)],z3.prototype,"tooltip",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],z3.prototype,"systemIcons",void 0);_.E([_.G("data.text","data.subtext"),_.C(),_.l("design:type",String),_.l("design:paramtypes",[])],z3.prototype,"ariaLabel",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],z3);
_.Q(z3,"yt-live-chat-product-button-renderer",function(){if(TzL===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;RBe===void 0&&(RBe=document.createElement("template"));var d=RBe;k.call(H,d.content.cloneNode(!0),A.content.firstChild);TzL=A}A=TzL;return A},{mode:0});var mhB;var JIe;var qd=function(){var A=_.a.apply(this,arguments)||this;A.selected=!1;A.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 A};
_.I(qd,_.a);_.q=qd.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.computeId=function(A){return A.id||""};
_.q.onCloseClick=function(){_.Ed(this.hostElement,"picker-cancelled")};
_.q.observeSelected=function(){this.selected&&this.hostElement.focus();var A=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");A.length&&A[0].focus()};
_.q.onCloseBuyFlow=function(){_.Ed(this.hostElement,"picker-cancelled")};
_.q.onCloseEngageWithAudienceEditorPanels=function(){_.Ed(this.hostElement,"picker-cancelled")};
qd.prototype.observeSelected=qd.prototype.observeSelected;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],qd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],qd.prototype,"data",void 0);
_.E([_.C({computed:"computeId(data)",reflectToAttribute:!0}),_.l("design:type",String)],qd.prototype,"id",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],qd.prototype,"selected",void 0);_.E([_.fF("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qd.prototype,"observeSelected",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],qd);
_.Q(qd,"yt-live-chat-product-picker-renderer",function(){if(JIe===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;mhB===void 0&&(mhB=document.createElement("template"));var d=mhB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);JIe=A}A=JIe;return A},{mode:0});var g_G;var b7i;var LXL;var v_3;var rP=function(){return _.a.apply(this,arguments)||this};
_.I(rP,_.a);rP.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()};
rP.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
rP.prototype.created=function(){this.ids={background:l_(),maskOne:l_(),maskTwo:l_(),gradient:l_(),largeBackground:l_(),largeGradientOne:l_(),largeGradientTwo:l_(),largeGradientPath:l_()}};
rP.prototype.maybeLoadAnimationBackground=rP.prototype.maybeLoadAnimationBackground;_.E([_.C({value:!1}),_.l("design:type",Boolean)],rP.prototype,"useLargeBackground",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],rP.prototype,"useAnimationBackground",void 0);_.E([_.C({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.l("design:type",Boolean)],rP.prototype,"useRegularBackground",void 0);
_.E([_.C(),_.l("design:type",Object)],rP.prototype,"ids",void 0);_.E([_.C(),_.l("design:type",Object)],rP.prototype,"lottieAnimation",void 0);_.E([_.ol("#animation-background"),_.l("design:type",HTMLDivElement)],rP.prototype,"animationBackground",void 0);_.E([_.fF("useAnimationBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rP.prototype,"maybeLoadAnimationBackground",null);
_.E([_.h6({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],rP);
_.Q(rP,"yt-live-interactivity-component-background",function(){if(v_3===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;LXL===void 0&&(LXL=document.createElement("template"));var d=LXL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);v_3=A}A=v_3;return A},{mode:0});var uj=function(){var A=_.a.apply(this,arguments)||this;A.characterCount=0;A.showInputErrorMessage=!1;A.startQnaRequestInFlight=!1;A.modern=_.b("web_button_rework_with_live");A.buttonOverrides={style:"mono",type:"filled"};A.closeButtonOverrides={iconPosition:"icon-only"};A.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return A};
_.I(uj,_.a);_.q=uj.prototype;
_.q.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]]"}}}}}};
_.q.onCharacterCountChanged=function(A){var H,k,d,W,z=(k=_.L(this==null?void 0:(H=this.data)==null?void 0:H.creatorCallForQuestions,G8G))==null?void 0:(d=k.inputField)==null?void 0:(W=d.liveChatTextInputFieldRenderer)==null?void 0:W.maxCharacterLimit,u,B;z!=null&&(A==null?void 0:(u=A.detail)==null?void 0:u.characterCount)!=null&&_.L(this==null?void 0:(B=this.data)==null?void 0:B.startButton,_.gN)&&(H=A.detail.characterCount>z,this.set("data.startButton.buttonRenderer.isDisabled",A.detail.characterCount===
0||H),this.showInputErrorMessage=H)};
_.q.onCloseClick=function(){_.Ed(this.hostElement,"picker-cancelled");_.Ud(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.q.onPickerCancelled=function(){var A=_.Va(this.hostElement).querySelector("#qna-creator-text-input-field");A&&A.setLiveChatRichMessageInput(null)};
_.q.handleOpenQnaStartPanel=function(){var A=_.Va(this.hostElement).querySelector("#qna-creator-text-input-field");A&&A.focus()};
_.q.handleStartButtonAction=function(A){var H=this;if(A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),A=A.detail.args[1])){var k=_.Va(this.hostElement).querySelector("#qna-creator-text-input-field"),d;(k==null?0:(d=k.liveChatRichMessageInput)==null?0:d.textSegments)&&k.liveChatRichMessageInput.textSegments.length!==0&&(d={rich_message:_.gH(k.liveChatRichMessageInput)},_.tx(this.hostElement,[A,d]).then(function(){_.Ed(H.hostElement,"picker-cancelled")}))}};
_.q.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.q.handleServiceRequestCompleted=function(A){var H;A=A==null?void 0:(H=A.detail)==null?void 0:H.data;(A==null?0:A.actions)&&A.actions.length>0?this.startQnaRequestInFlight=!1:_.Ud(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.q.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
uj.prototype.handleServiceRequestError=uj.prototype.handleServiceRequestError;uj.prototype.handleServiceRequestCompleted=uj.prototype.handleServiceRequestCompleted;uj.prototype.handleServiceRequestSent=uj.prototype.handleServiceRequestSent;uj.prototype.onPickerCancelled=uj.prototype.onPickerCancelled;uj.prototype.onCharacterCountChanged=uj.prototype.onCharacterCountChanged;_.E([_.C(),_.l("design:type",Object)],uj.prototype,"characterCount",void 0);
_.E([_.C(),_.l("design:type",Object)],uj.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],uj.prototype,"showInputErrorMessage",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],uj.prototype,"startQnaRequestInFlight",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],uj.prototype,"modern",void 0);_.E([_.C(),_.l("design:type",Object)],uj.prototype,"buttonOverrides",void 0);
_.E([_.C(),_.l("design:type",Object)],uj.prototype,"closeButtonOverrides",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],uj.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.P(_.j0.YtLiveChatItemBehavior),_.l("design:type",_.Ig)],uj.prototype,"ytLiveChatItemBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],uj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.Ze("yt-live-chat-text-input-field-renderer-character-count-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],uj.prototype,"onCharacterCountChanged",null);_.E([_.Ze("picker-cancelled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uj.prototype,"onPickerCancelled",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uj.prototype,"handleServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],uj.prototype,"handleServiceRequestCompleted",null);
_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],uj.prototype,"handleServiceRequestError",null);_.E([_.O6({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],uj);
_.Q(uj,"yt-live-chat-qna-start-panel-renderer",function(){if(b7i===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;g_G===void 0&&(g_G=document.createElement("template"));var d=g_G;k.call(H,d.content.cloneNode(!0),A.content.firstChild);b7i=A}A=b7i;return A},{mode:0});var yIL;var juB;var BC=function(){return _.a.apply(this,arguments)||this};
_.I(BC,_.a);BC.prototype.dismiss=function(){_.Ed(this.hostElement,"yt-live-chat-error-message-dismiss")};
BC.prototype.edit=function(){_.Ed(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.E([_.C(),_.l("design:type",Object)],BC.prototype,"data",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],BC);
_.Q(BC,"yt-live-chat-text-actions-error-message-renderer",function(){if(juB===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;yIL===void 0&&(yIL=document.createElement("template"));var d=yIL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);juB=A}A=juB;return A},{mode:0});var IX3;var YnM;var PdR;var G7I;var eQ=function(){var A=_.a.apply(this,arguments)||this;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.newnessDotEligible=!1;return A};
_.I(eQ,_.a);eQ.prototype.sendReaction=function(){var A,H,k=((A=this.data)==null?void 0:A.emojiId)||((H=this.data)==null?void 0:H.emoteId),d;k&&((d=this.data)==null?0:d.shouldTriggerAnimation)&&_.Ud(this.hostElement,"yt-create-user-reaction-animation",[k]);var W;(A=_.h7((W=this.data)==null?void 0:W.onTap))&&_.ZS(A,this.hostElement);this.showNewnessDot&&_.Ud(this.hostElement,"yt-hide-newness-dot")};
eQ.prototype.onClick=function(A){(!A||A.clientX||A.clientY)&&this.sendReaction()};
eQ.prototype.onKeyDown=function(A){A.key!=="Enter"&&A.key!==" "||A.repeat||this.sendReaction()};
_.nP.Object.defineProperties(eQ.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var A,H;return!!(((A=this.data)==null?0:A.emojiId)||((H=this.data)==null?0:H.emoteId))}}});
_.E([_.C(),_.l("design:type",Object)],eQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],eQ.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",Object)],eQ.prototype,"newnessDotEligible",void 0);_.E([_.G("data.maybeShowNewnessDot"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eQ.prototype,"showNewnessDot",null);_.E([_.G("data.emojiId","data.emoteId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eQ.prototype,"useYtImage",null);
_.E([_.h6({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],eQ);
_.Q(eQ,"yt-reaction-control-panel-button-view-model",function(){if(G7I===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;PdR===void 0&&(PdR=document.createElement("template"));var d=PdR;k.call(H,d.content.cloneNode(!0),A.content.firstChild);G7I=A}A=G7I;return A},{mode:0});var FX1;var XhB;var xS=function(){var A=_.a.apply(this,arguments)||this;A.reactionControlPanelExpanded=!1;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.newnessDotEligible=!1;return A};
_.I(xS,_.a);_.q=xS.prototype;_.q.expandedButtonsChanged=function(){var A,H;_.NH(this.hostElement,{"--expanded-buttons-height":((H=(A=this.expandedButtonsData)==null?void 0:A.length)!=null?H:0)*36+"px"})};
_.q.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}}};
_.q.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.q.onMouseLeave=function(){var A=this;this.collapseTimer=setTimeout(function(){A.reactionControlPanelExpanded=!1},500)};
_.q.onFocusIn=function(){this.onMouseEnter()};
_.q.onFocusOut=function(){this.onMouseLeave()};
_.q.onCollapsedButtonFocusIn=function(){var A=this;setTimeout(function(){var H;(H=A.expandedButtons.querySelector("button"))==null||H.focus()},100)};
_.q.onCollapsedButtonFocusOut=function(A){A.stopPropagation()};
_.nP.Object.defineProperties(xS.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var A,H;return _.iK.unsafeClone((A=this.liveReactionsData)==null?void 0:A.emojiButtonData)||((H=this.data)==null?void 0:H.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var A;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((A=this.data)==null||!A.maybeShowNewnessDot)}}});
xS.prototype.expandedButtonsChanged=xS.prototype.expandedButtonsChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],xS.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xS.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],xS.prototype,"reactionControlPanelExpanded",void 0);_.E([_.C({selectorArgs:["data.liveReactionsDataEntityKey"],selector:NEL}),_.l("design:type",Object)],xS.prototype,"liveReactionsData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],xS.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",Object)],xS.prototype,"newnessDotEligible",void 0);
_.E([_.G("liveReactionsData","data.expandedButtons"),_.l("design:type",Object),_.l("design:paramtypes",[])],xS.prototype,"expandedButtonsData",null);_.E([_.G("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.C({reflectToAttribute:!0}),_.l("design:type",Object),_.l("design:paramtypes",[])],xS.prototype,"showNewnessDot",null);_.E([_.ol("#expanded-buttons"),_.l("design:type",HTMLElement)],xS.prototype,"expandedButtons",void 0);
_.E([_.fF("expandedButtonsData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xS.prototype,"expandedButtonsChanged",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],xS);
_.Q(xS,"yt-reaction-control-panel-view-model",function(){if(XhB===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;FX1===void 0&&(FX1=document.createElement("template"));var d=FX1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);XhB=A}A=XhB;return A},{mode:0});var ij=new _.D$("yt-live-chat"),DhQ=Date.parse("2024-7-24"),hR=function(){var A=_.a.apply(this,arguments)||this;A.emojiManager=_.y5;A.newnessDotEligible=!1;A.newnessDotImpressionCounted=!1;A.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return A};
_.I(hR,_.a);_.q=hR.prototype;_.q.emojiCustomizationEnabledChanged=function(){var A;((A=this.data)==null?0:A.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((A=ij.getCreationTime("emoji-customization-count"))&&A<DhQ&&ij.set("emoji-customization-count","0"),A=Number(ij.get("emoji-customization-count"))||0,A<3&&(this.newnessDotEligible=!0,ij.set("emoji-customization-count",(A+1).toString())),this.newnessDotImpressionCounted=!0)};
_.q.hideNewnessDot=function(){this.newnessDotEligible=!1;ij.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.q.handleReactionsMute=function(A){var H=_.hx(),k=_.t8(206221),d={checkboxData:{state:A?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};H&&_.P0(H,k,d);this.reactionsMuted=A};
_.q.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.q.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}}};
_.nP.Object.defineProperties(hR.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var A;return(!((A=this.liveReactionsData)==null||!A.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
hR.prototype.liveReactionsSettingChanged=hR.prototype.liveReactionsSettingChanged;hR.prototype.emojiCustomizationEnabledChanged=hR.prototype.emojiCustomizationEnabledChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Rh),_.l("design:type",Object)],hR.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],hR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],hR.prototype,"data",void 0);_.E([_.C(),_.l("design:type",_.bV)],hR.prototype,"emojiManager",void 0);_.E([_.C(),_.l("design:type",Object)],hR.prototype,"newnessDotEligible",void 0);_.E([_.C(),_.l("design:type",Object)],hR.prototype,"newnessDotImpressionCounted",void 0);
_.E([_.C({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Mc_}),_.l("design:type",Boolean)],hR.prototype,"liveReactionsSetting",void 0);_.E([_.C({selectorArgs:["data.liveReactionsDataEntityKey"],selector:NEL}),_.l("design:type",Object)],hR.prototype,"liveReactionsData",void 0);_.E([_.C({value:function(){var A=_.b("enable_lwe_web_mute"),H=ij.get("allow-reactions");return H===void 0?!1:!H&&A}}),
_.l("design:type",Boolean)],hR.prototype,"reactionsMuted",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],hR.prototype,"liveReactionsEnabled",null);_.E([_.fF("data.emojiCustomizationEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hR.prototype,"emojiCustomizationEnabledChanged",null);
_.E([_.fF("liveReactionsEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hR.prototype,"liveReactionsSettingChanged",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],hR);
_.Q(hR,"yt-reaction-control-panel-overlay-view-model",function(){if(YnM===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;IX3===void 0&&(IX3=document.createElement("template"));var d=IX3;k.call(H,d.content.cloneNode(!0),A.content.firstChild);YnM=A}A=YnM;return A},{mode:0});var Sn_={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(A){var H=this.$.pickers.selected;if(H){_.Va(this.hostElement).removeAttribute(H+"-open");var k="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(k="#picker-buttons",H==="emoji"&&_.Va(this.hostElement).querySelector("#emoji-picker-button")&&(k="#emoji-picker-button"));if(k=_.Va(this.hostElement).querySelector(k).querySelector("#"+H))k.active=!1}k=A;H==A&&(k=null);H!=
A&&_.Va(this.hostElement).setAttribute(A+"-open","");this.$.pickers.selected=k;_.Ud(this.hostElement,"yt-live-chat-picker-changed",[k])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var OT=function(){var A=_.a.apply(this,arguments)||this;A.numSentMessages=0;A.timeoutDurationMs=0;A.timeoutMs=0;A.lastTimeoutTimeMs=0;A.pendingMessageId="";A.hasFiredInitialFocusActions=!1;A.isBeforeFocusEnabled=!0;A.id="";A.characterCount=0;A.maxCharacterLimit=0;A.remainingCharacterCount=0;A.inputExpanded=!1;A.buttonOverrides={iconPosition:"icon-only"};A.inReplyPanel=!1;A.countdownRatio=0;A.isTooltipVisible=!1;A.tooltipTimeout=1E4;A.systemIcons=_.b("kevlar_system_icons");A.tallerEmojiPicker=_.b("live_chat_taller_emoji_picker");
A.sendReplyMessageInFlight=!1;A.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"};A.onResize=function(){A.maybeToggleCharacterCount()};
return A};
_.I(OT,_.a);_.q=OT.prototype;
_.q.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"}}}};
_.q.attached=function(){window.addEventListener("resize",this.onResize)};
_.q.detached=function(){window.removeEventListener("resize",this.onResize)};
_.q.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.q.sendMessage=function(){var A=this,H,k,d,W;return _.e(function(z){if(A.sendDisabled)return z.return();A.isTooltipVisible&&_.Ud(A.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(A.data.sendButton&&A.data.sendButton.buttonRenderer){A.input.completeEmojis();H=A.data.sendButton.buttonRenderer.serviceEndpoint;if(!H)return z.return();d=((k=_.L(H,_.tGN))==null?void 0:k.clientIdPrefix)||"";W={client_message_id:d+String(A.numSentMessages++),rich_message:_.gH(A.input.liveChatRichMessageInput)};
A.pendingMessageId=W.client_message_id;A.inReplyPanel&&(A.sendReplyMessageInFlight=!0);_.tx(A.hostElement,[H,W]);A.input.setLiveChatRichMessageInput(null)}_.EN(z)})};
_.q.handleSendButtonAction=function(A){A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),this.sendMessage())};
_.q.onSendCompleted=function(A,H){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(A=this.get("timeoutDurationUsec",H.data))&&this.handleTimeout(Number(A)/1E3);this.errorMessage=this.get("errorMessage",H.data);this.pendingMessageId=""};
_.q.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Ud(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.q.handlePickerButtonToggle=function(A){A=A.detail.targetId;this.ytPickerBehavior.togglePicker_(A);if(A==="emoji")this.input.focus();else if(A==="qna-start-panel"){var H,k;(H=_.Va(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(k=H.querySelector("#qna-creator-text-input-field"))==null||k.focus()}};
_.q.onComponentReplaced=function(A){var H,k;A.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((H=A.replacement.liveChatMessageInputRenderer)==null?0:(k=H.headerRenderer)==null?0:k.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.q.onEmojiSelect=function(A){this.input.focus();this.input.insertEmoji(A.detail)};
_.q.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.q.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Ud(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Ud(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.q.onOpenPopupAction=function(A,H){var k=this;H===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Ud(k.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.q.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.q.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.q.focusChanged=function(){this.maybeToggleCharacterCount()};
_.q.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var A=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",A>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.q.computeId=function(){return this.data&&this.data.targetId||""};
_.q.computeSendDisabled=function(A,H,k,d){A=!!(!A||H&&A>H||d);(H=_.Va(this.hostElement).querySelector("#send-button"))&&H.children.length&&(H.children[0].disabled=A);return A};
_.q.handleTimeout=function(A){this.timeoutDurationMs=this.timeoutMs=A;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.q.updateTimeout=function(A){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(A-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=A,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.q.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.q.onErrorMessageEdit=function(A){this.input.setLiveChatRichMessageInput(A.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.q.errorMessageChanged=function(){var A=this;_.L0(function(){_.Ud(A.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.q.computeAuthorNameColor=function(A){var H;if(_.b("live_chat_author_name_color_usernames")&&(A==null?0:(H=A.authorName)==null?0:H.simpleText))return _.sTf(_.kRr(A.authorName.simpleText));if(_.b("live_chat_seed_color_usernames")&&(A==null?0:A.authorSeedColorArgb))return _.sTf(_.ly(A.authorSeedColorArgb));if(_.b("live_chat_colored_usernames"))return"#cc0000";var k;return _.b("live_chat_simple_color_usernames")&&(A==null?0:(k=A.authorName)==null?0:k.simpleText)&&(A==null?0:A.authorUsernameColorLight)&&
(A==null?0:A.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.ly(A.authorUsernameColorDark):_.ly(A.authorUsernameColorLight):""};
_.q.onIsTooltipVisibleChanged=function(){var A=_.Va(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){A.hidden=!1;A.setAttribute("role","alert")},0):(A.hidden=!0,A.removeAttribute("role"))};
_.q.onFocusedChanged=function(A){this.inputFocused=A.detail.value};
_.nP.Object.defineProperties(OT.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 A;return!((A=this.data)==null||!A.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:(H=A.pickers)==null?void 0:H.find(function(k){return k.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return A?this.ytRendererBehavior.getSimpleString(A):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
OT.prototype.onIsTooltipVisibleChanged=OT.prototype.onIsTooltipVisibleChanged;OT.prototype.errorMessageChanged=OT.prototype.errorMessageChanged;OT.prototype.onErrorMessageEdit=OT.prototype.onErrorMessageEdit;OT.prototype.onErrorMessageDismiss=OT.prototype.onErrorMessageDismiss;OT.prototype.focusChanged=OT.prototype.focusChanged;OT.prototype.characterCountChanged=OT.prototype.characterCountChanged;OT.prototype.onEmojiSelect=OT.prototype.onEmojiSelect;OT.prototype.handlePickerButtonToggle=OT.prototype.handlePickerButtonToggle;
OT.prototype.onSendError=OT.prototype.onSendError;OT.prototype.onSendCompleted=OT.prototype.onSendCompleted;OT.prototype.sendMessage=OT.prototype.sendMessage;OT.prototype.dataChanged=OT.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],OT.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(Sn_.YtPickerBehavior),_.l("design:type",Object)],OT.prototype,"ytPickerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TB.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],OT.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],OT.prototype,"hasFiredInitialFocusActions",void 0);
_.E([_.C(),_.l("design:type",Object)],OT.prototype,"isBeforeFocusEnabled",void 0);_.E([_.C(),_.l("design:type",Object)],OT.prototype,"data",void 0);_.E([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",Object)],OT.prototype,"id",void 0);_.E([_.C(),_.l("design:type",Object)],OT.prototype,"characterCount",void 0);_.E([_.C(),_.l("design:type",Object)],OT.prototype,"maxCharacterLimit",void 0);
_.E([_.C(),_.l("design:type",Object)],OT.prototype,"remainingCharacterCount",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],OT.prototype,"inputExpanded",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],OT.prototype,"inputFocused",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],OT.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.E([_.C(),_.l("design:type",_.Fw)],OT.prototype,"participantsManager",void 0);
_.E([_.C(),_.l("design:type",Object)],OT.prototype,"buttonOverrides",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],OT.prototype,"inReplyPanel",void 0);_.E([_.G("characterCount, maxCharacterLimit, countdownActive"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],OT.prototype,"sendDisabled",null);_.E([_.C(),_.l("design:type",Object)],OT.prototype,"countdownRatio",void 0);
_.E([_.G("countdownRatio"),_.l("design:type",Number),_.l("design:paramtypes",[])],OT.prototype,"countdownStrokeDashOffset",null);_.E([_.G("countdownRatio"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],OT.prototype,"countdownActive",null);_.E([_.G("data.interactionMessage"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],OT.prototype,"hasInteractionMessage",null);
_.E([_.G("data.emojiPickerButton"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],OT.prototype,"hasEmojiPickerButton",null);_.E([_.G("data, characterCount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],OT.prototype,"showAvatar",null);_.E([_.G("data.pickers"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],OT.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.C(),_.l("design:type",Object)],OT.prototype,"errorMessage",void 0);_.E([_.C(),_.l("design:type",Object)],OT.prototype,"genericErrorMessage",void 0);_.E([_.C(),_.l("design:type",Object)],OT.prototype,"isTooltipVisible",void 0);_.E([_.C(),_.l("design:type",Object)],OT.prototype,"tooltipTimeout",void 0);_.E([_.G("data.onInitialFocusCommand"),_.l("design:type",String),_.l("design:paramtypes",[])],OT.prototype,"tooltipMessage",null);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],OT.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],OT.prototype,"tallerEmojiPicker",void 0);_.E([_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],OT.prototype,"authorNameColor",null);_.E([_.C(),_.l("design:type",Object)],OT.prototype,"sendReplyMessageInFlight",void 0);_.E([_.ol("#input"),_.l("design:type",_.FhQ)],OT.prototype,"input",void 0);
_.E([_.ol("#count"),_.l("design:type",HTMLElement)],OT.prototype,"count",void 0);_.E([_.ol("#input-container"),_.l("design:type",HTMLElement)],OT.prototype,"inputContainer",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"dataChanged",null);_.E([_.Ze("yt-live-chat-send-message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],OT.prototype,"sendMessage",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[Event,_.Gc]),_.l("design:returntype")],OT.prototype,"onSendCompleted",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"onSendError",null);
_.E([_.Ze("yt-live-chat-icon-toggle-button-renderer-toggle"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],OT.prototype,"handlePickerButtonToggle",null);_.E([_.Ze("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],OT.prototype,"onEmojiSelect",null);
_.E([_.fF("characterCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"characterCountChanged",null);_.E([_.fF("inputFocused"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"focusChanged",null);_.E([_.Ze("yt-live-chat-error-message-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"onErrorMessageDismiss",null);
_.E([_.Ze("yt-live-chat-error-message-edit"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],OT.prototype,"onErrorMessageEdit",null);_.E([_.fF("errorMessage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"errorMessageChanged",null);_.E([_.fF("isTooltipVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"onIsTooltipVisibleChanged",null);
_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],OT);
_.Q(OT,"yt-live-chat-message-input-renderer",function(){if(H7_===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;AIM===void 0&&(AIM=document.createElement("template"));var d=AIM;k.call(H,d.content.cloneNode(!0),A.content.firstChild);H7_=A}A=H7_;return A},{mode:0});var Cd_;var KXR;var Rz=function(){var A=_.a.apply(this,arguments)||this;A.systemIcons=_.b("kevlar_system_icons");A.firedOnClickCommand=!1;A.inReplyPanel=!1;return A};
_.I(Rz,_.a);
Rz.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"}}}};
Rz.prototype.onButtonToggle=function(A){A.target.disabled||this.ytPickerBehavior.togglePicker_(A.detail.targetId)};
Rz.prototype.onClick=function(){var A=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Ud(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return A.firedOnClickCommand=!1},5E3))};
_.nP.Object.defineProperties(Rz.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:(H=A.panels)==null?void 0:H.find(function(k){return k.liveChatProductPickerPanelViewModel}))!==void 0}}});
Rz.prototype.onButtonToggle=Rz.prototype.onButtonToggle;_.E([_.P(Sn_.YtPickerBehavior),_.l("design:type",Object)],Rz.prototype,"ytPickerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Rz.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Rz.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!1}),_.l("design:type",Object)],Rz.prototype,"firedOnClickCommand",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Rz.prototype,"inReplyPanel",void 0);_.E([_.G("data.pickers"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rz.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.Ze("yt-live-chat-icon-toggle-button-renderer-toggle"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Rz.prototype,"onButtonToggle",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Rz);
_.Q(Rz,"yt-live-chat-restricted-participation-renderer",function(){if(KXR===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Cd_===void 0&&(Cd_=document.createElement("template"));var d=Cd_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);KXR=A}A=KXR;return A},{mode:0});var T3=function(){var A=_.a.apply(this,arguments)||this;A.genericErrorMessage=_.Yu("Error, try again.");A.inReplyPanel=!1;A.hideBorder=!1;return A};
_.I(T3,_.a);T3.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}}}}}};
_.nP.Object.defineProperties(T3,{template:{configurable:!0,enumerable:!0,get:function(){return MxB()}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],T3.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],T3.prototype,"genericErrorMessage",void 0);_.E([_.C(),_.l("design:type",Object)],T3.prototype,"inReplyPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],T3.prototype,"hideBorder",void 0);
_.E([_.h6({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],T3);_.Q(T3,"yt-live-chat-engagement-panel-input-renderer",function(){return MxB()},{mode:0});var aX_;var cI_;var phL=new _.D$("yt-live-chat"),Qu_=new Map;Qu_.set("timestamp_toggle","show-timestamps");Qu_.set("reactions_toggle","allow-reactions");var m4=function(){return _.a.apply(this,arguments)||this};
_.I(m4,_.a);_.q=m4.prototype;_.q.menuItemIdentifierChanged=function(){var A;(A=this.data)!=null&&A.menuItemIdentifier&&(A=Qu_.get(this.data.menuItemIdentifier))&&(_.b("enable_lwe_web_mute")?(A=phL.get(A),this.isToggled=!(A===void 0?!this.data.isToggled:!A)):this.isToggled=phL.get(A))};
_.q.onFocus=function(){this.toggleButton.focus()};
_.q.onTap=function(){var A=this.data.command;A&&this.componentBehavior.resolveCommand(A)};
_.q.computeText=function(A,H,k){return this.componentBehavior.getSimpleString(A?k:H)};
_.q.computeIcon=function(A,H,k){return(A=A?k:H)&&A.iconType?_.N0(A.iconType):""};
m4.prototype.onTap=m4.prototype.onTap;m4.prototype.onFocus=m4.prototype.onFocus;m4.prototype.menuItemIdentifierChanged=m4.prototype.menuItemIdentifierChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],m4.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],m4.prototype,"data",void 0);
_.E([_.C({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.l("design:type",String)],m4.prototype,"icon",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],m4.prototype,"isToggled",void 0);_.E([_.ol("tp-yt-paper-toggle-button"),_.l("design:type",Object)],m4.prototype,"toggleButton",void 0);_.E([_.fF("data.menuItemIdentifier"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],m4.prototype,"menuItemIdentifierChanged",null);
_.E([_.Ze("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],m4.prototype,"onFocus",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],m4.prototype,"onTap",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],m4);
_.Q(m4,"yt-live-chat-toggle-renderer",function(){if(cI_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;aX_===void 0&&(aX_=document.createElement("template"));var d=aX_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);cI_=A}A=cI_;return A},{mode:0});var VlI=new _.SE("NAVIGATION_PROGRESS_TOKEN");var E_I={},Uh_={},lXL=(Uh_[X_B.name]=!0,Uh_),JR=function(){var A=_.A6.apply(this,arguments)||this;A._noAccessors=!0;A.tabGesturesIsActive=!1;A.actionRouterIsRoot=!0;A.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"};A.pageTitle="";A.titleSuffix="YouTube";A.unseenNotificationCount=
0;A.hasNavigated=!1;A.hasSetScrollTopForNavigation=!1;A.pagePreparer=null;A.zwiebackInitJobId=0;A.dataUpdatePromise=null;A.loadDepsPromise=_.MT();A.hasPendingNavigation=!1;A.pendingPlayerOnResponseReceivedActions=[];return A};
_.I(JR,_.A6);JR.prototype.attached=function(){tl3(this);document.addEventListener("yt-navigate-cache",_.nF(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var A=gP();A.init();A.dispatchElement=this.hostElement};
var tl3=function(A,H){H=H===void 0?0:H;var k=_.wj().resolve(_.fZ(_.f1));if(k)NzL(A,k);else{if(H>=5)throw Error("vl");setTimeout(function(){tl3(A,H+1)},0)}},NzL=function(A,H){H.addEventListener("yt-navigate-start",_.nF(A,A.onYtNavigateStart));
H.addEventListener("yt-navigate-finish",_.nF(A,A.onYtNavigateFinish));H.addEventListener("yt-navigate-error",_.nF(A,A.onYtNavigateError));H.addEventListener("yt-page-data-fetched",_.nF(A,A.onYtPageDataFetched))};
_.q=JR.prototype;_.q.detached=function(){var A=_.wj().resolve(_.f1);A.removeEventListener("yt-navigate-start",_.nF(this,this.onYtNavigateStart));A.removeEventListener("yt-navigate-finish",_.nF(this,this.onYtNavigateFinish));A.removeEventListener("yt-navigate-error",_.nF(this,this.onYtNavigateError));A.removeEventListener("yt-page-data-fetched",_.nF(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.nF(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.q.setPageOffset=function(A,H){A?_.Ud(this.hostElement,"yt-set-page-offset",[A,H]):_.I3(Error("wl"))};
_.q.setPageOffsetForNavigation=function(A,H){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(A,H))};
_.q.onYtNavigateSetPageOffset=function(A,H){this.setPageOffsetForNavigation(H.page,H.offset)};
_.q.getPageOffset=function(){var A=_.Va(this.hostElement).querySelector("#page-manager").getCurrentPage(),H=0;A&&(H=_.Ud(this.hostElement,"yt-get-page-offset",[A])[0]);return H};
_.q.onYtHistoryPop=function(A,H){if(_.Q$("DISABLE_WARM_LOADS"))A.preventDefault(),window.location.reload();else{var k=_.wj().resolve(_.f1);k.hasPendingNavigation()&&A.preventDefault();k.cancelPendingNavigation();_.li(this.hostElement,"yt-pending-navigation-cancelled");H.errorMsg&&(A=H.errorMsg.split(" - "),H=Error(A[0]),A.length==2&&A[1]&&(_.Gg(H,A[1]),_.Pq(H)),window.location.reload())}};
_.q.onYtHistoryLoad=function(A,H){var k=this;if(_.Q$("DISABLE_WARM_LOADS"))window.location.reload();else{(A=H.endpoint)&&Object.keys(A).length||(A=null);var d=H.historyEntry,W=_.wj().resolve(_.f1),z=_.wj().resolve(_.SO),u=null;d&&d.rootData&&(u=d.rootData);var B=u&&MlG(u);!u||B||u.filler?A?(W.navigate(A,!0),n__(this,A)):(H.legacyBorder||B||(H.JSC$31258_savedComponentState==null&&u==null?_.Pq(new _.Ti("Incomplete history entry",H.forward)):_.YJ(new _.Ti("Malformed history entry",H.JSC$31258_savedComponentState,
H.forward,u))),window.location.reload()):(_.wi8({isHot:!0}),_.xB({webInfo:{navigationReason:"h"}}),_.QQA(),_.OH("srt"),_.OH("pdc"),this.cancelPendingTasks(),Z7I(this,H.forward,u),u.player&&(u.player.loaded=!1),n__(this,A),_.ulp(W,A||{},u,2,{},!1,H).then(function(){k.setPageOffset(z.getCurrentPage(),d.scrollTop||0)}))}};
_.q.initHistoryManager=function(A){if(!this.hasNavigated){this.hasNavigated=!0;var H=_.Va(this.hostElement).querySelector("#page-manager").getCurrentData();A=isNaN(A)?this.getPageOffset():A;var k=_.wj().resolve(_.f1).currentEndpoint;this.replaceState(k,H,A)}};
_.q.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.q.onYtNavigateStart=function(A,H){this.navigationSpan&&(this.navigationSpan.addAttributes({cancelled:!0}),this.navigationSpan.end());var k;this.navigationSpan=_.QS("navigate",{fromPath:window.location.pathname,toPath:H.url?(k=_.Nx(H.url))!=null?k:void 0:void 0});this.cancelPendingTasks();H.noProgressBar||(A=_.wj().resolve(_.fZ(VlI)))&&A.start();A=this.hasPendingNavigation?null:this.data;k=_.wj().resolve(_.SO);var d,W,z;_.b("kevlar_use_vimio_behavior")&&!((d=H.endpoint)==null?0:(W=d.commandMetadata)==
null?0:(z=W.webCommandMetadata)==null?0:z.ignoreNavigation)&&(d=k.getCurrentPage())&&d.disconnectVisibilityRoot();k.prepareForNavigation(H.pageType,H.endpoint);_.b("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.S$(1,"pcl"),_.CM(this.pagePreparer,k.preparePage.bind(k,H.pageType,H.endpoint)));d=this.getPageOffset();this.initHistoryManager(d);H.reload||this.hasPendingNavigation?(H.pageType==="shorts"&&H.reload&&_.Ed(this.hostElement,"yt-shorts-reset"),this.replaceState(H.endpoint,A,d)):
(A==null?void 0:A.page)==="watch"&&H.pageType==="watch"&&_.b("kevlar_replace_watch_to_watch_history_state")?this.replaceState(H.endpoint,A,d):(A==null?void 0:A.page)!=="shorts"||H.pageType!=="shorts"||H.endpoint.reelWatchEndpoint.sequenceParams||_.b("short_to_short_back_nav_killswitch")?H.type!="navigate-back"&&H.type!="navigate-forward"&&(H.pageType==="shorts"&&_.Ed(this.hostElement,"yt-shorts-reset"),this.saveAndPush(H.url,H.endpoint,A,d)):this.replaceState(H.endpoint,A,0);this.hasPendingNavigation=
!0};
var fX1=function(A){A.hasPendingNavigation=!1;(A=_.wj().resolve(_.fZ(VlI)))&&A.finish()};
JR.prototype.onYtNavigateError=function(A,H){this.navigationSpan&&(this.navigationSpan.end("SPAN_STATUS_ERROR"),this.navigationSpan=void 0);fX1(this);A=this.get("endpoint.commandMetadata.webCommandMetadata.url",H);var k=_.MP(window.location.href);A&&!k.pbjreload&&(H=H.navigationErrorReason||"10",_.b("kevlar_parent_on_pbjreload")&&(k={csn:_.hx()},this.get("data.endpoint.clickTrackingParams")&&(k.itct=this.data.endpoint.clickTrackingParams),_.DZ(A,k)),_.J1(_.nZ(A,{pbjreload:H})))};
JR.prototype.onYtNavigateCache=function(A,H){var k=this,d=H.url,W=H.endpoint,z=H.data;A=!!H.miniplayer;H=!!H.skipHistory;if(d&&W&&z){var u=this.getPageOffset(),B=this.data||null;H||this.saveAndPush(d,W,B,u);d=_.ulp(_.wj().resolve(_.f1),W,z,A?4:3,{},A);A&&d.then(function(){k.dataUpdatePromise&&k.dataUpdatePromise.then(function(){var h=_.wj().resolve(_.SO);k.setPageOffset(h.getCurrentPage(),0)})})}};
JR.prototype.onYtNavigateFinish=function(A,H){var k=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){whI(k,H.fromHistory)})};
var whI=function(A,H){A.navigationSpan&&(A.navigationSpan.end(),A.navigationSpan=void 0);fX1(A);if(A.pendingPlayerOnResponseReceivedActions){for(var k=_.r(A.pendingPlayerOnResponseReceivedActions),d=k.next();!d.done;d=k.next())_.ZS(d.value,A.hostElement);A.pendingPlayerOnResponseReceivedActions=[]}k=_.wj().resolve(_.SO);H||!A.hasNavigated||_.b("web_disable_scroll_on_navigate_finish")||((H=k.getCurrentPage())?H.is==="ytd-shorts"||A.tabGesturesIsActive||A.setPageOffsetForNavigation(H,0):_.Pq(Error("xl")));
_.L0(function(){_.L0(function(){_.OH("pda")})})};
JR.prototype.onYtNavigate=function(A){if(!A.detail.endpoint){var H=new _.Ti("Error: Missing yt-navigate endpoint from target:",A.target,A.target.nodeName);_.I3(H)}if(H=_.b("cold_missing_history"))H=gP(),H.init(!1),H=!(H.browserHistory.boundHistoryReplaceState&&H.browserHistory.boundHistoryPushState);if(H){_.cI("DISABLE_WARM_LOADS",!0);H=new _.Ti("Failed to initialize history manager",this.getDebugString());var k=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
k?_.Pq(H):_.I3(H)}H=A.detail.endpoint;var d,W;_.b("debug_forward_web_query_parameters")&&((d=H.commandMetadata)==null?0:(W=d.webCommandMetadata)==null?0:W.url)&&(H=JSON.parse(JSON.stringify(H)),H.commandMetadata.webCommandMetadata.url=_.Mcb(H.commandMetadata.webCommandMetadata.url,window.location.search));A={type:0,command:H,form:{params:A.detail.params,tempData:A.detail.tempData||{},requestType:A.detail.type,createScreenConfig:A.detail.createScreenConfig,reload:A.detail.reload?A.detail.reload:!1,
requestForm:A.detail}};_.b("kevlar_yt_navigate_command_handler")?(d=_.wj().resolve(_.J7),A.form.skipDefaultElement=!0,d.resolveCommand(H,{form:A.form})):this.handleNavigate(A)};
JR.prototype.handleNavigate=function(A){this.hasSetScrollTopForNavigation=!1;var H=_.wj().resolve(_.f1),k=A.form||{};H.navigate(A.command,k.reload,k.params,k.tempData,k.requestType,k.createScreenConfig,k.ignoreConfirmation,k.requestForm)&&n__(this,A.command,k.tempData)};
JR.prototype.onYtPageDataFetched=function(A,H){try{_.oAN().reset();this.data=H.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.wj().resolve(_.SO).updatePageData(this.data);var k=this.get("playerResponse.onResponseReceivedActions",this.data);k&&(k=o_G(this,k));k&&_.NT(this.hostElement,k,this.hostElement);var d=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),W=this.get("response.responseContext.consistencyTokenJar",this.data);if(d||W){var z=_.khr(),u=(0,_.iK.getValues)(z.tokenJars);d&&z.replace(u,d);W&&z.replace(u,W)}}catch(B){_.I3(B)}};
var n__=function(A,H,k){try{A.onYtEndpointChangeHandler(H,k)}catch(d){_.I3(d)}};
_.q=JR.prototype;_.q.onYtEndpointChangeHandler=function(){};
_.q.setPageTitle=function(A){A=(this.pageTitle=A)?A+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+A};
_.q.onYtUpdateTitle=function(A,H){this.setPageTitle(H)};
_.q.setUnseenNotificationCount=function(A){this.unseenNotificationCount=A;this.setPageTitle(this.pageTitle)};
_.q.handleUpdateNotificationsUnseenCountAction=function(A){_.L(A,kqM)&&((A=_.L(A,kqM).unseenCount)?this.setUnseenNotificationCount(A):this.setUnseenNotificationCount(0))};
_.q.handleClearCookieAction=function(A){var H;(A=(H=_.L(A,wAi))==null?void 0:H.cookieName)&&_.xm8(A)};
_.q.onYtUpdateUnseenNotificationCount=function(A,H){this.setUnseenNotificationCount(H)};
_.q.loadData=function(A){var H=this;this.loadDepsPromise.then(function(){var k=_.wj().resolve(_.fZ(_.f1));k||_.I3(Error("yl"));if(A&&A.response){if(!A.endpoint){var d=_.Mx(window.document.location.href)||"/",W="";if(d==="/"||d.startsWith("/?"))W="WEB_PAGE_TYPE_BROWSE";A.endpoint={commandMetadata:{webCommandMetadata:{url:d,webPageType:W,rootVe:3854}}}}_.ulp(k,A.endpoint,A,5,{})}else A.endpoint?k.navigate(A.endpoint):k.navigate(_.kf);_.IE.cancelJob(H.zwiebackInitJobId);H.zwiebackInitJobId=_.IE.addLowPriorityJob(Q9e)})};
var gP=function(){return _.wj().resolve(_.$L)};
JR.prototype.getDebugString=function(){return gP().getDebugString()};
JR.prototype.getThirdPartyManipulationSuspected=function(){return gP().getThirdPartyManipulationSuspected()};
JR.prototype.replaceState=function(A,H,k){gP().saveAndReplace(A,H,k)};
JR.prototype.saveAndPush=function(A,H,k,d){gP().saveAndPush(A,H,k,d)};
var MlG=function(A){return _.L(A.endpoint,_.Yr)||_.L(A.endpoint,_.A1)?!0:!A||isNaN(A.expirationTime)?!1:(0,_.w2)()>A.expirationTime},Z7I=function(A,H,k){var d=A.get("response.trackingParams",k),W=_.ii(),z=_.hx();
if(d&&W&&z&&(d=A.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",k),!d&&k.rootVe&&(d=k.rootVe),W=H?"forwardButton":"backButton",H=A.get("playerResponse.topbar.desktopTopbarRenderer."+W+".buttonRenderer.command.clickTrackingParams",A.data),A=A.get("response.topbar.desktopTopbarRenderer."+W+".buttonRenderer.command.clickTrackingParams",A.data),H=(A=H||A)?_.db(A):void 0,A=_.A7(),W=[_.MT(k)],_.Ml(A,d,H,{dataPromises:W,csnToClone:k.csn}),k.graftedVes))for(k=
_.r(k.graftedVes),d=k.next();!d.done;d=k.next())_.n4(A,d.value)};
JR.prototype.onStoreGraftedVeAction=function(A){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(A)):_.Pq(Error("zl"))};
var o_G=function(A,H){return H.filter(function(k){for(var d in k)if(lXL[d])return A.pendingPlayerOnResponseReceivedActions.push(k),!0;return!1})};
_.nP.Object.defineProperties(JR.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
JR.prototype.onStoreGraftedVeAction=JR.prototype.onStoreGraftedVeAction;JR.prototype.loadData=JR.prototype.loadData;JR.prototype.onYtUpdateUnseenNotificationCount=JR.prototype.onYtUpdateUnseenNotificationCount;JR.prototype.handleClearCookieAction=JR.prototype.handleClearCookieAction;JR.prototype.handleUpdateNotificationsUnseenCountAction=JR.prototype.handleUpdateNotificationsUnseenCountAction;JR.prototype.setUnseenNotificationCount=JR.prototype.setUnseenNotificationCount;
JR.prototype.onYtUpdateTitle=JR.prototype.onYtUpdateTitle;JR.prototype.setPageTitle=JR.prototype.setPageTitle;JR.prototype.onYtEndpointChangeHandler=JR.prototype.onYtEndpointChangeHandler;JR.prototype.onYtPageDataFetched=JR.prototype.onYtPageDataFetched;JR.prototype.handleNavigate=JR.prototype.handleNavigate;JR.prototype.onYtNavigate=JR.prototype.onYtNavigate;JR.prototype.onYtNavigateFinish=JR.prototype.onYtNavigateFinish;JR.prototype.onYtNavigateCache=JR.prototype.onYtNavigateCache;
JR.prototype.onYtNavigateError=JR.prototype.onYtNavigateError;JR.prototype.onYtNavigateStart=JR.prototype.onYtNavigateStart;JR.prototype.cancelPendingTasks=JR.prototype.cancelPendingTasks;JR.prototype.initHistoryManager=JR.prototype.initHistoryManager;JR.prototype.onYtHistoryLoad=JR.prototype.onYtHistoryLoad;JR.prototype.onYtHistoryPop=JR.prototype.onYtHistoryPop;JR.prototype.onYtNavigateSetPageOffset=JR.prototype.onYtNavigateSetPageOffset;JR.prototype.setPageOffset=JR.prototype.setPageOffset;
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],JR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],JR.prototype,"data",void 0);_.E([_.Ze("yt-navigate-set-page-offset"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],JR.prototype,"onYtNavigateSetPageOffset",null);
_.E([_.Ze("yt-history-pop"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],JR.prototype,"onYtHistoryPop",null);_.E([_.Ze("yt-history-load"),_.l("design:type",Function),_.l("design:paramtypes",[Event,_.jjJ]),_.l("design:returntype")],JR.prototype,"onYtHistoryLoad",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],JR.prototype,"onYtNavigate",null);
_.E([_.Ze("yt-update-title"),_.l("design:type",Function),_.l("design:paramtypes",[Event,String]),_.l("design:returntype")],JR.prototype,"onYtUpdateTitle",null);_.E([_.Ze("yt-update-unseen-notification-count"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Number]),_.l("design:returntype")],JR.prototype,"onYtUpdateUnseenNotificationCount",null);_.E([_.HW()],JR);E_I.YtdAppBehavior=[_.nM.YtActionHandlerBehavior,JR.prototype];var bj=function(){var A=_.A6.apply(this,arguments)||this;A._noAccessors=!0;A.scrollRate=3;A.autoScrollAnimationStart=0;A.autoScrollPaused=!1;A.autoScrollRafId=0;return A};
_.I(bj,_.A6);_.q=bj.prototype;_.q.created=function(){var A=this;this.boundAutoScrollHandler=function(H){A.autoScroll(H)}};
_.q.detached=function(){this.hostElement.removeEventListener("mouseout",_.nF(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.nF(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.nF(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.q.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.nF(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.nF(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.nF(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.nF(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.nF(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.nF(this,this.endAutoScroll)),this.endAutoScroll())};
_.q.autoScroll=function(A){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=A);var H;if(H=!this.autoScrollPaused&&this.scrollTarget)H=this.scrollTarget,H=H.scrollHeight-H.scrollTop!==H.clientHeight;H&&(H=1E3/this.scrollRate,A-=this.autoScrollAnimationStart,A>H&&(this.scrollTarget.scrollTop+=Math.ceil(A/H),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.q.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.q.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
bj.prototype.autoScrollEnabledChanged=bj.prototype.autoScrollEnabledChanged;_.E([_.C(),_.l("design:type",Object)],bj.prototype,"scrollRate",void 0);_.E([_.C(),_.l("design:type",Object)],bj.prototype,"scrollTarget",void 0);_.E([_.C(),_.l("design:type",Boolean)],bj.prototype,"autoScrollEnabled",void 0);_.E([_.fF("autoScrollEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bj.prototype,"autoScrollEnabledChanged",null);_.E([_.HW()],bj);var $hG=[bj.prototype];var Lc=function(){var A=_.A6.apply(this,arguments)||this;A._noAccessors=!0;return A};
_.I(Lc,_.A6);Lc.prototype.ready=function(){var A=this;_.Va(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){A.onChange_()})};
Lc.prototype.dataChanged_=function(){_.Va(this.hostElement).querySelector("#checkbox").checked=!1};
Lc.prototype.onChange_=function(){var A=_.Va(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Ed(this.hostElement,"yt-dismissal-reason-"+A,this.data.feedbackToken)};
Lc.prototype.dataChanged_=Lc.prototype.dataChanged_;_.E([_.C(),_.l("design:type",Object)],Lc.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lc.prototype,"dataChanged_",null);_.E([_.HW()],Lc);var AQV=[Lc.prototype];var vC=function(){var A=_.A6.apply(this,arguments)||this;A.showInput=!1;return A};
_.I(vC,_.A6);_.q=vC.prototype;_.q.detached=function(){this.showInput&&window.removeEventListener("click",_.nF(this,this.closeOnOutsideClick_))};
_.q.stopPropagation_=function(A){this.showInput&&A.stopPropagation()};
_.q.closeOnOutsideClick_=function(A){this.closeOnOutsideClickCondition(A)&&(this.showInput=!1,window.removeEventListener("click",_.nF(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.q.closeOnOutsideClickCondition=function(){return!0};
_.q.closeOnOutsideClickHandler=function(){};
_.q.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.nF(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.q.openOnClickHandler=function(){};
_.q.showInputChanged=function(){};
_.q.setShowInput=function(A){this.showInput=A};
vC.prototype.setShowInput=vC.prototype.setShowInput;vC.prototype.showInputChanged=vC.prototype.showInputChanged;vC.prototype.openOnClickHandler=vC.prototype.openOnClickHandler;vC.prototype.openOnClick_=vC.prototype.openOnClick_;vC.prototype.closeOnOutsideClickHandler=vC.prototype.closeOnOutsideClickHandler;vC.prototype.closeOnOutsideClickCondition=vC.prototype.closeOnOutsideClickCondition;vC.prototype.closeOnOutsideClick_=vC.prototype.closeOnOutsideClick_;vC.prototype.stopPropagation_=vC.prototype.stopPropagation_;
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vC.prototype,"showInput",void 0);_.E([_.Ze("click"),_.Ze("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],vC.prototype,"stopPropagation_",null);_.E([_.fF("showInput"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean]),_.l("design:returntype")],vC.prototype,"showInputChanged",null);_.E([_.HW()],vC);var HDG=[vC.prototype];var yn=function(){var A=_.A6.apply(this,arguments)||this;A.timeoutJobId=0;A.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return A};
_.I(yn,_.A6);yn.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
yn.prototype.startTimeout=function(){var A=this,H=this.data&&this.data.displayDurationSeconds;H&&!this.timeoutJobId&&(this.timeoutJobId=_.ma(_.IE,function(){_.Ud(A.hostElement,"yt-close-popup-action",[A.is]);A.timeoutJobId=0},H*1E3))};
yn.prototype.cancelTimeout=function(){_.IE.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
yn.prototype.ytdHatsSurveyBehaviorDataChanged=yn.prototype.ytdHatsSurveyBehaviorDataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],yn.prototype,"ytActionHandlerBehavior",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yn.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.E([_.HW()],yn);var sA3=[_.nM.YtActionHandlerBehavior,yn.prototype];var kpi=_.t8(115994),dSL=_.t8(115993),WZM=function(A,H,k){var d=this;var W=k.dragDownAction;this.layer=0;this.JSC$20430_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.JSC$20430_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.fullscreen=!1;var z=_.A7();_.Z2(z,kpi,this.layer);_.Z2(z,dSL,this.layer);this.dragDownAction=function(){W();_.vn(z,{visualElement:d.fullscreen?kpi:dSL})};
this.gesture=new EV(A,H,this.getConfig(!1),"pandown");this.attach()};
WZM.prototype.attach=function(){this.gesture.attach()};
WZM.prototype.detach=function(){this.gesture.detach()};
WZM.prototype.update=function(A){this.fullscreen=A;var H=this.gesture;A=this.getConfig(A);H.config=A};
WZM.prototype.getConfig=function(A){return A?this.JSC$20430_watchFullScreenConfig:this.JSC$20430_watchConfig};var zT_;var q1I;var jQ=function(){var A=_.a.apply(this,arguments)||this;A.systemIcons=_.b("kevlar_system_icons");A.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return A};
_.I(jQ,_.a);jQ.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var A=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(A=this.data.percentIfLiked||0,this.activated=!0):(A=this.data.percentIfIndifferent||0,this.activated=!1);_.Va(this.hostElement).querySelector("#like-bar").style.width=A+"%"}};
jQ.prototype.handleUpdateSentimentBarStateCommand=function(A){this.data&&this.set("data.likeStatus",_.L(A,RKB).likeStatus)};
jQ.prototype.observeLikeStatus=jQ.prototype.observeLikeStatus;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],jQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],jQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],jQ.prototype,"activated",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jQ.prototype,"systemIcons",void 0);_.E([_.fF("data.likeStatus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jQ.prototype,"observeLikeStatus",null);_.E([_.O6({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],jQ);
_.Q(jQ,"ytd-sentiment-bar-renderer",function(){if(q1I!==void 0)return q1I;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return q1I=A},{mode:1});var rQI;var Iz=function(){var A=_.a.apply(this,arguments)||this;A.small=!0;return A};
_.I(Iz,_.a);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Iz.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Iz.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Iz.prototype,"small",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Iz);
_.Q(Iz,"ytd-video-view-count-renderer",function(){if(rQI!==void 0)return rQI;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return rQI=A},{mode:2});var YS=function(){var A=_.a.apply(this,arguments)||this;A.infoFormattedStrings=[];A.wrapVideoActions=_.b("kevar_watch_wrap_video_actions");A.hideSentimentBar=_.b("kevlar_watch_hide_sentiment_bar");A.actionMap={};return A};
_.I(YS,_.a);_.q=YS.prototype;_.q.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.b("web_modern_buttons"),forceIconButton:!_.b("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.q.dataChanged=function(){_.b("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.q.computeInfoFormattedStrings=function(A){if(!A)return[];var H=[];A.dateText&&H.push(A.dateText);A.stationName&&H.push(A.stationName);A.rating&&H.push(A.rating);A.startEndTimeTemplate&&A.startTimeUtcMillis&&A.endTimeUtcMillis&&H.push(_.Yu(Bl3(_.PK(A.startEndTimeTemplate),Number(A.startTimeUtcMillis),Number(A.endTimeUtcMillis))));A.upNextProgramText&&H.push(A.upNextProgramText);return H};
_.q.scheduleInitialUpdatedMetadataRequest=function(){var A,H=(A=this.data)==null?void 0:A.updatedMetadataEndpoint;if(H){var k;A=Number((k=_.L(H,_.OgZ))==null?void 0:k.initialDelayMs);k=isNaN(A)?250:A;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),k)}};
_.q.setSentimentBarWidth=function(){var A=this;_.No(this,function(){var H=_.Va(A.hostElement).querySelector("ytd-menu-renderer");if(H){H=H.topLevelButtons;for(var k=0,d=0;d<H.length;d++){var W=H[d],z=A.get("toggleButtonSupportedData.toggleButtonIdData.id",W.data);if(z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||z==="TOGGLE_BUTTON_ID_TYPE_LIKE")k+=W.clientWidth+8;else break}k&&(A.sentiment.style.width=k-8+" px")}})};
_.q.fetchUpdatedMetadata=function(A){var H;A&&(H={continuation:A});var k;(A=(k=this.data)==null?void 0:k.updatedMetadataEndpoint)&&_.wj().resolve(_.J7).resolveCommand(A,{form:Object.assign({},H,{element:this.hostElement})})};
_.q.onYtServiceRequestSent=function(A,H){H.endpoint&&_.L(H.endpoint,_.BY)&&(this.hasUpdateSentimentBarStateCommands()&&!_.b("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.L(H.endpoint,_.BY).status),this.setSentimentBarWidth())};
_.q.hasUpdateSentimentBarStateCommands=function(){var A,H,k,d,W=(d=(A=this.data)==null?void 0:(H=A.videoActions)==null?void 0:(k=H.menuRenderer)==null?void 0:k.topLevelButtons)!=null?d:[];A=_.r(W);for(H=A.next();!H.done;H=A.next()){H=H.value;W=d=k=void 0;var z=(k=H.toggleButtonRenderer)==null?void 0:(d=k.toggleButtonSupportedData)==null?void 0:(W=d.toggleButtonIdData)==null?void 0:W.id;if(z==="TOGGLE_BUTTON_ID_TYPE_LIKE"||z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){d=k=void 0;H=(d=_.L((k=H.toggleButtonRenderer)==
null?void 0:k.defaultServiceEndpoint,_.nH))==null?void 0:d.commands;if(!H)break;H=_.r(H);for(k=H.next();!k.done;k=H.next())if(_.L(k.value,RKB))return!0}}return!1};
_.q.onYtServiceRequestCompleted=function(A,H){var k;(A=(k=H.data)==null?void 0:k.loggingDirectives)&&_.J5f(_.A7(),A);this.get("continuation.timedContinuationData",H.data)&&this.data&&this.data.updatedMetadataEndpoint&&(H=H.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,H.continuation),H.timeoutMs))};
_.q.computeHasDateText=function(A){return!!A&&!!A.dateText};
_.nP.Object.defineProperties(YS.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d;return!((d=(A=this.data)==null?void 0:(H=A.videoActions)==null?void 0:(k=H.menuRenderer)==null?void 0:k.flexibleItems)==null||!d.length)}}});
YS.prototype.onYtServiceRequestCompleted=YS.prototype.onYtServiceRequestCompleted;YS.prototype.onYtServiceRequestSent=YS.prototype.onYtServiceRequestSent;YS.prototype.dataChanged=YS.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],YS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Xj.YtTaskEmitterBehavior),_.l("design:type",Object)],YS.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],YS.prototype,"data",void 0);_.E([_.C({computed:"computeInfoFormattedStrings(data)"}),_.l("design:type",Array)],YS.prototype,"infoFormattedStrings",void 0);
_.E([_.C({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],YS.prototype,"hasDateText",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],YS.prototype,"wrapVideoActions",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],YS.prototype,"hideSentimentBar",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],YS.prototype,"flexMenuEnabled",null);
_.E([_.ol("#sentiment"),_.l("design:type",Object)],YS.prototype,"sentiment",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YS.prototype,"dataChanged",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],YS.prototype,"onYtServiceRequestSent",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],YS.prototype,"onYtServiceRequestCompleted",null);
_.Q(YS,"ytd-video-primary-info-renderer",function(){if(zT_===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);zT_=A}A=zT_;return A},{mode:1});var unI;var BVI;var PC=function(){return _.a.apply(this,arguments)||this};
_.I(PC,_.a);PC.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
PC.prototype.onTap=function(A){var H=this.data&&this.data.endpoint;H&&!_.XU(_.F_(A),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Ed(this.hostElement,"yt-navigate",{endpoint:H})};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],PC.prototype,"data",void 0);_.E([_.O6({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],PC);
_.Q(PC,"ytd-autotagging-metadata-renderer",function(){if(BVI!==void 0)return BVI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return BVI=A},{mode:1});var eTG;var G3=function(){return _.a.apply(this,arguments)||this};
_.I(G3,_.a);G3.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],G3.prototype,"data",void 0);_.E([_.O6({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],G3);
_.Q(G3,"ytd-autotagging-metadata-row-renderer",function(){if(eTG!==void 0)return eTG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return eTG=A},{mode:1});var xSI;var iDB;var Fl=function(){var A=_.a.apply(this,arguments)||this;A.engagementPanelContent=!1;return A};
_.I(Fl,_.a);Fl.prototype.computeHasDividerLine=function(A,H){return A&&!H};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Fl.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.l("design:type",Boolean)],Fl.prototype,"hasDividerLine",void 0);_.E([_.C(),_.l("design:type",Object)],Fl.prototype,"engagementPanelContent",void 0);
_.E([_.O6({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Fl);
_.Q(Fl,"ytd-metadata-row-header-renderer",function(){if(iDB!==void 0)return iDB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return iDB=A},{mode:1});var hTB;var Xl=function(){return _.a.apply(this,arguments)||this};
_.I(Xl,_.a);Xl.prototype.computeHasDividerLine=function(A){return A};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Xl.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.l("design:type",Boolean)],Xl.prototype,"hasDividerLine",void 0);_.E([_.O6({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Xl);
_.Q(Xl,"ytd-metadata-row-renderer",function(){if(hTB!==void 0)return hTB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return hTB=A},{mode:1});var ODQ;var RTG=function(){return _.a.apply(this,arguments)||this};
_.I(RTG,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],RTG.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],RTG.prototype,"data",void 0);_.E([_.O6({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],RTG);
_.Q(RTG,"ytd-metadata-with-image-row-renderer",function(){if(ODQ!==void 0)return ODQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ODQ=A},{mode:1});var TVG;var Do=function(){var A=_.a.apply(this,arguments)||this;A.rounded=!0;A.fixie=!1;A.fullWidth=!1;return A};
_.I(Do,_.a);_.q=Do.prototype;_.q.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.onDataChanged=function(){var A=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(H){A.onEndpointLinkKeyPress(H)}))};
_.q.onEndpointLinkKeyPress=function(A){A.target===this.endpointLink&&A.keyCode===13&&_.Ed(this.hostElement,"click")};
_.q.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var A;if((A=this.data)==null?0:A.endpoint)_.NT(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.q.onYtNavigate=function(A){this.endpointHref||(A.stopPropagation(),A.preventDefault())};
_.q.onInformationButtonContainerClick=function(A){A.target.id!=="information-button-container"&&(A.stopPropagation(),A.preventDefault())};
_.q.computeStyle=function(A){return A};
_.q.computeIsThumbnailStyle=function(A){return A==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.q.computeThumbnailWidth=function(A){switch(A){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}};
_.q.computeThumbnailObjectFit=function(A){switch(A){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.nP.Object.defineProperties(Do.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Do.prototype.onYtNavigate=Do.prototype.onYtNavigate;Do.prototype.onClick=Do.prototype.onClick;Do.prototype.onDataChanged=Do.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Do.prototype,"componentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],Do.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],Do.prototype,"componentStyle",void 0);_.E([_.C({computed:"computeIsThumbnailStyle(data.style)"}),_.l("design:type",Boolean)],Do.prototype,"isThumbnailStyle",void 0);_.E([_.C({computed:"computeThumbnailObjectFit(data.style)"}),_.l("design:type",String)],Do.prototype,"thumbnailObjectFit",void 0);
_.E([_.C({computed:"computeThumbnailWidth(data.style)"}),_.l("design:type",Number)],Do.prototype,"thumbnailWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Do.prototype,"rounded",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Do.prototype,"fixie",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Do.prototype,"fullWidth",void 0);_.E([_.ol("#endpoint-link"),_.l("design:type",HTMLAnchorElement)],Do.prototype,"endpointLink",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Do.prototype,"onDataChanged",null);_.E([_.G("data.endpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],Do.prototype,"endpointHref",null);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Do.prototype,"onClick",null);
_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Do.prototype,"onYtNavigate",null);_.E([_.O6({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Do);
_.Q(Do,"ytd-rich-metadata-renderer",function(){if(TVG!==void 0)return TVG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return TVG=A},{mode:2});var mSi;var SQ=function(){var A=_.a.apply(this,arguments)||this;A.fixie=!1;A.fullWidth=!1;return A};
_.I(SQ,_.a);SQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
SQ.prototype.computeHasDividerLine=function(A){return A};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],SQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.l("design:type",Boolean)],SQ.prototype,"hasDividerLine",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],SQ.prototype,"fixie",void 0);_.E([_.C(),_.l("design:type",Object)],SQ.prototype,"fullWidth",void 0);
_.E([_.O6({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],SQ);
_.Q(SQ,"ytd-rich-metadata-row-renderer",function(){if(mSi!==void 0)return mSi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return mSi=A},{mode:1});var Cc=function(){var A=_.a.apply(this,arguments)||this;A.engagementPanelContent=!1;A.fixie=!1;A.fullWidth=!1;return A};
_.I(Cc,_.a);
Cc.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"}}}};
Cc.prototype.computeCollapsibleItems=function(A,H,k){return A===void 0||H===void 0||k===void 0||k?[]:A.slice(H)};
Cc.prototype.computeAlwaysShownItems=function(A,H){return A&&A.length?A.slice(0,H):[]};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Cc.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Cc.prototype,"collapsed",void 0);
_.E([_.C({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.l("design:type",Array)],Cc.prototype,"alwaysShownItems",void 0);_.E([_.C({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.l("design:type",Array)],Cc.prototype,"collapsibleItems",void 0);_.E([_.C(),_.l("design:type",Object)],Cc.prototype,"engagementPanelContent",void 0);_.E([_.C(),_.l("design:type",Object)],Cc.prototype,"fixie",void 0);
_.E([_.C(),_.l("design:type",Object)],Cc.prototype,"fullWidth",void 0);_.E([_.O6({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Cc);
_.Q(Cc,"ytd-metadata-row-container-renderer",function(){if(xSI!==void 0)return xSI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return xSI=A},{mode:1});var JQ3;var Kc=function(){return _.a.apply(this,arguments)||this};
_.I(Kc,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Kc.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Kc.prototype,"data",void 0);_.E([_.O6({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Kc);
_.Q(Kc,"ytd-error-corrections-section-item-renderer",function(){if(JQ3!==void 0)return JQ3;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return JQ3=A},{mode:1});var gQB;var az=function(){return _.a.apply(this,arguments)||this};
_.I(az,_.a);az.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],az.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],az.prototype,"data",void 0);_.E([_.O6({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],az);
_.Q(az,"ytd-error-corrections-section-renderer",function(){if(gQB!==void 0)return gQB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return gQB=A},{mode:1});var bD_;var cC=function(){return _.a.apply(this,arguments)||this};
_.I(cC,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],cC.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cC.prototype,"data",void 0);_.E([_.O6({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],cC);
_.Q(cC,"ytd-topic-link-renderer",function(){if(bD_!==void 0)return bD_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return bD_=A},{mode:1});var LZe;var pc=function(){var A=_.a.apply(this,arguments)||this;A.modernLockupV2=_.b("modernize_structured_description_playlist_lockups_v2");return A};
_.I(pc,_.a);pc.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pc.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pc.prototype,"modernLockupV2",void 0);_.E([_.O6({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],pc);
_.Q(pc,"ytd-video-description-course-section-renderer",function(){if(LZe!==void 0)return LZe;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return LZe=A},{mode:1});var vQ_;var Qn=function(){return _.a.apply(this,arguments)||this};
_.I(Qn,_.a);Qn.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Qn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Qn.prototype,"data",void 0);_.E([_.O6({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Qn);
_.Q(Qn,"ytd-video-description-files-section-renderer",function(){if(vQ_!==void 0)return vQ_;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return vQ_=A},{mode:1});var yQ3;var Vn=function(){return _.a.apply(this,arguments)||this};
_.I(Vn,_.a);Vn.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Vn.prototype,"data",void 0);_.E([_.O6({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Vn);
_.Q(Vn,"ytd-video-description-gaming-section-renderer",function(){if(yQ3!==void 0)return yQ3;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return yQ3=A},{mode:1});var jAB;var ET=function(){var A=_.a.apply(this,arguments)||this;A.isExpanded=!1;return A};
_.I(ET,_.a);ET.prototype.computeHasDefaultMetadataEndpoint=function(A){var H;A=A==null?void 0:(H=A.defaultMetadata)==null?void 0:H.runs;return!(!A||A.length!==1||!A[0].navigationEndpoint)};
ET.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.nP.Object.defineProperties(ET.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ET.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ET.prototype,"isExpanded",void 0);_.E([_.C({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ET.prototype,"hasDefaultMetadataEndpoint",void 0);
_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ET.prototype,"isExpandable",null);_.E([_.G("data","isExpandable","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ET.prototype,"showExpandedMetadata",null);_.E([_.O6({is:"ytd-info-row-renderer",disableElementRegistration:!0})],ET);
_.Q(ET,"ytd-info-row-renderer",function(){if(jAB!==void 0)return jAB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return jAB=A},{mode:1});var IjV;var UT=function(){var A=_.a.apply(this,arguments)||this;A.currentIndex=0;A.supportComponentResize=!0;A.JSC$20487_lastScrollContainerWidth=NaN;return A};
_.I(UT,_.a);_.q=UT.prototype;
_.q.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"}}}};
_.q.getItemsPath=function(){return"videoLockups"};
_.q.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.q.onIronResize=function(){this.updateVideoLockupStyles()};
_.q.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.q.updateVideoLockupStyles=function(){var A;this.JSC$20487_scrollContainer!==void 0&&(A=this.videoLockups)!=null&&A.length&&(A=this.JSC$20487_scrollContainer.clientWidth,A!==this.JSC$20487_lastScrollContainerWidth&&(this.JSC$20487_lastScrollContainerWidth=A,_.NH(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(A*.8,415)+"px"}),_.Ed(this.hostElement,"iron-resize")))};
_.nP.Object.defineProperties(UT.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var A=[],H;if((H=this.data)==null||!H.carouselLockups)return A;H=_.r(this.data.carouselLockups);for(var k=H.next();!k.done;k=H.next()){k=k.value;var d=void 0;((d=_.L(k,Sf_))==null?0:d.videoLockup)&&A.push(_.L(k,Sf_).videoLockup)}return A}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoLockups)==null||!A.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var A=[],H;if((H=this.data)==null||!H.carouselLockups)return A;var k;return(k=_.L(this.data.carouselLockups[this.scrollCount],Sf_))==null?void 0:k.infoRows}}});
UT.prototype.dataChanged=UT.prototype.dataChanged;UT.prototype.onIronResize=UT.prototype.onIronResize;UT.prototype.hiddenChanged=UT.prototype.hiddenChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],UT.prototype,"componentBehavior",void 0);_.E([_.P(_.pg.YtdHorizontalListBehavior),_.l("design:type",Object)],UT.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],UT.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],UT.prototype,"inlineStructuredDescription",void 0);_.E([_.C({value:2}),_.l("design:type",Number)],UT.prototype,"initialCount",void 0);_.E([_.C(),_.l("design:type",Object)],UT.prototype,"currentIndex",void 0);
_.E([_.C(),_.l("design:type",Number)],UT.prototype,"scrollCount",void 0);_.E([_.C(),_.l("design:type",Object)],UT.prototype,"supportComponentResize",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],UT.prototype,"contentHidden",void 0);_.E([_.ol("#scroll-container"),_.l("design:type",HTMLDivElement)],UT.prototype,"JSC$20487_scrollContainer",void 0);
_.E([_.fF("contentHidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UT.prototype,"hiddenChanged",null);_.E([_.G("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],UT.prototype,"videoLockups",null);_.E([_.G("videoLockups"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UT.prototype,"hasVideoLockups",null);
_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UT.prototype,"onIronResize",null);_.E([_.G("data","scrollCount"),_.l("design:type",Object),_.l("design:paramtypes",[])],UT.prototype,"infoRows",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UT.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],UT);
_.Q(UT,"ytd-video-description-music-section-renderer",function(){if(IjV!==void 0)return IjV;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return IjV=A},{mode:2});var Y1I;var lj=function(){return _.a.apply(this,arguments)||this};
_.I(lj,_.a);lj.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.E([_.C({}),_.l("design:type",Object)],lj.prototype,"data",void 0);_.E([_.O6({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],lj);
_.Q(lj,"ytd-video-description-transcript-section-renderer",function(){if(Y1I!==void 0)return Y1I;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Y1I=A},{mode:1});var POL;_.Sw(_.c(function(A){var H=_.o9(_.VQV,function(){return A.data().firstProviderLinkStatusEntityKey}),k=_.o9(_.VQV,function(){return A.data().secondProviderLinkStatusEntityKey}),d=function(){var W,z;
return((W=H())==null?void 0:W.linked)||((z=k())==null?void 0:z.linked)};
return _.x("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.x(_.j$,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return A.data().sectionTitle}}),_.x(_.j$,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return d()?A.data().connectedMessage:A.data().notConnectedMessage}}),_.x(_.R,{cond:d,
then:function(){return _.x(_.HG,{data:function(){return A.data().connectedButton}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.x(_.R,{cond:function(){return!d()},
then:function(){return _.x(_.HG,{data:function(){return A.data().notConnectedButton}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Rh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;return _.x("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.x("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.x(_.j$,{text:function(){return H().sectionTitle}})),_.x("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.x(_.j$,{text:function(){return H().bodyHeader}})),_.x("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.x(_.j$,{text:function(){return H().bodyText}})),_.x(_.R,{cond:function(){return H().attributionText},
then:function(){return _.x("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.x(_.j$,{text:function(){return H().attributionText}}))}}))},"Sh"),"how-this-was-made-section-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){return _.x("yt-video-description-youchat-section-view-model",{class:_.ER("ytVideoDescriptionYouchatSectionViewModelHost")},_.x("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.x(_.j$,{text:function(){return A.data().sectionTitle}})),_.x("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.x(_.j$,{text:function(){return A.data().subHeaderText}})),_.x("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.x(_.U7,{data:function(){return _.L(A.data().primaryButton,
_.vY)}})))},"Th"),"yt-video-description-youchat-section-view-model",{props:{data:_.Ih}});var tR=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return A};
_.I(tR,_.a);_.q=tR.prototype;
_.q.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}}}}}};
_.q.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.q.dataChanged=function(){var A,H;this.hasDescriptionOnly=!(((A=this.data)==null?void 0:(H=A.items)==null?void 0:H.length)!==1||!_.L(this.data.items[0],mU))};
_.q.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.q.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.q.autoFocusDescription=function(){var A;((A=_.wj().resolve(_.fZ(_.ah)))==null?0:A.isKeyBoardInUse())&&this.description&&_.UY(this.description)};
_.q.resize=function(){if(_.b("kevlar_disable_sd_resize"))this.JSC$20494_cardList&&_.Ed(this.JSC$20494_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Ed(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Ed(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.q.scrollToSection=function(A){if(A=this.getSectionElement(A))_.Ud(this.hostElement,"yt-scroll-to-watch-element",[A]),A.focus()};
_.q.getSectionElement=function(A){switch(A){case "infocards-item-section":var H;return(H=this.infocardsSection)!=null?H:null;case "transcript-item-section":var k;return(k=this.transcriptSection)!=null?k:null;case "how-this-was-made-section-item-section":var d;return(d=this.howThisWasMadeSection)!=null?d:null;case "files-item-section":var W;return(W=this.filesSection)!=null?W:null;default:return null}};
_.q.handleSetActiveItemAction=function(A){var H=_.L(A,qEQ),k=H&&(H==null?void 0:H.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20494_cardList;if(H&&k){A=this.currentActiveChapter;var d=this.currentActiveProblem;H=k==null?void 0:k.getItemByIndex(H.itemIndex);var W=k=!0;H&&(H.active=!0,H.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(k=A!==H,W=!1,this.currentActiveChapter=H):(H==null?void 0:H.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(k=!1,W=d!==H,this.currentActiveProblem=H));A&&k&&(A.active=!1);d&&W&&(d.active=!1)}};
_.nP.Object.defineProperties(tR.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Wl("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
tR.prototype.onYtExpanderMoreTapped=tR.prototype.onYtExpanderMoreTapped;tR.prototype.onHiddenChanged=tR.prototype.onHiddenChanged;tR.prototype.dataChanged=tR.prototype.dataChanged;tR.prototype.panelContentVisibleChanged=tR.prototype.panelContentVisibleChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],tR.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.WU),_.l("design:type",Object)],tR.prototype,"ironResizableBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],tR.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],tR.prototype,"panelContentVisible",void 0);_.E([_.C(),_.l("design:type",Boolean)],tR.prototype,"hasDescriptionOnly",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tR.prototype,"inlineStructuredDescription",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tR.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tR.prototype,"shortsPanel",void 0);_.E([_.C(),_.l("design:type",Object)],tR.prototype,"videoSummary",void 0);_.E([_.C(),_.l("design:type",Object)],tR.prototype,"merchShelf",void 0);
_.E([_.G("videoSummary"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tR.prototype,"showVideoSummary",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tR.prototype,"engagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tR.prototype,"watchWhileSdp",void 0);_.E([_.ol("ytd-expandable-video-description-body-renderer"),_.l("design:type",Object)],tR.prototype,"description",void 0);
_.E([_.ol("ytd-horizontal-card-list-renderer"),_.l("design:type",Object)],tR.prototype,"JSC$20494_cardList",void 0);_.E([_.ol("ytd-horizontal-card-list-renderer[center-items]"),_.l("design:type",Object)],tR.prototype,"problemWalkthroughCardList",void 0);_.E([_.ol("ytd-shelf-renderer"),_.l("design:type",Object)],tR.prototype,"shelfSection",void 0);_.E([_.ol("ytd-video-description-music-section-renderer"),_.l("design:type",Object)],tR.prototype,"musicMetadataSection",void 0);
_.E([_.ol("ytd-video-description-infocards-section-renderer"),_.l("design:type",Object)],tR.prototype,"infocardsSection",void 0);_.E([_.ol("ytd-video-description-transcript-section-renderer"),_.l("design:type",Object)],tR.prototype,"transcriptSection",void 0);_.E([_.ol("how-this-was-made-section-view-model"),_.l("design:type",Object)],tR.prototype,"howThisWasMadeSection",void 0);_.E([_.ol("ytd-video-description-files-section-renderer"),_.l("design:type",Object)],tR.prototype,"filesSection",void 0);
_.E([_.fF("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tR.prototype,"panelContentVisibleChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tR.prototype,"dataChanged",null);_.E([_.fF("hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tR.prototype,"onHiddenChanged",null);
_.E([_.Ze("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tR.prototype,"onYtExpanderMoreTapped",null);_.E([_.O6({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],tR);
_.Q(tR,"ytd-structured-description-content-renderer",function(){if(POL!==void 0)return POL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return POL=A},{mode:2});var Nd=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return A};
_.I(Nd,_.a);_.q=Nd.prototype;_.q.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"}}}};
_.q.dataChanged=function(){var A;this.descriptionToggled=!((A=this.data)==null||!A.defaultExpanded);var H;this.collapsed=this.descriptionAlwaysCollapsed||!((H=this.data)==null?0:H.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.t8(110509);this.showLessClientVe=_.t8(110510);A=_.hx();H=_.ii();A&&H&&_.ym(A,H,[this.showMoreClientVe,this.showLessClientVe])};
_.q.onYtExpanderMoreTapped=function(){var A,H=(A=this.data)==null?void 0:A.showMoreCommand;H&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(H);(A=_.hx())&&this.showMoreClientVe&&_.P0(A,this.showMoreClientVe)};
_.q.onYtExpanderLessTapped=function(){var A=_.hx();A&&this.showLessClientVe&&_.P0(A,this.showLessClientVe);var H;(A=(H=this.data)==null?void 0:H.showLessCommand)&&this.componentBehavior.resolveCommand(A)};
_.q.handleUpdateDateTextAction=function(A){this.data&&this.data.dateText&&this.set("data.dateText",_.L(A,G$_).dateText)};
_.q.handleUpdateDescriptionAction=function(A){if(A=_.L(A,_.x6w))A.isEmpty||!A.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.B8(A.description)):this.set("data.description",A.description)};
_.q.onYtChangeEngagementPanelVisibilityAction=function(A){if(_.b("web_structured_description_show_more")||_.b("web_engagement_panel_open_description")){var H,k=(H=_.L(A,_.rgA))==null?void 0:H.targetId,d;A=((d=_.L(A,_.rgA))==null?void 0:d.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";k==="engagement-panel-structured-description"&&A&&(this.descriptionToggled=!0)}};
_.q.updateCollapsedFromBinding=function(A){this.collapsed=A.detail.value};
_.q.updateDescriptionToggledFromBinding=function(A){this.descriptionToggled=A.detail.value};
_.q.updateCanCollapseFromBinding=function(A){this.canCollapse=A.detail.value};
_.nP.Object.defineProperties(Nd.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.data)==null?void 0:(H=A.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer;return!!k&&!!k.rows&&k.rows.length>k.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.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}}});
Nd.prototype.onYtExpanderLessTapped=Nd.prototype.onYtExpanderLessTapped;Nd.prototype.onYtExpanderMoreTapped=Nd.prototype.onYtExpanderMoreTapped;Nd.prototype.dataChanged=Nd.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Nd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Nd.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Nd.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],Nd.prototype,"collapsed",void 0);_.E([_.C(),_.l("design:type",Boolean)],Nd.prototype,"descriptionToggled",void 0);
_.E([_.C(),_.l("design:type",Boolean)],Nd.prototype,"canCollapse",void 0);_.E([_.C(),_.l("design:type",Object)],Nd.prototype,"subscribeButtonData",void 0);_.E([_.C(),_.l("design:type",Number)],Nd.prototype,"descriptionCollapsedHeight",void 0);_.E([_.C(),_.l("design:type",Object)],Nd.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.C({value:function(){return _.b("web_watch_description_always_collapsed")}}),
_.l("design:type",Boolean)],Nd.prototype,"descriptionAlwaysCollapsed",void 0);_.E([_.ol("#description"),_.l("design:type",HTMLDivElement)],Nd.prototype,"description",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nd.prototype,"dataChanged",null);_.E([_.Ze("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nd.prototype,"onYtExpanderMoreTapped",null);
_.E([_.Ze("yt-expander-less-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nd.prototype,"onYtExpanderLessTapped",null);_.E([_.G("data.metadataRowContainer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nd.prototype,"metadataCollapsible",null);_.E([_.G("data","structuredDescriptionContentRenderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nd.prototype,"hasInlineStructuredDescription",null);
_.E([_.G("data.attributedDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nd.prototype,"hasAttributedDescription",null);_.E([_.G("hasInlineStructuredDescription","collapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nd.prototype,"loadStructuredDescription",null);_.E([_.G("data","structuredDescriptionContentRenderer","collapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nd.prototype,"showInlineStructuredDescription",null);
_.E([_.G("data","hasInlineStructuredDescription","metadataCollapsible"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nd.prototype,"descriptionAlwaysCollapsible",null);
_.Q(Nd,"ytd-video-secondary-info-renderer",function(){if(unI===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);unI=A}A=unI;return A},{mode:2});var Gpe;var Md=function(){return _.a.apply(this,arguments)||this};
_.I(Md,_.a);Md.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Md.prototype,"rendererBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],Md.prototype,"dismissibleItemBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Md.prototype,"rendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Md.prototype,"data",void 0);_.E([_.O6({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Md);
_.Q(Md,"ytd-comment-history-entry-renderer",function(){if(Gpe!==void 0)return Gpe;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Gpe=A},{mode:1});var FZ3;var nc=function(){var A=_.a.apply(this,arguments)||this;A.isCollapsed=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return A};
_.I(nc,_.a);_.q=nc.prototype;_.q.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.onDonateTap=function(){var A=this.get("data.donateButton.buttonRenderer.command");if(A){var H=_.hx(),k=this.get("data.donateButton.buttonRenderer.trackingParams");H&&k&&_.P0(H,_.db(k));this.ytOpenPopupBehavior.openPopup(A)}};
_.q.onShowMore=function(){this.isCollapsed=!1;var A=_.hx(),H=this.get("data.expandButton.buttonRenderer.trackingParams");A&&H&&_.P0(A,_.db(H))};
_.q.onShowLess=function(){this.isCollapsed=!0};
_.q.dataChanged=function(){_.NH(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.q.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.q.handleUpdate=function(A){if(A=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",A))this.set("data.startLabel",A.startLabel),this.set("data.endLabel",A.endLabel),this.set("data.progress",A.progress),this.set("data.amountRaisedLabel",A.amountRaisedLabel),this.dataChanged()};
_.q.handleOpenPopupAction=function(A){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",A)&&_.Ud(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.q.computeHeaderBackgroundUrl=function(A,H){if(A)return H?A.headerBackgroundDarkUrl:A.headerBackgroundUrl};
_.q.isProgressBarVisible=function(A){return!(!A||A.progress===void 0)};
_.q.headerBackgroundClass=function(){return _.pZ("HTML_DIR")==="rtl"?"flip":""};
nc.prototype.dataChanged=nc.prototype.dataChanged;_.E([_.P(_.NY.YtOpenPopupBehavior),_.l("design:type",Object)],nc.prototype,"ytOpenPopupBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],nc.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],nc.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],nc.prototype,"isCollapsed",void 0);_.E([_.C({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.l("design:type",String)],nc.prototype,"headerBackgroundUrl",void 0);_.E([_.C(),_.l("design:type",Boolean)],nc.prototype,"isDarkTheme",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nc.prototype,"dataChanged",null);
_.E([_.O6({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],nc);
_.Q(nc,"ytd-donation-shelf-renderer",function(){if(FZ3!==void 0)return FZ3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return FZ3=A},{mode:1});var Xd1;var DSi=function(){return _.a.apply(this,arguments)||this};
_.I(DSi,_.a);_.E([_.C(),_.l("design:type",Object)],DSi.prototype,"data",void 0);_.E([_.O6({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],DSi);
_.Q(DSi,"ytd-donation-unavailable-renderer",function(){if(Xd1!==void 0)return Xd1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Xd1=A},{mode:1});var S1M;var Zo=function(){var A=_.a.apply(this,arguments)||this;A.playerListenerConfig=null;A.actionMap={"yt-show-watch-page-survey":"openSurvey"};return A};
_.I(Zo,_.a);_.q=Zo.prototype;_.q.dataChanged=function(){var A=this,H=_.Kj();H&&H.getPlayerPromise().then(function(d){A.maybeRemovePlayerListeners(d)});
var k=this.data&&this.data.survey;k&&((k=(k=k.singleOptionSurveyRenderer||k.checkboxSurveyRenderer||k.multiStageSurveyRenderer)&&k.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(H,k):this.openSurvey())};
_.q.triggerWatchPageSurvey=function(A,H){var k=this,d,W,z,u,B,h,O,T,m;return _.e(function(J){if(J.nextAddress==1)return A?J.yield(A.getPlayerPromise(),2):J.return();k.player=J.yieldResult;if(!k.player)return J.return();d={};W=_.r(H);for(z=W.next();!z.done;z=W.next())u=z.value,B=_.r(k.createEventListenerPair(u)),h=B.next().value,O=B.next().value,T=h,m=O,T&&m&&(d[T]=m,k.ytPlayerListenerBehavior.listenToPlayerEvent(k.player,T,m));k.playerListenerConfig=d;_.EN(J)})};
_.q.createEventListenerPair=function(A){var H=A.playbackEventTrigger;return H?this.handlePlaybackTrigger(H):(A=A.watchTimeTrigger)?this.handleWatchTimeTrigger(A):[void 0,void 0]};
_.q.handleWatchTimeTrigger=function(A){var H=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var k=A.videoWatchFraction,d=A.watchTimeSec;return d&&k?["onVideoProgress",function(){H.player&&H.isWatchTimeConditionMet(H.player,k,d)&&H.showSurvey()}]:[void 0,
void 0]};
_.q.isWatchTimeConditionMet=function(A,H,k){var d=A.getProgressState(),W=d.current-this.lastKnownPlaybackPosition;W<5&&(this.accumulatedMediaTime+=W);this.lastKnownPlaybackPosition=d.current;d=Math.round(this.accumulatedMediaTime/d.duration*1E3)/1E3;return A.getPresentingPlayerType&&A.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>k||d>H)};
_.q.handlePlaybackTrigger=function(A){var H=this;A=A.playbackEvent;if(A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var k="onStateChange";var d=function(W){W===0&&H.showSurvey()}}else A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(k="onVideoProgress",d=function(W){H.player&&H.player.getPresentingPlayerType&&H.player.getPresentingPlayerType()===1&&W&&H.showSurvey()}):A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(k="onAdEnd",d=this.showSurvey);
return[k,d]};
_.q.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.q.openSurvey=function(){var A=this,H=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(CS_(!!H));_.IE.addJob(function(){A.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:H}})},0,0)};
_.q.maybeRemovePlayerListeners=function(A){if(this.playerListenerConfig){for(var H=_.r(Object.keys(this.playerListenerConfig)),k=H.next();!k.done;k=H.next())k=k.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(A,k,this.playerListenerConfig[k]);this.playerListenerConfig=null}};
Zo.prototype.dataChanged=Zo.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],Zo.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],Zo.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Zo.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],Zo.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Zo.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Zo.prototype,"playerListenerConfig",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],Zo.prototype,"lastKnownPlaybackPosition",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],Zo.prototype,"accumulatedMediaTime",void 0);_.E([_.C(),_.l("design:type",Object)],Zo.prototype,"player",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zo.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Zo);
_.Q(Zo,"ytd-survey-trigger-renderer",function(){if(S1M!==void 0)return S1M;var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return S1M=A},{mode:1});var CO_;_.uL("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var fc=function(){var A=_.a.apply(this,arguments)||this;A.role="link";A.tabindex="0";A.actionMap=_.b("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 A};
_.I(fc,_.a);_.q=fc.prototype;_.q.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.bw()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.q.getCurrentTheme=function(){return _.LF()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bw()};
_.q.onThemeSelected=function(A,H){var k=A||H?A:_.g4(),d=(k&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!k&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.ACN(_.Nx(window.location.href));_.kB(0,165,A);_.kB(0,174,H);this.prefs.save();d&&_.Ud(this.hostElement,"yt-dark-mode-toggled-action",[k]);_.Ud(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.q.onTap=function(){this.data.serviceEndpoint&&_.tx(this.hostElement,[this.data.serviceEndpoint])};
_.q.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.q.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.q.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
fc.prototype.onTap=fc.prototype.onTap;fc.prototype.dataChanged=fc.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],fc.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.jh),_.l("design:type",Object)],fc.prototype,"paperItemBehaviors",void 0);_.E([_.C(),_.l("design:type",Object)],fc.prototype,"data",void 0);_.E([_.C({value:function(){return _.sH()}}),
_.l("design:type",_.Kn)],fc.prototype,"prefs",void 0);_.E([_.C(),_.l("design:type",Object)],fc.prototype,"label",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],fc.prototype,"role",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],fc.prototype,"tabindex",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fc.prototype,"dataChanged",null);
_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fc.prototype,"onTap",null);_.E([_.O6({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],fc);
_.Vu()(fc,"ytd-toggle-theme-compact-link-renderer",function(){if(CO_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);CO_=A}A=CO_;return A},{allowedProps:["data"],
mode:1});var KZB;_.uL("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.uL("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var wP=function(){return _.a.apply(this,arguments)||this};
_.I(wP,_.a);_.q=wP.prototype;_.q.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.onKeyUp=function(A){if(A.keyCode===13)this.onTap()};
_.q.onTap=function(){this.data.recordClickEndpoint&&_.wj().resolve(_.J7).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var A=this.data.navigationEndpoint;A&&_.L(A,_.RD)&&_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}})};
_.q.readChanged=function(){var A;_.UJ(this.hostElement,"unread",!((A=this.data)==null?0:A.read))};
_.q.dataChanged=function(){this.data&&_.UJ(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.q.computeThumbnailSize=function(){var A;return((A=this.data)==null?0:A.highPriorityNotification)?32:48};
_.q.getEndpointURL=function(A){return A&&!_.L(A,_.RD)?this.componentBehavior.computeHref_(A):null};
_.q.getEndpointData=function(A){return A&&!_.L(A,_.RD)?A:null};
wP.prototype.computeThumbnailSize=wP.prototype.computeThumbnailSize;wP.prototype.dataChanged=wP.prototype.dataChanged;wP.prototype.readChanged=wP.prototype.readChanged;wP.prototype.onKeyUp=wP.prototype.onKeyUp;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],wP.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],wP.prototype,"data",void 0);_.E([_.C({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.l("design:type",Number)],wP.prototype,"thumbnailSize",void 0);_.E([_.Ze("keyup"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],wP.prototype,"onKeyUp",null);
_.E([_.fF("data.read"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wP.prototype,"readChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wP.prototype,"dataChanged",null);_.E([_.fF("data.highPriorityNotification"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wP.prototype,"computeThumbnailSize",null);
_.E([_.O6({is:"ytd-notification-renderer",disableElementRegistration:!0})],wP);
_.Q(wP,"ytd-notification-renderer",function(){if(KZB!==void 0)return KZB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return KZB=A},{mode:1});var ajM;var oz=function(){return _.a.apply(this,arguments)||this};
_.I(oz,_.a);oz.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"}}}};
oz.prototype.computeActionButtonClass=function(A){return!A.actionButtons||A.actionButtons.length<=1?"single-button":A.description?"vertical-buttons":"horizontal-buttons"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],oz.prototype,"data",void 0);_.E([_.O6({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],oz);
_.Q(oz,"ytd-playlist-show-metadata-renderer",function(){if(ajM!==void 0)return ajM;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return ajM=A},{mode:1});var cQG;_.uL("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var $S=function(){return _.a.apply(this,arguments)||this};
_.I($S,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$S.prototype,"data",void 0);_.E([_.O6({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],$S);
_.Q($S,"ytd-purchase-item-renderer",function(){if(cQG!==void 0)return cQG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cQG=A},{mode:1});var pdB;var QAI={};QAI.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(A){if(A)return A.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(A){if(A==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.uL("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var A4=function(){return _.a.apply(this,arguments)||this};
_.I(A4,_.a);A4.prototype.onYtNavigate=function(A){var H=this.openPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);H&&(A.stopPropagation(),this.openPopupBehavior.openPopup(H))};
A4.prototype.onYtNavigate=A4.prototype.onYtNavigate;_.E([_.P(QAI.YtSimpleTextSectionBehavior),_.l("design:type",Object)],A4.prototype,"ytSimpleTextSectionBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],A4.prototype,"openPopupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],A4.prototype,"data",void 0);
_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],A4.prototype,"onYtNavigate",null);_.E([_.O6({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],A4);
_.Q(A4,"ytd-simple-text-section-renderer",function(){if(pdB!==void 0)return pdB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return pdB=A},{mode:1});var VrB;_.uL("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var EQM=function(){return _.a.apply(this,arguments)||this};
_.I(EQM,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],EQM.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],EQM.prototype,"data",void 0);_.E([_.O6({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],EQM);
_.Q(EQM,"ytd-unlimited-page-feature-info-renderer",function(){if(VrB!==void 0)return VrB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return VrB=A},{mode:1});var USG;var ljG;var HQ=function(){return _.a.apply(this,arguments)||this};
_.I(HQ,_.a);HQ.prototype.dataChanged=function(){if(this.data){var A=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);A&&(A=_.C3(A,screen.width),this.hostElement.style.backgroundImage="url("+A+")")}};
HQ.prototype.dataChanged=HQ.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],HQ.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HQ.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],HQ);
_.Q(HQ,"ytd-post-redemption-section-renderer",function(){if(ljG!==void 0)return ljG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return ljG=A},{mode:1});var tr_;var sL=function(){return _.a.apply(this,arguments)||this};
_.I(sL,_.a);sL.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],sL.prototype,"data",void 0);_.E([_.O6({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],sL);
_.Q(sL,"ytd-ypc-post-redemption-renderer",function(){if(tr_!==void 0)return tr_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tr_=A},{mode:1});_.uL("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var kW=function(){var A=_.a.apply(this,arguments)||this;A.MIN_CODE_LENGTH=12;A.MAX_CODE_LENGTH=24;return A};
_.I(kW,_.a);_.q=kW.prototype;_.q.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.q.created=function(){this.riskService=new _.WDb;this.loadPaymentThenable=_.qgC(_.pZ("YPC_MB_URL"))};
_.q.ready=function(){var A=this;this.code.addEventListener("keypress",function(H){A.onCodeInputKeypress(H)})};
_.q.dataChanged=function(){var A=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(H){H=_.r(H);for(var k=H.next();!k.done;k=H.next())k=k.value,k.type==="attributes"&&k.attributeName==="dark"&&A.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.q.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var A=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+A+")")}};
_.q.computeRedeemButton=function(A){(A=this.get("redeemButton.buttonRenderer",A))&&(A=Object.assign({},A,{serviceEndpoint:void 0}));return A};
_.q.onRedeemButtonTap=function(A){A.stopPropagation();cZB();this.redeemCode()};
_.q.redeemCode=function(){var A=this;this.isLoading=!0;var H=this.riskService.init();_.Ox([H,this.loadPaymentThenable]).then(function(){var k=A.data.redeemButton.buttonRenderer.serviceEndpoint,d=_.z0v(),W=_.QG.payments.business.integration.ClientTokenFactory.createClientToken(_.L(k,_.ovN).countryCode,d);d={c:A.code.value.trim(),rd:window.btoa(d),ctk:W};k&&_.wj().resolve(_.J7).resolveCommand(k,{form:Object.assign({},d,{element:A.hostElement})})},function(){A.showGenericError();
p0e("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.V$(Error("Al"))})};
_.q.onYtServiceRequestCompleted=function(A){A.stopPropagation();this.isLoading=!1;var H,k;this.errorMessage=(H=A.detail)==null?void 0:(k=H.data)==null?void 0:k.errorMessage;var d,W;this.postRedemptionRenderer=(d=A.detail)==null?void 0:(W=d.data)==null?void 0:W.renderer;var z,u;if(A=(z=A.detail)==null?void 0:(u=z.data)==null?void 0:u.redirectEndpoint)this.isLoading=!0,_.Ed(this.hostElement,"yt-navigate",{endpoint:A});this.errorMessage?p0e("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
A)&&wG("ypcRedeemFlowSucceeded")};
_.q.onYtServiceRequestError=function(A){A.stopPropagation();this.isLoading=!1;if(A=this.get("detail.error.message",A))this.errorMessage=_.Yu(A);p0e("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.q.onInvokeInstrumentManagerActionCompleted=function(A){A.stopPropagation();this.redeemCode()};
_.q.onInvokeInstrumentManagerActionError=function(A){A.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",A)){case "instrumentManagerLoadError":this.showGenericError();p0e("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();p0e("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":wG("ypcRedeemFlowCancelled")}};
_.q.onInput=function(){var A=this;_.vW(this,"onInput",function(){var H=A.code.value.trim();A.redeemButtonDisabled=H.length<A.MIN_CODE_LENGTH||H.length>A.MAX_CODE_LENGTH},200)};
_.q.onCodeInputKeypress=function(A){A.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(cZB(),this.redeemCode())};
_.q.computeImageUrl=function(A){return A?_.C3(A.thumbnails,600):null};
_.q.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
kW.prototype.onInvokeInstrumentManagerActionError=kW.prototype.onInvokeInstrumentManagerActionError;kW.prototype.onInvokeInstrumentManagerActionCompleted=kW.prototype.onInvokeInstrumentManagerActionCompleted;kW.prototype.onYtServiceRequestError=kW.prototype.onYtServiceRequestError;kW.prototype.onYtServiceRequestCompleted=kW.prototype.onYtServiceRequestCompleted;kW.prototype.dataChanged=kW.prototype.dataChanged;
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kW.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],kW.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",Boolean)],kW.prototype,"redeemButtonDisabled",void 0);
_.E([_.C(),_.l("design:type",Object)],kW.prototype,"errorMessage",void 0);_.E([_.C(),_.l("design:type",Object)],kW.prototype,"postRedemptionRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],kW.prototype,"observer",void 0);_.E([_.ol("#code"),_.l("design:type",HTMLInputElement)],kW.prototype,"code",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kW.prototype,"dataChanged",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],kW.prototype,"onYtServiceRequestCompleted",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],kW.prototype,"onYtServiceRequestError",null);
_.E([_.Ze("yt-invoke-instrument-manager-action-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],kW.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.E([_.Ze("yt-invoke-instrument-manager-action-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],kW.prototype,"onInvokeInstrumentManagerActionError",null);_.E([_.O6({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],kW);
_.Q(kW,"ytd-redeem-code-renderer",function(){if(USG!==void 0)return USG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return USG=A},{mode:1});var NV3;_.uL("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var dQ=function(){var A=_.a.apply(this,arguments)||this;A.businessEmailDisplayState="HIDE_SECTION";return A};
_.I(dQ,_.a);_.q=dQ.prototype;_.q.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}}}}}};
_.q.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"};
_.q.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.q.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.bi(_.ZyG),this.businessEmailDisplayState="CAPTCHA"))};
_.q.onYtServiceRequestCompleted=function(A){var H;if((H=A.detail.data)==null?0:H.businessEmail)this.businessEmail=A.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var k;if((k=A.detail.data)==null?0:k.errorMessage)this.businessEmailErrorMessage=A.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.q.computeEmailHref=function(A){return"mailto:"+A};
_.q.computeSafeUrl=function(A){if(A)return _.fx(A)};
_.q.onBusinessEmailCaptchaSubmit=function(){var A;(A=this.data)!=null&&A.onBusinessEmailRevealClickCommand&&(A=this.JSC$20554_captchaTextarea.value)&&(A={recaptcha_response_token:A,channel_id:this.data.channelId},_.wj().resolve(_.J7).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},A,{element:this.hostElement})}))};
_.q.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.nP.Object.defineProperties(dQ.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 A,H;return!((A=this.data)==null||!A.primaryLinks)&&!((H=this.data)==null?0:H.links)&&this.data.primaryLinks.every(function(k){return k.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var A,H;return!((A=this.data)==null||!A.primaryLinks)&&!((H=this.data)==null?0:H.links)&&!this.shouldShowNewLinks}}});
dQ.prototype.onYtServiceRequestCompleted=dQ.prototype.onYtServiceRequestCompleted;dQ.prototype.dataChanged=dQ.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],dQ.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.ol("#g-recaptcha-response"),_.l("design:type",HTMLTextAreaElement)],dQ.prototype,"JSC$20554_captchaTextarea",void 0);_.E([_.C(),_.l("design:type",Object)],dQ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],dQ.prototype,"businessEmailDisplayState",void 0);_.E([_.C(),_.l("design:type",String)],dQ.prototype,"businessEmail",void 0);_.E([_.C(),_.l("design:type",String)],dQ.prototype,"businessEmailErrorMessage",void 0);
_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dQ.prototype,"hideDetailsSection",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dQ.prototype,"dataChanged",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dQ.prototype,"shouldShowNewLinks",null);_.E([_.G("data","shouldShowLinks"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dQ.prototype,"shouldShowLegacyLinks",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dQ.prototype,"onYtServiceRequestCompleted",null);_.E([_.O6({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],dQ);
_.Q(dQ,"ytd-channel-about-metadata-renderer",function(){if(NV3!==void 0)return NV3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return NV3=A},{mode:1});var Mri;_.uL("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var WQ=function(){return _.a.apply(this,arguments)||this};
_.I(WQ,_.a);WQ.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]]"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],WQ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],WQ.prototype,"lockupContainerType",void 0);_.E([_.C(),_.l("design:type",String)],WQ.prototype,"thumbnailFixedWidth",void 0);
_.E([_.O6({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],WQ);
_.Q(WQ,"ytd-channel-featured-content-renderer",function(){if(Mri!==void 0)return Mri;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Mri=A},{mode:1});var nQB;_.uL("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var zI=function(){var A=_.a.apply(this,arguments)||this;A.roundContainer=!0;A.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return A};
_.I(zI,_.a);_.q=zI.prototype;_.q.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q.dataChanged=function(){this.imageWidth=this.imageHeight=24;var A=this.data;A.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!A.style&&A.image&&A.image.thumbnails.length&&(A=A.image.thumbnails[0],this.imageWidth=A.width||0,this.imageHeight=A.height||0)};
_.q.computeSource=function(A){return A.secondarySource?_.PK(A.secondarySource):_.PK(A.source)};
_.q.computeClarifyStyle=function(A){return A?A.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.q.isLargeStyle=function(A){return A==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.q.computeBackgroundStyle=function(A){return A?A.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.q.computeHasActionButton=function(A){return!!A.actionButton};
_.q.computeHasBottomSection=function(A){return!!A.ctaHasBottomSection};
_.q.computeIsSourceMissing=function(A){return A.ctaHasBottomSection===!1?!0:A&&this.computeSource(A)?!1:!0};
_.q.computeSecondaryEndpoint=function(A){return A.secondaryEndpoint||A.endpoint};
zI.prototype.dataChanged=zI.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zI.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],zI.prototype,"imageWidth",void 0);_.E([_.C(),_.l("design:type",Number)],zI.prototype,"imageHeight",void 0);
_.E([_.C({computed:"computeSecondaryEndpoint(data)"}),_.l("design:type",Object)],zI.prototype,"secondaryEndpoint",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.l("design:type",Boolean)],zI.prototype,"hasActionButton",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.l("design:type",Boolean)],zI.prototype,"hasBottomSection",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.l("design:type",Boolean)],zI.prototype,"missingSource",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],zI.prototype,"icon",void 0);_.E([_.C({computed:"computeIcon_(data.secondaryIcon)"}),_.l("design:type",String)],zI.prototype,"secondaryIcon",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.l("design:type",String)],zI.prototype,"clarifyStyle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.l("design:type",String)],zI.prototype,"backgroundStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],zI.prototype,"roundContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],zI.prototype,"amsterdamEnabled",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zI.prototype,"dataChanged",null);
_.E([_.O6({is:"ytd-clarification-renderer",disableElementRegistration:!0})],zI);
_.Q(zI,"ytd-clarification-renderer",function(){if(nQB!==void 0)return nQB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return nQB=A},{mode:1});var ZDM;_.uL("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var qk=function(){return _.a.apply(this,arguments)||this};
_.I(qk,_.a);_.q=qk.prototype;_.q.computeHasPrimaryIcon=function(A){return!(!A.icon&&!A.thumbnail)};
_.q.computeHasSecondary=function(A){return!(!A.secondaryIcon&&!A.secondaryNotificationText)};
_.q.computeHideSecondaryString=function(A){return!_.b("disable_hide_empty_secondary_string")&&!A.secondaryNotificationText};
_.q.computeCompactLinkStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.q.computeHasFitHeight=function(A){return A==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.q.isActiveEndpoint=function(A){return(A=this.get("commandMetadata.webCommandMetadata.url",A))?_.Nx(window.location.href)!=="/account_transfer_channel"&&_.Nx(window.location.href)!=="/gaia_link"&&_.Nx(window.location.href)!=="/channel_switcher"||A!=="/account"?_.Nx(window.location.href)===A:!0:!1};
_.q.onTap=function(){var A;((A=this.data)==null?0:A.serviceEndpoint)&&_.tx(this.hostElement,[this.data.serviceEndpoint])};
qk.prototype.onTap=qk.prototype.onTap;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],qk.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.l("design:type",Boolean)],qk.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.l("design:type",String)],qk.prototype,"compactLinkStyle",void 0);
_.E([_.C({computed:"computeIcon_(data.icon)"}),_.l("design:type",Object)],qk.prototype,"icon",void 0);_.E([_.C({computed:"computeIcon_(data.secondaryIcon)"}),_.l("design:type",Object)],qk.prototype,"secondaryIcon",void 0);_.E([_.C({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],qk.prototype,"hasSecondary",void 0);_.E([_.C({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],qk.prototype,"hideSecondaryString",void 0);
_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qk.prototype,"onTap",null);_.E([_.O6({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],qk);
_.Q(qk,"ytd-compact-link-renderer",function(){if(ZDM!==void 0)return ZDM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ZDM=A},{mode:1});var fjG;var wd3;var rQ=function(){var A=_.a.apply(this,arguments)||this;A.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return A};
_.I(rQ,_.a);_.q=rQ.prototype;_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.q.computeIcon=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.q.computeUseContacts=function(A){return!!A.contacts&&A.contacts.length>0};
_.q.computePhoneContact=function(A){var H,k;return(H=A.contacts)==null?void 0:(k=H.find(function(d){var W;return(d==null?void 0:(W=d.icon)==null?void 0:W.iconType)==="PHONE"}))==null?void 0:k.actionText};
_.q.computeSmsContact=function(A){var H,k;return(H=A.contacts)==null?void 0:(k=H.find(function(d){var W;return(d==null?void 0:(W=d.icon)==null?void 0:W.iconType)==="SMS"}))==null?void 0:k.actionText};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],rQ.prototype,"amsterdamEnabled",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.l("design:type",Boolean)],rQ.prototype,"useContacts",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.l("design:type",String)],rQ.prototype,"phoneContact",void 0);_.E([_.O6({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],rQ);
_.Q(rQ,"ytd-single-action-emergency-support-renderer",function(){if(wd3!==void 0)return wd3;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return wd3=A},{mode:1});_.uL("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var uX=function(){var A=_.a.apply(this,arguments)||this;A.roundedContainer=!0;A.amsterdamEnabled=_.b("enable_desktop_amsterdam_info_panels");return A};
_.I(uX,_.a);uX.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"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uX.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],uX.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],uX.prototype,"amsterdamEnabled",void 0);
_.E([_.O6({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],uX);
_.Q(uX,"ytd-emergency-onebox-renderer",function(){if(fjG!==void 0)return fjG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return fjG=A},{mode:1});var oQ1;_.uL("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var BQ=function(){return _.a.apply(this,arguments)||this};
_.I(BQ,_.a);BQ.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],BQ.prototype,"data",void 0);_.E([_.O6({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],BQ);
_.Q(BQ,"ytd-exploratory-results-renderer",function(){if(oQ1!==void 0)return oQ1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return oQ1=A},{mode:1});var $S_;_.uL("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var e4=function(){var A=_.a.apply(this,arguments)||this;A.messageData=null;return A};
_.I(e4,_.a);_.q=e4.prototype;_.q.onServiceRequestCompleted=function(A,H){A=H.actions||[];H=0;for(var k=A.length;H<k;H++){var d=A[H],W=void 0,z=void 0;if((W=_.L(d,_.AS))==null?0:(z=W.item)==null?0:z.messageRenderer)this.messageData=_.L(d,_.AS).item.messageRenderer}};
_.q.dataChanged=function(){var A=this.data;this.hostElement.hidden=!1;_.UJ(this.hostElement,"is-channel",A&&!A.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.q.computeThumbnailWidth=function(A){return A?126:56};
_.q.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.q.onSubmitTap=function(){var A=this.data,H=this.selectedResponseIndex;A!==void 0&&H!==void 0&&(A=A.responses[H],A.responseData&&_.wj().resolve(_.J7).resolveCommand(A.responseData,{form:{element:this.hostElement}}))};
_.q.onDismissTap=function(){this.hostElement.hidden=!0;var A=this.data;A!==void 0&&A.dismissalEndpoint&&_.wj().resolve(_.J7).resolveCommand(A.dismissalEndpoint,{form:{element:this.hostElement}})};
_.q.updateSelectedResponseIndexFromBinding=function(A){this.selectedResponseIndex=A.detail.value};
e4.prototype.onSelectedResponseIndexChange=e4.prototype.onSelectedResponseIndexChange;e4.prototype.dataChanged=e4.prototype.dataChanged;e4.prototype.onServiceRequestCompleted=e4.prototype.onServiceRequestCompleted;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],e4.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],e4.prototype,"messageData",void 0);
_.E([_.C(),_.l("design:type",Number)],e4.prototype,"selectedResponseIndex",void 0);_.E([_.ol("#submit-button"),_.l("design:type",HTMLButtonElement)],e4.prototype,"submitButton",void 0);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],e4.prototype,"onServiceRequestCompleted",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],e4.prototype,"dataChanged",null);
_.E([_.fF("selectedResponseIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],e4.prototype,"onSelectedResponseIndexChange",null);_.E([_.O6({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],e4);
_.Q(e4,"ytd-feedback-elicitation-single-question-renderer",function(){if($S_!==void 0)return $S_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return $S_=A},{mode:1});var AJV;var xW=function(){return _.a.apply(this,arguments)||this};
_.I(xW,_.a);xW.prototype.computeIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xW.prototype,"data",void 0);_.E([_.O6({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],xW);
_.Q(xW,"ytd-limited-state-message-renderer",function(){if(AJV!==void 0)return AJV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return AJV=A},{mode:1});var HRL;var iX=function(){return _.a.apply(this,arguments)||this};
_.I(iX,_.a);iX.prototype.computeThumbnailWidth=function(A){return A?602:428};
iX.prototype.updateWideFromBinding=function(A){this.wide=A.detail.value};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],iX.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],iX.prototype,"wide",void 0);_.E([_.O6({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],iX);
_.Q(iX,"ytd-newspaper-hero-video-renderer",function(){if(HRL!==void 0)return HRL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return HRL=A},{mode:1});var sf1;var kQB=function(){return _.a.apply(this,arguments)||this};
_.I(kQB,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kQB.prototype,"rendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kQB.prototype,"data",void 0);_.E([_.O6({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],kQB);
_.Q(kQB,"ytd-newspaper-mini-video-renderer",function(){if(sf1!==void 0)return sf1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return sf1=A},{mode:1});var ds_;_.uL("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var h4=function(){return _.a.apply(this,arguments)||this};
_.I(h4,_.a);h4.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"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],h4.prototype,"data",void 0);_.E([_.O6({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],h4);
_.Q(h4,"ytd-newspaper-renderer",function(){if(ds_!==void 0)return ds_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ds_=A},{mode:1});var WhR;_.uL("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var OL=function(){var A=_.a.apply(this,arguments)||this;A.isSegment=!1;A.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};A.nextContinuation={continuationType:"playlistVideoListContinuation"};return A};
_.I(OL,_.a);_.q=OL.prototype;_.q.created=function(){var A=this;this.JSC$20593_ytReorderableController=new _.Qjj(101,function(H){A.handleDrop(H)})};
_.q.attached=function(){_.wj();var A;(A=_.wj().resolve(_.fZ(_.hN)))!=null&&(A.playlistVideoListElement=this.hostElement)};
_.q.detached=function(){var A;(A=_.wj().resolve(_.fZ(_.hN)))!=null&&(A.playlistVideoListElement=void 0);A=_.wj().resolve(_.fZ(_.oe));_.b("web_enable_voting_animation")&&A&&(A.parentElem=void 0,A.videos=[],A.continuationsPresent=!1,A.showRefreshPill=!1);_.Hx(this.JSC$20593_ytReorderableController)};
_.q.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"}}}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.q.dataChanged=function(){var A=_.wj().resolve(_.fZ(_.oe));if(_.b("web_enable_voting_animation")&&this.data&&A){var H=_.Va(this.hostElement).querySelector("#contents");H&&(A.parentElem=H);A.addVideos(this.data.contents)}_.Hx(this.JSC$20593_ytReorderableController)};
_.q.onRendererstamperFinished=function(){this.canReorder&&_.VRi(this.JSC$20593_ytReorderableController,_.Va(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.q.onPlaylistReloading=function(){this.isReloading=!0};
_.q.onUpdateSetVideoId=function(A){if(A.detail&&this.data&&this.data.contents){var H=A.detail;A=this.data.contents.findIndex(function(W){var z;return((z=W.playlistVideoRenderer)==null?void 0:z.videoId)===H.videoId});
if(!(A<0)&&H.setVideoId&&(this.set("data.contents."+A+".playlistVideoRenderer.setVideoId",H.setVideoId),_.b("web_enable_voting_animation"))){var k;if(A=_.L((k=this.data.contents[A].playlistVideoRenderer)==null?void 0:k.engagementBar,_.yHI)){var d;(d=A.actions)==null||d.forEach(function(W){if(W=_.L(W,_.j2V))W.itemId=H.setVideoId})}(k=_.wj().resolve(_.fZ(_.oe)))&&ow_(k,H.videoId,H.setVideoId)}}};
_.q.computeContentsClass=function(A){return A?"reloading":""};
_.q.computeIsSortable=function(A,H){return A&&H>0&&!this.isSegment&&!_.b("shorts_in_playlists_web")};
_.q.computeIsEditable=function(A){return A};
_.q.computeCanReorder=function(A){return A};
_.q.handlePlaylistRemoveVideosAction=function(A){if(this.get("playlistRemoveVideosAction.setVideoIds",A)&&this.data&&this.data.contents){A=_.L(A,_.x2w).setVideoIds;for(var H=this.data.contents.length-1;H>=0;){var k=this.data.contents[H].playlistVideoRenderer;k&&k.setVideoId&&A.includes(k.setVideoId)&&this.splice("data.contents",H,1);H--}_.Ud(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.q.updateIndices=function(){if(this.data&&this.data.contents)for(var A=0;A<this.data.contents.length;A++)this.set("data.contents."+A+".playlistVideoRenderer.index",_.Yu(String(A+1)))};
_.q.handleDrop=function(A){A=A.currDragItem;var H=_.ab(A.parentNode.childNodes,A),k=this.data.contents.splice(Number(_.PK(A.data.index))-1,1)[0];this.data.contents.splice(H,0,k);H=H?this.get("contents."+(H-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();A=this.buildReorderServiceEndpoint(A.data.setVideoId,H);this.ytComponentBehavior.resolveCommand(A)};
_.q.buildReorderServiceEndpoint=function(A,H){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",A),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",H),this.data.onReorderEndpoint):null};
_.q.handleUpdatePlaylistAction=function(A){var H;(A=_.L((H=_.L(A,_.iow))==null?void 0:H.updatedRenderer,_.TsN))&&this.canReorder!==A.canReorder&&this.set("data.canReorder",A.canReorder);A&&A.contents&&(this.set("data.contents",A.contents),this.isReloading=!1);A&&A.continuations&&this.set("data.continuations",A.continuations)};
_.q.handleAddRendererToItemSectionAction=function(A){var H,k=(H=_.L(A,coR))==null?void 0:H.renderer,d;k&&((d=_.L(A,coR))==null?void 0:d.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,k),A=_.wj().resolve(_.fZ(_.oe)),_.b("web_enable_voting_animation")&&A&&(k&&(H=_.vKf(k))&&A.recommendedVideos.push({itemId:H,videoId:_.I0N(k),voteCount:_.Ysm(k),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.q.isVotingEnabledOnPlaylist=function(A){if(!A)return!1;A=_.r(A);for(A=A.next();!A.done;A=A.next()){var H=void 0;return!!_.L((H=A.value.playlistVideoRenderer)==null?void 0:H.engagementBar,_.yHI)}return!1};
_.q.onAppendContinuationItemsActionFinished=function(){var A;this.isVotingEnabledOnPlaylist((A=this.data)==null?void 0:A.contents)&&(this.updateIndices(),A=_.wj().resolve(_.fZ(_.oe)),_.b("web_enable_voting_animation")&&A&&this.data&&A.addVideos(this.data.contents))};
_.q.updateVideoData=function(A){if(A.detail&&this.data&&this.data.contents){var H=A.detail;A=H.toIdx;var k=H.itemId,d=H.newVoteCount,W=H.voteStatus;H=H.hideItem;var z,u,B=(z=this.data)==null?void 0:(u=z.contents)==null?void 0:u.findIndex(function(m){return _.vKf(m)===k});
if(!(B<0)){z=this.data.contents[B];var h;if((h=z.playlistVideoRenderer)==null?0:h.voteCount)z.playlistVideoRenderer.voteCount=d;var O;if(h=_.L((O=z.playlistVideoRenderer)==null?void 0:O.engagementBar,_.yHI)){var T;(T=h.actions)==null||T.forEach(function(m){(m=_.L(m,_.j2V))&&m.initialState&&(m.initialState.votes=d,m.initialState.status=W)})}this.data.contents.splice(B,1);
H||this.data.contents.splice(A,0,z);this.updateIndices()}}};
OL.prototype.updateVideoData=OL.prototype.updateVideoData;OL.prototype.onAppendContinuationItemsActionFinished=OL.prototype.onAppendContinuationItemsActionFinished;OL.prototype.onUpdateSetVideoId=OL.prototype.onUpdateSetVideoId;OL.prototype.onPlaylistReloading=OL.prototype.onPlaylistReloading;OL.prototype.onRendererstamperFinished=OL.prototype.onRendererstamperFinished;OL.prototype.dataChanged=OL.prototype.dataChanged;
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],OL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.So.YtNextContinuationBehavior),_.l("design:type",Object)],OL.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.P(_.DV),_.l("design:type",Object)],OL.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],OL.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],OL.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],OL.prototype,"isReloading",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],OL.prototype,"isSegment",void 0);
_.E([_.C({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.l("design:type",Boolean)],OL.prototype,"isSortable",void 0);_.E([_.C({computed:"computeIsEditable(data.isEditable)"}),_.l("design:type",Boolean)],OL.prototype,"isEditable",void 0);_.E([_.C({computed:"computeCanReorder(data.canReorder)"}),_.l("design:type",Boolean)],OL.prototype,"canReorder",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OL.prototype,"dataChanged",null);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OL.prototype,"onRendererstamperFinished",null);_.E([_.Ze("yt-playlist-reloading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OL.prototype,"onPlaylistReloading",null);
_.E([_.Ze("yt-update-set-video-id"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],OL.prototype,"onUpdateSetVideoId",null);_.E([_.Ze("yt-append-continuation-items-action-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OL.prototype,"onAppendContinuationItemsActionFinished",null);
_.E([_.Ze("yt-update-video-data-voting-animation"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],OL.prototype,"updateVideoData",null);_.E([_.O6({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],OL);
_.Q(OL,"ytd-playlist-video-list-renderer",function(){if(WhR!==void 0)return WhR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return WhR=A},{mode:2});var zs3;var RJ=function(){return _.a.apply(this,arguments)||this};
_.I(RJ,_.a);RJ.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"}}}}};
RJ.prototype.onTextWrapperTap=function(A){var H=this.data&&this.data.navigationEndpoint;H&&!_.XU(_.F_(A),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Ed(this.hostElement,"yt-navigate",{endpoint:H})};
RJ.prototype.dataChanged=function(){var A=this.get("data.offerButton.buttonRenderer.serviceEndpoint");A&&A.commandMetadata&&_.L(A.commandMetadata,_.WY)&&_.L(A.commandMetadata,_.WY).fireAutomatically&&_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}})};
RJ.prototype.dataChanged=RJ.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.I6),_.l("design:type",Object)],RJ.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],RJ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],RJ.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.k6("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],RJ.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],RJ.prototype,"leftAligned",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RJ.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-movie-renderer"})],RJ);
_.Q(RJ,"ytd-movie-renderer",function(){if(zs3!==void 0)return zs3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return zs3=A},{mode:1});var qkL={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(A){if(A&&A.length==1&&Array.isArray(A[0].loggingUrls)){A=_.iK.unsafeClone(A[0]);var H=this.macros||{},k=this.getAdModuleClient_();if(!k)return _.MT();A.loggingUrls.forEach(function(d){if(d.baseUrl){var W=d.baseUrl;var z=H;z=z===void 0?{}:z;W=k.getOptions().includes("replaceUrlMacros")?_.HdJ(k,"replaceUrlMacros",{url:W,additionalMapping:z}):W;d.baseUrl=W}},this);
A=[A]}return _.tx(this.hostElement,A)},
getAdModuleClient_:function(){var A=_.Kj(this);return A?(A=A.getPlayer())?new _.hP(A):null:null}}]};var rJe;var TI=function(){var A=_.a.apply(this,arguments)||this;A.modern=_.b("web_modern_buttons");A.buttonOverrides={style:"call-to-action",type:"filled"};return A};
_.I(TI,_.a);TI.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=_.iw(this.data.backgroundColor)))};
TI.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var A=this.getFormattedStringLoggingDirectives(this.data.headline);A&&this.rendererBehavior.logExplicitClick(A)}};
TI.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var A=this.getFormattedStringLoggingDirectives(this.data.description);A&&this.rendererBehavior.logExplicitClick(A)}};
TI.prototype.getFormattedStringLoggingDirectives=function(A){return A&&A.runs&&A.runs.length>0&&A.runs[0]&&A.runs[0].loggingDirectives?A.runs[0].loggingDirectives:null};
TI.prototype.dataChanged=TI.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],TI.prototype,"rendererBehavior",void 0);_.E([_.P(qkL.YtMacroReplacementBehavior),_.l("design:type",Object)],TI.prototype,"macroReplacementBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],TI.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],TI.prototype,"navigationEndpoint",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],TI.prototype,"enableColors",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],TI.prototype,"modern",void 0);_.E([_.C(),_.l("design:type",Object)],TI.prototype,"buttonOverrides",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],TI.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],TI);
_.Q(TI,"ytd-action-basic-immersive-content-renderer",function(){if(rJe!==void 0)return rJe;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return rJe=A},{mode:1});var uzQ;var BGM;var mY=function(){return _.a.apply(this,arguments)||this};
_.I(mY,_.a);mY.prototype.dataChanged=function(){var A;((A=this.data)==null?void 0:A.backgroundColor)!==void 0&&_.NH(this.hostElement,{"--bgu-color":_.iw(this.data.backgroundColor)})};
mY.prototype.onImageTileClick=function(){var A;((A=this.data)==null?0:A.navigationEndpoint)&&_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var H;((H=this.data)==null?0:H.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.nP.Object.defineProperties(mY.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?void 0:A.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 A;return((A=this.data)==null?void 0:A.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var A,H,k;if(((A=this.data)==null?void 0:(H=A.detailsLine)==null?void 0:H.texts)!=null&&((k=this.data)==null?void 0:k.detailsLine.texts.length)>0){var d;return(d=this.data)==null?void 0:d.detailsLine.texts.map(function(W){return W.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var A,H,k;if(((A=this.data)==null?void 0:(H=A.optionalDetailsLine)==null?void 0:H.texts)!=null&&((k=this.data)==null?void 0:k.optionalDetailsLine.texts.length)>0){var d;return(d=this.data)==null?void 0:d.optionalDetailsLine.texts.map(function(W){return W.text}).join("")}return null}}});
mY.prototype.dataChanged=mY.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mY.prototype,"rendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],mY.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mY.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.backgroundColor"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],mY.prototype,"hasBackgroundColor",null);
_.E([_.G("data.objectFit"),_.l("design:type",Object),_.l("design:paramtypes",[])],mY.prototype,"getObjectFit",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.tileRenderingStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],mY.prototype,"hasTileMetadata",null);_.E([_.G("data.detailsLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],mY.prototype,"getSecondaryDetails",null);
_.E([_.G("data.optionalDetailsLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],mY.prototype,"getOptionalDetails",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mY.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],mY);
_.Q(mY,"ytd-image-tile-renderer",function(){if(BGM!==void 0)return BGM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return BGM=A},{mode:1});var es_;var J4=function(){return _.a.apply(this,arguments)||this};
_.I(J4,_.a);J4.prototype.getOpenLinkIcon=function(){return"arrow_diagonal_up_right"};
J4.prototype.onSitelinkTap=function(){_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.b("kevlar_command_handler_migration_killswitch"))_.NT(this.hostElement,this.data.clickCommands,this.hostElement);else for(var A=_.r(this.data.clickCommands),H=A.next();!H.done;H=A.next())this.ytComponentBehavior.resolveCommand(H.value)};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],J4.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],J4.prototype,"rendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],J4.prototype,"data",void 0);_.E([_.O6({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],J4);
_.Q(J4,"ytd-sitelink-renderer",function(){if(es_!==void 0)return es_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return es_=A},{mode:1});var gQ=function(){var A=_.a.apply(this,arguments)||this;A.paddingFix=_.b("enable_ads_web_ep_buenos_aires_and_padding_fix");return A};
_.I(gQ,_.a);gQ.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"}}}};
gQ.prototype.dataChanged=function(){var A=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;A.ytMacroReplacementBehavior.sendServiceRequestAction([H])})};
gQ.prototype.shouldHideFooter=function(A){return!(A&&_.b("use_ads_engagement_panel_desktop_footer_cta"))};
_.nP.Object.defineProperties(gQ.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:A.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(k){var d;return(d=_.L(k,CaI))==null?void 0:d.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:A.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(k){var d;return((d=_.L(k,CaI))==null?void 0:d.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
gQ.prototype.dataChanged=gQ.prototype.dataChanged;_.E([_.P(qkL.YtMacroReplacementBehavior),_.l("design:type",Object)],gQ.prototype,"ytMacroReplacementBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gQ.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gQ.prototype,"paddingFix",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.imageTileRenderers"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gQ.prototype,"removeBorderFromImageTiles",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.imageTileRenderers"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gQ.prototype,"useFooteredMetadataRenderingStyle",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gQ.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],gQ);
_.Q(gQ,"ytd-action-engagement-panel-content-renderer",function(){if(uzQ!==void 0)return uzQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return uzQ=A},{mode:1});var xsG;var iRR=_.c(function(A){var H=A.data;var k=A.customCommandResolver;return _.x("ad-grid-card-image-full-metadata-view-model",{class:function(){var d;return((d=H().interaction)==null?0:d.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.P8(_.NV({visibilityCallback:function(d){var W,z=(W=H().interaction)==null?void 0:W.onFirstVisible;d&&z&&_.mu(z)},
showOption:_.VY}),_.g9(function(){return H().interaction},k)),
"aria-label":function(){var d,W;return(d=H().interaction)==null?void 0:(W=d.accessibility)==null?void 0:W.label}},_.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.x(_.HG,{data:function(){return H().adImage}},{adImageViewModel:function(d){return _.x(_.Ue,{data:d.data,
customCommandResolver:k})}})),_.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.x(_.R,{cond:function(){return H().headline},
then:function(d){return _.x(_.j$,{text:d,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.x(_.R,{cond:function(){return H().detailsLine},
then:function(d){return _.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.x(_.HG,{data:d},{adDetailsLineViewModel:function(W){return _.x(_.fK,{data:W.data,customCommandResolver:k,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.x(_.R,{cond:function(){return H().secondaryDetailsLine},
then:function(d){return _.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.x(_.HG,{data:d},{adDetailsLineViewModel:function(W){return _.x(_.fK,{data:W.data,customCommandResolver:k,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Uh");var hsB=_.c(function(A){var H=A.data;var k=A.customCommandResolver;return _.x("ad-grid-card-image-view-model",{class:function(){var d;return((d=H().interaction)==null?0:d.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.P8(_.NV({visibilityCallback:function(d){var W,z=(W=H().interaction)==null?void 0:W.onFirstVisible;d&&z&&_.mu(z)},
showOption:_.VY}),_.g9(function(){return H().interaction},k)),
"aria-label":function(){var d,W;return(d=H().interaction)==null?void 0:(W=d.accessibility)==null?void 0:W.label}},_.x(_.HG,{data:function(){return H().adImage}},{adImageViewModel:function(d){return _.x(_.Ue,{data:d.data,
customCommandResolver:k})}}),_.x("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.x(_.HG,{data:function(){return H().adCardBadge}},{adCardBadgeViewModel:_.qSw})))},"Vh");var ORI=_.c(function(A){var H=A.data;var k=A.customCommandResolver;return _.x("ad-grid-card-text-view-model",{class:function(){var d;return((d=H().interaction)==null?0:d.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.P8(_.NV({visibilityCallback:function(d){var W,z=(W=H().interaction)==null?void 0:W.onFirstVisible;d&&z&&_.mu(z)},
showOption:_.VY}),_.g9(function(){return H().interaction},k)),
"aria-label":function(){var d,W;return(d=H().interaction)==null?void 0:(W=d.accessibility)==null?void 0:W.label}},_.x("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.x(_.R,{cond:function(){return H().title},
then:function(d){return _.x(_.j$,{text:d,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.x("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.x(_.Ix,{each:function(){var d;
return((d=H())==null?void 0:d.descriptions)||[]},
keyBy:"INDEX"},function(d){return _.x(_.j$,{text:d,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.x("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.x(_.HG,{data:function(){return H().moreInfoButton}},{adButtonViewModel:function(d){return _.x(_.la,{data:d.data,
customCommandResolver:k})}})))},"Wh");var RsQ=_.c(function(A){var H=A.data;var k=A.customCommandResolver;var d=A.adGridCardCollectionStyle;return _.x("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.P8(_.NV({visibilityCallback:function(W){var z,u=(z=H().interaction)==null?void 0:z.onFirstVisible;W&&u&&_.mu(u)},
showOption:_.VY})),style:function(){return"grid-template-columns: repeat("+nEB(d?d():H().style)+", minmax(0, 1fr));"}},_.x(_.HG,{data:function(){var W;
return(W=H())==null?void 0:W.gridCards}},{adGridCardImageViewModel:function(W){return _.x(hsB,{data:W.data,
customCommandResolver:k})},
adGridCardImageFullMetadataViewModel:function(W){return _.x(iRR,{data:W.data,customCommandResolver:k})},
adGridCardTextViewModel:function(W){return _.x(ORI,{data:W.data,customCommandResolver:k})}}))},"Xh");_.Sw(_.c(function(A){var H=A.data;return _.x("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.P8(_.NV({visibilityCallback:function(k){var d,W=(d=H().interaction)==null?void 0:d.onFirstVisible;k&&W&&_.mu(W)},
showOption:_.VY}),_.g9(function(){return H().interaction},fGB))},_.x("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.x(_.R,{cond:_.UWX("(min-width: "+(Mu()+nS)+"px)"),
then:function(){return _.x(_.HG,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(k){return _.x(RsQ,{data:k.data,
customCommandResolver:fGB})}})},
else:function(){return _.x(_.HG,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(k){return _.x(RsQ,{data:k.data,
customCommandResolver:fGB,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.x("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.x(_.HG,{data:function(){return H().adButton}},{adButtonViewModel:function(k){return _.x(_.la,{data:k.data,
customCommandResolver:fGB})}})))},"Yh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;return _.x("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.P8(_.NV({visibilityCallback:function(k){var d,W=(d=H().interaction)==null?void 0:d.onFirstVisible;k&&W&&_.mu(W)},
showOption:_.VY}),_.g9(function(){return H().interaction},wn1))},_.x("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.x(_.HG,{data:function(){if(_.UWX("(min-width: "+(Mu()+nS)+"px)")())var k=H().adGridCardCollection;
else{k=Object.assign({},_.L(H().adGridCardCollection,aYQ));var d;k.gridCards!==void 0&&((d=k.gridCards)==null?void 0:d.length)>1?k.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":k.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";k={adGridCardCollectionViewModel:k}}return k}},{adGridCardCollectionViewModel:function(k){return _.x(RsQ,{data:k.data,
customCommandResolver:wn1})}})),_.x("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.x(_.HG,{data:function(){return H().adButton}},{adButtonViewModel:function(k){return _.x(_.la,{data:k.data,
customCommandResolver:wn1})}})))},"Zh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Ih}});var bX=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return A};
_.I(bX,_.a);_.q=bX.prototype;_.q.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"}}}};
_.q.attached=function(){this.getDataFromPlayerAndRender()};
_.q.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.q.getDataFromPlayerAndRender=function(){var A=this,H=_.Kj(this.hostElement);H&&H.getPlayerPromise().then(function(k){A.getCachedDataAndListen(k)})};
_.q.getCachedDataAndListen=function(A){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=A)};
_.q.resolveCachedActions=function(){var A=_.UD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(A=A&&A())&&!_.iK.isEmpty(A)&&this.sendUpdateEngagementPanelAction(A);(A=(A=_.UD("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&A())&&!_.iK.isEmpty(A)&&this.sendChangeEngagementPanelVisibilityAction(A);(A=(A=_.UD("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&A())&&!_.iK.isEmpty(A)&&this.sendScrollToEngagementPanelCommand(A)};
_.q.sendUpdateEngagementPanelAction=function(A){var H;_.Ud(this.hostElement,"yt-update-engagement-panel-action",[(H=_.iK.get(A,"action"))!=null?H:A])};
_.q.sendChangeEngagementPanelVisibilityAction=function(A){_.Ud(this.hostElement,"yt-change-engagement-panel-visibility-action",[A])};
_.q.sendScrollToEngagementPanelCommand=function(A){_.Ud(this.hostElement,"yt-scroll-to-engagement-panel-command",[A])};
_.q.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.b("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Pq(Error("Bl"))};
bX.prototype.dataChanged=bX.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],bX.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],bX.prototype,"componentBehavior",void 0);_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],bX.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],bX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bX.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],bX.prototype,"player",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bX.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],bX);
_.Q(bX,"ytd-ads-engagement-panel-content-renderer",function(){if(xsG!==void 0)return xsG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return xsG=A},{mode:1});var TGG;var Le=function(){var A=_.a.apply(this,arguments)||this;A.player=null;A.JSC$20631_playerEvents=new Map;A.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return A};
_.I(Le,_.a);_.q=Le.prototype;_.q.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]]"}}}}}};
_.q.created=function(){this.player=null;this.JSC$20631_playerEvents=new Map;this.JSC$20631_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20631_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20631_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20631_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.q.attached=function(){var A=this,H=_.Kj();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));H&&H.getPlayerPromise().then(function(k){A.setPlayer(k);A.set("isPageLoad",!1)})};
_.q.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20631_playerEvents);this.set("player",A);A&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$20631_playerEvents),A.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.q.onLoopRangeChange=function(A){var H=_.wj().resolve(_.fZ(_.SO));if((!H||H.isOnWatch())&&this.hostElement.clientHeight){var k;!A&&((k=this.data)==null?0:k.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.q.onVideoProgress=function(A){var H,k,d=((H=this.player)==null?void 0:(k=H.getPresentingPlayerType)==null?void 0:k.call(H))===2;this.isAdPlaying!==d&&this.set("isAdPlaying",d);var W;if(!d&&(W=this.player)!=null&&W.getLoopRange()){k=this.player.getLoopRange();H=k.startTimeMs;k=k.endTimeMs;d=this.player.getProgressState(1).seekableStart;var z;H<d*1E3&&((z=this.data)==null?0:z.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
A=k<A*1E3;var u;((u=this.player)==null?0:u.getLoopRange())&&A&&this.player.seekTo(H/1E3)}};
_.q.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.q.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.q.onYtDeleteClipEngagementPanelCommand=function(A){_.L(A,m8L).command&&this.ytComponentBehavior.resolveCommand(_.L(A,m8L).command)};
_.nP.Object.defineProperties(Le.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.Yu("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Le.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Le.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],Le.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Le.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Le.prototype,"isAdPlaying",void 0);_.E([_.C({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],Le.prototype,"isPageLoad",void 0);_.E([_.C({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],Le.prototype,"isDarkTheme",void 0);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Le.prototype,"voteCount",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Le.prototype,"channelEndpoint",null);_.E([_.G("channelEndpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],Le.prototype,"channelHref",null);_.E([_.O6({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Le);
_.Q(Le,"ytd-clip-attribution-renderer",function(){if(TGG!==void 0)return TGG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return TGG=A},{mode:1});var msR;var vQ=function(){var A=_.a.apply(this,arguments)||this;A.player=null;A.JSC$20636_playerEvents=new Map;return A};
_.I(vQ,_.a);_.q=vQ.prototype;_.q.created=function(){this.player=null;this.JSC$20636_playerEvents=new Map;this.JSC$20636_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20636_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20636_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.q.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.q.attached=function(){var A=this,H=_.Kj();H&&H.getPlayerPromise().then(function(k){A.setPlayer(k);A.set("isPageLoad",!1)})};
_.q.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20636_playerEvents);this.set("player",A);if(A){this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$20636_playerEvents);var H;(A==null?void 0:(H=A.getPresentingPlayerType)==null?void 0:H.call(A))===2&&this.playerAdStartHandler()}};
_.q.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.q.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.q.onVideoProgress=function(){var A,H,k=((A=this.player)==null?void 0:(H=A.getPresentingPlayerType)==null?void 0:H.call(A))===2;this.isAdPlaying!==k&&this.set("isAdPlaying",k)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],vQ.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],vQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],vQ.prototype,"isAdPlaying",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],vQ.prototype,"isPageLoad",void 0);_.E([_.O6({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],vQ);
_.Q(vQ,"ytd-clip-section-footer-renderer",function(){if(msR!==void 0)return msR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return msR=A},{mode:1});var JJ3;var goG;var bRB=function(){return _.a.apply(this,arguments)||this};
_.I(bRB,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bRB.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bRB.prototype,"data",void 0);_.E([_.O6({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],bRB);
_.Q(bRB,"ytd-clip-ad-state-renderer",function(){if(goG!==void 0)return goG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return goG=A},{mode:1});var LhL;var yL=function(){var A=_.a.apply(this,arguments)||this;A.value="";A.valid=!1;A.userChangedValue=!1;A.disabled=!1;A.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return A};
_.I(yL,_.a);_.q=yL.prototype;_.q.detached=function(){this.userChangedValue=!1};
_.q.handleKeyDown=function(A){if(_.s3)var H=13;else _.mi1&&_.HN?H=13:H=13;A.keyCode===H&&A.preventDefault()};
_.q.handleInput=function(){var A=_.Va(this.hostElement).querySelector("#title");if(A){var H=(A.value||"").replace(/\r|\n/g," ");this.set("value",H);A.value=H;this.valid=A.validate();this.userChangedValue=!0}};
_.q.handleBlur=function(){this.valid=_.Va(this.hostElement).querySelector("#title").validate()};
_.q.onValueChanged=function(){_.Ed(this.hostElement,"title-changed",{title:this.value})};
_.q.onValidChanged=function(){_.Ed(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.q.setInput=function(A,H){var k=_.Va(this.hostElement).querySelector("#title");k&&(k.value=A,this.handleInput(),H&&(k.invalid=!1,this.valid=!0))};
_.q.onClipCreationDisable=function(){this.set("disabled",!0)};
_.q.onClipCreationEnable=function(){this.set("disabled",!1)};
_.q.onClipCreationVisibilityChange=function(A){var H=this;A.visible?requestAnimationFrame(function(){var k;((k=_.Va(H.hostElement).querySelector("#title"))==null?void 0:k.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
yL.prototype.onValidChanged=yL.prototype.onValidChanged;yL.prototype.onValueChanged=yL.prototype.onValueChanged;yL.prototype.handleBlur=yL.prototype.handleBlur;yL.prototype.handleInput=yL.prototype.handleInput;yL.prototype.handleKeyDown=yL.prototype.handleKeyDown;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],yL.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],yL.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],yL.prototype,"value",void 0);_.E([_.C(),_.l("design:type",Object)],yL.prototype,"valid",void 0);_.E([_.C(),_.l("design:type",Object)],yL.prototype,"userChangedValue",void 0);_.E([_.C(),_.l("design:type",Object)],yL.prototype,"disabled",void 0);_.E([_.Ze("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],yL.prototype,"handleKeyDown",null);
_.E([_.Ze("input"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yL.prototype,"handleInput",null);_.E([_.Ze("blur"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yL.prototype,"handleBlur",null);_.E([_.fF("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yL.prototype,"onValueChanged",null);
_.E([_.fF("valid"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yL.prototype,"onValidChanged",null);_.E([_.O6({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],yL);
_.Q(yL,"ytd-clip-creation-text-input-renderer",function(){if(LhL!==void 0)return LhL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return LhL=A},{mode:1});var vo_;var yJB;var jfB;var Ize;var YkB;var j4=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};A.pendingStoryboardImages_={};A.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];A.tickLabelInterval=30;A.mediumTickInterval=5;A.largeTickInterval=15;A.aboveRulerHeight=32;A.rulerHeight=50;A.smallTickHeight=4;A.mediumTickHeight=8;A.largeTickHeight=16;A.mediaListeners_=
{};return A};
_.I(j4,_.a);_.q=j4.prototype;_.q.attached=function(){var A=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(H){H=_.r(["screen and (min-resolution: "+H+")","screen and (max-resolution: "+H+")"]);for(var k=H.next();!k.done;k=H.next()){k=k.value;var d=window.matchMedia(k);d&&(A.mediaListeners_[k]=A.updatePixelRatio_.bind(A),d.addEventListener?d.addEventListener("change",A.mediaListeners_[k]):d.addListener?d.addListener(A.mediaListeners_[k]):delete A.mediaListeners_[k])}})};
_.q.detached=function(){this.setPlayer(null);for(var A=_.r(Object.keys(this.mediaListeners_)),H=A.next();!H.done;H=A.next()){var k=H.value;H=this.mediaListeners_[k];(k=window.matchMedia(k))&&(k.removeEventListener?k.removeEventListener("change",H):k.removeListener&&k.removeListener(H))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.q.onVisibilityChangedAction_=function(A){var H=this;A.visible&&!this.player_&&(A=_.Kj())&&A.getPlayerPromise().then(function(k){H.setPlayer(k)})};
_.q.setPlayer=function(A){A&&this.set("player_",A)};
_.q.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.q.setUpCanvas_=function(){var A=this.rulerWidth,H=this.devicePixelRatio_,k=this.visible;this.set("canvasReady_",!1);if(k&&H!==0){k=this.aboveRulerHeight+this.rulerHeight;var d=_.Va(this.hostElement).querySelector("#ticks");d.width=A*H;d.height=k*H;d.style.width=A+"px";d.style.height=k+"px";d.getContext("2d").scale(H,H);this.set("canvasReady_",!0)}};
_.q.drawRuler_=function(A,H,k,d,W,z,u,B,h,O,T,m){A&&k&&H&&(A=_.Va(this.hostElement).querySelector("#ticks"),H=A.getContext("2d"),H.clearRect(0,0,A.width,A.height),H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),H.lineWidth=2,H.beginPath(),H.moveTo(0,this.aboveRulerHeight),H.lineTo(A.width,this.aboveRulerHeight),H.moveTo(0,A.height),H.lineTo(A.width,A.height),H.stroke(),this.drawRulerTicks_(A,z,W,d),this.drawStoryboardImages_(A,k,z,W,d),H.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
H.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(u-z,d,!1),this.rulerHeight),k=this.timeToPixels_(B-z,d,!1),H.fillRect(k,this.aboveRulerHeight,A.width-k,this.rulerHeight),this.drawSpeedLines_(A,z,m))};
_.q.drawRulerTicks_=function(A,H,k,d){var W=A.getContext("2d");W.save();W.lineWidth=1;for(var z=Math.floor(Math.max(0,H-this.tickLabelInterval));z<H+k;z++){W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var u=(z-H)*d;W.beginPath();W.moveTo(u,A.height);var B=this.smallTickHeight;z%this.largeTickInterval===0?B=this.largeTickHeight:z%this.mediumTickInterval===0&&(B=this.mediumTickHeight);W.lineTo(u,A.height-B);W.stroke();z%this.tickLabelInterval===0&&(W.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),W.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),W.fillText(wk(z),u+4,12),W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),W.moveTo(u,0),W.lineTo(u,this.aboveRulerHeight),W.stroke())}W.restore()};
_.q.percentToHex_=function(A){A=Math.round(A*255).toString(16);A.length<2&&(A="0"+A);return A};
_.q.drawSpeedLines_=function(A,H,k){var d=A.getContext("2d");d.save();var W=Math.min(25,Math.abs(k)-15)/25,z=A.width*.3*W,u=A.width*-.3,B=A.width*1.3,h=this.aboveRulerHeight;A=A.height;var O=Math.round(4*W),T=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");T.length<7&&(T="#"+T.substring(1,4).repeat(2));var m=this.percentToHex_(.5+W/2);m=T+m;T+="00";if(W>0)for(W=0;W<O;W++){var J=u+Math.random()*(B-u),g=h+Math.random()*(A-h),v=z+H%z,y=d.createLinearGradient(J,g,J+v,g);
k<0?(y.addColorStop(0,m),y.addColorStop(.4,m),y.addColorStop(.9,T)):(y.addColorStop(.1,T),y.addColorStop(.6,m),y.addColorStop(1,m));d.strokeStyle=y;d.lineWidth=1;d.beginPath();d.moveTo(J,g);d.lineTo(J+v,g);d.stroke()}d.restore()};
_.q.getStoryboardForTime_=function(A,H,k){k===void 0&&(k=H.getNumberOfStoryboardLevels()-1);A=H.getStoryboardFrameIndex(A,k);return H.getStoryboardFrame(A,k)};
_.q.drawStoryboardImages_=function(A,H,k,d,W){if(!this.disabled){A=A.getContext("2d");var z=this.getStoryboardForTime_(0,H);if(z){var u=z.width/z.columns;z=z.height/z.rows;var B=u/z,h=this.rulerHeight*B;h=this.tickLabelInterval*(B<this.tickLabelInterval*W/this.rulerHeight?1/Math.floor(this.tickLabelInterval*W/h):Math.round(h/(this.tickLabelInterval*W)));var O=h*W,T=this.rulerHeight,m=O/this.rulerHeight,J=Math.floor(Math.max(0,k-h));for(J-=J%h;J<k+d;J+=h){var g=this.getStoryboardForTime_(J,H),v=this.getPreloadedStoryboard_(g.url);
if(v){var y=(J-k)*W,X=this.aboveRulerHeight,D=g.column*u,K=g.row*z;if(B<m){var N=T/(O/B);g=u;N*=z;K+=(z-N)/2}else g=O/(T*B)*u,N=z,D+=(u-g)/2;A.drawImage(v,D,K,g,N,y,X,O,T)}else this.fetchStoryboardImage_(g)}}}};
_.q.getPreloadedStoryboard_=function(A){return this.storyboardImages_.find(function(H){if(H.src==A)return!0;var k=H.src.indexOf(A);return k!=-1&&k==H.src.length-A.length})};
_.q.fetchStoryboardImage_=function(A){var H=this,k=this.getPreloadedStoryboard_(A.url),d=this.pendingStoryboardImages_[A.url];k||d!==void 0||(k=new Promise(function(W){var z=new Image(A.width,A.height);z.src=A.url;z.onload=function(){W(z)};
z.onerror=function(){W(null)}}),this.pendingStoryboardImages_[A.url]=k,k.then(function(W){W&&H.push("storyboardImages_",W);
return W}).finally(function(){delete H.pendingStoryboardImages_[A.url]}))};
_.q.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.q.timeToPixels_=function(A,H,k){A*=H;return k===void 0||k?A+"px":A};
_.q.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
j4.prototype.drawRuler_=j4.prototype.drawRuler_;j4.prototype.setUpCanvas_=j4.prototype.setUpCanvas_;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],j4.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],j4.prototype,"start",void 0);_.E([_.C({value:30}),_.l("design:type",Number)],j4.prototype,"end",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],j4.prototype,"visible",void 0);_.E([_.C(),_.l("design:type",Object)],j4.prototype,"player_",void 0);_.E([_.C(),_.l("design:type",Number)],j4.prototype,"tickSpacing",void 0);_.E([_.C(),_.l("design:type",Number)],j4.prototype,"windowSizeSec",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],j4.prototype,"rulerWidth",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],j4.prototype,"rulerShift",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],j4.prototype,"canvasReady_",void 0);_.E([_.C({value:function(){return[]}}),
_.l("design:type",Array)],j4.prototype,"storyboardImages_",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],j4.prototype,"disabled",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],j4.prototype,"forceRender_",void 0);_.E([_.C({value:1}),_.l("design:type",Number)],j4.prototype,"devicePixelRatio_",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],j4.prototype,"windowSpeed",void 0);
_.E([_.fF("visible","devicePixelRatio_","rulerWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j4.prototype,"setUpCanvas_",null);
_.E([_.fF("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.l("design:returntype")],j4.prototype,"drawRuler_",null);_.E([_.h6({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],j4);
_.Q(j4,"yt-clip-creation-scrubber-canvas",function(){if(YkB===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);YkB=A}A=YkB;return A},
{mode:2});var P_V;var GQe;var IJ=function(){var A=_.a.apply(this,arguments)||this;A.start=0;A.end=30;A.visible=!1;A.draggingLeft_=!1;A.draggingRight_=!1;A.draggingRuler_=!1;A.draggingWindow_=!1;A.seekableStart=0;A.seekableEnd=0;A.rulerWidth_=0;A.rulerShift_=0;A.windowSlideSpeed=0;A.disabled=!1;A.initialized=!1;A.durationAccessibilityLabel="";A.activeLoopRange_=!1;A.rulerDragMouseStart_=0;A.rulerDragRulerStart_=0;A.rulerDragStartTime_=0;A.rulerDragEndTime_=0;A.dragMouseLastX_=0;A.scrollInterval_=null;A.scrubberVe_=null;A.boundHandlers_=
{};A.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return A};
_.I(IJ,_.a);_.q=IJ.prototype;
_.q.created=function(){var A=this;this.JSC$20650_playerEvents=new Map;this.JSC$20650_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20650_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20650_playerEvents.set("onStateChange",this.onStateChange_);var H={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(H).forEach(function(k){A.boundHandlers_[k]=H[k].bind(A)})};
_.q.attached=function(){this.activeLoopRange_=!1;_.Va(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Va(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.t8(156731)};
_.q.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Va(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Va(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.q.onVisibilityChangedAction_=function(A){var H=this;A.visible&&!this.player_&&(A=_.Kj())&&A.getPlayerPromise().then(function(k){H.setPlayer(k)})};
_.q.setPlayer=function(A){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20650_playerEvents);A&&(this.set("player_",A),this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$20650_playerEvents))};
_.q.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.q.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.q.beginHandleDrag_=function(A){this.disabled||(A.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=A.clientX,A.target===_.Va(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():A.target===_.Va(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.q.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.q.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.q.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.q.beginRulerDrag_=function(A){this.disabled||(A.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=A.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.q.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.q.beginWindowScroll_=function(){var A=this;this.scrollInterval_=setInterval(function(){var H=A.windowSlideSpeed;if(H=xn_(A.start,A.boundedRulerStartLimit_())?H-.1:xn_(A.end,A.boundedRulerEndLimit_())?H+.1:0){var k=A.capRulerOffset_(A.rulerShift_+H);k==A.rulerShift_?H=0:(A.set("rulerShift_",k),_.Ed(A.hostElement,"set-fixed-length-range",{start:A.start+H,duration:A.end-A.start}))}A.set("windowSlideSpeed",H)},33)};
_.q.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.q.endDrag_=function(){this.logClick();var A=void 0;this.draggingRight_?A=this.end-1:this.draggingLeft_&&(A=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,A);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))};
_.q.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.q.updateRulerSize_=function(){this.set("rulerWidth_",_.Va(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.q.handleMouseDrag_=function(A){A.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(A):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(A):this.draggingWindow_&&this.handleWindowDrag_(A))};
_.q.handleRulerDrag_=function(A){A=this.pixelsToTime_(A.clientX-this.rulerDragMouseStart_);A=this.capRulerOffset_(this.rulerDragRulerStart_-A);this.set("rulerShift_",A);var H=this.rulerDragStartTime_-(this.rulerDragRulerStart_-A);_.Ed(this.hostElement,"set-fixed-length-range",{start:H,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-A)-H})};
_.q.handleWindowDrag_=function(A){var H=A.clientX-this.dragMouseLastX_;this.dragMouseLastX_=A.clientX;A=this.pixelsToTime_(H);_.Ed(this.hostElement,"set-fixed-length-range",{start:this.start+A,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.q.capRulerOffset_=function(A){var H=this.seekableStart-this.pixelsToTime_(16),k=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(H,A),k)};
_.q.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.q.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.q.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.q.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.q.handleWindowHandleDrag_=function(A){var H=A.clientX-this.dragMouseLastX_;this.dragMouseLastX_=A.clientX;A=this.pixelsToTime_(H);if(this.draggingLeft_){var k=this.start+A;var d=this.end}else this.draggingRight_&&(k=this.start,d=this.end+A);_.Ed(this.hostElement,"set-range",{start:k,end:d,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.q.onVideoProgress_=function(A){this.disabled||(A=this.timeToPixels_(A-this.rulerShift_,this.tickSpacing_),_.Va(this.hostElement).querySelector("#playhead").style.transform="translateX("+A+")")};
_.q.onClipCreationDisable_=function(){this.endDrag_()};
_.q.timeToPixels_=function(A,H,k){A*=H;return k===void 0||k?A+"px":A};
_.q.pixelsToTime_=function(A){return A/this.tickSpacing_};
_.q.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.q.centerRuler_=function(A,H,k){this.set("rulerShift_",this.capRulerOffset_(A+(H-A)/2-k/2))};
_.q.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.q.updateLoopRange_=function(A,H,k,d,W,z,u){A&&(H&&d&&!k?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(A.pauseVideo(),A.seekTo(W,!1,void 0,void 0,50)):this.draggingRight_?(A.pauseVideo(),A.seekTo(z-.1,!1,void 0,void 0,50)):(u!==void 0?A.seekTo(u,!0,void 0,void 0,50):(H=A.getCurrentTime(),H<W||H>z?A.seekTo(W,!0,void 0,void 0,50):A.seekTo(H,!0,void 0,void 0,50)),A.playVideo()),A.setLoopRange({startTimeMs:W*1E3,endTimeMs:z*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(A.getCurrentTime())):
this.activeLoopRange_&&(A.setLoopRange(null),this.activeLoopRange_=!1))};
_.q.updateHandles_=function(){_.Va(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Va(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.q.updateRuler_=function(){var A=this.end,H=this.start,k=this.draggableStartLimit_(),d=this.draggableEndLimit_();(H<k-.001||A>d+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.q.computeDurationLabel_=function(A,H){return A?A.replace("$clip_length",parseFloat(H).toFixed(1)):""};
_.q.computeDuration_=function(A,H){return this.isValidTime_(A)&&this.isValidTime_(H)&&A<H?H-A:0};
_.q.isValidTime_=function(A){return isNaN(parseFloat(A))||A<0?!1:this.player_?A>=this.seekableStart&&A<=this.seekableEnd:!0};
_.q.computeWindowSizeSec_=function(A,H,k){return Math.min((A||12E4)/1E3,k-H)};
_.q.computeTickSpacing_=function(A,H){return H?H/A:1};
_.q.onDragStateChanged_=function(){_.Ed(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.q.centerRangeOnTime_=function(A){var H=this.duration;A=$N_(A-H/2,H,this.seekableStart,this.seekableEnd);_.Ed(this.hostElement,"set-fixed-length-range",{start:A.start,duration:A.end-A.start})};
_.q.nearlyLessThan_=function(A,H,k){return A+(k===void 0?1E-6:k)<H};
_.q.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var A=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(A,this.start)||this.nearlyLessThan_(this.end,A))&&this.centerRangeOnTime_(A)}};
_.q.onStateChange_=function(A){this.visible&&!this.disabled&&A==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.q.computeDragState_=function(A,H,k,d){return A?"left":H?"right":k?"ruler":d?"window":"none"};
_.q.logClick=function(){var A=_.hx(),H=_.ii();A&&H&&this.scrubberVe_&&(_.b("combine_ve_grafts")?_.n4(_.A7(),this.scrubberVe_,H):_.v0(A,H,this.scrubberVe_),_.P0(A,this.scrubberVe_))};
IJ.prototype.onDragStateChanged_=IJ.prototype.onDragStateChanged_;IJ.prototype.updateRuler_=IJ.prototype.updateRuler_;IJ.prototype.updateHandles_=IJ.prototype.updateHandles_;IJ.prototype.onUpdateLoopRange=IJ.prototype.onUpdateLoopRange;IJ.prototype.onInitializedChanged_=IJ.prototype.onInitializedChanged_;IJ.prototype.onVisibleChanged_=IJ.prototype.onVisibleChanged_;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],IJ.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",Object)],IJ.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"start",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"end",void 0);_.E([_.C({computed:"computeDuration_(start, end)"}),_.l("design:type",Number)],IJ.prototype,"duration",void 0);
_.E([_.C(),_.l("design:type",String)],IJ.prototype,"lengthTemplate",void 0);_.E([_.C({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.l("design:type",String)],IJ.prototype,"durationLabel",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"visible",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"player_",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"draggingLeft_",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"draggingRight_",void 0);
_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"draggingRuler_",void 0);_.E([_.C({value:!1}),_.l("design:type",Object)],IJ.prototype,"draggingWindow_",void 0);_.E([_.C({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.l("design:type",Number)],IJ.prototype,"tickSpacing_",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"seekableStart",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"seekableEnd",void 0);
_.E([_.C(),_.l("design:type",Number)],IJ.prototype,"windowSizeMs",void 0);_.E([_.C({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.l("design:type",Number)],IJ.prototype,"windowSizeSec_",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"rulerWidth_",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"rulerShift_",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"windowSlideSpeed",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],IJ.prototype,"disabled",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"initialized",void 0);_.E([_.C(),_.l("design:type",Object)],IJ.prototype,"durationAccessibilityLabel",void 0);_.E([_.C({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.l("design:type",String)],IJ.prototype,"dragState",void 0);
_.E([_.fF("visible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IJ.prototype,"onVisibleChanged_",null);_.E([_.fF("initialized"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IJ.prototype,"onInitializedChanged_",null);_.E([_.fF("player_","visible","disabled","initialized","start","end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IJ.prototype,"onUpdateLoopRange",null);
_.E([_.fF("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IJ.prototype,"updateHandles_",null);_.E([_.fF("start","end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IJ.prototype,"updateRuler_",null);
_.E([_.fF("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IJ.prototype,"onDragStateChanged_",null);_.E([_.h6({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],IJ);
_.Q(IJ,"yt-clip-creation-scrubber-view",function(){if(GQe===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;P_V===void 0&&(P_V=document.createElement("template"));var d=P_V;k.call(H,d.content.cloneNode(!0),A.content.firstChild);GQe=A}A=GQe;return A},{mode:2});var YW=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};A.startHighlightTimeout=0;A.endHighlightTimeout=0;return A};
_.I(YW,_.a);_.q=YW.prototype;_.q.attached=function(){var A=this;this.startInput.addEventListener("input",function(H){return A.handleStartInput_(H)});
this.endInput.addEventListener("input",function(H){return A.handleEndInput_(H)});
this.startInput.addEventListener("focusout",function(H){return A.handleStartBlur_(H)});
this.endInput.addEventListener("focusout",function(H){return A.handleEndBlur_(H)})};
_.q.setPlayer=function(A){this.set("player_",A)};
_.q.onSetFixedLengthRange_=function(A){var H=A.detail;A=H.start;var k=H.duration,d=H.startLimit;H=H.endLimit;d||(d=this.seekableStart_);H||(H=this.seekableEnd_);A=$N_(A,k,d,H);this.start=A.start;this.end=A.end};
_.q.onSetRange_=function(A){var H=A.detail;A=H.start;var k=H.end,d=H.startLimit;H=H.endLimit;d||(d=this.seekableStart_);H||(H=this.seekableEnd_);if(A=AcR(A,k,d,H,this.minLengthSec,this.maxLengthSec))this.start=A.start,this.end=A.end};
_.q.updateInputs_=function(){var A=this.end,H=this.start;this.startInput.focused||(this.startInput.value=wk(H,!0));this.endInput.focused||(this.endInput.value=wk(A,!0))};
_.q.handleStartInput_=function(A){A=oEV(A.target.value);if(A===null)this.set("startValid",!1);else{var H=this.end,k=AcR(A,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);k?(this.set("endWillUpdate",k.end!==H),this.set("startValid",k.start===A)):this.set("startValid",!1)}};
_.q.handleEndInput_=function(A){A=oEV(A.target.value);if(A===null)this.set("endValid",!1);else{var H=this.start,k=HhB(this.start,A,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);k?(this.set("startWillUpdate",k.start!==H),this.set("endValid",k.end===A)):this.set("endValid",!1)}};
_.q.handleStartBlur_=function(A){A=oEV(A.target.value);A===null?this.startInput.value=wk(this.start,!0):this.forceUpdateInputs_(AcR(A,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.q.handleEndBlur_=function(A){A=oEV(A.target.value);A===null?this.endInput.value=wk(this.end,!0):this.forceUpdateInputs_(HhB(this.start,A,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.q.forceUpdateInputs_=function(A){A&&(this.start=A.start,this.end=A.end);this.startInput.value=wk(this.start,!0);this.endInput.value=wk(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.q.initializeClipRange_=function(){var A=this.seekableEnd_,H=this.seekableStart_,k=this.visible_,d=this.player_;if(!d||!k||H===null||!A)this.set("initialized",!1);else if(!this.initialized){var W=d.getCurrentTime(),z=this.getDefaultLengthSec_();k=d.getVideoData();var u=d.getPlayerState()==1,B=k.isLive;z=Math.min(z,A-H);W=Math.max(0,W);A=B?HhB(W-z,W,H,A,this.minLengthSec,this.maxLengthSec):u?$N_(W-z/2,z,H,A):$N_(W,z,H,A);this.start=A.start;this.end=A.end;this.set("initialized",!0);k.isLive&&d.seekTo(A.start);
this.startInput.value=wk(this.start,!0);this.endInput.value=wk(this.end,!0)}};
_.q.onStartChanged_=function(){var A=this;_.Ed(this.hostElement,"start-changed",{start:this.start});var H;isNaN((H=this.oldStart)!=null?H:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){A.set("highlightStart",!1);A.startHighlightTimeout=0;A.oldStart=A.start},3E3))};
_.q.onEndChanged_=function(){var A=this;_.Ed(this.hostElement,"end-changed",{end:this.end});var H;isNaN((H=this.oldEnd)!=null?H:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){A.set("highlightEnd",!1);A.endHighlightTimeout=0;A.oldEnd=A.end},3E3))};
_.q.onVisibilityChangedAction_=function(A){var H=this;this.set("visible_",A.visible);this.visible_&&!this.player_&&(A=_.Kj())&&A.getPlayerPromise().then(function(k){H.setPlayer(k)})};
_.q.computeMinLengthSec_=function(A){return A/1E3||5};
_.q.computeMaxLengthSec_=function(A){return A/1E3||60};
_.q.computeDefaultLengthSec_=function(A){return A/1E3};
_.q.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.q.computeSeekableStart_=function(A,H){return A&&H?A.getProgressState(1).seekableStart:0};
_.q.computeSeekableEnd_=function(A,H){return A&&H?A.getProgressState(1).seekableEnd:0};
_.q.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.q.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.q.onDragState_=function(A){this.set("highlightStart",A.detail.startChanging);this.set("highlightEnd",A.detail.endChanging)};
YW.prototype.onDragState_=YW.prototype.onDragState_;YW.prototype.onEndChanged_=YW.prototype.onEndChanged_;YW.prototype.onStartChanged_=YW.prototype.onStartChanged_;YW.prototype.initializeClipRange_=YW.prototype.initializeClipRange_;YW.prototype.updateInputs_=YW.prototype.updateInputs_;YW.prototype.onSetRange_=YW.prototype.onSetRange_;YW.prototype.onSetFixedLengthRange_=YW.prototype.onSetFixedLengthRange_;
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],YW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],YW.prototype,"data",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],YW.prototype,"start",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],YW.prototype,"startValid",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],YW.prototype,"startWillUpdate",void 0);_.E([_.C({value:30}),_.l("design:type",Number)],YW.prototype,"end",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],YW.prototype,"endValid",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],YW.prototype,"endWillUpdate",void 0);_.E([_.C({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.l("design:type",Number)],YW.prototype,"minLengthSec",void 0);
_.E([_.C({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.l("design:type",Number)],YW.prototype,"maxLengthSec",void 0);_.E([_.C({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.l("design:type",Number)],YW.prototype,"defaultLengthSec",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],YW.prototype,"visible_",void 0);_.E([_.C(),_.l("design:type",Object)],YW.prototype,"player_",void 0);
_.E([_.C({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.l("design:type",Number)],YW.prototype,"seekableStart_",void 0);_.E([_.C({computed:"computeSeekableEnd_(player_, visible_)"}),_.l("design:type",Number)],YW.prototype,"seekableEnd_",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],YW.prototype,"initialized",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],YW.prototype,"disabled",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],YW.prototype,"highlightStart",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],YW.prototype,"highlightEnd",void 0);_.E([_.ol("#start"),_.l("design:type",HTMLInputElement)],YW.prototype,"startInput",void 0);_.E([_.ol("#end"),_.l("design:type",HTMLInputElement)],YW.prototype,"endInput",void 0);
_.E([_.Ze("set-fixed-length-range"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],YW.prototype,"onSetFixedLengthRange_",null);_.E([_.Ze("set-range"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],YW.prototype,"onSetRange_",null);_.E([_.fF("start","end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YW.prototype,"updateInputs_",null);
_.E([_.fF("player_","visible_","seekableStart_","seekableEnd_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YW.prototype,"initializeClipRange_",null);_.E([_.fF("start"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YW.prototype,"onStartChanged_",null);_.E([_.fF("end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YW.prototype,"onEndChanged_",null);
_.E([_.Ze("clips-drag-state"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],YW.prototype,"onDragState_",null);_.E([_.h6({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],YW);
_.Q(YW,"yt-clip-creation-scrubber-renderer",function(){if(Ize===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;jfB===void 0&&(jfB=document.createElement("template"));var d=jfB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Ize=A}A=Ize;return A},{mode:2});var PQ=function(){var A=_.a.apply(this,arguments)||this;A.player_=null;A.JSC$20664_playerEvents=new Map;A.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return A};
_.I(PQ,_.a);_.q=PQ.prototype;_.q.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"}}}};
_.q.created=function(){this.JSC$20664_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20664_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20664_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20664_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.q.detached=function(){this.setPlayer(null)};
_.q.onVisibilityChangedAction_=function(A){var H=this,k;if((k=this.data)==null?0:k.externalVideoId){var d;this.videoId=(d=this.data)==null?void 0:d.externalVideoId}this.getPlayer().then(function(W){if(A.visible)H.returnTime=W.getCurrentTime(),H.isAtLiveHead=W.getProgressState().isAtLiveHead;else{var z=H.returnTime;H.isAtLiveHead&&(z=Number.POSITIVE_INFINITY);W.seekTo(z,void 0,void 0,void 0,51)}})};
_.q.getPlayer=function(){var A=this;if(!this.player_){var H=_.Kj();if(H)return H.getPlayerPromise().then(function(k){A.setPlayer(k);return k})}return Promise.resolve(this.player_)};
_.q.setPlayer=function(A){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20664_playerEvents);if(A){this.player_=A;var H;((H=this.data)==null?0:H.externalVideoId)||this.set("videoId",A.getVideoData().video_id||"");var k;(A==null?void 0:(k=A.getPresentingPlayerType)==null?void 0:k.call(A))===2&&(this.set("isAdPlaying",!0),_.Ud(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$20664_playerEvents)}};
_.q.ready=function(){_.Va(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.q.onTitleChanged_=function(A){this.set("titleValue",A.detail.title)};
_.q.onStartChanged_=function(A){this.set("start",A.detail.start)};
_.q.onEndChanged_=function(A){this.set("end",A.detail.end)};
_.q.onTitleValidChanged_=function(A){this.set("titleValid",A.detail.valid)};
_.q.onStartValidChanged_=function(A){this.set("startValid",A.detail.valid)};
_.q.onEndValidChanged_=function(A){this.set("endValid",A.detail.valid)};
_.q.onVideoDataChange_=function(){var A;if((A=this.data)==null||!A.externalVideoId){var H;this.set("videoId",((H=this.player_)==null?void 0:H.getVideoData().video_id)||"")}};
_.q.computeFormValid_=function(A,H,k,d){return!!(A&&H&&k&&d)};
_.q.computeCancelButton_=function(A,H,k){return A&&_.L(A,_.gN)?{buttonRenderer:Object.assign({},_.L(A,_.gN),{isDisabled:H||k})}:null};
_.q.computeSubmitButton_=function(A,H,k){return A&&_.L(A,_.gN)?{buttonRenderer:Object.assign({},_.L(A,_.gN),{command:void 0,isDisabled:!this.formValid||H||k})}:null};
_.q.computeSubmitCommand_=function(A){return A||null};
_.q.onSubmit_=function(A){var H=this;A.stopPropagation();A.preventDefault();this.submitCommand_&&(A={},A.comment_text=this.titleValue,A.clip_external_video_id=this.videoId,A.clip_offset_ms=parseInt(this.start*1E3,10),A.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.tx(this.hostElement,[this.submitCommand_,A]).then(function(){H.set("isLoading_",!1)},function(){H.set("isLoading_",!1)}))};
_.q.playerAdStartHandler_=function(){_.Ud(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.q.playerAdEndHandler_=function(){_.Ud(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.q.onVideoProgress_=function(){var A=this;this.getPlayer().then(function(H){var k,d=(H==null?void 0:(k=H.getPresentingPlayerType)==null?void 0:k.call(H))===2;A.isAdPlaying!==d&&(d?A.playerAdStartHandler_():A.playerAdEndHandler_())})};
PQ.prototype.onEndValidChanged_=PQ.prototype.onEndValidChanged_;PQ.prototype.onStartValidChanged_=PQ.prototype.onStartValidChanged_;PQ.prototype.onTitleValidChanged_=PQ.prototype.onTitleValidChanged_;PQ.prototype.onEndChanged_=PQ.prototype.onEndChanged_;PQ.prototype.onStartChanged_=PQ.prototype.onStartChanged_;PQ.prototype.onTitleChanged_=PQ.prototype.onTitleChanged_;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],PQ.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",Object)],PQ.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],PQ.prototype,"data",void 0);_.E([_.C({value:""}),_.l("design:type",String)],PQ.prototype,"titleValue",void 0);
_.E([_.C({value:!1}),_.l("design:type",Boolean)],PQ.prototype,"titleValid",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],PQ.prototype,"start",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],PQ.prototype,"startValid",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],PQ.prototype,"end",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],PQ.prototype,"endValid",void 0);_.E([_.C({value:""}),_.l("design:type",String)],PQ.prototype,"videoId",void 0);
_.E([_.C({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.l("design:type",Boolean)],PQ.prototype,"formValid",void 0);_.E([_.C({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.l("design:type",Object)],PQ.prototype,"submitButton_",void 0);_.E([_.C({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.l("design:type",Object)],PQ.prototype,"submitCommand_",void 0);
_.E([_.C({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.l("design:type",Object)],PQ.prototype,"cancelButton_",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],PQ.prototype,"isLoading_",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],PQ.prototype,"isAdPlaying",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],PQ.prototype,"returnTime",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],PQ.prototype,"isAtLiveHead",void 0);
_.E([_.Ze("title-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],PQ.prototype,"onTitleChanged_",null);_.E([_.Ze("start-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],PQ.prototype,"onStartChanged_",null);_.E([_.Ze("end-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],PQ.prototype,"onEndChanged_",null);
_.E([_.Ze("title-valid-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],PQ.prototype,"onTitleValidChanged_",null);_.E([_.Ze("start-valid-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],PQ.prototype,"onStartValidChanged_",null);_.E([_.Ze("end-valid-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],PQ.prototype,"onEndValidChanged_",null);
_.E([_.h6({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],PQ);
_.Q(PQ,"yt-clip-creation-renderer",function(){if(yJB===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;vo_===void 0&&(vo_=document.createElement("template"));var d=vo_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);yJB=A}A=yJB;return A},{mode:2});var GI=function(){return _.a.apply(this,arguments)||this};
_.I(GI,_.a);GI.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"}}}};
GI.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(A){return A.hasOwnProperty("clipCreationRenderer")})&&_.Ud(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
GI.prototype.onPanelContentVisibleChanged=GI.prototype.onPanelContentVisibleChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.bU.YtVisibilityBehavior),_.l("design:type",Object)],GI.prototype,"ytVisibilityBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],GI.prototype,"ytdReduxBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],GI.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],GI.prototype,"panelContentVisible",void 0);_.E([_.fF("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GI.prototype,"onPanelContentVisibleChanged",null);_.E([_.O6({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],GI);
_.Q(GI,"ytd-clip-section-renderer",function(){if(JJ3!==void 0)return JJ3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return JJ3=A},{mode:1});var Fhi;var XcM;var Ds_;var SkL=function(){return _.a.apply(this,arguments)||this};
_.I(SkL,_.a);_.E([_.C(),_.l("design:type",Object)],SkL.prototype,"data",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],SkL.prototype,"ytRendererBehavior",void 0);_.E([_.O6({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],SkL);
_.Q(SkL,"ytd-hashtag-grid-tile-renderer",function(){if(Ds_!==void 0)return Ds_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Ds_=A},{mode:1});var FH=function(){return _.a.apply(this,arguments)||this};
_.I(FH,_.a);FH.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
FH.prototype.updateRichGridTrendingHashtagsVisibility=function(){var A,H;if(((A=this.data)==null||!A.isExpanded)&&(H=this.data)!=null&&H.tiles){A=this.data.tiles.length;H=A>this.richGridItemsPerRow?this.richGridItemsPerRow+1:A;var k=Math.ceil(A/H);this.fullyVisibleRows=A%H===1&&k===2?1:Math.min(k,2);this.isShowMoreVisible=this.fullyVisibleRows<k}};
FH.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
FH.prototype.updateRichGridTrendingHashtagsVisibility=FH.prototype.updateRichGridTrendingHashtagsVisibility;_.E([_.C(),_.l("design:type",Object)],FH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Number)],FH.prototype,"fullyVisibleRows",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FH.prototype,"isShowMoreVisible",void 0);_.E([_.C({selector:_.ik,value:0}),_.l("design:type",Number)],FH.prototype,"richGridItemsPerRow",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],FH.prototype,"ytdReduxBehavior",void 0);_.E([_.fF("data","richGridItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FH.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.E([_.O6({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],FH);
_.Q(FH,"ytd-hashtag-grid-shelf-renderer",function(){if(XcM!==void 0)return XcM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return XcM=A},{mode:1});var C_3;var Kh1;var az_=0,XH=function(){var A=_.a.call(this)||this;A.selected=!1;A.isOverlay=!1;A.inputId="toggle-option-"+az_;az_++;return A};
_.I(XH,_.a);XH.prototype.onTap=function(){_.Ed(this.hostElement,"ytd-toggle-option-clicked")};
_.E([_.C(),_.l("design:type",String)],XH.prototype,"label",void 0);_.E([_.C(),_.l("design:type",String)],XH.prototype,"inputId",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],XH.prototype,"selected",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],XH.prototype,"isOverlay",void 0);_.E([_.O6({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.l("design:paramtypes",[])],XH);
_.Q(XH,"ytd-toggle-option-renderer",function(){if(Kh1!==void 0)return Kh1;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Kh1=A},{mode:1});var Dx=function(){var A=_.a.apply(this,arguments)||this;A.isToggleOption=!1;A.isOverlay=!1;return A};
_.I(Dx,_.a);Dx.prototype.onTap=function(A){A.preventDefault();this.data&&(A=!this.data.checked,this.set("data.checked",A),_.Ed(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:A,value:this.data.value}))};
_.nP.Object.defineProperties(Dx.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Dx.prototype.onTap=Dx.prototype.onTap;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Dx.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Dx.prototype,"isToggleOption",void 0);_.E([_.C(),_.l("design:type",Object)],Dx.prototype,"isOverlay",void 0);_.E([_.G("data.responseText"),_.l("design:type",String),_.l("design:paramtypes",[])],Dx.prototype,"label",null);
_.E([_.Ze("ytd-toggle-option-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Dx.prototype,"onTap",null);_.E([_.O6({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Dx);
_.Q(Dx,"ytd-checkbox-survey-option-renderer",function(){if(C_3!==void 0)return C_3;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return C_3=A},{mode:1});var cJR;var pcL;var S4=function(){var A=_.a.apply(this,arguments)||this;A.checked=!1;A.isToggleOption=!1;return A};
_.I(S4,_.a);S4.prototype.onTap=function(){this.data&&(this.checked?_.Ud(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Ud(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
S4.prototype.onTap=S4.prototype.onTap;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],S4.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],S4.prototype,"checked",void 0);_.E([_.C(),_.l("design:type",Object)],S4.prototype,"isToggleOption",void 0);_.E([_.Ze("ytd-toggle-option-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],S4.prototype,"onTap",null);
_.E([_.O6({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],S4);
_.Q(S4,"ytd-radio-button-survey-option-renderer",function(){if(pcL!==void 0)return pcL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return pcL=A},{mode:1});var Ce=function(){var A=_.a.apply(this,arguments)||this;A.disableAnimation=!1;A.isToggleOption=!0;A.followUpSurveyCommand=null;A.selectedRatingEndpoint=null;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;A.styleOverrideAttribute=!0;A.isDarkMode=!1;A.isSubmitted=!1;A.roundedContainer=!0;A.improveShortsResponseRate=_.b("web_improve_shorts_response_rate");A.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 A};
_.I(Ce,_.a);_.q=Ce.prototype;
_.q.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"}}}}};
_.q.attached=function(){var A=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(k){var d;if((d=k[0])!=null&&d.isIntersecting){_.oO().reportShown(A.hostElement);var W;(W=A.intersectionObserver)==null||W.unobserve(A.hostElement)}},{rootMargin:"0px",
threshold:.6});var H;(H=this.intersectionObserver)==null||H.observe(this.hostElement)};
_.q.onDarkModeToggledAction=function(A){this.isDarkMode=A};
_.q.dataChanged=function(){var A;if(((A=this.data)==null?void 0:A.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var H;((H=this.data)==null?void 0:H.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var k,d,W,z;this.darkColorPalette=(k=this.data)==null?void 0:(d=k.inlineContent)==null?void 0:(W=d.compactVideoRenderer)==null?void 0:(z=W.thumbnail)==null?
void 0:z.darkColorPalette;var u,B,h,O;this.lightColorPalette=(u=this.data)==null?void 0:(B=u.inlineContent)==null?void 0:(h=B.compactVideoRenderer)==null?void 0:(O=h.thumbnail)==null?void 0:O.lightColorPalette;var T,m;if(((T=this.data)==null?0:(m=T.inlineContent)==null?0:m.compactVideoRenderer)&&this.isShortsStyle){var J,g,v,y;A=_.K3((J=this.data)==null?void 0:(g=J.inlineContent)==null?void 0:(v=g.compactVideoRenderer)==null?void 0:(y=v.thumbnail)==null?void 0:y.thumbnails);_.NH(this.hostElement,
{"--yt-background-url":"url("+A+")"})}};
_.q.handleRequestCompletion=function(){this.hostElement.hidden&&_.Ed(this.hostElement,"yt-dismissible-item-dismissed")};
_.q.onPopupClosed=function(A){var H;((H=A.detail)==null?void 0:H.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Ud(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.q.handleInlineSurveyRatingSelect=function(A,H){var k=this;this.selectedRatingEndpoint=A;this.followUpSurveyCommand=H;this.expanded=!!A;this.getOptionRenderers().forEach(function(d,W){k.notifyPath("followUpSurveyCommand.followUpOptions."+W+".checkboxSurveyOptionRenderer.checked");k.set("followUpSurveyCommand.followUpOptions."+W+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),A=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Ud(this.hostElement,"yt-reel-non-video-content-dismissal-command",[A]))};
_.q.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Ud(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var A,H=(A=this.data)==null?void 0:A.dismissalEndpoint;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.q.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Ud(this.hostElement,"yt-close-popup-action"))};
_.q.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var A=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{A=this.getOptionRenderers().filter(function(d){return d.checked});
if(A.length===0)return;A=A.map(function(d){return d.responseEndpoint})}var H=[];
A.forEach(function(d,W){W!==0&&(d=_.L(d,_.Ts))&&d.feedbackToken&&H.push(d.feedbackToken)});
if(A=A[0]){var k={};H.length>0&&(k.extra_feedback_tokens=H);this.ytComponentBehavior.resolveCommand(A,{form:k})}}};
_.q.getOptionRenderers=function(){var A=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(H){A.isSingleSelect=!!_.L(H,FdR);return A.isSingleSelect?_.L(H,FdR):_.L(H,X$1)}):[]};
_.q.handleInlineSurveyOptionSelect=function(A){A=this.optionSelector.indexOf(A);A!==-1&&this.optionSelector.selectIndex(A)};
_.q.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.q.maybeGetBackgroundColor=function(A){return this.isDarkMode?A.section2Color:A.section3Color};
_.q.colorPaletteChanged=function(){var A=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;A=A&&this.maybeGetBackgroundColor(A);this.dismissibleEl.style.backgroundColor=!A||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.iw(A)};
_.nP.Object.defineProperties(Ce.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Ce.prototype.colorPaletteChanged=Ce.prototype.colorPaletteChanged;Ce.prototype.onPopupClosed=Ce.prototype.onPopupClosed;Ce.prototype.handleRequestCompletion=Ce.prototype.handleRequestCompletion;Ce.prototype.dataChanged=Ce.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Ce.prototype,"actionHandlerBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Ce.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],Ce.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.ol("#follow-up-survey-options"),_.l("design:type",Object)],Ce.prototype,"optionSelector",void 0);_.E([_.C(),_.l("design:type",Object)],Ce.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],Ce.prototype,"disableAnimation",void 0);_.E([_.C(),_.l("design:type",Object)],Ce.prototype,"isToggleOption",void 0);_.E([_.C(),_.l("design:type",Object)],Ce.prototype,"followUpSurveyCommand",void 0);_.E([_.C(),_.l("design:type",Object)],Ce.prototype,"selectedRatingEndpoint",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Ce.prototype,"expanded",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ce.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ce.prototype,"isShortsStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ce.prototype,"styleOverrideAttribute",void 0);_.E([_.C(),_.l("design:type",Boolean)],Ce.prototype,"isSingleSelect",void 0);_.E([_.C(),_.l("design:type",Object)],Ce.prototype,"isDarkMode",void 0);
_.E([_.C(),_.l("design:type",Object)],Ce.prototype,"lightColorPalette",void 0);_.E([_.C(),_.l("design:type",Object)],Ce.prototype,"darkColorPalette",void 0);_.E([_.G("selectedRatingEndpoint","isShortsStyle"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ce.prototype,"isOptionSelected",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ce.prototype,"roundedContainer",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ce.prototype,"improveShortsResponseRate",void 0);_.E([_.ol("#dismissible"),_.l("design:type",HTMLElement)],Ce.prototype,"dismissibleEl",void 0);_.E([_.ol("#dismiss-button yt-icon-button"),_.l("design:type",HTMLElement)],Ce.prototype,"dismissButtonEl",void 0);_.E([_.ol("#inline-survey-header yt-icon-button"),_.l("design:type",HTMLElement)],Ce.prototype,"inlineHeaderDismissButtonEl",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ce.prototype,"dataChanged",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ce.prototype,"handleRequestCompletion",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ce.prototype,"onPopupClosed",null);
_.E([_.fF("darkColorPalette","lightColorPalette","isDarkMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ce.prototype,"colorPaletteChanged",null);_.E([_.O6({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Ce);
_.Q(Ce,"ytd-inline-survey-renderer",function(){if(cJR!==void 0)return cJR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cJR=A},{mode:1});var Qf3;var V7B;var Ke=function(){var A=_.a.apply(this,arguments)||this;A.visibleVideos=[];A.hiddenVideos=[];A.modern=_.b("web_modern_buttons");A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(Ke,_.a);_.q=Ke.prototype;_.q.attached=function(){var A=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.onDarkModeToggledAction(A)};
_.q.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"}}}};
_.q.dataChanged=function(){var A=this;this.requestElementsPerRow();var H,k;this.currentColorPalette=this.isDarkTheme?(H=this.data)==null?void 0:H.darkColorData:(k=this.data)==null?void 0:k.lightColorData;var d;if((d=this.currentColorPalette)==null?0:d.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.No(this,function(){A.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.q.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.q.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.q.computeIsFirstFeedItem=function(A){return A};
_.q.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A);this.data&&(this.currentColorPalette=A?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.q.getCurrentLogo=function(A,H){if(A)return H?A.darkLogoImage:A.lightLogoImage};
_.q.computeTitleStyle=function(A){var H;if((H=this.data)!=null&&H.title&&A&&A.textPrimary!==void 0)return"color:"+_.iw(A.textPrimary)+";"};
_.q.computeSubtitleStyle=function(A){var H;if((H=this.data)!=null&&H.subtitle&&A&&A.textSecondary!==void 0)return"color:"+_.iw(A.textSecondary)+";"};
_.q.computeDismissIconStyle=function(A){if(this.data&&this.data.dismissButton&&A&&A.textPrimary!==void 0)return"--yt-button-color:"+_.iw(A.textPrimary)+";"};
_.q.computeOverflowButtonStyle=function(A){if(this.data&&this.data.overflowButton&&A&&A.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.iw(A.textPrimary)+";--yt-spec-icon-active-other:"+_.iw(A.textPrimary)+";"};
_.q.computeBackgroundStyle=function(A){if(A&&this.data){var H="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var k=_.K3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);k&&(H+='background-image:url("'+k+'");')}A.backgroundColor!==void 0&&(H+="background-color:"+_.h1(A.backgroundColor)+";");return H}};
_.q.computeButton=function(){var A,H=Object.assign({},_.L((A=this.data)==null?void 0:A.showMoreButton,_.gN));if(this.modern&&H){H.style="STYLE_MONO_OUTLINE";var k;if(A=(k=this.currentColorPalette)==null?void 0:k.textPrimary)H.colorData={basicColorPaletteData:{foregroundTitleColor:A,borderColor:A}}}return H};
_.q.shouldShowBottomButton=function(A,H){return!(A==null?0:A.header)&&!(A==null||!A.primaryButton)&&H<3};
_.q.checkExpanded=function(A){this.isExpanded=A&&A.content?this.hiddenVideos.length===0:!0};
_.q.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.q.getLogoHeight=function(A){return this.logoWithPadding(A)?"26":"20"};
_.q.getLogoImageId=function(A){return this.logoWithPadding(A)?"logo-image-with-padding":"logo-image"};
_.q.computeHasSectionHeader=function(A){return!!A.header};
_.q.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var A;if((A=this.data.primaryButton)==null?0:A.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 H;((H=this.data.dismissButton)==null?0:H.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var k,d;((k=this.data)==null?0:(d=k.primaryButton)==null?0:d.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.q.setVisibleVideos=function(A){if(this.data&&this.data.content)if(this.data.content.length){var H=this.data.content.length;this.data.header?A?(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.slimItemsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow-1),H))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.q.setHasMovieRenderer=function(){var A;if((A=this.data)!=null&&A.content){var H;this.hasMovieRenderer=!!_.L((H=this.data)==null?void 0:H.content[0],_.zPA)}else this.hasMovieRenderer=!1};
_.q.requestElementsPerRow=function(){_.Ed(this.hostElement,"yt-request-elements-per-row")};
_.q.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var A=_.r(this.hiddenMediaRenderers),H=A.next();!H.done;H=A.next())H.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(A=_.Va(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&A.focus()}};
_.q.updateTitleSpec=function(){var A;(A=this.data)!=null&&A.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.q.logoWithPadding=function(A){var H,k,d;return(A=(H=this.getCurrentLogo(A,this.isDarkTheme))==null?void 0:(k=H.thumbnails)==null?void 0:(d=k[0])==null?void 0:d.height)&&A%31===0?!0:!1};
_.q.onUpdateElementsPerRowAction=function(A,H,k){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A);k&&this.slimItemsPerRow!==k&&(this.slimItemsPerRow=k)};
Ke.prototype.slimItemsPerRowChanged=Ke.prototype.slimItemsPerRowChanged;Ke.prototype.elementsPerRowChanged=Ke.prototype.elementsPerRowChanged;Ke.prototype.dataChanged=Ke.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],Ke.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Ke.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Ke.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ke.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Ke.prototype,"currentColorPalette",void 0);_.E([_.C(),_.l("design:type",Array)],Ke.prototype,"visibleVideos",void 0);_.E([_.C(),_.l("design:type",Array)],Ke.prototype,"hiddenVideos",void 0);
_.E([_.C(),_.l("design:type",Object)],Ke.prototype,"primaryButton",void 0);_.E([_.C({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],Ke.prototype,"elementsPerRow",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Ke.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Ke.prototype,"isExpanded",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Ke.prototype,"largeTitle",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Ke.prototype,"hasMovieRenderer",void 0);_.E([_.C(),_.l("design:type",Number)],Ke.prototype,"slimItemsPerRow",void 0);_.E([_.C(),_.l("design:type",Boolean)],Ke.prototype,"showLightVideoMetadata",void 0);_.E([_.C(),_.l("design:type",Boolean)],Ke.prototype,"showDarkVideoMetadata",void 0);_.E([_.C(),_.l("design:type",Number)],Ke.prototype,"videoMetadataColor",void 0);
_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],Ke.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.l("design:type",Boolean)],Ke.prototype,"isFirstFeedItem",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.l("design:type",Boolean)],Ke.prototype,"hasSectionHeader",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],Ke.prototype,"roundedContainer",void 0);_.E([_.$I("#visible-video-container ytd-rich-grid-media"),_.l("design:type",Array)],Ke.prototype,"visibleMediaRenderers",void 0);_.E([_.$I("#hidden-video-container ytd-rich-grid-media"),_.l("design:type",Array)],Ke.prototype,"hiddenMediaRenderers",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ke.prototype,"modern",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ke.prototype,"dataChanged",null);_.E([_.fF("elementsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ke.prototype,"elementsPerRowChanged",null);_.E([_.fF("slimItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ke.prototype,"slimItemsPerRowChanged",null);
_.E([_.O6({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Ke);
_.Q(Ke,"ytd-brand-video-shelf-renderer",function(){if(V7B!==void 0)return V7B;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return V7B=A},{mode:1});var Eoi;var aJ=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(aJ,_.a);_.q=aJ.prototype;_.q.attached=function(){var A=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.onDarkModeToggledAction(A)};
_.q.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"}}}};
_.q.dataChanged=function(){this.requestElementsPerRow();var A,H;this.currentColorPalette=this.isDarkTheme?(A=this.data)==null?void 0:A.darkColorData:(H=this.data)==null?void 0:H.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.q.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.q.computeIsFirstFeedItem=function(A){return A};
_.q.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A);this.data&&(this.currentColorPalette=A?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(A),this.updateButtonPalette())};
_.q.shouldShowThumbnailInMetadata=function(A){return A<=1};
_.q.computeVideoMetadataColor=function(){if(this.data){var A;if((A=this.currentColorPalette)==null?0:A.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.q.computeTitleStyle=function(A){var H;if((H=this.data)!=null&&H.title&&A&&A.textPrimary!==void 0)return"color:"+_.iw(A.textPrimary)+";"};
_.q.computeSubtitleStyle=function(A){var H;if((H=this.data)!=null&&H.subtitle&&A&&A.textSecondary!==void 0)return"color:"+_.iw(A.textSecondary)+";"};
_.q.computeOverflowButtonStyle=function(A){if(this.data&&this.data.overflowButton&&A.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.iw(A.textPrimary)+";--yt-spec-icon-active-other:"+_.iw(A.textPrimary)+";"};
_.q.computeBackgroundStyle=function(A){if(A&&this.data){var H="";A.backgroundColor!==void 0&&(H+="background-color:"+_.h1(A.backgroundColor)+";");return H}};
_.q.computeHasOverflowButton=function(A){return!!A.overflowButton};
_.q.updateButtonPalette=function(){if(this.data){var A;if((A=this.data.primaryButton)==null?0:A.buttonRenderer){var H;if((H=this.currentColorPalette)==null?0:H.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var k;((k=this.currentColorPalette)==null?0:k.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)})}}};
_.q.requestElementsPerRow=function(){_.Ed(this.hostElement,"yt-request-elements-per-row")};
_.q.updateTitleSpec=function(){var A;(A=this.data)!=null&&A.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")};
_.q.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
aJ.prototype.elementsPerRowChanged=aJ.prototype.elementsPerRowChanged;aJ.prototype.dataChanged=aJ.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],aJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],aJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],aJ.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],aJ.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],aJ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],aJ.prototype,"currentColorPalette",void 0);_.E([_.C(),_.l("design:type",Object)],aJ.prototype,"primaryButton",void 0);
_.E([_.C({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],aJ.prototype,"elementsPerRow",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],aJ.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],aJ.prototype,"titleSize",void 0);_.E([_.C(),_.l("design:type",Number)],aJ.prototype,"videoMetadataColor",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],aJ.prototype,"miniMode",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.l("design:type",Boolean)],aJ.prototype,"isFirstFeedItem",void 0);_.E([_.C({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],aJ.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.l("design:type",Boolean)],aJ.prototype,"hasOverflowButton",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aJ.prototype,"dataChanged",null);_.E([_.fF("elementsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aJ.prototype,"elementsPerRowChanged",null);_.E([_.O6({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],aJ);
_.Q(aJ,"ytd-brand-video-singleton-renderer",function(){if(Eoi!==void 0)return Eoi;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Eoi=A},{mode:2});var UsB;var lze=_.c(function(A){var H=A.data;return _.x(_.GA,{data:function(){return H().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(H().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var k=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":k=88;break a;default:k=88}return k},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return H().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"$h"),NGB=_.c(function(A){var H=A.metadataRow;
var k=A.delimiter;return _.x(_.Ix,{each:function(){return H().textParts||[]},
keyBy:"INDEX"},function(d,W){return _.x(_.sD,null,_.x(_.j$,{text:d,noWrap:!0,userInput:!0}),_.x(t7B,{delimiter:k,max:function(){return H().textParts.length},
index:W}))})},"ai"),t7B=_.c(function(A){var H=A.delimiter;
var k=A.max;var d=A.index;return _.x(_.R,{cond:function(){return(H==null?void 0:H())&&k()-1>d()},
then:function(){return _.x("span",null,H)}})},"bi"),M7L=_.c(function(A){var H=A.data;
A={};return _.x("yt-profile-page-header-information-view-model",{class:_.ER("profilePageHeaderInformationViewModelHost",(A.profilePageHeaderInformationViewModelMobile=!1,A))},_.x(_.R,{cond:function(){return H().onTap},
then:function(){return _.x(_.c2,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.h7(H().onTap)}},_.x(_.HG,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:lze}))},
else:function(){return _.x("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.x(_.HG,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:lze}))}}),_.x("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.x(_.R,{cond:function(){return H().onTap},
then:function(){return _.x(_.HG,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(k){var d=k.data;
return _.x(_.c2,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.h7(d().onTap)}},_.x(_.j$,{text:function(){return d().title}}))}})},
else:function(){return _.x(_.HG,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(k){var d=k.data;
return _.x(_.j$,{text:function(){return d().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.x(_.HG,{data:function(){return H().metadata}},{profilePageHeaderMetadataViewModel:function(k){var d=k.data;
return _.x(_.R,{cond:function(){return d().metadataRows},
then:function(W){return _.x("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.x(_.Ix,{each:W,keyBy:"INDEX"},function(z,u){return _.x(_.sD,null,_.x(NGB,{metadataRow:z,delimiter:" \u2022 "}),_.x(t7B,{delimiter:" \u2022 ",max:function(){return W().length},
index:u}))}))}})}})))},"ci");
M7L.idomCompat=!0;_.Sw(M7L,"yt-profile-page-header-information-view-model",{props:{data:_.Ih}});var cQ=function(){return _.a.apply(this,arguments)||this};
_.I(cQ,_.a);cQ.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cQ.prototype,"data",void 0);_.E([_.O6({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],cQ);
_.Q(cQ,"ytd-effect-pivot-header-view-model",function(){if(UsB!==void 0)return UsB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return UsB=
A},{mode:1});var noL;var pe=function(){return _.a.apply(this,arguments)||this};
_.I(pe,_.a);pe.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pe.prototype,"data",void 0);_.E([_.O6({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],pe);
_.Q(pe,"ytd-source-pivot-header-renderer",function(){if(noL!==void 0)return noL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return noL=A},{mode:1});var ZRQ;var fz_;var wc_;var QL=function(){var A=_.a.apply(this,arguments)||this;A.playing=!1;A.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.fl(A);A.active=!1;return A};
_.I(QL,_.a);_.q=QL.prototype;_.q.detached=function(){this.stop()};
_.q.play=function(){var A=this,H,k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return A.active=!0,H=A.get("data.inlinePlaybackEndpoint.watchEndpoint"),k=H.videoId||A.data.videoId,d=H.startTimeSeconds||0,W=H.playerParams||null,_.b("kevlar_player_update_killswitch")?u.yield(A.playerEl.update({args:{video_id:k,startSeconds:d,player_params:W}}),2):(A.playerEl.loadVideoWithPlayerVars({video_id:k,startSeconds:d,player_params:W,autoplay:!0}),u.jumpTo(2));if(u.nextAddress!=4)return u.yield(A.playerEl.getPlayerPromise(),
4);z=u.yieldResult;z.unloadModule("annotations_module");z.addEventListener("onStateChange",function(B){A.onPlayerStateChange(B)});
_.EN(u)})};
_.q.onPlayerStateChange=function(A){if(this.active)switch(this.playing=A===1,A){case 1:_.Ed(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Ed(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.q.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.q.resize=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return k.yield(A.playerEl.getPlayerPromise(),2);H=k.yieldResult;H.setSize(NaN,NaN);_.EN(k)})};
_.E([_.C(),_.l("design:type",Object)],QL.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],QL.prototype,"playing",void 0);_.E([_.C(),_.l("design:type",Object)],QL.prototype,"playerId",void 0);_.E([_.ol("#player"),_.l("design:type",Object)],QL.prototype,"playerEl",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],QL);
_.Q(QL,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(wc_!==void 0)return wc_;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return wc_=A},{mode:1});var ooQ;var $s_;var VL=function(){var A=_.a.apply(this,arguments)||this;A.width=0;return A};
_.I(VL,_.a);_.q=VL.prototype;_.q.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.nF(this,this.onEnded));this.mp4El.addEventListener("error",_.nF(this,this.onError))};
_.q.detached=function(){this.videoEl.removeEventListener("ended",_.nF(this,this.onEnded));this.mp4El.removeEventListener("error",_.nF(this,this.onError))};
_.q.play=function(){var A=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var H=this.videoEl.play();H?H.then(function(){A.handleVideoStartPlaying()}).catch(function(){_.Ed(A.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Ed(this.hostElement,"yt-video-thumbnail-not-playing")};
_.q.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.q.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.q.dataChanged=function(){var A;if((A=this.data)==null?0:A.thumbnailPlaceholder)A=_.C3(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+A+")";this.stop();this.autoplay&&this.play()};
_.q.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.q.onEnded=function(){this.stop();_.Ed(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.q.onError=function(){_.Ed(this.hostElement,"yt-video-thumbnail-error")};
_.q.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.q.getVideoThumbnail=function(A){if(A&&A.length)return A[0]};
VL.prototype.dataChanged=VL.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],VL.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],VL.prototype,"animatePlaceholderOnEntrance",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],VL.prototype,"autoplay",void 0);_.E([_.C({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.l("design:type",Object)],VL.prototype,"videoThumbnail",void 0);
_.E([_.C(),_.l("design:type",Boolean)],VL.prototype,"loop",void 0);_.E([_.C(),_.l("design:type",Boolean)],VL.prototype,"isVideoPlaying",void 0);_.E([_.C(),_.l("design:type",Object)],VL.prototype,"width",void 0);_.E([_.ol("#mp4"),_.l("design:type",HTMLElement)],VL.prototype,"mp4El",void 0);_.E([_.ol("#placeholder"),_.l("design:type",HTMLElement)],VL.prototype,"placeholderEl",void 0);_.E([_.ol("#video"),_.l("design:type",HTMLVideoElement)],VL.prototype,"videoEl",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VL.prototype,"dataChanged",null);_.E([_.h6({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],VL);
_.Q(VL,"yt-video-as-thumbnail-details",function(){if($s_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;ooQ===void 0&&(ooQ=document.createElement("template"));var d=ooQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);$s_=A}A=$s_;return A},{mode:2});var EL=function(){var A=_.a.apply(this,arguments)||this;A.disableGridStateAware=!1;A.animationEnabled=_.b("enable_web_ketchup_hero_animation");A.transitioningOut=!1;A.narrow=!1;A.narrower=!1;A.isCarouselInFeed=!1;A.videoTimeoutJobId=0;A.panelTimeoutJobId=0;A.panelTimeoutJobStartMs=0;A.actionMap={"yt-window-resized":"onWindowResized"};return A};
_.I(EL,_.a);_.q=EL.prototype;_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.q.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var A;this.player&&((A=this.data)==null?0:A.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.q.attached=function(){this.onWindowResized()};
_.q.detached=function(){this.clearTimeouts()};
_.q.onWindowResized=function(){this.updateSize()};
_.q.computePanelLayout=function(A){return A&&A.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.q.playVideo=function(){var A;this.video&&((A=this.data)==null?0:A.videoThumbnail)&&this.video.play();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.play()};
_.q.stopVideo=function(){var A;this.video&&((A=this.data)==null?0:A.videoThumbnail)&&this.video.stop();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.stop()};
_.q.transitionOut=function(){var A=this;this.transitioningOut=!0;return new Promise(function(H){A.player&&(A.player.playing=!1);var k=_.Va(A.hostElement).querySelector("#action-button");if(k){var d=function(){k.removeEventListener("animationend",d);_.IE.cancelJob(W);H();A.transitioningOut=!1};
var W=_.ma(_.IE,d,1E3);k.addEventListener("animationend",d)}else H(),A.transitioningOut=!1})};
_.q.computeMetadataOrder=function(A){return A&&A.metadataOrder&&A.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?A.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.q.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.q.computeAvatarSize=function(A){return A&&A.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.q.onContentClick=function(A){if(!_.XU(_.F_(A),this.hostElement,["A".toString(),"BUTTON".toString()])){var H;if((H=this.data)==null?0:H.navigationEndpoint){var k;this.componentBehavior.resolveCommand((k=this.data)==null?void 0:k.navigationEndpoint)}}};
_.q.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.q.setBackgroundImage=function(A){if(A=this.getBackgroundImageUrl(A))_.Va(this.hostElement).querySelector("#hero").style.backgroundImage="url("+A+")"};
_.q.setScrimLayer=function(A){var H=this.getScrimLayerColorStops(A);A=((A==null?void 0:A.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(A=180);_.pZ("HTML_DIR")==="rtl"&&(A=-A);H&&(_.Va(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+A+"deg, "+H+")")};
_.q.isNarrower=function(){return this.hostElement.clientWidth<EL.NARROW_VERSION_SIZE};
_.q.getScrimLayerColorStops=function(){var A,H=(A=this.data)==null?void 0:A.scrimColorValues;if(!H)return null;if(H.length===1)return A=_.h1(H[0]),A+" 0%, "+A+" 100%";if(H.length===3){var k=[0,72,98];return H.map(function(d,W){return _.h1(d)+" "+k[W]+"%"}).join(",")}return null};
_.q.getBackgroundImageUrl=function(A){return A&&A.largeFormFactorBackgroundThumbnail?_.C3((A.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||A.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.q.onPlaying=function(){this.startVideoTimeout()};
_.q.onEnded=function(){this.rotate()};
_.q.startPanelTimeout=function(){var A=this;if(!this.panelTimeoutJobId){var H=this.get("data.minPanelDisplayDurationMs");H&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.ma(_.IE,function(){A.rotate()},H))}};
_.q.startVideoTimeout=function(){var A=this;if(!this.videoTimeoutJobId){_.IE.cancelJob(this.panelTimeoutJobId);var H=Date.now()-this.panelTimeoutJobStartMs;H=Math.max(0,this.get("data.minPanelDisplayDurationMs")-H);H=Math.max(this.get("data.minVideoPlayDurationMs")||0,H);this.videoTimeoutJobId=_.ma(_.IE,function(){A.rotate()},H)}};
_.q.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.IE.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.IE.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.q.rotate=function(){this.clearTimeouts();_.Ed(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.nP.Object.defineProperties(EL.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Va(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Va(this.hostElement).querySelector("#video")}}});
_.nP.Object.defineProperties(EL,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
EL.prototype.onEnded=EL.prototype.onEnded;EL.prototype.onPlaying=EL.prototype.onPlaying;EL.prototype.dataChanged=EL.prototype.dataChanged;_.E([_.P(_.bu),_.l("design:type",Object)],EL.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],EL.prototype,"componentBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],EL.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.P(_.Q_3),_.l("design:type",Object)],EL.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],EL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"disableGridStateAware",void 0);_.E([_.C(),_.l("design:type",Object)],EL.prototype,"data",void 0);_.E([_.C({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.l("design:type",String)],EL.prototype,"panelLayout",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"animationEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"transitioningOut",void 0);
_.E([_.C({computed:"computeMetadataOrder(data)"}),_.l("design:type",Boolean)],EL.prototype,"metadataOrder",void 0);_.E([_.C({computed:"computeByline(data)"}),_.l("design:type",Object)],EL.prototype,"byline",void 0);_.E([_.C({computed:"computeAvatarSize(data)"}),_.l("design:type",Number)],EL.prototype,"avatarSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"narrow",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"narrower",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"layoutStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"isCarouselInFeed",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EL.prototype,"dataChanged",null);_.E([_.Ze("yt-default-promo-panel-renderer-playing"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EL.prototype,"onPlaying",null);
_.E([_.Ze("yt-default-promo-panel-renderer-ended"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EL.prototype,"onEnded",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],EL);
_.Q(EL,"ytd-default-promo-panel-renderer",function(){if(fz_!==void 0)return fz_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return fz_=A},{mode:1});_.uL("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var UL=function(){var A=_.a.apply(this,arguments)||this;A.narrower=!1;A.dotMenuVisible=!1;A.paginationThumbnailsVisible=!1;A.active=!0;A.disableGridStateAware=!1;A.actionMap={"yt-window-resized":"onWindowResized"};return A};
_.I(UL,_.a);_.q=UL.prototype;_.q.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]]"}}}}}};
_.q.attached=function(){document.addEventListener("yt-page-type-changed",_.nF(this,this.onPageTypeChange));this.currentPageSubtype=_.ojC(location.pathname);this.onWindowResized()};
_.q.detached=function(){this.jobId&&_.IE.cancelJob(this.jobId);this.updateSizeJobId&&_.IE.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.nF(this,this.onPageTypeChange))};
_.q.onPageTypeChange=function(A){this.active=A.detail.newPageSubtype===this.currentPageSubtype};
_.q.onWindowResized=function(){this.updateSize()};
_.q.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.q.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.q.setCarouselItem=function(A){A>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.IE.cancelJob(this.jobId);var H=this.getCurrentPanelElement();H&&H.stopVideo();this.currentItemIndex=A%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(H||(H=this.getCurrentPanelElement()),H.playVideo()):this.startRotationJob()};
_.q.scrollThumbnails=function(A){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var H=this.getCurrentPaginationElement();if(H){var k=_.Va(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?k.style.transform="translateX(0)":(H=H.offsetWidth+8,k.style.transform="translateX(-"+H*(A-Math.ceil(Math.floor(this.overlay.offsetWidth/H)/2)+1)+"px)")}}};
_.q.onDataChanged=function(){var A=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Hp(_.IE,function(){var H;(H=A.getCurrentPanelElement())==null||H.updateSize();A.updateSize()}))};
_.q.getCurrentPanelElement=function(){return _.Va(_.Va(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.q.getCurrentPaginationElement=function(){return _.Va(_.Va(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.q.getNavigationClass=function(A,H){return A===H?"selected":""};
_.q.getNavigationDurationStyle=function(A){return"animation-duration:"+(this.get("data.carouselItems."+A+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.q.onNavigationTap=function(A){var H=this,k=A.model.index;k!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){H.setCarouselItem(k)}),this.autorotateActive=!1)};
_.q.onVideoThumbnailEnded=function(){var A=this;if(this.shouldRotate()){var H=this.getCurrentPaginationElement();H&&(H.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){H.classList.remove("finished");A.setNextCarouselItem()}))}};
_.q.onVideoThumbnailError=function(){this.startRotationJob()};
_.q.onVideoNotPlaying=function(){this.startRotationJob()};
_.q.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.q.startRotationJob=function(){var A=this;_.IE.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.IE.addLowPriorityJob(function(){A.getCurrentPanelElement().transitionOut().then(function(){A.setNextCarouselItem()})},this.rotationTimeout))};
_.q.computeDotMenuVisible=function(A,H){return!!A&&!!A.carouselItems&&A.carouselItems.length>1&&!A.paginationThumbnails||!!H};
_.q.computePaginationThumbnailsVisible=function(A,H){var k,d;return((d=A==null?void 0:(k=A.paginationThumbnails)==null?void 0:k.length)!=null?d:0)>1&&!H};
_.q.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.q.computePaginatorAlignment=function(A){return(A==null?void 0:A.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.q.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.q.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.q.isNarrower=function(A){return(A!=null?A:0)<EL.NARROW_VERSION_SIZE};
UL.prototype.activeChanged=UL.prototype.activeChanged;UL.prototype.onVideoNotPlaying=UL.prototype.onVideoNotPlaying;UL.prototype.onVideoThumbnailError=UL.prototype.onVideoThumbnailError;UL.prototype.onVideoThumbnailEnded=UL.prototype.onVideoThumbnailEnded;UL.prototype.onDataChanged=UL.prototype.onDataChanged;_.E([_.P(_.bu),_.l("design:type",Object)],UL.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],UL.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],UL.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],UL.prototype,"currentItem",void 0);
_.E([_.C(),_.l("design:type",Number)],UL.prototype,"currentItemIndex",void 0);_.E([_.C(),_.l("design:type",Number)],UL.prototype,"rotationTimeout",void 0);_.E([_.C(),_.l("design:type",Number)],UL.prototype,"loopCount",void 0);_.E([_.C({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.l("design:type",String)],UL.prototype,"paginatorAlignment",void 0);_.E([_.C(),_.l("design:type",Number)],UL.prototype,"jobId",void 0);
_.E([_.C(),_.l("design:type",Number)],UL.prototype,"updateSizeJobId",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],UL.prototype,"isCarouselInFeed",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UL.prototype,"narrower",void 0);_.E([_.C({computed:"computeDotMenuVisible(data, narrower)"}),_.l("design:type",Object)],UL.prototype,"dotMenuVisible",void 0);
_.E([_.C({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.l("design:type",Object)],UL.prototype,"paginationThumbnailsVisible",void 0);_.E([_.C({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.l("design:type",String)],UL.prototype,"layoutType",void 0);_.E([_.C({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],UL.prototype,"autorotateActive",void 0);_.E([_.C(),_.l("design:type",Object)],UL.prototype,"active",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UL.prototype,"disableGridStateAware",void 0);_.E([_.ol("#overlay"),_.l("design:type",HTMLElement)],UL.prototype,"overlay",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UL.prototype,"onDataChanged",null);
_.E([_.Ze("yt-video-thumbnail-ended"),_.Ze("yt-default-promo-panel-renderer-rotate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UL.prototype,"onVideoThumbnailEnded",null);_.E([_.Ze("yt-video-thumbnail-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UL.prototype,"onVideoThumbnailError",null);
_.E([_.Ze("yt-video-thumbnail-not-playing"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UL.prototype,"onVideoNotPlaying",null);_.E([_.s6("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UL.prototype,"activeChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],UL);
_.Q(UL,"ytd-carousel-item-renderer",function(){if(ZRQ!==void 0)return ZRQ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return ZRQ=A},{mode:2});var AOM;var HS_;var siL;var kJi;var lX=function(){var A=_.a.apply(this,arguments)||this;A.answerExpanded=!1;return A};
_.I(lX,_.a);lX.prototype.toggleAnswer_=function(A){var H=_.X_(A);H&&H.classList.contains("yt-simple-endpoint")||(A.preventDefault(),A.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
lX.prototype.toggleAnswer_=lX.prototype.toggleAnswer_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lX.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lX.prototype,"answerExpanded",void 0);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],lX.prototype,"toggleAnswer_",null);
_.E([_.h6({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],lX);
_.Q(lX,"yt-generic-faq-question-renderer",function(){if(kJi===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;siL===void 0&&(siL=document.createElement("template"));var d=siL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);kJi=A}A=kJi;return A},{mode:2});_.uL("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var t4=function(){return _.a.apply(this,arguments)||this};
_.I(t4,_.a);t4.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],t4.prototype,"data",void 0);_.E([_.h6({is:"yt-faq-section-renderer",disableElementRegistration:!0})],t4);
_.Q(t4,"yt-faq-section-renderer",function(){if(HS_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;AOM===void 0&&(AOM=document.createElement("template"));var d=AOM;k.call(H,d.content.cloneNode(!0),A.content.firstChild);HS_=A}A=HS_;return A},{mode:2});_.Sw(_.PoG,"yt-card-view-model",{props:{data:_.Ih,className:_.Ih,isSelected:_.Ih}});var duQ;var WxG;var zxB=function(){return _.a.apply(this,arguments)||this};
_.I(zxB,_.a);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],zxB.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zxB.prototype,"data",void 0);_.E([_.O6({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],zxB);
_.Q(zxB,"ytd-channel-history-renderer",function(){if(WxG!==void 0)return WxG;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return WxG=A},{mode:1});var qOi;var rOG=function(){return _.a.apply(this,arguments)||this};
_.I(rOG,_.a);_.E([_.C(),_.l("design:type",Object)],rOG.prototype,"data",void 0);_.E([_.O6({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],rOG);
_.Q(rOG,"ytd-feature-enablement-info-renderer",function(){if(qOi!==void 0)return qOi;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return qOi=A},{mode:1});var uTV;var BkB;var Nk=function(){var A=_.a.apply(this,arguments)||this;A.textBoxMaxLength=_.b("enable_tvod_campaign_code_integration")?15:12;return A};
_.I(Nk,_.a);_.q=Nk.prototype;_.q.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.q.onSubmit=function(){var A=this.data.serviceEndpoint,H=_.L(A,_.FB);H&&A&&(H.couponCode=this.userInput,_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}}))};
_.q.validate=function(){var A=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=A&&!this.data.errorMessage;this.showErrorMessage=A&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.b("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.q.computeStyle=function(A){return A};
_.q.computeShowValidationBelowInput=function(A){return A!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.q.updateUserInputFromBinding=function(A){this.userInput=A.currentTarget.value};
_.q.updateShowErrorMessageFromBinding=function(A){this.showErrorMessage=A.detail.value};
_.nP.Object.defineProperties(Nk.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Nk.prototype.dataChanged=Nk.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Nk.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],Nk.prototype,"userInput",void 0);_.E([_.C(),_.l("design:type",Boolean)],Nk.prototype,"disableApplyButton",void 0);_.E([_.C(),_.l("design:type",Boolean)],Nk.prototype,"hideApplyButton",void 0);
_.E([_.C(),_.l("design:type",Boolean)],Nk.prototype,"hideErrorMessage",void 0);_.E([_.C(),_.l("design:type",Boolean)],Nk.prototype,"showTick",void 0);_.E([_.C(),_.l("design:type",Boolean)],Nk.prototype,"showErrorMessage",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],Nk.prototype,"couponStyle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.l("design:type",Boolean)],Nk.prototype,"showValidationBelowInput",void 0);_.E([_.C(),_.l("design:type",Object)],Nk.prototype,"textBoxMaxLength",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nk.prototype,"dataChanged",null);
_.E([_.G("showTick","showErrorMessage","userInput"),_.l("design:type",String),_.l("design:paramtypes",[])],Nk.prototype,"validationState",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Nk);
_.Q(Nk,"ytd-ypc-coupon-renderer",function(){if(BkB!==void 0)return BkB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return BkB=A},{mode:1});var Mk=function(){return _.a.apply(this,arguments)||this};
_.I(Mk,_.a);Mk.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"}}}};
Mk.prototype.computeStyle=function(A){return A};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Mk.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],Mk.prototype,"buttonStyle",void 0);_.E([_.O6({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Mk);
_.Q(Mk,"ytd-flow-bottom-bar-renderer",function(){if(uTV!==void 0)return uTV;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return uTV=A},{mode:1});var exQ;var xui;var ne=function(){return _.a.apply(this,arguments)||this};
_.I(ne,_.a);ne.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ne.prototype.focus=function(A){this.title&&_.EY(this.title,A)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ne.prototype,"data",void 0);_.E([_.ol("#title"),_.l("design:type",HTMLElement)],ne.prototype,"title",void 0);_.E([_.O6({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],ne);
_.Q(ne,"ytd-flow-top-bar-renderer",function(){if(xui!==void 0)return xui;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return xui=A},{mode:1});var iSV;var hxB;var OSB;var Zx=function(){return _.a.apply(this,arguments)||this};
_.I(Zx,_.a);Zx.prototype.freeTextValueChanged=function(){_.Ud(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Zx.prototype.updateFreeTextValueFromBinding=function(A){this.freeTextValue=A.detail.value};
_.nP.Object.defineProperties(Zx.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(H=(A=this.data)==null?void 0:A.responseMaxLength)!=null?H:500,d;return((d=this.freeTextValue)!=null?d:"").length>=k?"maxed-out":""}}});
Zx.prototype.freeTextValueChanged=Zx.prototype.freeTextValueChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Zx.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],Zx.prototype,"freeTextValue",void 0);_.E([_.ol("#user-input"),_.l("design:type",HTMLTextAreaElement)],Zx.prototype,"input",void 0);
_.E([_.G("freeTextValue"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zx.prototype,"characterLimitClass",null);_.E([_.fF("freeTextValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zx.prototype,"freeTextValueChanged",null);_.E([_.h6({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Zx);
_.Q(Zx,"yt-free-text-input-flow-step-renderer",function(){if(OSB===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;hxB===void 0&&(hxB=document.createElement("template"));var d=hxB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);OSB=A}A=OSB;return A},{mode:2});var fe=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return A};
_.I(fe,_.a);fe.prototype.handleFreeTextFlowStepInputChanged=function(A){_.Ud(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:A}}])};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],fe.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],fe.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],fe.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],fe);
_.Q(fe,"ytd-free-text-input-flow-step-renderer",function(){if(iSV!==void 0)return iSV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return iSV=A},{mode:1});var Rx_;var TkB;var mu_;var JOB=function(){return _.a.apply(this,arguments)||this};
_.I(JOB,_.a);_.E([_.C(),_.l("design:type",Object)],JOB.prototype,"data",void 0);_.E([_.h6({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],JOB);
_.Q(JOB,"yt-survey-answer-card-renderer",function(){if(mu_===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;TkB===void 0&&(TkB=document.createElement("template"));var d=TkB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);mu_=A}A=mu_;return A},{mode:2});var g$B;var bSB;var wQ=function(){return _.a.apply(this,arguments)||this};
_.I(wQ,_.a);_.q=wQ.prototype;_.q.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.q.selectedItemChanged=function(A){_.Ud(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[A.feedbackToken||""]}])};
_.q.surveyAnswerCardRendererClicked=function(A){if(A.target&&_.L(A.model.item,UAG)){var H=A.target;A=_.L(A.model.item,UAG);A.onTapCommand?_.NT(H,[A.onTapCommand],H):this.data.onTapCommand&&_.NT(H,[this.data.onTapCommand],H);this.selectedItemChanged(A)}};
_.q.checkIsCancellationStyle=function(A){return A==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.q.updateSelectedItemFromBinding=function(A){this.selectedItem=A.detail.value};
wQ.prototype.onSelectedItemChanged=wQ.prototype.onSelectedItemChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],wQ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],wQ.prototype,"selectedItem",void 0);_.E([_.C({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.l("design:type",Boolean)],wQ.prototype,"isCancellationStyle",void 0);
_.E([_.fF("selectedItem"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wQ.prototype,"onSelectedItemChanged",null);_.E([_.h6({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],wQ);
_.Q(wQ,"yt-survey-flow-step-renderer",function(){if(bSB===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;g$B===void 0&&(g$B=document.createElement("template"));var d=g$B;k.call(H,d.content.cloneNode(!0),A.content.firstChild);bSB=A}A=bSB;return A},{mode:2});var oJ=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return A};
_.I(oJ,_.a);oJ.prototype.handleSurveyFlowStepOptionChanged=function(A){this.ytdReduxBehavior.dispatch(_.p8({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:A}));_.Ud(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:A}}])};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],oJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],oJ.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],oJ.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],oJ);
_.Q(oJ,"ytd-survey-flow-step-renderer",function(){if(Rx_!==void 0)return Rx_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Rx_=A},{mode:1});var Lxi;var v$G;var yOR=function(){return _.a.apply(this,arguments)||this};
_.I(yOR,_.a);_.E([_.C(),_.l("design:type",Object)],yOR.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],yOR);
_.Q(yOR,"ytd-metadata-line-renderer",function(){if(v$G!==void 0)return v$G;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return v$G=A},{mode:1});var $W=function(){return _.a.apply(this,arguments)||this};
_.I($W,_.a);$W.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$W.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],$W.prototype,"isMasthead",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],$W);
_.Q($W,"ytd-media-product-renderer",function(){if(Lxi!==void 0)return Lxi;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Lxi=A},{mode:1});var jiI;var AF=function(){return _.a.apply(this,arguments)||this};
_.I(AF,_.a);AF.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
AF.prototype.onBillboardImageLoaded=function(){_.Ed(this.hostElement,"yt-refit")};
AF.prototype.onBillboardImageLoaded=AF.prototype.onBillboardImageLoaded;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],AF.prototype,"data",void 0);_.E([_.ol("#billboardImage"),_.l("design:type",Object)],AF.prototype,"billboardImage",void 0);_.E([_.Ze("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AF.prototype,"onBillboardImageLoaded",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],AF);
_.Q(AF,"ytd-billboard-masthead-renderer",function(){if(jiI!==void 0)return jiI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return jiI=A},{mode:1});var IUB;var Ht=function(){var A=_.a.apply(this,arguments)||this;A.smallSize=!1;return A};
_.I(Ht,_.a);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Ht.prototype,"ytComponentBehaviorType",void 0);_.E([_.C(),_.l("design:type",Object)],Ht.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ht.prototype,"smallSize",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Ht);
_.Q(Ht,"ytd-bullet-formatted-string",function(){if(IUB!==void 0)return IUB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return IUB=A},{mode:1});var YOQ;var sU=function(){return _.a.apply(this,arguments)||this};
_.I(sU,_.a);sU.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],sU.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],sU);
_.Q(sU,"ytd-offer-detail-renderer",function(){if(YOQ!==void 0)return YOQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return YOQ=A},{mode:1});var Ph_;var kb=function(){return _.a.apply(this,arguments)||this};
_.I(kb,_.a);kb.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kb.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],kb);
_.Q(kb,"ytd-offer-detail-step-renderer",function(){if(Ph_!==void 0)return Ph_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Ph_=A},{mode:1});var GJi;var dh=function(){var A=_.a.apply(this,arguments)||this;A.isInOfferModule=!1;return A};
_.I(dh,_.a);_.q=dh.prototype;_.q.computeHasEndpoint=function(){var A;return!((A=this.data)==null||!A.onClickCommand)};
_.q.dataChanged=function(){var A;if((A=this.data)==null?0:A.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")};
_.q.detached=function(){var A;if((A=this.data)==null?0:A.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.q.handleClickEvent=function(){var A;if((A=this.data)==null?0:A.onClickCommand){var H;this.componentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.q.onContentKeyDown=function(A){A.key==="Enter"?this.handleClickEvent(A):A.key===" "&&A.preventDefault()};
_.q.onContentKeyUp=function(A){A.key===" "&&this.handleClickEvent(A)};
dh.prototype.dataChanged=dh.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],dh.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],dh.prototype,"data",void 0);_.E([_.C({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],dh.prototype,"hasEndpoint",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],dh.prototype,"isInOfferModule",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dh.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],dh);
_.Q(dh,"ytd-channel-masthead-renderer",function(){if(GJi!==void 0)return GJi;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return GJi=A},{mode:1});var Fx3;var Wt=function(){var A=_.a.apply(this,arguments)||this;A.thumbnailObjectFit="CONTAIN";A.thumbnailObjectPosition="LEFT";A.isExpanded=!1;return A};
_.I(Wt,_.a);_.q=Wt.prototype;_.q.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.q.dataChanged=function(){this.resetStates()};
_.q.computeisTapOnOfferInfoContainerEnabled=function(){var A;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.q.onExpandBtnClick=function(){var A,H=_.L((A=this.data)==null?void 0:A.showMoreButtonRenderer,t2G);H&&_.wN(_.A7(),H.trackingParams);this.isExpanded=!this.isExpanded};
_.q.onOfferInfoClick=function(A){this.isTapOnOfferInfoContainerEnabled&&(_.XU(_.F_(A)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.DG(_.F_(A)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.q.onBottomBarClick=function(){this.executeTapCommand()};
_.q.executeTapCommand=function(){var A,H=(A=this.data)==null?void 0:A.tapCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.q.resetStates=function(){this.isExpanded=!1};
_.nP.Object.defineProperties(Wt.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var A=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),H,k,d;return((H=this.data)==null?void 0:H.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&A&&!!((k=this.data)==null?0:(d=k.benefits)==null?0:d.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((H=_.L((A=this.data)==null?void 0:A.showMoreButtonRenderer,t2G))==null?void 0:H.showMoreButtonTitle)||((k=this.data)==null?void 0:k.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((H=_.L((A=this.data)==null?void 0:A.showMoreButtonRenderer,t2G))==null?void 0:H.showLessButtonTitle)||((k=this.data)==null?void 0:k.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var A;return(A=this.showLessButtonTitle)!=null?A:""}var H;return(H=this.showMoreButtonTitle)!=null?H:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((H=this.data)==null?0:H.footerTitle)||((k=this.data)==null?0:k.footerSubtitle))}}});
Wt.prototype.dataChanged=Wt.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Wt.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",String)],Wt.prototype,"thumbnailObjectFit",void 0);
_.E([_.C(),_.l("design:type",String)],Wt.prototype,"thumbnailObjectPosition",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.l("design:type",Boolean)],Wt.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.E([_.C(),_.l("design:type",Object)],Wt.prototype,"isExpanded",void 0);_.E([_.C(),_.l("design:type",Object)],Wt.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.footerIcon)"}),_.l("design:type",String)],Wt.prototype,"icon",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Wt.prototype,"dataChanged",null);_.E([_.G("data.thumbnail"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Wt.prototype,"hasThumbnail",null);_.E([_.G("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Wt.prototype,"enableExpandButton",null);
_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Wt.prototype,"enableOfferContentIcon",null);_.E([_.G("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Wt.prototype,"showMoreButtonTitle",null);_.E([_.G("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Wt.prototype,"showLessButtonTitle",null);
_.E([_.G("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.l("design:type",String),_.l("design:paramtypes",[])],Wt.prototype,"expandedBtnText",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Wt.prototype,"enableBottomBar",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Wt);
_.Q(Wt,"ytd-offer-card-renderer",function(){if(Fx3!==void 0)return Fx3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Fx3=A},{mode:1});var Xr_;var z9=function(){return _.a.apply(this,arguments)||this};
_.I(z9,_.a);z9.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"}}}};
z9.prototype.onClick=function(A){if(!_.XU(A.composedPath()||[],this.hostElement,["A".toString()])){var H,k;if((A=(k=_.L((H=this.data)==null?void 0:H.actionButton,_.gN))==null?void 0:k.command)&&!this.ytComponentBehavior.resolveCommand(A)){var d;(d=_.A7())==null||d.clickCommand(A);_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}})}}};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],z9.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],z9);
_.Q(z9,"ytd-offer-content-renderer",function(){if(Xr_!==void 0)return Xr_;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Xr_=A},{mode:1});var DuG;var q7=function(){return _.a.apply(this,arguments)||this};
_.I(q7,_.a);q7.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.nP.Object.defineProperties(q7.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var A,H;return!((A=this.data)==null||!A.title)||!((H=this.data)==null||!H.description)}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],q7.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],q7.prototype,"hasHeaderData",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],q7);
_.Q(q7,"ytd-offer-section-renderer",function(){if(DuG!==void 0)return DuG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return DuG=A},{mode:1});var SO1;var rh=function(){return _.a.apply(this,arguments)||this};
_.I(rh,_.a);
rh.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"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rh.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],rh);
_.Q(rh,"ytd-offer-selection-step-renderer",function(){if(SO1!==void 0)return SO1;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return SO1=A},{mode:1});var Ch3;var uF=function(){return _.a.apply(this,arguments)||this};
_.I(uF,_.a);uF.prototype.computeStyle=function(A){return A};
uF.prototype.computeImageWidth=function(A){return A==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.E([_.C({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.l("design:type",String)],uF.prototype,"containerStyle",void 0);_.E([_.C({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.l("design:type",String)],uF.prototype,"imageWidth",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uF.prototype,"data",void 0);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],uF);
_.Q(uF,"ytd-confirmation-masthead-renderer",function(){if(Ch3!==void 0)return Ch3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Ch3=A},{mode:1});var KxI;var Bt=function(){return _.a.apply(this,arguments)||this};
_.I(Bt,_.a);Bt.prototype.computeStyle=function(A){return A};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Bt.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.l("design:type",String)],Bt.prototype,"containerStyle",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Bt);
_.Q(Bt,"ytd-purchase-complete-detail-renderer",function(){if(KxI!==void 0)return KxI;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return KxI=A},{mode:1});var aUM;var eH=function(){var A=_.a.apply(this,arguments)||this;A.scriptsAppended=!1;return A};
_.I(eH,_.a);eH.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"}}}};
eH.prototype.onDataChanged=function(){var A=this.get("data.gtmId");A&&(_.W2(A,_.pZ("GL","")),this.setupConversionTracking())};
eH.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var A=document.createElement("noscript");A.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(A);this.scriptsAppended=!0}};
eH.prototype.onDataChanged=eH.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],eH.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],eH.prototype,"scriptsAppended",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eH.prototype,"onDataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],eH);
_.Q(eH,"ytd-purchase-complete-step-renderer",function(){if(aUM!==void 0)return aUM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return aUM=A},{mode:1});var cOB;var xb=function(){return _.a.apply(this,arguments)||this};
_.I(xb,_.a);xb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xb.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],xb);
_.Q(xb,"ytd-ypc-transaction-error-message-renderer",function(){if(cOB!==void 0)return cOB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cOB=A},{mode:1});var prI;var Qi1;var iF=function(){var A=_.a.apply(this,arguments)||this;A.handlePhoneVerificationSuccess=function(H){if(A.isValidPhoneVerificationCompletionMessageEvent(H)){var k;((k=A.data)==null?0:k.nextStepCommand)&&A.ytComponentBehavior.resolveCommand(A.data.nextStepCommand)}};
return A};
_.I(iF,_.a);iF.prototype.isValidPhoneVerificationCompletionMessageEvent=function(A){if(A.data!=="yt-phone-verification-complete")return!1;A=_.te(A.origin);return A!==null&&A.includes("youtube.com")};
iF.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
iF.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],iF.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],iF.prototype,"data",void 0);_.E([_.h6({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],iF);
_.Q(iF,"yt-feature-enablement-soft-entry-renderer",function(){if(Qi1===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;prI===void 0&&(prI=document.createElement("template"));var d=prI;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Qi1=A}A=Qi1;return A},{mode:1});var VUB;var E$M;var UuG;var lUL;var tUG=function(){return _.a.apply(this,arguments)||this};
_.I(tUG,_.a);_.E([_.C(),_.l("design:type",Object)],tUG.prototype,"data",void 0);_.E([_.h6({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],tUG);
_.Q(tUG,"yt-benefits-item-renderer",function(){if(lUL===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;UuG===void 0&&(UuG=document.createElement("template"));var d=UuG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);lUL=A}A=lUL;return A},{mode:2});var NkB;var MUi;var hF=function(){return _.a.apply(this,arguments)||this};
_.I(hF,_.a);hF.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
hF.prototype.computeisWithoutPadding=function(){var A;return((A=this.data)==null?void 0:A.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],hF.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.l("design:type",Boolean)],hF.prototype,"isWithoutPadding",void 0);_.E([_.h6({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],hF);
_.Q(hF,"yt-benefits-section-renderer",function(){if(MUi===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;NkB===void 0&&(NkB=document.createElement("template"));var d=NkB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);MUi=A}A=MUi;return A},{mode:2});var OU=function(){return _.a.apply(this,arguments)||this};
_.I(OU,_.a);OU.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
OU.prototype.computeisUsingLargeWidth=function(){var A;return((A=this.data)==null?void 0:A.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],OU.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.l("design:type",Boolean)],OU.prototype,"isUsingLargeWidth",void 0);_.E([_.h6({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],OU);
_.Q(OU,"yt-benefits-flow-step-renderer",function(){if(E$M===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;VUB===void 0&&(VUB=document.createElement("template"));var d=VUB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);E$M=A}A=E$M;return A},{mode:2});var n$M;var ZSe;var RU=function(){return _.a.apply(this,arguments)||this};
_.I(RU,_.a);RU.prototype.checkIsUsingLargeWidth=function(){var A;return((A=this.data)==null?void 0:A.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.C(),_.l("design:type",Object)],RU.prototype,"data",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.E([_.C({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.l("design:type",Boolean)],RU.prototype,"isUsingLargeWidth",void 0);_.E([_.h6({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],RU);
_.Q(RU,"yt-confirmation-flow-step-renderer",function(){if(ZSe===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;n$M===void 0&&(n$M=document.createElement("template"));var d=n$M;k.call(H,d.content.cloneNode(!0),A.content.firstChild);ZSe=A}A=ZSe;return A},{mode:2});var fUe;var wrB;var o$I=function(){return _.a.apply(this,arguments)||this};
_.I(o$I,_.a);_.E([_.C(),_.l("design:type",Object)],o$I.prototype,"data",void 0);_.E([_.h6({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],o$I);
_.Q(o$I,"yt-info-flow-step-renderer",function(){if(wrB===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;fUe===void 0&&(fUe=document.createElement("template"));var d=fUe;k.call(H,d.content.cloneNode(!0),A.content.firstChild);wrB=A}A=wrB;return A},{mode:2});var $uG;var AiL;var H_I=function(){return _.a.apply(this,arguments)||this};
_.I(H_I,_.a);_.E([_.C(),_.l("design:type",Object)],H_I.prototype,"data",void 0);_.E([_.h6({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],H_I);
_.Q(H_I,"yt-info-list-flow-step-renderer",function(){if(AiL===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;$uG===void 0&&($uG=document.createElement("template"));var d=$uG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);AiL=A}A=AiL;return A},{mode:2});var sQM=_.c(function(A){var H=A.data;return _.x("styled-text-view-model",{class:_.ER("ytStyledTextViewModelHost",function(){return hEB(H().fontAttributes)},function(){return ih_(H().color)})},_.x(_.j$,{text:function(){return H().text},
ariaLabel:function(){var k,d,W;return(W=(k=H().accessibility)==null?void 0:(d=k.accessibilityData)==null?void 0:d.label)!=null?W:""}}))},"di");
sQM.idomCompat=!0;var kY_=_.c(function(A){var H=function(){var W,z,u,B;return(B=(u=(W=A.alt)==null?void 0:W.call(A))!=null?u:(z=A.data().accessibilityData)==null?void 0:z.label)!=null?B:""},k=function(){return A.data().imageWidth},d=function(){return A.data().imageHeight};
return _.x("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.x(_.R,{cond:function(){var W=A.data();if(W){var z,u,B;var h=((z=_.wj().resolve(_.fZ(_.sF)))==null?0:z())?(u=W.imageDark)!=null?u:W.imageLight:(B=W.imageLight)!=null?B:W.imageDark}else h=void 0;return h},
then:function(W){return _.x(_.GA,Object.assign({},A,{data:W,alt:H,targetWidth:k,targetHeight:d,preserveHeight:!0,preserveWidth:!0}))}}))},"ei");
kY_.idomCompat=!0;var T9=_.c(function(A){var H=A.data;A=_.DS(function(){return H().slots},[]);
var k=_.DS(function(){return H().layoutProperties},{}),d=_.wj().resolve(_.ju);
return _.x("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:rc1(k,d)},_.x(_.Ix,{each:A,keyBy:"INDEX"},function(W){return _.x("div",{class:"ytContainerLayoutViewModelSlot",style:rc1(function(){return W().layoutProperties},d)},_.x(_.HG,{data:function(){return W().contents}},{containerLayoutViewModel:T9,
badgeViewModel:_.CK,buttonViewModel:_.U7,styledTextViewModel:sQM,contentPreviewImageViewModel:function(z){return _.x(_.to,{data:z.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(z){return _.x(kY_,{data:z.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"fi");
T9.idomCompat=!0;var djL=_.c(function(A){var H=A.data;var k=A.stateFns;var d=function(){var O=H(),T=O.productId;return!(!O.clearGroupId&&!T)},W=function(){var O=H(),T=O.clearGroupId;
return(O=O.productId)?k().isProductSelected(O):T?k().getSelectedProductByGroupId(T)==null:!1},z=function(O){var T=H(),m=T.clearGroupId;
if(T=T.productId)k().onProductSelected(T),O==null||O.forEach(function(J){_.mu(J)});
else if(m)k().onClearGroupSelected(m)},u=function(){var O=H(),T=O.clearGroupId;
if(O=O.productId){var m;return"group:"+(((m=k().getProductById(O))==null?void 0:m.groupId)||"")}return T?"group:"+T:""},B=_.DS(function(){return H().header},[]),h=_.DS(function(){return H().body},[]);
return _.x("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.x(_.R,{cond:function(){return B().length>0||d()},
then:function(){return _.x("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.x("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.x(_.HG,{data:B},{containerLayoutViewModel:function(O){return _.x("div",{class:"ytPdpCardSectionViewModelContentItem"},_.x(T9,{data:O.data}))},
styledTextViewModel:function(O){return _.x("div",{class:"ytPdpCardSectionViewModelContentItem"},_.x(sQM,{data:O.data}))}})),_.x(_.R,{cond:d,
then:function(){return _.x("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.x(_.P6,{checked:W,name:u,onChange:function(){z(H().onSelect)}}))}}))}}),_.x(_.R,{cond:function(){return h().length>0},
then:function(){return _.x("div",null,_.x(_.HG,{data:h},{containerLayoutViewModel:function(O){return _.x("div",{class:"ytPdpCardSectionViewModelContentItem"},_.x(T9,{data:O.data}))}}))}}))},"gi");
djL.idomCompat=!0;var WsB=_.c(function(A){var H=A.data;var k=A.stateFns;return _.x("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.x(_.R,{cond:function(){return H().banner},
then:function(d){return _.x("div",{class:"ytPdpCardViewModelBanner"},_.x(_.j$,{text:d}))}}),_.x(_.HG,{data:function(){return H().sections}},{pdpCardSectionViewModel:function(d){d=d.data;
var W={};return _.x("div",{class:_.ER("ytPdpCardViewModelSectionContainer",(W.ytPdpCardViewModelShowDividers=function(){return H().showDividers},W))},_.x(djL,{data:d,
stateFns:k}))}}))},"hi");
WsB.idomCompat=!0;var zfV=_.c(function(A){var H=A.data;var k=A.isOverlay;A={};return _.x("pdp-masthead-view-model",{class:_.ER("ytPdpMastheadViewModelHost",(A.ytPdpMastheadViewModelIsOverlay=k,A))},_.x(_.HG,{data:function(){return H().image}},{contentPreviewImageViewModel:_.to,
themedImageViewModel:function(d){return _.x(kY_,{data:d.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.x(_.R,{cond:function(){return H().title},
then:function(d){return _.x("h1",{class:"ytPdpMastheadViewModelHeading"},_.x(_.j$,{text:d,isOverlay:k}))}}),_.x(_.Ix,{each:function(){var d;
return(d=H().finePrint)!=null?d:[]}},function(d){return _.x("div",{class:"ytPdpMastheadViewModelFinePrint"},_.x(_.j$,{text:d,
isOverlay:k}))}))},"ii");
zfV.idomCompat=!0;var q_1=_.c(function(A){var H=A.data;var k=A.stateFns;var d=function(){return"pdp-pricing-group-selector-"+H().pricingGroupAttributeIds},W=_.DS(function(){return H().pricingGroupSelectorSectionHeader});
return _.x("pdp-pricing-group-selector-view-model",null,_.x(_.R,{cond:function(){return!!W()},
then:function(){return _.x(_.HG,{data:W},{sectionHeaderViewModel:function(z){z=z.data;var u={};return _.x("div",{class:_.ER("ytPdpPricingGroupSelectorViewModelSectionHeader",(u.ytPdpPricingGroupSelectorViewModelFullBleed=!0,u.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,u))},_.x(_.kG,{data:z}))}})}}),_.x("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.x(_.Ix,{each:function(){var z=k().getSelectedProductByGroupId(H().groupId);
if(!z)return _.YJ(Error("Dl`"+H().groupId)),[];var u,B=(u=H().pricingGroupAttributeIds)!=null?u:[],h;if((h=z.pricingGroups)==null||!h.length||!B.length)return[];u=z.pricingGroups.filter(function(J){return B.length?J.pricingGroupAttributes.every(function(g){return B.includes(g)}):!1});
z=[];if(B.length>0){u=[].concat(_.fV(u));h=_.r(B);for(var O=h.next(),T={};!O.done;T={targetAttrId:void 0},O=h.next())T.targetAttrId=O.value,O=u.findIndex(function(J){return function(g){return g.pricingGroupAttributes.includes(J.targetAttrId)}}(T)),O!==-1&&(z.push(u[O]),u.splice(O,1))}var m=k().getSelectedPricingGroupAttributesByGroupId(H().groupId);
return z.map(function(J){var g=!1;m&&J.pricingGroupAttributes&&(g=s_(J.pricingGroupAttributes,m));return{pricingGroup:J,isSelected:g}})},
keyBy:function(z){return z.pricingGroup.pricingGroupId}},function(z){return _.x("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.x("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.x(_.HG,{data:function(){return z().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:T9})),_.x("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.x(_.P6,{checked:function(){return z().isSelected},
name:d,onClick:function(){var u=z().pricingGroup;k().onPricingGroupSelected(u.pricingGroupId);if(u=_.h7(u.onSelectPricingGroup)){var B;(B=_.wj().resolve(_.J7))==null||B.resolveCommand(u)}}})))})))},"ji");
q_1.idomCompat=!0;var rie=_.c(function(A){var H=A.data;var k=A.stateFns;var d=function(){var u=k().getSelectedPricingOptions().map(function(O){return O.pricingOptionId}),B=k().getSelectedProductByGroupId(H().groupId);
if(!B)return _.YJ(Error("El`"+H().groupId)),[];var h=k().getSelectedPricingGroupAttributesByGroupId(H().groupId);return Jce(B.pricingOptions,h,u)},W=_.DS(function(){return H().pricingOptionSelectorSectionHeader}),z=function(){return d().length>1};
return _.x("pdp-pricing-option-selector-view-model",null,_.x(_.R,{cond:function(){return!!W()&&z()},
then:function(){return _.x(_.HG,{data:W},{sectionHeaderViewModel:function(u){u=u.data;var B={};return _.x("div",{class:_.ER("ytPdpPricingOptionSelectorViewModelSectionHeader",(B.ytPdpPricingOptionSelectorViewModelFullBleed=!0,B.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,B))},_.x(_.kG,{data:u}))}})}}),_.x(_.R,{cond:z,
then:function(){return _.x("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.x(_.Ix,{each:d,keyBy:"INDEX"},function(u){return _.x("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.x("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.x(_.HG,{data:function(){return u().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:T9})),_.x("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.x(_.P6,{checked:function(){return u().isSelected},
onClick:function(){k().onPricingOptionSelected(u().pricingOption.pricingOptionId);var B=u().pricingOption.onSelectPricingOption;if(B=_.h7(B)){var h;(h=_.wj().resolve(_.J7))==null||h.resolveCommand(B)}}})))}))}}))},"ki");
rie.idomCompat=!0;var uue=_.c(function(A){var H=A.data;var k=A.stateFns;return _.x("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.x(_.HG,{data:function(){var d,W;return(W=(d=k().getSelectedPricingOptions()[0])==null?void 0:d.primaryButton)!=null?W:H().emptyStateButton}},{buttonViewModel:_.U7}))},"li");
uue.idomCompat=!0;var B7e=_.c(function(A){var H=A.stateFns;return _.x("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.x(_.HG,{data:function(){return H().getSelectedPricingOptions().flatMap(function(k){return k.summaryLines}).filter(function(k){return!!k})}},{containerLayoutViewModel:function(k){return _.x("div",{class:"ytPdpSummaryViewModelLineItem"},_.x(T9,{data:k.data}))}}))},"mi");
B7e.idomCompat=!0;var efV=_.c(function(A){function H(v){var y=u();_.XI(_.O5("pdpStateEntity",y,{key:y,selectedPricingOptions:v}))}
var k=A.data;var d=A.internalScrolling;var W=A.stateFnsForTesting;var z=_.DS(function(){return k().allProducts},[]),u=_.DS(function(){return k().pdpStateEntityKey},""),B=_.o9(gHL,u),h=_.be(function(){_.pA(!0);
var v;return(v=W==null?void 0:W())!=null?v:L5B(B,z,H)},void 0,"Pzdsic"),O=_.DS(function(){return k().body},[]),T=_.DS(function(){return k().columnBreakHints},[]),m=function(){return k().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},J=function(){return m()||k().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},g=_.be(function(){var v=_.vG(k().background),y;
if(v==null?0:(y=v.sources)==null?0:y.length){var X=X===void 0?!0:X;v=_.DhI(void 0,v.sources,void 0,X,X?1E3:void 0,X?void 0:1E3)}else v=null;return v},void 0,"RDPOae");
_.CZ(function(){var v=k().onStartCommand;if(v&&(v=_.h7(v))){var y;(y=_.wj().resolve(_.J7))==null||y.resolveCommand(v)}});
A={};return _.x("pdp-view-model",{class:_.ER("ytPdpViewModelHost",(A.ytPdpViewModelHasBackground=function(){return J()||!!g()},A.ytPdpViewModelHasDarkBackground=J,A.ytPdpViewModelHasScrim=m,A.ytPdpViewModelInternalScrolling=d,A.ytPdpViewModelForceSingleColumn=function(){return T().length===0},A)),
style:_.Mt({"--pdp-view-model-background":function(){return g()?"url("+g()+")":void 0}})},_.x("div",{class:"ytPdpViewModelColumnContainer"},_.x(_.Ix,{each:function(){return vHe(O(),T())},
keyBy:"INDEX"},function(v){return _.x("div",{class:"ytPdpViewModelColumn"},_.x(_.HG,{data:v},{containerLayoutViewModel:function(y){return _.x(mQ,null,_.x(T9,{data:y.data}))},
dividerViewModel:function(y){return _.x(mQ,{fullBleed:!0},_.x(_.pvQ,{data:y.data}))},
pdpCardViewModel:function(y){return _.x(mQ,null,_.x(WsB,{data:y.data,stateFns:h}))},
pdpMastheadViewModel:function(y){return _.x(mQ,null,_.x(zfV,{data:y.data,isOverlay:J}))},
pdpPricingGroupSelectorViewModel:function(y){return _.x(mQ,null,_.x(q_1,{data:y.data,stateFns:h}))},
pdpPricingOptionSelectorViewModel:function(y){return _.x(mQ,null,_.x(rie,{data:y.data,stateFns:h}))},
pdpPrimaryButtonViewModel:function(y){return _.x(mQ,null,_.x(uue,{data:y.data,stateFns:h}))},
pdpSummaryViewModel:function(y){return _.x(mQ,null,_.x(B7e,{data:y.data,stateFns:h}))},
sectionHeaderViewModel:function(y){return _.x(mQ,{fullBleed:!0,noVerticalPadding:!0},_.x(_.kG,{data:y.data}))}}))})))},"ni");
efV.idomCompat=!0;var mQ=_.c(function(A){var H={};return _.x("div",{class:_.ER("ytPdpViewModelItem",(H.ytPdpViewModelFullBleed=A.fullBleed,H.ytPdpViewModelNoVerticalPadding=A.noVerticalPadding,H))},A.children)},"oi");_.Sw(efV,"pdp-view-model",{props:{data:_.Ih,stateFnsForTesting:_.Fc,internalScrolling:_.Fc}});var xj_=_.c(function(A){var H=A.data;var k=A.className;var d=_.o9(_.aI,function(){return H().flowStateEntityKey});
return _.x("ytm-premium-purchase-button-renderer",{class:_.ER("ytPremiumPurchaseButtonRendererHost",k)},_.x(_.HG,{data:function(){var W;return(W=_.L(d(),j5i))==null?void 0:W.primaryButtonOverride}},{buttonRenderer:function(W){return _.x(_.Sg,{data:W.data,
className:k})},
buttonViewModel:function(W){return _.x(_.U7,{data:W.data,className:k})}}))},"pi");
xj_.idomCompat=!0;var i_e=_.c(function(A){var H=A.data;A=A.className;var k=function(){return yc1(H().style)},d=_.ER("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",k),W=_.ER("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",k);
return _.x("yt-flow-bottom-bar-renderer",{class:_.ER("yt-flow-bottom-bar-renderer",A,k)},_.x(_.HG,{data:function(){return H().secondaryButton}},{buttonRenderer:function(z){return _.x(_.Sg,{data:z.data,
className:W})},
buttonViewModel:function(z){return _.x(_.U7,{data:z.data,className:W})},
premiumPurchaseButtonRenderer:function(z){return _.x(xj_,{data:z.data,className:W})}}),_.x(_.HG,{data:function(){return H().primaryButton}},{buttonRenderer:function(z){return _.x(_.Sg,{data:z.data,
className:d})},
buttonViewModel:function(z){return _.x(_.U7,{data:z.data,className:d})},
premiumPurchaseButtonRenderer:function(z){return _.x(xj_,{data:z.data,className:d})}}))},"qi");
i_e.idomCompat=!0;_.Sw(i_e,"yt-flow-bottom-bar-renderer",{props:{data:_.Ih,className:_.Ih}});var hf_=_.c(function(A){var H=_.ER(A.className,"ytOfferSummaryRendererHost");return _.x("yt-offer-summary-renderer",{class:H},_.x("div",{class:"ytOfferSummaryRendererTextContainer"},_.x("div",{class:"ytOfferSummaryRendererEyebrowText"},_.x(_.j$,{text:function(){return A.data().eyebrowText}})),_.x("div",{class:"ytOfferSummaryRendererTitle"},_.x(_.j$,{text:function(){return A.data().title}})),_.x("div",{class:"ytOfferSummaryRendererSubtitle"},_.x(_.j$,{text:function(){return A.data().subtitle}})),_.x("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.x(_.Ix,{each:function(){var k;
return(k=A.data().featureListData)!=null?k:[]}},function(k){var d;
return _.x("div",{class:"ytOfferSummaryRendererFeatureList"},_.x(_.n3,{icon:(d=k.icon)==null?void 0:d.iconType,active:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(k.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"}}}),_.x("div",{class:"ytOfferSummaryRendererFeatureListText"},_.x(_.j$,{text:k.text,
className:function(){return k.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.x("div",{class:"ytOfferSummaryRendererDescription"},_.x(_.j$,{text:function(){return A.data().description}}))))},"ri");_.Sw(_.c(function(A){var H={};H=_.ER("ytOfferSummaryFlowStepRendererHost",(H.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=A.shouldDisableHeaderTopMargin,H));return _.x("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:H},_.x("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.x("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.x(_.j$,{text:function(){return A.data().header}})),_.x("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.x(_.j$,{text:function(){return A.data().subtitle}}))),_.x("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.x(_.HG,{data:function(){return A.data().offerSummary}},{offerSummaryRenderer:function(k){return _.x(hf_,{data:k.data,
className:A.flowClassName})}})))},"si"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Fc,
flowClassName:_.Fc,flowStateEntityKey:_.Fc,shouldDisableHeaderTopMargin:_.Fc}});var O_L=_.c(function(A){var H=A.data;var k=A.className;var d=A.flowStateEntityKey;var W=A.selectionStepStyle;A=_.lc(function(h){var O=H(),T=d==null?void 0:d();h.target&&(h.stopPropagation(),h=T||"",T=_.aI(_.FI().getState(),h),O=Object.assign({},T,{premiumPurchaseFlowState:{selectedOptionId:O.optionId,primaryButtonOverride:O.primaryButtonOverride}}),_.FI().dispatch(_.kH("flowStateEntity",h,O)));return!1});
var z=function(){return(d==null?void 0:d())||""},u=_.o9(_.aI,z);
_.CZ(function(){var h=H(),O=z(),T=u();h.defaultSelected&&O!==""&&h.primaryButtonOverride&&IvG(h.optionId||"",O,h.primaryButtonOverride,T)});
var B={};return _.x("ytm-option-item-renderer",{"on:click":A,class:_.ER(k,"ytm-option-item-renderer",(B["ytm-option-item-renderer--lp2-style"]=function(){return(W==null?void 0:W())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},B))},_.x("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.x("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var h=H(),O=z(),T=u();T=_.L(T,j5i);return(T?(T==null?void 0:T.selectedOptionId)||"":h.defaultSelected&&O!==""?(h==null?void 0:h.optionId)||"":"")===H().optionId},
name:("input"+_.Ta(_.LU)).toString()})),_.x("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.x(_.HG,{data:function(){return H().titleBadge}},{badgeViewModel:function(h){return _.x(_.CK,{data:h.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.x(_.R,{cond:function(){return H().eyebrowText},
then:function(){return _.x("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.x(_.j$,{text:function(){return H().eyebrowText}}))}}),_.x("div",{class:"ytm-option-item-renderer__option-item-title"},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.x(_.j$,{text:function(){return H().subtitle}})),_.x(_.R,{cond:function(){return H().featureListData},
then:function(){return _.x("div",{class:"ytm-option-item-renderer__feature-list-data"},_.x(_.Ix,{each:function(){return H().featureListData||[]}},function(h){var O,T=(O=h.icon)==null?void 0:O.iconType;
a:switch(h.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":O="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":O="ytm-option-item-renderer__feature-list-icon-small";break a;default:O="ytm-option-item-renderer__feature-list-icon-default"}return _.x("div",{class:"ytm-option-item-renderer__feature-list"},_.x(_.n3,{icon:T,className:O,active:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.x("div",{class:"ytm-option-item-renderer__feature-list-text"},_.x(_.j$,{text:h.text,
className:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.x("div",{class:"ytm-option-item-renderer__option-item-description"},_.x(_.j$,{text:function(){return H().description}}))))},"ti");var Rf_=_.c(function(A){var H=A.data;var k=A.flowClassName;var d=A.flowStateEntityKey;var W=A.selectionStepStyle;return _.x("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.x("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.x("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.x(_.j$,{text:function(){return H().title}}),_.x(_.HG,{data:function(){return H().titleBadge}},{badgeViewModel:function(z){return _.x(_.CK,{data:z.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.x(_.R,{cond:function(){return H().subtitle},
then:function(){return _.x("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.x(_.j$,{text:function(){return H().subtitle}}))}}),_.x(_.R,{cond:function(){return H().featureListData},
then:function(z){return _.x("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.x(_.Ix,{each:z},function(u){var B;return _.x("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.x(_.n3,{icon:(B=u.icon)==null?void 0:B.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"}}}),_.x("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.x(_.j$,{text:u.text,
className:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.x(_.R,{cond:function(){return H().secondaryTitle},
then:function(){return _.x("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.x(_.j$,{text:function(){return H().secondaryTitle}}))}}),_.x(_.Ix,{each:function(){return H().sectionDisclaimers||[]}},function(z){return _.x("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.x(_.j$,{text:z}))})),_.x(_.HG,{data:function(){return H().optionItems}},{optionItemRenderer:function(z){return _.x("div",{class:"ytOptionSectionRendererOptionItem"},_.x(O_L,{data:z.data,
className:k,flowStateEntityKey:d,selectionStepStyle:W}))}}),_.x(_.R,{cond:function(){return H().offerText},
then:function(){return _.x("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.x(_.j$,{text:function(){return H().offerText}}))}}))},"ui");
Rf_.idomCompat=!0;var T7e=_.c(function(A){var H=A.data;var k=A.flowClassName;var d=A.flowStateEntityKey;A=A.isDesktop;var W=_.GP("div"),z=function(){var T;return(T=H().flowStateEntityKey)!=null?T:d==null?void 0:d()},u=function(){return(z==null?void 0:z())||""},B=function(){return H().style},h=_.o9(_.aI,u);
_.CZ(function(){YFI(H(),u(),h());setTimeout(function(){var T;(T=W.value)==null||T.focus()})});
var O={};return _.x("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.ER("ytm-option-selection-flow-step-renderer",(O["ytm-option-selection-flow-step-renderer--desktop"]=A,O["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return H().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},O))},_.x("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"},
_.x("div",{el:W,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.x(_.j$,{text:function(){return H().header}})),_.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.x(_.j$,{text:function(){return H().subtitle}}))),_.x(_.HG,{data:function(){return H().optionItems||[]}},{optionItemRenderer:function(T){return _.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.x(O_L,{data:T.data,
className:k,flowStateEntityKey:z,selectionStepStyle:B}))},
optionSectionRenderer:function(T){return _.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.x(Rf_,{data:T.data,flowClassName:k,flowStateEntityKey:z,selectionStepStyle:B}))}}))},"vi");
T7e.idomCompat=!0;_.Sw(T7e,"yt-option-selection-flow-step-renderer",{props:{data:_.Ih,flowClassName:_.Ih,flowStateEntityKey:_.Ih,isDesktop:_.Ih}});var JF=_.c(function(A){var H=_.SD(A,{type:1,disablePadding:!1,disablePrimaryButton:!1}),k=H.data,d=H.type;A=H.disablePadding;var W=H.disablePrimaryButton,z=H.onClickPrimaryButton,u=function(){return k().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},B=function(){return{disabled:W(),
state:W()?"disabled":"active"}},h=function(){return k().leadingLabel||k().trailingLabel};
H={};return _.x("yt-panel-footer-view-model",{class:_.ER("yt-panel-footer-view-model",(H["yt-panel-footer-view-model--hide-divider"]=function(){return k().shouldHideDivider},H["yt-panel-footer-view-model--disable-padding"]=A,H))},_.x(_.R,{cond:h,
then:function(){var O={},T={};return _.x("div",{class:_.ER("yt-panel-footer-view-model__text-row",(O["yt-panel-footer-view-model--row-bottom-padding"]=function(){var m=k();return!(!m.leadingLabel&&!m.trailingLabel||!m.primaryButton&&!m.secondaryButton)},O))},_.x(_.j$,{text:function(){return k().leadingLabel},
className:_.ER((T["yt-panel-footer-view-model--text-padding"]=h,T))}),_.x(_.j$,{text:function(){return k().trailingLabel}}))}}),_.x(_.R,{cond:u,
then:function(){var O={};return _.x("div",{class:"yt-panel-footer-view-model__button-stack"},_.x("div",{class:_.ER("yt-panel-footer-view-model__primary-button",(O["yt-panel-footer-view-model__button-stack--top-button"]=function(){return k().secondaryButton},O))},_.x(_.HG,{data:function(){return k().primaryButton}},{buttonViewModel:function(T){return _.x(_.U7,{data:T.data,
buttonOverrides:B,onClick:z})}})),_.x(_.HG,{data:function(){return k().secondaryButton}},{buttonViewModel:_.U7}))}}),_.x(_.R,{cond:function(){return!u()},
then:function(){var O={},T={},m={};return _.x("div",{class:_.ER("yt-panel-footer-view-model__button-row",(O["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===d()},O))},_.x("div",{class:_.ER("yt-panel-footer-view-model__button-row--left-button",(T["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===d()},T["yt-panel-footer-view-model__button-row--hidden"]=function(){return!k().secondaryButton||0===d()},T["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===d()},T))},_.x(_.HG,{data:function(){return k().secondaryButton}},{buttonViewModel:_.U7})),_.x("div",{class:_.ER("yt-panel-footer-view-model__primary-button",(m["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===d()||1===d()},m["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===d()},m))},_.x(_.HG,{data:function(){return k().primaryButton}},{buttonViewModel:function(J){return _.x(_.U7,{data:J.data,
buttonOverrides:B,onClick:z})}})))}}))},"wi");
JF.idomCompat=!0;var mjL=_.c(function(A){A=_.SD(A,{disablePadding:!1});var H=A.data,k=A.disablePadding;A=_.FUW(function(){return H().formId},void 0,function(){return H().onSubmitSuccess});
var d=A.submitForm,W=A.isValid,z=A.isSubmitting;return _.x("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.x(_.HG,{data:function(){return H().panelFooter}},{panelFooterViewModel:function(u){return _.x(JF,{data:u.data,
onClickPrimaryButton:function(){d()},
disablePrimaryButton:function(){return!W()||z()},
disablePadding:k})}}))},"xi");_.Sw(mjL,"yt-form-footer-view-model",{props:{data:_.Ih,disablePadding:_.Ih}});var JiR=_.c(function(A){var H=_.b("enable_user_rating_web");return _.x("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.x("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.x(_.R,{cond:function(){var k;return(k=A.data())==null?void 0:k.image},
then:function(k){return _.x(_.GA,{data:k,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.x("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.x(_.j$,{text:function(){var k;
return(k=A.data())==null?void 0:k.title}})),_.x("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.x(_.j$,{text:function(){var k;
return(k=A.data())==null?void 0:k.subtitle}})),_.x(_.R,{cond:function(){return!H},
then:function(){return _.x(_.HG,{data:function(){var k;return(k=A.data())==null?void 0:k.viewTipsButton}},{buttonViewModel:function(k){return _.x(_.U7,{data:k.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"yi");_.Sw(JiR,"yt-contributor-zero-state-view-model",{props:{data:_.Ih}});var g4_=_.c(function(A){var H=function(){var k;return(k=A.data())==null?void 0:k.image};
return _.x("yt-featured-content-item-view-model",{class:_.ER("ytFeaturedContentItemViewModelHost")},_.x("div",{class:_.ER(function(){return H()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.x("div",{class:function(){return H()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.x(_.R,{cond:H,
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelImage"},_.x(_.HG,{data:function(){return A.data().image}},{themedImageViewModel:function(k){return _.x(kY_,{data:k.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.x(_.R,{cond:function(){var k;
return!H()&&((k=A.data())==null?void 0:k.iconName)},
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelIcon"},_.x(_.n3,{icon:function(){return A.data().iconName}}))}}),_.x("div",{class:"ytFeaturedContentItemViewModelContent"},_.x(_.R,{cond:function(){var k;
return(k=A.data())==null?void 0:k.title},
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.x(_.j$,{text:function(){return A.data().title}}))}}),_.x(_.R,{cond:function(){var k;
return(k=A.data())==null?void 0:k.body},
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.x(_.j$,{text:function(){return A.data().body}}))}})))))},"zi");var b__=_.c(function(A){var H=function(){var W;return P2L((W=A.data())==null?void 0:W.titleFontSize)},k=function(){var W;
return GVi((W=A.data())==null?void 0:W.descriptionFontSize)},d=function(){var W;
return((W=A.data())==null?void 0:W.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.x("yt-landing-page-view-model",{class:_.ER("ytLandingPageViewModelHost",A.className)},_.x("div",{class:"ytLandingPageViewModelHeader"},_.x(_.R,{cond:function(){var W;return(W=A.data())==null?void 0:W.bannerImage},
then:function(W){return _.x("div",{class:"ytLandingPageViewModelHeaderImage"},_.x(_.HG,{data:function(){return W()}},{imageBannerViewModel:function(z){return _.x(_.S2,{data:z.data,
isPositionRelative:!0})}}))}}),_.x(_.R,{cond:function(){var W;
return(W=A.data())==null?void 0:W.bannerAnimation},
then:function(W){return _.x(_.Zb,{data:function(){var z=W();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 B;z={animationData:JSON.parse((B=z==null?void 0:z.payload)!=null?B:""),autoplay:!0,loop:!0,renderer:"svg"}}else z=void 0;return{animationConfig:z}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.x("div",{class:"ytLandingPageViewModelHeaderTitle"},_.x(_.R,{cond:function(){var W;
return(W=A.data())==null?void 0:W.title},
then:function(W){return _.x("div",{class:_.ER("ytLandingPageViewModelHeaderTitleContent",H)},_.x(_.j$,{text:function(){return W()}}))}}),_.x(_.R,{cond:function(){var W;
return(W=A.data())==null?void 0:W.description},
then:function(W){var z={};return _.x(_.j$,{className:_.ER("ytLandingPageViewModelHeaderTitleDescription",k,(z.ytLandingPageViewModelHeaderTitleDescriptionMargin=d,z)),text:function(){return W()}})}}))),_.x(_.R,{cond:function(){var W,z;
return(W=A.data())==null?void 0:(z=W.featuredContentList)==null?void 0:z.length},
then:function(){return _.x("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.x(_.HG,{data:function(){return A.data().featuredContentList}},{featuredContentItemViewModel:function(W){return _.x(g4_,{data:W.data})}}))}}),_.x(_.R,{cond:function(){var W,z;
return(W=A.data())==null?void 0:(z=W.expandableContentList)==null?void 0:z.length},
then:function(){return _.x("div",{class:"ytLandingPageViewModelFaqSection"},_.x(_.HG,{data:function(){return A.data().expandableContentList}},{faqEntryViewModel:function(W){return _.x("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.x(_.bui,{data:W.data}))}}))}}),_.x("div",{class:"ytLandingPageViewModelFooter"},_.x(_.R,{cond:function(){var W;
return(W=A.data())==null?void 0:W.legalCopy},
then:function(W){return _.x("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.x(_.j$,{text:function(){return W()}}))}}),_.x(_.R,{cond:function(){var W;
return(W=A.data())==null?void 0:W.actions},
then:function(W){return _.x("div",null,_.x(_.HG,{data:function(){return W()}},{flexibleActionsViewModel:function(z){return _.x(_.mg,{data:z.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Ai");_.Sw(_.c(function(A){return _.x("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.x("div",{class:"ytLpSectionGroupViewModelContainer"},_.x(_.HG,{data:function(){return A.data().sections}},{landingPageViewModel:function(H){return _.x(b__,{data:H.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Bi"),"yt-lp-section-group-view-model",{props:{data:_.Ih}});var LsG=_.c(function(A){var H=A.data;var k=A.selectedKey;var d=A.onSelected;var W=A.groupName;var z=function(){return H().text},u=function(){return H().attributedText},B=function(){return H().subtext},h=function(){return H().attributedSubtext},O=function(){return H().selectionText},T=function(){return H().trailingIconName},m=_.x("div",{class:"ytRadioButtonItemViewModelLabel"},_.x("div",null,_.x(_.R,{cond:z,
then:function(){return _.x("div",null,z)}}),_.x(_.R,{cond:u,
then:function(){return _.x(_.j$,{text:u})}}),_.x(_.R,{cond:B,
then:function(){return _.x("div",{class:"ytRadioButtonItemViewModelSubText"},B)}}),_.x(_.R,{cond:h,
then:function(){return _.x(_.j$,{text:h,className:"ytRadioButtonItemViewModelSubText"})}})),_.x(_.R,{cond:function(){return O()||T()},
then:function(){return _.x("div",{class:"ytRadioButtonItemViewModelTrailingContainer"},_.x(_.R,{cond:O,then:function(){return _.x(_.j$,{text:O,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}),_.x(_.R,{cond:T,
then:function(){return _.x(_.n3,{icon:T,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}))}}));
A={};return _.x("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.x(_.P6,{name:W,checked:function(){return!(k==null||!k()||H().key!==(k==null?void 0:k()))},
onChange:function(J){d==null||d(J.target,H(),W==null?void 0:W())},
labelRenderable:function(){return m},
ariaLabel:function(){var J,g;var v=(g=(J=h())==null?void 0:J.content)!=null?g:B();var y,X;J=(X=(y=u())==null?void 0:y.content)!=null?X:z();return v?J+", "+v:J},
className:_.ER((A.ytRadioButtonItemViewModelSubTitle=function(){return!!B()},A))}))},"Ci");var v4Q=_.c(function(A){var H=A.data,k=A.onSelected,d=A.selectedKey,W=A.groupName;A=A.className;var z=_.r(_.RV(!1,void 0,"mDtSad")),u=z.next().value,B=z.next().value,h=function(){if(d!==void 0){var O=d();return!(!O||H().key!==O)}return u()};
z=_.lc(function(O){k?k(O.currentTarget,H(),W==null?void 0:W()):B(!u())});
return _.x("yt-selectable-item-view-model",{class:_.ER("ytSelectableItemViewModelHost",A,"ytSelectableItemViewModelContainer"),"on:click":z,"prop:checked":h},_.x(_.HG,{data:function(){return H().content}},{cardViewModel:function(O){return _.x(_.PoG,{data:O.data,
isSelected:h})}}))},"Di");var yiL=_.c(function(A){var H=A.data;var k=A.onSelected;var d=A.selectedKey;var W=A.groupName;var z=function(){return(W==null?void 0:W())||H().key};
return _.x("yt-radio-button-group-view-model",{class:_.ER("ytRadioButtonGroupViewModelHost",A.className)},_.x("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.x(_.HG,{data:function(){return H().radioButtons}},{radioButtonItemViewModel:function(u){return _.x(LsG,{data:u.data,
onSelected:k,selectedKey:d,groupName:z})},
selectableItemViewModel:function(u){return _.x(v4Q,{data:u.data,onSelected:k,selectedKey:d,groupName:z})}})))},"Ei");var jQe=_.c(function(A){_.CZ(function(){if(A.controlledMode()&&A.data().defaultSelected)_.I3(Error("Fl"));else{var z;!A.controlledMode()&&((z=A.selected)==null?0:z.call(A))&&_.I3(Error("Gl"))}});
var H=_.r(_.C0(function(){if(!A.controlledMode())return A.data().defaultSelected})),k=H.next().value,d=H.next().value,W=function(){if(!A.controlledMode())return k();
var z;return(z=A.selected)==null?void 0:z.call(A)};
return _.x("yt-checkbox-item-view-model",{class:_.ER("ytCheckboxItemViewModelHost",A.className)},_.x(_.G$,{data:function(){var z=A.data(),u=W();return{title:z.text,subtitle:z.subtext,superlabel:z.superlabel,isSelected:!!u,isDisabled:z.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!A.controlledMode()&&d(!k());var z,u;(u=A.onTap)==null||u.call(A,!!W(),A.data(),(z=A.groupName)==null?void 0:z.call(A))},
isCompact:A.isCompact,disableHorizontalPadding:A.disableHorizontalPadding}))},"Fi");var ICG=_.c(function(A){var H=A.data;var k=A.controlledMode;var d=A.selectedKeys;var W=A.onItemTap;var z=A.groupName;var u=A.disableHorizontalPadding;var B=function(){return(z==null?void 0:z())||H().key};
_.CZ(function(){k()&&H().defaultSelectedKeys?_.I3(Error("Hl")):!k()&&(d==null?0:d())&&_.I3(Error("Il"))});
A=_.r(_.C0(function(){if(!k())return H().defaultSelectedKeys}));
var h=A.next().value,O=A.next().value,T=function(m,J,g){m=[];!k()&&J.key&&(m=F5V(J.key,h()||[]),O(m));W==null||W(J,m,g)};
return _.x("yt-checkbox-group-view-model",{class:_.ER("ytCheckboxGroupViewModelHost")},_.x("fieldset",{class:_.ER("ytCheckboxGroupViewModelFieldset")},_.x("div",{role:"list"},_.x(_.HG,{data:function(){return H().checkboxes}},{checkboxItemViewModel:function(m){var J=m.data;
return _.x(jQe,{data:J,controlledMode:!0,selected:function(){var g=k()?(d==null?void 0:d())||[]:h()||[],v=J().key;return v?g.includes(v):!1},
onTap:T,groupName:B,disableHorizontalPadding:u})}}))))},"Gi");var Y_L=_.dy(XGI,{debugName:"ytAlertBannerViewModel"});_.$l(_.yX,function(A){_.j2(A,"ytAlertBannerViewModel","n0DHg",XGI)});var gh=_.c(function(A){var H=_.o9(DFQ,_.DS(function(){var B;return(B=A.data())==null?void 0:B.noteFeedEntityKey},"")),k=_.o9(rrR,_.DS(function(){var B;
return(B=A.data())==null?void 0:B.userRatingEntityKey},"")),d=_.b("enable_user_rating_web"),W=function(){var B,h,O;
return((B=H())==null?0:B.contributorNote)?(h=H())==null?void 0:h.contributorNote:(O=A.data())==null?void 0:O.existingNote},z=function(){var B,h;
return!!k()&&!!SF3((B=k())==null?void 0:B.helpfulnessValue,(h=A.data())==null?void 0:h.noteData)};
if(d){var u={};return _.x("yt-note-view-model",{class:_.ER("ytNoteViewModelHostUserRating",(u.ytNoteViewModelHostUserRatingPublishedNote=function(){var B,h,O,T;return((B=A.data())==null?void 0:(h=B.noteData)==null?void 0:h.isPublished)&&!((O=A.data())==null?0:(T=O.noteData)==null?0:T.isUserRatingForm)},u))},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.x(_.R,{cond:function(){var B,h;
return(B=A.data())==null?void 0:(h=B.noteData)==null?void 0:h.isPinned},
then:function(){return _.x(_.n3,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.x(_.R,{cond:function(){var B,h;return(B=A.data())==null?void 0:(h=B.noteData)==null?void 0:h.isPublished},
then:function(){return _.x(_.n3,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.x(_.HG,{data:function(){var B;
return(B=A.data())==null?void 0:B.metadata}},{contentMetadataViewModel:_.MO}),_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var B,h;
return(h=_.L((B=A.data())==null?void 0:B.metadata,_.M3J))==null?void 0:h.delimiter}),_.x(_.j$,{text:function(){var B;
return(B=W())==null?void 0:B.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.x(_.R,{cond:function(){var B,h;return!((B=A.data())==null?0:(h=B.noteData)==null?0:h.isUserRatingForm)},
then:function(){return _.x(_.HG,{data:function(){var B,h,O,T,m,J,g,v=!!((B=A.data())==null?0:(h=B.noteData)==null?0:h.isPinned);B=z();h=(O=A.data())==null?void 0:O.noteData;O=(T=H())==null?void 0:(m=T.contributorNote)==null?void 0:m.deleteAction;T=(J=A.data())==null?void 0:J.overflowButtonNoteWithRatingOnTapOverride;J=(g=A.data())==null?void 0:g.overflowButton;var y;g=(y=_.L(J,_.vY))==null?void 0:y.accessibilityText;return v?C23(h,O,g):B?{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:T,accessibilityText:g}}:J}},{buttonViewModel:function(B){return _.x(_.U7,{data:B.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.x("div",{class:"ytNoteViewModelNoteContent"},_.x(_.j$,{text:function(){var B;
return(B=W())==null?void 0:B.text}})),_.x(_.R,{cond:function(){var B,h,O,T;
return!((B=A.data())==null?0:(h=B.noteData)==null?0:h.isPinned)&&!((O=A.data())==null?0:(T=O.noteData)==null?0:T.isUserRatingForm)},
then:function(){return _.x(_.R,{cond:z,then:function(){return _.x("div",{class:"ytNoteViewModelUserRatingContainer"},_.x(_.j$,{text:function(){var B,h;return SF3((B=k())==null?void 0:B.helpfulnessValue,(h=A.data())==null?void 0:h.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.x(_.HG,{data:function(){var B;return(B=A.data())==null?void 0:B.userRatingButton}},{buttonViewModel:function(B){return _.x(_.U7,{data:B.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.x(_.R,{cond:function(){var B,h,O,T;
return!((B=A.data())==null?0:(h=B.noteData)==null?0:h.ignoreDivider)&&!((O=A.data())==null?0:(T=O.noteData)==null?0:T.isUserRatingForm)},
then:function(){return _.x("div",{class:"ytNoteViewModelDivider"},_.x(_.HG,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(B){return _.x(_.pvQ,{data:B.data})}}))}}))}return _.x("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.x(_.R,{cond:function(){var B,h;return(B=A.data())==null?void 0:(h=B.noteData)==null?void 0:h.isPinned},
then:function(){return _.x(_.n3,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.x(_.R,{cond:function(){var B,h;return(B=A.data())==null?void 0:(h=B.noteData)==null?void 0:h.isPublished},
then:function(){return _.x(_.n3,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.x(_.R,{cond:function(){return d},
then:function(){return _.x(_.HG,{data:function(){var B;return(B=A.data())==null?void 0:B.metadata}},{contentMetadataViewModel:function(B){return _.x(_.MO,{data:B.data})}})}}),_.x(_.j$,{text:function(){var B,h;
return(B=A.data())==null?void 0:(h=B.noteData)==null?void 0:h.headerText}}),_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.x(_.j$,{text:function(){var B,h;
return(B=A.data())==null?void 0:(h=B.noteData)==null?void 0:h.delimiter}})),_.x(_.j$,{text:function(){var B,h;
return(B=H())==null?void 0:(h=B.contributorNote)==null?void 0:h.publishedTimeText}})),_.x(_.HG,{data:function(){var B,h,O;
return C23((B=A.data())==null?void 0:B.noteData,(h=H())==null?void 0:(O=h.contributorNote)==null?void 0:O.deleteAction)}},{buttonViewModel:function(B){return _.x(_.U7,{data:B.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.x("div",{class:"ytNoteViewModelNoteContent"},_.x(_.j$,{text:function(){var B,h;
return(B=H())==null?void 0:(h=B.contributorNote)==null?void 0:h.text}})))},"Hi");
gh.idomCompat=!0;_.Sw(_.c(function(A){var H=_.DS(function(){var K;return(K=A.data())==null?void 0:K.flowStateEntityKey},""),k=_.o9(_.aI,H),d=_.o9(DFQ,_.DS(function(){var K;
return(K=A.data())==null?void 0:K.noteFeedEntityKey},"")),W=_.r(_.C0(function(){var K;
return(K=_.L(A.data().helpfulnessValue,gGL))==null?void 0:K.defaultSelectedKey})),z=W.next().value,u=W.next().value;
W=_.r(_.C0(function(){var K,N,U;return(U=_.L((K=_.L(A.data().helpfulnessValue,gGL))==null?void 0:(N=K.radioButtons)==null?void 0:N.find(function(p){var M;return((M=_.L(p,bUI))==null?void 0:M.key)===z()}),bUI))==null?void 0:U.value}));
var B=W.next().value,h=W.next().value;W=_.r(_.C0(function(){var K;return(K=_.L(A.data().helpfulReasons,JmQ))==null?void 0:K.defaultSelectedKeys}));
var O=W.next().value,T=W.next().value;W=_.r(_.C0(function(){var K;return(K=_.L(A.data().notHelpfulReasons,JmQ))==null?void 0:K.defaultSelectedKeys}));
var m=W.next().value,J=W.next().value,g=function(K,N){u(N.key);h(N.value);T([]);J([])},v=function(){var K,N;
return((K=B())==null?void 0:K.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((N=B())==null?void 0:N.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},y=function(){var K,N;
return((K=B())==null?void 0:K.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((N=B())==null?void 0:N.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},X=function(K){K5I(K.key,O,T)},D=function(K){K5I(K.key,m,J)};
_.CZ(function(){var K,N,U;WjR((K=A.data())==null?void 0:(N=K.userRatingFormSchema)==null?void 0:N.id,{isValid:function(){return!!z()},
formData:function(){var p=B(),M=ccR(O(),_.L(A.data().helpfulReasons,JmQ)),Z=ccR(m(),_.L(A.data().notHelpfulReasons,JmQ));p={helpfulnessValue:p==null?void 0:p.noteHelpfulnessValue};if(M){p.helpfulReasons=[];M=_.r(M);for(var WV=M.next();!WV.done;WV=M.next()){WV=WV.value;var hA=void 0;if((hA=WV)==null?0:hA.noteHelpfulReason)hA=void 0,p.helpfulReasons.push((hA=WV)==null?void 0:hA.noteHelpfulReason)}}if(Z)for(p.notHelpfulReasons=[],Z=_.r(Z),M=Z.next();!M.done;M=Z.next())if(M=M.value,WV=void 0,(WV=M)==
null?0:WV.noteNotHelpfulReason)WV=void 0,p.notHelpfulReasons.push((WV=M)==null?void 0:WV.noteNotHelpfulReason);return{userRatingFormData:p}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(U=_.L(k(),nv1))==null?void 0:U.submitFormParams},onSubmitResult:function(){var p,M=(p=_.L(k(),nv1))==null?void 0:p.userRatingEntityKey,Z;p={key:M,helpfulnessValue:(Z=B())==null?void 0:Z.noteHelpfulnessValue};M&&_.XI(_.kH("contextNoteUserRatingEntityPayload",M,p));var WV;M=(WV=A.data())==null?void 0:WV.viewNoteFlowStepId;var hA;if((hA=d())==null||!hA.contributorNote){var qv;M=(qv=A.data())==null?void 0:qv.zeroStateFlowStepId}(WV=
Object.assign({},k()))&&M&&(WV.currentStepId=M,WV.stepIdStack=[M],_.XI(_.kH("flowStateEntity",H(),WV)));var eN;(WV=(eN=A.data())==null?void 0:eN.ratingSubmittedSnackbarCommand)&&_.mu(WV)},
disableDuringSubmission:!0})});
return _.x("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.x(_.HG,{data:function(){var K=_.L(k(),nv1);if(K){var N;var U={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:K==null?void 0:(N=K.note)==null?void 0:N.headerText}]}],delimiter:"\u2022"}},existingNote:K.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else U=void 0;return U}},{noteViewModel:function(K){return _.x("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.x(gh,{data:K.data}))}}),_.x(_.HG,{data:function(){var K;
return(K=A.data())==null?void 0:K.helpfulnessValue}},{radioButtonGroupViewModel:function(K){return _.x("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.x(yiL,{data:K.data,
onSelected:g,selectedKey:z}))}}),_.x(_.R,{cond:v,
then:function(){return _.x("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.x("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.x(_.j$,{text:function(){var K;return(K=A.data())==null?void 0:K.helpfulReasonQuestion}})),_.x(_.HG,{data:function(){var K;
return(K=A.data())==null?void 0:K.helpfulReasons}},{checkboxGroupViewModel:function(K){return _.x(ICG,{data:K.data,
onItemTap:X,selectedKeys:O,controlledMode:!0})}}))}}),_.x(_.R,{cond:y,
then:function(){return _.x("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.x("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.x(_.j$,{text:function(){var K;return(K=A.data())==null?void 0:K.notHelpfulReasonQuestion}})),_.x(_.HG,{data:function(){var K;
return(K=A.data())==null?void 0:K.notHelpfulReasons}},{checkboxGroupViewModel:function(K){return _.x(ICG,{data:K.data,
onItemTap:D,selectedKeys:m,controlledMode:!0})}}))}}),_.x(_.R,{cond:function(){return!v()&&!y()},
then:function(){return _.x(_.HG,{data:function(){var K;return(K=A.data())==null?void 0:K.helpfulNoteFeatures}},{alertBannerViewModel:function(K){return _.x("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.x(Y_L,{data:K.data}))}})}}))},"Ii"),"yt-note-user-rating-view-model",{props:{data:_.Ih}});_.Sw(gh,"yt-note-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=_.o9(DFQ,_.DS(function(){var k;return(k=A.data())==null?void 0:k.noteFeedEntityKey},""));
return _.x("yt-notes-wrapper-view-model",{class:_.ER("ytNotesWrapperViewModelHost")},_.x(_.R,{cond:function(){var k,d,W;return!((k=A.data())==null||!k.existingNotes)||!((d=A.data())==null||!d.currentNote)&&!((W=H())==null||!W.contributorNote)},
then:function(){return _.x(_.sD,null,_.x(_.HG,{data:function(){var k,d,W,z;return((d=_.L((k=A.data())==null?void 0:k.currentNote,ZKR))==null?0:(W=d.noteData)==null?0:W.isPublished)?(z=A.data())==null?void 0:z.currentNote:void 0}},{noteViewModel:function(k){return _.x(gh,{data:k.data})}}),_.x(_.HG,{data:function(){var k;
return(k=A.data())==null?void 0:k.existingNotes}},{noteViewModel:function(k){var d=k.data;
return _.x(_.R,{cond:function(){var W,z;return(W=d())==null?void 0:(z=W.noteData)==null?void 0:z.isPublished},
then:function(){return _.x(gh,{data:d})}})}}),_.x(_.HG,{data:function(){var k,d,W,z,u;
return((d=_.L((k=A.data())==null?void 0:k.currentNote,ZKR))==null?0:(W=d.noteData)==null?0:W.isPublished)||(z=H())==null||!z.contributorNote?void 0:(u=A.data())==null?void 0:u.currentNote}},{noteViewModel:function(k){return _.x(gh,{data:k.data})}}),_.x(_.HG,{data:function(){var k;
return(k=A.data())==null?void 0:k.existingNotes}},{noteViewModel:function(k){var d=k.data;
return _.x(_.R,{cond:function(){var W,z;return!((W=d())==null?0:(z=W.noteData)==null?0:z.isPublished)},
then:function(){return _.x(gh,{data:d})}})}}))},
else:function(){return _.x(_.HG,{data:function(){var k;return(k=A.data())==null?void 0:k.zeroStateData}},{contributorZeroStateViewModel:JiR})}}))},"Ji"),"yt-notes-wrapper-view-model",{props:{data:_.Ih}});var Q5L=new Map;var EHG;var UFG=new Map;var GY3=_.c(function(A){var H=_.SD(A,{label:"",hideLabel:!1,text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,ariaLabel:void 0,timePickerData:void 0,error:void 0,hasError:!1,validation:void 0,characterLimit:void 0}),k=H.label,d=H.hideLabel,W=H.text,z=H.placeholder,u=H.hint;A=H.rows;var B=H.overflowStyle,h=H.outline,O=H.disabled,T=H.disableNewLines,m=H.onInput,J=H.ariaLabel,g=H.timePickerData,v=H.error,y=H.hasError,X=H.validation,D=H.characterLimit,
K=_.GP("textarea");H=_.r(_.C0(function(){return W()}));
var N=H.next().value,U=H.next().value;H=_.r(_.RV(!1,void 0,"PheJId"));var p=H.next().value,M=H.next().value,Z=function(){M(!0)},WV=function(){M(!1)};
_.CZ(function(){var T0=K.value,Y1=B(),ze=N();Y1==="expand-vertically"&&ze&&tu3(T0);K.value.addEventListener("focusin",Z);K.value.addEventListener("focusout",WV)});
_.aV(function(){K.value.removeEventListener("focusin",Z);K.value.removeEventListener("focusout",WV)});
var hA=function(){var T0;return(T0=X())==null?void 0:T0.validate(N())},qv=function(){var T0,Y1,ze;
return(ze=(T0=v())==null?void 0:T0.maxChars)!=null?ze:(Y1=D())==null?void 0:Y1.maxChars},eN=function(){return qv()===void 0?!1:!hA()&&N().length>qv()},mr=function(){var T0,Y1;
return((T0=v())==null?void 0:T0.errorMessage)||hA()||eN()&&((Y1=D())==null?void 0:Y1.errorMessage)},Cl=function(){return!!mr()||y()};
H=_.lc(function(T0){if(!T0.currentTarget)return!1;T0=T0.currentTarget;U(T0.value);B()==="expand-vertically"&&tu3(T0);m==null||m(T0.value);return!0});
var pl=_.lc(function(T0){T()&&T0.key==="Enter"&&T0.preventDefault();return!1}),UC=_.lc(function(){K.value.focus()}),hk=function(){return z()||k()},eA={},lI={},Rp={},vj={};
return _.x("textarea-shape",{class:_.ER("ytStandardsTextareaShapeHost",(eA.ytStandardsTextareaShapeTimePicker=function(){var T0;return(T0=g())==null?void 0:T0.useTimePickerStyles},eA))},_.x("div",{class:_.ER("ytStandardsTextareaShapeTextareaContainer",(lI.ytStandardsTextareaShapeTextareaContainerOutline=h,lI.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=O,lI.ytStandardsTextareaShapeTextareaContainerOutlineError=Cl,lI.ytStandardsTextareaShapeTextareaContainerLabelHidden=d,lI)),
"on:click":UC},_.x("label",{class:_.ER("ytStandardsTextareaShapeLabel",(Rp.ytStandardsTextareaShapeLabelFocused=p,Rp.ytStandardsTextareaShapeLabelDisabled=O,Rp.ytStandardsTextareaShapeLabelError=function(){return Cl()&&!O()},Rp.ytStandardsTextareaShapeLabelHidden=function(){return d()||!p()&&!N()&&!!hk()},Rp))},k),_.x("div",{class:_.ER("ytStandardsTextareaShapePlaceholder",(vj.ytStandardsTextareaShapePlaceholderVisible=function(){return!p()&&!N()},vj)),
"aria-hidden":"true"},hk),_.x("textarea",{el:K,"aria-label":J,class:"ytStandardsTextareaShapeTextarea",rows:A,disabled:O,placeholder:hk,"prop:value":N,"on:input":H,"on:keydown":pl})),_.x(_.R,{cond:function(){return u()&&!Cl()},
then:function(){var T0={};return _.x("div",{class:_.ER("ytStandardsTextareaShapeHint",(T0.ytStandardsTextareaShapeHintDisabled=O,T0))},_.x("div",{class:"ytStandardsTextareaShapeHintHintMessage"},u))}}),_.x(_.R,{cond:mr,
then:function(){return _.x(Pn3,{disabled:O},_.x("div",{class:"ytStandardsTextareaShapeErrorMessage"},mr),_.x(_.R,{cond:eN,then:function(){return _.x("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return N().length+"/"+qv()})}}))}}))},"Ki");
GY3.idomCompat={callbacks:{onInput:!0}};var Pn3=_.c(function(A){var H={};return _.x("div",{class:_.ER("ytStandardsTextareaShapeError",(H.ytStandardsTextareaShapeErrorDisabled=A.disabled,H)),role:"alert"},_.x(_.n3,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),A.children)},"Li");var FsG=_.c(function(A){var H=A.data;var k=A.controlledMode;var d=A.disableFormsApiMode;var W=A.text;var z=A.onInput;var u=A.characterLimit;var B=A.validation;A=A.disabled;var h=function(){return H().formFieldMetadata},O=function(){return(k==null?0:k())?2:!h()||d!=null&&d()?1:3};
_.CZ(function(){O()===2?(W==null?void 0:W())===void 0&&_.I3(Error("Kl")):O()===3&&((W==null?void 0:W())!==void 0&&_.I3(Error("Ll")),(B==null?void 0:B())!==void 0&&_.I3(Error("Ml")),(u==null?void 0:u())!==void 0&&_.I3(Error("Nl")),z!==void 0&&_.I3(Error("Ol")))});
var T=lvB(h);return _.x("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.x(GY3,{text:function(){if(O()===2)return W==null?void 0:W();if(O()===3){var m;return(m=T())==null?void 0:m.value}return""},
label:function(){var m;return(m=H().contentProperties)==null?void 0:m.labelText},
hideLabel:function(){var m;return(m=H().displayProperties)==null?void 0:m.hideLabel},
placeholder:function(){var m;return(m=H().contentProperties)==null?void 0:m.placeholderText},
hint:function(){var m;return(m=H().contentProperties)==null?void 0:m.hintText},
outline:function(){var m;return!((m=H().displayProperties)==null?0:m.hideBorder)},
overflowStyle:function(){var m;return((m=H().displayProperties)==null?0:m.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:A,disableNewLines:function(){var m;return(m=H().displayProperties)==null?void 0:m.disableNewLines},
onInput:function(m){if(O()===3){var J;(J=T())==null||J.updateValue(m)}else z==null||z(m)},
error:function(){if(O()===3){var m;if(((m=T())==null?0:m.errors)&&T().errors.length>0){m=T().errors[0].message;var J,g=(J=H().contentProperties)==null?void 0:J.maxCharacterCount;return{errorMessage:m,maxChars:g}}}},
validation:B,characterLimit:u,rows:function(){var m;return(m=H().displayProperties)==null?void 0:m.rows}}))},"Mi");var XaB=_.c(function(A){var H=A.data;return _.x("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.x(GY3,{text:A.text,label:function(){var k;return(k=H().contentProperties)==null?void 0:k.labelText},
placeholder:function(){var k;return(k=H().contentProperties)==null?void 0:k.placeholderText},
hint:function(){var k;return(k=H().contentProperties)==null?void 0:k.hintText},
outline:function(){var k;return!((k=H().displayProperties)==null?0:k.hideBorder)},
overflowStyle:function(){var k;return((k=H().displayProperties)==null?0:k.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var k;return(k=H().displayProperties)==null?void 0:k.disableNewLines},
onInput:A.onInput,characterLimit:A.characterLimit,validation:A.validation,rows:function(){var k;return(k=H().displayProperties)==null?void 0:k.rows}}))},"Ni");var Dj1=_.c(function(A){var H=_.r(_.C0(function(){var hA,qv;return((hA=A.data().structuredContextNoteFormSchema)==null?0:(qv=hA.initialValues)==null?0:qv.noteBody)?A.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),k=H.next().value,d=H.next().value;
H=_.r(_.C0(function(){A.data();return!1}));
var W=H.next().value,z=H.next().value;H=_.r(_.C0(function(){A.data();return!1}));
var u=H.next().value,B=H.next().value;H=_.r(_.C0(function(){var hA,qv;return((hA=A.data().structuredContextNoteFormSchema)==null?0:(qv=hA.initialValues)==null?0:qv.timestamp)?A.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var h=H.next().value,O=H.next().value;H=_.r(_.C0(function(){A.data();return!1}));
var T=H.next().value,m=H.next().value;H=_.r(_.C0(function(){var hA,qv;return((hA=A.data().structuredContextNoteFormSchema)==null?0:(qv=hA.initialValues)==null?0:qv.sources)?[A.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var J=H.next().value,g=H.next().value;H=_.r(_.C0(function(){A.data();return!1}));
var v=H.next().value,y=H.next().value;H=_.r(_.C0(function(){return!1}));
var X=H.next().value,D=H.next().value;_.CZ(function(){var hA;zFV((hA=A.data().structuredContextNoteFormSchema)==null?void 0:hA.id,{isSubmitting:X,onSubmit:function(){D(!0);var qv=Av_(k(),h(),J(),A.data()),eN=_.wj().resolve(_.J7);qv&&eN&&eN.resolveCommand(qv,{commandController:{onSuccess:function(){D(!1)}}})},
isValid:function(){return W()&&!u()&&!T()&&!v()}})});
var K=function(hA){if(hA!==void 0&&(d(hA),!W()&&hA.length>0&&z(!0),W())){var qv=nHQ(A.data());if(qv){var eN=qv.minLength;qv=qv.maxLength;eN&&hA.length<eN?B(!0):qv&&hA.length>qv?B(!0):B(!1)}}},N=function(hA){if(hA!==void 0){O(hA);
if(hA.length>0){var qv,eN,mr,Cl,pl=fvV((qv=A.data())==null?void 0:(eN=qv.structuredContextNoteFormSchema)==null?void 0:(mr=eN.fieldSchemas)==null?void 0:(Cl=mr.timestamp)==null?void 0:Cl.validationSchema);if(pl&&(qv=pl.regex)&&!(new RegExp(qv)).test(hA)){m(!0);return}}m(!1)}},U=function(hA){if(hA!==void 0){var qv=hA.split(/[ \n]/).map(function(eN){return eN.trim()});
g(qv);if(hA.length>0)for(hA=_.r(qv),qv=hA.next();!qv.done;qv=hA.next())if(!$F1(qv.value)){y(!0);return}y(!1)}},p=function(){return{validate:function(hA){if(W()){var qv=nHQ(A.data());
if(qv){var eN=qv.minLength;qv=qv.translations;if(eN&&hA.length<eN)return qv==null?void 0:qv.minLengthErrorMessage}}}}},M=function(){var hA=nHQ(A.data()),qv=hA==null?void 0:hA.maxLength,eN;
hA=hA==null?void 0:(eN=hA.translations)==null?void 0:eN.maxLengthErrorMessage;if(qv&&hA)return{maxChars:qv,errorMessage:hA}},Z=function(){return{validate:function(hA){if(hA){var qv,eN,mr,Cl,pl=fvV((qv=A.data())==null?void 0:(eN=qv.structuredContextNoteFormSchema)==null?void 0:(mr=eN.fieldSchemas)==null?void 0:(Cl=mr.timestamp)==null?void 0:Cl.validationSchema);
if(pl&&(qv=pl.regex,pl=pl.translations,qv&&!(new RegExp(qv)).test(hA)))return pl==null?void 0:pl.regexErrorMessage}}}},WV=function(){return{validate:function(hA){if(hA){var qv,eN,mr,Cl,pl=oHR((qv=A.data())==null?void 0:(eN=qv.structuredContextNoteFormSchema)==null?void 0:(mr=eN.fieldSchemas)==null?void 0:(Cl=mr.sources)==null?void 0:Cl.validationSchema);
if(pl&&(qv=pl.translations,qv==null?0:qv.selectedErrorMessage))for(hA=hA.split(/[ \n]/).map(function(UC){return UC.trim()}),hA=_.r(hA),eN=hA.next();!eN.done;eN=hA.next())if(!$F1(eN.value))return hA=void 0,(hA=qv)==null?void 0:hA.selectedErrorMessage}}}};
return _.x("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.x("div",{class:"ytStructuredContextNoteViewModelTextField"},_.x(_.HG,{data:function(){var hA;return(hA=A.data())==null?void 0:hA.noteContents}},{textFormFieldViewModel:function(hA){return _.x(XaB,{data:hA.data,
onInput:K,validation:p,characterLimit:M})},
textFieldViewModel:function(hA){return _.x(FsG,{data:hA.data,disableFormsApiMode:!0,onInput:K,validation:p,characterLimit:M})}})),_.x("div",{class:"ytStructuredContextNoteViewModelTextField"},_.x(_.HG,{data:function(){var hA;
return(hA=A.data())==null?void 0:hA.noteTimestamp}},{textFormFieldViewModel:function(hA){return _.x(XaB,{data:hA.data,
onInput:N,validation:Z})},
textFieldViewModel:function(hA){return _.x(FsG,{data:hA.data,disableFormsApiMode:!0,onInput:N,validation:Z})}})),_.x("div",{class:"ytStructuredContextNoteViewModelTextField"},_.x(_.HG,{data:function(){var hA;
return(hA=A.data())==null?void 0:hA.noteSources}},{textFormFieldViewModel:function(hA){return _.x(XaB,{data:hA.data,
onInput:U,validation:WV})},
textFieldViewModel:function(hA){return _.x(FsG,{data:hA.data,disableFormsApiMode:!0,onInput:U,validation:WV})}})))},"Oi");
Dj1.idomCompat=!0;_.Sw(Dj1,"yt-structured-context-note-view-model",{props:{data:_.Ih}});var S_R=_.c(function(A){var H=_.r(_.C0(function(){var z;if((z=A.controlled)==null?0:z.call(A))return[];var u;return(((u=A.data())==null?void 0:u.chips)||[]).map(function(B){B=_.L(B,_.yF);if(B==null?0:B.selected)return Hwe(B.chipValue)}).filter(function(B){return B!==void 0})})),k=H.next().value,d=H.next().value,W=function(z){var u=Hwe(z.chipValue);
if(u!==void 0){var B;if((B=A.controlled)==null?0:B.call(A))return void A.controlled().onTap(u);z=k().includes(u)?[].concat(_.fV(k().filter(function(O){return O!==u}))):[].concat(_.fV(k()),[u]);
d(z);var h;if((h=A.uncontrolled)==null?0:h.call(A))A.uncontrolled().onUpdate(z)}};
return _.x("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.x(_.Ix,{each:function(){return A.data().chips||[]}},function(z){return _.x("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.x(_.qgw,{data:function(){return _.L(z,_.yF)},
selected:function(){var u;if(u=_.L(z,_.yF)){var B=Hwe(u.chipValue);if(B!==void 0){var h;u=((h=A.controlled)==null?0:h.call(A))?A.controlled().selectedValues.includes(B):k().includes(B)}else u=void 0}else u=!1;return u},
callback:W}))}))},"Pi");var Cni=_.c(function(A){var H=A.data;var k=function(){var B;return((B=H())==null?void 0:B.flowStateKey)||""},d=_.o9(_.aI,k),W=function(){var B;
return(B=_.L(d(),CDL))==null?void 0:B.chips},z=function(B){if(B!==void 0){var h=W()||[];
h=h.find(function(O){return O===B})?h.filter(function(O){return O!==B}):[].concat(_.fV(h),[B]);
h=Object.assign({},d(),{feedbackFormFlowState:Object.assign({},_.L(d(),CDL),{chips:h})});_.XI(_.kH("flowStateEntity",k(),h))}},u=function(){var B;
return _.L((B=H())==null?void 0:B.inputBox,Kd1)};
A=_.hK(function(B){var h=u();h=!(h==null?0:h.maxChars)||B.length<=h.maxChars;B=Object.assign({},d(),{feedbackFormFlowState:Object.assign({},_.L(d(),CDL),{detail:B}),abuseReportFlowState:Object.assign({},_.L(d(),OV),{navigationEnabled:h})});_.XI(_.kH("flowStateEntity",k(),B))},150);
return _.x("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.x("div",{class:"ytFeedbackFormViewModelChips"},_.x(_.HG,{data:function(){var B;return(B=H())==null?void 0:B.chipSelection}},{chipSelectionFormFieldViewModel:function(B){return _.x(S_R,{data:B.data,
controlled:function(){return{selectedValues:W()||[],onTap:z}}})}})),_.x("div",{class:"ytFeedbackFormViewModelInputBox"},_.x(GY3,{text:function(){var B;
return(B=_.L(d(),CDL))==null?void 0:B.detail},
placeholder:function(){var B;return((B=u())==null?void 0:B.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var B=u();if(B&&B.maxChars)return{maxChars:B.maxChars,errorMessage:B.maxCharsExceededErrorMessage||""}},
onInput:A})),_.x("div",{class:"ytFeedbackFormViewModelFooterText"},_.x(_.j$,{text:function(){return H().footerText}})))},"Qi");
Cni.idomCompat=!0;_.Sw(Cni,"yt-feedback-form-view-model",{props:{data:_.Ih}});var Kse=_.c(function(A){var H=A.data;var k=_.o9(Are,function(){return H().flowStateKey||""}),d=function(){var W;
_.mu((W=_.L(k(),OV))==null?void 0:W.navigationCommand)};
return _.x("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.x("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.x(_.HG,{data:function(){return H().cancelButton}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:d})}}),_.x(_.HG,{data:function(){var W;
if(H().navButton){var z=Object;var u=z.assign,B=_.L(H().navButton,_.vY),h=((W=_.L(k(),OV))==null?0:W.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",O,T;W=_.L((O=_.L(k(),OV))==null?void 0:O.navigationCommand,_.ic);O=(T=_.L(W,_.KT))==null?void 0:T.url;z={buttonViewModel:u.call(z,{},B,{state:h,iconName:O?"OPEN_IN_NEW":""})}}else z=void 0;return z}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:d})}})))},"Ri");
Kse.idomCompat=!0;_.Sw(Kse,"yt-report-form-bottom-bar-view-model",{props:{data:_.Ih}});var aC_=_.c(function(A){var H=A.nextStep;return _.x("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.x("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.x(_.n3,{icon:function(){return H().iconName||""}})),_.x("div",null,_.x(_.j$,{text:function(){return H().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Si"),ciI=_.c(function(A){var H=A.data;
var k,d=(k=_.wj().resolve(_.fZ(_.sF)))==null?void 0:k(),W=_.o9(_.aI,function(){return H().flowStateKey||""});
return _.x("yt-report-form-confirmation-page-view-model",{class:function(){var z;return((z=_.L(W(),OV))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.x("div",{class:function(){var z;
return((z=_.L(W(),OV))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.x(_.GA,{data:function(){return d&&H().imageDark?H().imageDark:H().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.x("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.x("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return H().confirmationHeader}),_.x("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.x(_.j$,{text:function(){return H().confirmationText}})),_.x("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.x(_.j$,{text:function(){return H().lawEnforcementText}})),
_.x("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return H().whatToExpectHeader}),_.x(_.R,{cond:function(){return H().nextSteps},
then:function(z){return _.x("div",null,_.x(_.Ix,{each:z},function(u){return _.x(aC_,{nextStep:u})}))}}),_.x(_.R,{cond:function(){return H().legalReportText},
then:function(z){return _.x("div",null,_.x(_.j$,{text:z,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ti");
ciI.idomCompat=!0;_.Sw(ciI,"yt-report-form-confirmation-page-view-model",{props:{data:_.Ih}});var paM=_.c(function(A){var H=A.data;var k=function(){var z;return((z=_.L(H().inputBox,Kd1))==null?void 0:z.maxChars)||500},d=function(){return H().flowStateKey||""},W=_.o9(_.aI,d);
A=_.hK(function(z){z=Object.assign({},W(),{flowFormState:{isValid:z.length<=k()},abuseReportFlowState:{userComments:z,navigationEnabled:!(z.length>k()),isReportFormDirty:!0}});_.FI().dispatch(_.O5("flowStateEntity",d(),z))},150);
_.CZ(function(){var z=Object.assign({},W(),{flowFormState:{isValid:!0}});_.FI().dispatch(_.O5("flowStateEntity",d(),z))});
return _.x("yt-report-form-details-page-view-model",{class:function(){var z;return((z=_.L(W(),OV))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.x("h1",{class:function(){var z;
return((z=_.L(W(),OV))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return H().detailsPageHeader}),_.x("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.x(_.j$,{text:function(){return H().bodyText}})),_.x("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.x(GY3,{label:function(){var z;
return((z=_.L(H().inputBox,Kd1))==null?void 0:z.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var z;return{errorMessage:((z=_.L(H().inputBox,Kd1))==null?void 0:z.maxCharsExceededErrorMessage)||"",maxChars:k()}},
onInput:A})))},"Ui");
paM.idomCompat=!0;_.Sw(paM,"yt-report-form-details-page-view-model",{props:{data:_.Ih}});var QQV=_.c(function(A){var H=A.data;var k=function(){return H().flowStateKey||""},d=_.o9(_.aI,k),W=function(){return _.L(d(),OV)};
return _.x("yt-report-form-reason-select-page-view-model",{class:function(){var z;return((z=W())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.x("h1",{class:function(){var z;
return((z=W())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return H().pageHeader}),_.x("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.x(_.j$,{text:function(){return H().bodyText}})),_.x("div",{class:function(){var z;
return((z=W())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.x(yiL,{data:function(){return _.L(H().radioButtonGroup,gGL)},
onSelected:function(z,u){z=Object.assign({},d(),{abuseReportFlowState:Object.assign({},W(),{reasonKey:u.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:u.command})});_.XI(_.kH("flowStateEntity",k(),z))},
selectedKey:function(){var z;return(z=W())==null?void 0:z.reasonKey},
groupName:"report-form-reason-select-page"})))},"Vi");
QQV.idomCompat=!0;_.Sw(QQV,"yt-report-form-reason-select-page-view-model",{props:{data:_.Ih}});var VkB=_.c(function(A){var H=A.data;var k,d=(k=_.wj().resolve(_.fZ(_.sF)))==null?void 0:k();return _.x("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.x("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.x(_.GA,{data:function(){return d&&H().imageDark?H().imageDark:H().image},
alt:""})),_.x("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.x("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return H().header}),_.x(_.j$,{text:function(){return H().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Wi");
VkB.idomCompat=!0;_.Sw(VkB,"yt-report-form-sign-in-page-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=function(){return H().titleSuperscript},d=function(){return H().answersShelf},W=function(){return H().videoShelf},z=function(){var p;
return(p=H().textInputPlaceholder)==null?void 0:p.content},u=function(){return H().showOpenTextInput},B=function(){var p;
return(p=H().textInputValue)==null?void 0:p.content},h="",O=function(){return H().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
A=_.r(_.RV("",void 0,"ioQph"));var T=A.next().value,m=A.next().value;A=_.r(_.RV(!1,void 0,"Srxao"));var J=A.next().value,g=A.next().value,v=function(){return{state:J()||T()?"active":"disabled",disabled:!(J()||T())}};
_.Sp(function(){u()&&B()&&m(B())});
var y=function(p){var M=H().onUpdateText;M&&_.mu(M,{form:{userQuery:p}});m(p)},X=_.hK(function(p){y(p.target.value.trim())},150),D=_.lc(function(p){var M;
h=(M=p.target.value)==null?void 0:M.trim();X(p);return!1}),K=_.lc(function(p){p.key==="Enter"&&(J()||T())&&(y(p.target.value.trim()),U());
return!1}),N=function(p,M){g(M);
if(M){if(H().isMultiTurnFlow&&!h){var Z;y((Z=p==null?void 0:p.text)!=null?Z:"")}H().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&U()}else m(h)},U=function(){var p=_.L(H().nextButtonViewModel,_.vY);
if(p==null?0:p.trackingParams){p=_.db(p.trackingParams);var M=_.hx();M&&p&&_.GH(M,p,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(p=H().onNextStepCommand)&&_.mu(p)};
A={};return _.x("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.x("div",{class:"ytwTalkToRecsTopCornerButton"},_.x(_.HG,{data:function(){return H().topCornerButton}},{buttonViewModel:_.U7})),_.x("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.x("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.x(_.j$,{text:function(){return H().title}}),_.x(_.R,{cond:k,
then:function(){return _.x("sup",{class:"ytwTalkToRecsSuperScript"},_.x(_.j$,{text:k}))}})),_.x("div",{class:"ytwTalkToRecsSubtitle"},_.x(_.j$,{text:function(){return H().subtitle}})),_.x("div",{class:"ytwTalkToRecsResultsShelf"},_.x(_.R,{cond:d,
then:function(){return _.x(_.HG,{data:d},{chipsShelfViewModel:function(p){return _.x("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.x(_.dr,{data:p.data,callback:N,selectionBehavior:O}))}})}}),_.x(_.R,{cond:W,
then:function(){return _.x(_.HG,{data:W},{horizontalShelfViewModel:function(p){return _.x("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.x(_.Dr,{data:p.data,thumbnailAspectRatio:0}))}})}})),_.x("div",{class:_.ER("ytwTalkToRecsRefinementContainer",(A.ytwTalkToRecsBottomMargin=function(){return H().isMultiTurnFlow},A))},_.x(_.R,{cond:u,
then:function(){return _.x("div",{class:"ytwTalkToRecsUserInputBox"},_.x("input",{type:"text",class:"ytwTalkToRecsTextInput",title:z,placeholder:z,value:T,"on:input":D,"on:keyup":K,maxlength:200}))}}),_.x(_.HG,{data:function(){return H().isMultiTurnFlow?H().nextButtonViewModel:void 0}},{buttonViewModel:function(p){return _.x("div",{class:"ytwTalkToRecsFlowControlButtons"},_.x(_.U7,{data:p.data,
buttonOverrides:v}))}}),_.x(_.HG,{data:function(){return H().isMultiTurnFlow?H().resetButtonViewModel:void 0}},{buttonViewModel:function(p){return _.x("div",{class:"ytwTalkToRecsFlowControlButtons"},_.x(_.U7,{data:p.data,
onClick:function(){var M,Z=(M=_.L(H().resetButtonViewModel,_.vY))==null?void 0:M.onTap;Z&&_.mu(Z)}}))}}))))},"Yi"),"yt-talk-to-recs-view-model",{props:{data:_.Ih}});var sIM={sources:[{clientResource:{imageName:"CHECK"}}]};var E4e=_.c(function(A){var H=_.GP("div");A=_.SD(A,{error:void 0});var k=A.data,d=A.error,W=A.onSelected;A=A.className;var z=_.r(_.C0(function(){return W8L(k())})),u=z.next().value,B=z.next().value;
u1L(k,function(g){B(g);var v,y,X=dLV((v=k().options)==null?void 0:(y=v[g])==null?void 0:y.value,k().type);W==null||W(X);H.value.focus()});
z=_.lc(function(){if(!k().disabled){var g=k(),v=u(),y=H.value;g.options&&(g=kFB(g.options,v,g.label),_.wj().resolve(_.x0).openSheet({viewModel:g},y))}});
var h=_.r48(),O=function(){return!!d()},T=function(){return!!k().disabled},m={},J={};
return _.x("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.x("div",{class:_.ER("ytDropdownViewModelDropdownContainer",A,(m.ytDropdownViewModelDropdownContainerErrorBorder=O,m.ytDropdownViewModelDropdownContainerDisabled=T,m)),"on:click":z,el:H,role:"combobox",tabindex:0,"on:keydown":h,"aria-invalid":O,"aria-disabled":T,"aria-describedby":function(){return O()?"dropdown-view-model-error":void 0}},_.x("div",{class:"ytDropdownViewModelText"},zOB(k,O,u),q53(k,u)),_.x("div",{class:_.ER("ytDropdownViewModelChevronDown",
(J.ytDropdownViewModelChevronDownDisabled=T,J))},_.x(_.n3,{icon:"CHEVRON_DOWN"}))),rvG(k,d))},"Zi");_.Sw(_.c(function(A){var H=A.data;var k=function(W){var z=eOL(H());z.videoMetadata||(z.videoMetadata={});z.videoMetadata.sponsorshipsMetadata||(z.videoMetadata.sponsorshipsMetadata={});z.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(W)},d=function(W){var z=eOL(H());
z.scheduledRedirectMetadata||(z.scheduledRedirectMetadata={});z.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(W)};
return _.x("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.x("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.x("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.x(_.j$,{text:function(){return H().title}}),_.x(_.n3,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.x(_.j$,{text:function(){return H().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.x(_.HG,{data:function(){return H().tierChoices}},{dropdownViewModel:function(W){return _.x("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.x(E4e,{data:W.data,
onSelected:k}))}}),_.x(_.HG,{data:function(){return H().startTimeChoices}},{dropdownViewModel:function(W){return _.x("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.x(E4e,{data:W.data,
onSelected:d}))}}),_.x(_.j$,{text:function(){return H().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.x("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.x(_.HG,{data:function(){return H().scheduleButton}},{panelFooterViewModel:JF})))},"$i"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;A=A.className===void 0?"":A.className;var k=_.o9(Are,function(){return H().flowStateEntityKey||""}),d={};
d=_.ER("ytFlowBottomBarViewModelFlowBottomBarButtons",(d.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},d));
var W={},z=_.ER("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",d,(W.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},W.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},W));
W={};var u=_.ER("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",d,(W.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},W.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},W));
d={};d=_.ER("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
d));
A=_.ER("ytFlowBottomBarViewModelHost",A);return _.x("yt-flow-bottom-bar-view-model",{class:A},_.x(_.R,{cond:function(){var B;return(B=H())==null?void 0:B.textSection},
then:function(B){return _.x("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.x(_.j$,{text:B}))}}),_.x("div",{class:d},_.x(_.HG,{data:function(){return H().secondaryButton}},{buttonViewModel:function(B){return _.x(_.U7,{data:B.data,
className:u})}}),_.x(_.HG,{data:function(){return H().primaryButton}},{buttonViewModel:function(B){return _.x(_.U7,{data:B.data,
className:z,buttonOverrides:function(){var h;return{disabled:!((h=k())==null||!h.primaryButtonDisabled)}}})}})))},"aj"),"yt-flow-bottom-bar-view-model",{props:{data:_.Ih,
className:_.Fc}});var UjB="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),bF=function(){var A=_.a.apply(this,arguments)||this;A.enableScrollingFix=!0;A.bottomBar=!1;A.fitContent=!1;return A};
_.I(bF,_.a);_.q=bF.prototype;_.q.ready=function(){_.b("enable_pdp_icon_prefetch")&&N6B(_.wj().resolve(_.GPM),0,UjB)};
_.q.focus=function(A){this.topBar?_.EY(this.topBar,A):this.paperDialog.focus(A)};
_.q.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20985_scroller&&(this.JSC$20985_scroller.dialogElement=this.paperDialog,this.JSC$20985_scroller.attached&&typeof this.JSC$20985_scroller.attached==="function"&&this.JSC$20985_scroller.attached())};
_.q.onDataChanged=function(){var A;this.fitContent=!((A=this.data)==null||!A.fitContent);var H;this.bottomBar=!((H=this.data)==null||!H.bottomBar)};
_.q.onProgressChanged=function(){var A,H,k=((H=(A=this.data)==null?void 0:A.progress)!=null?H:0)*100;this.progressElement.style.width=k+"%"};
_.q.isProgressHidden=function(){var A;return!((A=this.data)==null?0:A.progress)};
_.q.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(A){return A&&!A.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
bF.prototype.onProgressChanged=bF.prototype.onProgressChanged;bF.prototype.onDataChanged=bF.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bF.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],bF.prototype,"enableScrollingFix",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],bF.prototype,"bottomBar",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],bF.prototype,"fitContent",void 0);_.E([_.ol("#progress"),_.l("design:type",HTMLElement)],bF.prototype,"progressElement",void 0);_.E([_.ol("#scroller"),_.l("design:type",Object)],bF.prototype,"JSC$20985_scroller",void 0);_.E([_.ol("ytd-flow-top-bar-renderer"),_.l("design:type",HTMLElement)],bF.prototype,"topBar",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"onDataChanged",null);_.E([_.fF("data.progress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"onProgressChanged",null);_.E([_.O6({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],bF);
_.Q(bF,"ytd-flow-step-renderer",function(){if(exQ!==void 0)return exQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return exQ=A},{mode:1});var Lq=function(A){this.resolveCommand=A;this.steps={}},lCI=function(A,H){H=_.r(H||[]);
for(var k=H.next();!k.done;k=H.next()){k=k.value;var d=Object.values(k)[0],W=void 0;if((W=d)==null?0:W.stepId)A.steps[d.stepId]=k}},N7B=function(A,H){var k,d,W,z,u;
return _.e(function(B){if((k=A.state)==null||!k.currentStepId)return B.return(void 0);d=A.getCurrentStep();if(!d)return B.return(tk3(A));if(W=_.L(d,_.ql))A.logVEScreen(W),((z=W)==null?0:z.onStepStartCommand)&&A.resolveCommand((u=W)==null?void 0:u.onStepStartCommand,{});W&&H&&(A.logFlowEvent(W,H),H.steps&&!H.steps.includes(d)&&H.steps.push(d));return B.return(d)})};
Lq.prototype.back=function(){var A;(A=this.state)!=null&&A.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Lq.prototype.handleUpdateFlowCommand=function(A){A.steps&&lCI(this,A.steps);A.entityUpdateCommand&&this.resolveCommand(A.entityUpdateCommand,{});A.flowContinuationCommand&&(A=A.flowContinuationCommand)&&(this.getFlowContinuationCommand=A);this.awaitFlowContinuation&&(A=this.getCurrentStep(),this.awaitFlowContinuation(A),this.awaitFlowContinuation=void 0)};
Lq.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var tk3=function(A){return _.e(function(H){return A.getFlowContinuationCommand?H.return(new Promise(function(k){A.awaitFlowContinuation=k;A.getFlowContinuationCommand&&A.resolveCommand(A.getFlowContinuationCommand,{flow_state:A.state})})):H.return(Promise.resolve(void 0))})};
Lq.prototype.getCurrentStep=function(){var A;if((A=this.state)!=null&&A.currentStepId)return this.steps[this.state.currentStepId]};
Lq.prototype.logVEScreen=function(A){var H;((H=A.screenLoggingData)==null?0:H.screenVeType)&&_.Ml(_.A7(),A.screenLoggingData.screenVeType)};
Lq.prototype.logFlowEvent=function(A,H){var k,d,W,z;((k=H.flowLoggingData)==null?0:k.eventNamespace)&&((d=A.flowEventData)==null?0:d.eventType)&&((W=A.flowEventData)==null?0:W.eventMetadata)&&((z=H.flowLoggingData)==null?0:z.flowType)&&(A=_.tr(H.flowLoggingData.eventNamespace,A.flowEventData.eventType,A.flowEventData.eventMetadata),_.Nm().logFlowEvent(A,H.flowLoggingData.flowType))};
_.nP.Object.defineProperties(Lq.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.state)==null?void 0:A.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.state)!=null&&A.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(H,k){k.key&&k.value&&(H[k.key]=k.value);return H},{})}}});var vt=function(){var A=_.a.apply(this,arguments)||this;A.flowState=_.b("web_use_flow_state_manager")?void 0:new Lq(function(H,k){k=k===void 0?{}:k;_.n0.instance.resolveCommand(H,{form:{form:k,element:A.hostElement}})});
A.JSC$20996_flowStateManager=_.b("web_use_flow_state_manager")?_.wj().resolve(_.z6):void 0;A.currentTargetId="";A.initialState=!0;A.isLoading=!1;A.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"};A.containsTalkToRecs=!1;return A};
_.I(vt,_.a);_.q=vt.prototype;_.q.onPopupClosed=function(A){if(!A||this.hostElement===A.detail.popupRenderer){if(this.JSC$20996_flowStateManager){var H;((H=this.data)==null?0:H.flowStateEntityKey)&&this.JSC$20996_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.q.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"}}}};
_.q.focus=function(A){var H=this;_.L0(function(){var k=_.Va(H.hostElement).querySelector("ytd-flow-step-renderer");(k==null?0:k.topBar)?k.focus(A):H.topBar&&_.EY(H.topBar,A)},1)};
_.q.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.q.computeTopBarHidden=function(A){var H;return!((H=_.L(A,_.ql))==null||!H.topBarOverride)};
_.q.onCurrentFlowChange=function(){if(this.JSC$20996_flowStateManager&&this.data&&this.flow){var A=A$i(this.JSC$20996_flowStateManager,this.data),H;if(A&&((H=this.flow)==null?0:H.currentStepId)){A=ktI(A,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var k;!A&&((k=this.data)==null?0:k.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.q.observeData=function(){var A=this;if(this.JSC$20996_flowStateManager){var H=this.currentTargetId,k,d,W=(d=(k=this.data)==null?void 0:k.targetId)!=null?d:"";H!==W&&H&&HiB(this.JSC$20996_flowStateManager,H);this.currentTargetId=W;this.data&&sn_(A$i(this.JSC$20996_flowStateManager,this.data),function(z){z&&(A.initialState=!1,A.currentFlowStep={flowStepRenderer:z},A.isLoading=!A.currentFlowStep,A.autofocusAndRefit(),A.updateContainsTalkToRecs(),A.logVEScreen(),A.logFlowEvent())})}};
_.q.dataChanged=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1){if(!A.flowState)return d.return();((H=A.data)==null?0:H.steps)&&lCI(A.flowState,A.data.steps);if((k=A.data)==null?0:k.flowContinuationCommand){var W=A.flowState,z=A.data.flowContinuationCommand;z&&(W.getFlowContinuationCommand=z)}return d.yield(N7B(A.flowState,A.data),2)}A.currentFlowStep=d.yieldResult;_.EN(d)})};
_.q.flowChanged=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1){if(!A.flowState||!A.flow)return k.return();A.flowState.state=A.flow;A.isLoading=!0;return k.yield(N7B(A.flowState,A.data),2)}H=k.yieldResult;if(!H||A.flow.isLoading)return k.return();A.currentFlowStep=H;A.initialState=!1;A.isLoading=!1;A.autofocusAndRefit();A.updateContainsTalkToRecs();_.EN(k)})};
_.q.logVEScreen=function(){var A,H,k=(A=_.L(this.currentFlowStep,_.ql))==null?void 0:(H=A.screenLoggingData)==null?void 0:H.screenVeType;k&&_.Ml(_.wj().resolve(_.Wf),k)};
_.q.logFlowEvent=function(){var A=_.L(this.currentFlowStep,_.ql),H,k,d,W,z,u;(this==null?0:(H=this.data)==null?0:(k=H.flowLoggingData)==null?0:k.eventNamespace)&&(this==null?0:(d=this.data)==null?0:(W=d.flowLoggingData)==null?0:W.flowType)&&(A==null?0:(z=A.flowEventData)==null?0:z.eventType)&&(A==null?0:(u=A.flowEventData)==null?0:u.eventMetadata)&&(A=_.tr(this.data.flowLoggingData.eventNamespace,A.flowEventData.eventType,A.flowEventData.eventMetadata),_.Nm().logFlowEvent(A,this.data.flowLoggingData.flowType))};
_.q.updateContainsTalkToRecs=function(){var A,H=(A=_.L(this.currentFlowStep,_.ql))==null?void 0:A.content;this.containsTalkToRecs=!!H&&!!_.L(H,KPB)};
_.q.autofocusAndRefit=function(){var A=this,H=_.wj().resolve(_.fZ(_.ah)),k=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),d=document.querySelector("yt-report-form-confirmation-page-view-model"),W=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"),
B=document.querySelector("yt-structured-context-note-view-model"),h=document.querySelector("yt-note-view-model");(!k&&H&&H.isKeyBoardInUse()||d||!k&&W||!k&&z||!k&&(u||B||h))&&_.UY(this.hostElement);_.No(this,function(){_.Ed(A.hostElement,"yt-refit")})};
_.q.handleUpdateFlowCommand=function(A){this.flowState?this.data&&(A=_.L(A,_.D_w),A.targetId===this.data.targetId&&(A.flowContinuationCommand&&(this.data.flowContinuationCommand=A.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(A),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(A)};
_.q.handleFlowNextStepCommand=function(A){this.JSC$20996_flowStateManager?this.ytComponentBehavior.resolveCommand(A):this.data&&this.flow&&this.flow.key&&(A=_.L(A,_.Prk),A.targetId===this.data.targetId&&(A=A.stepId||"",this.ytdReduxBehavior.dispatch(_.O5("flowStateEntity",this.flow.key,{currentStepId:A,stepIdStack:(this.flow.stepIdStack||[]).concat(A)}))))};
_.q.handleFlowPrevStepCommand=function(A){if(this.JSC$20996_flowStateManager)this.ytComponentBehavior.resolveCommand(A);else if(this.data&&this.flow&&this.flow.key&&(A=_.L(A,_.GlN),A.targetId===this.data.targetId)){var H=[].concat(_.fV(this.flow.stepIdStack||[]));H.length>1?(H.pop(),this.ytdReduxBehavior.dispatch(_.O5("flowStateEntity",this.flow.key,{currentStepId:H[H.length-1],stepIdStack:H}))):A.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(A.onFirstStepCommand)}};
_.q.handleYpcCancelRecurrenceCommand=function(A){if(this.data&&this.flow&&this.flow.key&&(A=_.L(A,QZG),A.targetId===this.data.targetId&&A.endpointCommand)){var H=_.L(this.flow,V2Q);H&&_.L(A.endpointCommand,_.Nqp)&&(_.L(A.endpointCommand,_.Nqp).feedbackData=H.surveyFeedback);this.ytComponentBehavior.resolveCommand(A.endpointCommand)}};
_.q.handlePartialUpdateFlowStateEntity=function(A){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.O5("flowStateEntity",this.flow.key,A,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
vt.prototype.flowChanged=vt.prototype.flowChanged;vt.prototype.dataChanged=vt.prototype.dataChanged;vt.prototype.observeData=vt.prototype.observeData;vt.prototype.onCurrentFlowChange=vt.prototype.onCurrentFlowChange;vt.prototype.onPopupClosed=vt.prototype.onPopupClosed;_.E([_.P(_.TG),_.l("design:type",Object)],vt.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],vt.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],vt.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vt.prototype,"initialState",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vt.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",Object)],vt.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],vt.prototype,"currentFlowStep",void 0);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],vt.prototype,"onPopupClosed",null);
_.E([_.C({selectorArgs:["data.flowStateEntityKey"],selector:Are}),_.l("design:type",Object)],vt.prototype,"flow",void 0);_.E([_.ol("ytd-flow-top-bar-renderer"),_.l("design:type",HTMLElement)],vt.prototype,"topBar",void 0);_.E([_.fF("data","flow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vt.prototype,"onCurrentFlowChange",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vt.prototype,"observeData",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],vt.prototype,"dataChanged",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vt.prototype,"containsTalkToRecs",void 0);_.E([_.s6("flow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],vt.prototype,"flowChanged",null);_.E([_.O6({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],vt);
var MkM=_.Vu()(vt,"ytd-flow-root-renderer",function(){if(duQ!==void 0)return duQ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return duQ=A},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var mL1=_.x5w.talkToRecsStateSelector;_.Sw(_.c(function(A){var H=function(){return _.L(A.data().flowRoot,aVM)};
_.CZ(function(){var k=H(),d=function(){},W=function(){};
k&&(OwL(k,xLL(k)),d=TyB(k),W=JvR(k));_.aV(function(){d();d=function(){};
W();W=function(){};
var z=H();z&&(_.F3().dispatch(_.kH("flowStateEntity",z.flowStateEntityKey)),_.XI(_.p8({type:"TALK_TO_RECS_RESET_STEP_STATE",payload:{stepId:xLL(z)}})))})});
return _.x("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.x(_.nK,{contentId:function(){return A.data().contentId}},function(){return _.x("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.x(_.R,{cond:H,
then:function(k){return _.x(MkM,{data:k})}}))}))},"bj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Ih}});var n4L=_.c(function(A){var H=_.SD(A,{numberOfChips:5}).numberOfChips;return _.x("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.x(_.Ix,{each:function(){return Array(H==null?void 0:H())}},function(){return _.x("div",{class:"ytGhostChipShelfChip"})}))},"cj");_.Sw(_.c(function(){return _.x("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.x("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.x("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.x(n4L,null)),_.x(_.P31,{data:{rows:1},isExploreHub:!0}))},"dj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Sw(_.c(function(A){var H=A.data;var k=A.standardUnitMinWidth;A=_.r((0,_.Gq)(H));var d=A.next().value,W=A.next().value,z=function(){var B,h=(B=d())==null?void 0:B.contents;return h==null||h.length===0},u=function(){W(Object.assign({},d(),{contents:[]}))};
return _.x("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.P8(_.NV({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var B=_.L(H().chipsShelf,D81);if(B!=null&&B!=null&&B.autoselectChipOnVisible){var h,O,T=_.L(B==null?void 0:(h=B.contents)==null?void 0:h[(O=B.autoselectedChipIndex)!=null?O:0],_.yF);T&&T.tapCommand&&_.mu(T.tapCommand)}}}))},_.x(_.nK,{contentId:function(){return H().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.x("div",null,_.x("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.x(_.HG,{data:function(){return H().header}},{sectionHeaderViewModel:function(B){return _.x(_.kG,{data:B.data,
disableHorizontalPadding:!0})}})),_.x("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.x(_.HG,{data:function(){return H().chipsShelf}},{chipsShelfViewModel:function(B){return _.x(_.dr,{data:B.data,
callback:u,selectionBehavior:1})}})),_.x("div",null,_.x(_.R,{cond:z,
then:function(){return _.x("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.x(_.P31,{data:{rows:1},isExploreHub:!0}))}}),_.x(_.HG,{data:function(){var B;
return(B=d())==null?void 0:B.contents}},{richShelfRenderer:function(B){return _.x(_.lMA,{data:B.data,
isInnerShelf:!0,standardUnitMinWidth:k})}})))}))},"ej"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Ih,
standardUnitMinWidth:_.Ih}});var yO=function(){return _.a.apply(this,arguments)||this};
_.I(yO,_.a);
yO.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}}};
yO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.E([_.P(_.TG),_.l("design:type",Object)],yO.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.DV),_.l("design:type",Object)],yO.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],yO.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Number)],yO.prototype,"standardUnitMinWidth",void 0);_.E([_.O6({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],yO);
_.Q(yO,"ytd-rich-section-renderer",function(){if(Qf3!==void 0)return Qf3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Qf3=A},{mode:2});var Z__;var IhB=null;_.Sw(_.c(function(A){return _.x("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.x("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.x(_.j$,{text:function(){return A.data().text}}),_.x("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"fj"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Ih}});var fCB=_.c(function(A){var H=A.playerControlsProps;var k=A.isShortsPage;return _.x("yt-bigboard",null,_.x(_.R,{cond:function(){return H().isDragging},
then:function(){return _.x("div",{class:"ytBigboardStoryboardHost"},_.x(_.AbB,{progressBarProps:H,isShortsPage:k}))}}))},"gj");
fCB.idomCompat=!0;var jH={ACCOUNT_LABEL:d7("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:d7("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:d7("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:d7("AD_BADGE_HINT"),AD_BADGE_TEXT:d7("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:d7("ALL_CHANNELS_LABEL"),AMBIENT_MODE:d7("AMBIENT_MODE"),AMBIENT_MODE_OFF:d7("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:d7("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:d7("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:d7("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:d7("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:d7("APP_UPSELL_TITLE"),AUDIO_TRACK:d7("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:d7("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:d7("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:d7("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:d7("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:d7("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:d7("AUTO_ZOOM","Auto zoom"),BACK:d7("BACK"),CANCEL:d7("CANCEL"),CHANNEL_SWITCHER_LABEL:d7("CHANNEL_SWITCHER_LABEL"),CLOSE:d7("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:d7("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:d7("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:d7("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:d7("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:d7("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:d7("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:d7("COMMENT_MODAL_CONTENT"),CONFIRM_OK:d7("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:d7("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:d7("COPIED_TO_CLIPBOARD"),COPY:d7("COPY"),COPY_DEBUG_INFO:d7("COPY_DEBUG_INFO"),COPY_EMBED_CODE:d7("COPY_EMBED_CODE"),
COPY_LINK_LABEL:d7("COPY_LINK_LABEL"),COPY_VIDEO_URL:d7("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:d7("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:d7("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:d7("DELETE_FROM_DOWNLOADS"),DIALOG:d7("DIALOG"),DONE:d7("DONE"),DOWNLOAD:d7("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:d7("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:d7("FLAG_CONFIRM"),FLAG_CONTENT:d7("FLAG_CONTENT"),FLAG_LABEL:d7("FLAG_LABEL"),FLAG_TITLE:d7("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:d7("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:d7("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:d7("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:d7("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:d7("HIDE_SEARCH_FILTERS_LABEL"),HOME:d7("HOME","Home"),INVALID_RESPONSE_RECEIVED:d7("INVALID_RESPONSE_RECEIVED"),LIBRARY:d7("LIBRARY","Library"),LISTENING:d7("LISTENING"),LOADING:d7("LOADING"),LONG_PRESS_MIC_TO_SPEAK:d7("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:d7("LOOP"),MENU_DESKTOP:d7("MENU_DESKTOP"),
MENU_EXIT:d7("MENU_EXIT"),MENU_FEEDBACK:d7("MENU_FEEDBACK"),MENU_HELP:d7("MENU_HELP"),MENU_IMPRESSUM:d7("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:d7("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:d7("MENU_SETTINGS"),MENU_SIGN_IN:d7("MENU_SIGN_IN"),MENU_TITLE:d7("MENU_TITLE"),MENU_YOUR_DATA:d7("MENU_YOUR_DATA"),MORE_INFO:d7("MORE_INFO"),MORE_OPTIONS:d7("MORE_OPTIONS"),MUTE_VOLUME:d7("MUTE_VOLUME"),NEW_PLAYLIST:d7("NEW_PLAYLIST"),NEXT_VIDEO:d7("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:d7("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:d7("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:d7("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:d7("NOT_FOUND_TITLE"),NO_DOWNLOADS:d7("NO_DOWNLOADS"),NO_MIC_INPUT:d7("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:d7("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:d7("OOPS_MESSAGE"),OPEN_APP:d7("OPEN_APP"),OPEN_YOUTUBE:d7("OPEN_YOUTUBE"),PAUSE:d7("PAUSE"),PLAY:d7("PLAY"),PLAYER_CAPTION:d7("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:d7("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:d7("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:d7("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:d7("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:d7("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:d7("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:d7("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:d7("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:d7("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:d7("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:d7("PLAYER_MINIMIZE"),PLAYER_NEXT:d7("PLAYER_NEXT"),PLAYER_PAUSE:d7("PLAYER_PAUSE"),PLAYER_PLAY:d7("PLAYER_PLAY"),
PLAYER_PREVIOUS:d7("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:d7("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:d7("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:d7("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:d7("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:d7("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:d7("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:d7("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:d7("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:d7("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:d7("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:d7("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:d7("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:d7("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:d7("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:d7("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:d7("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:d7("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:d7("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:d7("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:d7("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:d7("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:d7("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:d7("PLAY_ALL"),PLEASE_FIX_ERRORS:d7("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:d7("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:d7("PREVIOUS_VIDEO"),PRIVACY_POLICY:d7("PRIVACY_POLICY"),RELOAD:d7("RELOAD"),REQUIRED_LABEL:d7("REQUIRED_LABEL"),SAVE_PLAYLIST:d7("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:d7("SCRUB_SLIDE_USER_EDU"),SEARCH:d7("SEARCH","Search"),
SEARCH_APPEND_LABEL:d7("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:d7("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:d7("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:d7("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:d7("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:d7("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:d7("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:d7("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:d7("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:d7("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:d7("SEEK_SLIDER"),SETTINGS_LABEL:d7("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:d7("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:d7("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:d7("SHOW_LESS"),SHOW_MORE:d7("SHOW_MORE"),SHOW_PLAYER_CONTROLS:d7("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:d7("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:d7("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:d7("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:d7("SIGN_IN_ON_WEB"),STABLE_VOLUME:d7("STABLE_VOLUME"),STABLE_VOLUME_OFF:d7("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:d7("STABLE_VOLUME_ON"),STATS_FOR_NERDS:d7("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:d7("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:d7("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:d7("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:d7("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:d7("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:d7("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:d7("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:d7("TIMESTAMP_SECONDS"),TOGGLE_OFF:d7("TOGGLE_OFF"),TOGGLE_ON:d7("TOGGLE_ON"),TRENDING:d7("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:d7("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:d7("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:d7("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:d7("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:d7("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:d7("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:d7("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:d7("VIDEO_LINK_LABEL")};var waB=_.c(function(A){var H=A.playerApi;A=_.GP("button",function(d){Hr(d,36843)});
var k=d7("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.x("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.x("button",{el:A,class:"ytPlayerControlsJumpForwardButtonButton",title:k,"aria-label":k,"on:click":_.lc(function(){sO(36843);H&&H().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.x("span",null,_.x(_.n3,{icon:"FAST_FORWARD",
active:!0}))))},"hj");var o4B=_.c(function(A){var H=A.appApi;A=_.GP("button",function(d){Hr(d,62946)});
var k=d7("OPEN_IN_MINIPLAYER");return _.x("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.x("button",{el:A,class:"ytMiniplayerButtonButton",title:k,"aria-label":k,"on:click":_.lc(function(){sO(62946);var d,W;(W=(d=H()).openInMiniplayer)==null||W.call(d);return!1})},_.x(_.n3,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ij");var $jR=_.c(function(A){var H=A.playerApi;A=_.GP("button",function(z){Hr(z,142812)});
var k=_.r(_.RV(!1,void 0,"eOMRAb")),d=k.next().value,W=k.next().value;k=function(){return d7("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(d()?1:2)})};
return _.x("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.x("button",{el:A,class:"ytPlaybackSpeedButtonButton",title:k,"aria-label":k,"on:click":_.lc(function(){sO(142812);if(H){var z=H(),u=d();z.setPlaybackRate(u?1:2);W(!d())}return!1})},_.x("span",null,_.x(_.n3,{icon:function(){return d()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"jj");var AXQ=_.c(function(A){var H=A.title;var k=A.ariaLabel;var d=A.icon;var W=A.command;var z=A.visualElementId;A=_.GP("button",function(u){z&&Hr(u,z())});
return _.x("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.x("button",{el:A,class:"ytdThumbnailOverlayButtonButton",title:H,"aria-label":k,"on:click":_.lc(function(){z&&sO(z());W&&_.wj().resolve(_.J7).resolveCommand(W())})},_.x(_.n3,{icon:d})))},"kj");var HtI=["en-CA","en","es-MX","fr-CA"];var sjB=_.c(function(A){var H=_.SD(A,{isOverlay:!1}),k=H.captionIconType,d=H.onClick;A=H.ariaLabel;var W=H.ariaPressed,z=H.isOverlay;H=_.GP("button",function(h){Hr(h,127299)});
var u=_.lc(function(h){sO(127299);d==null||d(h);return!1}),B={};
return _.x("ytm-closed-captioning-button",{class:_.ER("ytmClosedCaptioningButtonHost",(B.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return k()===-1&&z()},B.ytmClosedCaptioningButtonIconDisabled=function(){return k()===-1&&!z()},B))},_.x("button",{el:H,
class:"ytmClosedCaptioningButtonButton",title:A,"aria-label":A,"aria-pressed":W,"on:click":u},_.x(_.n3,{icon:function(){var h="";var O=_.sH().get("hl");O=!O||HtI.includes(O)?"CLOSED_CAPTION":"SUBTITLES";var T=k();switch(T){case -1:case 0:h=O;break;case 1:h=O+"_FILLED";break;default:_.HR(T)}return h}})))},"lj");
sjB.idomCompat={callbacks:{onClick:!0}};var AO="";var k_V=_.c(function(A){var H=A.playerControlsProps,k=A.onClickFn;A=_.be(function(){var z=H(),u=-1;z.captionsAvailable&&(u=z.captionsEnabled?1:0);return u},void 0,"MZ0Wqe");
var d=_.be(function(){var z=H();return z.captionsAvailable?_.$r(z.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.$r("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),W=_.be(function(){var z=H();
z=z.captionsAvailable?z.captionsEnabled:void 0;return z},void 0,"fhuQRe");
return _.x("yt-closed-captions-toggle-button",null,_.x(sjB,{captionIconType:A,ariaLabel:d,ariaPressed:W,onClick:function(z){var u=H();if(u.captionsAvailable){var B=u.playerApi;if(B){var h=u.playerApi;if(h){var O=AO;if(O){h=h.getOption("captions","track");var T;AO=(T=h?h.displayName:null)!=null?T:O}else LjI(h)?(O=_.Z9r(h),AO=O.length?(T=yrG(O))?T.displayName:O[0].displayName:""):AO=""}jcV(B);_.b("mweb_disable_set_state_captions_killswitch")&&u.setState({captionsEnabled:!u.captionsEnabled})}}var m,
J;(J=(m=u.appApi).showCaptionsToggleToast)==null||J.call(m,u);k==null||k(z)},
isOverlay:!0}))},"mj");var dbB=_.c(function(A){var H=A.data;return _.x("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.x(_.Lr,{data:function(){return{type:17,text:_.AEv(H().label)}}}))},"nj");var WUR=_.c(function(A){var H=_.ER("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return A.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return A.size()==="small"?A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.x("animated-seek-arrows",{class:_.ER("ytPlayerControlsAnimatedSeekArrowsHost")},_.x("span",{class:H}),_.x("span",{class:H}),_.x("span",{class:H}))},"oj");
WUR.idomCompat=!0;var zNe=_.c(function(){var A=_.$r("PLAYER_SECONDS",{seconds_placeholder:"30"}),H=_.r(_.RV(!1,void 0,"iRJu8c")),k=H.next().value,d=H.next().value,W=_.r(_.RV(!1,void 0,"MPnizf"));H=W.next().value;var z=W.next().value;W={};var u=_.ER("jumpForwardOverlayOverlay",(W.jumpForwardOverlayOverlayHidden=H,W));_.CZ(function(){var B=null,h=null,O=function(){B!==null&&_.iA().cancelJob(B);h!==null&&_.iA().cancelJob(h);z(!0);d(!0);_.p3(_.iA(),function(){z(!1)});
B=_.p3(_.iA(),function(){z(!0);h=_.p3(_.iA(),function(){d(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",O);_.aV(function(){window.removeEventListener("jump-forward-clicked",O)})});
return _.x("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.x(_.R,{cond:k,then:function(){return _.x("div",{class:u},_.x(WUR,{direction:1,size:"large"}),_.x("div",null,A))}}))},"pj");var qVR=jH.MUTE_VOLUME,rX_=jH.UNMUTE_VOLUME,ubV=_.c(function(A){var H=A.muteIconType;var k=A.onClick;var d=A.useOutlineIcon;var W=A.useDelhiIcons;A=_.GP("button",function(B){Hr(B,28662)});
var z=function(){var B=H(),h=d==null?void 0:d(),O=W==null?void 0:W(),T="",m="";switch(B){case -1:case 0:T=h?"VOLUME_OFF":O?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";m=rX_;break;case 1:T=h?"VOLUME_UP_OUTLINE":O?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";m=qVR;break;case 2:T=h?"VOLUME_DOWN_OUTLINE":O?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";m=qVR;break;default:_.HR(B)}return{iconName:T,ariaLabel:m}},u=function(){return z().ariaLabel};
return _.x("ytm-mute-button",{class:"ytmMuteButtonHost"},_.x("button",{el:A,class:"ytmMuteButtonButton",title:u,"aria-label":u,"on:click":_.lc(function(B){sO(28662);k==null||k(B);return!1})},_.x("span",null,_.x(_.n3,{icon:function(){return z().iconName}}))))},"qj");var BZG=_.c(function(A){var H=A.volumeProps;var k=A.onClickFn;var d=A.useOutlineIcon;var W=A.useDelhiIcons;return _.x("yt-mute-toggle-button",null,_.x(ubV,{muteIconType:function(){var z=H();return z.volumeMuted||z.volume===0?0:z.volume>50?1:2},
onClick:function(z){var u=H().playerApi;u&&(u.isMuted()?u.unMute():u.mute(!1));k==null||k(z)},
useOutlineIcon:function(){return!(d==null||!d())},
useDelhiIcons:function(){return!(W==null||!W())}}))},"rj");
BZG.idomCompat=!0;var eNL=_.c(function(A){var H=A.data;var k=_.GP("ytm-paid-content-overlay-renderer");return _.x("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:k,"on:animationend":_.lc(function(){k.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.x(_.c2,{command:function(){return H().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.x(_.R,{cond:function(){var d;return(d=H().icon)==null?void 0:d.iconType},
then:function(){return _.x("span",null,_.x(_.n3,{icon:function(){var d;return(d=H().icon)==null?void 0:d.iconType}}))}}),_.x("div",{class:"ytmPaidContentOverlayText"},_.x(_.j$,{text:function(){return H().text}})),_.x(_.R,{cond:function(){return H().navigationEndpoint},
then:function(){return _.x(_.n3,{icon:"CHEVRON_RIGHT"})}})))},"sj");
eNL.idomCompat=!0;var Aq3=[].concat(_.fV([{register:function(A){var H=Ny3(A),k;(k=A().playerApi)==null||k.addEventListener("onVolumeChange",H);return function(){}}},
{register:function(A){var H=MYM(A);A=A().playerApi;A==null||A.addEventListener("captionschanged",H);A==null||A.addEventListener("captionssettingschanged",H);A==null||A.addEventListener("onCaptionsTrackListChanged",H);return function(){}}}]),[{register:function(A){var H=EqG(A),k;
(k=A().playerApi)==null||k.addEventListener("onStateChange",H);return function(){}}},
{register:function(A){var H=UL1(A),k;(k=A().playerApi)==null||k.addEventListener("onPlaybackRateChange",H);return function(){}}},
{register:function(A){var H=lhL(A),k;(k=A().playerApi)==null||k.addEventListener("onVideoDataChange",H);return function(){}}},
{register:function(A){var H=tYV(A),k,d;(k=A())==null||(d=k.playerApi)==null||d.addEventListener("onVideoProgress",H);return function(){}}}]);var xb_=_.c(function(A){var H=A.data;var k=function(){return _.$r("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+H().playbackRate})};
return _.x(_.R,{cond:function(){return H().playbackRate&&H().playbackRate!==1},
then:function(){return _.x("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.x("div",{class:"ytPlaybackRateOverlayOverlay"},_.x(WUR,{direction:1,size:"small"}),_.x("div",{class:"ytPlaybackRateOverlayLabel"},k)))}})},"uj");var itQ=_.c(function(A){var H=A.data;return _.x("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.x(_.R,{cond:function(){var k,d=(k=H())==null?void 0:k.playerResponse,W;return d==null?void 0:(W=d.paidContentOverlay)==null?void 0:W.paidContentOverlayRenderer},
then:function(k){return _.x(eNL,{data:k})}}))},"wj"),hNL=_.c(function(A){var H=A.props;
var k=A.data;var d=A.options;var W=function(){var O,T,m,J;return(O=k())==null?void 0:(T=O.playerResponse)==null?void 0:(m=T.playerConfig)==null?void 0:(J=m.inlinePlaybackConfig)==null?void 0:J.showAudioControls},z=function(){var O,T;
if(W()&&((O=d())==null?void 0:(T=O.additionalButton)==null?void 0:T.button)!==void 0){var m,J,g;O=(m=k())==null?void 0:(J=m.playerApi)==null?void 0:(g=J.getSize())==null?void 0:g.height;if(!(O===void 0||O<180)){var v,y;return(v=d())==null?void 0:(y=v.additionalButton)==null?void 0:y.button}}},u=function(){var O,T;
return(O=d())==null?void 0:(T=O.additionalButton)==null?void 0:T.thumbnailOverlayButtonRenderers},B=function(){var O,T;
return(O=d())==null?void 0:(T=O.additionalButton)==null?void 0:T.thumbnailOverlayButtonViewModels},h=function(){var O=[_.x(BZG,{volumeProps:H})],T;
((T=d())==null?0:T.hideCaptionsToggleButton)||O.push(_.x(k_V,{playerControlsProps:H}));z()===1&&O.push(_.x(waB,{playerApi:function(){return H().playerApi}}));
z()===2&&O.push(_.x(o4B,{appApi:function(){return H().appApi}}));
z()===3&&O.push(_.x($jR,{playerApi:function(){return H().playerApi}}));
T=u();if(z()===4&&T){T=_.r(T);for(var m=T.next(),J={};!m.done;J={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$55:void 0,command$jscomp$632:void 0},m=T.next()){m=m.value;J.tooltip$jscomp$3=m.tooltip;var g=void 0,v=void 0;J.ariaLabel$jscomp$20=((g=m.accessibility)==null?void 0:(v=g.accessibilityData)==null?void 0:v.label)||J.tooltip$jscomp$3;g=void 0;J.icon$jscomp$55=(g=m.icon)==null?void 0:g.iconType;J.command$jscomp$632=m.command;J.tooltip$jscomp$3&&J.ariaLabel$jscomp$20&&J.icon$jscomp$55&&
O.push(_.x(AXQ,{title:function(y){return function(){return y.tooltip$jscomp$3}}(J),
ariaLabel:function(y){return function(){return y.ariaLabel$jscomp$20}}(J),
icon:function(y){return function(){return y.icon$jscomp$55}}(J),
command:function(y){return function(){return y.command$jscomp$632}}(J)}))}}T=B();
if(z()===4&&T)for(T=_.r(T),m=T.next(),J={};!m.done;J={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$56:void 0,command$jscomp$633:void 0,trackingParamsVeType:void 0},m=T.next())m=m.value,J.tooltip$jscomp$4=m.title,J.ariaLabel$jscomp$21=m.accessibilityText||J.tooltip$jscomp$4,J.icon$jscomp$56=m.iconName,J.command$jscomp$633=_.h7(m.onTap),v=g=void 0,J.trackingParamsVeType=((g=m.loggingDirectives)==null?0:g.trackingParams)?(v=IBi(_.$8(m.loggingDirectives.trackingParams)))==null?void 0:
_.QJ(v,2):void 0,J.tooltip$jscomp$4&&J.ariaLabel$jscomp$21&&J.icon$jscomp$56&&O.push(_.x(AXQ,{title:function(y){return function(){return y.tooltip$jscomp$4}}(J),
ariaLabel:function(y){return function(){return y.ariaLabel$jscomp$21}}(J),
icon:function(y){return function(){return y.icon$jscomp$56}}(J),
command:function(y){return function(){return y.command$jscomp$633}}(J),
visualElementId:function(y){return function(){return y.trackingParamsVeType}}(J)}));
return O};
return _.x(_.R,{cond:W,then:function(){return _.x("div",{class:"ytInlinePlayerControlsTopRightControls"},_.x(_.Ix,{each:h},function(O){return _.x("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.x("div",{class:"ytInlinePlayerControlsButtonIcon"},O))}))}})},"xj"),TZ_=_.c(function(A){var H=A.props;
var k=A.data;var d=A.options;A={};A=_.ER("ytInlinePlayerControlsBottomRightControls",(A.ytInlinePlayerControlsBottomRightControlsHidden=function(){var W;return Zwe(k(),d())&&((W=d())==null?void 0:W.insetProgressBar)&&(H().isHovering||H().isDragging)},A));
return _.x("div",{class:A},_.x(Oti,{data:k}),_.x(_.R,{cond:function(){var W;return!((W=d())==null?0:W.hideTimeDisplay)},
then:function(){return _.x(RNe,{props:H,data:k})}}))},"yj"),Oti=_.c(function(A){var H=A.data;
return _.x(_.HG,{data:function(){var k;return Cs_((k=H())==null?void 0:k.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:dbB})},"zj"),RNe=_.c(function(A){var H=A.props;
var k=A.data;return _.x(_.R,{cond:function(){return H().isLive},
then:function(){return _.x(mbM,{props:H,data:k})},
else:function(){return _.x(JXB,{props:H,data:k})}})},"Aj"),JXB=_.c(function(A){var H=A.props;
var k=A.data;var d=_.be(function(){var W;return K8B((W=k())==null?void 0:W.thumbnailOverlays)},void 0,"Pf9uIe");
return _.x("div",{class:_.ER("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return jH.PLAYER_TIME_ELAPSED+" "+_.g8A(H().playedTime)}},_.x(_.Lr,{data:function(){var W=_.g8A(H().videoDuration-H().playedTime);
return Object.assign({},{type:17,text:W},d())}}))},"Bj"),ga1=_.c(function(A){A=A.badgeShapeData;
return _.x("div",{class:_.ER("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.x(_.Lr,{data:A}))},"Cj"),mbM=_.c(function(A){var H=A.data;
A=_.be(function(){if(_.b("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var d,W=_.r(((d=H())==null?void 0:d.thumbnailOverlays)||[]);for(d=W.next();!d.done;d=W.next()){d=d.value;if(d.thumbnailOverlayTimeStatusRenderer||d.thumbnailOverlayBadgeViewModel)return d;var z=void 0;if((z=d.thumbnailBottomOverlayViewModel)==null?0:z.badges)if(d=d.thumbnailBottomOverlayViewModel.badges.find(function(u){return _.L(u,DLe)}))return d}}},void 0,"GPGpgc");
var k=_.be(function(){var d,W,z,u,B,h;return _.WhV((d=H())==null?void 0:(W=d.playerApi)==null?void 0:(z=W.getSize())==null?void 0:z.width,(u=H())==null?void 0:(B=u.playerApi)==null?void 0:(h=B.getSize())==null?void 0:h.height)},void 0,"OeIVKe");
return _.x(_.R,{cond:A,then:function(d){return _.x(_.HG,{data:d},{thumbnailOverlayTimeStatusRenderer:function(W){var z=W.data;W=_.be(function(){return _.foA(z(),0)},void 0,"skoDC");
return _.x(ga1,{badgeShapeData:W})},
thumbnailBadgeViewModel:function(W){return _.x(_.$k0,{data:W.data,class:_.ER("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(W){return _.x(_.Jo,{data:W.data,thumbnailSize:k})}})},
else:function(){var d={type:18,text:jH.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.x(ga1,{badgeShapeData:function(){return d}})}})},"Dj"),btB=_.c(function(A){var H=A.props;
var k=A.data;var d=A.options;return _.x(_.zUG,{progressBarProps:H,config:function(){var W,z=_.L((W=k())==null?void 0:W.multiMarkersPlayerBar,_.Tqj),u;W=((u=d())==null?0:u.insetProgressBar)?2:1;var B;u=(B=d())==null?void 0:B.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:W,chapterData:z,isInlinePlayback:!0,doSeekOnClick:u,playheadDotBehavior:u?1:0}}})},"Ej");_.Sw(_.c(function(A){var H=A.data;var k=A.appApi;var d=A.options;var W=VYQ(H,nqM(k));A={};k={};return _.x("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.x("div",{class:_.ER("ytInlinePlayerControlsDarkenedOverlay",(A.ytInlinePlayerControlsDarkenedOverlayShow=function(){return W().isHovering},A))}),_.x(zNe,null),_.x(xb_,{data:W}),_.x(itQ,{data:H}),_.x(fCB,{playerControlsProps:W,
isShortsPage:!1}),_.x("div",{class:_.ER((k.ytInlinePlayerControlsControlsHidden=function(){return W().isDragging},k))},_.x(hNL,{props:W,
data:H,options:d}),_.x(TZ_,{props:W,data:H,options:d})),_.x(_.R,{cond:function(){return Zwe(H(),d())},
then:function(){return _.x(btB,{props:W,data:H,options:d})}}))},"vj"),"yt-inline-player-controls",{props:{data:_.Ih,
appApi:_.Fc,options:_.Ih}});var IU=function(){var A=_.a.apply(this,arguments)||this;A.opts=null;A.playerControlsData=null;A.playerControlsAppApi={openInMiniplayer:function(){A.openInMiniplayer()}};
A.playerControlsOptions={};A.noAnimation=!1;A.playbackIntentTriggered=!1;A.positionData=null;A.hidden=!0;A.active=!1;A.playing=!1;A.persistentPanelVisible=!1;A.videoPreviewDataIndex=0;A.JSC$21055_playerPromise=null;A.player=null;A.enableAudioControls=!1;A.hasBeenUnmuted=!1;A.captionsHaveBeenTurnedOff=!1;A.JSC$21055_playerEvents=new Map;A.videoPreviewFetchRequest=null;A.scheduledPreviewEndJobId=null;A.JSC$21055_preventProgressSaveTimer=null;A.watchEndpointStartTimeUpdaterInterval=null;A.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};A.windowOnBlurFn=function(){A.deactivate()};
return A};
_.I(IU,_.a);_.q=IU.prototype;
_.q.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"}}}};
_.q.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$21055_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$21055_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$21055_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$21055_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.nF(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.nF(this,this.onScroll))};
_.q.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.nF(this,this.onScroll))};
_.q.onPageTypeChange=function(){this.deactivate()};
_.q.onWindowResized=function(){this.deactivate()};
_.q.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.q.onCaptionsChanged=function(A){A=!!A.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!A);this.setCaptionSize()};
_.q.setCaptionSize=function(){var A;if(this.active&&!this.captionsHaveBeenTurnedOff&&((A=this.player)==null?0:A.getCaptionWindowContainerId())){var H;(H=this.player)==null||H.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.q.currentPageAllowed=function(){return!this.isWatchPage};
_.q.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.b("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var A=this.positionData,H=A.initialTopPosition,k=A.initialHorizontalPosition;_.NH(this.hostElement,{"--ytd-video-preview-translate-left":A.finalHorizontalPosition-k+"px","--ytd-video-preview-translate-top":A.finalTopPosition-H+"px","--ytd-video-preview-original-top-position":H+
"px","--ytd-video-preview-original-horizontal-position":k+"px","--ytd-video-preview-initial-scale":"scale("+A.initialScale+")","--ytd-video-preview-width":A.videoPreviewWidth+"px","--ytd-video-preview-height":A.videoPreviewHeight+"px"});return!0};
_.q.isOutOfBounds=function(A){var H=A.initialHorizontalPosition+12;A=H+A.videoPreviewWidth>window.innerWidth;return H<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&H<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&H<72||A};
_.q.handleOpenVideoPreviewAction=function(A){var H=this,k;return _.e(function(d){if(!H.currentPageAllowed())return d.return(0);H.opts=A;return(k=H.alignVideoPreviewForAnimation(A.thumbnail))?d.return(H.activate()):d.return(0)})};
_.q.onMouseLeave=function(A){var H,k;(H=this.opts)==null||(k=H.mouseleaveCallback)==null||k.call(H);this.shouldDeactivateOnMouseLeave(A)&&this.deactivate()};
_.q.onScroll=function(){var A,H;((A=this.opts)==null?0:A.isAutoplay)&&((H=this.opts)==null?0:H.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.q.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.IE.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.q.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.q.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",IU.JSC$21054_DEFAULT_CLICK_LOCATION_BEHAVIOR,IU.JSC$21054_CLICK_LOCATION_ID_MAP)};
_.q.shouldDeactivateOnMouseLeave=function(A){A=A.relatedTarget;if(!A)return!0;var H;return(H=this.opts)!=null&&H.mediaRenderer?!_.EJ(this.opts.mediaRenderer).contains(A):!0};
_.q.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.q.onPlaybackStart=function(){var A=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$21055_preventProgressSaveTimer=
_.p3(_.IE,function(){A.resetPreventProgressSaveTimer()},1E4);
var H;if((H=this.opts)==null?0:H.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.p3(_.IE,function(){A.hasMultipleVideoPreviews()?A.startPlaybackForNextVideo():A.deactivate()},this.opts.videoPreviewDurationMs);
var k;this.player.setGlobalCrop(((k=this.opts)==null?0:k.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.q.getRoundedCornersSize=function(){var A;if((A=this.opts)==null?0:A.roundedCornersSize){var H;return(H=this.opts)==null?void 0:H.roundedCornersSize}var k;if((k=this.opts)==null?0:k.enableRounding){var d;if(((d=this.opts)==null?void 0:d.thumbnailSize)==="small")return 1;var W;if(((W=this.opts)==null?void 0:W.thumbnailSize)==="medium")return 2;var z;if(((z=this.opts)==null?void 0:z.thumbnailSize)==="large")return 3}return _.b("web_imp_inset_progress_bar")?3:0};
_.q.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.q.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.q.onMediaContainerClick=function(A){this.isShortcutClick(A)||(this.navigateToWatch(A),A.preventDefault(),A.stopPropagation())};
_.q.activate=function(){var A=this,H,k,d,W,z,u,B,h,O;return _.e(function(T){switch(T.nextAddress){case 1:if(!A.currentPageAllowed())return T.return(0);k=(H=A.videoPreviewData)==null?void 0:H.inlinePlaybackEndpoint;d=_.yI.instance;if(!k||!d)return T.return(0);A.playbackIntentTriggered=!0;((W=A.opts)==null?0:W.mediaRenderer)&&((z=A.opts)==null||!z.isAutoplay)&&F8I(A.opts.mediaRenderer,function(){A.deactivate()});
_.No(A,function(){A.revealPreviewUi()});
u={};_.b("enable_unknown_lact_fix_on_html5")&&(_.wj().resolve(_.A8),u.lact=_.Z$());A.videoPreviewFetchRequest=vqL(d,A.getInlinePlaybackRequestData(A.videoPreviewData),u);_.S_(T,2);return T.yield(A.videoPreviewFetchRequest,4);case 4:B=T.yieldResult;if(((h=B)==null?void 0:(O=h.playabilityStatus)==null?void 0:O.status)==="OK")return T.return(A.handlePlayerResponse(B));throw Error("Ql");case 2:_.VA(T),A.deactivate();case 3:return T.return(1)}})};
_.q.getInlinePlaybackRequestData=function(A){var H,k=_.b("web_imp_player_mute_params")?((H=this.opts)==null?void 0:H.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:A.inlinePlaybackEndpoint,startPlaybackInMutedState:k}};
_.q.handlePlayerResponse=function(A){var H=this,k,d,W,z,u,B,h,O,T,m,J,g,v,y;return _.e(function(X){if(X.nextAddress==1){k=H.getInlinePlaybackVideoId();if(!(((d=A)==null?0:(W=d.videoDetails)==null?0:W.videoId)&&H.currentPageAllowed()&&H.playbackIntentTriggered&&H.opts&&k))return H.deactivate(),X.return(0);if(A.videoDetails.videoId!==k)return X.return(0);H.enableAudioControls=!!((z=A.playerConfig)==null?0:(u=z.inlinePlaybackConfig)==null?0:u.showAudioControls);A.trackingParams=H.getInlinePlaybackTrackingParams();
if(!H.inlinePlayer)return X.return(0);B={};if(O=_.L((h=H.videoPreviewData)==null?void 0:h.inlinePlaybackEndpoint,_.Yr))B.watch_endpoint=O;if(H.videoPreviewData){var D,K=(D=_.L(H.videoPreviewData.inlinePlaybackEndpoint,_.Yr))==null?void 0:D.startTimeSeconds;K!==void 0&&(A.playerConfig||(A.playerConfig={}),A.playerConfig.playbackStartConfig||(A.playerConfig.playbackStartConfig={}),A.playerConfig.playbackStartConfig.startPosition||(A.playerConfig.playbackStartConfig.startPosition={}),A.playerConfig.playbackStartConfig.startSeconds=
K,A.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(K*1E3))}H.inlinePlayer.loadVideoWithPlayerResponse(A,B);if(H.JSC$21055_playerPromise)return X.jumpTo(2);H.JSC$21055_playerPromise=H.inlinePlayer.getPlayerPromise();return X.yield(H.JSC$21055_playerPromise,3)}X.nextAddress!=2&&(T=X.yieldResult,T.setInlinePreview(!0),m=!_.b("web_imp_theater_bugfix"),T.setSizeStyle(!1,m),H.ytPlayerListenerBehavior.listenToPlayerEvents(T,H.JSC$21055_playerEvents),H.player=T,_.Ed(H.hostElement,
"player-api-ready"));((J=H.opts)==null?0:J.showPlayerControls)&&H.videoPreviewData&&H.player&&(H.playerControlsData={playerResponse:A,isInlinePlayback:!0,thumbnailOverlays:H.videoPreviewData.thumbnailOverlays,playerApi:H.player},H.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!H.unroundCornersForPlayback,additionalButton:H.getAdditionalButtonType(H.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(g=H.opts)==null?void 0:g.hideTimeDisplay,hideScrubbingControls:(v=H.opts)==
null?void 0:v.hideScrubber,hideCaptionsToggleButton:(y=H.opts)==null?void 0:y.hideCaptionsToggleButton});return X.return(2)})};
_.q.revealPreviewUi=function(){var A=this;this.playbackIntentTriggered&&_.l_V(this,function(){A.hasThumbnailPositionChangedSinceTriggered()||(A.updateActiveState(!0),A.noAnimation=!1)})};
_.q.hasThumbnailPositionChangedSinceTriggered=function(){var A=this.positionData,H=this.getThumbnailPositionData();return(A==null?void 0:A.initialTopPosition)!==(H==null?void 0:H.initialTopPosition)||(A==null?void 0:A.initialHorizontalPosition)!==(H==null?void 0:H.initialHorizontalPosition)};
_.q.getThumbnailPositionData=function(){var A,H;if((H=this.opts)==null||!H.thumbnail)return null;H=this.opts.thumbnail;var k=((A=this.opts)==null?0:A.cropPlayerToFillThumbnailHorizontally)?!1:!0;var d=H.getBoundingClientRect();A=d.width;H=d.height;var W=d.top+window.scrollY;d=d.left+window.scrollX;var z=k?Math.ceil(A):A;k=k?Math.ceil(H):H;var u=A/z;A={initialScale:u,initialTopPosition:W-12*u,finalTopPosition:W-12-(k-H)/2,initialHorizontalPosition:d-(12+(z-A)/2),finalHorizontalPosition:d-12-(z-A)/
2,videoPreviewWidth:z,videoPreviewHeight:k};return A};
_.q.updateActiveState=function(A){this.active=A;this.ytdReduxBehavior.dispatch(_.p8({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:A}))};
_.q.stopPlayer=function(A){A=A.resetWatchEndpointStartTime===void 0?!1:A.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(A)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.IE.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.q.deactivate=function(A){A=A===void 0?{}:A;A=A.resetWatchEndpointStartTime===void 0?!1:A.resetWatchEndpointStartTime;IhB&&(IhB.disconnect(),IhB=null);this.stopPlayer({resetWatchEndpointStartTime:A});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.q.isValidThumbnailOverlayButton=function(A,H){A=A.thumbnailOverlayButtonRenderer;var k;return!!A&&!!A.tooltip&&!((k=A.icon)==null||!k.iconType)&&H.includes(A.icon.iconType)};
_.q.isValidThumbnailOverlayButtonViewModel=function(A,H){var k;A=_.L((k=A.thumbnailOverlayButtonViewModel)==null?void 0:k.overlayButton,_.vY);return!!A&&!!A.title&&!!A.iconName&&H.includes(A.iconName)};
_.q.getAdditionalButtonType=function(A){var H=this;if(_.b("web_imp_miniplayer_button"))return{button:2};if(_.b("web_imp_playback_speed_button"))return{button:3};var k=["BOX_STACK_3"],d=(A||[]).filter(function(z){return H.isValidThumbnailOverlayButton(z,k)}).map(function(z){return z.thumbnailOverlayButtonRenderer});
if(d.length)return{button:4,thumbnailOverlayButtonRenderers:d};var W=["BOX_STACK_3"];A=(A||[]).filter(function(z){return H.isValidThumbnailOverlayButtonViewModel(z,W)}).map(function(z){return _.L(z.thumbnailOverlayButtonViewModel.overlayButton,_.vY)});
if(A.length)return{button:4,thumbnailOverlayButtonViewModels:A}};
_.q.allowCaptions=function(){var A;return!((A=this.opts)==null?0:A.forceCaptionsOff)};
_.q.allowUnmuting=function(){var A;return this.enableAudioControls&&!((A=this.opts)==null?0:A.forceMutedVolume)};
_.q.beginStartTimeUpdater=function(){var A=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.q4(function(){A.updateWatchEndpointStartTime()},1E3)};
_.q.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.q.resetPreventProgressSaveTimer=function(){this.JSC$21055_preventProgressSaveTimer!==null&&(_.IE.cancelJob(this.JSC$21055_preventProgressSaveTimer),this.JSC$21055_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.q.updateWatchEndpointStartTime=function(A){var H=this.videoPreviewData;if(this.player&&H!=null&&H.inlinePlaybackEndpoint&&!this.JSC$21055_preventProgressSaveTimer){A=A?0:Math.floor(this.player.getCurrentTime());var k=_.L(H.navigationEndpoint,_.Yr);k&&(k.startTimeSeconds=A);if(H=_.L(H.inlinePlaybackEndpoint,_.Yr))H.startTimeSeconds=A}};
_.q.isShortcutClick=function(A){return!!A&&(A.ctrlKey||A.shiftKey||A.metaKey)};
_.q.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.q.openInMiniplayer=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1){k=(H=A.videoPreviewData)==null?void 0:H.navigationEndpoint;if(!k)return d.return();_.Hi().lockupActivation=!0;return d.yield(_.Y$p(_.wj().resolve(_.L6),k),2)}_.Hi().userActivation=!0;_.EN(d)})};
_.q.navigateToWatch=function(A){var H,k=(H=this.videoPreviewData)==null?void 0:H.navigationEndpoint;if(k){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(k,A,!0);else{var d;_.b("web_thumbnail_to_watch_transition")&&((d=this.opts)==null?0:d.thumbnail)&&_.yTZ(_.wj().resolve(_.uv),this.opts.thumbnail);_.Ed(this.hostElement,"yt-navigate",{endpoint:k})}this.deactivate()}};
_.q.getInlinePlaybackVideoId=function(){var A,H;return(H=_.L((A=this.videoPreviewData)==null?void 0:A.inlinePlaybackEndpoint,_.Yr))==null?void 0:H.videoId};
_.q.getInlinePlaybackTrackingParams=function(){var A,H;return(A=this.videoPreviewData)==null?void 0:(H=A.inlinePlaybackEndpoint)==null?void 0:H.clickTrackingParams};
_.q.hasMultipleVideoPreviews=function(){var A;return!!(((A=this.opts)==null?0:A.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.q.startPlaybackForNextVideo=function(){var A;(A=this.opts)!=null&&A.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())};
_.nP.Object.defineProperties(IU.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.opts)==null?0:A.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.opts)==null||!A.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 A;if(Array.isArray((A=this.opts)==null?void 0:A.videoPreviewData)){var H;return(H=this.opts)==null?void 0:H.videoPreviewData[this.videoPreviewDataIndex]}var k;return(k=this.opts)==null?void 0:k.videoPreviewData}}});
IU.prototype.onIsAdsVideoChange=IU.prototype.onIsAdsVideoChange;IU.prototype.onInlinePreviewIsEnabledChange=IU.prototype.onInlinePreviewIsEnabledChange;IU.prototype.optsChanged=IU.prototype.optsChanged;IU.prototype.onMouseLeave=IU.prototype.onMouseLeave;IU.prototype.onPersistentPanelVisibleChange=IU.prototype.onPersistentPanelVisibleChange;IU.JSC$21054_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
IU.JSC$21054_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"}];_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],IU.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],IU.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],IU.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],IU.prototype,"componentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],IU.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.a6.YtSparklesClickLocationBehavior),_.l("design:type",Object)],IU.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],IU.prototype,"opts",void 0);_.E([_.C(),_.l("design:type",Object)],IU.prototype,"playerControlsData",void 0);_.E([_.C(),_.l("design:type",Object)],IU.prototype,"playerControlsAppApi",void 0);
_.E([_.C(),_.l("design:type",Object)],IU.prototype,"playerControlsOptions",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],IU.prototype,"noAnimation",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],IU.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],IU.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],IU.prototype,"playing",void 0);
_.E([_.C({selector:_.Ffb}),_.l("design:type",Boolean)],IU.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.C(),_.l("design:type",String)],IU.prototype,"pagePath",void 0);_.E([_.C({selector:_.YlC}),_.l("design:type",Boolean)],IU.prototype,"isWatchPage",void 0);_.E([_.C({selector:_.yP.persistentPanelVisibleSelector}),_.l("design:type",Object)],IU.prototype,"persistentPanelVisible",void 0);
_.E([_.G("videoPreviewData"),_.l("design:type",Object),_.l("design:paramtypes",[])],IU.prototype,"thumbnailData",null);_.E([_.G("opts","active"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],IU.prototype,"hidePlayerControls",null);_.E([_.G("opts"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],IU.prototype,"isAdsVideo",null);
_.E([_.G("opts"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],IU.prototype,"roundedCornersSmall",null);_.E([_.G("opts"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],IU.prototype,"roundedCornersMedium",null);_.E([_.G("opts"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],IU.prototype,"roundedCornersLarge",null);
_.E([_.G("opts"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],IU.prototype,"unroundCornersForPlayback",null);_.E([_.G("opts","videoPreviewDataIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],IU.prototype,"videoPreviewData",null);_.E([_.C(),_.l("design:type",Object)],IU.prototype,"videoPreviewDataIndex",void 0);_.E([_.ol("#inline-player"),_.l("design:type",Object)],IU.prototype,"inlinePlayer",void 0);
_.E([_.fF("persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IU.prototype,"onPersistentPanelVisibleChange",null);_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],IU.prototype,"onMouseLeave",null);_.E([_.s6("opts"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IU.prototype,"optsChanged",null);
_.E([_.s6("inlinePreviewIsEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IU.prototype,"onInlinePreviewIsEnabledChange",null);_.E([_.fF("isAdsVideo"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IU.prototype,"onIsAdsVideoChange",null);_.E([_.O6({is:"ytd-video-preview",disableElementRegistration:!0})],IU);
_.Q(IU,"ytd-video-preview",function(){if(Z__!==void 0)return Z__;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Z__=A},{mode:2});var LUL;var Yb=function(){var A=_.a.apply(this,arguments)||this;A.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};A.forceDarkTheme=!1;A.forceLightTheme=!1;A.dynamicTextHeight=94;A.hasOverflowButton=!1;A.isInfeedModernization=!1;return A};
_.I(Yb,_.a);_.q=Yb.prototype;_.q.computeUrlImg=function(A){if(A)return _.K3(A.thumbnails)};
_.q.getLogoHeight=function(A){return this.logoWithPadding(A)?"31":"24"};
_.q.getLogoClassName=function(A){return this.logoWithPadding(A)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.q.logoWithPadding=function(A){var H,k;return(A=(H=A.thumbnails)==null?void 0:(k=H[0])==null?void 0:k.height)&&A%31===0?!0:!1};
_.q.sendImpressionEndpoints=function(A){A.impressionEndpoints&&_.tx(this.hostElement,A.impressionEndpoints)};
_.q.observeBasicPalette=function(){var A,H,k=(A=this.data)==null?void 0:(H=A.colorData)==null?void 0:H.basicColorPaletteData;k?_.qN(this.hostElement,k):_.qN(this.hostElement,{})};
_.q.observeDataChanged=function(){var A;this.dynamicTextHeight=((A=this.data)==null?0:A.supplementalText)?74:94;var H;this.hasSupplementalText=!((H=this.data)==null||!H.supplementalText);var k,d,W,z;A=(k=this.data)==null?void 0:(d=k.actionButton)==null?void 0:(W=d.buttonRenderer)==null?void 0:(z=W.colorData)==null?void 0:z.basicColorPaletteData;var u,B,h;if(!((u=this.data)==null?0:(B=u.actionButton)==null?0:(h=B.buttonRenderer)==null?0:h.style)&&A){this.computeIsInfeedModernization(this.data)||(A.borderColor=
A.foregroundTitleColor);var O,T;this.set("data.actionButton.buttonRenderer",_.iK.unsafeClone((O=this.data)==null?void 0:(T=O.actionButton)==null?void 0:T.buttonRenderer))}};
_.q.observeDataForCounterfactual=function(){if(_.b("kevlar_banner_cf_extra_logging")){var A;((A=this.data)==null?0:A.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.q.computeSupplementalStyle=function(){var A;if((A=this.data)!=null&&A.supplementalText){var H,k,d;if((H=this.data)==null?0:(k=H.colorData)==null?0:(d=k.basicColorPaletteData)==null?0:d.foregroundActivatedColor)return A=_.iw(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+A+"; --yt-endpoint-hover-color:"+A+"; --yt-endpoint-visited-color:"+A+"; --yt-formatted-string-bold-font-weight:700;"}};
_.q.computeForcedDarkTheme=function(){var A,H,k,d=(A=this.data)==null?void 0:(H=A.actionButton)==null?void 0:(k=H.buttonRenderer)==null?void 0:k.style,W,z,u;A=sNR(((W=this.data)==null?void 0:(z=W.colorData)==null?void 0:(u=z.basicColorPaletteData)==null?void 0:u.backgroundColor)||0);return d&&A};
_.q.computeForcedLightTheme=function(){var A,H,k,d=(A=this.data)==null?void 0:(H=A.actionButton)==null?void 0:(k=H.buttonRenderer)==null?void 0:k.style,W,z,u;A=!sNR(((W=this.data)==null?void 0:(z=W.colorData)==null?void 0:(u=z.basicColorPaletteData)==null?void 0:u.backgroundColor)||0);return d&&A};
_.q.computeHasOverflowButton=function(A){return!!A.overflowButton};
_.q.computeHasTitle=function(A){return!!A.title};
_.q.computeTitleMaxFontSize=function(A){return this.computeHasOverflowButton(A)?28:64};
_.q.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.q.computeIsInfeedModernization=function(){var A,H,k,d,W=(A=this.data)==null?void 0:(H=A.actionButton)==null?void 0:(k=H.buttonRenderer)==null?void 0:(d=k.colorData)==null?void 0:d.basicColorPaletteData;return(W==null?void 0:W.backgroundColor)===452984831||(W==null?void 0:W.backgroundColor)===218103808};
Yb.prototype.observeDataForCounterfactual=Yb.prototype.observeDataForCounterfactual;Yb.prototype.observeDataChanged=Yb.prototype.observeDataChanged;Yb.prototype.observeBasicPalette=Yb.prototype.observeBasicPalette;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],Yb.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],Yb.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Yb.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Yb.prototype,"hasSupplementalText",void 0);_.E([_.C(),_.l("design:type",Object)],Yb.prototype,"dismissButtonOverrides",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.l("design:type",Boolean)],Yb.prototype,"hasTitle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.l("design:type",Object)],Yb.prototype,"forceDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.l("design:type",Object)],Yb.prototype,"forceLightTheme",void 0);_.E([_.C(),_.l("design:type",Object)],Yb.prototype,"dynamicTextHeight",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.l("design:type",Object)],Yb.prototype,"hasOverflowButton",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.l("design:type",Object)],Yb.prototype,"isInfeedModernization",void 0);_.E([_.fF("data.colorData.basicColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yb.prototype,"observeBasicPalette",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yb.prototype,"observeDataChanged",null);_.E([_.fF("data.isVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yb.prototype,"observeDataForCounterfactual",null);_.E([_.O6({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Yb);
_.Q(Yb,"ytd-banner-promo-renderer",function(){if(LUL!==void 0)return LUL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return LUL=A},{mode:1});var In_=_.c(function(A){var H=A.data;var k=A.hideDivider;var d=A.isChannelInfoCard;A={};return _.x("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.x("div",{class:_.ER("yt-profile-identity-info-view-model__frame",(A["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!H().channelBanner},A))},_.x(va1,{profileIdentityInfoData:H}),_.x("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.x("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.x(_.HG,{data:function(){return H().avatar}},{avatarViewModel:_.RW})),_.x(yXM,{profileIdentityInfoData:H})),_.x(_.R,{cond:function(){return H().channelDescription},
then:function(W){var z={};return _.x("div",{class:_.ER((z["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(d==null||!d())},z["yt-profile-identity-info-view-model__channel-description"]=function(){return!(d==null?0:d())},z))},W)}}),_.x(jjQ,{profileIdentityInfoData:H}),_.x(_.R,{cond:function(){return!(k==null?0:k())},
then:function(){return _.x("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Fj");
In_.idomCompat=!0;var jjQ=_.c(function(A){var H=A.profileIdentityInfoData;return _.x("div",{class:"yt-profile-identity-info-view-model__buttons"},_.x(_.Ix,{each:function(){return H().subscribeButton?[H().subscribeButton,H().channelAccess]:[H().channelAccess]}},function(k){return _.x("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.x("div",{class:"yt-profile-identity-info-view-model--button"},_.x(_.HG,{data:function(){return k}},{buttonViewModel:_.U7,
subscribeButtonViewModel:_.Rr})))}))},"Gj"),yXM=_.c(function(A){var H=A.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model__trio"},_.x("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.x(YVB,{profileIdentityInfoData:H}),_.x(_.HG,{data:function(){return H().threeDotMenu}},{buttonViewModel:_.U7})),_.x(P7B,{profileIdentityInfoData:H}))},"Hj"),YVB=_.c(function(A){var H=A.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.x("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return H().channelDisplayName}),_.x(_.R,{cond:function(){return H().verifiedOrOacBadge},
then:function(k){return _.x("div",{class:"yt-profile-identity-info-view-model__badge"},_.x(_.GA,{data:function(){return{thumbnails:[{url:k().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Ij"),va1=_.c(function(A){var H=A.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.x(_.HG,{data:function(){var k=H().channelBanner;if(k)return{imageBannerViewModel:{image:k.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(k){return _.x("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.x(_.S2,{data:k.data,
isPositionRelative:!0}))}}))},"Jj"),P7B=_.c(function(A){var H=A.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model__metadata"},_.x("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.x("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return H().channelHandle}),_.x(_.R,{cond:function(){return H().channelPronouns&&H().channelHandle},
then:function(){return _.x("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.x("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return H().channelPronouns})),_.x("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.x("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return H().leftOfBulletInfo}),_.x(_.R,{cond:function(){return H().leftOfBulletInfo&&H().rightOfBulletInfo},
then:function(){return _.x("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.x("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return H().rightOfBulletInfo})))},"Kj");_.Sw(In_,"yt-profile-identity-info-view-model",{props:{data:_.Ih,hideDivider:_.Ih,isChannelInfoCard:_.Ih}});_.Sw(_.lQG,"yt-page-header-view-model",{props:{data:_.Ih,noPadding:_.Ih,enableBanner:_.Ih,cinematicContainerTopbarOffset:_.Ih,allowCinematicContainerOverflow:_.Ih,displayAsSidebar:_.Ih,displayAsPanel:_.Ih,alwaysUseMediumTextDescription:_.Ih}});var G_L=_.c(function(){return _.x("div",{class:_.ER("ytdGhostGridViewModelGhostCard")},_.x("div",{class:_.ER("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.x("div",{class:_.ER("ytdGhostGridViewModelDetails")},_.x("div",{class:_.ER("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.x("div",{class:_.ER("ytdGhostGridViewModelDetailsTextShell")},_.x("div",{class:_.ER("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.x("div",{class:_.ER("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"Mj");_.Sw(_.c(function(A){var H=A.data;var k=_.oy(_.ik);return _.x("ytd-ghost-grid-view-model",{class:_.ER("ytdGhostGridViewModelHost")},_.x(_.Ix,{each:function(){var d=Array,W;var z=((W=H().numRows)!=null?W:0)*k();return d(z)},
keyBy:"INDEX"},function(){return _.x(G_L,null)}))},"Lj"),"ytd-ghost-grid-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=function(){var W;return(W=H().numColumns)!=null?W:2},d=function(){return k()>1?3:2};
A={};return _.x("ytd-rich-grid-group",{class:_.ER("ytdRichGridGroupHost",(A.ytdRichGridGroupHostFirstColumn=function(){return H().colIndex===0},A)),
style:_.Mt({"--ytd-rich-grid-group-num-columns":k,"--ytd-rich-grid-items-per-group":d})},_.x("div",{class:"ytdRichGridGroupContents"},_.x(_.HG,{data:function(){var W;return(W=H().contents)==null?void 0:W.slice(0,d())}},{richItemRenderer:function(W){return _.x(_.EnZ,{data:W.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Nj"),"ytd-rich-grid-group",{props:{data:_.Ih}});var Pt=function(){var A=_.a.apply(this,arguments)||this;A.resizeOnObserverInit=!1;A.isInlinePreviewDisabled=_.b("web_disable_inline_preview");A.disableStickyFilterBar=!1;A.transparentBackgroundChipsBar=!1;A.hideChipsBar=!1;A.isScrolled=!1;A.isWatchDefaultLayout=!0;A.continuationShowButton=!1;A.rowReducedHorizontalMargin=!1;A.useCompactList=!1;A.manualDownloadsPresent=!1;A.smartDownloadsPresent=!1;A.isOnline=!1;A.shouldRenderDownloadsBanner=!1;A.shouldRenderDownloadsBannerUpsell=!1;A.hasOptedIntoSmartDownloads=
!1;A.elementsPerRow=4;A.typographyBump=!1;A.slimItemsPerRow=1;A.pageLoadingFromNavigation=!1;A.resizeObserver=null;A.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"};A.rendererToTagNameMap=new Map(Object.entries(A.contentMapping()).map(function(H){var k=
_.r(H);H=k.next().value;k=k.next().value;return[H,k.component]}));
A.insertedContent=new Map;return A};
_.I(Pt,_.a);_.q=Pt.prototype;_.q.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var A=_.r(_.Va(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=A.next();!H.done;H=A.next())H.value.useCompactList=this.useCompactList};
_.q.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var A=_.r(_.Va(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=A.next();!H.done;H=A.next())H=H.value,H.sizing=this.sizing,H.typographyBump=this.typographyBump};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.q.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]]"}}}};
_.q.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{linearLayoutViewModel:"yt-linear-layout-view-model",feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",
params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",
mapping:this.contentMapping(),reuseComponents:!1},loadingContentRenderer:{id:"reload-content",mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.q.attached=function(){document.addEventListener("yt-page-type-changed",_.nF(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.nF(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$21084_throttledOnResize=new _.Nt(this.resizeObserved,_.H5("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.nF(this,this.onScroll))};
_.q.detached=function(){var A;(A=this.resizeObserver)==null||A.disconnect();document.removeEventListener("yt-page-type-changed",_.nF(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.nF(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.nF(this,this.onScroll))};
_.q.insertRichSection=function(A){var H=A.richItemTargetId;A=A.richSectionRendererToInsert;H&&A&&(this.insertedContent.set(H,{content:A,timestamp:Date.now()}),this.reflowContent())};
_.q.computeIsInlinePreviewEnabled=function(A,H,k){return _.b("web_disable_inline_preview")?!1:!k&&fhR({miniplayerIsActive:A,miniplayerPlaybackState:H})};
_.q.computeSizing=function(){var A=_.k9A(this.data);if(A||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return A?this.useCompactList?"COMPACT":A:this.miniMode?"COMPACT":"STANDARD"};
_.q.updateItemMinAndMaxWidth=function(){var A=_.H5("rich_grid_max_item_width",500);A>0&&_.NH(this.hostElement,{"--ytd-rich-grid-item-max-width":A+"px"});var H;A=this.getRichItemMinWidth((H=this.hostElement)==null?void 0:H.clientWidth);A>0&&_.NH(this.hostElement,{"--ytd-rich-grid-item-min-width":A+"px"})};
_.q.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.q.resizeObserved=function(){_.li(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.q.onPageChange=function(){var A=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.li(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.IE.addJob(function(){A.pageLoadingFromNavigation=!1;A.setMasthead();A.maybeSetBigYoodle();A.forceRefreshAndLog();A.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.q.dataChanged=function(){var A=this;_.li(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.No(this,function(){A.updateRichItemGridPositions();A.contentsElement&&_.NH(A.hostElement,{"--ytd-rich-grid-content-offset-top":A.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.q.initResizeObserver=function(){var A=this;if(window.ResizeObserver){var H;(H=this.resizeObserver)==null||H.disconnect();var k=!1;this.resizeObserver=new ResizeObserver(function(){if(k){var d;(d=A.resizeObserver)==null||d.disconnect();var W;(W=A.JSC$21084_throttledOnResize)==null||W.fire();requestAnimationFrame(function(){var u;(u=A.JSC$21084_throttledOnResize)==null||u.fire();A.initResizeObserver()})}else if(k=!0,A.resizeOnObserverInit){var z;
(z=A.JSC$21084_throttledOnResize)==null||z.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.q.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.li(this.hostElement,"ytd-rich-item-index-update-action")};
_.q.updateElementsPerRow=function(){_.li(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.p8({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.p8({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.q.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.q.onRichShelfRendererCollapse=function(A){if(this.shownItems){var H=A.detail;A=this.shownItems.findIndex(function(d){var W,z;return((z=_.L(d==null?void 0:(W=d.richSectionRenderer)==null?void 0:W.content,_.fwi))==null?void 0:z.trackingParams)===H});
var k=A+1;A<0||k>=this.contentsElement.children.length||!this.shownItems[k].richItemRenderer||this.contentsElement.children[k].scrollIntoView({behavior:"smooth",block:"start"})}};
_.q.onSoftReloadPage=function(){this.scrollUpToTop()};
_.q.handleRerenderDownloadsData=function(){_.b("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.q.handlePlaylistRemoveVideosAction=function(A){var H;if(((H=_.L(A,_.x2w))==null?0:H.setVideoIds)&&this.data&&this.data.contents){A=_.L(A,_.x2w).setVideoIds;for(H=this.data.contents.length-1;H>=0;){var k=_.L(this.data.contents[H],_.zr);(k=k&&_.L(k.content,_.JS))&&k.setVideoId&&A.includes(k.setVideoId)&&this.splice("data.contents",H,1);H--}this.updateIndices()}};
_.q.updateIndices=function(){if(this.data&&this.data.contents)for(var A=0;A<this.data.contents.length;A++)this.set("data.contents."+A+".richItemRenderer.index",_.Yu(String(A+1)))};
_.q.hasTopRowInlinePlayableVideoWithEndorsement=function(A){var H;return!((H=A.slice(0,this.getItemsPerRow()))==null||!H.some(function(k){var d;k=_.L(k==null?void 0:(d=k.richItemRenderer)==null?void 0:d.content,_.M01);var W;return(k==null?void 0:k.inlinePlaybackEndpoint)&&(k==null?void 0:(W=k.thumbnailOverlays)==null?void 0:W.some(function(z){return z.thumbnailOverlayEndorsementRenderer}))}))};
_.q.refreshGridLayoutNew=function(A,H,k,d){var W=d.postsPerRow;var z=d.slimItemsPerRow;var u=d.gameCardsPerRow;d=d.miniGameCardsPerRow;var B;if((B=this.data)==null||!B.contents||!this.containerWidth)return!1;var h;if((h=this.data.responsiveContainerConfiguration)==null?0:h.responsiveSize){var O=_.C3I(this.data.responsiveContainerConfiguration,this.containerWidth,2),T;B=_.b2(Object.assign({},O,{standardUnitMinWidth:(T=this.data)==null?void 0:T.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&O.isCompactList)}else B=_.b2({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(O=this.data)==null?void 0:O.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=B.typographyBump;T=!1;if(A||this.elementsPerRow!==B.numItems||this.postsPerRow!==W||this.slimItemsPerRow!==z||this.gameCardsPerRow!==
u||this.miniGameCardsPerRow!==d||this.gutter!==B.gutter)T=this.elementsPerRow!==B.numItems,this.elementsPerRow=B.numItems,this.postsPerRow=W,this.slimItemsPerRow=z,this.gameCardsPerRow=u,this.miniGameCardsPerRow=d,this.gutter=B.gutter,this.itemWidth=B.itemWidth,this.reflowContent(H),_.NH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":B.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(k);this.ytdReduxBehavior.dispatch(_.p8({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:B.maxContainerWidth}));return T};
_.q.refreshGridLayout=function(A,H){var k,d=(k=this.hostElement)==null?void 0:k.clientWidth;this.containerWidth=this.adjustRichGridWidth(d,!0);var W;if((W=this.data)==null||!W.contents||!this.containerWidth)return A&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(A=!0,this.pendingForceReflow=!1);k=this.getRichItemMinWidth(d);var z=this.isShortsPanel?146:194,u=this.getMiniGameCardMinWidth(),B=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.H5("rich_grid_default_max_items_per_row",
6);d=k=this.calcElementsPerRow(k,B);(W=k<=3&&this.miniModeAllowed())&&(k=this.calcElementsPerRow(240,4));var h=this.calcMaxSlimElementsPerRow(k,B,this.isDefaultGrid);B=this.calcElementsPerRow(z,h);var O=this.calcElementsPerRow(this.isCompactGrid?z:154,h);z=this.calcElementsPerRow(this.isCompactGrid?z:u,h);u=!1;if(this.sizing)return this.refreshGridLayoutNew(A,H,W,{postsPerRow:d,slimItemsPerRow:B,gameCardsPerRow:O,miniGameCardsPerRow:z});if(A||this.elementsPerRow!==k||this.postsPerRow!==d||this.slimItemsPerRow!==
B||this.gameCardsPerRow!==O||this.miniGameCardsPerRow!==z)u=this.elementsPerRow!==k,this.elementsPerRow=k,this.postsPerRow=d,this.slimItemsPerRow=B,this.gameCardsPerRow=O,this.miniGameCardsPerRow=z,this.reflowContent(H),this.updateElementsPerRow(),_.NH(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)&&_.NH(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(W);_.li(this.hostElement,"yt-rich-grid-layout-refreshed");return u};
_.q.getRichItemMinWidth=function(A){var H=_.H5("rich_grid_min_item_width",310),k,d;H=(d=(k=this.data)==null?void 0:k.minItemWidth)!=null?d:H;return H+_.wQI(A)};
_.q.calcMaxSlimElementsPerRow=function(A,H,k){return(k===void 0?0:k)?A===1?2:A%2===0?A/2*3:A+2:H*2};
_.q.adjustRichGridWidth=function(A,H){var k=_.b("disable_rich_grid_guide_compensation");if(!this.isWatch&&!k&&this.hostElement.offsetWidth===document.body.clientWidth&&(k=_.wj().resolve(_.fZ(_.Lg)))&&!k.getData())if(k.canFitPersistentGuide(A)&&k.getGuideExpandsAutomatically()){var d,W,z=Number((d=window.getComputedStyle(this.hostElement))==null?void 0:(W=d.getPropertyValue("--app-drawer-width"))==null?void 0:W.replace("px",""));A-=z||0}else if(k.canFitMiniGuide(A)){var u;d=Number((z=window.getComputedStyle(this.hostElement))==
null?void 0:(u=z.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:u.replace("px",""));A-=d||0}A>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(A-=H?32:48));return A};
_.q.calcElementsPerRow=function(A,H){var k=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),d=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((k+d)/(A+d))||1,H)};
_.q.reflowContent=function(A){var H=this;if(!this.isReflowing){this.isReflowing=!0;var k,d,W=!!((k=this.data)==null?0:(d=k.contents)==null?0:d.some(function(B){return _.L(B,_.pw)}));
k=this.getItemsPerRow();var z;d=(z=this.data)==null?void 0:z.reflowOptions;A&&(_.OH("rgr_s"),_.No(this,function(){_.OH("rgr_nrf")}));
A={};(z=_.Va(this.hostElement).querySelector("#contents"))&&(A={contentElement:z,rendererToTagNameMap:this.rendererToTagNameMap});z=(z=this.data.contents)?z.slice():[];W=hF_(z,k,W,d,this.getRichGridStyle(),A,this.insertedContent);var u=W.orderedContent;if(W=W.pinnedContentNotShownTargetIds)for(W=_.r(W),k=W.next();!k.done;k=W.next())this.insertedContent.delete(k.value);W=function(){H.shownItems=u;H.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(u),_.No(this,W)):W()}};
_.q.getFirstRowItems=function(A){for(var H=[],k=0;k<A.length;k++){var d=void 0,W=void 0,z=void 0,u=void 0,B=void 0,h=void 0;if(((d=A[k])==null?void 0:(W=d.richItemRenderer)==null?void 0:W.rowIndex)===0||((z=A[k])==null?void 0:(u=z.richGroupRenderer)==null?void 0:u.rowIndex)===0||((B=A[k])==null?void 0:(h=B.richSectionRenderer)==null?void 0:h.rowIndex)===0)H.push(A[k]);else break}return H};
_.q.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.q.resetInsertedContentIfNeeded=function(){(_.b("web_explore_hub_on_hover")||_.b("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.q.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.q.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()};
_.q.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.q.terminateVideoPreview=function(){_.li(this.hostElement,"yt-terminate-video-preview-action")};
_.q.updateRichItemGridPositions=function(){var A={gridData:{gridColumnCount:this.elementsPerRow}},H;((H=this.data)==null?0:H.trackingParams)&&(H=_.hx())&&_.Fp(H,_.db(this.data.trackingParams),A);_.li(this.hostElement,"ytd-rich-item-index-update-action")};
_.q.miniModeAllowed=function(){return this.isChannelPage};
_.q.getMiniGameCardMinWidth=function(){return 154};
_.q.updateMiniMode=function(A){this.miniMode=this.miniModeAllowed()&&A;this.ytdReduxBehavior.dispatch(_.p8({type:"SET_RICH_GRID_MINI_MODE",payload:A}))};
_.q.isCurrentPage=function(){return location.pathname===this.pagePath};
_.q.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var A=_.wj().resolve(_.SO).getCurrentPage();A&&A.setScrollTop(0)}};
_.q.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.q.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.q.maybeSetBigYoodle=function(){var A,H=(A=this.data)==null?void 0:A.bigYoodle;this.bigYoodleData!==H&&(this.bigYoodleData=H)};
_.q.setMasthead=function(){var A;((A=this.data)==null?0:A.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.q.getRichGridStyle=function(){var A,H;return(H=(A=this.data)==null?void 0:A.style)!=null?H:"RICH_GRID_STYLE_UNKNOWN"};
_.q.onIsShortsGridChange=function(){var A=this.ytdReduxBehavior,H=A.dispatch,k=this.getRichGridStyle();H.call(A,_.p8({type:"SET_RICH_GRID_STYLE",payload:k}))};
_.q.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.q.onScroll=function(){this.isScrolled=window.scrollY>0};
_.nP.Object.defineProperties(Pt.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.b("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.ytContinuationHandlerBehavior)==null?void 0:A.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var A=_.wj().resolve(_.SO).getCurrentPage(),H,k,d;return(((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_audio_pivot"||_.b("web_enable_channel_pivot_panel")&&((k=this.data)==null?void 0:k.targetId)==="browse-feedFEsfv_channel_pivot"||_.b("web_enable_effect_pivot_panel")&&((d=this.data)==null?void 0:d.targetId)==="browse-feedFEsfv_effect_pivot")&&(A==null?void 0:A.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.b("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 A;return!((A=this.data)==null?0:A.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var A;return((A=_.wj().resolve(_.SO).getCurrentPage())==null?void 0:A.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var A;return((A=_.wj().resolve(_.SO).getCurrentPage())==null?void 0:A.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 A;return(((A=this.data)==null?void 0:A.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.data)==null?0:A.enableContentSpecificAspectRatio)||((H=this.data)==null?0:(k=H.responsiveContainerConfiguration)==null?0:k.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.H5("web_continuation_handler_margin",0):0}}});
Pt.prototype.onIsShortsGridChange=Pt.prototype.onIsShortsGridChange;Pt.prototype.onReloadContinuationFinish=Pt.prototype.onReloadContinuationFinish;Pt.prototype.reflowContent=Pt.prototype.reflowContent;Pt.prototype.handleRerenderDownloadsData=Pt.prototype.handleRerenderDownloadsData;Pt.prototype.onRichShelfRendererCollapse=Pt.prototype.onRichShelfRendererCollapse;Pt.prototype.onRequestElementsPerRow=Pt.prototype.onRequestElementsPerRow;Pt.prototype.contentLengthChanged=Pt.prototype.contentLengthChanged;
Pt.prototype.dataChanged=Pt.prototype.dataChanged;Pt.prototype.onSizingChange=Pt.prototype.onSizingChange;Pt.prototype.onUseCompactListChange=Pt.prototype.onUseCompactListChange;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.WU),_.l("design:type",Object)],Pt.prototype,"ironResizableBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Pt.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.DV),_.l("design:type",Object)],Pt.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Pt.prototype,"componentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Pt.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Pt.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],Pt.prototype,"miniMode",void 0);_.E([_.C({value:[]}),_.l("design:type",Array)],Pt.prototype,"shownItems",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Pt.prototype,"isReflowing",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Pt.prototype,"isFilteredFeed",void 0);_.E([_.C({selector:_.j6I}),_.l("design:type",Boolean)],Pt.prototype,"guideIsExpanded",void 0);
_.E([_.C({selectorArgs:["entitySelectorType"],selector:function(A,H){if(_.b("kevlar_modern_downloads_page")&&H&&H!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":H=A.entities;var k=_.uk(H),d=_.BK(H),W=_.lp8(A),z=_.UKI(A),u=_.t3b(A),B=_.Og8(H),h=_.ku(k),O=_.eX(H);return _.P3Q(k,d,B,_.JBl(H),W,z,h,O,u,_.M3I(A),_.Rc(A));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return A=_.uk(A.entities),_.FKb(A);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return A=
_.xKQ(A.entities),_.XOf(A);default:_.Pq(new _.Ti("Error: entitySelectorType defined but not matched in selector.",A,H))}}}),
_.l("design:type",Object)],Pt.prototype,"entityDrivenRichGridData",void 0);_.E([_.C(),_.l("design:type",Object)],Pt.prototype,"resizeOnObserverInit",void 0);_.E([_.C(),_.l("design:type",Object)],Pt.prototype,"bigYoodleData",void 0);_.E([_.C(),_.l("design:type",Object)],Pt.prototype,"mastheadData",void 0);_.E([_.C(),_.l("design:type",Boolean)],Pt.prototype,"isInlinePreviewDisabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Pt.prototype,"disableStickyFilterBar",void 0);
_.E([_.C(),_.l("design:type",Object)],Pt.prototype,"transparentBackgroundChipsBar",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Pt.prototype,"hideChipsBar",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("isHomePage","isFilteredFeed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"showChipsOnScroll",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Pt.prototype,"isScrolled",void 0);
_.E([_.C(),_.l("design:type",Object)],Pt.prototype,"isWatchDefaultLayout",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Pt.prototype,"continuationShowButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Pt.prototype,"rowReducedHorizontalMargin",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Pt.prototype,"useCompactList",void 0);_.E([_.C({selector:function(A){return _.BK(A.entities).length>0}}),
_.l("design:type",Object)],Pt.prototype,"manualDownloadsPresent",void 0);_.E([_.C({selector:function(A){return _.uk(A.entities).length>0}}),
_.l("design:type",Object)],Pt.prototype,"smartDownloadsPresent",void 0);_.E([_.C({selector:_.Rc}),_.l("design:type",Object)],Pt.prototype,"isOnline",void 0);_.E([_.C({selector:_.UKI}),_.l("design:type",Object)],Pt.prototype,"shouldRenderDownloadsBanner",void 0);_.E([_.C({selector:_.M3I}),_.l("design:type",Object)],Pt.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.C({selector:_.lp8}),_.l("design:type",Object)],Pt.prototype,"hasOptedIntoSmartDownloads",void 0);
_.E([_.fF("useCompactList"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pt.prototype,"onUseCompactListChange",null);_.E([_.fF("sizing","typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pt.prototype,"onSizingChange",null);_.E([_.C({selector:_.XwN}),_.l("design:type",Number)],Pt.prototype,"miniplayerPlaybackState",void 0);_.E([_.C({selector:_.hr}),_.l("design:type",Boolean)],Pt.prototype,"miniplayerIsActive",void 0);
_.E([_.C({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.l("design:type",Boolean)],Pt.prototype,"isInlinePreviewEnabled",void 0);_.E([_.C({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.l("design:type",String)],Pt.prototype,"sizing",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Pt.prototype,"elementsPerRow",void 0);
_.E([_.C(),_.l("design:type",Object)],Pt.prototype,"typographyBump",void 0);_.E([_.C(),_.l("design:type",Number)],Pt.prototype,"itemWidth",void 0);_.E([_.ol("#header"),_.l("design:type",HTMLElement)],Pt.prototype,"headerElement",void 0);_.E([_.ol("#contents"),_.l("design:type",HTMLElement)],Pt.prototype,"contentsElement",void 0);_.E([_.G("reloadUiContent"),_.l("design:type",Object),_.l("design:paramtypes",[])],Pt.prototype,"loadingContentRenderer",null);
_.E([_.G("reloadUiContent"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"hasLoadingContent",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pt.prototype,"dataChanged",null);_.E([_.s6("data.contents.length"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pt.prototype,"contentLengthChanged",null);
_.E([_.Ze("yt-request-elements-per-row"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pt.prototype,"onRequestElementsPerRow",null);_.E([_.Ze("yt-rich-shelf-renderer-collapse"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Pt.prototype,"onRichShelfRendererCollapse",null);
_.E([_.s6("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pt.prototype,"handleRerenderDownloadsData",null);_.E([_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],Pt.prototype,"entitySelectorType",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"isSub",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"isWatch",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"isShortsPanel",null);
_.E([_.C({reflectToAttribute:!0}),_.G("isWatch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"reducedTopMargin",null);_.E([_.C({reflectToAttribute:!0}),_.G("data","isWatch","isWatchDefaultLayout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"noTopMargin",null);_.E([_.C({reflectToAttribute:!0}),_.G("isInlinePreviewEnabled","shownItems"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"topRowEndorsement",null);
_.E([_.G("data.header"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"hideHeader",null);_.E([_.Ze("yt-rich-grid-reflow"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean]),_.l("design:returntype")],Pt.prototype,"reflowContent",null);_.E([_.Ze("yt-reload-continuation-finish"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pt.prototype,"onReloadContinuationFinish",null);
_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"isSlimGrid",null);_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"isShortsGrid",null);_.E([_.G("data","isSlimGrid","isShortsGrid"),_.C(),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"noRichItemGutterMargins",null);
_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"isShortsGridSlim",null);_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"isCompactGrid",null);_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"isDefaultGrid",null);
_.E([_.G("data.targetId"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"hideChipsBarOnWatch",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pt.prototype,"onIsShortsGridChange",null);_.E([_.G("data.enableContentSpecificAspectRatio"),_.C(),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pt.prototype,"force16By9ThumbnailAspectRatio",null);
_.E([_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],Pt.prototype,"continuationTriggerOffset",null);_.E([_.O6({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Pt);
_.Q(Pt,"ytd-rich-grid-renderer",function(){if(Fhi!==void 0)return Fhi;var A=document.createElement("template");_.Y(A,'\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="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Fhi=A},{mode:2});var FU_;var G9=function(){return _.a.apply(this,arguments)||this};
_.I(G9,_.a);_.q=G9.prototype;
_.q.onKeyDown=function(A){if(this.snippetElements.length!==0&&(A=A.keyCode,A===38||A===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);A===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Py(this.highlightedIndex,-1,this.snippetElements.length);A=this.snippetElements.length;var H=this.highlightedIndex%A;this.highlightedIndex=H*A<0?H+A:H;A=this.snippetElements[this.highlightedIndex];this.highlightSnippet(A);this.ensureVisible(A)}};
_.q.onKeyUp=function(A){var H=this;L6M(A)&&(A.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.IE.cancelJob(this.inputTimerId),this.inputTimerId=_.IE.addLowPriorityJob(function(){H.typedValue&&(H.fetchSnippets(H.typedValue),H.logInputGesture(H.data))},1E3))};
_.q.onClick=function(A){(A=_.WMj(A.target,null,"snippet-item"))&&this.selectSnippet(A)};
_.q.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.q.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.q.ready=function(){var A=this;this.inputElement.addEventListener("focus",function(){A.snippetsWrapper.style.removeProperty("display")})};
_.q.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.q.getSourceTimelines=function(){if(!this.data)return[];var A=[];if(this.data.searchInVideoSources)for(var H=_.r(this.data.searchInVideoSources),k=H.next();!k.done;k=H.next())k=k.value,k==="SEARCH_IN_VIDEO_SOURCE_ASR"?A.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):k==="SEARCH_IN_VIDEO_SOURCE_OCR"&&A.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return A};
_.q.fetchSnippets=function(A){var H=_.Ud(this.hostElement,"yt-get-current-video-id-action")[0],k=this.getSourceTimelines();A={getSearchInVideoCommand:{externalVideoId:H,query:A!=null?A:"",sourceTimelines:k},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}})};
_.q.filterSnippets=function(A,H){var k=this;if(H){this.filteredSnippets=(0,_.iK.unsafeClone)(A);var d=RegExp(_.IwI(H),"i");this.filteredSnippets=this.filteredSnippets.filter(function(u){return d.test(k.ytRendererBehavior.getSimpleString(u.snippet))});
A=_.r(this.filteredSnippets);for(var W=A.next();!W.done;W=A.next()){W=W.value;var z=this.ytRendererBehavior.getSimpleString(W.snippet);W.snippet={runs:[{text:z.substring(0,z.toLowerCase().indexOf(H))},{text:z.substring(z.toLowerCase().indexOf(H),z.toLowerCase().indexOf(H)+H.length),bold:!0},{text:z.substring(z.toLowerCase().indexOf(H)+H.length,z.length)}]}}}else this.filteredSnippets=A};
_.q.onUpdateSearchInVideoResults=function(A){if(!(this.snippets.length>0)){var H,k,d;if((d=(H=_.L(A,BAI))==null?void 0:(k=H.results)==null?void 0:k.length)!=null&&d){var W;this.filteredSnippets=this.snippets=((W=_.L(A,BAI))==null?void 0:W.results).map(function(z){var u,B,h;return{startMs:z==null?void 0:(u=z.searchInVideoResultRenderer)==null?void 0:u.startMs,startTimeText:z==null?void 0:(B=z.searchInVideoResultRenderer)==null?void 0:B.startTimeText,snippet:z==null?void 0:(h=z.searchInVideoResultRenderer)==
null?void 0:h.snippet}})}}};
_.q.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};
_.q.highlightSnippet=function(A){A.classList.add("highlighted")};
_.q.removeSnippetHighlight=function(A){A.classList.remove("highlighted")};
_.q.selectSnippet=function(A){this.typedValue=String(A.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(A);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.q.ensureVisible=function(A){var H=this.snippetsWrapper.scrollTop,k=H+this.snippetsWrapper.clientHeight,d=A.offsetTop-this.snippetsWrapper.offsetTop;A=d+A.clientHeight;d<H?this.snippetsWrapper.scrollTop-=H-d:A>k&&(this.snippetsWrapper.scrollTop+=A-k)};
_.q.seekPlayer=function(A){var H,k;return _.e(function(d){if(d.nextAddress==1){if(!A)return d.jumpTo(0);H=Number(A.dataset.startOffset);return d.yield(_.a9().getPlayerPromise(),3)}k=d.yieldResult;k.seekTo(H/1E3,!0);k.wakeUpControls();_.EN(d)})};
_.q.logInputGesture=function(A){var H=_.hx();H&&(A==null?0:A.trackingParams)&&_.GH(H,_.db(A.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.q.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("typed-value-changed",this.typedValue))};
_.q.updateTypedValueFromBinding=function(A){this.typedValue=A.currentTarget.value};
G9.prototype.typedValueChangedForBinding=G9.prototype.typedValueChangedForBinding;G9.prototype.dataChanged=G9.prototype.dataChanged;G9.prototype.panelContentVisibleChanged=G9.prototype.panelContentVisibleChanged;G9.prototype.onClick=G9.prototype.onClick;G9.prototype.onKeyUp=G9.prototype.onKeyUp;G9.prototype.onKeyDown=G9.prototype.onKeyDown;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],G9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],G9.prototype,"data",void 0);_.E([_.C({value:[]}),_.l("design:type",Array)],G9.prototype,"snippets",void 0);_.E([_.C({value:[]}),_.l("design:type",Array)],G9.prototype,"filteredSnippets",void 0);_.E([_.C({value:[]}),_.l("design:type",Array)],G9.prototype,"snippetElements",void 0);
_.E([_.ol("#siv-input"),_.l("design:type",HTMLElement)],G9.prototype,"inputElement",void 0);_.E([_.ol("#siv-snippets-wrapper"),_.l("design:type",HTMLElement)],G9.prototype,"snippetsWrapper",void 0);_.E([_.C(),_.l("design:type",String)],G9.prototype,"typedValue",void 0);_.E([_.C({value:-1}),_.l("design:type",Number)],G9.prototype,"highlightedIndex",void 0);_.E([_.Ze("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[_.ux]),_.l("design:returntype")],G9.prototype,"onKeyDown",null);
_.E([_.Ze("keyup"),_.l("design:type",Function),_.l("design:paramtypes",[_.ux]),_.l("design:returntype")],G9.prototype,"onKeyUp",null);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],G9.prototype,"onClick",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],G9.prototype,"panelContentVisible",void 0);
_.E([_.fF("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],G9.prototype,"panelContentVisibleChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],G9.prototype,"dataChanged",null);_.E([_.fF("typedValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],G9.prototype,"typedValueChangedForBinding",null);
_.E([_.O6({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],G9);
_.Q(G9,"ytd-search-in-video-renderer",function(){if(FU_!==void 0)return FU_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return FU_=A},{mode:1});var X9I;var F7=function(){return _.a.apply(this,arguments)||this};
_.I(F7,_.a);F7.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
F7.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]]"}}}}}};
F7.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var A,H,k,d,W=(H=_.L((A=this.data)==null?void 0:A.onClickCommand,_.ftj))==null?void 0:(k=H.item)==null?void 0:(d=k.notificationTextRenderer)==null?void 0:d.successResponseText;W&&_.SUb(this.hostElement,W)}};
_.nP.Object.defineProperties(F7.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d;return this.isProductPlaceholder&&((A=this.data)==null?void 0:(H=A.hiddenProductOptions)==null?void 0:H.showDropCountdown)&&!!((k=this.data)==null?0:(d=k.hiddenProductOptions)==null?0:d.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var A;return!this.isProductPlaceholder&&!((A=this.data)==null?0:A.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var A,H;return!((A=this.data)==null?0:A.priceReplacementText)&&!((H=this.data)==null||!H.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],F7.prototype,"componentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],F7.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("isProductPlaceholder"),_.l("design:type",Object),_.l("design:paramtypes",[])],F7.prototype,"useCenterLayoutContainer",null);_.E([_.C({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],F7.prototype,"buttonOverride",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],F7.prototype,"isProductPlaceholder",null);
_.E([_.G("isProductPlaceholder"),_.l("design:type",Object),_.l("design:paramtypes",[])],F7.prototype,"showDropCountdown",null);_.E([_.G("isProductPlaceholder","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],F7.prototype,"showBrandName",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],F7.prototype,"showPriceReplacementText",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],F7.prototype,"showPrice",null);
_.E([_.G("isProductPlaceholder"),_.l("design:type",Object),_.l("design:paramtypes",[])],F7.prototype,"showMetadata",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],F7);
_.Q(F7,"ytd-product-list-item-renderer",function(){if(X9I!==void 0)return X9I;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return X9I=A},{mode:1});var Db_;var X7=function(){return _.a.apply(this,arguments)||this};
_.I(X7,_.a);X7.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
X7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
X7.prototype.panelContentVisibleChanged=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return A.playerApi?k.jumpTo(2):k.yield(_.a9().getPlayerPromise(),3);k.nextAddress!=2&&(A.playerApi=k.yieldResult);(H=A.playerApi)==null||H.productsInVideoVisibilityUpdated(!!A.panelContentVisible);_.EN(k)})};
X7.prototype.panelContentVisibleChanged=X7.prototype.panelContentVisibleChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],X7.prototype,"panelContentVisible",void 0);_.E([_.C(),_.l("design:type",Object)],X7.prototype,"data",void 0);
_.E([_.fF("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],X7.prototype,"panelContentVisibleChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],X7);
_.Q(X7,"ytd-product-list-renderer",function(){if(Db_!==void 0)return Db_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Db_=A},{mode:1});var SV3;var Dl=function(){var A=_.a.apply(this,arguments)||this;A.isToggleChecked=!1;return A};
_.I(Dl,_.a);Dl.prototype.onDataChanged=function(){var A;this.isToggleChecked=((A=this.data)==null?void 0:A.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Dl.prototype.close=function(){var A;((A=this.data)==null?0:A.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Dl.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var A,H=_.L((A=this.data)==null?void 0:A.switchButton,ux_);H&&(this.isToggleChecked&&H.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOnInnertubeCommand),!this.isToggleChecked&&H.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOffInnertubeCommand))};
Dl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Dl.prototype.onDataChanged=Dl.prototype.onDataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Dl.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Dl.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Dl.prototype,"isToggleChecked",void 0);_.E([_.C({value:_.$r("CLOSE")}),_.l("design:type",String)],Dl.prototype,"closeButtonAriaLabel",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Dl.prototype,"onDataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Dl);
_.Q(Dl,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(SV3!==void 0)return SV3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return SV3=A},{mode:1});var C7M;var SH=function(){var A=_.a.apply(this,arguments)||this;A.hideTimestamps=!!_.r4("hide-transcript-timestamps");A.currentCueIndex=-1;A.flatCues=[];A.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};A.TEST_ONLY={getFlatCues:function(){return A.flatCues}};
return A};
_.I(SH,_.a);_.q=SH.prototype;_.q.hideTimestampsChanged=function(){_.qH("hide-transcript-timestamps",this.hideTimestamps)};
_.q.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.q.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.q.dataChanged=function(){var A;if((A=this.data)!=null&&A.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;A=_.r(this.data.cueGroups);for(var H=A.next();!H.done;H=A.next()){H=_.r(_.L(H.value,yP_).cues);for(var k=H.next();!k.done;k=H.next())this.flatCues.push(Number(_.L(k.value,jHV).startOffsetMs))}}};
_.q.onYtPlayerTimeChanged=function(A){if(!(A<0)){for(var H=this.currentCueIndex,k=H;;){var d=k>=0?this.flatCues[k]/1E3:-1;if(A+.5<d)--k;else if(d=k+1<this.flatCues.length?this.flatCues[k+1]/1E3:Infinity,A+.5>d)k+=1;else break}k!==H&&(H>=0&&((A=this.getCueElement(H))&&A.classList.remove("active"),(H=this.getCueGroupElement(H))&&H.classList.remove("active")),(H=this.getCueElement(k))&&H.classList.add("active"),(H=this.getCueGroupElement(k))&&H.classList.add("active"),this.currentCueIndex=k,this.isHovered||
this.scrollElementToTop(k))}};
_.q.scrollElementToTop=function(A){A=this.getCueElement(A>=3?A-3:0);this.hostElement.scrollTop=Math.min(A.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.q.getCueElement=function(A){return _.Va(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[A]+'"]')};
_.q.getCueGroupElement=function(A){return(A=this.getCueElement(A))&&A.parentElement?A.parentElement.parentElement:null};
_.q.onTap=function(A){var H=_.X_(A);A.target.classList.contains("cue")&&this.seekCueElement(H)};
_.q.onKeyPress=function(A){A.keyCode==13&&(A=_.WMj(A.target,null,"cue"))&&this.seekCueElement(A)};
_.q.seekCueElement=function(A){A=Number(A.getAttribute("start-offset"));_.Ud(this.hostElement,"yt-transcript-player-seek",[A/1E3])};
_.q.onMouseEnter=function(){this.isHovered=!0};
_.q.onMouseLeave=function(){this.isHovered=!1};
SH.prototype.onMouseLeave=SH.prototype.onMouseLeave;SH.prototype.onMouseEnter=SH.prototype.onMouseEnter;SH.prototype.onKeyPress=SH.prototype.onKeyPress;SH.prototype.onTap=SH.prototype.onTap;SH.prototype.dataChanged=SH.prototype.dataChanged;SH.prototype.hideTimestampsChanged=SH.prototype.hideTimestampsChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],SH.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],SH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],SH.prototype,"hideTimestamps",void 0);_.E([_.C(),_.l("design:type",Boolean)],SH.prototype,"isHovered",void 0);_.E([_.fF("hideTimestamps"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SH.prototype,"hideTimestampsChanged",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SH.prototype,"dataChanged",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],SH.prototype,"onTap",null);_.E([_.Ze("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],SH.prototype,"onKeyPress",null);
_.E([_.Ze("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SH.prototype,"onMouseEnter",null);_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SH.prototype,"onMouseLeave",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],SH);
_.Q(SH,"ytd-transcript-body-renderer",function(){if(C7M!==void 0)return C7M;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return C7M=A},{mode:1});var KU_;var Cq=function(){var A=_.a.apply(this,arguments)||this;A.darkerPanels=_.b("web_watch_darker_panels");return A};
_.I(Cq,_.a);Cq.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Cq.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Cq.prototype,"darkerPanels",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Cq);
_.Q(Cq,"ytd-transcript-footer-renderer",function(){if(KU_!==void 0)return KU_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return KU_=A},{mode:1});var ani;var cX_;var Kq=function(){var A=_.a.apply(this,arguments)||this;A.systemIcons=_.b("kevlar_system_icons");A.showClearButton=!1;return A};
_.I(Kq,_.a);_.q=Kq.prototype;_.q.handleInput=function(A){var H=this;A.target.value.length?_.vW(this,"ytdTranscriptSearchBoxSearch",function(){H.emitSearchEvent(A)},500):(_.eGI(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=A.target.value.length>0};
_.q.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.q.handleClick=function(){var A,H=(A=this.data)==null?void 0:A.trackingParams;H&&_.wN(_.A7(),H)};
_.q.handleClear=function(){_.eGI(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var A,H,k=(H=_.L((A=this.data)==null?void 0:A.clearButton,_.gN))==null?void 0:H.trackingParams;k&&_.wN(_.A7(),k);this.clear()};
_.q.emitSearchEvent=function(A){_.Ed(this.hostElement,"yt-transcript-search-box-search",{query:A.target.value});var H,k;(A=(k=_.L((H=this.data)==null?void 0:H.searchButton,_.gN))==null?void 0:k.trackingParams)&&_.wN(_.A7(),A)};
_.q.emitClearEvent=function(){_.Ed(this.hostElement,"yt-transcript-search-box-clear")};
_.nP.Object.defineProperties(Kq.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Va(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Kq.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Kq.prototype,"systemIcons",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Kq);
_.Q(Kq,"ytd-transcript-search-box-renderer",function(){if(cX_!==void 0)return cX_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cX_=A},{mode:1});var p9Q;var QjR;var aU=function(){return _.a.apply(this,arguments)||this};
_.I(aU,_.a);aU.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var A,H;this.sectionHeaderAriaLabel=(A=this.data)==null?void 0:(H=A.accessibility)==null?void 0:H.accessibilityData.label}};
aU.prototype.fireSelectedEvent=function(A){_.Ed(this.hostElement,"ytd-transcript-section-header",{startMs:A})};
aU.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
aU.prototype.handleKeyPress=function(A){this.data&&A.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.nP.Object.defineProperties(aU.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=(A=this.data)==null?void 0:A.enableTappableTranscriptHeader)!=null?H:!1}}});
aU.prototype.dataChanged=aU.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],aU.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],aU.prototype,"sectionHeaderAriaLabel",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],aU.prototype,"enableTappableTranscriptHeader",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aU.prototype,"dataChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],aU);
_.Q(aU,"ytd-transcript-section-header-renderer",function(){if(QjR!==void 0)return QjR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return QjR=A},{mode:1});var VR_;var EaL;var ct=function(){var A=_.a.apply(this,arguments)||this;A.isEditMode=!1;A.touchCaptionsEnabled=!1;A.deleteCaptionCorrectionPopupCommand=null;A.voteCaptionCorrectionPopupCommand=null;A.roundedContainer=!0;A.mouseOver=!1;A.textChanged=!1;A.messages={suggest_correction:_.$r("suggest_correction",void 0,"Edit caption"),suggested_caption:_.$r("suggested_caption",void 0,"Suggested caption"),submit_correction:_.$r("submit_correction",void 0,"Submit for review"),cancel_correction:_.$r("cancel_correction",
void 0,"Cancel"),replay_segment:_.$r("replay_segment",void 0,"Re-play segment"),delete_correction:_.$r("delete_correction",void 0,"Delete correction")};A.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return A};
_.I(ct,_.a);_.q=ct.prototype;_.q.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)};
_.q.handleDelete=function(A){if(this.deleteCaptionCorrectionPopupCommand){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);H&&this.ytdOpenPopupBehavior.openPopup(H);A.stopPropagation()}};
_.q.handleSubmit=function(A){if(this.data&&this.data.submitCaptionCorrectionCommand&&(A.stopPropagation(),this.textChanged)){var H;A=(H=_.L(this.data.submitCaptionCorrectionCommand,_.qcA))==null?void 0:H.params;H=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:A,correctionText:String(this.ironTextAreaElement.value),originalText:_.PK(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(H);this.isEditMode=!1}};
_.q.handleUpdateSegmentText=function(A){(A=_.L(A,ymi))&&A.targetId&&this.data&&A.targetId===this.data.targetId&&(A.userCorrection&&(this.editedText=A.userCorrection),A.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.PK(this.data.snippet)),A.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=A.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=A.voteCaptionCorrectionPopupCommand?
A.voteCaptionCorrectionPopupCommand:null,A.accessibility&&(this.segmentAriaLabel=A.accessibility.accessibilityData.label))};
_.q.handleCancel=function(A){this.isEditMode=!1;A.stopPropagation();this.logClientVe(159409)};
_.q.handleEditSegmentCommand=function(A){(A=_.L(A,vGI))&&A.targetId&&this.data&&A.targetId===this.data.targetId&&this.handleEdit()};
_.q.handleEditButtonClick=function(A){this.data&&(this.handleEdit(),A.stopPropagation())};
_.q.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var A;(A=this.ironTextAreaElement.textarea)==null||A.focus();this.logClientVe(159407)}};
_.q.handleMouseEnter=function(){this.mouseOver=!0};
_.q.handleMouseLeave=function(){this.mouseOver=!1};
_.q.handleReplay=function(A){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),A.stopPropagation(),this.logClientVe(159408))};
_.q.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()))};
_.q.handleKeypress=function(A){this.data&&(this.isEditMode?A.stopPropagation():this.isEnterPress(A)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(A)&&this.logClientVe(138758))};
_.q.handleTextboxClick=function(A){A.stopPropagation()};
_.q.handleTextboxKeydown=function(A){this.isControlEnterPress(A)?this.handleSubmit(A):A.key==="Escape"&&this.handleCancel(A)};
_.q.handleTextboxKeyup=function(){this.textChanged=_.PK(this.latestText)!==String(this.ironTextAreaElement.value)};
_.q.fireSelectedEvent=function(A){_.Ed(this.hostElement,"yt-transcript-segment-selected",{startMs:A})};
_.q.fireReplayEvent=function(A,H){_.Ed(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(A-100,0),endMs:H})};
_.q.fireEditEvent=function(A,H){_.Ed(this.hostElement,"yt-transcript-segment-edit",{startMs:A,endMs:H})};
_.q.isEnterPress=function(A){return A.key==="Enter"||A.code==="Enter"||A.code==="NumpadEnter"||A.keyCode===13?!0:!1};
_.q.isControlEnterPress=function(A){var H=A.key==="Enter"||A.code==="Enter"||A.code==="NumpadEnter"||A.keyCode===13;return(A.ctrlKey||A.metaKey)&&H};
_.q.isCopyPress=function(A){var H=A.ctrlKey;return A.key==="c"&&H};
_.q.logClick=function(){var A,H=(A=this.data)==null?void 0:A.trackingParams;H&&_.wN(_.A7(),H)};
_.q.logClientVe=function(A){_.f4(_.A7(),_.t8(A))};
_.nP.Object.defineProperties(ct.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}}});
ct.prototype.handleMouseLeave=ct.prototype.handleMouseLeave;ct.prototype.handleMouseEnter=ct.prototype.handleMouseEnter;ct.prototype.dataChanged=ct.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],ct.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],ct.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],ct.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ct.prototype,"isEditMode",void 0);_.E([_.C(),_.l("design:type",Object)],ct.prototype,"touchCaptionsEnabled",void 0);_.E([_.C(),_.l("design:type",Object)],ct.prototype,"editedText",void 0);_.E([_.C(),_.l("design:type",Object)],ct.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.E([_.C(),_.l("design:type",Object)],ct.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.E([_.C(),_.l("design:type",String)],ct.prototype,"segmentAriaLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ct.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ct.prototype,"mouseOver",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ct.prototype,"textChanged",void 0);_.E([_.C(),_.l("design:type",Object)],ct.prototype,"messages",void 0);
_.E([_.ol("#suggestion"),_.l("design:type",Object)],ct.prototype,"ironTextAreaElement",void 0);_.E([_.G("data","editedText"),_.l("design:type",Object),_.l("design:paramtypes",[])],ct.prototype,"latestText",null);_.E([_.G("touchCaptionsEnabled","isEditMode"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ct.prototype,"enableEditButton",null);
_.E([_.G("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ct.prototype,"enableUndoButton",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ct.prototype,"dataChanged",null);_.E([_.Ze("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ct.prototype,"handleMouseEnter",null);
_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ct.prototype,"handleMouseLeave",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],ct);
_.Q(ct,"ytd-transcript-segment-renderer",function(){if(EaL!==void 0)return EaL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return EaL=A},{mode:1});var pq=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};A.isError=!1;A.darkerPanels=_.b("web_watch_darker_panels");A.useParentMaxHeight=_.b("web_watch_transscript_use_parent_max_height");A.segmentOffsets=[];A.segmentIndex=-1;return A};
_.I(pq,_.a);_.q=pq.prototype;_.q.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"}}}}};
_.q.segmentsChanged=function(){this.updateOffsets()};
_.q.onYtPlayerTimeChanged=function(A){for(var H=this.segmentIndex,k=H;;){if(k>=0){var d=this.segmentOffsets[k].start;var W=this.segmentOffsets[k].isAutoScrollable}else d=-1,W=!0;var z=A+.5;if(!W){d=k+1<this.segmentOffsets.length?this.segmentOffsets[k+1].start:Infinity;if(z>=d){k+=1;continue}k=-1;break}if(z<d)d=k-1>=0&&this.segmentOffsets[k-1].isAutoScrollable,W=k===0||d?1:2,k-=W;else if(W=k+1<this.segmentOffsets.length&&this.segmentOffsets[k+1].isAutoScrollable?1:2,d=k+W<this.segmentOffsets.length?
this.segmentOffsets[k+W].start:Infinity,z>d)k+=W;else{if(k<0)break;k<this.segmentOffsets.length&&z>this.segmentOffsets[k].end&&(k=-1);break}}if(H!==k){if(H>=0){var u;(u=this.getSegmentElement(H))==null||u.classList.remove("active")}this.segmentIndex=k;if(!(k<0)){var B;(B=this.getSegmentElement(k))==null||B.classList.add("active");this.isHovered||this.scrollElementToTop(k)}}};
_.q.handleSegmentEdit=function(A){A.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=A.target,_.Ud(this.hostElement,"yt-transcript-player-edit",[A.detail.startMs/1E3,A.detail.endMs/1E3]))};
_.q.handleSegmentSelected=function(A){_.Ud(this.hostElement,"yt-transcript-player-seek",[A.detail.startMs/1E3])};
_.q.handleSegmentReplay=function(A){_.Ud(this.hostElement,"yt-transcript-player-replay",[A.detail.startMs/1E3,A.detail.endMs/1E3])};
_.q.handleSectionHeaderSelected=function(A){_.Ud(this.hostElement,"yt-transcript-player-seek",[A.detail.startMs/1E3])};
_.q.onMouseEnter=function(){this.isHovered=!0};
_.q.onMouseLeave=function(){this.isHovered=!1};
_.q.onRetryButtonClick=function(){_.Ed(this.hostElement,"transcript-retry-button-click")};
_.q.getSegmentElement=function(A){return _.Va(this.hostElement).querySelector(":nth-child("+(A+1)+")")};
_.q.scrollElementToTop=function(A){A=this.getSegmentElement(A>=2?A-2:0);this.hostElement.scrollTop=Math.min(A.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.q.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(A){var H,k=(H=A.transcriptSegmentRenderer)!=null?H:A.transcriptSectionHeaderRenderer;return{start:Number(k.startMs)/1E3,end:Number(k.endMs)/1E3,isAutoScrollable:A.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.q.clearHighlightedSegments=function(){var A=_.Va(this.hostElement);A=_.r(A.querySelectorAll("ytd-transcript-segment-renderer"));for(var H=A.next();!H.done;H=A.next())H.value.classList.remove("active")};
_.nP.Object.defineProperties(pq.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:A.searchResultSegments)||((H=this.data)==null?void 0:H.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
pq.prototype.onMouseLeave=pq.prototype.onMouseLeave;pq.prototype.onMouseEnter=pq.prototype.onMouseEnter;pq.prototype.handleSectionHeaderSelected=pq.prototype.handleSectionHeaderSelected;pq.prototype.handleSegmentReplay=pq.prototype.handleSegmentReplay;pq.prototype.handleSegmentSelected=pq.prototype.handleSegmentSelected;pq.prototype.handleSegmentEdit=pq.prototype.handleSegmentEdit;pq.prototype.segmentsChanged=pq.prototype.segmentsChanged;
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],pq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pq.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],pq.prototype,"isError",void 0);
_.E([_.C(),_.l("design:type",Object)],pq.prototype,"noResultLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pq.prototype,"darkerPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pq.prototype,"useParentMaxHeight",void 0);_.E([_.G("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],pq.prototype,"segments",null);
_.E([_.G("segments","noResultLabel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],pq.prototype,"displayNoResults",null);_.E([_.fF("segments"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pq.prototype,"segmentsChanged",null);_.E([_.Ze("yt-transcript-segment-edit"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],pq.prototype,"handleSegmentEdit",null);
_.E([_.Ze("yt-transcript-segment-selected"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],pq.prototype,"handleSegmentSelected",null);_.E([_.Ze("yt-transcript-segment-replay"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],pq.prototype,"handleSegmentReplay",null);
_.E([_.Ze("ytd-transcript-section-header"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],pq.prototype,"handleSectionHeaderSelected",null);_.E([_.Ze("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pq.prototype,"onMouseEnter",null);_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pq.prototype,"onMouseLeave",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],pq);
_.Q(pq,"ytd-transcript-segment-list-renderer",function(){if(VR_!==void 0)return VR_;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return VR_=A},{mode:1});var QO=function(){var A=_.a.apply(this,arguments)||this;A.hideTimestamps=!!_.r4("hide-transcript-timestamps");A.isLoadingTranscripts=!1;A.darkerPanels=_.b("web_watch_darker_panels");A.isError=!1;A.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return A};
_.I(QO,_.a);_.q=QO.prototype;_.q.headerChanged=function(){var A,H;this.baseGetTranscriptsCommand=(H=_.L((A=this.data)==null?void 0:A.header,jZ_))==null?void 0:H.onTextChangeCommand};
_.q.bodyChanged=function(){var A=this.getBodyRenderer();A&&(A.initialSegments&&(this.initialTranscriptsRenderer=A),A.noResultLabel&&(this.noResultLabel=A.noResultLabel),A.retryLabel&&(this.retryLabel=A.retryLabel))};
_.q.detached=function(){this.clearSearchBoxText()};
_.q.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.q.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"}}}};
_.q.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.q.fireSearch=function(A){var H=this;if(A){var k=A.detail.query;if(this.baseGetTranscriptsCommand){var d;A=(d=_.L(this.baseGetTranscriptsCommand,_.kl0))==null?void 0:d.params;var W;d=_.L((W=this.data)==null?void 0:W.footer,IVB);var z;if((W=(z=_.L(d==null?void 0:d.languageMenu,enV))==null?void 0:z.subMenuItems)&&W.length>0&&(z=W.find(function(h){return h.selected}))){var u,B;
A=(u=z.continuation)==null?void 0:(B=u.reloadContinuationData)==null?void 0:B.continuation}u=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:A,searchQuery:k}});this.ytComponentBehavior.resolveCommand(u,{commandController:{onServerError:function(){H.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});wFR(this.ytContinuationHandlerBehavior,function(){return k===H.getCurrentSearchBoxText()})}}};
_.q.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.q.onRetryButtonClick=function(){this.isError=!1;var A={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:A}))};
_.q.hideTimestampsChanged=function(){_.qH("hide-transcript-timestamps",this.hideTimestamps)};
_.q.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.q.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.q.handleSignalActionCopyTranscript=function(){var A=this,H=this.getBodyRenderer();H&&(H=((H==null?void 0:H.searchResultSegments)||(H==null?void 0:H.initialSegments)||[]).map(function(k){return _.L(k,YfV)}).filter(function(k){return!!k}).map(function(k){return{snippet:k.snippet||{runs:[{text:""}]},
startTimeText:k.startTimeText||{simpleText:""}}}).map(function(k){var d=(k.snippet.runs||[]).reduce(function(W,z){return W+z.text},"");
return A.hideTimestamps?d:k.startTimeText.simpleText+" "+d}).join("\n"),this.copyToClipboard(H))};
_.q.copyToClipboard=function(A){navigator.clipboard&&navigator.clipboard.writeText(A)};
_.q.getCurrentSearchBoxText=function(){var A;return(A=this.searchBox)==null?void 0:A.value};
_.q.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.q.getBodyRenderer=function(){var A;return _.L((A=this.data)==null?void 0:A.body,Ire)};
_.q.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.nP.Object.defineProperties(QO.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Va(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
QO.prototype.hideTimestampsChanged=QO.prototype.hideTimestampsChanged;QO.prototype.searchCleared=QO.prototype.searchCleared;QO.prototype.fireSearch=QO.prototype.fireSearch;QO.prototype.onReloadContinuationFinish=QO.prototype.onReloadContinuationFinish;QO.prototype.bodyChanged=QO.prototype.bodyChanged;QO.prototype.headerChanged=QO.prototype.headerChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],QO.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.DV),_.l("design:type",Object)],QO.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],QO.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],QO.prototype,"hideTimestamps",void 0);
_.E([_.C(),_.l("design:type",Object)],QO.prototype,"isLoadingTranscripts",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],QO.prototype,"darkerPanels",void 0);_.E([_.C(),_.l("design:type",Object)],QO.prototype,"isError",void 0);_.E([_.fF("data.header"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QO.prototype,"headerChanged",null);
_.E([_.s6("data.body"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QO.prototype,"bodyChanged",null);_.E([_.Ze("yt-reload-continuation-finish"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QO.prototype,"onReloadContinuationFinish",null);_.E([_.Ze("yt-transcript-search-box-search"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],QO.prototype,"fireSearch",null);
_.E([_.Ze("yt-transcript-search-box-clear"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QO.prototype,"searchCleared",null);_.E([_.fF("hideTimestamps"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QO.prototype,"hideTimestampsChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],QO);
_.Q(QO,"ytd-transcript-search-panel-renderer",function(){if(p9Q!==void 0)return p9Q;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return p9Q=A},{mode:1});var VO=function(){var A=_.a.apply(this,arguments)||this;A.player=null;A.playerPollJobId=0;return A};
_.I(VO,_.a);_.q=VO.prototype;_.q.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.q.onLoadReloadContinuation=function(A){_.b("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:A.target.data.continuation}}):(A={clickTrackingParams:A.target.data.clickTrackingParams,getTranscriptEndpoint:{params:A.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}}))};
_.q.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"}}}};
_.q.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.q.attached=function(){this.updatePlayerListening()};
_.q.detached=function(){this.updatePlayerListening()};
_.q.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.q.startPlayerListening=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return(H=_.Kj())?k.yield(H.getPlayerPromise(),2):k.return();A.player=k.yieldResult;A.playerPollJobId=_.IE.addLowPriorityJob(function(){A.getPlayerVideoProgress()},1E3);
A.player.addEventListener("onCueRangeEnter",function(d){A.onCueRangeEnter(d)});
A.player.addEventListener("onCueRangeExit",function(d){A.onCueRangeExit(d)});
A.player.addEventListener("onStateChange",function(d){A.onPlayerStateChange(d)});
A.player.addEventListener("SEEK_TO",function(d){A.onPlayerSeek(d)});
_.EN(k)})};
_.q.getPlayerVideoProgress=function(){var A=this;_.IE.cancelJob(this.playerPollJobId);if(this.player){var H=this.player.getCurrentTime();_.Ud(this.hostElement,"yt-player-time-changed",[H])}this.playerPollJobId=_.IE.addLowPriorityJob(function(){A.getPlayerVideoProgress()},1E3)};
_.q.stopPlayerListening=function(){this.player=null;_.IE.cancelJob(this.playerPollJobId)};
_.q.onPlayerStateChange=function(A){A===2&&this.removePendingCue()};
_.q.onPlayerSeek=function(A){var H;if(H=this.pendingReplayCueId)H=this.pendingReplayCueId,H=A===(_.b("web_transcript_cue_id_killswitch")?Number(H):Number(H.split("_")[1]));H||this.removePendingCue()};
_.q.onCueRangeEnter=function(A){oq3(A)&&(this.pendingReplayCueId=A)};
_.q.onCueRangeExit=function(A){oq3(A)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.q.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.q.onYtTranscriptPlayerSeek=function(A){this.player&&this.player.seekTo(A,!0)};
_.q.onYtTranscriptPlayerReplay=function(A,H){this.player&&(this.player.addCueRange(wlM(A),A,H),this.player.seekTo(A,!0),this.player.playVideo())};
_.q.onYtTranscriptPlayerEdit=function(A,H){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(wlM(A),A,H),this.player.seekTo(A,!0))};
VO.prototype.onLoadReloadContinuation=VO.prototype.onLoadReloadContinuation;VO.prototype.panelContentVisibleChanged=VO.prototype.panelContentVisibleChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],VO.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],VO.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],VO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],VO.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],VO.prototype,"panelContentVisible",void 0);_.E([_.fF("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VO.prototype,"panelContentVisibleChanged",null);
_.E([_.Ze("yt-load-reload-continuation"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],VO.prototype,"onLoadReloadContinuation",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],VO);
_.Q(VO,"ytd-transcript-renderer",function(){if(ani!==void 0)return ani;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ani=A},{mode:1});var UbB;var lnL;var EU=function(){return _.a.apply(this,arguments)||this};
_.I(EU,_.a);EU.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.NT(this.hostElement,[this.data.clickCommand],this.hostElement))};
EU.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(Mu()+nS)+"px)"};
EU.prototype.updateShouldHideFromBinding=function(A){this.shouldHide=A.detail.value};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],EU.prototype,"rendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],EU.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],EU.prototype,"shouldHide",void 0);_.E([_.O6({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],EU);
_.Q(EU,"ytd-ad-engagement-panel-banner-renderer",function(){if(lnL!==void 0)return lnL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return lnL=A},{mode:2});var tRe;var UU=function(){var A=_.a.apply(this,arguments)||this;A.buttonUpdate=_.b("web_modern_buttons");A.adsSemanticText=_.b("enable_ads_web_ep_buenos_aires_and_padding_fix");return A};
_.I(UU,_.a);UU.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.E([_.C(),_.l("design:type",Object)],UU.prototype,"data",void 0);_.E([_.C({computed:"computeHideDefaultAdBadge(data)"}),_.l("design:type",Boolean)],UU.prototype,"hideDefaultAdBadge",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UU.prototype,"buttonUpdate",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],UU.prototype,"adsSemanticText",void 0);_.E([_.O6({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],UU);
_.Q(UU,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(tRe!==void 0)return tRe;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return tRe=A},{mode:1});var NZV;var lF=function(){var A=_.a.apply(this,arguments)||this;A.darkerPanels=_.b("web_watch_darker_panels");A.enableSqueezebackPanels=_.b("web_shorts_enable_squeezeback_panels");A.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");A.headerClickListener=function(H){A.onHeaderClick(H)};
A.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return A};
_.I(lF,_.a);_.q=lF.prototype;_.q.computeAdsInfoButton=function(){if(_.b("web_modern_buttons")){var A,H;return(H=_.L((A=this.data)==null?void 0:A.subtitleComplex,YE_))==null?void 0:H.adInfoRenderer}};
_.q.updateHeaderClickListener=function(){var A,H,k;((A=this.data)==null?0:A.navigationEndpoint)||((H=this.data)==null?0:H.onClickCommand)||_.L((k=this.data)==null?void 0:k.visibilityButton,_.bR)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.q.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}}}}}};
_.q.collapsedChanged=function(){var A;(A=this.data)!=null&&A.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.b("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.q.focus=function(A){var H=this;this.titleElement&&_.IE.addJob(function(){_.EY(H.titleElement,A)},0,500)};
_.q.computeTitleAriaLabel=function(A){var H=[];if(A.title){var k,d;H.push(this.ytRendererBehavior.getSimpleString(A.title)||((k=A.title.accessibility)==null?void 0:(d=k.accessibilityData)==null?void 0:d.label))}A.contextualInfo&&H.push(this.ytRendererBehavior.getSimpleString(A.contextualInfo));return H.join(" ")};
_.q.onHeaderClick=function(A){this.shouldTriggerHeaderClick(A)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.NT(this.hostElement,[this.data.onClickCommand],this.hostElement)):(A=this.getVisibilityToggleButton())&&A.click())};
_.q.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var A=_.L(this.data.visibilityButton,_.gN)||_.L(this.data.visibilityButton,_.bR);A&&this.ytRendererBehavior.logExplicitClick(A)}};
_.q.getVisibilityToggleButton=function(){var A=_.Va(this.hostElement).querySelector("#visibility-button").firstElementChild;return(A==null?void 0:A.is)==="ytd-toggle-button-renderer"?A:null};
_.q.shouldTriggerHeaderClick=function(A){return!_.XU(_.F_(A),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.q.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(A){A=_.L(A,ovL);this.targetId&&(A==null?void 0:A.targetId)===this.targetId&&(A=A.navigationButton)&&this.set("data.navigationButton",A)};
_.nP.Object.defineProperties(lF.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!!(((A=this.entity)==null?0:A.isActionButtonHidden)||this.hideActionButton)}}});
lF.prototype.collapsedChanged=lF.prototype.collapsedChanged;lF.prototype.updateHeaderClickListener=lF.prototype.updateHeaderClickListener;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],lF.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],lF.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],lF.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lF.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],lF.prototype,"targetId",void 0);_.E([_.C(),_.l("design:type",Boolean)],lF.prototype,"collapsed",void 0);_.E([_.C(),_.l("design:type",Boolean)],lF.prototype,"hideActionButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],lF.prototype,"shortsPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],lF.prototype,"liveChatEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],lF.prototype,"learningChatEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lF.prototype,"darkerPanels",void 0);_.E([_.ol("#title"),_.l("design:type",HTMLElement)],lF.prototype,"titleElement",void 0);_.E([_.ol("#header"),_.l("design:type",HTMLElement)],lF.prototype,"headerElement",void 0);
_.E([_.C({computed:"computeAdsInfoButton(data)"}),_.l("design:type",Object)],lF.prototype,"adsInfoButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lF.prototype,"enableSqueezebackPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lF.prototype,"enableAnchoredPanel",void 0);_.E([_.C({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(A,H){return _.Mw(A.entities,"engagementPanelTitleHeaderEntity",H)}}),
_.l("design:type",Object)],lF.prototype,"entity",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],lF.prototype,"adsSemanticText",null);_.E([_.fF("data","data.navigationEndpoint","data.onClickCommand"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lF.prototype,"updateHeaderClickListener",null);
_.E([_.s6("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lF.prototype,"collapsedChanged",null);_.E([_.G("entity","hideActionButton"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],lF.prototype,"isActionButtonHidden",null);_.E([_.O6({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],lF);
_.Q(lF,"ytd-engagement-panel-title-header-renderer",function(){if(NZV!==void 0)return NZV;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return NZV=A},{mode:1});var MRL;var tF=function(){return _.a.apply(this,arguments)||this};
_.I(tF,_.a);tF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],tF.prototype,"data",void 0);_.E([_.O6({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],tF);
_.Q(tF,"ytd-macro-markers-info-item-renderer",function(){if(MRL!==void 0)return MRL;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return MRL=A},{mode:1});var na_;var N7=function(A,H,k,d,W,z){_.dF.call(this);var u=this;this.JSC$21191_containerElement=A;this.hostElement=H;this.supportedSyncItems=k;this.syncEntityKey=d;this.options=W;this.renderLazyListItems=z;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;ZtR(this);fn_(this);this.JSC$21191_scrollAnimation=new _.pJ(function(B){A.scrollTop=B});
_.ZL(this,this.JSC$21191_scrollAnimation);this.addOnDisposeCallback(function(){w9_(u,!1);u.activeItem&&u.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.I(N7,_.dF);var ZtR=function(A){var H=_.dC(_.wj().resolve(_.O7),function(k){return k.entities.markersEngagementPanelSyncEntity||{}},function(k,d){var W;
if(k[A.syncEntityKey]!==d[A.syncEntityKey]&&((W=k[A.syncEntityKey])==null?void 0:W.activeItemIndex)!==void 0)if(d=k[A.syncEntityKey].activeItemIndex,k=A.getItemByIndex(d)){if(oaL(A,k),A.contentVisible)if(A.browsingMode){var z;((z=A.options)==null?void 0:z.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(z=$bR(A),k.offsetTop<A.JSC$21191_containerElement.clientHeight+A.JSC$21191_containerElement.scrollTop&&z&&!A.activeItemBelowSyncPosition&&w9_(A,!1));ARM(A)}else A.scrollToItem(k)}else _.Pq(new _.Ti("Could not find "+
A.supportedSyncItems+" sync child to set active.",d,A.JSC$21191_containerElement.querySelectorAll(A.supportedSyncItems).length))});
A.unsubscribeFromTimedMarkersListSyncEntity=H;A.addOnDisposeCallback(H);HcL(A)},HcL=function(A){var H=_.wj().resolve(_.O7);
H=_.ajm(H.getState(),A.syncEntityKey);(H==null?void 0:H.activeItemIndex)!==void 0&&(H=A.getItemByIndex(H.activeItemIndex))&&oaL(A,H)},fn_=function(A){var H=new _.Nt(A.onScroll,50,A);
_.ZL(A,H);var k=function(){H.fire()};
A.JSC$21191_containerElement.addEventListener("scroll",k);A.addOnDisposeCallback(function(){A.JSC$21191_containerElement.removeEventListener("scroll",k)})};
N7.prototype.getItemByIndex=function(A){var H;(H=this.renderLazyListItems)==null||H.call(this,A);H=this.JSC$21191_containerElement.querySelectorAll(this.supportedSyncItems);if(H.length>A)return H[A]};
var oaL=function(A,H){A.activeItem&&A.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));H.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));A.activeItem=H};
N7.prototype.scrollToItem=function(A){A=this.getScrollPositionForItem(A);this.JSC$21191_containerElement.scrollTop!==A&&this.JSC$21191_scrollAnimation.start(this.JSC$21191_containerElement.scrollTop,A,300)};
N7.prototype.getScrollPositionForItem=function(A){if(this.JSC$21191_containerElement.querySelectorAll(this.supportedSyncItems)[0]===A)return 0;var H,k=((H=this.options)==null?0:H.percentOffset)?this.JSC$21191_containerElement.clientHeight*this.options.percentOffset:0;A=_.mA(A).y+this.JSC$21191_containerElement.scrollTop-(_.mA(this.JSC$21191_containerElement).y+k);return Math.max(0,Math.min(A,this.JSC$21191_containerElement.scrollHeight-this.JSC$21191_containerElement.offsetHeight))};
N7.prototype.onScroll=function(){this.activeItemBelowSyncPosition=$bR(this);if(this.activeItem&&!this.JSC$21191_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21191_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var A;switch((A=this.options)==null?void 0:A.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":szB(this,!k3L(this));ARM(this);break;default:szB(this,!0)}}};
var szB=function(A,H){var k,d;_.e(function(W){if(W.nextAddress==1){if(A.browsingMode)return W.return();A.browsingMode=!0;H&&A.hostElement.classList.add("browsing-mode");A.playerExitBrowsingModeListener=function(){w9_(A,!1)};
return W.yield(_.NN(),2)}k=W.yieldResult;(d=k)==null||d.addEventListener("SEEK_TO",A.playerExitBrowsingModeListener);_.EN(W)})},w9_=function(A,H){H=H===void 0?!0:H;
A.browsingMode&&(A.browsingMode=!1,A.hostElement.classList.remove("browsing-mode"),H&&A.scrollToItem(A.activeItem),ddB(A))},ddB=function(A){var H,k;
_.e(function(d){if(d.nextAddress==1)return A.playerExitBrowsingModeListener?d.yield(_.NN(),3):d.jumpTo(0);H=d.yieldResult;(k=H)==null||k.removeEventListener("SEEK_TO",A.playerExitBrowsingModeListener);A.playerExitBrowsingModeListener=void 0;_.EN(d)})},ARM=function(A){var H;
((H=A.options)==null?void 0:H.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(k3L(A)?A.hostElement.classList.remove("browsing-mode"):A.activeItem&&A.hostElement.classList.add("browsing-mode"))},$bR=function(A){if(!A.activeItem)return!1;
var H,k=((H=A.options)==null?0:H.percentOffset)?A.JSC$21191_containerElement.clientHeight*A.options.percentOffset:0;return A.activeItem.offsetTop>=A.JSC$21191_containerElement.scrollTop+k},k3L=function(A){if(!A.activeItem)return!1;
var H=A.activeItem.offsetTop+14<=A.JSC$21191_containerElement.scrollTop+A.JSC$21191_containerElement.clientHeight;return A.activeItem.offsetTop+A.activeItem.clientHeight-14>=A.JSC$21191_containerElement.scrollTop&&H};
N7.prototype.panelContentVisibleChanged=function(A){(this.contentVisible=A)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var W4I=function(A,H){A.syncEntityKey=H;var k;(k=A.unsubscribeFromTimedMarkersListSyncEntity)==null||k.call(A);ZtR(A)},zuQ=function(A,H){A.options=H};var M7=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return A};
_.I(M7,_.a);_.q=M7.prototype;_.q.detached=function(){var A;(A=this.scrollController)==null||A.dispose();this.scrollController=void 0};
_.q.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"}}}};
_.q.dataChanged=function(){var A=this;_.No(this,function(){if(A.scrollController){var H;(H=A.scrollController)==null||w9_(H,!1);var k,d,W;(d=A.scrollController)==null||W4I(d,(W=(k=A.data)==null?void 0:k.syncModelEntityKey)!=null?W:"default-macro-markers-list-renderer-entity-key");var z,u,B;(B=A.scrollController)==null||zuQ(B,{percentOffset:(z=A.data)==null?void 0:z.selectedItemAlignmentPercentOffset,floatingPillType:(u=A.data)==null?void 0:u.floatingPillType})}else{var h,O,T,m;A.scrollController=
new N7(A.contents,A.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(m=(h=A.data)==null?void 0:h.syncModelEntityKey)!=null?m:"default-macro-markers-list-renderer-entity-key",{percentOffset:(O=A.data)==null?void 0:O.selectedItemAlignmentPercentOffset,floatingPillType:(T=A.data)==null?void 0:T.floatingPillType},function(J){A.renderLazyListItems(J)})}A.scrollController.panelContentVisibleChanged(!!A.panelContentVisible)})};
_.q.computeButtonShape=function(){var A=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){A.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.q.renderLazyListItems=function(A){for(var H=this.contents.children,k=0,d=0;d<H.length;d++){var W=void 0;(W=H[d].ytLazyListBehavior)==null||W.fillRemainingListItems();var z=void 0,u=void 0;W=_.L((z=this.data)==null?void 0:(u=z.contents)==null?void 0:u[d],_.lJZ);u=z=void 0;if((z=W)==null?0:(u=z.contents)==null?0:u.length)k+=W.contents.length;if(k>=A)break}};
_.q.handleSetActivePanelItemAction=function(A){if((A=_.L(A,qEQ))&&this.panelTargetId===A.panelTargetId){A=A.itemIndex;var H,k,d=(k=(H=this.data)==null?void 0:H.syncModelEntityKey)!=null?k:"default-macro-markers-list-renderer-entity-key",W;((W=this.syncEntity)==null?void 0:W.activeItemIndex)!==A&&this.ytdReduxBehavior.dispatch(_.kH("markersEngagementPanelSyncEntity",d,{key:d,activeItemIndex:A}))}};
_.q.onSyncClick=function(){var A;(A=this.scrollController)==null||w9_(A)};
_.q.panelContentVisibleChanged=function(){var A;(A=this.scrollController)==null||A.panelContentVisibleChanged(!!this.panelContentVisible)};
M7.prototype.panelContentVisibleChanged=M7.prototype.panelContentVisibleChanged;M7.prototype.dataChanged=M7.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],M7.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],M7.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],M7.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],M7.prototype,"useCustomColors",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],M7.prototype,"panelTargetId",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],M7.prototype,"panelContentVisible",void 0);
_.E([_.ol("#contents"),_.l("design:type",HTMLElement)],M7.prototype,"contents",void 0);_.E([_.C({selectorArgs:["data.syncModelEntityKey"],selector:_.ajm}),_.l("design:type",Object)],M7.prototype,"syncEntity",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],M7.prototype,"dataChanged",null);
_.E([_.fF("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],M7.prototype,"panelContentVisibleChanged",null);_.E([_.O6({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],M7);
_.Q(M7,"ytd-macro-markers-list-renderer",function(){if(na_!==void 0)return na_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return na_=A},{mode:1});var qTB;var rRV;var nq=function(){return _.a.apply(this,arguments)||this};
_.I(nq,_.a);nq.prototype.computeAriaLabel=function(A){var H,k;return(A==null?void 0:(H=A.accessibility)==null?void 0:(k=H.accessibilityData)==null?void 0:k.label)||_.$r("LOADING",void 0,"Loading")};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],nq.prototype,"data",void 0);_.E([_.C({computed:"computeAriaLabel(data)"}),_.l("design:type",String)],nq.prototype,"ariaLabel",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],nq);
_.Q(nq,"yt-content-loading-renderer",function(){if(rRV===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;qTB===void 0&&(qTB=document.createElement("template"));var d=qTB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);rRV=A}A=rRV;return A},{mode:1});_.Sw(_.c(function(A){var H=_.r(_.RV(!1,void 0,"OZMtVb")),k=H.next().value,d=H.next().value;H=_.r(_.RV(!1,void 0,"qWERsf"));var W=H.next().value,z=H.next().value;_.CZ(function(){var h=_.L(A.data().collaboratePlaylistCollaborationSetting,LoB);h&&d(h.switchedOnByDefault);var O=_.L(A.data().allowNewCollaboratorsPlaylistCollaborationSetting,LoB);O&&z(O.switchedOnByDefault);if(!h&&!O||!h&&A.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")d(!0),z(!0)});
var u=function(h){d(h);z(h);var O=A.data().playlistCollaborationEntityKey||"";var T=_.FI().getState();(T=_.Mw(T.entities,"playlistCollaborationEntity",O))&&(T==null?void 0:T.isCollaborative)===h||_.FI().dispatch(_.kH("playlistCollaborationEntity",O,Object.assign({},T,{isCollaborative:h})))},B=function(h){z(h)};
return _.x("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.x("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.x(_.HG,{data:function(){return A.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(h){return _.x(_.kfB,{data:h.data,
onSwitch:u})}})),_.x(_.R,{cond:k,
then:function(){return _.x(_.sD,null,_.x("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.x(_.HG,{data:function(){return A.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(h){return _.x(_.kfB,{data:h.data,
onSwitch:B,overrideDisabled:!1})}})),_.x(_.R,{cond:W,
then:function(){return _.x("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.x(_.HG,{data:function(){return A.data().copyLinkButton}},{buttonViewModel:_.U7}))}}),_.x("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.x(_.HG,{data:function(){return A.data().playlistCollaborators}},{contentListItemViewModel:_.vY_})))}}))},"Oj"),"playlist-collaboration-view-model",{props:{data:_.Ih}});var ul_=_.c(function(A){var H=A.data;var k=A.customCommandResolver;return _.x(_.sD,null,_.x("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.x(_.HG,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(d){return _.x(_.YS0,{data:d.data,
customCommandResolver:k})}})),_.x("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.x(_.R,{cond:function(){return H().headline},
then:function(d){return _.x(_.j$,{text:d,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.x("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.x(_.HG,{data:function(){return H().adBadge}},{adBadgeViewModel:function(d){return _.x(_.ZY,{data:d.data,
hasDot:function(){return H().primaryDetailsLine!==void 0},
customCommandResolver:k,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.x(_.HG,{data:function(){return H().primaryDetailsLine}},{adDetailsLineViewModel:function(d){return _.x(_.fK,{data:d.data,
customCommandResolver:k,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Pj"),BPB=_.c(function(A){var H=A.data;
var k=A.customCommandResolver;return _.x("ad-avatar-lockup-view-model",{class:function(){var d;return((d=H().interaction)==null?0:d.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.P8(_.NV({visibilityCallback:function(d){var W,z=(W=H().interaction)==null?void 0:W.onFirstVisible;d&&z&&_.mu(z)},
showOption:_.VY}),_.g9(function(){return H().interaction},k)),
"aria-label":function(){var d,W;return(d=H().interaction)==null?void 0:(W=d.accessibility)==null?void 0:W.label}},_.x(_.Yl,null,_.x(_.y$,{when:function(){return H().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.x(ul_,{data:H,
customCommandResolver:k})}),_.x(_.jp,null,function(){return null})))},"Qj");_.Sw(_.c(function(A){var H=A.data;var k=A.panelContentVisibility;A=_.NV({visibilityCallback:function(z){var u,B=(u=H().interaction)==null?void 0:u.onFirstVisible;z&&B&&_.mu(B)},
showOption:_.VY});var d=_.g9(function(){return H().interaction},$L_);
_.SC(function(){var z,u;if(u=_.UD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var B;u=(B=u())==null?void 0:B.onLayoutVisibleCallback}else u=null;(z=u)==null||z()},"Rj");
var W=function(){return k()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.x("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.P8(A,d)},_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.x(_.R,{cond:_.UWX("(min-width: "+(Mu()+nS)+"px) or (max-width: 600px)"),then:function(){return _.x(_.HG,{data:function(){return H().adImage}},{adImageViewModel:function(z){return _.x(_.Ue,{data:z.data,
targetHeight:80,customCommandResolver:$L_})}})}})),_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.x(_.HG,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(z){return _.x(BPB,{data:z.data,
customCommandResolver:$L_})}})),_.x(_.R,{cond:W,
then:function(){return _.x(_.HG,{data:function(){return H().adButton}},{adButtonViewModel:function(z){return _.x(_.la,{data:z.data,
customCommandResolver:$L_})}})},
else:function(){return _.x(_.HG,{data:function(){return H().menu}},{buttonViewModel:_.U7})}}),_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.x(_.HG,{data:function(){var z=_.L(H().toggleButton,_.jG);
return{toggleButtonViewModel:Object.assign({},z,{isTogglingDisabled:!0,isToggled:W()})}}},{toggleButtonViewModel:_.qc})))))},"Sj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Ih,
panelContentVisibility:_.Ih}});var eu1=_.dy(AdI,{debugName:"chipBarViewModel"});_.$l(_.yX,function(A){_.j2(A,"chipBarViewModel","HwlOhd",AdI)});var xdG=_.dy(H6L,{debugName:"gridShelfViewModel"});_.$l(_.yX,function(A){_.j2(A,"gridShelfViewModel","JoU6vf",H6L)});var icL=_.dy(sLe,{debugName:"ytFeedbackPromptViewModel"});_.$l(_.yX,function(A){_.j2(A,"ytFeedbackPromptViewModel","hU04te",sLe)});var huB=_.dy(ksi,{debugName:"learningJourneyLoaderViewModel"});_.$l(_.yX,function(A){_.j2(A,"learningJourneyLoaderViewModel","dIvQ6c",ksi)});var Oce=_.dy(deQ,{debugName:"ytAccordionViewModel"});_.$l(_.yX,function(A){_.j2(A,"ytAccordionViewModel","m9Vw4",deQ)});var RuL=_.dy(WWL,{debugName:"videoOverviewViewModel"});_.$l(_.yX,function(A){_.j2(A,"videoOverviewViewModel","mcjWUc",WWL)});var TPI=_.dy(zeQ,{debugName:"youChatItemViewModel"});_.$l(_.yX,function(A){_.j2(A,"youChatItemViewModel","QiZf0e",zeQ)});var mdB=_.dy(qKB,{debugName:"ytChatLoadingViewModel"});_.$l(_.yX,function(A){_.j2(A,"ytChatLoadingViewModel","f8YPh",qKB)});var JR3=_.dy(rdL,{debugName:"ytChatUserTurnViewModel"});_.$l(_.yX,function(A){_.j2(A,"ytChatUserTurnViewModel","b3MoKf",rdL)});var gSB=_.c(function(A){var H=_.r((0,_.C3w)(A.data)).next().value,k=function(){var d,W;return(W=(d=H().contents)==null?void 0:d.length)!=null?W:0};
return _.x("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return A.data().targetId||""},
"aria-busy":function(){var d,W;return(W=(d=H().contents)==null?void 0:d.some(function(z){return!!z.chatLoadingViewModel}))!=null?W:!1}},_.x(_.HG,{data:function(){return A.data().header}},{chipBarViewModel:eu1,
sectionHeaderViewModel:_.kG}),_.x(_.HG,{data:function(){return H().contents}},{accordionViewModel:Oce,
alertBannerViewModel:Y_L,chatLoadingViewModel:function(d,W){return _.x(mdB,{data:d.data,containerHeight:A.containerHeight,isLastItem:function(){return W()===k()-1}})},
chatUserTurnViewModel:function(d,W){return _.x(JR3,{data:d.data,containerHeight:A.containerHeight,isLastItem:function(){return W()===k()-1}})},
feedbackPromptViewModel:icL,gridShelfViewModel:function(d){return _.x(xdG,{data:d.data,shouldUseOwnContainerSize:!0,marginSettings:A.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:huB,linearLayoutViewModel:_.Fx,lockupViewModel:function(d){return _.x(_.oW,{data:d.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:A.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.kG,videoOverviewViewModel:RuL,youChatItemViewModel:function(d,W){return _.x(TPI,{data:d.data,pending:!1,containerHeight:A.containerHeight,isLastItem:function(){return W()===k()-1}})}}))},"Tj");_.Sw(_.c(function(A){var H=_.r((0,_.C3w)(A.data)).next().value,k=_.r(_.kq()),d=k.next().value;k=k.next().value;var W=_.P8(k);k=_.r(_.RV(void 0,void 0,"fqbUqd"));var z=k.next().value,u=k.next().value,B=function(){var h;return _.L((h=A.data().sectionListLayoutConfiguration)==null?void 0:h.layoutConfiguration,BTL)};
_.CZ(function(){var h,O=(h=W.value)==null?void 0:h.clientWidth;h=B()?_.gPI(O,B()):void 0;u(h)});
k={};return _.x("yt-section-list-renderer",{class:_.ER("ytSectionListRendererHost",A.className,(k.ytSectionListRendererHostOverscrollContain=function(){var h;return(h=A.overscrollContain)==null?void 0:h.call(A)},k)),
el:W,"data-target-id":function(){return A.data().targetId||""}},_.x(_.HG,{data:function(){return H().contents}},{itemSectionRenderer:function(h){return _.x(gSB,{data:h.data,
containerLayoutConfig:z,marginSettings:A.marginSettings,containerHeight:function(){return d.height()}})}}))},"Uj"),"yt-section-list-renderer",{props:{data:_.Ih,
className:_.Fc,marginSettings:_.Ih,overscrollContain:_.Ih}});_.Sw(_.c(function(A){var H=function(){return _.L(A.data().inputComposerViewModel,ee_)},k=_.oy(_.yP.currentPageSubTypeSelector),d=_.oy(_.yP.persistentPanelVisibleSelector),W=_.r(_.RV(!1,void 0,"RXGzYc")),z=W.next().value,u=W.next().value;
W=_.r(_.RV(!1,void 0,"oyonKd"));var B=W.next().value,h=W.next().value,O=function(){y(!0);var mr;_.mu(((mr=H())==null?void 0:mr.onSubmitCommand)||{})},T=function(){if(d()&&!B()){var mr;
(mr=_.MN())==null||mr.removeCueRange("aic-proactive");u(!1);h(!0);O();_.OR(_.mo_(H().endOfVideoContinuation),{form:{formData:_.CR({clientMessageId:"youchat-"+Date.now(),pageContext:qv()})},commandController:{onSuccess:function(){y(!1)},
onServerError:function(){_.OR(pKL(N()));y(!1)}}})}},m=function(){var mr=_.MN();
if(mr&&!z()&&!B()){var Cl=mr.getDuration();Cl>60&&(mr.addCueRange("aic-proactive",Cl-60,Cl-20),u(!0))}},J=function(){var mr;
return((mr=H())==null?void 0:mr.youchatPendingResponseEntityKey)||""},g=_.o9(_.gYR,J),v=function(){var mr;
return!((mr=g())==null||!mr.isPendingResponse)},y=function(mr){_.bPB(J())(mr)};
W=_.r(_.RV(!0,void 0,"umCoCf"));var X=W.next().value,D=W.next().value,K=function(){var mr,Cl;var pl=_.L((Cl=H())==null?void 0:Cl.inputFormField,MgM);return pl==null?void 0:(mr=pl.contentProperties)==null?void 0:mr.placeholderText},N=function(){return H().sectionTargetId||"youchat_messages_section"};
W=_.FQ("yt-chat-input-view-model");var U=_.GP("textarea"),p=_.o9(VX1,"chat_input_view_model_state"),M=EuL(),Z=function(){var mr;return!((mr=p())==null||!mr.value)},WV=function(){return A.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},hA=function(){var mr;
(mr=_.MN())==null||mr.removeCueRange("aic-proactive");u(!1);h(!1);var Cl;_.b("enable_navigational_proactive_messages_on_ai_companion")&&((Cl=H())==null?0:Cl.navigationContinuation)&&d()&&(O(),_.OR(_.mo_(H().navigationContinuation),{form:{formData:_.CR({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:BK_(),pageContext:qv()})},commandController:{onSuccess:function(){y(!1)},
onServerError:function(){_.OR(pKL(N()));y(!1)}}}))},qv=function(){var mr;
return(mr=_.wj().resolve(_.fZ(_.Ju)))==null?void 0:_.a81(mr,k())};
_.CZ(function(){if(_.Wl("enable_ai_chat_controller")){var mr;(mr=_.wj().resolve(_.fZ(_.Ju)))==null||mr.init(A.data().environment)}else if(mr=xeL(A.data()),!Z()&&mr){var Cl;((Cl=H())==null?0:Cl.setPendingResponseOnWelcome)&&y(!0);_.OR(mr,{form:{formData:_.CR({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:BK_(),pageContext:qv()})}});M(!0)}var pl=N(),UC=_.wj().resolve(_.fZ(_.f1)),hk=function(){_.Ac.remove(pl);if(_.Wl("enable_ai_chat_controller")){var lI;(lI=_.wj().resolve(_.fZ(_.Ju)))!=null&&
lI.environment==="CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(lI.lastWelcomeContinuationSent=void 0)}else M(!1)},eA=function(){_.Oi(function(){if(WV()&&(hA(pl),k()==="watch")){var lI=_.MN();
lI&&(lI.addEventListener("onStateChange",m),lI.addEventListener("onCueRangeEnter",T))}})};
Cl=_.b("enable_ai_companion")?!WV():!0;UC==null||UC.addEventListener("yt-navigate-start",hk,{once:Cl});UC==null||UC.addEventListener("yt-navigate-finish",eA,{once:Cl});_.aV(function(){UC==null||UC.removeEventListener("yt-navigate-start",hk);UC==null||UC.removeEventListener("yt-navigate-finish",eA);var lI=_.MN();lI&&(lI.removeEventListener("onCueRangeEnter",T),lI.removeEventListener("onStateChange",m),lI.removeCueRange("aic-proactive"))})});
_.CA(function(){if(_.Wl("enable_ai_chat_controller")){var mr=xeL(A.data());if(mr){var Cl,pl=((Cl=H())==null?0:Cl.setPendingResponseOnWelcome)?y:void 0,UC;(UC=_.wj().resolve(_.fZ(_.Ju)))==null||zdI(UC,{command:mr,setPending:pl})}}},"SXTMBe");
var eN=function(){var mr=U.value.value;U.value.value="";uO1(U.value);var Cl,pl=((Cl=H())==null?void 0:Cl.enableGradientColorBg)||!1,UC;Cl=Qce(N(),mr,pl,(UC=H())==null?void 0:UC.chatUserTurnBackgroundStyle);_.OR(Cl);O();var hk,eA,lI;UC=(lI=_.h7((hk=A.data())==null?void 0:hk.sendUserQueryCommand))!=null?lI:_.mo_((eA=H())==null?void 0:eA.continuation);_.OR(UC,{form:{formData:_.CR({clientMessageId:"youchat-"+Date.now(),userInputText:mr,playerOffsetMs:BK_(),pageContext:qv()})},commandController:{onSuccess:function(){y(!1)},
onServerError:function(){_.OR(pKL(N()));y(!1)}}})};
return _.x("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:W},_.x("div",{class:"chatInputViewModelChatInputWrapper"},_.x("form",{class:"chatInputViewModelChatInputForm"},_.x("textarea",{class:"chatInputViewModelChatInput",el:U,"on:keydown":_.lc(function(mr){var Cl=v()||!1;uO1(U.value);Cl||mr.key!=="Enter"||mr.shiftKey||(mr.preventDefault(),eN());return!1}),
"on:keyup":_.lc(function(){D(U.value.value.length===0);return!1}),
"aria-label":function(){if(v()){var mr,Cl;return((mr=H())==null?void 0:(Cl=mr.loadingConfig)==null?void 0:Cl.loadingAnimationA11yLabel)||""}return K()},
placeholder:K,rows:1}),_.x(_.U7,{data:function(){return _.L(A.data().sendButton,_.vY)},
onClick:function(mr){mr.preventDefault();eN();D(U.value.value.length===0)},
buttonOverrides:function(){return{disabled:X()||v()}}})),_.x(_.j$,{className:"chatInputViewModelChatDisclaimer",
text:function(){var mr;return A.data().disclaimerText||((mr=_.L(A.data().disclaimer,_.t0G))==null?void 0:mr.text)}})))},"Wj"),"yt-chat-input-view-model",{props:{data:_.Ih}});var bcB=["engagement-panel-clip-create","engagement-panel-clip-view"],L4R=0,Zl=function(){var A=_.a.apply(this,arguments)||this;var H;A.headerData=(H=A.data)==null?void 0:H.header;A.darkerPanels=_.b("web_watch_darker_panels");A.matchContentTheme=_.b("web_watch_panel_content_match_theme");A.disableAutoFill=!1;A.isFullscreen=!1;A.isTheaterMode=!1;A.liveChatReplyPanel=!1;A.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");A.disableBackdropFilter=_.b("web_disable_backdrop_filter");A.isPersistentPanel=
!1;A.trackEngagementPanelVisibility=_.b("web_watch_track_engagement_panel_visibility");A.overscrollContain=!1;A.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 A};
_.I(Zl,_.a);_.q=Zl.prototype;
_.q.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(A){var H;return(A==null?void 0:(H=A.webComponentHint)==null?void 0:H.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"}}}};
_.q.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var A;if((A=this.hostElement.parentElement)==null?0:A.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.q.detached=function(){this.updateTheaterDisablement()};
_.q.showPanel=function(){var A=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.IE.addJob(function(){A.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.q.maybeScrollToItemSection=function(A){var H=this,k,d=A==null?void 0:(k=A.sectionListEngagementPanelExtras)==null?void 0:k.scrollToItemSectionIdentifier;d&&_.IE.addJob(function(){var W;(W=H.sectionListRendererElement)==null||W.scrollToItemSection(d)},8)};
_.q.hidePanel=function(){var A=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.IE.addJob(function(){A.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.q.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.q.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.q.updatePanel=function(A,H,k,d){var W=this;if((A=A==null?void 0:A.engagementPanelSectionListRenderer)||d){if(A){d=A.header;var z=A.content,u=A.footer,B=A.targetId,h=A.onShowCommands;A=A.onHideCommands;B&&this.set("data.targetId",B);d&&this.set("data.header",d);z&&this.set("data.content",z);u&&this.set("data.footer",u);_.b("enable_on_visibility_change_commands_for_panels")&&(h&&this.set("data.onShowCommands",h),A&&this.set("data.onHideCommands",A))}else d&&(A=d.content,z=d.secondaryHeaderContent,
u=d.targetId,d=d.loggingDirectives,u&&this.set("data.targetId",u),A&&this.set("data.content",A),d&&_.b("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",d),z&&(this.secondaryHeaderData=z));this.updateChildVisibilityProperties();if(H){var O;_.b("kevlar_update_panel_focus_scroll_killswitch")||(O={preventScroll:!0});this.focus(O)}_.No(this,function(){_.Ed(W.hostElement,"yt-refit");W.maybeScrollToItemSection(k)})}};
_.q.computeHeaderData=function(){var A,H=(0,_.iK.unsafeClone)((A=this.data)==null?void 0:A.header);if(H){A=new _.Dt(Object.keys(H)[0]);var k=_.L(H,A),d=_.L(this.secondaryHeaderData,A);d&&_.uc(H,A,Object.assign({},d,k))}return H};
_.q.getReloadContinuation=function(){var A,H,k,d=_.r(((A=this.data)==null?void 0:(H=A.content)==null?void 0:(k=H.sectionListRenderer)==null?void 0:k.continuations)||[]);for(A=d.next();!A.done;A=d.next())if(A=A.value,A.reloadContinuationData)return A.reloadContinuationData.continuation};
_.q.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var A;((A=this.data)==null?0:A.targetId)&&(A=this.contentElement.firstElementChild)&&A.setAttribute("panel-target-id",this.data.targetId)};
_.q.forwardPopupClosedToFlowRootRenderer=function(){var A=_.Va(this.hostElement).querySelector("ytd-flow-root-renderer");if(A&&this.hostElement.closest("ytd-popup-container"))A.onPopupClosed()};
_.q.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var A;if(!bcB.includes((A=this.theaterDisablementPanelIdentifier)!=null?A:""))if(A=_.b("web_watch_imax_theater_mode")&&this.isTheaterMode,A=_.b("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||A,_.b("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||A){var H;this.visibility=(H=this.data)==null?void 0:H.visibility;var k;this.trackEngagementPanelVisibility&&((k=this.data)==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var d,W,z,u;this.contentEmpty=!!(((d=this.data)==null?0:(W=d.content)==null?0:W.structuredDescriptionContentRenderer)&&Object.keys((z=this.data)==null?void 0:(u=z.content)==null?void 0:
u.structuredDescriptionContentRenderer).length===0);(H=_.wj().resolve(_.eZ))&&H.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.q.isTheaterModeChanged=function(){_.b("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.q.isFullscreenChanged=function(){_.b("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.q.focus=function(A){if(this.header)this.header.focus(A);else{var H;(H=_.Va(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||H.focus(A)}};
_.q.visibilityChanged=function(){if(!_.b("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var A=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",k=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W=d||!this.lastVisibility,z,u,B,h=((z=this.data)==null?void 0:(u=z.identifier)==null?void 0:
u.tag)||((B=this.data)==null?void 0:B.panelIdentifier);if(A&&W){var O;if((O=this.data)==null?0:O.onShowCommands)if(_.b("enable_on_visibility_change_commands_for_panels"))for(H=_.r(this.data.onShowCommands),k=H.next();!k.done;k=H.next())this.ytComponentBehavior.resolveCommand(k.value);else _.NT(this.hostElement,this.data.onShowCommands,this.hostElement);h&&_.F3().dispatch(_.p8({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:h}}))}else if(H&&k){var T;if((T=this.data)==null?0:T.onHideCommands)if(_.b("enable_on_visibility_change_commands_for_panels"))for(H=
_.r(this.data.onHideCommands),k=H.next();!k.done;k=H.next())this.ytComponentBehavior.resolveCommand(k.value);else _.NT(this.hostElement,this.data.onHideCommands,this.hostElement);h&&_.F3().dispatch(_.p8({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:h}}))}A&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*L4R++));_.b("kevlar_watch_focus_on_engagement_panels")&&A&&d&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.q.notifyVisibilityChanged=function(A){var H;_.li(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,A,(H=this.data)==null?void 0:H.targetId]);if(_.b("autonav_pause_for_comments_ep")){var k;_.Ed(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:A==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(k=this.data)==null?void 0:k.targetId})}};
_.q.updateTheaterDisablement=function(){if(!_.b("kevlar_watch_theater_disablement_killswitch")){var A=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&bcB.includes(A)&&!_.b("watch_next_grid_ignore_disallowed_panels")){var H=_.iL(_.F3().getState()),k=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";A!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():k?(this.originalTheaterState===void 0&&(this.originalTheaterState=H,this.theaterDisablementPanelIdentifier=
A),H&&_.Ud(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.q.clearTheaterDisablement=function(){_.Ud(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.q.updateChildVisibilityProperties=function(){this.hostElement||_.b("kevlar_panel_property_init_killswitch")||this._enableProperties();var A=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=A);var H,k=(H=this.headerElement)==null?void 0:H.firstElementChild;if(k&&!this.adHeaderImageLockupViewModel){H=A==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";k.collapsed=H;k=_.Va(k).querySelector("#visibility-button");if(!k)return;(k=k.firstElementChild)&&
k.polymerController.is==="ytd-toggle-button-renderer"&&k.polymerController.data.isToggled!==H&&k.polymerController.set("data.isToggled",H)}var d;if(H=(d=this.contentElement)==null?void 0:d.firstElementChild)if(A&&A!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")H.removeAttribute("panel-content-visible");else{H.setAttribute("panel-content-visible","");var W;(W=H.markDirty)==null||W.call(H)}};
_.q.onYtChangeEngagementPanelVisibilityAction=function(A){var H=this,k,d=(k=this.data)==null?void 0:k.targetId,W,z,u;k=((W=this.data)==null?void 0:(z=W.identifier)==null?void 0:z.tag)||((u=this.data)==null?void 0:u.panelIdentifier);var B=_.L(A,_.rgA),h;A=d&&(B==null?void 0:B.targetId)===d||k&&(B==null?void 0:(h=B.panelIdentifier)==null?void 0:h.tag)===k;this.dialog&&A&&(B==null?void 0:B.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(d==="engagement-panel-comments-section"?_.Ud(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Ud(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",k]));!_.b("kevlar_use_engagement_panel_management_component")&&A&&(d=B.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!d?_.IE.addJob(function(){H.visibility=B.visibility},2,this.hideDelayMs):this.visibility=B.visibility,B.visibility&&this.notifyVisibilityChanged(B.visibility))};
_.q.onYtScrollToEngagementPanelCommand=function(A){var H,k=(H=this.data)==null?void 0:H.targetId,d,W,z;H=((d=this.data)==null?void 0:(W=d.identifier)==null?void 0:W.tag)||((z=this.data)==null?void 0:z.panelIdentifier);A=_.L(A,_.boA);var u;(k&&(A==null?void 0:A.targetId)===k||H&&(A==null?void 0:(u=A.panelIdentifier)==null?void 0:u.tag)===H)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Ud(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.q.attachVEs=function(A){var H,k;(A==null?0:(H=A.content)==null?0:(k=H.productListRenderer)==null?0:k.trackingParams)&&_.A7().graftServerVe(A.content.productListRenderer.trackingParams);var d,W;(A==null?0:(d=A.content)==null?0:(W=d.transcriptRenderer)==null?0:W.trackingParams)&&_.A7().graftServerVe(A.content.transcriptRenderer.trackingParams)};
_.q.onYtUpdateEngagementPanelAction=function(A){var H,k=(H=this.data)==null?void 0:H.targetId;A=_.L(A,usB);k&&(A==null?void 0:A.targetId)===k&&(this.updatePanel({engagementPanelSectionListRenderer:{header:A==null?void 0:A.header,content:A==null?void 0:A.content}},!1),this.attachVEs(A))};
_.q.onYtShowEngagementPanelScrimAction=function(A){var H,k=(H=this.data)==null?void 0:H.targetId;A=_.L(A,rPG);k&&(A==null?void 0:A.engagementPanelTargetId)===k&&(this.scrimmed=!0)};
_.q.onYtHideEngagementPanelScrimAction=function(A){var H,k=(H=this.data)==null?void 0:H.targetId;A=_.L(A,sHG);k&&(A==null?void 0:A.engagementPanelTargetId)===k&&(this.scrimmed=!1)};
_.q.getIdentifier=function(){var A,H,k;return((A=this.data)==null?void 0:A.panelIdentifier)||((H=this.data)==null?void 0:(k=H.identifier)==null?void 0:k.tag)};
_.q.getSurface=function(){var A,H;return(A=this.data)==null?void 0:(H=A.identifier)==null?void 0:H.surface};
_.nP.Object.defineProperties(Zl.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var A=this.getIdentifier();return A==="engagement-panel-youchat"||A==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
Zl.prototype.visibilityChanged=Zl.prototype.visibilityChanged;Zl.prototype.isFullscreenChanged=Zl.prototype.isFullscreenChanged;Zl.prototype.isTheaterModeChanged=Zl.prototype.isTheaterModeChanged;Zl.prototype.dataChanged=Zl.prototype.dataChanged;Zl.prototype.forwardPopupClosedToFlowRootRenderer=Zl.prototype.forwardPopupClosedToFlowRootRenderer;Zl.prototype.onYtRendererstamperFinished=Zl.prototype.onYtRendererstamperFinished;
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Zl.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Zl.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Zl.prototype,"ytdReduxBehavior",void 0);
_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],Zl.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Zl.prototype,"data",void 0);_.E([_.C({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.l("design:type",Object)],Zl.prototype,"headerData",void 0);_.E([_.C(),_.l("design:type",Object)],Zl.prototype,"secondaryHeaderData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zl.prototype,"visibility",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Zl.prototype,"contentEmpty",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Zl.prototype,"scrimmed",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Zl.prototype,"dialog",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Zl.prototype,"dropdown",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zl.prototype,"darkerPanels",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zl.prototype,"matchContentTheme",void 0);_.E([_.C(),_.l("design:type",Object)],Zl.prototype,"disableAutoFill",void 0);_.E([_.C({reflectToAttribute:!0,value:_.b("optimal_reading_width_comments_ep")}),_.l("design:type",Boolean)],Zl.prototype,"optimalReadingWidthComments",void 0);_.E([_.C(),_.l("design:type",Number)],Zl.prototype,"hideDelayMs",void 0);
_.E([_.C({selector:_.h8,reflectToAttribute:!0}),_.l("design:type",Object)],Zl.prototype,"isFullscreen",void 0);_.E([_.C({selector:_.iL,reflectToAttribute:!0}),_.l("design:type",Object)],Zl.prototype,"isTheaterMode",void 0);_.E([_.C(),_.l("design:type",Number)],Zl.prototype,"showDelayMs",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.targetId"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zl.prototype,"targetId",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zl.prototype,"webSize",null);_.E([_.C(),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zl.prototype,"hideFooterBorder",null);_.E([_.C(),_.l("design:type",Object)],Zl.prototype,"isWatch",void 0);_.E([_.C(),_.l("design:type",Object)],Zl.prototype,"originalTheaterState",void 0);_.E([_.C(),_.l("design:type",Object)],Zl.prototype,"theaterDisablementPanelIdentifier",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Zl.prototype,"isWatchWhilePanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Zl.prototype,"shortsPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Zl.prototype,"liveChatEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Zl.prototype,"learningChatEngagementPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zl.prototype,"liveChatReplyPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zl.prototype,"enableAnchoredPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zl.prototype,"disableBackdropFilter",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Zl.prototype,"isPersistentPanel",void 0);_.E([_.C(),_.l("design:type",Object)],Zl.prototype,"trackEngagementPanelVisibility",void 0);
_.E([_.C(),_.l("design:type",Object)],Zl.prototype,"overscrollContain",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zl.prototype,"isAiCompanionPanel",null);_.E([_.ol("#header"),_.l("design:type",HTMLElement)],Zl.prototype,"headerElement",void 0);_.E([_.ol("#header > *"),_.l("design:type",HTMLElement)],Zl.prototype,"header",void 0);_.E([_.ol("ytd-section-list-renderer"),_.l("design:type",Object)],Zl.prototype,"sectionListRendererElement",void 0);
_.E([_.ol("panel-ad-header-image-lockup-view-model"),_.l("design:type",HTMLElement)],Zl.prototype,"adHeaderImageLockupViewModel",void 0);_.E([_.ol("#content"),_.l("design:type",HTMLElement)],Zl.prototype,"contentElement",void 0);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zl.prototype,"onYtRendererstamperFinished",null);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zl.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.E([_.s6("data","isFullscreen","isTheaterMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zl.prototype,"dataChanged",null);_.E([_.fF("isTheaterMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zl.prototype,"isTheaterModeChanged",null);
_.E([_.fF("isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zl.prototype,"isFullscreenChanged",null);_.E([_.fF("visibility"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zl.prototype,"visibilityChanged",null);_.E([_.O6({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Zl);
_.Q(Zl,"ytd-engagement-panel-section-list-renderer",function(){if(UbB!==void 0)return UbB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return UbB=A},{mode:2});var vSL;var fq=function(){var A=_.a.apply(this,arguments)||this;A.rounded=!0;A.pageAttachedTo=void 0;A.currentRequestResolver=void 0;A.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return A};
_.I(fq,_.a);fq.prototype.attached=function(){this.pageAttachedTo=_.wj().resolve(_.SO).getCurrentPage();_.Ed(this.hostElement,"yt-player-attached",this.player)};
fq.prototype.detached=function(){var A;if((A=this.pageAttachedTo)==null?0:A.hostElement)_.Ed(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
fq.prototype.dataChanged=function(){var A=this,H;if(((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&!_.b("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();H=this.data.inlinePlaybackEndpoint;var k=_.wj().resolve(_.kI),d={};_.wj().resolve(_.A8);d.lact=_.Z$();var W=new _.lk;this.currentRequestResolver=W;W.promise.then(function(z){var u={autoplay:!0};!_.b("miniplayer_stop_channel_video_autoplay_killswitch")&&_.wj().resolve(_.L6).isMiniplayerActive()&&(u.pause_at_start=
!0,u.autoplay=!1);z&&A.player.loadVideoWithPlayerResponse(z,u)});
vqL(k,{endpoint:H,startPlaybackInMutedState:!1},d).then(function(z){W.resolve(z)}).catch(function(){})}else if((k=this.data)==null?0:k.videoId)H={video_id:this.data.videoId,
autoplay:!0},!_.b("miniplayer_stop_channel_video_autoplay_killswitch")&&_.wj().resolve(_.L6).isMiniplayerActive()&&(H.pause_at_start=!0,H.autoplay=!1),this.player.loadVideoWithPlayerVars(H)};
fq.prototype.handleSignalActionPausePlayer=function(){_.a9().pause()};
fq.prototype.dataChanged=fq.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],fq.prototype,"data",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],fq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],fq.prototype,"rounded",void 0);_.E([_.ol("#player"),_.l("design:type",Object)],fq.prototype,"player",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fq.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],fq);
_.Q(fq,"ytd-channel-video-player-renderer",function(){if(vSL!==void 0)return vSL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return vSL=A},{mode:1});var yR3;var wh=function(){return _.a.apply(this,arguments)||this};
_.I(wh,_.a);wh.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.ON(_.Va(this.hostElement).querySelector("#text"),_.LAj(_.j8Z,this.data.companionLegalText))};
wh.prototype.computeAutoScrollEnabled=function(A,H){return A&&!H};
wh.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
wh.prototype.onToggleTap=function(){this.expanded=!this.expanded};
wh.prototype.expandedChanged=wh.prototype.expandedChanged;wh.prototype.dataChanged=wh.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.E([_.P($hG),_.l("design:type",Object)],wh.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],wh.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],wh.prototype,"expanded",void 0);
_.E([_.C({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.l("design:type",Boolean)],wh.prototype,"autoScrollEnabled",void 0);_.E([_.C(),_.l("design:type",String)],wh.prototype,"expanderIcon",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wh.prototype,"dataChanged",null);
_.E([_.fF("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wh.prototype,"expandedChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],wh);
_.Q(wh,"ytd-companion-legal-text-renderer",function(){if(yR3!==void 0)return yR3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return yR3=A},{mode:1});var jzR;var oU=function(){var A=_.a.apply(this,arguments)||this;A.buttonUpdate=_.b("web_modern_buttons");A.kevlarWatchGrid=_.b("kevlar_watch_grid");A.centerAlignDescription=_.b("action_companion_center_align_description");A.truncateDomain=_.b("action_companion_truncate_domain");A.enableMonoStyle=_.b("enable_default_mono_cta_migration_web_client");return A};
_.I(oU,_.a);_.q=oU.prototype;_.q.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.q.getOnLayoutVisibleCallback=function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.q.getLayoutId=function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.q.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",oU.JSC$21256_DEFAULT_AD_BADGE_RENDERER);var A=this.getOnLayoutVisibleCallback();A&&A()}};
_.q.getButtonRenderer=function(A){return A.actionButton&&_.L(A.actionButton,_.gN)?(delete _.L(A.actionButton,_.gN).navigationEndpoint,_.L(A.actionButton,_.gN)):{}};
_.q.onClick=function(A){var H=this;if((!_.b("web_modern_buttons")||!_.XU(_.F_(A),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){A=_.Kj();var k=this.getLayoutId();A&&k&&_.b("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(d){(new _.hP(d)).executeCommand(H.data.navigationEndpoint,k)}):_.b("kevlar_companion_resolve_command_killswitch")?_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Ud(this.hostElement,"yt-companion-ad-clicked",["action-companion",k])}};
_.nP.Object.defineProperties(oU.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.data)==null?0:(H=A.detailsLine)==null?0:(k=H.adRating)==null?0:k.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 A,H,k,d;return((A=this.data)==null?0:(H=A.detailsLine)==null?0:(k=H.adRating)==null?0:(d=k.ratingIcon)==null?0:d.iconType)?_.N0(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d;return((A=this.data)==null?0:(H=A.detailsLine)==null?0:(k=H.texts)==null?0:(d=k[0])==null?0:d.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 A,H;return((A=this.data)==null?0:(H=A.description)==null?0:H.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var A=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return A?A.indexOf("/default_banner")!==-1:!0}}});
oU.prototype.onClick=oU.prototype.onClick;oU.prototype.dataChanged=oU.prototype.dataChanged;oU.JSC$21256_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.$r("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],oU.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],oU.prototype,"rendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],oU.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],oU.prototype,"buttonUpdate",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],oU.prototype,"kevlarWatchGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],oU.prototype,"centerAlignDescription",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],oU.prototype,"truncateDomain",void 0);
_.E([_.C({computed:"computeButtonOverride(buttonUpdate)"}),_.l("design:type",Object)],oU.prototype,"buttonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],oU.prototype,"enableMonoStyle",void 0);_.E([_.G("data.detailsLine.adRating.ratingText"),_.l("design:type",Object),_.l("design:paramtypes",[])],oU.prototype,"getRating",null);_.E([_.G("getRating"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oU.prototype,"computeRatingHidden",null);
_.E([_.G("data.detailsLine.adRating.ratingIcon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],oU.prototype,"iconType",null);_.E([_.G("data.detailsLine.texts.0.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],oU.prototype,"getDetailsLine",null);_.E([_.G("getDetailsLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oU.prototype,"computeDetailsLineHidden",null);
_.E([_.G("data.description.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],oU.prototype,"getDescriptionText",null);_.E([_.G("getDescriptionText"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oU.prototype,"computeDescriptionTextHidden",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],oU.prototype,"interactionLoggingClientData",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oU.prototype,"hideBanner",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oU.prototype,"dataChanged",null);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],oU.prototype,"onClick",null);_.E([_.O6({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],oU);
_.Q(oU,"ytd-action-companion-ad-renderer",function(){if(jzR!==void 0)return jzR;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return jzR=A},{mode:2});var Ioe;var YTI;var $b=function(){var A=_.a.apply(this,arguments)||this;A.buttonUpdate=_.b("web_modern_buttons");A.hideLegacyBanner=_.b("enable_dsa_one_click_ata_translators_infeed_elements");A.adInfoButtonStyle="mono";A.adInfoButtonType="text";A.noDotAdBadge=!0;return A};
_.I($b,_.a);_.q=$b.prototype;_.q.getOnLayoutVisibleCallback=function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.q.getLayoutId=function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.q.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 A=this.data.image.thumbnail.thumbnails[0];this.imageSrc=A.url?_.fx(A.url):void 0;this.imageWidth=A.width||0;this.imageHeight=A.height||0}this.data.clickthroughEndpoint&&_.L(this.data.clickthroughEndpoint,_.KT)&&(A=_.L(this.data.clickthroughEndpoint,_.KT).url,_.b("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
A||"":A?(A=_.fx(A),this.clickThroughUrl=_.NR(A)):this.clickThroughUrl=void 0);(A=this.getOnLayoutVisibleCallback())&&A()}};
_.q.onClick=function(A){_.XU(_.F_(A),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(A)};
_.q.handleClick=function(){var A=this;this.data&&this.data.clickthroughEndpoint&&(_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(H){A.macroReplacementBehavior.sendServiceRequestAction([H])}),_.Ud(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.q.onLoad=function(){_.li(this.hostElement,"yt-refit-popups-action")};
_.nP.Object.defineProperties($b.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}}});
$b.prototype.onLoad=$b.prototype.onLoad;$b.prototype.onClick=$b.prototype.onClick;$b.prototype.dataChanged=$b.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$b.prototype,"rendererBehavior",void 0);_.E([_.P(qkL.YtMacroReplacementBehavior),_.l("design:type",Object)],$b.prototype,"macroReplacementBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$b.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$b.prototype,"buttonUpdate",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$b.prototype,"hideLegacyBanner",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$b.prototype,"adInfoButtonStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$b.prototype,"adInfoButtonType",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],$b.prototype,"macros",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],$b.prototype,"interactionLoggingClientData",null);_.E([_.C(),_.l("design:type",String)],$b.prototype,"clickThroughUrl",void 0);_.E([_.C(),_.l("design:type",_.UW)],$b.prototype,"imageSrc",void 0);_.E([_.C(),_.l("design:type",Number)],$b.prototype,"imageWidth",void 0);_.E([_.C(),_.l("design:type",Number)],$b.prototype,"imageHeight",void 0);_.E([_.C(),_.l("design:type",Object)],$b.prototype,"noDotAdBadge",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$b.prototype,"dataChanged",null);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],$b.prototype,"onClick",null);_.E([_.Ze("load"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$b.prototype,"onLoad",null);_.E([_.O6({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],$b);
_.Q($b,"ytd-image-companion-renderer",function(){if(YTI!==void 0)return YTI;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return YTI=A},{mode:2});var PjI;var AD=function(){return _.a.apply(this,arguments)||this};
_.I(AD,_.a);_.q=AD.prototype;_.q.dataChanged=function(){this.set("data.adBadge",AD.JSC$21265_DEFAULT_AD_BADGE_RENDERER);if(this.data){var A=this.getOnLayoutVisibleCallback();A&&A()}};
_.q.getOnLayoutVisibleCallback=function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.q.getLayoutId=function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.q.onCompanionClicked=function(A){this.data&&(A.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Ud(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.q.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var A=_.Kj(),H=this.getLayoutId(),k=this.data.clickToAdvSiteEndpoint;A&&H&&_.b("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(d){(new _.hP(d)).executeCommand(k,H)}):_.Ed(this.hostElement,"yt-navigate",{endpoint:k})}};
_.q.sendTrackingPings=function(A){if(A&&A.length!==0&&A[0].loggingUrls&&(A=A[0].loggingUrls.map(this.getBaseUrl)))for(var H=0;H<A.length;H++)_.cL(A[H])};
_.q.getBaseUrl=function(A){return A.baseUrl||""};
_.nP.Object.defineProperties(AD.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.UD("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}}});
AD.prototype.onCompanionClicked=AD.prototype.onCompanionClicked;AD.prototype.dataChanged=AD.prototype.dataChanged;AD.JSC$21265_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.$r("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],AD.prototype,"data",void 0);_.E([_.ol("#title"),_.l("design:type",HTMLElement)],AD.prototype,"shopTitle",void 0);
_.E([_.s6("data.impressionEndpoints"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AD.prototype,"dataChanged",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],AD.prototype,"interactionLoggingClientData",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],AD.prototype,"onCompanionClicked",null);
_.E([_.O6({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],AD);
_.Q(AD,"ytd-shopping-companion-renderer",function(){if(PjI!==void 0)return PjI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return PjI=A},{mode:1});_.Sw(_.c(function(A){var H=A.data;A=_.NV({visibilityCallback:function(d){var W,z=(W=H().interaction)==null?void 0:W.onFirstVisible;d&&z&&_.mu(z)},
showOption:_.VY});var k=_.g9(function(){return H().interaction},i6G);
_.SC(function(){var d,W;W=(W=_.UD("yt.www.ads.eventcache.getLastCompanionData"))?(W=W())&&W.onLayoutVisibleCallback:null;(d=W)==null||d()},"Xj");
return _.x("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.lc(function(d){_.li(d.currentTarget,"yt-refit-popups-action")}),
el:_.P8(A,k),"aria-label":function(){var d,W;return(d=H().interaction)==null?void 0:(W=d.accessibility)==null?void 0:W.label}},_.x("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.x(_.HG,{data:function(){return H().adImage}},{adImageViewModel:function(d){return _.x(_.Ue,{data:d.data,
targetHeight:80,customCommandResolver:i6G})}})),_.x("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.x("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.x(_.HG,{data:function(){return H().adBadge}},{adBadgeViewModel:function(d){return _.x(_.ZY,{data:d.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.x("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.x(_.HG,{data:function(){return H().menu}},{buttonViewModel:_.U7}))))},"Yj"),"banner-image-layout-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;A=_.NV({visibilityCallback:function(d){var W,z=(W=H().interaction)==null?void 0:W.onFirstVisible;d&&z&&_.mu(z)},
showOption:_.VY});var k=_.g9(function(){return H().interaction},he_);
_.SC(function(){var d,W;W=(W=_.UD("yt.www.ads.eventcache.getLastCompanionData"))?(W=W())&&W.onLayoutVisibleCallback:null;(d=W)==null||d()},"Zj");
return _.x("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.P8(A,k)},_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.x(_.HG,{data:function(){return H().adImage}},{adImageViewModel:function(d){return _.x(_.Ue,{data:d.data,
targetHeight:80,customCommandResolver:he_})}})),_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.x(_.HG,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(d){return _.x(BPB,{data:d.data,
customCommandResolver:he_})}})),_.x(_.HG,{data:function(){return H().adButton}},{adButtonViewModel:function(d){return _.x(_.la,{data:d.data,
customCommandResolver:he_})}}),_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.x(_.HG,{data:function(){return H().menu}},{buttonViewModel:_.U7}))))},"$j"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Ih}});var G3_={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"},Hm=function(){var A=_.a.apply(this,arguments)||this;A.updateCompanionDataJobId=0;A.contentVideoId=null;A.player=null;A.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return A};
_.I(Hm,_.a);_.q=Hm.prototype;_.q.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:G3_}}};
_.q.attached=function(){var A=this,H=_.Kj();H&&H.getPlayerPromise().then(function(k){A.getCachedDataAndListen(k)})};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.q.updateRendererStamper=function(){var A={};if(this.data)for(var H in G3_)if(this.data[H]){A[H]=this.data[H];break}if(this.oneofRenderer!=void 0||Object.keys(A).length)this.oneofRenderer=A};
_.q.getCachedDataAndListen=function(A){var H=this.retrieveCachedCompanionData();H&&Object.keys(H).length&&this.receiveCompanionData(H);this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=A};
_.q.retrieveCachedCompanionData=function(){return _.k8.yt&&_.k8.yt.www&&_.k8.yt.www.ads&&_.k8.yt.www.ads.eventcache&&_.k8.yt.www.ads.eventcache.getLastCompanionData?_.k8.yt.www.ads.eventcache.getLastCompanionData():null};
_.q.receiveCompanionData=function(A){A&&Object.keys(A).length?(this.contentVideoId=A.contentVideoId,this.setCompanionData(A)):this.setCompanionData(A)};
_.q.setCompanionData=function(A){this.cancelPendingCompanionAdJobs();if(A){this.updateCompanionDataJobId=0;for(var H in G3_)G3_.hasOwnProperty(H)&&(this.data[H]=void 0);A.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",A.shoppingCompanionCarouselRenderer):A.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",A.imageCompanionAdRenderer):A.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",A.actionCompanionAdRenderer),_.li(this.hostElement,
"yt-hide-unlimited-offer-module"),_.li(this.hostElement,"yt-hide-tvfilm-offer-module")):A.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",A.bannerImageLayoutViewModel):A.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",A.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.q.dataChanged=function(){var A=this,H=_.Kj();H?H.getPlayerPromise().then(function(k){A.contentVideoId&&k.getVideoUrl().includes("v="+A.contentVideoId)||(A.cancelPendingCompanionAdJobs(),A.updateRendererStamper())}):_.lt(Error("Rl"))};
_.q.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.IE.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.q.handleCompanionAdClicked=function(A,H){this.player.onAdUxClicked(A,H);this.player.pauseVideo()};
Hm.prototype.dataChanged=Hm.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Hm.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Hm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],Hm.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Hm.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Hm.prototype,"oneofRenderer",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hm.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Hm);
_.Q(Hm,"ytd-companion-slot-renderer",function(){if(Ioe!==void 0)return Ioe;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Ioe=A},{mode:2});var F4e;var sS=function(){return _.a.apply(this,arguments)||this};
_.I(sS,_.a);sS.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
sS.prototype.dataChanged=sS.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],sS.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],sS.prototype,"companionSlotData",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sS.prototype,"dataChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],sS);
_.Q(sS,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(F4e!==void 0)return F4e;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return F4e=A},{mode:1});var XCB;var kD=function(){var A=_.a.apply(this,arguments)||this;A.skinnyMode=!1;A.COMPACT_EVENT_COUNT=4;A.onShelfToggleButtonTap=function(){A.logTap(A.data);A.showingMore=!A.showingMore};
A.onShelfToggleButtonFocus=function(){A.showingMore||(A.logTap(A.data),A.showingMore=!0,_.No(A,function(){var H=A.COMPACT_EVENT_COUNT-1,k;(k=_.Va(A.hostElement).querySelector("#event-"+H))==null||k.focus()}))};
return A};
_.I(kD,_.a);_.q=kD.prototype;_.q.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.q.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.q.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.nF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.nF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.nF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.nF(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.nF(this.infoTooltip,this.infoTooltip.hide))};
_.q.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.nF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.nF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.nF(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.nF(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.nF(this.infoTooltip,this.infoTooltip.hide))};
_.q.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)};
_.q.onShowingMoreChanged=function(){var A;this.showingMoreChanged((A=this.showingMore)!=null?A:!1)};
_.q.showingMoreChanged=function(A){var H=this.get("data.events")||[];this.set("restEvents",H.slice(1,A?H.length:this.COMPACT_EVENT_COUNT).map(function(k){return k.ticketEventRenderer}));
H.slice(0,A?H.length:this.COMPACT_EVENT_COUNT).forEach(function(k){var d=_.hx();k=k.ticketEventRenderer.trackingParams;_.ii()&&d&&k&&(k=_.db(k),d&&_.jc(d,k))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.q.computeAriaLabel=function(A){return A.subtitle1+", "+A.subtitle2};
_.q.logTap=function(A){_.ii()&&this.ytRendererBehavior.logExplicitClick(A)};
_.q.isKeyboardAction=function(A){return this.get("detail.x",A)===0&&this.get("detail.y",A)===0};
_.q.onFirstEventTap=function(A){A.target&&this.handleTap(A.target,this.firstEvent,this.isKeyboardAction(A))};
_.q.onTicketLinkTap=function(A){A.target&&this.handleTap(A.target,A.model.item,this.isKeyboardAction(A))};
_.q.handleTap=function(A,H,k){if(H.buttonCommand)if(H.hasMultipleOffers)Object.assign(_.L(H.buttonCommand,_.dN),{properties:{source:k?"keyboard":"tap"}}),this.logTap(H),this.popupPositionTarget=A,_.NT(this.hostElement,[H.buttonCommand],this.hostElement);else{var d;if((d=_.L(H.buttonCommand,_.KT))==null?0:d.url)this.logTap(H),_.rU(window,_.L(H.buttonCommand,_.KT).url)}};
kD.prototype.onShowingMoreChanged=kD.prototype.onShowingMoreChanged;kD.prototype.dataChanged=kD.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kD.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],kD.prototype,"firstEvent",void 0);_.E([_.C(),_.l("design:type",Object)],kD.prototype,"restEvents",void 0);_.E([_.C(),_.l("design:type",String)],kD.prototype,"imageUrl",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],kD.prototype,"showingMore",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],kD.prototype,"canShowMore",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],kD.prototype,"skinnyMode",void 0);_.E([_.C(),_.l("design:type",HTMLElement)],kD.prototype,"popupPositionTarget",void 0);_.E([_.ol("#banner-info-tooltip"),_.l("design:type",Object)],kD.prototype,"infoTooltip",void 0);
_.E([_.ol("#info-container"),_.l("design:type",HTMLElement)],kD.prototype,"infoContainer",void 0);_.E([_.ol("#shelf-toggler"),_.l("design:type",HTMLElement)],kD.prototype,"shelfToggleButton",void 0);_.E([_.ol("#separator"),_.l("design:type",HTMLDivElement)],kD.prototype,"separator",void 0);_.E([_.C(),_.l("design:type",String)],kD.prototype,"shelfTogglerLabelText",void 0);_.E([_.C(),_.l("design:type",String)],kD.prototype,"shelfTogglerIcon",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kD.prototype,"dataChanged",null);_.E([_.s6("showingMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kD.prototype,"onShowingMoreChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],kD);
_.Q(kD,"ytd-ticket-shelf-renderer",function(){if(XCB!==void 0)return XCB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return XCB=A},{mode:1});var DdB={};DdB.YtVisibilityRootBehavior=[_.ZpN.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.CC(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.pZ("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var A=_.pZ("INNERTUBE_CLIENT_NAME")!=="WEB";_.b("kevlar_use_vimio_behavior")&&A&&_.maA()}}];var di={};di.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(A){A.detail.contextProvider=this;A.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
DdB.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.YE();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(A){var H=this;this.pageCount+=1;_.b("kevlar_use_vimio_behavior")&&(_.pZ("INNERTUBE_CLIENT_NAME")==="WEB"?_.IE.addJob(function(){H.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(A)},
loadPage_:function(A){this.data=A},
ytPageBehaviorActiveObserver_:function(A){var H=this;_.b("kevlar_use_vimio_behavior")&&(A?_.pZ("INNERTUBE_CLIENT_NAME")==="WEB"?_.IE.addJob(function(){H.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(A){if(!this.setScrollTopJobId_){var H=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){H.setScrollTopJobId_=0;var k=_.wj().resolve(_.fZ(_.A8));k&&_.Kg(k);this.getPageScrollingElement().scrollTop=A}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.mN(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var STL;var Cj1;var K4V;var aoI;var Wm=function(){var A=_.a.apply(this,arguments)||this;A.originalQuery=null;A.originalEndpoint=null;return A};
_.I(Wm,_.a);Wm.prototype.computeShowOriginalQueryWithoutEndpoint_=function(A,H){return!(!A||H)};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Wm.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Wm.prototype,"correctedText",void 0);_.E([_.C(),_.l("design:type",Object)],Wm.prototype,"correctedQuery",void 0);_.E([_.C(),_.l("design:type",Object)],Wm.prototype,"correctedEndpoint",void 0);_.E([_.C(),_.l("design:type",Object)],Wm.prototype,"originalText",void 0);_.E([_.C(),_.l("design:type",Object)],Wm.prototype,"originalQuery",void 0);
_.E([_.C(),_.l("design:type",Object)],Wm.prototype,"originalEndpoint",void 0);_.E([_.C({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.l("design:type",Boolean)],Wm.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.E([_.h6({is:"yt-search-query-correction",disableElementRegistration:!0})],Wm);
_.Q(Wm,"yt-search-query-correction",function(){if(aoI===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;K4V===void 0&&(K4V=document.createElement("template"));var d=K4V;k.call(H,d.content.cloneNode(!0),A.content.firstChild);aoI=A}A=aoI;return A},{mode:2});_.uL("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var cRe=function(){return _.a.apply(this,arguments)||this};
_.I(cRe,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],cRe.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cRe.prototype,"data",void 0);_.E([_.h6({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],cRe);
_.Q(cRe,"yt-did-you-mean-renderer",function(){if(Cj1===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;STL===void 0&&(STL=document.createElement("template"));var d=STL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Cj1=A}A=Cj1;return A},{mode:2});var pCe;var Qz3;_.uL("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var VQR=function(){return _.a.apply(this,arguments)||this};
_.I(VQR,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],VQR.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],VQR.prototype,"data",void 0);_.E([_.h6({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],VQR);
_.Q(VQR,"yt-including-results-for-renderer",function(){if(Qz3===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;pCe===void 0&&(pCe=document.createElement("template"));var d=pCe;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Qz3=A}A=Qz3;return A},{mode:2});var ES_;var Ud_;_.uL("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var z1=function(){return _.a.apply(this,arguments)||this};
_.I(z1,_.a);z1.prototype.computeExtraClasses_=function(A,H){var k="";A&&(k+=" "+A.toLowerCase().replace(/_/g,"-"));H&&(k+=" "+H.toLowerCase().replace(/_/g,"-"));return k};
z1.prototype.computeUrlImg_=function(){var A=this.data;A.image&&(_.Va(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.C3(A.image.thumbnails,Number.MAX_VALUE)+")")};
z1.prototype.computeUrlImg_=z1.prototype.computeUrlImg_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],z1.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z1.prototype,"computeUrlImg_",null);_.E([_.h6({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],z1);
_.Q(z1,"yt-music-pass-feature-info-renderer",function(){if(Ud_===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;ES_===void 0&&(ES_=document.createElement("template"));var d=ES_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Ud_=A}A=Ud_;return A},{mode:2});var lo_;var tQV;_.uL("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var NP1=function(){return _.a.apply(this,arguments)||this};
_.I(NP1,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],NP1.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],NP1.prototype,"data",void 0);_.E([_.h6({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],NP1);
_.Q(NP1,"yt-no-results-found-showing-results-for-renderer",function(){if(tQV===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;lo_===void 0&&(lo_=document.createElement("template"));var d=lo_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);tQV=A}A=tQV;return A},{mode:2});var MQB;var nSL;_.uL("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var ZcL=function(){return _.a.apply(this,arguments)||this};
_.I(ZcL,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ZcL.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ZcL.prototype,"data",void 0);_.E([_.h6({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],ZcL);
_.Q(ZcL,"yt-results-without-quotes-renderer",function(){if(nSL===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;MQB===void 0&&(MQB=document.createElement("template"));var d=MQB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);nSL=A}A=nSL;return A},{mode:2});var foV;var wCV;_.uL("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var oSG=function(){return _.a.apply(this,arguments)||this};
_.I(oSG,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],oSG.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],oSG.prototype,"data",void 0);_.E([_.h6({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],oSG);
_.Q(oSG,"yt-search-no-results-renderer",function(){if(wCV===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;foV===void 0&&(foV=document.createElement("template"));var d=foV;k.call(H,d.content.cloneNode(!0),A.content.firstChild);wCV=A}A=wCV;return A},{mode:2});var $d1;var A4Q;_.uL("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var HeI=function(){return _.a.apply(this,arguments)||this};
_.I(HeI,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],HeI.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],HeI.prototype,"data",void 0);_.E([_.h6({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],HeI);
_.Q(HeI,"yt-showing-results-for-renderer",function(){if(A4Q===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;$d1===void 0&&($d1=document.createElement("template"));var d=$d1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);A4Q=A}A=A4Q;return A},{mode:2});var sJG;var kIL;_.uL("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var qD=function(){return _.a.apply(this,arguments)||this};
_.I(qD,_.a);
qD.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"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],qD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],qD.prototype,"data",void 0);_.E([_.h6({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],qD);
_.Q(qD,"yt-offer-item-expanded-renderer",function(){if(kIL===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;sJG===void 0&&(sJG=document.createElement("template"));var d=sJG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);kIL=A}A=kIL;return A},{mode:2});var dkL;var WYG;_.uL("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var ri=function(){return _.a.apply(this,arguments)||this};
_.I(ri,_.a);
ri.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"}}}}};
ri.prototype.computeFullWidthMode=function(A){return!(!A||!A.fullWidthMode)};
ri.prototype.computeBorderlessMode=function(A){return!(!A||!A.borderlessMode)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ri.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.l("design:type",Boolean)],ri.prototype,"fullWidthMode",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.l("design:type",Boolean)],ri.prototype,"borderlessMode",void 0);_.E([_.h6({is:"yt-offer-item-renderer",disableElementRegistration:!0})],ri);
_.Q(ri,"yt-offer-item-renderer",function(){if(WYG===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;dkL===void 0&&(dkL=document.createElement("template"));var d=dkL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);WYG=A}A=WYG;return A},{mode:2});var zzV;var qLB;_.uL("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var u0=function(){return _.a.apply(this,arguments)||this};
_.I(u0,_.a);u0.prototype.computeAriaLevel_=function(A){return this.getLevelID_(A)};
u0.prototype.getLevelID_=function(A){return(A=A.match(/[0-9]+$/))&&A.length==1?A[0]:"1"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],u0.prototype,"data",void 0);_.E([_.C({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.l("design:type",String)],u0.prototype,"ariaLevel",void 0);_.E([_.C({value:"heading",reflectToAttribute:!0}),_.l("design:type",String)],u0.prototype,"role",void 0);
_.E([_.C({value:-1,reflectToAttribute:!0}),_.l("design:type",Number)],u0.prototype,"tabindex",void 0);_.E([_.h6({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],u0);
_.Q(u0,"yt-subscription-product-header-renderer",function(){if(qLB===void 0){var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;zzV===void 0&&(zzV=document.createElement("template"));var d=zzV;k.call(H,d.content.cloneNode(!0),A.content.firstChild);qLB=A}A=qLB;return A},{mode:2});var r41;var uHM;_.uL("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Bm=function(){return _.a.apply(this,arguments)||this};
_.I(Bm,_.a);Bm.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:_.Bn("menuRenderer"),events:!0}}};
Bm.prototype.onStampFinished_=function(){_.Va(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Bm.prototype.onStampFinished_=Bm.prototype.onStampFinished_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Bm.prototype,"data",void 0);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bm.prototype,"onStampFinished_",null);
_.E([_.h6({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Bm);
_.Q(Bm,"yt-subscription-product-renderer",function(){if(uHM===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;r41===void 0&&(r41=document.createElement("template"));var d=r41;k.call(H,d.content.cloneNode(!0),A.content.firstChild);uHM=A}A=uHM;return A},{mode:2});var BQB;var ezB;_.uL("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var e9=function(){return _.a.apply(this,arguments)||this};
_.I(e9,_.a);e9.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
e9.prototype.imageScrimColorValuesChanged_=function(){var A,H=(A=this.data)==null?void 0:A.imageScrimColorValues;_.Va(this.hostElement).querySelector("#scrim").style.backgroundColor=H?_.h1(H[0]):"transparent"};
e9.prototype.imageScrimColorValuesChanged_=e9.prototype.imageScrimColorValuesChanged_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],e9.prototype,"data",void 0);
_.E([_.fF("data.imageScrimColorValues"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],e9.prototype,"imageScrimColorValuesChanged_",null);_.E([_.h6({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],e9);
_.Q(e9,"yt-subscription-product-upsell-offer-renderer",function(){if(ezB===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;BQB===void 0&&(BQB=document.createElement("template"));var d=BQB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);ezB=A}A=ezB;return A},{mode:2});var xkL;var iei;var hz_;var Oei;var RzB;var TQM;var xD=function(){return _.a.apply(this,arguments)||this};
_.I(xD,_.a);xD.prototype.onYtServiceRequestError_=function(A){_.YH(this.hostElement,A.detail.error.message)};
xD.prototype.onYtServiceRequestError_=xD.prototype.onYtServiceRequestError_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xD.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],xD.prototype,"collapsible",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],xD.prototype,"isManageRed",void 0);
_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xD.prototype,"onYtServiceRequestError_",null);_.E([_.h6({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],xD);
_.Q(xD,"yt-single-ypc-offer-renderer",function(){if(TQM===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;RzB===void 0&&(RzB=document.createElement("template"));var d=RzB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);TQM=A}A=TQM;return A},{mode:2});var i0=function(){return _.a.apply(this,arguments)||this};
_.I(i0,_.a);i0.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],i0.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],i0.prototype,"isManageRed",void 0);_.E([_.h6({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],i0);
_.Q(i0,"yt-single-ypc-offer-list-renderer",function(){if(Oei===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;hz_===void 0&&(hz_=document.createElement("template"));var d=hz_;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Oei=A}A=Oei;return A},{mode:2});var mkG;var J4L;_.uL("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var hD=function(){return _.a.apply(this,arguments)||this};
_.I(hD,_.a);hD.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],hD.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],hD.prototype,"isManageRed",void 0);_.E([_.h6({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],hD);
_.Q(hD,"yt-ypc-offers-list-renderer",function(){if(J4L===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;mkG===void 0&&(mkG=document.createElement("template"));var d=mkG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);J4L=A}A=J4L;return A},{mode:2});_.uL("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var OS=function(){return _.a.apply(this,arguments)||this};
_.I(OS,_.a);
OS.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}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],OS.prototype,"data",void 0);_.E([_.h6({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],OS);
_.Q(OS,"yt-unlimited-manage-subscription-page-renderer",function(){if(iei===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;xkL===void 0&&(xkL=document.createElement("template"));var d=xkL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);iei=A}A=iei;return A},{mode:2});var gWL;var beL;var RK=function(){return _.a.apply(this,arguments)||this};
_.I(RK,_.a);_.q=RK.prototype;_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.q.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.onKeypress_=function(A){A.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.q.handleHeaderTap_=function(A){A.preventDefault();A.stopPropagation();this.expandOffers_()};
_.q.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.q.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
RK.prototype.dataChanged_=RK.prototype.dataChanged_;_.E([_.P(_.fo),_.l("design:type",Object)],RK.prototype,"ironA11yKeysBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],RK.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],RK.prototype,"offersVisible_",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RK.prototype,"dataChanged_",null);_.E([_.h6({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],RK);
_.Q(RK,"yt-collapsible-ypc-offer-renderer",function(){if(beL===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;gWL===void 0&&(gWL=document.createElement("template"));var d=gWL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);beL=A}A=beL;return A},{mode:2});var LY1;var vW3;_.uL("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var T1=function(){return _.a.apply(this,arguments)||this};
_.I(T1,_.a);_.q=T1.prototype;_.q.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.q.dataChanged_=function(){if(this.data.backgroundImage){var A=_.C3(this.data.backgroundImage.thumbnails,screen.width),H=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=H?"linear-gradient(180deg, "+H+"), url("+A+")":"url("+A+")";this.data.gtmId&&_.W2(this.data.gtmId,_.pZ("GL",""))}};
_.q.onYtServiceRequestError_=function(A){_.YH(this.hostElement,A.detail.error.message)};
_.q.getScrimLayerColorStops_=function(){var A,H,k=(A=this.data.unlimitedHeaderV2Data)==null?void 0:(H=A.unlimitedHeaderV2Data)==null?void 0:H.scrimLayerColors;if(!k)return null;var d=100/k.length;return k.map(function(W,z){z*=d;return _.h1(W)+" "+z+"%"}).join(",")};
_.q.computeLogoWithPadding=function(A){var H,k,d;return(A=(H=A.unlimitedLogoImage)==null?void 0:(k=H.thumbnails)==null?void 0:(d=k[0])==null?void 0:d.height)&&A%31===0?!0:!1};
T1.prototype.onYtServiceRequestError_=T1.prototype.onYtServiceRequestError_;T1.prototype.dataChanged_=T1.prototype.dataChanged_;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.E([_.C({computed:"computeLogoWithPadding(data)"}),_.l("design:type",Boolean)],T1.prototype,"logoWithPadding",void 0);
_.E([_.C(),_.l("design:type",Object)],T1.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T1.prototype,"dataChanged_",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],T1.prototype,"onYtServiceRequestError_",null);_.E([_.h6({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],T1);
_.Q(T1,"yt-unlimited-page-header-renderer",function(){if(vW3===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;LY1===void 0&&(LY1=document.createElement("template"));var d=LY1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);vW3=A}A=vW3;return A},{mode:2});var y41;var jJR;_.uL("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var mz=function(){return _.a.apply(this,arguments)||this};
_.I(mz,_.a);mz.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mz.prototype,"data",void 0);_.E([_.h6({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],mz);
_.Q(mz,"yt-unlimited-user-notification-renderer",function(){if(jJR===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;y41===void 0&&(y41=document.createElement("template"));var d=y41;k.call(H,d.content.cloneNode(!0),A.content.firstChild);jJR=A}A=jJR;return A},{mode:2});var Ix1;var YL_;var PXB=function(){return _.a.apply(this,arguments)||this};
_.I(PXB,_.a);_.E([_.C(),_.l("design:type",Object)],PXB.prototype,"data",void 0);_.E([_.h6({is:"yt-alert-renderer",disableElementRegistration:!0})],PXB);
_.Q(PXB,"yt-alert-renderer",function(){if(YL_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Ix1===void 0&&(Ix1=document.createElement("template"));var d=Ix1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);YL_=A}A=YL_;return A},{mode:2});var ax_=function(A){_.dF.call(this);this.JSC$21353_watchApi=A;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;GI_(this);FY_(this);XQQ(this);DkR(this);SL_(this);CXG(this);KYQ(this)};
_.I(ax_,_.dF);var XQQ=function(A){var H=function(){_.b("kevlar_is_pupi_enabled")||JD(A)};
A.JSC$21353_watchApi.getRoot().addEventListener("yt-player-updated",H);A.addOnDisposeCallback(function(){A.JSC$21353_watchApi.getRoot().removeEventListener("yt-player-updated",H)})},SL_=function(A){if(_.b("kevlar_endscreen_auto_theater_mode")){var H=A.JSC$21353_watchApi.subscribeToActiveChanged(function(){c4I(A)},!1);
A.addOnDisposeCallback(H)}},GI_=function(A){var H,k,d,W,z;
_.e(function(u){if(u.nextAddress==1)return u.yield(A.JSC$21353_watchApi.playerApi,2);H=u.yieldResult;k=function(B){B=!!B;pQ_(A)&&(B=B?2:1,_.aD.getInstance().setState(B,!0,!1))};
d=function(B){B&&oBL(_.F3().getState())&&(_.Ud(A.JSC$21353_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),A.temporaryTheaterMode=!0)};
W=function(B){_.b("kevlar_player_update_autonav_on_new_data")&&B.type==="newdata"&&(_.b("kevlar_is_pupi_enabled")||JD(A))};
z=function(B){A.onPlayerStateChange(B)};
_.b("kevlar_endscreen_auto_theater_mode")&&H.addEventListener("onAutonavCancelled",d);H.addEventListener("onAutonavChangeRequest",k);H.addEventListener("onVideoDataChange",W);H.addEventListener("onStateChange",z);A.addOnDisposeCallback(function(){H.removeEventListener("onAutonavChangeRequest",k);H.removeEventListener("onVideoDataChange",W);H.removeEventListener("onStateChange",z);_.b("kevlar_endscreen_auto_theater_mode")&&H.removeEventListener("onAutonavCancelled",d)});
_.EN(u)})},FY_=function(A){A.JSC$21353_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){A.autonavCancelledBySignal=!0;
_.b("kevlar_is_pupi_enabled")||JD(A)});
A.JSC$21353_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(H,k,d){k&&JD(A,d)});
A.JSC$21353_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){pQ_(A)&&_.aD.getInstance().setState(2,!0,!0)});
A.JSC$21353_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){pQ_(A)&&_.aD.getInstance().setState(1,!0,!0)});
A.addOnDisposeCallback(function(){A.JSC$21353_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");A.JSC$21353_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");A.JSC$21353_watchApi.unregisterActionHandler("yt-enable-autoplay-command");A.JSC$21353_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},DkR=function(A){var H=A.JSC$21353_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){KYQ(A)}),k=A.JSC$21353_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){CXG(A)});
A.addOnDisposeCallback(function(){A.JSC$21353_watchApi.unsubscribeByKey(H);A.JSC$21353_watchApi.unsubscribeByKey(k)})},KYQ=function(A){A.autonavCancelledBySignal=!1;
_.b("kevlar_is_pupi_enabled")||JD(A)},CXG=function(A){var H=A.JSC$21353_watchApi.getWatchNextResponse(),k,d;
var W=(H=(d=_.L(H==null?void 0:(W=H.playerOverlays)==null?void 0:(k=W.playerOverlayRenderer)==null?void 0:k.autonavToggle,_.RbJ))==null?void 0:d.enabled)?2:1;_.b("kevlar_is_pupi_enabled")?_.aD.getInstance().setState(W,!1,!1):JD(A);_.b("web_persist_server_autonav_state_on_client")&&typeof H==="boolean"&&_.mEC(W===2)},pQ_=function(A){if(A.autonavCancelledBySignal)return!1;
var H,k,d,W;return!!((H=A.JSC$21353_watchApi.getWatchNextResponse())==null?0:(k=H.contents)==null?0:(d=k.twoColumnWatchNextResults)==null?0:(W=d.autoplay)==null?0:W.autoplay)};
ax_.prototype.onPlayerStateChange=function(A){if(A===0){A=!_.aD.getInstance().isAutoplaySetExplicitly();var H=this.JSC$21353_watchApi.getWatchNextResponse(),k,d,W,z;H=_.L(H==null?void 0:(k=H.contents)==null?void 0:(d=k.twoColumnWatchNextResults)==null?void 0:(W=d.autoplay)==null?void 0:(z=W.autoplay)==null?void 0:z.autoplayExplicitChoiceDialogRenderer,_.CVj);pQ_(this)&&A&&H&&_.n0.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:H},popupType:"DIALOG"}})}else c4I(this)};
var c4I=function(A){A.temporaryTheaterMode&&(A.temporaryTheaterMode=!1,_.Ud(A.JSC$21353_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},JD=function(A,H){H=H===void 0?!1:H;
var k;_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21353_watchApi.playerApi,2);k=d.yieldResult;pQ_(A)?k.setAutonavState(_.aD.getInstance().getState(),H):k.setAutonavState(1,H);_.EN(d)})};var QJB={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"};var EWR=function(A){_.dF.call(this);var H=this;this.JSC$21358_watchApi=A;var k=this.JSC$21358_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){V4i(H)});
this.addOnDisposeCallback(function(){H.JSC$21358_watchApi.unsubscribeByKey(k)});
V4i(this)};
_.I(EWR,_.dF);var V4i=function(A){var H=A.JSC$21358_watchApi.getPlayerResponse(),k=A.JSC$21358_watchApi.getWatchNextResponse();if(!_.x$V(H==null?void 0:H.playabilityStatus,k==null?void 0:k.playerOverlays)){var d;var W=H==null?void 0:(d=H.playabilityStatus)==null?void 0:d.errorScreen}A.JSC$21358_watchApi.provideRenderingData("ERROR_SCREEN",W)};var UkL=_.c(function(A){return _.x("yt-player-grid-renderer",{class:_.ER("ytPlayerGridRendererHost",A.className)},_.x(_.HG,{data:A.data},{lockupViewModel:function(H){return _.x(_.oW,{data:H.data,useOverlayStyling:!0})}}))},"ak");var lx_=_.c(function(A){var H=A.data;A=_.b("web_watch_video_details_hide_subtitle");var k=_.b("web_watch_video_details_single_line_title"),d=_.lc(function(){var B=H().onTap;B&&_.wj().resolve(_.J7).resolveCommand(B)}),W={},z={},u={};
return _.x("yt-player-overlay-video-details-renderer",{class:_.ER("ytPlayerOverlayVideoDetailsRendererHost",(W.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.b("web_watch_video_details_transparent_background"),W)),"on:click":d,role:"button"},_.x("h2",{class:_.ER("ytPlayerOverlayVideoDetailsRendererTitle",(z.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return k},z))},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:_.ER("ytPlayerOverlayVideoDetailsRendererSubtitle",
(u.ytPlayerOverlayVideoDetailsRendererHideSubtitle=A,u))},_.x(_.j$,{text:function(){return H().subtitle}})))},"bk");var gi={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},t4M=_.c(function(A){var H=A.data;var k=_.oy(_.h8),d=_.b("web_watch_action_bar_resize_buttons"),W=_.b("web_watch_video_action_dsdvb"),z=_.b("delhi_modern_web_player_icons")&&!_.b("enable_web_delhi_icons");A=_.b("delhi_modern_web_player_disable_frosted_glass");var u=_.b("delhi_modern_web_player_compact_video_actions_controls"),
B=_.b("web_player_quick_action_buttons_icon_only"),h=function(){var T=d&&!k(),m={};u?m.size="S":T&&(m.size="M");B&&(m.iconPosition="icon-only");if(Object.keys(m).length!==0)return m},O={};
return _.x("yt-player-quick-action-buttons",{class:_.ER("ytPlayerQuickActionButtonsHost",(O.ytPlayerQuickActionButtonsHostCompactControls=function(){return!k()||u},O.ytPlayerQuickActionButtonsHostDisableBackdropFilter=A,O))},_.x(_.Ix,{each:function(){var T=H();
if(z){T=JSON.parse(JSON.stringify(T));for(var m=_.r(T),J=m.next();!J.done;J=m.next()){var g=J.value,v=void 0;J=_.L((v=_.L(g,_.vp))==null?void 0:v.toggleButtonViewModel,_.jG);var y=void 0;v=_.L((y=_.L(g,_.yj))==null?void 0:y.toggleButtonViewModel,_.jG);y=_.L(g,_.vY);g=_.L(g,_.jG);if(J)v=_.L(J.defaultButtonViewModel,_.vY),J=_.L(J.toggledButtonViewModel,_.vY),v&&v.iconName&&(v.iconName=gi[v.iconName]),J&&J.iconName&&(J.iconName=gi[J.iconName]);else if(v)J=_.L(v.defaultButtonViewModel,_.vY),v=_.L(v.toggledButtonViewModel,
_.vY),J&&J.iconName&&(J.iconName=gi[J.iconName]),v&&v.iconName&&(v.iconName=gi[v.iconName]);else if(y)y.iconName&&(y.iconName=gi[y.iconName]);else if(g){J=_.L(g.defaultButtonViewModel,_.vY);v=_.L(g.toggledButtonViewModel,_.vY);g=void 0;if((g=J)==null?0:g.iconName)J.iconName=gi[J.iconName];J=void 0;if((J=v)==null?0:J.iconName)v.iconName=gi[v.iconName]}}}W&&(T=O6Q(T));return T}},function(T){return _.x(_.HG,{data:function(){return T}},{buttonViewModel:function(m){return _.x(_.U7,{data:m.data,
buttonOverrides:h})},
likeButtonViewModel:function(m){return _.x(_.gq,{data:m.data,buttonShapeOverrideables:h})},
dislikeButtonViewModel:function(m){return _.x(_.Jz,{data:m.data,buttonShapeOverrideables:h})},
toggleButtonViewModel:function(m){return _.x(_.qc,{data:m.data,buttonShapeOverrides:h})}})}))},"ck");var M4B=function(A){_.dF.call(this);var H=this;this.JSC$21366_watchApi=A;A=_.r(_.RV({},void 0,"NNzZMe"));this.quickActionsViewModel=A.next().value;this.setQuickActionsViewModel=A.next().value;A=_.r(_.RV({},void 0,"iORsec"));this.playerOverlayVideoDetailsRenderer=A.next().value;this.setPlayerOverlayVideoDetailsRenderer=A.next().value;A=_.r(_.RV([],void 0,"dektd"));this.lockupViewModels=A.next().value;this.setLockupViewModels=A.next().value;A=_.r(_.RV({},void 0,"Sp5Hqf"));this.commentsButton=A.next().value;
this.setCommentsButton=A.next().value;A=_.r(_.RV({},void 0,"yDAoue"));this.descriptionButton=A.next().value;this.setDescriptionButton=A.next().value;var k=this.JSC$21366_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NQV(H)});
this.addOnDisposeCallback(function(){H.JSC$21366_watchApi.unsubscribeByKey(k)});
NQV(this)};
_.I(M4B,_.dF);
var NQV=function(A){var H,k,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D,K,N,U,p,M,Z,WV,hA;_.e(function(qv){if(qv.nextAddress==1)return qv.yield(A.JSC$21366_watchApi.playerApi,2);H=qv.yieldResult;k=A.JSC$21366_watchApi.getWatchNextResponse();z=(d=k)==null?void 0:(W=d.playerOverlays)==null?void 0:W.playerOverlayRenderer;B=_.L((u=z)==null?void 0:u.fullscreenQuickActionsBar,_.h2G);(O=(h=A).setQuickActionsViewModel)==null||O.call(h,B||{});B&&nW1(A,H);J=(T=z)==null?void 0:(m=T.videoDetails)==null?void 0:m.playerOverlayVideoDetailsRenderer;
(v=(g=A).setPlayerOverlayVideoDetailsRenderer)==null||v.call(g,J||{});J&&ZeB(A,H);if(_.b("web_player_use_external_grid_component")){var eN=[],mr,Cl,pl,UC,hk=k==null?void 0:(mr=k.contents)==null?void 0:(Cl=mr.twoColumnWatchNextResults)==null?void 0:(pl=Cl.secondaryResults)==null?void 0:(UC=pl.secondaryResults)==null?void 0:UC.results;if(hk)for(mr=_.r(hk),Cl=mr.next();!Cl.done;Cl=mr.next())if(Cl=Cl.value,Cl.lockupViewModel)eN.push(Cl);else if(pl=void 0,(pl=Cl.itemSectionRenderer)==null?0:pl.contents)for(Cl=
_.r(Cl.itemSectionRenderer.contents),pl=Cl.next();!pl.done;pl=Cl.next())pl=pl.value,pl.lockupViewModel&&eN.push(pl);y=eN;(D=(X=A).setLockupViewModels)==null||D.call(X,y||[]);fxG(A,H)}N=_.L((K=z)==null?void 0:K.commentsButton,_.jG);(p=(U=A).setCommentsButton)==null||p.call(U,N||{});N&&wQL(A,H);Z=_.L((M=z)==null?void 0:M.descriptionButton,_.vY);(hA=(WV=A).setDescriptionButton)==null||hA.call(WV,Z||{});Z&&oW1(A,H);_.EN(qv)})},nW1=function(A,H){if(!A.quickActionButtonsContainer)if(H.setFullscreenQuickActions){A.quickActionButtonsContainer=
document.createElement("div");
H.setFullscreenQuickActions(A.quickActionButtonsContainer);var k=function(){return A.quickActionsViewModel().quickActionButtons||[]},d=_.DR(A.quickActionButtonsContainer,function(){return _.x(t4M,{data:k})},"dk");
A.addOnDisposeCallback(function(){H.setFullscreenQuickActions(void 0);d()})}else _.Pq(new _.Ti("setFullscreenQuickActions not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},ZeB=function(A,H){if(!A.playerOverlayVideoDetailsRendererContainer)if(H.setPlayerOverlayVideoDetailsRenderer){A.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
H.setPlayerOverlayVideoDetailsRenderer(A.playerOverlayVideoDetailsRendererContainer);var k=_.DR(A.playerOverlayVideoDetailsRendererContainer,function(){return _.x(lx_,{data:A.playerOverlayVideoDetailsRenderer})},"ek");
A.addOnDisposeCallback(function(){H.setPlayerOverlayVideoDetailsRenderer(void 0);k()})}else _.Pq(new _.Ti("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},fxG=function(A,H){if(!A.gridRendererContainer)if(H.setFullscreenGrid){A.gridRendererContainer=document.createElement("div");
H.setFullscreenGrid(A.gridRendererContainer);var k=_.DR(A.gridRendererContainer,function(){return _.x(UkL,{data:A.lockupViewModels})},"fk");
A.addOnDisposeCallback(function(){H.setFullscreenGrid(void 0);k()})}else _.Pq(new _.Ti("setFullscreenGrid not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},wQL=function(A,H){if(!A.commentsButtonContainer)if(H.setCommentsButton){A.commentsButtonContainer=document.createElement("div");
H.setCommentsButton(A.commentsButtonContainer);var k=_.DR(A.commentsButtonContainer,function(){return _.x(_.qc,{data:A.commentsButton})},"gk");
A.addOnDisposeCallback(function(){H.setCommentsButton(void 0);k()})}else _.Pq(new _.Ti("setCommentsButton not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},oW1=function(A,H){if(!A.descriptionButtonContainer)if(H.setDescriptionButton){A.descriptionButtonContainer=document.createElement("div");
H.setDescriptionButton(A.descriptionButtonContainer);var k=_.DR(A.descriptionButtonContainer,function(){return _.x(_.U7,{data:A.descriptionButton})},"hk");
A.addOnDisposeCallback(function(){H.setDescriptionButton(void 0);k()})}else _.Pq(new _.Ti("setDescriptionButton not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))};var b0=function(A){_.dF.call(this);var H=this;this.JSC$21372_watchApi=A;this.JSC$21372_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;A=_.dC(_.F3(),_.h8,function(k){H.onFullscreenChanged(k)});
this.addOnDisposeCallback(A);A=_.dC(_.F3(),$o,function(k){H.onWatchScroll(k)});
this.addOnDisposeCallback(A);_.b("kevlar_watch_while_v2")&&(A=_.dC(_.F3(),_.hr,function(k){$ke(H,k)}),this.addOnDisposeCallback(A));
AFR(this);HqG(this);sUB();this.onWatchScroll($o(_.F3().getState()));_.Q$("START_IN_FULL_WINDOW_MODE")&&this.JSC$21372_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.I(b0,_.dF);var AFR=function(A){A.JSC$21372_watchApi.registerActionHandler("yt-fullscreen-change-action",function(H){var k=A.JSC$21372_watchApi.isActive();H&&!k||_.F3().dispatch(_.p8({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!H}}))});
A.addOnDisposeCallback(function(){A.JSC$21372_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},HqG=function(A){var H,k;
_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21372_watchApi.playerApi,2);H=d.yieldResult;k=function(){A.onFullerscreenEduClicked()};
H.addEventListener("onFullerscreenEduClicked",k);A.addOnDisposeCallback(function(){H.removeEventListener("onFullerscreenEduClicked",k)});
_.EN(d)})};
b0.prototype.onFullscreenChanged=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return H.isFullscreen=!!_.S1(),d.yield(H.JSC$21372_watchApi.playerApi,2);k=d.yieldResult;H.JSC$21372_miniplayerActive||k.setFauxFullscreen(H.isFullscreen);if(A&&(H.JSC$21372_watchApi.focusOnPlayer(),!H.fullerscreenEduButtonShownThisPlayback)){H.fullerscreenEduButtonShownThisPlayback=!0;var W=_.r4("yt-fullerscreen-edu-button-shown-count")||0;_.qH("yt-fullerscreen-edu-button-shown-count",W+1,31536E3);
H.updateFullerscreenEduButtonSubtleModeState()}_.EN(d)})};
var $ke=function(A,H){var k;_.e(function(d){if(d.nextAddress==1)return A.JSC$21372_miniplayerActive=H,d.yield(A.JSC$21372_watchApi.playerApi,2);k=d.yieldResult;k.setFauxFullscreen(!A.JSC$21372_miniplayerActive&&A.isFullscreen);_.EN(d)})};
b0.prototype.onWatchScroll=function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1)return _.b("external_fullscreen_with_edu")?W.yield(H.JSC$21372_watchApi.playerApi,2):W.return();k=W.yieldResult;d=A<=0;H.shouldShowFullerscreenEdu!==d&&(H.shouldShowFullerscreenEdu=d,k.updateFullerscreenEduButtonVisibility(!H.shouldShowFullerscreenEdu));_.EN(W)})};
b0.prototype.onFullerscreenEduClicked=function(){this.JSC$21372_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var A=_.r4("yt-fullerscreen-edu-button-click-count")||0;_.qH("yt-fullerscreen-edu-button-click-count",A+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
b0.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var A=this,H,k,d,W,z,u;return _.e(function(B){if(B.nextAddress==1)return H=_.r4("yt-fullerscreen-edu-button-click-count")||0,k=_.r4("yt-fullerscreen-edu-button-shown-count")||0,d=_.H5("external_fullscreen_button_click_threshold"),W=_.H5("external_fullscreen_button_shown_threshold"),z=H>=d||k>=W,B.yield(A.JSC$21372_watchApi.playerApi,2);u=B.yieldResult;u.updateFullerscreenEduButtonSubtleModeState(z);_.EN(B)})};
b0.prototype.disposeInternal=function(){_.dF.prototype.disposeInternal.call(this);var A=_.S1();_.b("kevlar_exit_fullscreen_leaving_watch")&&A&&_.CH(A)};
var sUB=function(){if(_.b("web_watch_add_viewport_meta_tag")){var A=document.querySelector("meta[name=viewport]"),H=document.head;H&&!A&&(A=document.createElement("meta"),A.name="viewport",A.content="width=device-width, initial-scale=1.0, viewport-fit=cover",H.appendChild(A))}};var d7Q=function(A){_.dF.call(this);var H=this;this.JSC$21375_watchApi=A;this.jobId=0;this.pendingRequestId=void 0;var k=this.JSC$21375_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){k9V(H)});
this.addOnDisposeCallback(function(){H.JSC$21375_watchApi.unsubscribeByKey(k)});
k9V(this)};
_.I(d7Q,_.dF);var WQ3=function(A){_.IE.cancelJob(A.jobId);A.pendingRequestId=void 0},k9V=function(A){WQ3(A);
var H=ReG(A.JSC$21375_watchApi.getWatchNextResponse());if(H){var k=250,d,W=(d=_.L(H,_.OgZ))==null?void 0:d.initialDelayMs;_.b("web_watch_updated_metadata_server_initial_delay")&&W&&(k=W);A.jobId=_.IE.addLowPriorityJob(function(){return A.fetchUpdatedMetadata(H)},k)}};
d7Q.prototype.fetchUpdatedMetadata=function(A,H){var k=this,d,W,z,u,B,h,O,T,m,J,g,v,y,X,D;return _.e(function(K){switch(K.nextAddress){case 1:H&&(d={continuation:H});if(!_.b("web_get_updated_metadata_fantasy_panel_continuation_params")){K.jumpTo(2);break}W=_.wj().resolve(_.eZ);z="PAsports_fantasy";return K.yield(W.isVisible(z,!0),3);case 3:K.yieldResult&&(O=(B=(u=W).getUpdatePanelContinuationData)==null?void 0:(h=B.call(u,z))==null?void 0:h.updatePanelContinuationRequest)&&(d||(d={}),d.clientParams=
{panelContinuationParams:{panelContinuation:O}});case 2:T=_.wj().resolve(_.kI);if(!T)return _.I3(Error("Sl")),K.return();m={};k.pendingRequestId=m;return K.yield(_.I9(T,A,d),4);case 4:J=K.yieldResult;if(m!==k.pendingRequestId)return K.return();y=(g=J)==null?void 0:(v=g.continuation)==null?void 0:v.timedContinuationData;((X=y)==null?0:X.continuation)&&((D=y)==null?0:D.timeoutMs)&&(k.jobId=_.IE.addLowPriorityJob(function(){return k.fetchUpdatedMetadata(A,y.continuation)},y.timeoutMs));
_.EN(K)}})};
d7Q.prototype.disposeInternal=function(){_.dF.prototype.disposeInternal.call(this);WQ3(this)};var zy3=_.c(function(A){var H=_.lc(function(){var d=A.data().videoId;if(A.active())d=_.C8(d),_.wj().resolve(_.J7).resolveCommand(d);else{var W=A.playerApi(),z=W.getAvailableAudioTracks(),u,B,h=(u=A.sourceVideoConfig().audioTracks)==null?void 0:(B=u.find(function(O){return O.isDefaultForSource}))==null?void 0:B.id;
if(z=z.find(function(O){return O.getLanguageInfo().getId()===h}))W.setAudioTrack(z,!0),W.setCompositeParam({activeVideoId:d}),A.setActiveSourceId(d)}}),k={};
return _.x("ytw-composite-source-video-overlay",{class:_.ER("ytwCompositeSourceVideoOverlayHost",(k.ytwCompositeSourceVideoOverlayActive=A.active,k.ytwCompositeSourceVideoOverlayInteracting=A.interacting,k)),style:_.Mt({left:function(){var d;return((d=A.data().topLeftCornerX)!=null?d:0)*100+"%"},
top:function(){var d;return((d=A.data().topLeftCornerY)!=null?d:0)*100+"%"},
width:function(){var d;return((d=A.data().width)!=null?d:0)*100+"%"},
height:function(){var d;return((d=A.data().height)!=null?d:0)*100+"%"}}),
"on:click":H},_.x("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"ik");var qUQ=_.c(function(A){var H=_.r(_.C0(function(){var u,B=(u=A.data().sources)==null?void 0:u.find(function(h){return h.isActive});
if(B)return B.videoId})),k=H.next().value,d=H.next().value;
H=_.r(_.RV(!1,void 0,"rmRJ8d"));var W=H.next().value,z=H.next().value;return _.x("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.lc(function(){z(!0)}),
"on:mouseout":_.lc(function(){z(!1)})},_.x(_.R,{cond:function(){return A.data().sources},
then:function(u){return _.x(_.Ix,{each:u},function(B){return _.x(zy3,{data:B,active:function(){return B.videoId===k()},
setActiveSourceId:d,interacting:W,playerApi:A.playerApi,sourceVideoConfig:function(){return TKB(A.compositeVideoConfig(),B.videoId)}})})}}))},"jk");var BhG=function(A){_.dF.call(this);this.JSC$21390_watchApi=A;A=_.r(_.RV({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=A.next().value;this.setCompositeVideoOverlayRenderer=A.next().value;A=_.r(_.RV({},void 0,"OlaJpc"));this.compositeVideoConfig=A.next().value;this.setCompositeVideoConfig=A.next().value;rFL(this);u7L(this)};
_.I(BhG,_.dF);var rFL=function(A){var H=A.JSC$21390_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){u7L(A)});
A.addOnDisposeCallback(function(){A.JSC$21390_watchApi.unsubscribeByKey(H)})},ey_=function(A){var H;
return _.e(function(k){if(k.nextAddress==1)return k.yield(A.JSC$21390_watchApi.playerApi,2);H=k.yieldResult;H.setCompositeVideoOverlayRendererComponent(A.container);_.EN(k)})},x7L=function(A){var H;
return _.e(function(k){if(k.nextAddress==1)return k.yield(A.JSC$21390_watchApi.playerApi,2);H=k.yieldResult;H.setCompositeVideoOverlayRendererComponent(void 0);_.EN(k)})},iqL=function(A){var H,k;
return _.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21390_watchApi.playerApi,2);H=d.yieldResult;A.container=document.createElement("div");k=_.DR(A.container,function(){return _.x(qUQ,{data:A.compositeVideoOverlayRenderer,compositeVideoConfig:A.compositeVideoConfig,playerApi:H})},"kk");
A.addOnDisposeCallback(k);_.EN(d)})},u7L=function(A){var H,k,d,W,z,u,B,h;
_.e(function(O){return O.nextAddress==1?(H=A.JSC$21390_watchApi.getPlayerResponse(),z=_.L((k=H)==null?void 0:(d=k.overlay)==null?void 0:(W=d.playerControlsOverlayRenderer)==null?void 0:W.compositeVideoOverlay,dAG),h=(u=H)==null?void 0:(B=u.playerConfig)==null?void 0:B.compositeVideoConfig,z&&A.setCompositeVideoOverlayRenderer(z),h&&A.setCompositeVideoConfig(h),z&&h?A.container?O.jumpTo(6):O.yield(iqL(A),6):hyV(A)?O.yield(x7L(A),0):O.jumpTo(0)):hyV(A)?O.jumpTo(0):O.yield(ey_(A),0)})},hyV=function(A){var H;
return!((H=A.container)==null||!H.parentElement)};
BhG.prototype.disposeInternal=function(){hyV(this)&&x7L(this);_.dF.prototype.disposeInternal.call(this)};var JFR=function(A){_.dF.call(this);var H=this;this.JSC$21396_watchApi=A;var k=this.JSC$21396_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var d=H.JSC$21396_watchApi.getPlayerResponse();if(d){var W,z;if(d=_.L((W=d.endscreen)==null?void 0:(z=W.endscreenRenderer)==null?void 0:z.hideButton,_.jG)){var u;(u=H.setEndscreenHideButton)==null||u.call(H,d);OqQ(H)}}});
this.addOnDisposeCallback(function(){H.JSC$21396_watchApi.unsubscribeByKey(k)});
A=_.r(_.RV({},void 0,"ER3tqb"));this.endscreenHideButton=A.next().value;this.setEndscreenHideButton=A.next().value;RyV(this);ThV(this);m7_(this)};
_.I(JFR,_.dF);var OqQ=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return A.creatorEndscreenHideButtonContainer?d.return():d.yield(A.JSC$21396_watchApi.playerApi,2);H=d.yieldResult;A.creatorEndscreenHideButtonContainer=document.createElement("div");_.U9(A.creatorEndscreenHideButtonContainer,!1);H.setCreatorEndscreenHideButton(A.creatorEndscreenHideButtonContainer);k=_.DR(A.creatorEndscreenHideButtonContainer,function(){return _.x(_.qc,{data:A.endscreenHideButton,useOutlinedIcon:!0})},"lk");
A.addOnDisposeCallback(function(){k();var W;(W=H)==null||W.setCreatorEndscreenHideButton(void 0)});
_.EN(d)})},RyV=function(A){var H,k;
_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21396_watchApi.playerApi,2);H=d.yieldResult;k=function(){A.creatorEndscreenHideButtonContainer&&_.U9(A.creatorEndscreenHideButtonContainer,!0)};
H.addEventListener("endscreenelementshown",k);A.addOnDisposeCallback(function(){var W;(W=H)==null||W.removeEventListener("endscreenelementshown",k)});
_.EN(d)})},ThV=function(A){var H=function(){A.creatorEndscreenHideButtonContainer&&_.U9(A.creatorEndscreenHideButtonContainer,!1)},k=A.JSC$21396_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",H),d=A.JSC$21396_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",H);
A.addOnDisposeCallback(function(){A.JSC$21396_watchApi.unsubscribeByKey(k);A.JSC$21396_watchApi.unsubscribeByKey(d)})},m7_=function(A){A.JSC$21396_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(H){var k=_.L(H,PvM);
A.JSC$21396_watchApi.playerApi.then(function(d){d==null||d.setCreatorEndscreenVisibility(!!k.hide)})});
A.addOnDisposeCallback(function(){A.JSC$21396_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var bqI=function(A){_.dF.call(this);this.JSC$21402_watchApi=A;gbI(this)};
_.I(bqI,_.dF);var gbI=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21402_watchApi.playerApi,2);H=d.yieldResult;k=function(W){_.F3().dispatch(_.p8({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:W}}))};
H.addEventListener("onRetroModeChanged",k);A.addOnDisposeCallback(function(){H.removeEventListener("onRetroModeChanged",k)});
_.EN(d)})};var jL_=0,Wa=0,YK_=0;var LQ1=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),Lz=function(A){_.dF.call(this);this.JSC$21419_watchApi=A;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;vbV(this)};
_.I(Lz,_.dF);
var vbV=function(A){var H,k,d;_.e(function(W){if(W.nextAddress==1)return W.yield(A.JSC$21419_watchApi.playerApi,2);H=W.yieldResult;if(A.isDisposed())return W.return();A.sessionStorage=_.iG_("yt-sleep-timer");A.sessionStorage||_.Pq(new _.Ti("SessionStorage for Sleep Timer is undefined."));((k=A.sessionStorage)==null?void 0:k.get("yt-sleep-timer"))==="true"&&(FWR(),(d=A.sessionStorage)==null||d.remove("yt-sleep-timer"),H.syncVolume());yFR(A,H);jUI(A,H);Il_(A,H);_.EN(W)})},yFR=function(A,H){var k=function(O){A.onSleepTimerSettingsChanged(O,
H)},d=function(O){A.onPlayerStateChange(O,H)},W=function(){A.onLoopChange(H)},z=function(){A.onCloseMiniplayer(H)},u=function(){yde(H,(0,_.w2)(),XpG(H),A.selectedOption==="End of video",H.getPlayerState()!==1)},B=function(){A.onSeekComplete(H)},h=function(){_.IE.cancelJob(Wa);
var O=H.getCurrentTime()>=H.getDuration(),T=A.selectedOption==="End of video"||A.selectedOption==="End of playlist"&&!b6R(A.playlistId);O&&T&&YU_(A,H)};
H.addEventListener("onSleepTimerSettingsChanged",k);H.addEventListener("onLoopChange",W);H.addEventListener("onLoopRangeChange",W);H.addEventListener("onStateChange",d);H.addEventListener("onCloseMiniplayer",z);H.addEventListener("onSleepTimerFeatureAvailable",u);H.addEventListener("SEEK_COMPLETE",B);H.addEventListener("onAdStart",h);A.addOnDisposeCallback(function(){H.removeEventListener("onSleepTimerSettingsChanged",k);H.removeEventListener("onLoopChange",W);H.removeEventListener("onLoopRangeChange",
W);H.removeEventListener("onStateChange",d);H.removeEventListener("onCloseMiniplayer",z);H.removeEventListener("onSleepTimerFeatureAvailable",u);H.removeEventListener("SEEK_COMPLETE",B);H.removeEventListener("onAdStart",h)})},jUI=function(A,H){var k=A.JSC$21419_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var d=H.getVideoData().video_id,W,z=(W=Jde(A.JSC$21419_watchApi))==null?void 0:W.playlistId;
A.pauseAutonavPlayback&&(H.pauseVideo(),H.syncVolume(),A.pauseAutonavPlayback=!1);if(A.selectedOption==="End of video"&&d!==A.videoId)y1(A,H);else{if(A.selectedOption==="End of playlist"){W=b6R(A.playlistId);if(z!==A.playlistId){y1(A,H);break a}W?W&&PFG(A,H):G9B(A,H)}A.videoId=d;A.playlistId=z}}});
A.addOnDisposeCallback(function(){A.JSC$21419_watchApi.unsubscribeByKey(k)})},Il_=function(A,H){var k=_.wj().resolve(_.O7),d=_.dC(k,_.Pub,function(z){z&&A.selectedOption!=="Off"&&y1(A,H)}),W=A.JSC$21419_watchApi.subscribeToActiveChanged(function(z){var u,B;
return _.e(function(h){if(h.nextAddress==1)return h.yield(_.Hi().navigationFinishPromise,2);u=!_.Kkk();B=_.wj().resolve(_.L6).isMiniplayerActive();z||!meI(A.selectedOption)||B||u||y1(A,H);_.EN(h)})},!1);
k=_.dC(k,function(z){return z.entities.playlistLoopStateEntity||{}},function(z){z=z===void 0?{}:z;
var u=gcL(A.JSC$21419_watchApi);if(u){var B;((B=z[u])==null?void 0:B.state)==="PLAYLIST_LOOP_STATE_ALL"&&meI(A.selectedOption)&&y1(A,H)}});
A.addOnDisposeCallback(d);A.addOnDisposeCallback(k);A.addOnDisposeCallback(W)};
Lz.prototype.onSleepTimerSettingsChanged=function(A,H){switch(A){case "Off":this.selectedOption!=="Off"&&y1(this,H);break;case "End of video":case "End of playlist":FQe(this,A,H);break;default:FQe(this,A,H,LQ1.get(A))}};
Lz.prototype.onLoopChange=function(A){(A.getLoopVideo()||A.getLoopRange())&&meI(this.selectedOption)&&y1(this,A)};
Lz.prototype.onCloseMiniplayer=function(A){meI(this.selectedOption)&&y1(this,A)};
var FQe=function(A,H,k,d){XtI(A,k);A.selectedOption=H;A.videoId=k.getVideoData().video_id;A.playlistId="";var W;(W=A.sessionStorage)==null||W.set("yt-sleep-timer","true");A.adjustmentsCount++;yde(k,(0,_.w2)(),XpG(k),A.selectedOption==="End of video");if(A.selectedOption==="End of video")G9B(A,k),D7i(A,k);else if(A.selectedOption==="End of playlist"){D7i(A,k);var z,u;A.playlistId=(u=(z=Jde(A.JSC$21419_watchApi))==null?void 0:z.playlistId)!=null?u:"";b6R(A.playlistId)||G9B(A,k)}else d&&(A.presetFadeSchedulerId=
_.zV(_.IE,function(){PAM(k,15E3)},d-15E3),A.presetPauseSchedulerId=_.zV(_.IE,function(){YU_(A,k)},d),IsL(k,(0,_.w2)(),d))},YU_=function(A,H){if(A.JSC$21419_watchApi.isActive()){var k={dismissDialogEndpoint:{}};
var d={commandExecutorCommand:{commands:[k,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};k={buttonViewModel:{title:_.$r("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:k}}};d={buttonViewModel:{title:_.$r("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:d}}};var W={dialogHeaderViewModel:{headline:{content:_.$r("SLEEP_TIMER_ENDED_TITLE")}}},
z={basicContentViewModel:{paragraphs:[{text:{content:_.$r("SLEEP_TIMER_ENDED_TEXT")}}]}};k={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:W,content:z,footer:{panelFooterViewModel:{primaryButton:k,secondaryButton:d,shouldHideDivider:!0}}}}}}};_.wj().resolve(_.J7).resolveCommand(k,{form:{element:A}})}else FWR();SU_(A,!1);CFR(A,H);H.pauseVideo();_.aD.getInstance().getState()===2&&H.getPlayerState()===5&&(A.pauseAutonavPlayback=!0)},y1=function(A,H){SU_(A,!0);
CFR(A,H);FWR()},CFR=function(A,H){XtI(A,H);
A.selectedOption="Off";A.videoId="";A.playlistId="";A.adjustmentsCount=0;var k;(k=A.sessionStorage)==null||k.remove("yt-sleep-timer");_.IE.cancelJob(jL_);H.resetSleepTimerMenuSettings()},SU_=function(A,H){H={timer_length_adjustment_times_during_session:A.adjustmentsCount-1,
is_session_cancelled:H};switch(A.selectedOption){case "Off":H.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:H.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",H.option_duration_in_minutes=LQ1.get(A.selectedOption)/6E4}_.yr("sleepTimerSessionFinishEvent",H)};
Lz.prototype.onPlayerStateChange=function(A,H){A===1?yde(H,(0,_.w2)(),XpG(H),this.selectedOption==="End of video"):A===0?(_.IE.cancelJob(Wa),H.setVideoTimeLeft(vcB(0,0))):A===2&&_.IE.cancelJob(Wa);this.selectedOption==="End of video"?A===0?YU_(this,H):A===2&&GsI(H):this.selectedOption!=="End of playlist"||b6R(this.playlistId)||(A===0?YU_(this,H):A===2&&GsI(H))};
Lz.prototype.onSeekComplete=function(A){A.getPlayerState()===2&&yde(A,(0,_.w2)(),XpG(A),this.selectedOption==="End of video",!0)};
Lz.prototype.onCueRangeEnter=function(A,H){A==="sleep-timer-fade-audio"&&PAM(H,(H.getDuration()-H.getProgressState().current)*1E3)};
Lz.prototype.onCueRangeExit=function(A,H){A==="sleep-timer-fade-audio"&&H.getPlayerState()!==0&&GsI(H,!0)};
var G9B=function(A,H){H.addCueRange("sleep-timer-fade-audio",H.getDuration()-15,H.getDuration());H.addEventListener("onCueRangeEnter",function(k){A.onCueRangeEnter(k,H)});
H.addEventListener("onCueRangeExit",function(k){A.onCueRangeExit(k,H)})},PFG=function(A,H){H.removeCueRange("sleep-timer-fade-audio");
H.removeEventListener("onCueRangeEnter",function(k){A.onCueRangeEnter(k,H)});
H.removeEventListener("onCueRangeExit",function(k){A.onCueRangeExit(k,H)})},XtI=function(A,H){meI(A.selectedOption)?PFG(A,H):(_.IE.cancelJob(A.presetPauseSchedulerId),_.IE.cancelJob(A.presetFadeSchedulerId),A.presetPauseSchedulerId=0,A.presetFadeSchedulerId=0);
GsI(H,!0)},D7i=function(A,H){H.setLoop(!1);
H.setLoopVideo(!1);H.setLoopRange(null);(A=gcL(A.JSC$21419_watchApi))&&_.wj().resolve(_.O7).dispatch(_.kH("playlistLoopStateEntity",A,{key:A,state:"PLAYLIST_LOOP_STATE_NONE"}))};var QUR=function(A){_.dF.call(this);var H=this;this.JSC$21422_watchApi=A;_.b("web_watch_force_start_in_theater_mode")&&KQ1(this,!0,!1);alQ(this);cFR(this);pt1(this);var k=this.JSC$21422_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.H5("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.x6.get("wide",void 0)==="1"&&_.iC("wide","1",_.H5("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){H.JSC$21422_watchApi.unsubscribeByKey(k)});
A=A.getRoot();if(A.is==="ytd-watch-flexy"||A.is==="ytd-watch-grid")A.onTheaterReduxValueUpdate(this.getState());this.getState()&&u3Q();_.b("web_watch_log_theater_mode_cookie_state")&&_.x6.get("wide","0")==="1"&&_.ZcI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.I(QUR,_.dF);var alQ=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21422_watchApi.playerApi,2);H=d.yieldResult;k=function(W){KQ1(A,!!W)};
H.addEventListener("SIZE_CLICKED",k);A.addOnDisposeCallback(function(){H.removeEventListener("SIZE_CLICKED",k)});
_.EN(d)})},cFR=function(A){A.JSC$21422_watchApi.registerActionHandler("yt-toggle-theater-mode",function(H,k){KQ1(A,H,k===void 0?!0:k)});
A.addOnDisposeCallback(function(){A.JSC$21422_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
QUR.prototype.getState=function(){return _.iL(_.F3().getState())};
var KQ1=function(A,H,k){k=k===void 0?!0:k;var d,W,z,u=_.b("enable_player_resize_transition")&&!!A.JSC$21422_watchApi.getWatchNextResponse()&&!((d=A.JSC$21422_watchApi.getWatchNextResponse())==null?0:(W=d.contents)==null?0:(z=W.twoColumnWatchNextResults)==null?0:z.conversationBar);H2L(function(){_.F3().dispatch(_.p8({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:H}}));_.b("theater_mode_scroll_to_top_killswitch")||A.JSC$21422_watchApi.scrollWatchTo(0,!1);_.S1()&&_.b("external_fullscreen")&&_.CH(document.documentElement);
pt1(A);k&&_.iC("wide",H?"1":"0",_.H5("theater_mode_cookie_max_age_seconds",-1));_.Ud(A.JSC$21422_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);A.JSC$21422_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:H});H&&u3Q()},{shouldWrap:u})},pt1=function(A){var H;
_.e(function(k){if(k.nextAddress==1)return k.yield(A.JSC$21422_watchApi.playerApi,2);H=k.yieldResult;H.setSizeStyle(!0,A.getState());_.EN(k)})};var U7B=function(A){_.dF.call(this);var H=this;this.playerApi=A;this.timeToPanelSyncKeyMap={};var k;if(A==null?0:(k=A.isReady)==null?0:k.call(A)){k=_.dC(_.wj().resolve(_.O7),function(W){return W.entities.timedMarkersListSyncEntity||{}},function(W,z){W=W===void 0?{}:W;
z=z===void 0?{}:z;for(var u=_.r(Object.keys(z)),B=u.next();!B.done;B=u.next())B=B.value,W[B]!==z[B]&&VHQ(H,z[B]);z=_.r(Object.keys(W));for(u=z.next();!u.done;u=z.next())u=u.value,B=W[u],H.timeToPanelSyncKeyMap[u]&&Eb1(H,B)});
this.addOnDisposeCallback(k);var d=function(W){H.onCueRangeEnter(W)};
A.addEventListener("onCueRangeEnter",d);this.addOnDisposeCallback(function(){var W;(W=A.removeEventListener)==null||W.call(A,"onCueRangeEnter",d)})}};
_.I(U7B,_.dF);
var Eb1=function(A,H){var k,d;if((k=A.playerApi)==null?0:(d=k.isReady)==null?0:d.call(k)){var W;if((k=H==null?void 0:(W=H.timedListData)==null?void 0:W.sections)&&H!=null&&H.key)for(W=_.r(k),k=W.next();!k.done;k=W.next())if(k=k.value,k.timedSyncDataList&&k.sectionId)for(d=0;d<k.timedSyncDataList.length;d++){var z=k.timedSyncDataList[d];z.syncItemId&&A.playerApi.addCueRange(k.sectionId+"_"+H.key+"_"+z.syncItemId,Number(z.videoTimeMs)/1E3,d===k.timedSyncDataList.length-1?0x8000000000000:Number(k.timedSyncDataList[d+
1].videoTimeMs)/1E3)}}},VHQ=function(A,H){var k,d;
if((k=A.playerApi)==null?0:(d=k.isReady)==null?0:d.call(k)){var W;if((k=H==null?void 0:(W=H.timedListData)==null?void 0:W.sections)&&H!=null&&H.key)for(W=_.r(k),k=W.next();!k.done;k=W.next())if(k=k.value,k.timedSyncDataList&&k.sectionId){d=_.r(k.timedSyncDataList);for(var z=d.next();!z.done;z=d.next())z=z.value,z.syncItemId&&A.playerApi.removeCueRange(k.sectionId+"_"+H.key+"_"+z.syncItemId)}}};
U7B.prototype.onCueRangeEnter=function(A){for(var H=_.r(Object.keys(this.timeToPanelSyncKeyMap)),k=H.next();!k.done;k=H.next()){k=k.value;var d=_.r(A.split("_"+k+"_")),W=d.next().value;d=d.next().value;if(W&&d){A=_.wj().resolve(_.O7);H=this.timeToPanelSyncKeyMap[k];var z=_.ajm(A.getState(),H);k=llL(k,W,d);if(k===-1)break;k={activeSyncId:d,activeItemIndex:k,activeSectionInfo:{sectionIdentifier:W}};z?A.dispatch(_.O5("markersEngagementPanelSyncEntity",H,k)):A.dispatch(_.kH("markersEngagementPanelSyncEntity",
H,Object.assign({},{key:H},k)));break}}};
var llL=function(A,H,k){var d=_.wj().resolve(_.O7),W,z;A=(W=tcV(d.getState(),A))==null?void 0:(z=W.timedListData)==null?void 0:z.sections;if(!A)return-1;W=0;z=_.r(A);for(A=z.next();!A.done;A=z.next()){A=A.value;d=A.timedSyncDataList||[];if(A.sectionId===H)return H=d.findIndex(function(u){return u.syncItemId===k}),H===-1?H:W+H;
W+=d.length}return-1};var MHR=function(A){_.dF.call(this);var H=this;this.JSC$21436_watchApi=A;this.unresolvedCommands=[];this.JSC$21436_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(k){tHG(H,k)});
this.addOnDisposeCallback(function(){H.JSC$21436_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
Nh3(this)};
_.I(MHR,_.dF);var Nh3=function(A){var H;_.e(function(k){if(k.nextAddress==1)return k.yield(A.JSC$21436_watchApi.playerApi,2);H=k.yieldResult;if(A.isDisposed())return k.return();A.timedSyncObserver=new U7B(H);A.unresolvedCommands.length&&(A.unresolvedCommands.forEach(function(d){return tHG(A,d)}),A.unresolvedCommands=[]);
_.ZL(A,A.timedSyncObserver);_.EN(k)})},tHG=function(A,H){if(A.timedSyncObserver){var k=_.L(H,SqM);
if(k&&k.timedSyncEntityKey&&k.panelSyncEntityKey){A=A.timedSyncObserver;H=k.timedSyncEntityKey;var d=k.panelSyncEntityKey;k=!!k.isEnabled;k=k===void 0?!0:k;var W=_.wj().resolve(_.O7);W=tcV(W.getState(),H);k?A.timeToPanelSyncKeyMap[H]||(A.timeToPanelSyncKeyMap[H]=d,Eb1(A,W)):(delete A.timeToPanelSyncKeyMap[H],VHQ(A,W))}}else A.unresolvedCommands.push(H)};var nbQ=_.c(function(A){var H=A.data,k=A.maybeLogSmartSkipClientData,d=null,W=null,z=_.b("web_enable_auto_focus_for_timely_action_button"),u=function(){d=document.activeElement},B=function(){H().smartSkipMetadata&&(d=document.activeElement,_.RjI(function(){return W}))},h=function(T){if(H().smartSkipMetadata&&(!T||T.key!=="Enter")){d&&d.isConnected&&(_.RjI(function(){return d}),d=null);
var m;(m=W)==null||m.blur()}};
A=_.lc(function(){k==null||k(!0,H());return!1});
var O=_.P8(_.OF(function(){return H().rendererContext},{onTap:function(T,m){m({disableClickTracking:!0})}}),_.NV({visibilityCallback:function(T){if(z)T?W&&H().smartSkipMetadata&&(B(),document.addEventListener("focusin",u)):(document.removeEventListener("focusin",u),h());
else if(T){T=_.i2(H().rendererContext);var m=Number(H().maxVisibleDurationMilliseconds),J,g=(J=_.L(H().rendererContext,_.zF))==null?void 0:J.label;T&&m&&g&&(J={label:g,command:T,durationMs:m},_.wj().resolve(_.b_).enqueue(J))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.Sp(function(){if(z){var T;if((W=(T=O.value)==null?void 0:T.querySelector("button"))&&H().smartSkipMetadata){var m;(m=O.value)==null||m.addEventListener("keydown",h)}}});
_.aV(function(){z&&(W&&H().smartSkipMetadata&&W.removeEventListener("keydown",h),document.removeEventListener("focusin",u),h())});
return _.x("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:O,"on:click":A},_.x(_.HG,{data:function(){return H().content}},{buttonViewModel:_.U7}))},"nk");var ZqB=_.c(function(A){var H=A.data,k=A.playerApi,d=_.wj().resolve(_.eCI);A=_.r(_.C0(function(){H()}));
var W=A.next().value,z=A.next().value,u=function(){return CAe(H(),W())},B=function(O,T){var m,J,g=(m=_.L(T==null?void 0:T.rendererContext,_.H8))==null?void 0:(J=m.loggingDirectives)==null?void 0:J.trackingParams;
if((T=T==null?void 0:T.smartSkipMetadata)&&T.loggingData&&(J=T.loggingData,T=J.algorithmId,m=J.startMilliseconds,J=J.endMilliseconds,T&&m!==void 0&&J!==void 0)){var v,y;O={smartSkipData:Object.assign({},{versionName:T,startMediaTimeMs:m,endMediaTimeMs:J},O&&{userInteractionMediaTimeMs:(Math.floor(((v=_.Kj())==null?void 0:(y=v.getPlayer())==null?void 0:y.getCurrentTime())||0)*1E3).toString()})};v=_.hx();var X;g&&(X=_.db(g));v&&X&&_.Fp(v,X,O)}},h=function(O,T){var m=CAe(H(),O);
if(m){var J=_.L(m,SK_),g;if(g=T)g=k(),m=_.L(m,SK_),g=m!=null&&m.smartSkipMetadata?!(g==null?0:g.isSameMarkerTypeVisible((m==null?void 0:m.smartSkipMetadata.markerKey)||"")):!0;if(g){var v,y;(J==null?0:(v=J.smartSkipMetadata)==null?0:(y=v.loggingData)==null?0:y.isCounterfactual)||(B(!1,J),z(O))}else T||W()!==O||z(void 0)}};
_.CA(function(){var O=H().timelyActions;if(O){O=_.r(O);for(var T=O.next();!T.done;T=O.next()){T=_.L(T.value,SK_);var m=void 0;(m=T)!=null&&m.cueRangeId&&d.timelyActionsMap.set(T.cueRangeId,h)}_.aV(function(){d.timelyActionsMap.clear()})}},"l2RtC");
return _.x("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.x(_.HG,{data:u},{timelyActionViewModel:function(O){return _.x(nbQ,{data:O.data,maybeLogSmartSkipClientData:function(){B(!0,_.L(u(),SK_))}})}}))},"pk");var wte=function(A){_.dF.call(this);this.JSC$21449_watchApi=A;A=_.r(_.RV({},void 0,"UN7k5e"));this.timelyActionsOverlay=A.next().value;this.setTimelyActionsOverlay=A.next().value;fl_(this)};
_.I(wte,_.dF);var fl_=function(A){var H,k,d,W;_.e(function(z){if(z.nextAddress==1)return obQ(A),$7i(A),A.timelyActionsContainer=document.createElement("div"),z.yield(A.JSC$21449_watchApi.playerApi,2);H=z.yieldResult;(d=(k=H).insertTimelyActionUi)==null||d.call(k,A.timelyActionsContainer);W=_.DR(A.timelyActionsContainer,function(){return _.x(ZqB,{data:A.timelyActionsOverlay,playerApi:H})},"qk");
A.addOnDisposeCallback(W);_.EN(z)})},$7i=function(A){var H=A.JSC$21449_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){obQ(A)});
A.addOnDisposeCallback(function(){A.JSC$21449_watchApi.unsubscribeByKey(H)})},obQ=function(A){var H=A.JSC$21449_watchApi.getWatchNextResponse();
if(H){var k,d;if(H=_.L((k=H.playerOverlays)==null?void 0:(d=k.playerOverlayRenderer)==null?void 0:d.timelyActionsOverlayViewModel,aBB)){var W;(W=A.setTimelyActionsOverlay)==null||W.call(A,H)}}};var HzV=function(A){_.dF.call(this);this.JSC$21453_watchApi=A;AD_(this)};
_.I(HzV,_.dF);var AD_=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21453_watchApi.playerApi,2);H=d.yieldResult;k=function(W){_.n0.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.L(W,M6I)},popupType:"TOAST"}})};
H.addEventListener("onYtShowToast",k);A.addOnDisposeCallback(function(){H.removeEventListener("onYtShowToast",k)});
_.EN(d)})};var sKV=function(A){var H=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.lk;this.element.addEventListener("load",function(){H.loaded=!0;H.resolver.resolve(H.element)});
this.element.addEventListener("error",function(){H.failed=!0});
this.element.src=A};var k1V=function(A,H){this.image=A;this.frame=H};
k1V.prototype.drawToCanvas=function(A,H){var k=this.frame.width/this.frame.columns,d=this.frame.height/this.frame.rows,W=H.offsetX,z=H.offsetY;KWI(H)?(A.fillStyle=H.fullscreen?"#000":"#0f0f0f",A.fillRect(W,z,(H==null?void 0:H.width)||k,(H==null?void 0:H.height)||d)):A.drawImage(this.image,this.frame.column*k,this.frame.row*d,k,d,W,z,(H==null?void 0:H.width)||k,(H==null?void 0:H.height)||d)};
var dDe=function(A){this.color=A};
dDe.prototype.drawToCanvas=function(A,H){var k=H.offsetX,d=H.offsetY,W=H.width,z=H.height;A.fillStyle=KWI(H)?H.fullscreen?"#000":"#0f0f0f":this.color;A.fillRect(k,d,W,z)};var j9=function(A,H){FT.call(this);this.playerApi=H;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Xt(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Wze(this,A);zlL(this);this.update()};
_.I(j9,FT);j9.prototype.addEventListeners=function(){var A=this,H=function(){A.update()},k=function(W){A.paused||(W.type==="newdata"&&(A.mosaics.clear(),qSB(A),IK(A)),zlL(A),A.update())},d=function(){A.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",H);this.playerApi.addEventListener("onVideoDataChange",k);this.playerApi.addEventListener("onStateChange",d);this.addOnDisposeCallback(function(){A.playerApi.removeEventListener("onVideoProgress",H);A.playerApi.removeEventListener("onVideoDataChange",k);A.playerApi.removeEventListener("onStateChange",d)})};
var Wze=function(A,H){A.cinematicContainerRenderer!==H&&(A.cinematicContainerRenderer=H,qSB(A),IK(A),A.colorStoreUpdateJobId=_.IE.addLowPriorityJob(function(){var k;if((k=A.cinematicContainerRenderer.colorStore)!=null&&k.sampledColors){k=Infinity;for(var d=_.r(A.cinematicContainerRenderer.colorStore.sampledColors),W=d.next();!W.done;W=d.next()){W=W.value;var z=Number(W.key);z!==0&&z<k&&(k=z);z=_.h1(W.value);A.colorStore.set(W.key,z)}A.colorStoreTimeInterval=k}}))},qSB=function(A){A.colorStoreUpdateJobId&&
(_.IE.cancelJob(A.colorStoreUpdateJobId),A.colorStoreUpdateJobId=void 0);
A.colorStore.clear();A.currentStoryboardColor=void 0},rDR=function(A,H){var k;
return(k=A.getStoryboardFrame(H))==null?void 0:k.url};
j9.prototype.onPlayerStateChange=function(){this.update()};
j9.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var zlL=function(A){var H=A.getStoryboardFrame(0);H&&(H=new _.Xt(H.width/H.columns,H.height/H.rows),hd3(A.currentStoryboardSize,H)||(A.currentStoryboardSize=H,A.publish("STORYBOARD_SIZE_CHANGED",A.currentStoryboardSize)))},uvM=function(A,H){A.currentStoryboardIndex=H;
A.pendingStoryboardIndex=NaN;H=A.getStoryboardFrame(A.currentStoryboardIndex);A.currentStoryboard=new k1V(A.mosaics.get(H.url).element,H);A.publish("STORYBOARD_CHANGED",A.currentStoryboard);A.lastUpdateTime=(0,_.w2)()};
j9.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var IK=function(A){A.currentStoryboardIndex=NaN;A.pendingStoryboardIndex=NaN;A.currentStoryboard&&(A.currentStoryboard=void 0,A.publish("STORYBOARD_CHANGED",void 0));A.lastUpdateTime=NaN};
j9.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)IK(this);else{var A=this.playerApi.getPlayerState(1);if(A===-1||A===5||A===0)IK(this);else if(isNaN(this.lastUpdateTime)||!((0,_.w2)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(A=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){A=""+Math.round(A*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var H=this.colorStore.get(A);H?H!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=H,this.currentStoryboard=new dDe(H),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.w2)()):(_.Pq(new _.Ti("Could not find color for timestamp: "+A,this.cinematicContainerRenderer)),IK(this))}else IK(this);else BiL(this,A)}};
var BiL=function(A,H){var k=A.getStoryboardFrameIndex(H);if(k!==A.currentStoryboardIndex&&k!==A.pendingStoryboardIndex){H=rDR(A,k);var d=A.mosaics.get(H);d?d.loaded&&uvM(A,k):(A.pendingStoryboardIndex=k,k=new sKV(H),A.mosaics.set(H,k),k.resolver.promise.then(function(){if(!A.isDisposed()&&!A.paused&&!isNaN(A.pendingStoryboardIndex)){var W=rDR(A,A.pendingStoryboardIndex);if(W){var z;(z=A.mosaics.get(W))!=null&&z.loaded&&uvM(A,A.pendingStoryboardIndex)}else IK(A)}}))}};
j9.prototype.getStoryboardFrameIndex=function(A){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(A,H)};
j9.prototype.getStoryboardFrame=function(A){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,k,d;return((d=(k=this.playerApi).getStoryboardFrame)==null?void 0:d.call(k,A,H))||null};
j9.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Pm=function(A,H,k,d){d=d===void 0?!1:d;_.dF.call(this);this.cinematicContainerRenderer=H;this.playerApi=k;this.theater=this.fullscreen=!1;var W;this.ambientLightThemeEnabled=!d&&!!(H==null?0:(W=H.config)==null?0:W.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=d)&&!0;this.container=document.createElement("div");A.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);el_(this);this.backCanvas=
asR();this.frontCanvas=asR();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new j9(H,this.playerApi);_.ZL(this,this.storyboardManager);this.addEventListeners();xDR(this)?izB(this,100+YD(this)*3*2,100+YD(this)*3*2):hlV(this);OzV(this,this.storyboardManager.currentStoryboard)};
_.I(Pm,_.dF);
var el_=function(A){var H=A.playerApi.getVideoAspectRatio();_.YX(A.container,{"aspect-ratio":""+H,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var k;var d;if((A.fullscreen||A.theater)&&((k=A.cinematicContainerRenderer.config)==null?0:(d=k.watchFullscreenConfig)==null?0:d.colorSourceWidthMultiplier))k=A.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var W;k=(W=
A.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?W:A.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var z,u;if((A.fullscreen||A.theater)&&((z=A.cinematicContainerRenderer.config)==null?0:(u=z.watchFullscreenConfig)==null?0:u.colorSourceHeightMultiplier))W=A.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var B;W=(B=A.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?B:A.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.YX(A.innerContainer,
{"aspect-ratio":""+H,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+k+", "+W+")"});cdQ()&&_.YX(A.innerContainer,"filter","blur("+_.H5("cinematic_watch_css_filter_blur_strength",40)+"px)")};
Pm.prototype.setFullscreen=function(A,H){this.fullscreen=A;this.theater=!!H;el_(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),A=this.storyboardManager.currentStoryboard,RlV(this),A&&Ti1(this,A)};
Pm.prototype.addEventListeners=function(){var A=this,H=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(W){OzV(A,W)}),k=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){hlV(A)});
this.addOnDisposeCallback(function(){A.storyboardManager.unsubscribeByKey(H);A.storyboardManager.unsubscribeByKey(k)});
var d=function(){el_(A)};
this.playerApi.addEventListener("onVideoDataChange",d);this.addOnDisposeCallback(function(){A.playerApi.removeEventListener("onVideoDataChange",d)})};
var hlV=function(A){if(!xDR(A)){var H=A.storyboardManager.currentStoryboardSize;isNaN(H.width)||isNaN(H.height)||izB(A,Number(H.width)+YD(A)*3*2,Number(H.height)+YD(A)*3*2)}},izB=function(A,H,k){A.backCanvas.element.width=H;
A.backCanvas.element.height=k;A.frontCanvas.element.width=H;A.frontCanvas.element.height=k},xDR=function(A){return A.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},OzV=function(A,H,k){k=k===void 0?!1:k;
var d=A.frontCanvas.element.getAnimations()[0];d?(d.pause(),A.backCanvas.context.globalAlpha=Number(getComputedStyle(A.frontCanvas.element).opacity),A.frontCanvas.element.style.opacity="0",d.finish()):A.backCanvas.context.globalAlpha=1;A.backCanvas.context.drawImage(A.frontCanvas.element,0,0,A.backCanvas.element.width,A.backCanvas.element.height);RlV(A);H&&Ti1(A,H);H=H?A.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.H5("cinematic_watch_fade_out_duration",500);d=_.H5("cinematic_watch_transition_frame_rate")/
1E3;var W={};d&&(W={easing:"steps("+Math.round(H*d)+")"});(k===void 0?0:k)||A.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:H,iterations:1},W));A.frontCanvas.element.style.opacity="1"},RlV=function(A){var H=A.ambientLightThemeEnabled||A.ambientTheaterModeEnabled,k=A.ambientLightThemeEnabled||A.ambientFullscreenEnabled;
A.frontCanvas.context.fillStyle=A.theater&&H||A.fullscreen&&k?"#000":"#0f0f0f";cdQ()||(A.frontCanvas.context.filter="blur(0)");A.frontCanvas.context.fillRect(0,0,A.frontCanvas.element.width,A.frontCanvas.element.height)},Ti1=function(A,H){cdQ()||(A.frontCanvas.context.filter="blur("+YD(A)+"px)");
A.frontCanvas.context.globalAlpha=A.fullscreen&&A.ambientFullscreenEnabled||A.theater&&A.ambientTheaterModeEnabled?_.H5("cinematic_watch_effect_letterbox_opacity",.4):_.H5("cinematic_watch_effect_opacity",.4);var k={offsetX:YD(A)*3,offsetY:YD(A)*3,theater:A.theater,fullscreen:A.fullscreen};xDR(A)&&(k.width=100,k.height=100);H.drawToCanvas(A.frontCanvas.context,k);A.frontCanvas.context.globalAlpha=1},YD=function(A){var H;
return(H=A.cinematicContainerRenderer.config.blurStrength)!=null?H:5};
Pm.prototype.disposeInternal=function(){_.dF.prototype.disposeInternal.call(this);this.container.remove()};
Pm.prototype.clear=function(){OzV(this,void 0,!0)};
Pm.prototype.pause=function(){this.storyboardManager.pause()};var mDG=_.iP(function(){var A,H,k=!((H=(A=document.createElement("canvas")).getContext)==null||!H.call(A,"2d")),d;A=!((d=CSS)==null||!d.supports("filter: blur(0)"));d=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var W;return k&&A&&d&&!((W=CSS)==null||!W.supports("aspect-ratio: 1 / 1"))}),G1=function(A,H){FT.call(this);
this.container=A;this.playerApi=H;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=JDI(this);this.update()};
_.I(G1,FT);var gDQ=function(A){var H=document.documentElement.hasAttribute("dark");A.isDarkModeEnabled=H;A.update()},bzL=function(A,H){A.settingEnabled=H;
A.update()};
G1.prototype.setFullscreen=function(A,H){this.fullscreen=A;this.theater=!!H;this.update()};
var Lzi=function(A,H){A.cinematicContainerRenderer=H;A.cinematicContainerRenderer&&(A.cinematicsVe=_.t8(A.isShorts()?227858:159022),_.n4(_.A7(),A.cinematicsVe),A.loggingClientData={watchCinematicContainerData:{presentationStyle:A.cinematicContainerRenderer.presentationStyle}});A.update()};
G1.prototype.isShorts=function(){var A,H;return((A=this.cinematicContainerRenderer)==null?void 0:(H=A.config)==null?void 0:H.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
G1.prototype.isAllowed=function(){var A;if(A=mDG()){var H,k,d;A=((k=this.cinematicContainerRenderer)==null?void 0:k.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((d=this.cinematicContainerRenderer)==null||!d.colorStore)||((H=this.cinematicContainerRenderer)==null?void 0:H.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(A)if(_.b("web_cinematics_pausing")){var W,z;A=this.isDarkModeEnabled||!!((W=this.cinematicContainerRenderer)==
null?0:(z=W.config)==null?0:z.enableInLightTheme)}else{var u,B;W=!!((u=this.cinematicContainerRenderer)==null?0:(B=u.config)==null?0:B.enableInLightTheme)&&(_.pZ("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);A=this.isDarkModeEnabled||W}if(u=A){var h,O;u=!((O=(h=this.prefersReducedMotionQuery)==null?void 0:h.matches)!=null&&O)}return u};
var vD3=function(A){var H;(H=A.currentCinematicEffect)==null||H.clear()},yDL=function(A){var H;
(H=A.currentCinematicEffect)==null||H.pause()},jK3=function(A){(A=A.currentCinematicEffect)!=null&&(A=A.storyboardManager,A.paused=!1,zlL(A),A.update())};
G1.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var JDI=function(A){if(!_.b("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var H=window.matchMedia("(prefers-reduced-motion: reduce)"),k=function(){A.update()};
H.addListener(k);A.addOnDisposeCallback(function(){H.removeListener(k)});
return H}};
G1.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var A=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Pm(this.container,A,this.playerApi,this.isDarkModeEnabled),_.ZL(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var H=this.currentCinematicEffect;H.cinematicContainerRenderer!==
A&&(H.cinematicContainerRenderer=A,Wze(H.storyboardManager,A),el_(H));A=_.sH();_.kB(0,194,!0);A.save();A=_.hx();this.cinematicsVe&&A&&_.IN(A,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(A=_.hx(),this.cinematicsVe&&A&&_.YB(A,[this.cinematicsVe],!1,this.loggingClientData),_.CC(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.nP.Object.defineProperties(G1.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var Iie=!1,FzL=function(A){_.dF.call(this);this.JSC$21486_watchApi=A;this.fullscreen=this.theater=!1;YSe(this);P0L(this);G1B(this)};
_.I(FzL,_.dF);var G1B=function(A){var H,k,d;_.e(function(W){if(W.nextAddress==1)return W.yield(A.JSC$21486_watchApi.playerApi,2);H=W.yieldResult;if(A.isDisposed())return W.return();k=A.JSC$21486_watchApi.getElement("CINEMATICS");if(!k)return W.return();A.JSC$21486_cinematicController=new G1(k,H);_.ZL(A,A.JSC$21486_cinematicController);gDQ(A.JSC$21486_cinematicController);XmL(A,_.yT8());d=A.JSC$21486_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(z){DDR(A,z)});
A.addOnDisposeCallback(function(){A.JSC$21486_watchApi.unsubscribeByKey(d)});
SSG(A);DDR(A,A.JSC$21486_cinematicController.isAllowed());C0Q(A);Kz_(A);_.EN(W)})},C0Q=function(A){A.fullscreen=_.h8(_.F3().getState());
A.theater=_.iL(_.F3().getState());aiM(A,A.fullscreen,A.theater);var H=_.dC(_.F3(),_.h8,function(d){A.fullscreen=d;aiM(A,A.fullscreen,A.theater)}),k=_.dC(_.F3(),_.iL,function(d){A.theater=d;
aiM(A,A.fullscreen,A.theater)});
A.addOnDisposeCallback(H);A.addOnDisposeCallback(k)},YSe=function(A){var H=A.JSC$21486_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SSG(A)});
A.addOnDisposeCallback(function(){A.JSC$21486_watchApi.unsubscribeByKey(H)})},P0L=function(A){var H,k;
_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21486_watchApi.playerApi,2);H=d.yieldResult;k=function(W){XmL(A,W)};
H.addEventListener("cinematicSettingsToggleChange",k);A.addOnDisposeCallback(function(){H.removeEventListener("cinematicSettingsToggleChange",k)});
_.EN(d)})},SSG=function(A){var H=A.JSC$21486_watchApi.getWatchNextResponse(),k;
H=_.L(H==null?void 0:(k=H.pageVisualEffects)==null?void 0:k[0],Rj);var d;(d=A.JSC$21486_cinematicController)==null||Lzi(d,H)},XmL=function(A,H){var k;
(k=A.JSC$21486_cinematicController)==null||bzL(k,H);cDB(A)},DDR=function(A,H){var k;
_.e(function(d){if(d.nextAddress==1)return _.b("kevlar_watch_cinematics_invisible")&&(H=!1),d.yield(A.JSC$21486_watchApi.playerApi,2);k=d.yieldResult;k.updateCinematicSettings(H);cDB(A);_.EN(d)})},Kz_=function(A){var H=_.sH();
if(_.b("kevlar_measure_ambient_mode_idle")&&!H.getFlag(192)&&!Iie){Iie=!0;var k=_.ma(_.IE,function(){_.wj().resolve(_.eJG).start(1E4)},5E3);
A.addOnDisposeCallback(function(){_.IE.cancelJob(k);_.wj().resolve(_.eJG).stop()})}},aiM=function(A,H,k){A.fullscreen=H;
A.theater=k;var d;(d=A.JSC$21486_cinematicController)==null||d.setFullscreen(A.fullscreen,A.theater);if(_.b("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(A.theater||A.fullscreen){var W;(W=A.JSC$21486_cinematicController)==null||jK3(W)}else{var z;(z=A.JSC$21486_cinematicController)==null||yDL(z)}},cDB=function(A){var H;
A.JSC$21486_watchApi.getRoot().toggleCinematicsActive(!((H=A.JSC$21486_cinematicController)==null||!H.isEnabled()))};var ED_=function(A){_.dF.call(this);var H=this;this.JSC$21489_watchApi=A;this.commentsReady=!1;this.setCommentsJobId=0;A=_.dC(_.F3(),$o,function(){pmG(H)});
this.addOnDisposeCallback(A);var k=this.JSC$21489_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QKQ(H)}),d=this.JSC$21489_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){QKQ(H)});
this.addOnDisposeCallback(function(){H.JSC$21489_watchApi.unsubscribeByKey(k);H.JSC$21489_watchApi.unsubscribeByKey(d)});
var W=function(){_.b("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&V9V(H,"false")};
this.JSC$21489_watchApi.getRoot().addEventListener("yt-page-data-will-update",W);this.addOnDisposeCallback(function(){H.JSC$21489_watchApi.getRoot().removeEventListener("yt-page-data-will-update",W)});
QKQ(this)};
_.I(ED_,_.dF);var QKQ=function(A){A.commentsReady=!1;_.IE.cancelJob(A.setCommentsJobId);A.setCommentsJobId=_.ma(_.IE,function(){pmG(A)},1E3)},pmG=function(A){if(!A.commentsReady){_.OH("cmi");
_.IE.cancelJob(A.setCommentsJobId);var H,k,d,W,z=(H=A.JSC$21489_watchApi.getWatchNextResponse())==null?void 0:(k=H.contents)==null?void 0:(d=k.twoColumnWatchNextResults)==null?void 0:(W=d.results)==null?void 0:W.results.contents;H=void 0;if(z&&z.length)for(z=_.r(z),k=z.next();!k.done;k=z.next())if(k=k.value,W=d=void 0,((d=k)==null?void 0:(W=d.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"){_.b("web_watch_provide_undefined_comments")?H=k.itemSectionRenderer:A.JSC$21489_watchApi.provideRenderingData("COMMENTS",
k.itemSectionRenderer);V9V(A,"true");break}_.b("web_watch_provide_undefined_comments")&&A.JSC$21489_watchApi.provideRenderingData("COMMENTS",H);A.commentsReady=!0;A.JSC$21489_watchApi.dispatchEvent("yt-watch-comments-ready")}},V9V=function(A,H){var k;
(k=A.JSC$21489_watchApi.getElement("COMMENTS"))==null||k.setAttribute("canScheduleJobs",H)};var UD1=["engagement-panel-ads"],nD_=function(A){_.dF.call(this);var H=this;this.JSC$21492_watchApi=A;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.b("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.b("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.b("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.H5("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)liR(this);else{var k=this.JSC$21492_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){t9G(H);Fv(H)}),d=this.JSC$21492_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Xv(H);
Fv(H)});
this.JSC$21492_watchApi.getRoot().is==="ytd-watch-grid"&&_.b("swatcheroo_pbs_load_grid")&&(NiB(this),M9e(this));this.addOnDisposeCallback(function(){H.JSC$21492_watchApi.unsubscribeByKey(k);H.JSC$21492_watchApi.unsubscribeByKey(d);_.IE.cancelJob(H.provideRichGridJobId)});
t9G(this);Xv(this)}};
_.I(nD_,_.dF);var liR=function(A){var H=A.JSC$21492_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){A.providePlayerJobId=_.Hp(_.IE,function(){t9G(A);Fv(A)},A.provideAllDataDelayMs)}),k=A.JSC$21492_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){A.provideWatchNextJobId=_.Hp(_.IE,function(){Xv(A);
Fv(A)},A.provideAllDataDelayMs)}),d=A.JSC$21492_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){A.provideWatchNextJobId=_.Hp(_.IE,function(){Xv(A);
Fv(A)},A.provideAllDataDelayMs)});
A.JSC$21492_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.ma(_.IE,function(){t9G(A);Xv(A);Fv(A)},100)});
A.JSC$21492_watchApi.addPageDisposeJob(function(){_.IE.cancelJob(A.provideWatchNextJobId);_.IE.cancelJob(A.providePlayerJobId)});
A.addOnDisposeCallback(function(){A.JSC$21492_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");A.JSC$21492_watchApi.unsubscribeByKey(H);A.JSC$21492_watchApi.unsubscribeByKey(k);A.JSC$21492_watchApi.unsubscribeByKey(d);_.IE.cancelJob(A.providePlayerJobId);_.IE.cancelJob(A.provideWatchNextJobId)});
t9G(A);Xv(A)},t9G=function(A){var H=A.JSC$21492_watchApi.getPlayerResponse(),k,d,W=(d=H==null?void 0:(k=H.playabilityStatus)==null?void 0:k.messageRenderers)!=null?d:[],z,u;
H=(u=H==null?void 0:(z=H.playabilityStatus)==null?void 0:z.messages)!=null?u:[];z=_.r(H);for(u=z.next();!u.done;u=z.next())W.push({alertRenderer:{text:_.Yu(u.value),type:"WARNING"}});A.JSC$21492_watchApi.provideRenderingData("ALERTS",W)},Xv=function(A){var H=[],k,d,W,z=A.JSC$21492_watchApi.getWatchNextResponse(),u,B,h,O,T=z==null?void 0:(u=z.contents)==null?void 0:(B=u.twoColumnWatchNextResults)==null?void 0:(h=B.results)==null?void 0:(O=h.results)==null?void 0:O.contents;
if(T)for(u=_.r(T),B=u.next();!B.done;B=u.next())if(B=B.value,B.videoPrimaryInfoRenderer)var m=B;else if(B.videoSecondaryInfoRenderer){var J=B;O=h=void 0;B=Object.assign({},(h=B.videoSecondaryInfoRenderer)==null?void 0:(O=h.metadataRowContainer)==null?void 0:O.metadataRowContainerRenderer);if(B.rows&&B.collapsedItemCount!==void 0){B.rows=B.rows.slice(0,B.collapsedItemCount).filter(function($Z){return!!$Z.richMetadataRowRenderer});
B.collapsedItemCount=B.rows.length;var g={metadataRowContainerRenderer:B}}}else if(B.merchandiseShelfRenderer)var v=B;else if(B.ticketShelfRenderer)var y=B;else if(B.expandableMetadataRenderer)var X=B;else if(B.itemSectionRenderer)if(h=B.itemSectionRenderer.contents,O=void 0,A.directlyProvideComments&&((O=B.itemSectionRenderer)==null?void 0:O.sectionIdentifier)==="comment-item-section")_.OH("cmi"),A.JSC$21492_watchApi.provideRenderingData("COMMENTS",B.itemSectionRenderer);else if(h)for(B=_.r(h),h=
B.next();!h.done;h=B.next())if(h=h.value,h.commentsEntryPointHeaderRenderer)var D=h;else if(h.clarificationRenderer||h.infoPanelContainerRenderer||h.infoPanelContentRenderer||h.emergencyOneboxRenderer){H.push(h);var K=K||!!J}else h.limitedStateMessageRenderer?d=h:h.videoMetadataCarouselViewModel&&(W=h);if(_.b("web_watch_merch_in_sd_when_ticket_shelf_present")&&v&&y){var N=v;v=void 0}if(A.provideWatchNextSecondaryResults){var U,p,M;A.JSC$21492_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
z==null?void 0:(U=z.contents)==null?void 0:(p=U.twoColumnWatchNextResults)==null?void 0:(M=p.secondaryResults)==null?void 0:M.secondaryResults)}if(A.JSC$21492_watchApi.getRoot().is==="ytd-watch-grid"){var Z,WV;A.JSC$21492_watchApi.provideRenderingData("LIVE_CHAT",z==null?void 0:(Z=z.contents)==null?void 0:(WV=Z.twoColumnWatchNextResults)==null?void 0:WV.conversationBar)}var hA,qv,eN,mr;(U=z==null?void 0:(hA=z.contents)==null?void 0:(qv=hA.twoColumnWatchNextResults)==null?void 0:(eN=qv.secondaryResults)==
null?void 0:(mr=eN.secondaryResults)==null?void 0:mr.offerModule)&&(U.donationShelfRenderer||U.donationUnavailableRenderer)&&A.JSC$21492_watchApi.getRoot().is!=="ytd-watch-grid"&&(k=U);hA=A.JSC$21492_watchApi.getPlayerResponse();if(!hA||!_.x$V(hA.playabilityStatus,z==null?void 0:z.playerOverlays)){var Cl;if(z==null?0:(Cl=z.contents)==null?0:Cl.singleColumnWatchNextResults){var pl,UC;var hk=z==null?void 0:(pl=z.contents.singleColumnWatchNextResults.results)==null?void 0:(UC=pl.results)==null?void 0:
UC.contents}else{var eA,lI,Rp,vj;Cl=!!(T==null?0:(eA=T[0])==null?0:(lI=eA.itemSectionRenderer)==null?0:(Rp=lI.contents)==null?0:(vj=Rp[0])==null?0:vj.backgroundPromoRenderer);var T0,Y1;eA=!!(z==null?0:(T0=z.contents)==null?0:(Y1=T0.twoColumnWatchNextResults)==null?0:Y1.secondaryResults);Cl&&!eA&&(hk=T)}}T=H[0];T0=H[1];K&&H.length===1&&(T0=T,T=void 0);A.JSC$21492_watchApi.provideRenderingData("PRIMARY_INFO",m);A.JSC$21492_watchApi.provideRenderingData("SECONDARY_INFO",J);A.JSC$21492_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
D);A.JSC$21492_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",W);A.JSC$21492_watchApi.provideRenderingData("CLARIFICATION",T);A.JSC$21492_watchApi.provideRenderingData("RICH_METADATA",g);A.JSC$21492_watchApi.provideRenderingData("MERCH_SHELF",v);_.b("web_watch_merch_in_sd_when_ticket_shelf_present")&&A.JSC$21492_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",N);A.JSC$21492_watchApi.provideRenderingData("TICKET_SHELF",y);A.JSC$21492_watchApi.provideRenderingData("LIMITED_STATE",d);A.JSC$21492_watchApi.getRoot().is!==
"ytd-watch-grid"&&A.JSC$21492_watchApi.provideRenderingData("DONATION_SHELF",k);A.JSC$21492_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",hk);A.JSC$21492_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",T0);A.JSC$21492_watchApi.provideRenderingData("EXPANDABLE_METADATA",X);if(A.swatcherooProvideAllDataOnScheduledJob){var ze,Tf,QW,mG,nN,G0;m=z==null?void 0:(ze=z.contents)==null?void 0:(Tf=ze.twoColumnWatchNextResults)==null?void 0:(QW=Tf.secondaryResults)==null?void 0:(mG=QW.secondaryResults)==
null?void 0:(nN=mG.results)==null?void 0:(G0=nN[0])==null?void 0:G0.richGridRenderer;A.JSC$21492_watchApi.provideRenderingData("RICH_GRID_RENDERER",m)}};
nD_.prototype.hasCompanionAds=function(A){var H,k;return(k=A==null?void 0:(H=A.adPlacements)==null?void 0:H.some(function(d){var W,z,u,B;return(d==null?void 0:(W=d.adPlacementRenderer)==null?void 0:(z=W.renderer)==null?void 0:z.actionCompanionAdRenderer)||(d==null?void 0:(u=d.adPlacementRenderer)==null?void 0:(B=u.renderer)==null?void 0:B.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?k:!1};
var Fv=function(A){if(!_.b("swaterdoo_ps_wn_handle_ks")){A.swatcherooProvideAllDataOnScheduledJob||M9e(A,3E3);var H=A.JSC$21492_watchApi.getPlayerResponse(),k,d,W,z,u,B=(k=A.JSC$21492_watchApi.getWatchNextResponse())==null?void 0:(d=k.contents)==null?void 0:(W=d.twoColumnWatchNextResults)==null?void 0:(z=W.secondaryResults)==null?void 0:(u=z.secondaryResults)==null?void 0:u.offerModule;H=A.hasCompanionAds(H);var h,O;k=(B==null?void 0:(h=B.tvfilmOfferModuleRenderer)==null?void 0:h.clientShouldSuppressIfCompanionAdDisplayed)||
(B==null?void 0:(O=B.unlimitedOfferModuleRenderer)==null?void 0:O.suppressIfCompanionAds);h=H&&k;A.JSC$21492_watchApi.getRoot().is==="ytd-watch-grid"&&A.JSC$21492_watchApi.provideRenderingData("OFFER_MODULE",h?void 0:B)}},M9e=function(A,H){_.b("swatcheroo_pbs_load_grid")&&(A.provideRichGridJobId&&_.IE.cancelJob(A.provideRichGridJobId),A.provideRichGridJobId=_.Hp(_.IE,function(){A.provideRichGridJobId=0;
var k,d,W,z,u,B,h,O=(k=A.JSC$21492_watchApi.getWatchNextResponse())==null?void 0:(d=k.contents)==null?void 0:(W=d.twoColumnWatchNextResults)==null?void 0:(z=W.secondaryResults)==null?void 0:(u=z.secondaryResults)==null?void 0:(B=u.results)==null?void 0:(h=B[0])==null?void 0:h.richGridRenderer;O&&A.JSC$21492_watchApi.provideRenderingData("RICH_GRID_RENDERER",O)},H))},NiB=function(A){var H,k;
_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21492_watchApi.playerApi,2);H=d.yieldResult;k=function(){A.onPlaybackStart()};
H.addEventListener("onPlaybackStartExternal",k);A.addOnDisposeCallback(function(){H.removeEventListener("onPlaybackStartExternal",k)});
_.EN(d)})};
nD_.prototype.onPlaybackStart=function(){M9e(this)};var Zzi=_.t8(115994),fiQ=_.t8(115993),Di=function(A,H,k){var d=this;var W=k.dragDownAction;this.layer=0;this.JSC$21507_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.JSC$21507_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.fullscreen=!1;var z=_.A7();_.Z2(z,Zzi,this.layer);_.Z2(z,fiQ,this.layer);this.dragDownAction=function(){W();_.vn(z,{visualElement:d.fullscreen?Zzi:fiQ})};
this.gesture=new EV(A,H,this.getConfig(!1),"pandown");this.attach()};
Di.prototype.attach=function(){this.gesture.attach()};
Di.prototype.detach=function(){this.gesture.detach()};
Di.prototype.update=function(A){this.fullscreen=A;var H=this.gesture;A=this.getConfig(A);H.config=A};
Di.prototype.getConfig=function(A){return A?this.JSC$21507_watchFullScreenConfig:this.JSC$21507_watchConfig};var oDe=function(A){_.dF.call(this);var H=this;this.JSC$21510_watchApi=A;A.playerApi.then(function(k){H.player=k});
this.gestures=new Di(this.JSC$21510_watchApi.getRoot(),A.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(Z83(_.F3().getState())&&$o(_.F3().getState())<=0)if(_.h8(_.F3().getState())){var k;(k=H.player)==null||k.toggleFullscreen()}else _.Ud(H.JSC$21510_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
wmL(this)};
_.I(oDe,_.dF);var wmL=function(A){var H=_.dC(_.F3(),_.h8,function(k){A.onFullscreenChanged(k)});
A.addOnDisposeCallback(H);H=_.dC(_.F3(),$o,function(k){A.gestures&&(k>0?A.gestures.detach():A.gestures.attach())});
A.addOnDisposeCallback(H)};
oDe.prototype.onFullscreenChanged=function(A){this.gestures&&this.gestures.update(A)};var $D3=["PLAYLIST"],HdQ=function(A){_.dF.call(this);var H=this;this.JSC$21513_watchApi=A;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(A.subscribeToActiveChanged(function(k){H.onActiveChanged(k)}));
AEi(this)};
_.I(HdQ,_.dF);var soe=function(A){A.pageDisposalDataTypes=Object.values(QJB).filter(function(H){return!$D3.includes(H)})},AEi=function(A){if(_.b("swatcheroo_enable_ghost_cards")||_.b("web_watch_clear_data_on_page_dispose"))soe(A),A.JSC$21513_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.IE.cancelJob(A.clearDataJobId);
A.clearDataJobId=0}),A.runPageDisposeJob=function(){var H=_.wj().resolve(_.SO).getDestinationPageType()==="watch";
A.clearDataJobId=_.Hp(_.IE,A.runClearDataJob,H?0:_.H5("web_watch_delay_page_dispose_ms",1E4))},A.runClearDataJob=function(){koL(A)},A.runOnYtNavigateAwayFinish=function(){A.clearDataJobId&&(_.IE.cancelJob(A.clearDataJobId),A.clearDataJobId=0,koL(A))},document.addEventListener("yt-navigate-finish",A.runOnYtNavigateAwayFinish),A.JSC$21513_watchApi.addPageDisposeJob(A.runPageDisposeJob),A.addOnDisposeCallback(function(){A.JSC$21513_watchApi.removePageDisposeJob(A.runPageDisposeJob);
A.JSC$21513_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",A.runOnYtNavigateAwayFinish)})},koL=function(A){A.pageDisposalDataTypes.forEach(function(H){A.JSC$21513_watchApi.provideRenderingData(H,void 0)});
A.clearDataJobId=0};
HdQ.prototype.onActiveChanged=function(A){A&&((A=document.querySelector("#watch-page-skeleton"))&&_.Aw(A),dIQ(this),document.body.removeAttribute("no-y-overflow"),_.Q$("IS_SHELL_LOAD")&&mmI())};
var dIQ=function(A){_.e(function(H){if(H.nextAddress==1)return H.yield(A.JSC$21513_watchApi.playerApi,2);_.Pl();_.EN(H)})};var WKB=_.b("kevlar_watch_while_counterfactual")?0:.25,ue_=function(A){_.dF.call(this);this.JSC$21516_watchApi=A;this.JSC$21516_watchWhileEnabled=_.b("kevlar_watch_while_v2");this.JSC$21516_watchPipEnabled=_.b("web_watch_pip");zHV(this);qPi(this);rEB(this)};
_.I(ue_,_.dF);var zHV=function(A){A.JSC$21516_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){BD_(A)});
A.addOnDisposeCallback(function(){A.JSC$21516_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},qPi=function(A){var H,k;
_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21516_watchApi.playerApi,2);H=d.yieldResult;k=function(W){W&&A.JSC$21516_watchPipEnabled?eHG(A):BD_(A)};
H.addEventListener("onCollapseMiniplayer",k);A.addOnDisposeCallback(function(){H.removeEventListener("onCollapseMiniplayer",k)});
_.EN(d)})},rEB=function(A){var H=A.JSC$21516_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&H&&A.JSC$21516_watchWhileEnabled&&(A.playerIntersectionObserver=new IntersectionObserver(function(k){A.handleIntersect(k)},{threshold:[WKB]}),A.playerIntersectionObserver.observe(H),A.addOnDisposeCallback(function(){var k;
(k=A.playerIntersectionObserver)==null||k.disconnect()}))},BD_=function(A){var H,k,d;
_.e(function(W){if(W.nextAddress==1)return H=_.wj().resolve(_.SO),k=H.data,d=_.Ncm(k.response,k.playerResponse),_.Hi().miniplayerButtonActivation=!0,_.wj().resolve(_.L6).collapse(),W.yield(_.Hi().navigationFinishPromise,2);if(W.nextAddress!=3)return _.Hi().currentEndpoint=d.watchEndpoint||null,W.yield(_.wj().resolve(_.L6).activate(A.JSC$21516_watchApi.getElement("PLAYER"),d,k),3);_.Hi().userActivation=!0;_.EN(W)})},eHG=function(A){var H,k,d;
_.e(function(W){if(W.nextAddress==1)return _.wj().resolve(_.L6).pictureInPictureSupported()?W.jumpTo(2):W.yield(A.JSC$21516_watchApi.playerApi,3);if(W.nextAddress!=2)return H=W.yieldResult,(k=H)==null||k.togglePictureInPicture(),W.return();d=_.wj().resolve(_.SO);_.Hi().watchPipActivation=!0;_.T__(_.wj().resolve(_.L6),d.data);_.EN(W)})};
ue_.prototype.handleIntersect=function(A){xIR(this,A[A.length-1])};
var xIR=function(A,H){A.watchWhileJobId&&_.IE.cancelJob(A.watchWhileJobId);A.watchWhileJobId=_.IE.addLowPriorityJob(function(){var k,d;return _.e(function(W){if(W.nextAddress==1)return A.watchWhileJobId=void 0,k=_.wj().resolve(_.L6),H.intersectionRatio>WKB?k.isMiniplayerActive()?W.yield(k.deactivate(),0):W.jumpTo(0):(d=!k.isMiniplayerActive())?W.yield(idL(A),5):W.jumpTo(4);W.nextAddress!=4&&(d=W.yieldResult);if(!d)return W.jumpTo(0);_.Hi().watchWhileActivation=!0;return W.yield(hHB(A),0)})},100)},
idL=function(A){return _.e(function(H){return H.nextAddress==1?_.b("kevlar_watch_while_paused")?H.return(!0):H.yield(A.isPlayerPlaying(),2):H.return(H.yieldResult)})};
ue_.prototype.isPlayerPlaying=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return k.yield(A.JSC$21516_watchApi.playerApi,2);H=k.yieldResult;return k.return(H.getPlayerStateObject().isPlaying)})};
var hHB=function(A){var H,k;return _.e(function(d){H=_.wj().resolve(_.SO).data;k=_.Ncm(H.response,H.playerResponse);_.Hi().currentEndpoint=k.watchEndpoint||null;return d.yield(_.wj().resolve(_.L6).activate(A.JSC$21516_watchApi.getElement("PLAYER"),k,H),0)})};var TD3=function(A){_.dF.call(this);this.JSC$21520_watchApi=A;Od3(this);RHV(this)};
_.I(TD3,_.dF);var RHV=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21520_watchApi.playerApi,2);H=d.yieldResult;k=function(W){var z;W.sessionData&&W.sessionData.itct&&(z=W.sessionData.itct);var u=W.watchEndpoint;if(u&&W.sessionData&&W.sessionData.autonav)u=_.q_8(u,z);else{var B;u=_.C8(W.videoId,(B=W.listId)!=null?B:void 0,z)}z={endpoint:u};W.sessionData&&(z.tempData=W.sessionData);A.JSC$21520_watchApi.dispatchEvent("yt-navigate",z)};
H.addEventListener("onPlayVideo",k);A.addOnDisposeCallback(function(){H.removeEventListener("onPlayVideo",k)});
_.EN(d)})},Od3=function(A){var H=function(k){A.onYtNavigate(k)};
A.JSC$21520_watchApi.getRoot().addEventListener("yt-navigate",H);A.addOnDisposeCallback(function(){A.JSC$21520_watchApi.getRoot().removeEventListener("yt-navigate",H)})};
TD3.prototype.onYtNavigate=function(A){var H=this,k,d,W,z,u,B,h,O,T;return _.e(function(m){if(m.nextAddress==1){if(!((k=A.detail)==null?0:(d=k.endpoint)==null?0:d.watchEndpoint))return m.return();W=A.detail.endpoint.watchEndpoint;z=H.JSC$21520_watchApi.getWatchNextResponse();B=_.L((u=z)==null?void 0:u.currentVideoEndpoint,_.Yr);if(!B)return m.return();if(W.videoId!==B.videoId||W.playlistId&&W.playlistId!==B.playlistId||typeof W.startTimeSeconds!=="number")return m.jumpTo(0);A.stopPropagation();(h=
_.b("kevlar_watch_while_v2")&&!_.b("kevlar_watch_while_counterfactual"))&&_.wj().resolve(_.L6).isMiniplayerActive()||H.JSC$21520_watchApi.scrollWatchTo(0,!0);return m.yield(H.JSC$21520_watchApi.playerApi,3)}O=m.yieldResult;T=W.startTimeSeconds;O.seekTo(T,void 0,void 0,void 0,84);O.wakeUpControls();T<O.getDuration()&&O.playVideo();_.EN(m)})};var JEe=function(A){_.dF.call(this);var H=this;this.JSC$21523_watchApi=A;var k=this.JSC$21523_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mIe(H)});
this.addOnDisposeCallback(function(){H.JSC$21523_watchApi.unsubscribeByKey(k)});
mIe(this);_.b("enable_ai_companion")&&(A=this.JSC$21523_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&Xoe(A,"WATCH")};
_.I(JEe,_.dF);var mIe=function(A){var H=A.JSC$21523_watchApi.getWatchNextResponse();if(H){var k,d=[].concat(_.fV((k=H==null?void 0:H.engagementPanels)!=null?k:[]));_.b("web_watch_comments_visible_by_default")&&(k=d.find(function(W){var z;return((z=W.engagementPanelSectionListRenderer)==null?void 0:z.targetId)==="engagement-panel-comments-section"}),k==null?0:k.engagementPanelSectionListRenderer)&&(k.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
d.unshift.apply(d,_.fV(gNL(H)));A.JSC$21523_watchApi.provideRenderingData("ENGAGEMENT_PANELS",d)}},LKI=function(A){var H,k,d,W=(H=A.engagementPanels)==null?void 0:(k=H.find(function(g){var v;
return((v=g.engagementPanelSectionListRenderer)==null?void 0:v.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(d=k.engagementPanelSectionListRenderer.content)==null?void 0:d.structuredDescriptionContentRenderer,z;
if(_.L(W==null?void 0:(z=W.items)==null?void 0:z.find(function(g){return!!_.L(g,arQ)}),arQ))return!0;
var u,B,h,O;if(A=(((u=A.contents)==null?void 0:(B=u.twoColumnWatchNextResults)==null?void 0:(h=B.results)==null?void 0:(O=h.results)==null?void 0:O.contents)||[]).find(function(g){return g.videoPrimaryInfoRenderer})){var T,m,J;
return(((T=A.videoPrimaryInfoRenderer)==null?void 0:(m=T.videoActions)==null?void 0:(J=m.menuRenderer)==null?void 0:J.flexibleItems)||[]).some(function(g){g=_.L(g,_.aJw);if(!g)return!1;var v,y;g=(v=g.topLevelButton)==null?void 0:(y=v.buttonViewModel)==null?void 0:y.onTap;if(!g)return!1;v=_.h7(g);if(!v)return!1;if(bd_(v))return!0;if(_.b("enable_creator_chatbot")){v=_.L(v,_.nH);if(!v)return!1;var X;return(X=v.commands)==null?void 0:X.some(function(D){return bd_(D)})}return!1})}return!1},bd_=function(A){var H;
return((H=_.L(A,_.RL))==null?void 0:H.panelIdentifier)==="PAyouchat"},gNL=function(A){var H=[];
if(!_.b("web_watch_inject_placeholder_fantasy_panel_killswitch")){var k,d,W,z=(k=A.engagementPanels)==null?void 0:(d=k.find(function(B){var h;return((h=B.engagementPanelSectionListRenderer)==null?void 0:h.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(W=d.engagementPanelSectionListRenderer.content)==null?void 0:W.structuredDescriptionContentRenderer,u;
_.L(z==null?void 0:(u=z.items)==null?void 0:u.find(function(B){return!!_.L(B,PDi)}),PDi)&&(k=_.N$C("PAsports_fantasy"),k.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(k))}LKI(A)&&(A=_.N$C("PAyouchat"),A.engagementPanelSectionListRenderer.targetId="PAyouchat",A.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(A));
return H};var yE1=function(A){_.dF.call(this);this.JSC$21526_watchApi=A;vNL(this)};
_.I(yE1,_.dF);var vNL=function(A){A.JSC$21526_watchApi.registerActionHandler("yt-loop-command",function(H){joV(A,H)});
A.JSC$21526_watchApi.registerActionHandler("yt-repeat-chapter-command",function(H){IHV(A,H)});
A.addOnDisposeCallback(function(){A.JSC$21526_watchApi.unregisterActionHandler("yt-loop-command");A.JSC$21526_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},joV=function(A,H){var k;
_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21526_watchApi.playerApi,2);k=d.yieldResult;_.L(H,gxL).loop?(k.setLoopRange({startTimeMs:Number(_.L(H,gxL).startTimeMs),endTimeMs:Number(_.L(H,gxL).endTimeMs),postId:_.L(H,gxL).postId,type:"clips"}),k.playVideo()):k.setLoopRange(null);_.EN(d)})},IHV=function(A,H){var k,d;
_.e(function(W){if(W.nextAddress==1)return W.yield(A.JSC$21526_watchApi.playerApi,2);k=W.yieldResult;d=_.L(H,sZQ).repeat;d==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(k.setLoopRange({startTimeMs:Number(_.L(H,sZQ).startTimeMs),endTimeMs:Number(_.L(H,sZQ).endTimeMs),type:"repeatChapter"}),k.playVideo()):d==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&k.setLoopRange(null);_.EN(W)})};var P33=function(A){_.dF.call(this);this.JSC$21531_watchApi=A;YPM(this)};
_.I(P33,_.dF);var YPM=function(A){A.JSC$21531_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(H){GoM(A,H)});
A.addOnDisposeCallback(function(){A.JSC$21531_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},GoM=function(A,H){var k,d,W,z,u,B,h,O,T,m,J;
_.e(function(g){if(g.nextAddress==1)return g.yield(A.JSC$21531_watchApi.playerApi,2);k=g.yieldResult;if(z=(W=(d=_.L(H,k$e))==null?void 0:d.highlightedMenuItemKey)!=null?W:"")(B=(u=k).highlightSettingsMenuItem)==null||B.call(u,z);if(T=(O=(h=_.L(H,k$e))==null?void 0:h.openMenuItemKey)!=null?O:"")(J=(m=k).openSettingsMenuItem)==null||J.call(m,T);_.EN(g)})};var FK_=_.Nw("/youtube/app/watch/player_state","playerStateEntity");var S9=function(A){_.dF.call(this);this.JSC$21534_watchApi=A;XOe(this)};
_.I(S9,_.dF);var DI3=function(A){switch(A){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"}},XOe=function(A){var H,k,d,W,z;
_.e(function(u){if(u.nextAddress==1)return u.yield(A.JSC$21534_watchApi.playerApi,2);H=u.yieldResult;if(A.isDisposed())return u.return();k=function(B){A.onPlayerStateChange(B)};
d=function(B){A.onAdStateChange(B)};
W=function(){A.onAdSkip()};
z=function(B){A.onVideoDataChange(B)};
H.addEventListener("onStateChange",k);H.addEventListener("onAdStateChange",d);H.addEventListener("onAdSkip",W);H.addEventListener("onVideoDataChange",z);A.addOnDisposeCallback(function(){H.removeEventListener("onStateChange",k);H.removeEventListener("onAdStateChange",d);H.removeEventListener("onAdSkip",W);H.removeEventListener("onVideoDataChange",z)});
_.EN(u)})},SPM=function(A){var H=_.FI(),k=H.dispatch;
a:switch(A.adsState){case -1:case 0:var d="ADS_STATE_NONE";break a;case 1:case 2:case 3:d="ADS_STATE_PLAYING";break a;default:d="ADS_STATE_UNKNOWN"}k.call(H,_.kH("playerStateEntity",FK_,{key:FK_,playerState:DI3(A.playerState),adsState:d,videoId:A.videoId}))};
S9.prototype.onPlayerStateChange=function(A){var H=this,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(H.JSC$21534_watchApi.playerApi,2);k=d.yieldResult;if(H.isDisposed())return d.return();H.playerState=A;H.videoId=k.getVideoData().video_id;SPM(H);_.EN(d)})};
S9.prototype.onAdStateChange=function(A){this.adsState=A;SPM(this)};
S9.prototype.onAdSkip=function(){this.adsState=0;SPM(this)};
S9.prototype.onVideoDataChange=function(A){A.type==="newdata"&&(this.adsState=-1,SPM(this))};var KKL=function(A){_.dF.call(this);var H=this;this.JSC$21538_watchApi=A;this.enableExternalPlaylistPanelInPlayer=_.b("delhi_web_player_use_external_playlist_panel");_.wj().resolve(_.jd).setPlayer(this.JSC$21538_watchApi.getElement("PLAYER"));A=this.JSC$21538_watchApi.subscribeToActiveChanged(function(k){H.onActiveChanged(k)});
this.addOnDisposeCallback(A);C3L(this)};
_.I(KKL,_.dF);var C3L=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return A.enableExternalPlaylistPanelInPlayer?d.yield(A.JSC$21538_watchApi.playerApi,2):d.return();H=d.yieldResult;k=function(){if(A.playlistPanelElement)A.playlistPanelElement.onToggleExpanded()};
H.addEventListener("onToggleExternalPlaylistPanel",k);A.addOnDisposeCallback(function(){H.removeEventListener("onToggleExternalPlaylistPanel",k)});
_.EN(d)})};
KKL.prototype.onActiveChanged=function(A){var H=this,k=_.wj().resolve(_.jd),d=function(){aHI(H)};
A?(this.playlistPanelElement=this.JSC$21538_watchApi.getElement("PLAYLIST_PANEL"))?(k.setPlaylistComponent(this.playlistPanelElement),k.addEventListener("yt-playlist-data-updated",d),this.addOnDisposeCallback(function(){k.removeEventListener("yt-playlist-data-updated",d)}),aHI(this)):_.lt(Error("Ul")):(k.removeEventListener("yt-playlist-data-updated",d),k.cancelVideoSkip())};
var aHI=function(A){var H=_.wj().resolve(_.jd);A.JSC$21538_watchApi.provideRenderingData("PLAYLIST",H.getPlaylistData())};var Cz=function(A){_.dF.call(this);var H=this;this.JSC$21541_watchApi=A;this.onPageScroll=function(){H.scrollThrottle.fire();H.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Nt(this.onThrottledScroll,200,this);_.ZL(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Nt(this.onMastheadThrottledScroll,50,this);_.ZL(this,this.mastheadScrollThrottle);this.animation=new _.pJ(function(k){H.JSC$21541_watchApi.getRoot().setScrollTop(k)});
A=_.dC(_.F3(),_.h8,function(){H.onFullscreenChanged()});
this.addOnDisposeCallback(A);cEL(this);pOi(this);this.onThrottledScroll()};
_.I(Cz,_.dF);
Cz.prototype.onFullscreenChanged=function(){var A=this,H=this.JSC$21541_watchApi.getRoot();!this.pageScrollElement&&H.pageScrollElement?(this.pageScrollElement=H.pageScrollElement,H.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){A.pageScrollElement&&A.pageScrollElement.removeEventListener("scroll",A.onPageScroll)})):this.pageScrollElement&&!H.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var cEL=function(A){window.addEventListener("scroll",A.onPageScroll);A.addOnDisposeCallback(function(){window.removeEventListener("scroll",A.onPageScroll)})},pOi=function(A){A.JSC$21541_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(H){a:{var k;
if(k=A.JSC$21541_watchApi.getRoot().contains(H)&&!A.animation.isAnimating()){k=H.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var d,W,z=(H==null?void 0:(d=H.parentElement)==null?void 0:(W=d.parentElement)==null?void 0:W.id)==="fixed-secondary";k=!(k&&z)}if(k){if(_.b("kevlar_watch_scroll_manager_absolute_offset_killswitch"))d=H.offsetTop;else for(d=0,W=H;W!==null;)d+=W.offsetTop,d-=W.scrollTop,W=W.offsetParent;W=d;d=W-24;H=W+H.offsetHeight+24;W=A.JSC$21541_watchApi.getRoot().getPageScrollingElement();
k=A.JSC$21541_watchApi.getRoot().getScrollTop();z=k+W.clientHeight-56;if(d<k+56)H=d-56;else if(H>z)H-=W.clientHeight;else break a;A.scrollWatchTo(Math.max(0,H),!0)}}});
A.addOnDisposeCallback(function(){A.JSC$21541_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
Cz.prototype.onThrottledScroll=function(){var A=_.F3(),H=A.dispatch,k=this.JSC$21541_watchApi.getRoot().getScrollTop();H.call(A,_.p8({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:k}}))};
Cz.prototype.onMastheadThrottledScroll=function(){this.JSC$21541_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21541_watchApi.getRoot().getScrollTop())};
Cz.prototype.scrollWatchTo=function(A,H){(H===void 0?0:H)?this.animation.start(this.JSC$21541_watchApi.getRoot().getScrollTop(),Math.max(0,A),500):this.JSC$21541_watchApi.getRoot().setScrollTop(A)};var ENQ=function(A){_.dF.call(this);var H=this;this.JSC$21544_watchApi=A;var k=this.JSC$21544_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){QoM(H)}),d=this.JSC$21544_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VWQ(H)});
this.addOnDisposeCallback(function(){H.JSC$21544_watchApi.unsubscribeByKey(k);H.JSC$21544_watchApi.unsubscribeByKey(d)});
QoM(this);VWQ(this)};
_.I(ENQ,_.dF);
var QoM=function(A){var H,k,d,W=(d=(H=A.JSC$21544_watchApi.getPlayerResponse())==null?void 0:(k=H.videoDetails)==null?void 0:k.title)!=null?d:"";A.JSC$21544_watchApi.dispatchEvent("yt-update-title",W)},VWQ=function(A){var H,k,d,W,z,u,B,h=(B=((u=(H=A.JSC$21544_watchApi.getWatchNextResponse())==null?void 0:(k=H.contents)==null?void 0:(d=k.twoColumnWatchNextResults)==null?void 0:(W=d.results)==null?void 0:(z=W.results)==null?void 0:z.contents)!=null?u:[]).find(function(O){return!!O.videoPrimaryInfoRenderer}))==null?
void 0:B.videoPrimaryInfoRenderer;
(H=_.PK(h==null?void 0:h.title))&&A.JSC$21544_watchApi.dispatchEvent("yt-update-title",H)};var lHG=function(A){_.dF.call(this);this.JSC$21547_watchApi=A;UIR(this)};
_.I(lHG,_.dF);var UIR=function(A){var H,k;_.e(function(d){if(d.nextAddress==1)return d.yield(A.JSC$21547_watchApi.playerApi,2);H=d.yieldResult;k=function(){A.onYpcContentRequest()};
H.addEventListener("onYpcContentRequest",k);A.addOnDisposeCallback(function(){H.removeEventListener("onYpcContentRequest",k)});
_.EN(d)})};
lHG.prototype.onYpcContentRequest=function(){var A,H,k,d,W,z=(A=this.JSC$21547_watchApi.getWatchNextResponse())==null?void 0:(H=A.contents)==null?void 0:(k=H.twoColumnWatchNextResults)==null?void 0:(d=k.secondaryResults)==null?void 0:(W=d.secondaryResults)==null?void 0:W.offerModule,u,B,h,O;A=(O=(h=(B=(u=z==null?void 0:z.episodeOfferModuleRenderer)!=null?u:z==null?void 0:z.movieOfferModuleRenderer)!=null?B:z==null?void 0:z.unlimitedOfferModuleRenderer)!=null?h:z==null?void 0:z.liveOfferModuleRenderer)!=
null?O:z==null?void 0:z.tvfilmOfferModuleRenderer;var T,m,J;z=(J=z==null?void 0:(T=z.tvfilmOfferModuleRenderer)==null?void 0:(m=T.actionButtons)==null?void 0:m.length)!=null?J:0;m=Math.max(z-1,0);var g,v,y;T=(y=A==null?void 0:(g=A.offerButton)==null?void 0:g.buttonRenderer)!=null?y:A==null?void 0:(v=A.actionButtons)==null?void 0:v[m].buttonRenderer;var X,D;(g=(D=(X=T==null?void 0:T.navigationEndpoint)!=null?X:T==null?void 0:T.serviceEndpoint)!=null?D:T==null?void 0:T.command)&&_.n0.instance.resolveCommand(g)};var tWB=function(A){FT.call(this);var H=this;this.rootElement=A;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(k){H.initOrDisposeActiveModules(k)}));
this.onAttached()};
_.I(tWB,FT);_.q=tWB.prototype;_.q.getRoot=function(){return this.rootElement};
_.q.getElement=function(A){return this.rootElement.getElement(A)};
_.q.setPlayerResponse=function(A){this.playerResponse=A;this.publish("PLAYER_RESPONSE_UPDATED",A)};
_.q.getPlayerResponse=function(){return this.playerResponse};
_.q.setWatchNextResponse=function(A){this.watchNextResponse===A?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=A,this.publish("WATCH_NEXT_RESPONSE_UPDATED",A))};
_.q.getWatchNextResponse=function(){return this.watchNextResponse};
_.q.registerActionHandler=function(A,H){var k=this;if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var d={};_.cq(_.a3.getInstance(),(d[A]=H,d),this.getRoot())}else this.actionHandlers.has(A)||(this.actionHandlers.set(A,[]),d={},_.cq(_.a3.getInstance(),(d[A]=function(){var W=_.o7.apply(0,arguments);return(k.actionHandlers.get(A)||[]).map(function(z){return z.apply(null,_.fV(W))})},d),this.getRoot())),this.actionHandlers.get(A).push(H)};
_.q.unregisterActionHandler=function(A){if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.pT(_.a3.getInstance(),(H[A]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(A))?(H.pop(),H.length===0&&(H={},_.pT(_.a3.getInstance(),(H[A]=!0,H),this.getRoot()),this.actionHandlers.delete(A))):_.Pq(new _.Ti("Attempted to unregister an action handler which is not registered.",A))};
_.q.addPageDisposeJob=function(A){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Frm(this.rootElement.pageDisposeJobs,A)};
_.q.removePageDisposeJob=function(A){this.rootElement.pageDisposeJobs&&_.EC(this.rootElement.pageDisposeJobs,A)};
_.q.dispatchEvent=function(A,H){_.Ed(this.rootElement,A,H)};
_.q.provideRenderingData=function(A,H){this.rootElement.provideRenderingData(A,H)};
_.q.scrollWatchTo=function(A,H){var k;(k=this.watchScrollManager)==null||k.scrollWatchTo(A,H)};
_.q.focusOnPlayer=function(){var A=this.getElement("PLAYER");_.No(A,function(){if(A&&A.firstElementChild){var H=A.querySelector(".html5-video-player");H&&(_.Kg(_.wj().resolve(_.A8)),H.focus())}else _.Pq(Error("Vl"))})};
var NDB=function(A){var H=!!A.rootElement.theater,k=!!A.rootElement.fullscreen,d;(d=A.watchCinematicManager)==null||aiM(d,k,H)};
_.q=tWB.prototype;_.q.subscribeToActiveChanged=function(A,H){H=H===void 0?!0:H;var k=_.dC(_.F3(),fWM,function(d){A(d)});
H&&A(fWM(_.F3().getState()));return k};
_.q.isActive=function(){return fWM(_.F3().getState())};
_.q.onAttached=function(){var A=_.b("external_fullscreen");_.b("use_unified_flag_accessor")&&(A=_.wj().resolve(_.NjL).retriever.getFlag(_.KS1));(A||_.Q$("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.q.initPersistentModules=function(){if(_.b("kevlar_watch_flexy_theater_manager")){var A=new QUR(this);_.ZL(this,A)}A=new HdQ(this);_.ZL(this,A);A=new b0(this);_.ZL(this,A);A=new nD_(this);_.ZL(this,A);A=new S9(this);_.ZL(this,A);A=new Lz(this);_.ZL(this,A);_.b("kevlar_watch_flexy_playlist_manager")&&(A=new KKL(this),_.ZL(this,A))};
_.q.initOrDisposeActiveModules=function(A){A?(this.watchScrollManager=new Cz(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new TD3(this)),this.activeModules.push(new ax_(this)),this.activeModules.push(new ENQ(this)),this.activeModules.push(new ue_(this)),_.b("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new EWR(this)),this.activeModules.push(new yE1(this)),_.b("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new lHG(this)),_.b("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new HzV(this)),_.Wl("kevlar_watch_cinematics")&&(this.watchCinematicManager=new FzL(this),this.activeModules.push(this.watchCinematicManager),NDB(this)),_.b("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new P33(this)),_.b("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new oDe(this)),A=_.b("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.b("kevlar_watch_flexy_comments_manager")&&!A&&this.activeModules.push(new ED_(this)),
_.b("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new d7Q(this)),this.activeModules.push(new MHR(this)),this.activeModules.push(new JEe(this)),_.b("web_enable_timely_actions")&&this.activeModules.push(new wte(this)),_.b("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new JFR(this)),_.b("web_watch_enable_multiview_manager")&&this.activeModules.push(new BhG(this)),_.b("web_fullscreen_components")&&this.activeModules.push(new M4B(this)),_.b("web_player_rtr_ctrls")&&
this.activeModules.push(new bqI(this))):(_.KC(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.q.disposeInternal=function(){FT.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.nP.Object.defineProperties(tWB.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.Sw(_.c(function(A){var H=_.GP("script");_.CA(function(){var k;if(k=JSON)k=VKL(A.data()),k=_.e_(JSON.stringify(k).replace(/</g,"\\u003C"));var d=A.data(),W=_.PK(d.title).trim().length===0,z=!d.publishDate||d.publishDate.trim().length===0,u,B,h,O,T=!((u=d.thumbnail)==null?0:(B=u.thumbnails)==null?0:B.length)||!((h=d.thumbnail)==null?0:h.thumbnails[0].url)||((O=d.thumbnail)==null?void 0:O.thumbnails[0].url.trim().length)===0;H.value&&k&&!(W||z||T)&&_.i1(H.value,k)},"Vy9K7b");
return _.x("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.x("script",{el:H,type:"application/ld+json"}))},"sk"),"player-microformat-renderer",{props:{data:_.Fc}});var MWB={},nN1=["learning-journey-engagement-panel","PAlearning_chat"];
MWB.YtdLearningJourneyWatchBehavior=[_.n.YtRendererBehavior,_.Pw.YtPlayerListenerBehavior,_.KM.YtRendererstamperBehavior,_.nM.YtActionHandlerBehavior,di.YtPageBehavior,_.MY.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 _.Q$("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.b("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 _.Q$("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 _.b("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.b("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 _.H5("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.H5("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 _.Wl("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 _.b("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("web_watch_rounded_player_large")||_.b("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 _.b("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.b("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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:RQ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:RQ(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-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 A=this;this.watchController=void 0;this.pageDisposeJobs=[function(){A.showMetadataPlaceholder_()},
function(){_.b("web_watch_dont_clear_comments")||A.clearComments_()},
function(){A.clearPlayerAds_()},
function(){A.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;_.b("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.b("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new h3_(function(){return _.Cj(A)},
this.hostElement);
this.pageDisposeJobs.push(function(){A.youThereManager_.reset()});
_.b("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){A.resetFullerscreenEduButtonForNewPlayback_()}));
_.b("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.ig;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;_.b("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.b("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));_.b("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.nF(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(A){A&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:A}),A.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(A){_.b("kevlar_watch_flexy_theater_manager")&&(this.theater=A,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.b("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(A){!_.b("kevlar_watch_while_v2")&&!_.b("web_watch_pip")||A||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(A){this.active!==void 0&&(this.fullscreen=A,_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(A){this.active!==void 0&&(_.Ed(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(A>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(A){uVL("learning_journey_watch",["pbs","pbp","pbu"]);this.updatePageData_(A)},
updatePageData_:function(A){var H=this;if(A)if(this.data===A){this.onPageLoadWithSameData_();var k;(k=this.watchController)==null||k.setWatchNextResponse(this.data)}else this.data=A;this.playlist&&_.xB({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.OH("nw");this.loading=!1;_.ma(_.IE,function(){bmG();var d,W=((d=H.player)==null?void 0:d.getVideoData().cpn)||"";IZe(function(z,u){Pi3(z,u,W)})})},
onPageLoadWithSameData_:function(){_.b("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 A=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!A);this.set("loadingData.playlistLoading",A&&A!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),A=this.watchNextSkeletonEl_.firstElementChild;A;)A.classList.remove("hidden"),A=A.nextElementSibling;var H,k,d;A=(H=this.loadingData)==null?void 0:(k=H.endpoint)==null?void 0:(d=k.watchEndpoint)==null?void 0:d.videoId;var W;A&&(W="https://i.ytimg.com/vi/"+A+"/frame0.jpg");_.Va(this.hostElement).querySelector("#player").style.backgroundImage=W?"url("+W+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var A=_.Va(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&A&&(A.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,k;(k=(H=this.watchMetadata).updateSentimentBarWidth)==
null||k.call(H);var d,W;(W=(d=this.watchMetadata).resize)==null||W.call(d)}_.Va(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(A){var H=_.Va(this.hostElement).querySelector(A);H?_.KH(H,!1):_.Pq(new _.Ti("Overscroll monitor not found for component: ",A))},
removeSplitScrollMouseTrap:function(A){var H=_.Va(this.hostElement).querySelector(A);H?_.aC(H):_.Pq(new _.Ti("Disposal component for  overscroll monitoring not found: ",A))},
onLoadingChanged_:function(A){A?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(A){var H=this;A?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.IE.addLowPriorityJob(function(){H.onWindowResized_(_.$u(!0))})},
updateTheaterModeState_:function(A){if(!_.b("kevlar_watch_flexy_theater_manager")){A=A||this.fullWindowMode_;if(this.theater!==void 0||A)this.theater=A;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();A&&u3Q()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var A=this.theater;_.b("external_fullscreen")&&this.fullscreen&&(A=!0);A=A?_.Va(this.hostElement).querySelector("#player-full-bleed-container"):_.Va(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),k=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip");H.parentElement!==A&&(k&&_.wj().resolve(_.L6).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Cj(this).appendTo(A,H),A.appendChild(_.Va(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var A=this;return _.e(function(H){if(H.nextAddress==1)return H.yield(_.wj().resolve(_.L6).deactivate(),2);A.updatePlayerLocation();_.EN(H)})},
updateCinematicsLocation:function(){var A=this.getElement("CINEMATICS");if(A){var H=this.getCinematicsLocationContainer();A.parentElement!==H&&H.appendChild(A);var k;(k=this.watchController)==null||NDB(k)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Va(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Va(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(A,H){var k=document.documentElement.hasAttribute("dark"),d=!k&&this.cinematicLightTheme;return A&&k||H&&k||(H||A)&&d},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data);_.b("kevlar_watch_flexy_comments_manager")||this.initComments_();_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.wj().resolve(_.jd).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.b("web_watch_start_chat_in_theater_mode")){var H,
k,d;if((H=this.data)==null?0:(k=H.contents)==null?0:(d=k.twoColumnWatchNextResults)==null?0:d.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var W,z;((W=this.data)==null?0:(z=W.contents)==null?0:z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(A){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);A&&A.playabilityStatus&&(H=this.isVideoPlayable_(A.playabilityStatus,this.getPlayerOverlays_(this.data)),A=EcM(A.playabilityStatus),H&&!A||_.No(this,function(){_.OH("pbu")}));
this.setPlayerAds_();_.li(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(A){_.F3().dispatch(_.p8({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));A?this.activate_():this.deactivate_()},
attached:function(){var A=this;this.watchController=new tWB(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.b("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.Cj(this);_.b("kevlar_disable_prepare_player")||H.preparePlayer();_.b("kevlar_watch_flexy_playlist_manager")||_.wj().resolve(_.jd).setPlayer(H);this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":Mu()+
"px"};!_.H5("kv_pl_mx_sz_ks")&&_.H5("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=YtL+"px");_.H5("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=Gc_+"px");this.safeUpdateStyles(H);_.b("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new WZM(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return A.onPlayerTouchPanDown_()}}));
_.b("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Va(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var A=Mu(),H=nS+A,k=H;this.fixedPanels&&(H+=j9_);var d=657+A;A=1327+A;_.Va(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.Va(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(d+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(A+"px)");_.Va(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(A+"px)");_.Va(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+k+"px)"},
calculateCurrentPlayerSize_:function(){return this.theater||_.b("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Xt(NaN,NaN):F0M(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return F0M(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.CC(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var A=this;this.onWindowResized_(_.$u());_.b("browse_skeleton_removal_on_watch_killswitch")||_.Q$("IS_SHELL_LOAD")&&mmI();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.Cj(this);H.addEventListener("yt-player-updated",_.nF(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(k){A.playerApiReady_(k)});
_.b("kevlar_watch_flexy_playlist_manager")||(H=_.wj().resolve(_.jd),_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.nF(this,this.onYtNavigate_)),H.setPlaylistComponent(_.Va(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.nF(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.IE.addLowPriorityJob(function(){_.Ed(A.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Cj(this).removeEventListener("yt-player-updated",_.nF(this,this.onPlayerUpdated_));if(!_.b("kevlar_watch_flexy_playlist_manager")){var A=_.wj().resolve(_.jd);_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&A.removeEventListener("yt-navigate",_.nF(this,this.onYtNavigate_));A.cancelVideoSkip();A.removeEventListener("yt-playlist-data-updated",_.nF(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();
_.Ed(this.hostElement,"yt-autonav-pause-player",!1);A=_.S1();_.b("kevlar_exit_fullscreen_leaving_watch")&&A&&_.CH(A)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(A){this.player&&this.player.updateVideoData({rvs:A.rvs})},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(A){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A)},
onRetrieveLocation_:function(A,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);A.stopPropagation()},
onSubscriptionChanged_:function(A,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Va(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Va(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(A){this.player=A;A=A.getPlayerState();_.F3().dispatch(_.mL(A));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.b("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.b("kevlar_unified_player")||_.b("kevlar_player_new_bootstrap_adoption"))&&_.Pl()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(A,H){H=H===void 0?!0:H;_.S1()&&_.b("external_fullscreen")&&_.CH(document.documentElement);this.theaterRequested_=A;H&&_.iC("wide",A?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.b("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Ud(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ed(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(A){_.Gg(A,typeof this.player),this.player&&_.Gg(A,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var A;((A=this.player)==null?0:A.isFullscreen())?this.player.toggleFullscreen():_.Ud(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(A,H){return this.loading?H:!!Object.keys(A).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(A){if(A){A=_.r(A);for(var H=A.next();!H.done;H=A.next())H=H.value,H.youThereRenderer&&TM_(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(A){return A||{}},
userEngagementConfigDataChanged_:function(A){if(A)if(A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.Z$()<A.lowEngagementThresholdMs||bBQ(H,!0)}else A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Ud(this.hostElement,"yt-autonav-pause-user-engagement",[A])},
isPlayerUnavailable_:function(A,H,k){return!!A&&!this.isVideoPlayable_(A,k)&&!H},
getPlayerOverlays_:function(A){return(A==null?void 0:A.playerOverlays)||null},
isVideoPlayable_:function(A,H){if(!A)return!1;var k=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",d=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",A)||this.get("errorScreen.ypcTrailerRenderer",A);A=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",A);var W;H=H==null?void 0:(W=H.playerOverlayRenderer)==null?void 0:W.gatedActionsOverlayRenderer;return!!k||!!d||!!A||!!H},
shouldProceedToNextVideo_:function(A,H,k){var d=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),W=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];W=_.b("web_no_skip_video_on_verification_checks")?(A==null?void 0:A.status)&&W.includes(A.status):A&&A.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",A);z==void 0&&(z=!0);!k||this.isVideoPlayable_(A,this.getPlayerOverlays_(H))||
d||W||!z||_.wj().resolve(_.jd).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();tOR()},
onPlayerFeedbackStartRequest_:function(A){_.Ud(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:A}])},
onPlayerFeedbackArticleRequest_:function(A){_.Ud(this.hostElement,"yt-help-dialog-requested",[A])},
onPlayerYpcContentRequest_:function(){var A,H,k,d,W,z,u,B,h=((A=this.data)==null?NaN:(H=A.contents)==null?NaN:(k=H.twoColumnWatchNextResults)==null?NaN:(d=k.secondaryResults)==null?NaN:(W=d.secondaryResults)==null?NaN:(z=W.offerModule)==null?NaN:(u=z.tvfilmOfferModuleRenderer)==null?NaN:(B=u.actionButtons)==null?NaN:B.length)-1;A=[".offerButton.buttonRenderer.",".actionButtons."+(h>=0?h:0)+".buttonRenderer."];H=_.r(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(k=H.next();!k.done;k=H.next())for(k=k.value,d=_.r(A),W=d.next();!W.done;W=d.next())if(W="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+k+W.value,W=this.get(W+"navigationEndpoint",this.data)||this.get(W+"serviceEndpoint",this.data)||this.get(W+"command",this.data)){_.ZS(W,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(A){_.Ed(this.hostElement,"yt-autonav-pause-player",A)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(A){A()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Ed(this.hostElement,"yt-autonav-pause-player-ended")}_.F3().dispatch(_.mL(A))},
onPlayerSubscribe_:function(A){_.Ud(this.hostElement,"yt-player-subscribe",[A])},
onPlayerUnsubscribe_:function(A){_.Ud(this.hostElement,"yt-player-unsubscribe",[A])},
onPlayerAdYtShowToast_:function(A){_.Ud(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:A.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(A){if(A)return A},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(A){return!_.Wl("web_watch_move_summary_to_sd")&&!!A},
computeWatchMetadataRefresh:function(){return _.b("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var A,H,k,d;this.watchNextSecondaryResults=(A=this.data)==null?void 0:(H=A.contents)==null?void 0:(k=H.twoColumnWatchNextResults)==null?void 0:(d=k.secondaryResults)==null?void 0:d.secondaryResults}},
setRichGridRendererData:function(A){this.richGridRendererData=A},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var A,H=(A=this.data)==null?void 0:A.engagementPanels;if(H==null?0:H.length){A=null;H=_.r(H);for(var k=H.next();!k.done;k=H.next()){k=k.value;var d=void 0;if(((d=k.engagementPanelSectionListRenderer)==null?void 0:d.targetId)==="engagement-panel-structured-description"){A=k;break}}var W,z,u;A=(W=A)==null?void 0:(z=W.engagementPanelSectionListRenderer)==null?void 0:(u=z.content)==null?void 0:u.structuredDescriptionContentRenderer;if(A==null?0:A.items){W=
[];z=_.r(A.items);for(u=z.next();!u.done;u=z.next()){u=u.value;if(!_.b("sd_horizontal_list_show_nav_killswitch")){var B=d=k=H=A=void 0,h=void 0,O=(A=u.horizontalCardListRenderer)==null?void 0:(H=A.header)==null?void 0:(k=H.richListHeaderRenderer)==null?void 0:(d=k.navigationButton)==null?void 0:(B=d.buttonRenderer)==null?void 0:(h=B.command)==null?void 0:h.commandExecutorCommand;O&&O.commands&&(O.commands=O.commands.filter(function(T){return!_.L(T,ovL)}))}u.expandableVideoDescriptionBodyRenderer||
u.videoDescriptionHeaderRenderer||W.push(u)}return{items:W}}}},
isPlaShelfEnabled_:function(A){if((this.get("adPlacements",A)||[]).length)return!0;A=this.get("playerAds",A)||[];return!(!A.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",A[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var A=this;_.Ed(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var H=this.getScrollTop()>0;this.gestures_&&(H?this.gestures_.detach():this.gestures_.attach());H!==this.showFullerscreenEdu_&&_.b("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=H,_.Cj(this).getPlayerPromise().then(function(k){k.updateFullerscreenEduButtonVisibility(A.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Ed(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var A=this;this.commentsReady=!1;_.IE.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.ma(_.IE,function(){A.setComments_()},1E3)},
setComments_:function(){if(!_.b("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.OH("cmi");_.IE.cancelJob(this.setCommentsJobId_);var A=Ue_(this.data);if(A&&A.length){A=_.r(A);for(var H=A.next();!H.done;H=A.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ed(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.b("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.OH("cmc")},
doRemoveComments_:function(){this.comments={};_.b("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.IE.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.IE.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(A,H){var k=_.L(H.endpoint,_.Yr);k&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||k.videoId!==H.videoId||k.playlistId&&k.playlistId!==H.playlistId||k.index!==void 0&&k.index!==H.index||typeof k.startTimeSeconds!=="number"||(A.stopPropagation(),this.setScrollTop(0),_.Cj(this).getPlayerPromise().then(function(d){var W=k.startTimeSeconds;d.seekTo(W);d.wakeUpControls();W<d.getDuration()&&d.playVideo()})))},
updatePlayerStartTime_:function(){var A=JWi();"t"in A&&(A=VOL(A.t),this.player.seekTo(A,!0))},
updateTitleFromWatchNext:function(A){A=Ue_(A);var H,k;(A=_.PK(A==null?void 0:(H=A[0])==null?void 0:(k=H.videoPrimaryInfoRenderer)==null?void 0:k.title))&&_.Ed(this.hostElement,"yt-update-title",A)},
updateTitle_:function(A){A=this.get("videoDetails.title",A)||"";_.Ed(this.hostElement,"yt-update-title",A)},
syncWithRemoteVideo_:function(A,H,k){if(this.active&&this.player){var d=this.player.getVideoData();d.video_id===k&&(k=d.list,_.b("polymer_enable_mdx_queue")&&k&&k.startsWith("RQ")&&(k=void 0),d.video_id!==A||k!=H)&&(A=_.b("kevlar_player_watch_endpoint_navigation")?_.q_8(sc_(A,H)):_.C8(A,H),_.Ed(this.hostElement,"yt-navigate",{endpoint:A,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var A=document.querySelector("#watch-page-skeleton");if(A){var H=A.querySelector("#primary-info"),k=A.querySelector("#secondary-info"),d=A.querySelector("#related");H&&_.Va(this.hostElement).querySelector("#info-skeleton").appendChild(H);k&&_.Va(this.hostElement).querySelector("#meta-skeleton").appendChild(k);d&&(_.Va(this.hostElement).querySelector("#related-skeleton").appendChild(d),this.watchNextSkeletonEl_=d);_.Aw(A)}},
handlePlayerUpdated_:function(){_.Cj(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(A,H){if(this.watchNextSkeletonEl_&&typeof H!=="undefined"){var k=this.watchNextSkeletonEl_.children,d=A&&A.indexSplices.length?A.indexSplices[0].index:0;A=Math.min(this.watchNextShownItems.length,k.length);H||(d=0,A=k.length);for(H=d;H<A;H++)k[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(A){_.b("external_fullscreen")||_.Ud(this.hostElement,"yt-player-fullscreen",[A.fullscreen])},
onFullscreenChange_:function(A){this.fullscreen=A;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.Cj(this);H.getPlayerPromise().then(function(k){k.setFauxFullscreen(!!_.S1())});
this.updateFullBleedElementLocations();A&&(H.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(A,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(A){return A},
computeShouldShowMerchShelf:function(A,H){return H&&!!A},
computeResponseHasComments:function(A){var H,k,d,W,z;return!!(A==null?0:(H=A.contents)==null?0:(k=H.twoColumnWatchNextResults)==null?0:(d=k.results)==null?0:(W=d.results)==null?0:(z=W.contents)==null?0:z.some(function(u){var B;return(u==null?void 0:(B=u.itemSectionRenderer)==null?void 0:B.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(A,H){this.responseHasComments=this.computeResponseHasComments(this.data);return!!A&&!!Object.keys(A).length&&!H},
identity:_.Kl,onWindowResized_:function(A){this.windowSize_=A;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.b("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onPlayerPresentingVideoDataChange_:function(A){var H=this;A&&A.type!=="dataloaded"&&A.type!=="dataupdated"||_.Cj(this).getPlayerPromise().then(function(k){var d=k.getPlayerState();d!==5&&d!==0&&(k=1/k.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==k&&(H.videoHeightToWidthRatio_=k))})},
schedulePlayerSizeUpdate_:function(A){var H=this,k=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip"),d=function(){if(H.watchMetadata){var W,z;(z=(W=H.watchMetadata).resize)==null||z.call(W)}_.Cj(H).getPlayerPromise().then(function(u){if(_.Wl("kevlar_set_internal_player_size")){if(!k||!_.wj().resolve(_.L6).isMiniplayerActive()){var B=H.calculateCurrentPlayerSize_();u.setInternalSize(B.width,B.height)}}else u.setSize(NaN,NaN);_.b("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
A?d():_.Hp(_.IE,d)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(A){this.set("data.survey",A.detail)},
onYtShowSurveyCommand_:function(A){this.set("data.survey",_.L(A,DML).survey)},
onDownloadedVideoDeleted:function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1){if(!H.active||(k=H.playerData)==null||!k.offlineState||H.videoId!==A)return W.return();(d=H.player)==null||d.stopVideo();_.Hi().navigatingAwayFromWatchDeletedVideo=!0;_.ZS(_.idl,H.hostElement);return W.yield(_.Hi().navigationFinishPromise,2)}_.Hi().navigatingAwayFromWatchDeletedVideo=!1;_.EN(W)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var A;this.theater?A=_.Py(.5625*this.windowSize_.width,480,this.windowSize_.height-185):A=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==A&&(this.watchWhileScrollThreshold_=A)}},
isTwoColumnsChanged_:function(A,H){if(A!==!0||H!==void 0){A=!_.b("live_chat_over_engagement_panels");H=_.Va(this.hostElement).querySelector("#chat-container");var k=_.Va(this.hostElement).querySelector("#plj-sidebar"),d=_.Va(this.hostElement).querySelector("#panels"),W=_.Va(this.hostElement).querySelector("#plj-panels"),z=_.Va(this.hostElement).querySelector("#plj-playlist"),u=_.Va(this.hostElement).querySelector("#alerts"),B=_.Va(this.hostElement).querySelector("#playlist"),h=_.Va(this.hostElement).querySelector("#related"),
O=_.Va(this.hostElement).querySelector("#donation-shelf"),T=_.Va(this.hostElement).querySelector("#comments");this.isTwoColumns_?(u=_.Va(this.hostElement).querySelector("#secondary-inner"),u.appendChild(k),k.appendChild(z),z.appendChild(B),k.appendChild(W),A&&u.appendChild(d),_.b("web_watch_theater_chat")||u.appendChild(H),A||u.appendChild(d),u.appendChild(O),u.appendChild(h)):(A&&_.vJ(d,u),_.vJ(B,u),_.b("web_watch_theater_chat")||_.vJ(H,u),A||_.vJ(d,u),_.vJ(O,u),T&&(W&&_.vJ(W,T),_.vJ(h,T)));_.b("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.b("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.b("web_watch_theater_chat")){var A=_.Va(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.b("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?_.b("web_watch_theater_chat_beside_player")?(H=_.Va(this.hostElement).querySelector("#panels-full-bleed-container"),(A==null?void 0:A.parentElement)!==H&&H.append(A),this.panelsBesidePlayer=!0):_.b("web_watch_theater_fixed_chat")&&
(H=_.Va(this.hostElement).querySelector("#columns"),(A==null?void 0:A.parentElement)!==H&&H.append(A),this.fixedPanels=!0):(_.b("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.b("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),H=_.Va(this.hostElement).querySelector("#playlist"),A&&H?_.yZ(A,H):_.Pq(new _.Ti("Missing element when updating chat location",{"chatContainer defined":!!A,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(A,H){return _.b("sw_metadata_vis_toggle_ks")?!0:!!A||!!H},
computeForceDarkPanelTheme:function(A){return _.b("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&A:!1},
safeUpdateStyles:function(A){try{_.NH(this.hostElement,A)}catch(H){_.Pq(H)}},
videoHeightToWidthRatioChanged_:function(A,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.b("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(A){this.videoHeightToWidthRatio_=1/A},
computeIsVerticalVideo_:function(A){return A>=1},
computeIsFourThreeToSixteenNineVideo_:function(A){return A<=.7501&&A>=.5624},
computeIsExtraWideVideo_:function(A){return A<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Cj(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Cj(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){L2M(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(A){var H=_.r4(A)||0;_.qH(A,H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var A=_.r4("yt-fullerscreen-edu-button-click-count")||0,H=_.r4("yt-fullerscreen-edu-button-shown-count")||0,k=_.H5("external_fullscreen_button_shown_threshold"),d=A>=_.H5("external_fullscreen_button_click_threshold")||H>=k;_.Cj(this).getPlayerPromise().then(function(W){W.updateFullerscreenEduButtonSubtleModeState(d)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(A,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.wj().resolve(_.jd).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var A=this;this.panelMaxHeightUpdateJob_&&_.IE.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.IE.addLowPriorityJob(function(){A.panelMaxHeightUpdateJob_=0;var H;!A.isTwoColumns_||A.theater||A.fullscreen?H=460:H=A.calculateNormalPlayerSize_().height;var k=H+"px";_.b("live_chat_taller_height")&&!A.theater&&(k="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.b("live_chat_medium_height")&&
!A.theater&&(k="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.b("live_chat_scaled_height")&&!A.theater&&(k="calc(100vh - var(--ytd-toolbar-height) - 238px)");A.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":k,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})})},
onYtShowEngagementPanelScrimAction_:function(A){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",A)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.NT(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(A){var H=_.Va(this.hostElement).querySelector("#engagement-panel-scrim");A?H.addEventListener("tap",_.nF(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.nF(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(A){if(this.hostElement.contains(A)&&!this.scrollToAnimation_.isAnimating()){var H=A.offsetTop-24;A=A.offsetTop+A.offsetHeight+24;var k=this.getPageScrollingElement(),d=this.getScrollTop(),W=d+k.clientHeight-56;if(H<d+56)H-=56;else if(A>W)H=A-k.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtSignalActionScrollToComments:function(){var A=this.hostElement.querySelector("#comments");if(A&&!this.scrollToAnimation_.isAnimating()){A=A.offsetTop-56-24;if(_.b("kevlar_comment_teaser_scroll_to_midpoint")&&(A-=_.dW().height/3,A<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,A),500)}},
onYtEngagementPanelVisibleChanged:function(A,H,k){this.active&&this.trackEngagementPanelVisibility&&!UD1.includes(k)&&(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(k),H!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(k),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(A){return A?"":"watch-active-metadata"},
computeNewMetadataClass:function(A){return A?"watch-active-metadata":""},
computeFullBleedPlayer:function(A,H){return A||H},
computeDefaultLayout:function(A){return!A},
computeDefaultTwoColumnLayout:function(A,H){return!A&&H},
computeWatchWhilePanelsActive:function(A,H){return A||H},
computeNoBorderOnChat:function(A){return _.b("web_watch_theater_chat_no_border")&&A},
computeLiveChatPresentAndExpanded:function(A,H){return A&&!H},
computePanelExpanded:function(A,H,k){return A||H||k},
onChangeMarkersVisibility:function(A){_.Cj(this).getPlayerPromise().then(function(H){var k;(k=H.changeMarkerVisibility)==null||k.call(H,_.L(A,T_).isVisible||!1,_.L(A,T_).entityKeys||[],_.L(A,T_).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(A){this.liveChatCollapsed=A.detail;_.F3().dispatch(QSQ(A.detail))},
provideRenderingData:function(A,H){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=H;break;case "DONATION_SHELF":this.donation=H;break;
case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=H}},
toggleCinematicsActive:function(A){this.cinematicsActive=A},
getLearningJourneyEngagementPanels:function(A){return nN1.map(function(H){return A.find(function(k){var d;return(k==null?void 0:(d=k.engagementPanelSectionListRenderer)==null?void 0:d.targetId)===H})}).filter(function(H){return H!==void 0})},
getNonLearningJourneyEngagementPanels:function(A){return A.filter(function(H){var k;return!nN1.includes((H==null?void 0:(k=H.engagementPanelSectionListRenderer)==null?void 0:k.targetId)||"")})}}];var Kz=function(){return _.A6.apply(this,arguments)||this};
_.I(Kz,_.A6);_.q=Kz.prototype;_.q.activeChanged=function(){if(this.active){var A=_.Va(this.hostElement).querySelector("#header");A&&_.Ed(A,"iron-resize");window.addEventListener("scroll",_.nF(this,this.onScroll))}else window.removeEventListener("scroll",_.nF(this,this.onScroll)),_.Ed(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.q.guideVisibleChanged=function(){var A=_.Va(this.hostElement).querySelector("#header");A&&_.Ed(A,"iron-resize")};
_.q.onScroll=function(){var A=this;_.vW(this,"onScroll",function(){var H=_.Va(A.hostElement).querySelector("#header");H&&H.polymerController&&(H=H.polymerController.getScrollState().progress===1?"standard":"seamed",_.Ed(A.hostElement,"yt-request-panel-mode-change",{mode:H}))},10)};
_.q.tabsChanged=function(){if(this.tabs){for(var A=null,H=0,k=this.tabs.length;H<k;++H){var d=this.tabs[H].tabRenderer;if(d&&d.selected){A=H;break}}this.selected=A}};
_.q.onTabsActivate=function(A){_.Ed(this.hostElement,"yt-navigate",{endpoint:this.tabs[A.detail.selected].tabRenderer.endpoint})};
Kz.prototype.tabsChanged=Kz.prototype.tabsChanged;Kz.prototype.guideVisibleChanged=Kz.prototype.guideVisibleChanged;Kz.prototype.activeChanged=Kz.prototype.activeChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],Kz.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.C(),_.l("design:type",Array)],Kz.prototype,"tabs",void 0);
_.E([_.C(),_.l("design:type",Object)],Kz.prototype,"selected",void 0);_.E([_.C(),_.l("design:type",Boolean)],Kz.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Kz.prototype,"disableHeaderFluidWidth",void 0);_.E([_.fF("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Kz.prototype,"activeChanged",null);
_.E([_.fF("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Kz.prototype,"guideVisibleChanged",null);_.E([_.fF("tabs"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Kz.prototype,"tabsChanged",null);_.E([_.HW()],Kz);var ZdL=[_.n.YtRendererBehavior,_.vw.YtdGuideStateAwareBehavior,Kz.prototype];var wOR=function(A){_.dF.call(this);var H=this;this.JSC$21579_watchApi=A;this.observer=null;var k=this.JSC$21579_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fHe(H)});
this.addOnDisposeCallback(function(){H.JSC$21579_watchApi.unsubscribeByKey(k);H.observer&&(H.observer.disconnect(),H.observer=null)});
fHe(this)};
_.I(wOR,_.dF);var fHe=function(A){var H,k,d,W,z;_.e(function(u){if(u.nextAddress==1){A.observer&&(A.observer.disconnect(),A.observer=null);H=A.JSC$21579_watchApi.getWatchNextResponse();if(!H)return u.return();k=_.L(H,xMI);return((d=k)==null?0:d.enableCreatorChatbot)&&k.creatorChannelId?_.b("enable_creator_chatbot_link_out")?u.yield((0,_.$J)("NSzT5"),6):u.yield((0,_.$J)("NSzT5"),5):u.jumpTo(0)}if(u.nextAddress!=6)return W=_.zww,W(k.creatorChannelId),u.jumpTo(0);z=_.WGk;z(k.creatorChannelId);_.EN(u)})};var aK=function(A){_.dF.call(this);this.JSC$21583_watchApi=A;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;oNi(this)};
_.I(aK,_.dF);var oNi=function(A){_.e(function(H){if(H.nextAddress==1)return H.yield($IM(A),2);Ap_(A);_.EN(H)})},$IM=function(A){var H,k,d,W,z,u,B,h,O;
return _.e(function(T){if(T.nextAddress==1)return T.yield(A.JSC$21583_watchApi.playerApi,2);H=T.yieldResult;A.JSC$21583_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){HQB(A)});
A.JSC$21583_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){A.isShelfVisible?stQ(A):cm(A)});
k=_.F3().subscribe(function(){A.isTheaterMode=_.iL(_.F3().getState());A.isTheaterMode?cm(A):kS_(A)});
d=A.JSC$21583_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ap_(A)});
W=function(m){A.onCueRangeEnter(m)};
H.addEventListener("onCueRangeEnter",W);z=function(m){A.onCueRangeExit(m)};
H.addEventListener("onCueRangeExit",z);u=function(){A.isSeeking=!0};
H.addEventListener("SEEK_TO",u);B=function(){A.onSeekComplete()};
H.addEventListener("SEEK_COMPLETE",B);h=function(){A.onAdStart()};
H.addEventListener("onAdStart",h);O=function(){A.onAdComplete()};
H.addEventListener("onAdComplete",O);A.addOnDisposeCallback(function(){k();A.JSC$21583_watchApi.unsubscribeByKey(d);H.removeEventListener("onCueRangeEnter",W);H.removeEventListener("onCueRangeExit",z);H.removeEventListener("SEEK_TO",u);H.removeEventListener("SEEK_COMPLETE",B);H.removeEventListener("onAdStart",h);H.removeEventListener("onAdComplete",O)});
_.EN(T)})},dWM=function(A){var H,k,d,W,z,u,B,h,O;
return(z=(H=A.contents)==null?void 0:(k=H.twoColumnWatchNextResults)==null?void 0:(d=k.results)==null?void 0:(W=d.results)==null?void 0:W.contents)==null?void 0:(u=z.find(function(T){var m,J,g;return(m=T.itemSectionRenderer)==null?void 0:(J=m.contents)==null?void 0:(g=J[0])==null?void 0:g.shoppingTimelyShelfViewModel}))==null?void 0:(B=u.itemSectionRenderer)==null?void 0:(h=B.contents)==null?void 0:(O=h[0])==null?void 0:O.shoppingTimelyShelfViewModel},Ap_=function(A){var H;
_.e(function(k){if(k.nextAddress==1)return(H=A.JSC$21583_watchApi.getWatchNextResponse())?k.yield(HQB(A),2):k.return();A.shoppingTimelyShelfViewModel=dWM(H);WiR(A);z51(A);_.EN(k)})},WiR=function(A){var H,k=(H=A.shoppingTimelyShelfViewModel)==null?void 0:H.offerIdToVariants;
k&&(H=k.filter(function(d){return d.key&&d.value}).map(function(d){return[d.key,
d.value]}),A.variantsMap=new Map(H))},z51=function(A){var H,k,d,W,z,u;
_.e(function(B){if(B.nextAddress==1)return(k=(H=A.shoppingTimelyShelfViewModel)==null?void 0:H.cueRanges)?B.yield(A.JSC$21583_watchApi.playerApi,2):B.return();d=B.yieldResult;A.cueRanges=k;W=_.r(k);for(z=W.next();!z.done;z=W.next())u=z.value,u.startTime!==void 0&&u.endTime!==void 0&&u.id!==void 0&&d.addCueRange("shopping_timely_shelf"+u.id,qo1(u.startTime),qo1(u.endTime));_.EN(B)})},qo1=function(A){return Number(A.seconds||0)+(A.nanos||0)/1E9};
aK.prototype.onCueRangeEnter=function(A){if(A.startsWith("shopping_timely_shelf")&&(this.activeCueId=A,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){A=A.substring(21);var H,k,d=(H=this.variantsMap)==null?void 0:(k=H.get(A))==null?void 0:k.shelf;d&&(this.JSC$21583_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",d),stQ(this))}};
aK.prototype.onCueRangeExit=function(A){A.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||cm(this))};
aK.prototype.onSeekComplete=function(){this.isSeeking=!1;kS_(this)};
var stQ=function(A){A.shoppingTimelyShelfViewModel&&(A.isShelfVisible=!0,_.a3.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},cm=function(A){A.shoppingTimelyShelfViewModel&&A.isShelfVisible&&(A.isShelfVisible=!1,_.a3.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},HQB=function(A){var H,k,d,W,z;
return _.e(function(u){if(u.nextAddress==1)return u.yield(A.JSC$21583_watchApi.playerApi,2);H=u.yieldResult;if(A.cueRanges)for(k=_.r(A.cueRanges),d=k.next();!d.done;d=k.next())W=d.value,W.id&&(z="shopping_timely_shelf"+W.id,H.removeCueRange(z));A.JSC$21583_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});cm(A);A.shoppingTimelyShelfViewModel=void 0;A.cueRanges=void 0;A.variantsMap=void 0;A.isSeeking=!1;A.activeCueId=void 0;_.EN(u)})};
aK.prototype.onAdStart=function(){this.isAdPlaying=!0;cm(this)};
aK.prototype.onAdComplete=function(){this.isAdPlaying=!1;kS_(this)};
var kS_=function(A){if(A.activeCueId)A.onCueRangeEnter(A.activeCueId);else cm(A)};var xWi=function(A){_.dF.call(this);var H=this;this.JSC$21590_watchApi=A;A=_.dC(_.F3(),_.Lxv,function(){rpL(H)});
this.addOnDisposeCallback(A);A=_.dC(_.F3(),w0e,function(){rpL(H)});
this.addOnDisposeCallback(A);ui_(this);B8i(this);e5_()};
_.I(xWi,_.dF);var ui_=function(A){var H=function(d){_.F3().dispatch(pD_(d.matches))},k=window.matchMedia("(max-width: "+(999+Mu())+"px)");
k.addListener(H);A.addOnDisposeCallback(function(){k.removeListener(H)});
H(k)},B8i=function(A){A.JSC$21590_watchApi.registerActionHandler("yt-window-resized",function(){e5_()});
A.addOnDisposeCallback(function(){A.JSC$21590_watchApi.unregisterActionHandler("yt-window-resized")})},e5_=function(){var A=_.$u();
_.F3().dispatch(_.p8({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:A.width,height:A.height}}}))},rpL=function(A){var H;
_.e(function(k){if(k.nextAddress==1)return k.yield(A.JSC$21590_watchApi.playerApi,2);H=k.yieldResult;H.setSize(NaN,NaN);_.EN(k)})};var iQ1=function(A){_.dF.call(this);var H=_.wj().resolve(_.uv);woL(H,A.getElement("PLAYER_CONTAINER"),A.getElement("BELOW_THE_PLAYER"),A.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var k=A.getElement("PLAYER_CONTAINER"),d=A.getElement("BELOW_THE_PLAYER"),W=A.getElement("SECONDARY");H.isLockupToWatchTransitionEnabled&&(k&&_.Jc(H.viewTransitionCoordinator,k),d&&_.Jc(H.viewTransitionCoordinator,d),W&&_.Jc(H.viewTransitionCoordinator,W))})};
_.I(iQ1,_.dF);var pz=function(A){FT.call(this);var H=this;this.rootElement=A;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(k){H.initOrDisposeActiveModules(k)}));
this.onAttached()};
_.I(pz,FT);_.q=pz.prototype;_.q.getRoot=function(){return this.rootElement};
_.q.getElement=function(A){return this.rootElement.getElement(A)};
_.q.setPlayerResponse=function(A){this.playerResponse=A;this.publish("PLAYER_RESPONSE_UPDATED",A)};
_.q.getPlayerResponse=function(){return this.playerResponse};
_.q.setWatchNextResponse=function(A){this.watchNextResponse===A?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=A,this.publish("WATCH_NEXT_RESPONSE_UPDATED",A))};
_.q.getWatchNextResponse=function(){return this.watchNextResponse};
_.q.registerActionHandler=function(A,H){var k=this;if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var d={};_.cq(_.a3.getInstance(),(d[A]=H,d),this.getRoot())}else this.actionHandlers.has(A)||(this.actionHandlers.set(A,[]),d={},_.cq(_.a3.getInstance(),(d[A]=function(){var W=_.o7.apply(0,arguments);return(k.actionHandlers.get(A)||[]).map(function(z){return z.apply(null,_.fV(W))})},d),this.getRoot())),this.actionHandlers.get(A).push(H)};
_.q.unregisterActionHandler=function(A){if(_.b("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.pT(_.a3.getInstance(),(H[A]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(A))?(H.pop(),H.length===0&&(H={},_.pT(_.a3.getInstance(),(H[A]=!0,H),this.getRoot()),this.actionHandlers.delete(A))):_.Pq(new _.Ti("Attempted to unregister an action handler which is not registered.",A))};
_.q.addPageDisposeJob=function(A){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Frm(this.rootElement.pageDisposeJobs,A)};
_.q.removePageDisposeJob=function(A){this.rootElement.pageDisposeJobs&&_.EC(this.rootElement.pageDisposeJobs,A)};
_.q.dispatchEvent=function(A,H){_.Ed(this.rootElement,A,H)};
_.q.provideRenderingData=function(A,H){this.rootElement.provideRenderingData(A,H)};
_.q.scrollWatchTo=function(A,H){var k;(k=this.watchScrollManager)==null||k.scrollWatchTo(A,H)};
_.q.focusOnPlayer=function(){var A=this.getElement("PLAYER");_.No(A,function(){if(A&&A.firstElementChild){var H=A.querySelector(".html5-video-player");H&&(_.Kg(_.wj().resolve(_.A8)),H.focus())}else _.Pq(Error("Vl"))})};
_.q.subscribeToActiveChanged=function(A,H){H=H===void 0?!0:H;var k=_.dC(_.F3(),Z83,function(d){A(d)});
H&&A(Z83(_.F3().getState()));return k};
_.q.isActive=function(){return Z83(_.F3().getState())};
_.q.onAttached=function(){var A=_.b("external_fullscreen");_.b("use_unified_flag_accessor")&&(A=_.wj().resolve(_.NjL).retriever.getFlag(_.KS1));(A||_.Q$("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var h5_=function(A){return A.getRoot().is==="ytd-watch-flexy"||A.getRoot().is==="ytd-watch-grid"},Q1=function(A){return A.getRoot().is==="ytd-watch-fixie"};
pz.prototype.initPersistentModules=function(){if(Q1(this)||h5_(this)&&_.b("kevlar_watch_flexy_theater_manager")){var A=new QUR(this);_.ZL(this,A)}A=new HdQ(this);_.ZL(this,A);A=new b0(this);_.ZL(this,A);A=new nD_(this);_.ZL(this,A);A=new S9(this);_.ZL(this,A);A=new Lz(this);_.ZL(this,A);if(Q1(this)||h5_(this)&&_.b("kevlar_watch_flexy_playlist_manager"))A=new KKL(this),_.ZL(this,A);_.b("web_thumbnail_to_watch_transition")&&(A=new iQ1(this),_.ZL(this,A))};
pz.prototype.initOrDisposeActiveModules=function(A){A?(this.watchScrollManager=new Cz(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new TD3(this)),_.b("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new aK(this)),this.activeModules.push(new ax_(this)),Q1(this)&&this.activeModules.push(new xWi(this)),this.activeModules.push(new ENQ(this)),this.activeModules.push(new ue_(this)),(Q1(this)||_.b("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new EWR(this)),
this.activeModules.push(new yE1(this)),(Q1(this)||_.b("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new lHG(this)),(Q1(this)||_.b("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new HzV(this)),_.Wl("kevlar_watch_cinematics")&&(this.watchCinematicManager=new FzL(this),this.activeModules.push(this.watchCinematicManager)),_.b("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new P33(this)),_.b("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new oDe(this)),
A=_.b("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.b("kevlar_watch_flexy_comments_manager")&&!A&&this.activeModules.push(new ED_(this)),_.b("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new d7Q(this)),this.activeModules.push(new MHR(this)),this.activeModules.push(new JEe(this)),_.b("web_enable_timely_actions")&&this.activeModules.push(new wte(this)),_.b("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new JFR(this)),_.b("web_watch_enable_multiview_manager")&&
this.activeModules.push(new BhG(this)),_.b("web_fullscreen_components")&&this.activeModules.push(new M4B(this)),_.b("web_player_rtr_ctrls")&&this.activeModules.push(new bqI(this)),(_.b("enable_creator_chatbot")||_.b("enable_creator_chatbot_link_out"))&&this.activeModules.push(new wOR(this))):(_.KC(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
pz.prototype.disposeInternal=function(){FT.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.nP.Object.defineProperties(pz.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.Sw(_.c(function(A){var H=A.data;A=_.r(_.RV(!1,void 0,"VotqNe"));var k=A.next().value,d=A.next().value;_.CZ(function(){_.a3.getInstance().triggerAction("yt-request-timely-shelf-state")});
var W=_.be(function(){var O,T,m=(O=_.L(H().rendererContext,_.H8))==null?void 0:(T=O.loggingDirectives)==null?void 0:T.trackingParams;if(m)return _.db(m)},void 0,"AvMXxb");
_.cq(_.a3.getInstance(),{"yt-hide-shopping-timely-shelf":function(){d(!1);var O=_.hx(),T=W();O&&T&&_.YB(O,[T])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){d(!0);var O=_.hx(),T=W();O&&T&&_.IN(O,[T])})}});
var z=function(){var O;return(O=H().image)==null?void 0:O.image},u=function(){var O,T;
return!!((O=z())==null?0:(T=O.sources)==null?0:T.some(function(m){var J;return!!(m==null?0:(J=m.clientResource)==null?0:J.imageName)}))},B=function(){var O;
return((O=H().image)==null?void 0:O.height)||40},h=function(){var O;
return(O=H().image)==null?void 0:O.backgroundColor};
A={};return _.x("yt-shopping-timely-shelf-content-view-model",{el:_.P8(_.OF(function(){return H().rendererContext})),
class:_.ER("ytShoppingTimelyShelfContentViewModelHost",(A.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(H().image||H().avatar||H().line1)&&k()},A)),
style:_.Mt({"--shopping-timely-shelf-content-padding-top":function(){var O;return lsL((O=H().padding)==null?void 0:O.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var O;return lsL((O=H().padding)==null?void 0:O.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var O;return lsL((O=H().padding)==null?void 0:O.start)},
"--shopping-timely-shelf-content-padding-end":function(){var O;return lsL((O=H().padding)==null?void 0:O.end)},
"--yt-shopping-timely-shelf-background-color":function(){return H().backgroundColor!==void 0?_.h1(H().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var O,T;return((T=(O=H().image)==null?void 0:O.cornerRadius)!=null?T:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return h()!==void 0?_.h1(h()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var O;return(((O=H().image)==null?void 0:O.width)||40)+"px"}})},_.x(_.R,{cond:z,
then:function(O){var T={};return _.x(_.GA,{preserveHeight:!0,preserveWidth:!0,height:B,data:O,alt:"",className:_.ER("ytShoppingTimelyShelfContentViewModelImage",(T.ytShoppingTimelyShelfContentViewModelIcon=u,T))})}}),_.x(_.HG,{data:function(){return H().avatar}},{avatarViewModel:_.RW}),_.x("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.x(_.HG,{data:function(){return H().line1}},{shoppingContentLineViewModel:function(O){return _.x(_.aZ,{data:O.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.x(_.HG,{data:function(){return H().line2}},{shoppingContentLineViewModel:function(O){return _.x(_.aZ,{data:O.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.x("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.x(_.HG,{data:function(){var O;
return(O=H().button)!=null?O:[]}},{buttonViewModel:function(O){var T=O.data;
return _.x(_.U7,{data:T,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(m){T().onTap&&m.stopPropagation()}})}})))},"tk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.Ih}});var OQ_={};
OQ_.YtdWatchBehavior=[_.n.YtRendererBehavior,_.Pw.YtPlayerListenerBehavior,_.KM.YtRendererstamperBehavior,_.nM.YtActionHandlerBehavior,di.YtPageBehavior,_.MY.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 _.Q$("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.b("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 _.Q$("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 _.b("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.b("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 _.H5("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.H5("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 _.b("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.b("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.b("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.b("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.b("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("swatcheroo_enable_ghost_cards")||_.b("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 _.b("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 _.b("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.b("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 _.b("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 _.b("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(A,H,k){return A&&(H||!k)},
computeShowGhostRelated_:function(A,H,k){return A&&(H||!k)},
monitorScroll:!0,configureRendererStamper:function(){var A={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:RQ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:RQ(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-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"||_.b("swa_prov_panels_ks")?A.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(A.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},A.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return A},
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-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 A=this;this.watchController=void 0;this.pageDisposeJobs=[function(){A.showMetadataPlaceholder_()},
function(){_.b("web_watch_dont_clear_comments")||A.clearComments_()},
function(){A.clearPlayerAds_()},
function(){A.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.b("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.b("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new h3_(function(){return _.Cj(A)},this.hostElement);
this.pageDisposeJobs.push(function(){A.youThereManager_.reset()});
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.ig;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;_.b("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));_.b("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.nF(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(A){A&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:A}),A.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(A){_.b("kevlar_watch_flexy_theater_manager")&&(this.theater=A,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(A){!_.b("kevlar_watch_while_v2")&&!_.b("web_watch_pip")||A||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(A){this.active!==void 0&&(this.fullscreen=A,_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(A){this.active!==void 0&&(_.Ed(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.b("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(A>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(A){uVL("watch",["pbs","pbp","pbu"]);this.updatePageData_(A)},
updatePageData_:function(A){var H=this;if(A)if(this.data===A){this.onPageLoadWithSameData_();var k;(k=this.watchController)==null||k.setWatchNextResponse(this.data)}else this.data=A;this.playlist&&_.xB({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.OH("nw");this.loading=!1;_.ma(_.IE,function(){bmG();var d,W=((d=H.player)==null?void 0:d.getVideoData().cpn)||"";IZe(function(z,u){Pi3(z,u,W)})})},
onPageLoadWithSameData_:function(){_.b("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 A=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!A);this.set("loadingData.playlistLoading",A&&A!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),A=this.watchNextSkeletonEl_.firstElementChild;A;)A.classList.remove("hidden"),A=A.nextElementSibling;if(_.b("kevlar_watch_frame0_loading_state")){var H,k,d;A=(H=this.loadingData)==null?void 0:(k=H.endpoint)==null?void 0:(d=k.watchEndpoint)==null?void 0:d.videoId;var W;A&&(W="https://i.ytimg.com/vi/"+A+"/frame0.jpg");_.Va(this.hostElement).querySelector("#player").style.backgroundImage=W?"url("+W+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var A=_.Va(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&A&&(A.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,k;(k=(H=this.watchMetadata).updateSentimentBarWidth)==
null||k.call(H);var d,W;(W=(d=this.watchMetadata).resize)==null||W.call(d)}_.b("kevlar_watch_frame0_loading_state")&&(_.Va(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(A){var H=_.Va(this.hostElement).querySelector(A);H?_.KH(H,!1):_.Pq(new _.Ti("Overscroll monitor not found for component: ",A))},
removeSplitScrollMouseTrap:function(A){var H=_.Va(this.hostElement).querySelector(A);H?_.aC(H):_.Pq(new _.Ti("Disposal component for  overscroll monitoring not found: ",A))},
onLoadingChanged_:function(A){A?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.b("web_thumbnail_to_watch_transition")&&!_.i5G||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.b("web_thumbnail_to_watch_transition")&&!_.i5G||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(A){var H=this;A?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.IE.addLowPriorityJob(function(){H.onWindowResized_(_.$u(!0))})},
updateTheaterModeState_:function(A){if(!_.b("kevlar_watch_flexy_theater_manager")){A=A||this.fullWindowMode_;if(this.theater!==void 0||A)this.theater=A;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();A&&u3Q()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var A=this.fullBleedPlayer?_.Va(this.hostElement).querySelector("#player-full-bleed-container"):_.Va(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),k=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip");H.parentElement!==A&&(k&&_.wj().resolve(_.L6).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.Cj(this).appendTo(A,H))},
updateErrorScreenLocation:function(){var A=_.Va(this.hostElement).querySelector("#error-screen"),H=this.fullBleedPlayer?_.Va(this.hostElement).querySelector("#player-full-bleed-container"):_.Va(this.hostElement).querySelector("#player");A.parentElement!==H&&H.appendChild(A)},
deactivateMiniplayerAndResetPlayer:function(){var A=this;return _.e(function(H){if(H.nextAddress==1)return H.yield(_.wj().resolve(_.L6).deactivate(),2);A.updatePlayerLocation();_.EN(H)})},
updateCinematicsLocation:function(){var A=this.getElement("CINEMATICS");if(A){var H=this.getCinematicsLocationContainer();A.parentElement!==H&&H.appendChild(A)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.Va(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Va(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(A,H,k){var d=document.documentElement.hasAttribute("dark"),W=!d&&this.cinematicLightTheme;return k||A&&d||H&&d||(H||A)&&W},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var A=this,H;(H=this.watchController)==null||H.setWatchNextResponse(this.data);_.b("kevlar_watch_flexy_comments_manager")||this.initComments_();_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.wj().resolve(_.jd).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,_.b("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.IE.addLowPriorityJob(function(){_.li(A.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.b("web_watch_start_chat_in_theater_mode")){var k,d,W;if((k=this.data)==null?0:(d=k.contents)==null?0:(W=d.twoColumnWatchNextResults)==null?0:W.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(A){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);A&&A.playabilityStatus&&(H=this.isVideoPlayable_(A.playabilityStatus,this.getPlayerOverlays_(this.data)),A=tKM(A.playabilityStatus),H&&!A||_.No(this,function(){_.OH("pbu")}));
this.setPlayerAds_();_.li(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(A,H){if((_.b("kevlar_watch_while_v2")||_.b("web_watch_pip"))&&this.playerData&&H)return this.playerData.videoDetails},
watchPageActiveChanged_:function(A){_.F3().dispatch(cgG(this.active));A?this.activate_():this.deactivate_()},
attached:function(){var A=this;this.watchController=new pz(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);_.b("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.Cj(this);_.b("kevlar_disable_prepare_player")||
H.preparePlayer();_.b("kevlar_watch_flexy_playlist_manager")||_.wj().resolve(_.jd).setPlayer(H);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":Mu()+"px"};this.is==="ytd-watch-grid"&&(_.F3().dispatch(_.p8({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),H["--ytd-watch-flexy-sidebar-width"]=j9_+"px",H["--ytd-watch-grid-horizontal-page-margins"]=ZU+"px",H["--ytd-watch-grid-columns-top-margins"]=PLL+"px",
H["--ytd-watch-grid-min-player-height-medium"]="360px");!_.H5("kv_pl_mx_sz_ks")&&_.H5("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=YtL+"px");_.H5("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=Gc_+"px");this.safeUpdateStyles(H);_.b("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Di(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return A.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Va(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var A=Mu(),H=nS+A,k=H;this.fixedPanels&&(H+=j9_);var d=657+A;A=1327+A;_.Va(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.Va(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(d+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(A+"px)");_.Va(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(A+"px)");_.Va(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+k+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var A=this.squeezeback&&!_.b("web_watch_squeezeback_player_size_killswitch");return this.theater||_.b("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||A||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Xt(NaN,NaN):F0M(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return F0M(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.CC(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var A=this;this.onWindowResized_(_.$u());_.b("browse_skeleton_removal_on_watch_killswitch")||_.Q$("IS_SHELL_LOAD")&&mmI();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.Cj(this);H.addEventListener("yt-player-updated",_.nF(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(k){A.playerApiReady_(k)});
_.b("kevlar_watch_flexy_playlist_manager")||(H=_.wj().resolve(_.jd),_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.nF(this,this.onYtNavigate_)),H.setPlaylistComponent(_.Va(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.nF(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.IE.addLowPriorityJob(function(){_.Ed(A.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Cj(this).removeEventListener("yt-player-updated",_.nF(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.b("kevlar_watch_flexy_playlist_manager")){var A=_.wj().resolve(_.jd);_.b("kevlar_watch_observe_playlist_navigations_killswitch")&&A.removeEventListener("yt-navigate",_.nF(this,this.onYtNavigate_));
A.cancelVideoSkip();A.removeEventListener("yt-playlist-data-updated",_.nF(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();_.Ed(this.hostElement,"yt-autonav-pause-player",!1);A=_.S1();_.b("kevlar_exit_fullscreen_leaving_watch")&&A&&_.CH(A)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(A){this.player&&this.player.updateVideoData({rvs:A.rvs})},
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(A){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A)},
onRetrieveLocation_:function(A,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);A.stopPropagation()},
onSubscriptionChanged_:function(A,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Va(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Va(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(A){this.player=A;A=A.getPlayerState();_.F3().dispatch(_.mL(A));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();(_.b("kevlar_unified_player")||_.b("kevlar_player_new_bootstrap_adoption"))&&_.Pl()},
setTheaterModeRequested:function(A,H){H=H===void 0?!0:H;_.S1()&&_.b("external_fullscreen")&&_.CH(document.documentElement);this.theaterRequested_=A;H&&_.iC("wide",A?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Ud(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ed(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(A){_.Gg(A,typeof this.player),this.player&&_.Gg(A,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var A;((A=this.player)==null?0:A.isFullscreen())?this.player.toggleFullscreen():_.Ud(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(A,H){return this.loading?H:!!Object.keys(A).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(A){if(A){A=_.r(A);for(var H=A.next();!H.done;H=A.next())H=H.value,H.youThereRenderer&&TM_(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(A){return A||{}},
userEngagementConfigDataChanged_:function(A){if(A)if(A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.Z$()<A.lowEngagementThresholdMs||bBQ(H,!0)}else A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Ud(this.hostElement,"yt-autonav-pause-user-engagement",[A])},
isPlayerUnavailable_:function(A,H,k){return!!A&&!this.isVideoPlayable_(A,k)&&!H},
getPlayerOverlays_:function(A){return(A==null?void 0:A.playerOverlays)||null},
isVideoPlayable_:function(A,H){if(!A)return!1;var k=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",d=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",A)||this.get("errorScreen.ypcTrailerRenderer",A);A=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",A);var W;H=H==null?void 0:(W=H.playerOverlayRenderer)==null?void 0:W.gatedActionsOverlayRenderer;return!!k||!!d||!!A||!!H},
shouldProceedToNextVideo_:function(A,H,k){var d=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),W=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];W=_.b("web_no_skip_video_on_verification_checks")?(A==null?void 0:A.status)&&W.includes(A.status):A&&A.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",A);z==void 0&&(z=!0);!k||this.isVideoPlayable_(A,this.getPlayerOverlays_(H))||
d||W||!z||_.wj().resolve(_.jd).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();tOR()},
onPlayerFeedbackStartRequest_:function(A){_.Ud(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:A}])},
onPlayerFeedbackArticleRequest_:function(A){_.Ud(this.hostElement,"yt-help-dialog-requested",[A])},
onPlayerYpcContentRequest_:function(){var A,H,k,d,W,z,u,B,h=((A=this.data)==null?NaN:(H=A.contents)==null?NaN:(k=H.twoColumnWatchNextResults)==null?NaN:(d=k.secondaryResults)==null?NaN:(W=d.secondaryResults)==null?NaN:(z=W.offerModule)==null?NaN:(u=z.tvfilmOfferModuleRenderer)==null?NaN:(B=u.actionButtons)==null?NaN:B.length)-1;A=[".offerButton.buttonRenderer.",".actionButtons."+(h>=0?h:0)+".buttonRenderer."];H=_.r(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(k=H.next();!k.done;k=H.next())for(k=k.value,d=_.r(A),W=d.next();!W.done;W=d.next())if(W="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+k+W.value,W=this.get(W+"navigationEndpoint",this.data)||this.get(W+"serviceEndpoint",this.data)||this.get(W+"command",this.data)){_.ZS(W,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(A){_.Ed(this.hostElement,"yt-autonav-pause-player",A)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(A){A()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Ed(this.hostElement,"yt-autonav-pause-player-ended")}_.F3().dispatch(_.mL(A))},
onPlayerSubscribe_:function(A){_.Ud(this.hostElement,"yt-player-subscribe",[A])},
onPlayerUnsubscribe_:function(A){_.Ud(this.hostElement,"yt-player-unsubscribe",[A])},
onPlayerAdYtShowToast_:function(A){_.Ud(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:A.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(A){if(A)return A},
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(A){return!_.Wl("web_watch_move_summary_to_sd")&&!!A},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.b("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var A,H,k,d;this.watchNextSecondaryResults=(A=this.data)==null?void 0:(H=A.contents)==null?void 0:(k=H.twoColumnWatchNextResults)==null?void 0:(d=k.secondaryResults)==null?void 0:d.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var A,H=(A=this.data)==null?void 0:A.engagementPanels;if(H==null?0:H.length){A=null;H=_.r(H);for(var k=H.next();!k.done;k=H.next()){k=k.value;var d=void 0;if(((d=k.engagementPanelSectionListRenderer)==null?void 0:d.targetId)==="engagement-panel-structured-description"){A=k;break}}var W,z,u;A=(W=A)==null?void 0:(z=W.engagementPanelSectionListRenderer)==null?void 0:(u=z.content)==null?void 0:u.structuredDescriptionContentRenderer;if(A==null?0:A.items){W=
[];z=_.r(A.items);for(u=z.next();!u.done;u=z.next()){u=u.value;if(!_.b("sd_horizontal_list_show_nav_killswitch")){var B=d=k=H=A=void 0,h=void 0,O=(A=u.horizontalCardListRenderer)==null?void 0:(H=A.header)==null?void 0:(k=H.richListHeaderRenderer)==null?void 0:(d=k.navigationButton)==null?void 0:(B=d.buttonRenderer)==null?void 0:(h=B.command)==null?void 0:h.commandExecutorCommand;O&&O.commands&&(O.commands=O.commands.filter(function(T){return!_.L(T,ovL)}))}(!u.expandableVideoDescriptionBodyRenderer&&
!u.videoDescriptionHeaderRenderer||_.b("web_delhi_colorful_sd"))&&W.push(u)}return{items:W}}}},
isPlaShelfEnabled_:function(A){if((this.get("adPlacements",A)||[]).length)return!0;A=this.get("playerAds",A)||[];return!(!A.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",A[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var A=this;this.commentsReady=!1;_.IE.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.ma(_.IE,function(){A.setComments_()},1E3)},
setComments_:function(){if(!_.b("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.OH("cmi");_.IE.cancelJob(this.setCommentsJobId_);var A=NKQ(this.data);if(A&&A.length){A=_.r(A);for(var H=A.next();!H.done;H=A.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ed(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.b("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.b("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.OH("cmc")},
doRemoveComments_:function(){this.comments={};_.b("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.IE.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.IE.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(A,H){var k=_.L(H.endpoint,_.Yr);k&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||k.videoId!==H.videoId||k.playlistId&&k.playlistId!==H.playlistId||k.index!==void 0&&k.index!==H.index||typeof k.startTimeSeconds!=="number"||(A.stopPropagation(),this.setScrollTop(0),_.Cj(this).getPlayerPromise().then(function(d){var W=k.startTimeSeconds;d.seekTo(W);d.wakeUpControls();W<d.getDuration()&&d.playVideo()})))},
updatePlayerStartTime_:function(){var A=JWi();"t"in A&&(A=VOL(A.t),this.player.seekTo(A,!0))},
updateTitleFromWatchNext:function(A){A=NKQ(A);var H,k;(A=_.PK(A==null?void 0:(H=A[0])==null?void 0:(k=H.videoPrimaryInfoRenderer)==null?void 0:k.title))&&_.Ed(this.hostElement,"yt-update-title",A)},
updateTitle_:function(A){A=this.get("videoDetails.title",A)||"";_.Ed(this.hostElement,"yt-update-title",A)},
syncWithRemoteVideo_:function(A,H,k){if(this.active&&this.player){var d=this.player.getVideoData();d.video_id===k&&(k=d.list,_.b("polymer_enable_mdx_queue")&&k&&k.startsWith("RQ")&&(k=void 0),d.video_id!==A||k!=H)&&(A=_.b("kevlar_player_watch_endpoint_navigation")?_.q_8(sc_(A,H)):_.C8(A,H),_.Ed(this.hostElement,"yt-navigate",{endpoint:A,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var A=document.querySelector("#watch-page-skeleton");if(A){var H=A.querySelector("#primary-info"),k=A.querySelector("#secondary-info"),d=A.querySelector("#related");H&&_.Va(this.hostElement).querySelector("#info-skeleton").appendChild(H);k&&_.Va(this.hostElement).querySelector("#meta-skeleton").appendChild(k);d&&(_.Va(this.hostElement).querySelector("#related-skeleton").appendChild(d),this.watchNextSkeletonEl_=d);_.Aw(A)}},
handlePlayerUpdated_:function(){_.Cj(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(A,H){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof H!=="undefined"){var k=this.watchNextSkeletonEl_.children,d=A&&A.indexSplices.length?A.indexSplices[0].index:0;A=Math.min(this.watchNextShownItems.length,k.length);H||(d=0,A=k.length);if(!this.ghostCardsEnabled)for(H=d;H<A;H++)k[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(A){_.b("external_fullscreen")||_.Ud(this.hostElement,"yt-player-fullscreen",[A.fullscreen])},
onFullscreenChange_:function(A){this.fullscreen=A;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.Cj(this);H.getPlayerPromise().then(function(k){k.setFauxFullscreen(!!_.S1())});
this.updateFullBleedElementLocations();A&&H.focusOnPlayer()},
computeShouldStampChat_:function(A,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(A){return A},
computeShouldShowMerchShelf:function(A,H){return H&&!!A},
computeResponseHasComments:function(A){var H,k,d,W,z;return!!(A==null?0:(H=A.contents)==null?0:(k=H.twoColumnWatchNextResults)==null?0:(d=k.results)==null?0:(W=d.results)==null?0:(z=W.contents)==null?0:z.some(function(u){var B;return(u==null?void 0:(B=u.itemSectionRenderer)==null?void 0:B.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(A,H,k,d){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&d?!1:!!A&&!!Object.keys(A).length&&!H},
identity:_.Kl,onWindowResized_:function(A){this.windowSize_=A;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())},
onPlayerPresentingVideoDataChange_:function(A){var H=this;A&&A.type!=="dataloaded"&&A.type!=="dataupdated"||_.Cj(this).getPlayerPromise().then(function(k){var d=k.getPlayerState();d!==5&&d!==0&&(k=1/k.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==k&&(H.videoHeightToWidthRatio_=k))})},
schedulePlayerSizeUpdate_:function(A){var H=this,k=_.b("kevlar_watch_while_v2")||_.b("web_watch_pip"),d=function(){if(H.watchMetadata){var W,z;(z=(W=H.watchMetadata).resize)==null||z.call(W)}_.Cj(H).getPlayerPromise().then(function(u){if(_.Wl("kevlar_set_internal_player_size")){if(!k||!_.wj().resolve(_.L6).isMiniplayerActive()){var B=H.calculateCurrentPlayerSize_();u.setInternalSize(B.width,B.height)}}else u.setSize(NaN,NaN);_.b("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
A?d():_.Hp(_.IE,d)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(A){this.set("data.survey",A.detail)},
onYtShowSurveyCommand_:function(A){this.set("data.survey",_.L(A,DML).survey)},
onDownloadedVideoDeleted:function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1){if(!H.active||(k=H.playerData)==null||!k.offlineState||H.videoId!==A)return W.return();(d=H.player)==null||d.stopVideo();_.Hi().navigatingAwayFromWatchDeletedVideo=!0;_.ZS(_.idl,H.hostElement);return W.yield(_.Hi().navigationFinishPromise,2)}_.Hi().navigatingAwayFromWatchDeletedVideo=!1;_.EN(W)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var A;this.theater?A=_.Py(.5625*this.windowSize_.width,480,this.windowSize_.height-185):A=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==A&&(this.watchWhileScrollThreshold_=A)}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var A=_.Va(this.hostElement).querySelector("#secondary-inner");if(A){var H=_.Va(this.hostElement).querySelector("#below"),k=_.Va(this.hostElement).querySelector("#secondary"),d=_.Va(this.hostElement).querySelector("#comments");d&&k&&H&&(this.defaultTwoColumnLayout?(A.appendChild(d),k.appendChild(A)):(H.appendChild(d),yg(H,A)))}}},
isTwoColumnsChanged_:function(A,H){if(A!==!0||H!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(A=_.Va(this.hostElement).querySelector("#secondary-inner"))){H=_.Va(this.hostElement).querySelector("#below");var k=_.Va(this.hostElement).querySelector("#secondary"),d=_.Va(this.hostElement).querySelector("#comments");d&&k&&H&&(this.isTwoColumns_?(A.appendChild(d),k.appendChild(A)):(H.appendChild(d),yg(H,A)))}}else{A=!_.b("web_watch_enable_fs_squeezeback_panels");
H=_.Va(this.hostElement).querySelector("#panels");var W=_.Va(this.hostElement).querySelector("#alerts"),z=_.Va(this.hostElement).querySelector("#shopping-timely-shelf");k=_.Va(this.hostElement).querySelector("#playlist");d=_.Va(this.hostElement).querySelector("#related");var u=_.Va(this.hostElement).querySelector("#donation-shelf"),B=_.Va(this.hostElement).querySelector("#comments"),h=_.Va(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(W=_.Va(this.hostElement).querySelector("#secondary-inner"),
A&&(W.appendChild(H),W.appendChild(k),this.aiCompanionEnabled&&h&&W.appendChild(h)),W.appendChild(u),W.appendChild(d)):(A&&(_.vJ(H,W),_.vJ(k,W),this.aiCompanionEnabled&&h&&_.vJ(h,W),_.vJ(z,k)),_.vJ(u,W),B&&_.vJ(d,B));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.b("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.b("web_watch_enable_fs_squeezeback_panels")&&_.b("web_watch_theater_chat")){var A=_.Va(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.b("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?(H=_.Va(this.hostElement).querySelector("#columns"),(A==null?void 0:A.parentElement)!==H&&H.append(A),this.fixedPanels=!0):(this.fixedPanels=
!1,H=_.Va(this.hostElement).querySelector("#playlist"),A&&H?_.yZ(A,H):_.Pq(new _.Ti("Missing element when updating chat location",{"chatContainer defined":!!A,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(A,H){return _.b("sw_metadata_vis_toggle_ks")?!0:!!A||!!H},
computeForceDarkPanelTheme:function(A){return _.b("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&A:!1},
safeUpdateStyles:function(A){try{_.NH(this.hostElement,A)}catch(H){_.Pq(H)}},
videoHeightToWidthRatioChanged_:function(A,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(A){this.videoHeightToWidthRatio_=1/A},
computeIsVerticalVideo_:function(A){return A>=1},
computeIsFourThreeToSixteenNineVideo_:function(A){return A<=.7501&&A>=.5624},
computeIsExtraWideVideo_:function(A){return A<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Cj(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Cj(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){L2M(this.youThereManager_)},
computePlaylistData_:function(A,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.wj().resolve(_.jd).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var A=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.IE.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.IE.addLowPriorityJob(function(){A.fullHeightPanelPositionUpdateJobId=0;var H=_.Va(A.hostElement).querySelector("#secondary"),k=_.Va(A.hostElement).querySelector("#fixed-secondary");H=H.getBoundingClientRect();var d=H.width;A.swatcherooSqueezeback&&
(d+=ZU);if(A.swatcherooSqueezeback){var W=_.Va(A.hostElement).querySelector("#squeezeback-constraining-container");W.style.width=d+"px";W.style.flex="0 0 "+d+"px"}k.style.width=d+"px";k.style.left=H.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var A=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.IE.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.IE.addLowPriorityJob(function(){A.panelMaxHeightUpdateJob_=0;var H;!A.isTwoColumns_||A.theater||A.fullscreen?H=460:H=A.calculateNormalPlayerSize_().height;var k=H+"px";_.b("live_chat_taller_height")&&!A.theater&&(k="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.b("live_chat_medium_height")&&!A.theater&&(k="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.b("live_chat_scaled_height")&&!A.theater&&(k="calc(100vh - var(--ytd-toolbar-height) - 238px)");A.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":k,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(A){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",A)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.NT(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(A){var H=_.Va(this.hostElement).querySelector("#engagement-panel-scrim");A?H.addEventListener("tap",_.nF(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.nF(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtEngagementPanelVisibleChanged:function(A,H,k){if(this.active&&this.trackEngagementPanelVisibility&&!UD1.includes(k)){if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.li(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var d=_.wj().resolve(_.eZ);this.visiblePanelIdentifiers_.forEach(function(W){W!==k&&d.hidePanel({identifier:W})})}this.visiblePanelIdentifiers_.add(k)}H!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(k);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(A){return A?"":"watch-active-metadata"},
computeNewMetadataClass:function(A){return A?"watch-active-metadata":""},
computeIsSingleColumn:function(A,H){return H&&!A},
computeFullBleedPlayer:function(A,H,k){return _.b("external_fullscreen")&&A||H||k},
computeDefaultLayout:function(A){return!A},
computeDefaultTwoColumnLayout:function(A,H){return!A&&H},
updatePanelsLocation:function(){if(_.b("web_watch_enable_fs_squeezeback_panels")){var A=_.Va(this.hostElement).querySelector("#below"),H=_.Va(this.hostElement).querySelector("#panels"),k=_.Va(this.hostElement).querySelector("#playlist"),d=_.Va(this.hostElement).querySelector("#chat-container"),W=_.Va(this.hostElement).querySelector("#panels-full-bleed-container"),z=_.Va(this.hostElement).querySelector("#secondary-inner"),u=_.Va(this.hostElement).querySelector("#shopping-timely-shelf"),B=_.Va(this.hostElement).querySelector("#persistent-panel-container");
if(A&&H&&k&&d&&W&&z&&u&&(this.aiCompanionEnabled?B:1)){var h=this.fullscreen||this.theater&&this.iMaxTheaterMode,O=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;O?(O=_.Va(this.hostElement).querySelector("#columns"),(d==null?void 0:d.parentElement)!==O&&O.append(d),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):h?W.appendChild(d):this.isTwoColumns_?yg(z,d):yg(A,d);h?(W.appendChild(H),W.appendChild(k),
this.aiCompanionEnabled&&B&&W.appendChild(B)):(this.isTwoColumns_?(yg(z,H),yg(z,k),this.aiCompanionEnabled&&B&&yg(z,B)):(yg(A,H),yg(A,k),this.aiCompanionEnabled&&B&&yg(A,B)),yg(A,u))}}},
swatcherooUpdatePanelsLocation:function(A,H,k,d,W,z){if(this.is==="ytd-watch-grid"){H=A&&!H;this.swatcherooSplitScroll&&(H?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));k=_.Va(this.hostElement).querySelector("#panels");var u=_.Va(this.hostElement).querySelector("#playlist"),B=_.Va(this.hostElement).querySelector("#persistent-panel-container"),
h=_.Va(this.hostElement).querySelector("#fixed-secondary"),O=_.Va(this.hostElement).querySelector("#fixed-below"),T=_.Va(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),m=_.Va(this.hostElement).querySelector("#chat-container");z&&(A?(h.appendChild(k),this.aiCompanionEnabled&&B&&h.appendChild(B)):(O.appendChild(k),this.aiCompanionEnabled&&B&&O.appendChild(B)));W?A?h.appendChild(m):O.appendChild(m):_.yZ(m,T);d?A?h.appendChild(u):O.appendChild(u):_.yZ(u,
T);this.swatcherooSplitScroll&&(A=_.Va(this.hostElement).querySelector("#secondary"),d=_.Va(this.hostElement).querySelector("#columns"),W=_.Va(this.hostElement).querySelector("#fixed-columns-secondary"),H?W.appendChild(A):d.appendChild(A))}},
computeMetadataSkinnyMode:function(A,H,k){return this.is!=="ytd-watch-grid"?!1:A?k:H},
computeWatchWhilePanelsActive:function(A,H){return A||H},
computeNoBorderOnChat:function(A){return _.b("web_watch_theater_chat_no_border")&&A},
computeLiveChatPresentAndExpanded:function(A,H){return A&&!H},
computePanelExpanded:function(A,H,k){return A||H||k},
computeSqueezeback:function(A,H,k,d){if(_.b("web_watch_enable_fs_squeezeback_panels")){var W=this.iMaxTheaterMode&&this.theater,z=this.theater&&!this.iMaxTheaterMode;return(A||H||k)&&(W||d)||H&&z}},
computeSwatcherooSqueezeback:function(A,H,k){return this.is!=="ytd-watch-grid"||_.b("ww_squeezeback_killswitch")?!1:A&&H&&k},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(A){_.Cj(this).getPlayerPromise().then(function(H){var k;(k=H.changeMarkerVisibility)==null||k.call(H,_.L(A,T_).isVisible||!1,_.L(A,T_).entityKeys||[],_.L(A,T_).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(A){this.liveChatCollapsed=A.detail;_.F3().dispatch(QSQ(A.detail));if(!this.liveChatCollapsed&&this.squeezeback){var H=_.wj().resolve(_.eZ);this.visiblePanelIdentifiers_.forEach(function(k){H.hidePanel({identifier:k})})}},
onSetPlaylistCollapsed:function(A){_.b("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!A)},
provideRenderingData:function(A,H){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.b("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=H;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=
H;break;case "DONATION_SHELF":this.donation=H;break;case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
H;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=H;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=H}},
toggleCinematicsActive:function(A){this.cinematicsActive=A}}];var R5_=function(A,H){var k;return((k=A.prefixMapping)==null?0:k[H])?A.prefixMapping[H]:A.SHARED_RENDERERS_.hasOwnProperty(H)?"yt":A.prefix},V1={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}}};V1.DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,addSpacing:_.b("kevlar_add_spacing_to_sheets")},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
V1.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"};
V1.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"};V1.LOCKED_OVERLAY_DIALOG={component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,scrollAction:"lock",withBackdrop:!0},preventAutonav:!0};
V1.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.b("kevlar_mealbar_above_player"),modern:_.pZ("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX",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"}};
V1.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};V1.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};V1.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
V1.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)"}};
V1.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};
V1.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};
V1.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};
V1.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.b("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
V1.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"}};V1.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};V1.TOAST={component:null,properties:{}};var T8G=new function(A,H,k){this.supportedPopups=A;this.navigationEndpointPopupMap=H;this.popupTypeMap=k;this.supportedPopups=A;this.navigationEndpointPopupMap=H;this.popupTypeMap=k}({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:_.b("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"}),mW_=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,unifiedSharePanelRenderer:!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$21608_popupConfig=V1;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 JpI=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.R6.getInstance()},ES=function(A,H){var k=A.pageNameToElement.get(H);
if(!k){switch(H){case "watch":var d=_.b("web_watch_force_learning_journey_for_testing")?_.Db("ytd-watch-learning-journey"):_.b("kevlar_watch_fixie")?_.Db("ytd-watch-fixie"):_.b("kevlar_watch_grid")?_.Db("ytd-watch-grid"):_.Db("ytd-watch-flexy");break;case "learning_journey_watch":d=_.Db("ytd-watch-learning-journey");break;case "shorts":d=_.Db("ytd-shorts");break;case "search":d=_.Db("ytd-search");break;case "channel":d=_.Db("ytd-browse");d.pageSubtype="channels";break;case "trending":d=_.Db("ytd-browse");
d.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":d=
_.Db("ytd-browse");d.pageSubtype=H;break;case "browse":d=_.Db("ytd-browse");break;default:_.Pq(new _.Ti("Error getting page element for type",H))}k=d;A.pageNameToElement.set(H,k)}return k};
JpI.prototype.preparePage=function(A,H,k){k&&(A=_.Zu(k)||A);if(A!=="watch"&&A!=="learning_journey_watch"){var d=this.elementPoolPopulator,W=A;W!=d.targetPage_&&d.pendingPages_.indexOf(W)>-1&&(d.targetPage_&&(d.pendingPages_.unshift(d.targetPage_),d.abort()),Zni(d,W),_.ICA(d,W))}if((d=ES(this,A))||!_.L(k,_.KT)){d.isAttached||d===H||(d.hidden=!0);if(!d.data&&(A!=="watch"&&A!=="learning_journey_watch"||!_.b("swatcheroo_page_pool_dont_provide_filler_data"))){var z;if(A=(z=_.pZ("FILLER_DATA",{})[A])==
null?void 0:z.response)d.data=A}return d}};var gPQ=function(A){this.JSC$33539_clientRoot=A;this.playlistHandlerActionMap={"yt-add-to-playlist-command":fsB,"yt-end-playlist-command":wp3,"yt-recover-playlist-command":$eI,"yt-refresh-playlist-command":sXB,"yt-playlist-remove-videos-action":AYQ};_.cq(_.a3.getInstance(),this.playlistHandlerActionMap,this.JSC$33539_clientRoot);xrL()},bQi;var US=function(A,H,k){this.apiKey=A;this.endpoint=H;this.confidenceThreshold=k===void 0?.5:k;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=H==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
H==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new GnB};
_.q=US.prototype;
_.q.start=function(A){if(this.state===0)if(this.isOnline()){A.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=A.supportsHttpHeadersOverwriteParam);A.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=A.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.hZ("voice_assistant");_.RN("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=A.languageCode||"en-US";this.supportsCrossDomainXhr=A.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=A.youtubeAssistantRequest||null;this.listeningHandler=A.listeningHandler||this.listeningHandler;this.audioDetectedHandler=A.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=A.stopHandler||this.stopHandler;this.completeHandler=A.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=A.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=A.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
A.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=A.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=A.accessToken;this.additionalHeaders=A.additionalHeaders||{};var H;this.prefetchResponseTimeoutMs=(H=A.prefetchResponseTimeoutMs)!=null?H:this.prefetchResponseTimeoutMs;LiI(this);this.startAudio();vP_(this)}else this.errorHandler("OFFLINE")};
_.q.stop=function(A){var H=A===void 0?{}:A;A=H.logCancel===void 0?!0:H.logCancel;var k=H.logMicClosed===void 0?!0:H.logMicClosed;var d=H.handleError===void 0?!0:H.handleError;H=H.handleStop===void 0?!0:H.handleStop;this.state!==0&&(A&&l0("voz_cx"),tD(this,{logMicClosed:k,handleStop:H}),d&&this.errorHandler("ABORTED"))};
_.q.getState=function(){return this.state};
_.q.isSupported=function(){return!0};
_.q.stopAudio=function(A){(A===void 0||A)&&l0("voz_mf")};
_.q.startAudio=function(){l0("voz_vp");return _.MT(null)};
var ype=function(A,H){A.channelOpen&&(A.state!==2&&(A.state=2,l0("voz_ss"),A.listeningHandler()),H=new Uint8Array(H),H='{ "audioIn": "'+_.ob(H)+'" }',A.channel.send(H))},tD=function(A,H){var k=H===void 0?{}:H;
H=k.logMicClosed===void 0?!0:k.logMicClosed;k=k.handleStop===void 0?!0:k.handleStop;A.vozEndOfDataTimeout>-1&&(clearTimeout(A.vozEndOfDataTimeout),A.vozEndOfDataTimeout=-1);jti(A);A.stopAudio(H);A.channel&&(A.channelOpen=!1,A.manuallyClosedChannel=!0,A.channel.close(),A.channel=void 0);A.transcribedSpeechResults=[];A.state=0;k&&A.stopHandler()},LiI=function(A){var H={httpHeadersOverwriteParam:A.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},A.additionalHeaders,A.accessToken&&A.isUsingVoz?{Authorization:"Bearer "+A.accessToken}:{"x-goog-api-key":A.apiKey}),supportsCrossDomainXhr:A.supportsCrossDomainXhr};A.channel=new B9(A.endpoint,H);A.channel.open();_.Y3(A.channel,"w",function(){var k=A.channel,d=k.send,W=A.isUsingVoz?"PLACEHOLDER":"example";W={config:{dialogStateIn:{languageCode:A.languageCode},deviceConfig:{deviceId:W,deviceModelId:W},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!A.isUsingVoz)W.config.requestType=4;else if(A.isUsingVoz&&A.youtubeAssistantRequest){var z=JSON.stringify(A.youtubeAssistantRequest);W.config.internalIn={youtubeAssistantS3InputJson:z}}d.call(k,W);A.channelOpen=!0;A.manuallyClosedChannel=!1});
_.Y3(A.channel,"x",function(){A.manuallyClosedChannel||(A.channelOpen=!1,A.channel=void 0,tD(A))});
_.Y3(A.channel,"z",function(k){if(k.data){jti(A);for(var d=0;d<k.data.length;d++){var W=A,z=k.data[d],u=z.speechResults;if(u)a:{var B=[];z=[];var h=!1;u=_.r(u);for(var O=u.next();!O.done;O=u.next()){O=O.value;if(O.noSpeech){tD(W);W.errorHandler("NO_SPEECH");break a}O.transcript!==void 0&&O.stability!==void 0&&(O.stability<W.confidenceThreshold&&(h=!0),h?z.push(O.transcript):B.push(O.transcript))}if(B.length!==0||z.length!==0)B=B.join(" "),z=z.join(" "),W.receivedEndOfUtterance&&!W.isUsingVoz?W.isUsingVoz||
W.completeHandler([B,z]):(h=W,u=B,O=z,l0("voz_sf"),h.transcriptionUpdateHandler(u,O),h.transcribedSpeechResults=[u,O]),W.receivedEndOfUtterance&&(l0("voz_eou"),W.transcriptionCompleteHandler([B,z]),W.isUsingVoz&&(W.prefetchResponseTimeoutMs===0?tD(W,{logMicClosed:!1,handleStop:!0}):W.prefetchResponseTimeoutMs>0&&IEM(W)))}else W.isUsingVoz&&(z==null?0:z.internalOut)?(z=JSON.parse(z.internalOut.youtubeAssistantS3OutputJson),z.userHasOptedInToVaa||z.vaaConsent?W.vaaConsentUpdateHandler(!!z.userHasOptedInToVaa,
!!z.vaaConsent):(Yo_(W),z&&(B=W.transcribedSpeechResults,l0("voz_rqf"),W.completeHandler(B,z)))):z.eventType==="END_OF_UTTERANCE"?W.receivedEndOfUtterance=!0:(l0("voz_err"),W.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Pq(Error("Wl")))}}});
_.Y3(A.channel,"y",function(k){tD(A);switch(k.status){case 1:k="WEBCHANNEL_NETWORK_ERROR";break;case 2:k="WEBCHANNEL_SERVER_ERROR";break;default:k="WEBCHANNEL_UNKNOWN_ERROR"}A.errorHandler(k);A.logError(Error(k))})};
US.prototype.logError=function(A){_.I3(A)};
US.prototype.isOnline=function(){return!0};
var IEM=function(A){Yo_(A);A.prefetchResponseSetTimeoutId=setTimeout(function(){tD(A,{logMicClosed:!1,handleStop:!0})},A.prefetchResponseTimeoutMs)},Yo_=function(A){A.prefetchResponseSetTimeoutId>-1&&(clearTimeout(A.prefetchResponseSetTimeoutId),A.prefetchResponseSetTimeoutId=-1)},vP_=function(A){jti(A);
A.noResponseReceivedTimeout=window.setTimeout(function(){tD(A);A.errorHandler("NO_SPEECH")},11E3)},jti=function(A){A.noResponseReceivedTimeout>-1&&(window.clearTimeout(A.noResponseReceivedTimeout),A.noResponseReceivedTimeout=-1)},l0=function(A){_.OH(A,void 0,"voice_assistant")};var ND=function(){US.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.I(ND,US);ND.prototype.isSupported=function(){return k5R()};
ND.prototype.startAudio=function(){var A=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.qt(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(d){PqG(A,d)};
this.processor.connect(this.audioContext.destination);var H=function(d){A.stream=d;if(!A.audioContext)return _.MT(null);d=A.audioContext.createMediaStreamSource(d);A.processor&&d.connect(A.processor);return _.MT(null)},k={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?H(this.stream):(k=navigator.mediaDevices.getUserMedia(k))?k.then(H).catch(function(d){tD(A);d.name&&d.name==="NotAllowedError"?A.errorHandler("NO_MICROPHONE_PERMISSION"):(A.errorHandler("AUDIO_ERROR"),A.logError(d));return _.qt(null)}):(tD(this),this.errorHandler("AUDIO_ERROR"),_.Pq(Error("Xl")));
return US.prototype.startAudio.call(this)};
ND.prototype.stopAudio=function(A){A=A===void 0?!0:A;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(H){H.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;US.prototype.stopAudio.call(this,A)};
ND.prototype.isOnline=function(){return navigator.onLine};
var PqG=function(A,H){if(A.audioContext)if(window.OfflineAudioContext){var k=A.audioContext.sampleRate,d=H.inputBuffer.getChannelData(0);H=new window.OfflineAudioContext(1,d.length,16E3);for(var W=H.createBuffer(1,d.length,k),z=W.getChannelData(0),u=0,B=0;B<d.length;B++)z[B]=d[B],u+=z[B]*z[B];!A.audioDetected&&Math.sqrt(u/d.length)>.01&&(A.audioDetected=!0,A.audioDetectedHandler());d=H.createBufferSource();d.buffer=W;d.connect(H.destination);d.start(0);H.oncomplete=function(h){h=h.renderedBuffer.getChannelData(0);
for(var O=Math.floor(16384E3/k),T=new Int16Array(O),m=0;m<O;++m)T[m]=Math.max(-1,Math.min(1,h[m]))*32767;ype(A,T.buffer)};
H.startRendering()}else GSB(A,H)},GSB=function(A,H){var k=A.audioContext.sampleRate,d=H.inputBuffer.getChannelData(0),W=Math.floor((k+8E3)/16E3);
k=d.length/W;H=new Float32Array(k);for(var z=0;z<k;++z)H[z]=d[z*W];d=new Int16Array(k);for(W=0;W<k;++W)d[W]=Math.max(-1,Math.min(1,H[W]))*32767;ype(A,d.buffer)};var Fi_={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var Xsi=function(){this.JSC$21673_audioEnabled=!0;this.audioFeedbackHolder={}};
Xsi.prototype.isPlaying=function(A){return A.currentTime>0&&!A.paused&&!A.ended&&A.readyState>2};
var DWe=function(A){for(var H=_.r(Object.values(Fi_)),k=H.next();!k.done;k=H.next())k=k.value,A.audioFeedbackHolder[k]=new Audio,A.audioFeedbackHolder[k].src="/s/search/audio/"+k+".mp3",A.audioFeedbackHolder[k].load()},MD=function(A,H){if(A.JSC$21673_audioEnabled!==!1&&H in A.audioFeedbackHolder){for(var k=_.r(Object.values(A.audioFeedbackHolder)),d=k.next();!d.done;d=k.next())d=d.value,A.isPlaying(d)&&d.pause();
A.audioFeedbackHolder[H].currentTime=0;A.audioFeedbackHolder[H].play().catch(function(){})}};var SoB=function(A,H){var k=this;this.store=A;this.service=H;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){k.setState("offline");k.stop()};
this.audioPlayer=new Xsi;var d;(d=this.audioPlayer)==null||DWe(d)};
_.q=SoB.prototype;_.q.getService=function(){return this.service};
_.q.isEnabled=function(){return!!this.service};
_.q.isSupported=function(){var A;return(A=this.service)==null?void 0:A.isSupported()};
_.q.start=function(){var A=this,H,k,d,W,z,u,B,h,O,T,m,J,g;return _.e(function(v){switch(v.nextAddress){case 1:A.store.dispatch(VVG("",""));if(!navigator.onLine)return A.setState("offline"),v.return();window.addEventListener("offline",A.handleOfflineEvent);A.stream=null;if(!A.permissionsSupported){v.jumpTo(2);break}_.S_(v,3);return v.yield(CqG(A),5);case 5:H=v.yieldResult;if(!H)return(k=A.audioPlayer)==null||MD(k,"failure"),v.return();A.service.stream=A.stream;A.setState("listening");_.QN(v,2);break;
case 3:_.VA(v),A.permissionsSupported=!1;case 2:d={context:_.mHQ(_.$6())},d.youtubeAssistantParams={searchParams:{inlineSearchResponse:A.enableInlineSearchResponse}},W=function(y,X){A.store.dispatch(E2I("transcribing"));A.store.dispatch(VVG(y,X))},z=function(){var y;
(y=A.audioPlayer)==null||MD(y,"open");A.setState("listening")},u=function(){A.setState("transcribing")},B=function(y){A.setErrorState(y)},h=function(y,X){var D;
(D=A.audioPlayer)==null||MD(D,"success");X&&(_.b("kevlar_voice_search_inline_search")&&(A.responseProcessor=_.wj().resolve(_.VNj),A.responseProcessor&&(D=X.navigationAction,y=X.prefetchedSearchResponse,D&&y&&(D=(new _.q93).JSC$14498_getStoreKey(D),_.IL(A.responseProcessor,y,D)))),A.JSC$21691_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",X))},O=function(){window.removeEventListener("offline",A.handleOfflineEvent)},T=_.YJf(!1),m=T.Authorization!=null,J=A.enableFirstPartyAuth||
A.enableFPAForSignedInUsers&&m?T:{"X-Goog-Visitor-Id":T["X-Goog-Visitor-Id"]},g={completeHandler:h,
errorHandler:B,listeningHandler:z,audioDetectedHandler:u,stopHandler:O,transcriptionUpdateHandler:W,youtubeAssistantRequest:d,languageCode:Ki_(),additionalHeaders:J,supportsCrossDomainXhr:A.enableFirstPartyAuth||A.enableFPAForSignedInUsers&&m,supportsHttpHeadersOverwriteParam:!A.disableHttpHeadersOverwrite},A.service.start(g),_.EN(v)}})};
_.q.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.q.reset=function(){this.store.dispatch(_.p8({type:"RESET_VOICE_SEARCH_STATE"}))};
_.q.setState=function(A){this.store.dispatch(E2I(A))};
_.q.setErrorState=function(A){switch(A){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var H;(H=this.audioPlayer)==null||MD(H,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)CqG(this);else{var k;(k=this.audioPlayer)==null||MD(k,"failure");this.setState("permission-denied")}break;case "ABORTED":var d;(d=this.audioPlayer)==null||MD(d,"no_input");break;default:var W;(W=this.audioPlayer)==
null||MD(W,"no_input");this.setState("timeout")}};
var CqG=function(A){var H,k;return _.e(function(d){switch(d.nextAddress){case 1:return d.yield(navigator.permissions.query({name:"microphone"}),2);case 2:H=d.yieldResult;if(H.state==="granted")return d.return(!0);if(H.state==="denied")return A.setState("permission-denied"),d.return(!1);A.setState("permission");k={audio:{sampleSize:16,channelCount:1},video:!1};_.S_(d,3);return d.yield(navigator.mediaDevices.getUserMedia(k),5);case 5:return A.stream=d.yieldResult,d.return(!0);case 3:return _.VA(d),
A.setState("permission-denied"),d.return(!1)}})},Ki_=function(){var A=_.pZ("INNERTUBE_CONTEXT_HL"),H=_.pZ("INNERTUBE_CONTEXT_GL");
return A.indexOf("-")>-1?A:A+"-"+H};var aEB=function(A,H,k){SoB.call(this,H,k);this.JSC$21691_actionRouter=A;this.enableInlineSearchResponse=_.b("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.b("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.b("kevlar_voice_search_enable_fpa_signedin_users")},cpL;
_.I(aEB,SoB);
var psL=function(){if(!cpL){var A="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.b("kevlar_voice_search_auth_enabled")||_.b("kevlar_voice_search_use_yt_endpoint")?A="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.b("kevlar_voice_search_use_fp_endpoint")&&(A="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");cpL=
new aEB(_.a3.getInstance(),_.F3(),new ND(_.pZ("VOZ_API_KEY"),A,.5))}return cpL};var Qte=function(A){this.JSC$21695_clientRoot=A;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$21695_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)]]));A=_.r(this.eventListeners);for(var H=A.next();!H.done;H=A.next()){var k=
_.r(H.value);H=k.next().value;k=k.next().value;k=_.r(k);for(var d=k.next();!d.done;d=k.next()){var W=_.r(d.value);d=W.next().value;W=W.next().value;H.addEventListener(d,W)}}_.cq(_.a3.getInstance(),this.autonavPauseActionMap,this.JSC$21695_clientRoot)},V5G,EP_=function(A){return _.b("kevlar_autonav_popup_filtering")?(A=_.X_(A))?A.hasAttribute("prevent-autonav"):!0:!0};
_.q=Qte.prototype;_.q.onIronOverlayOpened=function(A){EP_(A)&&(this.autonavPauseReasons.overlayOpen=!0,nz(this))};
_.q.onIronOverlayClosed=function(A){EP_(A)&&(this.autonavPauseReasons.overlayOpen=!1,nz(this))};
_.q.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;nz(this)};
_.q.onYtAutonavPauseBlur=function(){var A=this;_.IE.addJob(function(){UWG()||(A.autonavPauseReasons.inputBoxFocus=!1,nz(A))},8,0)};
_.q.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;nz(this)};
_.q.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;nz(this)};
_.q.onYtAutonavPauseScroll=function(){var A=_.wj().resolve(_.SO);A.isOnWatch()&&(A=A.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=A.getBoundingClientRect().top<-200,nz(this))};
_.q.onYtAutonavPauseUserEngagement=function(A){var H=this;if(_.b("user_engagement_enable_autoplay_pause_feature")){var k=Number(A.lowEngagementThresholdMs);isNaN(k)||k<=0||A.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?fS("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.wj().resolve(_.A8),_.Z$()<k?_.ma(_.IE,function(){fS("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):c8B()?(this.userEngagementCsn=_.hx(),_.ma(_.IE,function(){fS("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
H.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,nz(this)):fS("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.P2l(Error("Yl`"+JSON.stringify(A)))};
_.q.onYtAutonavPausePlayer=function(A){this.autonavPauseReasons.requestedByPlayer=!!A.detail;nz(this)};
_.q.onYtAutonavVisibilityChanged=function(){var A=this,H,k,d;return _.e(function(W){if(W.nextAddress==1)return(H=_.Kj())?W.yield(H.getPlayerPromise(),2):W.return();k=W.yieldResult;d=k.isMuted()||k.getVolume()===0;A.autonavPauseReasons.backgroundAndMute=UWG()&&d;nz(A);_.EN(W)})};
_.q.onYtAutonavPausePlayerEnded=function(){_.wj().resolve(_.A8);var A=144E5;_.b("user_engagement_enable_autoplay_pause_feature")||_.b("is_part_of_any_user_engagement_experiment")||(A=45E5);this.autonavPauseReasons.longIdle=_.Z$()>A;lEe(this);nz(this)};
_.q.onYtUserActivity=function(){var A=this;this.autonavPauseReasons.userEngagement&&(_.ma(_.IE,function(){fS("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",A.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,nz(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.ma(_.IE,function(){fS("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",A.userEngagementCsn);_.jM()}),this.autonavPauseReasons.youthereLactExperiment=!1,nz(this));
this.autonavPauseReasons.longIdle&&!_.b("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,nz(this))};
var UWG=function(){var A=window.document.visibilityState;return!(!A||A==="visible")},nz=function(A){for(var H=!1,k=_.r(Object.values(A.autonavPauseReasons)),d=k.next();!d.done;d=k.next())d=d.value,H=H||d;
H?_.aD.getInstance().pause(A.autonavPauseReasons):(A=_.aD.getInstance(),A.autonavState_==3?(A.setState(2,!1,!1),A.autonavPauseReason_=void 0):A.autonavState_==1&&(A.disabledAutonavPauseReason_=void 0))},lEe=function(A){var H=!1;
if(_.b("enable_autoplay_pause_by_lact")){_.wj().resolve(_.A8);H=_.H5("autoplay_pause_by_lact_sec")*1E3;var k=_.H5("autoplay_pause_by_lact_sampling_fraction");(H=_.Z$()>=H&&Math.random()<k)&&!c8B()&&(_.ma(_.IE,function(){fS("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),H=!1)}H!==A.autonavPauseReasons.youthereLactExperiment&&(A.autonavPauseReasons.youthereLactExperiment=H)&&(A.userEngagementCsn=_.hx(),_.ma(_.IE,function(){fS("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",A.userEngagementCsn)}));
A.autonavPauseReasons.userEngagement&&_.ma(_.IE,function(){fS("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",A.userEngagementCsn)})};
Qte.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(fS("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.jM(),this.autonavPauseReasons.youthereLactExperiment=!1,nz(this));this.autonavPauseReasons.userEngagement&&(fS("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,nz(this))};
Qte.prototype.onYtEngagementPanelVisibleChanged=function(A){A.detail&&A.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=A.detail.visible,nz(this))};
Qte.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var t5i=_.yP.persistentPanelVisibleSelector,Zi=function(){var A=_.a.apply(this,arguments)||this;A.miniGuideVisible=!1;A.guideOpened=_.b("disable_initial_guide_state_fix")?!1:A.canFitPersistentGuide(A.initialBodyClientWidth);A.guideUserStateOpened=A.getInitialGuideUserStateOpened();A.isFullscreenShorts=!1;A.miniGuideWidthThreshold=_.H5("kevlar_mini_guide_width_threshold",791);A.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
A.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");A.persistentGuideBlockedPagePathRegex=new RegExp(A.persistentGuideBlockedPagesPatterns.join("|"));A.animationTransitionDuration=0;A.lateDataResolver=_.YE();A.initialGuideDataFetchFailed=!1;A.initialLoad=!0;A.guideRenderers=new Set;A.isMouseOverGuide=!1;A.sessionUserManuallyExpandedGuideState=
!1;A.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return A};
_.I(Zi,_.a);_.q=Zi.prototype;_.q.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.q.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.q.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.q.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.q.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.q.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.q.ready=function(){_.wj().addProvider({provide:_.Lg,useValue:this.hostElement})};
_.q.attached=function(){var A=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.nF(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.nF(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.nF(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.nF(this,this.onYtGuideShow));_.No(this,function(){A.animationTransitionDuration=200})};
_.q.detached=function(){document.removeEventListener("yt-navigate-finish",_.nF(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.nF(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.nF(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.nF(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.nF(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.nF(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.nF(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.q.getData=function(){return this.data};
_.q.load=function(){var A=this,H,k,d,W;return _.e(function(z){switch(z.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=A.lateDataResolver.resolve.bind(A),z.return(A.lateDataResolver.promise);if(window.ytInitialGuideData)return H=_.YE(),H.resolve(window.ytInitialGuideData),z.return(H.promise);d=!1;_.S_(z,2);return z.yield(A.fetchGuideData(),4);case 4:k=z.yieldResult;_.QN(z,3);break;case 2:W=_.VA(z),W.message==="Returned error"&&(d=
!0);case 3:if(k)return z.return(k);A.onYtGuideClose();d||(A.initialGuideDataFetchFailed=!0);return z.return(A.lateDataResolver.promise)}})};
_.q.fetchGuideData=function(){var A=this,H,k,d,W,z,u,B;return _.e(function(h){if(h.nextAddress==1)return H=_.wj(),A.guidePromise||(k=H.resolve(_.kI),A.guidePromise=_.I9(k,mp_)),h.yield(A.guidePromise,2);if(h.nextAddress!=3)return d=h.yieldResult,W=H.resolve(_.u_),h.yield(W(),3);(z=h.yieldResult)&&((u=d)==null?void 0:(B=u.responseContext)==null?void 0:B.maxAgeSeconds)!==0&&z.put("service:guide:fallback",new _.Zp({innertubeResponse:d}));return h.return(d)})};
_.q.initializeGuideDataIfEmpty=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1){if(!A.initialGuideDataFetchFailed||A.data)return d.return();_.S_(d,2);return d.yield(A.fetchGuideData(),4)}if(d.nextAddress!=2)return(H=d.yieldResult)&&A.lateDataResolver.resolve(H),_.QN(d,0);k=_.VA(d);_.Pq(k);_.EN(d)})};
_.q.initializeGuideData=function(){var A=this,H,k;return _.e(function(d){switch(d.nextAddress){case 1:return _.oI(a6B(),{mainAppWeb:_.Il()}),_.S_(d,2),d.yield(A.load(),4);case 4:A.data=d.yieldResult;_.QN(d,3);break;case 2:H=_.VA(d),_.$q(a6B(),"FAILURE"),_.Pq(new _.Ti("Guide data not present",{errorMessage:H.message}));case 3:k=A.data&&A.data.items&&A.data.items.length>0?"SUCCESS":"FAILURE",k==="FAILURE"&&_.Pq(new _.Ti("Guide data.items empty")),_.$q(a6B(),k),_.EN(d)}})};
_.q.setGuideData=function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1)return H.disabled?W.return():H.data?(A.data=H.data,H.guideRenderers.add(A),W.return()):W.yield(H.initializeGuideData(),2);H.graftGuideToPage();k=_.Q$("IS_HOMEPAGE_COLD")?"eop":void 0;_.b("disable_element_pool_populator")?H.setGuideDataAfterInit(A):(d=new _.S$(1,k),_.CM(d,H.setGuideDataAfterInit.bind(H,A)));_.EN(W)})};
_.q.setGuideDataAfterInit=function(A){A.data=this.data;A.markDirty();this.guideRenderers.add(A);_.L0(function(){_.OH("gle")});
_.No(this,function(){_.OH("gpe")})};
_.q.graftGuideToPage=function(){if(this.data){var A=this.data&&this.data.trackingParams;A&&(A=_.db(A),_.Z2(_.A7(),A))}};
_.q.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.nF(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.q.onDrawerOpenedChanged=function(A,H){!H.value&&this.guideOpened&&(this.guideOpened=!1)};
_.q.onYtGuideToggle=function(A){var H=this.guideOpened;this.guideOpened=!H;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var k=_.sH();_.kB(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;k.save()}this.updateGuideDrawerElementState();if(this.guideElement){var d;this.guideOpened&&((d=A.detail)==null?0:d.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.nF(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.nF(this,this.onAppDrawerTransitioned))}H||this.initializeGuideDataIfEmpty()};
_.q.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.nF(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.UY(this.guideElement)};
_.q.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.nF(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(SuQ(this.guideOpened))};
_.q.guidePersistentAndVisibleChanged=function(){_.li(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.q.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.p8({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.q.miniGuideVisibleChanged=function(){_.li(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.q.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(SuQ(this.guideOpened)),this.initialLoad=!1);_.li(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.q.activeEndpointChanged=function(){_.li(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.q.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.q.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.guidePersistentAndVisible=this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.q.cachedClientWidthChanged=function(){this.updateGuideState()};
_.q.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.q.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var A=this.canFitPersistentGuide(this.cachedClientWidth);A?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=A}this.updateGuideDrawerElementState()};
_.q.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.q.getGuideOpened=function(){return this.guideOpened};
_.q.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.q.getActiveEndpoint=function(){return this.activeEndpoint};
_.q.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.q.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&&_.Ed(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.q.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.b("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.q.handleGuideMouseLeave=function(){var A=this;!this.sessionUserManuallyExpandedGuideState&&_.b("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.vW(this,"handleGuideMouseLeave",function(){A.isMouseOverGuide||!A.guideOpened||A.miniGuideVisible||(A.guideOpened=!1,A.updateGuideDrawerElementState())},100))};
_.q.computeGuidePersistentAndVisible=function(){var A=this;_.vW(this,"computeGuidePersistentAndVisible",function(){A.guidePersistentAndVisible=A.guideOpened&&A.guidePersistent;A.guideIsVisibleButNotPersistent=!(!A.guideOpened||A.guidePersistent)})};
_.q.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.q.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.q.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.q.startLoadingWatch=function(){this.closeGuide()};
_.q.startLoadingShorts=function(){_.b("web_hide_guide_on_shorts")&&this.closeGuide()};
_.q.onYtNavigateFinish=function(A,H){if(!_.n6||H){this.activeEndpoint=H.endpoint;this.pageType=H.pageType;this.pageUrl=H.response.url;var k,d;A=(d=_.L((k=H.endpoint)==null?void 0:k.commandMetadata,_.wn))==null?void 0:d.url;!this.pageUrl&&A&&(this.pageUrl=A);_.b("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.q.getVisibleGuideRenderer=function(){for(var A=_.r(this.guideRenderers),H=A.next();!H.done;H=A.next())if(H=H.value,this.miniGuideVisible&&H.is==="ytd-mini-guide-renderer"||this.guideOpened&&H.is==="ytd-guide-renderer")return H;return null};
_.q.markGuideRendererDirty=function(A){if(A){typeof A.markDirty==="function"&&A.markDirty();A=_.r([].concat(_.fV(_.Va(A).children)));for(var H=A.next();!H.done;H=A.next())this.markGuideRendererDirty(H.value)}};
_.q.persistentGuideEnabled=function(A,H){if(!H||A==="watch"||A==="settings"||A==="shorts"&&this.isFullscreenShorts||_.b("reels_web_disable_persistent_guide_shorts")&&A==="shorts")return!1;var k=_.Nx(H)||"";return _.b("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(d){return k===d}):!this.persistentGuideBlockedPagePathRegex.test(k)};
_.q.canFitPersistentGuide=function(A){var H=_.H5("kevlar_persistent_guide_width_threshold",1312);return H===-1||_.b("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:A>this.calculateGuideThreshold(H)};
_.q.calculateGuideThreshold=function(A){return _.b("enable_ai_companion")?A+(this.persistentPanelVisible?400:0):A};
_.q.canFitMiniGuide=function(A){return this.miniGuideWidthThreshold===-1?!1:A>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.q.onResize=function(){var A=this;_.vW(this,"calculateGuideState",function(){A.onResizeDebounced()})};
_.q.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.q.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.q.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.q.getInitialGuideUserStateOpened=function(){return _.b("web_force_mini_guide_default")?!1:!_.sH().getFlag(109)};
_.nP.Object.defineProperties(Zi.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.pZ("initialBodyClientWidth")||window.innerWidth}}});
Zi.prototype.onResize=Zi.prototype.onResize;Zi.prototype.observeForMiniGuideVisible=Zi.prototype.observeForMiniGuideVisible;Zi.prototype.computeGuidePersistentAndVisible=Zi.prototype.computeGuidePersistentAndVisible;Zi.prototype.persistentPanelVisibleChanged=Zi.prototype.persistentPanelVisibleChanged;Zi.prototype.cachedClientWidthChanged=Zi.prototype.cachedClientWidthChanged;Zi.prototype.resetGuide=Zi.prototype.resetGuide;Zi.prototype.activeEndpointChanged=Zi.prototype.activeEndpointChanged;
Zi.prototype.guideOpenedChanged=Zi.prototype.guideOpenedChanged;Zi.prototype.miniGuideVisibleChanged=Zi.prototype.miniGuideVisibleChanged;Zi.prototype.guideIsVisibleButNotPersistentChanged=Zi.prototype.guideIsVisibleButNotPersistentChanged;Zi.prototype.guidePersistentAndVisibleChanged=Zi.prototype.guidePersistentAndVisibleChanged;Zi.prototype.onGuideElementChanged=Zi.prototype.onGuideElementChanged;Zi.prototype.onGuidePersistentChanged=Zi.prototype.onGuidePersistentChanged;
Zi.prototype.onRenderGuideChanged=Zi.prototype.onRenderGuideChanged;Zi.prototype.onActiveEndpointChanged=Zi.prototype.onActiveEndpointChanged;Zi.prototype.onMiniGuideVisibleChanged=Zi.prototype.onMiniGuideVisibleChanged;Zi.prototype.onGuideIsVisibleButNotPersistentChanged=Zi.prototype.onGuideIsVisibleButNotPersistentChanged;Zi.prototype.onGuidePersistendAndVisibleChanged=Zi.prototype.onGuidePersistendAndVisibleChanged;
_.E([_.P(_.WU),_.l("design:type",Object)],Zi.prototype,"ironResizableBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Zi.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Zi.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Zi.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Zi.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Boolean)],Zi.prototype,"disabled",void 0);_.E([_.C(),_.l("design:type",Boolean)],Zi.prototype,"guidePersistentAndVisible",void 0);_.E([_.fF("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"onGuidePersistendAndVisibleChanged",null);_.E([_.C(),_.l("design:type",Boolean)],Zi.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.fF("guideIsVisibleButNotPersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.E([_.C(),_.l("design:type",Object)],Zi.prototype,"miniGuideVisible",void 0);_.E([_.fF("miniGuideVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"onMiniGuideVisibleChanged",null);_.E([_.C(),_.l("design:type",Boolean)],Zi.prototype,"forceMiniGuideClose",void 0);
_.E([_.C(),_.l("design:type",Object)],Zi.prototype,"activeEndpoint",void 0);_.E([_.fF("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"onActiveEndpointChanged",null);_.E([_.C(),_.l("design:type",Boolean)],Zi.prototype,"renderGuide",void 0);_.E([_.fF("renderGuide"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"onRenderGuideChanged",null);
_.E([_.C({selector:t5i}),_.l("design:type",Boolean)],Zi.prototype,"persistentPanelVisible",void 0);_.E([_.C(),_.l("design:type",Object)],Zi.prototype,"guideOpened",void 0);_.E([_.C(),_.l("design:type",Boolean)],Zi.prototype,"guidePersistent",void 0);_.E([_.fF("guidePersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"onGuidePersistentChanged",null);_.E([_.C(),_.l("design:type",Object)],Zi.prototype,"guideUserStateOpened",void 0);
_.E([_.C(),_.l("design:type",String)],Zi.prototype,"pageUrl",void 0);_.E([_.C(),_.l("design:type",String)],Zi.prototype,"pageType",void 0);_.E([_.C(),_.l("design:type",Number)],Zi.prototype,"cachedClientWidth",void 0);_.E([_.C(),_.l("design:type",Object)],Zi.prototype,"guideElement",void 0);_.E([_.C({selector:_.VP}),_.l("design:type",Object)],Zi.prototype,"isFullscreenShorts",void 0);
_.E([_.fF("guideElement"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"onGuideElementChanged",null);_.E([_.fF("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"guidePersistentAndVisibleChanged",null);
_.E([_.s6("guideIsVisibleButNotPersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"guideIsVisibleButNotPersistentChanged",null);_.E([_.fF("miniGuideVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"miniGuideVisibleChanged",null);_.E([_.s6("guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"guideOpenedChanged",null);
_.E([_.fF("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"activeEndpointChanged",null);_.E([_.s6("pageUrl"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"resetGuide",null);_.E([_.s6("cachedClientWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"cachedClientWidthChanged",null);
_.E([_.s6("persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"persistentPanelVisibleChanged",null);_.E([_.fF("guideOpened","guidePersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"computeGuidePersistentAndVisible",null);
_.E([_.s6("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"observeForMiniGuideVisible",null);_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zi.prototype,"onResize",null);_.E([_.O6({disableElementRegistration:!0,is:"yt-guide-manager"})],Zi);var N8R=_.Q(Zi,"yt-guide-manager",void 0,{mode:2});var z6B=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],qj=new Map;qj.set(32,59972);qj.set(27,50765);qj.set(70,60102);qj.set(76,60221);qj.set(77,60222);qj.set(74,60223);qj.set(84,60224);qj.set(38,61941);qj.set(40,61942);qj.set(73,62521);qj.set(67,62522);qj.set(80,63390);qj.set(78,63397);qj.set(75,59972);qj.set(188,63385);qj.set(190,63384);qj.set(36,63387);qj.set(35,63386);qj.set(37,63388);
qj.set(39,63389);qj.set(79,63423);qj.set(87,63424);qj.set(107,63426);qj.set(109,63425);qj.set(65,63428);qj.set(83,63430);qj.set(68,63429);qj.set(221,63431);qj.set(219,63432);qj.set(97,63439);qj.set(98,63440);qj.set(99,63441);qj.set(100,63442);qj.set(101,63443);qj.set(102,63444);qj.set(103,63445);qj.set(104,63446);qj.set(105,63447);var zY=new Map;zY.set(80,63390);zY.set(78,63397);zY.set(188,63400);zY.set(190,63401);zY.set(191,60765);zY.set(13,247917);var W9R=new Map,dJI=new Map;var fz=function(){var A=_.a.apply(this,arguments)||this;A.JSC$21704_keyboardInUse=!1;A.boundHandleCapturedKeydownEvent=function(H){A.handleCapturedKeydownEvent(H)};
return A};
_.I(fz,_.a);_.q=fz.prototype;_.q.attached=function(){this.listenToDocument(document)};
_.q.listenToDocument=function(A){A.addEventListener("keydown",_.nF(this,this.onKeyDownEvent));A.addEventListener("keyup",_.nF(this,this.onKeyUpEvent));A.addEventListener("mousedown",_.nF(this,this.onMouseDownEvent));_.b("desktop_keyboard_capture_keydown_killswitch")||A.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);A.addEventListener("yt-page-data-updated",_.nF(this,this.onPageUpdate))};
_.q.detached=function(){this.unlistenFromDocument(document)};
_.q.unlistenFromDocument=function(A){A.removeEventListener("keydown",_.nF(this,this.onKeyDownEvent));A.removeEventListener("keyup",_.nF(this,this.onKeyUpEvent));A.removeEventListener("mousedown",_.nF(this,this.onMouseDownEvent));_.b("desktop_keyboard_capture_keydown_killswitch")||A.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);A.removeEventListener("yt-page-data-updated",_.nF(this,this.onPageUpdate))};
_.q.ready=function(){_.wj().addProvider({provide:_.ah,useValue:this})};
_.q.isKeyBoardInUse=function(){return this.JSC$21704_keyboardInUse};
_.q.handleCapturedKeydownEvent=function(A){if(A.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(A)};
_.q.onMouseDownEvent=function(){this.JSC$21704_keyboardInUse=!1};
_.q.onPageUpdate=function(){if(_.b("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.b("web_shorts_keyboard_shortcut_usage_log")){W9R.clear();for(var A=_.r(qj),H=A.next();!H.done;H=A.next()){var k=_.r(H.value);H=k.next().value;k=k.next().value;k=_.t8(k);W9R.set(H,k);_.v0(_.hx(),_.ii(),k)}dJI.clear();A=_.r(zY);for(H=A.next();!H.done;H=A.next())k=_.r(H.value),H=k.next().value,k=k.next().value,k=_.t8(k),dJI.set(H,k),_.v0(_.hx(),_.ii(),k);_.ym(_.hx(),_.ii(),[].concat(_.fV(dJI.values()),_.fV(W9R.values())));
_.IN(_.hx(),[].concat(_.fV(dJI.values()),_.fV(W9R.values())))}};
_.q.onMiniplayerActiveChange=function(){var A;(A=_.wj().resolve(_.L6).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(A.document):this.unlistenFromDocument(A.document))};
_.q.ignoreKeyEvent=function(A){if(A.ctrlKey||A.altKey)if(_.b("kevlar_macro_markers_keyboard_shortcut")){if(A.keyCode!==37&&A.keyCode!==39)return!0}else return!0;var H=_.F_(A)||[];return q8_(H)?(_.b("web_button_or_anchor_list_item")&&rYL(H,A)&&(this.JSC$21704_keyboardInUse=!0),!0):A.defaultPrevented?(r7(A.keyCode,A.shiftKey,this.isShortsPage),!0):A.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(A):!1};
_.q.isSpacebarClick=function(A){var H=A||window.event;var k;H.composedPath&&typeof H.composedPath==="function"?k=H.composedPath():k=H.path;k&&k.length?H=k[0]:(H=H||window.event,H=H.target||H.srcElement,H.nodeType==3&&(H=H.parentNode));return H&&A.keyCode===32&&(A=H.tagName==="BUTTON"||H.tagName==="A"||H.tagName==="INPUT",H=(H=H.getAttribute("role"))&&(H==="option"||H==="button"||H.indexOf("menuitem")===0),A||H)?!0:!1};
_.q.onKeyDownEvent=function(A){if(!this.ignoreKeyEvent(A)&&(A.keyCode===191&&(A.shiftKey||A.metaKey?A.repeat!=null&&A.repeat||(this.openHotkeyDialog(),r7(A.keyCode,A.shiftKey,this.isShortsPage)):(this.focusSearchBox(),A.preventDefault())),!A.metaKey)){var H=_.wj().resolve(_.L6);switch(A.keyCode){case 9:this.JSC$21704_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(A);break;case 84:H.pipController.getWindow()&&window.focus();this.toggleTheaterMode(A.keyCode,A.shiftKey);break;case 73:H.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(A.keyCode,A.shiftKey);break;case 70:if(this.isShortsPage){CGe();break}this.isMiniplayerActive()?H.pipController.getWindow()&&(H.close(!0),window.focus()):this.passEventToPlayer(A);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(A.keyCode,A.shiftKey):this.closeMiniplayer(A.keyCode,A.shiftKey)||this.passEventToPlayer(A);break;case 13:A.shiftKey&&_.wj().resolve(_.b_).activate(A);break;default:this.passEventToPlayer(A)}}};
_.q.onKeyUpEvent=function(A){if(!this.ignoreKeyEvent(A))if(_.b("web_speedmaster_spacebar_control")&&A.keyCode===32)this.handlePlayerSpaceKey(A,!0);else{var H=this.getPlayerManager();H&&(H=H.getPlayer())&&H.handleGlobalKeyUp(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code)}};
_.q.getPlayerManager=function(){var A=_.Kj(),H=_.wj().resolve(_.fZ(_.SO));return A&&H&&H.isOnWatch()?A:null};
_.q.passEventToPlayer=function(A,H){var k=this,d,W,z,u;return _.e(function(B){if(B.nextAddress==1){if(!_.b("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&k.isMiniplayerActive())d=_.wj().resolve(_.L6).getPlayerElement();else if(k.inlinePreviewIsActive){if(W=_.li(k.hostElement,"yt-get-inline-preview-player-action"),(z=W)==null?0:z[0])d=W[0]}else d=_.Kj();return d?B.yield(d.getPlayerPromise(),3):B.jumpTo(0)}u=B.yieldResult;H?u.handleGlobalKeyUp(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,
A.key,A.code):u.handleGlobalKeyDown(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code,A.repeat);A.keyCode!==38&&A.keyCode!==40&&r7(A.keyCode,A.shiftKey,k.isShortsPage);_.EN(B)})};
_.q.focusSearchBox=function(){_.Ed(this.hostElement,"yt-focus-searchbox")};
_.q.openHotkeyDialog=function(){_.Ed(this.hostElement,"yt-open-hotkey-dialog")};
_.q.isMiniplayerActive=function(){return _.wj().resolve(_.L6).isMiniplayerActive()};
_.q.closeMiniplayer=function(A,H){return this.isMiniplayerActive()?(_.wj().resolve(_.L6).close(),r7(A,H,this.isShortsPage),!0):!1};
_.q.toggleTheaterMode=function(A,H){var k=_.iL(_.F3().getState()),d=this.getPlayerManager(),W=_.b("disable_theater_mode_keyboard")||_.Q$("START_IN_FULL_WINDOW_MODE");d&&!W&&(k=!k,_.S1()&&_.b("external_fullscreen")&&(k=!0),_.Ud(this.hostElement,"yt-toggle-theater-mode",[k]),r7(A,H,this.isShortsPage))};
_.q.toggleMiniplayer=function(A,H){var k=this.getPlayerManager();if(this.isMiniplayerActive()){var d;((d=_.wj().resolve(_.fZ(_.SO)))==null?0:d.isOnWatch())?_.wj().resolve(_.L6).close(!0):_.Fz(_.wj().resolve(_.L6));r7(A,H,this.isShortsPage)}else k&&(_.Ud(this.hostElement,"yt-activate-miniplayer-from-watch-action"),r7(A,H,this.isShortsPage))};
_.q.handlePlayerSpaceKey=function(A,H){var k=!!_.Kj()||this.isMiniplayerActive();k=_.b("disable_space_scroll_fix")||k;_.b("global_spacebar_pause")&&!this.isKeyBoardInUse()&&k&&(A.preventDefault(),this.passEventToPlayer(A,H))};
_.q.isPresentingTheaterMode=function(){return _.b("web_watch_enable_tm_esc_key")?_.iL(_.F3().getState())&&!_.S1():!1};
fz.prototype.onMiniplayerActiveChange=fz.prototype.onMiniplayerActiveChange;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],fz.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],fz.prototype,"ytdReduxBehavior",void 0);_.E([_.C({selector:_.GGI}),_.l("design:type",Boolean)],fz.prototype,"inlinePreviewIsActive",void 0);_.E([_.C({selector:_.uvm}),_.l("design:type",Boolean)],fz.prototype,"isShortsPage",void 0);
_.E([_.C({selector:_.hr}),_.l("design:type",Boolean)],fz.prototype,"miniplayerIsActive",void 0);_.E([_.fF("miniplayerIsActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fz.prototype,"onMiniplayerActiveChange",null);_.E([_.O6({disableElementRegistration:!0,is:"yt-hotkey-manager"})],fz);_.Q(fz,"yt-hotkey-manager",void 0,{mode:2});var wi=function(){var A=_.a.apply(this,arguments)||this;A.loopStateEntityKey_=null;A.playlistLoopStateEntity_=null;A.isShuffleNextPlaylist=!1;A.PLAYER_EVENTS_=new Map;A.playerListenersSetup_=!1;A.videoSkipJob_=0;A.canAutoAdvance_=!1;A.playerManager_=null;A.TEST_ONLY={};return A};
_.I(wi,_.a);_.q=wi.prototype;_.q.ready=function(){_.wj().addProvider({provide:_.jd,useValue:this.hostElement})};
_.q.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_)};
_.q.attached=function(){document.addEventListener("yt-navigate-start",_.nF(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.nF(this,this.onYtNavigateFinish_))};
_.q.detached=function(){document.removeEventListener("yt-navigate-start",_.nF(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.nF(this,this.onYtNavigateFinish_))};
_.q.updatePlaylistEventListeners=function(A,H){H&&!this.playerListenersSetup_?(this.playerManager_=A,this.registerPlaylistEventListeners_(A)):!H&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(A))};
_.q.setPlayer=function(A){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=A};
_.q.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.q.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.q.registerPlaylistEventListeners_=function(A){var H=this;A.getPlayerPromise().then(function(k){H.playerListenersSetup_||(H.ytPlayerListenerBehavior.listenToPlayerEvents(k,H.PLAYER_EVENTS_),H.playerListenersSetup_=!0)})};
_.q.removePlaylistEventListeners_=function(A){var H=this;A.getPlayerPromise().then(function(k){H.playerListenersSetup_&&(H.ytPlayerListenerBehavior.unlistenFromPlayerEvents(k,H.PLAYER_EVENTS_),H.playerListenersSetup_=!1)})};
_.q.setPlaylistComponent=function(A){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.nF(this,this.onPlaylistYtNavigate_)),A&&(A.data&&this.playlistComponent.data&&A.data.playlistId==this.playlistComponent.data.playlistId?(A.loopOn=this.playlistComponent.loopOn,A.shuffleOn=this.playlistComponent.shuffleOn):(A.loopOn=!1,A.shuffleOn=!1),this.isShuffleNextPlaylist&&(A.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=A;this.playlistComponent.addEventListener("yt-navigate",
_.nF(this,this.onPlaylistYtNavigate_))};
_.q.setAutoplayRenderer=function(A){this.autoplayData=A};
_.q.setPlaylistData=function(A){this.currentPlaylistData_=A;_.Ed(this.hostElement,"yt-playlist-data-updated");_.iK.isEmpty(A)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(A)};
_.q.setPlayerPlaybackControlData=function(A){this.playerManager_&&this.playerManager_.updatePlayerComponents(A.playlistPanelRenderer)};
_.q.getPlaylistData=function(){return this.currentPlaylistData_};
_.q.getTempData_=function(A,H){if(this.playlistComponent==null)return null;A={};this.playlistComponent.shuffleOn&&(A.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(A.loop_on=this.playlistComponent.loopOn);H&&(A.autonav="1",_.wj().resolve(_.A8),H=_.Z$(),H>0&&(A.lact=H),this.playerManager_&&(H=this.playerManager_.getPlayer())&&H.shouldSendVisibilityState()&&(H=H.getVisibilityState(),H!=0&&(A.vis=H)));_.b("enable_unknown_lact_fix_on_html5")&&(_.wj().resolve(_.A8),A.lact=
_.Z$());return A};
_.q.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.q.setLoopStateEntityKey_=function(A){var H;this.loopStateEntityKey_=((H=this.getPlaylistLoopData_(A))==null?void 0:H.playlistLoopStateEntityKey)||null};
_.q.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.q.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.q.skipVideo=function(){var A=this,H=_.b("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||H)H=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.zV(_.IE,function(){A.onPlaylistNext();A.videoSkipJob_=0},H)};
_.q.cancelVideoSkip=function(){this.videoSkipJob_&&(_.IE.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.q.isInBackground_=function(){var A=window.document.visibilityState;return!(!A||A=="visible")};
_.q.onPlaylistIndex_=function(A){this.playlistComponent&&(A=this.playlistComponent.data.contents[A].playlistPanelVideoRenderer.navigationEndpoint,_.Ed(this.hostElement,"yt-navigate",{endpoint:A,tempData:this.getTempData_(A)}))};
_.q.onPlayerStateChange_=function(A){if(A=A==0&&this.playlistComponent&&this.canAutoAdvance_)A=_.aD.getInstance(),A=!(A.autonavState_===3?A.autonavPauseReason_&&A.autonavPauseReason_.inputBoxFocus===!0:A.autonavState_===1&&A.disabledAutonavPauseReason_&&A.disabledAutonavPauseReason_.inputBoxFocus===!0);A&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.q.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.q.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.q.navigateToAutoplayWatchEndpoint_=function(A,H,k){var d=this.playlistComponent.data.currentIndex,W=this.getNumPlayableVideos_();A=="NORMAL"&&H=="autoplayVideo"&&d+1>=W&&k||!(A=this.getVideoEndpoint_(A,H))||(k=this.getTempData_(A,k),_.Ed(this.hostElement,"yt-navigate",{endpoint:A,tempData:k}))};
_.q.getNumPlayableVideos_=function(){for(var A=0,H=_.r(this.playlistComponent.data.contents||[]),k=H.next();!k.done;k=H.next())k.value.playlistPanelVideoRenderer&&(A+=1);return A};
_.q.getVideoEndpoint_=function(A,H){if(this.autoplayData&&this.autoplayData.sets)for(var k=0,d=this.autoplayData.sets.length;k<d;k++){var W=this.autoplayData.sets[k];if(W.mode==A){if(W[H])return W[H];break}}else A=new _.Ti("AutoplayData is undefined in playlist manager","Mode: "+A+" endpoint: "+H),_.Pq(A)};
_.q.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.q.onPlaylistYtNavigate_=function(A){if(A.detail.endpoint){A.stopPropagation();var H=A.detail;H.tempData=this.getTempData_(A.detail.endpoint);_.Ed(this.hostElement,"yt-navigate",H)}};
_.q.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.q.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.q.playlistLoopStateEntityChanged_=function(A){var H=this,k,d,W;return _.e(function(z){if(z.nextAddress==1){if(!A)return z.return();k=A.state==="PLAYLIST_LOOP_STATE_ONE";return H.playerManager_?z.yield(H.playerManager_.getPlayerPromise(),3):z.jumpTo(2)}z.nextAddress!=2&&(d=z.yieldResult,d.setLoopVideo(k));W=A.state==="PLAYLIST_LOOP_STATE_ALL";H.playlistComponent&&(H.playlistComponent.loopOn=W);_.EN(z)})};
_.q.getPlaylistLoopData_=function(A){var H,k;if(A=A==null?void 0:(H=A.playlistButtons)==null?void 0:(k=H.menuRenderer)==null?void 0:k.topLevelButtons)for(H=_.r(A),k=H.next();!k.done;k=H.next())if(k=k.value,k.playlistLoopButtonRenderer)return k.playlistLoopButtonRenderer};
_.q.getLoopStateCommand_=function(A){var H=this.getPlaylistData(),k;H=((k=this.getPlaylistLoopData_(H))==null?void 0:k.states)||[];var d;A=(d=_.L(H[A?1:2],_.$2k))==null?void 0:d.button;var W;return(W=_.L(A,_.gN))==null?void 0:W.command};
_.q.onPlayerLoopChange_=function(A){this.playlistLoopStateEntity_&&(A?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(A=this.getLoopStateCommand_(A))&&this.ytComponentBehavior.resolveCommand(A)};
_.q.onSleepTimerSettingsChanged_=function(A){this.canAutoAdvance_=A!=="End of video"};
wi.prototype.onPlaylistLoopStateEntityChanged=wi.prototype.onPlaylistLoopStateEntityChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],wi.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],wi.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],wi.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],wi.prototype,"loopStateEntityKey_",void 0);
_.E([_.C({selectorArgs:["loopStateEntityKey_"],selector:_.z2.playlistLoopStateEntitySelector}),_.l("design:type",Object)],wi.prototype,"playlistLoopStateEntity_",void 0);_.E([_.fF("playlistLoopStateEntity_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wi.prototype,"onPlaylistLoopStateEntityChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"yt-playlist-manager"})],wi);_.Q(wi,"yt-playlist-manager",void 0,{mode:2});var M5i,nPI=function(){if(M5i!==void 0)return M5i;var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return M5i=A};var oK=function(){var A=_.a.apply(this,arguments)||this;A.lastCallback=null;A.getAccountLinkPromises={};A.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);A.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return A};
_.I(oK,_.a);_.q=oK.prototype;_.q.getLocation=function(){return window.location.href};
_.q.getCompletionUrl=function(){return _.nY(this.getLocation())};
_.q.containsRedirectState=function(A){return(A=_.lf(_.ngX(A)))?(new URLSearchParams(A)).get("redirect_state")!==null:!1};
_.q.createGalConfig=function(A,H){var k=new JSL;A=k=H?this.getPopupOrRedirectSetting(k,_.pZ("LINK_API_KEY"),_.pZ("LINK_API_KEY_REDIRECT"),A):geG(k,_.pZ("LINK_API_KEY"));A.authUser=_.pZ("SESSION_INDEX")||0;A.supportedFlows=new Set([4]);return A.build()};
_.q.getPopupOrRedirectSetting=function(A,H,k,d){this.isGalInteractionPopupMode(d)?(A.interactionMode=0,A=geG(A,H)):(A.interactionMode=1,H=this.getCompletionUrl(),A.completionUrl=H,A=geG(A,k));return A};
_.q.isGalInteractionPopupMode=function(A){if(this.redirectModeProviderAllowlist.has(A))switch(A){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.q.getStatusEntityKeyForProviderId=function(A){return _.Nw(A+":all","accountLinkStatusEntity")};
_.q.findNestedPropValue=function(A,H){var k=!1,d=null;JSON.stringify(A,function(W,z){k||W!==H||(k=!0,d=z);return k?null:z});
return d};
_.q.findAccountLinkButtonViewModel=function(A,H){var k=null,d=!1;JSON.stringify(A,function(W,z){d||z.accountLinkStatusEntityKey!==H||z.accountLinkStatusSecondaryEntityKey||(d=!0,k=z);return d?null:z});
return k};
_.q.executeLinkingSuccessOrFailureCommands=function(A,H,k){var d=null,W;(H==null?0:(W=H.url)==null?0:W.includes("account_sharing"))?d=H==null?void 0:H.response:d=H==null?void 0:H.response;(H=this.findAccountLinkButtonViewModel(d,A))?(A=k?this.findNestedPropValue(H,"onSuccessCommand"):this.findNestedPropValue(H,"onFailureCommand"))?_.ZZ([A],this.hostElement):_.lt(Error("Zl")):_.lt(Error("$l`"+A))};
_.q.handleInitializeRequest=function(A,H){var k=this,d=c1_(this.createGalConfig(A,!0));this.containsRedirectState(this.getLocation())?DHL(A,d.config,d.galService).then(function(W){var z=k.getStatusEntityKeyForProviderId(A);if(W.statusCode===1)H&&k.executeLinkingSuccessOrFailureCommands(z,H,!0),W=k.getLocation().indexOf("#"),W!==-1&&window.history.pushState(null,"",k.getLocation().substring(0,W));else return H&&k.executeLinkingSuccessOrFailureCommands(z,H,!1),Promise.reject(Error(W.statusMessage))}).catch(function(W){_.Pq(W);
_.yr("gamingAccountLinkStatusChanged",{serviceId:A,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(W)}):this.getAccountLinkPromises[A]=d.startLinkingSession({serviceId:A})};
_.q.handleAccountLinkCommand=function(A){_.L(A,R9L)&&this.handleLinkRequest(_.L(A,R9L))};
_.q.handleLinkRequest=function(A){var H=this,k=A.thirdPartyId;if(k)if(this.isGalInteractionPopupMode(k)){var d=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",A.onFailureCommand)},W=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",A.onSuccessCommand)};
this.lastCallback=W;this.getAccountLinkPromises[k].then(function(z){H1_(z).then(function(u){u.statusCode===1?W():d()})}).catch(function(){d()})}else this.getAccountLinkPromises[k].then(function(z){H1_(z).then(function(u){if(u.statusCode!==1)return Promise.reject(Error(u.statusMessage))})}).catch(function(z){_.Pq(z);
_.yr("gamingAccountLinkStatusChanged",{serviceId:k,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(z)})};
_.q.closeAndFire=function(A,H){_.Ud(this.hostElement,"yt-close-popup-action",[A]);H&&_.ZZ([H],this.hostElement)};
_.q.handleAccountUnlinkCommand=function(A){_.L(A,TrB)&&this.handleUnlinkRequest(_.L(A,TrB))};
_.q.handleUnlinkRequest=function(A){var H=this,k=A.thirdPartyId;if(k){var d=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",A.onFailureCommand)},W=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",A.onSuccessCommand)};
this.lastCallback=W;var z=c1_(this.createGalConfig(k,!1));this.unlinkUserGal(z,k).then(function(u){u.statusCode===1?W():d()}).catch(function(){d()})}};
_.q.unlinkUserGal=function(A,H){return A.deleteLink(H)};
_.q.handleLogAccountLinkingEventCommand=function(A){_.b("enable_gel_log_commands")&&_.L(A,JhL)&&(A=_.L(A,JhL).event)&&_.yr("gamingAccountLinkStatusChanged",A)};
_.nP.Object.defineProperties(oK,{template:{configurable:!0,enumerable:!0,get:function(){return nPI()}}});
_.E([_.P(_.NY.YtOpenPopupBehavior),_.l("design:type",Object)],oK.prototype,"ytOpenPopupBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],oK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-third-party-manager"})],oK);_.Q(oK,"ytd-third-party-manager",function(){return nPI()},{mode:2});var ZQL=2/3,fEB=_.t8(130749),wsV=function(A,H){var k=this;this.element=A;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){k.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:ZQL,moveAction:function(d){k.moveAction(d)},
triggerAction:function(){k.element.isReloading=!0;_.vn(_.A7(),{visualElement:fEB});_.n0.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:k.element}})}}}};
_.Z2(_.A7(),fEB,this.layer);this.gesture=new EV(A,H,this.refreshConfig,"pan-down");this.attach()};
_.q=wsV.prototype;_.q.attach=function(){this.gesture.attach()};
_.q.detach=function(){this.gesture.detach()};
_.q.reset=function(){this.element.close()};
_.q.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.q.moveAction=function(A){this.element.rotation=A*360};var oP_=_.t8(130750),AtM=function(A,H,k,d,W){var z=this;this.element=A;this.parent=k;this.channelHeader=d;this.ytdReduxDispatch=W;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=_.wj().resolve(_.fZ(_.SO)))&&(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:$W3(),triggerAction:function(){z.navigate(z.previousTab)},
moveAction:function(u,B){z.moveAction(u,B)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-$W3(),triggerAction:function(){z.navigate(z.nextTab)},
moveAction:function(u,B){z.moveAction(u,B)}}}};
_.Z2(_.A7(),oP_,this.layer);this.gesture=new EV(A,H,this.tabConfig);this.attach()};
_.q=AtM.prototype;_.q.attach=function(){this.gesture.attach()};
_.q.detach=function(){this.gesture.detach()};
_.q.tabsChanged=function(A){if(A){var H=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;A=_.r(A);for(var k=A.next();!k.done;k=A.next()){k=k.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=k);var d=void 0;if((d=k)==null?0:d.selected)this.previousTab=H,this.selectedTab=k;H=k}H=this.gesture;A=this.getConfig();H.config=A;this.scrollPositionNeedsUpdate=!0}};
_.q.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}})};
_.q.moveAction=function(A,H){if(!this.tabsElement){var k;this.tabsElement=(k=this.parent.header)==null?void 0:k.tabsElement;H==="right"&&this.previousTab?(k=this.previousTab.endpoint,_.ngG(_.wj().resolve(_.eK),k,{},"")):H==="left"&&this.nextTab&&(k=this.nextTab.endpoint,_.ngG(_.wj().resolve(_.eK),k,{},""));if(!this.tabsElement)return}k=this.tabsElement._pos;H==="right"&&(A*=-1);this.tabsElement._positionBar(k.width,k.left*1+k.width*A)};
var $W3=function(){var A,H;return(H=(A=_.wj().resolve(_.SO).getCurrentPage())==null?void 0:A.clientWidth)!=null?H:0};
AtM.prototype.navigate=function(A){this.element.data=void 0;if(A=A==null?void 0:A.endpoint)this.ytdReduxDispatch(K6G(!0)),_.vn(_.A7(),{visualElement:oP_}),_.n0.instance.resolveCommand({navigateAction:{endpoint:A}},{form:{element:this.element}})};var HaQ;var smQ;var $D=function(){var A=_.a.apply(this,arguments)||this;A.rotation=0;A.isReloading=!1;return A};
_.I($D,_.a);$D.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
$D.prototype.reset=function(){this.hostElement.style.opacity=""};
$D.prototype.close=function(){var A=this;return _.e(function(H){if(H.nextAddress==1)return H.yield(A.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.hostElement.style.opacity="0";_.EN(H)})};
$D.prototype.rotationChanged=$D.prototype.rotationChanged;_.E([_.C(),_.l("design:type",Object)],$D.prototype,"rotation",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],$D.prototype,"isReloading",void 0);_.E([_.ol("#icon"),_.l("design:type",HTMLElement)],$D.prototype,"icon",void 0);_.E([_.fF("rotation"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$D.prototype,"rotationChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-refresh"})],$D);
_.Q($D,"ytd-refresh",function(){if(smQ!==void 0)return smQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return smQ=A},{mode:1});var kzV;var AE=function(){var A=_.a.apply(this,arguments)||this;A.useRaf=!_.b("web_use_raf_app_header_layout_killswitch");return A};
_.I(AE,_.a);AE.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"}}}};
AE.prototype.dataChanged=function(){if(this.data){var A=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var H=_.C3(this.data.banner.thumbnails,this.hostElement.clientWidth);H&&(H.indexOf("//")===0&&(H="https:"+H),this.hasBannerArt=!0,_.NH(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+H+")"}))}this.hasBannerArt!==A&&_.Va(this.hostElement).querySelector("#header").fire("iron-resize")}};
AE.prototype.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
AE.prototype.dataChanged=AE.prototype.dataChanged;_.E([_.P(ZdL),_.l("design:type",Object)],AE.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.bu),_.l("design:type",Object)],AE.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],AE.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],AE.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],AE.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],AE.prototype,"selected",void 0);_.E([_.C(),_.l("design:type",Boolean)],AE.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],AE.prototype,"hasBannerArt",void 0);_.E([_.C(),_.l("design:type",Object)],AE.prototype,"useRaf",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AE.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],AE);
_.Q(AE,"ytd-interactive-tabbed-header-renderer",function(){if(kzV!==void 0)return kzV;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return kzV=A},{mode:1});var dqL;var HO=function(){return _.a.apply(this,arguments)||this};
_.I(HO,_.a);HO.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
HO.prototype.computeActionsAlignment=function(A){return(A==null?void 0:A.actionsAlignment)||""};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],HO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],HO.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.l("design:type",String)],HO.prototype,"actionsAlignment",void 0);
_.E([_.O6({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],HO);
_.Q(HO,"ytd-page-footer-renderer",function(){if(dqL!==void 0)return dqL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return dqL=A},{mode:1});var Ww3;var zqB;var sP=function(){var A=_.a.apply(this,arguments)||this;A.isEditing=!1;A.useSlot=!1;A.isMultiline=!1;return A};
_.I(sP,_.a);_.q=sP.prototype;_.q.onKeydown=function(A){if(A.keyCode===13&&!this.isMultiline)this.onSave();else if(A.keyCode===27)this.onCancel()};
_.q.computeComponentStyle=function(A){return(A==null?0:A.style)?A.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.q.computeisMultiline=function(A){if(this.multilineOverride!==void 0)return this.multilineOverride;var H,k;return!!(A==null?0:(H=A.formField)==null?0:(k=H.textInputFormFieldRenderer)==null?0:k.isMultiline)};
_.q.computeTextDisplayed=function(A,H){if(A)return A;if(H)return H};
_.q.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.q.onSave=function(){if(this.textForm.validate()){this.textForm.save();var A=this.textForm.value;if(A)this.set("data.textDisplayed",_.Yu(A));else{var H;((H=this.data)==null?0:H.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.G2("inline-form-changed",this.data));this.isEditing=!1}};
_.q.onCancel=function(){var A=_.PK(this.data.textDisplayed);A===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(A);this.isEditing=!1};
sP.prototype.onKeydown=sP.prototype.onKeydown;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],sP.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],sP.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],sP.prototype,"isEditing",void 0);_.E([_.C(),_.l("design:type",Object)],sP.prototype,"useSlot",void 0);_.E([_.C(),_.l("design:type",Boolean)],sP.prototype,"multilineOverride",void 0);_.E([_.C(),_.l("design:type",Boolean)],sP.prototype,"enableOverlayTheme",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.l("design:type",String)],sP.prototype,"componentStyle",void 0);
_.E([_.C({computed:"computeisMultiline(data)"}),_.l("design:type",Object)],sP.prototype,"isMultiline",void 0);_.E([_.ol("#text-form"),_.l("design:type",Object)],sP.prototype,"textForm",void 0);_.E([_.Ze("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],sP.prototype,"onKeydown",null);_.E([_.O6({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],sP);
_.Q(sP,"ytd-inline-form-renderer",function(){if(zqB!==void 0)return zqB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return zqB=A},{mode:1});var qy_;var kN=function(){var A=_.a.apply(this,arguments)||this;A.previousSelectValue=void 0;A.selectedItemMessage=void 0;return A};
_.I(kN,_.a);kN.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
kN.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var A,H,k,d,W=(A=this.data)==null?void 0:(H=A.dropdown)==null?void 0:(k=H.dropdownRenderer)==null?void 0:(d=k.entries)==null?void 0:d.map(function(B){return B.privacyDropdownItemRenderer});
A=_.r(W!=null?W:[]);for(H=A.next();!H.done;H=A.next())if((H=H.value)&&H.int32Value===this.selectedValue){this.selectedItemMessage=H.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)}};
kN.prototype.onValueChangedForSelectedValue=function(A){this.selectedValue=A.detail.value};
kN.prototype.selectedValueChanged=kN.prototype.selectedValueChanged;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],kN.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],kN.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kN.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],kN.prototype,"theme",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Number)],kN.prototype,"selectedValue",void 0);_.E([_.C(),_.l("design:type",Function)],kN.prototype,"onValueChanged",void 0);
_.E([_.s6("selectedValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kN.prototype,"selectedValueChanged",null);_.E([_.O6({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],kN);
_.Q(kN,"ytd-dropdown-form-field-renderer",function(){if(qy_!==void 0)return qy_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return qy_=A},{mode:2});var rtI;var dD=function(){return _.a.apply(this,arguments)||this};
_.I(dD,_.a);_.nP.Object.defineProperties(dD.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var A=[],H=_.r(this.data||[]),k=H.next();!k.done;k=H.next())(k=_.L(k.value,WoG))&&A.push(k);return A}}});
_.E([_.C(),_.l("design:type",Array)],dD.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],dD.prototype,"byline",null);_.E([_.O6({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],dD);
_.Q(dD,"ytd-playlist-byline-renderer",function(){if(rtI!==void 0)return rtI;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return rtI=A},{mode:1});var uNe;var WO=function(){var A=_.a.apply(this,arguments)||this;A.rtlBullet=_.b("web_playlist_stats_rtl_bullet_icon_killswitch");A.modern=_.b("web_modern_buttons");A.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return A};
_.I(WO,_.a);_.q=WO.prototype;_.q.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"}}}}};
_.q.attached=function(){};
_.q.computeIsCustomThumbnail=function(A){return A?!!A.playlistCustomThumbnailRenderer:!1};
_.q.onYtNavigate=function(A,H){if(H&&H.actions&&H.actions.indexOf("shuffle")>-1){A=_.wj().resolve(_.jd);var k=H.tempData||{};k.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);H.tempData=k;A.isShuffleNextPlaylist=!0}};
_.q.onUpdatePlaylistAction=function(A){var H;A=(H=_.L(A,_.iow))==null?void 0:H.updatedRenderer;if(H=_.L(A,vjB))this.data=H};
_.q.computeStyleType=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.q.computeThumbnailWidth=function(A){return A==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.q.computeHideThumbnailAria=function(A){if(A==null?0:A.thumbnailOverlays)for(var H=0;H<A.thumbnailOverlays.length;H++){var k=void 0;if((k=A.thumbnailOverlays[H])==null?0:k.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
WO.prototype.onYtNavigate=WO.prototype.onYtNavigate;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],WO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],WO.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],WO.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],WO.prototype,"rtlBullet",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.l("design:type",String)],WO.prototype,"styleType",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.l("design:type",Number)],WO.prototype,"thumbnailWidth",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],WO.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.l("design:type",Boolean)],WO.prototype,"isCustomThumbnail",void 0);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Object]),_.l("design:returntype")],WO.prototype,"onYtNavigate",null);_.E([_.O6({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],WO);
_.Q(WO,"ytd-playlist-sidebar-primary-info-renderer",function(){if(uNe!==void 0)return uNe;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return uNe=A},{mode:1});var BJL;var zo=function(){return _.a.apply(this,arguments)||this};
_.I(zo,_.a);zo.prototype.computeOwnerVisibility=function(A){return!(!A.videoOwner&&!A.button)};
zo.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zo.prototype,"data",void 0);_.E([_.O6({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],zo);
_.Q(zo,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(BJL!==void 0)return BJL;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return BJL=A},{mode:1});var eq3;var qI=function(){var A=_.a.apply(this,arguments)||this;A.expanded=!1;A.isCompact=!1;return A};
_.I(qI,_.a);_.q=qI.prototype;_.q.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.q.dataChanged=function(){this.data&&_.ON(_.Va(this.text),_.LAj(_.j8Z,_.PK(this.data.text||null)))};
_.q.computeAutoScrollEnabled=function(A,H){return A&&!H};
_.q.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.q.toggleOnTap=function(){this.expanded=!this.expanded};
qI.prototype.expandedChanged=qI.prototype.expandedChanged;qI.prototype.dataChanged=qI.prototype.dataChanged;_.E([_.P($hG),_.l("design:type",Object)],qI.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],qI.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],qI.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],qI.prototype,"expanded",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],qI.prototype,"isCompact",void 0);_.E([_.C({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.l("design:type",Boolean)],qI.prototype,"autoScrollEnabled",void 0);_.E([_.ol("#text"),_.l("design:type",Object)],qI.prototype,"text",void 0);_.E([_.ol("#expander-icon"),_.l("design:type",Object)],qI.prototype,"expanderIcon",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qI.prototype,"dataChanged",null);_.E([_.fF("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qI.prototype,"expandedChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],qI);
_.Q(qI,"ytd-channel-legal-info-renderer",function(){if(eq3!==void 0)return eq3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return eq3=A},{mode:1});var xqV;var iaL=_.$r("DOWNLOAD",{},"Download"),hqG=_.$r("DOWNLOADING",{},"Downloading"),OaL=_.$r("DOWNLOADED",{},"Downloaded"),rD=function(){var A=_.a.apply(this,arguments)||this;A.downloadProgress=0;A.isDownloadComplete=!1;A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.I(rD,_.a);_.q=rD.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.dataChanged=function(){var A;(A=this.data)!=null&&A.tooltip||(A=_.mj(_.F3().getState(),this.playlistId),this.updateButtonState(A))};
_.q.computePlaylistId=function(A){return A};
_.q.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.q.updateButtonState=function(A){if(this.data&&(this.data.tooltip!==hqG||!_.sA(A))){this.isDownloadComplete=!1;switch(A){case "TRANSFER_STATE_UNKNOWN":A=iaL;var H="OFFLINE_DOWNLOAD";var k="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":A=OaL;H="OFFLINE_PIN";k="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":A=hqG;H="OFFLINE_DOWNLOADING_ZERO";k="ACTION_REMOVE_WITH_PROMPT";
break;default:A=iaL,H="OFFLINE_DOWNLOAD",k="ACTION_ADD"}var d=Object.assign({},this.data);d.tooltip=A;d.accessibilityData={accessibilityData:{label:A}};d.icon={iconType:H};d.size="SIZE_DEFAULT";_.L(d.command,_.wH)&&(_.L(d.command,_.wH).action=k);this.set("data",d)}};
_.q.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var A="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?A="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?A="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?A="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?A="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?A="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(A="OFFLINE_PIN",this.isDownloadComplete=!0);var H;A!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.tooltip=hqG,H.accessibilityData={accessibilityData:{label:hqG}},H.icon={iconType:A},_.L(H.command,_.wH)&&(_.L(H.command,_.wH).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
rD.prototype.updateProgress=rD.prototype.updateProgress;rD.prototype.onTransferStateChanged=rD.prototype.onTransferStateChanged;rD.prototype.dataChanged=rD.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],rD.prototype,"ytdReduxBehavior",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],rD.prototype,"forceIconButton",void 0);
_.E([_.C({value:!0}),_.l("design:type",Boolean)],rD.prototype,"forceIconOnly",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],rD.prototype,"overrides",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],rD.prototype,"buttonTooltipPosition",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],rD.prototype,"styleActionButton",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],rD.prototype,"disableTextTransform",void 0);
_.E([_.C({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.l("design:type",String)],rD.prototype,"playlistId",void 0);_.E([_.C(),_.l("design:type",Object)],rD.prototype,"data",void 0);_.E([_.C({selector:_.pwb,selectorArgs:["playlistId"]}),_.l("design:type",Object)],rD.prototype,"downloadProgress",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],rD.prototype,"isDownloadComplete",void 0);
_.E([_.C({selector:_.mj,selectorArgs:["playlistId"]}),_.l("design:type",String)],rD.prototype,"transferState",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],rD.prototype,"showTooltips",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],rD.prototype,"sendCommandWhenDisabled",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],rD.prototype,"disabled",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rD.prototype,"dataChanged",null);_.E([_.s6("transferState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rD.prototype,"onTransferStateChanged",null);_.E([_.s6("downloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rD.prototype,"updateProgress",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],rD);
_.Q(rD,"ytd-download-playlist-button-renderer",function(){if(xqV!==void 0)return xqV;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return xqV=A},{mode:1});var Rq1;_.Sw(_.$7Q,"thumbnail-overlay-button-view-model",{props:{data:_.Ih,lockupExperiments:_.Ih}});var u3=function(){var A=_.a.apply(this,arguments)||this;A.isSquare=!1;A.isVertical=!1;return A};
_.I(u3,_.a);u3.prototype.computeIsSquare=function(A){return A!=null&&A.thumbnail?Vc3(A.thumbnail)==="SQUARE":!1};
u3.prototype.computeIsVertical=function(A){return A!=null&&A.thumbnail?Vc3(A.thumbnail)==="VERTICAL":!1};
u3.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.l("design:type",Object)],u3.prototype,"isSquare",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.l("design:type",Object)],u3.prototype,"isVertical",void 0);
_.E([_.C(),_.l("design:type",Object)],u3.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],u3);
_.Q(u3,"ytd-hero-playlist-thumbnail-renderer",function(){if(Rq1!==void 0)return Rq1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Rq1=A},{mode:1});var BO=function(){var A=_.a.apply(this,arguments)||this;A.isDarkTheme=!1;A.isUltraWide=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return A};
_.I(BO,_.a);_.q=BO.prototype;_.q.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.wj();var A;(A=_.wj().resolve(_.fZ(_.hN)))!=null&&(A.headerElement=this.hostElement)};
_.q.detached=function(){var A;(A=_.wj().resolve(_.fZ(_.hN)))!=null&&(A.headerElement=void 0)};
_.q.onUpdateHeader=function(A){(A=A.detail)&&this.set("data",A)};
_.q.computeTextDisplayed=function(A){if(A)return A.textDisplayed?A.textDisplayed:A.placeholder};
_.q.gradientColorToLinearGradientStop=function(A){var H=this.isDarkTheme?A.darkThemeColor:A.lightThemeColor;return H?_.h1(H)+" "+((A==null?void 0:A.startLocation)||0)*100+"%":"transparent"};
_.q.onWindowResize=function(){var A;((A=this.data)==null?0:A.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.q.onIronResize=function(A){this.isUltraWide=!A.detail.value};
_.q.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.q.onUpdatePlaylistName=function(A){var H=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},A.detail.value));_.No(this,function(){var k;(k=H.editableTitle)==null||k.resize()})};
_.q.onUpdatePlaylistDescription=function(A){var H=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},A.detail.value));_.No(this,function(){var k;(k=H.editableDescriptionInlineExpander)==null||k.resize()})};
_.q.getCinematicData=function(A){return _.L(A==null?void 0:A.cinematicContainer,Rj)};
_.nP.Object.defineProperties(BO.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 A,H=(A=this.getCinematicData(this.data))==null?void 0:A.config;return(A=this.isDarkTheme?H==null?void 0:H.darkThemeBackgroundColor:H==null?void 0:H.lightThemeBackgroundColor)?"background-color:"+_.iw(A)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var A;return _.L((A=this.data)==null?void 0:A.descriptionForm,gj3)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var A=this,H,k,d;return"background:linear-gradient(to bottom, "+(((d=(H=this.getCinematicData(this.data))==null?void 0:(k=H.gradientColorConfig)==null?void 0:k.map(function(W){return A.gradientColorToLinearGradientStop(W)}))==null?void 0:d.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var A;return _.PK((A=this.data)==null?void 0:A.descriptionTapText)}}});
BO.prototype.onUpdateHeader=BO.prototype.onUpdateHeader;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],BO.prototype,"actionHandlerBehavior",void 0);_.E([_.ol("#description-inline-expander"),_.l("design:type",Object)],BO.prototype,"descriptionInlineExpander",void 0);
_.E([_.ol("#editable-description-inline-expander"),_.l("design:type",Object)],BO.prototype,"editableDescriptionInlineExpander",void 0);_.E([_.C(),_.l("design:type",Object)],BO.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],BO.prototype,"isUltraWide",void 0);_.E([_.ol("#editable-title-display"),_.l("design:type",Object)],BO.prototype,"editableTitle",void 0);_.E([_.G("isUltraWide"),_.l("design:type",Object),_.l("design:paramtypes",[])],BO.prototype,"maxDescriptionLines",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],BO.prototype,"noCinematicData",null);_.E([_.Ze("yt-new-playlist-header"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],BO.prototype,"onUpdateHeader",null);_.E([_.G("data","isDarkTheme"),_.l("design:type",Object),_.l("design:paramtypes",[])],BO.prototype,"backgroundStyle",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],BO.prototype,"descriptionFormData",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],BO.prototype,"getDropdownTheme",null);_.E([_.G("data","isDarkTheme"),_.l("design:type",String),_.l("design:paramtypes",[])],BO.prototype,"gradientStyle",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],BO.prototype,"descriptionTapText",null);
_.E([_.O6({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],BO);
_.Q(BO,"ytd-playlist-header-renderer",function(){if(Ww3!==void 0)return Ww3;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Ww3=A},{mode:2});var TJe;var mq1;var eW=function(){return _.a.apply(this,arguments)||this};
_.I(eW,_.a);eW.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],eW.prototype,"data",void 0);_.E([_.O6({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],eW);
_.Q(eW,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(mq1!==void 0)return mq1;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return mq1=A},{mode:1});var xN=function(){return _.a.apply(this,arguments)||this};
_.I(xN,_.a);
xN.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}}}}};
xN.prototype.computeUsePremiumShowStyle=function(A){if(!A||!A.items)return!1;for(var H=0;H<A.items.length;H++)if(_.L(A.items[H],vjB)){var k=void 0;return((k=_.L(A.items[H],vjB))==null?void 0:k.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xN.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.l("design:type",Boolean)],xN.prototype,"usePremiumShowStyle",void 0);
_.E([_.O6({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],xN);
_.Q(xN,"ytd-playlist-sidebar-renderer",function(){if(TJe!==void 0)return TJe;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return TJe=A},{mode:1});var Jt_;var gRe;var baB=function(A,H,k,d,W,z,u,B){this.minWidth=A;this.minHeight=H;this.recommendedWidth=k;this.recommendedHeight=d;this.JSC$21779_maxFileSize=W;this.title=z;this.bannerGalleryTitle=u;this.channelId=B;this.picker_=null;A=_.d9l("yt-banner");H=A.addView;k=(new bkV("youtubebanner")).addUploadMetadata("silo_id","19");k.opts.ytMaxFileSize=this.JSC$21779_maxFileSize;d=this.recommendedHeight;k.opts.ytRecWidth=this.recommendedWidth;k.opts.ytRecHeight=d;H.call(A,k);A.addView(new _.BF);H=A.addView;k=new _.BF;
k.opts.type="ytbanner";H.call(A,k.JSC$10388_setLabel(this.bannerGalleryTitle));H=A.setTitle(this.title).setSize(1E3);H.urlParamMap_.set("thumbs","orig");k=this.minWidth;d=this.minHeight;if(isNaN(k)||isNaN(d))throw Error("ib`"+k+"`"+d);H.urlParamMap_.set("minSize",k+"x"+d);H.urlParamMap_.set("cropMode","ytcb");this.builder_=A};
baB.prototype.open=function(){var A=this;return new _.Wq(function(H,k){_.V8G(A.builder_,function(d){d.action=="picked"?H(d):d.action=="cancel"&&k(Error("am"))});
A.picker_&&A.picker_.dispose();A.picker_=A.builder_.build();A.picker_.setVisible(!0)})};
baB.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var LwR=function(A){this.channelId=A};
LwR.prototype.upload=function(A){var H="";A.viewToken&&(H=A.viewToken[2].type);var k=A.docs[0];A=k.crop;H={channel_id:this.channelId,fife_url:k.thumbnails[0].url,photo_id:k.id,is_gallery_image:H=="ytbanner"};A&&(H.crop_top=A.top,H.crop_right=A.right,H.crop_bottom=A.bottom,H.crop_left=A.left);return _.pEb("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:H})};var i3=function(){var A=_.a.apply(this,arguments)||this;A.ariaLabel=null;return A};
_.I(i3,_.a);_.q=i3.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.detached=function(){this.picker&&this.picker.dispose()};
_.q.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.q.computeAriaLabel=function(A){return A};
_.q.onTap=function(){var A=this,H;if((H=this.data)==null||!H.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new baB(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 k;(k=this.picker)==null||k.open().then(function(d){A.handleBannerPicked(d)},function(){})}};
_.q.handleBannerPicked=function(A){var H=this;this.uploader||(this.uploader=new LwR(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(A).then(function(k){H.handleBannerUploadSucceeded(k)},function(k){H.handleBannerUploadFailed(k)})};
_.q.handleBannerUploadSucceeded=function(A){A&&A.errors?this.handleBannerUploadFailed(A):(_.Ed(this.hostElement,"yt-banner-updated",A),this.message=null)};
_.q.handleBannerUploadFailed=function(A){this.message=A&&A.errors&&A.errors.length?A.errors[0]:null};
i3.prototype.dataChanged=i3.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],i3.prototype,"componentBehavior",void 0);_.E([_.P(_.rx),_.l("design:type",Object)],i3.prototype,"ironButtonState",void 0);_.E([_.C(),_.l("design:type",Object)],i3.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.l("design:type",Object)],i3.prototype,"ariaLabel",void 0);
_.E([_.C(),_.l("design:type",Object)],i3.prototype,"message",void 0);_.E([_.C(),_.l("design:type",Object)],i3.prototype,"picker",void 0);_.E([_.C(),_.l("design:type",Object)],i3.prototype,"uploader",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i3.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],i3);
_.Q(i3,"ytd-channel-banner-editor-renderer",function(){if(gRe!==void 0)return gRe;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return gRe=A},{mode:1});var vRB;var ytG=_.XO(["#"]),hE=function(){return _.a.apply(this,arguments)||this};
_.I(hE,_.a);hE.prototype.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A,!0)||_.y2f(ytG)};
hE.prototype.dataChanged=function(){var A=this.data;A&&A.targetId&&_.oY(_.$f(),A.targetId,this.moreIcon)};
hE.prototype.dataChanged=hE.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],hE.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],hE.prototype,"data",void 0);_.E([_.ol("#more-icon"),_.l("design:type",Object)],hE.prototype,"moreIcon",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hE.prototype,"dataChanged",null);
_.E([_.O6({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],hE);
_.Q(hE,"ytd-channel-tagline-renderer",function(){if(vRB!==void 0)return vRB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return vRB=A},{mode:1});var jmG;var OP=function(){return _.a.apply(this,arguments)||this};
_.I(OP,_.a);_.q=OP.prototype;_.q.ready=function(){var A=this;_.Va(this.hostElement).querySelector("#form").addEventListener("submit",function(H){A.onSubmit(H)})};
_.q.onDataChanged=function(){var A;((A=this.data)==null?0:A.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.q.onIconButtonKeydown=function(A){A.keyCode===13&&this.iconButton.click()};
_.q.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.q.openOnClickHandler=function(){this.input.focus()};
_.q.onSubmit=function(A){A.preventDefault();return!1};
_.q.submitOnEnterKeyUp=function(A){var H;if(A.keyCode===13&&((H=this.data)==null?0:H.expandedText)){A=this.data.endpoint;H=_.iK.unsafeClone(A);var k;((k=_.L(H==null?void 0:H.commandMetadata,_.wn))==null?0:k.url)?(_.L(H.commandMetadata,_.wn).url=_.kg(_.L(H.commandMetadata,_.wn).url,"query",this.data.expandedText),_.L(H,_.fm)&&(_.L(H,_.fm).query=this.data.expandedText),_.Ed(this.hostElement,"yt-navigate",{endpoint:H,tempData:{disableCache:!0}})):(k=new _.Ti("Error: Trying to navigate to an endpoint without url",
A),_.I3(k))}};
_.q.updateDataExpandedTextFromBinding=function(A){this.set("data.expandedText",A.detail.value)};
_.nP.Object.defineProperties(OP.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.b("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
OP.prototype.onDataChanged=OP.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.E([_.P(HDG),_.l("design:type",Object)],OP.prototype,"ytdExpandableInputBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],OP.prototype,"data",void 0);_.E([_.ol("#input"),_.l("design:type",Object)],OP.prototype,"input",void 0);_.E([_.ol("#icon-button"),_.l("design:type",HTMLElement)],OP.prototype,"iconButton",void 0);
_.E([_.C(),_.l("design:type",String),_.l("design:paramtypes",[])],OP.prototype,"searchIcon",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OP.prototype,"onDataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],OP);
var uMR=_.Vu()(OP,"ytd-expandable-tab-renderer",function(){if(jmG===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);jmG=A}A=jmG;return A},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var IFB;var Ro=function(){var A=_.a.apply(this,arguments)||this;A.avatarSize=80;A.ariaLabel=_.$r("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return A};
_.I(Ro,_.a);Ro.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Ro.prototype.computeHref=function(A){var H;return((H=_.L(A,_.KT))==null?0:H.url)?this.componentBehavior.computeHref_(A):null};
Ro.prototype.onTap=function(){var A,H;(A=this.data)==null||!A.editAvatarServiceEndpoint||((H=_.L(this.data.editAvatarServiceEndpoint,_.KT))==null?0:H.url)||_.wj().resolve(_.J7).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.E([_.P(_.rx),_.l("design:type",Object)],Ro.prototype,"ironButtonState",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Ro.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ro.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Ro.prototype,"avatarSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],Ro.prototype,"ariaLabel",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Ro);
_.Q(Ro,"ytd-channel-avatar-editor",function(){if(IFB!==void 0)return IFB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return IFB=A},{mode:1});var Yyi=_.c(function(A){var H=A.data;var k=A.noPadding;var d=A.enableBanner;var W=A.cinematicContainerTopbarOffset;var z=A.allowCinematicContainerOverflow;var u=A.displayAsSidebar;A=A.className;_.CA(function(){H().tagManagerId&&(_.W2(H().tagManagerId,_.pZ("GL")),o2_(H().tagManagerId))},"vUc8md");
var B=_.o9(e6i,function(){return H().pageHeaderEntityKey});
return _.x("yt-page-header-renderer",{class:_.ER("pageHeaderRendererHost",A)},_.x(_.HG,{data:function(){var h;return((h=B())==null?0:h.header)?B().header:(u==null?0:u())&&H().sidebarContent?H().sidebarContent:H().content}},{pageHeaderViewModel:function(h){return _.x(_.lQG,{data:h.data,
noPadding:k,enableBanner:d,cinematicContainerTopbarOffset:W,allowCinematicContainerOverflow:z,displayAsSidebar:function(){return(u==null?void 0:u())&&H().enableSidebarView}})}}))},"vk");
Yyi.idomCompat=!0;_.Sw(Yyi,"yt-page-header-renderer",{props:{data:_.Ih,noPadding:_.Ih,enableBanner:_.Ih,cinematicContainerTopbarOffset:_.Ih,allowCinematicContainerOverflow:_.Ih,displayAsSidebar:_.Ih,className:_.Ih}});_.Sw(_.S2,"yt-image-banner-view-model",{props:{data:_.Ih,isPositionRelative:_.Ih}});_.Sw(_.uAL,"yt-tab-group-shape",{props:{shape:_.Ih}});var PzB=_.yP.persistentPanelVisibleSelector,To=function(){var A=_.a.apply(this,arguments)||this;A.expandableCustomTabRenderable=function(H){return BdL(H,function(){return void A.onSearchNavigate()})};
A.isRichGrid=!1;A.isConstrainedList=!1;A.richGridMiniMode=!1;A.richGridStyle="RICH_GRID_STYLE_UNKNOWN";A.isRichGridShorts=!1;A.responsiveSizing="COMPACT";A.disableGridStateAware=!1;A.useRaf=!_.b("web_use_raf_app_header_layout_killswitch");A.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return A};
_.I(To,_.a);_.q=To.prototype;_.q.computeHeaderDisabled=function(A,H){return H||!A||this.tabsHidden};
_.q.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.q.computeIsRichGridShorts=function(A){return A==="RICH_GRID_STYLE_SHORTS_GRID"||A==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.q.computeImageBannerViewModel=function(){var A,H;return _.L((H=_.L((A=this.data)==null?void 0:A.content,_.Zgw))==null?void 0:H.banner,_.ELA)};
_.q.computeHasCinematicContainer=function(){var A,H;return!((H=_.L((A=this.data)==null?void 0:A.content,_.Zgw))==null||!H.background)};
_.q.handleHeaderResize=function(){var A=_.Va(this.hostElement).querySelector("#header");A&&_.Ed(A,"iron-resize")};
_.q.handleInsertTabCommand=function(A){var H=_.L(A,iUL);H&&(H.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(k){return k.tabRenderer&&k.tabRenderer.tabIdentifier===H.tabIdentifier})||this.splice("tabs",H.tabIndex||-1,0,H.tab))};
_.q.handleRefreshChannelTabAction=function(A){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===A&&_.Ed(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.q.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.q.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.NH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.q.observerRichGridSlimItemsPerRow=function(){_.NH(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.q.updateCssVars=function(){this.richGridItemsPerRow&&_.NH(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.H5("rich_grid_max_item_width",500))+16)-16+"px"})};
_.q.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.NH(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.q.onDataChanged=function(){this.handleHeaderResize()};
_.q.onWindowResize=function(){this.handleHeaderResize()};
_.q.onFocusedChanged=function(A){(A=_.X_(A))&&A.is==="tp-yt-paper-tab"&&A.hasRipple()&&(A.getRipple().holdDown=!A.pointerDown&&A.focused)};
_.q.updateSelectedFromBinding=function(A){this.ytdTabbedHeaderBehavior.selected=A.detail.value};
_.q.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.nP.Object.defineProperties(To.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:iXB(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.imageBannerViewModel)==null?void 0:A.style)==="IMAGE_BANNER_STYLE_INSET"}}});
To.prototype.onDataChanged=To.prototype.onDataChanged;To.prototype.updateCssVarsForResponsiveGrid=To.prototype.updateCssVarsForResponsiveGrid;To.prototype.updateCssVars=To.prototype.updateCssVars;To.prototype.observerRichGridSlimItemsPerRow=To.prototype.observerRichGridSlimItemsPerRow;To.prototype.observerRichGridItemsPerRow=To.prototype.observerRichGridItemsPerRow;To.prototype.persistentPanelVisibleChanged=To.prototype.persistentPanelVisibleChanged;
_.E([_.P(_.bu),_.l("design:type",Object)],To.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.P(ZdL),_.l("design:type",Object)],To.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],To.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],To.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],To.prototype,"ytdReduxBehavior",void 0);_.E([_.ol("#tabs"),_.l("design:type",Object)],To.prototype,"tabsElement",void 0);_.E([_.C(),_.l("design:type",Array)],To.prototype,"tabs",void 0);_.E([_.C(),_.l("design:type",Object)],To.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.G("tabs.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],To.prototype,"tabGroupShape",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],To.prototype,"isRichGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],To.prototype,"isConstrainedList",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Object)],To.prototype,"richGridMiniMode",void 0);_.E([_.C({selector:function(A){return A.ui.richGridStyle}}),
_.l("design:type",Object)],To.prototype,"richGridStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.l("design:type",Object)],To.prototype,"isRichGridShorts",void 0);_.E([_.C({selector:_.ik}),_.l("design:type",Number)],To.prototype,"richGridItemsPerRow",void 0);_.E([_.C({selector:function(A){return A.ui.richGridContainerWidth}}),
_.l("design:type",Number)],To.prototype,"richGridContainerWidth",void 0);_.E([_.C({selector:_.yBW}),_.l("design:type",Number)],To.prototype,"richGridSlimItemsPerRow",void 0);_.E([_.C(),_.l("design:type",Object)],To.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],To.prototype,"responsiveSizing",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],To.prototype,"disableGridStateAware",void 0);
_.E([_.C({computed:"computeImageBannerViewModel(data)"}),_.l("design:type",Object)],To.prototype,"imageBannerViewModel",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.l("design:type",Boolean)],To.prototype,"hasCinematicContainer",void 0);_.E([_.C({selector:xTL,reflectToAttribute:!0}),_.l("design:type",Boolean)],To.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.C({selector:PzB}),_.l("design:type",Boolean)],To.prototype,"persistentPanelVisible",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("imageBannerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],To.prototype,"hasBanner",null);_.E([_.C({reflectToAttribute:!0}),_.G("imageBannerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],To.prototype,"hasInsetBanner",null);_.E([_.C(),_.l("design:type",Object)],To.prototype,"useRaf",void 0);
_.E([_.C({computed:"computeTabsHidden(tabs)",value:!0}),_.l("design:type",Boolean)],To.prototype,"tabsHidden",void 0);_.E([_.fF("persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],To.prototype,"persistentPanelVisibleChanged",null);_.E([_.fF("richGridItemsPerRow","isRichGrid"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],To.prototype,"observerRichGridItemsPerRow",null);
_.E([_.fF("richGridSlimItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],To.prototype,"observerRichGridSlimItemsPerRow",null);_.E([_.fF("richGridItemsPerRow","richGridMiniMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],To.prototype,"updateCssVars",null);
_.E([_.fF("richGridContainerWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],To.prototype,"updateCssVarsForResponsiveGrid",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],To.prototype,"onDataChanged",null);_.E([_.O6({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],To);
_.Q(To,"ytd-tabbed-page-header",function(){if(Jt_!==void 0)return Jt_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Jt_=A},{mode:1});var GzG;var mK=function(){return _.a.apply(this,arguments)||this};
_.I(mK,_.a);mK.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mK.prototype,"data",void 0);_.E([_.O6({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],mK);
_.Q(mK,"ytd-labs-edit-renderer",function(){if(GzG!==void 0)return GzG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return GzG=A},{mode:1});var FwI;var JE=function(){var A=_.a.apply(this,arguments)||this;A.dark=!1;A.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";A.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(JE,_.a);JE.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
JE.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.setBackgroundImage(A);this.dark=A};
JE.prototype.onDarkModeToggledAction=function(A){this.setBackgroundImage(A);this.dark=A};
JE.prototype.setBackgroundImage=function(A){_.NH(this.hostElement,{"--yt-labs-header-background":"url("+(A?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],JE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],JE.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],JE.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],JE.prototype,"dark",void 0);
_.E([_.O6({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],JE);
_.Q(JE,"ytd-labs-header-renderer",function(){if(FwI!==void 0)return FwI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return FwI=A},{mode:1});var XEe;var gD=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return A};
_.I(gD,_.a);gD.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"}}}}}};
gD.prototype.onYtToggleButton=function(A){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",A.detail.toggled)};
gD.prototype.onManageLabsState=function(A){if(A=_.L(A,iv3))A.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?A.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&A.labsItemId===this.data.labsItemId&&(A.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Ud(this.hostElement,"yt-check-labs-opted-in-state").some(function(H){return H})&&this.data.confirmationDialogCommand?_.NT(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.wj().resolve(_.J7).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&A.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.wj().resolve(_.J7).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
gD.prototype.onCheckLabsOptedInState=function(){var A=this.get("data.primaryButton.toggleButtonRenderer");return A?A.isToggled:!1};
_.nP.Object.defineProperties(gD.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
gD.prototype.onYtToggleButton=gD.prototype.onYtToggleButton;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],gD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gD.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],gD.prototype,"itemStyle",null);_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],gD.prototype,"onYtToggleButton",null);_.E([_.O6({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],gD);
_.Q(gD,"ytd-labs-item-renderer",function(){if(XEe!==void 0)return XEe;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return XEe=A},{mode:1});var Dq_;var SyL;var CzR=function(){return _.a.apply(this,arguments)||this};
_.I(CzR,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],CzR.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],CzR.prototype,"data",void 0);_.E([_.O6({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],CzR);
_.Q(CzR,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(SyL!==void 0)return SyL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return SyL=A},{mode:1});var KwB;var b3=function(){return _.a.apply(this,arguments)||this};
_.I(b3,_.a);b3.prototype.observeSuperchatChip=function(){if(this.data){var A={"--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)};_.NH(this.hostElement,A)}};
b3.prototype.colorFromDecimal=function(A){return _.h1(Number(A||0))};
b3.prototype.observeSuperchatChip=b3.prototype.observeSuperchatChip;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],b3.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b3.prototype,"observeSuperchatChip",null);_.E([_.O6({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],b3);
_.Q(b3,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(KwB!==void 0)return KwB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return KwB=A},{mode:1});var Ld=function(){return _.a.apply(this,arguments)||this};
_.I(Ld,_.a);Ld.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"}}}};
_.nP.Object.defineProperties(Ld.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],Ld.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ld.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ld.prototype,"hideMessageBlock",null);
_.E([_.O6({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Ld);
_.Q(Ld,"ytd-live-chat-history-entry-renderer",function(){if(Dq_!==void 0)return Dq_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Dq_=A},{mode:1});var aFe;var vO=function(){return _.a.apply(this,arguments)||this};
_.I(vO,_.a);vO.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.NH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.nP.Object.defineProperties(vO.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var A,H;return this.componentBehavior.computeIcon_(((H=_.L((A=this.data)==null?void 0:A.badge,_.wDQ))==null?void 0:H.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=_.L((A=this.data)==null?void 0:A.badge,_.wDQ))==null?void 0:H.label}}});
vO.prototype.observerRichGridItemsPerRow=vO.prototype.observerRichGridItemsPerRow;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],vO.prototype,"componentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],vO.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.xu}),_.l("design:type",Boolean)],vO.prototype,"richGridMiniMode",void 0);
_.E([_.C({selector:_.ik}),_.l("design:type",Number)],vO.prototype,"richGridItemsPerRow",void 0);_.E([_.C(),_.l("design:type",Object)],vO.prototype,"data",void 0);_.E([_.fF("richGridItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vO.prototype,"observerRichGridItemsPerRow",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],vO.prototype,"badgeIconName",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],vO.prototype,"badgeLabel",null);_.E([_.O6({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],vO);
_.Q(vO,"ytd-member-hub-profile-renderer",function(){if(aFe!==void 0)return aFe;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return aFe=A},{mode:1});var ctR;var jW=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return A};
_.I(jW,_.a);
jW.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"}}}};
jW.prototype.handleUpdateTextCommand=function(A){(A=_.L(A,_.cgA))&&this.data&&this.data.id===A.id&&this.set("data",A)};
jW.prototype.handleUpdateConnectedAppRendererCommand=function(A){if(_.L(A,_.VVA)&&this.data){var H,k;if(A=(H=_.L(A,_.VVA))==null?void 0:(k=H.newConnectedAppRenderer)==null?void 0:k.connectedAppRenderer)this.data=A}};
jW.prototype.computeConnectedAppStyle=function(A){return A.style?A.style.toLowerCase().replace(/_/g,"-"):""};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],jW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],jW.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.l("design:type",String)],jW.prototype,"connectedAppStyle",void 0);_.E([_.O6({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],jW);
_.Q(jW,"ytd-connected-app-renderer",function(){if(ctR!==void 0)return ctR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ctR=A},{mode:1});var pE_;var QmM=function(){return _.a.apply(this,arguments)||this};
_.I(QmM,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],QmM.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],QmM.prototype,"data",void 0);_.E([_.O6({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],QmM);
_.Q(QmM,"ytd-channel-options-renderer",function(){if(pE_!==void 0)return pE_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return pE_=A},{mode:1});var VyI;var Io=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return A};
_.I(Io,_.a);Io.prototype.onCheckboxChange=function(A){this.data&&(A=(this.checked=_.X_(A).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}})};
Io.prototype.handleUpdateCheckboxCommand=function(A){(A=_.L(A,_.awG))&&this.data&&this.data.id===A.id&&(this.set("data.disabled",A.disabled),this.set("data.title",A.title))};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Io.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Io.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],Io.prototype,"checked",void 0);_.E([_.O6({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Io);
_.Q(Io,"ytd-settings-checkbox-renderer",function(){if(VyI!==void 0)return VyI;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return VyI=A},{mode:1});var ERB;var YN=function(){return _.a.apply(this,arguments)||this};
_.I(YN,_.a);YN.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],YN.prototype,"data",void 0);_.E([_.O6({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],YN);
_.Q(YN,"ytd-settings-email-item-renderer",function(){if(ERB!==void 0)return ERB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ERB=A},{mode:1});var UqV;var PO=function(){return _.a.apply(this,arguments)||this};
_.I(PO,_.a);PO.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"}}}};
PO.prototype.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
PO.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.nP.Object.defineProperties(PO.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],PO.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],PO.prototype,"expanded",void 0);_.E([_.G("expanded"),_.l("design:type",String),_.l("design:paramtypes",[])],PO.prototype,"emailListExpanded",null);
_.E([_.ol("#options"),_.l("design:type",Object)],PO.prototype,"options",void 0);_.E([_.O6({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],PO);
_.Q(PO,"ytd-settings-email-list-renderer",function(){if(UqV!==void 0)return UqV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return UqV=A},{mode:1});var lF_;var ty1;var NJV;var MyQ;var nRL;var Go=function(){return _.a.apply(this,arguments)||this};
_.I(Go,_.a);_.q=Go.prototype;_.q.computePreselectedOption=function(A,H){return H===this.itemSelected_?A:void 0};
_.q.dataChanged_=function(){var A=this;this.preselectedSubreason=this.itemSelected_=-1;var H;(H=this.data)!=null&&H.key&&_.No(this,function(){var k,d=Number((k=A.data)==null?void 0:k.key);!Number.isNaN(d)&&(A.itemSelected_=d,k=(k=(A.data.items||[])[d])&&k.optionSelectableItemRenderer&&k.optionSelectableItemRenderer.preselectedIndex)&&(A.preselectedSubreason=k)})};
_.q.isSubReasonHidden_=function(A,H){return A!=H};
_.q.onTopItemSelected_=function(A,H){for(var k=_.Va(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),d=0,W=k.length;d<W;d++)k[d].select(0);_.Ud(this.hostElement,"yt-report-form-update",[H.item.value]);A.stopPropagation()};
_.q.onItemSelected_=function(A,H){_.Ud(this.hostElement,"yt-report-form-update",[H.item.value]);A.stopPropagation()};
_.q.getItem_=function(A){return A.serviceItem?A.serviceItem:A.navigationItem?A.navigationItem:A.optionSelectableItemRenderer?A.optionSelectableItemRenderer:null};
_.q.computeText_=function(A){return(A=this.getItem_(A))?this.ytRendererBehavior.getSimpleString(A.text):null};
_.q.validate=function(){return this.itemSelected_!==-1};
_.q.computeAriaLabel_=function(A){var H=_.PK(A.text);(A=A.accessibility&&A.accessibility.accessibilityData&&A.accessibility.accessibilityData.label)&&(H+=". "+A);return H};
_.q.computeItemSelected_=function(A){return A};
_.q.preventSelection_=function(A){A.stopPropagation();this.tooltipTapped=!0};
_.q.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.q.updateItemSelectedFromBinding=function(A){this.itemSelected_=A.detail.value};
_.q.save=function(){var A;this.validate()&&(A=this.data)!=null&&A.items&&(A=this.data.items[this.itemSelected_],A!=null&&A.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(A.optionSelectableItemRenderer.submitEndpoint)||_.tx(this.hostElement,[A.optionSelectableItemRenderer.submitEndpoint])))};
Go.prototype.onPaperRippleTransitionEnd_=Go.prototype.onPaperRippleTransitionEnd_;Go.prototype.dataChanged_=Go.prototype.dataChanged_;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Go.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Go.prototype,"data",void 0);_.E([_.C({value:-1}),_.l("design:type",Number)],Go.prototype,"itemSelected_",void 0);
_.E([_.C({computed:"computeItemSelected_(itemSelected_)"}),_.l("design:type",Number)],Go.prototype,"value",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Go.prototype,"restoreFocusOnClose",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Go.prototype,"tooltipTapped",void 0);_.E([_.C({value:-1}),_.l("design:type",Number)],Go.prototype,"preselectedSubreason",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Go.prototype,"dataChanged_",null);_.E([_.Ze("transitionend"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Go.prototype,"onPaperRippleTransitionEnd_",null);_.E([_.h6({is:"yt-options-renderer",disableElementRegistration:!0})],Go);
_.Q(Go,"yt-options-renderer",function(){if(nRL===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;MyQ===void 0&&(MyQ=document.createElement("template"));var d=MyQ;k.call(H,d.content.cloneNode(!0),A.content.firstChild);nRL=A}A=nRL;return A},{mode:2});var ZaL;var fFi;var wEM;var oRL;var Fe=function(){return _.a.apply(this,arguments)||this};
_.I(Fe,_.a);Fe.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Fe.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Fe.prototype.onTap=function(A){if(this.hostElement.classList.contains("selected")||_.Ud(this.hostElement,"yt-share-panel-can-select-contact-action")[0])A&&A.detail&&(A.detail.x||A.detail.y)&&_.Va(this.hostElement).querySelector("#target").blur(),(A=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),A={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:A?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Ud(this.hostElement,"yt-share-panel-select-contact-action",[A])};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.E([_.C({observer:"onDataChanged"}),_.l("design:type",Object)],Fe.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.l("design:type",String)],Fe.prototype,"componentTitle",void 0);_.E([_.ol("#thumbnail"),_.l("design:type",Object)],Fe.prototype,"thumbnail",void 0);_.E([_.h6({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Fe);
_.Q(Fe,"yt-enrolled-contact-renderer",function(){if(oRL===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;wEM===void 0&&(wEM=document.createElement("template"));var d=wEM;k.call(H,d.content.cloneNode(!0),A.content.firstChild);oRL=A}A=oRL;return A},{mode:2});var $qI;var AHB;var Xe=function(){return _.a.apply(this,arguments)||this};
_.I(Xe,_.a);Xe.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Xe.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Xe.prototype.onTap=function(A){if(this.hostElement.classList.contains("selected")||_.Ud(this.hostElement,"yt-share-panel-can-select-contact-action")[0])A&&A.detail&&(A.detail.x||A.detail.y)&&_.Va(this.hostElement).querySelector("#target").blur(),(A=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),A={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:A?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Ud(this.hostElement,"yt-share-panel-select-contact-action",[A])};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.E([_.C({observer:"onDataChanged"}),_.l("design:type",Object)],Xe.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.l("design:type",String)],Xe.prototype,"componentTitle",void 0);_.E([_.ol("#thumbnail"),_.l("design:type",Object)],Xe.prototype,"thumbnail",void 0);_.E([_.h6({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Xe);
_.Q(Xe,"yt-suggested-contact-renderer",function(){if(AHB===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;$qI===void 0&&($qI=document.createElement("template"));var d=$qI;k.call(H,d.content.cloneNode(!0),A.content.firstChild);AHB=A}A=AHB;return A},{mode:2});var DH=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-share-panel-reset-action":"onReset"};return A};
_.I(DH,_.a);DH.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"}}}}}};
DH.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Ud(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
DH.prototype.onReset=function(){for(var A=_.Va(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),H=A.length-1;H>=0;H--)A[H].classList.toggle("selected")};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],DH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({observer:"onDataChanged"}),_.l("design:type",Object)],DH.prototype,"data",void 0);
_.E([_.h6({is:"yt-contact-section-renderer",disableElementRegistration:!0})],DH);
_.Q(DH,"yt-contact-section-renderer",function(){if(fFi===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;ZaL===void 0&&(ZaL=document.createElement("template"));var d=ZaL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);fFi=A}A=fFi;return A},{mode:2});var SW=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return A};
_.I(SW,_.a);_.q=SW.prototype;_.q.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"}}}};
_.q.onYtRefreshFormCommand=function(A){var H;(A=_.L((H=_.L(A,_.m2Q))==null?void 0:H.formRenderer,JPM))&&this.set("data",A)};
_.q.reset=function(){var A=_.Va(this.hostElement).querySelector("#fields").children;A=_.r(A);for(var H=A.next();!H.done;H=A.next())H=H.value,H.reset&&H.reset()};
_.q.getForm=function(){var A={},H=_.Va(this.hostElement).querySelector("#fields").children;H=_.r(H);for(var k=H.next();!k.done;k=H.next()){k=k.value;if(!k.validate())return null;A[k.data.key]=k.value}return A};
_.q.submitFormFields=function(){if(this.fields)for(var A=_.r(this.fields),H=A.next();!H.done;H=A.next())H=H.value,H.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?H.save():H.nodeName==="YT-OPTIONS-RENDERER"&&H.save()};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],SW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],SW.prototype,"data",void 0);_.E([_.$I("#fields > *"),_.l("design:type",Array)],SW.prototype,"fields",void 0);
_.E([_.h6({is:"yt-form-renderer",disableElementRegistration:!0})],SW);
_.Q(SW,"yt-form-renderer",function(){if(NJV===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;ty1===void 0&&(ty1=document.createElement("template"));var d=ty1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);NJV=A}A=NJV;return A},{mode:2});var Cd=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return A};
_.I(Cd,_.a);Cd.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"}}}};
Cd.prototype.handleSignalActionSubmitForm=function(){var A,H=(A=this.formRenderer)==null?void 0:A.getForm();H&&this.data.serviceEndpoint&&_.wj().resolve(_.J7).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},H,{element:this.hostElement})})};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Cd.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Cd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Cd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Cd.prototype,"data",void 0);_.E([_.ol("yt-form-renderer"),_.l("design:type",Object)],Cd.prototype,"formRenderer",void 0);
_.E([_.O6({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Cd);
_.Q(Cd,"ytd-settings-gaia-link-renderer",function(){if(lF_!==void 0)return lF_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return lF_=A},{mode:1});var H9_;var s2B;var Kd=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return A};
_.I(Kd,_.a);Kd.prototype.dataChanged=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return A.radio.removeAttribute("checked"),!A.data||!A.data.id||A.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||StM()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(H=A.data&&A.data.id)?k.yield(K0L(A.data.id),4):k.jumpTo(3):(A.set("data.hidden",!0),k.jumpTo(0));k.nextAddress!=3&&(H=k.yieldResult);H&&_.Ud(A.hostElement,"yt-select-settings-radio-option",[A.data.id]);_.EN(k)})};
Kd.prototype.onButtonChanged=function(A){_.X_(A).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.wj().resolve(_.J7).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Ud(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Kd.prototype.onSelectOption=function(A){this.data&&this.data.id&&(this.data.id===A?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Kd.prototype.dataChanged=Kd.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Kd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.ol("#radio"),_.l("design:type",Object)],Kd.prototype,"radio",void 0);_.E([_.C(),_.l("design:type",Object)],Kd.prototype,"data",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],Kd.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Kd);
_.Q(Kd,"ytd-settings-radio-option-renderer",function(){if(s2B!==void 0)return s2B;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return s2B=A},{mode:1});_.Sw(_.YG,"basic-content-view-model",{props:{data:_.Fc,className:_.Fc}});var ao=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return A};
_.I(ao,_.a);ao.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&StM()&&this.set("data.hidden",!1)};
ao.prototype.onSwitchReady=function(){var A=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.b("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){i8I().then(function(H){H&&(Notification.permission==="default"?A.set("data.hidden",!1):Notification.permission==="granted"&&nR("NotificationsDisabled").then(function(k){k||_.Ud(A.hostElement,"yt-toggle-settings-switch",[A.data.id,!k]);A.set("data.hidden",!1)}).catch(function(){}))})})};
ao.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},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
ao.prototype.handleUpdateOptionsCommand=function(A){(A=_.L(A,_.pDi))&&this.data&&this.data.id===A.id&&(this.set("data.hidden",A.hidden),A.text!==void 0&&this.set("data.text",A.text),A.clearOptions&&this.set("data.options",[]))};
ao.prototype.onSwitchReady=ao.prototype.onSwitchReady;ao.prototype.dataChanged=ao.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],ao.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ao.prototype,"data",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ao.prototype,"dataChanged",null);_.E([_.Ze("yt-settings-switch-ready"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ao.prototype,"onSwitchReady",null);_.E([_.O6({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],ao);
_.Q(ao,"ytd-settings-options-renderer",function(){if(H9_!==void 0)return H9_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return H9_=A},{mode:1});var kN_;var cO=function(){return _.a.apply(this,arguments)||this};
_.I(cO,_.a);cO.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cO.prototype,"data",void 0);_.E([_.O6({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],cO);
_.Q(cO,"ytd-settings-sidebar-renderer",function(){if(kN_!==void 0)return kN_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return kN_=A},{mode:1});var dgB;var pd=function(){return _.a.apply(this,arguments)||this};
_.I(pd,_.a);pd.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
pd.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
pd.prototype.onYtExpanderMoreTapped=pd.prototype.onYtExpanderMoreTapped;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],pd.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pd.prototype,"data",void 0);
_.E([_.Ze("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pd.prototype,"onYtExpanderMoreTapped",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],pd);
_.Q(pd,"ytd-product-details-description-renderer",function(){if(dgB!==void 0)return dgB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return dgB=A},{mode:1});var WcL;var Qt=function(){var A=_.a.apply(this,arguments)||this;A.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";A.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";A.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";A.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return A};
_.I(Qt,_.a);Qt.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.nP.Object.defineProperties(Qt.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:(H=A.offerData)==null?void 0:H.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?void 0:A.purchaseButtonRenderers)!==void 0&&((H=this.data)==null?void 0:H.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var A,H;return!((A=this.data)==null||!A.formattedFromMerchantText)&&(!((H=this.data)==null||!H.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Qt.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Qt.prototype,"data",void 0);
_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],Qt.prototype,"shippingIcon",void 0);_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],Qt.prototype,"shippingAddressIcon",void 0);_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],Qt.prototype,"googleGuaranteeIcon",void 0);
_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],Qt.prototype,"returnPolicyIcon",void 0);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qt.prototype,"showAdditionalFees",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qt.prototype,"showMultiPurchaseButtons",null);
_.E([_.G("data","showMultiPurchaseButtons"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qt.prototype,"showPurchaseData",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Qt);
_.Q(Qt,"ytd-product-details-hero-offer-renderer",function(){if(WcL!==void 0)return WcL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return WcL=A},{mode:1});var z$B;var qsI;var Vt=function(){return _.a.apply(this,arguments)||this};
_.I(Vt,_.a);_.q=Vt.prototype;_.q.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.q.onKeyDown=function(A){A=A.keyCode;A!==13&&A!==32||this.handleSelection()};
_.q.onMouseEnterImage=function(){var A;((A=this.data)==null?void 0:A.thumbnailDetails)!==void 0&&_.li(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.q.onMouseLeaveImage=function(){_.li(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.q.handleSelection=function(){this.data&&_.Ed(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.nP.Object.defineProperties(Vt.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isSelected)}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Vt.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Vt.prototype,"isSelected",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Vt);
_.Q(Vt,"ytd-product-details-thumbnail-renderer",function(){if(qsI!==void 0)return qsI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return qsI=A},{mode:1});var EP=function(){var A=_.a.apply(this,arguments)||this;var H={};A.actionMap=(H["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",H["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",H);A.selectedThumbnailIndex=0;A.selectItem=function(k){k.target.onKeyDown(k)};
return A};
_.I(EP,_.a);_.q=EP.prototype;_.q.handlePreviewImageSelect=function(A){this.hoverThumbnail=A};
_.q.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.q.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.q.onThumbnailSelected=function(A,H){this.selectedThumbnailIndex=H};
_.q.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.q.updateOffset=function(){var A=_.Va(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-A));this.ytdHorizontalListBehavior.reposition_()};
_.nP.Object.defineProperties(EP.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.imageRenderer){var H,k;return((H=this.data)==null?void 0:(k=H.imageRenderer)==null?void 0:k.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var A;if((A=this.data)==null?0:A.imageRenderer){var H;return(H=_.L(this.data.imageRenderer[this.selectedThumbnailIndex],V6L))==null?void 0:H.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var A=this,H,k,d,W=(d=(H=this.data)==null?void 0:(k=H.imageRenderer)==null?void 0:k.map(function(z,u){return{productDetailsThumbnailRenderer:Object.assign({},_.L(z,V6L),{index:u,isSelected:u===A.selectedThumbnailIndex})}}))!=null?d:[];
return Object.assign({},this.data,{imageRenderer:W})}}});
EP.prototype.updateOffset=EP.prototype.updateOffset;EP.prototype.dataChanged=EP.prototype.dataChanged;EP.prototype.onThumbnailSelected=EP.prototype.onThumbnailSelected;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.pg.YtdHorizontalListBehavior),_.l("design:type",Object)],EP.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],EP.prototype,"componentBehavior",void 0);_.E([_.P([_.nM.YtActionHandlerBehavior]),_.l("design:type",Object)],EP.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],EP.prototype,"data",void 0);_.E([_.C({value:"$.items.children"}),_.l("design:type",String)],EP.prototype,"itemsPath",void 0);_.E([_.C({value:3}),_.l("design:type",Number)],EP.prototype,"initialCount",void 0);
_.E([_.ol("#items"),_.l("design:type",Object)],EP.prototype,"items",void 0);_.E([_.C(),_.l("design:type",Object)],EP.prototype,"selectedThumbnailIndex",void 0);_.E([_.C(),_.l("design:type",Object)],EP.prototype,"hoverThumbnail",void 0);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],EP.prototype,"showThumbnails",null);
_.E([_.Ze("ytd-product-details-thumbnail-renderer-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Number]),_.l("design:returntype")],EP.prototype,"onThumbnailSelected",null);_.E([_.G("data","selectedThumbnailIndex","hoverThumbnail"),_.l("design:type",Object),_.l("design:paramtypes",[])],EP.prototype,"thumbnailDetails",null);_.E([_.G("data","selectedThumbnailIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],EP.prototype,"populatedData",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EP.prototype,"dataChanged",null);_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EP.prototype,"updateOffset",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],EP);
_.Q(EP,"ytd-product-details-image-carousel-renderer",function(){if(z$B!==void 0)return z$B;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return z$B=A},{mode:2});var rHV;var UP=function(){return _.a.apply(this,arguments)||this};
_.I(UP,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],UP.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],UP.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],UP);
_.Q(UP,"ytd-product-details-offer-renderer",function(){if(rHV!==void 0)return rHV;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return rHV=A},{mode:1});var uSL;var l3=function(){var A=_.a.apply(this,arguments)||this;A.isOffersHidden=!0;return A};
_.I(l3,_.a);l3.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var A,H=_.L((A=this.data)==null?void 0:A.viewOffersButton,_.gN);H&&this.ytRendererBehavior.logExplicitClick(H)};
l3.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.nP.Object.defineProperties(l3.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d;return(k=_.L((A=this.data)==null?void 0:(H=A.offers)==null?void 0:H[0],t6_))==null?void 0:(d=k.offerData)==null?void 0:d.vendorLogoUrl}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],l3.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],l3.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],l3.prototype,"isOffersHidden",void 0);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],l3.prototype,"firstOfferVendorLogoUrl",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],l3);
_.Q(l3,"ytd-product-details-offers-container-renderer",function(){if(uSL!==void 0)return uSL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return uSL=A},{mode:1});var B$Q;var e$Q;var tE=function(){return _.a.apply(this,arguments)||this};
_.I(tE,_.a);tE.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
tE.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.li(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
tE.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.li(this,"ytd-product-details-variant-image-unselect")};
_.nP.Object.defineProperties(tE.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 A;return((A=this.data)==null?void 0:A.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.data)==null?void 0:A.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((H=this.data)==null?void 0:H.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((k=this.data)==null?void 0:k.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var A;if(((A=this.data)==null?void 0:A.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var A,H;return this.isUnavailable?(A=this.data)==null?void 0:A.variantOptionUnavailableAccessibilityLabel:(H=this.data)==null?void 0:H.variantOptionAccessibilityLabel}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],tE.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],tE.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],tE.prototype,"displayType",void 0);
_.E([_.G("displayType","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tE.prototype,"isImageButton",null);_.E([_.G("displayType","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tE.prototype,"isPillButton",null);_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tE.prototype,"isActive",null);
_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tE.prototype,"isUnavailable",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],tE.prototype,"thumbnailDetails",null);_.E([_.G("isUnavailable","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],tE.prototype,"accessibilityLabel",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],tE);
_.Q(tE,"ytd-product-details-variant-option-renderer",function(){if(e$Q!==void 0)return e$Q;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return e$Q=A},{mode:1});var xgR;var NI=function(){var A=_.a.apply(this,arguments)||this;A.variantsExpanded=!1;A.hideShowMoreLessVariantButton=!0;A.initialized=!1;A.computeVariantsDebouncer=null;A.computeVariants=function(H){H=H===void 0?!1:H;A.variantsExpanded||A.showOptions()||!H||(A.variantsExpanded=!0);if(A.variantsExpanded){H=_.r(A.items.children);for(var k=H.next();!k.done;k=H.next())k.value.hidden=!1}A.initialized=!0};
return A};
_.I(NI,_.a);_.q=NI.prototype;_.q.ready=function(){var A=this;setTimeout(function(){A.computeVariants(!0)})};
_.q.showOptions=function(){for(var A=_.r(this.items.children),H=A.next();!H.done;H=A.next())H.value.hidden=!0;var k=this.container.getBoundingClientRect().width,d=0,W=A=0;H=!1;for(var z=_.r(this.items.children),u=z.next();!u.done;u=z.next()){u=u.value;u.hidden=!1;var B=u.getBoundingClientRect().width;if(d+B<k)d+=B;else if(++W<2)d=B;else break;A+=1;u.hasAttribute("is-active")&&(H=!0)}for(k=A;k<this.items.children.length;k++)this.items.children[k].hidden=!0;this.hideShowMoreLessVariantButton=A===this.items.children.length;
return H};
_.q.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.E4(this.computeVariantsDebouncer,_.Gt.after(100),this.computeVariants)};
_.q.onShowMoreLessVariantsButtonClick=function(){var A;(A=this.data)!=null&&A.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.q.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.nP.Object.defineProperties(NI.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.data)==null?void 0:(H=A.variantOptionRenderers)==null?void 0:H.find(function(z){return _.L(z,U8R).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),d,W;
return(W=(d=_.L(k,U8R))==null?void 0:d.name)!=null?W:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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"}}}});
NI.prototype.debouncedComputeVariants=NI.prototype.debouncedComputeVariants;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],NI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],NI.prototype,"componentBehavior",void 0);_.E([_.P(_.WU),_.l("design:type",Object)],NI.prototype,"ironResizableBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],NI.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],NI.prototype,"variantsExpanded",void 0);_.E([_.C(),_.l("design:type",Object)],NI.prototype,"hideShowMoreLessVariantButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],NI.prototype,"initialized",void 0);_.E([_.ol("#items"),_.l("design:type",HTMLDivElement)],NI.prototype,"items",void 0);_.E([_.ol("#container"),_.l("design:type",HTMLDivElement)],NI.prototype,"container",void 0);
_.E([_.ol("#more-variants-button"),_.l("design:type",HTMLElement)],NI.prototype,"moreVariantsButton",void 0);_.E([_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],NI.prototype,"selectedOptionName",null);_.E([_.fF("data","variantsExpanded"),_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],NI.prototype,"debouncedComputeVariants",null);
_.E([_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],NI.prototype,"displayType",null);_.E([_.G("displayType"),_.l("design:type",Object),_.l("design:paramtypes",[])],NI.prototype,"variantItemsClassname",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],NI);
_.Q(NI,"ytd-product-details-variant-renderer",function(){if(xgR!==void 0)return xgR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return xgR=A},{mode:1});var MI=function(){return _.a.apply(this,arguments)||this};
_.I(MI,_.a);
MI.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"}}}};
_.nP.Object.defineProperties(MI.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(H=_.L((A=this.data)==null?void 0:A.offersContainerRenderer,lBL))==null?void 0:H.offers;return k!==void 0&&(k==null?void 0:k.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 A,H,k;return((k=(A=this.data)==null?void 0:(H=A.variants)==null?void 0:H.map(function(d){var W,z;d=(z=(W=_.L(d,ExV))==null?void 0:W.variantOptionRenderers)==null?void 0:z.find(function(B){var h;return((h=_.L(B,U8R))==null?void 0:h.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var u;return(u=_.L(d,U8R))==null?void 0:u.name}).filter(function(d){return typeof d==="string"}))!=null?k:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d=(H=_.L((A=this.data)==null?void 0:A.shoppingFlaggingRenderer,NrG))==null?void 0:(k=H.reportButton)==null?void 0:k.buttonRenderer;if(d)return{text:d.text,command:d.command,icon:{iconType:"FLAG"},accessibilityData:d.accessibilityData,trackingParams:d.trackingParams,loggingDirectives:d.loggingDirectives}}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],MI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],MI.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],MI.prototype,"data",void 0);_.E([_.ol("#image-carousel-renderer"),_.l("design:type",Object)],MI.prototype,"imageCarouselRenderer",void 0);
_.E([_.ol("#hero-offer-renderer"),_.l("design:type",Object)],MI.prototype,"productDetailsHeroOfferRenderer",void 0);_.E([_.ol("#variants"),_.l("design:type",Object)],MI.prototype,"productDetailsVariantRenderer",void 0);_.E([_.ol("#offers"),_.l("design:type",Object)],MI.prototype,"productDetailsOffersContainerRenderer",void 0);_.E([_.ol("#description-renderer"),_.l("design:type",Object)],MI.prototype,"productDetailsDescriptionRenderer",void 0);
_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MI.prototype,"showPurchaseData",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MI.prototype,"showHeroOfferRenderer",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MI.prototype,"showBrandText",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MI.prototype,"showOffers",null);
_.E([_.G("showOffers","showPurchaseData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MI.prototype,"showBuySeparator",null);_.E([_.G("showOffers","showPurchaseData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MI.prototype,"showBuyCard",null);_.E([_.G("data"),_.l("design:type",String),_.l("design:paramtypes",[])],MI.prototype,"selectedVariantsText",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],MI.prototype,"shoppingReportingButtonData",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],MI);
_.Q(MI,"ytd-product-details-renderer",function(){if(B$Q!==void 0)return B$Q;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return B$Q=A},{mode:1});var i9Q;var h$B;var O9_;var nd=function(){return _.a.apply(this,arguments)||this};
_.I(nd,_.a);nd.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.nP.Object.defineProperties(nd.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],nd.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],nd.prototype,"formattedAmount",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],nd.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data.style"),_.l("design:type",String),_.l("design:paramtypes",[])],nd.prototype,"vcBalanceWidgetStyle",null);_.E([_.h6({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],nd);
_.Q(nd,"yt-vc-balance-renderer",function(){if(O9_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;h$B===void 0&&(h$B=document.createElement("template"));var d=h$B;k.call(H,d.content.cloneNode(!0),A.content.firstChild);O9_=A}A=O9_;return A},{mode:2});_.uL("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var ZH=function(){return _.a.apply(this,arguments)||this};
_.I(ZH,_.a);_.nP.Object.defineProperties(ZH.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:""}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],ZH.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ZH.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.vcBalanceEntityKey"],selector:function(A,H){return _.Mw(A.entities,"vcBalanceEntity",H)}}),
_.l("design:type",Object)],ZH.prototype,"vcBalanceEntity",void 0);_.E([_.G("vcBalanceEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],ZH.prototype,"formattedAmount",null);_.E([_.G("vcBalanceEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],ZH.prototype,"vcBalanceAriaLabel",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],ZH);
_.Q(ZH,"ytd-vc-balance-renderer",function(){if(i9Q!==void 0)return i9Q;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return i9Q=A},{mode:1});var R$_;var fd=function(){var A=_.a.apply(this,arguments)||this;A.expandableCustomTabRenderable=function(H){return BdL(H,function(){return void A.onSearchNavigate()})};
return A};
_.I(fd,_.a);fd.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
fd.prototype.onSearchNavigate=function(){this.selected=void 0};
fd.prototype.onTabsChange=function(){var A,H=(A=this.tabs)==null?void 0:A.findIndex(function(k){var d;return k==null?void 0:(d=k.tabRenderer)==null?void 0:d.selected});
H!==void 0&&(this.selected=H)};
fd.prototype.onTabsActive=function(A){if(this.tabs!==void 0){var H,k;(A=(H=this.tabs[A.detail.selected])==null?void 0:(k=H.tabRenderer)==null?void 0:k.endpoint)&&_.Ed(this.hostElement,"yt-navigate",{endpoint:A})}};
_.nP.Object.defineProperties(fd.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:iXB(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
fd.prototype.onTabsChange=fd.prototype.onTabsChange;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],fd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.bu),_.l("design:type",Object)],fd.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],fd.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],fd.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Array)],fd.prototype,"tabs",void 0);_.E([_.C(),_.l("design:type",Number)],fd.prototype,"selected",void 0);_.E([_.G("tabs.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],fd.prototype,"tabGroupShape",null);_.E([_.C(),_.l("design:type",Object)],fd.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.G("tabs"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],fd.prototype,"tabsEnabled",null);_.E([_.s6("tabs"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fd.prototype,"onTabsChange",null);_.E([_.O6({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],fd);
_.Q(fd,"ytd-topic-channel-details-renderer",function(){if(R$_!==void 0)return R$_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return R$_=A},{mode:1});var T$e;var wD=function(){var A=_.a.apply(this,arguments)||this;A.disableGridStateAware=!1;return A};
_.I(wD,_.a);wD.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]]"}}}}}};
wD.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
wD.prototype.updateCssVars=function(){_.NH(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.H5("rich_grid_max_item_width",500))+16)-16+"px"})};
wD.prototype.updateCssVars=wD.prototype.updateCssVars;wD.prototype.activeChanged=wD.prototype.activeChanged;_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],wD.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],wD.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],wD.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Array)],wD.prototype,"tabs",void 0);_.E([_.C(),_.l("design:type",Boolean)],wD.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],wD.prototype,"disableGridStateAware",void 0);
_.E([_.C({selector:_.ik}),_.l("design:type",Number)],wD.prototype,"richGridItemsPerRow",void 0);_.E([_.C({selector:_.xu}),_.l("design:type",Boolean)],wD.prototype,"richGridMiniMode",void 0);_.E([_.ol("ytd-carousel-item-renderer"),_.l("design:type",Object)],wD.prototype,"carousel",void 0);_.E([_.fF("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wD.prototype,"activeChanged",null);
_.E([_.fF("richGridItemsPerRow","richGridMiniMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wD.prototype,"updateCssVars",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],wD);
_.Q(wD,"ytd-carousel-header-renderer",function(){if(T$e!==void 0)return T$e;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return T$e=A},{mode:1});var mgG;var JHL=_.XO(["https://www.google-analytics.com/analytics.js"]),oo=function(){var A=_.a.apply(this,arguments)||this;A.scriptAnalyticsAdded=!1;return A};
_.I(oo,_.a);oo.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var A,H=(A=this.data)==null?void 0:A.tagManagerId;H&&(_.W2(H,_.pZ("GL")),o2_(H))};
oo.prototype.sendGoogleAnalyticsPageview=function(A){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var k=_.o7.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(k)};
var H=window.ga;H("set","page",window.location.pathname);H.l=+new Date;H("set","forceSSL",!0);H("create",A,"'auto'");H("send","pageview")};
oo.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var A=_.$g("SCRIPT");A.name="ga-analytics";var H=_.Ia(JHL);_.h2(A,H);A.async=!0;_.Va(this.hostElement).appendChild(A)};
oo.prototype.dataChanged=oo.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],oo.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oo.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],oo);
_.Q(oo,"ytd-channel-metadata-renderer",function(){if(mgG!==void 0)return mgG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return mgG=A},{mode:1});var gKL;var b91;var LcL=function(){return _.a.apply(this,arguments)||this};
_.I(LcL,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],LcL.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],LcL.prototype,"data",void 0);_.E([_.O6({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],LcL);
_.Q(LcL,"ytd-sub-feed-option-renderer",function(){if(b91!==void 0)return b91;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return b91=A},{mode:1});var vKe;var $N=function(){return _.a.apply(this,arguments)||this};
_.I($N,_.a);$N.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],$N.prototype,"ytRendererStamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$N.prototype,"data",void 0);_.E([_.O6({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],$N);
_.Q($N,"ytd-sub-feed-selector-renderer",function(){if(vKe!==void 0)return vKe;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return vKe=A},{mode:1});var Ap=function(){return _.a.apply(this,arguments)||this};
_.I(Ap,_.a);
Ap.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}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ap.prototype,"data",void 0);_.E([_.O6({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Ap);
_.Q(Ap,"ytd-browse-feed-actions-renderer",function(){if(gKL!==void 0)return gKL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return gKL=A},{mode:1});var yHL;var j2R;var Hs=function(){return _.a.apply(this,arguments)||this};
_.I(Hs,_.a);Hs.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Hs.prototype,"data",void 0);_.E([_.O6({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Hs);
_.Q(Hs,"ytd-mini-channel-renderer",function(){if(j2R!==void 0)return j2R;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return j2R=A},{mode:1});var I0I;var so=function(){return _.a.apply(this,arguments)||this};
_.I(so,_.a);so.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],so.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],so);
_.Q(so,"ytd-vertical-channel-section-renderer",function(){if(I0I!==void 0)return I0I;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return I0I=A},{mode:1});var kP=function(){return _.a.apply(this,arguments)||this};
_.I(kP,_.a);kP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kP.prototype,"data",void 0);_.E([_.O6({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],kP);
_.Q(kP,"ytd-browse-secondary-contents-renderer",function(){if(yHL!==void 0)return yHL;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return yHL=A},{mode:1});var YsM;var d8=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};A.notActive=!1;A.isConstrainedList=!1;A.marginSettings=0;return A};
_.I(d8,_.a);_.q=d8.prototype;
_.q.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(A){var H;return(A==null?void 0:(H=A.webComponentHint)==null?void 0:H.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}}}}};
_.q.getPath=function(A,H){var k="data.tabs.#"+H+".";A.tabs[H].tabRenderer?k+="tabRenderer.":A.tabs[H].expandableTabRenderer&&(k+="expandableTabRenderer.");return k+"content.sectionListRenderer"};
_.q.computeDisplayedContent=function(A){this.unlinkPaths("content");if(A&&A.tabs)for(var H=A.tabs.length,k=0;k<H;k++){var d=A.tabs[k].tabRenderer||A.tabs[k].expandableTabRenderer;if(d.selected&&d.content)return this.linkPaths("content",this.getPath(A,k)),d.content}return null};
_.q.computeHasSecondaryColumnData=function(A){return!!A&&!!A.secondaryContents};
_.q.onRetrieveLocation=function(A,H){H.locationRetrieved(H.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);A.stopPropagation()};
_.q.onYtServiceRequestSent=function(A,H){_.b("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.q.onYtServiceRequestCompleted=function(A,H){_.b("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.q.onReplaceFeedContentAction=function(A){if(!_.b("replace_feed_content_action_killswitch")&&!this.notActive){var H;(A=(H=_.L(A,XAM))==null?void 0:H.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(A)}};
_.q.handleServiceRequestActions=function(A){if(A=A.actions){A=_.r(A);for(var H=A.next();!H.done;H=A.next()){H=H.value;var k=void 0;((k=_.L(H,XAM))==null?0:k.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.L(H,XAM).items)}}};
d8.prototype.onYtServiceRequestCompleted=d8.prototype.onYtServiceRequestCompleted;d8.prototype.onYtServiceRequestSent=d8.prototype.onYtServiceRequestSent;d8.prototype.onRetrieveLocation=d8.prototype.onRetrieveLocation;_.E([_.P(_.bu),_.l("design:type",Object)],d8.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],d8.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],d8.prototype,"data",void 0);_.E([_.C({computed:"computeDisplayedContent(data)"}),_.l("design:type",Object)],d8.prototype,"content",void 0);
_.E([_.C({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],d8.prototype,"hasSecondaryColumnData",void 0);_.E([_.C({value:function(){return window.outerHeight>1024?3:2}}),
_.l("design:type",Number)],d8.prototype,"initialCount",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],d8.prototype,"pageSubtype",void 0);_.E([_.ol("ytd-section-list-renderer"),_.l("design:type",Object)],d8.prototype,"listRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],d8.prototype,"notActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],d8.prototype,"isConstrainedList",void 0);
_.E([_.C(),_.l("design:type",String)],d8.prototype,"responsiveSizing",void 0);_.E([_.C(),_.l("design:type",Number)],d8.prototype,"marginSettings",void 0);_.E([_.Ze("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],d8.prototype,"onRetrieveLocation",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],d8.prototype,"onYtServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],d8.prototype,"onYtServiceRequestCompleted",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],d8);
_.Q(d8,"ytd-two-column-browse-results-renderer",function(){if(YsM!==void 0)return YsM;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return YsM=A},{mode:2});var P8B;var GNG;var Ws=function(){var A=_.a.apply(this,arguments)||this;A.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"]);A.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"]);A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return A};
_.I(Ws,_.a);_.q=Ws.prototype;_.q.attached=function(){this.requestElementsPerRow()};
_.q.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_]]"}}}}}};
_.q.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
_.q.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.q.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.q.computeAlertStyle_=function(A){return A};
_.q.observerElementsPerRow=function(){this.elementsPerRow&&_.NH(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.q.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.q.requestElementsPerRow=function(){_.Ed(this.hostElement,"yt-request-elements-per-row")};
Ws.prototype.onIsVisibleChanged_=Ws.prototype.onIsVisibleChanged_;Ws.prototype.observerElementsPerRow=Ws.prototype.observerElementsPerRow;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ws.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Ws.prototype,"actionHandlerBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],Ws.prototype,"data",void 0);_.E([_.C({value:6,reflectToAttribute:!0}),_.l("design:type",Number)],Ws.prototype,"elementsPerRow",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Ws.prototype,"wrapButtons",void 0);_.E([_.C({value:_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.l("design:type",Boolean)],Ws.prototype,"isMusic",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.l("design:type",String)],Ws.prototype,"alertStyle",void 0);_.E([_.C({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.l("design:type",Function)],Ws.prototype,"dismissBoundButtonTap_",void 0);_.E([_.C({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.l("design:type",Function)],Ws.prototype,"acceptBoundButtonTap_",void 0);_.E([_.fF("elementsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ws.prototype,"observerElementsPerRow",null);_.E([_.fF("data.isVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ws.prototype,"onIsVisibleChanged_",null);_.E([_.h6({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Ws);
_.Q(Ws,"yt-alert-with-actions-renderer",function(){if(GNG===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;P8B===void 0&&(P8B=document.createElement("template"));var d=P8B;k.call(H,d.content.cloneNode(!0),A.content.firstChild);GNG=A}A=GNG;return A},{mode:2});var Fce=_.c(function(A){var H={};return _.x(_.j$,{text:A.text,className:_.ER("ytPersonalGreetingViewModelHeadline",(H.ytPersonalGreetingViewModelHeadlineSmall=A.isSmallHeadline,H))})},"xk");_.Sw(_.c(function(A){var H=_.OF(function(){var J;return(J=A.data())==null?void 0:J.rendererContext},void 0,void 0,void 0,!0),k=function(){return A.data().canvasPromoData},d=function(){var J;
return(J=A.data().bannerHeight)!=null?J:56},W=_.r(_.kq({throttleMs:100})),z=W.next().value;
W=W.next().value;var u=_.r(_.kq({throttleMs:100})),B=u.next().value;u=u.next().value;var h=_.r(_.kq({throttleMs:100})),O=h.next().value;h=h.next().value;var T=function(){return B.width()-z.width()>1},m=function(){return d()===48};
return _.x("yt-personal-greeting-view-model",{el:_.P8(H,W),"aria-hidden":T,class:_.ER(A.className,"ytPersonalGreetingViewModelHost"),style:_.Mt({height:(0,_.v6)(function(){return T()?0:d()})})},_.x(_.R,{cond:function(){return A.data().avatar&&!(O.width()+(A.data().avatar?48:0)-z.width()>1)},
then:function(){return _.x(_.HG,{data:function(){return A.data().avatar}},{decoratedAvatarViewModel:function(J){return _.x(_.TU,{data:J.data,
className:_.ER("ytPersonalGreetingViewModelAvatar")})}})}}),_.x("h1",null,_.x(Fce,{text:function(){var J;
return(k==null?void 0:(J=k())==null?void 0:J.headline)||(O.width()+(A.data().avatar?48:0)-z.width()>1?A.data().shorterGreeting:A.data().greeting)},
isSmallHeadline:m})),_.x("span",{el:_.P8(h),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.x(Fce,{text:function(){return A.data().greeting},
isSmallHeadline:m})),_.x("span",{el:_.P8(u),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.x(Fce,{text:function(){return A.data().shorterGreeting},
isSmallHeadline:m})))},"wk"),"yt-personal-greeting-view-model",{props:{data:_.Ih,
className:_.Ih}});var zS=function(){var A=_.a.apply(this,arguments)||this;A.hidden=!1;A.isConstrainedList=!1;A.responsiveSizing="COMPACT";A.attachedPlayers=_.b("kevlar_channel_trailer_multi_attach")?[]:void 0;A.player=null;A.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return A};
_.I(zS,_.a);_.q=zS.prototype;
_.q.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}}}}};
_.q.created=function(){var A=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){A.disposeMastheadAd()}]};
_.q.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new wsV(this.refresh,this.contents))};
_.q.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.q.activeChanged=function(){var A=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=A)};
_.q.tabsChanged=function(){var A=this,H,k;if(this.pageSubtype==="channels"||_.b("kevlar_tab_gestures_for_tabbed_header_data")&&((H=this.data)==null?0:(k=H.header)==null?0:k.carouselHeaderRenderer))this.tabGestures=new AtM(this.contents,this.contents,this.hostElement,this.header,function(u){A.ytdReduxBehavior.dispatch(u)});
var d,W,z;H=(d=this.data)==null?void 0:(W=d.contents)==null?void 0:(z=W.twoColumnBrowseResultsRenderer)==null?void 0:z.tabs;this.tabGestures&&this.tabGestures.tabsChanged(H)};
_.q.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.q.engagementPanelsChanged=function(){var A=_.wj().resolve(_.eZ);if(A){if(this.engagementPanels)for(var H=_.r(this.engagementPanels),k=H.next();!k.done;k=H.next()){var d=void 0;(k=(d=k.value.identifier)==null?void 0:d.tag)&&A.panelMap.delete(k)}this.engagementPanels=[];var W;H=_.r(((W=this.data)==null?void 0:W.panels)||[]);for(W=H.next();!W.done;W=H.next()){W=_.L(W.value,CMQ);var z=k=void 0,u=void 0,B=void 0;if(d=((k=W)==null?void 0:k.targetId)||((z=W)==null?void 0:z.panelIdentifier)||((u=W)==null?
void 0:(B=u.identifier)==null?void 0:B.tag))z=k=void 0,(z=(k=A).registerPanelContent)==null||z.call(k,d,{engagementPanelSectionListRenderer:W}),this.engagementPanels.push(W)}}};
_.q.onStampFinished=function(){var A=this;_.No(this,function(){if(A.tabGestures){var H=A.tabGestures;if(H.scrollPositionNeedsUpdate){var k=_.wj().resolve(_.fZ(_.SO)),d;if((d=H.selectedTab)!=null&&d.title&&k&&(d=k.getCurrentPage())){if(H.scrollPositionForTabs.has(H.selectedTab.title)){var W,z;k=(z=(W=k.getCurrentPage())==null?void 0:W.clientHeight)!=null?z:0;W=H.scrollPositionForTabs.get(H.selectedTab.title);d.setScrollTop(W);k>W+100&&(H.scrollPositionNeedsUpdate=!1)}else d.setScrollTop(Math.min(H.lastVisitedTabScrollPosition!==
void 0?H.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,H.tabsStartAtInPx)),H.scrollPositionNeedsUpdate=!1;H.ytdReduxDispatch(K6G(!1))}}}})};
_.q.loadPage_=function(A){this.initCsi();A&&(this.data=A);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.q.getTitle=function(A){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",A))return this.get("microformat.microformatDataRenderer.title",A);if(this.get("header.feedTabbedHeaderRenderer.title",A))return _.PK(this.get("header.feedTabbedHeaderRenderer.title",A));if(this.get("header.interactiveTabbedHeaderRenderer.title",A))return this.get("header.interactiveTabbedHeaderRenderer.title",A);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
A))return _.PK(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",A));var H,k;return(A==null?0:(H=A.header)==null?0:(k=H.pageHeaderRenderer)==null?0:k.pageTitle)?A.header.pageHeaderRenderer.pageTitle:""};
_.q.updateTitle=function(A){_.Ed(this.hostElement,"yt-update-title",this.getTitle(A))};
_.q.initCsi=function(){uVL(this.pageSubtype||"browse",["ol","cpt"])};
_.q.getPlayer=function(){if(_.b("kevlar_channel_trailer_multi_attach")){for(var A=_.r(this.attachedPlayers),H=A.next();!H.done;H=A.next())if(H=H.value,H.isConnected||_.as(this.hostElement,H))return H;return null}return this.player};
_.q.getPlayerContainer=function(){return null};
_.q.onPlayerAttached=function(A,H){_.b("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(H):this.player=H};
_.q.onPlayerDetached=function(A,H){_.b("kevlar_channel_trailer_multi_attach")?(A=this.attachedPlayers.indexOf(H),A<0||this.attachedPlayers.splice(A,1)):this.player=null};
_.q.getServiceTrackingParams=function(){var A,H;return((A=this.data)==null?void 0:(H=A.responseContext)==null?void 0:H.serviceTrackingParams)||[]};
_.q.setMastheadAd=function(A){A&&A.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=A&&A.mastheadAd};
_.q.dataChanged=function(){var A=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||mmI();_.No(this,function(){_.li(A.hostElement,"ytd-update-grid-state-action")})};
_.q.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.q.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var A=this.data.alerts;return A&&A.find(function(H){return!!H.alertWithActionsRenderer})}};
_.q.computeGreetingData=function(){if(this.data&&this.data.alerts){var A=this.data.alerts;return A&&A.find(function(H){return!!H.personalGreetingViewModel})}};
_.q.computeHasMemberHubProfileRenderer=function(A){var H;return!!(A==null?0:(H=A.header)==null?0:H.memberHubProfileRenderer)};
_.q.handleAlertCommand=function(A){this.get("alertCommand.alert.alertWithActionsRenderer",A)&&(A=_.L(A,fYG),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",A.alert))};
_.q.handleYtPlaylistDeletionRedirect=function(A){A=this.get("playlistDeletionRedirectCommand.redirectEndpoint",A);_.Ed(this.hostElement,"yt-navigate",{endpoint:A})};
_.q.computeFluidWidth=function(A,H,k){if(H==="mini_app"||k)return!0;var d,W,z;A=A==null?void 0:(d=A.contents)==null?void 0:(W=d.twoColumnBrowseResultsRenderer)==null?void 0:(z=W.tabs)==null?void 0:z.find(function(h){var O;return h==null?void 0:(O=h.tabRenderer)==null?void 0:O.selected});
if(!A)return!1;var u,B;return!!((u=A.tabRenderer)==null?0:(B=u.content)==null?0:B.richGridRenderer)&&!["channel","channels","playables"].includes(H)};
_.q.computeHeaderFluidWidth=function(A){return A==="hashtag-landing-page"};
_.q.computeHasSidebar=function(A){var H;return!!(A.sidebar||((H=A.header)==null?0:H.playlistHeaderRenderer))};
_.q.computeHasPageHeaderSidebar=function(A){var H,k;return!!((H=A.header)==null?0:(k=H.pageHeaderRenderer)==null?0:k.enableSidebarView)};
_.q.computeUseUnifiedShowPageLayout=function(A){if(!A||this.pageSubtype!=="show"||!A.sidebar||!A.sidebar.playlistSidebarRenderer)return!1;A=A.sidebar.playlistSidebarRenderer;if(!A.items)return!1;for(var H=0;H<A.items.length;H++)if(_.L(A.items[H],vjB)){var k=void 0;return((k=_.L(A.items[H],vjB))==null?void 0:k.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.q.computeIsConstrainedList=function(A){return A==="subscriptions-channels"};
_.q.computeResponsiveSizing=function(A){return A==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.nP.Object.defineProperties(zS.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var A,H;return((A=this.data)==null?0:(H=A.header)==null?0:H.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var A,H;if(!((A=this.data)==null?0:(H=A.sidebar)==null?0:H.playlistSidebarRenderer))return!1;var k;return(k=this.data)!=null&&k.header?!1:!0}}});
_.nP.Object.defineProperties(zS,{template:{configurable:!0,enumerable:!0,get:function(){if(HaQ===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);HaQ=A}A=HaQ;return A}}});
zS.prototype.dataChanged=zS.prototype.dataChanged;zS.prototype.onPlayerDetached=zS.prototype.onPlayerDetached;zS.prototype.onPlayerAttached=zS.prototype.onPlayerAttached;zS.prototype.onStampFinished=zS.prototype.onStampFinished;zS.prototype.engagementPanelsChanged=zS.prototype.engagementPanelsChanged;zS.prototype.scrollAtTopChanged=zS.prototype.scrollAtTopChanged;zS.prototype.tabsChanged=zS.prototype.tabsChanged;zS.prototype.activeChanged=zS.prototype.activeChanged;
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],zS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],zS.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],zS.prototype,"ytdReduxBehavior",void 0);_.E([_.P(di.YtPageBehavior),_.l("design:type",Object)],zS.prototype,"ytPageBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],zS.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],zS.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],zS.prototype,"hidden",void 0);
_.E([_.C(),_.l("design:type",Object)],zS.prototype,"mastheadAdData",void 0);_.E([_.C({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.l("design:type",Object)],zS.prototype,"alertBannerData",void 0);_.E([_.C({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.l("design:type",Object)],zS.prototype,"greetingData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],zS.prototype,"pageSubtype",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.l("design:type",Boolean)],zS.prototype,"hasMemberHubProfileRenderer",void 0);_.E([_.C({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],zS.prototype,"hasSidebar",void 0);_.E([_.C({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],zS.prototype,"hasPageHeaderSidebar",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],zS.prototype,"roundedContainer",void 0);_.E([_.C({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],zS.prototype,"useUnifiedShowPageLayout",void 0);_.E([_.C({computed:"computeIsConstrainedList(pageSubtype)"}),_.l("design:type",Object)],zS.prototype,"isConstrainedList",void 0);
_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zS.prototype,"usePlaylistHeaderRenderer",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zS.prototype,"useOldPlaylistSidebarRenderer",null);_.E([_.C({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.l("design:type",Boolean)],zS.prototype,"fluidWidth",void 0);_.E([_.C({selector:iHV}),_.l("design:type",Boolean)],zS.prototype,"scrollAtTop",void 0);
_.E([_.C({selector:hAi}),_.l("design:type",Boolean)],zS.prototype,"tabGesturesIsActive",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.l("design:type",Boolean)],zS.prototype,"disableHeaderFluidWidth",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.l("design:type",String)],zS.prototype,"responsiveSizing",void 0);
_.E([_.ol("ytd-two-column-browse-results-renderer"),_.l("design:type",HTMLElement)],zS.prototype,"contents",void 0);_.E([_.ol("#header"),_.l("design:type",HTMLElement)],zS.prototype,"header",void 0);_.E([_.ol("ytd-refresh"),_.l("design:type",Object)],zS.prototype,"refresh",void 0);_.E([_.fF("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zS.prototype,"activeChanged",null);
_.E([_.fF("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zS.prototype,"tabsChanged",null);_.E([_.fF("scrollAtTop"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zS.prototype,"scrollAtTopChanged",null);_.E([_.C(),_.l("design:type",Object)],zS.prototype,"engagementPanels",void 0);
_.E([_.fF("data.panels"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zS.prototype,"engagementPanelsChanged",null);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zS.prototype,"onStampFinished",null);_.E([_.Ze("yt-player-attached"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Element]),_.l("design:returntype")],zS.prototype,"onPlayerAttached",null);
_.E([_.Ze("yt-player-detached"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Element]),_.l("design:returntype")],zS.prototype,"onPlayerDetached",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zS.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-browse"})],zS);var X3B,Dg_=function(){if(X3B!==void 0)return X3B;var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return X3B=A};var qW=function(){var A=_.a.apply(this,arguments)||this;A.currentPage=void 0;A.renderLoadingStateJobId=0;A.updatePageDataJobId=0;A.pageDisposeJobsets=new WeakMap;A.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"};A.shouldApplyLockupToWatchTransition=_.b("web_thumbnail_to_watch_transition");A.shouldApplySlideTransition=_.k6("web_page_transition_type")==="slide"||_.b("enable_plj_landing_page");A.shouldApplyLearningJourneyTransition=_.b("enable_plj_landing_page");A.TEST_ONLY=void 0;return A};
_.I(qW,_.a);_.q=qW.prototype;_.q.ready=function(){var A=_.wj();A.addProvider({provide:_.SO,useValue:this});A.addProvider({provide:_.pzG,useValue:this})};
_.q.created=function(){this.pagePool=new JpI;this.contextSwitcher=new tTB};
_.q.attached=function(){_.Ed(this.hostElement,"attached");var A=_.wj().resolve(_.fZ(_.sJ));A&&(this.contextSwitcher.JSC$20172_networkService_=A);this.viewTransitionManager=_.wj().resolve(_.uv)};
_.q.getPageOffset=function(A){return A.getScrollTop()};
_.q.setPageOffset=function(A,H){try{A.setScrollTop(H)}catch(k){}};
_.q.setPageOffsetForNavigation=function(A,H){_.Ed(this.hostElement,"yt-navigate-set-page-offset",{page:A,offset:H===void 0?0:H})};
_.q.pauseActiveContext=function(){var A=this.contextSwitcher;A.activeContext_&&A.activeContext_.pause()};
_.q.attachPage=function(A){var H,k=!_.b("pc_is_attached_ks")&&(A==null?void 0:(H=A.polymerController)==null?void 0:H.isAttached);if(!A.isAttached&&!k)try{_.Va(this.hostElement).appendChild(A)}catch(W){var d;_.Pq(new _.Ti("Error attaching page element for component",{origin:(d=this.currentPage)==null?void 0:d.is,component:A.is}))}};
_.q.setActivePage=function(A,H){var k=this,d=!1,W=function(){var z=k.isOnWatch(),u=k.currentPage;if(A)if(A!==k.currentPage){u&&(u.hidden=!0,u.active=!1,u.removeAttribute("role"));k.currentPage=A;var B,h=H!=null?H:_.Zu((B=k.data)==null?void 0:B.endpoint);u&&_.Ed(k.hostElement,"yt-page-type-changed",{oldPageType:u.is,newPageType:A.is,newPageSubtype:h});_.FI().dispatch(_.p8({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:A.is}));_.FI().dispatch(_.p8({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:h||""}));
A.hidden=!1;k.attachPage(A);A.active=!0;A.setAttribute("role","main");u&&k.setPageOffsetForNavigation(A,0);_.b("kevlar_remove_page_dom_on_switch")&&!z&&u&&_.Va(k.hostElement).removeChild(u)}else d=!0;else k.handleMissingDestinationPage(u)};
this.shouldRunBrowseTransition(this.currentPage,A)?osV(this.viewTransitionManager,W):this.shouldRunLearningJourneyTransition(this.currentPage,A)?HoB(this.viewTransitionManager,W):W();return d};
_.q.handleMissingDestinationPage=function(A){if(this.isColdLoadForUnknownPage(A))_.Pq(new _.Ti("Cold load for unknown page"));else{var H;A=new _.Ti("Unable to set active page",A?A.is:"unknown origin",(H=this.data)==null?void 0:H.endpoint);_.I3(A)}};
_.q.isColdLoadForUnknownPage=function(A){return!A&&Vq(this.data)==="unknown"};
_.q.shouldRunBrowseTransition=function(A,H){return this.shouldApplySlideTransition&&(A==null?void 0:A.is)==="ytd-browse"&&(H==null?void 0:H.is)==="ytd-browse"&&A!==H};
_.q.shouldRunLearningJourneyTransition=function(A,H){return this.shouldApplyLearningJourneyTransition&&(A==null?void 0:A.is)==="ytd-browse"&&((H==null?void 0:H.is)==="ytd-watch-learning-journey"||(H==null?void 0:H.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.q.shouldRunWatchNextLoadedTransition=function(A,H){return this.viewTransitionManager&&A.is==="ytd-watch-flexy"&&H};
_.q.updatePageData=function(A){var H=this,k=this.data;this.updatePageDataJobId&&_.IE.cancelJob(this.updatePageDataJobId);this.data=A;return new _.Wq(function(d){var W=function(){A.filler?H.performDataUpdate(A,k):NtM(function(){H.performDataUpdate(A,k)});
var z=_.Yf();_.Pi(z,"cr")||z.processSignal("cr");d()};
A&&A.page==="watch"?H.updatePageDataJobId=_.zV(_.IE,W):W()})};
_.q.isDownloadsPage=function(A){var H,k;return(A==null?void 0:(H=A.endpoint)==null?void 0:(k=H.browseEndpoint)==null?void 0:k.browseId)==="FEdownloads"};
_.q.setPlayerSyncInterval=function(A){var H;return _.e(function(k){if(k.nextAddress==1)return k.yield(_.wj().resolve(_.VI),2);H=k.yieldResult;H.setUpPositionSyncInterval(A);_.EN(k)})};
_.q.performDataUpdate=function(A,H){_.b("kevlar_early_popup_close")||_.Ud(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var k=!A.filler;k&&(_.OH("lps"),_.b("config_age_report_killswitch")||AZR());var d=Vq(A),W,z=!1;if(_.b("kevlar_remove_page_dom_on_switch")){var u=H&&Vq(H);d===u&&(W=this.getCurrentPage())}W||(W=ES(this.pagePool,d));k&&ftR(this.pagePool.elementPoolPopulator,d);k&&!this.renderLoadingStateJobId&&(z=this.setActivePage(W));if(W){u=d==="watch";var B=
d==="shorts",h=d==="learning_journey_watch";_.b("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(W);if(u||B||h)W.playerData=A.playerResponse;if(B){A.reelWatchSequenceResponse?W.reelWatchSequenceResponse=A.reelWatchSequenceResponse:W.cachedReelWatchSequenceResponse&&!W.reelWatchSequenceResponse&&(W.reelWatchSequenceResponse=W.cachedReelWatchSequenceResponse);A.reelWatchSequenceResponse&&(H==null?void 0:H.page)!=="shorts"&&(W.cachedReelWatchSequenceResponse=A.reelWatchSequenceResponse);
W.currentEndpoint=A.endpoint;var O;W.isPreviousPageShorts=!!(H==null?0:(O=H.endpoint)==null?0:O.reelWatchEndpoint)}O=this.isDownloadsPage(A);var T=this.isDownloadsPage(H);O&&!T?this.setPlayerSyncInterval(6E5):!O&&T&&this.setPlayerSyncInterval();_.b("block_all_player_prefetch_requests")||this.preparePrefetchRequest(A,W,k,u,B,h);sSB(_.wj().resolve(_.L6),H,A);if(_.b("enable_ai_companion")){var m;(m=_.wj().resolve(_.fZ(_.hz)))==null||_.CeI(m,this.getPersistentPanelSurface(d))}_.Kg(_.wj().resolve(_.A8));
_.b("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(W);k?(k=typeof W.loadPage,k==="function"?(W.pageContext=NR3(this.contextSwitcher,W,W.data!==A.response),k=function(){W.loadPage(A.response)},this.shouldApplySlideTransition&&W.is==="ytd-browse"&&z&&(d==="learning"||this.isDifferentBrowseId(A==null?void 0:A.endpoint,H==null?void 0:H.endpoint))?osV(this.viewTransitionManager,k):this.shouldRunWatchNextLoadedTransition(W,z)?Ag_(this.viewTransitionManager,k):k()):_.YJ(new _.Ti("b/38014653 ",
[d,
W.is,W.nodeName,k,W.isAttached,H&&Vq(H),this.hostElement.children.length])),_.OH("pdl")):(W.hidden=!0,A.response.filler=!0,W.data=A.response,this.attachPage(W));_.Ed(this.hostElement,"yt-page-data-updated",{pageType:d})}_.ma(_.IE,function(){_.b("logging_avoid_blocking_during_navigation")&&_.HhC().transition("none");var J=qrB(),g=W;if(A){var v=Xn_(A),y=DN3(A),X;a:{if(A.playerResponse){var D=A.playerResponse,K;if((X=D.auxiliaryUi)==null?0:(K=X.messageRenderers)==null?0:K.upsellDialogRenderer){X=D.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(A.response&&(X=A.response,(D=X.overlay)==null?0:D.upsellDialogRenderer)){X=X.overlay.upsellDialogRenderer;break a}X=void 0}var N;var U;K=(N=A.playerResponse)==null?void 0:(U=N.auxiliaryUi)==null?void 0:U.messageRenderers;N=(K==null?void 0:K.enforcementMessageViewModel)||(K==null?void 0:K.bkaEnforcementMessageViewModel);N=(N==null?void 0:N.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?N:void 0;var p;a:{if(A.response&&(U=A.response,(p=U.overlay)==null?0:p.commandWrapperPromoRenderer)){p=
U.overlay.commandWrapperPromoRenderer;break a}p=void 0}z3L(J,v,y,X,N,p,g)}})};
_.q.preparePrefetchRequest=function(A,H,k,d,W,z){var u,B,h,O,T,m,J,g,v,y,X,D,K,N,U;return _.e(function(p){if(p.nextAddress==1)return!k||!(d||W||z)||_.b("kevlar_disable_background_prefetch")&&_.ED(ZP_)()===0?p.return():(u=_.Cj(H))?p.yield(u.getPlayerPromise(),2):p.return();B=p.yieldResult;h=_.wj().resolve(_.fZ(_.sJ));if(!h)return p.return();if(W)return O=_.VG(_.Z4),B6G(O,(T=A.endpoint)==null?void 0:T.reelWatchEndpoint,H.reelWatchSequenceResponse,B,h),p.return();g=(m=A.response)==null?void 0:(J=m.responseContext)==
null?void 0:J.webResponseContextExtensionData;if(!g)return p.return();K=(v=A.response)==null?void 0:(y=v.contents)==null?void 0:(X=y.twoColumnWatchNextResults)==null?void 0:(D=X.autoplay)==null?void 0:D.autoplay;N=_.wj().resolve(_.jd);U=_.VG(_.Z4);evL(U,g,B,h,N,K);_.EN(p)})};
_.q.movePlayerToWatch=function(A){var H=this,k,d;return _.e(function(W){k=ES(H.pagePool,"watch");d=k.getPlayerContainer();A.appendTo(d);_.EN(W)})};
_.q.movePlayerToShorts=function(A){var H=this,k,d,W;return _.e(function(z){k=ES(H.pagePool,"shorts");d=k.getPlayerContainer();(W=A)==null||W.appendTo(d,void 0,!0);_.EN(z)})};
_.q.getPlayerFromWatch=function(){var A=ES(this.pagePool,"watch");return _.Cj(A)};
_.q.getPlayerFromShorts=function(){var A=ES(this.pagePool,"shorts");return _.Cj(A)};
_.q.startLoadingWatch=function(){var A=this,H=ES(this.pagePool,"watch");this.renderLoadingStateJobId?(_.IE.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.b("web_watch_transition_enable_start_loading_watch_callsite")?$rM(this.viewTransitionManager,function(){A.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(H,"watch");
if(_.b("enable_ai_companion")){var k;(k=_.wj().resolve(_.fZ(_.hz)))==null||_.CeI(k,this.getPersistentPanelSurface("watch"))}};
_.q.startLoadingShorts=function(){var A=ES(this.pagePool,"shorts");this.setActivePage(A,"shorts")};
_.q.startLoadingLearningJourney=function(){var A=ES(this.pagePool,"learning_journey_watch");this.setActivePage(A,"learning_journey_watch")};
_.q.getCurrentPage=function(){return this.currentPage};
_.q.getDestinationPageType=function(){return this.destinationPageType};
_.q.getCurrentData=function(){return this.data};
_.q.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.q.isOnShorts=function(){var A;return((A=this.currentPage)==null?void 0:A.is)==="ytd-shorts"};
_.q.isWatchPage=function(A){return!!A&&(A.is==="ytd-watch-flexy"||A.is==="ytd-watch-fixie"||A.is==="ytd-watch-grid")};
_.q.preparePage=function(A,H){var k=this,d=function(){var z=k.pagePool.preparePage(A,k.currentPage,H);z&&k.attachPage(z)},W=function(z){_.Gg(z,H);
_.Pq(z)};
try{d()}catch(z){W(z)}};
_.q.lazyPrepareCriticalPages=function(A,H){A=_.Zu(H)||A;this.maybePrepareWatchPage(A)};
_.q.maybePrepareWatchPage=function(A){A==="watch"||A==="learning_journey_watch"&&_.b("web_watch_learning_journey_disable_lazy_pages")||_.ma(_.IE,this.preparePage.bind(this,"watch"))};
_.q.renderPageLoadingState=function(A,H){this.preparePage(A,H);var k=ES(this.pagePool,A);k.loadingData&&(k.loadingData.endpoint=H);k.loading=!0;this.setActivePage(k,A);A!=="watch"&&A!=="learning_journey_watch"||_.Ed(this.hostElement,"yt-guide-close")};
_.q.prepareForNavigation=function(A,H){var k=this;if(this.currentPage&&this.data){var d=_.Zu(H)||A;this.destinationPageType=d;Vq(this.data)==d&&_.Ed(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((A==="watch"||A==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.IE.cancelJob(this.renderLoadingStateJobId);_.wj().resolve(_.L6).deactivate(H);_.Hp(_.IE,function(){var z=k.viewTransitionManager,u=k.currentPage;
if(z.isLockupToWatchTransitionEnabled&&z.isLockupThumbnailRegistrationEnabled&&u)if(z.registeredLockupThumbnail)z.lockupThumbnailRegisteredFromWatchEndpoint&&_.Pq(new _.Ti("Lockup thumbnail already registered from watch endpoint."));else{a:{var B=_.L(H,_.Yr);if(B==null?0:B.videoId){var h="yt-lockup-view-model ."+_.RyA(B.videoId)+" yt-thumbnail-view-model";u=u.querySelectorAll(h);if(u.length===1){B=u[0];break a}u.length>1?_.Pq(new _.Ti("Multiple LockupViewModel thumbnails found for videoId: "+B.videoId+
". Selector: "+h)):_.b("web_thumbnail_to_watch_transition_debug")&&_.Pq(new _.Ti("No LockupViewModel thumbnail found for videoId: "+B.videoId+". Selector: "+h))}B=void 0}B&&(z.registeredLockupThumbnail=B,z.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.Jfe(z,B))}});
var W=this.data;this.renderLoadingStateJobId=_.Hp(_.IE,function(){$rM(k.viewTransitionManager,function(){if(k.data!=W){var z=ES(k.pagePool,A);k.setActivePage(z)}else k.renderPageLoadingState(A,H);k.renderLoadingStateJobId=0})},150)}};
_.q.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var A=new _.S$(1);this.currentPage.pageDisposeJobs.forEach(function(H){_.CM(A,H)});
this.pageDisposeJobsets.set(this.currentPage,A)}};
_.q.flushPageDisposeJobset=function(A){var H=this.pageDisposeJobsets.get(A);H&&(H.flushJobs(),this.pageDisposeJobsets.delete(A))};
_.q.onYtStopOldPlayer=function(A,H){H=H===void 0?!1:H;var k,d=_.d2("kevlar_new_stop_old_player_logic_pages");if(_.b("kevlar_check_current_page_on_stop_old_player")&&(d.length===0||this.currentPage&&d.includes(this.currentPage.is)))if(this.data&&(k=Vq(this.data)),Vq(A)===k&&this.currentPage&&Vq(this.currentPage.data)!==k)var W=_.Cj(this.currentPage);else k=Vq(this.data),W=ES(this.pagePool,k),W=_.Cj(W);else this.data&&(k=Vq(this.data),W=ES(this.pagePool,k),W=_.Cj(W));if(W){d=Vq(A);var z=ES(this.pagePool,
d);z=_.Cj(z);if(W==z)H&&!_.b("kevlar_disable_preemptive_player_reset")&&W.resetForNewPlayback();else if(H=k==="watch"&&d!=="watch",!H||d==="shorts"||_.Kkk()&&!s1L(this.data,A))A=_.wj().resolve(_.L6),H&&A.isMiniplayerActive()&&A.pipController.getWindow()||W.stop()}};
_.q.isDifferentBrowseId=function(A,H){A=_.L(A,_.fm);H=_.L(H,_.fm);return(A==null?void 0:A.browseId)!==(H==null?void 0:H.browseId)};
_.q.getPersistentPanelSurface=function(A){switch(A){case "watch":return"WATCH";default:return"APP"}};
_.nP.Object.defineProperties(qW,{template:{configurable:!0,enumerable:!0,get:function(){return Dg_()}}});
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],qW.prototype,"ytActionHandlerBehavior",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-page-manager"})],qW);_.Q(qW,"ytd-page-manager",function(){return Dg_()},{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var SsR;var C8e;var r8=function(){var A=_.a.apply(this,arguments)||this;A.hasChipBar=!1;return A};
_.I(r8,_.a);r8.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}}};
r8.prototype.computeHasChipBar=function(A){return!(A==null||!A.chipBar)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],r8.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.l("design:type",Object)],r8.prototype,"hasChipBar",void 0);_.E([_.O6({is:"ytd-search-header-renderer",disableElementRegistration:!0})],r8);
_.Q(r8,"ytd-search-header-renderer",function(){if(C8e!==void 0)return C8e;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return C8e=A},{mode:1});var KcG;var uq=function(){return _.a.apply(this,arguments)||this};
_.I(uq,_.a);uq.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uq.prototype.computeBlueBottomLink=function(A){return A};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uq.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.bottomIcon)"}),_.l("design:type",String)],uq.prototype,"bottomIcon",void 0);
_.E([_.C({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.l("design:type",Boolean)],uq.prototype,"enableBlueBottomLink",void 0);_.E([_.O6({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],uq);
_.Q(uq,"ytd-web-answer-renderer",function(){if(KcG!==void 0)return KcG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return KcG=A},{mode:2});var a0B;var Bs=function(){return _.a.apply(this,arguments)||this};
_.I(Bs,_.a);Bs.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Bs.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-page-continuation"})],Bs);
_.Q(Bs,"ytd-page-continuation",function(){if(a0B!==void 0)return a0B;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return a0B=A},{mode:1});var cH_;var p3M;var Q2V;var VbG=function(){return _.a.apply(this,arguments)||this};
_.I(VbG,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],VbG.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],VbG.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],VbG);
_.Q(VbG,"ytd-watch-card-one-vs-one-event",function(){if(Q2V!==void 0)return Q2V;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Q2V=A},{mode:1});var EK_=function(){return _.a.apply(this,arguments)||this};
_.I(EK_,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],EK_.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],EK_.prototype,"data",void 0);_.E([_.O6({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],EK_);
_.Q(EK_,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(p3M!==void 0)return p3M;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return p3M=A},{mode:1});var Ug1;var l0G=function(){return _.a.apply(this,arguments)||this};
_.I(l0G,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],l0G.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],l0G.prototype,"data",void 0);_.E([_.O6({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],l0G);
_.Q(l0G,"ytd-banner-and-box-hero-image-renderer",function(){if(Ug1!==void 0)return Ug1;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Ug1=A},{mode:1});var tbR;var e5=function(){var A=_.a.apply(this,arguments)||this;A.modern=_.b("web_modern_buttons");return A};
_.I(e5,_.a);e5.prototype.computeIcon=function(){var A,H,k=(A=this.data)==null?void 0:(H=A.icon)==null?void 0:H.iconType;if(k)return _.N0(k)};
e5.prototype.computeButtonShape=function(){var A;return{buttonText:_.PK((A=this.data)==null?void 0:A.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.nP.Object.defineProperties(e5.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"}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],e5.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],e5.prototype,"modern",void 0);_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.style"),_.l("design:type",Object),_.l("design:paramtypes",[])],e5.prototype,"buttonColor",null);
_.E([_.O6({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],e5);
_.Q(e5,"ytd-call-to-action-button-renderer",function(){if(tbR!==void 0)return tbR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tbR=A},{mode:1});var N$B;var xP=function(){return _.a.apply(this,arguments)||this};
_.I(xP,_.a);xP.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Va(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.C3(this.data.leftThumbnail.thumbnails,216)+")")};
xP.prototype.onLeftThumbnailChanged=xP.prototype.onLeftThumbnailChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xP.prototype,"data",void 0);_.E([_.fF("data.leftThumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xP.prototype,"onLeftThumbnailChanged",null);_.E([_.O6({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],xP);
_.Q(xP,"ytd-collage-hero-image-renderer",function(){if(N$B!==void 0)return N$B;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return N$B=A},{mode:1});var MbI;var iq=function(){return _.a.apply(this,arguments)||this};
_.I(iq,_.a);iq.prototype.computeStyle=function(A){return A};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],iq.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],iq.prototype,"componentStyle",void 0);_.E([_.O6({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],iq);
_.Q(iq,"ytd-single-hero-image-renderer",function(){if(MbI!==void 0)return MbI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return MbI=A},{mode:1});var nKi;var hp=function(){return _.a.apply(this,arguments)||this};
_.I(hp,_.a);_.q=hp.prototype;
_.q.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:_.b("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.q.computeSubtitle=function(A){if(this.data){var H;if(this.data.upcomingEventData){A=_.PK(A.subtitle);var k=Number(this.data.upcomingEventData.startTime);isNaN(k)||(H=_.Yu(_.qF(A,k)))}else H=A.subtitle;return H}};
_.q.onHeroTap=function(A){A.preventDefault();var H=this.data&&this.data.navigationEndpoint;!H||!_.XU(_.F_(A),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.XU(_.F_(A),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.b("kevlar_watchcard_hero_video_renderer_killswitch")?_.Ed(this.hostElement,"yt-navigate",{navigationEndpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.q.computeHeroTabIndex=function(A){return A&&A.simpleText?-1:0};
_.q.computeHeroRole=function(A){return A&&A.simpleText?"":"link"};
_.q.computeIsReminderButtonPresent=function(A){return!(!A||!A.reminderButton)};
_.q.computeHideBottomItems=function(A){return!(this.computeIsReminderButtonPresent(A)||A.subtitle)};
_.q.dataChanged=function(){var A=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;((H=_.L(A==null?void 0:A.commandMetadata,_.WY))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(A)};
hp.prototype.dataChanged=hp.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],hp.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],hp.prototype,"data",void 0);
_.E([_.C({computed:"computeSubtitle(data)"}),_.l("design:type",String)],hp.prototype,"subtitle",void 0);_.E([_.C({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],hp.prototype,"isReminderButtonPresent",void 0);_.E([_.C({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],hp.prototype,"hideBottomItems",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hp.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],hp);
_.Q(hp,"ytd-watch-card-hero-video-renderer",function(){if(nKi!==void 0)return nKi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return nKi=A},{mode:1});var Z9B;var Oo=function(){return _.a.apply(this,arguments)||this};
_.I(Oo,_.a);_.q=Oo.prototype;_.q.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"}}}};
_.q.computeTitleBadges=function(A){return A?[A]:[]};
_.q.computeHeaderStyle=function(A){return A?A.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.q.computeAvatarAriaLabel=function(A){if(A){var H,k,d,W;return(W=(H=A.avatar)==null?void 0:(k=H.accessibility)==null?void 0:(d=k.accessibilityData)==null?void 0:d.label)!=null?W:_.PK(A==null?void 0:A.title)}};
_.q.computeAvatarHeight=function(A){return A==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.q.computeBadgeRowClass=function(A){return(A==null?0:A[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Oo.prototype,"data",void 0);_.E([_.C({computed:"computeTitleBadges(data.titleBadge)"}),_.l("design:type",Array)],Oo.prototype,"titleBadges",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.l("design:type",String)],Oo.prototype,"headerStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.l("design:type",String)],Oo.prototype,"badgeRowClass",void 0);_.E([_.O6({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Oo);
_.Q(Oo,"ytd-watch-card-rich-header-renderer",function(){if(Z9B!==void 0)return Z9B;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Z9B=A},{mode:1});var f0M;var w3i;var Rt=function(){return _.a.apply(this,arguments)||this};
_.I(Rt,_.a);Rt.prototype.onMetadataTap=function(A){var H=this.data&&this.data.navigationEndpoint;H&&!_.XU(_.F_(A),this.hostElement,["A".toString()])&&_.Ed(this.hostElement,"yt-navigate",{endpoint:H})};
_.nP.Object.defineProperties(Rt.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 A;if(this.data.upcomingEventData){var H=_.PK(this.data.subtitle),k=Number(this.data.upcomingEventData.startTime);isNaN(k)||(A=_.Yu(_.qF(H,k)))}else A=this.data.subtitle;return A}}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Rt.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.style"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rt.prototype,"isCondensed",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Rt.prototype,"subtitle",null);
_.E([_.O6({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Rt);
_.Q(Rt,"ytd-watch-card-compact-video-renderer",function(){if(w3i!==void 0)return w3i;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return w3i=A},{mode:1});var oKi;var $g_=function(){return _.a.apply(this,arguments)||this};
_.I($g_,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$g_.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$g_.prototype,"data",void 0);_.E([_.O6({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],$g_);
_.Q($g_,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(oKi!==void 0)return oKi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return oKi=A},{mode:1});var TS=function(){return _.a.apply(this,arguments)||this};
_.I(TS,_.a);TS.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}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],TS.prototype,"ytRendererStamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],TS.prototype,"data",void 0);_.E([_.O6({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],TS);
_.Q(TS,"ytd-vertical-watch-card-list-renderer",function(){if(f0M!==void 0)return f0M;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return f0M=A},{mode:1});var ATR;var mi=function(){var A=_.a.apply(this,arguments)||this;A.ariaExpanded="false";return A};
_.I(mi,_.a);_.q=mi.prototype;_.q.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.q.dataChanged=function(){var A;this.currentSeasonIndex=((A=this.data)==null?void 0:A.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.q.computeEpisodesInfo=function(A,H,k){if(A!==void 0&&H.length===A.length)return A[k]};
_.q.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.q.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.q.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.q.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.q.getUppercaseSimpleString=function(A){return this.ytRendererBehavior.getSimpleString(A).toUpperCase()};
_.q.updateCurrentSeasonIndexFromBinding=function(A){this.currentSeasonIndex=A.detail.value};
mi.prototype.onIronOverlayClosed=mi.prototype.onIronOverlayClosed;mi.prototype.currentSeasonIndexChanged=mi.prototype.currentSeasonIndexChanged;mi.prototype.dataChanged=mi.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mi.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",String)],mi.prototype,"label",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],mi.prototype,"currentSeasonIndex",void 0);_.E([_.C({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.l("design:type",Object)],mi.prototype,"episodesInfo",void 0);_.E([_.C({value:"false"}),_.l("design:type",Object)],mi.prototype,"ariaExpanded",void 0);_.E([_.ol("#lists"),_.l("design:type",Object)],mi.prototype,"lists",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mi.prototype,"dataChanged",null);_.E([_.s6("currentSeasonIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mi.prototype,"currentSeasonIndexChanged",null);_.E([_.Ze("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],mi.prototype,"onIronOverlayClosed",null);
_.E([_.O6({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],mi);
_.Q(mi,"ytd-watch-card-section-dropdown-renderer",function(){if(ATR!==void 0)return ATR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ATR=A},{mode:1});var HyI;var Jp=function(){var A=_.a.apply(this,arguments)||this;A.isSearch=!1;return A};
_.I(Jp,_.a);Jp.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}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Jp.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Jp.prototype,"isSearch",void 0);_.E([_.O6({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Jp);
_.Q(Jp,"ytd-watch-card-section-sequence-renderer",function(){if(HyI!==void 0)return HyI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return HyI=A},{mode:1});var s$1=_.c(function(A){return _.x("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.x(_.HG,{data:function(){return A.data().ctaButton}},{buttonViewModel:_.U7}),_.x(_.j$,{text:function(){return A.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"yk");
s$1.idomCompat=!0;_.Sw(s$1,"ytd-button-banner-view-model",{props:{data:_.Ih}});var g8=function(){var A=_.a.apply(this,arguments)||this;A.isSearch=!1;return A};
_.I(g8,_.a);
g8.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"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],g8.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],g8.prototype,"rounded",void 0);_.E([_.C(),_.l("design:type",Object)],g8.prototype,"isSearch",void 0);
_.E([_.O6({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],g8);
_.Q(g8,"ytd-universal-watch-card-renderer",function(){if(cH_!==void 0)return cH_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cH_=A},{mode:1});var kxG;_.Sw(_.c(function(A){var H=A.data;var k;A=!((k=_.wj().resolve(_.fZ(_.sF)))==null||!k());k={};return _.x("overview-message-view-model",{class:_.ER("ytwOverviewMessageViewModelHost",(k.ytwOverviewMessageViewModelDarkBackground=A,k.ytwOverviewMessageViewModelLightBackground=!A,k))},_.x(_.R,{cond:function(){return H().primaryImage},
then:function(d){return _.x(_.GA,{data:d,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.x(_.R,{cond:function(){return H().primaryText},
then:function(){return _.x("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.x(_.j$,{text:function(){return H().primaryText}}))}}),_.x(_.R,{cond:function(){return H().secondaryText},
then:function(){return _.x("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.x(_.j$,{text:function(){return H().secondaryText}}))}}))},"zk"),"overview-message-view-model",{props:{data:_.Ih}});_.Sw(_.fQG,"ytd-overview-answer-view-model",{props:{data:_.Ih}});var bq=function(){return _.a.apply(this,arguments)||this};
_.I(bq,_.a);bq.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"}}}};
bq.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.DV),_.l("design:type",Object)],bq.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bq.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],bq.prototype,"isSearch",void 0);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],bq);
_.Q(bq,"ytd-secondary-search-container-renderer",function(){if(kxG!==void 0)return kxG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return kxG=A},{mode:1});var d5B;var LQ=function(){var A=_.a.apply(this,arguments)||this;A.renderSecondarySearchContainer=!1;A.isSearch=!1;return A};
_.I(LQ,_.a);_.q=LQ.prototype;_.q.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"}}}};
_.q.created=function(){var A=this;this.boundStampSecondarySearchContainerIfFits=function(){A.stampSecondarySearchContainerIfFits()};
_.cI("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.q.computeIsSearchFrictionPage=function(A){var H,k,d,W,z;A=A==null?void 0:(H=A.primaryContents)==null?void 0:(k=H.sectionListRenderer)==null?void 0:(d=k.contents)==null?void 0:(W=d[0])==null?void 0:(z=W.itemSectionRenderer)==null?void 0:z.contents;if(!A)return!1;H=_.r(A);for(k=H.next();!k.done;k=H.next())if(d=void 0,(d=k.value)==null?0:d.searchFrictionViewModel)return!0;return!1};
_.q.computeShowSecondaryColumn=function(A,H){return!!(H&&H.secondaryContents&&A)};
_.q.activeChanged=function(){var A=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.nF(this,this.debounceStampSecondarySearchContainerIfFits)),_.L0(function(){A.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.nF(this,this.debounceStampSecondarySearchContainerIfFits))};
_.q.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.q.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.q.debounceStampSecondarySearchContainerIfFits=function(){_.vW(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.q.onRetrieveLocation=function(A,H){H.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);A.stopPropagation()};
_.q.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
LQ.prototype.dataChanged=LQ.prototype.dataChanged;LQ.prototype.onRetrieveLocation=LQ.prototype.onRetrieveLocation;LQ.prototype.persistentGuideChanged=LQ.prototype.persistentGuideChanged;LQ.prototype.activeChanged=LQ.prototype.activeChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],LQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],LQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.WU),_.l("design:type",Object)],LQ.prototype,"ironResizableBehavior",void 0);_.E([_.C(),_.l("design:type",Boolean)],LQ.prototype,"active",void 0);_.E([_.C(),_.l("design:type",Object)],LQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.b("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],LQ.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.k6("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],LQ.prototype,"biggerThumbsStyle",void 0);_.E([_.C(),_.l("design:type",Object)],LQ.prototype,"renderSecondarySearchContainer",void 0);_.E([_.C({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.l("design:type",Boolean)],LQ.prototype,"showSecondaryColumn",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.l("design:type",Boolean)],LQ.prototype,"isSearchFrictionPage",void 0);
_.E([_.C(),_.l("design:type",Object)],LQ.prototype,"isSearch",void 0);_.E([_.fF("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LQ.prototype,"activeChanged",null);_.E([_.fF("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LQ.prototype,"persistentGuideChanged",null);
_.E([_.Ze("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],LQ.prototype,"onRetrieveLocation",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LQ.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],LQ);
_.Q(LQ,"ytd-two-column-search-results-renderer",function(){if(d5B!==void 0)return d5B;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return d5B=A},{mode:1});var vs=function(){var A=_.a.apply(this,arguments)||this;A.hasSearchHeader=!1;A.hasSecondaryContent=!1;A.hasBiggerThumbs=_.b("enable_desktop_search_bigger_thumbs");A.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return A};
_.I(vs,_.a);_.q=vs.prototype;_.q.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:RQ(["aa","eocs"])}}};
_.q.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.q.loadPage_=function(A){this.initCsi();A&&(this.data=A,_.cI("REFINEMENTS_TUPLE",["FromSearchResponse",A.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.UY(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.q.initCsi=function(){uVL("results",["ol","cpt"])};
_.q.updateTitle=function(){var A=_.H4(window.location.href,"q");A||(A=_.H4(window.location.href,"search_query"));_.Ed(this.hostElement,"yt-update-title",A||"")};
_.q.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.q.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.b("web_srp_data_changed_terminate_imp_killswitch")||_.Ud(this.hostElement,"yt-terminate-video-preview-action")};
_.q.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.q.computeHasSearchHeader=function(A){var H;A=A==null?void 0:(H=A.header)==null?void 0:H.searchHeaderRenderer;return!!A&&(!!A.searchFilterButton||!!A.chipBar)};
_.q.computeHasSecondaryContent=function(A){var H,k;return!!(A==null?0:(H=A.contents)==null?0:(k=H.twoColumnSearchResultsRenderer)==null?0:k.secondaryContents)};
_.nP.Object.defineProperties(vs,{template:{configurable:!0,enumerable:!0,get:function(){if(SsR===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);SsR=A}A=SsR;return A}}});
vs.prototype.onReloadContinuationFinish=vs.prototype.onReloadContinuationFinish;vs.prototype.dataChanged=vs.prototype.dataChanged;_.E([_.P(di.YtPageBehavior),_.l("design:type",Object)],vs.prototype,"ytPageBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],vs.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.DV),_.l("design:type",Object)],vs.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],vs.prototype,"data",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],vs.prototype,"monitorScroll",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vs.prototype,"hasSearchHeader",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vs.prototype,"hasSecondaryContent",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],vs.prototype,"hasBiggerThumbs",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vs.prototype,"dataChanged",null);
_.E([_.Ze("yt-reload-continuation-finish"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vs.prototype,"onReloadContinuationFinish",null);_.E([_.O6({is:"ytd-search"})],vs);var WD_;var z0i;var qgB;var yx=function(){var A=_.a.apply(this,arguments)||this;A.ctaVisualElement=null;A.currentCsn=null;return A};
_.I(yx,_.a);_.q=yx.prototype;_.q.onDataChanged=function(){this.maybeLogShows()};
_.q.computeButtonShape=function(){var A=this;if(this.data)return{buttonText:_.PK(this.data.text),state:"active",onTap:function(){A.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.q.maybeCreateCtaVe=function(){var A;if((A=this.data)!=null&&A.badgeInteractionLogging){var H;if(A=(H=this.data.badgeInteractionLogging)==null?void 0:H.trackingParams)this.ctaVisualElement=_.db(A)}};
_.q.maybeLogClicks=function(){this.currentCsn=_.hx(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.P0(this.currentCsn,this.ctaVisualElement)};
_.q.maybeLogShows=function(){this.currentCsn=_.hx(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.IN(this.currentCsn,[this.ctaVisualElement])};
_.q.onTap=function(){var A;if((A=this.data)!=null&&A.onClickCommand){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand);this.maybeLogClicks()}};
yx.prototype.onDataChanged=yx.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],yx.prototype,"ytComponentBehavior",void 0);_.E([_.C({}),_.l("design:type",Object)],yx.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yx.prototype,"onDataChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],yx);
_.Q(yx,"ytd-shopping-overlay-badge-renderer",function(){if(qgB!==void 0)return qgB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return qgB=A},{mode:1});var rT_;var j5=function(){return _.a.apply(this,arguments)||this};
_.I(j5,_.a);j5.prototype.computeShouldButtonBeVertical=function(A,H){return A||H};
j5.prototype.onYtServiceRequestSent=function(A,H){(A=_.L(H.endpoint,_.BY))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.kH("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:A.status})):this.handleLikeEndpoint(A))};
j5.prototype.computelikeStatusEntityKey=function(A){return A==null?void 0:A.likeStatusEntityKey};
j5.prototype.handleLikeEndpoint=function(A){A.status==="LIKE"?this.JSC$22062_ytdDislikeToggleButtonRenderer.toggle(!1):A.status==="DISLIKE"?this.JSC$22062_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22062_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22062_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.nP.Object.defineProperties(j5.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var A;return R6Q(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(A=this.likeStatusEntity)==null?void 0:A.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var A;if(this.data&&((A=this.data)==null||!A.hideDislikeButton)){var H;return R6Q(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(H=this.likeStatusEntity)==null?void 0:H.likeStatus)}}}});
j5.prototype.onYtServiceRequestSent=j5.prototype.onYtServiceRequestSent;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],j5.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],j5.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],j5.prototype,"vertical",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],j5.prototype,"textTransform",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],j5.prototype,"useShortsIcon",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],j5.prototype,"underIconLabel",void 0);_.E([_.C({value:"left"}),_.l("design:type",String)],j5.prototype,"buttonTooltipPosition",void 0);_.E([_.C(),_.l("design:type",Object)],j5.prototype,"overrides",void 0);
_.E([_.ol("#like-button"),_.l("design:type",Object)],j5.prototype,"JSC$22062_ytdLikeToggleButtonRenderer",void 0);_.E([_.ol("#dislike-button"),_.l("design:type",Object)],j5.prototype,"JSC$22062_ytdDislikeToggleButtonRenderer",void 0);_.E([_.G("data","likeStatusEntity.likeStatus","useShortsIcon"),_.l("design:type",Object),_.l("design:paramtypes",[])],j5.prototype,"likeButton",null);
_.E([_.G("data","likeStatusEntity.likeStatus","useShortsIcon"),_.l("design:type",Object),_.l("design:paramtypes",[])],j5.prototype,"dislikeButton",null);_.E([_.C({computed:"computelikeStatusEntityKey(data)"}),_.l("design:type",String)],j5.prototype,"likeStatusEntityKey",void 0);_.E([_.C({selectorArgs:["likeStatusEntityKey"],selector:_.R9}),_.l("design:type",Object)],j5.prototype,"likeStatusEntity",void 0);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],j5.prototype,"onYtServiceRequestSent",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],j5);
_.Vu()(j5,"ytd-like-button-renderer",function(){if(rT_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);rT_=A}A=rT_;return A},{mode:1});_.Sw(_.iZQ,"reel-sound-metadata-view-model",{props:{data:_.Fc,overlayDensity:_.Fc}});_.Sw(_.cGM,"player-disclosure-view-model",{props:{data:_.Ih,extractOverlay:_.Ih}});_.Sw(_.Yop,"pivot-button-view-model",{props:{data:_.Fc,className:_.Fc}});_.Sw(_.PqA,"reel-action-bar-view-model",{props:{data:_.Ih,buttonShapeOverrideables:_.Ih}});_.Sw(_.hUi,"yt-reel-metapanel-view-model",{props:{data:_.Ih,overlayDensity:_.Ih,extractOverlay:_.Ih}});var u4e=_.c(function(A){var H=A.children;var k=A.region;A=_.r(_.RV(void 0,void 0,"flxBBc"));var d=A.next().value,W=A.next().value;A=_.r(_.RV("0px",void 0,"IAR7k"));var z=A.next().value,u=A.next().value;A=_.r(_.RV("0px",void 0,"QV4iWb"));var B=A.next().value,h=A.next().value;A=_.r(_.RV(0,void 0,"Q2oK6b"));var O=A.next().value,T=A.next().value;A=_.r(_.RV(0,void 0,"hYKowe"));var m=A.next().value,J=A.next().value,g=function(){var N=d();if(N){var U;if(((U=_.MN())==null?void 0:U.getPlayerState())!==-1){N.style.display=
"inherit";var p;(p=_.MN())==null||p.removeEventListener("onStateChange",g)}else N.style.display="none";y()}},v=function(){var N;
return(N=_.Kj())==null?void 0:N.querySelector("video")},y=function(){var N=v();
if(N){T(N.getBoundingClientRect().width);J(N.getBoundingClientRect().height);var U;u((N==null?void 0:(U=N.style)==null?void 0:U.left)||"0px");var p;h((N==null?void 0:(p=N.style)==null?void 0:p.top)||"0px")}};
_.CA(function(){var N=d();if(N){var U,p,M;if(((U=_.MN())==null?void 0:U.getPlayerState())===-1&&Math.round(((M=(p=_.MN())==null?void 0:p.getVideoAspectRatio())!=null?M:0)*100)!==Math.round(O()/m()*100)){N.style.display="none";var Z,WV;J(O()/((WV=(Z=_.MN())==null?void 0:Z.getVideoAspectRatio())!=null?WV:1))}}},"N29KDe");
var X=function(){y()},D;
_.Sp(function(){y();var N;if(!(k==null?0:(N=k())==null?0:N.transformationMatrix))throw Error("em");var U;(U=_.MN())==null||U.addEventListener("onStateChange",g);if(window.ResizeObserver){if(N=v())D=new ResizeObserver(X),D.observe(N)}else window.addEventListener("resize",y);_.aV(function(){var p;(p=_.MN())==null||p.removeEventListener("onStateChange",g);D?D.disconnect():window.removeEventListener("resize",y)})});
var K=function(){var N,U,p=(U=k==null?void 0:(N=k())==null?void 0:N.transformationMatrix)!=null?U:[];N=O();U=m();for(var M=[],Z=0,WV=-1;Z<p.length;Z++)Z%3===0&&(WV++,M[WV]=[]),M[WV].push(p[Z]);p=new OO(M);M=new OO([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);M=p.multiply(M);p=new OO([[0,0],[0,0],[0,0],[0,0]]);for(Z=0;Z<M.getSize().width;Z++){WV=eR(M,0,Z);var hA=eR(M,1,Z);if(WV===null||hA===null)throw Error("dm`"+(Z+1).toString());ZgM(p,Z,0,WV*N);ZgM(p,Z,1,hA*U)}N=eR(p,0,0);Z=eR(p,1,0);U=eR(p,0,1);WV=eR(p,1,1);
if(N===null||Z===null||U===null||WV===null)throw Error("bm");M=Td_(N,Z,U,WV);hA=eR(p,3,0);p=eR(p,3,1);if(hA===null||p===null)throw Error("cm");p=Td_(N,hA,U,p);WV=(Number((WV*-1).toFixed(2))-Number((U*-1).toFixed(2)))/(Number(Z.toFixed(2))-Number(N.toFixed(2)));hA=Math.atan(WV)*180/Math.PI;Z=WV===Number.POSITIVE_INFINITY?-90:WV===Number.NEGATIVE_INFINITY?90:Object.is(WV,-0)?180:WV===0?0:WV>0?hA*-1:N<Z?hA*-1:Math.abs(hA)+180;return"left:calc("+N+"px + "+z()+"); top:calc("+(U+"px + "+B()+"); width:")+
(M+"px; height:")+(p+"px; transform:rotate(")+(Z+"deg);\n        --sticker-width:"+M+";")};
return _.x(_.qHQ,{root:"#sticker-layer"},function(){return _.x("yt-overlay-sticker",{el:_.P8(W),style:K,class:"ytOverlayStickerHost"},H)})},"Ck");var BpL=_.c(function(A){function H(){var g,v,y,X,D=(v=_.L((g=h())==null?void 0:g.command,_.ftj))==null?void 0:(y=v.item)==null?void 0:(X=y.notificationTextRenderer)==null?void 0:X.successResponseText;if(D)g=_.Du(D),_.Ud(d.value,"yt-open-popup-action",[g,d.value]);else if(O())JYe(O(),d.value);else{var K;JYe((K=h())==null?void 0:K.command,d.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var k=A.data;var d=_.GP("svg"),W=_.r(_.RV(!1,void 0,"e9onLe"));A=W.next().value;var z=W.next().value,u=_.r(_.RV(!1,void 0,"ptnIQd"));W=u.next().value;var B=u.next().value,h=function(){var g;return _.L((g=k())==null?void 0:g.popUp,PM_)},O=function(){var g;
return(g=k())==null?void 0:g.command},T=function(){return _.L(O(),_.d9)!==void 0};
u=_.lc(function(){H();return!1});
var m={},J={};return _.x("svg",{"on:mouseover":_.lc(function(){T()&&z(!0);B(!0);return!1}),
"on:mouseout":_.lc(function(){z(!1);B(!1);return!1}),
"on:keydown":_.lc(function(g){g.key==="Enter"&&H();return!1}),
"on:focus":_.lc(function(){T()&&z(!0);return!1}),
"on:blur":_.lc(function(){T()&&z(!1);return!1}),
el:d,tabindex:0,"aria-label":function(){var g;return(g=k())==null?void 0:g.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ER("ytPlayerOverlayInteractionInteractionsSvg",(m.ytPlayerOverlayInteractionInteractionsSvgHover=A,m),(J.ytPlayerOverlayInteractionInteractionsSvgHideOutline=W,J)),role:"button","on:click":u})},"Fk");_.Sw(_.c(function(A){var H=A.data;_.Sp(function(){var k;if((k=H())==null?0:k.trackingParams){var d;_.A7().graftServerVe((d=H().trackingParams)!=null?d:"")}});
return _.x("yt-player-overlay-interaction",null,_.x(u4e,{region:function(){var k,d;return(k=H())==null?void 0:(d=k.regions)==null?void 0:d[0]}},_.x(BpL,Object.assign({},A))))},"Ek"),"yt-player-overlay-interaction",{props:{data:_.Ih}});var e0_=_.c(function(A){var H=A.data;var k=A.index;var d=A.selectedChoice;var W=function(){var z;return _.L((z=H())==null?void 0:z.renderer,NTL)};
A={};return _.x("yt-overlay-poll-sticker-choice",{class:_.ER("ytOverlayPollStickerChoiceHost"),style:_.Mt({"--displayed-percentage":function(){var z,u,B,h;return""+Math.ceil(Number((d==null?void 0:d())===k()?(z=W())==null?void 0:(u=z.selected)==null?void 0:u.progressBarWidth:(B=W())==null?void 0:(h=B.unselected)==null?void 0:h.progressBarWidth)*100)}})},_.x("div",{class:_.ER("ytOverlayPollStickerChoicePollChoice",(A.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(d==null?void 0:d())!==
void 0},A.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(d==null?void 0:d())===k()},A))},_.x("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var z;
return((z=W())==null?void 0:z.text)||""}),_.x("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(d==null?void 0:d())==="undefined")var z="";
else{var u,B,h,O;z=(d==null?void 0:d())===k()?(u=W())==null?void 0:(B=u.selected)==null?void 0:B.votePercentage:(h=W())==null?void 0:(O=h.unselected)==null?void 0:O.votePercentage}return z})))},"Gk");var x5L=_.c(function(A){var H=A.data;var k=A.enableDebuggingFeatures;var d=_.oy(function(z){var u,B=((u=H())==null?void 0:u.postPollStateEntityKey)||"";z=_.Mw(z.entities,"postPollStateEntity",B);var h;return((h=H())==null?0:h.viewerIsOwner)?Object.assign({},z,{selectedOptionId:-1,voted:!0}):z}),W=_.wj().resolve(_.J7);
A={};return _.x("yt-overlay-poll-sticker",null,_.x(u4e,{region:function(){var z,u;return(z=H())==null?void 0:(u=z.region)==null?void 0:u.interactionRegion}},_.x("div",{class:_.ER("ytOverlayPollStickerHost",(A.ytOverlayPollStickerDebugStyle=function(){return k==null?void 0:k()},A)),
style:_.Mt({"--original-height":function(){var z;return""+(((z=H())==null?void 0:z.mainBodyHeight)||1)},
"--original-width":function(){var z;return""+(((z=H())==null?void 0:z.mainBodyWidth)||1)},
"--scaled-width":function(){var z;return""+(((z=H())==null?void 0:z.mainBodyWidth)||1)},
"--primary-surface":function(){var z,u;return mJe(((z=H())==null?void 0:(u=z.theme)==null?void 0:u.primarySurface)||0)},
"--raised-surface":function(){var z,u;return mJe(((z=H())==null?void 0:(u=z.theme)==null?void 0:u.raisedSurface)||0)},
"--secondary-surface":function(){var z,u;return mJe(((z=H())==null?void 0:(u=z.theme)==null?void 0:u.secondarySurface)||0)},
"--primary-text":function(){var z,u;return mJe(((z=H())==null?void 0:(u=z.theme)==null?void 0:u.primaryText)||0)},
"--secondary-text":function(){var z,u;return mJe(((z=H())==null?void 0:(u=z.theme)==null?void 0:u.secondaryText)||0)}})},_.x("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return H().questionText}," "),_.x(_.Ix,{each:function(){return H().pollChoiceConfigs||[]}},function(z,u){return _.x("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.lc(function(){var B=u(),h;if((h=H())==null||!h.viewerIsOwner){var O,T;h=(O=H())==null?void 0:(T=O.pollChoiceConfigs)==null?void 0:T[B];if(T=(h==null?0:h.renderer)?_.L(h.renderer,NTL):void 0){var m;O=((m=d())==null?void 0:m.selectedOptionId)!==B;var J;if(m=(J=O?T.selectedPollCommand:T.deselectedPollCommand)==null?void 0:J.innertubeCommand){W.resolveCommand(m);var g,v;_.FI().dispatch(_.kH("postPollStateEntity",((g=d())==null?void 0:g.key)||"",{key:((v=d())==null?void 0:v.key)||"",selectedOptionId:O?
B:-1,voted:O}))}}}})},_.x(e0_,{data:z,
index:u,selectedChoice:function(){var B,h;return((B=d())==null?0:B.voted)?(h=d())==null?void 0:h.selectedOptionId:void 0}}))}),_.x("div",{class:"ytOverlayPollStickerVoteCount"},function(){var z,u;
return((z=d())==null?0:z.voted)&&((u=d())==null?void 0:u.selectedOptionId)!==-1?H().postVoteCountText:H().preVoteCountText}))))},"Hk");_.Sw(_.c(function(A){var H=A.data;A=_.be(function(){var k;return _.b("enable_shorts_poll_stickers_web")?(((k=H())==null?void 0:k.stickers)||[]).filter(function(d){return d.pollSticker}):[]},void 0,"Cflxwb");
return _.x("yt-stickers-layer",null,_.x(_.Ix,{each:A},function(k){return _.x(x5L,{data:k.pollSticker,enableDebuggingFeatures:function(){var d;return(d=H())==null?void 0:d.enableDebuggingFeatures}})}))},"Ik"),"yt-stickers-layer",{props:{data:_.Ih}});var It=function(){var A=_.a.apply(this,arguments)||this;A.showScrubber=!1;A.isWatchWhileMode=!1;A.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");A.enablePollStickers=_.b("enable_shorts_poll_stickers_web");A.anchoredPanelActive=!1;A.enableLivingroomLayout=_.b("reels_enable_livingroom_layout");A.enablePlayerMetadataContainer=_.b("reels_web_enable_metadata_container");A.enableSqueezebackPanels=_.b("web_shorts_enable_squeezeback_panels");A.useAspectRatio=_.b("web_use_aspect_ratio");A.isSqueezebackActive=
!1;A.smallScreenSqueezeback=!1;A.isPlayerStarted=!1;A.overlayDensity=0;A.extractOverlay=!1;A.extractActionBar=!1;A.isOverlay=!1;A.isImmersive=!1;A.isImmersiveHorizontal=!1;A.isFullscreen=!1;A.onWindowResized=function(){var H;A.set("isImmersive",((H=window.getComputedStyle(A.hostElement))==null?void 0:H.getPropertyValue("--immersive-mode-on"))==="1");A.set("isImmersiveHorizontal",A.isImmersive&&A.enableLivingroomLayout&&!A.isWatchWhileMode)};
return A};
_.I(It,_.a);_.q=It.prototype;_.q.updateIsOverlay=function(A){this.isOverlay=A.detail.value};
_.q.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.q.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.q.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.q.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.q.onOverlayDensityChange=function(){var A=_.Va(this.hostElement).querySelector("ytd-info-panel-container-renderer");A&&(A.set("extractOverlay",this.extractOverlay),A.set("roundedContainer",this.extractOverlay))};
_.q.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.q.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.q.ready=function(){(_.b("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"))&&(!_.b("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.k6("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.k6("reels_action_justified_content")||"flex-start")};
_.q.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}}};
_.q.setFakeLoadingButtons=function(){_.b("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.$r("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.$r("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.$r("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.$r("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.$r("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()};
_.q.setEmptyOverlayMetadata=function(){_.b("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}))};
_.nP.Object.defineProperties(It.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.infoPanel)}}});
It.prototype.onOverlayDensityChange=It.prototype.onOverlayDensityChange;It.prototype.onIsActiveChanged=It.prototype.onIsActiveChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],It.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],It.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],It.prototype,"ytdReduxBehavior",void 0);
_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],It.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],It.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],It.prototype,"isActive",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],It.prototype,"hidden",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],It.prototype,"useShortsIcon",void 0);
_.E([_.C({value:"left"}),_.l("design:type",String)],It.prototype,"buttonTooltipPosition",void 0);_.E([_.C({value:_.b("reels_enable_livingroom_layout")?"top":"left"}),_.l("design:type",String)],It.prototype,"likeButtonTooltipPosition",void 0);_.E([_.C({value:"none"}),_.l("design:type",String)],It.prototype,"textTransform",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"showScrubber",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"isWatchWhileMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.infoPanel"),_.l("design:type",Object),_.l("design:paramtypes",[])],It.prototype,"hasInfoPanel",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"enableAnchoredPanel",void 0);_.E([_.C(),_.l("design:type",Object)],It.prototype,"enablePollStickers",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"anchoredPanelActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"enableLivingroomLayout",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],It.prototype,"enablePlayerMetadataContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"enableSqueezebackPanels",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"useAspectRatio",void 0);_.E([_.C({selector:_.BiI,reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"isSqueezebackActive",void 0);_.E([_.C({selector:Om1,reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"smallScreenSqueezeback",void 0);_.E([_.C({selector:RFM}),_.l("design:type",Object)],It.prototype,"isPlayerStarted",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"overlayDensity",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"extractOverlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"extractActionBar",void 0);_.E([_.C(),_.l("design:type",Object)],It.prototype,"isOverlay",void 0);_.E([_.C(),_.l("design:type",Object)],It.prototype,"isImmersive",void 0);
_.E([_.C(),_.l("design:type",Object)],It.prototype,"isImmersiveHorizontal",void 0);_.E([_.C({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.l("design:type",Boolean)],It.prototype,"isShortsImmersive",void 0);_.E([_.C({computed:"computeButtonOverride(extractActionBar)"}),_.l("design:type",Object)],It.prototype,"buttonOverride",void 0);
_.E([_.C({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.l("design:type",Object)],It.prototype,"actionBarButtonOverride",void 0);_.E([_.C({selector:_.VP,reflectToAttribute:!0}),_.l("design:type",Object)],It.prototype,"isFullscreen",void 0);_.E([_.fF("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],It.prototype,"onIsActiveChanged",null);
_.E([_.fF("extractOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],It.prototype,"onOverlayDensityChange",null);_.E([_.O6({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],It);
_.Q(It,"ytd-reel-player-overlay-renderer",function(){if(z0i!==void 0)return z0i;var A=document.createElement("template");_.Y(A,'\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]]" 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="[[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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return z0i=A},{mode:1});var iyi;var YP=function(){var A=_.a.apply(this,arguments)||this;A.videoDuration=0;A.playedTime=0;A.isActive=!1;A.JSC$22087_playerEvents=new Map;return A};
_.I(YP,_.a);_.q=YP.prototype;_.q.created=function(){this.JSC$22087_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22087_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.q.attached=function(){this.getPlayerAndInitializeListeners()};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22087_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.nF(this,this.onPageChanged))};
_.q.getPlayerAndInitializeListeners=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return H=_.Kj(),H?k.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.nF(A,A.onPageChanged)),k.jumpTo(0));A.player=k.yieldResult;A.initializePlayerListeners();_.EN(k)})};
_.q.onPageChanged=function(A){var H=this;return _.e(function(k){if(k.nextAddress==1)return A.detail.newPageType!=="ytd-shorts"?k.return():k.yield(_.a9().getPlayerPromise(),2);H.player=k.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.nF(H,H.onPageChanged));_.EN(k)})};
_.q.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22087_playerEvents)};
_.q.onVideoDataChange=function(A){var H=this;return _.e(function(k){if(!H.player||A.type!=="newdata")return k.return();H.videoDuration=_.b("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(A.playertype).seekableEnd:H.player.getDuration(A.playertype);H.playedTime=0;_.EN(k)})};
_.q.onVideoProgress=function(A){var H=this,k,d;return _.e(function(W){if(!H.player)return W.return();k=H.player.getPresentingPlayerType();d=H.player.getPlayerState();H.videoDuration=_.b("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(k).seekableEnd:H.player.getDuration(k);H.playedTime=d===0?H.videoDuration:A;_.EN(W)})};
_.q.getPercentPlayed=function(A,H){return A?_.Py(H/A,0,1):0};
_.nP.Object.defineProperties(YP.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 A="";return A=this.videoDuration&&this.playedTime?A+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):A+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],YP.prototype,"componentBehavior",void 0);_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],YP.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],YP.prototype,"player",void 0);_.E([_.C(),_.l("design:type",Object)],YP.prototype,"videoDuration",void 0);_.E([_.C(),_.l("design:type",Object)],YP.prototype,"playedTime",void 0);_.E([_.C(),_.l("design:type",Object)],YP.prototype,"isActive",void 0);
_.E([_.G("videoDuration","playedTime"),_.l("design:type",Number),_.l("design:paramtypes",[])],YP.prototype,"percentPlayed",null);_.E([_.G("videoDuration","playedTime"),_.l("design:type",Object),_.l("design:paramtypes",[])],YP.prototype,"percentPlayedStyle",null);_.E([_.G("videoDuration","isActive"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],YP.prototype,"hideProgressBar",null);
_.Q(YP,"ytd-progress-bar-line",function(){if(iyi===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);iyi=A}A=iyi;return A},{mode:2});var h0R;_.Sw(sjB,"ytm-closed-captioning-button",{props:{captionIconType:_.Ih,onClick:_.Fc,ariaLabel:_.Ih,ariaPressed:_.Ih,isOverlay:_.Fc}});_.Sw(_.uWL,"volume-controls",{props:{orientation:_.Ih,playerApi:_.Ih}});var Ps=function(){var A=_.a.apply(this,arguments)||this;A.playerState=null;A.isMuted=!1;A.volumeControlsOrientationState="horizontal_right";A.isOverlay=!0;A.isAdsOverlay=!1;A.captionIconType=-1;A.ariaLabel="";A.overlayDensity=0;A.JSC$22090_playerEvents=new Map;A.onClosedCaptionsButtonClick=function(){A.player&&LjI(A.player)&&(A.player.toggleSubtitles(),A.updateCaptionIconType())};
return A};
_.I(Ps,_.a);_.q=Ps.prototype;_.q.created=function(){this.JSC$22090_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22090_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.JSC$22090_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.q.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.t8(28662);this.playPauseButtonClientVE=_.t8(36842);this.fullscreenButtonToggleOffClientVE=_.t8(222256);this.fullscreenButtonToggleOnClientVE=_.t8(222257);var A=_.hx(),H=_.ii();A&&H&&(_.b("combine_ve_grafts")?(_.n4(_.A7(),this.muteButtonClientVE,H),_.n4(_.A7(),this.playPauseButtonClientVE,H)):_.ym(A,H,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22090_playerEvents),this.player=null)};
_.q.updateCaptionIconType=function(){var A=-1,H=void 0,k=_.$r("CLOSED_CAPTIONS_DISABLED");this.player&&LjI(this.player)&&(vuM(this.player)?(H=!0,k=_.$r("CLOSED_CAPTIONS_ON"),A=1):(H=!1,k=_.$r("CLOSED_CAPTIONS_OFF"),A=0));this.captionIconType=A;this.ariaPressedState=H;this.ariaLabel=k};
_.q.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.q.getPlayerAndInitializeListeners=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return H=_.Kj(),H?k.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.nF(A,A.onPageChanged)),k.jumpTo(0));A.player=k.yieldResult;A.initializePlayerListeners();_.EN(k)})};
_.q.onPageChanged=function(A){var H=this;return _.e(function(k){if(k.nextAddress==1)return A.detail.newPageType!=="ytd-shorts"?k.return():k.yield(_.a9().getPlayerPromise(),2);H.player=k.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.nF(H,H.onPageChanged));_.EN(k)})};
_.q.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22090_playerEvents);this.updateCaptionIconType()};
_.q.onPlayerStateChange=function(A){this.playerState=A};
_.q.onPlayerVolumeChange=function(A){this.isMuted=A.muted};
_.q.onPlayPauseButtonClick=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(_.a9().getPlayerPromise(),2);H=d.yieldResult;(k=_.hx())&&A.playPauseButtonClientVE&&_.P0(k,A.playPauseButtonClientVE);H.getPlayerState()!==1?H.playVideo():H.pauseVideo();_.EN(d)})};
_.q.computePlayPauseIcon=function(A){return A===2||A===-1||A===5?"PLAY_ARROW_FILLED":"PAUSE_FILLED"};
_.q.computeFullscreenLabel=function(A){return A?_.$r("FULLSCREEN_EXIT_LABEL"):_.$r("FULLSCREEN_ENTER_LABEL")};
_.q.computePlayPauseLabel=function(A){return A===1||A===3?_.$r("PLAYER_LABEL_PAUSE"):_.$r("PLAYER_LABEL_PLAY")};
_.q.onMuteButtonClick=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(_.a9().getPlayerPromise(),2);H=d.yieldResult;(k=_.hx())&&A.muteButtonClientVE&&_.P0(k,A.muteButtonClientVE);H.isMuted()?H.unMute(!0):H.mute(!0);_.EN(d)})};
_.q.computeMuteIcon=function(A){return A?"miniplayer:volume-off":"miniplayer:volume-up"};
_.q.computeMuteLabel=function(A){return A?_.$r("PLAYER_LABEL_UNMUTE"):_.$r("PLAYER_LABEL_MUTE")};
_.q.onFullscreenButtonClick=function(){var A=_.hx();A&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.P0(A,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.P0(A,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();CGe()};
_.nP.Object.defineProperties(Ps.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var A=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(){A.onPlayPauseButtonClick()},
disableBackdropFilter:!0,customColors:{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:!0,customColors:{backgroundColor:"transparent"}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"player_full_exit_alt":"player_full_enter_alt"}}});
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Ps.prototype,"componentBehavior",void 0);_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],Ps.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Ps.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"player",void 0);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"playerState",void 0);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"isMuted",void 0);
_.E([_.C({computed:"computePlayPauseIcon(playerState)"}),_.l("design:type",String)],Ps.prototype,"playPauseIcon",void 0);_.E([_.C({computed:"computeMuteIcon(isMuted)"}),_.l("design:type",String)],Ps.prototype,"muteIcon",void 0);_.E([_.C({selector:_.VP}),_.l("design:type",Boolean)],Ps.prototype,"isFullscreen",void 0);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"volumeControlsOrientationState",void 0);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"isOverlay",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ps.prototype,"isAdsOverlay",void 0);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"captionIconType",void 0);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"ariaLabel",void 0);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"ariaPressedState",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Ps.prototype,"overlayDensity",void 0);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"data",void 0);
_.E([_.C({computed:"computeActionBarButtonOverride()"}),_.l("design:type",Object)],Ps.prototype,"actionBarButtonOverride",void 0);_.E([_.G("playerState"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ps.prototype,"playPauseButtonData",null);_.E([_.G("isFullscreen"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ps.prototype,"fullscreenButtonData",null);_.E([_.C(),_.l("design:type",Object)],Ps.prototype,"onClosedCaptionsButtonClick",void 0);
_.E([_.G("isFullscreen"),_.l("design:type",String),_.l("design:paramtypes",[])],Ps.prototype,"fullscreenIcon",null);
_.Q(Ps,"ytd-shorts-player-controls",function(){if(h0R===void 0){var A=document.createElement("template");_.Y(A,'\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<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  <volume-controls orientation="[[volumeControlsOrientationState]]" player-api="[[player]]" class="style-scope ytd-shorts-player-controls"></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-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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);h0R=A}A=h0R;return A},{mode:1});var OyR;_.Sw(_.P1Q,"yt-interstitial-view-model",{props:{data:_.Ih}});var R0i=_.c(function(A){var H=A.data;return _.x("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.x("h1",{class:"reelWatchBreakViewModelHostTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x("h2",{class:"reelWatchBreakViewModelHostBody"},_.x(_.j$,{text:function(){return H().body},
isOverlay:!0})),_.x(_.HG,{data:function(){return H().buttons}},{buttonViewModel:function(k,d){return _.x("div",{class:function(){return d()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.x(_.U7,{data:k.data}))}}))},"Jk");
R0i.idomCompat=!0;_.Sw(R0i,"reel-watch-break-view-model",{props:{data:_.Ih}});var GS=function(){return _.a.apply(this,arguments)||this};
_.I(GS,_.a);GS.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}}};
_.nP.Object.defineProperties(GS.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.L((A=this.data)==null?void 0:A.renderer,GqM)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.L((A=this.data)==null?void 0:A.renderer,Yq_)}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],GS.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],GS.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],GS.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data.renderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GS.prototype,"isSurvey",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.renderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GS.prototype,"isInterstitialViewModel",null);_.E([_.O6({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],GS);
_.Q(GS,"ytd-reel-non-video-content-renderer",function(){if(OyR!==void 0)return OyR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return OyR=A},{mode:2});var Tpe;_.Sw(_.rbi,"desktop-shorts-player-controls",{});var Fi=function(){var A=_.a.apply(this,arguments)||this;A.isPlayerPaused=!1;A.isPlayerStarted=!1;A.showPlayerControls=!1;A.showScrubber=!1;A.autoHideJobId=0;A.overlayType=_.k6("web_shorts_expanded_overlay_type");A.panelData=void 0;A.isWatchWhileMode=!1;A.hasError=!1;A.panelShowDelayMs=1;A.scrubberComponent={};A.isFullscreen=!1;A.shouldHideOverlay=!1;A.enableAnchoredPanel=_.b("desktop_shorts_v2_anchored_panel");A.enablePersistentAnchoredPanel=_.b("desktop_shorts_v2_persistent_anchored_panel");A.hideWatchWhilePanel=
_.b("web_shorts_hide_watch_while_panel");A.useAspectRatio=_.b("web_use_aspect_ratio");A.isPersistentPanelActive=!1;A.anchoredPanelActive=!1;A.isShortsPipActive=!1;A.smallScreenSqueezeback=!1;A.overlayDensity=0;A.extractOverlay=!1;A.extractActionBar=!1;A.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};A.onWindowResized=function(){_.vW(A,"calculateOverlayDensity",function(){A.calculateOverlayDensity()},
100)};
return A};
_.I(Fi,_.a);_.q=Fi.prototype;_.q.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.q.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.q.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var A=_.wj().resolve(_.eZ);this.isWatchWhileMode&&_.IE.addJob(function(){A.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.q.handleShowReelsCommentsOverlayCommand=function(A){A=_.L(A,rmM);this.isActive&&(A==null?0:A.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))};
_.q.updateEngagementPanelVisibility=function(A,H){A&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:H?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:A}})};
_.q.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.q.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.wj().resolve(_.dz).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.q.handleWatchWhilePanelScrimClick=function(){var A=_.wj().resolve(_.eZ);this.activeWatchWhilePanel&&(A.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.q.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.q.configureRendererStamper=function(){var A;return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},renderPriority: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:(A=ygB[_.k6("web_shorts_overlay_render_priority")])!=null?A:0}}};
_.q.handlePlayerClick=function(A){var H=this,k,d;if((d=(k=window).matchMedia)!=null&&d.call(k,"(any-pointer: coarse)").matches||!A)this.showPlayerControls=!0,_.IE.cancelJob(this.autoHideJobId),this.autoHideJobId=_.IE.addJob(function(){H.showPlayerControls=!1},0,4E3)};
_.q.isFirstReel=function(){return this.index===0};
_.q.handleMouseenter=function(){_.IE.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.q.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.q.handleScrubberEnter=function(){this.showScrubber=!0};
_.q.handleScrubberLeave=function(){this.showScrubber=!1};
_.q.maybeLogNonDefaultAspectRatio=function(){var A;(A=this.data)!=null&&A.thumbnail&&this.isActive&&.5625!==EB_(this.data.thumbnail)&&_.ZcI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.q.calculateOverlayDensity=function(){var A=document.querySelector("#shorts-container");if(A){var H=!1,k,d=this.playerContainer.offsetWidth,W=this.playerContainer.offsetHeight;A=A.offsetWidth/2-d/2;A>=368?(A=1,H=k=!0):A>=72?(A=0,k=!0):(A=2,k=!1);d>=600&&W>=840?A=1:window.innerWidth<=599&&(A=2,k=H=!1);this.isPersistentPanelActive&&(A=0,H=!1);this.extractActionBar=k;this.overlayDensity=A;this.extractOverlay=H;var z;(z=this.onOverlayDensityChanged)==null||z.call(this,this.index,this.overlayDensity,
this.extractOverlay,this.extractActionBar)}};
_.q.onOverlayDensityChange=function(){var A;(A=this.onOverlayDensityChanged)==null||A.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(A=_.Va(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))A.set("overlayDensity",this.overlayDensity),A.set("extractOverlay",this.extractOverlay),A.set("extractActionBar",this.extractActionBar);if(A=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))A.overlayDensity=this.overlayDensity,A.extractOverlay=
this.extractOverlay,A.extractActionBar=this.extractActionBar};
_.q.isVideoContent=function(A){_.wj().resolve(_.dz);return!!_.L(A,_.A1)};
_.q.isNonVideoContent=function(A){_.wj().resolve(_.dz);return!!_.L(A,_.m1)};
_.q.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.nP.Object.defineProperties(Fi.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&this.isPlayerStarted}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var A;return!this.isActive||!this.isPlayerStarted||(A=this.data)!=null&&A.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?0:A.command)&&this.isVideoContent(this.data.command)){var H,k;if(((H=this.data)==null?0:H.adsOverlay)&&Object.keys((k=this.data)==null?void 0:k.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var d,W;if(((d=this.data)==null?0:d.reelPlayerOverlayRenderer)&&Object.keys((W=this.data)==null?void 0:W.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Fi.prototype.onOverlayDensityChange=Fi.prototype.onOverlayDensityChange;Fi.prototype.calculateOverlayDensity=Fi.prototype.calculateOverlayDensity;Fi.prototype.maybeLogNonDefaultAspectRatio=Fi.prototype.maybeLogNonDefaultAspectRatio;Fi.prototype.onEngagementPanelsChanged=Fi.prototype.onEngagementPanelsChanged;Fi.prototype.onScrubberDataChange=Fi.prototype.onScrubberDataChange;Fi.prototype.updateShouldHideOverlay=Fi.prototype.updateShouldHideOverlay;
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Fi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Fi.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],Fi.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Fi.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],Fi.prototype,"index",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fi.prototype,"isActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fi.prototype,"isHiddenInDom",void 0);_.E([_.C(),_.l("design:type",Object)],Fi.prototype,"isPlayerPaused",void 0);_.E([_.C({selector:RFM}),_.l("design:type",Object)],Fi.prototype,"isPlayerStarted",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"showPlayerControls",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"showScrubber",void 0);_.E([_.C(),_.l("design:type",Object)],Fi.prototype,"autoHideJobId",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"overlayType",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Fi.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Fi.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],Fi.prototype,"watchWhileEngagementPanels",void 0);_.E([_.C(),_.l("design:type",Object)],Fi.prototype,"panelData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"isWatchWhileMode",void 0);_.E([_.C(),_.l("design:type",String)],Fi.prototype,"activeWatchWhilePanel",void 0);_.E([_.C(),_.l("design:type",Object)],Fi.prototype,"hasError",void 0);_.E([_.C(),_.l("design:type",Object)],Fi.prototype,"panelShowDelayMs",void 0);
_.E([_.C(),_.l("design:type",Object)],Fi.prototype,"scrubberComponent",void 0);_.E([_.C({selector:_.VP,reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"isFullscreen",void 0);_.E([_.C(),_.l("design:type",Object)],Fi.prototype,"shouldHideOverlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"enableAnchoredPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"enablePersistentAnchoredPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"hideWatchWhilePanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"useAspectRatio",void 0);_.E([_.C({selector:_.BiI,reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"isPersistentPanelActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"anchoredPanelActive",void 0);
_.E([_.C({selector:_.EF,reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"isShortsPipActive",void 0);_.E([_.C({selector:Om1,reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"smallScreenSqueezeback",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data.adsOverlay"),_.l("design:type",Object),_.l("design:paramtypes",[])],Fi.prototype,"isAdsOverlay",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"overlayDensity",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"extractOverlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Fi.prototype,"extractActionBar",void 0);_.E([_.C(),_.l("design:type",Function)],Fi.prototype,"onOverlayDensityChanged",void 0);_.E([_.C(),_.G("isActive","hasError","isPlayerStarted"),_.l("design:type",Object),_.l("design:paramtypes",[])],Fi.prototype,"shouldRenderPlayerElements",null);
_.E([_.C(),_.G("isActive","isWatchWhileMode"),_.l("design:type",Object),_.l("design:paramtypes",[])],Fi.prototype,"watchWhileOrPersistentActive",null);_.E([_.fF("isActive","hasError","showingExpandedOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fi.prototype,"updateShouldHideOverlay",null);
_.E([_.C({reflectToAttribute:!0}),_.G("isActive","isPlayerStarted","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Fi.prototype,"shouldRenderScrubber",null);_.E([_.fF("shouldRenderScrubber"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fi.prototype,"onScrubberDataChange",null);_.E([_.G("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],Fi.prototype,"overlayComponent",null);
_.E([_.fF("watchWhileEngagementPanels"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fi.prototype,"onEngagementPanelsChanged",null);_.E([_.ol("#player-container"),_.l("design:type",HTMLElement)],Fi.prototype,"playerContainer",void 0);_.E([_.ol("#cinematic-container"),_.l("design:type",HTMLElement)],Fi.prototype,"cinematicContainer",void 0);
_.E([_.fF("isPersistentPanelActive","data.thumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fi.prototype,"maybeLogNonDefaultAspectRatio",null);_.E([_.fF("isPersistentPanelActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fi.prototype,"calculateOverlayDensity",null);
_.E([_.fF("overlayDensity","extractOverlay","extractActionBar"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fi.prototype,"onOverlayDensityChange",null);_.E([_.O6({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Fi);
_.Q(Fi,"ytd-reel-video-renderer",function(){if(Tpe!==void 0)return Tpe;var A=document.createElement("template");_.Y(A,'\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 id="video-filtering-overlay-container" class="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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Tpe=A},{mode:2});var Xi=function(){var A=_.a.apply(this,arguments)||this;A.isPreviousPageShorts=!1;A.index=0;A.delayedActiveIndex=0;A.playablePreviousIndex=null;A.isPlayerPaused=!1;A.isPlayerStarted=!1;A.intersectionObserverThreshold=.6;A.fitToVisibleBounds=!1;A.pageSubtype="shorts";A.enablePreviousContinuation=_.b("shorts_in_playlists_web");A.shortsPipEnabled=_.b("web_shorts_pip");A.isDark=document.documentElement.hasAttribute("dark");A.shortsViewTransitions=_.b("web_shorts_view_transitions");A.isFullscreen=!1;A.isShortsPipActive=
!1;A.buttonOverride={iconPosition:"icon-only",size:"XL"};A.anchoredPanelActive=!1;A.isActive=!1;A.smallScreenPersistentPanel=!1;A.isPersistentPanelActive=!1;A.smallScreenSqueezeBack=!1;A.extractOverlay=!1;A.useAspectRatio=_.b("web_use_aspect_ratio");A.continuationRequestPending=!1;A.carouselContainers=[];A.isShortsInitialized=!1;A.hasDataUpdated=!1;A.playerInPosition=!1;A.hidePreviousButtonImmediately=!1;A.showPreviousButtonImmediately=!1;A.endOfNextContinuation=!1;A.currentPlayerIndex=0;A.nextReelVe=
_.t8(56921);A.prevReelVe=_.t8(56922);A.loopToggleOffVe=_.t8(198013);A.loopToggleOnVe=_.t8(198014);A.ambientModeToggleVe=_.t8(227860);A.reelPlayerPausedStateRendererVe=_.t8(141313);A.storedPlaybackSpeed=null;A.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"};A.onOverlayDensityChanged=
function(H,k,d,W){H=A.getActiveReelVideo(H);A.extractOverlay=!!d;H==null||H.setAttribute("overlay-density",String(k));d===void 0||H!=null&&H.toggleAttribute("extract-overlay",d);W===void 0||H!=null&&H.toggleAttribute("extract-action-bar",W)};
return A};
_.I(Xi,_.a);_.q=Xi.prototype;_.q.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.q.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.q.onResize=function(){var A=_.F3(),H=A.dispatch,k=this.calculateIsSmallWidth();H.call(A,_.p8({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:k}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.q.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}}};
_.q.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var A=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,H=A,k=0;A<250&&(H=A+this.shortsInnerContainer.clientWidth,k=24);_.NH(this.hostElement,{"--ytd-shorts-header-width":H+"px","--ytd-shorts-top-spacing":k+"px"})}};
_.q.isFirstShorts=function(A){return A?this.index===-A.length:this.index===0};
_.q.isActiveReel=function(A,H,k){k&&(H=this.calculatePrevIndex(H,k));return A===H};
_.q.onFullscreenChange=function(){_.b("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.wj().resolve(_.L6).close(!0))};
_.q.engagementPanelsChanged=function(){var A;this.watchWhileEngagementPanels=(A=this.data)==null?void 0:A.engagementPanels};
_.q.unregisterPanels=function(){var A=_.wj().resolve(_.eZ);if(this.watchWhileEngagementPanels)for(var H=_.r(this.watchWhileEngagementPanels),k=H.next();!k.done;k=H.next()){var d=k.value,W=void 0,z=void 0;k=(W=d.engagementPanelSectionListRenderer)==null?void 0:(z=W.identifier)==null?void 0:z.tag;d=this.getPanelIdentifier(d.engagementPanelSectionListRenderer);A&&(k&&A.panelMap.delete(k),d&&_.b("web_shorts_panel_caching_bugfix")&&(W=k=void 0,(W=(k=A).unregisterPanelContent)==null||W.call(k,d)))}};
_.q.isVideoContent=function(A){return this.isVideoContentCommand(A==null?void 0:A.command)};
_.q.getActiveReelVideo=function(A){return _.Va(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+A+'"]')};
_.q.calculatePrevIndex=function(A,H){return H?A-((H==null?void 0:H.length)||0):-1};
_.q.onKeydown=function(A){var H=_.F_(A)||[];if(!q8_(H))if(A.code==="ArrowUp")A.preventDefault(),this.handlePrevButtonClick();else if(A.code==="ArrowDown")A.preventDefault(),this.handleNextButtonClick();else if(A.code==="KeyM")this.toggleMuteUnmuteVideo();else if(A.code==="KeyK"||A.code==="Space")this.togglePlayPauseVideo();else if((A.code==="KeyA"||A.code==="ArrowLeft")&&_.b("web_shorts_keyboard_enable_seek_shortcuts")){var k;(k=this.player)==null||k.seekBy(-5)}else if((A.code==="KeyD"||A.code===
"ArrowRight")&&_.b("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var d;(d=this.player)==null||d.seekBy(5)}};
_.q.onServiceRequestCompleted=function(A,H){A=H.data;A.continuationEndpoint&&A.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:A.entries,continuationEndpoint:A.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=A):A.prevContinuationEndpoint&&A.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:A.prevEntries,prevContinuationEndpoint:A.prevContinuationEndpoint}}):
this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.q.handleEngagementPanelVisibilityChanged=function(A,H){var k=_.wj().resolve(_.eZ);if(A&&k){var d=this.getPanelIdentifier(A);if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==d){k.hidePanel({identifier:this.activePanel});var W;this.activePanel=((W=A.identifier)==null?void 0:W.tag)||A.panelIdentifier}else this.isPersistentPanelActive=!0,_.F3().dispatch(F6G(!0)),this.anchoredPanelActive=!0,this.activePanel=d;else H==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===d&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.F3().dispatch(F6G(!1)))}};
_.q.handlePanelScrimClick=function(){var A=_.wj().resolve(_.eZ);this.activePanel&&(A.hidePanel({identifier:this.activePanel}),_.F3().dispatch(F6G(!1)))};
_.q.getShortsLoopSetting=function(){var A,H,k,d,W;return _.e(function(z){switch(z.nextAddress){case 1:return _.b("kevlar_shorts_auto_advance")?z.yield(_.ed.getInstance(),2):z.return(!0);case 2:return(A=z.yieldResult)?z.yield(A.get("sfvles"),3):z.return(!0);case 3:return k=(H=z.yieldResult)!=null?H:!1,z.yield(A.get("sfvle"),4);case 4:return W=(d=z.yieldResult)!=null?d:!0,k?z.return(W):z.return(!0)}})};
_.q.handleSignalActionToggleLoopShortsOff=function(){var A=this,H,k,d;return _.e(function(W){switch(W.nextAddress){case 1:if(!A.player)return W.return();A.player.setLoopVideo(!1);H=_.A7();_.f4(H,A.loopToggleOffVe);return W.yield(_.ed.getInstance(),2);case 2:return(k=W.yieldResult)?W.yield(k.set("sfvle",!1),3):W.return();case 3:return W.yield(k.set("sfvles",!0),4);case 4:d=_.sH(),_.kB(0,203,!1),_.kB(0,204,!0),d.save(),_.EN(W)}})};
_.q.handleSignalActionToggleLoopShortsOn=function(){var A=this,H,k,d;return _.e(function(W){switch(W.nextAddress){case 1:if(!A.player)return W.return();A.player.setLoopVideo(!0);H=_.A7();_.f4(H,A.loopToggleOnVe);return W.yield(_.ed.getInstance(),2);case 2:return(k=W.yieldResult)?W.yield(k.set("sfvle",!0),3):W.return();case 3:return W.yield(k.set("sfvles",!0),4);case 4:d=_.sH(),_.kB(0,203,!0),_.kB(0,204,!0),d.save(),_.EN(W)}})};
_.q.handleSignalActionToggleCinematicShortsOn=function(){Pk_(!0);var A;(A=this.JSC$22114_cinematicController)==null||bzL(A,!0);_.f4(_.A7(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.q.handleSignalActionToggleCinematicShortsOff=function(){Pk_(!1);var A;(A=this.JSC$22114_cinematicController)==null||bzL(A,!1);_.f4(_.A7(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.q.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.q.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.q.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var A=this.overlayContainer.querySelector("#experiment-overlay");A&&_.IE.addLowPriorityJob(function(){A.style.display="unset"},100)}else if(this.overlayContainer){var H;
((H=this.playerElement.getPlayer())==null?void 0:H.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.q.getCurrentShort=function(){if(this.currentEndpoint){var A=this.currentEndpoint;if(this.isNonVideoContentCommand(A)){var H=_.L(A,_.m1);return{reelNonVideoContentRenderer:_.L(H==null?void 0:H.renderer,_.G21),command:A}}if(this.data){var k;H=(k=_.L(this.currentEndpoint,_.A1))==null?void 0:k.thumbnail;var d;k=(d=this.data.overlay)==null?void 0:d.reelPlayerOverlayRenderer;_.wj().resolve(_.dz);A=this.data;var W,z;d=(W=A.overlay)==null?void 0:(z=W.shortsAdsRenderer)==null?void 0:z.adSlots;if(d!==void 0)d.length===
0?(_.I5("Shorts ads returned no ad slots."),A=void 0):(d.length>1&&_.I5("Shorts ads has more than one ad slots."),A=_.L(d[0],_.WOw));else{var u,B;A=_.L((u=A.overlay)==null?void 0:(B=u.shortsAdsRenderer)==null?void 0:B.overlay,_.WOw)}u=A;A=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.L(this.currentEndpoint,_.A1),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var h;return{reelPlayerOverlayRenderer:k,thumbnail:H,command:A,adsOverlay:u,
videoId:(h=_.L(this.currentEndpoint,_.A1))==null?void 0:h.videoId}}}};
_.q.created=function(){var A=this;this.scrollToVideoThrottle=new _.Nt(function(H,k){k=k===void 0?"smooth":k;var d;(d=A.getActiveReelVideo(H))==null||d.scrollIntoView({behavior:k,block:"nearest",inline:"center"})},500,this);
this.shortsController=_.wj().resolve(_.dz);this.maybeCreateIntersectionObserver()};
_.q.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.q.attached=function(){var A=this;_.wj().resolve(_.dz).registerRootElement(this);this.pageScrollElement=_.Va(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.nF(this,this.processResetAction));_.b("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){A.maybeCreateIntersectionObserver();A.scrollToVideoThrottle.fire(A.activeIndex,"instant");A.shortsContainer.style.overflowY=
"scroll"}))};
_.q.calculateSqueezebackPanelSize=function(){var A=this,H=window.innerWidth-456-(window.innerHeight-106)*.5625;_.IE.addLowPriorityJob(function(){H<360?(A.hostElement.style.setProperty("--anchored-panel-width","480px"),_.F3().dispatch(XDi(!0))):(A.hostElement.style.setProperty("--anchored-panel-width",Math.min(H,480)+"px"),_.F3().dispatch(XDi(!1)))})};
_.q.detached=function(){var A=_.wj().resolve(_.dz);A.rootElement=void 0;var H;(H=A.unsubscribeFromStore)==null||H.call(A);A.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.nF(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.q.onResizeFinished=function(A,H){var k=this,d=new ResizeObserver(function(){k.shortsContainer.style.overflowY="hidden";_.IE.addLowPriorityJob(function(){H()},100)});
d.observe(A);return d};
_.q.resetDocumentScrollTop=function(){var A,H;if((A=document)==null?0:(H=A.scrollingElement)==null?0:H.scrollTop)document.scrollingElement.scrollTop=0};
_.q.loadPage_=function(A){var H=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),A){var k;if((k=_.L(this.currentEndpoint,_.A1))==null?0:k.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=A;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){H.isPlayerStarted&&
(H.handleOnPlaybackCommand(),H.afterPlayerStarted=function(){})};
this.registerPanel(A)}};
_.q.afterPlayerStarted=function(){};
_.q.handleOnPlaybackCommand=function(){if(_.b("web_shorts_comment_stickers")&&this.isPlayerStarted){var A,H=(A=_.L(this.currentEndpoint,_.A1))==null?void 0:A.onPlaybackCommand;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.q.maybeCreateIntersectionObserver=function(){var A=this,H=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==H){this.intersectionObserverThreshold=H;var k={rootMargin:"0px",threshold:H},d;(d=this.intersectionObserver)==null||d.disconnect();this.intersectionObserver=new IntersectionObserver(function(W){W=_.r(W);for(var z=W.next();!z.done;z=W.next())if(z=z.value,z.intersectionRatio>H){z=Number(z.target.id);if(isNaN(z))break;if(z===A.index)break;
_.wi8();A.loadVideo(z);_.TH("r_vtc")}},k);
this.observeShorts()}};
_.q.observeShorts=function(){var A,H,k=(((A=this.shortsProcessedPrevSequence)==null?void 0:A.length)||0)+(((H=this.shortsProcessedSequence)==null?void 0:H.length)||0);this.carouselContainers.length<k&&(this.carouselContainers=[].concat(_.fV(_.Va(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))));A=_.r(this.carouselContainers);for(H=A.next();!H.done;H=A.next())H=H.value,k=void 0,(k=this.intersectionObserver)==null||k.observe(H)};
_.q.initCsi=function(){uVL("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var A={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"}},H,k;if((H=this.playerData)==null?0:(k=H.cacheMetadata)==null?0:k.isCacheHit)A.isCacheHit=!0;var d;if(H=(d=_.L(this.currentEndpoint,_.A1))==null?void 0:
d.prefetchTaskId)A.prefetchInfo={taskId:H};_.xB(A)};
_.q.isAd=function(){var A,H;return!!((A=_.L(this.currentEndpoint,_.A1))==null?0:(H=A.adClientParams)==null?0:H.isAd)};
_.q.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.q.getPlayerContainer=function(){var A;return(A=_.Va(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:A.playerContainer};
_.q.onPlayerStateChange=function(A){var H=this;this.isPlayerPaused=A===2;A!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?A===1&&this.index===0&&(this.isPlayerStarted||_.F3().dispatch(D2R(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.F3().dispatch(D2R(!0)));this.player&&!this.player.getLoopVideo()&&_.IE.addLowPriorityJob(function(){H.getShortsLoopSetting().then(function(k){var d;(d=H.player)==null||d.setLoopVideo(k)})});
this.isPlayerPaused&&_.b("web_shorts_paused_state_logging")&&_.IN(_.hx(),[this.reelPlayerPausedStateRendererVe])};
_.q.isShortPlayable=function(){if(_.b("kevlar_playable_short_killswitch"))return!0;var A;return(A=this.playerData)!=null&&A.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.q.setNormalPlaybackSpeed=function(){var A=this,H,k;return _.e(function(d){if(d.nextAddress==1)return d.yield(A.getPlayer().getPlayerPromise(),2);H=d.yieldResult;k=H.getPlaybackRate();k!==1&&(A.storedPlaybackSpeed=k,H.setPlaybackRate(1));_.EN(d)})};
_.q.restorePlaybackSpeed=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1)return A.storedPlaybackSpeed===null?k.jumpTo(0):k.yield(A.getPlayer().getPlayerPromise(),3);H=k.yieldResult;H.setPlaybackRate(A.storedPlaybackSpeed);A.storedPlaybackSpeed=null;_.EN(k)})};
_.q.playerDataChanged=function(){var A=this,H,k,d,W,z,u,B,h,O;return _.e(function(T){if(T.nextAddress==1){H=A.getPlayer();(k=A.intersectionObserver)==null||k.disconnect();if(A.playerData){if(((d=A.playerData.videoDetails)==null?void 0:d.videoId)!==((W=H.getPlayer())==null?void 0:W.getVideoData().video_id)){z={};if(u=_.L(A.currentEndpoint,_.A1))z.watch_endpoint=u,u.endTimeSeconds&&(z.end=u.endTimeSeconds);H.loadVideoWithPlayerResponse(A.playerData,z)}}else return T.return();return A.player?T.jumpTo(2):
T.yield(H.getPlayerPromise(),3)}T.nextAddress!=2&&(A.player=T.yieldResult,A.JSC$22114_playerStateChangeListener=A.onPlayerStateChange.bind(A),A.player.addEventListener("onStateChange",A.JSC$22114_playerStateChangeListener),_.b("kevlar_client_enable_shorts_player_bootstrap")&&_.Pl(),A.scrollToVideoThrottle.fire(A.index),A.movePlayerToVideo(A.index),_.IE.addLowPriorityJob(function(){A.getShortsLoopSetting().then(function(m){var J;(J=A.player)==null||J.setLoopVideo(m)})}),_.jeJ.resolve(A.player),A.player.syncVolume(),
A.getPlayer().focusOnPlayer());
_.IE.addLowPriorityJob(function(){A.observeShorts()},100);
B=A.player.getPlayerState(A.player.getPresentingPlayerType());B!==1||A.isPlayerStarted||_.F3().dispatch(D2R(!0));A.updateBackNavContainerWidth();h=_.L(A.currentEndpoint,_.A1);((O=h)==null?0:O.startTimeSeconds)&&A.player.seekTo(h.startTimeSeconds);if(A.JSC$22114_cinematicController||A.cinematicsInitializeJobId)return T.return();A.cinematicsInitializeJobId=_.IE.addLowPriorityJob(function(){A.initCinematicController();A.cinematicsInitializeJobId=void 0});
_.EN(T)})};
_.q.onShortUndoDismiss=function(){var A=this,H=S4_().pop();H!==void 0&&(_.No(this,function(){A.showCardWithIndex(H)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.q.onShortsDismiss=function(A){if(A=A.detail.reelDismissalActionRenderer)(A=_.L(A.onDismissalCompletionRenderer,M6I))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:A}}}),this.scrollAndDismissCard()};
_.q.processReelNonVideoContentDismissalCommand=function(A){var H=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);A=_.L(A,qfB);this.activeDimissalTimeout=setTimeout(function(){H.scrollAndDismissCard()},Number(A==null?void 0:A.delayMs))};
_.q.scrollAndDismissCard=function(){var A=this,H=this.index;S4_().push(H);_.No(this,function(){var k=A.getPlayableNextIndex();k!==null&&(A.hideCardWithIndex(H),A.scrollToVideoThrottle.fire(k))})};
_.q.hideCardWithIndex=function(A){if(A=this.getActiveReelVideo(A))A.hidden=!0};
_.q.showCardWithIndex=function(A){if(A=this.getActiveReelVideo(A))A.hidden=!1};
_.q.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.q.activeChanged=function(A){_.F3().dispatch(_.p8({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:A}}));if(A)document.addEventListener("keydown",_.nF(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var H;(H=this.player)==null||H.sendAbandonmentPing()}var k;(k=this.player)==null||k.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.nF(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.q.graftClientVisualElements=function(){if(this.data){var A=_.A7();_.Lkp(A,_.MT({response:this.reelWatchSequenceResponse}));_.n4(A,this.nextReelVe);_.n4(A,this.prevReelVe);_.b("kevlar_shorts_auto_advance")&&(_.n4(A,this.loopToggleOffVe),_.n4(A,this.loopToggleOnVe));_.n4(A,this.ambientModeToggleVe);_.IN(_.hx(),[this.nextReelVe,this.prevReelVe]);_.b("web_shorts_paused_state_logging")&&_.n4(A,this.reelPlayerPausedStateRendererVe)}};
_.q.graftNvcRenderer=function(){var A,H,k,d,W=this.index<0?(A=this.shortsProcessedPrevSequence)==null?void 0:(H=A[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:H.command:(k=this.shortsProcessedSequence)==null?void 0:(d=k[this.index])==null?void 0:d.command;if(W&&this.isNonVideoContentCommand(W)){A=_.L(W,_.m1);var z,u;(A=(z=_.L(A==null?void 0:A.renderer,_.G21))==null?void 0:(u=z.loggingDirectives)==null?void 0:u.trackingParams)&&_.A7().graftServerVe(A)}};
_.q.setActiveIndex=function(){_.wj().resolve(_.dz).setActiveIndex(this.index)};
_.q.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.q.lazyUpdateMiniplayerData=function(){var A=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.IE.addLowPriorityJob(function(){A.updateMiniplayerData();A.updateMiniplayerDataJobId=void 0}))};
_.q.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.IE.cancelJob(this.updateMiniplayerDataJobId)};
_.q.updateMiniplayerData=function(){var A,H,k,d=_.wj().resolve(_.L6),W={shortsData:this.getCurrentShort(),previousButtonDisabled:!((A=this.prevButtonData)==null||!A.isDisabled),nextButtonDisabled:!((H=this.nextButtonData)==null||!H.isDisabled),playabilityStatus:(k=this.playerData)==null?void 0:k.playabilityStatus};_.S7(d,W)};
_.q.resetPlayerLocation=function(){var A=this.getPlayer();this.initialPlayerContainer&&A.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.q.movePlayerToVideo=function(A,H){var k=this;H=H===void 0?!0:H;var d=this.getActiveReelVideo(A),W=this.getPlayer();if(d){this.overlayContainer?d.appendChild(this.overlayContainer):(this.overlayContainer=_.Va(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,d.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||W.appendTo(this.overlayContainer.playerContainer,void 0,!0));var z;(z=this.player)==null||z.setSize(NaN,NaN);this.isActive||_.IE.addJob(function(){k.isActive=
!0},0);
W.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.b("reels_web_disable_rtr_tick")||_.b("reels_web_use_pbs_first_shorts")&&A===0||_.OH("r_tr");this.currentPlayerIndex=A;d.appendChild(this.errorScreenContainer);var u;(u=this.JSC$22114_cinematicController)==null||jK3(u)}else H?_.IE.addLowPriorityJob(function(){k.movePlayerToVideo(k.index,!1)}):Math.random()<=_.H5("web_shorts_error_logging_threshold")&&_.YJ(new _.Ti("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:H,
index:A}))};
_.q.getAspectRatio=function(A){return(A==null?0:A.thumbnail)&&EB_(A.thumbnail)?"--ytd-shorts-player-ratio: "+EB_(A.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.q.getBackgroundImage=function(A){if(A!=null&&A.thumbnail)return(A=_.K3(A.thumbnail.thumbnails))?'background-image:url("'+A+'");':"background-color:black;"};
_.q.getBackgroundImageUrl=function(A){if(A!=null&&A.thumbnail)return _.K3(A.thumbnail.thumbnails)};
_.q.onPersistentPanelActiveChanged=function(){var A,H=(A=_.L(this.currentEndpoint,_.A1))==null?void 0:A.thumbnail;if(H&&EB_(H)!==.5625){var k;(k=this.player)==null||k.setSize(NaN,NaN)}};
_.q.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.q.moveCinematicsToVideo=function(){var A=_.Va(this.hostElement).querySelector("ytd-reel-video-renderer");(A==null?0:A.cinematicContainer)&&A.cinematicContainer!==this.shortsCinematicContainer.parentElement&&A.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.q.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.q.updatePrevButtonData=function(){var A=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);A?this.prevButtonData=A=Object.assign({},A,{accessibility:{label:_.$r("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.$r("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=A=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.q.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.q.updateNextButtonData=function(){var A=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);A&&(this.nextButtonData=A=Object.assign({},A,{accessibility:{label:_.$r("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.$r("NEXT_VIDEO_LABEL")||""}))};
_.q.getPlayablePreviousIndex=function(){for(var A,H=this.index-1;H>=-(((A=this.prevShortsSequence)==null?void 0:A.length)||0);H--)if(!S4_().includes(H))return H;return null};
_.q.getIndexInSequence=function(A,H){return A.findIndex(function(k){var d;return((d=_.L(k.command,_.A1))==null?void 0:d.videoId)===H})};
_.q.handlePrevButtonClick=function(A){var H=this,k,d;return _.e(function(W){k=H.getPlayablePreviousIndex();if(k===null)return W.return();H.gestureType=((d=A)==null?void 0:d.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";k===0&&(H.hidePreviousButtonImmediately=!0);if(H.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){H.scrollToVideoThrottle.fire(k,"auto")}),W.return();
H.scrollToVideoThrottle.fire(k);_.EN(W)})};
_.q.getPlayableNextIndex=function(){for(var A,H=this.index+1;H<(((A=this.shortsProcessedSequence)==null?void 0:A.length)||0);H++)if(!S4_().includes(H))return H;return null};
_.q.handleNextButtonClick=function(A,H){var k=this,d,W;return _.e(function(z){d=k.getPlayableNextIndex();if(d===null)return z.return();d===1&&(k.showPreviousButtonImmediately=!0);k.gestureType=((W=A)==null?void 0:W.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";H&&(k.gestureType=H);if(k.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){k.scrollToVideoThrottle.fire(d,"auto")}),z.return();
k.scrollToVideoThrottle.fire(d);_.EN(z)})};
_.q.handleReelNavigateCommand=function(A,H,k){(A=_.L(A,znL))&&H&&A.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(k)};
_.q.loadVideo=function(A,H){var k=this;H=H===void 0?!1:H;if(A!==this.currentPlayerIndex){_.F3().dispatch(D2R(!1));if(this.isAd()&&!H){var d;(d=this.player)==null||d.notifyShortsAdSwipeEvent()}var W;(W=this.JSC$22114_cinematicController)==null||yDL(W);var z;(z=this.JSC$22114_cinematicController)==null||vD3(z);d=A>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(d));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var u,B,h,O;H=A<0?(u=this.shortsProcessedPrevSequence)==null?void 0:(B=u[this.shortsProcessedPrevSequence.length+A])==null?void 0:B.command:(h=this.shortsProcessedSequence)==null?void 0:(O=h[A])==null?void 0:O.command;this.index=A;this.gestureType||(this.gestureType=d?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");H&&this.isVideoContentCommand(H)&&(this.ytComponentBehavior.resolveCommand(H,
{form:{createScreenConfig:{clickedVisualElement:d?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(H&&this.isNonVideoContentCommand(H)){this.currentEndpoint=H;this.data=void 0;u=_.A7();B=_.L(H,_.m1);var T,m;(B=(T=_.L(B==null?void 0:B.renderer,_.G21))==null?void 0:(m=T.screenLoggingData)==null?void 0:m.screenVeType)&&_.Ml(u,B);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(T=this.getActiveReelVideo(A))&&
T.appendChild(this.overlayContainer)}var J,g;T=_.b("web_shorts_early_continuation")?A>0&&((J=this.reelWatchSequenceResponse)==null?void 0:J.entries)&&A>=this.reelWatchSequenceResponse.entries.length-3:((g=this.reelWatchSequenceResponse)==null?void 0:g.entries)&&A===this.reelWatchSequenceResponse.entries.length-1;var v;if(((v=this.reelWatchSequenceResponse)==null?0:v.continuationEndpoint)&&T){var y,X,D={contentPlaybackContext:_.NL({},(X=_.L((y=this.currentEndpoint)==null?void 0:y.commandMetadata,_.wn))==
null?void 0:X.url,window.location.href)};_.b("web_shorts_early_continuation")?this.continuationRequestPending||(_.IE.addJob(function(){k.ytComponentBehavior.resolveCommand(k.reelWatchSequenceResponse.continuationEndpoint,{form:D})},8),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:D})}var K,N;
A=A===-(((K=this.reelWatchSequenceResponse)==null?void 0:(N=K.prevEntries)==null?void 0:N.length)||0);var U,p;((U=this.reelWatchSequenceResponse)==null?0:U.prevContinuationEndpoint)&&((p=this.reelWatchSequenceResponse)==null?0:p.prevEntries)&&A&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.q.setMiniplayerPreview=function(A){A=(A===void 0?0:A)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var H,k,d=_.wj().resolve(_.L6),W={shortsData:void 0,shortsPreviewThumbnail:A?(H=this.shortsProcessedSequence)==null?void 0:(k=H[A])==null?void 0:k.thumbnail:void 0};_.S7(d,W)};
_.q.updateTitle=function(A){var H,k;A=(A==null?0:A.adSlots)?"":(k=A==null?void 0:(H=A.videoDetails)==null?void 0:H.title)!=null?k:"";_.Ed(this.hostElement,"yt-update-title",A)};
_.q.registerPanel=function(A){var H=_.wj().resolve(_.eZ);if(H){A=_.r(A.engagementPanels||[]);for(var k=A.next();!k.done;k=A.next()){k=k.value;var d=this.getPanelIdentifier(k.engagementPanelSectionListRenderer),W=void 0,z=void 0;(z=(W=H).registerPanelContent)==null||z.call(W,d,k)}}};
_.q.getPanelIdentifier=function(A){var H;return(A==null?void 0:(H=A.identifier)==null?void 0:H.tag)||(A==null?void 0:A.panelIdentifier)||(A==null?void 0:A.targetId)};
_.q.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.F3().dispatch(D2R(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=[];_.F3().dispatch(F6G(!1));
var A;(A=this.shortsController)!=null&&(A.dismissedIndices=[]);var H;(H=this.shortsController)!=null&&H.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.wj().resolve(_.L6).close(!0)};
_.q.processAppendReelWatchSequenceContinuationEntriesAction=function(A){var H=this,k;(k=this.intersectionObserver)==null||k.disconnect();A=A.appendReelWatchSequenceContinuationEntriesAction;if(A==null?0:A.entries){var d;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.fV(((d=this.reelWatchSequenceResponse)==null?void 0:d.entries)||[]),_.fV(A.entries)),continuationEndpoint:A.continuationEndpoint})}else if(A==null?0:A.prevEntries){var W;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.fV(((W=this.reelWatchSequenceResponse)==null?void 0:W.prevEntries)||[]),_.fV(A.prevEntries)),prevContinuationEndpoint:A.prevContinuationEndpoint});_.IE.addLowPriorityJob(function(){H.movePlayerToVideo(H.index);H.scrollToVideoThrottle.fire(H.index,"instant")})}else return;
_.IE.addLowPriorityJob(function(){H.observeShorts()},100)};
_.q.processWatchSequence=function(A){var H=this;return A.map(function(k){k=k.command;return H.isVideoContentCommand(k)?{thumbnail:_.L(k,_.A1).thumbnail,command:k}:{command:k}})};
_.q.calculateIntersectionObserverThreshold=function(){var A=_.Va(this.hostElement).querySelector("ytd-reel-video-renderer"),H=1;(A==null?0:A.offsetHeight)&&(A==null?0:A.offsetWidth)&&(H=Math.min(A.offsetHeight,this.shortsContainer.offsetHeight)/A.offsetHeight*(Math.min(A.offsetWidth,this.shortsContainer.offsetWidth)/A.offsetWidth));return Math.round(H*.6*10)/10};
_.q.isVideoContentCommand=function(A){_.wj().resolve(_.dz);return!!_.L(A,_.A1)};
_.q.isNonVideoContentCommand=function(A){_.wj().resolve(_.dz);return!!_.L(A,_.m1)};
_.q.initCinematicController=function(){var A=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22114_cinematicController=new G1(this.shortsCinematicContainer,this.player);var H,k=_.L((H=this.data)==null?void 0:H.background,Rj);Lzi(this.JSC$22114_cinematicController,k);bzL(this.JSC$22114_cinematicController,YA3(k));gDQ(this.JSC$22114_cinematicController);_.IE.addLowPriorityJob(function(){A.moveCinematicsToVideo()})}};
_.q.handleMiniplayerNavigateShorts=function(A){A==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():A==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.q.handleSignalActionToggleShortsPictureInPicture=function(){if(_.wj().resolve(_.L6).pictureInPictureSupported()){var A=_.wj().resolve(_.dz);if(_.b("web_shorts_pip")){var H=_.wj().resolve(_.L6);A.isShortsPipActive()?H.deactivate():H.isMiniplayerActive()||(_.Hi().shortsPipActivation=!0,_.mVB(H))}}else(A=this.player)==null||A.togglePictureInPicture()};
_.nP.Object.defineProperties(Xi.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.reelWatchSequenceResponse)!=null&&A.prevEntries)return this.processWatchSequence([].concat(_.fV(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(_.fV(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.reelWatchSequenceResponse)!=null&&A.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var A=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var H;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((H=this.shortsProcessedSequence)==null?void 0:H.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var k;H=_.L((k=this.firstShortsData)==null?void 0:k.command,_.A1);if(H==null||!H.videoId)return this.shortsProcessedSequence;k=this.getIndexInSequence(this.shortsSequence,
H.videoId);if(k!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=k,_.IE.addLowPriorityJob(function(){A.scrollToVideoThrottle.fire(A.index,"auto");A.movePlayerToVideo(A.index)}));
return[].concat(_.fV(this.shortsSequence))}this.shortsProcessedPrevSequence||_.Hp(_.IE,function(){A.observeShorts()},100);
return[this.firstShortsData].concat(_.fV(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var A=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;A&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(A)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var A,H;return this.index===((A=this.reelWatchSequenceResponse)==null?void 0:(H=A.entries)==null?void 0:H.length)}var k;return!((k=this.reelWatchSequenceResponse)==null?0:k.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var A;(A=this.delayedActiveIndexUpdateDebouncer)==null||A.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return this.isShortPlayable()||((H=_.L((A=this.data)==null?void 0:A.watchStatus,_.pfp))==null?void 0:(k=H.style)==null?void 0:k.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var A=this,H=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),k;if((this.data||H)&&(((k=this.data)==null?0:k.engagementPanels)||this.isAd()||H)){H=!1;this.activePanel="shorts-comments-panel";var d;k=_.r(((d=this.data)==null?void 0:d.engagementPanels)||[]);for(d=k.next();!d.done;d=k.next())if(this.getPanelIdentifier(d.value.engagementPanelSectionListRenderer)===this.activePanel){H=!0;break}if(this.isPersistentPanelActive){var W=
_.wj().resolve(_.eZ);_.IE.addJob(function(){W.showPanel({identifier:A.activePanel,target:null})},0,100)}var z;
d=[].concat(_.fV(Object.values(((z=this.data)==null?void 0:z.engagementPanels)||{})));z=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);k=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return z===void 0&&k===void 0||(z==null?0:z.isDisabled)||(k==null?void 0:k.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!H?(H=d==null?void 0:d.findIndex(function(u){var B,h;return((B=u.engagementPanelSectionListRenderer)==null?void 0:(h=B.identifier)==null?void 0:h.tag)==="shorts-comments-panel"}),H===-1||H===void 0||d!=null&&d.splice(H,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.$r("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.$r("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:_.$r("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.$r("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(_.fV(Object.values(d||
{})))):d}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var A=this,H,k,d;if((H=this.playerData)==null?0:(k=H.playabilityStatus)==null?0:(d=k.errorScreen)==null?0:d.playerInterstitialRenderer)return _.IE.addLowPriorityJob(function(){A.movePlayerToVideo(A.index)}),this.playerData.playabilityStatus.errorScreen;
var W,z;return((W=this.data)==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((z=this.data)==null?0:z.watchStatus)&&_.L(this.data.watchStatus,_.H4N)?(_.IE.addLowPriorityJob(function(){A.movePlayerToVideo(A.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.nP.Object.defineProperties(Xi,{template:{configurable:!0,enumerable:!0,get:function(){if(WD_===void 0){var A=document.createElement("template");_.Y(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);WD_=A}A=WD_;return A}}});
Xi.prototype.onNextButtonDataChange=Xi.prototype.onNextButtonDataChange;Xi.prototype.onPrevButtonDataChange=Xi.prototype.onPrevButtonDataChange;Xi.prototype.onPersistentPanelActiveChanged=Xi.prototype.onPersistentPanelActiveChanged;Xi.prototype.lazyUpdateMiniplayerData=Xi.prototype.lazyUpdateMiniplayerData;Xi.prototype.onShortsPipActiveChanged=Xi.prototype.onShortsPipActiveChanged;Xi.prototype.setActiveIndex=Xi.prototype.setActiveIndex;Xi.prototype.graftNvcRenderer=Xi.prototype.graftNvcRenderer;
Xi.prototype.graftClientVisualElements=Xi.prototype.graftClientVisualElements;Xi.prototype.onActiveChanged=Xi.prototype.onActiveChanged;Xi.prototype.onShortsDismiss=Xi.prototype.onShortsDismiss;Xi.prototype.onShortUndoDismiss=Xi.prototype.onShortUndoDismiss;Xi.prototype.playerDataChanged=Xi.prototype.playerDataChanged;Xi.prototype.afterPlayerStarted=Xi.prototype.afterPlayerStarted;Xi.prototype.unhideCurrentOverlay=Xi.prototype.unhideCurrentOverlay;Xi.prototype.onServiceRequestCompleted=Xi.prototype.onServiceRequestCompleted;
Xi.prototype.engagementPanelsChanged=Xi.prototype.engagementPanelsChanged;Xi.prototype.onFullscreenChange=Xi.prototype.onFullscreenChange;Xi.prototype.onResize=Xi.prototype.onResize;Xi.prototype.setFirstShortsData=Xi.prototype.setFirstShortsData;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Xi.prototype,"ytComponentBehavior",void 0);_.E([_.P(di.YtPageBehavior),_.l("design:type",Object)],Xi.prototype,"ytPageBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Xi.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.WU),_.l("design:type",Object)],Xi.prototype,"ironResizableBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Xi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.JB),_.l("design:type",Object)],Xi.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],Xi.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Xi.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"playerData",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"reelWatchSequenceResponse",void 0);
_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"cachedReelWatchSequenceResponse",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"currentEndpoint",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"nextButtonData",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"prevButtonData",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"isPreviousPageShorts",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"index",void 0);
_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"delayedActiveIndex",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"playablePreviousIndex",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"player",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"isPlayerPaused",void 0);_.E([_.C({selector:RFM}),_.l("design:type",Object)],Xi.prototype,"isPlayerStarted",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"intersectionObserver",void 0);
_.E([_.C(),_.l("design:type",Number)],Xi.prototype,"cinematicsInitializeJobId",void 0);_.E([_.C(),_.l("design:type",Number)],Xi.prototype,"updateMiniplayerDataJobId",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"fitToVisibleBounds",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"pageSubtype",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Xi.prototype,"enablePreviousContinuation",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"shortsPipEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"isDark",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"shortsViewTransitions",void 0);_.E([_.C({selector:_.VP,reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"isFullscreen",void 0);
_.E([_.C({selector:_.EF,reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"isShortsPipActive",void 0);_.E([_.ol("#shorts-inner-container"),_.l("design:type",HTMLElement)],Xi.prototype,"shortsInnerContainer",void 0);_.E([_.ol("#back-nav-button ytd-button-renderer"),_.l("design:type",_.cf)],Xi.prototype,"backNavButton",void 0);_.E([_.ol("#shorts-container"),_.l("design:type",HTMLElement)],Xi.prototype,"shortsContainer",void 0);
_.E([of("error-screen"),_.l("design:type",HTMLElement)],Xi.prototype,"errorScreenContainer",void 0);_.E([of("player"),_.l("design:type",Object)],Xi.prototype,"playerElement",void 0);_.E([of("shorts-cinematic-container"),_.l("design:type",HTMLElement)],Xi.prototype,"shortsCinematicContainer",void 0);_.E([of("initial-player-container"),_.l("design:type",HTMLElement)],Xi.prototype,"initialPlayerContainer",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"buttonOverride",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"anchoredPanelActive",void 0);_.E([_.C(),_.l("design:type",String)],Xi.prototype,"activePanel",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"isActive",void 0);_.E([_.C({selector:Om1,reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"smallScreenPersistentPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"isPersistentPanelActive",void 0);
_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"smallScreenSqueezeBack",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"extractOverlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Xi.prototype,"useAspectRatio",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"continuationRequestPending",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"shortsController",void 0);
_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"panelContainer",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"overlayContainer",void 0);_.E([_.C(),_.l("design:type",Array)],Xi.prototype,"carouselContainers",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"isShortsInitialized",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"firstShortsData",void 0);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"firstShortsDataModel",void 0);
_.E([_.G("reelWatchSequenceResponse"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xi.prototype,"prevShortsSequence",null);_.E([_.G("data","prevShortsSequence"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xi.prototype,"shortsProcessedPrevSequence",null);_.E([_.G("reelWatchSequenceResponse"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xi.prototype,"shortsSequence",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"setFirstShortsData",null);_.E([_.G("data","shortsSequence","firstShortsData"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xi.prototype,"shortsProcessedSequence",null);
_.E([_.C({reflectToAttribute:!0}),_.G("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xi.prototype,"isUpArrowHidden",null);_.E([_.C({reflectToAttribute:!0}),_.G("reelWatchSequenceResponse","index","endOfNextContinuation"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xi.prototype,"isDownArrowHidden",null);
_.E([_.C(),_.G("index"),_.l("design:type",Number),_.l("design:paramtypes",[])],Xi.prototype,"activeIndex",null);_.E([_.G("isShortPlayable","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xi.prototype,"shouldRenderOfflineContent",null);_.E([_.Ze("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"onResize",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xi.prototype,"anchoredEngagementPanels",null);
_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"watchWhileEngagementPanels",void 0);_.E([_.fF("isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"onFullscreenChange",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"engagementPanelsChanged",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],Xi.prototype,"onServiceRequestCompleted",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"unhideCurrentOverlay",null);_.E([_.fF("isPlayerStarted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"afterPlayerStarted",null);
_.E([_.G("playerData","reelWatchSequenceResponse","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xi.prototype,"errorScreen",null);_.E([_.G("errorScreen"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xi.prototype,"hasError",null);_.E([_.fF("playerData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],Xi.prototype,"playerDataChanged",null);
_.E([_.Ze("yt-dismissible-item-undo-feedback"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"onShortUndoDismiss",null);_.E([_.Ze("yt-disable-lockup-interaction"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],Xi.prototype,"onShortsDismiss",null);_.E([_.s6("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"onActiveChanged",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"graftClientVisualElements",null);_.E([_.fF("currentPlayerIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"graftNvcRenderer",null);_.E([_.fF("index"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"setActiveIndex",null);
_.E([_.fF("isShortsPipActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"onShortsPipActiveChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"lazyUpdateMiniplayerData",null);_.E([_.C(),_.l("design:type",Object)],Xi.prototype,"onOverlayDensityChanged",void 0);
_.E([_.fF("isPersistentPanelActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"onPersistentPanelActiveChanged",null);_.E([_.fF("index","data","isUpArrowHidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"onPrevButtonDataChange",null);_.E([_.fF("index","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xi.prototype,"onNextButtonDataChange",null);
_.E([_.O6({is:"ytd-shorts"})],Xi);var m5_;var JTQ;var gnR;var DE=function(){return _.a.apply(this,arguments)||this};
_.I(DE,_.a);DE.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],DE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],DE.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],DE);
_.Q(DE,"ytd-compact-tvfilm-entry-point-renderer",function(){if(gnR!==void 0)return gnR;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return gnR=A},{mode:1});var byR;var LDR;var vnM;var S5=function(){return _.a.apply(this,arguments)||this};
_.I(S5,_.a);S5.prototype.ready=function(){this.initializeDefs()};
S5.prototype.initializeDefs=function(){var A=this.meta.byKey("yt-icons"),H=_.Va(A).querySelector("#star"),k=_.Va(A).querySelector("#star_half");A=_.Va(A).querySelector("#star_border");H&&this.defs.appendChild(H.cloneNode(!0));k&&this.defs.appendChild(k.cloneNode(!0));A&&this.defs.appendChild(A.cloneNode(!0))};
S5.prototype.percentChanged=function(){for(var A=this.rating;A.firstChild;)A.removeChild(A.firstChild);var H=Math.round(this.percent/10);A=Math.floor(H/2);H%=2;var k=5-A-H;this.appendStars("star",A,0);this.appendStars("star_half",H,A);this.appendStars("star_border",k,A+H)};
S5.prototype.appendStars=function(A,H,k){for(var d=0;d<H;d++){var W=(18+this.spacing)*(d+k),z=document.createElementNS("http://www.w3.org/2000/svg","use");epR(z,"#"+A);z.setAttribute("x",""+W);z.setAttribute("y","0");this.rating.appendChild(z)}};
S5.prototype.percentChanged=S5.prototype.percentChanged;_.E([_.ol("#defs"),_.l("design:type",HTMLElement)],S5.prototype,"defs",void 0);_.E([_.ol("#rating"),_.l("design:type",HTMLElement)],S5.prototype,"rating",void 0);_.E([_.C(),_.l("design:type",Number)],S5.prototype,"percent",void 0);_.E([_.C({value:6}),_.l("design:type",Number)],S5.prototype,"spacing",void 0);_.E([_.C({value:_.k2.create("iron-meta",{type:"iconset"})}),_.l("design:type",_.HU)],S5.prototype,"meta",void 0);
_.E([_.fF("percent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S5.prototype,"percentChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-ratings"})],S5);
_.Q(S5,"ytd-ratings",function(){if(vnM!==void 0)return vnM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return vnM=A},{mode:1});var yT1=function(){return _.a.apply(this,arguments)||this};
_.I(yT1,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],yT1.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],yT1.prototype,"data",void 0);_.E([_.O6({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],yT1);
_.Q(yT1,"ytd-offer-review-renderer",function(){if(LDR!==void 0)return LDR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return LDR=A},{mode:1});var CQ=function(){var A=_.a.apply(this,arguments)||this;A.badges=[{textBadge:{label:_.Yu("CC")}}];return A};
_.I(CQ,_.a);_.q=CQ.prototype;_.q.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.q.dataChanged=function(){var A=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(A&&A.commandMetadata&&_.L(A.commandMetadata,_.WY)&&_.L(A.commandMetadata,_.WY).fireAutomatically)_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}});else{var H;A&&((H=_.L(A,_.WY))==null?0:H.fireAutomatically)&&_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}})}};
_.q.isEmptyContent=function(A){return this.isStorefrontEntryPointEmpty(A)&&this.shouldHideOfferModule(A)};
_.q.isStorefrontEntryPointEmpty=function(A){return!A||!A.storefrontEntryPoint};
_.q.shouldHideOfferModule=function(A){return!!A.hideVideoDetails};
_.q.isOfferModuleNavigationInactive=function(A){return!A.navigationEndpoint&&!A.serviceEndpoint};
_.q.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.wj().resolve(_.J7).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
CQ.prototype.dataChanged=CQ.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],CQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.l("design:type",Boolean)],CQ.prototype,"hidden",void 0);
_.E([_.C(),_.l("design:type",Object)],CQ.prototype,"badges",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CQ.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],CQ);
_.Q(CQ,"ytd-movie-offer-module-renderer",function(){if(byR!==void 0)return byR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return byR=A},{mode:1});var j$Q;var IM1=function(){return _.a.apply(this,arguments)||this};
_.I(IM1,_.a);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],IM1.prototype,"componentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],IM1.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],IM1);
_.Q(IM1,"ytd-media-masthead-renderer",function(){if(j$Q!==void 0)return j$Q;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return j$Q=A},{mode:1});var Yg_;_.Sw(_.QbB,"course-metadata-view-model",{props:{data:_.Fc,isOverlay:_.Fc}});var KQ=function(){var A=_.a.apply(this,arguments)||this;A.isMetadataVisible=!1;A.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return A};
_.I(KQ,_.a);_.q=KQ.prototype;
_.q.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"}}}}};
_.q.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.q.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.q.expanderChanged=function(){var A;if((A=this.data)==null?0:A.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.q.isExpandButtonToggled=function(){var A,H;return(H=_.L((A=this.data)==null?void 0:A.expandMetadataButton,_.jG))==null?void 0:H.isToggled};
_.q.onVisibilityButtonClick=function(){var A;if((A=this.data)==null?0:A.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.q.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
KQ.prototype.expanderChanged=KQ.prototype.expanderChanged;KQ.prototype.dataChanged=KQ.prototype.dataChanged;KQ.prototype.descriptionChanged=KQ.prototype.descriptionChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P([_.nM.YtActionHandlerBehavior]),_.l("design:type",Object)],KQ.prototype,"actionHandlerBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],KQ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],KQ.prototype,"isMetadataVisible",void 0);_.E([_.ol("#expander"),_.l("design:type",Object)],KQ.prototype,"expander",void 0);_.E([_.fF("data.description"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KQ.prototype,"descriptionChanged",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KQ.prototype,"dataChanged",null);_.E([_.fF("isMetadataVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KQ.prototype,"expanderChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],KQ);
_.Q(KQ,"ytd-tvfilm-offer-module-renderer",function(){if(Yg_!==void 0)return Yg_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Yg_=A},{mode:2});var PNI;var at=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return A};
_.I(at,_.a);at.prototype.dataChanged=function(){this.hostElement.hidden=!1};
at.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
at.prototype.onThumbnailTap=function(A){this.data&&this.data.serviceEndpoint&&(_.wj().resolve(_.J7).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),A.stopPropagation())};
at.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
at.prototype.dataChanged=at.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],at.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],at.prototype,"rendererBehaviors",void 0);_.E([_.P([_.nM.YtActionHandlerBehavior]),_.l("design:type",Object)],at.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],at.prototype,"data",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],at.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],at);
_.Q(at,"ytd-unlimited-offer-module-renderer",function(){if(PNI!==void 0)return PNI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return PNI=A},{mode:1});var GxL;var FDe;var cs=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return A};
_.I(cs,_.a);cs.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
cs.prototype.handleRelatedChipCommand=function(A){A=_.L(A,DA3);var H=A.contents;H?_.li(this.hostElement,"yt-item-section-replace-action",[H,A.targetSectionIdentifier]):_.li(this.hostElement,"yt-item-section-continuation-action",[A.continuationData,A.targetSectionIdentifier])};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],cs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],cs.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cs.prototype,"data",void 0);_.E([_.h6({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],cs);
_.Q(cs,"yt-related-chip-cloud-renderer",function(){if(FDe===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;GxL===void 0&&(GxL=document.createElement("template"));var d=GxL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);FDe=A}A=FDe;return A},{mode:2});var pQ=function(){var A=_.a.apply(this,arguments)||this;A.isTwoColumns=!0;A.watchFeedBigThumbs=_.b("kevlar_watch_feed_big_thumbs");A.watchFeedBigThumbsOnLockup=_.b("web_watch_next_big_thumbs");A.watchNextGridHideChips=_.b("kevlar_watch_grid_hide_chips");A.eligibleToSwitchToGrid=!0;A.disableShortsShelfHeightOverride=_.b("web_shorts_wn_shelf_ratio_tuning");A.isWatchNextGrid=!1;A.reuseComponents=!_.b("kevlar_watch_grid");A.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return A};
_.I(pQ,_.a);_.q=pQ.prototype;
_.q.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:!_.b("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}}};
_.q.getItemsPath=function(){return"data.results"};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.q.created=function(){this.ytLazyListBehavior.initialCount=1};
_.q.ready=function(){_.NH(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.q.resultsChanged=function(){if(this.data&&this.data.results){for(var A=this.data.results,H=null,k=null,d=0;d<A.length;d++)A[d].relatedChipCloudRenderer?H=A[d].relatedChipCloudRenderer:A[d].itemSectionRenderer&&(k=A[d].itemSectionRenderer);if(H&&k)for(this.set("data.continuations",[]),A=_.L(H.content,_.QgQ).chips,H=0;H<A.length;H++)if(d=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",A[H]),d.loadCached||!d.contents){d.contents=k.contents;break}}};
_.q.dataChanged=function(){var A=this,H;if((H=this.data)!=null&&H.results&&this.hasAllowedInstreamAd(this.playerData)){if(H=this.data.results.filter(function(B){return!!B.promotedSparklesWebRenderer})){for(var k=0;k<H.length;k++){var d=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",H[k]);
if(d)for(var W=0;W<d.length;W++)d[W]&&d[W].baseUrl&&_.cL(d[W].baseUrl)}this.set("data.results",this.data.results.filter(function(B){return!B.promotedSparklesWebRenderer}))}if(H=this.data.results.filter(function(B){return!!A.getSparklesAd(B)})){H=_.r(H);
for(W=H.next();!W.done;W=H.next())if(d=k=void 0,W=(k=this.getSparklesAd(W.value))==null?void 0:(d=k.errorCommand)==null?void 0:d.loggingUrls)for(k=_.r(W),d=k.next();!d.done;d=k.next())(d=d.value)&&d.baseUrl&&_.cL(d.baseUrl);var z,u;this.set("data.results",(z=this.data)==null?void 0:(u=z.results)==null?void 0:u.filter(function(B){return!B.adSlotRenderer}))}}};
_.q.getSparklesAd=function(A){var H,k;A=_.L((H=A.adSlotRenderer)==null?void 0:(k=H.fulfillmentContent)==null?void 0:k.fulfilledLayout,_.ktA);return _.L(A==null?void 0:A.renderingContent,KEG)};
_.q.hasAllowedInstreamAd=function(A){A=this.get("adPlacements",A)||[];for(var H=0;H<A.length;H++){var k=this.get("adPlacementRenderer.config.adPlacementConfig",A[H]);if(k&&k.suppressDisplayAd)return!0}return!1};
_.q.computeHideUnlimitedOfferModule=function(A,H){return A&&A.offerModule&&H&&A.offerModule.unlimitedOfferModuleRenderer&&A.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(H)?!0:!1};
_.q.hideUnlimitedOfferModuleChanged=function(){var A=_.Va(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");A&&(A.hidden=this.hideUnlimitedOfferModule)};
_.q.updateLockupContainerTypes=function(A){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||H.forEach(function(k){k.containerType=A})}};
_.q.computeHideTvfilmOfferModule=function(A,H){var k,d;return!!((A==null?0:(k=A.offerModule)==null?0:(d=k.tvfilmOfferModuleRenderer)==null?0:d.clientShouldSuppressIfCompanionAdDisplayed)&&H&&this.hasCompanionAds(H))};
_.q.hideTvfilmOfferModuleChanged=function(){var A=_.Va(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");A&&(A.hidden=this.hideTvfilmOfferModule)};
_.q.hasCompanionAds=function(A){A=this.get("adPlacements",A)||[];for(var H=0;H<A.length;H++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",A[H]))return!0;var k=void 0,d=void 0,W=void 0;if(!_.b("web_watch_top_banner_companion_check_killswitch")&&((k=A[H])==null?0:(d=k.adPlacementRenderer)==null?0:(W=d.renderer)==null?0:W.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.q.hasSuppressedResults=function(A){return A==null?!0:A.filter(function(H){return!H.continuationItemRenderer&&!H.compactPromotedVideoRenderer&&!H.promotedSparklesWebRenderer}).length===0};
_.q.computeShowButton=function(A,H){return this.isWatchNextGrid?A:A||this.hasSuppressedResults(H)};
_.q.showButtonChanged=function(){if(this.isWatchNextGrid){var A=_.Va(this.hostElement).querySelector("ytd-rich-grid-renderer");A&&this.showButton!==null&&(A.continuationShowButton=this.showButton)}else{A=_.Va(this.hostElement).querySelector("yt-next-continuation");var H=_.Va(this.hostElement).querySelector("ytd-continuation-item-renderer"),k=_.Va(this.hostElement).querySelector("ytd-item-section-renderer");A&&(A.showButton=this.showButton);H&&(H.showButton=this.showButton);k&&(k.continuationShowButton=
this.showButton)}};
_.q.continuationTap=function(A){var H;if(((H=this.data)==null?void 0:H.continuations)!=null&&A.target.tagName==="TP-YT-PAPER-BUTTON")for(A=this.data.continuations,H=0;H<A.length;H++)A[H].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(A[H].nextContinuationData||{})};
_.q.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("shown-items-changed",this.shownItems))};
_.nP.Object.defineProperties(pQ.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 A;return!((A=this.shownItems)==null||!A.some(function(H){return!!H.lockupViewModel||H.compactVideoRenderer}))}}});
pQ.prototype.shownItemsChangedForBinding=pQ.prototype.shownItemsChangedForBinding;pQ.prototype.showButtonChanged=pQ.prototype.showButtonChanged;pQ.prototype.hideTvfilmOfferModuleChanged=pQ.prototype.hideTvfilmOfferModuleChanged;pQ.prototype.updateLockupContainerTypes=pQ.prototype.updateLockupContainerTypes;pQ.prototype.hideUnlimitedOfferModuleChanged=pQ.prototype.hideUnlimitedOfferModuleChanged;pQ.prototype.dataChanged=pQ.prototype.dataChanged;pQ.prototype.resultsChanged=pQ.prototype.resultsChanged;
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.cw.YtLazyListBehavior),_.l("design:type",Object)],pQ.prototype,"ytLazyListBehavior",void 0);_.E([_.P(_.So.YtNextContinuationBehavior),_.l("design:type",Object)],pQ.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.P(_.DV),_.l("design:type",Object)],pQ.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],pQ.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pQ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],pQ.prototype,"playerData",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],pQ.prototype,"autoFill",void 0);_.E([_.C({value:60}),_.l("design:type",Number)],pQ.prototype,"targetFramerate",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pQ.prototype,"isTwoColumns",void 0);_.E([_.C(),_.l("design:type",Object)],pQ.prototype,"shownItems",void 0);_.E([_.C({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.l("design:type",Boolean)],pQ.prototype,"hideUnlimitedOfferModule",void 0);_.E([_.C({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.l("design:type",Boolean)],pQ.prototype,"hideTvfilmOfferModule",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pQ.prototype,"watchFeedBigThumbs",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pQ.prototype,"watchFeedBigThumbsOnLockup",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pQ.prototype,"watchNextGridHideChips",void 0);_.E([_.C(),_.l("design:type",Object)],pQ.prototype,"eligibleToSwitchToGrid",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pQ.prototype,"disableShortsShelfHeightOverride",void 0);_.E([_.C({selector:_.Ot,reflectToAttribute:!0}),_.l("design:type",Object)],pQ.prototype,"isGridViewEnabled",void 0);_.E([_.C({selector:_.bSr,reflectToAttribute:!0}),_.l("design:type",Object)],pQ.prototype,"isSwatcherooActive",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],pQ.prototype,"showMoreButton",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],pQ.prototype,"isWatchNextGrid",void 0);_.E([_.C({computed:"computeShowButton(showMoreButton, data.results)"}),_.l("design:type",Boolean)],pQ.prototype,"showButton",void 0);_.E([_.s6("data.results.*"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pQ.prototype,"resultsChanged",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pQ.prototype,"dataChanged",null);_.E([_.fF("hideUnlimitedOfferModule"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pQ.prototype,"hideUnlimitedOfferModuleChanged",null);_.E([_.G("isGridViewEnabled","containsLockups","data"),_.C({reflectToAttribute:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],pQ.prototype,"lockupContainerType",null);
_.E([_.fF("lockupContainerType","data"),_.l("design:type",Function),_.l("design:paramtypes",[Number]),_.l("design:returntype")],pQ.prototype,"updateLockupContainerTypes",null);_.E([_.fF("hideTvfilmOfferModule"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pQ.prototype,"hideTvfilmOfferModuleChanged",null);_.E([_.fF("showButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pQ.prototype,"showButtonChanged",null);
_.E([_.fF("shownItems"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pQ.prototype,"shownItemsChangedForBinding",null);_.E([_.G("shownItems"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],pQ.prototype,"containsLockups",null);
_.Q(pQ,"ytd-watch-next-secondary-results-renderer",function(){if(JTQ===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);JTQ=A}A=JTQ;return A},{mode:1});var XPV;var Qx=function(){var A=_.a.apply(this,arguments)||this;A.currentPageUrl="";A.baseUrl="";A.isHiddenByUser=null;A.hidden=!1;A.showAboveScrim=!1;A.watchNextGrid=_.b("kevlar_watch_grid");A.modernButtons=_.b("web_modern_buttons");A.roundedContainer=!0;A.noBorder=!1;A.roundBackground=!_.b("live_chat_round_background_killswitch");A.overflowHideChat=_.b("live_chat_overflow_hide_chat");A.forceDarkTheme=!1;A.theaterWatchWhile=!1;A.isListeningForPlayerProgress=!1;A.JSC$22168_playerEvents=new Map;A.isFrameReady=
!1;A.player=null;A.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 A};
_.I(Qx,_.a);_.q=Qx.prototype;_.q.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.li(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.q.created=function(){var A=this;this.handleIframeEventListener=function(H){A.handleIframeEvent(H)};
this.handleKeyboardEventListener=function(H){A.handleKeyboardEvent(H)};
this.JSC$22168_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22168_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22168_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22168_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22168_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.q.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()};
_.q.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};
_.q.computeBaseUrl=function(A){var H="/live_chat";this.isChatReplay()&&(H="/live_chat_replay");return _.lx(_.Ux(_.Ex(_.p$(A),H),null),"").toString()};
_.q.dataChanged=function(){_.b("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.q.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var A=this.url;if(this.isChatReplay()&&this.player){var H=Math.floor(this.player.getProgressState().current*1E3);A=_.VT(_.p$(A),"playerOffsetMs",H.toString()).toString()}H=this.chatframe;try{var k=A==="about:blank"?_.T5i:_.fx(A),d=H.contentDocument.location,W=_.$p(k);W!==void 0&&d.replace(W)}catch(z){H.src=A}}};
_.q.collapsedChanged=function(){_.Ed(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.q.handleIframeEvent=function(A){if(A&&this.baseUrl.startsWith(A.origin)&&A.source===this.chatframe.contentWindow&&_.nl(A.data))if(A.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(A);else if(A.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(A.data["yt-show-feedback-dialog"]){var H=_.wj().resolve(_.fZ(_.bVi));if(H){var k=A.ports,d;k&&k.length&&(d=function(){k[0].postMessage({})});
A=A.data["yt-show-feedback-dialog"];H.showFeedbackDialog(A.customProductData,A.feedbackContent,d,A.bucket)}}else if(A.data["yt-show-survey"])_.Ed(this.hostElement,"yt-show-survey",A.data["yt-show-survey"]);else if(A.data["yt-purchase-membership"])_.wj().resolve(_.J7).resolveCommand(A.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(A.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(A.data["yt-tunnel-out-live-service-request"]);else if(A.data["yt-user-activity"])_.n5();
else if(A.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(A.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(A.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(A.data["yt-open-popup"]);else if(A.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(A.data["yt-log-flow-logging-event-command"]);else if(A.data["yt-hide-live-chat"])this.onShowHideChat();else A.data["yt-report-moderation-state-log"]&&
this.player&&(H={cpn:this.player.getVideoData().cpn},_.yr("liveChatBeingModerated",H))};
_.q.attachLiveChatResponseVeTrackingParams=function(A){A=_.db(A);var H=_.hx(),k=_.UD("liveChatRenderer.trackingParams",this.data);H&&k&&_.v0(H,_.db(k),A)};
_.q.handleBuyflowMessages=function(A){var H=A.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,k=A.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,d=A.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Bpl(_.VG(_.GD),H.replace(/-/g,"+").replace(/_/g,"/"),function(W){A.ports[0].postMessage({success:!0,buyFlowResponse:W})},void 0,function(W){A.ports[0].postMessage({success:!1,
error:W&&W.message||"Buyflow rejected without error."})},_.sH().get("hl"),void 0,function(){A.ports[0].postMessage({closed:!0})},k,d)};
_.q.setupPlayerProgressRelay=function(){var A=this;if(!this.isListeningForPlayerProgress){var H=_.a9();H!=null&&H.getPlayerPromise&&(H.getPlayerPromise().then(function(k){A.playerApiReady(k)}),this.isListeningForPlayerProgress=!0)}};
_.q.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.q.playerApiReady=function(A){this.setPlayer(A)};
_.q.playerProgressHandler=function(){if(this.player){var A=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":A.current})}};
_.q.playerAdStartHandler=function(A){this.postToContentWindow({"yt-player-ad-start":A})};
_.q.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.q.playerStateChangeHandler=function(A){this.postToContentWindow({"yt-player-state-change":A})};
_.q.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22168_playerEvents);A&&(this.player=A,this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$22168_playerEvents),_.Ed(this.hostElement,"player-api-ready"))};
_.q.liveChatPageUrl=function(A,H,k,d){return!k||H?"about:blank":k.liveChatRenderer?(H=_.p$(this.currentPageUrl).JSC$10346_queryData_,z81(H),A=_.p$(A),H.add("continuation",k.liveChatRenderer.continuations[0].reloadContinuationData.continuation),k=_.bw()==="USER_INTERFACE_THEME_DARK",(d||k)&&H.add("dark_theme","true"),_.Ux(A,H),d=_.p$(A.toString()),k=d.JSC$10346_queryData_,"SESSION_INDEX"in _.ax&&(k.add("authuser",_.pZ("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.ax&&k.add("pageId",_.pZ("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.ax&&k.add("sdc",_.pZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),d.toString()):""};
_.q.isCollapsed=function(A,H){return H!==null?H:this.isChatReplay()||A&&A.conversationBarRenderer&&A.conversationBarRenderer.availabilityMessage?!0:A?A.liveChatRenderer?A.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.b("live_chat_hide_premiere_replay_message")||A.conversationBarRenderer&&A.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.q.isHidden=function(A,H,k){var d=H&&H.conversationBarRenderer&&H.conversationBarRenderer.availabilityMessage,W=H&&H.liveChatRenderer&&H.liveChatRenderer.showHideButton,z=H&&H.liveChatRenderer&&H.liveChatRenderer.showButton;return k&&A&&!d&&!z||!k&&A&&!d&&!W?!0:H&&H.liveChatRenderer&&H.liveChatRenderer.initialDisplayState?H.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.q.computeButtonOverride=function(A,H){if(A&&H)return{type:"outline"}};
_.q.setCollapsedState=function(A){_.L(A,_.qmi)&&((this.isHiddenByUser=!!_.L(A,_.qmi).collapsed)||_.Ud(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.q.forwardReduxActionToIframe=function(A){this.postToContentWindow({"yt-live-chat-forward-redux-action":A})};
_.q.onLoopRangeChange=function(A){this.showAboveScrim=!(A==null||!A.postId)};
_.q.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.q.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.q.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.q.sendDarkThemePostMessage=function(A){this.postToContentWindow({"yt-live-chat-set-dark-theme":A})};
_.q.onLiveChatBuyFlowCallback=function(A){this.postToContentWindow({"yt-live-chat-buy-flow-callback":A})};
_.q.handleKeyboardEvent=function(A){(0,_.iK.containsValue)(vA_,A.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:A.type,keyCode:A.keyCode}})};
_.q.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.q.postToContentWindow=function(A){if(this.isFrameReady)try{var H=window.location.protocol+"//"+window.location.host,k;(k=this.chatframe)!=null&&k.contentWindow?this.chatframe.contentWindow.postMessage(A,H):_.Pq(new _.Ti("Tried posting a message to an iframe with no content window",A))}catch(d){_.I3(d)}};
_.q.shouldHideChatFrame=function(A){return A&&_.b("hide_live_chat_button_when_collapsed")};
_.nP.Object.defineProperties(Qx.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.b("live_chat_overflow_hide_chat")||_.b("web_watch_chat_hide_button_killswitch"))return _.b("live_chat_overflow_hide_chat");var A,H,k,d;return!!((A=this.data)==null?0:(H=A.liveChatRenderer)==null?0:(k=H.header)==null?0:(d=k.liveChatHeaderRenderer)==null?0:d.collapseButton)}}});
Qx.prototype.collapsedChanged=Qx.prototype.collapsedChanged;Qx.prototype.urlChanged=Qx.prototype.urlChanged;Qx.prototype.dataChanged=Qx.prototype.dataChanged;Qx.prototype.onShowHideChat=Qx.prototype.onShowHideChat;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Qx.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Qx.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.Pw.YtPlayerListenerBehavior),_.l("design:type",_.GG)],Qx.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.P(_.NY.YtOpenPopupBehavior),_.l("design:type",Object)],Qx.prototype,"ytOpenPopupBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Qx.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Qx.prototype,"currentPageUrl",void 0);
_.E([_.C({computed:"computeBaseUrl(currentPageUrl,data)"}),_.l("design:type",Object)],Qx.prototype,"baseUrl",void 0);_.E([_.C({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.l("design:type",String)],Qx.prototype,"url",void 0);_.E([_.C(),_.l("design:type",Object)],Qx.prototype,"isHiddenByUser",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.l("design:type",Object)],Qx.prototype,"hidden",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.l("design:type",Boolean)],Qx.prototype,"collapsed",void 0);_.E([_.C({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.l("design:type",Boolean)],Qx.prototype,"hideChatFrame",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Qx.prototype,"showAboveScrim",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Qx.prototype,"watchNextGrid",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Qx.prototype,"modernButtons",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Qx.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Qx.prototype,"noBorder",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Qx.prototype,"roundBackground",void 0);
_.E([_.C({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.l("design:type",Object)],Qx.prototype,"toggleButtonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Qx.prototype,"overflowHideChat",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Qx.prototype,"forceDarkTheme",void 0);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qx.prototype,"enableShowWithoutHideChatButton",null);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Qx.prototype,"theaterWatchWhile",void 0);_.E([_.ol("#chatframe"),_.l("design:type",HTMLIFrameElement)],Qx.prototype,"chatframe",void 0);_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qx.prototype,"onShowHideChat",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qx.prototype,"dataChanged",null);
_.E([_.fF("url"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qx.prototype,"urlChanged",null);_.E([_.fF("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qx.prototype,"collapsedChanged",null);_.E([_.O6({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Qx);
_.Q(Qx,"ytd-live-chat-frame",function(){if(XPV!==void 0)return XPV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return XPV=A},{mode:1});var D5I;var Vx=function(){var A=_.a.apply(this,arguments)||this;A.lastRenderedPanelIds=new Set;A.visiblePanels=[];A.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return A};
_.I(Vx,_.a);_.q=Vx.prototype;_.q.dataChanged=function(){if(this.data){for(var A=[],H=_.r(this.data),k=H.next();!k.done;k=H.next()){k=k.value;var d=void 0,W=void 0,z=(d=k)==null?void 0:(W=d.engagementPanelSectionListRenderer)==null?void 0:W.visibility;W=d=void 0;((d=k)==null?0:(W=d.engagementPanelSectionListRenderer)==null?0:W.targetId)&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&A.push(k)}this.visiblePanels=A}else this.visiblePanels=[]};
_.q.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}}};
_.q.withoutVisiblePanelById=function(A){return this.visiblePanels.filter(function(H){var k;return((k=H.engagementPanelSectionListRenderer)==null?void 0:k.targetId)!==A})};
_.q.onYtChangeEngagementPanelVisibilityAction=function(A){var H=this,k=_.L(A,_.rgA);if(this.data&&(k==null?0:k.targetId)&&(k==null?0:k.visibility)){var d,W=(d=this.data.find(function(u){var B;return((B=u.engagementPanelSectionListRenderer)==null?void 0:B.targetId)===k.targetId}))==null?void 0:d.engagementPanelSectionListRenderer;
if(W){var z=this.withoutVisiblePanelById(k.targetId);k.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(A=this.data.find(function(u){var B;return((B=u.engagementPanelSectionListRenderer)==null?void 0:B.targetId)===k.targetId}))&&(z=[A].concat(_.fV(z)));
this.hideDelayMs&&k.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&z.length===0?_.IE.addJob(function(){W.visibility=k.visibility;H.visiblePanels=z},10,this.hideDelayMs):(W.visibility=k.visibility,this.visiblePanels=z);
_.li(this.hostElement,"yt-engagement-panels-visible-changed",[z])}}};
_.q.onRendererstamperFinished=function(){var A=new Set(this.visiblePanels.map(function(H){var k;return(k=H.engagementPanelSectionListRenderer)==null?void 0:k.targetId}));
this.handlePanelVisibilityChange(A,this.lastRenderedPanelIds);this.lastRenderedPanelIds=A};
_.q.handlePanelVisibilityChange=function(A,H){A=A===void 0?new Set:A;H=H===void 0?new Set:H;if(this.data)for(var k=_.r(this.data),d=k.next();!d.done;d=k.next()){d=d.value;var W=void 0,z=void 0,u=(W=d)==null?void 0:(z=W.engagementPanelSectionListRenderer)==null?void 0:z.targetId;if(u&&(W=H.has(u),z=A.has(u),u=void 0,!W&&z?(z=W=void 0,u=(W=d)==null?void 0:(z=W.engagementPanelSectionListRenderer)==null?void 0:z.onShowCommands):W&&!z&&(z=W=void 0,u=(W=d)==null?void 0:(z=W.engagementPanelSectionListRenderer)==
null?void 0:z.onHideCommands),u))for(d=_.r(u),u=d.next();!u.done;u=d.next())this.ytComponentBehavior.resolveCommand(u.value)}};
Vx.prototype.onRendererstamperFinished=Vx.prototype.onRendererstamperFinished;Vx.prototype.dataChanged=Vx.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Vx.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Vx.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Vx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Vx.prototype,"lastRenderedPanelIds",void 0);_.E([_.C(),_.l("design:type",Number)],Vx.prototype,"hideDelayMs",void 0);_.E([_.C(),_.l("design:type",Array)],Vx.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Array)],Vx.prototype,"visiblePanels",void 0);_.E([_.C(),_.l("design:type",Boolean)],Vx.prototype,"isWatchWhilePanel",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Vx.prototype,"dataChanged",null);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Vx.prototype,"onRendererstamperFinished",null);_.E([_.O6({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Vx);
_.Q(Vx,"ytd-watch-engagement-panels",function(){if(D5I!==void 0)return D5I;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return D5I=A},{mode:1});var Sg1;var CNQ;var KD3=function(){return _.a.apply(this,arguments)||this};
_.I(KD3,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],KD3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],KD3.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],KD3);
_.Q(KD3,"ytd-comments-entry-point-message-renderer",function(){if(CNQ!==void 0)return CNQ;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return CNQ=A},{mode:1});var aMI;var Eo=function(){return _.a.apply(this,arguments)||this};
_.I(Eo,_.a);_.nP.Object.defineProperties(Eo.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.teaserAvatar)}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Eo.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Eo.prototype,"hasAvatar",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Eo);
_.Q(Eo,"ytd-comments-entry-point-teaser-renderer",function(){if(aMI!==void 0)return aMI;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return aMI=A},{mode:1});var cT1;var pP_=function(){return _.a.apply(this,arguments)||this};
_.I(pP_,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pP_.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pP_.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],pP_);
_.Q(pP_,"ytd-comments-simplebox-renderer",function(){if(cT1!==void 0)return cT1;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cT1=A},{mode:1});var Uo=function(){var A=_.a.apply(this,arguments)||this;A.fullHeight=!_.b("comment_teaser_full_height_kill_switch")&&_.b("kevlar_watch_grid");return A};
_.I(Uo,_.a);Uo.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"}}}};
Uo.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Uo.prototype.onTap=function(){var A=this.tapCommand;A&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(A))};
Uo.prototype.onKeyUp=function(A){if(A.keyCode===13)this.onTap()};
_.nP.Object.defineProperties(Uo.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.onTap)return this.data.onTap}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)!=null&&A.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Uo.prototype.onKeyUp=Uo.prototype.onKeyUp;Uo.prototype.onTap=Uo.prototype.onTap;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Uo.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Uo.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Uo.prototype,"fullHeight",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uo.prototype,"tapCommand",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uo.prototype,"simpleboxPlaceholder",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Uo.prototype,"hasSimpleboxPlaceholder",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uo.prototype,"simpleboxAvatar",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uo.prototype,"teaserContent",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Uo.prototype,"hasTeaserContent",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uo.prototype,"teaserAvatar",null);
_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Uo.prototype,"hasTeaserAvatar",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uo.prototype,"messageText",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uo.prototype,"contentRenderer",null);_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Uo.prototype,"hasContents",null);
_.E([_.G("data"),_.C({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Uo.prototype,"hasContentRenderer",null);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uo.prototype,"onTap",null);_.E([_.Ze("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[_.ux]),_.l("design:returntype")],Uo.prototype,"onKeyUp",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Uo);
_.Q(Uo,"ytd-comments-entry-point-header-renderer",function(){if(Sg1!==void 0)return Sg1;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Sg1=A},{mode:1});var Q$1;_.Sw(_.mhw,"yt-animated-rolling-number",{props:{numberText:_.Ih,numberValue:_.Ih,heightPx:_.Ih,fontSizeMultiplier:_.Ih,shouldAnimate:_.Ih,forceRollUp:_.Ih}});var VzB=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),En1={numberText:"",heightPx:2*VzB,shouldAnimate:!1},lq=function(){var A=_.a.apply(this,arguments)||this;A.usingAnimatedComponents=!0;A.wasDetailed=!1;A.JSC$22198_browserSupportsAnimation=_.b("web_supports_animations_api");A.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};A.detailed=!1;A.shouldAnimate=!1;A.viewCountProps=En1;A.dateTextProps=
En1;A.isEmpty=!1;A.metadataBadgesInDescription=_.b("web_metadata_badges_in_description");return A};
_.I(lq,_.a);_.q=lq.prototype;_.q.computeIsEmpty=function(A,H,k,d,W,z,u,B){return!_.b("web_hide_watch_info_empty")||_.PK(A)?!1:H?!(_.PK(k)||d||_.PK(W)||_.PK(z)||u||_.PK(B)):!0};
_.q.attached=function(){var A=this;_.wj().resolve(_.fB).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(H){A.set("videoPrimaryInfoRenderer.subtitle",H)})};
_.q.detached=function(){_.wj().resolve(_.fB).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.q.resetAnimationState=function(){this.shouldAnimate=!1};
_.q.updateDynamicMetadata=function(){if(this.JSC$22198_browserSupportsAnimation){if(!this.detailed){var A,H,k,d;var W=(A=this.videoPrimaryInfoRenderer)==null?void 0:(H=A.viewCount)==null?void 0:(k=H.videoViewCountRenderer)==null?void 0:(d=k.extraShortViewCount)==null?void 0:d.simpleText;var z,u,B,h;var O=(z=this.videoPrimaryInfoRenderer)==null?void 0:(u=z.viewCount)==null?void 0:(B=u.videoViewCountRenderer)==null?void 0:(h=B.shortViewCount)==null?void 0:h.simpleText}if(!O){var T,m,J,g;W=(T=this.videoPrimaryInfoRenderer)==
null?void 0:(m=T.viewCount)==null?void 0:(J=m.videoViewCountRenderer)==null?void 0:(g=J.unlabeledViewCountValue)==null?void 0:g.simpleText;var v,y,X,D;O=(v=this.videoPrimaryInfoRenderer)==null?void 0:(y=v.viewCount)==null?void 0:(X=y.videoViewCountRenderer)==null?void 0:(D=X.viewCount)==null?void 0:D.simpleText}var K,N,U;A=Number((K=this.videoPrimaryInfoRenderer)==null?void 0:(N=K.viewCount)==null?void 0:(U=N.videoViewCountRenderer)==null?void 0:U.originalViewCount);var p,M;K=(p=this.videoPrimaryInfoRenderer)==
null?void 0:(M=p.relativeDateText)==null?void 0:M.simpleText;var Z;p=!((Z=this.videoPrimaryInfoRenderer)==null||!Z.relativeDateText);if(W&&O&&A&&(K||!p)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;Z=O.split(new RegExp("("+W+")"));W=_.Yu(Z[0]);var WV;O={numberText:(WV=Z[1])!=null?WV:"",numberValue:A,heightPx:2*VzB,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var hA;WV=((hA=Z[2])!=null?hA:"")+"  ";this.setViewCount(O,W,_.Yu(WV));if(!this.detailed&&
p){W=K.split(/(\d+)/);hA=_.Yu(W[0]);var qv;WV={numberText:(qv=W[1])!=null?qv:"",heightPx:2*VzB,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var eN;qv=((eN=W[2])!=null?eN:"")+"  ";this.setDateText(WV,hA,_.Yu(qv))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.q.setViewCount=function(A,H,k){_.PK(H)!==_.PK(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=H);this.viewCountProps.numberText!==(A==null?void 0:A.numberText)&&(this.viewCountProps=A||En1);_.PK(k)!==_.PK(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=k)};
_.q.setDateText=function(A,H,k){_.PK(H)!==_.PK(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=H);this.dateTextProps.numberText!==(A==null?void 0:A.numberText)&&(this.dateTextProps=A||En1);_.PK(k)!==_.PK(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=k)};
_.q.onYtUpdateViewershipAction=function(A){this.videoPrimaryInfoRenderer&&(_.L(A,X6M).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.L(A,X6M).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.L(A,X6M).viewCount)))};
_.q.onYtUpdateDateTextAction=function(A){if(this.videoPrimaryInfoRenderer){A=_.L(A,G$_).dateText;this.shouldAnimate=!0;var H;((H=this.videoPrimaryInfoRenderer)==null?0:H.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",A):this.set("videoPrimaryInfoRenderer.dateText",A)}};
_.nP.Object.defineProperties(lq.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return yY3(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.PK(yY3(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.PK(this.viewCountPreNumberText),this.viewCountProps.numberText,_.PK(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.PK(this.dateTextPreNumberText),this.dateTextProps.numberText,_.PK(this.dateTextPostNumberText)].join("")}}});
lq.prototype.updateDynamicMetadata=lq.prototype.updateDynamicMetadata;lq.prototype.resetAnimationState=lq.prototype.resetAnimationState;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],lq.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],lq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lq.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lq.prototype,"detailed",void 0);_.E([_.C(),_.l("design:type",Object)],lq.prototype,"shouldAnimate",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lq.prototype,"viewCountPreNumberText",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lq.prototype,"viewCountProps",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lq.prototype,"viewCountPostNumberText",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lq.prototype,"dateTextPreNumberText",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lq.prototype,"dateTextProps",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lq.prototype,"dateTextPostNumberText",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsEmpty(infoText, usingAnimatedComponents, viewCountPreNumberText, viewCountProps.numberText, viewCountPostNumberText, dateTextPreNumberText, dateTextProps.numberText, dateTextPostNumberText)"}),_.l("design:type",Object)],lq.prototype,"isEmpty",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],lq.prototype,"metadataBadgesInDescription",void 0);_.E([_.G("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.l("design:type",Object),_.l("design:paramtypes",[])],lq.prototype,"infoText",null);
_.E([_.G("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.l("design:type",String),_.l("design:paramtypes",[])],lq.prototype,"descriptionInfoTooltipText",null);_.E([_.G("detailed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],lq.prototype,"showDescriptionInfoTooltip",null);
_.E([_.G("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.l("design:type",String),_.l("design:paramtypes",[])],lq.prototype,"animatedViewCountAccessibilityLabel",null);_.E([_.G("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.l("design:type",String),_.l("design:paramtypes",[])],lq.prototype,"animatedDateTextAccessibilityLabel",null);
_.E([_.fF("videoPrimaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lq.prototype,"resetAnimationState",null);_.E([_.fF("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lq.prototype,"updateDynamicMetadata",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-watch-info-text"})],lq);
_.Q(lq,"ytd-watch-info-text",function(){if(Q$1!==void 0)return Q$1;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Q$1=A},{mode:1});var U5R;var lMI="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var tzL=_.c(function(A){var H=A.data;var k=A.setTapCommand;_.CA(function(){var d=_.h7(H().onTap);k(d)},"CLm0Xe");
return _.x("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.x(_.HG,{data:function(){return H().avatar}},{avatarViewModel:_.RW}),_.x("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.x("span",null,function(){return H().simpleboxText})))},"Lk");var Np_=_.c(function(A){return _.x("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.x(_.R,{cond:function(){return _.L(A.data().avatar,_.TV)},
then:function(H){return _.x(_.RW,{data:H,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.x("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.x(_.j$,{text:function(){return A.data().teaserText}})))},"Mk");var MzV=_.c(function(A){var H=A.data;var k=A.setTapCommand;_.CA(function(){var d=_.h7(H().onTap);k(d)},"qxjCCd");
return _.x("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.x(_.HG,{data:function(){return H().teasers}},{commentsEntryPointTeaserViewModel:Np_}))},"Ok");var nn3=_.c(function(A){var H=A.data;var k=A.setTapCommand;_.CA(function(){var d=_.h7(H().onTap);k(d)},"CRZByf");
return _.x("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.x(_.j$,{text:function(){return H().messageText}}))},"Qk");var ZyB=_.c(function(A){var H=A.data;var k=A.setTapCommand;var d=A.isDisabled;_.CA(function(){var W=(d==null?0:d())?void 0:_.h7(H().onTap);k(W)},"GZxRqd");
return _.x("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.x(_.n3,{icon:function(){return H().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.x(_.R,{cond:function(){return H().image},
then:function(W){return _.x(_.GA,{data:W,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.x(_.j$,{text:function(){return H().text},
className:function(){return H().image||H().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.x(_.HG,{data:function(){return H().button}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:d==null?void 0:d()}}})}}))},"Sk");var fM3=_.c(function(A){var H=A.data;var k=A.itemIndex;var d=A.selectedIndex;var W=A.indexUpdatedCallback;var z=A.observer;A=A.title;var u=_.GP("yt-carousel-item-view-model",function(m){z&&z().observe(m)}),B=function(m){k()===d()&&W(m)},h=_.oy($w_),O=_.oy(_.yOV),T=function(){var m,J,g,v,y;
return((m=H())==null?void 0:m.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!h()||((J=H())==null?void 0:J.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((g=O())==null?void 0:g.includes("PAposts_by_host"))||((v=H())==null?void 0:v.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((y=O())==null?void 0:y.includes("PAyouchat"))};
return _.x("yt-carousel-item-view-model",{el:u,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":A},_.x(_.HG,{data:function(){var m,J;return(J=(m=_.L(H().carouselItem,tgG))==null?void 0:m.textCarousel)!=null?J:H().carouselItem}},{textCarouselItemViewModel:function(m){return _.x(ZyB,{data:m.data,
setTapCommand:B,isDisabled:T})},
commentTeaserCarouselItemViewModel:function(m){return _.x(MzV,{data:m.data,setTapCommand:B})},
commentInputBoxCarouselItemViewModel:function(m){return _.x(tzL,{data:m.data,setTapCommand:B})},
commentsEntryPointMessageViewModel:function(m){return _.x(nn3,{data:m.data,setTapCommand:B})}}))},"Tk");var wP3=_.c(function(A){var H=A.numDots;var k=A.activeIndex;return _.x("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.x(_.Ix,{each:function(){return Array.from({length:H()})},
keyBy:"INDEX"},function(d,W){return _.x("div",{class:function(){var z={};return _.u2("ytCarouselDotsShapeDot",(z.ytCarouselDotsShapeDotActive=W===k(),z))}})}))},"Uk");var onL=_.c(function(A){var H=A.data;var k=A.handleCarouselNavigation;var d=A.numItems;var W=A.selectedIndex;var z=function(){return{disabled:W()===0}},u=function(){return{disabled:W()===d()-1}};
return _.x("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.x("div",null,_.x("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return H().title}),_.x(_.R,{cond:function(){return H().subtitle},
then:function(B){return _.x("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return H().subtitleAccessibilityText}},B)}})),_.x(_.R,{cond:function(){return d()>1},
then:function(){return _.x("div",{class:"ytCarouselTitleViewModelNavigation"},_.x(wP3,{numDots:d,activeIndex:W}),_.x(_.R,{cond:function(){return H().previousButton},
then:function(B){return _.x(_.HG,{data:B},{buttonViewModel:function(h){return _.x(_.U7,{data:h.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return k(-1)},
buttonOverrides:z})}})}}),_.x(_.R,{cond:function(){return H().nextButton},
then:function(B){return _.x(_.HG,{data:B},{buttonViewModel:function(h){return _.x(_.U7,{data:h.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return k(1)},
buttonOverrides:u})}})}}))}}))},"Vk");_.Sw(_.c(function(A){var H=A.data;var k,d=_.GP("yt-video-metadata-carousel-view-model"),W=_.GP("div",function(p){var M=function(){var Z=p.offsetWidth*y(),WV=24*(y()-1);J(Z+WV)};
M();window.ResizeObserver&&(k=new ResizeObserver(M),k.observe(p))}),z=_.pZ("HTML_DIR")==="rtl",u=!1,B=0,h=0;
A=_.r(_.RV(0,void 0,"M49TDf"));var O=A.next().value,T=A.next().value;A=_.r(_.RV(0,void 0,"zLIok"));var m=A.next().value,J=A.next().value;A=_.r(_.RV(!1,void 0,"bhelhc"));var g=A.next().value,v=A.next().value,y=function(){var p,M,Z;return(Z=(p=H())==null?void 0:(M=p.carouselTitles)==null?void 0:M.length)!=null?Z:0},X=function(){W.value&&W.value.scrollLeft!==B&&T((z?W.value.scrollLeft<B:W.value.scrollLeft>B)?Math.min(O()+1,y()-1):Math.max(O()-1,0))},D;
window.IntersectionObserver&&(D=new IntersectionObserver(function(p){p=_.r(p);for(var M=p.next();!M.done;M=p.next())if(M.value.isIntersecting){if(u){u=!1;break}X()}else T(h)},{threshold:.2}));
_.CA(function(){if(W.value){var p=(z?-1:1)*(m()/y()+12)*(g()&&D?h:O());typeof W.value.scrollTo==="function"?W.value.scrollTo({left:p,behavior:"smooth"}):W.value.scrollLeft=p;B=p;h=g()&&D?h:O()}},"s9rbgc");
var K,N=function(p){K=p};
_.aV(function(){var p;(p=k)==null||p.disconnect();var M;(M=D)==null||M.disconnect()});
var U=function(p){p=O()+p;p>=0&&p<y()&&(u=!0,T(p))};
return _.x("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:d,"on:click":_.lc(function(p){if(_.xH(_.eu(p),d.value,["BUTTON".toString()])||!K)return!1;_.wj().resolve(_.J7).resolveCommand(K,{forceClickLogging:!0});return!1}),
"on:touchstart":_.lc(function(){v(!0);return!1}),
"on:touchend":_.lc(function(){D||X();v(!1);return!1}),
hidden:function(){var p,M;return!((p=H())==null?0:(M=p.carouselItems)==null?0:M.length)}},_.x("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.x(_.R,{cond:function(){return H().carouselTitles},
then:function(p){return _.x(_.HG,{data:function(){return p()[g()&&D?h:O()]}},{carouselTitleViewModel:function(M){return _.x(onL,{data:M.data,
handleCarouselNavigation:U,numItems:y,selectedIndex:O})}})}})),_.x("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:W},_.x("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+m()+"px;"}},_.x(_.R,{cond:function(){return H().carouselItems},
then:function(p){return _.x(_.Ix,{each:p},function(M,Z){return _.x(_.HG,{data:function(){return M}},{carouselItemViewModel:function(WV){return _.x(fM3,{data:WV.data,
itemIndex:Z,selectedIndex:O,indexUpdatedCallback:N,observer:D,title:function(){a:{var hA=Z();var qv,eN=(qv=H())==null?void 0:qv.carouselTitles;if(eN&&(hA=eN[hA])){var mr;hA=(mr=_.L(hA,lYG))==null?void 0:mr.title;break a}hA=void 0}return hA}})}})})}}))))},"Xk"),"yt-video-metadata-carousel-view-model",{props:{data:_.Ih}});var tp=function(){var A=_.a.apply(this,arguments)||this;A.isHovering=!1;A.enableColorSampling=_.b("web_delhi_colorful_sd");A.metadataBadgesInDescription=_.b("web_metadata_badges_in_description");A.descriptionCollapsed=!0;A.useFadedScrimDescription=_.b("kevlar_enable_faded_scrim_on_description");A.skinnyMode=!1;A.playlist=!1;A.isDark=document.documentElement.hasAttribute("dark");A.disableVideoOwnerOnTap=_.b("swatchie_video_owner_on_tap_ks");A.swatcherooDelayLoad=_.b("swatcheroo_enable_ghost_cards");
A.primaryMenuWidth=0;A.videoId="";A.titleHeadlineXs=_.b("web_watch_typography_title_headline_xs");A.titleHeadlineS=_.b("web_watch_typography_title_headline_s");A.titleHeadlineM=_.b("web_watch_typography_title_headline_m");A.titleHashtagBlackLinkified=_.b("web_title_hashtag_black_linkified");A.titleHashtagGreyLinkified=_.b("web_title_hashtag_grey_linkified");A.actionButtonsUpdateOwnerWidth=!0;A.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction",
"yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};A.isFullscreen=!1;A.isTheaterMode=!1;return A};
_.I(tp,_.a);_.q=tp.prototype;_.q.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.q.updateOwnerAndDescriptionPosition=function(){_.b("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),yg(this.bottomRowElement,this.ownerElement)):(yg(this.bottomRowElement,this.descriptionElement),yg(this.topRowElement,this.ownerElement)))};
_.q.titleOnTap=function(A){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.XU(_.F_(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||this.handleExpandDescriptionCommands()}};
_.q.videoOwnerOnTap=function(A){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.XU(_.F_(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.q.detached=function(){var A=this,H;return _.e(function(k){(H=A.resizeObserver)==null||H.disconnect();_.EN(k)})};
_.q.maybeAttachResizeObserver=function(){var A=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Nt(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){A.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.q.maybeUpdateActionsOnSeparateLine=function(){this.skinnyMode?this.actionsOnSeparateLine=!0:this.primaryMenuWidth&&(this.actionsOnSeparateLine=this.primaryMenuWidth>this.hostElement.clientWidth-(this.ownerElement.clientWidth+32)?!0:!1)};
_.q.stripAttributedDescription=function(A){return{content:A.content.replace(/[\r\n]{2,}/g,"\n")}};
_.q.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.b("web_modern_buttons"),forceIconButton:!_.b("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:!0,forceIconOnly:!0}},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"}}}};
_.q.videoPrimaryInfoRendererChanged=function(){var A;if((A=this.videoPrimaryInfoRenderer)==null?0:A.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.q.videoSecondaryInfoRendererChanged=function(){var A,H;(A=this.descriptionInlineExpander)==null||(H=A.collapse)==null||H.call(A);this.descriptionExpandClientVe=_.t8(110509);this.descriptionCollapseClientVe=_.t8(110510);A=_.hx();H=_.ii();A&&H&&(_.b("combine_ve_grafts")?(_.n4(_.A7(),this.descriptionExpandClientVe,H),_.n4(_.A7(),this.descriptionCollapseClientVe,H)):_.ym(A,H,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.q.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.q.updateTopLevelIconsOnly=function(){var A=this;_.b("top_level_update_killswitch")||this.menu&&_.IE.addLowPriorityJob(function(){A.menu.topLevelIconsOnly=A.skinnyMode},_.H5("swathceroo_delay_flexible_menu_update",100))};
_.q.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.q.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.q.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.q.onYtTextInlineExpanderExpandedChanged=function(){if(!_.b("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var A,H;(H=(A=this.structuredDescriptionContentRendererElement).resize)==null||H.call(A)}};
_.q.onRenderStamperFinished=function(A){(A==null?void 0:A.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.q.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.q.onYtExpanderLessTapped=function(){var A,H=(A=this.videoSecondaryInfoRenderer)==null?void 0:A.showLessCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.q.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.q.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.q.onDescriptionClick=function(A){if(!_.XU(_.F_(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.b("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.q.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.q.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.q.logCollapseClick=function(){var A=_.hx();A&&this.descriptionCollapseClientVe&&_.P0(A,this.descriptionCollapseClientVe)};
_.q.logExpandClick=function(){var A=_.hx();A&&this.descriptionExpandClientVe&&_.P0(A,this.descriptionExpandClientVe)};
_.q.collapseDescription=function(){this.descriptionCollapsed=!0};
_.q.scrollToTopOfContainer=function(){_.Ud(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.q.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.q.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.q.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.q.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var A,H;(H=(A=this.descriptionInlineExpander).resize)==null||H.call(A)}else _.Pq(new _.Ti("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var k;(k=this.menu)==null||k.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.q.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var A,H,k=(H=(A=_.Va(this.menu).querySelector("#button-shape"))==null?void 0:A.clientWidth)!=null?H:0,d,W;A=((W=(d=_.Va(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:d.clientWidth)!=null?W:0)+8+k;var z,u;k=(u=(z=_.Va(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:z.children.length)!=null?u:2;A<=8*k||(this.primaryMenuWidth=A)}};
_.q.onYtUpdateTitleAction=function(A){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.L(A,FoQ).title)};
_.q.onYtUpdateDescriptionAction=function(A){if(A=_.L(A,_.x6w)){var H,k=!((H=this.videoSecondaryInfoRenderer)==null||!H.attributedDescription);A.isEmpty||!A.description&&!A.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):A.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",A.attributedDescription):A.description&&(k?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.B8(A.description)):this.set("videoSecondaryInfoRenderer.description",A.description))}};
_.q.onYtDarkModeToggledAction=function(A){this.isDark=A};
_.q.registerPanel=function(){if(!_.b("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var A=_.b("web_watch_imax_theater_mode")&&this.isTheaterMode;A=_.b("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||A;var H=_.wj().resolve(_.eZ);H&&!A&&H.registerPanel("engagement-panel-structured-description",this)}};
_.q.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.q.parseColorSamplingData=function(){var A;if(_.b("web_delhi_colorful_sd")&&((A=this.structuredDescriptionContentRenderer)==null?0:A.items)&&(A=this.structuredDescriptionContentRenderer.items.find(function(W){return!!_.L(W,mU)}))){var H,k;
this.hoverColor={lightTheme:(H=_.L(A,mU))==null?void 0:H.lightThemeColorPalette,darkTheme:(k=_.L(A,mU))==null?void 0:k.darkThemeColorPalette};var d;this.hoverText=(d=_.L(A,mU))==null?void 0:d.colorSampledDescriptionBodyText}};
_.q.updateHoverColor=function(){if(_.b("web_delhi_colorful_sd")){var A=this.hoverColor,H={},k;A=(k=this.isDark?A==null?void 0:A.darkTheme:A==null?void 0:A.lightTheme)!=null?k:{};k=_.r(lMI);for(var d=k.next();!d.done;d=k.next()){d=d.value;var W=A[d];H["--yt-saturated-"+_.wY(d)]=W?_.h1(W):"initial"}_.NH(this.hostElement,H)}};
_.q.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.q.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.q.showPanel=function(A){this.expandDescription();var H=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;H.resize();var k,d=A==null?void 0:(k=A.sectionListEngagementPanelExtras)==null?void 0:k.scrollToItemSectionIdentifier;d?_.IE.addJob(function(){H==null||H.scrollToSection(d)},8):this.scrollToTopOfContainer()};
_.q.isVisible=function(){return!this.descriptionCollapsed};
_.q.getReloadContinuation=function(){};
_.q.hidePanel=function(){};
_.q.updatePanel=function(){};
_.nP.Object.defineProperties(tp.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var A;return _.b("web_delhi_colorful_sd")&&(A=this.structuredDescriptionContentRenderer)!=null&&A.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(H){return!_.L(H,mU)&&!_.L(H,KoI)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.structuredDescriptionContentRendererComputed)!=null&&A.items){var H;A=_.r((H=this.structuredDescriptionContentRendererComputed)==null?void 0:H.items);for(H=A.next();!H.done;H=A.next())if(H=_.L(H.value,_.shj))return H}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoPrimaryInfoRenderer)==null?0:A.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return!!((A=this.videoSecondaryInfoRenderer)==null?0:(H=A.owner)==null?0:(k=H.videoOwnerRenderer)==null?0:k.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var A,H;if((A=this.videoSecondaryInfoRenderer)==null?0:(H=A.attributedDescription)==null?0:H.content){var k,d;return(d=this.stripAttributedDescription((k=this.videoSecondaryInfoRenderer)==null?void 0:k.attributedDescription))!=null?d:{runs:[]}}}if(_.b("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var W,z,u,B;return(B=(u=(W=this.videoSecondaryInfoRenderer)==
null?void 0:W.description)!=null?u:(z=this.videoSecondaryInfoRenderer)==null?void 0:z.attributedDescription)!=null?B:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=(A=this.videoSecondaryInfoRenderer)==null?void 0:A.headerRuns)!=null?H:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.commentsEntryPointHeaderRenderer)==null||!A.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoMetadataCarousel)==null||!A.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.H5("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var A,H,k=Object.assign({},(A=this.videoSecondaryInfoRenderer)==null?void 0:(H=A.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(k&&k.rows&&k.collapsedItemCount!==void 0&&!(k.rows.length<=k.collapsedItemCount))return k.rows=k.rows.slice(k.collapsedItemCount),k.collapsedItemCount=0,k}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var A,H,k=Object.assign({},(A=this.videoSecondaryInfoRenderer)==null?void 0:(H=A.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(k&&k.rows&&k.collapsedItemCount!==void 0)return k.rows=k.rows.slice(0,k.collapsedItemCount),k.collapsedItemCount=k.rows.length,k}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var A,H;return!!((A=this.structuredDescriptionContentRendererComputed)==null?0:(H=A.items)==null?0:H.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 A;return(A=this.videoSecondaryInfoRenderer)==null?void 0:A.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.videoSecondaryInfoRenderer)==null?0:(H=A.owner)==null?0:(k=H.videoOwnerRenderer)==null?0:k.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var A,H,k,d;return!!((A=this.videoPrimaryInfoRenderer)==null?0:(H=A.videoActions)==null?0:(k=H.menuRenderer)==null?0:(d=k.flexibleItems)==null?0:d.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.jw(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.jw(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var A=this;if(_.b("web_title_hashtag_grey_delinkified")){var H,k=_.iK.unsafeClone((H=this.videoPrimaryInfoRenderer)==null?void 0:H.title);(H=k==null?void 0:k.runs)&&H.forEach(function(d){if(d==null?0:d.navigationEndpoint)d.textColor=4284506208,A.isDark&&(d.textColor=4289374890)});
return k}return(k=this.videoPrimaryInfoRenderer)==null?void 0:k.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.b("web_title_hashtag_black_delinkified")||_.b("web_title_hashtag_grey_delinkified")}}});
tp.prototype.updateHoverColor=tp.prototype.updateHoverColor;tp.prototype.parseColorSamplingData=tp.prototype.parseColorSamplingData;tp.prototype.resetDescriptionState=tp.prototype.resetDescriptionState;tp.prototype.registerPanel=tp.prototype.registerPanel;tp.prototype.onYtExpanderLessTapped=tp.prototype.onYtExpanderLessTapped;tp.prototype.onYtExpanderMoreTapped=tp.prototype.onYtExpanderMoreTapped;tp.prototype.onRenderStamperFinished=tp.prototype.onRenderStamperFinished;
tp.prototype.onYtTextInlineExpanderExpandedChanged=tp.prototype.onYtTextInlineExpanderExpandedChanged;tp.prototype.onYtTextInlineExpanderCollapseClicked=tp.prototype.onYtTextInlineExpanderCollapseClicked;tp.prototype.onYtTextInlineExpanderExpandClicked=tp.prototype.onYtTextInlineExpanderExpandClicked;tp.prototype.moveActionsElement=tp.prototype.moveActionsElement;tp.prototype.updateTopLevelIconsOnly=tp.prototype.updateTopLevelIconsOnly;tp.prototype.structuredDescriptionContentRendererChanged=tp.prototype.structuredDescriptionContentRendererChanged;
tp.prototype.videoSecondaryInfoRendererChanged=tp.prototype.videoSecondaryInfoRendererChanged;tp.prototype.videoPrimaryInfoRendererChanged=tp.prototype.videoPrimaryInfoRendererChanged;tp.prototype.maybeUpdateActionsOnSeparateLine=tp.prototype.maybeUpdateActionsOnSeparateLine;tp.prototype.updateOwnerAndDescriptionPosition=tp.prototype.updateOwnerAndDescriptionPosition;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],tp.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],tp.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],tp.prototype,"ytdReduxBehavior",void 0);
_.E([_.ol("#above-the-fold"),_.l("design:type",HTMLElement)],tp.prototype,"aboveTheFoldContainer",void 0);_.E([_.ol("#menu ytd-menu-renderer"),_.l("design:type",Object)],tp.prototype,"menu",void 0);_.E([_.ol("#description-inline-expander"),_.l("design:type",Object)],tp.prototype,"descriptionInlineExpander",void 0);_.E([_.ol("#faded-structured-description"),_.l("design:type",Object)],tp.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.E([_.ol("#structured-description"),_.l("design:type",Object)],tp.prototype,"structuredDescriptionContentRendererElement",void 0);_.E([_.ol("#title"),_.l("design:type",HTMLElement)],tp.prototype,"titleElement",void 0);_.E([_.ol("#description"),_.l("design:type",HTMLElement)],tp.prototype,"descriptionElement",void 0);_.E([_.ol("#description-interaction"),_.l("design:type",Object)],tp.prototype,"descriptionInteraction",void 0);
_.E([_.ol("#owner"),_.l("design:type",HTMLElement)],tp.prototype,"ownerElement",void 0);_.E([_.ol("#top-row"),_.l("design:type",HTMLElement)],tp.prototype,"topRowElement",void 0);_.E([_.ol("#bottom-row"),_.l("design:type",HTMLElement)],tp.prototype,"bottomRowElement",void 0);_.E([_.ol("#actions"),_.l("design:type",HTMLElement)],tp.prototype,"actionsElement",void 0);_.E([_.ol("#bottom-actions"),_.l("design:type",HTMLElement)],tp.prototype,"bottomActionsElement",void 0);
_.E([_.ol("#ytd-watch-info-text"),_.l("design:type",Object)],tp.prototype,"watchInfoTextElement",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"videoSecondaryInfoRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.E([_.C(),_.l("design:type",Object)],tp.prototype,"videoMetadataCarousel",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.G("structuredDescriptionContentRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"structuredDescriptionContentRendererComputed",null);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"videoSummary",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"merchShelf",void 0);
_.E([_.C(),_.l("design:type",Object)],tp.prototype,"infoPanelBelowMetadata",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"hoverColor",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"hoverText",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"isHovering",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"enableColorSampling",void 0);
_.E([_.G("structuredDescriptionContentRendererComputed"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"productShelf",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"metadataBadgesInDescription",void 0);_.E([_.G("videoPrimaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"shouldHideBadges",null);
_.E([_.G("productShelf","descriptionCollapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tp.prototype,"shouldShowProductShelf",null);_.E([_.C(),_.l("design:type",Boolean)],tp.prototype,"isWatchFlexy",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"descriptionCollapsed",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tp.prototype,"useFadedScrimDescription",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"skinnyMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("videoSecondaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"largerItemWrap",null);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"playlist",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"clarifyBox",void 0);_.E([_.C(),_.l("design:type",Object)],tp.prototype,"playerAds",void 0);
_.E([_.C(),_.l("design:type",Boolean)],tp.prototype,"isDark",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],tp.prototype,"actionsOnSeparateLine",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"disableVideoOwnerOnTap",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"swatcherooDelayLoad",void 0);_.E([_.C(),_.l("design:type",Boolean)],tp.prototype,"suppressTopLevelMetadataRows",void 0);
_.E([_.C(),_.l("design:type",Object)],tp.prototype,"primaryMenuWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"videoId",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"titleHeadlineXs",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"titleHeadlineS",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"titleHeadlineM",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"titleHashtagBlackLinkified",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"titleHashtagGreyLinkified",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.E([_.s6("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"updateOwnerAndDescriptionPosition",null);
_.E([_.s6("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"maybeUpdateActionsOnSeparateLine",null);_.E([_.G("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"descriptionText",null);
_.E([_.G("videoSecondaryInfoRenderer.headerRuns"),_.l("design:type",Array),_.l("design:paramtypes",[])],tp.prototype,"headerRuns",null);_.E([_.C({value:!1}),_.G("commentsEntryPointHeaderRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"hasTeaser",null);_.E([_.C({value:!1,reflectToAttribute:!0}),_.G("videoMetadataCarousel"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"hasTeaserCarousel",null);
_.E([_.C({value:3}),_.G("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"descriptionMaxLines",null);_.E([_.G("videoSecondaryInfoRenderer.metadataRowContainer"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"collapsibleMetadataRows",null);
_.E([_.G("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"alwaysVisibleMetadataRows",null);_.E([_.G("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tp.prototype,"hasInlineStructuredDescription",null);
_.E([_.G("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tp.prototype,"showInlineStructuredDescription",null);_.E([_.G("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"descriptionExpandCommand",null);
_.E([_.G("videoSecondaryInfoRenderer.owner"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"videoOwnerCommand",null);_.E([_.C({reflectToAttribute:!0}),_.G("videoPrimaryInfoRenderer.videoActions"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tp.prototype,"flexMenuEnabled",null);_.E([_.C({selector:_.h8,reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"isFullscreen",void 0);
_.E([_.C({selector:_.iL,reflectToAttribute:!0}),_.l("design:type",Object)],tp.prototype,"isTheaterMode",void 0);_.E([_.G("descriptionText","useFadedScrimDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tp.prototype,"showAttributedStringDescription",null);_.E([_.G("descriptionText","useFadedScrimDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tp.prototype,"showFormattedStringDescription",null);
_.E([_.G("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tp.prototype,"showFadedStructuredDescription",null);_.E([_.s6("videoPrimaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"videoPrimaryInfoRendererChanged",null);_.E([_.G("videoPrimaryInfoRenderer.title"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"videoTitle",null);
_.E([_.G("videoPrimaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],tp.prototype,"noEndpoints",null);_.E([_.s6("videoSecondaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"videoSecondaryInfoRendererChanged",null);
_.E([_.fF("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"structuredDescriptionContentRendererChanged",null);_.E([_.fF("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"updateTopLevelIconsOnly",null);
_.E([_.fF("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"moveActionsElement",null);_.E([_.Ze("yt-text-inline-expander-expand-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.E([_.Ze("yt-text-inline-expander-collapse-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.E([_.Ze("yt-text-inline-expander-expanded-changed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],tp.prototype,"onRenderStamperFinished",null);_.E([_.Ze("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"onYtExpanderMoreTapped",null);_.E([_.Ze("yt-expander-less-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"onYtExpanderLessTapped",null);
_.E([_.fF("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"registerPanel",null);_.E([_.fF("videoSecondaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"resetDescriptionState",null);
_.E([_.fF("structuredDescriptionContentRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"parseColorSamplingData",null);_.E([_.fF("hoverColor","isDark"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tp.prototype,"updateHoverColor",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-watch-metadata"})],tp);
_.Q(tp,"ytd-watch-metadata",function(){if(U5R!==void 0)return U5R;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return U5R=A},{mode:2});var NW=function(){var A=_.a.apply(this,arguments)||this;A.hidden=!1;A.errorScreen=null;A.playlistData={};return A};
_.I(NW,_.a);_.q=NW.prototype;_.q.getPlayer=function(){return this.ytdPlayer};
_.q.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:RQ(["aa","eocs"])}}};
_.q.onActiveChanged=function(){_.F3().dispatch(cgG(this.ytPageBehavior.active))};
_.q.playerDataChanged=function(){var A;(A=this.watchController)==null||A.setPlayerResponse(this.playerData)};
_.q.dataChanged=function(){var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data)};
_.q.sizeChanged=function(){var A,H;(H=(A=this.metadata).resize)==null||H.call(A)};
_.q.attached=function(){this.watchController=new pz(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.q.detached=function(){_.CC(this.watchController);this.watchController=void 0};
_.q.getPlayerContainer=function(){return this.playerContainer};
_.q.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.q.provideRenderingData=function(A,H){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=H;break;case "ERROR_SCREEN":this.errorScreen=H!=null?H:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=H;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=H;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=H;break;case "RICH_METADATA":this.richMetadataRowContainer=H;break;case "CLARIFICATION":this.clarificationData=H;break;case "PLAYLIST":this.playlistData=
H!=null?H:{};break;case "MERCH_SHELF":this.merchShelf=H;break;case "TICKET_SHELF":this.ticketShelf=H;break;case "LIMITED_STATE":this.limitedState=H;break;case "DONATION_SHELF":this.donationShelf=H;break;case "ALERTS":this.alerts=H}};
_.nP.Object.defineProperties(NW.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return!this.hidden&&!!((A=this.data)==null?0:(H=A.contents)==null?0:(k=H.twoColumnWatchNextResults)==null?0:k.conversationBar)}}});
NW.prototype.sizeChanged=NW.prototype.sizeChanged;NW.prototype.dataChanged=NW.prototype.dataChanged;NW.prototype.playerDataChanged=NW.prototype.playerDataChanged;NW.prototype.onActiveChanged=NW.prototype.onActiveChanged;_.E([_.P(di.YtPageBehavior),_.l("design:type",Object)],NW.prototype,"ytPageBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],NW.prototype,"ytComponentBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],NW.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"playerData",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],NW.prototype,"hidden",void 0);_.E([_.ol("#ytd-player"),_.l("design:type",HTMLElement)],NW.prototype,"ytdPlayer",void 0);_.E([_.ol("#player-container"),_.l("design:type",HTMLElement)],NW.prototype,"playerContainer",void 0);_.E([_.ol("#metadata"),_.l("design:type",Object)],NW.prototype,"metadata",void 0);_.E([_.ol("#playlist"),_.l("design:type",HTMLElement)],NW.prototype,"playlistPanel",void 0);
_.E([_.C({selector:oBL,reflectToAttribute:!0}),_.l("design:type",Object)],NW.prototype,"fixie",void 0);_.E([_.C({selector:_.v$X,reflectToAttribute:!0}),_.l("design:type",Object)],NW.prototype,"singleColumn",void 0);_.E([_.C({selector:function(A){return _.iL(A)&&!_.h8(A)},
reflectToAttribute:!0}),_.l("design:type",Object)],NW.prototype,"theater",void 0);_.E([_.C({selector:_.h8,reflectToAttribute:!0}),_.l("design:type",Object)],NW.prototype,"fullscreen",void 0);_.E([_.C({selector:w0e}),_.l("design:type",Object)],NW.prototype,"windowSize",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"singleColumnContents",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"errorScreen",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"playlistData",void 0);
_.E([_.C(),_.l("design:type",Object)],NW.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"videoSecondaryInfoRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"richMetadataRowContainer",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"clarificationData",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"ticketShelf",void 0);
_.E([_.C(),_.l("design:type",Object)],NW.prototype,"merchShelf",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"donationShelf",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"limitedState",void 0);_.E([_.C(),_.l("design:type",Object)],NW.prototype,"alerts",void 0);_.E([_.G("playlistData"),_.l("design:type",Object),_.l("design:paramtypes",[])],NW.prototype,"hasPlaylistData",null);
_.E([_.G("data","hidden"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],NW.prototype,"hasChat",null);_.E([_.fF("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],NW.prototype,"onActiveChanged",null);_.E([_.fF("playerData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],NW.prototype,"playerDataChanged",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],NW.prototype,"dataChanged",null);_.E([_.fF("windowSize","singleColumn"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],NW.prototype,"sizeChanged",null);
_.Q(NW,"ytd-watch-fixie",function(){if(m5_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);m5_=A}A=m5_;return A},{mode:1});var $5L;var MW=function(){var A=_.a.apply(this,arguments)||this;A.viewTransitionEnabled=_.b("enable_player_resize_transition");A.smallerChatMinHeight=_.b("live_chat_smaller_min_height");A.isDarkTheme=document.documentElement.hasAttribute("dark");A.defaultCollapsePlaylist=_.b("web_watch_default_collapse_playlist");A.respectAspectRatio=_.b("web_enable_aspect_ratio_fix");A.retroModeReduxValue=!1;A.persistentPanelVisibleValue=!1;return A};
_.I(MW,_.a);_.q=MW.prototype;_.q.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.q.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.q.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.q.updateRetroModeReduxValue=function(){_.b("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.q.updatePersistentPanelVisibleValue=function(){_.b("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.q.ready=function(){var A=this,H=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.q.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.q.updateIsTwoColumnsFromBinding=function(A){_.b("web_watch_update_narrow_width_killswitch")||_.F3().dispatch(pD_(!A.detail.value));this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.q.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.q.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.q.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.q.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.q.updateShownItemsFromBinding=function(A){A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value};
_.q.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22221_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22221_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}};
_.nP.Object.defineProperties(MW.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(A=_.L(this.data.pageVisualEffects[H],Rj))return H=void 0,(H=A.config)==null?void 0:H.enableInLightTheme;return!1}}});
_.nP.Object.defineProperties(MW,{template:{configurable:!0,enumerable:!0,get:function(){if($5L===void 0){var A=document.createElement("template");_.Y(A,'\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="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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);$5L=A}A=$5L;return A}}});
MW.prototype.updatePersistentPanelVisibleValue=MW.prototype.updatePersistentPanelVisibleValue;MW.prototype.updateRetroModeReduxValue=MW.prototype.updateRetroModeReduxValue;MW.prototype.updateScrollTopValue=MW.prototype.updateScrollTopValue;MW.prototype.updateFullscreenValue=MW.prototype.updateFullscreenValue;MW.prototype.updateTheaterValue=MW.prototype.updateTheaterValue;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],MW.prototype,"ytComponentBehavior",void 0);_.E([_.P(OQ_.YtdWatchBehavior),_.l("design:type",Object)],MW.prototype,"ytdWatchBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],MW.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],MW.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],MW.prototype,"playerData",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"viewTransitionEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"smallerChatMinHeight",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"isDarkTheme",void 0);_.E([_.C(),_.l("design:type",Object)],MW.prototype,"defaultCollapsePlaylist",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"respectAspectRatio",void 0);
_.E([_.C({selector:_.iL}),_.l("design:type",Object)],MW.prototype,"theaterValue",void 0);_.E([_.C({selector:_.h8}),_.l("design:type",Object)],MW.prototype,"fullscreenValue",void 0);_.E([_.C({selector:$o}),_.l("design:type",Object)],MW.prototype,"scrollTopValue",void 0);_.E([_.C({selector:_.hr}),_.l("design:type",Object)],MW.prototype,"miniplayerIsActive",void 0);_.E([_.C({selector:function(A){return A.watch.isWatchRetroMode}}),
_.l("design:type",Object)],MW.prototype,"retroModeReduxValue",void 0);_.E([_.C({selector:_.yP.persistentPanelVisibleSelector}),_.l("design:type",Object)],MW.prototype,"persistentPanelVisibleValue",void 0);_.E([of("ytd-player"),_.l("design:type",HTMLElement)],MW.prototype,"ytdPlayer",void 0);_.E([_.ol("#playlist"),_.l("design:type",HTMLElement)],MW.prototype,"JSC$22221_ytdPlaylistPanelRenderer",void 0);_.E([of("ytd-comments"),_.l("design:type",HTMLElement)],MW.prototype,"ytdComments",void 0);
_.E([_.ol("#primary"),_.l("design:type",HTMLElement)],MW.prototype,"primary",void 0);_.E([_.ol("#secondary"),_.l("design:type",HTMLElement)],MW.prototype,"secondary",void 0);_.E([_.ol("#player-container"),_.l("design:type",HTMLElement)],MW.prototype,"playerContainer",void 0);_.E([_.ol("#below"),_.l("design:type",HTMLElement)],MW.prototype,"below",void 0);_.E([_.ol("#cinematics"),_.l("design:type",HTMLElement)],MW.prototype,"JSC$22221_cinematics",void 0);
_.E([_.ol("#persistent-panel-container"),_.l("design:type",HTMLElement)],MW.prototype,"persistentPanelContainer",void 0);_.E([_.fF("theaterValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MW.prototype,"updateTheaterValue",null);_.E([_.fF("fullscreenValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MW.prototype,"updateFullscreenValue",null);
_.E([_.fF("scrollTopValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MW.prototype,"updateScrollTopValue",null);_.E([_.fF("retroModeReduxValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MW.prototype,"updateRetroModeReduxValue",null);_.E([_.fF("persistentPanelVisibleValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MW.prototype,"updatePersistentPanelVisibleValue",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],MW.prototype,"cinematicLightTheme",null);_.E([_.O6({is:"ytd-watch-flexy"})],MW);var AL_;var HWL;var sRI=function(){return _.a.apply(this,arguments)||this};
_.I(sRI,_.a);_.E([_.O6({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],sRI);
_.Q(sRI,"ytd-ghost-comments-renderer",function(){if(HWL===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);HWL=A}A=HWL;return A},{mode:1});var kuQ;var d$B=function(){return _.a.apply(this,arguments)||this};
_.I(d$B,_.a);_.E([_.O6({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],d$B);
_.Q(d$B,"ytd-ghost-watch-metadata-renderer",function(){if(kuQ===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);kuQ=A}A=kuQ;return A},{mode:1});var nQ=function(){var A=_.a.apply(this,arguments)||this;A.ghostGridRenderer={rows:6};A.smallerChatMinHeight=_.b("live_chat_smaller_min_height");A.darkerPanels=_.b("web_watch_darker_panels");A.isDarkTheme=document.documentElement.hasAttribute("dark");return A};
_.I(nQ,_.a);_.q=nQ.prototype;_.q.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.q.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.q.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.q.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.q.ready=function(){var A=this,H=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.q.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.q.updateIsTwoColumnsFromBinding=function(A){this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.q.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.q.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.q.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.q.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.q.updateShownItemsFromBinding=function(A){_.b("swatcheroo_direct_use_rich_grid")||(A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value)};
_.q.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22226_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22226_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.nP.Object.defineProperties(nQ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(A=_.L(this.data.pageVisualEffects[H],Rj))return H=void 0,(H=A.config)==null?void 0:H.enableInLightTheme;return!1}}});
nQ.prototype.updateMiniplayerIsActiveValue=nQ.prototype.updateMiniplayerIsActiveValue;nQ.prototype.updateScrollTopValue=nQ.prototype.updateScrollTopValue;nQ.prototype.updateFullscreenValue=nQ.prototype.updateFullscreenValue;nQ.prototype.updateTheaterValue=nQ.prototype.updateTheaterValue;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],nQ.prototype,"ytComponentBehavior",void 0);
_.E([_.P(OQ_.YtdWatchBehavior),_.l("design:type",Object)],nQ.prototype,"ytdWatchBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],nQ.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],nQ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],nQ.prototype,"ghostGridRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],nQ.prototype,"playerData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],nQ.prototype,"smallerChatMinHeight",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],nQ.prototype,"darkerPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],nQ.prototype,"isDarkTheme",void 0);_.E([_.C({selector:_.iL}),_.l("design:type",Object)],nQ.prototype,"theaterValue",void 0);_.E([_.C({selector:_.h8}),_.l("design:type",Object)],nQ.prototype,"fullscreenValue",void 0);_.E([_.C({selector:$o}),_.l("design:type",Object)],nQ.prototype,"scrollTopValue",void 0);
_.E([_.C({selector:_.hr}),_.l("design:type",Object)],nQ.prototype,"miniplayerIsActiveValue",void 0);_.E([_.ol("#ytd-player"),_.l("design:type",HTMLElement)],nQ.prototype,"ytdPlayer",void 0);_.E([_.ol("#playlist"),_.l("design:type",HTMLElement)],nQ.prototype,"JSC$22226_ytdPlaylistPanelRenderer",void 0);_.E([_.ol("#ytd-comments"),_.l("design:type",HTMLElement)],nQ.prototype,"ytdComments",void 0);_.E([_.ol("#primary"),_.l("design:type",HTMLElement)],nQ.prototype,"primary",void 0);
_.E([_.ol("#secondary"),_.l("design:type",HTMLElement)],nQ.prototype,"secondary",void 0);_.E([_.ol("#player-container"),_.l("design:type",HTMLElement)],nQ.prototype,"playerContainer",void 0);_.E([_.ol("#cinematics"),_.l("design:type",HTMLElement)],nQ.prototype,"JSC$22226_cinematics",void 0);_.E([_.fF("theaterValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nQ.prototype,"updateTheaterValue",null);
_.E([_.fF("fullscreenValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nQ.prototype,"updateFullscreenValue",null);_.E([_.fF("scrollTopValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nQ.prototype,"updateScrollTopValue",null);_.E([_.fF("miniplayerIsActiveValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nQ.prototype,"updateMiniplayerIsActiveValue",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],nQ.prototype,"cinematicLightTheme",null);
_.Q(nQ,"ytd-watch-grid",function(){if(AL_===void 0){var A=document.createElement("template");_.Y(A,'\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="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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);AL_=A}A=AL_;return A},{mode:2});var WqQ;var ZE=function(){var A=_.a.apply(this,arguments)||this;A.flexy=!0;A.learningJourney=!0;A.viewTransitionEnabled=_.b("enable_player_resize_transition");A.smallerChatMinHeight=_.b("live_chat_smaller_min_height");A.isDarkTheme=document.documentElement.hasAttribute("dark");A.theaterLargerPlayer=_.b("web_watch_theater_larger_player");A.defaultCollapsePlaylist=_.b("web_watch_default_collapse_playlist");A.enableCanvasLayout=_.b("web_enable_canvas_on_learning_journey");return A};
_.I(ZE,_.a);_.q=ZE.prototype;_.q.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.q.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.q.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.q.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.q.ready=function(){var A=this,H=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.q.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.q.updateIsTwoColumnsFromBinding=function(A){_.b("web_watch_update_narrow_width_killswitch")||_.F3().dispatch(pD_(!A.detail.value));this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.q.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.q.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.q.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.q.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.q.updateShownItemsFromBinding=function(A){A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value};
_.q.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22229_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22229_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.nP.Object.defineProperties(ZE.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 A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(A=_.L(this.data.pageVisualEffects[H],Rj))return H=void 0,(H=A.config)==null?void 0:H.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.learningJourneyEngagementPanels)==null?void 0:A.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var A,H=(A=this.learningJourneyEngagementPanels)==null?void 0:A.find(function(J){var g;return(J==null?void 0:(g=J.engagementPanelSectionListRenderer)==null?void 0:g.panelIdentifier)==="learning-journey-engagement-panel"});
if(H){var k,d,W,z,u,B,h,O,T;if(A=(O=((h=(u=((z=H==null?void 0:(k=H.engagementPanelSectionListRenderer)==null?void 0:(d=k.content)==null?void 0:(W=d.sectionListRenderer)==null?void 0:W.contents)!=null?z:[])[0])==null?void 0:(B=u.itemSectionRenderer)==null?void 0:B.contents)!=null?h:[])[0])==null?void 0:(T=O.accordionViewModel)==null?void 0:T.onTitleTap){var m=_.h7(A);if(m)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.n0.instance.resolveCommand(m)}}}}}}});
_.nP.Object.defineProperties(ZE,{template:{configurable:!0,enumerable:!0,get:function(){if(WqQ===void 0){var A=document.createElement("template");_.Y(A,'\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="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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);WqQ=A}A=WqQ;return A}}});
ZE.prototype.updateMiniplayerIsActiveValue=ZE.prototype.updateMiniplayerIsActiveValue;ZE.prototype.updateScrollTopValue=ZE.prototype.updateScrollTopValue;ZE.prototype.updateFullscreenValue=ZE.prototype.updateFullscreenValue;ZE.prototype.updateTheaterValue=ZE.prototype.updateTheaterValue;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],ZE.prototype,"ytComponentBehavior",void 0);
_.E([_.P(MWB.YtdLearningJourneyWatchBehavior),_.l("design:type",Object)],ZE.prototype,"ytdWatchBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],ZE.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ZE.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],ZE.prototype,"playerData",void 0);_.E([_.C(),_.l("design:type",Object)],ZE.prototype,"browseData",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ZE.prototype,"flexy",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ZE.prototype,"learningJourney",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ZE.prototype,"viewTransitionEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ZE.prototype,"smallerChatMinHeight",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ZE.prototype,"isDarkTheme",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ZE.prototype,"theaterLargerPlayer",void 0);_.E([_.C(),_.l("design:type",Object)],ZE.prototype,"defaultCollapsePlaylist",void 0);_.E([_.C(),_.l("design:type",Object)],ZE.prototype,"enableCanvasLayout",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("playerData","browseData","enableCanvasLayout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ZE.prototype,"showBrowseResponse",null);
_.E([_.C({reflectToAttribute:!0}),_.G("playerData","enableCanvasLayout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ZE.prototype,"showWatchResponse",null);_.E([_.C({selector:_.iL}),_.l("design:type",Object)],ZE.prototype,"theaterValue",void 0);_.E([_.C({selector:_.h8}),_.l("design:type",Object)],ZE.prototype,"fullscreenValue",void 0);_.E([_.C({selector:$o}),_.l("design:type",Object)],ZE.prototype,"scrollTopValue",void 0);
_.E([_.C({selector:_.hr}),_.l("design:type",Object)],ZE.prototype,"miniplayerIsActiveValue",void 0);_.E([_.ol("#ytd-plj-player"),_.l("design:type",HTMLElement)],ZE.prototype,"ytdPlayer",void 0);_.E([_.ol("#playlist"),_.l("design:type",HTMLElement)],ZE.prototype,"JSC$22229_ytdPlaylistPanelRenderer",void 0);_.E([of("ytd-comments"),_.l("design:type",HTMLElement)],ZE.prototype,"ytdComments",void 0);_.E([_.ol("#primary"),_.l("design:type",HTMLElement)],ZE.prototype,"primary",void 0);
_.E([_.ol("#secondary"),_.l("design:type",HTMLElement)],ZE.prototype,"secondary",void 0);_.E([_.ol("#player-container"),_.l("design:type",HTMLElement)],ZE.prototype,"playerContainer",void 0);_.E([_.ol("#cinematics"),_.l("design:type",HTMLElement)],ZE.prototype,"JSC$22229_cinematics",void 0);_.E([_.fF("theaterValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZE.prototype,"updateTheaterValue",null);
_.E([_.fF("fullscreenValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZE.prototype,"updateFullscreenValue",null);_.E([_.fF("scrollTopValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZE.prototype,"updateScrollTopValue",null);_.E([_.fF("miniplayerIsActiveValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZE.prototype,"updateMiniplayerIsActiveValue",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZE.prototype,"cinematicLightTheme",null);_.E([_.C({reflectToAttribute:!0}),_.G("learningJourneyEngagementPanels"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZE.prototype,"hasLearningJourneyPanels",null);_.E([_.G("learningJourneyEngagementPanels"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZE.prototype,"backButtonData",null);_.E([_.O6({is:"ytd-watch-learning-journey"})],ZE);var zi_;var fQ=function(){var A=_.a.apply(this,arguments)||this;A.systemIcons=_.b("kevlar_system_icons");return A};
_.I(fQ,_.a);_.q=fQ.prototype;_.q.ready=function(){this.hostElement.addEventListener("tap",_.nF(this,this.onEndpointTapExtra))};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.q.onFocus=function(){var A;(A=_.Va(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.q.onEndpointTapExtra=function(A){_.Ed(this.hostElement,"iron-activate");var H=this.data.navigationEndpoint;H&&_.L(H,_.t7r)&&(A.stopPropagation(),_.NT(this.hostElement,[H],this.hostElement))};
_.q.computeIcon=function(A){return A&&A.iconType?_.N0(A.iconType):""};
_.q.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.q.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.q.forceUpdateStylesOnLegacyBrowsers=function(){_.b("kevlar_legacy_browsers")&&_.NH(this.hostElement)};
fQ.prototype.forceUpdateStylesOnLegacyBrowsers=fQ.prototype.forceUpdateStylesOnLegacyBrowsers;fQ.prototype.onFocus=fQ.prototype.onFocus;_.E([_.P(_.Kk),_.l("design:type",Object)],fQ.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.BUL.YtConditionalRendererBehavior),_.l("design:type",Object)],fQ.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.P(_.MY.YtEndpointBehavior),_.l("design:type",Object)],fQ.prototype,"ytEndpointBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],fQ.prototype,"data",void 0);_.E([_.C({computed:"computeIcon(data.icon)",value:""}),_.l("design:type",String)],fQ.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],fQ.prototype,"useIcons",void 0);_.E([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.l("design:type",Boolean)],fQ.prototype,"hasSeparator",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],fQ.prototype,"systemIcons",void 0);_.E([_.Ze("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fQ.prototype,"onFocus",null);_.E([_.fF("useIcons","hasSeparator"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fQ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Q(fQ,"ytd-menu-navigation-item-renderer",function(){if(zi_===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);zi_=A}A=zi_;return A},{mode:1});var q$1;var rLB=_.Yu(_.$r("DOWNLOAD",{},"Download")),ugM=_.Yu(_.$r("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),BgL=_.Yu(_.$r("RETRY",{},"Retry")),eiL=_.Yu(_.$r("PAUSE_DOWNLOADING",{},"Pause downloading")),x$R=_.Yu(_.$r("RESUME_DOWNLOAD",{},"Resume download")),w8=function(){var A=_.a.apply(this,arguments)||this;A.primaryText=rLB;A.primaryIconType="OFFLINE_DOWNLOAD";A.hasSecondaryContent=!1;A.hasSeparator=!1;A.transferState="TRANSFER_STATE_UNKNOWN";A.isVideoDeletedByUser=!1;A.isHidden=!1;A.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return A};
_.I(w8,_.a);_.q=w8.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.q.onFocus=function(){this.primaryEntry.focus()};
_.q.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.q.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.q.getRemoveAction=function(){return"ACTION_REMOVE"};
_.q.sendOfflineAction=function(A){var H=this.data.serviceEndpoint;if(H){var k=_.L(H,_.fj);k&&A&&(k.action=A);this.ytComponentBehavior.resolveCommand(H)}};
_.q.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=rLB,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=rLB;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=BgL;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=ugM;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=x$R;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=ugM;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
eiL;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=ugM;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=ugM;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=rLB,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.q.showHideButton=function(){var A;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((A=this.playerStateEntity)==null?void 0:A.adsState)==="ADS_STATE_PLAYING"};
_.q.isSecondaryEntryHidden=function(A,H){return A?!0:!H};
_.q.computeHasSeparator=function(){var A;return!((A=this.data)==null||!A.hasSeparator)};
_.q.computePlayerStateEntityKey=function(A){return A};
w8.prototype.showHideButton=w8.prototype.showHideButton;w8.prototype.onTransferStateChange=w8.prototype.onTransferStateChange;w8.prototype.onFocus=w8.prototype.onFocus;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],w8.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],w8.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],w8.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],w8.prototype,"primaryText",void 0);_.E([_.C(),_.l("design:type",String)],w8.prototype,"primaryIconType",void 0);_.E([_.C(),_.l("design:type",String)],w8.prototype,"primaryAction",void 0);_.E([_.C(),_.l("design:type",Object)],w8.prototype,"secondaryText",void 0);_.E([_.C(),_.l("design:type",String)],w8.prototype,"secondaryIconType",void 0);
_.E([_.C(),_.l("design:type",String)],w8.prototype,"secondaryAction",void 0);_.E([_.C(),_.l("design:type",Object)],w8.prototype,"hasSecondaryContent",void 0);_.E([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.l("design:type",Object)],w8.prototype,"hasSeparator",void 0);_.E([_.C({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.l("design:type",String)],w8.prototype,"playerStateEntityKey",void 0);
_.E([_.C({selector:_.UR,selectorArgs:["playerStateEntityKey"]}),_.l("design:type",Object)],w8.prototype,"playerStateEntity",void 0);_.E([_.C({selector:_.TK,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.l("design:type",String)],w8.prototype,"transferState",void 0);_.E([_.C({selector:_.nLA,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.l("design:type",Object)],w8.prototype,"isVideoDeletedByUser",void 0);
_.E([_.C(),_.l("design:type",Object)],w8.prototype,"isHidden",void 0);_.E([_.C({selector:_.V3W,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.l("design:type",Object)],w8.prototype,"offlineabilityState",void 0);_.E([_.ol("#primary-entry"),_.l("design:type",Object)],w8.prototype,"primaryEntry",void 0);_.E([_.Ze("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w8.prototype,"onFocus",null);
_.E([_.s6("transferState","isVideoDeletedByUser"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w8.prototype,"onTransferStateChange",null);_.E([_.s6("offlineabilityState","playerStateEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w8.prototype,"showHideButton",null);
_.Q(w8,"ytd-menu-service-item-download-renderer",function(){if(q$1===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);q$1=A}A=q$1;return A},{mode:1});var iWB;var ot=function(){var A=_.a.apply(this,arguments)||this;A.useIcons=!1;A.systemIcons=_.b("kevlar_system_icons");return A};
_.I(ot,_.a);_.q=ot.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.q.onFocus=function(){var A;(A=_.Va(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.q.onTap=function(){_.li(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var A=this.data.serviceEndpoint,H=this.data.command;if(A){var k,d=(k=this.data)==null?void 0:k.trackingParams;k=!!_.L(A,_.Qhw);d&&k&&_.F3().dispatch(_.p8({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:d}}));this.ytComponentBehavior.resolveCommand(A)||_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}})}H&&(this.ytComponentBehavior.resolveCommand(H)||_.NT(this.hostElement,
[H],this.hostElement))};
_.q.computeIcon=function(A){return A&&A.iconType?_.N0(A.iconType):""};
_.q.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.q.computeHasSeparator=function(){var A;return!((A=this.data)==null||!A.hasSeparator)};
_.q.forceUpdateStylesOnLegacyBrowsers=function(){_.b("kevlar_legacy_browsers")&&_.NH(this.hostElement)};
_.q.computeIsSelected=function(){var A;return!((A=this.data)==null||!A.isSelected)};
ot.prototype.forceUpdateStylesOnLegacyBrowsers=ot.prototype.forceUpdateStylesOnLegacyBrowsers;ot.prototype.onTap=ot.prototype.onTap;ot.prototype.onFocus=ot.prototype.onFocus;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],ot.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],ot.prototype,"ytComponentBehavior",void 0);
_.E([_.P(_.BUL.YtConditionalRendererBehavior),_.l("design:type",Object)],ot.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ot.prototype,"data",void 0);_.E([_.C({computed:"computeIcon(data.icon)",value:""}),_.l("design:type",String)],ot.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ot.prototype,"useIcons",void 0);
_.E([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ot.prototype,"hasSeparator",void 0);_.E([_.C({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ot.prototype,"isSelected",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],ot.prototype,"systemIcons",void 0);
_.E([_.Ze("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ot.prototype,"onFocus",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],ot.prototype,"onTap",null);_.E([_.fF("useIcons","hasSeparator"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ot.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Q(ot,"ytd-menu-service-item-renderer",function(){if(iWB===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);iWB=A}A=iWB;return A},{mode:2});var hiL;var $P=function(){return _.a.apply(this,arguments)||this};
_.I($P,_.a);_.q=$P.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onDataChanged=function(){var A=this;_.No(this,function(){A.postbox.openDialog();A.focus();_.Ed(A.hostElement,"yt-refit")})};
_.q.focus=function(){this.postbox.focus()};
_.q.closePopup=function(){_.Ud(this.hostElement,"yt-close-popup-action")};
_.q.onYtCommentboxDismiss=function(){this.closePopup()};
$P.prototype.onYtCommentboxDismiss=$P.prototype.onYtCommentboxDismiss;$P.prototype.onDataChanged=$P.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$P.prototype,"data",void 0);_.E([_.C({value:function(){return _.$r("SBOX_INAPPROPRIATE_CANCEL")}}),
_.l("design:type",String)],$P.prototype,"closeButtonAriaLabel",void 0);_.E([_.ol("#postbox"),_.l("design:type",Object)],$P.prototype,"postbox",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$P.prototype,"onDataChanged",null);_.E([_.Ze("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$P.prototype,"onYtCommentboxDismiss",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],$P);
_.Q($P,"ytd-backstage-post-dialog-popup-renderer",function(){if(hiL!==void 0)return hiL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return hiL=A},{mode:1});var OWL;var At=function(){var A=_.a.apply(this,arguments)||this;A.modernModal=!0;return A};
_.I(At,_.a);At.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
At.prototype.computeShouldHideOldButtons=function(){var A;return!((A=this.data)==null?0:A.button)};
_.nP.Object.defineProperties(At.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var A,H;return(A=this.data)==null?void 0:(H=A.button)==null?void 0:H.buttonRenderer}}});
_.E([_.C(),_.l("design:type",Object)],At.prototype,"data",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],At.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],At.prototype,"modernModal",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],At.prototype,"buttonRendererData",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],At);
_.Q(At,"ytd-modal-with-title-and-button-renderer",function(){if(OWL!==void 0)return OWL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return OWL=A},{mode:1});var RiI;var HE=function(){return _.a.apply(this,arguments)||this};
_.I(HE,_.a);HE.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("page-changed",this.page))};
HE.prototype.pageChangedForBinding=HE.prototype.pageChangedForBinding;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],HE.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],HE.prototype,"page",void 0);_.E([_.fF("page"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HE.prototype,"pageChangedForBinding",null);
_.E([_.O6({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],HE);
_.Q(HE,"ytd-account-item-section-header-renderer",function(){if(RiI!==void 0)return RiI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return RiI=A},{mode:1});var TgV;var sy=function(){return _.a.apply(this,arguments)||this};
_.I(sy,_.a);sy.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"}}}};
sy.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.DV),_.l("design:type",Object)],sy.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],sy.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!1}),_.l("design:type",Function)],sy.prototype,"onAccountItemTap",void 0);
_.E([_.O6({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],sy);
_.Q(sy,"ytd-account-item-section-renderer",function(){if(TgV!==void 0)return TgV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return TgV=A},{mode:1});var m$B;var JLB;var gy3=function(){return _.a.apply(this,arguments)||this};
_.I(gy3,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gy3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gy3.prototype,"data",void 0);_.E([_.O6({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],gy3);
_.Q(gy3,"ytd-accounts-dialog-header-renderer",function(){if(JLB!==void 0)return JLB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return JLB=A},{mode:1});var bWR;var kR=function(){return _.a.apply(this,arguments)||this};
_.I(kR,_.a);kR.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],kR.prototype,"data",void 0);_.E([_.O6({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],kR);
_.Q(kR,"ytd-google-account-header-renderer",function(){if(bWR!==void 0)return bWR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return bWR=A},{mode:1});var dJ=function(){return _.a.apply(this,arguments)||this};
_.I(dJ,_.a);dJ.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"}}}};
dJ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("page-changed",this.page))};
dJ.prototype.pageChangedForBinding=dJ.prototype.pageChangedForBinding;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],dJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],dJ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],dJ.prototype,"page",void 0);
_.E([_.fF("page"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dJ.prototype,"pageChangedForBinding",null);_.E([_.O6({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],dJ);
_.Vu()(dJ,"ytd-account-section-list-renderer",function(){if(m$B===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);m$B=A}A=m$B;return A},{allowedProps:["data"],
mode:1});var Lq_;var WE=function(){var A=_.a.apply(this,arguments)||this;A.enableHandlesAccountMenuSwitcher=_.b("enable_handles_account_menu_switcher");return A};
_.I(WE,_.a);WE.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
WE.prototype.dataChanged=WE.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],WE.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],WE.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.E([_.ol("#avatar"),_.l("design:type",Object)],WE.prototype,"avatar",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WE.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],WE);
_.Vu()(WE,"ytd-active-account-header-renderer",function(){if(Lq_===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);Lq_=A}A=Lq_;return A},{allowedProps:["data"],
mode:1});var vyM;var yL3;var zz=function(){return _.a.apply(this,arguments)||this};
_.I(zz,_.a);zz.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zz.prototype.onBackTap=function(){_.Ed(this.hostElement,"yt-menu-back-tapped")};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zz.prototype,"data",void 0);_.E([_.O6({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],zz);
_.Vu()(zz,"ytd-simple-menu-header-renderer",function(){if(yL3===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);yL3=A}A=yL3;return A},{allowedProps:["data"],
mode:2});var jRR;var Ia1=function(){return _.a.apply(this,arguments)||this};
_.I(Ia1,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ia1.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ia1.prototype,"data",void 0);_.E([_.O6({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Ia1);
_.Q(Ia1,"ytd-comment-video-thumbnail-header-renderer",function(){if(jRR!==void 0)return jRR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return jRR=A},{mode:1});var Y$_;var P6B=function(){return _.a.apply(this,arguments)||this};
_.I(P6B,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],P6B.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],P6B.prototype,"data",void 0);_.E([_.O6({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],P6B);
_.Q(P6B,"ytd-abuse-type-selector-renderer",function(){if(Y$_!==void 0)return Y$_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Y$_=A},{mode:1});var GuR;var FqM=(0,_.e0p)(_.BpN.reportChannelAbuse,{isVideoIdSelectedSelector:function(A,H){return H in A.selectedVideoIds},
additionalContextSelector:function(A){return A.additionalContext},
impersonatedChannelUrlSelector:function(A){return A.impersonatedChannelUrl},
reportChannelAbuseSelector:function(A){return A}});var qq=function(){return _.a.apply(this,arguments)||this};
_.I(qq,_.a);qq.prototype.attached=function(){var A=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){A.additionalContextInput.focusTextInput()})};
qq.prototype.handleAdditionalContextChanged=function(){var A=this;_.vW(this,"ytd-report-channel-additional-context-update",function(){A.ytdReduxBehavior.dispatch(_.p8({type:"ADDITIONAL_CONTEXT_UPDATED",payload:A.additionalContext}))},300)};
qq.prototype.updateAdditionalContextFromBinding=function(A){this.additionalContext=A.detail.value};
qq.prototype.handleAdditionalContextChanged=qq.prototype.handleAdditionalContextChanged;_.E([_.P(_.TG),_.l("design:type",Object)],qq.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",String)],qq.prototype,"additionalContext",void 0);_.E([_.C({selector:FqM.additionalContextSelector}),_.l("design:type",String)],qq.prototype,"additionalContextRedux",void 0);_.E([_.C(),_.l("design:type",Object)],qq.prototype,"data",void 0);
_.E([_.ol("yt-text-input-form-field-renderer"),_.l("design:type",Object)],qq.prototype,"additionalContextInput",void 0);_.E([_.fF("additionalContext"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qq.prototype,"handleAdditionalContextChanged",null);_.E([_.O6({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],qq);
_.Q(qq,"ytd-report-channel-modal-additional-context-renderer",function(){if(GuR!==void 0)return GuR;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return GuR=A},{mode:1});var X1i;var rJ=function(){var A=_.a.apply(this,arguments)||this;A.nextButtonDisabled=null;A.submitEndpoint=null;A.navigationEndpoint=null;A.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return A};
_.I(rJ,_.a);_.q=rJ.prototype;_.q.computeNextButtonData=function(A,H,k){var d={};H&&(d.navigationEndpoint=H);k&&(d.serviceEndpoint=k);A&&A.buttonRenderer&&_.iK.extend(d,A.buttonRenderer);return d};
_.q.handleReportChannelModalDisableNextButtonAction=function(A){this.setNextButtonIsDisabled(A)};
_.q.handleReportFormEndpointUpdateAction=function(A){this.setNextButtonIsDisabled(!!A.disableSubmitButton);this.resetEndpointData();A.submitEndpoint?this.submitEndpoint=A.submitEndpoint:A.submitNavigationEndpoint&&(this.navigationEndpoint=A.submitNavigationEndpoint)};
_.q.handleSignalActionSubmitForm=function(){var A,H=Object.keys(((A=this.reportChannelAbuseForm)==null?void 0:A.selectedVideoIds)||{}),k;A=((k=this.reportChannelAbuseForm)==null?void 0:k.additionalContext)||"";var d;k=((d=this.reportChannelAbuseForm)==null?void 0:d.impersonatedChannelUrl)||"";var W;if((W=this.data)==null?0:W.submitEndpoint){H={impersonated_channel_url:k,text:A,video_ids:H};var z;_.wj().resolve(_.J7).resolveCommand((z=this.data)==null?void 0:z.submitEndpoint,{form:Object.assign({},
H,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.q.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.q.onYtServiceRequestError=function(A){this.setNextButtonIsDisabled(!1);_.YH(this.hostElement,A.detail.error.message)};
_.q.setNextButtonIsDisabled=function(A){this.set("data.nextButton.buttonRenderer.isDisabled",A)};
_.q.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
rJ.prototype.onYtServiceRequestError=rJ.prototype.onYtServiceRequestError;rJ.prototype.onYtServiceRequestCompleted=rJ.prototype.onYtServiceRequestCompleted;_.E([_.C(),_.l("design:type",Object)],rJ.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],rJ.prototype,"nextButtonDisabled",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],rJ.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],rJ.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rJ.prototype,"submitEndpoint",void 0);_.E([_.C(),_.l("design:type",Object)],rJ.prototype,"navigationEndpoint",void 0);_.E([_.C({selector:FqM.reportChannelAbuseSelector}),_.l("design:type",Object)],rJ.prototype,"reportChannelAbuseForm",void 0);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rJ.prototype,"onYtServiceRequestCompleted",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rJ.prototype,"onYtServiceRequestError",null);_.E([_.O6({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],rJ);
_.Q(rJ,"ytd-report-channel-modal-footer-renderer",function(){if(X1i!==void 0)return X1i;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return X1i=A},{mode:1});var D$L;var uz=function(){var A=_.a.apply(this,arguments)||this;A.boundOnTapDismissButton=function(){A.closePopup()};
return A};
_.I(uz,_.a);uz.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
uz.prototype.handleDataChanged=function(){_.EY(this.hostElement)};
uz.prototype.closePopup=function(){_.Ud(this.hostElement,"yt-close-popup-action")};
uz.prototype.handleDataChanged=uz.prototype.handleDataChanged;_.E([_.C(),_.l("design:type",Object)],uz.prototype,"boundOnTapDismissButton",void 0);_.E([_.C(),_.l("design:type",Object)],uz.prototype,"data",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uz.prototype,"handleDataChanged",null);_.E([_.O6({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],uz);
_.Q(uz,"ytd-report-channel-modal-header-renderer",function(){if(D$L!==void 0)return D$L;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return D$L=A},{mode:1});var S$G;var BE=function(){var A=_.a.apply(this,arguments)||this;A.autoValidate=!1;A.invalid=!1;A.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return A};
_.I(BE,_.a);_.q=BE.prototype;_.q.attached=function(){var A=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){A.channelUrlInput.focusTextInput()})};
_.q.disableNextButton=function(A){_.Ud(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[A])};
_.q.handleImpersonatedChannelUrlChanged=function(){var A=this;this.disableNextButton(!0);this.invalid=!1;_.vW(this,"ytd-report-channel-impersonated-channel-update",function(){var H=A.impersonatedChannelUrl.trim();A.ytdReduxBehavior.dispatch(_.p8({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:H}));var k;((k=A.data)==null?0:k.submitEndpoint)&&H&&_.wj().resolve(_.J7).resolveCommand(A.data.submitEndpoint,{form:{impersonated_channel_url:H,element:A.hostElement}})},500)};
_.q.handleModifyReportFormCommand=function(A){this.invalid=this.get("modifyReportFormCommand.action",A)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.q.updateInvalidFromBinding=function(A){this.invalid=A.detail.value};
_.q.updateImpersonatedChannelUrlFromBinding=function(A){this.impersonatedChannelUrl=A.detail.value};
BE.prototype.handleImpersonatedChannelUrlChanged=BE.prototype.handleImpersonatedChannelUrlChanged;_.E([_.P(_.TG),_.l("design:type",Object)],BE.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],BE.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],BE.prototype,"autoValidate",void 0);_.E([_.C(),_.l("design:type",Object)],BE.prototype,"invalid",void 0);
_.E([_.C(),_.l("design:type",String)],BE.prototype,"impersonatedChannelUrl",void 0);_.E([_.C({selector:FqM.impersonatedChannelUrlSelector}),_.l("design:type",String)],BE.prototype,"impersonatedChannelUrlRedux",void 0);_.E([_.C(),_.l("design:type",Object)],BE.prototype,"data",void 0);_.E([_.ol("#text-input"),_.l("design:type",Object)],BE.prototype,"channelUrlInput",void 0);
_.E([_.fF("impersonatedChannelUrl"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BE.prototype,"handleImpersonatedChannelUrlChanged",null);_.E([_.O6({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],BE);
_.Q(BE,"ytd-report-channel-modal-impersonation-renderer",function(){if(S$G!==void 0)return S$G;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return S$G=A},{mode:1});var C6I;var KqL;var ey=function(){return _.a.apply(this,arguments)||this};
_.I(ey,_.a);ey.prototype.onCheckboxToggled=function(A){var H,k,d=(k=_.L((H=this.data)==null?void 0:H.video,_.M01))==null?void 0:k.videoId;d&&this.ytdReduxBehavior.dispatch(A.target.checked?_.p8({type:"VIDEO_SELECTED",payload:d}):_.p8({type:"VIDEO_UNSELECTED",payload:d}))};
ey.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.nP.Object.defineProperties(ey.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var A,H=(A=this.data)==null?void 0:A.video;if(!H)return{};var k;A=(k=_.L(H,_.M01))==null?void 0:k.navigationEndpoint;if(!A)return H;_.L(A==null?void 0:A.commandMetadata,_.wn)&&(_.L(A.commandMetadata,_.wn).ignoreNavigation=!0);return H}}});
_.E([_.C({reflectToAttribute:!0,selector:FqM.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.l("design:type",Boolean)],ey.prototype,"checked",void 0);_.E([_.C(),_.l("design:type",Object)],ey.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ey.prototype,"video",null);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],ey.prototype,"ytdReduxBehavior",void 0);_.E([_.O6({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],ey);
_.Q(ey,"ytd-selectable-video-renderer",function(){if(KqL!==void 0)return KqL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return KqL=A},{mode:1});var xR=function(){var A=_.a.apply(this,arguments)||this;A.monitorScroll=!0;return A};
_.I(xR,_.a);xR.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xR.prototype,"data",void 0);_.E([_.O6({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],xR);
_.Q(xR,"ytd-selectable-video-list-renderer",function(){if(C6I!==void 0)return C6I;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return C6I=A},{mode:1});var aaQ;_.uL("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var iz=function(){return _.a.apply(this,arguments)||this};
_.I(iz,_.a);iz.prototype.onChange=function(A){if(A=_.X_(A).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.b("kevlar_command_handler_migration_killswitch"))_.NT(this.hostElement,A,this.hostElement);else{A=_.r(A);for(var H=A.next();!H.done;H=A.next())this.ytComponentBehavior.resolveCommand(H.value)}};
iz.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
iz.prototype.updateDataToggledFromBinding=function(A){this.set("data.toggled",A.detail.value)};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],iz.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],iz.prototype,"data",void 0);_.E([_.C({computed:"isEnabled(data)"}),_.l("design:type",Boolean)],iz.prototype,"enabled",void 0);_.E([_.O6({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],iz);
_.Q(iz,"ytd-toggle-item-renderer",function(){if(aaQ!==void 0)return aaQ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return aaQ=A},{mode:1});var cLi;var p1i;var QRM;var ht=function(){var A=_.a.apply(this,arguments)||this;A.setVisible=!1;A.boundOnSubmitButtonClick=function(){A.onSubmitButtonClick()};
A.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return A};
_.I(ht,_.a);ht.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}}}}}};
ht.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
ht.prototype.onSubmitButtonClick=function(){var A;((A=this.data)==null?0:A.submitEndpoint)&&!_.b("enable_ytc_refunds_submit_form_signal_action")&&_.tx(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
ht.prototype.handleSignalActionSubmitForm=function(){var A;((A=this.data)==null?0:A.submitEndpoint)&&_.tx(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.nP.Object.defineProperties(ht.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.hiddenByDefault)&&!this.setVisible}}});
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],ht.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ht.prototype,"setVisible",void 0);_.E([_.C(),_.l("design:type",Object)],ht.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],ht.prototype,"surveyFeedbackData",void 0);_.E([_.C(),_.l("design:type",Object)],ht.prototype,"boundOnSubmitButtonClick",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data","setVisible"),_.l("design:type",Object),_.l("design:paramtypes",[])],ht.prototype,"visibilityHidden",null);_.E([_.h6({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],ht);
_.Q(ht,"yt-flow-footer-renderer",function(){if(QRM===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;p1i===void 0&&(p1i=document.createElement("template"));var d=p1i;k.call(H,d.content.cloneNode(!0),A.content.firstChild);QRM=A}A=QRM;return A},{mode:2});var VSG=(0,_.e0p)(_.BpN.ypc,{surveyFeedbackDataSelector:function(A){return A.surveyFeedbackData}});var Oy=function(){return _.a.apply(this,arguments)||this};
_.I(Oy,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Oy.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Oy.prototype,"data",void 0);_.E([_.C({selector:VSG.surveyFeedbackDataSelector}),_.l("design:type",Object)],Oy.prototype,"surveyFeedbackData",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Oy);
_.Q(Oy,"ytd-flow-footer-renderer",function(){if(cLi!==void 0)return cLi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return cLi=A},{mode:2});var Ey1;var U$I;var Rm=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return A};
_.I(Rm,_.a);_.q=Rm.prototype;_.q.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Bn("multiPageMenuSectionItems")}}};
_.q.handleHideEnclosingAction_=function(A){if(this.data&&this.data.items)for(var H=0;H<this.data.items.length;H++){var k=this.data.items[H].notificationRenderer;if(k&&k.notificationId==A.hideEnclosingAction.notificationId){this.splice("data.items",H,1);_.Ud(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.q.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.lw(this.hostElement,"hidden",!0)};
_.q.updateMenu_=function(A){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&A&&!A.doNotRefreshInbox){A=this.data.continuations;for(var H=0;H<A.length;H++)if(A[H].invalidationContinuationData){var k=void 0;var d=(k=A[H].invalidationContinuationData)==null?void 0:k.continuation;break}A=_.iK.clone(this.data.continuationUpdateEndpoint||null);A.continuation=d;A.click_tracking_params=this.data.trackingParams;_.tx(this.hostElement,[A])}};
_.q.onServiceRequestCompleted_=function(A,H){if(this.data&&(A=H.actions)){H=0;for(var k=A.length;H<k;H++){var d=_.L(A[H],_.qui);if(!d)break;if((d.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||d.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&d.continuationItems&&this.data.items){var W=this.data.items.length-1;this.data.items[W].continuationItemRenderer&&(d=["data.items",W,1].concat(d.continuationItems),this.splice.apply(this,d))}}}};
Rm.prototype.onServiceRequestCompleted_=Rm.prototype.onServiceRequestCompleted_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Rm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Rm.prototype,"data",void 0);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],Rm.prototype,"onServiceRequestCompleted_",null);_.E([_.h6({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Rm);
_.Vu()(Rm,"yt-multi-page-menu-section-renderer",function(){if(U$I===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Ey1===void 0&&(Ey1=document.createElement("template"));var d=Ey1;k.call(H,d.content.cloneNode(!0),A.content.firstChild);U$I=A}A=U$I;return A},{allowedProps:["data"],
mode:2});var laB;var tS1;var Tz=function(){return _.a.apply(this,arguments)||this};
_.I(Tz,_.a);Tz.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.nP.Object.defineProperties(Tz.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.progress)==null?0:this.data.progress*100}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Tz.prototype,"data",void 0);_.E([_.G("data.progress"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Tz.prototype,"showProgressBar",null);
_.E([_.G("data.progress"),_.l("design:type",Number),_.l("design:paramtypes",[])],Tz.prototype,"progress",null);_.E([_.h6({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Tz);
_.Q(Tz,"yt-flow-header-renderer",function(){if(tS1===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;laB===void 0&&(laB=document.createElement("template"));var d=laB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);tS1=A}A=tS1;return A},{mode:2});var NgB;var MSM;var mw=function(){return _.a.apply(this,arguments)||this};
_.I(mw,_.a);mw.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mw.prototype,"data",void 0);_.E([_.h6({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],mw);
_.Q(mw,"yt-post-confirmation-flow-step-renderer",function(){if(MSM===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;NgB===void 0&&(NgB=document.createElement("template"));var d=NgB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);MSM=A}A=MSM;return A},{mode:2});var nyB;var ZWB;var Jt=function(){return _.a.apply(this,arguments)||this};
_.I(Jt,_.a);
Jt.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"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Jt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Jt.prototype,"data",void 0);_.E([_.h6({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Jt);
_.Q(Jt,"yt-refund-confirmation-flow-step-renderer",function(){if(ZWB===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;nyB===void 0&&(nyB=document.createElement("template"));var d=nyB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);ZWB=A}A=ZWB;return A},{mode:2});var faV=_.c(function(A){var H=A.data;return _.x("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.x("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.x(_.GA,{data:function(){return{thumbnails:[{url:H().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.x("div",{class:"profileBadgeViewModelContent"},_.x("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return H().badgeDesc}),_.x(_.R,{cond:function(){return H().badgeSubtitle},
then:function(){return _.x("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return H().badgeSubtitle})}})))},"Yk");
faV.idomCompat=!0;var w1B=_.c(function(A){var H=A.data;return _.x("yt-comment-interaction-view-model",{el:_.P8(_.OF(function(){return H().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.x("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return H().onTapA11yLabel},
"on:keydown":_.BG(),tabindex:0},_.x("div",{class:"ytCommentInteractionViewModelHeader"},_.x("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return H().headerPrefix},' "',function(){return H().videoTitle}),_.x("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.x("div",{class:"ytCommentInteractionViewModelContent"},_.x("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return H().commentContent}),_.x("div",{class:"ytCommentInteractionViewModelChevron"},
_.x(_.GA,{data:function(){return{thumbnails:[{url:H().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Zk");
w1B.idomCompat=!0;var oyG=_.c(function(A){var H=A.data;return _.x("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.x(_.HG,{data:function(){return H().avatar}},{avatarViewModel:_.RW}),_.x("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return H().channelName}))},"$k");
oyG.idomCompat=!0;var kvM=_.c(function(A){var H=A.data;A={};return _.x("yt-profile-info-view-model",{class:_.ER("ytProfileInfoViewModelHost",(A.ytProfileInfoViewModelWithVideoShelf=function(){return H().videosHorizontalShelf},A))},_.x($$1,{profileInfo:H}),_.x(_.HG,{data:function(){return H().videosHorizontalShelf}},{horizontalShelfViewModel:function(k){return _.x("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.x(_.Dr,{data:k.data}))}}),_.x(_.R,{cond:function(){return H().comments},
then:function(){return _.x(A5Q,{profileInfo:H})}}),_.x(_.R,{cond:function(){return H().sharedSubscriptionsTitle},
then:function(){return _.x(_.R,{cond:function(){return H().subscriptionsAccessButtonCommand},
then:function(){return _.x(Hue,{profileInfo:H})},
else:function(){return _.x(sdV,{profileInfo:H})}})}}))},"al");
kvM.idomCompat=!0;var A5Q=_.c(function(A){var H=A.profileInfo;return _.x("div",{class:"ytProfileInfoViewModelActivity"},_.x("div",{class:"ytProfileInfoViewModelHeader"},_.x("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return H().commentsInteractionTitle})),_.x(_.HG,{data:function(){return H().comments}},{commentInteractionViewModel:function(k){return _.x("div",{class:"ytProfileInfoViewModelActivity"},_.x(w1B,{data:k.data}))}}))},"bl"),Hue=_.c(function(A){var H=A.profileInfo;
return _.x("div",{class:"ytProfileInfoViewModelSubSection"},_.x("div",{class:"ytProfileInfoViewModelSubHeader"},_.x(_.c2,{command:function(){return H().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.x("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return H().sharedSubscriptionsTitle}),_.x("div",null,_.x(_.HG,{data:function(){return H().subscriptionsAccessButton}},{buttonViewModel:_.U7})))),_.x(dyi,{sharedSubscriptions:function(){var k;
return((k=H().sharedSubscriptions)==null?void 0:k.slice(0,5))||[]}}))},"cl"),sdV=_.c(function(A){var H=A.profileInfo;
return _.x("div",{class:"ytProfileInfoViewModelSubSection"},_.x("div",{class:"ytProfileInfoViewModelSubHeader"},_.x("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return H().sharedSubscriptionsTitle})),_.x(dyi,{sharedSubscriptions:function(){var k;
return((k=H().sharedSubscriptions)==null?void 0:k.slice(0,5))||[]}}))},"dl"),dyi=_.c(function(A){return _.x("div",{class:"ytProfileInfoViewModelSubs"},_.x(_.HG,{data:A.sharedSubscriptions},{sharedSubscriptionViewModel:function(H){return _.x("div",{class:"ytProfileInfoViewModelSub"},_.x(oyG,{data:H.data}))}}))},"el"),$$1=_.c(function(A){var H=A.profileInfo;
return _.x("div",{class:"ytProfileInfoViewModelActivity"},_.x(_.Ix,{each:function(){return[H().profileBadgeInfoYtWide,H().profileBadgeInfoChannelWide].filter(function(k){return!!k})},
keyBy:"INDEX"},function(k){return _.x(_.sD,null,_.x("div",{class:"ytProfileInfoViewModelHeader"},_.x("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return k().profileSectionTitle}),_.x("div",{class:"ytProfileInfoViewModelSectionDesc"},_.x("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var d;
return(d=k().commentBadge)==null?void 0:d.commentDesc}),_.x(_.R,{cond:function(){var d;
return(d=k().commentBadge)==null?void 0:d.blackHeartDesc},
then:function(){return _.x("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.x("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.x(_.GA,{data:function(){var d;
return{thumbnails:[{url:(d=k().commentBadge)==null?void 0:d.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.x("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var d;return(d=k().commentBadge)==null?void 0:d.blackHeartDesc}))),_.x("div",{class:"ytProfileInfoViewModelBadge"},_.x(_.Ix,{each:function(){return k().badges||[]}},function(d){return _.x(faV,{data:d})})))}))},"fl");var WnB=_.c(function(A){var H=A.data;var k=function(){return H().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.x("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.x(_.HG,{data:function(){return H().profileIdentityInfo}},{profileIdentityInfoViewModel:function(d){return _.x(In_,{data:d.data,
hideDivider:k,isChannelInfoCard:k})},
profileInfoViewModel:kvM}),_.x(_.HG,{data:function(){return H().profileInfo}},{profileIdentityInfoViewModel:In_,
profileInfoViewModel:kvM}))},"gl");
WnB.idomCompat=!0;_.Sw(WnB,"yt-profile-card-view-model",{props:{data:_.Ih}});var gJ=function(){var A=_.a.apply(this,arguments)||this;A.enableFocusFix=_.b("music_web_enable_focus_on_setting_menu_fix")&&_.Q$("IS_MOBILE_WEB",!1);A.covered=!1;A.hideMenu=!1;A.isCommentNotificationOnProfileCard=!1;A.scrolledByTouch=!1;A.disableBackdropFilter=_.b("web_disable_backdrop_filter");A.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return A};
_.I(gJ,_.a);_.q=gJ.prototype;
_.q.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"}}}};
_.q.ready=function(){var A=this;this.JSC$22336_containerElement.addEventListener("scroll",function(){A.ytRendererBehavior.markDirty()})};
_.q.attributeChanged=function(A,H){A==="menu-style"&&_.Ud(this.hostElement,"yt-multi-page-menu-closed-action",[H])};
_.q.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.nF(this,this.focusOnStampFinished))};
_.q.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.nF(this,this.focusOnStampFinished))};
_.q.reset=function(){this.closeJobId&&(_.IE.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.q.focusOnStampFinished=function(A){A.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.nF(this,this.focusOnStampFinished)),this.doFocus())};
_.q.doFocus=function(){var A=_.zZi(this.sectionsElement);A.length&&A[0].focus()};
_.q.computeMenuStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.q.computeIsCommentNotificationOnProfileCard=function(A){return _.b("enable_profile_cards_on_comments")&&A.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.q.computeHideMenu=function(A,H){return A||!(!H||!H.showLoadingSpinner)};
_.q.onPopupClosed=function(){this.isPopUpOpen=!1;_.Ud(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.q.onPopupOpened=function(A,H){this.isPopUpOpen=!0;H.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Ed(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.p8({type:"CHANNEL_REPORT_RESET"})))};
_.q.onYtNavigate=function(A,H){this.shouldCloseOnNavigateEvent(H.endpoint)&&_.Ud(this.hostElement,"yt-close-all-popups-action")};
_.q.handleEndpoint=function(A){A=_.L(A,_.RD);!this.isCommentNotificationOnProfileCard&&A&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22336_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.q.handleActions=function(A){for(var H=0,k=A.length;H<k;H++){var d=_.L(A[H],$OR);d&&this.handleGetMultiPageMenuAction(d);(d=_.L(A[H],_.qui))&&this.handleAppendContinuationItemsAction(d)}};
_.q.onServiceRequestSentOrCompleted=function(A,H){A.detail&&A.detail.endpoint&&this.handleEndpoint(A.detail.endpoint);H.actions&&this.handleActions(H.actions)};
_.q.handleGetMultiPageMenuAction=function(A){var H=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Va(this.submenuElement).appendChild(H);(A=A.menu.multiPageMenuRenderer)&&this.logSubmenu(A);H.data=A;H.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.q.handleAppendContinuationItemsAction=function(A){if(this.data&&A.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&A.continuationItems&&this.data.sections){var H=this.data.sections.length-1;this.data.sections[H].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),H--);if(this.data.sections[H].multiPageMenuNotificationSectionRenderer&&A.continuationItems){A=_.r(A==null?void 0:A.continuationItems);for(var k=A.next();!k.done;k=A.next())if(k=k.value,_.L(k,nxi)){var d=
void 0,W=void 0,z=void 0,u=void 0,B=void 0;((d=this)==null?0:(W=d.data)==null?0:(z=W.sections)==null?0:(u=z[H])==null?0:(B=u.multiPageMenuNotificationSectionRenderer)==null?0:B.items)&&this.push("data.sections."+H+".multiPageMenuNotificationSectionRenderer.items",k)}else if(_.L(k,_.o2i)||_.L(k,_.pw))this.push("data.sections",k),H++}}};
_.q.logSubmenu=function(A){if(!_.b("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var H=this.ytRendererBehavior.getScreenLayer(),k=_.hx(H),d=_.ii(H);if((A=A.trackingParams)&&k&&d){var W=_.db(A);_.b("combine_ve_grafts")?_.A7().graftServerVe(A,d,H):_.v0(k,d,W)}}};
_.q.emptySubmenuContainer=function(){for(var A=_.Va(this.submenuElement);A.firstChild;)A.removeChild(A.firstChild)};
_.q.onMenuBackTap=function(A){_.Ed(this.hostElement,"yt-submenu-closed");A.stopPropagation()};
_.q.onSubmenuClosed=function(A){_.X_(A)!==this.hostElement&&(this.covered=!1,_.Ed(this.hostElement,"yt-refit"),A.stopPropagation())};
_.q.onRetrieveLocation=function(A,H){H.hasComments&&(H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),A.stopPropagation())};
_.q.shouldCloseOnNavigateEvent=function(A){if(!A)return!0;if(_.L(A,_.DYw)||_.L(A,_.S7i)||_.L(A,_.X2w)||_.L(A,_.KT))return!1;var H;return((H=_.L(A==null?void 0:A.commandMetadata,_.wn))==null?0:H.ignoreNavigation)?!1:!0};
_.q.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.q.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.q.refitAfterRender=function(){var A=this;_.No(this,function(){_.Ed(A.hostElement,"yt-refit")})};
gJ.prototype.refitAfterRender=gJ.prototype.refitAfterRender;gJ.prototype.onRetrieveLocation=gJ.prototype.onRetrieveLocation;gJ.prototype.onSubmenuClosed=gJ.prototype.onSubmenuClosed;gJ.prototype.onMenuBackTap=gJ.prototype.onMenuBackTap;gJ.prototype.onServiceRequestSentOrCompleted=gJ.prototype.onServiceRequestSentOrCompleted;gJ.prototype.onYtNavigate=gJ.prototype.onYtNavigate;gJ.prototype.onPopupOpened=gJ.prototype.onPopupOpened;gJ.prototype.onPopupClosed=gJ.prototype.onPopupClosed;
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],gJ.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],gJ.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gJ.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],gJ.prototype,"enableFocusFix",void 0);_.E([_.C(),_.l("design:type",Object)],gJ.prototype,"covered",void 0);_.E([_.C({computed:"computeHideMenu(covered, data)"}),_.l("design:type",Object)],gJ.prototype,"hideMenu",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.l("design:type",String)],gJ.prototype,"menuStyle",void 0);
_.E([_.C({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.l("design:type",Object)],gJ.prototype,"isCommentNotificationOnProfileCard",void 0);_.E([_.C(),_.l("design:type",Boolean)],gJ.prototype,"isPopUpOpen",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gJ.prototype,"scrolledByTouch",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],gJ.prototype,"disableBackdropFilter",void 0);
_.E([_.ol("#sections"),_.l("design:type",HTMLElement)],gJ.prototype,"sectionsElement",void 0);_.E([_.ol("#spinner"),_.l("design:type",HTMLElement)],gJ.prototype,"spinnerElement",void 0);_.E([_.ol("#header"),_.l("design:type",HTMLElement)],gJ.prototype,"headerElement",void 0);_.E([_.ol("#container"),_.l("design:type",HTMLElement)],gJ.prototype,"JSC$22336_containerElement",void 0);_.E([_.ol("#submenu"),_.l("design:type",HTMLElement)],gJ.prototype,"submenuElement",void 0);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gJ.prototype,"onPopupClosed",null);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],gJ.prototype,"onPopupOpened",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],gJ.prototype,"onYtNavigate",null);
_.E([_.Ze("yt-service-request-completed"),_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],gJ.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.Ze("yt-menu-back-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],gJ.prototype,"onMenuBackTap",null);
_.E([_.Ze("yt-submenu-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],gJ.prototype,"onSubmenuClosed",null);_.E([_.Ze("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],gJ.prototype,"onRetrieveLocation",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gJ.prototype,"refitAfterRender",null);
_.E([_.O6({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],gJ);
_.Q(gJ,"ytd-multi-page-menu-renderer",function(){if(vyM!==void 0)return vyM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return vyM=A},{mode:1});var zoI;var bz=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return A};
_.I(bz,_.a);_.q=bz.prototype;_.q.created=function(){this.showTooltips=!0};
_.q.computeAccessibility_=function(A){return this.get("accessibility.accessibilityData",A)||null};
_.q.onTap=function(){var A=_.li(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(A&&A.length===1&&A[0])_.Ud(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var H;if((H=this.data)==null?0:H.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var k;((k=this.data)==null?0:k.menuRequest)&&_.tx(this.hostElement,[this.data.menuRequest])}}};
_.q.handleTopbarMenuClosedAction=function(A){var H,k;(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(A)===((H=this.data)==null?void 0:(k=H.icon)==null?void 0:k.iconType)&&this.toggleIconState(!1)};
_.q.toggleIconState=function(A){_.b("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=A)};
_.q.handleUpdateTopbarAvatarAction=function(A){var H;A=(H=_.L(A,pAL))==null?void 0:H.avatarUrl;var k,d;H=(k=this.data)==null?void 0:(d=k.avatar)==null?void 0:d.thumbnails;A&&H&&(k={thumbnails:[Object.assign({},H[0],{url:A})]},this.set("data.avatar",k))};
_.nP.Object.defineProperties(bz.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Va(this.hostElement).querySelector("#button")}}});
bz.prototype.onTap=bz.prototype.onTap;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],bz.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],bz.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.HDA.YtButtonBehavior),_.l("design:type",Object)],bz.prototype,"ytButtonBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bz.prototype,"data",void 0);
_.E([_.ol("yt-icon-button#button"),_.l("design:type",Object)],bz.prototype,"iconButton",void 0);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bz.prototype,"onTap",null);_.E([_.O6({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],bz);
_.Vu()(bz,"ytd-topbar-menu-button-renderer",function(){if(zoI===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);zoI=A}A=zoI;return A},{allowedProps:["data"],
mode:1});var qzG;var La=function(){return _.a.apply(this,arguments)||this};
_.I(La,_.a);La.prototype.getSelected=function(){return this.reasons.selected};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],La.prototype,"data",void 0);_.E([_.ol("#reasons"),_.l("design:type",Object)],La.prototype,"reasons",void 0);_.E([_.O6({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],La);
_.Q(La,"ytd-ad-feedback-content",function(){if(qzG!==void 0)return qzG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return qzG=A},{mode:1});var r5Q;var vE=function(){return _.a.apply(this,arguments)||this};
_.I(vE,_.a);_.q=vE.prototype;_.q.onPopupOpened=function(){_.Ud(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.q.computeConfirmButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.confirmLabel}};
_.q.computeCancelButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.cancelLabel}};
_.q.onConfirmTap=function(){var A=this.content.getSelected();A!==void 0&&(A=this.data.reasons[A].endpoint)&&(_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}}),_.Ud(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.q.sendFeedbackSubmitToastAction=function(){var A;(A=this.data)!=null&&A.completionMessage&&(A=_.Du(this.data.completionMessage),_.Ud(this.hostElement,"yt-open-popup-action",[A,this]))};
_.q.onCancelTap=function(){_.Ud(this.hostElement,"yt-close-popup-action")};
vE.prototype.onPopupOpened=vE.prototype.onPopupOpened;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],vE.prototype,"data",void 0);_.E([_.ol("#content"),_.l("design:type",Object)],vE.prototype,"content",void 0);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],vE.prototype,"onPopupOpened",null);
_.E([_.O6({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],vE);
_.Q(vE,"ytd-ad-feedback-renderer",function(){if(r5Q!==void 0)return r5Q;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return r5Q=A},{mode:1});var uKV;var Bc3=function(){return _.a.apply(this,arguments)||this};
_.I(Bc3,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Bc3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Bc3.prototype,"data",void 0);_.E([_.O6({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Bc3);
_.Q(Bc3,"ytd-ad-info-dialog-content",function(){if(uKV!==void 0)return uKV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return uKV=A},{mode:1});var eo3;var ye=function(){return _.a.apply(this,arguments)||this};
_.I(ye,_.a);ye.prototype.computeConfirmButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.confirmLabel}};
ye.prototype.onConfirmTap=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
ye.prototype.computeShouldShowTitle=function(){var A;return!((A=this.data)==null||!A.title)};
ye.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.wj().resolve(_.J7).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
ye.prototype.onPopupClosed=ye.prototype.onPopupClosed;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ye.prototype,"data",void 0);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ye.prototype,"onPopupClosed",null);_.E([_.O6({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],ye);
_.Q(ye,"ytd-ad-info-dialog-renderer",function(){if(eo3!==void 0)return eo3;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return eo3=A},{mode:1});var xy_;var jy=function(){var A=_.a.apply(this,arguments)||this;A.actionButtonClass="action-button";A.dismissButtonId="dismiss-button";A.dialogDismiss=!0;return A};
_.I(jy,_.a);_.q=jy.prototype;_.q.computeInPlayer=function(A){return(A==null?void 0:A.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.q.computedLogo=function(){var A,H;return this.isDarkTheme()?(A=this.data)==null?void 0:A.logoDark:(H=this.data)==null?void 0:H.logo};
_.q.computedHeaderImage=function(){var A,H;return this.isDarkTheme()?(A=this.data)==null?void 0:A.headerImageDark:(H=this.data)==null?void 0:H.headerImage};
_.q.computeLogoIconId=function(){var A,H,k,d=(A=this.computedLogo())==null?void 0:(H=A.sources)==null?void 0:(k=H[0])==null?void 0:k.height;return d&&d%31===0?"logo-icon-with-padding":"logo-icon"};
_.q.computeLogoIconHeight=function(){var A,H,k,d=(A=this.computedLogo())==null?void 0:(H=A.sources)==null?void 0:(k=H[0])==null?void 0:k.height;return d&&d%31===0?"31":"24"};
_.q.onPopupClosed=function(){_.wj().resolve(_.T6).dispose()};
_.q.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.q.onShow=function(){this.inPlayer&&_.Mm(6);this.titleElement.focus()};
_.q.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var A=0;A<this.data.impressionEndpoints.length;A++){var H=_.L(this.data.impressionEndpoints[A],_.ic);H&&this.ytComponentBehavior.resolveCommand(H)}};
_.q.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Ud(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.nP.Object.defineProperties(jy.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var A,H;return!((A=this.data)==null||!A.headerImageDark)&&!((H=this.data)==null||!H.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.secondaryButton)}}});
jy.prototype.onPopupClosed=jy.prototype.onPopupClosed;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],jy.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.bU.YtVisibilityBehavior),_.l("design:type",Object)],jy.prototype,"ytVisibilityBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],jy.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],jy.prototype,"actionButtonClass",void 0);_.E([_.C(),_.l("design:type",Object)],jy.prototype,"dismissButtonId",void 0);_.E([_.C(),_.l("design:type",Object)],jy.prototype,"dialogDismiss",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jy.prototype,"hasHeaderImage",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],jy.prototype,"hasPremiumButton",null);
_.E([_.C({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.l("design:type",Boolean)],jy.prototype,"inPlayer",void 0);_.E([_.ol("#dismiss-button"),_.l("design:type",HTMLElement)],jy.prototype,"dismissButton",void 0);_.E([_.ol("#title"),_.l("design:type",HTMLElement)],jy.prototype,"titleElement",void 0);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],jy.prototype,"onPopupClosed",null);
_.E([_.O6({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],jy);
_.Q(jy,"ytd-enforcement-message-view-model",function(){if(xy_!==void 0)return xy_;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return xy_=A},{mode:1});var iue;var hoe;var Im=function(){var A=_.a.apply(this,arguments)||this;A.TEST_ONLY={immediateValidation:function(){A.immediateValidation()},
onValidationResponse:function(H){A.onValidationResponse(H)},
onGenerateHandleFromNameResponse:function(H){A.onGenerateHandleFromNameResponse(H)}};
return A};
_.I(Im,_.a);_.q=Im.prototype;_.q.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.q.validate=function(){this.immediateValidation()};
_.q.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.q.setHandleInputValue=function(A){this.handleDir=this.getHandleDir(A);this.handleInput.value=A;this.validationState={status:"PENDING"};this.immediateValidation()};
_.q.getHandleDir=function(A){var H=A===""&&!1;return(H=_.UTw.test.call(_.UTw,A))?"rtl":"ltr"};
_.q.onDataChanged=function(){var A,H;this.handleDir=this.getHandleDir((H=(A=this.data)==null?void 0:A.handle)!=null?H:"");var k;this.validationState=((k=this.data)==null?0:k.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var d;((d=this.data)==null?0:d.validateOnInit)&&this.immediateValidation()};
_.q.stopPropagation=function(A){A.stopPropagation()};
_.q.onInput=function(){var A;this.handleDir=this.getHandleDir((A=this.handleInput.value)!=null?A:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.q.onFocusout=function(A){this.handleInput.contains(A.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.q.delayedValidation=function(){var A,H;this.debouncedValidation((H=(A=this.data)==null?void 0:A.validationDelayMs)!=null?H:1E3)};
_.q.immediateValidation=function(){this.debouncedValidation(0)};
_.q.debouncedValidation=function(A){var H=this;_.vW(this,"debouncedValidation",function(){var k,d=H.staticValidation((k=H.handleInput.value)!=null?k:"");if(d!==void 0)H.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:d};else{var W;if((W=H.data)!=null&&W.validateChannelHandleCommand){H.validationState={status:"LOADING"};var z;H.ytComponentBehavior.resolveCommand(H.data.validateChannelHandleCommand,{form:{handle:(z=H.handleInput.value)!=null?z:""},commandController:{onSuccess:function(u,
B){H.onValidationResponse(B)},
onServerError:function(u,B){H.onValidationServerError(B)}}})}else H.handleUnexpectedValidationError(new _.Ti("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",H.data))}},A)};
_.q.staticValidation=function(A){var H;if(((H=this.data)==null?void 0:H.channelHandleStaticValidationParams)!==void 0){H=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(A)&&H.validValueRegexpErrorMessage!==void 0)return H.validValueRegexpErrorMessage;if(H.minLength!==void 0&&A.length<H.minLength&&H.minLengthErrorMessage!==void 0)return H.minLengthErrorMessage;if(H.maxLength!==void 0&&A.length>H.maxLength&&H.maxLengthErrorMessage!==void 0)return H.maxLengthErrorMessage}};
_.q.onValidationResponse=function(A){var H=_.L(A.result,QWM);H===void 0?this.handleUnexpectedValidationError(new _.Ti("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",A)):this.handleValidationResultRenderer(H)};
_.q.onValidationServerError=function(A){this.handleUnexpectedValidationError(new _.Ti("ValidateChannelHandle request failed.",A))};
_.q.handleValidationResultRenderer=function(A){if(A.handle===void 0)this.handleUnexpectedValidationError(new _.Ti("ChannelHandleValidationResultRenderer does not contain handle.",A));else if(A.handle===this.handleInput.value)switch(A.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:A.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:A.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Ti("Unrecognized ChannelHandleValidationResult",A));break;default:_.HR(A.result)}};
_.q.handleUnexpectedValidationError=function(A){var H;this.validationState={status:"UNKNOWN",handle:(H=this.handleInput.value)!=null?H:""};_.Pq(A)};
_.q.stopEventPropagation=function(A){A.stopPropagation()};
_.q.updateHandleOnChannelNameInputChange=function(A){if(!this.wasEdited){var H,k;this.debouncedGenerateHandleFromName(A,(k=(H=this.data)==null?void 0:H.validationDelayMs)!=null?k:1E3)}};
_.q.debouncedGenerateHandleFromName=function(A,H){var k=this;_.vW(this,"debouncedGenerateHandleFromName",function(){var d;(d=k.data)!=null&&d.validateChannelHandleCommand?k.ytComponentBehavior.resolveCommand(k.data.validateChannelHandleCommand,{form:{name:A},commandController:{onSuccess:function(W,z){k.onGenerateHandleFromNameResponse(z)},
onServerError:function(W,z){_.Pq(new _.Ti("Error calling GenerateHandleFromName",z))}}}):_.Pq(new _.Ti("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",k.data))},H)};
_.q.onGenerateHandleFromNameResponse=function(A){this.wasEdited||((A=_.L(A.result,Vgi))?this.setHandleInputValue(A.handle):_.Pq(new _.Ti("Invalid results when generate handle from name")))};
_.nP.Object.defineProperties(Im.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var A;if(A=this.validationState)A=this.validationState,A=A.status==="OK"||A.status==="UNKNOWN";if(A)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.validationState)==null?void 0:A.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 A,H=(A=this.channelHandleEntity)==null?void 0:A.handleEdit;this.handleDir=this.getHandleDir(H!=null?H:"");return H}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var A,H;if(((A=this.data)==null?void 0:(H=A.channelHandleStaticValidationParams)==null?void 0:H.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Im.prototype.stopEventPropagation=Im.prototype.stopEventPropagation;Im.prototype.onDataChanged=Im.prototype.onDataChanged;Im.prototype.applyHandleEdit=Im.prototype.applyHandleEdit;Im.prototype.onValueChanged=Im.prototype.onValueChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Im.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Im.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Im.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Boolean)],Im.prototype,"wasEdited",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],Im.prototype,"handleDir",void 0);_.E([_.ol("#handle-input"),_.l("design:type",Object)],Im.prototype,"handleInput",void 0);_.E([_.C(),_.G("validationState"),_.l("design:type",Object),_.l("design:paramtypes",[])],Im.prototype,"value",null);
_.E([_.fF("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Im.prototype,"onValueChanged",null);_.E([_.G("validationState"),_.l("design:type",Object),_.l("design:paramtypes",[])],Im.prototype,"errorIndicator",null);_.E([_.C({reflectToAttribute:!0}),_.G("errorIndicator"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Im.prototype,"borderErrorIndicator",null);
_.E([_.C({selectorArgs:["data.channelHandleEntityKey"],selector:function(A,H){return _.Mw(A.entities,"channelHandle",H)}}),
_.l("design:type",Object)],Im.prototype,"channelHandleEntity",void 0);_.E([_.G("channelHandleEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],Im.prototype,"handleEdit",null);_.E([_.fF("handleEdit"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Im.prototype,"applyHandleEdit",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Im.prototype,"onDataChanged",null);
_.E([_.G("data.channelHandleStaticValidationParams.validValueRegexp"),_.l("design:type",Object),_.l("design:paramtypes",[])],Im.prototype,"validValueRegexp",null);_.E([_.Ze("yt-service-request-sent"),_.Ze("yt-service-request-completed"),_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Im.prototype,"stopEventPropagation",null);_.E([_.O6({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Im);
_.Q(Im,"ytd-channel-handle-input-renderer",function(){if(hoe!==void 0)return hoe;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return hoe=A},{mode:2});var YR=function(){var A=_.a.apply(this,arguments)||this;A.data=null;A.errorMessage=null;A.isLoading=!0;A.enableNewChannelCreationOnIdForAll=_.b("enable_new_channel_creation_for_id4all");A.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction"};A.testOnly={setErrorMessage:function(H){A.resetErrorState();A.setErrorState(H)}};
return A};
_.I(YR,_.a);_.q=YR.prototype;_.q.created=function(){this.logScreenVe()};
_.q.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")};
_.q.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var A;((A=this.zeroStepErrorMessageEntity)==null?0:A.value)&&this.set("errorMessage",_.Yu(this.zeroStepErrorMessageEntity.value))};
_.q.onCreateTap=function(){var A=this;if(this.data&&this.data.channelCreationEndpoint){var H,k;if(!((H=this.data.createChannelButton)==null?0:(k=H.buttonRenderer)==null?0:k.isDisabled)){var d;if((d=this.nameInput)!=null&&d.value){this.setLoadingState();var W,z;H=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(W=this.handleInput)==null?void 0:W.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:H,commandController:{onSuccess:function(u,B){A.onChannelCreationEndpointSuccess(B);A.obakeImageSource&&_.yr("channelCreatedWithObakeImage",{imageSourceType:A.obakeImageSource})},
onServerError:function(){A.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.q.endpointRequiresServiceRequestAction=function(A){return!!_.L(A,_.RL)||!!_.L(A,pAL)};
_.q.isNavigateAction=function(A){var H;return!!_.L(A,FER)||!!_.L((H=_.L(A,Nv3))==null?void 0:H.command,FER)};
_.q.isPlaylistAction=function(A){return!!_.L(A,_.Tr)||!!_.L(A,_.L4)};
_.q.onChannelCreationEndpointSuccess=function(A){if(A.createChannelError){var H;this.setErrorState((H=A.createChannelError)==null?void 0:H.errorMessage);this.handleInput&&this.handleInput.validate()}else{A.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(A.navigationEndpoint);if(A.actions){H=_.r(A.actions);for(var k=H.next();!k.done;k=H.next())if(k=k.value,this.endpointRequiresServiceRequestAction(k)&&this.ytComponentBehavior.resolveCommand(k),this.isNavigateAction(k)){var d=void 0;k=_.L((d=
_.L(k,Nv3))==null?void 0:d.command,FER);d=void 0;this.isPlaylistAction((d=k)==null?void 0:d.endpoint)&&(_.Ud(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),d=void 0,this.ytComponentBehavior.resolveCommand((d=k)==null?void 0:d.endpoint))}}A.actions&&A.actions.some(function(W){var z;return _.L(W,FER)||_.L((z=_.L(W,Nv3))==null?void 0:z.command,FER)})||_.Ud(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.q.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.q.onCancelTap=function(){var A,H,k;if(!((A=this.data)==null?0:(H=A.cancelButton)==null?0:(k=H.buttonRenderer)==null?0:k.isDisabled)){var d,W,z;A=(d=this.data)==null?void 0:(W=d.cancelButton)==null?void 0:(z=W.buttonRenderer)==null?void 0:z.command;if(!A||!_.L(A,_.lUI)){var u;this.nameInput&&((u=this.data)==null?0:u.name)&&(this.nameInput.value=this.data.name);var B;this.handleInput&&((B=this.data)==null?0:B.channelHandleInput)&&(this.handleInput.data=_.L(this.data.channelHandleInput,Ev_));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.q.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.q.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.q.onClearProfilePhotoTap=function(){var A,H,k;((A=this.data)==null?0:(H=A.clearProfilePhotoButton)==null?0:(k=H.buttonRenderer)==null?0:k.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.q.onEditAvatarTap=function(){var A,H,k;((A=this.data)==null?0:(H=A.editAvatarButton)==null?0:(k=H.buttonRenderer)==null?0:k.isDisabled)||this.openProfilePicturePicker()};
_.q.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)};
_.q.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var A;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((A=this.data)==null?0:A.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.q.setErrorState=function(A){this.resetErrorState();if(A)this.set("errorMessage",A);else{var H;if((H=this.zeroStepErrorMessageEntity)==null?0:H.value)this.set("errorMessage",_.Yu(this.zeroStepErrorMessageEntity.value));else{var k;((k=this.data)==null?0:k.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.q.fetchImageBlobWithAlr=function(A,H){H=H===void 0?5:H;var k=this,d,W,z,u,B;return _.e(function(h){switch(h.nextAddress){case 1:return h.yield(fetch(A,{method:"GET",mode:"cors"}),2);case 2:d=h.yieldResult;if(d.ok){h.jumpTo(3);break}if(H===0)throw Error();W=k.addJitter(Math.pow(2,5-H));return h.yield(new Promise(function(O){setTimeout(O,W*1E3)}),4);
case 4:return h.return(k.fetchImageBlobWithAlr(A,H-1));case 3:if(!d.headers.get("content-type").split(";").some(function(O){return O.trim()==="text/plain"})){h.jumpTo(5);
break}z=k;u=z.fetchImageBlobWithAlr;return h.yield(d.text(),6);case 6:return h.return(u.call(z,h.yieldResult,H-1));case 5:return h.yield(d.blob(),7);case 7:return B=h.yieldResult,h.return(B)}})};
_.q.addJitter=function(A){var H=A*.3*Math.random();Math.random()>.5&&(H*=-1);return A+H};
_.q.openProfilePicturePicker=function(){var A=this,H,k,d,W,z,u;return _.e(function(B){if(B.nextAddress==1){H=A.data.scottyUploadUrl;if(!H)return B.return();k=document.documentElement.hasAttribute("dark");d=document.body.style.colorScheme;k&&(document.body.style.colorScheme="dark");W=w21(oOQ(fbB(UYG(k?"dark":"light")),function(h){var O,T,m,J,g;return _.e(function(v){if(v.nextAddress==1)return O=_.Aj(OkI(new H0V(h.photoUrl,!1)).build(),"alr","yes"),A.obakeImageSource=A.pictureChangeSourceToObakeImageSourceType(h.photoSource),
_.S_(v,2),A.setLoadingState(),v.yield(A.fetchImageBlobWithAlr(O),4);if(v.nextAddress!=2)return T=v.yieldResult,m=new FileReader,m.addEventListener("load",function(){var y,X,D,K,N,U;return _.e(function(p){if(p.nextAddress==1){if(T.size>15728640)return A.setErrorState((y=A.data)==null?void 0:y.imageSizeErrorMessage),_.Pq(Error("im")),p.return();if(!m.result)return A.setErrorState((X=A.data)==null?void 0:X.genericImageLoadErrorMessage),_.Pq(Error("jm")),p.return();D=m.result;_.S_(p,2);return p.yield(jX_(T,
H),4)}if(p.nextAddress!=2)return K=p.yieldResult,A.handleImageUpdatedAction(D,K),A.resetErrorState(),_.QN(p,0);N=_.VA(p);A.setErrorState((U=A.data)==null?void 0:U.uploadErrorMessage);if(N instanceof Error)_.I3(N);else{var M=new _.Ti(JSON.stringify(N));_.I3(M)}_.EN(p)})}),m.readAsDataURL(T),_.QN(v,0);
J=_.VA(v);A.setErrorState((g=A.data)==null?void 0:g.genericImageLoadErrorMessage);J instanceof Error?_.I3(J):_.YJ(new _.Ti(JSON.stringify(J)));_.EN(v)})}),function(){document.body.style.colorScheme=d});
_.S_(B,2);return((z=A.data)==null?0:z.shouldViewChannelCreationFormForSupex)?B.yield(W.openPicker("profile-picture/art-selection"),5):B.yield(W.openPicker(),5)}if(B.nextAddress!=2)return _.QN(B,0);_.VA(B);A.setErrorState((u=A.data)==null?void 0:u.selectImageErrorMessage);_.EN(B)})};
_.q.pictureChangeSourceToObakeImageSourceType=function(A){switch(A){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.q.logScreenVe=function(){_.Ml(_.A7(),124448)};
_.q.graftServerVe=function(){var A=_.ii(),H,k,d=(H=this.data)==null?void 0:(k=H.loggingDirectives)==null?void 0:k.trackingParams;d&&A&&(this.channelCreationFormVe=_.A7().graftServerVe(d,A),A={visualElement:this.channelCreationFormVe},_.oO().reportShown(A))};
_.q.isNameChanged=function(A){var H;return((H=this.data)==null?void 0:H.name)!==A};
_.q.isHandleChanged=function(A){var H,k=_.L((H=this.data)==null?void 0:H.channelHandleInput,Ev_);return k&&A?k.handle!==A:!1};
_.q.handleImageUpdatedAction=function(A,H){this.previewDataUrl=A;this.encryptedBlobId=H};
_.q.handleImageSelectionErrorAction=function(A){this.setErrorState(A)};
_.q.handleImageSelectionResetErrorAction=function(){this.resetErrorState()};
_.q.maybeWipeZeroStepErrorMessage=function(){var A,H=(A=this.data)==null?void 0:A.zeroStepErrorMessageEntityKey,k;H&&((k=this.zeroStepErrorMessageEntity)==null?0:k.value)&&this.ytdReduxBehavior.dispatch(_.kH("stringEntity",H,{key:H,value:""}))};
_.nP.Object.defineProperties(YR.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 A;return((A=this.photoThumbnail)==null?0:A.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 A;return!((A=this.data)==null||!A.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.descriptionInfo}}});
YR.prototype.dataChanged=YR.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],YR.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],YR.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],YR.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],YR.prototype,"errorMessage",void 0);
_.E([_.C(),_.l("design:type",Object)],YR.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",String)],YR.prototype,"previewDataUrl",void 0);_.E([_.C(),_.l("design:type",Number)],YR.prototype,"obakeImageSource",void 0);_.E([_.ol("#title-input"),_.l("design:type",Object)],YR.prototype,"nameInput",void 0);_.E([_.ol("#handle-input"),_.l("design:type",Object)],YR.prototype,"handleInput",void 0);_.E([_.C(),_.l("design:type",Boolean)],YR.prototype,"enableNewChannelCreationOnIdForAll",void 0);
_.E([_.C({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.IUC}),_.l("design:type",Object)],YR.prototype,"zeroStepErrorMessageEntity",void 0);_.E([_.G("data","data.isDefaultProfilePhoto","previewDataUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],YR.prototype,"photoThumbnail",null);_.E([_.G("data","data.isDefaultProfilePhoto","photoThumbnail"),_.l("design:type",Object),_.l("design:paramtypes",[])],YR.prototype,"userSetPhotoThumbnailUrl",null);
_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],YR.prototype,"hideProfilePhotoButtonLayer",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],YR.prototype,"enableIdentityForAllChannelCreationDialog",null);_.E([_.s6("data","zeroStepErrorMessageEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YR.prototype,"dataChanged",null);
_.E([_.C({reflectToAttribute:!0}),_.G("data.descriptionInfo","zeroStepErrorMessageEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],YR.prototype,"description",null);_.E([_.O6({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],YR);
_.Q(YR,"ytd-channel-creation-dialog-renderer",function(){if(iue!==void 0)return iue;var A=document.createElement("template");_.Y(A,'\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">\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return iue=A},{mode:1});var OuL;var PE=function(){var A=_.a.apply(this,arguments)||this;A.isLoading=!1;A.isDisabled=!1;return A};
_.I(PE,_.a);PE.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
PE.prototype.updateDisabled=function(){var A;this.isDisabled=this.isLoading||((A=this.handleInput)==null?void 0:A.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
PE.prototype.onSaveClick=function(){var A=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var H;((H=this.data)==null?void 0:H.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 k;if((k=A.data)==null?0:k.nextEndpoint){var d;A.ytComponentBehavior.resolveCommand((d=A.data)==null?void 0:d.nextEndpoint)}else A.isLoading=
!1,A.closeDialog()},
onServerError:function(){A.isLoading=!1;A.handleInput.validate();var k;A.errorMessage=(k=A.data)==null?void 0:k.errorMessage}}}))}};
PE.prototype.closeDialog=function(){_.Ud(this.hostElement,"yt-close-popup-action",[this.is])};
PE.prototype.updateDisabled=PE.prototype.updateDisabled;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],PE.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],PE.prototype,"data",void 0);_.E([_.ol("#handle-input"),_.l("design:type",Object)],PE.prototype,"handleInput",void 0);_.E([_.fF("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PE.prototype,"updateDisabled",null);
_.E([_.O6({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],PE);
_.Q(PE,"ytd-channel-handle-edit-dialog-renderer",function(){if(OuL!==void 0)return OuL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return OuL=A},{mode:1});var RoB;var Gz=function(){return _.a.apply(this,arguments)||this};
_.I(Gz,_.a);Gz.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Gz.prototype,"data",void 0);_.E([_.O6({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Gz);
_.Q(Gz,"ytd-channel-switcher-footer-renderer",function(){if(RoB!==void 0)return RoB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return RoB=A},{mode:1});var TcV;var myM;var FN=function(){return _.a.apply(this,arguments)||this};
_.I(FN,_.a);FN.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
FN.prototype.onIronChange=FN.prototype.onIronChange;_.E([_.C(),_.l("design:type",Object)],FN.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!1}),_.l("design:type",Function)],FN.prototype,"onDontAskAgainChanged",void 0);_.E([_.ol("#checkbox"),_.l("design:type",Object)],FN.prototype,"checkbox",void 0);_.E([_.Ze("iron-change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FN.prototype,"onIronChange",null);
_.E([_.O6({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],FN);
_.Q(FN,"ytd-identity-prompt-footer-renderer",function(){if(myM!==void 0)return myM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return myM=A},{mode:1});var XN=function(){var A=_.a.apply(this,arguments)||this;A.dontAskAgain=!1;A.showPopup=!1;A.boundDontAskAgainChanged=function(H){A.dontAskAgainChanged(H)};
A.boundOnAccountItemTap=function(H){A.onAccountItemTap(H)};
return A};
_.I(XN,_.a);_.q=XN.prototype;
_.q.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]]"}}}}}};
_.q.ready=function(){var A=this;_.Va(this.hostElement).querySelector("#container").addEventListener("scroll",function(){A.ytRendererBehavior.markDirty()})};
_.q.dontAskAgainChanged=function(A){this.dontAskAgain=A};
_.q.onAccountItemTap=function(A){if(A){var H={};this.dontAskAgain&&(H={dont_ask_again:this.dontAskAgain});_.J1(A,H)}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.q.redirectOnlyAccount=function(A){A.sections&&A.sections.length>0&&(A=_.L(A.sections[0],_.tEJ),(A==null?0:A.contents)&&(A==null?void 0:A.contents.length)<=1?(A=_.MP(window.location.href),(A==null?0:A.next)&&_.jNW(A.next)?_.J1(A.next):_.J1("/")):this.showPopup=!0)};
XN.prototype.dataChanged=XN.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],XN.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!1}),_.l("design:type",Object)],XN.prototype,"dontAskAgain",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],XN.prototype,"showPopup",void 0);_.E([_.C({reflectToAttribute:!1}),_.l("design:type",Object)],XN.prototype,"boundDontAskAgainChanged",void 0);_.E([_.C({reflectToAttribute:!1}),_.l("design:type",Object)],XN.prototype,"boundOnAccountItemTap",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XN.prototype,"dataChanged",null);
_.E([_.O6({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],XN);
_.Q(XN,"ytd-channel-switcher-renderer",function(){if(TcV!==void 0)return TcV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return TcV=A},{mode:1});var J5e;var DF=function(){return _.a.apply(this,arguments)||this};
_.I(DF,_.a);_.nP.Object.defineProperties(DF.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.E([_.C(),_.l("design:type",Object)],DF.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],DF.prototype,"steps",null);_.E([_.O6({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],DF);
_.Q(DF,"ytd-channel-transfer-stepper-renderer",function(){if(J5e!==void 0)return J5e;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return J5e=A},{mode:1});var gMQ;var Sy=function(){var A=_.a.apply(this,arguments)||this;A.data=null;A.isError=!1;A.isLoading=!1;return A};
_.I(Sy,_.a);_.q=Sy.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.q.computeProfileName=function(A){return A?A.givenNameValue+" "+A.familyNameValue:""};
_.q.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)};
_.q.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)};
Sy.prototype.onYtServiceRequestError=Sy.prototype.onYtServiceRequestError;Sy.prototype.onYtServiceRequestSent=Sy.prototype.onYtServiceRequestSent;Sy.prototype.dataChanged=Sy.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Sy.prototype,"data",void 0);
_.E([_.C({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.l("design:type",String)],Sy.prototype,"profileName",void 0);_.E([_.C(),_.l("design:type",Object)],Sy.prototype,"isError",void 0);_.E([_.C(),_.l("design:type",Object)],Sy.prototype,"isLoading",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Sy.prototype,"dataChanged",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],Sy.prototype,"onYtServiceRequestSent",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],Sy.prototype,"onYtServiceRequestError",null);_.E([_.O6({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Sy);
_.Q(Sy,"ytd-channel-warm-welcome-cont-renderer",function(){if(gMQ!==void 0)return gMQ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return gMQ=A},{mode:1});var bu_;var Ca=function(){var A=_.a.apply(this,arguments)||this;A.data=null;return A};
_.I(Ca,_.a);Ca.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ca.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ca.prototype,"data",void 0);_.E([_.O6({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Ca);
_.Q(Ca,"ytd-channel-warm-welcome-renderer",function(){if(bu_!==void 0)return bu_;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return bu_=A},{mode:1});var Lni;var Ka=function(){return _.a.apply(this,arguments)||this};
_.I(Ka,_.a);_.nP.Object.defineProperties(Ka.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.authorThumbnail)||{}}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ka.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ka.prototype,"thumbnailDetails",null);_.E([_.O6({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Ka);
_.Q(Ka,"ytd-comment-preview-renderer",function(){if(Lni!==void 0)return Lni;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Lni=A},{mode:1});var vMB;var am=function(){return _.a.apply(this,arguments)||this};
_.I(am,_.a);am.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.nP.Object.defineProperties(am.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.submitButton}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],am.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],am.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],am.prototype,"submitButton",null);_.E([_.O6({is:"ytd-notice-renderer",disableElementRegistration:!0})],am);
_.Q(am,"ytd-notice-renderer",function(){if(vMB!==void 0)return vMB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return vMB=A},{mode:1});var y5L;var cE=function(){return _.a.apply(this,arguments)||this};
_.I(cE,_.a);cE.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cE.prototype,"data",void 0);_.E([_.O6({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],cE);
_.Q(cE,"ytd-preview-comment-dialog-content",function(){if(y5L!==void 0)return y5L;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return y5L=A},{mode:1});var jdQ;var pa=function(){return _.a.apply(this,arguments)||this};
_.I(pa,_.a);pa.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
pa.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pa.prototype,"data",void 0);_.E([_.O6({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],pa);
_.Q(pa,"ytd-preview-comment-dialog-renderer",function(){if(jdQ!==void 0)return jdQ;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return jdQ=A},{mode:1});var I91;var Yzi=_.b("web_button_rework")&&_.Q$("BUTTON_REWORK")||_.b("web_button_rework_with_live"),Qe=function(){var A=_.a.apply(this,arguments)||this;A.closeLabel=_.$r("CLOSE");A.selectedAmountIndex=1;A.privacyCheckboxValue=!1;A.useAmsterdamStyle=Yzi;A.amountPlaceholderIndex=-1;return A};
_.I(Qe,_.a);_.q=Qe.prototype;_.q.onAmountClick=function(A){this.selectedAmountIndex=_.Va(this.hostElement).querySelector("#amounts").indexForElement(A.currentTarget)};
_.q.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Ud(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.q.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Ud(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Ud(this.hostElement,"yt-close-popup-action",[this.is]);var A;(A=_.Kj())==null||A.getPlayerPromise().then(function(H){H.pauseVideo()})}};
_.q.donationCallback=function(A){A.success?(this.hostElement.hasAttribute("live-chat")&&A.response&&A.response.data&&A.response.data.actions&&_.Ud(this.hostElement,"yt-live-chat-open-popup",[A.response.data.actions[0]]),_.Ud(this.hostElement,"yt-close-popup-action",[this.is]),_.Ud(this.hostElement,"yt-live-chat-close-buy-flow")):A.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(A.errorMessageRenderer)};
_.q.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Va(this.hostElement).querySelector("#custom-amount-input").focus()};
_.q.updateConfirmationDialogTextWithAmount=function(A){var H=this.getConfirmDialogRuns();H&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(H),"text"],this.getFormattedAmount(A))};
_.q.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.q.getAmountPlaceholderIndex=function(A){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=A.findIndex(function(H){return H.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.q.getFormattedAmount=function(A){var H;return(new _.Lm(4,((H=this.data)==null?void 0:H.currencyCode)||"")).format(A)};
_.q.isAmountValid=function(A){if(A==="")return!1;A=Number(A)*1E6;var H=this.get("minAmountMicros",this.data),k=this.get("maxAmountMicros",this.data);return H&&A<H||k&&A>k?!1:!0};
_.q.setInputError=function(){this.shouldShowValidationError?_.Va(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Va(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.q.setInitialCheckboxValue=function(){var A;this.privacyCheckboxValue=!((A=this.data)==null||!A.privacyCheckboxInitialState)};
_.q.updateCustomAmountInputFromBinding=function(A){this.customAmountInput=A.detail.value};
_.q.updatePrivacyCheckboxValueFromBinding=function(A){this.privacyCheckboxValue=A.detail.value};
_.nP.Object.defineProperties(Qe.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var A=this,H,k;return((H=this.data)==null?void 0:(k=H.suggestedAmounts)==null?void 0:k.map(function(d,W){return{buttonRenderer:{style:A.selectedAmountIndex===W?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:d.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 A;return!((A=this.data)==null||!A.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 A=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(A&&this.amountMicros!==null)return Object.assign({},A,{ypcGetCartEndpoint:Object.assign({},A.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 A=this.get("confirmLargeAmount",this.data);if(A&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),A}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A=this.get("donateButton.buttonRenderer",this.data);if(A)return Object.assign({},A,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Qe.prototype.setInitialCheckboxValue=Qe.prototype.setInitialCheckboxValue;Qe.prototype.setInputError=Qe.prototype.setInputError;Qe.prototype.setFocusOnCustomAmountInput=Qe.prototype.setFocusOnCustomAmountInput;_.E([_.P(yNI),_.l("design:type",Object)],Qe.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Qe.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Qe.prototype,"closeLabel",void 0);_.E([_.C(),_.l("design:type",Object)],Qe.prototype,"selectedAmountIndex",void 0);_.E([_.C(),_.l("design:type",String)],Qe.prototype,"customAmountInput",void 0);_.E([_.C(),_.l("design:type",Object)],Qe.prototype,"privacyCheckboxValue",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Qe.prototype,"useAmsterdamStyle",void 0);_.E([_.fF("customAmount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qe.prototype,"setFocusOnCustomAmountInput",null);_.E([_.G("data","selectedAmountIndex"),_.l("design:type",Array),_.l("design:paramtypes",[])],Qe.prototype,"suggestedAmountButtons",null);
_.E([_.G("data","selectedAmountIndex"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qe.prototype,"isCustomAmountSelected",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qe.prototype,"showPrivacyCheckbox",null);_.E([_.G("data","selectedAmountIndex","customAmount"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qe.prototype,"amountMicros",null);
_.E([_.G("isCustomAmountSelected","customAmountInput"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qe.prototype,"customAmount",null);_.E([_.G("customAmount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qe.prototype,"shouldShowValidationError",null);_.E([_.G("customAmount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Qe.prototype,"isDonateButtonEnabled",null);
_.E([_.G("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qe.prototype,"donateCommand",null);_.E([_.G("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qe.prototype,"donateCommandWithConfirmation",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qe.prototype,"largeDonationThreshold",null);
_.E([_.G("customAmount","donateCommand","amountMicros"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qe.prototype,"confirmLargeAmountCommand",null);_.E([_.G("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.l("design:type",Object),_.l("design:paramtypes",[])],Qe.prototype,"donateButtonRenderer",null);_.E([_.fF("shouldShowValidationError"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qe.prototype,"setInputError",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qe.prototype,"setInitialCheckboxValue",null);_.E([_.O6({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Qe);
_.Q(Qe,"ytd-donation-amount-picker-renderer",function(){if(I91!==void 0)return I91;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return I91=A},{mode:1});var PYI;var GvI=function(){return _.a.apply(this,arguments)||this};
_.I(GvI,_.a);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],GvI.prototype,"ytComponentBehavior",void 0);_.E([_.C({}),_.l("design:type",Object)],GvI.prototype,"data",void 0);_.E([_.O6({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],GvI);
_.Q(GvI,"ytd-donation-post-transaction-content",function(){if(PYI!==void 0)return PYI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return PYI=A},{mode:1});var FnR;var kK=function(){return _.a.apply(this,arguments)||this};
_.I(kK,_.a);kK.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.E([_.C({}),_.l("design:type",Object)],kK.prototype,"data",void 0);_.E([_.O6({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],kK);
_.Q(kK,"ytd-donation-post-transaction-renderer",function(){if(FnR!==void 0)return FnR;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return FnR=A},{mode:1});var XvM;var DyV;var d$=function(){return _.a.apply(this,arguments)||this};
_.I(d$,_.a);d$.prototype.computeIsStreamingProvider=function(A){return!!A.isStreamingShelf};
d$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],d$.prototype,"data",void 0);_.E([_.C({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],d$.prototype,"isStreamingProvider",void 0);
_.E([_.O6({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],d$);
_.Q(d$,"ytd-media-provider-renderer",function(){if(DyV!==void 0)return DyV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return DyV=A},{mode:1});var SzM;var W3=function(){return _.a.apply(this,arguments)||this};
_.I(W3,_.a);W3.prototype.observeLightsourcePalette=function(){var A,H=(A=this.data)==null?void 0:A.vibrantsourceColorPaletteData;H&&_.qN(this.hostElement,H)};
W3.prototype.observeLightsourcePalette=W3.prototype.observeLightsourcePalette;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],W3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],W3.prototype,"data",void 0);
_.E([_.fF("data.vibrantsourceColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W3.prototype,"observeLightsourcePalette",null);_.E([_.O6({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],W3);
_.Q(W3,"ytd-streaming-pop-up-dialog",function(){if(SzM!==void 0)return SzM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return SzM=A},{mode:1});var zN=function(){return _.a.apply(this,arguments)||this};
_.I(zN,_.a);zN.prototype.onPopupOpened_=function(){var A;((A=this.data)==null?0:A.serviceEndpoint)&&_.wj().resolve(_.J7).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
zN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
zN.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"}}}}};
zN.prototype.onPopupOpened_=zN.prototype.onPopupOpened_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.DV),_.l("design:type",Object)],zN.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zN.prototype,"data",void 0);
_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zN.prototype,"onPopupOpened_",null);_.E([_.O6({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],zN);
_.Q(zN,"ytd-brandconnect-popup-renderer",function(){if(XvM!==void 0)return XvM;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return XvM=A},{mode:1});var CYV;var qg=function(){return _.a.apply(this,arguments)||this};
_.I(qg,_.a);_.q=qg.prototype;_.q.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){for(var A=0;A<this.getOptionRenderers().length;A++)this.notifyPath("data.options."+A+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+A+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.q.updateSubmitButton=function(A){this.set("data.submitButton.buttonRenderer.isDisabled",!A)};
_.q.computeAlt=function(A){return _.PK(A)};
_.q.onDismissTap=function(){_.Ud(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.wj().resolve(_.J7).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.q.getOptionRenderers=function(A){return(A=A||this.data)&&A.options?A.options.reduce(function(H,k){k.checkboxSurveyOptionRenderer&&H.push(k.checkboxSurveyOptionRenderer);return H},[]):[]};
_.q.onOptionChange=function(A){var H=this,k=!1;if(A.detail.checked)for(var d=this.getOptionRenderers().find(function(B){return B.value===A.detail.value}),W=this.getOptionRenderers(),z=0;z<W.length;z++){var u=W[z];
this.notifyPath("data.options."+z+".checkboxSurveyOptionRenderer.checked");u.checked&&((d==null?0:d.isExclusiveOption)?!u.isExclusiveOption:u.isExclusiveOption)?this.set("data.options."+z+".checkboxSurveyOptionRenderer.checked",!1):u.checked&&(k=!0)}else k=this.getOptionRenderers().some(function(B,h){H.notifyPath("data.options."+h+".checkboxSurveyOptionRenderer.checked");return B.checked});
this.updateSubmitButton(k)};
_.q.onSubmitTap=function(){var A=this.getOptionRenderers().filter(function(z){return z.checked});
if(A.length!==0){var H=A.map(function(z){return z.responseEndpoint});
A=[];for(var k=1;k<H.length;k++){var d=void 0,W=(d=_.L(H[k],_.Ts))==null?void 0:d.feedbackToken;W&&A.push(W)}H=[H[0]];A.length&&H.push({extra_feedback_tokens:A});_.tx(this.hostElement,H);_.Ud(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);A=this.data&&this.data.submitActions||[];if(_.b("kevlar_command_handler_migration_killswitch"))_.NT(this.hostElement,A,this.hostElement);else for(A=_.r(A),H=A.next();!H.done;H=A.next())this.ytComponentBehavior.resolveCommand(H.value)}};
qg.prototype.onOptionChange=qg.prototype.onOptionChange;qg.prototype.dataChanged=qg.prototype.dataChanged;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],qg.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],qg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],qg.prototype,"ytComponentBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);_.E([_.P(sA3),_.l("design:type",Object)],qg.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],qg.prototype,"data",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qg.prototype,"dataChanged",null);
_.E([_.Ze("ytd-checkbox-survey-option-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],qg.prototype,"onOptionChange",null);_.E([_.O6({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],qg);
_.Q(qg,"ytd-checkbox-survey-renderer",function(){if(CYV!==void 0)return CYV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return CYV=A},{mode:1});var KnL;var a9L;var r$=function(){return _.a.apply(this,arguments)||this};
_.I(r$,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.E([_.P(AQV),_.l("design:type",Object)],r$.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],r$.prototype,"data",void 0);_.E([_.O6({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],r$);
_.Q(r$,"ytd-dismissal-reason-text-renderer",function(){if(a9L!==void 0)return a9L;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return a9L=A},{mode:1});var c5R;var u8=function(){return _.a.apply(this,arguments)||this};
_.I(u8,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.E([_.P(AQV),_.l("design:type",Object)],u8.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],u8.prototype,"data",void 0);_.E([_.O6({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],u8);
_.Q(u8,"ytd-dismissal-reason-video-renderer",function(){if(c5R!==void 0)return c5R;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return c5R=A},{mode:1});var B3=function(){return _.a.apply(this,arguments)||this};
_.I(B3,_.a);_.q=B3.prototype;_.q.created=function(){this.selectedFeedbackTokens=new gk};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.q.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.q.onDismissalReasonSelected=function(A,H){_.Ed(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(H);this.hasReasonsSelected=!0};
_.q.onDismissalReasonDeselected=function(A,H){_.Ed(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(H);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.q.onCancelTap=function(){_.Ud(this.hostElement,"yt-close-popup-action")};
_.q.onSubmitTap=function(){var A=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(A={feedback_tokens:A},_.wj().resolve(_.J7).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},A,{element:this.hostElement})}));_.Ud(this.hostElement,"yt-close-popup-action")};
B3.prototype.onDismissalReasonDeselected=B3.prototype.onDismissalReasonDeselected;B3.prototype.onDismissalReasonSelected=B3.prototype.onDismissalReasonSelected;B3.prototype.dataChanged=B3.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],B3.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Boolean)],B3.prototype,"hasReasonsSelected",void 0);_.E([_.C(),_.l("design:type",gk)],B3.prototype,"selectedFeedbackTokens",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],B3.prototype,"dataChanged",null);_.E([_.Ze("yt-dismissal-reason-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,String]),_.l("design:returntype")],B3.prototype,"onDismissalReasonSelected",null);
_.E([_.Ze("yt-dismissal-reason-deselected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,String]),_.l("design:returntype")],B3.prototype,"onDismissalReasonDeselected",null);_.E([_.O6({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],B3);
_.Q(B3,"ytd-dismissal-follow-up-renderer",function(){if(KnL!==void 0)return KnL;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return KnL=A},{mode:1});var pvi;var eb=function(){return _.a.apply(this,arguments)||this};
_.I(eb,_.a);_.q=eb.prototype;_.q.onCheckedChange=function(){this.multiselect||_.Ed(this.hostElement,"yt-feedback-single-select-changed");_.Va(this.hostElement).querySelector("#freeform").focus();_.Ed(this.hostElement,"yt-refit")};
_.q.showTextBox=function(A,H){return A&&H};
_.q.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))};
_.q.updateDataCheckedFromBinding=function(A){this.set("data.checked",A.detail.value)};
_.q.updateDataResultTextFromBinding=function(A){this.set("data.resultText",A.detail.value)};
eb.prototype.dataChanged=eb.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],eb.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],eb.prototype,"multiselect",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eb.prototype,"dataChanged",null);
_.E([_.O6({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],eb);
_.Q(eb,"ytd-feedback-option-renderer",function(){if(pvi!==void 0)return pvi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return pvi=A},{mode:1});var QdB;var xK=function(){return _.a.apply(this,arguments)||this};
_.I(xK,_.a);xK.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
xK.prototype.onSingleSelectCheckedChanged=function(A){A=_.X_(A);for(var H=0;H<this.data.options.length;H++)if(A.data!==_.L(this.data.options[H],OUG)){var k="data.options."+H+".feedbackOptionRenderer.checked";this.notifyPath(k);this.set(k,!1)}};
xK.prototype.onSingleSelectCheckedChanged=xK.prototype.onSingleSelectCheckedChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xK.prototype,"data",void 0);
_.E([_.Ze("yt-feedback-single-select-changed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],xK.prototype,"onSingleSelectCheckedChanged",null);_.E([_.O6({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],xK);
_.Q(xK,"ytd-feedback-question-renderer",function(){if(QdB!==void 0)return QdB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return QdB=A},{mode:1});var VfV;var i8=function(){return _.a.apply(this,arguments)||this};
_.I(i8,_.a);i8.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
i8.prototype.getSelectedFeedbackResults=function(){for(var A={},H=0;H<this.data.questions.length;H++)for(var k=_.L(this.data.questions[H],hnI),d=0;d<k.options.length;d++){var W=_.L(k.options[d],OUG);W&&W.checked&&(A[W.optionKey]=W.resultText)}return A};
i8.prototype.onKeyUp=function(){var A=this;_.p3(_.IE,function(){_.Ed(A.hostElement,"yt-refit")});
_.IE.start()};
i8.prototype.submitSurvey=function(){var A=this.getSelectedFeedbackResults();Object.keys(A).length>0&&this.data.submitFeedbackEndpoint&&(A={survey_results:A,is_feedback_token_unencrypted:!0},_.wj().resolve(_.J7).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},A,{element:this.hostElement})}))};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],i8.prototype,"data",void 0);_.E([_.O6({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],i8);
_.Q(i8,"ytd-feedback-survey-renderer",function(){if(VfV!==void 0)return VfV;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return VfV=A},{mode:1});var EMM;var Uye;var hH=function(){return _.a.apply(this,arguments)||this};
_.I(hH,_.a);hH.prototype.computeAlt=function(A){return _.PK(A)};
hH.prototype.submitResponse=function(){var A,H;(A=this.data)!=null&&A.feedbackToken&&((H=this.data)==null?void 0:H.nextStageIndex)!==void 0&&(_.li(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.li(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
hH.prototype.onClick=function(){this.submitResponse()};
hH.prototype.onClick=hH.prototype.onClick;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],hH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],hH.prototype,"vertical",void 0);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hH.prototype,"onClick",null);
_.E([_.O6({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],hH);
_.Q(hH,"ytd-single-select-answer-option-renderer",function(){if(Uye!==void 0)return Uye;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Uye=A},{mode:1});var l9i;var Os=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return A};
_.I(Os,_.a);Os.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Os.prototype.dataChanged=function(){var A,H;this.vertical=((H=(A=this.data)==null?void 0:A.answerOrientation)!=null?H:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Os.prototype.submitFeedback=function(A){var H;((H=this.data)==null?0:H.responseEndpoint)&&A&&_.tx(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[A]}])};
Os.prototype.dataChanged=Os.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Os.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],Os.prototype,"eventForwardingBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],Os.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Os.prototype,"vertical",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Os.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Os);
_.Q(Os,"ytd-single-select-question-renderer",function(){if(l9i!==void 0)return l9i;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return l9i=A},{mode:1});var R2=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return A};
_.I(R2,_.a);_.q=R2.prototype;_.q.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"}}}};
_.q.dataChanged=function(){this.jumpToStage(0)};
_.q.jumpToStage=function(A){var H,k;if((H=this.data)==null?0:(k=H.stages)==null?0:k[A])this.currentStage=this.data.stages[A],this.refitAfterRender()};
_.q.computeAlt=function(A){return _.PK(A)};
_.q.computeSimpleMessage=function(A){var H;return(H=_.L(A,mAB))==null?void 0:H.messageText};
_.q.computeHideDismiss=function(A){var H;return(H=_.L(A,mMV))==null?void 0:H.hideParentDismissButton};
_.q.onDismissTap=function(){_.Ud(this.hostElement,"yt-close-popup-action");_.L(this.currentStage,mAB)||this.data.dismissalEndpoint&&_.wj().resolve(_.J7).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.q.refitAfterRender=function(){var A=this;_.No(this,function(){_.Ed(A.hostElement,"yt-refit")})};
R2.prototype.dataChanged=R2.prototype.dataChanged;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],R2.prototype,"eventForwardingBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],R2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],R2.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P(sA3),_.l("design:type",Object)],R2.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],R2.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],R2.prototype,"currentStage",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],R2.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],R2);
_.Q(R2,"ytd-multi-stage-survey-renderer",function(){if(EMM!==void 0)return EMM;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return EMM=A},{mode:1});var tfi;var TN=function(){return _.a.apply(this,arguments)||this};
_.I(TN,_.a);TN.prototype.computeAlt=function(A){return _.PK(A)};
TN.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.wj().resolve(_.J7).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Ud(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(CS_(!1)))};
TN.prototype.onTap=function(){this.vertical&&this.submitResponse()};
TN.prototype.onTap=TN.prototype.onTap;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],TN.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],TN.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],TN.prototype,"vertical",void 0);
_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],TN.prototype,"onTap",null);_.E([_.O6({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],TN);
_.Q(TN,"ytd-single-option-survey-option-renderer",function(){if(tfi!==void 0)return tfi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tfi=A},{mode:1});var NcM;var mc=function(){return _.a.apply(this,arguments)||this};
_.I(mc,_.a);_.q=mc.prototype;_.q.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){var A,H;this.vertical=(((A=this.data)==null?void 0:(H=A.surveyOrientation)==null?void 0:H.type)||"HORIZONTAL")==="VERTICAL"};
_.q.computeAlt=function(A){return _.PK(A)};
_.q.onDismissTap=function(){_.Ud(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.wj().resolve(_.J7).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(CS_(!1))};
mc.prototype.dataChanged=mc.prototype.dataChanged;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],mc.prototype,"eventForwardingBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(sA3),_.l("design:type",Object)],mc.prototype,"ytdHatsSurveyBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],mc.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mc.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],mc.prototype,"vertical",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mc.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],mc);
_.Q(mc,"ytd-single-option-survey-renderer",function(){if(NcM!==void 0)return NcM;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return NcM=A},{mode:1});var Mfi;var JH=function(){return _.a.apply(this,arguments)||this};
_.I(JH,_.a);JH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JH.prototype.onDismissTap=function(){_.Ud(this.hostElement,"yt-close-popup-action")};
JH.prototype.onNavigate=function(){_.Ud(this.hostElement,"yt-close-popup-action")};
JH.prototype.onNavigate=JH.prototype.onNavigate;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],JH.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],JH.prototype,"data",void 0);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],JH.prototype,"onNavigate",null);
_.E([_.O6({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],JH);
_.Q(JH,"ytd-survey-follow-up-renderer",function(){if(Mfi!==void 0)return Mfi;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Mfi=A},{mode:1});var nMB;var ZuL;var f9V;var g$=function(){var A=_.a.apply(this,arguments)||this;A.polymer2="Element"in Polymer;return A};
_.I(g$,_.a);_.q=g$.prototype;_.q.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.q.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.q.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.q.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("minutes-changed",this.minutes))};
_.q.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("seconds-changed",this.seconds))};
_.q.updateMinutesFromBinding=function(A){this.minutes=A.detail.value};
_.q.updateSecondsFromBinding=function(A){this.seconds=A.detail.value};
g$.prototype.secondsChangedForBinding=g$.prototype.secondsChangedForBinding;g$.prototype.minutesChangedForBinding=g$.prototype.minutesChangedForBinding;g$.prototype.secondsChanged=g$.prototype.secondsChanged;_.E([_.C(),_.l("design:type",String)],g$.prototype,"minutes",void 0);_.E([_.C(),_.l("design:type",String)],g$.prototype,"seconds",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],g$.prototype,"polymer2",void 0);
_.E([_.ol("#seconds"),_.l("design:type",Object)],g$.prototype,"secondsEl",void 0);_.E([_.fF("seconds"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g$.prototype,"secondsChanged",null);_.E([_.fF("minutes"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g$.prototype,"minutesChangedForBinding",null);
_.E([_.fF("seconds"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g$.prototype,"secondsChangedForBinding",null);_.E([_.h6({is:"yt-timestamp-input",disableElementRegistration:!0})],g$);
_.Q(g$,"yt-timestamp-input",function(){if(f9V===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;ZuL===void 0&&(ZuL=document.createElement("template"));var d=ZuL;k.call(H,d.content.cloneNode(!0),A.content.firstChild);f9V=A}A=f9V;return A},{mode:2});var b8=function(){return _.a.apply(this,arguments)||this};
_.I(b8,_.a);_.q=b8.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22508_scroller.dialogElement=this.hostElement.parentNode};
_.q.dataChanged=function(){var A=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.a9().getPlayerPromise().then(function(H){H=H.getCurrentTime();A.minutes=Math.floor(H/60).toString();A.seconds=(Math.floor(H)%60).toString()})};
_.q.onTapSubmit=function(A){A.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(A={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(A.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(A.minutes=this.minutes,A.seconds=this.seconds),_.wj().resolve(_.J7).resolveCommand(this.serviceEndpoint,{form:Object.assign({},A,{element:this.hostElement})}))};
_.q.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.q.onYtServiceRequestCompleted=function(A,H){H=H.actions;if(Array.isArray(H))for(var k=0,d=H.length;k<d;k++)_.L(H[k],_.dN)&&(A.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(H[k]))};
_.q.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.q.toggleSubmitButton=function(A){this.set("submitButton.isDisabled",!A)};
_.q.handleInput=function(){var A=this.issueType,H=this.affiliation,k=this.minutes,d=this.seconds;k=!this.showTimestamp||!!k&&!!d;this.toggleSubmitButton(!!this.descriptionText&&!!A&&!!H&&k)};
_.q.computeServiceEndpoint=function(A){return this.get("submitButton.buttonRenderer.serviceEndpoint",A)};
_.q.computeSubmitButton=function(A){(A=this.get("submitButton.buttonRenderer",A))&&(A=Object.assign({},A,{serviceEndpoint:void 0}));return A};
_.q.computeShowTimestamp=function(A){return!!A};
_.q.onValueChangedForIssueType=function(A){this.issueType=A.detail.value};
_.q.onValueChangedForAffiliation=function(A){this.affiliation=A.detail.value};
_.q.updateDescriptionTextFromBinding=function(A){this.descriptionText=A.detail.value};
_.q.updateFullNameTextFromBinding=function(A){this.fullNameText=A.detail.value};
_.q.updateMinutesFromBinding=function(A){this.minutes=A.detail.value};
_.q.updateSecondsFromBinding=function(A){this.seconds=A.detail.value};
b8.prototype.handleInput=b8.prototype.handleInput;b8.prototype.onYtServiceRequestError=b8.prototype.onYtServiceRequestError;b8.prototype.onYtServiceRequestCompleted=b8.prototype.onYtServiceRequestCompleted;b8.prototype.onYtServiceRequestSent=b8.prototype.onYtServiceRequestSent;b8.prototype.dataChanged=b8.prototype.dataChanged;_.E([_.P(_.NY.YtOpenPopupBehavior),_.l("design:type",Object)],b8.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.E([_.ol("#scroller"),_.l("design:type",Object)],b8.prototype,"JSC$22508_scroller",void 0);_.E([_.ol("#description"),_.l("design:type",HTMLInputElement)],b8.prototype,"description",void 0);_.E([_.ol("#full-name"),_.l("design:type",Object)],b8.prototype,"fullName",void 0);_.E([_.C(),_.l("design:type",Object)],b8.prototype,"data",void 0);
_.E([_.C({computed:"computeShowTimestamp(data.timestampLabel)"}),_.l("design:type",Boolean)],b8.prototype,"showTimestamp",void 0);_.E([_.C({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.l("design:type",Object)],b8.prototype,"serviceEndpoint",void 0);_.E([_.C({computed:"computeSubmitButton(data)"}),_.l("design:type",Object)],b8.prototype,"submitButton",void 0);_.E([_.C(),_.l("design:type",String)],b8.prototype,"descriptionText",void 0);
_.E([_.C(),_.l("design:type",Number)],b8.prototype,"issueType",void 0);_.E([_.C(),_.l("design:type",Number)],b8.prototype,"affiliation",void 0);_.E([_.C(),_.l("design:type",String)],b8.prototype,"fullNameText",void 0);_.E([_.C(),_.l("design:type",String)],b8.prototype,"minutes",void 0);_.E([_.C(),_.l("design:type",String)],b8.prototype,"seconds",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b8.prototype,"dataChanged",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],b8.prototype,"onYtServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],b8.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],b8.prototype,"onYtServiceRequestError",null);_.E([_.fF("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b8.prototype,"handleInput",null);_.E([_.O6({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],b8);
_.Q(b8,"ytd-legal-report-details-form-renderer",function(){if(nMB!==void 0)return nMB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return nMB=A},{mode:1});var wvG;var L9=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return A};
_.I(L9,_.a);L9.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
L9.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var A=this.formRenderer.getForm();A&&this.data.submitEndpoint&&(_.wj().resolve(_.J7).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},A,{element:this.hostElement})}),_.Ud(this.hostElement,"yt-close-popup-action"))}};
L9.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Ud(this.hostElement,"yt-close-popup-action"))};
L9.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
L9.prototype.onPopupClosed=L9.prototype.onPopupClosed;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],L9.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],L9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);
_.E([_.ol("yt-form-renderer"),_.l("design:type",Object)],L9.prototype,"formRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],L9.prototype,"data",void 0);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L9.prototype,"onPopupClosed",null);_.E([_.O6({is:"ytd-form-popup-content",disableElementRegistration:!0})],L9);
_.Q(L9,"ytd-form-popup-content",function(){if(wvG!==void 0)return wvG;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return wvG=A},{mode:1});var oMG;var v3=function(){return _.a.apply(this,arguments)||this};
_.I(v3,_.a);v3.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
v3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
v3.prototype.onPopupOpened=function(){_.Ed(this.hostElement,"yt-invalidate-popup-tabbables")};
v3.prototype.onYtServiceRequestCompleted=function(A,H){H.data&&H.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Ed(this.hostElement,"yt-invalidate-popup-tabbables"))};
v3.prototype.onYtServiceRequestCompleted=v3.prototype.onYtServiceRequestCompleted;v3.prototype.onPopupOpened=v3.prototype.onPopupOpened;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],v3.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],v3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],v3.prototype,"data",void 0);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v3.prototype,"onPopupOpened",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],v3.prototype,"onYtServiceRequestCompleted",null);_.E([_.O6({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],v3);
_.Q(v3,"ytd-form-popup-renderer",function(){if(oMG!==void 0)return oMG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return oMG=A},{mode:1});var $yB;var yl=function(){var A=_.a.apply(this,arguments)||this;A.isLoading=!1;return A};
_.I(yl,_.a);_.q=yl.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");HHe(this.hostElement)};
_.q.onYtServiceRequestSent=function(){this.isLoading=!0};
_.q.onYtServiceRequestCompleted=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.q.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.NT(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.q.closePopupHandler=function(){this.fireOnCloseActions()};
_.q.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var A=this.get("data.headerImage.thumbnails");A&&(A=_.C3(A,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+A+")")}};
_.q.onYtNavigate=function(A){(A=_.X_(A))&&A.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
yl.prototype.onYtNavigate=yl.prototype.onYtNavigate;yl.prototype.onHeaderImageChanged=yl.prototype.onHeaderImageChanged;yl.prototype.closePopupHandler=yl.prototype.closePopupHandler;yl.prototype.onYtServiceRequestCompleted=yl.prototype.onYtServiceRequestCompleted;yl.prototype.onYtServiceRequestSent=yl.prototype.onYtServiceRequestSent;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],yl.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],yl.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],yl.prototype,"isLoading",void 0);_.E([_.ol("#header"),_.l("design:type",HTMLDivElement)],yl.prototype,"header",void 0);_.E([_.ol("#confirm-button"),_.l("design:type",_.sp)],yl.prototype,"confirmButton",void 0);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],yl.prototype,"onYtServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],yl.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],yl.prototype,"closePopupHandler",null);_.E([_.fF("data.headerImage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yl.prototype,"onHeaderImageChanged",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],yl.prototype,"onYtNavigate",null);
_.E([_.O6({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],yl);
_.Q(yl,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if($yB!==void 0)return $yB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return $yB=A},{mode:1});var AA3;var jb=function(){var A=_.a.apply(this,arguments)||this;A.isLoading=!1;return A};
_.I(jb,_.a);_.q=jb.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);HHe(this.hostElement)};
_.q.onYtServiceRequestCompleted=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.q.onYtServiceRequestError=function(A){_.YH(this.hostElement,A.detail.error.message)};
_.q.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.q.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Ud(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.q.onDataChanged=function(){this.isLoading=!1;var A=this.get("data.headerImage.thumbnails");A&&(A=_.C3(A,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+A+")");A=_.hx();var H=_.ii(),k=this.get("data.trackingParams");k&&H&&A&&_.v0(A,H,_.db(k))};
_.nP.Object.defineProperties(jb.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
jb.prototype.onDataChanged=jb.prototype.onDataChanged;jb.prototype.onDomChange=jb.prototype.onDomChange;jb.prototype.onYtServiceRequestError=jb.prototype.onYtServiceRequestError;jb.prototype.onYtServiceRequestCompleted=jb.prototype.onYtServiceRequestCompleted;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],jb.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jb.prototype,"isLoading",void 0);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jb.prototype,"hasDescription",null);_.E([_.ol("tp-yt-paper-dialog-scrollable"),_.l("design:type",Object)],jb.prototype,"scrollable",void 0);_.E([_.ol("#header"),_.l("design:type",HTMLElement)],jb.prototype,"header",void 0);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],jb.prototype,"onYtServiceRequestCompleted",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],jb.prototype,"onYtServiceRequestError",null);
_.E([_.Ze("dom-change"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],jb.prototype,"onDomChange",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jb.prototype,"onDataChanged",null);_.E([_.O6({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],jb);
_.Q(jb,"ytd-gaming-account-link-setting-renderer",function(){if(AA3!==void 0)return AA3;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return AA3=A},{mode:1});var Hl7;var sbO;var I2=function(){var A=_.a.apply(this,arguments)||this;A.isHeader=!1;A.getEndpointForm=function(){return XZQ(A.data)};
return A};
_.I(I2,_.a);_.q=I2.prototype;_.q.triggerHintActions=function(){var A=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var H=_.li(A.hostElement,"yt-get-opened-popups-action");!(H&&H.length===1?H[0]:[]).some(function(k){k=k.openPopupAction.popupType;return k==="SURVEY"||k==="MEALBAR"||k==="HINT"})&&A.data.hintActions&&A.guideOpened&&(_.NT(A.hostElement,A.data.hintActions,A.hostElement),A.data.hintActions=void 0)})};
_.q.getBadgeIconType=function(A){return A&&A.liveBroadcasting?"live":null};
_.q.onDown=function(){this.interaction.triggerDown()};
_.q.onUp=function(){this.interaction.triggerUp()};
_.q.onTap=function(A){if(this.data.serviceEndpoint){var H;_.b("shorts_controller_retrieve_seedless_sequence_v2")&&((H=_.L(this.data.serviceEndpoint,_.A1))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):F9I(this.data.serviceEndpoint,this);A.preventDefault()}else this.data.navigationEndpoint&&!_.XU(_.F_(A),this.hostElement,["A".toString()])&&_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.q.computeActive=function(A,H){if(!A)return!1;var k=A.navigationEndpoint;A=A.serviceEndpoint;if(!k&&!A||!H)return!1;if(k){A=(A=_.Zu(H))&&["subscriptions","filteredsubscriptions"].includes(A);if(_.L(k,_.fm)&&_.L(H,_.fm)&&!A){var d=_.L(k,_.fm).browseId;H=_.L(H,_.fm).browseId;return d!==void 0&&H!==void 0&&(d===H||d==="VLWL"&&H==="FEwatch_later"||d==="FEwatch_later"&&H==="VLWL")}var W;k=(W=_.L(k.commandMetadata,_.wn))==null?void 0:W.url;H=(d=_.L(H.commandMetadata,_.wn))==null?void 0:d.url;return!(!k||
!H||k!==H&&k!==_.Nx(H))}return this.isActiveShortsTab(A,H)};
_.q.isActiveShortsTab=function(A,H){H=!!_.L(H,_.A1)||!!_.L(H,_.m1);return(!!_.L(A,_.A1)||!!_.L(A,_.m1))&&H};
_.q.computeIsPrimary=function(A){return!!A};
_.nP.Object.defineProperties(I2.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 A=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&A)return A}}});
I2.prototype.onTap=I2.prototype.onTap;I2.prototype.onUp=I2.prototype.onUp;I2.prototype.onDown=I2.prototype.onDown;I2.prototype.triggerHintActions=I2.prototype.triggerHintActions;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],I2.prototype,"componentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],I2.prototype,"rendererBehavior",void 0);_.E([_.P(_.Xj.YtTaskEmitterBehavior),_.l("design:type",Object)],I2.prototype,"taskEmitterBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],I2.prototype,"activeEndpoint",void 0);_.E([_.C(),_.l("design:type",Object)],I2.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],I2.prototype,"guideOpened",void 0);_.E([_.C(),_.l("design:type",String)],I2.prototype,"type",void 0);_.E([_.ol("yt-interaction"),_.l("design:type",Object)],I2.prototype,"interaction",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],I2.prototype,"isHeader",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data","activeEndpoint"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],I2.prototype,"active",null);_.E([_.C({reflectToAttribute:!0}),_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],I2.prototype,"isPrimary",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.count","data.presentationStyle","data.badges.*"),_.l("design:type",String),_.l("design:paramtypes",[])],I2.prototype,"lineEndStyle",null);
_.E([_.G("lineEndStyle"),_.l("design:type",Object),_.l("design:paramtypes",[])],I2.prototype,"ariaLabel",null);_.E([_.fF("data.hintActions","guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],I2.prototype,"triggerHintActions",null);_.E([_.Ze("down"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],I2.prototype,"onDown",null);
_.E([_.Ze("up"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],I2.prototype,"onUp",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],I2.prototype,"onTap",null);_.E([_.O6({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],I2);
_.Q(I2,"ytd-guide-entry-renderer",function(){if(sbO!==void 0)return sbO;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return sbO=A},{mode:1});var YK=function(){var A=_.a.apply(this,arguments)||this;A.userToggled=!1;return A};
_.I(YK,_.a);_.q=YK.prototype;_.q.getItemsPath=function(){return"data.expandableItems"};
_.q.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.q.onExpanderItemTapped=function(A){var H=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.b("kevlar_guide_expandable_items_killswitch")&&_.No(this,function(){_.UY(H.expandableItems)});
A.preventDefault()};
_.q.onCollapserItemTapped=function(A){var H=this;this._setExpanded(!1);this.userToggled=!0;A.preventDefault();this.expandableItems&&!_.b("kevlar_guide_collapsible_items_killswitch")&&_.No(this,function(){_.EY(H.hostElement)})};
_.q.observeActiveEndpoint=function(){for(var A=this.activeEndpoint,H=this.data,k=this.expandableItems.children,d=0,W=k.length;d<W;d++)k[d].activeEndpoint=A;H&&H.autoExpandCommand&&A&&!this.userToggled&&(k=this.data.autoExpandCommand,H=!(!_.L(k,_.fm)||!_.L(A,_.fm)||_.L(k,_.fm).browseId!==_.L(A,_.fm).browseId),A=this.get("commandMetadata.webCommandMetadata.url",A),k=this.get("commandMetadata.webCommandMetadata.url",k),H=H||!!(A&&k&&A.includes(k)),this._setExpanded(H),H&&this.ytLazyListBehavior.fillRemainingListItems())};
YK.prototype.observeActiveEndpoint=YK.prototype.observeActiveEndpoint;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.cw.YtLazyListBehavior),_.l("design:type",Object)],YK.prototype,"ytLazyListBehavior",void 0);_.E([_.ol("#expandable-items"),_.l("design:type",HTMLElement)],YK.prototype,"expandableItems",void 0);
_.E([_.C(),_.l("design:type",Object)],YK.prototype,"data",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],YK.prototype,"expanded",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],YK.prototype,"initialCount",void 0);_.E([_.C(),_.l("design:type",Object)],YK.prototype,"activeEndpoint",void 0);_.E([_.fF("data","activeEndpoint","canShowMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YK.prototype,"observeActiveEndpoint",null);
_.E([_.O6({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],YK);
_.Q(YK,"ytd-guide-collapsible-entry-renderer",function(){if(Hl7!==void 0)return Hl7;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Hl7=A},{mode:2});var kfW;var dvR;var P3=function(){var A=_.a.apply(this,arguments)||this;A.allVideosCount=0;A.renderGuideEntry=!1;return A};
_.I(P3,_.a);P3.prototype.observeRenderEntry=function(){var A;this.renderGuideEntry=!((A=this.data)==null||!A.alwaysShow)||!!this.allVideosCount};
P3.prototype.observeRenderEntry=P3.prototype.observeRenderEntry;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],P3.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],P3.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],P3.prototype,"activeEndpoint",void 0);_.E([_.C({selector:_.Kfm}),_.l("design:type",Object)],P3.prototype,"allVideosCount",void 0);
_.E([_.C(),_.l("design:type",Object)],P3.prototype,"renderGuideEntry",void 0);_.E([_.s6("allVideosCount","data.alwaysShow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],P3.prototype,"observeRenderEntry",null);_.E([_.O6({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],P3);
_.Q(P3,"ytd-guide-downloads-entry-renderer",function(){if(dvR===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);dvR=A}A=dvR;return A},{mode:1});var GN=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return A};
_.I(GN,_.a);_.q=GN.prototype;_.q.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]]"}}}}}};
_.q.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var A=this.sectionItems.children,H=0,k=A.length;H<k;H++)A[H].activeEndpoint=this.activeEndpoint}};
_.q.handleAddToGuideSectionAction=function(A){var H=_.L(A,AP1);if(H&&this.data&&(A=H.items,H=H.handlerData,A&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1)){H=0;for(var k=A.length;H<k;H++)A[H].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,A[H])}};
_.q.handleRemoveFromGuideSectionAction=function(A){var H=_.L(A,Hv3);H&&this.data&&(A=H.guideEntryId,H=H.handlerData,A&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(A,this.data.sectionItems),this.removeFromCollapsedSection(A,this.data.sectionItems)))};
_.q.removeFromExpandedSection=function(A,H){A=this.getEntryIndexMatchingId(A,H);A!==-1&&this.splice("data.sectionItems",A,1)};
_.q.removeFromCollapsedSection=function(A,H){var k=H.findIndex(function(d){return!!_.L(d,S8i)});
k&&k!==-1&&H[k]&&_.L(H[k],S8i)&&(H=_.L(H[k],S8i).expandableItems)&&(A=this.getEntryIndexMatchingId(A,H),A!==-1&&this.splice("data.sectionItems."+k+".guideCollapsibleEntryRenderer.expandableItems",A,1))};
_.q.getEntryIndexMatchingId=function(A,H){var k=this;return H.findIndex(function(d){return k.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",d)===A})};
GN.prototype.activeEndpointChanged=GN.prototype.activeEndpointChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],GN.prototype,"actionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.ol("#section-items"),_.l("design:type",HTMLDivElement)],GN.prototype,"sectionItems",void 0);
_.E([_.ol("#header-entry"),_.l("design:type",Object)],GN.prototype,"headerEntry",void 0);_.E([_.C(),_.l("design:type",Object)],GN.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],GN.prototype,"activeEndpoint",void 0);_.E([_.fF("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GN.prototype,"activeEndpointChanged",null);_.E([_.O6({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],GN);
_.Q(GN,"ytd-guide-collapsible-section-entry-renderer",function(){if(kfW===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);kfW=A}A=kfW;return A},{mode:1});var Wrf;var zmO;var FS=function(){var A=_.a.apply(this,arguments)||this;A.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 A};
_.I(FS,_.a);_.q=FS.prototype;
_.q.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}}}}};
_.q.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var A=_.li(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);A&&A.length===1&&A[0]&&_.li(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.q.handleResetChannelUnreadCountCommand=function(A){var H;(A=(H=_.L(A,dML))==null?void 0:H.channelId)&&this.data&&this.data.items&&(H=this.getPathToEntryMatchingId(A))&&(this.set(H+".guideEntryRenderer.count",0),this.set(H+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.q.handleResetSubscriptionsUnreadDotCommand=function(A){var H,k=(H=_.L(A,WdV))==null?void 0:H.targetId,d;k&&(d=this.data)!=null&&d.items&&(A=this.data.items.findIndex(function(W){var z;return((z=W.guideEntryRenderer)==null?void 0:z.targetId)===k}),A<0||this.set("data.items."+A+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.q.getPathToEntryMatchingId=function(A){if(this.data&&this.data.items){var H=this.getEntryIndexMatchingId(A,this.data.items);if(H>-1)return"data.items."+H;for(var k=0;k<this.data.items.length;k++)if(H=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[k]))if(H=this.getEntryIndexMatchingId(A,H),H>-1)return"data.items."+k+".guideCollapsibleEntryRenderer.expandableItems."+H}};
_.q.handleAddToGuideSectionAction=function(A){var H=this;if(_.L(A,AP1)){var k=_.L(A,AP1).items;A=_.L(A,AP1).handlerData;var d,W;if(k&&A&&((d=this.data)==null?void 0:(W=d.handlerDatas)==null?void 0:W.indexOf(A))>-1){k=k.filter(function(u){return(u=H.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",u))&&!H.isGuideItemPresent(u)});
var z;if(A==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((z=this.data)==null?0:z.items)&&(d=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),d>-1)){this.splice.apply(this,["data.items",d+1,0].concat(_.fV(k)));return}this.unshift.apply(this,["data.items"].concat(_.fV(k)))}}};
_.q.isGuideItemPresent=function(A){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(A,this.data.items)!==-1)return!0;var H=this.data.items.find(function(k){return!!k.guideCollapsibleEntryRenderer});
if((H==null?0:H.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(A,H.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.q.getEntryIndexMatchingId=function(A,H){var k=this;return H.findIndex(function(d){return k.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",d)===A})};
_.q.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(A,H){var k=this;return H.findIndex(function(d){return k.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",d)===A})};
_.q.handleRemoveFromGuideSectionAction=function(A){if(_.L(A,Hv3)){var H=_.L(A,Hv3).guideEntryId;A=_.L(A,Hv3).handlerData;var k,d;H&&A&&((k=this.data)==null?void 0:(d=k.handlerDatas)==null?void 0:d.indexOf(A))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(H,this.data.items),this.removeFromCollapsedSection(H,this.data.items))}};
_.q.removeFromExpandedSection=function(A,H){A=this.getEntryIndexMatchingId(A,H);A!==-1&&this.splice("data.items",A,1)};
_.q.removeFromCollapsedSection=function(A,H){var k=H.findIndex(function(d){return!!d.guideCollapsibleEntryRenderer});
k!==-1&&(H=H[k].guideCollapsibleEntryRenderer.expandableItems)&&(A=this.getEntryIndexMatchingId(A,H),A!==-1&&this.splice("data.items."+k+".guideCollapsibleEntryRenderer.expandableItems",A,1))};
_.q.activeEndpointChanged=function(){for(var A=_.Va(this.hostElement).querySelector("#items").children,H=0,k=A.length;H<k;H++)A[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.q.guideOpenedChanged=function(){for(var A=_.Va(this.hostElement).querySelector("#items").children,H=0,k=A.length;H<k;H++)A[H].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
FS.prototype.guideOpenedChanged=FS.prototype.guideOpenedChanged;FS.prototype.activeEndpointChanged=FS.prototype.activeEndpointChanged;FS.prototype.persistentGuideChanged=FS.prototype.persistentGuideChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],FS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.cw.YtLazyListBehavior),_.l("design:type",Object)],FS.prototype,"ytLazyListBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],FS.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],FS.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],FS.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",String)],FS.prototype,"type",void 0);_.E([_.C({value:20}),_.l("design:type",Number)],FS.prototype,"initialCount",void 0);_.E([_.C({value:10}),_.l("design:type",Number)],FS.prototype,"targetFramerate",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],FS.prototype,"autoFill",void 0);_.E([_.C({value:50}),_.l("design:type",Number)],FS.prototype,"renderDelay",void 0);
_.E([_.fF("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FS.prototype,"persistentGuideChanged",null);_.E([_.s6("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FS.prototype,"activeEndpointChanged",null);_.E([_.s6("guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FS.prototype,"guideOpenedChanged",null);
_.E([_.O6({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],FS);
_.Q(FS,"ytd-guide-section-renderer",function(){if(zmO!==void 0)return zmO;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return zmO=A},{mode:2});var qCO;var XS=function(){return _.a.apply(this,arguments)||this};
_.I(XS,_.a);_.nP.Object.defineProperties(XS.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],XS.prototype,"rendererBehaviors",void 0);_.E([_.C(),_.l("design:type",Object)],XS.prototype,"data",void 0);_.E([_.C(),_.G("data.signInButton.buttonRenderer.style"),_.l("design:type",Object),_.l("design:paramtypes",[])],XS.prototype,"alignByText",null);_.E([_.O6({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],XS);
_.Q(XS,"ytd-guide-signin-promo-renderer",function(){if(qCO===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);qCO=A}A=qCO;return A},{mode:1});var D0=function(){var A=_.a.apply(this,arguments)||this;A.showFooter=!1;return A};
_.I(D0,_.a);D0.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}}}}};
D0.prototype.attached=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1){H=_.wj().resolve(_.fZ(_.Lg));if(!H)return k.jumpTo(0);H.setGuideData(A.hostElement);return k.yield(0,3)}A.ytLazyListBehavior.initialCount=2;return k.return()})};
D0.prototype.onMouseExit=function(){_.b("web_guide_hover_expansion")&&_.li(this.hostElement,"yt-guide-mouseleaved",[])};
D0.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
D0.prototype.dataChanged=D0.prototype.dataChanged;D0.prototype.onMouseExit=D0.prototype.onMouseExit;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],D0.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.cw.YtLazyListBehavior),_.l("design:type",Object)],D0.prototype,"ytLazyListBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],D0.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],D0.prototype,"showFooter",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],D0.prototype,"autoFill",void 0);_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D0.prototype,"onMouseExit",null);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D0.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-guide-renderer",disableElementRegistration:!0})],D0);
_.Q(D0,"ytd-guide-renderer",function(){if(Wrf!==void 0)return Wrf;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Wrf=A},{mode:2});var rAw;var Sb=function(){var A=_.a.apply(this,arguments)||this;A.systemIcons=_.b("kevlar_system_icons");A.frostedGlass=_.b("web_frosted_glass");A.onAllyMenuButtonClick=function(){var H=A.getShowSheetCommand();H&&A.ytComponentBehavior.resolveCommand(H)};
A.getEndpointForm=function(){return XZQ(A.data)};
return A};
_.I(Sb,_.a);_.q=Sb.prototype;_.q.attached=function(){this.JSC$22561_sheetController=_.wj().resolve(_.x0)};
_.q.onDown=function(){this.interaction.triggerDown()};
_.q.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var A;(A=this.JSC$22561_sheetController)==null||DrR(A,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.q.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.q.isSeedlessReelCommand=function(A){var H;return!!A&&((H=_.L(A,_.A1))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.q.isShowSheetCommand=function(A){return!!A&&!!_.L(A,_.d9)};
_.q.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.q.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.q.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.q.onUp=function(){this.interaction.triggerUp()};
_.q.onTap=function(A){if(this.data.serviceEndpoint){if(_.b("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);var H;(H=this.JSC$22561_sheetController)==null||DrR(H,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));A.preventDefault();
return}F9I(this.data.serviceEndpoint,this)}A.preventDefault()}else{var k;((k=this.data)==null?0:k.navigationEndpoint)&&!_.XU(_.F_(A),this.hostElement,["A".toString()])&&_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.q.computeActive=function(A,H){if(!A)return!1;var k=A.navigationEndpoint;A=A.serviceEndpoint;if(!k&&!A||!H)return!1;if(k){A=_.L(k,_.fm);var d=_.L(H,_.fm);if(A&&d)return A.browseId===d.browseId&&A.params===d.params;var W;k=(W=_.L(k.commandMetadata,_.wn))==null?void 0:W.url;var z;H=(z=_.L(H.commandMetadata,_.wn))==null?void 0:z.url;return!(!k||!H||k!==H&&k!==_.Nx(H))}return this.isActiveShortsTab(A,H)};
_.q.isActiveShortsTab=function(A,H){H=!!_.L(H,_.A1)||!!_.L(H,_.m1);return(!!_.L(A,_.A1)||!!_.L(A,_.m1))&&H};
_.q.computeTitle=function(A,H){return H?"":_.PK(A)};
_.q.computeEndpoint=function(A){return this.isSeedlessReelCommand(A.serviceEndpoint)?A.serviceEndpoint:A.navigationEndpoint};
_.q.computeHref=function(A){A=this.isSeedlessReelCommand(A.serviceEndpoint)?A.serviceEndpoint:A.navigationEndpoint;return(A=this.ytComponentBehavior.computeHref_(A))?A:"#"};
_.q.computeAriaLabelTitle=function(A){return _.PK(A)};
_.q.computeAllyShowMenuOnTap=function(A){return this.isShowSheetCommand(A.mouseEnterEndpoint)||this.isShowSheetCommand(A.serviceEndpoint)};
_.nP.Object.defineProperties(Sb.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Sb.prototype.onMouseLeave=Sb.prototype.onMouseLeave;Sb.prototype.onMouseEnter=Sb.prototype.onMouseEnter;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Sb.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.rx),_.l("design:type",Object)],Sb.prototype,"ironButtonState",void 0);_.E([_.C(),_.l("design:type",Object)],Sb.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],Sb.prototype,"activeEndpoint",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Sb.prototype,"noLabels",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.l("design:type",Boolean)],Sb.prototype,"isActive",void 0);_.E([_.C({computed:"computeEndpoint(data)"}),_.l("design:type",Object)],Sb.prototype,"computedEndpoint",void 0);
_.E([_.C({computed:"computeHref(data)"}),_.l("design:type",String)],Sb.prototype,"computedHref",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Sb.prototype,"systemIcons",void 0);_.E([_.ol("yt-interaction"),_.l("design:type",Object)],Sb.prototype,"interaction",void 0);_.E([_.G("isActive"),_.l("design:type",Object),_.l("design:paramtypes",[])],Sb.prototype,"ariaSelected",null);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],Sb.prototype,"frostedGlass",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.l("design:type",Boolean)],Sb.prototype,"allyShowMenuOnTap",void 0);_.E([_.Ze("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],Sb.prototype,"onMouseEnter",null);_.E([_.Ze("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],Sb.prototype,"onMouseLeave",null);
_.E([_.O6({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Sb);
_.Q(Sb,"ytd-mini-guide-entry-renderer",function(){if(rAw!==void 0)return rAw;var A=document.createElement("template");_.Y(A,'\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$="[[computedHref]]" 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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return rAw=A},{mode:_.E6("kevlar_poly_si_batch_j063")?1:2});var uXw;var C9=function(){var A=_.a.apply(this,arguments)||this;A.allVideosCount=0;A.noLabels=_.b("kevlar_mini_guide_no_labels");A.frostedGlass=_.b("web_frosted_glass");return A};
_.I(C9,_.a);_.q=C9.prototype;_.q.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.q.onMouseEnter=function(){_.b("web_guide_hover_expansion")&&_.li(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.q.visibleChanged=function(){if(this.visible&&!this.data){var A=_.wj().resolve(_.fZ(_.Lg));A&&A.setGuideData(this.hostElement);_.n4(_.A7(),this.miniGuideVe);(A=_.hx())&&this.miniGuideVe&&_.jc(A,this.miniGuideVe)}};
_.q.dataChanged=function(){var A=_.b("kevlar_guide_menu_on_hover")&&_.b("kevlar_modern_mini_guide"),H=_.b("kevlar_guide_menu_on_click")&&_.b("kevlar_modern_mini_guide"),k;var d=(k=this.data)==null?void 0:k.items;k=this.allVideosCount;var W=[];A=A?0:H?1:void 0;H=A!==void 0;if(d){for(var z=[],u=!1,B=_.r(d),h=B.next();!h.done;h=B.next()){h=h.value;if(h.guideSubscriptionsSectionRenderer){var O=void 0;z=((O=h.guideSubscriptionsSectionRenderer)==null?void 0:O.items)||[]}O=void 0;if((O=h.guideSectionRenderer)==
null?0:O.items)for(O=void 0,h=_.r((O=h.guideSectionRenderer)==null?void 0:O.items),O=h.next();!O.done;O=h.next()){var T=void 0;((T=O.value.guideEntryRenderer)==null?void 0:T.targetId)==="subscriptions-guide-item"&&(u=!0)}}d=_.r(d);for(B=d.next();!B.done;B=d.next())if(B=B.value,h=void 0,(h=B.guideSectionRenderer)==null?0:h.items)for(h=void 0,B=_.r((h=B.guideSectionRenderer)==null?void 0:h.items),h=B.next();!h.done;h=B.next()){h=h.value;var m=T=void 0;O=h.guideEntryRenderer||_.L((T=h)==null?void 0:
(m=T.guideCollapsibleSectionEntryRenderer)==null?void 0:m.headerEntry,DJB);T=[];m=[];var J=void 0;if(((J=O)==null?void 0:J.targetId)==="subscriptions-guide-item")T=z;else{var g=J=void 0;if((J=h)==null?0:(g=J.guideCollapsibleSectionEntryRenderer)==null?0:g.sectionItems)m=T=h.guideCollapsibleSectionEntryRenderer.sectionItems}K9L(W,O,H?T:[],A);if(m.length>0)for(h=_.r(m),O=h.next();!O.done;O=h.next())O=O.value,m=_.L(O,bbR),T=void 0,m=m&&_.b("enable_mini_guide_downloads_item")&&(m.alwaysShow||k)?_.L((T=
m)==null?void 0:T.entryRenderer,DJB):_.L(O,DJB),K9L(W,m,[])}else h=void 0,!u&&((h=B.guideSubscriptionsSectionRenderer)==null?0:h.items)&&(T=O=h=void 0,B=_.L((h=B.guideSubscriptionsSectionRenderer)==null?void 0:(O=h.items[0])==null?void 0:(T=O.guideCollapsibleSectionEntryRenderer)==null?void 0:T.headerEntry,DJB),K9L(W,B,z,A))}this.miniGuideItems=W};
_.q.activeEndpointChanged=function(){for(var A=this.items.children,H=0;H<A.length;H++)A[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.q.registerWithViewTransitionManager=function(){var A=this;_.ma(_.IE,function(){var H=_.wj().resolve(_.fZ(_.uv));if(H&&H.isAnyTransitionEnabled){var k={};H.viewTransitionCoordinator.registerElement(A.hostElement,(k.slide="mini-guide-page-transition",k))}})};
C9.prototype.activeEndpointChanged=C9.prototype.activeEndpointChanged;C9.prototype.dataChanged=C9.prototype.dataChanged;C9.prototype.visibleChanged=C9.prototype.visibleChanged;C9.prototype.onMouseEnter=C9.prototype.onMouseEnter;_.E([_.P(_.TG),_.l("design:type",Object)],C9.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],C9.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],C9.prototype,"ytComponentBehavior",void 0);_.E([_.ol("#items"),_.l("design:type",Object)],C9.prototype,"items",void 0);_.E([_.C(),_.l("design:type",Object)],C9.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Boolean)],C9.prototype,"visible",void 0);_.E([_.C(),_.l("design:type",Object)],C9.prototype,"miniGuideItems",void 0);_.E([_.C({selector:_.Kfm}),_.l("design:type",Object)],C9.prototype,"allVideosCount",void 0);_.E([_.C({value:_.t8(283834)}),_.l("design:type",_.xr)],C9.prototype,"miniGuideVe",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],C9.prototype,"noLabels",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],C9.prototype,"frostedGlass",void 0);_.E([_.Ze("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],C9.prototype,"onMouseEnter",null);_.E([_.s6("visible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],C9.prototype,"visibleChanged",null);
_.E([_.s6("data","allVideosCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],C9.prototype,"dataChanged",null);_.E([_.s6("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],C9.prototype,"activeEndpointChanged",null);_.E([_.O6({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],C9);
_.Q(C9,"ytd-mini-guide-renderer",function(){if(uXw===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);uXw=A}A=uXw;return A},{mode:1});var BIB;var em3=/^[\x00-\x7F]+$/,K9=function(){return _.a.apply(this,arguments)||this};
_.I(K9,_.a);_.nP.Object.defineProperties(K9.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var A,H=_.PK((A=this.data)==null?void 0:A.handle);if(H)return _.Yu("@"+H)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var A=_.PK(this.displayHandle),H,k=_.PK((H=this.data)==null?void 0:H.handleUrl);if(A&&k)return _.Yu(k+A)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var A=_.PK(this.displayHandle);if(A&&!em3.test(A)){var H;return(H=this.data)==null?void 0:H.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var A=_.PK(this.displayHandleUrl),H,k=_.PK((H=this.data)==null?void 0:H.urlInfoText);if(A&&k)return _.Yu(k+" "+A)}}});
_.E([_.C(),_.l("design:type",Object)],K9.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],K9.prototype,"displayHandle",null);_.E([_.G("displayHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],K9.prototype,"displayHandleUrl",null);_.E([_.G("displayHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],K9.prototype,"warningText",null);
_.E([_.G("displayHandleUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],K9.prototype,"urlInfoTextWithUrl",null);_.E([_.O6({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],K9);
_.Q(K9,"ytd-handles-claiming-confirm-dialog-content",function(){if(BIB!==void 0)return BIB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return BIB=A},{mode:1});var xvn;var a2=function(){var A=_.a.apply(this,arguments)||this;A.okButtonOverride={style:"mono",type:"outline",size:"M"};return A};
_.I(a2,_.a);a2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
a2.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],a2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],a2.prototype,"okButtonOverride",void 0);_.E([_.C(),_.l("design:type",Object)],a2.prototype,"data",void 0);_.E([_.O6({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],a2);
_.Q(a2,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(xvn!==void 0)return xvn;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return xvn=A},{mode:1});var ilG;var hm3=/^[\x00-\x7F]+$/,c3=function(){var A=_.a.apply(this,arguments)||this;A.isLoading=!1;return A};
_.I(c3,_.a);c3.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var A;this.selectedHandle=(A=this.handleInput)==null?void 0:A.value;this.onSelectedHandleChanged(this.selectedHandle);_.li(this.hostElement,"yt-refit-popups-action")}};
_.nP.Object.defineProperties(c3.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Yu("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Yu(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!hm3.test(this.selectedHandle)){var A;return(A=this.data)==null?void 0:A.warningText}}}});
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],c3.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],c3.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],c3.prototype,"selectedHandle",void 0);_.E([_.C(),_.l("design:type",Object)],c3.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",Function)],c3.prototype,"onSelectedHandleChanged",void 0);_.E([_.ol("#channel-handle-input"),_.l("design:type",Object)],c3.prototype,"handleInput",void 0);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],c3.prototype,"handleUrlPrefix",null);_.E([_.G("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],c3.prototype,"displayHandle",null);_.E([_.G("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],c3.prototype,"displayHandleUrl",null);_.E([_.G("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],c3.prototype,"warningText",null);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.E([_.O6({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],c3);
_.Q(c3,"ytd-handles-claiming-edit-dialog-content",function(){if(ilG!==void 0)return ilG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ilG=A},{mode:1});var OlI;var p9=function(){var A=_.a.apply(this,arguments)||this;A.actionButtonOverride={style:"mono",type:"filled",size:"M"};A.cancelButtonOverride={style:"mono",type:"text",size:"M"};A.selectButtonDisabled=!1;A.isLoading=!1;A.hasSelectedHandleEventListener=!1;A.selectedHandleChanged=function(H){A.selectedHandle=H};
return A};
_.I(p9,_.a);_.q=p9.prototype;_.q.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.q.onDataChanged=function(){var A,H;this.selectedHandle=(H=_.L((A=this.data)==null?void 0:A.inputField,Ev_))==null?void 0:H.handle};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onCancel=function(){this.selectedHandle="";_.Ud(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.onSelectHandle=function(){var A=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(k,d){if(d.newHandleUpdateStatus!==void 0&&d.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&d.newHandleUpdateStatus.errorMessage)_.YH(A.hostElement,_.PK(d.newHandleUpdateStatus.errorMessage)),
A.isLoading=!1;else{var W;if((W=A.data)==null?0:W.onChannelUpdateSuccess){k=A.data.onChannelUpdateSuccess;var z,u;if(d=(z=_.L(k,_.dN))==null?void 0:(u=z.popup)==null?void 0:u.handlesClaimingConfirmDialogRenderer)d.handle=_.Yu(A.selectedHandle);A.ytComponentBehavior.resolveCommand(k);_.Ud(A.hostElement,"yt-close-popup-action",[A.is])}else A.isLoading=!1}},
onServerError:function(){var k;A.content&&((k=A.content)==null?0:k.handleInput)&&A.content.handleInput.validate();A.isLoading=!1;_.YH(A.hostElement,_.$r("TRY_AGAIN_LATER"))}}}))}};
_.q.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
p9.prototype.onDataChanged=p9.prototype.onDataChanged;p9.prototype.onSelectedHandleChanged=p9.prototype.onSelectedHandleChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],p9.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],p9.prototype,"actionButtonOverride",void 0);_.E([_.C(),_.l("design:type",Object)],p9.prototype,"cancelButtonOverride",void 0);_.E([_.C(),_.l("design:type",Object)],p9.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",String)],p9.prototype,"selectedHandle",void 0);_.E([_.C(),_.l("design:type",Object)],p9.prototype,"selectButtonDisabled",void 0);_.E([_.C(),_.l("design:type",Object)],p9.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",Object)],p9.prototype,"hasSelectedHandleEventListener",void 0);_.E([_.C(),_.l("design:type",Object)],p9.prototype,"handleInput",void 0);
_.E([_.fF("selectedHandle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p9.prototype,"onSelectedHandleChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p9.prototype,"onDataChanged",null);_.E([_.ol("ytd-handles-claiming-edit-dialog-content"),_.l("design:type",Object)],p9.prototype,"content",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.O6({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],p9);
_.Q(p9,"ytd-handles-claiming-edit-dialog-renderer",function(){if(OlI!==void 0)return OlI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return OlI=A},{mode:1});var RmB;var Ql=function(){return _.a.apply(this,arguments)||this};
_.I(Ql,_.a);_.nP.Object.defineProperties(Ql.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.handle){var H;return _.Yu("@"+_.PK((H=this.data)==null?void 0:H.handle))}}}});
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ql.prototype,"formattedHandle",null);_.E([_.C(),_.l("design:type",Object)],Ql.prototype,"data",void 0);_.E([_.O6({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Ql);
_.Q(Ql,"ytd-handles-claiming-radio-option-renderer",function(){if(RmB!==void 0)return RmB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return RmB=A},{mode:1});var TIf;var mvB=/^[\x00-\x7F]+$/,Vl=function(){var A=_.a.apply(this,arguments)||this;A.initialRadioIndex="-1";A.isLoading=!1;A.maybeSubmitFeedback=function(){A.feedbackSurveyRenderer.submitSurvey()};
return A};
_.I(Vl,_.a);Vl.prototype.updateSelectedHandleIndexFromBinding=function(A){this.selectedRadioIndex=+A.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(A)};
Vl.prototype.selectedHandleChanged=function(A){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var H;this.selectedHandle=(H=this.handleInput)==null?void 0:H.value;this.onSelectedHandleChanged(A)}};
_.nP.Object.defineProperties(Vl.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var A;return this.ytRendererBehavior.getSimpleString((A=this.data)==null?void 0:A.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Yu("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Yu(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!mvB.test(this.selectedHandle)){var A;return(A=this.data)==null?void 0:A.warningText}}}});
_.E([_.C(),_.l("design:type",Object)],Vl.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Vl.prototype,"initialRadioIndex",void 0);_.E([_.C(),_.l("design:type",Number)],Vl.prototype,"selectedRadioIndex",void 0);_.E([_.C(),_.l("design:type",String)],Vl.prototype,"selectedHandle",void 0);_.E([_.C(),_.l("design:type",Object)],Vl.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",Function)],Vl.prototype,"onSelectedHandleChanged",void 0);
_.E([_.C(),_.l("design:type",Function)],Vl.prototype,"onSelectedRadioIndexChanged",void 0);_.E([_.ol("#channel-handle-input"),_.l("design:type",Object)],Vl.prototype,"handleInput",void 0);_.E([_.ol("ytd-feedback-survey-renderer"),_.l("design:type",Object)],Vl.prototype,"feedbackSurveyRenderer",void 0);_.E([_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],Vl.prototype,"radioButtonLength",null);
_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Vl.prototype,"handleUrlPrefix",null);_.E([_.G("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Vl.prototype,"displayHandle",null);_.E([_.G("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Vl.prototype,"displayHandleUrl",null);_.E([_.G("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Vl.prototype,"warningText",null);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.E([_.O6({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Vl);
_.Q(Vl,"ytd-handles-claiming-select-dialog-content",function(){if(TIf!==void 0)return TIf;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return TIf=A},{mode:1});var JAW;var Es=function(){var A=_.a.apply(this,arguments)||this;A.actionButtonOverride={style:"mono",type:"filled",size:"M"};A.cancelButtonOverride={style:"mono",type:"text",size:"M"};A.initialRadioIndex="-1";A.selectButtonDisabled=!1;A.isLoading=!1;A.selectedRadioIndexChanged=function(H){A.selectedRadioIndex=Number(H.detail.value)};
A.selectedHandleChanged=function(H){A.selectedHandle=H.detail.value};
return A};
_.I(Es,_.a);_.q=Es.prototype;_.q.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.q.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.q.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.li(this.hostElement,"yt-refit-popups-action")};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Ud(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.onSelectHandle=function(){var A=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(k,d){if(d.newHandleUpdateStatus!==void 0&&d.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&d.newHandleUpdateStatus.errorMessage)_.YH(A.hostElement,_.PK(d.newHandleUpdateStatus.errorMessage)),
A.isLoading=!1;else{var W;if((W=A.data)==null?0:W.onChannelUpdateSuccess){k=A.data.onChannelUpdateSuccess;d=_.L(k,_.dN);var z;if(d==null?0:(z=d.popup)==null?0:z.handlesClaimingConfirmDialogRenderer)d.popup.handlesClaimingConfirmDialogRenderer.handle=_.Yu(A.selectedHandle);A.ytComponentBehavior.resolveCommand(k);_.Ud(A.hostElement,"yt-close-popup-action",[A.is])}else A.isLoading=!1}},
onServerError:function(){if(A.selectedRadioIndex===A.radioButtonLength){var k;A.content&&((k=A.content)==null?0:k.handleInput)&&A.content.handleInput.validate()}A.isLoading=!1;_.YH(A.hostElement,_.$r("TRY_AGAIN_LATER"))}}}))}};
_.q.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var A,H;this.selectedHandle=(A=this.content)==null?void 0:(H=A.handleInput)==null?void 0:H.value}else this.selectedRadioIndex>=0&&((A=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(A==null?void 0:A.handle):this.selectedHandle=void 0)};
_.q.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.q.getRadioItem=function(A){if(this.radioButtonLength>A&&A>=0)return _.L(this.data.radioButton[A],bv_)};
_.nP.Object.defineProperties(Es.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.radioButton)||[]).length}}});
Es.prototype.onSelectedHandleChanged=Es.prototype.onSelectedHandleChanged;Es.prototype.onSelectedHandleIndexChanged=Es.prototype.onSelectedHandleIndexChanged;Es.prototype.onDataChanged=Es.prototype.onDataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Es.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Es.prototype,"actionButtonOverride",void 0);_.E([_.C(),_.l("design:type",Object)],Es.prototype,"cancelButtonOverride",void 0);
_.E([_.C(),_.l("design:type",Object)],Es.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Es.prototype,"initialRadioIndex",void 0);_.E([_.C(),_.l("design:type",Number)],Es.prototype,"selectedRadioIndex",void 0);_.E([_.C(),_.l("design:type",String)],Es.prototype,"selectedHandle",void 0);_.E([_.C(),_.l("design:type",Object)],Es.prototype,"selectButtonDisabled",void 0);_.E([_.C(),_.l("design:type",Object)],Es.prototype,"isLoading",void 0);
_.E([_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],Es.prototype,"radioButtonLength",null);_.E([_.ol("ytd-handles-claiming-select-dialog-content"),_.l("design:type",Object)],Es.prototype,"content",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Es.prototype,"onDataChanged",null);
_.E([_.fF("selectedRadioIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Es.prototype,"onSelectedHandleIndexChanged",null);_.E([_.fF("selectedHandle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Es.prototype,"onSelectedHandleChanged",null);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.E([_.O6({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Es);
_.Q(Es,"ytd-handles-claiming-select-dialog-renderer",function(){if(JAW!==void 0)return JAW;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return JAW=A},{mode:1});var g8n;var blz;var Us=function(){return _.a.apply(this,arguments)||this};
_.I(Us,_.a);Us.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Us.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Us.prototype,"data",void 0);_.E([_.O6({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Us);
_.Q(Us,"ytd-hotkey-dialog-section-option-renderer",function(){if(blz!==void 0)return blz;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return blz=A},{mode:1});var Lry;var l8=function(){return _.a.apply(this,arguments)||this};
_.I(l8,_.a);l8.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],l8.prototype,"data",void 0);_.E([_.O6({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],l8);
_.Q(l8,"ytd-hotkey-dialog-section-renderer",function(){if(Lry!==void 0)return Lry;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return Lry=A},{mode:1});var tH=function(){return _.a.apply(this,arguments)||this};
_.I(tH,_.a);tH.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],tH.prototype,"data",void 0);_.E([_.O6({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],tH);
_.Q(tH,"ytd-hotkey-dialog-content",function(){if(g8n!==void 0)return g8n;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return g8n=A},{mode:1});var v8z;var Ng=function(){return _.a.apply(this,arguments)||this};
_.I(Ng,_.a);Ng.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var A=document.querySelector("ytd-hotkey-dialog-content #scrollable");A&&(A.dialogElement=this.hostElement.parentElement)};
Ng.prototype.onCloseTap=function(){_.Ud(this.hostElement,"yt-close-popup-action")};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ng.prototype,"data",void 0);_.E([_.O6({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Ng);
_.Q(Ng,"ytd-hotkey-dialog-renderer",function(){if(v8z!==void 0)return v8z;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return v8z=A},{mode:1});var yAy;var Mg=function(){return _.a.apply(this,arguments)||this};
_.I(Mg,_.a);Mg.prototype.onYtServiceRequestError=function(){if(this.blocked){var A;var H=(A=this.data)==null?void 0:A.defaultServiceEndpoint}else{var k;H=(k=this.data)==null?void 0:k.toggledServiceEndpoint}var d;(H=(d=_.L(H,_.krj))==null?void 0:d.onFailureAction)&&this.ytComponentBehavior.resolveCommand(H);this.updateBlockState(!this.blocked)};
Mg.prototype.onYtToggleButton=function(A){this.updateBlockState(A.detail.toggled)};
Mg.prototype.updateBlockState=function(A){if(A!==this.blocked){var H=this.blockedEntityKey;H&&this.ytdReduxBehavior.dispatch(_.kH("blockStateEntity",H,{key:H,blocked:A}));this.set("data.isToggled",A)}};
_.nP.Object.defineProperties(Mg.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)}}});
Mg.prototype.onYtToggleButton=Mg.prototype.onYtToggleButton;Mg.prototype.onYtServiceRequestError=Mg.prototype.onYtServiceRequestError;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Mg.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Mg.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Mg.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Mg.prototype,"blockedEntityKey",void 0);
_.E([_.C({selectorArgs:["blockedEntityKey"],selector:function(A,H){return _.Mw(A.entities,"blockStateEntity",H)}}),
_.l("design:type",Object)],Mg.prototype,"blockStateEntity",void 0);_.E([_.G("data","blockStateEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Mg.prototype,"blocked",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Mg.prototype,"onYtServiceRequestError",null);
_.E([_.Ze("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Mg.prototype,"onYtToggleButton",null);_.E([_.O6({is:"ytd-block-button",disableElementRegistration:!0})],Mg);
_.Q(Mg,"ytd-block-button",function(){if(yAy!==void 0)return yAy;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return yAy=A},
{mode:1});var jbp;var IQy;var n9=function(){return _.a.apply(this,arguments)||this};
_.I(n9,_.a);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],n9.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],n9.prototype,"data",void 0);_.E([_.O6({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],n9);
_.Q(n9,"ytd-kids-blocklist-picker-item-renderer",function(){if(IQy!==void 0)return IQy;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return IQy=A},{mode:1});var Z0=function(){return _.a.apply(this,arguments)||this};
_.I(Z0,_.a);Z0.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Z0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Z0.prototype,"data",void 0);_.E([_.O6({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Z0);
_.Q(Z0,"ytd-kids-blocklist-picker-content",function(){if(jbp!==void 0)return jbp;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return jbp=
A},{mode:2});var YCW;var f9=function(){var A=_.a.apply(this,arguments)||this;A.hasAnyRequestSucceeded=!1;A.hasAnyRequestFailed=!1;A.numPendingRequests=0;return A};
_.I(f9,_.a);_.q=f9.prototype;_.q.attached=function(){this.hostElement.setAttribute("dialog","")};
_.q.onDoneButtonTap=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.q.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.q.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.q.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.q.onPopupClosed=function(A){var H,k;if(((H=A.detail)==null?void 0:(k=H.popup)==null?void 0:k.is)==="tp-yt-paper-dialog"){var d;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((d=this.data)==null?0:d.successfulToastActionMessage)&&(A=_.Du(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(A));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
f9.prototype.onPopupClosed=f9.prototype.onPopupClosed;f9.prototype.onYtServiceRequestError=f9.prototype.onYtServiceRequestError;f9.prototype.onYtServiceRequestCompleted=f9.prototype.onYtServiceRequestCompleted;f9.prototype.onYtServiceRequestSent=f9.prototype.onYtServiceRequestSent;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],f9.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],f9.prototype,"data",void 0);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],f9.prototype,"onYtServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],f9.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],f9.prototype,"onYtServiceRequestError",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],f9.prototype,"onPopupClosed",null);_.E([_.O6({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],f9);
_.Q(f9,"ytd-kids-blocklist-picker-renderer",function(){if(YCW!==void 0)return YCW;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return YCW=A},{mode:1});var PI7;var Gfn;var w$=function(){return _.a.apply(this,arguments)||this};
_.I(w$,_.a);w$.prototype.setTip=function(A){var H=this;this.data&&(this.tip=lmI(ECQ.getInstance(),A,this.data),_.No(this,function(){_.Ed(H.hostElement,"yt-refit")}))};
w$.prototype.clearTip=function(){this.tip=void 0};
w$.prototype.computeHidden=function(A){return!A};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],w$.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.l("design:type",Boolean)],w$.prototype,"hidden",void 0);_.E([_.C(),_.l("design:type",Object)],w$.prototype,"tip",void 0);_.E([_.O6({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],w$);
_.Q(w$,"ytd-menu-popup-tip-renderer",function(){if(Gfn!==void 0)return Gfn;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);
return Gfn=A},{mode:1});var FrI;var o2=function(){var A=_.a.apply(this,arguments)||this;A.useIcons=!1;A.role="menuitem";A.systemIcons=_.b("kevlar_system_icons");return A};
_.I(o2,_.a);_.q=o2.prototype;_.q.onFocus=function(){var A;(A=_.Va(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.q.onTap=function(){var A=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(A&&_.L(A,_.nH))this.componentBehavior.resolveCommand(A),this.updateToggledStateInEntity();else if(A){this.componentBehavior.resolveCommand(A)||_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}});var H;((H=_.L(A,_.fH))==null?void 0:H.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.q.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.q.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.q.updateToggledStateInEntity=function(){var A=this.data.toggleMenuServiceItemEntityKey,H=!this.data.isToggled;A&&this.ytdReduxBehavior.dispatch(_.kH("toggleMenuServiceItemEntity",A,{key:A,isToggled:H}))};
_.q.computeIcon=function(A,H,k){return(A=A?k:H)&&A.iconType?_.N0(A.iconType):""};
_.q.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.q.isIconActive=function(A){return!_.b("toggle_menu_active_icon_killswitch")&&A};
_.nP.Object.defineProperties(o2.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.data)==null?0:A.isToggled)?(H=this.data)==null?void 0:H.toggledText:(k=this.data)==null?void 0:k.defaultText}}});
o2.prototype.toggledStateEntityChanged=o2.prototype.toggledStateEntityChanged;o2.prototype.onYtServiceRequestCompleted=o2.prototype.onYtServiceRequestCompleted;o2.prototype.onTap=o2.prototype.onTap;o2.prototype.onFocus=o2.prototype.onFocus;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],o2.prototype,"componentBehavior",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],o2.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],o2.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],o2.prototype,"useIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],o2.prototype,"role",void 0);_.E([_.C({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.l("design:type",String)],o2.prototype,"icon",void 0);
_.E([_.C({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.z2.toggleMenuServiceItemEntitySelector}),_.l("design:type",Object)],o2.prototype,"toggleMenuServiceItemEntity",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],o2.prototype,"systemIcons",void 0);_.E([_.Ze("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],o2.prototype,"onFocus",null);
_.E([_.G("data.isToggled"),_.l("design:type",Object),_.l("design:paramtypes",[])],o2.prototype,"toggleButtonText",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],o2.prototype,"onTap",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],o2.prototype,"onYtServiceRequestCompleted",null);
_.E([_.fF("toggleMenuServiceItemEntity.isToggled","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],o2.prototype,"toggledStateEntityChanged",null);_.E([_.O6({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],o2);
_.Q(o2,"ytd-toggle-menu-service-item-renderer",function(){if(FrI!==void 0)return FrI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return FrI=A},{mode:1});var XVy;var $K=function(){return _.a.apply(this,arguments)||this};
_.I($K,_.a);$K.prototype.onFocus=function(){var A;(A=_.Va(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.nP.Object.defineProperties($K.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.fx(this.data.iconUrl)}}});
$K.prototype.onFocus=$K.prototype.onFocus;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],$K.prototype,"rendererBehavior",void 0);_.E([_.P(_.MY.YtEndpointBehavior),_.l("design:type",Object)],$K.prototype,"ytEndpointBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],$K.prototype,"data",void 0);_.E([_.Ze("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$K.prototype,"onFocus",null);
_.E([_.G("data.iconUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],$K.prototype,"imageSource",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],$K);
_.Q($K,"ytd-menu-custom-icon-item-renderer",function(){if(XVy!==void 0)return XVy;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return XVy=A},{mode:2});_.Sw(_.G$,"yt-list-item-view-model",{props:{data:_.Ih,isMenuItem:_.Ih,isCompact:_.Ih,onTap:_.Fc,trailingAccessory:_.Fc,hideSelectionTextChevron:_.Ih,disabled:_.Ih,inPopup:_.Ih,disableHorizontalPadding:_.Ih,isOverlay:_.Ih,isToggled:_.Ih,ariaLabel:_.Ih,ariaPressed:_.Ih,shouldNotFillIcon:_.Ih}});var AT=function(){var A=_.a.apply(this,arguments)||this;A.disableBackdropFilter=_.b("web_disable_backdrop_filter");return A};
_.I(AT,_.a);_.q=AT.prototype;
_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.q.computeAriaLabel=function(A){return A};
_.q.onPopupOpened=function(){this.items.selected=0;for(var A=_.r(_.Va(this.items).children),H=A.next();!H.done;H=A.next())H.value.popupPositionTarget=this.positionTarget;if(A=this.popupTip||void 0)A.setTip(this.source||""),this.source=void 0;this.veData&&(A=_.hx())&&_.IN(A,[this.veData])};
_.q.onPopupClosed=function(){var A=this.popupTip||void 0;A&&A.clearTip()};
_.q.onIronActivate=function(A){this.shouldPersist(A)||_.Ud(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(A=_.hx())&&_.P0(A,this.veData)};
_.q.shouldPersist=function(A){var H,k;if(((H=A.detail)==null?void 0:H.selected)===void 0||(k=this.data)==null||!k.items)return!1;var d,W;return!((W=(d=this.data.items[A.detail.selected])==null?void 0:d.toggleMenuServiceItemRenderer)==null||!W.persistentOnMenuPopup)};
_.q.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(A){return A.menuNavigationItemRenderer?!!A.menuNavigationItemRenderer.icon:A.menuServiceItemRenderer?!!A.menuServiceItemRenderer.icon:A.menuConditionalServiceItemRenderer?!!A.menuConditionalServiceItemRenderer.icon:A.menuConditionalNavigationItemRenderer?!!A.menuConditionalNavigationItemRenderer.icon:A.toggleMenuServiceItemRenderer?!!A.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
AT.prototype.onPopupClosed=AT.prototype.onPopupClosed;AT.prototype.onPopupOpened=AT.prototype.onPopupOpened;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],AT.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],AT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],AT.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],AT.prototype,"veData",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.l("design:type",String)],AT.prototype,"ariaLabel",void 0);_.E([_.C({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],AT.prototype,"useIcons",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],AT.prototype,"disableBackdropFilter",void 0);_.E([_.ol("#items"),_.l("design:type",Object)],AT.prototype,"items",void 0);_.E([_.ol("ytd-menu-popup-tip-renderer"),_.l("design:type",Object)],AT.prototype,"popupTip",void 0);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AT.prototype,"onPopupOpened",null);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AT.prototype,"onPopupClosed",null);_.E([_.O6({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],AT);
_.Q(AT,"ytd-menu-popup-renderer",function(){if(PI7!==void 0)return PI7;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return PI7=A},{mode:1});var DvG;var SCn=_.c(function(A){A=_.SD(A,{icon:void 0});var H=A.data;A=A.icon;var k=function(){return H().iconBadgeText},d={},W=_.ER("yt-spec-icon-badge-shape",function(){a:switch(H().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(H().iconBadgeStyle){case "overlay":var z="yt-spec-icon-badge-shape--style-overlay";
break a;default:z=""}return z},(d["yt-spec-icon-badge-shape--text-size-small"]=function(){var z=k();
return!!((z==null?0:z.length)&&z.length>2)},d));
return _.x("yt-icon-badge-shape",null,_.x(_.R,{cond:A,then:function(z){return _.x("div",{class:W},_.x("div",{class:"yt-spec-icon-badge-shape__icon"},_.x(_.n3,{icon:z})),_.x(_.R,{cond:k,then:function(u){return _.x("div",{class:"yt-spec-icon-badge-shape__badge"},u)}}))}}))},"hl");
SCn.idomCompat=!0;_.Sw(SCn,"yt-icon-badge-shape",{props:{data:_.Ih,icon:_.Ih}});var HP=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};A.unseenCount=0;A.isOverlay=!1;return A};
_.I(HP,_.a);_.q=HP.prototype;_.q.attached=function(){var A=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(H){A.onServiceWorkerMessage(H)})};
_.q.onDataChanged=function(){this.isAttached&&!this.JSC$22648_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22648_lastData=this.data};
_.q.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.q.computeIcon=function(){var A,H;return(A=this.data)==null?void 0:(H=A.icon)==null?void 0:H.iconType};
_.q.onServiceWorkerMessage=function(A){A.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.q.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.L(this.data.updateUnseenCountEndpoint,_.fH)&&_.L(this.data.updateUnseenCountEndpoint,_.fH).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.q.handleUpdateNotificationsUnseenCountAction=function(A){var H=this;A=_.L(A,kqM);A!=null&&A.unseenCount&&A.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(A.unseenCount),_.IE.addLowPriorityJob(function(){H.data.updateUnseenCountEndpoint&&H.ytComponentBehavior.resolveCommand(H.data.updateUnseenCountEndpoint)},A.timeoutMs))};
_.q.onClick=function(){_.Ed(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var A=_.li(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),H=this.data.menuRequest;A&&A.length===1&&A[0]?_.Ud(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):H&&this.ytComponentBehavior.resolveCommand(H)};
_.q.handleTopbarMenuClosedAction=function(A){A==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.q.toggleIconState=function(A){this.iconButton&&(this.iconButton.pressed=A)};
_.q.sendUnseenCountRequest=function(A){var H=this;_.ma(_.IE,function(){H.ytComponentBehavior.resolveCommand(A)})};
_.q.updateCountUI=function(A){this.set("unseenCount",A<9?A:"9+")};
_.nP.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;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.Kk),_.l("design:type",Object)],HP.prototype,"ytdOpenPopupBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],HP.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],HP.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],HP.prototype,"unseenCount",void 0);_.E([_.C(),_.l("design:type",Object)],HP.prototype,"isOverlay",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],HP.prototype,"showTooltips",void 0);_.E([_.ol("yt-icon-button"),_.l("design:type",Object)],HP.prototype,"iconButton",void 0);
_.E([_.G("unseenCount"),_.l("design:type",Object),_.l("design:paramtypes",[])],HP.prototype,"showNotificationCount",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HP.prototype,"onDataChanged",null);_.E([_.Ze("yt-update-notifications-unseen-count-action"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],HP.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.E([_.O6({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],HP);
_.Q(HP,"ytd-notification-topbar-button-renderer",function(){if(DvG!==void 0)return DvG;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return DvG=A},{mode:2});var CIz;var sg=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return A};
_.I(sg,_.a);sg.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}}}}}};
sg.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
sg.prototype.onDarkModeToggled=function(A){this.dark=A};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],sg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],sg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],sg.prototype,"data",void 0);_.E([_.C({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],sg.prototype,"dark",void 0);
_.E([_.O6({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],sg);
_.Q(sg,"yt-pdg-buy-flow-header-renderer",function(){if(CIz!==void 0)return CIz;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return CIz=A},{mode:1});var Krw;var aQ3;var kn=function(){var A=_.a.apply(this,arguments)||this;A.immediateValue=0;A.isDarkTheme=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(kn,_.a);_.q=kn.prototype;_.q.created=function(){_.Tl.requestAvailability()};
_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.dataChanged=function(){var A=_.Va(this.hostElement).querySelector("#color-slider");A.immediateValue&&this.updateSliderKnobAndGradientStyles(A.immediateValue);this.data.notches[0].knobColorArgb&&_.NH(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.h1(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.pZ("HTML_DIR")==="rtl"&&_.Va(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.q.onSliderImmediateChange=function(){var A=_.Va(this.hostElement).querySelector("#color-slider");A.dragging&&(A.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(A.immediateValue),this.updateSliderKnobAndGradientStyles(A.immediateValue)),this.updateSliderAria())};
_.q.onSliderChange=function(){var A=_.Va(this.hostElement).querySelector("#color-slider");A.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(A.immediateValue),this.updateSliderKnobAndGradientStyles(A.immediateValue));this.updateSliderAria()};
_.q.updateSliderAria=function(){var A=_.Va(this.hostElement).querySelector("#color-slider"),H=_.Va(this.hostElement).querySelector("#color-slider");H=_.PK(this.data.notches[H.immediateValue].tierValue);_.JAC()&&_.Ed(this.hostElement,"iron-announce",{text:H});A.setAttribute("aria-valuetext",H)};
_.q.updateSuperThanksSelectedTierEntity=function(A){if(A!==this.immediateValue){var H,k,d=this==null?void 0:(H=this.data)==null?void 0:(k=H.superThanksSelectedTierEntity)==null?void 0:k.key;d&&d.length>0&&this.ytdReduxBehavior.dispatch(_.kH("superThanksSelectedTierEntity",d,{key:d,index:A}))}};
_.q.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.q.updateSliderKnobAndGradientStyles=function(A){this.immediateValue=A;A=this.data.notches[A];if(A==null?0:A.knobColorArgb)var H={"--ytd-pdg-color-slider-knob-color":_.h1(A.knobColorArgb)};(A==null?0:A.linearGradientCssStyle)&&H!==null&&(H=Object.assign({},H,{"--ytd-pdg-color-slider-active-color":A==null?void 0:A.linearGradientCssStyle}));H!==null&&_.NH(this.hostElement,H)};
kn.prototype.onSliderChange=kn.prototype.onSliderChange;kn.prototype.onSliderImmediateChange=kn.prototype.onSliderImmediateChange;kn.prototype.dataChanged=kn.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],kn.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],kn.prototype,"immediateValue",void 0);_.E([_.C(),_.l("design:type",Number)],kn.prototype,"maxMarkers",void 0);
_.E([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:qAL}),_.l("design:type",Object)],kn.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],kn.prototype,"isDarkTheme",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],kn.prototype,"ytdReduxBehavior",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kn.prototype,"dataChanged",null);
_.E([_.Ze("immediate-value-change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kn.prototype,"onSliderImmediateChange",null);_.E([_.Ze("change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kn.prototype,"onSliderChange",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],kn);
_.Q(kn,"ytd-pdg-color-slider-renderer",function(){if(aQ3!==void 0)return aQ3;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return aQ3=A},{mode:1});var cAn;var pVI;var dp=null;
_.uy({is:"ytd-comment-input",_template:function(){if(pVI!==void 0)return pVI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return pVI=A},
behaviors:[_.lBI.YtHostElementBehavior,_.fo,_.ml.YtComponentBehavior,_.KM.YtRendererstamperBehavior,_.aCi.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 _.y5}},
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",_.nF(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;_.Mr();this.focus()},
detached:function(){document.removeEventListener("tap",_.nF(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(A){A=A.detail;A=A.isCustomEmoji?A.shortcuts[0]:A.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,A);this.maybeUpdateTextDirection_();_.Ed(this.hostElement,"input")},
getInputRange_:function(){var A=_.kk();if(A){A=A.getBrowserRangeObject();for(var H=A.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return A;H=H.parentNode}}A=this.getEditableTextArea_();A=_.zy(A,A.childNodes.length);A.select();return A.getBrowserRangeObject()},
insertTextWithEmojis_:function(A,H,k){(H=this.emojiManager.createDocumentFragment(H,!0,!1,k===void 0?!0:k))&&H.childNodes.length!==0&&(A.collapsed||A.deleteContents(),k=H.lastChild,A.insertNode(H),_.Nb0(k).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var A=_.kk();if(A){var H=A.JSC$11667_getStartNode(),k=A.JSC$11667_getEndNode();if(a__(H)&&a__(k)){var d=A.JSC$11667_getStartOffset(),W;if(_.f6&&H.nodeType===Node.ELEMENT_NODE&&(W=_.aLG(H)))_.zy(W,0).select();else{W=un(H)?H:_.Jj(H,un);var z=un(k)?k:_.Jj(k,un);if(W||z)if(A.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){A=!0;d===H.length&&(A=!1);if(dp==="end"||dp==="right")A=!1;H=H.parentNode;A=[].concat(_.fV(H.parentNode.childNodes)).indexOf(H)+(A?0:1);_.zy(H.parentNode,
A).select()}}else W?W.previousSibling&&W.previousSibling.length>0?_.qn(k,A.JSC$11667_getEndOffset(),W.previousSibling,W.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),W.parentNode.insertBefore(H,W),_.qn(k,A.JSC$11667_getEndOffset(),H,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.qn(H,A.JSC$11667_getStartOffset(),z.nextSibling,1).select():(k=document.createTextNode("\u200b"),z.parentNode.insertBefore(k,z.nextSibling),_.qn(H,A.JSC$11667_getStartOffset(),k,k.length).select()));
dp=null}}else dp=null}else dp=null},
leftKeyPressed_:function(){dp="left"},
rightKeyPressed_:function(){dp="right"},
endKeyPressed_:function(){dp="end"},
maybeDeleteChip_:function(){var A=l_R(!0);if(A){var H=_.kk(),k=H.JSC$11667_getStartNode();H=H.JSC$11667_getStartOffset();_.WN(k,H,A,A.childNodes.length).select()}},
maybeBackspaceChip_:function(){var A=l_R(!1);if(A){var H=_.kk(),k=H.JSC$11667_getStartNode();H=H.JSC$11667_getStartOffset();_.WN(k,H,A,0).select()}},
maybeBackspaceChipWordMode_:function(A){var H=_.kk();if(H.isCollapsed()){var k=H.JSC$11667_getStartNode();H=H.JSC$11667_getStartOffset();var d=ta_(k,H,!0);d&&(_.WN(k,H,d,0).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(A){var H=_.kk();if(H.isCollapsed()){var k=H.JSC$11667_getStartNode();H=H.JSC$11667_getStartOffset();var d=ta_(k,H,!1);d&&(_.WN(k,H,d,d.childNodes.length).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
onContentClick:function(A){A.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(A){A.defaultPrevented||A.currentTarget.tagName==="YTD-COMMENT-INPUT"&&un(A.target)&&A.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Va(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Va(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(A,H){A=pZB(A,this.emojiManager,H).cloneNode(!0);for(H=A.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var k=_.gS();_.tBw(k,H);H=k.nextSibling;break;case "DIV":(k=H.lastChild)&&H.nextSibling&&_.yZ(_.gS(),k);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.vJ(_.gS(),H);k&&k.nodeName==="BR"&&_.Aw(k);k=H;H.hasChildNodes()?(H=H.firstChild,
_.NWA(k)):(H=H.nextSibling,_.Aw(k));break;default:H=H.nextSibling}return NdB(A)},
setTextAreaValue:function(A){A||(A="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof A==="string"&&(A={runs:[{text:A}]});H.text=A},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();dp=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var A=this.getEditableTextArea_();A&&(_.zy(A,A.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.pZ("HTML_DIR")==="rtl"){var A=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";A.setAttribute("dir",H)}},
handleInputEvent_:function(){var A=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(A=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(A,!0);this.updateCharCount_();A=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=A.scrollHeight>A.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var A=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:A})},
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(A){this.isEmojiButtonDisplayed&&(A.preventDefault(),A.stopImmediatePropagation(),A=A.clipboardData.getData("text/plain"),this.insertText_(A,!1,!1),_.Ed(this.hostElement,"input"))},
insertText_:function(A,H,k){H=H===void 0?!1:H;k=k===void 0?!0:k;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&A){var d=this.getInputRange_().cloneRange();this.emojiManager&&d&&(H&&this.emojiInput.offsetStartOfRangeBy(d,A.length),this.insertTextWithEmojis_(d,A,k),cYi(this.getEditableTextArea_().lastChild)||(d=this.getInputRange_().cloneRange()),d&&(this.emojiInput.updateSuggestions(d,A),this.updateSuggestionOffset_(d)))}},
getSimpleString:_.PK,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(A){return A?"focused":"not-focused"},
computePlaceholderText_:function(A){return this.getSimpleString(A)},
computeEditableText_:function(A){return this.getSimpleString(A)},
onPrefilledContentDismissed_:function(A){A.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(A,H){A?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(A){var H=this.getEditableTextArea_();[].concat(_.fV(A.dataTransfer.items)).forEach(function(k){k.kind==="string"&&k.type.match("^text/plain")&&k.getAsString(function(d){H.appendChild(document.createTextNode(d))})});
A.preventDefault()},
preventDefault_:function(A){A.preventDefault()},
onSuggestionInsert_:function(A){this.insertTextWithEmojis_(A.detail.range,A.detail.text)},
onEmojiSuggestionClick_:function(A){this.emojiInput.insertSuggestion(A.detail)},
updateSuggestionOffset_:function(A){if(this.emojiInput&&_.Va(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,k=A.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-k)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;A=A.getBoundingClientRect().left-H;_.Va(this.emojiInput).querySelector("#dropdown").style.marginLeft=A+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.D$("yt-post"));return this.localStorage}});var WP=function(){var A=_.a.apply(this,arguments)||this;A.currentCommentOptionIndex=0;A.isEmojiPickerDisplayed=!1;A.emojiManager=_.y5;A.isUgcEmpty=!1;A.userGeneratedCommentChangedHandler=function(){_.Ed(A.hostElement,"ytd-pdg-user-generated-comment-changed");A.isEmojiYtdCommentInputEnabled&&(A.isUgcEmpty=!A.ytdCommentInputEl.getTextAreaValue())};
A.pasteHandler=function(H){H.preventDefault();H.stopImmediatePropagation();var k;if(H=(k=H.clipboardData)==null?void 0:k.getData("text/plain"))k=document.getSelection().getRangeAt(0),k.collapsed||k.deleteContents(),H=document.createTextNode(H),k.insertNode(H),k.selectNodeContents(H),k.collapse(!1),H=window.getSelection(),H.removeAllRanges(),H.addRange(k)};
A.onDocumentClick=function(H){if(A.isEmojiPickerDisplayed){var k,d,W;!(H.target instanceof Node)||(k=H.composedPath())!=null&&k.includes(A.editableTextEl)||(d=H.composedPath())!=null&&d.includes(A.emojiButtonEl)||(W=H.composedPath())!=null&&W.includes(A.emojiPickerEl)||(A.isEmojiPickerDisplayed=!1)}};
return A};
_.I(WP,_.a);_.q=WP.prototype;_.q.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.q.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.q.detached=function(){var A;(A=this.contentEl)==null||A.removeEventListener("input",this.userGeneratedCommentChangedHandler);var H;(H=this.contentEl)==null||H.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.q.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.q.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var A;this.contentEl.textContent=this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.q.reloadEmojis=function(){this.emojiPickerEl&&_.L(this.emojiPicker,_.cSZ)&&this.emojiPickerEl.updateEmojiCategories()};
_.q.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.NH(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.q.handleBackgroundColorStyling=function(){var A;if((A=this.currentCommentOption)==null?0:A.commentBackgroundColorArgb){var H;_.NH(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.h1((H=this.currentCommentOption)==null?void 0:H.commentBackgroundColorArgb)})}else _.NH(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.q.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var A;(A=this.contentEl)==null||A.focus()}};
_.q.onEditButtonClick=function(A){var H=document.getSelection();H&&this.contentEl&&(A.stopPropagation(),A.preventDefault(),H.selectAllChildren(this.contentEl),H.collapseToEnd())};
_.q.onContentDrop=function(A){var H=this;if(A.dataTransfer){A=_.r(A.dataTransfer.items);for(var k=A.next();!k.done;k=A.next())k=k.value,k.kind==="string"&&k.type.match("^text/plain")&&k.getAsString(function(d){var W;(W=H.contentEl)==null||W.appendChild(document.createTextNode(d))})}};
_.q.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.q.getUserGeneratedCommentText=function(){var A,H=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(A=this.contentEl)==null?void 0:A.textContent;return H?H.trim():""};
_.q.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.q.onEmojiSelect=function(A){this.ytdCommentInputEl.onEmojiSelect(A)};
_.nP.Object.defineProperties(WP.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.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 A;return!((A=this.currentCommentOption)==null||!A.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if(_.L((A=this.currentCommentOption)==null?void 0:A.chipRenderer,_.r0Z)){var H;return _.L((H=this.currentCommentOption)==null?void 0:H.chipRenderer,_.r0Z)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var A,H;return((A=this.data)==null?0:A.commentOptionRenderers)?_.L((H=this.data)==null?void 0:H.commentOptionRenderers[this.superThanksSelectedTierEntity.index],w_M):void 0}var k,d;return((k=this.data)==null?0:k.commentOptionRenderers)?_.L((d=this.data)==null?void 0:d.commentOptionRenderers[this.currentCommentOptionIndex],w_M):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var A;return this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var A;return this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=_.L((A=this.data)==null?void 0:A.commentDialog,_.Agp))==null?void 0:H.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=_.L((A=this.data)==null?void 0:A.commentDialog,_.Agp))==null?void 0:H.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=_.L((A=this.data)==null?void 0:A.commentDialog,_.Agp))==null?void 0:H.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(H=_.L((A=this.data)==null?void 0:A.commentDialog,_.Agp))==null?void 0:H.emojiPicker;if(!_.L(k,_.cSZ)||!_.L(k,_.cSZ).categories)return!1;A=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 d,W;return((d=_.L(k,_.cSZ))==null?0:(W=d.categories)==null?0:W.find(A))?!0:!1}}});
WP.prototype.onEmojiSelect=WP.prototype.onEmojiSelect;WP.prototype.dataChanged=WP.prototype.dataChanged;WP.prototype.currentCommentOptionChanged=WP.prototype.currentCommentOptionChanged;_.E([_.P(_.TG),_.l("design:type",Object)],WP.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],WP.prototype,"rendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.ol("#content-dom-if"),_.l("design:type",_.eD)],WP.prototype,"contentDomIfEl",void 0);_.E([_.ol("#content-no-emojis"),_.l("design:type",HTMLElement)],WP.prototype,"contentEl",void 0);_.E([_.ol("#container"),_.l("design:type",HTMLElement)],WP.prototype,"containerEl",void 0);_.E([_.ol("#comment-chip-container"),_.l("design:type",HTMLElement)],WP.prototype,"paidCommentChipContainerEl",void 0);_.E([_.ol("#text-input"),_.l("design:type",HTMLElement)],WP.prototype,"editableTextEl",void 0);
_.E([_.ol("#emoji-button"),_.l("design:type",HTMLElement)],WP.prototype,"emojiButtonEl",void 0);_.E([_.ol("#emoji-picker > yt-emoji-picker-renderer"),_.l("design:type",Object)],WP.prototype,"emojiPickerEl",void 0);_.E([_.ol("#text-input > ytd-comment-input"),_.l("design:type",Object)],WP.prototype,"ytdCommentInputEl",void 0);_.E([_.C(),_.l("design:type",Object)],WP.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],WP.prototype,"currentCommentOptionIndex",void 0);
_.E([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:qAL}),_.l("design:type",Object)],WP.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.C(),_.l("design:type",Object)],WP.prototype,"isEmojiPickerDisplayed",void 0);_.E([_.C(),_.l("design:type",Object)],WP.prototype,"emojiManager",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],WP.prototype,"isUgcEmpty",void 0);
_.E([_.fF("currentCommentOption"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WP.prototype,"currentCommentOptionChanged",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WP.prototype,"dataChanged",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],WP.prototype,"isEmojiYtdCommentInputEnabled",null);
_.E([_.G("data.title"),_.l("design:type",Object),_.l("design:paramtypes",[])],WP.prototype,"title",null);_.E([_.G("data.authorText"),_.l("design:type",Object),_.l("design:paramtypes",[])],WP.prototype,"channelName",null);_.E([_.G("data.commentOptionRenderers","currentCommentOption"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],WP.prototype,"shouldShowPaidCommentChipRenderer",null);
_.E([_.G("data.commentOptionRenderers","currentCommentOption"),_.l("design:type",Object),_.l("design:paramtypes",[])],WP.prototype,"paidCommentChipRenderer",null);_.E([_.G("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],WP.prototype,"currentCommentOption",null);
_.E([_.G("data.defaultCommentText","superThanksSelectedTierEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],WP.prototype,"commentText",null);_.E([_.G("data.placeholderText"),_.l("design:type",Object),_.l("design:paramtypes",[])],WP.prototype,"placeholderText",null);_.E([_.G("data.commentDialog.commentDialogRenderer.editableText"),_.l("design:type",Object),_.l("design:paramtypes",[])],WP.prototype,"editableText",null);
_.E([_.G("data.commentDialog.commentDialogRenderer.emojiButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],WP.prototype,"emojiButton",null);_.E([_.G("data.commentDialog.commentDialogRenderer.emojiPicker"),_.l("design:type",Object),_.l("design:paramtypes",[])],WP.prototype,"emojiPicker",null);
_.E([_.G("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],WP.prototype,"isEmojiButtonDisplayed",null);_.E([_.Ze("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],WP.prototype,"onEmojiSelect",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],WP);
_.Q(WP,"ytd-pdg-comment-preview-renderer",function(){if(cAn!==void 0)return cAn;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return cAn=A},{mode:2});var QbW;var zx=function(){var A=_.a.apply(this,arguments)||this;A.selected=!1;return A};
_.I(zx,_.a);_.q=zx.prototype;_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.q.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.q.dataChanged=function(){this.data&&(_.EJ(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.NH(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.h1(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.h1(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.q.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.q.onClick=function(){this.logClick()};
_.q.onKeyboardSelect=function(){_.Ed(this.hostElement,"tap");this.onClick()};
_.q.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
zx.prototype.onClick=zx.prototype.onClick;zx.prototype.selectedChanged=zx.prototype.selectedChanged;zx.prototype.dataChanged=zx.prototype.dataChanged;_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],zx.prototype,"componentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.fo),_.l("design:type",Object)],zx.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.P(_.jD),_.l("design:type",Object)],zx.prototype,"ironSelectableBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zx.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],zx.prototype,"shownThumbnail",void 0);_.E([_.C(),_.l("design:type",Object)],zx.prototype,"basePriceText",void 0);_.E([_.C(),_.l("design:type",Object)],zx.prototype,"purchaseCommand",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],zx.prototype,"selected",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zx.prototype,"dataChanged",null);_.E([_.fF("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zx.prototype,"selectedChanged",null);_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zx.prototype,"onClick",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],zx);
_.Q(zx,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(QbW!==void 0)return QbW;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return QbW=A},{mode:1});var q5=function(){var A=_.a.apply(this,arguments)||this;A.selectedItemIndex=0;A.buyButtonDisabled=!1;return A};
_.I(q5,_.a);_.q=q5.prototype;
_.q.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]]"}}}}}};
_.q.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var A;var H=(A=_.L(this.data.colorSlider,fBI))==null?void 0:A.notches[this.selectedItemIndex].purchaseCommand}else{var k;H=(k=_.L(this.data.selectableItemButtons[this.selectedItemIndex],$8Q))==null?void 0:k.purchaseCommand}if(H){A=_.L(H,_.n0J);A.productData||(A.productData={});var d;A.productData={pdgData:{commentMessageText:(d=this.commentPreviewRenderer)==null?void 0:d.getUserGeneratedCommentText()}};
_.Ed(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(H)}}};
_.q.dataChanged=function(){if(this.data){_.y5.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.iRj(_.y5,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.y5.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var A;this.buyButtonDisabled=!((A=_.L(this.data.commentPreview,oxG))==null||!A.placeholderText);this.updatePriceSelectorStatus();var H;if((H=this.data)==null?0:H.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;A=[];this.data.preloadImages&&(A=this.data.preloadImages);
A=A.map(function(k){return _.C3(k.thumbnails,1920)});
A=_.r(A);for(H=A.next();!H.done;H=A.next())(H=H.value)&&_.H_N(H).thenCatch(function(){_.Pq(Error("km"))})}};
_.q.superThanksSelectedTierEntityChanged=function(){var A;(this==null?void 0:(A=this.superThanksSelectedTierEntity)==null?void 0:A.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.q.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.q.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Va(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Va(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Va(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Va(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.q.closeBuyFlow=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.q.onUserGeneratedContentChanged=function(){var A;this.buyButtonDisabled=!((A=this.commentPreviewRenderer)==null?0:A.getUserGeneratedCommentText())};
_.q.updateSelectedItemIndexFromBinding=function(A){this.selectedItemIndex=A.detail.value};
_.nP.Object.defineProperties(q5.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.disclaimerText)}}});
q5.prototype.onUserGeneratedContentChanged=q5.prototype.onUserGeneratedContentChanged;q5.prototype.closeBuyFlow=q5.prototype.closeBuyFlow;q5.prototype.selectedItemIndexChanged=q5.prototype.selectedItemIndexChanged;q5.prototype.superThanksSelectedTierEntityChanged=q5.prototype.superThanksSelectedTierEntityChanged;q5.prototype.dataChanged=q5.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],q5.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],q5.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],q5.prototype,"selectedItemIndex",void 0);_.E([_.C(),_.l("design:type",Boolean)],q5.prototype,"isColorSlider",void 0);
_.E([_.C(),_.l("design:type",Object)],q5.prototype,"buyButtonDisabled",void 0);_.E([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:qAL}),_.l("design:type",Object)],q5.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.ol("ytd-pdg-comment-preview-renderer"),_.l("design:type",Object)],q5.prototype,"commentPreviewRenderer",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],q5.prototype,"ytdReduxBehavior",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q5.prototype,"dataChanged",null);_.E([_.fF("superThanksSelectedTierEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q5.prototype,"superThanksSelectedTierEntityChanged",null);_.E([_.fF("selectedItemIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q5.prototype,"selectedItemIndexChanged",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q5.prototype,"closeBuyFlow",null);_.E([_.Ze("ytd-pdg-user-generated-comment-changed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q5.prototype,"onUserGeneratedContentChanged",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],q5.prototype,"isDisclaimerTextShown",null);
_.E([_.O6({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],q5);
_.Q(q5,"yt-super-vod-buy-flow-content-renderer",function(){if(Krw!==void 0)return Krw;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Krw=A},{mode:1});var VNz;var rp=function(){var A=_.a.apply(this,arguments)||this;A.lottieAnimationRef={};return A};
_.I(rp,_.a);_.q=rp.prototype;_.q.created=function(){_.Tl.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.nF(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.q.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Ed(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.q.detached=function(){this.autoCloseJobId&&_.IE.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.nF(this,this.onPopupIronOverlayOpened))};
_.q.dataChanged=function(){var A=this;this.data&&this.data.autoCloseDelay&&(_.Ud(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.p3(_.IE,function(){A.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.NH(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.q.onDOMLoadedLottie=function(){var A=this,H,k,d=Number((H=this.data)==null?void 0:(k=H.autoCloseDelay)==null?void 0:k.seconds)||0;this.fadeOutJobId=_.p3(_.IE,function(){A.lottiePlayerEl.classList.add("fadeout")},(d-.25)*1E3);
this.autoCloseJobId=_.p3(_.IE,function(){A.closePopup()},d*1E3)};
_.q.openPopup=function(){this.ironOverlayBehavior.open()};
_.q.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Ud(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.NT(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.wj().resolve(_.J7).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.IE.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.IE.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.q.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var A,H;(A=this.lottieAnimationRef)==null||(H=A.lottieEl)==null||H.destroy();A=this.data.lottie;var k,d;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:A.url+"_"+Math.random(),path:A.url,autoplay:!0,loop:(d=(k=A.settings)==null?void 0:k.loop)!=null?d:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.nP.Object.defineProperties(rp.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var A,H;return!!((A=this.data)==null?0:(H=A.lottie)==null?0:H.url)}}});
rp.prototype.maybeInitializeLottie=rp.prototype.maybeInitializeLottie;rp.prototype.dataChanged=rp.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rp.prototype,"rendererBehavior",void 0);_.E([_.P(_.LI),_.l("design:type",Object)],rp.prototype,"ironOverlayBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rp.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],rp.prototype,"lottiePlayerProps",void 0);
_.E([_.C(),_.l("design:type",Object)],rp.prototype,"lottieAnimationRef",void 0);_.E([_.ol("ytd-lottie-player"),_.l("design:type",HTMLElement)],rp.prototype,"lottiePlayerEl",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rp.prototype,"dataChanged",null);_.E([_.G("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rp.prototype,"hasLottieAnimation",null);
_.E([_.fF("data.lottie.url"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rp.prototype,"maybeInitializeLottie",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],rp);
_.Q(rp,"ytd-desktop-image-overlay-renderer",function(){if(VNz!==void 0)return VNz;var A=document.createElement("template");_.Y(A,'\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="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return VNz=A},{mode:1});var E8w;var uN=function(){return _.a.apply(this,arguments)||this};
_.I(uN,_.a);_.q=uN.prototype;_.q.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"}}}}};
_.q.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",_.nF(this,this.closePopup))};
_.q.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.nF(this,this.closePopup))};
_.q.dataChanged=function(){_.li(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.L(this.data.header,ZbG)&&(this.hasBackgroundBanner=!!_.L(this.data.header,ZbG).backgroundBanner)};
_.q.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.nF(this,this.closePopup))};
_.q.closePopup=function(){this.data&&this.data.onCloseCommand&&_.tx(this.hostElement,[this.data.onCloseCommand])};
uN.prototype.handleBuyflowSelectionSubmitted=uN.prototype.handleBuyflowSelectionSubmitted;uN.prototype.dataChanged=uN.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],uN.prototype,"data",void 0);
_.E([_.C({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],uN.prototype,"hasBackgroundBanner",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uN.prototype,"dataChanged",null);_.E([_.Ze("yt-pdg-buy-flow-selection-submitted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uN.prototype,"handleBuyflowSelectionSubmitted",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],uN);
_.Q(uN,"ytd-pdg-buy-flow-renderer",function(){if(E8w!==void 0)return E8w;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return E8w=A},{mode:1});var Uvp;var BP=function(){var A=_.a.apply(this,arguments)||this;A.isOpen=!1;A.isPlaylistCreated=!1;return A};
_.I(BP,_.a);_.q=BP.prototype;_.q.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.q.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Ed(this.hostElement,"yt-refit")};
_.q.onCreateTap=function(){var A=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.tx(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(H,k){if(!_.b("killswitch_ep_in_create_playlist_response")&&(k==null?0:k.actions))for(H=_.r(k.actions),k=H.next();!k.done;k=H.next())k=k.value,_.L(k,_.RL)&&A.ytComponentBehavior.resolveCommand(k)}}]),this.isPlaylistCreated=!0)};
_.q.onKeydown=function(A){if(A.keyCode===13)this.onCreateTap()};
_.q.onServiceRequestCompleted=function(A){A.stopPropagation();_.Ud(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.q.computePrivacyBadge=function(A){return A?[{metadataBadgeRenderer:A}]:[]};
BP.prototype.onServiceRequestCompleted=BP.prototype.onServiceRequestCompleted;BP.prototype.onKeydown=BP.prototype.onKeydown;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],BP.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],BP.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],BP.prototype,"isOpen",void 0);
_.E([_.C(),_.l("design:type",Object)],BP.prototype,"isPlaylistCreated",void 0);_.E([_.C({value:{REQUIRED_LABEL:_.$r("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.$r("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.l("design:type",Object)],BP.prototype,"addToStrings",void 0);_.E([_.C({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.l("design:type",Array)],BP.prototype,"privacyBadge",void 0);
_.E([_.ol("#privacy-input"),_.l("design:type",Object)],BP.prototype,"privacyInput",void 0);_.E([_.ol("#name-input"),_.l("design:type",Object)],BP.prototype,"nameInput",void 0);_.E([_.Ze("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],BP.prototype,"onKeydown",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],BP.prototype,"onServiceRequestCompleted",null);
_.E([_.O6({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],BP);
_.Q(BP,"ytd-add-to-playlist-create-renderer",function(){if(Uvp!==void 0)return Uvp;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Uvp=A},{mode:1});var lQf;var tNB;var ez=function(){var A=_.a.apply(this,arguments)||this;A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.I(ez,_.a);ez.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
ez.prototype.onCheckboxChange=function(A){var H=this;this.data&&_.vW(this,"yt-playlist-checkbox-changed",function(){var k=_.X_(A).checked?H.data.addToPlaylistServiceEndpoint:H.data.removeFromPlaylistServiceEndpoint;k&&_.wj().resolve(_.J7).resolveCommand(k,{form:{element:H.hostElement}});_.b("dl_playlist_killswitch")||H.transferState!=="TRANSFER_STATE_UNKNOWN"&&H.transferState!=="TRANSFER_STATE_FAILED"&&H.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:H.data.playlistId,action:"ACTION_SYNC"}})},
100)};
ez.prototype.computeIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
ez.prototype.dataChanged=ez.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ez.prototype,"data",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],ez.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],ez.prototype,"ytComponentBehavior",void 0);_.E([_.ol("#checkbox"),_.l("design:type",HTMLInputElement)],ez.prototype,"checkbox",void 0);
_.E([_.C({selector:_.mj,selectorArgs:["data.playlistId"]}),_.l("design:type",String)],ez.prototype,"transferState",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ez.prototype,"dataChanged",null);_.E([_.O6({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],ez);
_.Q(ez,"ytd-playlist-add-to-option-renderer",function(){if(tNB!==void 0)return tNB;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tNB=A},{mode:1});var NIB=_.c(function(A){var H=A.data;return _.x("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.x("div",null,_.x(_.j$,{text:function(){return H().title}})),_.x(_.R,{cond:function(){return H().subtitle},
then:function(k){return _.x("div",{class:"ytdMenuTitleRendererSubtitle"},_.x(_.j$,{text:k}))}}))},"il");
NIB.idomCompat=!0;_.Sw(NIB,"ytd-menu-title-renderer",{props:{data:_.Ih}});var xn=function(){var A=_.a.apply(this,arguments)||this;A.addToStrings={ADD_TO_DROPDOWN_LABEL:_.$r("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};A.closeButtonAriaLabel=_.$r("SBOX_INAPPROPRIATE_CANCEL");A.dialog=_.b("desktop_add_to_playlist_renderer_dialog_popup");return A};
_.I(xn,_.a);_.q=xn.prototype;_.q.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"}}}};
_.q.onPopupOpened=function(){_.UJ(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.q.onPopupClosed=function(){_.UJ(this.playlists,"scrollable",!1)};
_.q.computeAriaLabel=function(){var A;if(this==null?0:(A=this.data)==null?0:A.actions){A=_.r(this.data.actions);for(var H=A.next();!H.done;H=A.next())if(H=H.value,H.menuTitleRenderer)return _.PK(H.menuTitleRenderer.title)}};
_.q.onTapClose=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.nP.Object.defineProperties(xn.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if(this==null?0:(A=this.data)==null?0:A.actions){A=_.r(this.data.actions);for(var H=A.next();!H.done;H=A.next())if(H=H.value,H.menuTitleRenderer)return H.menuTitleRenderer}return!1}}});
xn.prototype.onPopupClosed=xn.prototype.onPopupClosed;xn.prototype.onPopupOpened=xn.prototype.onPopupOpened;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],xn.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],xn.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],xn.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],xn.prototype,"addToStrings",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.l("design:type",String)],xn.prototype,"ariaLabel",void 0);_.E([_.C(),_.l("design:type",String)],xn.prototype,"closeButtonAriaLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],xn.prototype,"dialog",void 0);
_.E([_.ol("#playlists"),_.l("design:type",HTMLElement)],xn.prototype,"playlists",void 0);_.E([_.ol("ytd-add-to-playlist-create-renderer"),_.l("design:type",Object)],xn.prototype,"createRenderer",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],xn.prototype,"menuTitleRenderer",null);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xn.prototype,"onPopupOpened",null);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xn.prototype,"onPopupClosed",null);_.E([_.O6({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],xn);
_.Q(xn,"ytd-add-to-playlist-renderer",function(){if(lQf!==void 0)return lQf;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return lQf=A},{mode:1});var MNR;var iN=function(){var A=_.a.apply(this,arguments)||this;A.isPlaylistEditComplete=!1;A.isCollabEngagementDisabled=!1;A.closeButtonAriaLabel=_.$r("SBOX_INAPPROPRIATE_CANCEL");A.saveButton={title:_.$r("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"};A.onValueChanged=function(){A.updateSaveButtonState();A.computeCollabEngagementDisabled()};
return A};
_.I(iN,_.a);_.q=iN.prototype;_.q.attached=function(){this.JSC$22702_scroller&&(this.JSC$22702_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22702_scroller.attached&&typeof this.JSC$22702_scroller.attached==="function"&&this.JSC$22702_scroller.attached())};
_.q.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.q.onPopupClosed=function(){this.reset()};
_.q.close=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.q.onClickSave=function(){var A=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var H=[];this.nameInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var k=Number(this.privacyInput.value);isNaN(k)||H.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:k})}this.votingInput.value!==null&&(k=this.votingInput.value)&&H.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:k});if(H.length>0){var d;_.L((d=this.data)==null?void 0:d.updateSettingsEndpoint,_.Tr).actions=H;var W;if((W=this.data)==null?0:W.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){A.close()}}}),this.isPlaylistEditComplete=!0}}};
_.q.computePrivacyBadge=function(A){return A?[{metadataBadgeRenderer:A}]:[]};
_.q.computeEditorData=function(A){var H,k;return A==null?void 0:(H=A.sections)==null?void 0:(k=H[0])==null?void 0:k.playlistSettingsEditorCasualSectionRenderer};
_.q.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.q.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}}}}}};
_.q.computeAriaLabel=function(){var A,H,k,d=(A=this.data)==null?void 0:(H=A.sections)==null?void 0:(k=H[0])==null?void 0:k.playlistSettingsEditorCasualSectionRenderer;return _.PK(d==null?void 0:d.title)};
_.q.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"}))};
_.q.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.q.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.q.isNameChanged=function(){var A,H,k;return(((A=this.editorData)==null?void 0:(H=A.name)==null?void 0:(k=H.textInputFormFieldRenderer)==null?void 0:k.value)||"")!==(this.nameInput.value||"")};
_.q.isDescriptionChanged=function(){var A,H,k;return(((A=this.editorData)==null?void 0:(H=A.description)==null?void 0:(k=H.textInputFormFieldRenderer)==null?void 0:k.value)||"")!==(this.descriptionInput.value||"")};
_.q.isPrivacyChanged=function(){var A,H,k,d,W,z,u,B;return((u=(A=this.editorData)==null?void 0:(H=A.privacy)==null?void 0:(k=H.dropdownFormFieldRenderer)==null?void 0:(d=k.dropdown)==null?void 0:(W=d.dropdownRenderer)==null?void 0:(z=W.entries)==null?void 0:z.find(function(h){var O;return h==null?void 0:(O=h.privacyDropdownItemRenderer)==null?void 0:O.isSelected}))==null?void 0:(B=u.privacyDropdownItemRenderer)==null?void 0:B.int32Value)!==this.privacyInput.value};
_.q.isVotingChanged=function(){var A,H,k,d,W,z,u,B;return((u=(A=this.editorData)==null?void 0:(H=A.voting)==null?void 0:(k=H.dropdownFormFieldRenderer)==null?void 0:(d=k.dropdown)==null?void 0:(W=d.dropdownRenderer)==null?void 0:(z=W.entries)==null?void 0:z.find(function(h){var O;return h==null?void 0:(O=h.privacyDropdownItemRenderer)==null?void 0:O.isSelected}))==null?void 0:(B=u.privacyDropdownItemRenderer)==null?void 0:B.int32Value)!==this.votingInput.value};
iN.prototype.onPopupClosed=iN.prototype.onPopupClosed;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],iN.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],iN.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],iN.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],iN.prototype,"data",void 0);_.E([_.C({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.l("design:type",Array)],iN.prototype,"privacyBadge",void 0);_.E([_.C({computed:"computeEditorData(data)"}),_.l("design:type",Object)],iN.prototype,"editorData",void 0);_.E([_.C(),_.l("design:type",Object)],iN.prototype,"isPlaylistEditComplete",void 0);_.E([_.C(),_.l("design:type",Object)],iN.prototype,"isCollabEngagementDisabled",void 0);
_.E([_.C({value:{REQUIRED_LABEL:_.$r("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.$r("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.l("design:type",Object)],iN.prototype,"addToStrings",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.l("design:type",String)],iN.prototype,"ariaLabel",void 0);_.E([_.C(),_.l("design:type",String)],iN.prototype,"closeButtonAriaLabel",void 0);
_.E([_.C(),_.l("design:type",Object)],iN.prototype,"saveButton",void 0);_.E([_.ol("#name-input"),_.l("design:type",Object)],iN.prototype,"nameInput",void 0);_.E([_.ol("#description-input"),_.l("design:type",Object)],iN.prototype,"descriptionInput",void 0);_.E([_.ol("#privacy-input"),_.l("design:type",Object)],iN.prototype,"privacyInput",void 0);_.E([_.ol("#voting-input"),_.l("design:type",Object)],iN.prototype,"votingInput",void 0);
_.E([_.ol("#scroller"),_.l("design:type",Object)],iN.prototype,"JSC$22702_scroller",void 0);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iN.prototype,"onPopupClosed",null);_.E([_.C(),_.l("design:type",Object)],iN.prototype,"onValueChanged",void 0);_.E([_.O6({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],iN);
_.Q(iN,"ytd-playlist-settings-editor-renderer",function(){if(MNR===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);MNR=A}A=MNR;return A},{mode:1});var n8p;_.uL("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var hT=function(){return _.a.apply(this,arguments)||this};
_.I(hT,_.a);_.q=hT.prototype;_.q.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}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.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 A=this.get("data.nextButton.buttonRenderer.navigationEndpoint");A&&(this.nextNavigationEndpoint=A,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.q.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 A={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",A)}}};
_.q.onPopupOpened=function(A){A.detail!==this&&A.detail!==this.hostElement||!_.b("enable_premium_voluntary_pause")||_.Ud(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.q.onNextButtonTap=function(){var A=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);A&&this.ytdOpenPopupBehavior.openPopup(A)};
_.q.updateSelectedResponseIndexFromBinding=function(A){this.selectedResponseIndex=A.detail.value};
hT.prototype.onPopupOpened=hT.prototype.onPopupOpened;hT.prototype.onSelectedResponseIndexChange=hT.prototype.onSelectedResponseIndexChange;hT.prototype.dataChanged=hT.prototype.dataChanged;_.E([_.P(_.Kk),_.l("design:type",Object)],hT.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],hT.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],hT.prototype,"selectedResponseIndex",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hT.prototype,"dataChanged",null);_.E([_.fF("selectedResponseIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hT.prototype,"onSelectedResponseIndexChange",null);
_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],hT.prototype,"onPopupOpened",null);_.E([_.O6({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],hT);
_.Q(hT,"ytd-red-cancel-survey-renderer",function(){if(n8p!==void 0)return n8p;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return n8p=A},{mode:1});var ZlG;var Og=function(){var A=_.a.apply(this,arguments)||this;A.closeButtonAriaLabel=_.$r("SBOX_INAPPROPRIATE_CANCEL");return A};
_.I(Og,_.a);Og.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Og.prototype.onClickClose=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Og.prototype,"rendererStamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Og.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],Og.prototype,"closeButtonAriaLabel",void 0);_.E([_.O6({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Og);
_.Q(Og,"ytd-search-filter-options-dialog-renderer",function(){if(ZlG!==void 0)return ZlG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return ZlG=A},{mode:1});var fQf;var ZXG=function(){return function(A){A=A.availabilityType;return A===void 0||A==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||A==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var R$=function(){var A=_.a.apply(this,arguments)||this;A.qualityOptions=[];A.upsellOptions=[];A.showUpsellSection=!1;A.rememberSettingsChecked=!1;return A};
_.I(R$,_.a);_.q=R$.prototype;_.q.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}}}}};
_.q.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.q.updateQualityOptions=function(){if(this.formats===void 0)_.Ud(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var A=[],H=[];this.showUpsellSection=!1;for(var k=_.r(this.formats),d=k.next();!d.done;d=k.next())(d=d.value)&&(d.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?H.push(d):A.push(d));A.length&&(this.qualityOptions=nVL(A));H.length&&(this.showUpsellSection=!0,this.upsellOptions=nVL(H))}};
_.q.updateRememberString=function(){if(this.downloadQualityPickerEntity)var A=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var H;A=(H=this.data)==null?void 0:H.premiumRememberSettingString}else{var k;A=(k=this.data)==null?void 0:k.rememberSettingString}A=A===void 0?_.$r("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):A;this.rememberSettingsCheckboxRenderer={title:_.K8(A),disabled:!1}};
_.q.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.nP.Object.defineProperties(R$.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var A;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(A=this.data)==null?void 0:A.qualityFormats}}});
R$.prototype.updateRememberString=R$.prototype.updateRememberString;R$.prototype.updateQualityOptions=R$.prototype.updateQualityOptions;R$.prototype.dataChanged=R$.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],R$.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],R$.prototype,"data",void 0);
_.E([_.P(_.TG),_.l("design:type",Object)],R$.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Boolean)],R$.prototype,"selectedUpsellQuality",void 0);_.E([_.C({computed:"computeIcon_(data.premiumIcon)",value:""}),_.l("design:type",String)],R$.prototype,"premiumIcon",void 0);_.E([_.C({selector:RAB,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.l("design:type",Object)],R$.prototype,"downloadQualityPickerEntity",void 0);
_.E([_.C(),_.l("design:type",Array)],R$.prototype,"qualityOptions",void 0);_.E([_.C(),_.l("design:type",Array)],R$.prototype,"upsellOptions",void 0);_.E([_.C(),_.l("design:type",Object)],R$.prototype,"showUpsellSection",void 0);_.E([_.C(),_.l("design:type",Object)],R$.prototype,"rememberSettingsCheckboxRenderer",void 0);_.E([_.ol("#remember-settings"),_.l("design:type",HTMLInputElement)],R$.prototype,"rememberSettingsCheckbox",void 0);
_.E([_.C(),_.l("design:type",Object)],R$.prototype,"rememberSettingsChecked",void 0);_.E([_.C(),_.l("design:type",Function)],R$.prototype,"onRememberSettingsCheckedChanged",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],R$.prototype,"dataChanged",null);_.E([_.fF("downloadQualityPickerEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],R$.prototype,"updateQualityOptions",null);
_.E([_.fF("selectedUpsellQuality"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],R$.prototype,"updateRememberString",null);_.E([_.O6({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],R$);
_.Q(R$,"ytd-download-quality-selector-content",function(){if(fQf!==void 0)return fQf;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return fQf=A},{mode:1});var wVz;var Tx=function(){var A=_.a.apply(this,arguments)||this;A.selectedUpsellQuality=!1;A.qualityOptions=[];A.useUpsellDismissAlternate=_.b("use_not_now_dl_upsell_dismiss_cta");A.shouldShowAlternateUpsellDimiss=!1;A.rememberSettings=!1;A.rememberSettingsChecked=!1;A.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};A.rememberSettingsCheckedChanged=function(H){A.rememberSettingsChecked=H};
return A};
_.I(Tx,_.a);_.q=Tx.prototype;
_.q.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.K8(_.$r("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.K8(_.$r("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.K8(_.$r("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.K8(_.$r("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.q.updateQualityOptions=function(){this.formats===void 0?_.Ud(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=nVL(this.formats)};
_.q.onQualityOptionsSelect=function(A){if(this.qualityOptions&&A){A!==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 H=_.r(this.qualityOptions.entries()),k=H.next();!k.done;k=
H.next()){k=_.r(k.value);var d=k.next().value;k=k.next().value;var W=void 0,z=void 0;if(((W=k)==null?void 0:(z=W.settingsRadioOptionRenderer)==null?void 0:z.id)===A){this.selectedQualityIndex=d;A=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((A=this.formats[d])==null?void 0:A.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.q.onClickSubmit=function(){var A;if((A=this.downloadButtonRenderer)==null||!A.isDisabled){var H,k;A=(k=(H=this.data)==null?void 0:H.onSubmitEndpoint)!=null?k:{};var d,W;if(this.formats&&(((d=_.L(A,_.fj))==null?0:d.videoId)||((W=_.L(A,_.wH))==null?0:W.playlistId))){var z,u,B,h,O,T;H={formatType:(h=(z=this.formats)==null?void 0:(u=z[(B=this.selectedQualityIndex)!=null?B:0])==null?void 0:u.format)!=null?h:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(O=this.getOfflineEndpoint(A))==null?void 0:(T=O.actionParams)==null?void 0:T.settingsAction)};this.getOfflineEndpoint(A).actionParams=H;this.ytComponentBehavior.resolveCommand(A)}_.Ud(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.q.onClickUpsell=function(){var A;if((A=this.upsellButtonRenderer)==null||!A.isDisabled){var H,k;A=(k=(H=this.data)==null?void 0:H.upsellEndpoint)!=null?k:{};this.ytComponentBehavior.resolveCommand(A);_.Ud(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);H="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var d,W,z,u;H=(u=(d=this.formats)==null?void 0:(W=d[(z=this.selectedQualityIndex)!=null?z:0])==null?void 0:W.format)!=null?u:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:H}})}};
_.q.onClickClose=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.q.getOfflineSettingsAction=function(A,H){return A?H===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":H:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.q.getOfflineEndpoint=function(A){return _.L(A,_.fj)?_.L(A,_.fj):_.L(A,_.wH)};
_.nP.Object.defineProperties(Tx.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.K8(_.$r("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var A;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(A=this.data)==null?void 0:A.qualityFormats}}});
Tx.prototype.updateQualityOptions=Tx.prototype.updateQualityOptions;Tx.prototype.dataChanged=Tx.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Tx.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Tx.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Tx.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Number)],Tx.prototype,"selectedQualityIndex",void 0);_.E([_.C(),_.l("design:type",Object)],Tx.prototype,"selectedUpsellQuality",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Tx.prototype,"ytdReduxBehavior",void 0);
_.E([_.C({selector:RAB,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.l("design:type",Object)],Tx.prototype,"downloadQualityPickerEntity",void 0);_.E([_.C(),_.l("design:type",Array)],Tx.prototype,"qualityOptions",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Tx.prototype,"useUpsellDismissAlternate",void 0);_.E([_.C(),_.l("design:type",Object)],Tx.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.E([_.C(),_.l("design:type",Object)],Tx.prototype,"downloadButtonRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],Tx.prototype,"upsellButtonRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],Tx.prototype,"cancelButtonRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],Tx.prototype,"upsellCancelButtonRenderer",void 0);_.E([_.C(),_.l("design:type",Object)],Tx.prototype,"rememberSettings",void 0);_.E([_.C(),_.l("design:type",Object)],Tx.prototype,"rememberSettingsChecked",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tx.prototype,"dataChanged",null);_.E([_.fF("downloadQualityPickerEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tx.prototype,"updateQualityOptions",null);_.E([_.O6({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Tx);
_.Q(Tx,"ytd-download-quality-selector-renderer",function(){if(wVz!==void 0)return wVz;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return wVz=A},{mode:1});var o8m;var mD=function(){return _.a.apply(this,arguments)||this};
_.I(mD,_.a);mD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mD.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"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mD.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.infoIcon)"}),_.l("design:type",Object)],mD.prototype,"infoIcon",void 0);
_.E([_.C({computed:"computeIcon_(data.warningIcon)"}),_.l("design:type",Object)],mD.prototype,"warningIcon",void 0);_.E([_.O6({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],mD);
_.Q(mD,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(o8m!==void 0)return o8m;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return o8m=A},{mode:1});var $vy;var JT=function(){return _.a.apply(this,arguments)||this};
_.I(JT,_.a);JT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JT.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"}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],JT.prototype,"data",void 0);_.E([_.O6({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],JT);
_.Q(JT,"ytd-cross-account-transfer-channel-overview-renderer",function(){if($vy!==void 0)return $vy;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return $vy=A},{mode:1});var AkI;var gp=function(){return _.a.apply(this,arguments)||this};
_.I(gp,_.a);gp.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gp.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"}}}}};
gp.prototype.onServiceRequestSentOrCompleted=function(A,H){H&&H.actions&&H.actions.length>0&&_.Ud(this.hostElement,"yt-close-popup-action",[this.is])};
gp.prototype.onServiceRequestSentOrCompleted=gp.prototype.onServiceRequestSentOrCompleted;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gp.prototype,"data",void 0);
_.E([_.Ze("yt-service-request-completed"),_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],gp.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.O6({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],gp);
_.Q(gp,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(AkI!==void 0)return AkI;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return AkI=A},{mode:1});var HNz;var bN=function(){var A=_.a.apply(this,arguments)||this;A.submitButtonDisabled=!0;return A};
_.I(bN,_.a);_.q=bN.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.q.onDataChanged=function(){var A,H,k;if(((A=this.data)==null?void 0:(H=A.confirmButton)==null?void 0:(k=H.buttonRenderer)==null?void 0:k.isDisabled)!==void 0){var d,W,z;this.submitButtonDisabled=(d=this.data)==null?void 0:(W=d.confirmButton)==null?void 0:(z=W.buttonRenderer)==null?void 0:z.isDisabled}};
_.q.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.q.updateSubmitButtonDisabledFromBinding=function(A){this.submitButtonDisabled=A.detail.value};
_.q.updateSubmitButtonDisabledFromConfirmCheckbox=function(A){this.submitButtonDisabled=!A.detail.value};
bN.prototype.onDataChanged=bN.prototype.onDataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],bN.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],bN.prototype,"submitButtonDisabled",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bN.prototype,"onDataChanged",null);_.E([_.O6({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],bN);
_.Q(bN,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(HNz!==void 0)return HNz;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return HNz=A},{mode:1});var spn;var Ly=function(){return _.a.apply(this,arguments)||this};
_.I(Ly,_.a);_.nP.Object.defineProperties(Ly.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var A,H,k;return((A=this.data)==null?void 0:A.title)+" "+((H=this.data)==null?void 0:H.metadataPrimary)+" "+((k=this.data)==null?void 0:k.metadataSecondary)}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Ly.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ly.prototype,"data",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ly.prototype,"ariaLabel",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Ly);
_.Q(Ly,"ytd-compact-product-list-item-renderer",function(){if(spn!==void 0)return spn;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return spn=A},{mode:1});var k0B;var vP=function(){return _.a.apply(this,arguments)||this};
_.I(vP,_.a);vP.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]]"}}}}}};
_.nP.Object.defineProperties(vP.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],vP.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],vP.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],vP);
_.Q(vP,"ytd-compact-product-list-renderer",function(){if(k0B!==void 0)return k0B;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return k0B=A},{mode:1});var dQz;var y7=function(){return _.a.apply(this,arguments)||this};
_.I(y7,_.a);_.q=y7.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.q.getBackgroundUrl=function(){var A=this.get("data.headerImage.thumbnails");return A?"url("+_.C3(A,this.hostElement.clientWidth)+")":""};
_.q.onDataChanged=function(){var A=this.getBackgroundUrl();A&&(this.header.style.backgroundImage=A);A=_.hx();var H=_.ii(),k=this.get("data.trackingParams");k&&H&&A&&_.v0(A,H,_.db(k));A=_.r(this.hostElement.querySelectorAll("yt-img-shadow"));for(H=A.next();!H.done;H=A.next())H.value.onShow()};
_.q.onPopupClosed=function(A){_.X_(A).localName==="ytd-membership-post-cancel-renderer"&&_.Ud(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
y7.prototype.onPopupClosed=y7.prototype.onPopupClosed;y7.prototype.onDataChanged=y7.prototype.onDataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],y7.prototype,"data",void 0);_.E([_.ol("#header"),_.l("design:type",HTMLDivElement)],y7.prototype,"header",void 0);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y7.prototype,"onDataChanged",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],y7.prototype,"onPopupClosed",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],y7);
_.Q(y7,"ytd-membership-post-cancel-renderer",function(){if(dQz!==void 0)return dQz;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return dQz=A},{mode:1});var WGG;var jz=function(){return _.a.apply(this,arguments)||this};
_.I(jz,_.a);jz.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
jz.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],jz.prototype,"data",void 0);_.E([_.ol("ytd-feedback-survey-renderer"),_.l("design:type",Object)],jz.prototype,"feedbackSurveyRenderer",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],jz);
_.Q(jz,"ytd-sponsorship-confirm-cancel-content",function(){if(WGG!==void 0)return WGG;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return WGG=A},{mode:1});var zwI;var I$=function(){var A=_.a.apply(this,arguments)||this;A.maybeSubmitFeedback=function(){A.content&&A.content.maybeSubmitFeedback()};
return A};
_.I(I$,_.a);_.q=I$.prototype;_.q.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.q.onYtPopupOpened=function(A,H){H===this&&this.data&&this.data.onOpenCommands&&_.NT(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Ud(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.q.onYtPopupClosed=function(A,H){(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.NT(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.q.onYtServiceRequestCompleted=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.q.onYtServiceRequestError=function(A){_.YH(this.hostElement,A.detail.error.message)};
_.q.onDataChanged=function(){if(this.isAttached){var A=this.backgroundUrl;A&&(_.Va(this.hostElement).querySelector("#header").style.backgroundImage=A)}};
_.nP.Object.defineProperties(I$.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return A?"url("+_.C3(A,this.hostElement.clientWidth)+")":""}}});
I$.prototype.onDataChanged=I$.prototype.onDataChanged;I$.prototype.onYtServiceRequestError=I$.prototype.onYtServiceRequestError;I$.prototype.onYtServiceRequestCompleted=I$.prototype.onYtServiceRequestCompleted;I$.prototype.onYtPopupClosed=I$.prototype.onYtPopupClosed;I$.prototype.onYtPopupOpened=I$.prototype.onYtPopupOpened;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],I$.prototype,"data",void 0);_.E([_.C({value:function(){return _.$r("SBOX_INAPPROPRIATE_CANCEL")}}),
_.l("design:type",String)],I$.prototype,"closeButtonAriaLabel",void 0);_.E([_.ol("#scrollable"),_.l("design:type",Object)],I$.prototype,"scrollable",void 0);_.E([_.ol("ytd-sponsorship-confirm-cancel-content"),_.l("design:type",Object)],I$.prototype,"content",void 0);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],I$.prototype,"onYtPopupOpened",null);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],I$.prototype,"onYtPopupClosed",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],I$.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],I$.prototype,"onYtServiceRequestError",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],I$.prototype,"onDataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],I$);
_.Q(I$,"ytd-sponsorship-confirm-cancel-renderer",function(){if(zwI!==void 0)return zwI;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return zwI=A},{mode:2});var qwx;var Yn=function(){return _.a.apply(this,arguments)||this};
_.I(Yn,_.a);Yn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Yn.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Yn);
_.Q(Yn,"ytd-sponsorships-celebration-content",function(){if(qwx!==void 0)return qwx;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return qwx=
A},{mode:1});var rkB;var uAx=_.XO(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),PP=function(){var A=_.a.apply(this,arguments)||this;A.scriptsAppended=!1;A.useFullWidthPrimaryButton=!1;A.buttonOverrides={type:"tonal",style:"overlay-dark"};return A};
_.I(PP,_.a);_.q=PP.prototype;_.q.dataChanged=function(){var A;this.useFullWidthPrimaryButton=!((A=this.data)==null||!A.useFullWidthPrimaryButton)};
_.q.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:_.b("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onDataChanged=function(){var A;(A=this.header)==null||A.style.setProperty("background-color",this.backgroundColor);if(A=this.headerImageUrl){var H;(H=this.header)==null||H.style.setProperty("background-image",A)}H=_.hx(4);A=_.ii(4);var k=this.get("data.trackingParams");if(k&&A&&H){var d=_.db(k);_.v0(H,A,d);_.b("combine_ve_grafts")?_.A7().graftServerVe(k,A,4):_.v0(H,A,d)}H=_.r(this.hostElement.querySelectorAll("yt-img-shadow"));for(A=H.next();!A.done;A=H.next())A.value.onShow();if(H=this.get("data.gtmId"))_.W2(H,
_.pZ("GL","")),this.setupConversionTracking()};
_.q.setupConversionTracking=function(){if(!this.scriptsAppended){var A=document.createElement("script");_.i1(A,_.e_(uAx.join("")));document.head.appendChild(A);A=document.createElement("noscript");A.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(A);this.scriptsAppended=!0}};
_.q.onPopupClosed=function(A){if(_.X_(A).localName==="ytd-sponsorships-celebration-renderer"){_.Ud(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var H;this.data&&((H=this.data)==null?0:H.dismissCommand)&&_.n0.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.nP.Object.defineProperties(PP.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.h1(A)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return A?"url("+_.C3(A,this.hostElement.getBoundingClientRect().width)+")":""}}});
PP.prototype.onPopupClosed=PP.prototype.onPopupClosed;PP.prototype.onDataChanged=PP.prototype.onDataChanged;PP.prototype.dataChanged=PP.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],PP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],PP.prototype,"data",void 0);
_.E([_.ol("#header"),_.l("design:type",HTMLElement)],PP.prototype,"header",void 0);_.E([_.C(),_.l("design:type",Object)],PP.prototype,"scriptsAppended",void 0);_.E([_.C({type:Boolean,reflectToAttribute:!0}),_.l("design:type",Object)],PP.prototype,"useFullWidthPrimaryButton",void 0);_.E([_.C(),_.l("design:type",Object)],PP.prototype,"buttonOverrides",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PP.prototype,"dataChanged",null);
_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PP.prototype,"onDataChanged",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],PP.prototype,"onPopupClosed",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],PP);
_.Q(PP,"ytd-sponsorships-celebration-renderer",function(){if(rkB!==void 0)return rkB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return rkB=A},{mode:1});var Bw7;var Gx=function(){return _.a.apply(this,arguments)||this};
_.I(Gx,_.a);_.q=Gx.prototype;_.q.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"}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.detached=function(){this.playerElement.stop()};
_.q.onYtServiceRequestCompleted=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.q.onYtServiceRequestError=function(A){_.YH(this.hostElement,A.detail.error.message)};
_.q.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.q.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.q.getTier=function(A,H){return!A||!A.tiers||H<0?null:_.L(A.tiers[H],RnV)};
_.q.moreThanOne=function(A){return!!(A&&A.length>1)};
_.q.tierOverviewTap=function(A){var H=this;this.selectedTier=A.model.index;_.No(this,function(){_.Ed(H.hostElement,"yt-refit")})};
_.q.computeSelectedClass=function(A,H){return this.isSelected(A,H)?"selected":""};
_.q.computeButtonAriaPressed=function(A,H){return this.isSelected(A,H)?"true":"false"};
_.q.isSelected=function(A,H){return A===H};
_.q.onDataChanged=function(){_.Va(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Va(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 A=_.r(this.hostElement.querySelectorAll("yt-img-shadow")),
H=A.next();!H.done;H=A.next())H.value.onShow();var k;this.set("selectedTier",(k=this.get("data.targetTierIndex"))!=null?k:0);var d;(A=(d=this.data)==null?void 0:d.onVisible)&&this.ytComponentBehavior.resolveCommand(A)};
_.q.initializeVe=function(A){var H=_.hx(),k=_.ii(),d=this.get("data.trackingParams");k&&H&&(this.screenLayer=4,H=_.ED(_.ujI)(void 0,69877,{clientScreenNonce:H,visualElement:k},void 0,void 0,void 0),_.RC(H,69877,4),k=_.ii(4),d&&k&&(d=_.db(d),_.v0(H,k,d),A&&(this.offerVideoVe=_.t8(74659),_.v0(H,d,this.offerVideoVe))))};
_.q.setHeaderBackground=function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Va(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.h1(A);if(A=this.getHeaderImage())A=_.C3(A,screen.width),_.Va(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+A+")"};
_.q.getHeaderImage=function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&A?A:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.q.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.q.setupVideoPlayer=function(A){var H=this,k,d,W,z;return _.e(function(u){if(u.nextAddress==1)return k=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),d=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.b("kevlar_player_update_killswitch")?H.playerElement.update({args:{autoplay:k,video_id:A,player_params:d}}):H.playerElement.loadVideoWithPlayerVars({autoplay:k,video_id:A,player_params:d}),
u.yield(H.playerElement.getPlayerPromise(),2);W=u.yieldResult;W.addEventListener("onStateChange",function(B){H.onPlayerStateChange(B)});
W.setScreenLayer(H.screenLayer);(z=_.hx(4))&&H.offerVideoVe&&_.jc(z,H.offerVideoVe);k&&(H.pauseOtherPlayers(),H.playerElement.focusOnPlayer(),H.playerElement.getPlayer().hideControls(),_.ma(_.IE,function(){H.fadeOutHeaderOverlay()},4E3));
_.EN(u)})};
_.q.onPlayerStateChange=function(A){A===1?this.backgroundPlayerElement&&(A=this.backgroundPlayerElement.player_.getPlayerState(),A!==1&&A!==3||this.backgroundPlayerElement.pause()):A===0&&(_.Va(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Va(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.q.fadeOutHeaderOverlay=function(){_.Va(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.q.onHeaderTap=function(){if(this.offerVideo){_.Va(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var A;((A=this.playerElement.player_)==null?void 0:A.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(A=_.hx(4))&&this.offerVideoVe&&_.P0(A,this.offerVideoVe)}};
_.q.getBackgroundImageLayerClass=function(A){return A?"background-image-layer-with-video":""};
_.q.getHeaderClass=function(A){return A?"header-with-video":""};
_.q.getHeaderOverlayClass=function(A){return A?"header-overlay-with-video":""};
_.q.getTitleContainerClass=function(A,H){return A?"title-container-with-video":H?"title-container-without-video-flexible":"title-container-without-video"};
_.q.tierTitleDisplayStatus=function(A){return this.moreThanOne(A)?"hide":"show"};
_.q.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.wj().resolve(_.L6).getPlayerElement():this.backgroundPlayerElement=_.Kj();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var A=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=A===1||A===3;this.backgroundPlayerElement.pause()}};
_.q.isMiniplayerActive=function(){return _.wj().resolve(_.L6).isMiniplayerActive()};
_.q.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("selected-tier-changed",this.selectedTier))};
Gx.prototype.selectedTierChangedForBinding=Gx.prototype.selectedTierChangedForBinding;Gx.prototype.onDataChanged=Gx.prototype.onDataChanged;Gx.prototype.onYtPopupClosed=Gx.prototype.onYtPopupClosed;Gx.prototype.onYtPopupOpened=Gx.prototype.onYtPopupOpened;Gx.prototype.onYtServiceRequestError=Gx.prototype.onYtServiceRequestError;Gx.prototype.onYtServiceRequestCompleted=Gx.prototype.onYtServiceRequestCompleted;
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Gx.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Gx.prototype,"data",void 0);_.E([_.C({value:0}),_.l("design:type",Number)],Gx.prototype,"selectedTier",void 0);
_.E([_.C({value:""}),_.l("design:type",String)],Gx.prototype,"offerVideo",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],Gx.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.E([_.C({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.fl(this)}}),
_.l("design:type",String)],Gx.prototype,"playerId",void 0);_.E([_.ol("tp-yt-paper-dialog-scrollable"),_.l("design:type",Object)],Gx.prototype,"scrollable",void 0);_.E([_.ol("ytd-sponsorships-tier-renderer"),_.l("design:type",Object)],Gx.prototype,"tierRenderer",void 0);_.E([_.ol("#player"),_.l("design:type",Object)],Gx.prototype,"playerElement",void 0);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Gx.prototype,"onYtServiceRequestCompleted",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Gx.prototype,"onYtServiceRequestError",null);
_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gx.prototype,"onYtPopupOpened",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gx.prototype,"onYtPopupClosed",null);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gx.prototype,"onDataChanged",null);
_.E([_.fF("selectedTier"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gx.prototype,"selectedTierChangedForBinding",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Gx);
_.Q(Gx,"ytd-sponsorships-offer-renderer",function(){if(Bw7!==void 0)return Bw7;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return Bw7=A},{mode:2});var ewx;var F4=function(){var A=_.a.apply(this,arguments)||this;A.buttonOverrides={type:"filled",style:"mono"};return A};
_.I(F4,_.a);F4.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}}}}}};
F4.prototype.backgroundColorChanged=function(){var A,H,k,d=(H=_.L((A=this.data)==null?void 0:A.content,TTL))==null?void 0:(k=H.backgroundColor)==null?void 0:k.backgroundColor;d&&(A=_.iw(d),_.Va(this.hostElement).querySelector("#banner").style.backgroundColor=A,_.Va(this.hostElement).querySelector("#abstract-art").style.backgroundColor=A)};
F4.prototype.attached=function(){this.JSC$22780_scroller&&(this.JSC$22780_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22780_scroller.attached&&typeof this.JSC$22780_scroller.attached==="function"&&this.JSC$22780_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
F4.prototype.backgroundColorChanged=F4.prototype.backgroundColorChanged;_.E([_.C(),_.l("design:type",Object)],F4.prototype,"data",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.ol("#scroller"),_.l("design:type",Object)],F4.prototype,"JSC$22780_scroller",void 0);_.E([_.C(),_.l("design:type",Object)],F4.prototype,"buttonOverrides",void 0);
_.E([_.fF("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],F4.prototype,"backgroundColorChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],F4);
_.Q(F4,"ytd-sponsorships-promotion-celebration-renderer",function(){if(ewx!==void 0)return ewx;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return ewx=A},{mode:2});var xQW;var iNm;var X4=function(){return _.a.apply(this,arguments)||this};
_.I(X4,_.a);X4.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
X4.prototype.computeIsInitiallyChecked=function(A){return A===1};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],X4.prototype,"data",void 0);_.E([_.ol("#checkbox"),_.l("design:type",Object)],X4.prototype,"checkbox",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],X4);
_.Q(X4,"ytd-subscription-toggle-option-renderer",function(){if(iNm!==void 0)return iNm;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return iNm=A},{mode:1});var DM=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return A};
_.I(DM,_.a);DM.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"}}}};
DM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
DM.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var A=_.Va(this.hostElement).querySelector("#options").selected;A=this.data.options[A].subscriptionRadioOptionRenderer.serviceEndpoint;var H=_.Va(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");H&&A&&A.modifyChannelNotificationPreferenceEndpoint&&(H=H.getValue())&&(A.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[H]);_.wj().resolve(_.J7).resolveCommand(A,{form:{element:this.hostElement}});
_.Ud(this.hostElement,"yt-close-popup-action")};
_.nP.Object.defineProperties(DM.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var A=this.data.options,H=0;H<A.length;H++){var k=A[H].subscriptionRadioOptionRenderer;if(k&&k.selected)return H}return null}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],DM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],DM.prototype,"eventForwardingBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],DM.prototype,"data",void 0);_.E([_.G("data.options"),_.l("design:type",Object),_.l("design:paramtypes",[])],DM.prototype,"initialIndex",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],DM);
_.Q(DM,"ytd-subscription-notification-options-renderer",function(){if(xQW!==void 0)return xQW;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return xQW=A},{mode:1});var hwW;var ONn=function(){return _.a.apply(this,arguments)||this};
_.I(ONn,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],ONn.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ONn.prototype,"data",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],ONn);
_.Q(ONn,"ytd-tvfilm-offer-groups-renderer",function(){if(hwW!==void 0)return hwW;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return hwW=A},{mode:1});var RwR;var Sz=function(){return _.a.apply(this,arguments)||this};
_.I(Sz,_.a);_.q=Sz.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.q.computeThumbnailClass=function(A){return A.thumbnailOverlays?A.isShow?"thumbnail-show":"thumbnail-movie":A.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.q.computeCommerceSectionClass=function(A){return A.offers&&A.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.q.computeTitleClass=function(A){return A.offers&&A.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.q.onDataChanged=function(){[].concat(_.fV(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(A){A.onShow()})};
Sz.prototype.onDataChanged=Sz.prototype.onDataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Sz.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Sz.prototype,"onDataChanged",null);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Sz);
_.Q(Sz,"ytd-ypc-offers-overlay-renderer",function(){if(RwR!==void 0)return RwR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return RwR=A},{mode:2});var TwR;var mQ3=function(){this.usedMethods=new Set};
mQ3.prototype.add=function(A){this.usedMethods.add(A)};
mQ3.prototype.reset=function(){this.usedMethods.clear()};var Jk7,gZO;
_.bNn=function(A,H){this.query=A;this.previousSearchQuery=H;this.id=Jk7++;if(!gZO){H=_.pZ("SBOX_SETTINGS");A="https://"+((H==null?void 0:H.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var k=H==null?void 0:H.REQUEST_LANGUAGE;k&&(A+="&hl="+k);(k=H==null?void 0:H.REQUEST_DOMAIN)&&(A+="&gl="+k);A+="&client=youtube&gs_ri=youtube";(k=H==null?void 0:H.SUGG_EXP_ID)&&(A+="&sugexp="+encodeURIComponent(k));(k=H==null?void 0:H.PSUGGEST_TOKEN)&&(A+="&tok="+k);(H=H==
null?void 0:H.SESSION_INDEX)&&(A+="&authuser="+H);_.b("desktop_enable_visual_suggest")&&(A+="&h=180&w=320&ytvs=1");gZO=A}};
_.LGy=function(A){var H="q="+encodeURIComponent(A.query);A.previousSearchQuery&&(H+="&pq="+encodeURIComponent(A.previousSearchQuery));return H};
_.vZI=function(){var A=_.pZ("SBOX_SETTINGS"),H={};if(A==null?0:A.SEND_VISITOR_DATA)H["X-Goog-Visitor-Id"]=A==null?void 0:A.VISITOR_DATA;return H};
_.ykO=function(A){var H=gZO;H+="&gs_id="+A.id.toString(36);H+="&q="+encodeURIComponent(A.query);H+="&cp="+A.query.length;A.previousSearchQuery&&(H+="&pq="+encodeURIComponent(A.previousSearchQuery));(A=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(H+="&video_id="+A);return H};
Jk7=0;gZO="";var jpG,I1G,YwR,PJI,G0B;jpG=jH.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST;I1G=jH.SEARCH_ENTITY_SUGGESTION_MOVIE;YwR=jH.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST;PJI=jH.SEARCH_ENTITY_SUGGESTION_TV_SHOW;G0B=function(A,H){this.text=A;this.bold=H};
_.FGm=function(A,H,k){this.input=H;this.index=k;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=A[0];this.type=A[1];this.subtypes=A[2];var d;this.displayText=wZ_((d=A[3])==null?void 0:d.b);var W;this.ignoredPrefix=wZ_((W=A[3])==null?void 0:W.a);var z,u;this.hasNewVideo=((z=A[3])==null?void 0:(u=z.zam)==null?void 0:u.toString())==="true"?!0:!1;var B;this.visualSuggestUrl=(B=A[3])==null?void 0:B.zai;var h;this.entityType=wZ_((h=A[3])==null?void 0:h.zap);var O;this.entityName=wZ_((O=
A[3])==null?void 0:O.zao);var T;H=wZ_((T=A[3])==null?void 0:T.zaf);var m;this.entityMid=(m=A[3])==null?void 0:m.zae;T=oV1(this.subtypes,this.entityMid);if(H&&T){if(H){m="";switch(T){case "YOUTUBE_ENTITY_TYPE_SONG":m=YwR;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":m=jpG;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":m=PJI;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":m=I1G}T=T==="YOUTUBE_ENTITY_TYPE_SONG"||T==="YOUTUBE_ENTITY_TYPE_ALBUM"?m+" \u2022  \u2022 "+H:H}else T="";this.entitySubtitle=T}var J;this.externalChannelId=
(J=A[3])==null?void 0:J.zav;var g;this.entityThumbnailAttributionUrl=(g=A[3])==null?void 0:g.zaq};
_.DQI=function(A,H){var k=[],d,W=(d=A.displayText)!=null?d:A.text;(H==null?0:H.useEntityName)&&_.Xjm(A)&&A.entityName&&(W=A.entityName);if(A.type===33)return k.push(new G0B(W,!1)),k;if(W.length>=A.input.length&&W.substring(0,A.input.length)===A.input)k.push(new G0B(A.input,!1)),k.push(new G0B(W.substring(A.input.length),!0));else{var z=new Set(A.input.split(/\s/)),u=W.split(/\s/);k=u.map(function(B,h){return new G0B(B.trim()+(h===u.length-1?"":" "),!z.has(B))})}return k};
_.Xjm=function(A){var H=!!oV1(A.subtypes);A=!!A.entityMid;return H||A};_.Swf=function(A){this.rawResponse=["",[],{}];this.suggestions=[];try{var H=JSON.parse($JV(A));if(typeof H==="object"&&H!==null)this.rawResponse=H;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(d){console.log("Suggest: Failed to parse SuggestResponse!");return}var k=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(d,W){return new _.FGm(d,k,W)})};var CJG=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new mQ3;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22817_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},KGx,a1n=function(){KGx||(KGx=new CJG);
return KGx};
CJG.prototype.updateSuggestions=function(A){var H=this;this.availableSuggestions.forEach(function(k){H.previousSuggestions[k]=!0});
this.availableSuggestions=A.map(function(k){var d=k.type.toString();k.subtypes.length>0&&(d+="i"+k.subtypes.join("i"),d+="k"+k.suggestionSources.COMPLETE_SERVER.toString());return d})};
var ckB=function(A,H){var k=Date.now();A.firstEditTime<0&&(A.firstEditTime=k);H&&(A.lastQueryBuildTime=k);A.lastEditTime=k};
CJG.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22817_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var pjz=function(A){var H="";A.availableSuggestions.forEach(function(W){delete A.previousSuggestions[W]});
for(var k=_.r(Object.keys(A.previousSuggestions)),d=k.next();!d.done;d=k.next())d=d.value,A.previousSuggestions[d]&&(H+=(H?"j":"")+d);return H},Qpn=function(A,H){var k=[];
H&&(k[1]=H.toString());k[0]="youtube";k[7]=Date.now()-A.startTime;k[6]=A.sessionNumber;A.zeroPrefixSuggestionCount>=0&&(k[33]=A.zeroPrefixSuggestionCount);k[13]=A.outOfSyncResponseCount;if(A.availableSuggestions.length>0){for(var d=H="",W=0,z=_.r(A.availableSuggestions),u=z.next();!u.done;u=z.next())u=u.value,u!==d&&(W>1&&(H+="l"+W),H+=(d?"j":"")+u,W=0,d=u),W+=1;W>1&&(H+="l"+W);k[3]=H}k[35]=pjz(A);A.selectedSuggestionIndex>=0&&(k[2]=A.selectedSuggestionIndex);var B;if(H=(B=_.pZ("SBOX_SETTINGS"))==
null?void 0:B.SUGG_EXP_ID)k[19]=A.normalize(H),B=0,A.experimentTriggeredBeforeFinal&&(B|=1),A.experimentTriggeredFinal&&(B|=2),k[20]=B;k[26]=Array.from(A.inputMethodsTracker.usedMethods).join("j");if(A.JSC$22817_totalRoundTripTime>0){k[15]=A.JSC$22817_totalRoundTripTime;k[14]=A.maxRoundTripTime;B=[];for(W=H=0;W<10;W++)d=A.roundTripTimeHistogram[W],d===0?H++:(H>1?B.push(W+"-"+d):H===1?B.push("0j"+d):B.push(d.toString()),H=0);B=B.join("j");k[16]=B}A.zeroPrefixRoundTripTime>0&&(k[36]=A.zeroPrefixRoundTripTime);
A.lastQueryBuildTime>0&&(k[18]=A.lastQueryBuildTime-A.startTime);A.firstEditTime>0&&(k[4]=A.firstEditTime-A.startTime);A.lastEditTime>0&&(k[5]=A.lastEditTime-A.startTime);return k.join(".")};
CJG.prototype.normalize=function(A){return A.replaceAll(".","-")};
var VA3=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Cy=function(){var A=_.a.apply(this,arguments)||this;A.microphoneSpinnerActive=!1;A.noAnimations=!1;A.boundExitClick=function(){A.onExitButtonClick()};
A.speechOverlayClassName="";A.isLevelAnimating=!1;A.playCloseDialogAudioFeedback=!0;A.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return A};
_.I(Cy,_.a);_.q=Cy.prototype;_.q.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.q.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=psL()};
_.q.dataChanged=function(){this.logDialog()};
_.q.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var A;(A=this.manager.audioPlayer)!=null&&(A.JSC$21673_audioEnabled=!1)}this.manager.stop();(A=this.manager.audioPlayer)!=null&&(A.JSC$21673_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.q.handleSpeechQueryCompleteAction=function(A){var H=A.navigationAction;H&&(A.trackingParams&&_.A7().graftServerVe(A.trackingParams,this.dialogVe,5),_.Ed(this.hostElement,"yt-navigate",{endpoint:H,tempData:this.getNavigationParams(H),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.q.onExitButtonClick=function(){this.closeDialog()};
_.q.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var A;if((A=this.manager)!=null){var H;(H=A.audioPlayer)==null||MD(H,"failure");A.setState("microphone-off");A.stop()}}else(A=this.manager)==null||A.start()};
_.q.transcriptionChanged=function(){var A,H;(((A=this.transcription)==null?0:A.low)||((H=this.transcription)==null?0:H.high))&&this.setState("transcribing",this.transcription)};
_.q.stateChanged=function(){this.setState(this.state,this.transcription)};
_.q.logDialog=function(){var A;(A=this.data)!=null&&A.trackingParams&&(A=_.A7(),_.Ml(A,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=A.graftServerVe(this.data.trackingParams,void 0,5))};
_.q.getNavigationParams=function(A){var H={};if(_.b("web_yt_searchbox")){var k=a1n();k.inputMethodsTracker.add(6);k=Qpn(k,15);H.gs_l=k;var d;H.oq=((d=_.L(A,_.wl))==null?void 0:d.query)||""}else if(A=window.ytvoicesearchloggingparams){if(A=A())H.oq=A.oq,H.gs_l=A.gs_l}else _.lt(Error("lm"));return H};
_.q.closeDialog=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.q.setState=function(A,H){if(this.data){var k=this.data,d={};switch(A){case "listening":d={headerText:k.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:k.microphoneButtonAriaLabel};break;case "timeout":d={headerText:k.promptHeader,microphoneState:"try-again",microphoneLabel:k.promptMicrophoneLabel,microphoneAriaLabel:k.promptMicrophoneLabel};break;case "microphone-off":d={headerText:k.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:k.promptMicrophoneLabel,
microphoneAriaLabel:k.promptMicrophoneLabel};break;case "transcribing":(H==null?0:H.low)||(H==null?0:H.high)?d={transcriptionLow:H==null?void 0:H.low,transcriptionHigh:H==null?void 0:H.high,microphoneState:"speaking",microphoneAriaLabel:k.microphoneButtonAriaLabel}:d={headerText:k.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:k.microphoneButtonAriaLabel};break;case "processing":d={headerText:k.loadingHeader,microphoneState:"processing",microphoneAriaLabel:k.microphoneButtonAriaLabel};
break;case "offline":d={headerText:k.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:k.connectionErrorMicrophoneLabel,microphoneAriaLabel:k.connectionErrorMicrophoneLabel};break;case "permission":d={headerText:k.permissionsHeader,bodyLine1:k.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:k.permissionsSubtext};break;case "permission-denied":d={headerText:k.disabledHeader,bodyLine1:k.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:k.disabledSubtext}}d.className=
A;this.speechOverlayState=d;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.q.setMicrophoneState=function(A){var H=this.isLevelAnimating;this.isLevelAnimating=A==="speaking";!H&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=A==="processing"&&!this.noAnimations};
_.q.setClass=function(A){this.speechOverlayClassName&&_.UJ(this.hostElement,this.speechOverlayClassName,!1);A&&(this.speechOverlayClassName=A,_.UJ(this.hostElement,A,!0))};
_.q.runLevelAnimation=function(){var A=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var H=1+Math.random()*.75,k=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+k/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+H+")");_.IE.addJob(function(){A.runLevelAnimation()},3,k)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Cy.prototype.stateChanged=Cy.prototype.stateChanged;Cy.prototype.transcriptionChanged=Cy.prototype.transcriptionChanged;Cy.prototype.onPopupClosed=Cy.prototype.onPopupClosed;Cy.prototype.dataChanged=Cy.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Cy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Cy.prototype,"rendererStamperBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Cy.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],Cy.prototype,"eventForwardingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Cy.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Cy.prototype,"speechOverlayState",void 0);
_.E([_.C(),_.l("design:type",Object)],Cy.prototype,"microphoneSpinnerActive",void 0);_.E([_.C({type:_.b("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.l("design:type",Object)],Cy.prototype,"noAnimations",void 0);_.E([_.C({selector:function(A){var H;return(H=A.voiceSearch)==null?void 0:H.transcription}}),
_.l("design:type",Object)],Cy.prototype,"transcription",void 0);_.E([_.C({selector:function(A){var H;return(H=A.voiceSearch)==null?void 0:H.overlay}}),
_.l("design:type",String)],Cy.prototype,"state",void 0);_.E([_.C(),_.l("design:type",Object)],Cy.prototype,"boundExitClick",void 0);_.E([_.ol("#microphone-levels"),_.l("design:type",HTMLElement)],Cy.prototype,"level",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cy.prototype,"dataChanged",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cy.prototype,"onPopupClosed",null);
_.E([_.s6("transcription"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cy.prototype,"transcriptionChanged",null);_.E([_.s6("state"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cy.prototype,"stateChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Cy);
_.Q(Cy,"ytd-voice-search-dialog-renderer",function(){if(TwR!==void 0)return TwR;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return TwR=A},{mode:1});var EZB;var Ky=function(){var A=_.a.apply(this,arguments)||this;A.isOverlay=!1;A.hidden=!1;return A};
_.I(Ky,_.a);_.q=Ky.prototype;_.q.onPopupClosed=function(){this.toggleIconState(!1)};
_.q.computeIcon=function(){var A,H,k;return(H=_.L((A=this.data)==null?void 0:A.icon,lr1))==null?void 0:(k=H.icon)==null?void 0:k.iconType};
_.q.computeIconBadgeShape=function(){var A;return{iconBadgeType:"cart",iconBadgeText:(A=this.iconBadgeEntity)==null?void 0:A.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.q.onClick=function(){var A;(A=this.data)!=null&&A.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.q.computeHidden=function(A){return!A};
_.q.toggleIconState=function(A){this.iconButton&&(this.iconButton.pressed=A)};
Ky.prototype.onPopupClosed=Ky.prototype.onPopupClosed;_.E([_.P(_.TG),_.l("design:type",Object)],Ky.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Ky.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Ky.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Ky.prototype,"isOverlay",void 0);
_.E([_.C({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.l("design:type",Object)],Ky.prototype,"hidden",void 0);_.E([_.C({selectorArgs:["data.iconBadgeEntityKey"],selector:function(A,H){return _.Mw(A.entities,"iconBadgeEntity",H)}}),
_.l("design:type",Object)],Ky.prototype,"iconBadgeEntity",void 0);_.E([_.ol("yt-icon-button"),_.l("design:type",HTMLButtonElement)],Ky.prototype,"iconButton",void 0);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ky.prototype,"onPopupClosed",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Ky);
_.Q(Ky,"ytd-icon-badge-topbar-button-renderer",function(){if(EZB!==void 0)return EZB;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return EZB=A},{mode:1});var UQR;var a$=function(){var A=_.a.apply(this,arguments)||this;A.premiumOptions=[];return A};
_.I(a$,_.a);a$.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.nP.Object.defineProperties(a$.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],a$.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Array)],a$.prototype,"premiumOptions",void 0);_.E([_.G("premiumOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],a$.prototype,"hasPremiumOptions",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],a$);
_.Q(a$,"ytd-offline-promo-content",function(){if(UQR!==void 0)return UQR;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return UQR=A},{mode:1});var l1p;var cP=function(){var A=_.a.apply(this,arguments)||this;A.premiumOptions=[];return A};
_.I(cP,_.a);cP.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var A;this.premiumOptions=f_Q((A=this.data)==null?void 0:A.formats)};
cP.prototype.onClickSubmit=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var A;(A=_.Kj())==null||A.pause()};
cP.prototype.attached=function(){this.JSC$22837_scroller&&(this.JSC$22837_scroller.dialogElement=this.hostElement.parentNode)};
_.nP.Object.defineProperties(cP.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
cP.prototype.dataChanged=cP.prototype.dataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],cP.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],cP.prototype,"data",void 0);
_.E([_.C({computed:"computeIcon_(data.headersIcon)",value:""}),_.l("design:type",String)],cP.prototype,"headersIcon",void 0);_.E([_.C(),_.l("design:type",Array)],cP.prototype,"premiumOptions",void 0);_.E([_.ol("#scroller"),_.l("design:type",Object)],cP.prototype,"JSC$22837_scroller",void 0);_.E([_.G("headersIcon"),_.l("design:type",Object),_.l("design:paramtypes",[])],cP.prototype,"showIcon",null);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cP.prototype,"dataChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],cP);
_.Q(cP,"ytd-offline-promo-renderer",function(){if(l1p!==void 0)return l1p;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return l1p=A},{mode:1});var tA7;var py=function(){var A=_.a.apply(this,arguments)||this;A.playbackPauseInterval=NaN;A.isLoading=!1;A.hasError=!1;A.dialogClass="";A.youtubeLabel=_.$r("LOGO_ALT_LABEL",{},"YouTube Home");A.logoName="yt-logos-ext:yt-logo-updated";A.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return A};
_.I(py,_.a);_.q=py.prototype;_.q.onDataChange=function(){var A;if(this.showEOMV1Text=!((A=this.data)==null||!A.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.q.attached=function(){this.pausePlayer()};
_.q.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.q.handleLangSelect=function(A){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[A.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.q.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.q.handleSaveConsent=function(A){var H=this;this.showLoadingSpinner();this.showLoadingSpinner();UnG(_.L(A,GU3)).catch(function(k){_.Pq(new _.Ti("Something went wrong when save consent "+(k.message?k.message:k)+"."));H.hideLoadingSpinner();H.showErrorMessage()})};
_.q.handleDisablePersonalization=function(A){var H=this;this.showLoadingSpinner();l6_(_.L(A,PaQ)).then(function(){H.dialog.close();H.resumePlayer()}).catch(function(k){_.Pq(new _.Ti("Something went wrong when disable personalization "+(k.message?k.message:k)+"."));
H.hideLoadingSpinner();H.showErrorMessage()})};
_.q.showLoadingSpinner=function(){var A=this;this.showSpinnerJobId=_.IE.addLowPriorityJob(function(){A.isLoading=!0},500)};
_.q.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.IE.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.q.showErrorMessage=function(){var A=this;this.hasError=!0;_.IE.addLowPriorityJob(function(){A.hasError=!1},2E3)};
_.q.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.q4(function(){try{var A=_.Kj();A&&A.pause()}catch(H){}},100))};
_.q.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var A=_.Kj();A&&A.play()}catch(H){}};
_.nP.Object.defineProperties(py.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.eomV1Text)return[];A=[];for(var H=["SHIELD","WARNING","BAR_CHART"],k=this.data.eomV1Text.essentialCookieMsg.items,d=0;d<H.length&&d<k.length;d++)A.push({icon:H[d],text:k[d]});return A}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.eomV1Text)return[];A=[];for(var H=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],k=this.data.eomV1Text.nonEssentialCookieMsg.items,d=0;d<H.length&&d<k.length;d++)A.push({icon:H[d],text:k[d]});return A}}});
py.prototype.onDataChange=py.prototype.onDataChange;_.E([_.C(),_.l("design:type",Object)],py.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],py.prototype,"showEOMV1Text",void 0);_.E([_.C(),_.l("design:type",Object)],py.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",Object)],py.prototype,"hasError",void 0);_.E([_.C(),_.l("design:type",Number)],py.prototype,"showSpinnerJobId",void 0);_.E([_.C(),_.l("design:type",Object)],py.prototype,"dialogClass",void 0);
_.E([_.ol("#dialog"),_.l("design:type",Object)],py.prototype,"dialog",void 0);_.E([_.ol("#cb-header"),_.l("design:type",HTMLElement)],py.prototype,"header",void 0);_.E([_.ol("#lang-select"),_.l("design:type",HTMLElement)],py.prototype,"langSelect",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],py.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],py.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.l("design:type",String)],py.prototype,"youtubeLabel",void 0);_.E([_.C(),_.l("design:type",Object)],py.prototype,"logoName",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],py.prototype,"onDataChange",null);_.E([_.G("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],py.prototype,"eomEssentialCookieMsgItems",null);
_.E([_.G("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],py.prototype,"eomNonEssentialCookieMsgItems",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],py);
_.Q(py,"ytd-consent-bump-v2-lightbox",function(){if(tA7!==void 0)return tA7;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return tA7=A},{mode:1});var NwB;var Q7=function(){return _.a.apply(this,arguments)||this};
_.I(Q7,_.a);Q7.prototype.ready=function(){if(!_.hn()||PS1)var A=!0;else PS1=!0,A=!1;A||(A=document.querySelector("ytd-app"),A||(A=document.body),this.internalLightBox=_.Va(A).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.E([_.C(),_.l("design:type",Object)],Q7.prototype,"data",void 0);_.E([_.ol("#lightbox"),_.l("design:type",Object)],Q7.prototype,"lightBox",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Q7);
_.Q(Q7,"ytd-consent-bump-v2-renderer",function(){if(NwB!==void 0)return NwB;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return NwB=A},{mode:1});var MAI;var nZf;var ZNn;var V7=function(){return _.a.apply(this,arguments)||this};
_.I(V7,_.a);_.q=V7.prototype;_.q.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&KOR(this.toastManager,this.toastType)};
_.q.open=function(A){this.toast&&(this.ephemeralAction&&_.wj().resolve(_.b_).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=A!=null?A:0,this.toastManager.enqueue(this.toast,A)):this.toast.open())};
_.q.close=function(A){var H;(H=this.toast)==null||H.close();this.toastManager&&A===1&&KOR(this.toastManager,A)};
_.q.refit=function(){var A;(A=this.toast)==null||A.refit()};
_.q.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var A;(A=this.toast)==null||A.close()}};
_.q.setVerticalOffset=function(A){this.toast&&(this.toast.verticalOffset=A,this.toast.fit())};
_.q.computeButtonClass_=function(A){return A?"toast-button":""};
_.q.computeText_=function(A){return _.PK(A)};
_.q.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.G2("toast-opened-changed",this.toastOpened))};
_.q.updateToastOpenedFromBinding=function(A){this.toastOpened=A.detail.value};
_.nP.Object.defineProperties(V7.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var A,H,k=(A=this.data)==null?void 0:(H=A.actionButton)==null?void 0:H.buttonRenderer;return(k==null?void 0:k.command)||(k==null?void 0:k.serviceEndpoint)||(k==null?void 0:k.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 A=[],H;((H=this.data)==null?0:H.responseText)&&A.push(_.PK(this.data.responseText));var k;((k=this.data)==null?0:k.subText)&&A.push(_.PK(this.data.subText));var d,W;if((d=this.data)==null?0:(W=d.actionButton)==null?0:W.buttonRenderer){var z,u;A.push(((z=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(u=z.accessibilityData)==null?void 0:u.label)||_.PK(this.data.actionButton.buttonRenderer.text))}return A.filter(function(B){return B}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var A,H;return(H=(A=this.toast)==null?void 0:A.opened)!=null?H:!1}}});
V7.prototype.toastOpenedChangedForBinding=V7.prototype.toastOpenedChangedForBinding;V7.prototype.toastOpenedChanged=V7.prototype.toastOpenedChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],V7.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],V7.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],V7.prototype,"duration",void 0);
_.E([_.C(),_.l("design:type",Number)],V7.prototype,"toastType",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],V7.prototype,"useCloseButton",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],V7.prototype,"closeToastOnActionButtonClick",void 0);_.E([_.C({value:function(){return _.$r("SBOX_INAPPROPRIATE_CANCEL")}}),
_.l("design:type",String)],V7.prototype,"closeButtonAriaLabel",void 0);_.E([_.C(),_.l("design:type",Boolean)],V7.prototype,"toastOpened",void 0);_.E([_.C(),_.l("design:type",Boolean)],V7.prototype,"hasOpened",void 0);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],V7.prototype,"command",null);_.E([_.G("labelText","command","duration"),_.l("design:type",Object),_.l("design:paramtypes",[])],V7.prototype,"ephemeralAction",null);
_.E([_.G("ephemeralAction"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V7.prototype,"hasEphemeralAction",null);_.E([_.ol("#toast"),_.l("design:type",Object)],V7.prototype,"toast",void 0);_.E([_.C({value:function(){return{style:"call-to-action-inverse"}}}),
_.l("design:type",Object)],V7.prototype,"buttonOverrides",void 0);_.E([_.C({value:{style:"mono-inverse"}}),_.l("design:type",Object)],V7.prototype,"closeButtonOverrides",void 0);_.E([_.C({value:function(){return _.wj().resolve(_.fZ(_.JJ))}}),
_.l("design:type",Object)],V7.prototype,"toastManager",void 0);_.E([_.G("data.responseText","data.subText","data.actionButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],V7.prototype,"labelText",null);_.E([_.fF("toastOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V7.prototype,"toastOpenedChanged",null);
_.E([_.fF("toastOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V7.prototype,"toastOpenedChangedForBinding",null);_.E([_.h6({is:"yt-notification-action-renderer",disableElementRegistration:!0})],V7);
_.Q(V7,"yt-notification-action-renderer",function(){if(ZNn===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;nZf===void 0&&(nZf=document.createElement("template"));var d=nZf;k.call(H,d.content.cloneNode(!0),A.content.firstChild);ZNn=A}A=ZNn;return A},{mode:2});var Eg=function(){var A=_.a.apply(this,arguments)||this;A.duration=4E3;A.downloadingCount=0;A.downloadedCount=0;A.downloadingOnlySmartDownloads=!1;A.sessionTotalDownloads=0;A.sessionDownloaded=0;A.previousSessionsDownloaded=0;A.totalDownloadPercentage=0;A.currentDownloadProgress=0;A.currentDownloadPercentage=0;A.isLeaderTab=!0;A.isFullScreen=!1;A.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};A.boundBeforeUnload=function(H){A.isLeaderTab&&A.downloadingCount>0&&(H.preventDefault(),
H.returnValue=!0)};
return A};
_.I(Eg,_.a);_.q=Eg.prototype;
_.q.open=function(){this.updateDownloadState();if(this.data){var A=this.sessionDownloaded+1,H=this.sessionTotalDownloads>1?_.$r("VIDEOS_DOWNLOADING_RATIO",{downloaded:A.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+A+"/"+this.sessionTotalDownloads):_.$r("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(H=this.sessionTotalDownloads>1?_.$r("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:A.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
A+"/"+this.sessionTotalDownloads):_.$r("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));A=this.isLeaderTab?_.$r("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.PK(this.data.responseText)!==H||_.PK(this.data.subText)!==A)this.set("data.responseText",_.Yu(H)),this.set("data.subText",_.Yu(A)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.q.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.q.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.q.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.q.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var A=this.downloadedCount-this.previousSessionsDownloaded;A<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-A);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.q.handleFullscreenChange=function(A){(this.isFullScreen=A)||this.updatePopup()};
Eg.prototype.updateCurrentDownloadProgress=Eg.prototype.updateCurrentDownloadProgress;Eg.prototype.updatePopup=Eg.prototype.updatePopup;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],Eg.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],Eg.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Eg.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Eg.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],Eg.prototype,"duration",void 0);_.E([_.C({selector:function(A){return _.CVV(A.entities).length}}),
_.l("design:type",Object)],Eg.prototype,"downloadingCount",void 0);_.E([_.C({selector:OHB}),_.l("design:type",Object)],Eg.prototype,"downloadedCount",void 0);_.E([_.C({selector:function(A){var H=_.CVV(A.entities);return eAR(A.entities,H)}}),
_.l("design:type",Object)],Eg.prototype,"downloadingOnlySmartDownloads",void 0);_.E([_.C(),_.l("design:type",Object)],Eg.prototype,"sessionTotalDownloads",void 0);_.E([_.C(),_.l("design:type",Object)],Eg.prototype,"sessionDownloaded",void 0);_.E([_.C(),_.l("design:type",Object)],Eg.prototype,"previousSessionsDownloaded",void 0);_.E([_.C(),_.l("design:type",Object)],Eg.prototype,"totalDownloadPercentage",void 0);
_.E([_.C({selector:function(A){var H;A=(H=_.CVV(A.entities))!=null?H:[];return A.length>0?_.vTV(A.slice(-1)):0}}),
_.l("design:type",Object)],Eg.prototype,"currentDownloadProgress",void 0);_.E([_.C(),_.l("design:type",Object)],Eg.prototype,"currentDownloadPercentage",void 0);_.E([_.C({selector:_.Q6r}),_.l("design:type",Object)],Eg.prototype,"isLeaderTab",void 0);_.E([_.ol("yt-notification-action-renderer"),_.l("design:type",Object)],Eg.prototype,"notificationActionRenderer",void 0);
_.E([_.s6("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Eg.prototype,"updatePopup",null);_.E([_.s6("currentDownloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Eg.prototype,"updateCurrentDownloadProgress",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Eg);
_.Q(Eg,"ytd-video-download-toast-renderer",function(){if(MAI!==void 0)return MAI;var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return MAI=A},{mode:1});var f13;var wjI;var Ug=function(){return _.a.apply(this,arguments)||this};
_.I(Ug,_.a);Ug.prototype.computeIsRedLogo=function(A,H){!A&&H&&(A=H);return A==="YOUTUBE_RED_LOGO"||A==="YOUTUBE_PREMIUM_LOGO"};
Ug.prototype.computeLogoName=function(A){A=this.componentBehavior.computeIcon_(A);return A===""?"yt-logos-ext:yt-logo-updated":A};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Ug.prototype,"componentBehavior",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.l("design:type",Boolean)],Ug.prototype,"isRedLogo",void 0);_.E([_.C({computed:"computeLogoName(data)"}),_.l("design:type",String)],Ug.prototype,"logoName",void 0);_.E([_.C({value:{}}),_.l("design:type",Object)],Ug.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],Ug.prototype,"logoType",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-logo"})],Ug);
_.Q(Ug,"ytd-logo",function(){if(wjI!==void 0)return wjI;var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return wjI=A},{mode:2});var lN=function(){var A=_.a.apply(this,arguments)||this;A.animationRef={};return A};
_.I(lN,_.a);_.q=lN.prototype;_.q.attached=function(){document.addEventListener("yt-navigate-finish",_.nF(this,this.logYoodle))};
_.q.detached=function(){document.removeEventListener("yt-navigate-finish",_.nF(this,this.logYoodle))};
_.q.logYoodle=function(){var A,H;if((A=this.data)==null?0:(H=A.loggingDirectives)==null?0:H.trackingParams)this.ytRendererBehavior.markDirty(),_.A7().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.q.computeHideImg=function(A,H){return!!A||!!H};
_.q.computeHideYtdLogo=function(A,H){return!A||!!H};
_.q.computeHideLottie=function(A){return!A};
_.q.computeIsRedLogo=function(A){return A==="YOUTUBE_RED_LOGO"||A==="YOUTUBE_PREMIUM_LOGO"};
_.q.renderLogoEntity=function(){var A=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),H=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),k=this.getLogoTitleText(this.data),d=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==A&&(this.url=A);this.animatedUrl!==H&&(this.animatedUrl=H);this.logoTitleText!==k&&(this.logoTitleText=k);this.lottieUrl!==d&&(this.lottieUrl=d,this.lottiePlayerProps=this.computeLottiePlayerProps(d))};
_.q.getSanitizedThumbnail=function(A){return A&&A.thumbnails?_.BVN(A.thumbnails,122)||"":""};
_.q.getThumbnailUrl=function(A,H){if(!H)return"";var k,d;A=A?(k=H.darkThemeLogo)==null?void 0:k.thumbnail:(d=H.lightThemeLogo)==null?void 0:d.thumbnail;return this.getSanitizedThumbnail(A)};
_.q.getAnimatedThumbnailUrl=function(A,H){return H?this.getSanitizedThumbnail(A?H.darkThemeAnimatedLogo:H.lightThemeAnimatedLogo):""};
_.q.getLogoTitleText=function(A){if(A)return _.PK(A.tooltipText)};
_.q.computeLogoIcon=function(A,H){if(H){var k,d;return A?(k=H.darkThemeLogo)==null?void 0:k.icon:(d=H.lightThemeLogo)==null?void 0:d.icon}};
_.q.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.q.getLottieUrl=function(A,H){var k,d,W,z;return A?H==null?void 0:(k=H.darkThemeLogo)==null?void 0:(d=k.lottieAnimation)==null?void 0:d.url:H==null?void 0:(W=H.lightThemeLogo)==null?void 0:(z=W.lottieAnimation)==null?void 0:z.url};
_.q.computeLottiePlayerProps=function(A){if(A){var H;if((H=this.animationRef)==null?0:H.lottieEl){var k;(k=this.animationRef)==null||k.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:A,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.q.onLottieError=function(){this.data&&this.lottieUrl&&_.Ed(this.hostElement,"yoodle-error")};
_.q.onImgError=function(){this.data&&!this.lottieUrl&&_.Ed(this.hostElement,"yoodle-error")};
lN.prototype.playAnimation=lN.prototype.playAnimation;lN.prototype.renderLogoEntity=lN.prototype.renderLogoEntity;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],lN.prototype,"data",void 0);_.E([_.C({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.l("design:type",Boolean)],lN.prototype,"hideImg",void 0);
_.E([_.C({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.l("design:type",Boolean)],lN.prototype,"hideYtdLogo",void 0);_.E([_.C({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.l("design:type",Boolean)],lN.prototype,"hideLottie",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.l("design:type",Boolean)],lN.prototype,"isRedLogo",void 0);
_.E([_.C(),_.l("design:type",Boolean)],lN.prototype,"useDarkThemeYoodle",void 0);_.E([_.C(),_.l("design:type",String)],lN.prototype,"url",void 0);_.E([_.C(),_.l("design:type",String)],lN.prototype,"animatedUrl",void 0);_.E([_.C(),_.l("design:type",String)],lN.prototype,"logoTitleText",void 0);_.E([_.C({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.l("design:type",Object)],lN.prototype,"logoIcon",void 0);_.E([_.C(),_.l("design:type",Object)],lN.prototype,"logoType",void 0);
_.E([_.C(),_.l("design:type",String)],lN.prototype,"lottieUrl",void 0);_.E([_.C(),_.l("design:type",Object)],lN.prototype,"lottiePlayerProps",void 0);_.E([_.C(),_.l("design:type",Object)],lN.prototype,"animationRef",void 0);_.E([_.fF("data"),_.fF("useDarkThemeYoodle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lN.prototype,"renderLogoEntity",null);
_.E([_.Ze("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],lN.prototype,"playAnimation",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],lN);
_.Q(lN,"ytd-yoodle-renderer",function(){if(f13!==void 0)return f13;var A=document.createElement("template");_.Y(A,'\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 class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return f13=A},{mode:2});var oZf;var $Qm;var AVw=_.yP.currentPageTypeSelector,HLW=_.yP.currentPageSubTypeSelector,tT=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return A};
_.I(tT,_.a);_.q=tT.prototype;_.q.onYoodleError=function(){_.b("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.q.computeLogoName=function(A){A=this.componentBehavior.computeIcon_(A);return A===""?"yt-logos-ext:yt-logo-updated":A};
_.q.computeTitle=function(A,H,k){return k&&(H==null?0:H.tooltipText)?_.PK(H.tooltipText):_.PK(A)};
_.q.computeAriaLabel=function(A,H,k){return k&&(H==null?0:H.tooltipText)?_.PK(A):""};
_.q.computeShowYoodle=function(A,H,k){return!A||!H&&!!k&&!_.iK.isEmpty(k)};
_.q.onNavigateHomeAction=function(){if(_.b("kevlar_miniplayer_navigate_home_from_app_killswitch")){var A;(A=_.Va(this.hostElement).querySelector(".yt-simple-endpoint"))==null||A.click()}};
_.q.computeLogoHref=function(A,H,k){var d;(k==null?0:k.onTapCommand)?d=this.componentBehavior.computeHref_(k.onTapCommand):A&&(d=this.componentBehavior.computeHref_(A));return d?d:H};
_.q.computeCommand=function(A,H){return(H==null?void 0:H.onTapCommand)||A};
_.q.getEndpointForm=function(){if(_.b("kevlar_topbar_disable_cache_only_home")){var A=_.wj().resolve(_.O7),H=AVw(A.getState())||"";A=HLW(A.getState())||"";return{disableCache:H==="ytd-browse"&&A==="home"}}return{disableCache:!0}};
tT.prototype.onYoodleError=tT.prototype.onYoodleError;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],tT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],tT.prototype,"componentBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],tT.prototype,"ytdReduxBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],tT.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],tT.prototype,"countryCode",void 0);_.E([_.C({selectorArgs:["data.overrideEntityKey"],selector:function(A,H){return _.Mw(A.entities,"logoEntity",H)}}),
_.l("design:type",Object)],tT.prototype,"logoEntity",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.l("design:type",Boolean)],tT.prototype,"showYoodle",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],tT.prototype,"yoodleError",void 0);_.E([_.C({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.l("design:type",String)],tT.prototype,"titleText",void 0);
_.E([_.C({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.l("design:type",String)],tT.prototype,"ariaLabelText",void 0);_.E([_.C({value:"/"}),_.l("design:type",String)],tT.prototype,"defaultEndpointUrl",void 0);_.E([_.C({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.l("design:type",String)],tT.prototype,"endpointUrl",void 0);
_.E([_.C({computed:"computeCommand(data.endpoint, logoEntity)"}),_.l("design:type",String)],tT.prototype,"command",void 0);_.E([_.C(),_.l("design:type",Object)],tT.prototype,"logoType",void 0);_.E([_.C({}),_.l("design:type",Boolean)],tT.prototype,"useDarkThemeYoodle",void 0);_.E([_.Ze("yoodle-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tT.prototype,"onYoodleError",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],tT);
_.Q(tT,"ytd-topbar-logo-renderer",function(){if($Qm!==void 0)return $Qm;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return $Qm=A},{mode:2});var s_p=0;var kem=jH.SEARCH_APPEND_LABEL,din=jH.SUGGESTION_NEW_VIDEOS_TEXT,WBB=jH.SUGGESTION_THUMBNAIL_LABEL,zMp=jH.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,qBG=_.c(function(A){function H(NQ){var Qi,jI;return _.e(function(WX){if(WX.nextAddress==1)return Qi=new Request(NQ),_.S_(WX,2),WX.yield(fetch(Qi,{credentials:"include"}),4);if(WX.nextAddress!=2)return Tf(!0),_.QN(WX,0);jI=_.VA(WX);_.Pq(jI);_.EN(WX)})}
var k=A.isHighlighted;var d=A.suggestion;var W=A.onClickCallback;var z=A.onHoverUpdateCallback;var u=A.labels;var B=A.queryBuilderFunction;var h=A.onRemoveCallback;var O=A.suggestionIndex;var T=A.generateUniqueId;var m=A.highlightedId;var J=A.useScrollMargin;var g=A.isKeyboardMode;var v=null,y=null,X=null,D=_.GP("div"),K=_.GP("span");A=_.r(_.RV(!1,void 0,"LafNkf"));var N=A.next().value,U=A.next().value,p=_.FQ("a",function(NQ){NQ&&_.eY(237477,NQ,y,function(Qi){y=Qi})}),M=_.FQ("button",function(NQ){NQ&&
_.eY(237477,NQ,y,function(Qi){y=Qi})}),Z=_.FQ("div",function(NQ){NQ&&_.eY(281939,NQ,X,function(Qi){X=Qi})}),WV=_.lc(function(NQ){if((NQ==null?void 0:NQ.button)===2)return NQ.preventDefault(),!1;
var Qi=_.hx();Qi&&v&&_.GH(Qi,v,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var jI;W(NQ,d().text,d().index,d().entityMid,NQ==null?void 0:(jI=NQ.detail)==null?void 0:jI.wasSelectedByKeyboard);return!1}),hA=function(){return d().type===35},qv=function(){return _.b("desktop_enable_single_suggestion_highlight")},eN=function(){return _.H5("desktop_suggestions_panel_row_height")||0},mr=function(){var NQ;
return _.b("desktop_enable_new_video_metadata")&&((NQ=d())==null?void 0:NQ.hasNewVideo)===!0},Cl=function(){return _.b("desktop_enable_visual_suggest")},pl=function(){return _.b("desktop_enable_entity_suggest")&&_.Xjm(d())},UC=function(){return d().entitySubtitle},hk=function(){return qv()?(k==null?void 0:k())||nN()&&!(g==null?0:g()):(k==null?void 0:k())||nN()},eA=function(){var NQ=_.pZ("SBOX_SETTINGS");
return hA()&&!(NQ==null?0:NQ.HIDE_REMOVE_LINK)},lI=function(){return _.DQI(d(),{useEntityName:pl()})},Rp,vj=!((Rp=_.wj().resolve(_.fZ(_.sF)))==null||!Rp()),T0=function(){return d().subtypes.includes(870)?"SPARK_SEARCH":hA()?_.b("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Y1=function(){return u==null?void 0:u().SUGGESTION_DISMISS_LABEL},ze=function(){return u==null?void 0:u().SUGGESTION_DISMISSED_LABEL};
A=_.r(_.RV(!1,void 0,"mR5xxd"));Rp=A.next().value;var Tf=A.next().value;A=_.r(_.RV(!1,void 0,"e8LU3d"));var QW=A.next().value,mG=A.next().value,nN=QW,G0=_.lc(function(){B(K.value.innerText);return!1}),$Z=_.lc(function(NQ){NQ.preventDefault();
return!1}),F9=_.lc(function(NQ){H(_.sM1(d().text));
NQ.preventDefault();(NQ=_.hx())&&y&&_.GH(NQ,y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");h(O==null?void 0:O());return!1}),ww=_.lc(function(){if(qv()&&(g==null?0:g()))return!1;
mG(!0);z(!0);return!1}),x1=_.lc(function(){mG(!1);
z(!1);return!1}),lJ=_.lc(function(){U(!0);
return!1}),Ni=_.lc(function(){U(!1);
return!1}),uJ=_.lc(function(NQ){NQ.preventDefault();
if(d().entityThumbnailAttributionUrl){X&&_.f4(_.A7(),X);var Qi=d().entityThumbnailAttributionUrl;NQ=d().entityName;var jI={dismissDialogEndpoint:{}};Qi={commandExecutorCommand:{commands:[jI,{urlEndpoint:{url:Qi,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:Qi}}}]}};jI={buttonViewModel:{title:_.$r("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:jI}}};Qi={buttonViewModel:{title:_.$r("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:Qi}}};NQ={dialogHeaderViewModel:{headline:{content:NQ!=null?NQ:_.$r("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var WX={basicContentViewModel:{paragraphs:[{text:{content:_.$r("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};NQ={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:NQ,footer:{panelFooterViewModel:{primaryButton:Qi,
secondaryButton:jI,shouldHideDivider:!0}},content:WX}}}}};_.wj().resolve(_.J7).resolveCommand(NQ)}return!1});
A=_.r(_.RV("",void 0,"TYNBtf"));var OB=A.next().value,Ow=A.next().value;_.Sp(function(){eA()&&Ow(T==null?void 0:T(O==null?void 0:O()));D.value&&_.eY(12453,D.value,v,function(NQ){v=NQ})});
return _.x(_.R,{cond:Rp,then:function(){var NQ={};return _.x("div",{class:_.ER("ytSuggestionComponentRemovedText",(NQ.ytSuggestionComponentLargerRemovedText=function(){return Cl()},NQ)),
style:function(){return eN()>0?"height: "+eN()+"px;":""},
role:"button"},ze)},
else:function(){var NQ={},Qi={};return _.x("div",{class:_.ER("ytSuggestionComponentSuggestion",(NQ.ytSuggestionComponentSuggestionHover=function(){return!qv()},NQ.ytSuggestionComponentHighlighted=hk,NQ.ytSuggestionComponentPersonalizedSuggestion=hA,NQ.ytSuggestionComponentMweb=!1,NQ.ytSuggestionComponentLargerSuggestion=function(){return mr()||Cl()},NQ.ytSuggestionComponentThumbnailSuggestion=function(){return Cl()},NQ.ytSuggestionComponentRoundedSuggestion=function(){return _.b("desktop_enable_scrollable_suggestions_panel")&&
_.b("desktop_enable_suggestions_panel_padding")},NQ.ytSuggestionComponentThumbnailPadding=function(){return Cl()&&!hA()},NQ)),
style:function(){return eN()>0?"height: "+eN()+"px;":""},
role:"presentation","on:mousedown":WV,"on:mouseover":ww,"on:mouseout":x1,el:D},_.x("div",{class:_.ER("ytSuggestionComponentText",(Qi.ytSuggestionComponentScrollMargin=J,Qi)),"aria-label":function(){return mr()?d().text+" "+din:d().text},
id:function(){return T==null?void 0:T(O==null?void 0:O())},
"on:mousedown":WV,role:"option"},_.x(_.R,{cond:function(){return d().type!==33},
then:function(){return _.x(_.n3,{icon:T0,className:"ytSuggestionComponentIcon"})}}),_.x("div",{class:"ytSuggestionComponentLeftContainer"},_.x("span",{el:K,
role:"button",tabindex:0},_.x(_.Ix,{each:lI},function(jI){return jI.bold?_.x("span",{class:"ytSuggestionComponentBold"},jI.text):_.x("span",null,jI.text)})),_.x(_.R,{cond:function(){return pl()&&!!d().entitySubtitle||mr()},
then:function(){return _.x("div",{class:"ytSuggestionComponentMetadataContainer"},_.x(_.R,{cond:function(){return pl()&&!!d().entitySubtitle},
then:function(){return _.x("div",{class:"ytSuggestionComponentEntitySubtitle"},UC)}}),_.x(_.R,{cond:function(){return mr()},
then:function(){return _.x("div",{class:"ytSuggestionComponentNewVideoContainer"},_.x("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.x("div",{class:"ytSuggestionComponentNewVideoText"},din))}}))}}))),_.x("div",{class:"ytSuggestionComponentRightContainer"},_.x(_.R,{cond:function(){return Cl()&&d().visualSuggestUrl!==void 0},
then:function(){var jI={};return _.x("div",{class:"ytSuggestionComponentThumbnailContainer"},_.x("img",{"aria-label":WBB,class:_.ER("ytSuggestionComponentVisualSuggestThumbnail",(jI.ytSuggestionComponentCircularFrame=function(){return pl()&&d().subtypes.includes(790)},jI.ytSuggestionComponentEntitySuggestThumbnail=function(){return pl()},jI)),
src:function(){return d().visualSuggestUrl}}),_.x(_.R,{cond:function(){return pl()&&!!d().entityThumbnailAttributionUrl},
then:function(){var WX={};return _.x("span",{title:zMp,role:"tooltip"},_.x("div",{el:Z,"on:mouseover":lJ,"on:mouseout":Ni,"on:mousedown":uJ,class:_.ER("ytSuggestionComponentThumbnailOverlay",(WX.ytSuggestionComponentThumbnailOverlayHidden=function(){return!N()},WX))},_.x(_.n3,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.x(_.Yl,null,_.x(_.y$,{when:function(){return Cl()&&eA()}},function(){var jI={};
return _.x("button",{class:_.ER("ytSuggestionComponentRemoveLinkClearButton",(jI.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return OB()&&OB()===(m==null?void 0:m())},jI.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!hk()},jI)),
el:M,"on:mousedown":F9,"aria-label":Y1,id:function(){return OB()}},_.x(_.n3,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.x(_.y$,{when:function(){return!(Cl()&&d().visualSuggestUrl!==void 0)&&eA()}},function(){var jI={};
return _.x("a",{class:_.ER("ytSuggestionComponentRemoveLink",(jI.ytSuggestionComponentRemoveLinkDark=vj,jI.ytSuggestionComponentRemoveLinkSelected=function(){return OB()&&OB()===(m==null?void 0:m())},jI)),
el:p,"on:mousedown":F9,"aria-label":Y1,tabindex:0,role:"button",id:function(){return OB()}},Y1)}),_.x(_.y$,{when:function(){return!1}},function(){return _.x("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":G0,"on:mousedown":$Z,role:"button","aria-label":kem},_.x(_.n3,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"kl");var rVW=_.XO(["//www.google.com/textinputassistant/","/","_tia.js"]),uGw=_.c(function(){return _.x("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.x("button",{class:"ytdTextInputAssistantButton","on:click":_.lc(function(){a1n().inputMethodsTracker.add(3);var A,H=(A=_.pZ("SBOX_SETTINGS"))==null?void 0:A.REQUEST_LANGUAGE;if(H)return _.bi(_.Ia(rVW,14,H)),!1})},_.x("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"ll");var eMO;_.BLz=function(){this.cache=new Map};
eMO=function(A){for(var H=_.r(A.cache.entries()),k=H.next();!k.done;k=H.next()){var d=_.r(k.value);k=d.next().value;d=d.next().value;d.suggestions.some(function(W){return W.type===35})&&A.cache.delete(k)}};var xiI=jH.SEARCH,iLm=jH.SEARCH_CLEAR_LABEL,hMR=new _.SE("FAKE_SUGGEST_RESPONSE"),OLx=_.c(function(A){function H(){ww||(ww=setTimeout(function(){lJ()},1E3))}
function k(Ip,jA,V_){if(Ip.trim()){F9=Ip;_.cI("REFINEMENTS_TUPLE",void 0);G0=!0;var Wz;jA=Qpn(ze,jA);var Jk=(Wz=A.searchEndpoint)==null?void 0:Wz.call(A);_.HOL(Ip,jA,Jk,Rp.value.value,V_);lJ();Rp.value.value=Ip;Rp.value.blur();ze.reset()}}
function d(Ip){return _.e(function(jA){return jA.return(new Promise(function(V_){var Wz=new XMLHttpRequest;Wz.open("GET",_.ykO(Ip),!0);Wz.withCredentials=!0;var Jk=_.pZ("SBOX_SETTINGS");(Jk==null?0:Jk.SEND_VISITOR_DATA)&&Wz.setRequestHeader("X-Goog-Visitor-Id",Jk==null?void 0:Jk.VISITOR_DATA);Wz.onload=function(){V_(Wz.responseText)};
Wz.onerror=function(){_.Pq(Error("nm"));V_(null)};
setTimeout(function(){Wz.abort()},1E4);
Wz.send(null)}))})}
function W(Ip){var jA,V_,Wz,Jk;return _.e(function(St){switch(St.nextAddress){case 1:return jA={credentials:"include",headers:_.vZI()},window.AbortController&&(V_=new AbortController,setTimeout(function(){V_.abort("ytsbox-suggest-timeout")},1E4),jA.signal=V_.signal),_.S_(St,2),St.yield(fetch(_.ykO(Ip),jA),4);
case 4:Wz=St.yieldResult.text();_.QN(St,3);break;case 2:return Jk=_.VA(St),Jk!=="ytsbox-abort-last"&&Jk!=="ytsbox-suggest-timeout"&&_.Pq(Jk),St.return(null);case 3:return St.return(Wz)}})}
function z(Ip){var jA,V_,Wz;return _.e(function(Jk){switch(Jk.nextAddress){case 1:if(jA=_.wj().resolve(_.fZ(hMR)))return Jk.return(jA);V_=Date.now();H();return _.b("yt_searchbox_xhr")?Jk.yield(d(Ip),5):Jk.yield(W(Ip),4);case 4:Wz=Jk.yieldResult;Jk.jumpTo(3);break;case 5:Wz=Jk.yieldResult;case 3:if(Wz){ww&&(clearTimeout(ww),ww=null);var St=ze,Rs=V_,EW=Ip.query.length===0;Rs=Date.now()-Rs;EW?St.zeroPrefixRoundTripTime=Rs:(St.JSC$22817_totalRoundTripTime+=Rs,St.maxRoundTripTime=Math.max(St.maxRoundTripTime,
Rs),EW=Math.floor(Rs/100),EW>=VA3.length?++St.roundTripTimeHistogram[9]:++St.roundTripTimeHistogram[VA3[EW]])}return Jk.return(Wz)}})}
function u(Ip){var jA,V_,Wz;return _.e(function(Jk){if(Jk.nextAddress==1)return(jA=Y1.cache.get(_.LGy(Ip)))?Jk.return(jA):Jk.yield(z(Ip),2);V_=Jk.yieldResult;if(V_===null)return Jk.return(null);Wz=new _.Swf(V_);Ip.query.length===0&&Wz.suggestions.length===0||Y1.cache.set(_.LGy(Ip),Wz);return Jk.return(Wz)})}
function B(Ip){var jA,V_;return _.e(function(Wz){if(Wz.nextAddress==1){$Z=!1;var Jk=F9;Jk=_.XB()==="search"?(_.H4(location.href,"search_query")||_.H4(location.href,"q"))===Jk:!1;jA=new _.bNn(Ip,Jk?F9:null);return Wz.yield(u(jA),2)}V_=Wz.yieldResult;if(V_===null)return Wz.return();jA.query.length===0&&(ze.zeroPrefixSuggestionCount=V_.suggestions.length);if(jA.id<=x1)return ze.outOfSyncResponseCount++,Wz.return();if(document.activeElement!==Rp.value)return Wz.return();x1=jA.id;var St=ze,Rs=V_.rawResponse[2]||
{};St.experimentTriggeredBeforeFinal||(St.experimentTriggeredBeforeFinal=St.experimentTriggeredFinal);St.experimentTriggeredFinal=!!Rs.e;ze.updateSuggestions(V_.suggestions);X(-1);UC([]);V_.suggestions!==g()&&E9(V_.suggestions.length);v(V_.suggestions);WV(V_.suggestions.length>0&&V_.suggestions[0].type===33);T0&&(T0.hidden=V_.suggestions.length===0,Z()?(T0.style.minWidth="",St=T0.style,Rs=(Jk=g()[0])==null?void 0:Jk.ignoredPrefix,St.marginLeft=(Rs?Math.min(Rs.length*6,vj.value.offsetWidth):0).toString()+
"px"):(T0.style.minWidth=vj.value.offsetWidth+"px",T0.style.marginLeft="0"),gU());_.EN(Wz)})}
function h(){if(!G0)return!1;var Ip=_.pZ("REFINEMENTS_TUPLE"),jA;return Ip&&((jA=Ip[1])==null?0:jA.length)?(Ip=Ip[1].map(function(V_,Wz){return new _.FGm([V_,0,[71]],Rp.value.value,Wz)}),g()!==Ip&&E9(Ip.length),UC([]),v(Ip),ze.updateSuggestions(Ip),G0=!1,T0.hidden=Ip.length===0,$Z=Ip.length>0,!0):!1}
function O(){var Ip=Rp.value.value;(typeof Ip==="string"||Ip instanceof String)&&Ip!==""?U(!0):U(!1)}
function T(){if(_.XB()==="search"){var Ip=window.location.href;try{var jA=_.H4(Ip,"search_query")||_.H4(Ip,"q")||""}catch(V_){jA=""}jA&&(Rp.value.value=jA,U(!0))}}
var m=_.r(_.RV([],void 0,"OC8EPc")),J=m.next().value;m=m.next().value;var g=J,v=m;J=_.r(_.RV(-1,void 0,"t2tVQb"));var y=J.next().value,X=J.next().value;J=_.r(_.RV(-1,void 0,"v0RZCe"));var D=J.next().value,K=J.next().value;J=_.r(_.RV(!1,void 0,"rjAnI"));var N=J.next().value,U=J.next().value;J=_.r(_.RV(!1,void 0,"SyGLvb"));var p=J.next().value,M=J.next().value;m=_.r(_.RV(!1,void 0,"tL09Cb"));J=m.next().value;m=m.next().value;var Z=J,WV=m;m=_.r(_.RV(!1,void 0,"FlH7mc"));J=m.next().value;var hA=m.next().value;
m=_.r(_.RV(!1,void 0,"ea3fwe"));var qv=m.next().value,eN=m.next().value;m=_.r(_.RV(1,void 0,"vSK1xe"));var mr=m.next().value,Cl=m.next().value;m=_.r(_.RV([],void 0,"ijlw4b"));var pl=m.next().value,UC=m.next().value;m=_.r(_.RV(!1,void 0,"HcRey"));var hk=m.next().value,eA=m.next().value;m=_.b("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var lI=_.GP("yt-searchbox"),Rp=_.GP("input"),vj=_.GP("div"),T0,Y1=
new _.BLz,ze=a1n(),Tf=_.wj().resolve(_.fZ(_.sF)),QW=function(){var Ip;return((Ip=A.forceDarkMode)==null?void 0:Ip.call(A))||!(Tf==null||!Tf())},mG=function(){return _.b("desktop_enable_scrollable_suggestions_panel")},nN="i"+s_p++,G0=!1,$Z=!1,F9="",ww=null,x1=-1,lJ=function(){UC([]);
v([]);WV(!1);T0&&(T0.hidden=!0);ww&&(clearTimeout(ww),ww=null);X(-1)},Ni=function(Ip,jA){Ip.preventDefault();
eA(!0);T0&&(T0.hidden=!1);var V_=y();Ip=g();var Wz=pl();jA=kjM(jA);V_+=jA;for(V_>=Ip.length?V_=-1:V_<-1&&(V_=Ip.length-1);V_!==-1&&(Wz.includes(V_)||V_>=Ip.length||V_<0);)V_+=jA,V_>=Ip.length&&(V_=-1);X(V_);y()>=0&&(Rp.value.value=g()[y()].text,K(0),O(),Ip=y(),Wz=D(),(Wz=document.getElementById(a4[Ip][Wz]))&&mG()&&(Ip===g().length-1?T0.scrollTop=T0.scrollHeight:Wz.scrollIntoView({block:"nearest",inline:"start"})))},uJ=_.lc(function(Ip){if(!(Ip.relatedTarget instanceof Element&&Ip.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){M(!0);
var jA;(jA=A.focusCallback)==null||jA.call(A,!0);h()||($Z?T0.hidden=!1:(_.Ed(lI.value,"yt-autonav-pause-focus",{}),B(Ip.target.value)))}}),OB=_.lc(function(Ip){if(!(Ip.relatedTarget instanceof Element&&Ip.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){M(!1);
var jA;(jA=A.focusCallback)==null||jA.call(A,!1);T0.scrollTop=0;T0.hidden=!0;_.Ed(lI.value,"yt-autonav-pause-blur",{})}}),Ow=function(Ip){Ip=kjM(Ip);
var jA;((jA=a4[y()])==null?0:jA[D()+Ip])&&K(D()+Ip)},NQ=_.lc(function(Ip){var jA=Ip.keyCode,V_=Ip.target;
eA(!0);switch(jA){case 13:Ip.preventDefault();var Wz;if((Wz=a4[y()])==null?0:Wz[D()]){var Jk;(Jk=document.getElementById(a4[y()][D()]))==null||Jk.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Ip=Ip.shiftKey?4:3;jA=ze;Wz=y();jA.selectedSuggestionIndex=Wz;k(V_.value,Ip);break;case 27:T0&&(T0.hidden=!0);break;case 40:Ni(Ip,40);break;case 38:Ni(Ip,38);break;case 39:Ow(39);break;case 37:Ow(37);break;case 229:ze.inputMethodsTracker.add(4);break;default:ze.inputMethodsTracker.add(1),
ckB(ze)}return!1}),Qi=_.lc(function(Ip){B(Ip.target.value);
O();mG()&&T0&&(T0.scrollTop=0);return!1}),jI=_.lc(function(){ze.inputMethodsTracker.add(2);
ckB(ze);return!1});
_.Sp(function(){if(T0){ze.reset();if(window.ResizeObserver){var Ip=new ResizeObserver(function(){Z()||(T0.style.minWidth=vj.value.offsetWidth+"px")});
Ip.observe(vj.value);(new ResizeObserver(function(){gU()})).observe(T0);
_.aV(function(){Ip.disconnect()})}T();
window.addEventListener("yt-navigate-finish",T);window.addEventListener("yt-focus-searchbox",function(){Rp.value.focus()});
var jA;hA((jA=_.pZ("SBOX_SETTINGS"))==null?void 0:jA.HAS_ON_SCREEN_KEYBOARD)}else _.I3(new _.Ti("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var WX=_.lc(function(Ip){Ip.preventDefault();k(Rp.value.value,12);return!1}),Vi=_.lc(function(Ip){Ip.preventDefault();
var jA,V_;(jA=Rp)==null||(V_=jA.value)==null||V_.focus();var Wz,Jk;((Wz=Rp)==null?void 0:(Jk=Wz.value)==null?void 0:Jk.value)!==""&&(Rp.value.value="",Rp.value.dispatchEvent(new Event("input")));return!1}),iQ=_.lc(function(){var Ip=Iu_(Rp.value.value,g().filter(function(jA){return jA.type!==35}).map(function(jA){return{label:jA.text}}));
_.Ud(lI.value,"yt-open-popup-action",[{openPopupAction:Ip},document.body]);return!1}),o_=_.lc(function(){Rp.value.focus();
return!1}),rO=function(Ip,jA,V_,Wz,Jk){ze.selectedSuggestionIndex=V_;
k(jA,Jk?3:1,Wz)},O9=function(Ip){Rp.value.value=Ip;
Rp.value.dispatchEvent(new Event("input"));ze.inputMethodsTracker.add(5);ckB(ze,!0)},a4=[[]],kl=function(Ip){var jA="searchbox-suggestion"+_.Ta(_.LU);
a4[Ip].push(jA);return jA},E9=function(Ip){if(g()){a4=[[]];
for(var jA=0;jA<Ip;jA++)a4.push([])}},gU=function(){if(mG()){var Ip=T0,jA=Ip.scrollTop;
Ip=Ip.scrollHeight-Ip.clientHeight;eN(jA>=Ip);jA=Math.abs(Ip-jA);jA<=40?Cl(1-(40-jA)/40):Cl(1)}},gY=function(){return"opacity: "+mr()*100+"%"},Y8=_.lc(function(){gU();
return!1}),cV=_.lc(function(){eA(!1);
return!1}),ZQ,yi={},LL={},Yp={},PR={};
return _.x("yt-searchbox",{class:_.ER("ytSearchboxComponentHost",(yi.ytSearchboxComponentMweb=!1,yi.ytSearchboxComponentDesktop=!0,yi["yt-searchbox-filled-query"]=function(){return N()},yi["ytd-masthead"]=function(){return!p()},yi.ytSearchboxComponentHostDark=QW,yi)),
role:"search",el:lI,"client-ve-type":10349},_.x("div",{el:vj,"on:click":o_,class:_.ER("ytSearchboxComponentInputBox",(LL.ytSearchboxComponentInputBoxDark=QW,LL.ytSearchboxComponentInputBoxHasFocus=p,LL))},_.x("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":WX},_.x(_.R,{cond:p,then:function(){return _.x("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.x(_.n3,{icon:"SEARCH"}))}}),_.x("input",{el:Rp,
class:_.ER("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":nN,"aria-expanded":!((ZQ=T0)==null?0:ZQ.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":OB,"on:focus":uJ,"on:input":Qi,"on:keydown":NQ,"on:paste":jI,placeholder:A.placeholderText,"aria-activedescendant":function(){var Ip;return(Ip=a4[y()])==null?void 0:Ip[D()]},
"aria-autocomplete":"list",role:"combobox"})),_.x(_.R,{cond:J,then:function(){return _.x("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.x(uGw,null))}}),_.x(_.R,{cond:N,
then:function(){return _.x("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.x("button",{class:"ytSearchboxComponentClearButton","on:click":Vi,"aria-label":A.clearButtonAriaLabel||iLm},_.x(_.n3,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.x(_.pM,{model:{}})))}})),_.x("button",{class:_.ER("ytSearchboxComponentSearchButton",(Yp.ytSearchboxComponentSearchButtonDark=QW,Yp)),
"on:click":WX,"aria-label":xiI,title:A.placeholderText},_.x(_.n3,{icon:"SEARCH"})),_.x(_.R,{cond:function(){if(k5R()&&_.b("mweb_voice_search")&&A.voiceSearchButton)return A.voiceSearchButton()},
then:function(Ip){var jA={};return _.x("div",{class:_.ER("ytSearchboxComponentVoiceSearchWrapper",(jA.ytSearchboxComponentHideVoiceSearchButton=function(){return N()},jA))},_.x(_.HG,{data:Ip},{buttonRenderer:function(V_){return _.x(_.Sg,{data:V_.data,
onButtonClickCallback:function(){}})}}))}}),_.x("div",{el:_.P8(function(Ip){return void(T0=Ip)}),
id:nN,class:_.ER("ytSearchboxComponentSuggestionsContainer",(PR.ytSearchboxComponentSuggestionsContainerDark=QW,PR["yt-searchbox-suggestions-container"]=!1,PR.ytSearchboxComponentSuggestionsContainerScrollable=mG(),PR.ytSearchboxComponentSuggestionsContainerAnimated=m,PR)),"on:scroll":Y8,"on:mousemove":cV,role:"listbox",hidden:!0},_.x(_.Ix,{each:g},function(Ip,jA){return _.x(qBG,{suggestion:Ip,isHighlighted:function(){return jA()===y()},
onClickCallback:rO,onHoverUpdateCallback:function(V_){if(_.b("desktop_enable_single_suggestion_highlight")){var Wz=jA();V_&&(K(0),X(Wz))}},
onRemoveCallback:function(V_){eMO(Y1);V_===void 0||V_<0||pl().includes(V_)||UC([].concat(_.fV(pl()),[V_]))},
labels:A.labels,queryBuilderFunction:O9,suggestionIndex:jA,generateUniqueId:kl,highlightedId:function(){var V_;return(V_=a4[y()])==null?void 0:V_[D()]},
useScrollMargin:mG(),isKeyboardMode:hk})}),_.x(_.R,{cond:function(){return!Z()&&g().find(function(Ip){return Ip.type!==35})&&_.b("searchbox_reporting")},
then:function(){return _.x("button",{class:"ytSearchboxComponentReportButton","on:mousedown":iQ},_.$r("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.x(_.R,{cond:function(){return!qv()&&mG()},
then:function(){return _.x("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.x("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:gY}))}})))},"nl");
OLx.idomCompat={callbacks:{focusCallback:!0}};_.Sw(OLx,"yt-searchbox",{props:{searchEndpoint:_.Ih,placeholderText:_.Ih,labels:_.Ih,voiceSearchButton:_.Ih,focusCallback:_.Fc,clearButtonAriaLabel:_.Ih,forceDarkMode:_.Ih}});var N5=function(){var A=_.a.apply(this,arguments)||this;A.menuButtonTargetId="topbar-guide-menu";A.narrow=!1;A.menuStrings={BACK_ALT_LABEL:_.$r("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.$r("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.$r("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.$r("SBOX_PLACEHOLDER",void 0,"Search")};A.pageDarkTheme=document.documentElement.hasAttribute("dark");A.watchPageScrollTop=0;A.theater=!1;A.fullscreen=!1;A.disableFrostedGlassDuringViewTransition=
!1;A.desktopUnifiedSearchPanelMode=_.b("desktop_enable_unified_search_panel");A.aiCompanionEnabled=_.b("enable_ai_companion");A.ytSearchboxFocused=!1;A.searchboxLabels=_.pZ("SBOX_LABELS");A.topbarIsAboveChipbar=!1;A.isDarkThemeForced=!1;A.areGhostCardsHidden=!1;A.guideKeyboardToggle=!1;A.voiceSearchManager=psL();A.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};A.setYtSearchboxFocused=function(H){A.ytSearchboxFocused=H};
A.toggleFrostedGlassDuringViewTransition=function(H){A.disableFrostedGlassDuringViewTransition=H};
return A};
_.I(N5,_.a);_.q=N5.prototype;_.q.computeSimpleText=function(A){return _.PK(A)};
_.q.onDarkChanged=function(){for(var A=_.r(this.buttons||[]),H=A.next();!H.done;H=A.next())H.value.isOverlay=!!this.dark;A=_.r(this.buttonRenderers||[]);for(H=A.next();!H.done;H=A.next())H.value.overrides=this.computeButtonOverride()};
_.q.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var A=_.Pi(_.Yf(),"aa");_.UJ(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||A||(this.isDarkThemeForced=this.dark=!0);this.logoType?(A=this.hostElement.querySelector("#masthead-logo"))&&(_.b("polymer_on_demand_shady_dom")?A.setAttribute("slot","masthead-logo-old"):_.Aw(A)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.nF(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.nF(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.q.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.nF(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.nF(this,this.onSetTheaterModeEnabled))};
_.q.dataChanged=function(){var A=this.data;A&&(this.voiceEnabled=A.voiceSearchButton?psL().isSupported():!1,_.oY(_.$f(),this.menuButtonTargetId,this.guideButton),A.onReceivedActions&&A.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.NT(this.hostElement,A.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&A&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.UJ(this.hostElement,"dark",!1),_.UJ(this.hostElement,"theater",!1),(A=
this.hostElement.querySelector("#masthead-logo"))&&(_.b("polymer_on_demand_shady_dom")?A.setAttribute("slot","masthead-logo-old"):_.Aw(A))))};
_.q.computeCenterHidden=function(){var A;return this.data&&!((A=this.data.searchbox)==null?0:A.fusionSearchboxRenderer)};
_.q.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.UJ(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.q.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.q.onWatchScroll=function(A){this.watchPageScrollTop=A.detail||0;this.updateMastheadBackgroundOpacity()};
_.q.onFullscreenChangeAction=function(A){A||(this.watchPageScrollTop=0);this.fullscreen=A;this.updateMastheadBackgroundOpacity()};
_.q.onSetTheaterModeEnabled=function(A){this.theater=A.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.q.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.q.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.q.setBackgroundOpacity=function(A){A=this.calculateBackgroundOpacity(A);this.background.style.opacity=""+A};
_.q.calculateBackgroundOpacity=function(A){var H=this.theater?.6:0,k=this.hostElement.clientHeight/2;return Math.min(Math.max(A,0),k)/k*(1-H)+H};
_.q.shouldShowCinematicMastHead=function(){var A=_.b("kevlar_watch_grid")&&!_.b("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(A||this.pageDarkTheme)};
_.q.focusGuide=function(){this.guideButton.focus()};
_.q.onGuideToggleTap=function(){_.Ed(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.q.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.q.onGuideToggleHover=function(){_.Ed(this.hostElement,"yt-guide-hover")};
_.q.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.q.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.q.closeOnOutsideClickCondition=function(A){for(A=_.F_(A);A[0];){var H=A.shift();if(H instanceof Element&&H.id==="kbd")return!1}return!0};
_.q.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.q.pausePlayer=function(){var A;(A=_.Kj())==null||A.pause();this.pauseMiniplayer()};
_.q.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var A;(A=_.wj().resolve(_.L6).getPlayerElement())==null||A.pause()}};
_.q.isMiniplayerActive=function(){return _.wj().resolve(_.L6).isMiniplayerActive()};
_.q.updateNarrowFromBinding=function(A){this.narrow=A.detail.value};
_.q.onYtSendFeedbackAction=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.q.registerWithViewTransitionManager=function(){fPM(_.wj().resolve(_.uv),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.nP.Object.defineProperties(N5.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.b("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 A;return!!(this.aiCompanionEnabled&&((A=this.data)==null?0:A.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var A;return(A=this.data)==null?void 0:A.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
N5.prototype.narrowChanged=N5.prototype.narrowChanged;N5.prototype.onWatchPageChange=N5.prototype.onWatchPageChange;N5.prototype.onRendererStamperFinished=N5.prototype.onRendererStamperFinished;N5.prototype.dataChanged=N5.prototype.dataChanged;N5.prototype.onDarkChanged=N5.prototype.onDarkChanged;_.E([_.P(_.WU),_.l("design:type",Object)],N5.prototype,"ironResizableBehavior",void 0);_.E([_.P(HDG),_.l("design:type",Object)],N5.prototype,"ytdExpandableInputBehavior",void 0);
_.E([_.P(_.vw.YtdGuideStateAwareBehavior),_.l("design:type",Object)],N5.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],N5.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],N5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.TG),_.l("design:type",Object)],N5.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],N5.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],N5.prototype,"narrow",void 0);_.E([_.C(),_.l("design:type",Object)],N5.prototype,"logoType",void 0);_.E([_.C(),_.l("design:type",Boolean)],N5.prototype,"voiceEnabled",void 0);
_.E([_.C(),_.l("design:type",Object)],N5.prototype,"menuStrings",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],N5.prototype,"dark",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],N5.prototype,"pageDarkTheme",void 0);_.E([_.C(),_.l("design:type",Object)],N5.prototype,"watchPageScrollTop",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.YlC}),_.l("design:type",Boolean)],N5.prototype,"isWatchPage",void 0);
_.E([_.C({reflectToAttribute:!0,selector:_.Pub}),_.l("design:type",Boolean)],N5.prototype,"isShortsPage",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],N5.prototype,"theater",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],N5.prototype,"fullscreen",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.DKW}),_.l("design:type",String)],N5.prototype,"frostedGlassMode",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],N5.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],N5.prototype,"aiCompanionEnabled",void 0);_.E([_.C(),_.l("design:type",Object)],N5.prototype,"ytSearchboxFocused",void 0);_.E([_.$I("#buttons > *"),_.l("design:type",Array)],N5.prototype,"buttons",void 0);_.E([_.$I("ytd-button-renderer"),_.l("design:type",Array)],N5.prototype,"buttonRenderers",void 0);
_.E([_.ol("#background"),_.l("design:type",HTMLDivElement)],N5.prototype,"background",void 0);_.E([_.ol("#guide-button"),_.l("design:type",Object)],N5.prototype,"guideButton",void 0);_.E([_.ol("#logo"),_.l("design:type",Object)],N5.prototype,"logo",void 0);_.E([_.C({computed:"computeButtonOverride(dark)"}),_.l("design:type",Object)],N5.prototype,"buttonOverrides",void 0);
_.E([_.s6("dark"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N5.prototype,"onDarkChanged",null);_.E([_.C({value:function(){return this.onVoiceTap.bind(this)}}),
_.l("design:type",Function)],N5.prototype,"boundOnTapVoiceButton",void 0);_.E([_.C(),_.l("design:type",Object)],N5.prototype,"topbarIsAboveChipbar",void 0);_.E([_.C(),_.l("design:type",String),_.l("design:paramtypes",[])],N5.prototype,"guideIcon",null);_.E([_.G("voiceEnabled"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],N5.prototype,"shouldShowVoiceSearchButton",null);
_.E([_.G("data.aiCompanionButton","aiCompanionEnabled"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],N5.prototype,"shouldShowAiCompanionButton",null);_.E([_.G("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],N5.prototype,"voiceSearchButton",null);_.E([_.G("aiCompanionEnabled"),_.l("design:type",String),_.l("design:paramtypes",[])],N5.prototype,"narrowQuery",null);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N5.prototype,"dataChanged",null);_.E([_.Ze("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N5.prototype,"onRendererStamperFinished",null);_.E([_.s6("isWatchPage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N5.prototype,"onWatchPageChange",null);
_.E([_.s6("narrow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N5.prototype,"narrowChanged",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-masthead"})],N5);
_.Q(N5,"ytd-masthead",function(){if(oZf!==void 0)return oZf;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return oZf=A},{mode:2});var RMw;var TLW={},miy={},JVW={},g1y={},bL3=(g1y.OFFLINE=(TLW["publicytnetworkstatus-online"]="BACK_ONLINE",TLW),g1y.ONLINE=(miy["publicytnetworkstatus-offline"]="OFFLINE",miy),g1y.BACK_ONLINE=(JVW["publicytnetworkstatus-offline"]="OFFLINE",JVW.TIMER_TRIGGER="ONLINE",JVW),g1y),M5=function(){var A=_.a.apply(this,arguments)||this;A.currentState="ONLINE";A.scheduledJobId=0;A.bannerString="";A.bannerVe=null;A.networkStatusManagerInstance=new _.Qv;return A};
_.I(M5,_.a);_.q=M5.prototype;_.q.attached=function(){var A=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){A.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){A.stateChangeHandler("publicytnetworkstatus-offline")})};
_.q.detached=function(){var A=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){A.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){A.stateChangeHandler("publicytnetworkstatus-offline")})};
_.q.enterState=function(A){var H=this;this.scheduledJobId&&_.IE.cancelJob(this.scheduledJobId);A==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):A==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.$r("NO_INTERNET_CONNECTION",void 0,"No internet connection")):A==="BACK_ONLINE"&&(this.bannerString=_.$r("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.ma(_.IE,function(){H.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=A};
_.q.stateChangeHandler=function(A){(A=bL3[this.currentState][A])&&this.enterState(A)};
_.q.logVisibility=function(A){var H=_.hx();this.createBannerVe(A);H&&this.bannerVe&&(A?_.IN(H,[this.bannerVe]):_.YB(H,[this.bannerVe]))};
_.q.createBannerVe=function(A){!this.bannerVe&&A&&(this.bannerVe=_.t8(37929),_.Z2(_.A7(),this.bannerVe))};
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",String)],M5.prototype,"currentState",void 0);_.E([_.C(),_.l("design:type",Object)],M5.prototype,"scheduledJobId",void 0);_.E([_.C(),_.l("design:type",Object)],M5.prototype,"bannerString",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-network-status-banner"})],M5);
_.Q(M5,"ytd-network-status-banner",function(){if(RMw!==void 0)return RMw;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return RMw=
A},{mode:1});var LBn;var ny=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};A.hidden=!0;A.frostedGlass=_.b("web_frosted_glass");return A};
_.I(ny,_.a);ny.prototype.computeHidden=function(A){return A&&A.status?!1:!0};
ny.prototype.handleUpdatePermissionRoleCommand=function(A){if(A=_.L(A,_.BsN))if(A=_.L(A.renderer,_.uww))this.data=A};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],ny.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],ny.prototype,"componentBehavior",void 0);_.E([_.C({value:!0,computed:"computeHidden(data)"}),_.l("design:type",Object)],ny.prototype,"hidden",void 0);_.E([_.C(),_.l("design:type",Object)],ny.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],ny.prototype,"frostedGlass",void 0);
_.E([_.O6({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],ny);
_.Q(ny,"ytd-permission-role-bottom-bar-renderer",function(){if(LBn!==void 0)return LBn;var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);return LBn=A},{mode:1});var v13;var yVx;var dBG={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var ZM=function(){return _.a.apply(this,arguments)||this};
_.I(ZM,_.a);_.q=ZM.prototype;_.q.attached=function(){this.JSC$22921_scroller&&(this.JSC$22921_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22921_scroller.attached&&typeof this.JSC$22921_scroller.attached==="function"&&this.JSC$22921_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(k){k.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var A=_.Va(this.hostElement);A.querySelector("tp-yt-paper-radio-group").selected="";var H=A.querySelector("#reason-text");H&&(H.value="");A.querySelector("#description-text").value=""}};
_.q.canSubmit=function(A,H){_.Ed(this.hostElement,"yt-invalidate-popup-tabbables");return!(A&&H)};
_.q.onCancel=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.q.onSubmit=function(){var A=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(z){return z.active}).map(function(z){return z.innerText.trim()}),H=this.hostElement.querySelector("tp-yt-paper-radio-group"),k=H.selectedItem,d=k.name;
k=k.innerText.trim();var W=H.querySelector("#reason-text");H=void 0;W&&(H=W.value);(W=this.descriptionText.value)&&(W=W.trim());WNI(this.data.searchQuery,A,d,k,W,H);_.Ud(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.q.sendFormSubmitToast=function(){var A=_.SX(_.$r("SBOX_INAPPROPRIATE_TOAST"));_.Ud(this.hostElement,"yt-open-popup-action",[A,this])};
_.q.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(A){return A.active})};
_.q.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
ZM.prototype.onIronSelect=ZM.prototype.onIronSelect;ZM.prototype.onIronChange=ZM.prototype.onIronChange;ZM.prototype.dataChanged=ZM.prototype.dataChanged;_.E([_.C(),_.l("design:type",Object)],ZM.prototype,"data",void 0);_.E([_.C({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.l("design:type",Boolean)],ZM.prototype,"submitDisabled",void 0);_.E([_.C(),_.l("design:type",Boolean)],ZM.prototype,"suggestionSelected",void 0);
_.E([_.C(),_.l("design:type",Boolean)],ZM.prototype,"catagorySelected",void 0);_.E([_.ol("#scroller"),_.l("design:type",Object)],ZM.prototype,"JSC$22921_scroller",void 0);_.E([_.ol("#description-text"),_.l("design:type",Object)],ZM.prototype,"descriptionText",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZM.prototype,"dataChanged",null);
_.E([_.Ze("iron-change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZM.prototype,"onIronChange",null);_.E([_.Ze("iron-select"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZM.prototype,"onIronSelect",null);_.E([_.O6({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],ZM);
_.Q(ZM,"ytd-search-suggestion-report-dialog",function(){if(yVx!==void 0)return yVx;var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return yVx=A},{mode:1});var fy=function(A){var H=A.openPopupAction;var k=A.target;var d=A.container;var W=A.popupContainerConfig;var z=A.getElement;A=A.removeWhenClosed===void 0?!1:A.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=H;this.target=k;this.container=d;this.popupContainerConfig=W;this.getElement=z;this.JSC$22927_popupConfig=this.popupContainerConfig.JSC$21608_popupConfig[this.openPopupAction.popupType];this.rendererName=(H=this.getName())?_.C2Q(H,R5_(this.popupContainerConfig,
H)):"";_.b("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=A);this.createPopup()};
fy.prototype.updatePopup=function(A){this.openPopupAction=A;this.JSC$22927_popupConfig=this.popupContainerConfig.JSC$21608_popupConfig[this.openPopupAction.popupType];j_n(this);_.b("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
fy.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var PQO=function(A,H,k){(H=H&&A.JSC$22927_popupConfig.narrowProperties?A.JSC$22927_popupConfig.narrowProperties:A.JSC$22927_popupConfig.properties)&&k!==void 0&&(H.isAriaModal=k);I3O(A,H);A.isRtl()&&I3O(A,A.JSC$22927_popupConfig.rtlProperties);YBR(A)};
fy.prototype.createPopup=function(){var A=this.JSC$22927_popupConfig.component;if(this.popupContent=Gep(this,this.rendererName)){if(A){this.popup=Gep(this,A);var H=this.popupContent;_.b("web_enable_wrapper_for_cow_component_in_popup")&&(H=document.createElement("div"),H.appendChild(this.popupContent));_.b("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22927_popupConfig.slotName&&H.setAttribute("slot",this.JSC$22927_popupConfig.slotName);A=this.popup;var k=this.container.tagName.toLowerCase(),
d=_.Ss(H);_.Nml(_.KF(A),_.cM(H,k,d));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.b("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Va(this.container).appendChild(this.popup)}};
var j_n=function(A){var H,k,d=(H=A.openPopupAction.accessibilityData)==null?void 0:(k=H.accessibilityData)==null?void 0:k.label;d&&(A.popup.ariaLabel=d);var W;((W=A.popupContent.polymerController)!=null?W:A.popupContent).data=(0,_.iK.unsafeClone)(A.openPopupAction.popup[A.getName()]);A.popupContent.duration=FBn(A);A.popupContent.positionType=A.openPopupAction.position;var z=A.openPopupAction.properties;z&&Object.keys(z).forEach(function(u){A.popupContent[u]=z[u]})},I3O=function(A,H){if(H)for(var k=
_.r(Object.keys(H)),d=k.next();!d.done;d=k.next())d=d.value,A.popup[d]=H[d]},YBR=function(A){if(A.openPopupAction.position){var H=A.JSC$22927_popupConfig.positionalProperties&&A.JSC$22927_popupConfig.positionalProperties[A.openPopupAction.position],k=A.JSC$22927_popupConfig.rtlPositionalProperties&&A.JSC$22927_popupConfig.rtlPositionalProperties[A.openPopupAction.position];
H=A.isRtl()&&k?k:H;H.shiftedHorizontalOffset&&(k=A.popup.style.display,A.popup.style.display="block",A.popupContent&&A.popup.positionTarget&&A.popupContent.clientWidth>A.popup.positionTarget.clientWidth&&(H.horizontalOffset=A.popup.positionTarget.clientWidth/2-H.shiftedHorizontalOffset),A.popup.style.display=k);I3O(A,H)}},XR3=function(A,H,k){if(H){for(var d=_.r(Object.keys(H)),W=d.next();!W.done;W=d.next())W=W.value,A.popup.style[W]=H[W];
if(k)for(H=_.r(Object.keys(k)),d=H.next();!d.done;d=H.next())d=d.value,A.popup.style[d]=k[d]}};
fy.prototype.getName=function(){return _.KZ(this.openPopupAction.popup,"renderer")||_.KZ(this.openPopupAction.popup,"dialog")||_.KZ(this.openPopupAction.popup,"model")||void 0};
var FBn=function(A){A=A.openPopupAction.durationHintMs;return A===0?A:Math.max(4E3,A||4E3)};
fy.prototype.isRtl=function(){return _.pZ("HTML_DIR")==="rtl"};
var Gep=function(A,H){A=A.getElement(H,A.target);A==null&&_.Pq(new _.Ti("popup getElement returned null",H));return A};var Dim={};
Dim.YtPopupContainerBehavior=[_.ml.YtComponentBehavior,_.nM.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;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.KH(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.aC(this.hostElement)},
closePopup:function(A){var H=this.createCacheKey(void 0,A);this.popups_[H]&&this.handleClosePopupAction_(void 0,A)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.IE.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.IE.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(A){A.opened&&A.keepBelowPlayer&&this.ensurePopupBelowPlayer(A)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var A in this.popups_){var H=this.popups_[A];if(H.popup.scrollAction==="refit"){var k=H.popup.positionTarget.getBoundingClientRect(),d=H.popup;k=k.top;var W=H;if(!W.naturalHeight){W.popup.hidden=!1;W.popup.style.position="fixed";W.popup.style.top="0px";W.popup.style.left="0px";var z=W.popup.getBoundingClientRect();W.naturalHeight=z.bottom-z.top;W.popup.refit()}d.hidden=!(k>=W.naturalHeight+60);H.popupContent.clientHeight===0&&H.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(A){this.popupContainerConfig=A},
handleOpenPopupAction:function(A,H,k){var d=A.openPopupAction,W=_.wj().resolve(_.fZ(_.JJ))&&d.popupType==="TOAST";W&&!d.uniqueId&&(d.uniqueId=l_());if(!_.b("popup_container_parent_target_killswitch")){var z;H=(z=this.getParentTarget(H))!=null?z:H}var u=this.ensurePopup_(d,H);return new _.Wq(function(B){u.then(function(h){if(!h)return B();this.maybeCreateNarrowMediaQuery_();var O=this.createCacheKey(h.rendererName,h.openPopupAction.uniqueId);if(d.showOncePerUniqueId){if(this.shownPopupKeys_.has(O))return B();
this.shownPopupKeys_.add(O)}O=this.popups_[O];var T=!(!O||!O.openPopupAction.beReused);T=!!d.reusePopup||T;if(h.popup.opened&&!T){W&&!h.openPopupAction.replacePopup||this.handleClosePopupAction_(h.rendererName,h.openPopupAction.uniqueId);T=d.popupType==="DIALOG"&&!_.b("popup_container_dialog_reopen_killswitch");if(!W&&!T&&O&&O.target==H&&(_.b("popup_container_event_target_check_killswitch")||O.target==k)&&!h.openPopupAction.replacePopup)return B();_.No(h.popup,function(){this.completeOpenPopupAction_(d,
H,h);B()}.bind(this))}else h.popup.opened?h.updatePopup(d):this.completeOpenPopupAction_(d,H,h),B()}.bind(this))}.bind(this))},
getParentTarget:function(A){if(A&&A instanceof HTMLElement)for(var H=_.r(Object.entries(this.popups_)),k=H.next();!k.done;k=H.next())if(k=_.r(k.value),k.next(),k=k.next().value,this.popupClosesOnClick(k)&&k.popup.contains(A))return k.target},
popupClosesOnClick:function(A){return A.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(A.rendererName.toUpperCase())},
completeOpenPopupAction_:function(A,H,k){k.updatePopup(A);var d=this.narrowMediaQuery_.queryMatches,W=this.isAriaModal;A=this.expandToFullWidth;k.target=H;var z;H=((z=k.target.polymerController)!=null?z:k.target).popupPositionTarget||k.target;k.JSC$22927_popupConfig.targetContainer&&(H=k.container);k.popup.positionTarget=H;k.popupContent.positionTarget=H;YBR(k);k.JSC$22927_popupConfig.forceFocus&&(k.popupContent.style.outline="none");k.popupContent.tabIndex=-1;k.JSC$22927_popupConfig.narrowProperties&&
(k.popup.style.position="static");k.JSC$22927_popupConfig.preventAutonav&&k.popup.setAttribute("prevent-autonav",!0);k.JSC$22927_popupConfig.forceCloseOnOutsideClick&&k.popup.setAttribute("force-close-on-outside-click",!0);PQO(k,d,W);z={};z.width=A?"100%":"";XR3(k,k.JSC$22927_popupConfig.styles,z);k.isRtl()&&XR3(k,k.JSC$22927_popupConfig.rtlStyles,z);if(!k.openPopupAction.shouldStopParentSignal){var u;A=(u=k.target.polymerController)!=null?u:k.target;(k.popupContent.startForwardingEvents||k.popupContainerConfig.forwardingEnabledPopups.has(k.rendererName))&&
A.parentComponent!==k.popupContent&&k.popupContent!==k.target&&k.target!==document.body&&(k.popupContent.startForwardingEvents?k.popupContent.startForwardingEvents(k.popupContainerConfig.forwardedEvents,k.target):(k.JSC$22927_eventForwarder||(k.JSC$22927_eventForwarder=new _.Zh(k.popupContent)),k.JSC$22927_eventForwarder.start(k.popupContainerConfig.forwardedEvents,k.target)))}k=k.popup;k.addEventListener("iron-overlay-opened",_.nF(this,this.onPopupIronOverlayOpened_));k.addEventListener("iron-overlay-closed",
_.nF(this,this.onPopupIronOverlayClosed_));k.addEventListener("iron-overlay-canceled",_.nF(this,this.onPopupIronOverlayCanceled_));k.addEventListener("yt-refit",_.nF(this,this.refitPopup_));k.addEventListener("yt-invalidate-popup-tabbables",_.nF(this,this.handleInvalidatePopupTabbables_));k.open()},
getPopupDurationMs_:function(A){return A.durationHintMs===0?A.durationHintMs:Math.max(4E3,A.durationHintMs||4E3)},
handleClosePopupAction_:function(A,H){var k=_.b("web_popup_cache_key_killswitch")||!!H;if(A||k){var d=this.createCacheKey(A,H);A=(A=this.popups_[d])&&A.popup}else A=_.uoj(_.gx);if(A&&A.close){if(H=_.wj().resolve(_.fZ(_.ah)))A.restoreFocusOnClose=H.isKeyBoardInUse();if(A&&A.positionTarget&&!_.b("ytpopup_close_sibling_popups_killswitch")){H=_.r(Object.entries(this.popups_));for(k=H.next();!k.done;k=H.next()){var W=_.r(k.value);k=W.next().value;W=W.next().value;var z=void 0,u=void 0,B=void 0,h=void 0,
O=void 0,T=void 0;A.positionTarget==((z=W)==null?void 0:(u=z.popupContent)==null?void 0:u.positionTarget)&&W.popup&&(!((B=W.popup)==null?0:(h=B.style)==null?0:h.display)||((O=W.popup)==null?void 0:(T=O.style)==null?void 0:T.display)!=="none")&&(z=void 0,(z=W.popup)==null?0:z.close)&&(W.popup.close(),this.removePopup_(W.popup,k))}A&&this.popups_[d]&&(A.close(),this.removePopup_(A,d))}else A.close(),this.removePopup_(A,d)}},
handleClosePopupCommand_:function(A){A.closePopupCommand&&A.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,A.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(A){var H={},k;for(k in this.popups_)if(H={key$jscomp$1247:H.key$jscomp$1247},H.key$jscomp$1247=k,!A||!A.some(function(z){return function(u){return u==z.key$jscomp$1247}}(H))){var d=this.popups_[H.key$jscomp$1247],W=d.popup;
_.wj().resolve(_.fZ(_.JJ))&&d.openPopupAction.popupType==="TOAST"||(W&&W.close&&W.close(),this.removePopup_(W,H.key$jscomp$1247))}},
handleClosePopupsAction_:function(A){A.forEach(function(H){var k=this.popups_[H];k&&((k=k.popup)&&k.close&&k.close(),this.removePopup_(k,H))}.bind(this))},
handleGetPopupOpenedAction_:function(A,H){return(H=this.createCacheKey(A,H))&&this.popups_[H]?this.popups_[A].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var A=[],H;for(H in this.popups_){var k=this.popups_[H];k.popup.opened&&A.push(k)}return A},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(A,H){_.b("ytpopup_disable_default_html_caching")&&A&&A.removeWhenClosed&&(_.Va(this.hostElement).removeChild(A),H&&this.popups_[H]&&delete this.popups_[H])},
shouldReusePopup_:function(A){return!(!A||!A.reusePopup)||!(!A||!A.beReused)},
ensurePopup_:function(A,H){this.maybeCreateNarrowMediaQuery_();var k=_.KZ(A.popup,"renderer")||_.KZ(A.popup,"dialog")||_.KZ(A.popup,"model");if(!k)return _.MT();k=_.C2Q(k,R5_(this.popupContainerConfig,k));return _.MT(this.getAndMaybeCreatePopup_(A,k,H))},
getAndMaybeCreatePopup_:function(A,H,k){var d=this.createCacheKey(H,A.uniqueId);if(this.popups_[d])return this.popups_[d];A=new fy({openPopupAction:A,target:k,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(H)});return this.popups_[d]=A},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(A){return _.b("ytpopup_disable_default_html_caching")?_.b("ytpopup_disable_cache_allowlist")?A&&this.doNotCacheList_.includes(A):A&&A.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",_.nF(this,this.openPopupQueryMatchesChanged_)),_.Va(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(A){A=A.detail.value;for(var H in this.popups_)PQO(this.popups_[H],A)},
onPopupIronOverlayClosed_:function(A){var H=A.currentTarget,k=_.x8W(H);k=k.length>0?k[0]:H;if(k.is!=="ytd-reel-watch-while-dialog-renderer"||A.target.is!=="tp-yt-iron-dropdown"){A.detail.popup=H;A.detail.popupRenderer=k;var d,W={context:{openingElement:((d=this.popups_[(k==null?void 0:k.is)||""])==null?void 0:d.target)||void 0}};Object.assign(W,A.detail);var z;_.Ed((z=k.hostElement)!=null?z:k,"yt-popup-closed",W);H.removeEventListener("yt-refit",_.nF(this,this.refitPopup_));H.removeEventListener("yt-invalidate-popup-tabbables",
_.nF(this,this.handleInvalidatePopupTabbables_));H.removeEventListener("iron-overlay-canceled",_.nF(this,this.onPopupIronOverlayCanceled_));H.removeEventListener("iron-overlay-closed",_.nF(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(H)}},
onPopupIronOverlayCanceled_:function(A,H){var k=A.currentTarget,d=_.x8W(k);d=d.length>0?d[0]:k;if(d.is!=="ytd-reel-watch-while-dialog-renderer"||A.target.is!=="tp-yt-iron-dropdown"){var W;_.Ed((W=d.hostElement)!=null?W:d,"yt-popup-canceled",A.detail);W=H?_.F_(H):null;(!H||["click","tap"].includes(H.type))&&!k.hasAttribute("force-close-on-outside-click")&&k.positionTarget&&W&&W.includes(k.positionTarget)&&A.preventDefault();k.restoreFocusOnClose=_.fo.keyboardEventMatchesKeys(H,"esc")}},
onPopupIronOverlayOpened_:function(A){A=A.currentTarget;var H=_.x8W(A);H=H.length>0?H[0]:A;var k,d;_.Ed((k=H.hostElement)!=null?k:H,"yt-popup-opened",(d=H.hostElement)!=null?d:H);A.keepBelowPlayer&&(this.ensurePopupBelowPlayer(A,!0),this.dynamicallyPositionedElements_.add(A));k=_.wj().resolve(_.fZ(_.ah));d=!!H.querySelector("#toast");k&&k.isKeyBoardInUse()&&!d&&(typeof H.focusFirstItem==="function"?H.focusFirstItem():(H=_.zZi(A),H.length&&H[0].focus()));A.removeEventListener("iron-overlay-opened",
_.nF(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(A){A=A.currentTarget;A.refit&&A.refit()},
refitPopups_:function(){for(var A in this.popups_)this.popups_[A].refit()},
handleInvalidatePopupTabbables_:function(A){A=A.currentTarget;A.invalidateTabbables&&A.invalidateTabbables()},
createCacheKey:function(A,H){return _.b("web_popup_cache_key_killswitch")?H?A+"#"+H:A:H?"#"+H:A},
openSheet:function(A,H,k){var d=A==null?void 0:A.openPopupActionCommand;if(!d&&(A==null?0:A.viewModel)){if(A.sheetPosition)a:switch(A.sheetPosition){case "SHEET_POSITION_RIGHT":d="OPEN_POPUP_POSITION_RIGHT";break a;default:d="OPEN_POPUP_POSITION_UNKNOWN"}else d=void 0;d={openPopupAction:{popup:{sheetViewModel:A.viewModel},popupType:"CONTEXTUAL_SHEET",position:d}}}if(d){var W;this.expandToFullWidth=(W=A==null?void 0:A.expandToFullWidth)!=null?W:!1;this.handleOpenPopupAction(d,H,k===void 0?H:k)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var A=this;return _.e(function(H){return H.return(A.handleGetOpenedPopupsAction_().filter(function(k){var d;return((d=k.openPopupAction)==null?void 0:d.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(A,H,k){if(_.b("web_dialog_utils_killswitch")){var d=A==null?void 0:A.openPopupActionCommand,W=(k==null?0:k.ariaLabel)?{accessibilityData:{accessibilityData:{label:k.ariaLabel}}}:void 0;!d&&(A==null?0:A.viewModel)&&(d={openPopupAction:Object.assign({},{popup:{dialogViewModel:A.viewModel},popupType:(k==null?0:k.isModal)?"MODAL":"DIALOG"},W&&W)});d&&this.handleOpenPopupAction(d,H)}else{if(W=A==null?void 0:A.viewModel){var z=k=k===void 0?{}:k;k=z.ariaLabel;W={popup:{dialogViewModel:W},
popupType:z.isModal?"MODAL":"DIALOG"};z={accessibilityData:{label:k}};k&&(W.accessibilityData=z);W={openPopupAction:W}}else W=void 0;if(W=(d=W)!=null?d:A==null?void 0:A.openPopupActionCommand)this.isAriaModal=_.b("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(W,H)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var A=this;return _.e(function(H){return H.return(A.handleGetOpenedPopupsAction_().filter(function(k){var d;return((d=k.openPopupAction)==null?void 0:d.popupType)==="DIALOG"}).length>0)})}}];var SBp;var CQ7;var KBI=_.XO(["about:blank"]),wp=function(){var A=_.a.apply(this,arguments)||this;A.isMuted=!1;A.pageLoadTimeoutId=void 0;A.enableA11yFocusFix=_.b("enable_a11y_focus_fix_for_mac_panel_on_desktop");A.moveFocusToContent=function(){A.iframe.focus()};
return A};
_.I(wp,_.a);_.q=wp.prototype;_.q.dataChanged=function(){var A=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var H=this.data.url,k=_.Yh(H);_.b("enable_yt_ata_iframe_authuser")?(k=_.Yh(H),_.zM(this.iframe,zZ_(k))):_.zM(this.iframe,k);this.pageLoadTimeoutId=_.ma(_.iA(),function(){return void A.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.nX({destination:window,iframe:this.iframe,origin:_.fLm(k.toString()),channelName:"ataiframe",onMessage:_.Q4w(DOi,function(d){Se3(d.data)?(d=_.Hz(d.data,1,_.uQ,_.pC()),d.length!==1?_.Pq(Error("om")):(d=d[0],d===3?(A.isMuted=!0,A.logStateChanged({adMuteRequested:!0})):d===1&&A.close())):_.Pq(Error("pm"))}),
onEstablished:function(){A.cancelPageLoadTimeout();A.logStateChanged({pageLoadSucceeded:!0})}})}};
_.q.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.iA().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.q.logStateChanged=function(A){var H;if((H=this.data)==null?0:H.trackingParams)A={adsClientData:{aboutThisAdData:A}},_.A7().stateChanged(this.data.trackingParams,A)};
_.q.close=function(){_.Ud(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.handlesPopupClosed=function(A,H){var k=this,d,W;return _.e(function(z){if(z.nextAddress==1)return _.pZ("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Ud(k.hostElement,"on-about-this-ad-popup-closed",[k.isMuted,H]),z.jumpTo(0)):A&&qXB(A)?z.yield(rKL(A),4):(k.isMuted&&_.Ud(k.hostElement,"yt-mute-ad-action",[k.is,k]),z.jumpTo(0));if(d=z.yieldResult){var u=W=new _.hP(d),B=k.isMuted;u.getOptions().includes("onAboutThisAdPopupClosed")?_.HdJ(u,"onAboutThisAdPopupClosed",{isMuted:B,layoutId:H}):_.I5("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.EN(z)})};
_.q.onPopupClosed=function(A){var H=this,k,d;return _.e(function(W){k=_.Ia(KBI);_.zM(H.iframe,k);H.cancelPageLoadTimeout();if(!H.data)return W.jumpTo(0);H.ytRendererBehavior.markDirty();d=A.detail.context.openingElement;return W.yield(H.handlesPopupClosed(d,H.data.layoutId),0)})};
_.q.detached=function(){this.cancelPageLoadTimeout()};
_.q.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wp.prototype.onPopupClosed=wp.prototype.onPopupClosed;wp.prototype.dataChanged=wp.prototype.dataChanged;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.E([_.ol("#iframe"),_.l("design:type",HTMLIFrameElement)],wp.prototype,"iframe",void 0);_.E([_.C(),_.l("design:type",Object)],wp.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wp.prototype,"dataChanged",null);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype",Promise)],wp.prototype,"onPopupClosed",null);_.E([_.h6({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],wp);
_.Q(wp,"yt-about-this-ad-renderer",function(){if(CQ7===void 0){var A=document.createElement("template");_.Y(A,'\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><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;SBp===void 0&&(SBp=document.createElement("template"));var d=SBp;k.call(H,d.content.cloneNode(!0),A.content.firstChild);CQ7=A}A=CQ7;return A},{mode:2});var a3W;var cVO;var pRx=function(A){var H=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=H.message;"stack"in H&&(this.stack=H.stack);this.maxFileSizeMB=A;Object.setPrototypeOf(this,pRx.prototype)};
_.I(pRx,Error);var Q_y=function(A,H){var k=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=k.message;"stack"in k&&(this.stack=k.stack);this.minWidth=A;this.minHeight=H;Object.setPrototypeOf(this,Q_y.prototype)};
_.I(Q_y,Error);var VIB=function(A){this.requirements=A;this.JSC$22955_maxFileSize=A.maxFileSizeMB*1024*1024},E1B=function(A,H){if(H.size>A.JSC$22955_maxFileSize)throw new pRx(A.requirements.maxFileSizeMB);
};var UiW=function(A,H){this.canvas=A;this.imageEditorBuilder=H};
UiW.prototype.addEventListeners=function(A){var H=function(W){l3p(A,W)};
this.JSC$22961_mouseDownEvent=H;var k=function(W){tIx(A,W)};
this.JSC$22961_mouseMoveEvent=k;var d=function(){NLx(A)};
this.JSC$22961_mouseUpEvent=d;this.canvas.addEventListener("mousedown",H);this.canvas.addEventListener("mousemove",k);document.addEventListener("mouseup",d)};
UiW.prototype.removeEventListeners=function(){this.JSC$22961_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22961_mouseDownEvent);this.JSC$22961_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22961_mouseMoveEvent);this.JSC$22961_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22961_mouseUpEvent)};
var MIm=function(A,H){A.removeEventListeners();return new Promise(function(k){var d=new Image;d.crossOrigin="anonymous";d.onload=function(){var W=A.imageEditorBuilder(A.canvas,d);A.addEventListeners(W);k(W)};
d.src=H})},o$=function(A,H,k,d,W,z,u,B){this.canvas=A;
this.image=H;this.requiredRatio=k;this.minImageCropDimension=d;this.minOutputImageResolution=W;this.component=z;this.styleFocusedCorner=B===void 0?!0:B;this.action=2;this.focusedCorner=this.resizeCorner=0;A=this.canvas.getContext("2d");if(!A)throw Error("qm");this.ctx=A;this.canvasMargin=u!=null?u:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;u=this.image;A=this.canvasInnerWidth/u.width;u.height*A>912&&(A=u.width/u.height*912/u.width);u=A;this.scaledImageWidth=this.canvas.width%2?
BS3(this.image.width*u):uoR(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$22964_overlayMarginBottom=this.JSC$22964_overlayMarginTop=this.canvasMargin;this.JSC$22964_overlayMarginRight=this.JSC$22964_overlayMarginLeft=this.horizontalMargin;this.JSC$22964_overlayWidth=this.scaledImageWidth;this.JSC$22964_overlayHeight=this.scaledImageHeight;
A=this.image.width/this.image.height;A>this.requiredRatio?(this.JSC$22964_overlayWidth=this.canvas.width%2?BS3(this.scaledImageHeight*this.requiredRatio):uoR(this.scaledImageHeight*this.requiredRatio),this.JSC$22964_overlayMarginRight=this.JSC$22964_overlayMarginLeft=(this.canvas.width-this.JSC$22964_overlayWidth)/2):A<this.requiredRatio&&(this.JSC$22964_overlayHeight=this.canvas.height%2?BS3(this.scaledImageWidth/this.requiredRatio):uoR(this.scaledImageWidth/this.requiredRatio),this.JSC$22964_overlayMarginBottom=
this.JSC$22964_overlayMarginTop=(this.canvas.height-this.JSC$22964_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*u,this.scaledImageWidth);n1z(this)};
o$.prototype.getContext=function(){return this.ctx};
var l3p=function(A,H){H={x:Math.round(H.pageX-A.canvas.getBoundingClientRect().left),y:Math.round(H.pageY-A.canvas.getBoundingClientRect().top)};A.dragStart=H;ZLO(A,H)!==0?(A.action=1,f3W(A,H),A.resizeCorner=ZLO(A,H)):H.x>A.JSC$22964_overlayMarginLeft&&H.x<A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth&&H.y>A.JSC$22964_overlayMarginTop&&H.y<A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight&&(A.action=0)},wRI=function(A,H){switch(H){case 1:return{x:A.JSC$22964_overlayMarginLeft,
y:A.JSC$22964_overlayMarginTop};case 2:return{x:A.JSC$22964_overlayMarginLeft,y:A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight};case 3:return{x:A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth,y:A.JSC$22964_overlayMarginTop};case 4:return{x:A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth,y:A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight};default:throw Error("rm");}},$im=function(A,H){if(A.focusedCorner!==0){A.dragStart=wRI(A,A.focusedCorner);
A.action=1;A.resizeCorner=A.focusedCorner;var k=A.dragStart.x,d=A.dragStart.y;switch(H){case 0:A.focusedCorner===1||A.focusedCorner===4?(k-=10,d-=10):(k-=10,d+=10);break;case 1:A.focusedCorner===1||A.focusedCorner===4?(k+=10,d+=10):(k+=10,d-=10);break;case 2:k=A.focusedCorner===1||A.focusedCorner===4?k-10:k+10;d-=10;break;case 3:k=A.focusedCorner===1||A.focusedCorner===4?k+10:k-10;d+=10;break;default:throw Error("sm");}o1B(A,{x:k,y:d});n1z(A);A.action=2;A.dragStart=void 0}},tIx=function(A,H){H={x:Math.round(H.pageX-
A.canvas.getBoundingClientRect().left),
y:Math.round(H.pageY-A.canvas.getBoundingClientRect().top)};f3W(A,H);switch(A.action){case 1:o1B(A,H);break;case 0:A.dragStart&&(A.JSC$22964_overlayMarginLeft=Math.max(A.horizontalMargin,Math.min(A.JSC$22964_overlayMarginLeft-(A.dragStart.x-H.x),A.horizontalMargin+A.scaledImageWidth-A.JSC$22964_overlayWidth)),A.JSC$22964_overlayMarginRight=A.canvas.width-A.JSC$22964_overlayMarginLeft-A.JSC$22964_overlayWidth,A.JSC$22964_overlayMarginTop=Math.max(A.canvasMargin,Math.min(A.JSC$22964_overlayMarginTop-
(A.dragStart.y-H.y),A.scaledImageHeight-A.JSC$22964_overlayHeight+A.canvasMargin)),A.JSC$22964_overlayMarginBottom=A.canvas.height-(A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight));break;default:return}n1z(A);A.dragStart=H},NLx=function(A){A.action=2;
A.dragStart=void 0;document.body.style.cursor="auto"},f3W=function(A,H){switch(ZLO(A,H)){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:A.action!==1&&(document.body.style.cursor="auto")}},ZLO=function(A,H){var k=A.JSC$22964_overlayMarginLeft-5,d=A.JSC$22964_overlayMarginTop-5,W=A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth-5;
A=A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight-5;return AGf(H,{x:k,y:d})?1:AGf(H,{x:W,y:d})?3:AGf(H,{x:k,y:A})?2:AGf(H,{x:W,y:A})?4:0},AGf=function(A,H){return A.x>=H.x&&A.x<=H.x+10&&A.y>=H.y&&A.y<=H.y+10},o1B=function(A,H){if(A.dragStart)switch(A.resizeCorner){case 2:Math.abs((A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth-H.x)/(H.y-A.JSC$22964_overlayMarginTop))>=A.requiredRatio?HxO(A,H.x):s7O(A,H.y);
break;case 1:Math.abs((A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth-H.x)/(A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight-H.y))>=A.requiredRatio?kwW(A,H.x):s7O(A,H.y);break;case 4:Math.abs((H.x-A.JSC$22964_overlayMarginLeft)/(H.y-A.JSC$22964_overlayMarginTop))>=A.requiredRatio?HxO(A,H.x):dRB(A,H.y);break;case 3:Math.abs((H.x-A.JSC$22964_overlayMarginLeft)/(A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight-H.y))>=A.requiredRatio?kwW(A,H.x):dRB(A,H.y);break;default:throw Error("tm");
}},HxO=function(A,H){var k=A.JSC$22964_overlayMarginTop;
A.JSC$22964_overlayMarginBottom=W3z(A,H);A.JSC$22964_overlayHeight=A.canvas.height-A.JSC$22964_overlayMarginBottom-k;A.JSC$22964_overlayWidth=Math.round(A.JSC$22964_overlayHeight*A.requiredRatio);zIR(A)},kwW=function(A,H){var k=A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight;
A.JSC$22964_overlayMarginTop=W3z(A,H);A.JSC$22964_overlayHeight=k-A.JSC$22964_overlayMarginTop;A.JSC$22964_overlayWidth=Math.round(A.JSC$22964_overlayHeight*A.requiredRatio);zIR(A)},zIR=function(A){switch(A.resizeCorner){case 2:case 1:A.JSC$22964_overlayMarginLeft=A.canvas.width-A.JSC$22964_overlayMarginRight-A.JSC$22964_overlayWidth;
break;case 4:case 3:A.JSC$22964_overlayMarginRight=A.canvas.width-A.JSC$22964_overlayMarginLeft-A.JSC$22964_overlayWidth;break;default:throw Error("tm");}},s7O=function(A,H){var k=A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth;
A.JSC$22964_overlayMarginLeft=qWn(A,H);A.JSC$22964_overlayWidth=k-A.JSC$22964_overlayMarginLeft;A.JSC$22964_overlayHeight=Math.round(A.JSC$22964_overlayWidth/A.requiredRatio);rGp(A)},dRB=function(A,H){var k=A.JSC$22964_overlayMarginLeft;
A.JSC$22964_overlayMarginRight=qWn(A,H);A.JSC$22964_overlayWidth=A.canvas.width-A.JSC$22964_overlayMarginRight-k;A.JSC$22964_overlayHeight=Math.round(A.JSC$22964_overlayWidth/A.requiredRatio);rGp(A)},rGp=function(A){switch(A.resizeCorner){case 2:case 4:A.JSC$22964_overlayMarginBottom=A.canvas.height-A.JSC$22964_overlayMarginTop-A.JSC$22964_overlayHeight;
break;case 1:case 3:A.JSC$22964_overlayMarginTop=A.canvas.height-A.JSC$22964_overlayMarginBottom-A.JSC$22964_overlayHeight;break;default:throw Error("tm");}},W3z=function(A,H){switch(A.resizeCorner){case 2:H=A.canvas.height-(A.JSC$22964_overlayMarginTop+ufI(A,H));
break;case 4:H=A.canvas.height-(A.JSC$22964_overlayMarginTop+BOO(A,H));break;case 1:H=A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight-ufI(A,H);break;case 3:H=A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight-BOO(A,H);break;default:throw Error("tm");}return Math.max(H,A.canvasMargin)},ufI=function(A,H){H=A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth-Math.max(H,A.horizontalMargin);
H=H<0?A.JSC$22964_overlayWidth:Math.max(H,A.minOverlayWidth);return Math.round(H/A.requiredRatio)},BOO=function(A,H){H=A.canvas.width-Math.max(A.canvas.width-H,A.horizontalMargin)-A.JSC$22964_overlayMarginLeft;
H=H<0?A.JSC$22964_overlayWidth:Math.max(H,A.minOverlayWidth);return Math.round(H/A.requiredRatio)},qWn=function(A,H){switch(A.resizeCorner){case 2:H=A.canvas.width-A.JSC$22964_overlayMarginRight-eIx(A,H);
break;case 4:H=A.canvas.width-A.JSC$22964_overlayMarginLeft-eIx(A,H);break;case 1:H=A.canvas.width-A.JSC$22964_overlayMarginRight-xR3(A,H);break;case 3:H=A.canvas.width-A.JSC$22964_overlayMarginLeft-xR3(A,H);break;default:throw Error("tm");}return Math.max(H,A.horizontalMargin)},eIx=function(A,H){H=A.canvas.height-Math.max(A.canvas.height-H,A.canvasMargin)-A.JSC$22964_overlayMarginTop;
return H<0?A.JSC$22964_overlayWidth:Math.max(Math.round(H*A.requiredRatio),A.minOverlayWidth)},xR3=function(A,H){H=A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight-Math.max(H,A.canvasMargin);
return H<0?A.JSC$22964_overlayWidth:Math.max(Math.round(H*A.requiredRatio),A.minOverlayWidth)},n1z=function(A){A.ctx.clearRect(0,0,A.canvas.width,A.canvas.height);
A.ctx.drawImage(A.image,0,0,A.image.width,A.image.height,A.horizontalMargin,A.canvasMargin,A.canvas.width-2*A.horizontalMargin,A.scaledImageHeight);A.ctx.fillStyle="rgba(0, 0, 0, 0.7)";A.ctx.fillRect(A.horizontalMargin,A.JSC$22964_overlayMarginTop,A.JSC$22964_overlayMarginLeft-A.horizontalMargin,A.JSC$22964_overlayHeight);A.ctx.fillRect(A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth,A.JSC$22964_overlayMarginTop,A.JSC$22964_overlayMarginRight-A.horizontalMargin,A.JSC$22964_overlayHeight);A.ctx.fillRect(A.horizontalMargin,
A.canvasMargin,A.scaledImageWidth,A.JSC$22964_overlayMarginTop-A.canvasMargin);A.ctx.fillRect(A.horizontalMargin,A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight,A.scaledImageWidth,A.JSC$22964_overlayMarginBottom-A.canvasMargin);A.drawOverlay();A.component&&_.Ed(A.component,"image-updated")};
o$.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22964_overlayMarginLeft,this.JSC$22964_overlayMarginTop,this.JSC$22964_overlayWidth,this.JSC$22964_overlayHeight);ixO(this)};
var ixO=function(A){var H=A.JSC$22964_overlayMarginLeft-5,k=A.JSC$22964_overlayMarginTop-5,d=A.JSC$22964_overlayMarginLeft+A.JSC$22964_overlayWidth-5,W=A.JSC$22964_overlayMarginTop+A.JSC$22964_overlayHeight-5;A.ctx.fillStyle="#FFF";A.ctx.fillRect(H,k,10,10);A.ctx.strokeRect(H,k,10,10);A.ctx.fillRect(d,k,10,10);A.ctx.strokeRect(d,k,10,10);A.ctx.fillRect(H,W,10,10);A.ctx.strokeRect(H,W,10,10);A.ctx.fillRect(d,W,10,10);A.ctx.strokeRect(d,W,10,10);if(A.focusedCorner!==0&&A.styleFocusedCorner){A.ctx.lineWidth=
4;A.ctx.strokeStyle="#3EA6FF";switch(A.focusedCorner){case 1:--H;--k;break;case 2:--H;k=W-1;break;case 3:H=d-1;--k;break;case 4:H=d-1;k=W-1;break;default:return}A.ctx.strokeRect(H,k,12,12)}};
o$.prototype.crop=function(A,H){H=H===void 0?!0:H;var k=this.image.width/this.scaledImageWidth,d=document.createElement("canvas"),W=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],z=this.JSC$22964_overlayWidth*k,u=this.JSC$22964_overlayHeight*k;d.width=Math.max(z,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);d.height=Math.max(u,W);A&&(d.width=Math.min(d.width,d.height),d.height=Math.min(d.width,d.height));
A=d.getContext("2d");if(!A)throw Error("hm");W=(this.JSC$22964_overlayMarginLeft-this.horizontalMargin)*k;k*=this.JSC$22964_overlayMarginTop-this.canvasMargin;H||(A.fillStyle="white",A.fillRect(0,0,d.width,d.height));A.drawImage(this.image,W,k,z,u,0,0,d.width,d.height);return d};var hIm=function(A,H,k,d,W){o$.call(this,A,H,k,d,void 0,W,8,!1)};
_.I(hIm,o$);hIm.prototype.drawOverlay=function(){var A=this.getContext(),H=this.JSC$22964_overlayWidth,k=this.JSC$22964_overlayHeight,d=this.JSC$22964_overlayMarginTop,W=this.JSC$22964_overlayMarginLeft;A.lineWidth=2;A.strokeStyle="#3EA6FF";A.beginPath();A.arc(W+H/2,d+k/2,H/2,0,2*Math.PI);A.stroke();A.strokeRect(W,d,H,k);ixO(this)};
var Oxw={maxFileSizeMB:15,minWidth:98,minHeight:98},RII=["image/png","image/jpeg","image/gif"],$n=function(){var A=_.a.apply(this,arguments)||this;A.fileSelectorFocusListener=null;A.errorMessage=null;A.isLoading=!0;A.hideContainer=!0;A.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return A};
_.I($n,_.a);_.q=$n.prototype;_.q.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.q.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.q.computePlaylistThumbnail=function(A){return A==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.q.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Ud(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.q.setErrorState=function(A){this.resetErrorState();A&&(this.errorMessage=A)};
_.q.showPopup=function(){var A=this;this.hideContainer=!1;_.ma(_.IE,function(){_.Ed(A.hostElement,"yt-refit")});
this.isLoading=!1};
_.q.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.q.closePopup=function(){this.resetFileSelector();_.Ud(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.onCancelTap=function(){this.isPlaylistThumbnail||_.Ud(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.q.openFileSelector=function(){var A=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.ma(_.IE,function(){setTimeout(function(){if(!A.fileSelector.files||A.fileSelector.files.length===0)A.onCancelTap();A.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(H){H instanceof Error?_.I3(H):_.YJ(new _.Ti(JSON.stringify(H)))}};
_.q.handleFileSelection=function(){var A=this,H,k,d,W,z,u;return _.e(function(B){switch(B.nextAddress){case 1:_.S_(B,2);if(!A.fileSelector.files||!A.imageEditorCanvas)return A.onCancelTap(),B.return();H=A.fileSelector.files[0];E1B(A.imageChecker,H);_.S_(B,4);return B.yield(Y81(H),6);case 6:A.mimeType=B.yieldResult;_.QN(B,5,2);break;case 4:_.VA(B,2),_.Ud(A.hostElement,"yt-image-selection-error-action",[(k=A.data)==null?void 0:k.genericImageLoadErrorMessage]),A.onCancelTap();case 5:d=new FileReader;
d.addEventListener("load",function(){var h,O;return _.e(function(T){if(T.nextAddress==1){if(!d.result)return _.Pq(Error("jm")),T.return();h=d.result;O=new Image;O.src=h;O.onload=function(){try{var m=A.imageChecker;if(O.width<m.requirements.minWidth||O.height<m.requirements.minHeight)throw new Q_y(m.requirements.minWidth,m.requirements.minHeight);}catch(g){if(g instanceof Q_y){var J;_.Ud(A.hostElement,"yt-image-selection-error-action",[(J=A.data)==null?void 0:J.imageDimensionErrorMessage]);A.logImageDimensionErrorVe()}else g instanceof
Error?_.I3(g):(m=new _.Ti(JSON.stringify(g)),_.I3(m));A.onCancelTap()}A.showPopup()};
O.onerror=function(){var m;_.Ud(A.hostElement,"yt-image-selection-error-action",[(m=A.data)==null?void 0:m.genericImageLoadErrorMessage]);A.onCancelTap()};
return T.yield(MIm(A.imageEditorCanvas,h),2)}A.imageEditor=T.yieldResult;A.updatePositionOfAllCorners();A.addEventListeners(A.imageEditor);_.EN(T)})},!1);
d.readAsDataURL(H);_.QN(B,0);break;case 2:W=_.VA(B),W instanceof pRx?_.Ud(A.hostElement,"yt-image-selection-error-action",[(z=A.data)==null?void 0:z.imageSizeErrorMessage]):(W instanceof Error?_.I3(W):_.YJ(new _.Ti(JSON.stringify(W))),_.Ud(A.hostElement,"yt-image-selection-error-action",[(u=A.data)==null?void 0:u.genericImageLoadErrorMessage])),A.onCancelTap(),_.EN(B)}})};
_.q.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var A=_.$9(_.A7(),{veType:232707,visualElement:_.t8(232707)});A&&(A={visualElement:A},_.oO().reportShown(A))}};
_.q.handleImageSelectionErrorAction=function(A){this.isPlaylistThumbnail&&_.SUb(this.hostElement,A)};
_.q.convertToImageFormatBundle=function(A){var H=this,k,d,W;return _.e(function(z){switch(z.nextAddress){case 1:return k=A.toDataURL(H.outputMimeType,1),z.yield(Pp3(k),2);case 2:d=z.yieldResult;_.S_(z,3);E1B(H.imageChecker,d);_.QN(z,4);break;case 3:W=_.VA(z);if(!(W instanceof pRx))throw W;_.Pq(new _.Ti("Output size is bigger than input size for image",H.mimeType,H.outputMimeType,d.size));k=A.toDataURL("image/jpeg",.95);return z.yield(Pp3(k),6);case 6:d=z.yieldResult;case 4:return z.return({dataUrl:k,
imageFile:d})}})};
_.q.handleUploadImageToScottyCommand=function(A){var H=this,k,d,W,z,u,B,h,O,T,m;return _.e(function(J){switch(J.nextAddress){case 1:if(!H.imageEditor||!_.L(A,eKM))return J.return();k=_.L(A,eKM).scottyUploadUrl;if(!k){var g=new _.Ti("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.I3(g);return J.return()}_.S_(J,2);H.setLoadingState();d=H.imageEditor.crop(!1,!1);return J.yield(H.convertToImageFormatBundle(d),4);case 4:return W=J.yieldResult,J.yield(jX_(W.imageFile,k),5);
case 5:z=J.yieldResult;((u=H.data)==null?0:u.onUploadEndpoint)?(B=H.buildUploadServiceEndpoint(z),H.ytComponentBehavior.resolveCommand(B),h=_.L(B,_.Tr),((O=h)==null?0:O.params)?H.closePopup():H.resetFileSelector()):(_.Ud(H.hostElement,"yt-image-updated-action",[W.dataUrl,z]),H.closePopup());_.QN(J,0);break;case 2:T=_.VA(J),H.setErrorState((m=H.data)==null?void 0:m.uploadErrorMessage),T instanceof Error?_.I3(T):(g=new _.Ti(JSON.stringify(T)),_.I3(g)),_.EN(J)}})};
_.q.buildUploadServiceEndpoint=function(A){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",A),this.data.onUploadEndpoint):null};
_.q.dataChanged=function(){var A=this,H;return _.e(function(k){if(k.nextAddress==1){if(!A.data||!A.canvasElement)return k.return();A.data.imageRatio&&A.data.minImageCropWidth||_.YJ(new _.Ti("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));H=function(d,W){return A.data.imageType==="IMAGE_TYPE_AVATAR"?new hIm(d,W,A.data.imageRatio,[A.data.minImageCropWidth,A.data.minImageCropWidth/A.data.imageRatio],A.hostElement):new o$(d,W,A.data.imageRatio,[A.data.minImageCropWidth,
A.data.minImageCropWidth/A.data.imageRatio],void 0,A.hostElement,8,!1)};
A.imageEditorCanvas=new UiW(A.canvasElement,H);return A.data.url?k.yield(MIm(A.imageEditorCanvas,A.data.url),3):(A.hideContainer=!0,A.openFileSelector(),k.jumpTo(0))}A.imageEditor=k.yieldResult;A.showPopup();A.addEventListeners(A.imageEditor);_.EN(k)})};
_.q.addEventListeners=function(A){this.removeEventListeners();var H=function(W){l3p(A,W)};
this.JSC$22972_mouseDownEvent=H;var k=function(W){tIx(A,W)};
this.JSC$22972_mouseMoveEvent=k;var d=function(){NLx(A)};
this.JSC$22972_mouseUpEvent=d;this.topLeftCorner.addEventListener("mousedown",H);this.topLeftCorner.addEventListener("mousemove",k);this.topLeftCorner.addEventListener("mouseup",d);this.topRightCorner.addEventListener("mousedown",H);this.topRightCorner.addEventListener("mousemove",k);this.topRightCorner.addEventListener("mouseup",d);this.bottomLeftCorner.addEventListener("mousedown",H);this.bottomLeftCorner.addEventListener("mousemove",k);this.bottomLeftCorner.addEventListener("mouseup",d);this.bottomRightCorner.addEventListener("mousedown",
H);this.bottomRightCorner.addEventListener("mousemove",k);this.bottomRightCorner.addEventListener("mouseup",d)};
_.q.removeEventListeners=function(){this.JSC$22972_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22972_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22972_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22972_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22972_mouseDownEvent));this.JSC$22972_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22972_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22972_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22972_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22972_mouseMoveEvent));this.JSC$22972_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22972_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22972_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22972_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22972_mouseUpEvent))};
_.q.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var A=document.activeElement;A&&A.shadowRoot&&A.shadowRoot.activeElement;)A=A.shadowRoot.activeElement;switch(A){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};
_.q.updatePositionOfCorner=function(A,H){var k=A.y-H.offsetHeight/2+4;H.style.left=A.x-H.offsetWidth/2+16+"px";H.style.top=k+"px"};
_.q.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var A=_.r([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),H=A.next();!H.done;H=A.next()){H=H.value;var k=wRI(this.imageEditor,H.corner);this.updatePositionOfCorner(k,H.div)}};
_.q.onLeft=function(A){this.imageEditor&&this.setFocusInImageEditor()&&($im(this.imageEditor,0),this.updatePositionOfAllCorners(),A.preventDefault())};
_.q.onRight=function(A){this.imageEditor&&this.setFocusInImageEditor()&&($im(this.imageEditor,1),this.updatePositionOfAllCorners(),A.preventDefault())};
_.q.onUp=function(A){this.imageEditor&&this.setFocusInImageEditor()&&($im(this.imageEditor,2),this.updatePositionOfAllCorners(),A.preventDefault())};
_.q.onDown=function(A){this.imageEditor&&this.setFocusInImageEditor()&&($im(this.imageEditor,3),this.updatePositionOfAllCorners(),A.preventDefault())};
_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.nP.Object.defineProperties($n.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&RII.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var A,H,k;((H=this.data)==null?0:H.imageRatio)&&((k=this.data)==null?0:k.minImageCropWidth)?A={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:A=Oxw;return new VIB(A)}}});
$n.prototype.updatePositionOfAllCorners=$n.prototype.updatePositionOfAllCorners;$n.prototype.dataChanged=$n.prototype.dataChanged;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],$n.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],$n.prototype,"ytComponentBehavior",void 0);_.E([_.P(_.fo),_.l("design:type",Object)],$n.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.ol("#canvas"),_.l("design:type",HTMLCanvasElement)],$n.prototype,"canvasElement",void 0);_.E([_.ol("#file-selector"),_.l("design:type",HTMLInputElement)],$n.prototype,"fileSelector",void 0);_.E([_.ol("#top-left-corner"),_.l("design:type",HTMLDivElement)],$n.prototype,"topLeftCorner",void 0);_.E([_.ol("#top-right-corner"),_.l("design:type",HTMLDivElement)],$n.prototype,"topRightCorner",void 0);
_.E([_.ol("#bottom-left-corner"),_.l("design:type",HTMLDivElement)],$n.prototype,"bottomLeftCorner",void 0);_.E([_.ol("#bottom-right-corner"),_.l("design:type",HTMLDivElement)],$n.prototype,"bottomRightCorner",void 0);_.E([_.C(),_.l("design:type",Object)],$n.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],$n.prototype,"errorMessage",void 0);_.E([_.C(),_.l("design:type",Object)],$n.prototype,"isLoading",void 0);_.E([_.C(),_.l("design:type",Object)],$n.prototype,"hideContainer",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.l("design:type",Boolean)],$n.prototype,"isPlaylistThumbnail",void 0);_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],$n.prototype,"dataChanged",null);_.E([_.Ze("image-updated"),_.Ze("yt-refit"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$n.prototype,"updatePositionOfAllCorners",null);
_.E([_.h6({is:"yt-image-editor-renderer",disableElementRegistration:!0})],$n);
_.Q($n,"yt-image-editor-renderer",function(){if(cVO===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;a3W===void 0&&(a3W=document.createElement("template"));var d=a3W;k.call(H,d.content.cloneNode(!0),A.content.firstChild);cVO=A}A=cVO;return A},{mode:2});var TOW;var mRO;var AL=function(){return _.a.apply(this,arguments)||this};
_.I(AL,_.a);AL.prototype.updateMinutesFromBinding=function(A){this.handleMinutesChanged&&this.handleMinutesChanged(A)};
AL.prototype.updateSecondsFromBinding=function(A){this.handleSecondsChanged&&this.handleSecondsChanged(A)};
AL.prototype.updateDescriptionFromBinding=function(A){this.handleDescriptionChanged&&this.handleDescriptionChanged(A)};
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],AL.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],AL.prototype,"data",void 0);_.E([_.C(),_.l("design:type",String)],AL.prototype,"minutes",void 0);_.E([_.C(),_.l("design:type",String)],AL.prototype,"seconds",void 0);_.E([_.C(),_.l("design:type",String)],AL.prototype,"description",void 0);_.E([_.C(),_.l("design:type",Function)],AL.prototype,"handleMinutesChanged",void 0);
_.E([_.C(),_.l("design:type",Function)],AL.prototype,"handleSecondsChanged",void 0);_.E([_.C(),_.l("design:type",Function)],AL.prototype,"handleDescriptionChanged",void 0);_.E([_.C(),_.l("design:type",Number)],AL.prototype,"characterLimit",void 0);_.E([_.C(),_.l("design:type",Number)],AL.prototype,"textNumRows",void 0);_.E([_.h6({is:"yt-report-details-form-content",disableElementRegistration:!0})],AL);
_.Q(AL,"yt-report-details-form-content",function(){if(mRO===void 0){var A=document.createElement("template");_.Y(A,'\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>');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;TOW===void 0&&(TOW=document.createElement("template"));var d=TOW;k.call(H,d.content.cloneNode(!0),A.content.firstChild);mRO=A}A=mRO;return A},{mode:2});var JGm;var gpW;var H1=function(){var A=_.a.apply(this,arguments)||this;A.updateMinutesFromBinding=function(H){A.minutes=H.detail.value};
A.updateSecondsFromBinding=function(H){A.seconds=H.detail.value};
A.updateDescriptionFromBinding=function(H){A.description=H.detail.value};
return A};
_.I(H1,_.a);_.q=H1.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.q.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"}}}};
_.q.ready=function(){_.Va(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.q.onSubmitYtAction=function(A){var H=A.detail;H.actionName==="yt-service-request"&&(H=H.args[1],H.flagEndpoint&&(A.stopPropagation(),this.refireAction(H)))};
_.q.refireAction=function(A){var H={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(H.vss_id=this.vssId);_.tx(this.hostElement,[A,H]);this.submitDisabled=!0};
_.q.dataChanged=function(){var A=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var H=_.Kj();H&&H.getPlayerPromise().then(function(k){var d=k.getOption("cc","track")||k.getOption("captions","track");d&&(A.vssId=d.vss_id);k=k.getCurrentTime();A.minutes=Math.floor(k/60).toString();A.seconds=(Math.floor(k)%60).toString()})};
_.q.updateSubmitButtonState=function(){var A;((A=this.data)==null?0:A.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==="")};
_.q.onYtServiceRequestCompleted=function(){_.Ud(this.hostElement,"yt-close-popup-action")};
_.q.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.nP.Object.defineProperties(H1.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.textNumRows)||4}}});
H1.prototype.onYtServiceRequestError=H1.prototype.onYtServiceRequestError;H1.prototype.onYtServiceRequestCompleted=H1.prototype.onYtServiceRequestCompleted;H1.prototype.updateSubmitButtonState=H1.prototype.updateSubmitButtonState;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);
_.E([_.C({observer:"dataChanged"}),_.l("design:type",Object)],H1.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Boolean)],H1.prototype,"submitDisabled",void 0);_.E([_.C(),_.l("design:type",String)],H1.prototype,"minutes",void 0);_.E([_.C(),_.l("design:type",String)],H1.prototype,"seconds",void 0);_.E([_.C(),_.l("design:type",String)],H1.prototype,"description",void 0);_.E([_.C(),_.l("design:type",String)],H1.prototype,"vssId",void 0);
_.E([_.C({value:_.pZ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.l("design:type",Boolean)],H1.prototype,"isMusic",void 0);_.E([_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],H1.prototype,"characterLimit",null);_.E([_.G("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],H1.prototype,"textNumRows",null);
_.E([_.s6("minutes","seconds","description","submitDisabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],H1.prototype,"updateSubmitButtonState",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],H1.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],H1.prototype,"onYtServiceRequestError",null);_.E([_.h6({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],H1);
_.Q(H1,"yt-report-details-form-renderer",function(){if(gpW===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;JGm===void 0&&(JGm=document.createElement("template"));var d=JGm;k.call(H,d.content.cloneNode(!0),A.content.firstChild);gpW=A}A=gpW;return A});var bx3;var L3m;var vpB;var yG7;var s$=function(){return _.a.apply(this,arguments)||this};
_.I(s$,_.a);
s$.prototype.onCheckedChanged_=function(){if(this.data){var A=_.Va(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Ud(this.hostElement,"yt-additional-detail-checkbox-update",[A]):this.data.identifier==="yt-hide-user-checkbox"?_.Ud(this.hostElement,"yt-hide-user-checkbox-update",[A]):A&&this.data.enableCommand?_.Ud(this.hostElement,"yt-modify-report-form-command",[_.L(this.data.enableCommand,SEB)]):!A&&this.data.disableCommand&&_.Ud(this.hostElement,
"yt-modify-report-form-command",[_.L(this.data.enableCommand,SEB)])}};
s$.prototype.onLabelTap_=function(A){A.target.tagName!="A"&&(_.Va(this.hostElement).querySelector("#checkbox").checked=!_.Va(this.hostElement).querySelector("#checkbox").checked)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],s$.prototype,"data",void 0);_.E([_.h6({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],s$);
_.Q(s$,"yt-boolean-form-field-v2-renderer",function(){if(yG7===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;vpB===void 0&&(vpB=document.createElement("template"));var d=vpB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);yG7=A}A=yG7;return A});var ky=function(){var A=_.a.apply(this,arguments)||this;A.canShowAdditionalDetailCheckbox=!1;A.canShowCheckbox=!1;A.keepDropdownFocusedAfterSelection=!0;return A};
_.I(ky,_.a);ky.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}}}}};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],ky.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],ky.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.C(),_.l("design:type",Object)],ky.prototype,"canShowCheckbox",void 0);_.E([_.C(),_.l("design:type",Object)],ky.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.h6({is:"yt-report-form-modal-content",disableElementRegistration:!0})],ky);
_.Q(ky,"yt-report-form-modal-content",function(){if(L3m===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;bx3===void 0&&(bx3=document.createElement("template"));var d=bx3;k.call(H,d.content.cloneNode(!0),A.content.firstChild);L3m=A}A=L3m;return A},{mode:2});var j7B;var IyW;var dg=function(){var A=_.a.apply(this,arguments)||this;A.submitting=!1;A.submitButtonDisabled=!0;A.command=null;A.canShowCheckbox=!1;A.canShowAdditionalDetailCheckbox=!1;A.canShowNextButton=!1;A.additionalDetailCheckboxChecked=!1;A.refitJob=0;A.keepDropdownFocusedAfterSelection=!0;A.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 A};
_.I(dg,_.a);_.q=dg.prototype;_.q.created=function(){this.refitJob=0};
_.q.attached=function(){this.JSC$22995_scroller&&(this.JSC$22995_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22995_scroller.attached&&typeof this.JSC$22995_scroller.attached==="function"&&this.JSC$22995_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(A){A&&(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,A.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),A.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.q.onYtPopupOpened=function(){var A=_.Kj();A&&A.getPlayerPromise().then(function(H){H.pauseVideo()})};
_.q.onYtNavigate=function(A){_.L(A.detail.endpoint,_.Y4p)&&(A.stopPropagation(),this.hideReportForm=!0)};
_.q.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.q.onYtServiceRequestCompleted=function(A,H){var k=H.actions;if(k){if(k.length===1&&_.L(k[0],_.nH)){var d;k=((d=_.L(k[0],_.nH))==null?void 0:d.commands)||[]}d=0;for(var W=k.length;d<W;d++)_.L(k[d],_.dN)&&(A.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(k[d]))}if(H.data&&(A=this.get("feedbackResponses",H.data)))for(H=0;H<A.length;H++)if(A[H].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.q.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.q._onDescendantIronResize=function(A){A.stopPropagation();return!1};
_.q.handleReportFormEndpointUpdateAction=function(A){if(A.submitEndpoint){var H=this.command=A.submitEndpoint;H=_.L(H,_.IDA);if(H==null?0:H.additionalDetailCheckboxChecked)H.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else A.submitNavigationEndpoint?(this.command=A.submitNavigationEndpoint,this.toggleSubmitButton(!1)):A.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:A.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;A.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",A));this.refit()};
_.q.handleConfirmDialogCloseAction=function(A){A.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.q.submitButtonDisabledChanged=function(){var A=this.hostElement.parentElement;A&&A.invalidateTabbables&&A.invalidateTabbables()};
_.q.handleModifyReportFormCommand=function(A){A=this.get("action",A);A==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:A==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:A==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:A==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:A==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:A==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.q.updateDialogStyling=function(){var A,H,k,d,W,z=((W=(A=this.data)==null?void 0:(H=A.optionsSupportedRenderers)==null?void 0:(k=H.optionsRenderer)==null?void 0:(d=k.items)==null?void 0:d.length)!=null?W:0)<=2?0:240;_.NH(this.hostElement,{"--yt-report-form-modal-renderer-min-width":z+"px"})};
_.q.toggleSubmitButton=function(A){this.submitButtonDisabled=!A;this.submitButtonDisabled=A};
_.q.computeSubmitButtonData=function(A,H){var k={};_.L(H,_.Y4p)?k.navigationEndpoint=H:k.command=H||void 0;A&&A.buttonRenderer&&_.iK.extend(k,A.buttonRenderer);return k};
_.q.computeNextButtonData=function(A,H){var k={};if(!A||!A.buttonRenderer)return k;_.iK.extend(k,A.buttonRenderer);if(!H)return k;if(_.L(H,_.Y4p))k.navigationEndpoint=qu_(H);else if(k.command=qu_(H),A=_.L(k.command,_.IDA))A.legalCheckboxChecked=!0;return k};
_.q.computeShowNextButton=function(A,H,k){return!!A&&H&&k};
_.q.refit=function(){var A=this;this.refitJob||(this.refitJob=_.IE.addLowPriorityJob(function(){_.Ed(A.hostElement,"yt-refit");A.refitJob=0}))};
_.q.handleAdditionalDetailCheckboxUpdateAction=function(A){this.additionalDetailCheckboxChecked=A;_.L(this.command,_.IDA).additionalDetailCheckboxChecked=A};
_.nP.Object.defineProperties(dg,{template:{configurable:!0,enumerable:!0,get:function(){if(IyW===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;j7B===void 0&&(j7B=document.createElement("template"));var d=j7B;k.call(H,d.content.cloneNode(!0),A.content.firstChild);IyW=A}A=IyW;return A}}});
dg.prototype.onYtServiceRequestError=dg.prototype.onYtServiceRequestError;dg.prototype.onYtServiceRequestCompleted=dg.prototype.onYtServiceRequestCompleted;dg.prototype.onYtServiceRequestSent=dg.prototype.onYtServiceRequestSent;dg.prototype.onYtNavigate=dg.prototype.onYtNavigate;dg.prototype.onYtPopupOpened=dg.prototype.onYtPopupOpened;_.E([_.P(_.NY.YtOpenPopupBehavior),_.l("design:type",Object)],dg.prototype,"openPopupBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],dg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],dg.prototype,"eventForwardingBehavior",void 0);_.E([_.P(_.WU),_.l("design:type",Object)],dg.prototype,"ironResizableBehavior",void 0);_.E([_.C({observer:"dataChanged"}),_.l("design:type",Object)],dg.prototype,"data",void 0);
_.E([_.C(),_.l("design:type",Object)],dg.prototype,"submitting",void 0);_.E([_.C({observer:"submitButtonDisabledChanged"}),_.l("design:type",Object)],dg.prototype,"submitButtonDisabled",void 0);_.E([_.C(),_.l("design:type",Object)],dg.prototype,"command",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],dg.prototype,"hideReportForm",void 0);_.E([_.C(),_.l("design:type",Object)],dg.prototype,"canShowCheckbox",void 0);
_.E([_.C(),_.l("design:type",Object)],dg.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.C(),_.l("design:type",Object)],dg.prototype,"canShowNextButton",void 0);_.E([_.C(),_.l("design:type",Object)],dg.prototype,"additionalDetailCheckboxChecked",void 0);_.E([_.C(),_.l("design:type",Object)],dg.prototype,"refitJob",void 0);_.E([_.C(),_.l("design:type",Object)],dg.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.ol("#scroller"),_.l("design:type",Object)],dg.prototype,"JSC$22995_scroller",void 0);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dg.prototype,"onYtPopupOpened",null);_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dg.prototype,"onYtNavigate",null);
_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],dg.prototype,"onYtServiceRequestSent",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],dg.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],dg.prototype,"onYtServiceRequestError",null);_.E([_.h6({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],dg);var YW7;var Pmn;var W1=function(){return _.a.apply(this,arguments)||this};
_.I(W1,_.a);_.q=W1.prototype;_.q.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.q.onVisible=function(){var A,H;(H=_.wj().resolve(_.fZ(_.b_)))==null||H.enqueue({label:_.PK((A=this.data)==null?void 0:A.messageTitle),elementToFocus:this.hostElement})};
_.q.onThumbnailLoaded=function(){_.Ed(this.hostElement,"yt-refit")};
_.q.onDismissTap=function(){_.Ud(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.q.computeAlternateIcon=function(A){return A?A==="BACKSTAGE_ARTWORK"?"backstage:artwork":A:null};
_.q.computeFontFamily=function(A){return A==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.q.computeBackgroundStyle=function(A,H){if(A=this.computeBackgroundImage(A,H))if(A=_.K3(A.thumbnails))return'background-image: url("'+A+'");'};
_.q.computeHasFullHeightImage=function(A){return!(!(A&&A.thumbnails&&A.thumbnails.length>0)||this.modern)};
_.q.isModernStyle=function(A){return A.style==="STYLE_MODERN"};
_.q.computeIcon=function(A,H){if(A&&A.icon)return H?A.iconDark:A.icon};
_.q.computeBackgroundImage=function(A,H){if(A&&A.backgroundImage)return H?A.backgroundImageDark:A.backgroundImage};
_.q.computeLogo=function(A,H){if(A&&A.logo)return H?A.logoDark:A.logo};
_.q.computeShouldShowModernIcon=function(A,H){return A&&!!H};
_.q.getLogoContainerClassName=function(A){return this.logoWithPadding(A)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.q.getLogoImageId=function(A){return this.logoWithPadding(A)?"mealbar-logo-with-padding":"mealbar-logo"};
_.q.logoWithPadding=function(A){var H,k,d;return(A=(H=this.computeLogo(A,this.isDarkTheme))==null?void 0:(k=H.thumbnails)==null?void 0:(d=k[0])==null?void 0:d.height)&&A%31===0?!0:!1};
W1.prototype.onThumbnailLoaded=W1.prototype.onThumbnailLoaded;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.E([_.C({}),_.l("design:type",Object)],W1.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.l("design:type",Boolean)],W1.prototype,"modern",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],W1.prototype,"isDarkTheme",void 0);
_.E([_.C({computed:"computeIcon(data, isDarkTheme)"}),_.l("design:type",Object)],W1.prototype,"icon",void 0);_.E([_.C({computed:"computeLogo(data, isDarkTheme)"}),_.l("design:type",Object)],W1.prototype,"logo",void 0);_.E([_.C({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.l("design:type",Object)],W1.prototype,"backgroundStyle",void 0);_.E([_.C({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.l("design:type",Object)],W1.prototype,"alternateIcon",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.l("design:type",Boolean)],W1.prototype,"hasFullHeightImage",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.l("design:type",Boolean)],W1.prototype,"useYoutubeSans",void 0);_.E([_.C({computed:"computeShouldShowModernIcon(modern, icon)"}),_.l("design:type",Boolean)],W1.prototype,"shouldShowModernIcon",void 0);
_.E([_.Ze("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W1.prototype,"onThumbnailLoaded",null);_.E([_.h6({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],W1);
_.Q(W1,"yt-mealbar-promo-renderer",function(){if(Pmn===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;YW7===void 0&&(YW7=document.createElement("template"));var d=YW7;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Pmn=A}A=Pmn;return A},{mode:2});var Gwn;var F3w;var zu=function(){return _.a.apply(this,arguments)||this};
_.I(zu,_.a);_.q=zu.prototype;_.q.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]]"}}}}}};
_.q.computeHasButtons_=function(A){return!(!A.dismissButton&&!A.acceptButton)};
_.q.computeStyle_=function(A){return A||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.q.observeImpressionEndpoints_=function(){var A=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;_.tx(A.hostElement,[H])})};
_.q.onTap_=function(){_.Ud(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
zu.prototype.observeImpressionEndpoints_=zu.prototype.observeImpressionEndpoints_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],zu.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],zu.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],zu.prototype,"positionType",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.l("design:type",Boolean)],zu.prototype,"hasButtons_",void 0);_.E([_.C({value:function(){return this.onTap_.bind(this)}}),
_.l("design:type",Function)],zu.prototype,"boundOnTap_",void 0);_.E([_.C({value:{style:"mono-inverse"}}),_.l("design:type",Object)],zu.prototype,"buttonOverride",void 0);_.E([_.fF("data.promoConfig.impressionEndpoints"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zu.prototype,"observeImpressionEndpoints_",null);_.E([_.h6({is:"yt-tooltip-renderer",disableElementRegistration:!0})],zu);
_.Q(zu,"yt-tooltip-renderer",function(){if(F3w===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;Gwn===void 0&&(Gwn=document.createElement("template"));var d=Gwn;k.call(H,d.content.cloneNode(!0),A.content.firstChild);F3w=A}A=F3w;return A},{mode:2});var Xzf;var DRz;var SWf;var CmR;var q$=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-open-popup-action":"onOpen"};return A};
_.I(q$,_.a);_.q=q$.prototype;_.q.attached=function(){this.onOpen()};
_.q.updateTimeSecs=function(A){this.currentTimeSecs=A};
_.q.computeTimeString=function(A){A=A.toString();var H=Math.floor(Number(A)/3600),k=Math.floor(Number(A)%3600%60);return(H>0?H+":":"")+_.wd(Math.floor(Number(A)%3600/60),H>0?2:1)+":"+_.wd(k,2)};
_.q.computeTimeStringA11y=function(A){return _.PBr({seconds:A})};
_.q.getTimeParam=function(){return eZL(this.timeString)};
_.q.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var A={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},H;_.wN(_.A7(),(H=this.data)==null?void 0:H.trackingParams,A,7)};
_.q.onChangeStartAtTimestamp=function(){for(var A=this.startAtTimestamp.value.split(":"),H=0,k=1,d=A.length-1;d>=0;d--)H+=Number(A[d])*k,k*=60;this.updateTimeSecs(H);this.setTimestamp()};
_.q.onOpen=function(){var A=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var H=_.Kj();H?H.getPlayerPromise().then(function(k){k=k.getCurrentTime();A.updateTimeSecs(k)}):HmB()&&this.updateTimeSecs(HmB())};
_.q.setTimestamp=function(){var A=Math.floor(this.currentTimeSecs);_.Ud(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!A,timestamp:A||""}])};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],q$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],q$.prototype,"data",void 0);_.E([_.C({value:!1,notify:!0}),_.l("design:type",Boolean)],q$.prototype,"isStartAtChecked",void 0);_.E([_.C(),_.l("design:type",Number)],q$.prototype,"currentTimeSecs",void 0);
_.E([_.C({computed:"computeTimeString(currentTimeSecs)"}),_.l("design:type",String)],q$.prototype,"timeString",void 0);_.E([_.C({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.l("design:type",String)],q$.prototype,"timeStringA11y",void 0);_.E([_.ol("#start-at-timestamp"),_.l("design:type",Object)],q$.prototype,"startAtTimestamp",void 0);_.E([_.h6({is:"yt-start-at-renderer",disableElementRegistration:!0})],q$);
_.Q(q$,"yt-start-at-renderer",function(){if(CmR===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;SWf===void 0&&(SWf=document.createElement("template"));var d=SWf;k.call(H,d.content.cloneNode(!0),A.content.firstChild);CmR=A}A=CmR;return A},{mode:2});var K3n={},ayz=(K3n.WEB_REMIX="music.youtube.com",K3n),rg=function(){var A=_.a.apply(this,arguments)||this;A.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return A};
_.I(rg,_.a);_.q=rg.prototype;_.q.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.created=function(){this.embedHost_=ayz[_.pZ("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.q.ready=function(){_.Va(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.q.computeEmbedCode_=function(A,H,k,d,W){if(!A)return"";var z=A.videoId,u=A.fullListId,B=[];A.attributionId&&B.push("si="+A.attributionId);d||B.push("controls=0");k&&Number(H)>0&&B.push("start="+H);u&&(z="videoseries",B.push("list="+u));k="https://"+(W?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+z;A.clipId&&(B.push("clip="+A.clipId),B.push("clipt="+A.clipTiming));H=B.length>0?k+"?"+B.join("&amp;"):k;A.encryptedEmbedConfig&&B.push("embed_config="+JSON.stringify({enc:A.encryptedEmbedConfig}));
B=B.length>0?k+"?"+B.join("&amp;"):k;_.b("web_sharing_embed_preview_killswitch")?_.Va(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(B,A.previewWidth||854,A.previewHeight||480):(_.LO(this.videoPreviewContainer),_.Va(this.videoPreviewContainer).appendChild(this.buildIframeElement(B)));return this.getEmbedCode_(H,A.width||560,A.height||315)};
_.q.buildIframeElement=function(A){var H=document.createElement("iframe"),k,d;H.width=""+((d=(k=this.data)==null?void 0:k.previewWidth)!=null?d:854);var W,z;H.height=""+((z=(W=this.data)==null?void 0:W.previewHeight)!=null?z:480);_.qX(H,2,A);H.title="YouTube video player";H.frameBorder="0";H.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";H.referrerPolicy="strict-origin-when-cross-origin";H.allowFullscreen=!0;return H};
_.q.computeIsSquareAspectRatio_=function(A){return A.previewHeight&&A.previewWidth?A.previewHeight==A.previewWidth:!1};
_.q.computeShowEmbedOptions_=function(A){return!!A.enablePrivacyModeOptionLabel||!!A.showPlayerControlsOptionLabel};
_.q.getEmbedCode_=function(A,H,k){return'<iframe width="'+H+'" height="'+k+'" src="'+A+'" 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>'};
_.q.handleSignalActionCopyShareEmbedUrl_=function(){_.Va(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.q.handleSetTimestamp_=function(A){this.startAtTimeStamp_=(this.startAtChecked_=A.isSet)?A.timestamp:0};
_.q.closePanel_=function(){_.Ud(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.q.onEmbedCode_=function(){_.Va(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.q.onYtPopupClosed_=function(){_.LO(_.Va(this.hostElement).querySelector("#video-preview"))};
_.q.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.L(this.data.actionButtons[0],_.gN)&&this.ytRendererBehavior.logExplicitClick(_.L(this.data.actionButtons[0],_.gN))};
rg.prototype.onYtPopupClosed_=rg.prototype.onYtPopupClosed_;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],rg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],rg.prototype,"data",void 0);
_.E([_.C({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.l("design:type",String)],rg.prototype,"embedCode_",void 0);_.E([_.C({value:!0}),_.l("design:type",Boolean)],rg.prototype,"isPlayerControlsOptionChecked_",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],rg.prototype,"isPrivacyModeOptionChecked_",void 0);_.E([_.C({value:!1,notify:!0}),_.l("design:type",Boolean)],rg.prototype,"startAtChecked_",void 0);
_.E([_.C({value:0}),_.l("design:type",Number)],rg.prototype,"startAtTimeStamp_",void 0);_.E([_.C({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],rg.prototype,"isSquareAspectRatio_",void 0);_.E([_.ol("#video-preview"),_.l("design:type",HTMLElement)],rg.prototype,"videoPreviewContainer",void 0);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rg.prototype,"onYtPopupClosed_",null);
_.E([_.h6({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],rg);
_.Q(rg,"yt-sharing-embed-renderer",function(){if(DRz===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Xzf===void 0&&(Xzf=document.createElement("template"));var d=Xzf;k.call(H,d.content.cloneNode(!0),A.content.firstChild);DRz=A}A=DRz;return A},{mode:2});var cGI;var pzf=function(){return _.a.apply(this,arguments)||this};
_.I(pzf,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],pzf.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],pzf.prototype,"data",void 0);_.E([_.h6({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],pzf);
_.Q(pzf,"yt-sender-id-section-renderer",function(){if(cGI===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);cGI=A}A=
cGI;return A},{mode:1});var Q7p;var VnR;var u6=function(){return _.a.apply(this,arguments)||this};
_.I(u6,_.a);u6.prototype.closePopup=function(){_.Ud(this.hostElement,"yt-close-popup-action")};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],u6.prototype,"data",void 0);_.E([_.h6({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],u6);
_.Q(u6,"yt-community-post-section-renderer",function(){if(VnR===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Q7p===void 0&&(Q7p=document.createElement("template"));var d=Q7p;k.call(H,d.content.cloneNode(!0),A.content.firstChild);VnR=A}A=VnR;return A},{mode:2});var EpI;var URz;var lyp;var tnO;var NOp;var Mnf;var npp=function(){return _.a.apply(this,arguments)||this};
_.I(npp,_.a);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],npp.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],npp.prototype,"data",void 0);_.E([_.h6({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],npp);
_.Q(npp,"yt-share-start-time-with-context-renderer",function(){if(Mnf===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;NOp===void 0&&(NOp=document.createElement("template"));var d=NOp;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Mnf=A}A=Mnf;return A},{mode:2});var B1=function(){return _.a.apply(this,arguments)||this};
_.I(B1,_.a);B1.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],B1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],B1.prototype,"data",void 0);_.E([_.h6({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],B1);
_.Q(B1,"yt-share-panel-title-v15-renderer",function(){if(tnO===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;lyp===void 0&&(lyp=document.createElement("template"));var d=lyp;k.call(H,d.content.cloneNode(!0),A.content.firstChild);tnO=A}A=tnO;return A},{mode:2});var eS=function(){return _.a.apply(this,arguments)||this};
_.I(eS,_.a);eS.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],eS.prototype,"data",void 0);_.E([_.h6({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],eS);
_.Q(eS,"yt-share-panel-header-renderer",function(){if(URz===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;EpI===void 0&&(EpI=document.createElement("template"));var d=EpI;k.call(H,d.content.cloneNode(!0),A.content.firstChild);URz=A}A=URz;return A},{mode:2});var ZxB;var fyn;var wzO={};wzO.YtBindingExpressionsBehavior={identity:_.Kl,msg:function(A,H){H=H===void 0?{}:H;return _.$r(A,H,A)},
msgPlural:function(A,H){return _.AZ(A,H)},
getMusicIconFromType:function(A){return _.N0(A)}};var opn;var $RG;var A2O;var HVm=document.head,s4x=HVm.appendChild,kMI;
if(A2O===void 0){var dXI=document.createElement("template");_.Y(dXI,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath></defs></svg><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>');A2O=dXI}kMI=A2O;
s4x.call(HVm,kMI.content);var xy=function(){var A=_.a.apply(this,arguments)||this;A.screenLayer=7;return A};
_.I(xy,_.a);xy.prototype.getScreenLayer=function(){return this.screenLayer};
xy.prototype.onTap=function(A){A&&A.detail&&(A.detail.x||A.detail.y)&&_.Va(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.tx(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(A=this.getScreenLayer(),_.Ed(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:A}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.nP.Object.defineProperties(xy.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()}}});
xy.prototype.onTap=xy.prototype.onTap;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],xy.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],xy.prototype,"data",void 0);_.E([_.G("data.title"),_.l("design:type",Object),_.l("design:paramtypes",[])],xy.prototype,"title",null);
_.E([_.G("data.serviceName"),_.l("design:type",String),_.l("design:paramtypes",[])],xy.prototype,"icon",null);_.E([_.Ze("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],xy.prototype,"onTap",null);_.E([_.h6({is:"yt-share-target-renderer",disableElementRegistration:!0})],xy);
_.Q(xy,"yt-share-target-renderer",function(){if($RG===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;opn===void 0&&(opn=document.createElement("template"));var d=opn;k.call(H,d.content.cloneNode(!0),A.content.firstChild);$RG=A}A=$RG;return A},{mode:2});var WJ3;var ztm;var i6=function(){var A=_.a.apply(this,arguments)||this;A.SHARE_TARGET_WIDTH=70;A.SHARE_TARGET_MARGIN_RIGHT=8;A.PAGE_SCROLL_SPEED=9;A.actionMap={"yt-share-panel-reset-action":"onReset_"};return A};
_.I(i6,_.a);_.q=i6.prototype;_.q.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.q.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Va(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Va(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.q.onReset_=function(){if(_.Va(this.hostElement).querySelector("#list")){var A=_.Va(this.hostElement).querySelector("#list");var H=_.Va(this.hostElement).querySelector("#list");var k=H.offsetLeft,d=H.offsetParent;d||_.rwp(H)!="fixed"||(d=_.TE(H).documentElement);if(d){if(_.s3&&!_.Zs(58)){var W=_.Rck(d);k+=W.left}else Number(_.CQp)>=8&&!(Number(_.CQp)>=9)&&(W=_.Rck(d),k-=W.left);H=_.hc0(d)?d.clientWidth-(k+H.offsetWidth):k}else H=k;mnG(A,H);this.updateScrollButtons_()}};
_.q.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.q.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.q.onScrollWheel_=function(A){A.stopPropagation();A.preventDefault();var H=TYV(_.Va(this.hostElement).querySelector("#list"));A=Math.abs(A.deltaX)>Math.abs(A.deltaY)?A.deltaX:A.deltaY;mnG(_.Va(this.hostElement).querySelector("#list"),H+A);this.updateScrollButtons_()};
_.q.smoothScrollByOnePage_=function(A){var H=_.Va(this.hostElement).querySelector("#list"),k=(Math.floor(H.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,d=TYV(H),W=k*(A?1:-1),z=this.PAGE_SCROLL_SPEED,u=this.updateScrollButtons_.bind(this),B=0,h;(function T(){B+=z;h=B/k*2;mnG(H,d+W*(h<1?h*h:-h*h+4*h-2));B<k?window.requestAnimationFrame(T):u()})()};
_.q.updateScrollButtons_=function(){var A=TYV(_.Va(this.hostElement).querySelector("#list")),H=_.Va(this.hostElement).querySelector("#list").scrollWidth-_.Va(this.hostElement).querySelector("#list").clientWidth;_.Va(this.hostElement).querySelector("#scroll-button-back").hidden=A<=0;_.Va(this.hostElement).querySelector("#scroll-button-forward").hidden=A>=H};
i6.prototype.onScrollWheel_=i6.prototype.onScrollWheel_;i6.prototype.onDataChanged_=i6.prototype.onDataChanged_;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],i6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(wzO.YtBindingExpressionsBehavior),_.l("design:type",Object)],i6.prototype,"ytBindingExpressionsBehavior",void 0);
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],i6.prototype,"data",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i6.prototype,"onDataChanged_",null);_.E([_.Ze("wheel"),_.l("design:type",Function),_.l("design:paramtypes",[WheelEvent]),_.l("design:returntype")],i6.prototype,"onScrollWheel_",null);
_.E([_.h6({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],i6);
_.Q(i6,"yt-third-party-share-target-section-renderer",function(){if(ztm===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;WJ3===void 0&&(WJ3=document.createElement("template"));var d=WJ3;k.call(H,d.content.cloneNode(!0),A.content.firstChild);ztm=A}A=ztm;return A},{mode:2});var hL=function(){return _.a.apply(this,arguments)||this};
_.I(hL,_.a);hL.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"}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],hL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],hL.prototype,"data",void 0);_.E([_.h6({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],hL);
_.Q(hL,"yt-third-party-network-section-renderer",function(){if(fyn===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;ZxB===void 0&&(ZxB=document.createElement("template"));var d=ZxB;k.call(H,d.content.cloneNode(!0),A.content.firstChild);fyn=A}A=fyn;return A},{mode:2});var qNz;_.Sw(_.c(function(A){return _.x("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.x("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.x(_.HG,{data:function(){return A.data().firstPartyItems}},{listItemViewModel:_.G$})))},"ol"),"first-party-network-section-view-model",{props:{data:_.Ih}});var r2m=_.XO(["data:image/svg+xml;charset=UTF-8;base64,",""]),O$=function(){var A=_.a.apply(this,arguments)||this;A.screenLayer=7;A.qrCodeEnabled=_.b("web_enable_sharing_qr_code");A.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return A};
_.I(O$,_.a);_.q=O$.prototype;_.q.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"}}}};
_.q.attached=function(){this.JSC$23046_scroller&&(this.JSC$23046_scroller.dialogElement=this.hostElement.parentNode,this.JSC$23046_scroller.attached&&typeof this.JSC$23046_scroller.attached==="function"&&this.JSC$23046_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.q.onDataChanged=function(){var A=this,H;(H=this.data)!=null&&H.contents&&(this.hostElement.setAttribute("links-only","true"),_.lw(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.No(this,function(){_.Ed(A.hostElement,"yt-refit");A.focusSharePanelHeader()}))};
_.q.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.q.handleSetTimestamp=function(A){var H=this.shortUrl();A.isSet&&(H=_.Aj(H,"t",A.timestamp));this.maybeRenderQrCode(H)};
_.q.shortUrl=function(){var A,H=(A=this.data)==null?void 0:A.contents;if(H)for(A=0;A<H.length;A++){var k=void 0,d=void 0;if((k=H[A])==null?0:(d=k.thirdPartyNetworkSection)==null?0:d.copyLinkContainer){var W=d=k=void 0;return(W=_.L((k=H[A])==null?void 0:(d=k.thirdPartyNetworkSection)==null?void 0:d.copyLinkContainer,UOV))==null?void 0:W.shortUrl}}};
_.q.maybeRenderQrCode=function(A){var H=this,k,d,W,z,u,B,h,O,T;return _.e(function(m){if(m.nextAddress==1){k=_.Va(H.hostElement).querySelector("#qr-code");if(!H.qrCodeEnabled||!A)return k&&(k.style.display="none"),m.return();d=_.WxX(_.wj().resolve(_.M0),{iconName:"youtube",iconStyle:"youtube_fill"});W=document.createElement("div");return typeof d==="function"?(d(W),m.jumpTo(2)):m.yield(d,3)}m.nextAddress!=2&&(z=m.yieldResult,z(W));h=(u=W)==null?void 0:(B=u.firstChild)==null?void 0:B.firstChild;O=
document.createElement("img");T=_.y2f(r2m,btoa(h.outerHTML));O.onload=function(){var J={canvas:k,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:O},g=new knL;uIG(g,A);Bu_(g,!1,e7e(g));var v=g.modules,y=Object.assign({},t0B,J);v=structuredClone(v);J=v.length;var X,D=(X=y.canvas)!=null?X:document.createElement("canvas");X=y.cellSize;g=y.logo;var K,N=(K=y.logoSize)!=null?K:Math.floor(J/4);J%2!==N%2&&N++;var U=y.logoPadding,p=y.backgroundColor;K=J*X;var M=y.width,
Z=0;M&&(Z=y.padding,Z=Math.ceil(Z*K/(M-Z*2)),D.style.width=M+"px",D.style.height=M+"px");D.width!==K+Z*2&&(D.width=K+Z*2);D.height!==K+Z*2&&(D.height=K+Z*2);K=D.getContext("2d");y.autoClear&&K.clearRect(0,0,D.width,D.height);K.fillStyle=p;K.beginPath();K.roundRect(0,0,D.width,D.height,y.borderRadius);K.fill();K.save();K.translate(Z,Z);if(g)for(D=Math.floor(J-N)/2-U,U=Math.floor(J+N)/2+U,p=D;p<U;p++)for(M=D;M<U;M++)v[p][M]=!1;for(D=0;D<J;D++)for(U=0;U<J;U++)(D<7&&U<7||D<7&&U>=J-7||D>=J-7&&U<7)&&(v[D][U]=
!1);var WV;D=(WV=y.markerColor)!=null?WV:y.color;i0e(K,0,0,X,D);i0e(K,X*(J-7),0,X,D);i0e(K,0,X*(J-7),X,D);switch(y.cellStyle){case 0:WV=v;v=WV.length;D=y.cellSize;K.beginPath();for(U=0;U<v;U++)for(p=0;p<v;p++)WV[U][p]&&K.rect(U*D,p*D,D,D);K.fillStyle=y.color;K.fill();break;case 1:WV=v;v=WV.length;D=y.cellSize;U=D*y.relativeCircleSize;K.fillStyle=y.color;K.beginPath();for(y=0;y<v;y++)for(p=0;p<v;p++)WV[y][p]&&(K.beginPath(),K.ellipse((y+.5)*D,(p+.5)*D,U/2,U/2,0,0,2*Math.PI),K.fill());K.fill();break;
case 2:WV=v;v=WV.length;D=y.cellSize;K.fillStyle=y.color;y=[[1,1],[-1,1],[-1,-1],[1,-1]];K.beginPath();for(U=0;U<v;U++)for(p=0;p<v;p++)if(WV[U][p])K.roundRect(U*D,p*D,D,D,D/2),U+1<v&&WV[U+1][p]&&K.rect(U*D+D/2,p*D,D,D),p+1<v&&WV[U][p+1]&&K.rect(U*D,p*D+D/2,D,D);else{M=U*D+D/2;Z=p*D+D/2;for(var hA=0;hA<4;hA++){var qv=_.r(y[hA]),eN=qv.next().value;qv=qv.next().value;U+eN>=0&&U+eN<v&&p+qv>=0&&p+qv<v&&WV[U+eN][p]&&WV[U][p+qv]&&WV[U+eN][p+qv]&&(eN=hA*Math.PI/2,qv=D/2,K.moveTo(M+qv*Math.cos(eN),Z+qv*Math.sin(eN)),
K.arc(M,Z,D/2,eN,eN+Math.PI/2,!1),K.lineTo(M+qv*(Math.cos(eN)-Math.sin(eN)),Z+qv*(Math.cos(eN)+Math.sin(eN))),K.lineTo(M+qv*Math.cos(eN),Z+qv*Math.sin(eN)))}}K.fill()}g&&K.drawImage(g,(J-N)*X/2,(J-N)*X/2,N*X,N*X);K.restore();k.style.removeProperty("display")};
O.src=_.NR(T);_.EN(m)})};
_.q.hasCommunityPostRenderer=function(){var A,H,k,d;return!!((A=this.data)==null?0:(H=A.header)==null?0:(k=H.sharePanelHeaderRenderer)==null?0:(d=k.communityPost)==null?0:d.communityPostSectionRenderer)};
_.q.onTapClose=function(){_.Ud(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.q.getScreenLayer=function(){return this.screenLayer};
O$.prototype.onDataChanged=O$.prototype.onDataChanged;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],O$.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],O$.prototype,"data",void 0);
_.E([_.C({value:_.$r("SBOX_INAPPROPRIATE_CANCEL")}),_.l("design:type",String)],O$.prototype,"closeButtonAriaLabel",void 0);_.E([_.ol("yt-share-panel-header-renderer"),_.l("design:type",HTMLElement)],O$.prototype,"header",void 0);_.E([_.C(),_.l("design:type",Object)],O$.prototype,"qrCodeEnabled",void 0);_.E([_.ol("#scroller"),_.l("design:type",Object)],O$.prototype,"JSC$23046_scroller",void 0);
_.E([_.s6("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],O$.prototype,"onDataChanged",null);_.E([_.h6({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],O$);
_.Q(O$,"yt-unified-share-panel-renderer",function(){if(qNz===void 0){var A=document.createElement("template");_.Y(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-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 yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-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 yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);qNz=A}A=qNz;return A},{mode:1});var u9n={};
u9n.YtUnlimitedFamilyInterstitialBehavior=[_.NY.YtOpenPopupBehavior,_.nM.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(A){A=_.WMj(_.X_(A),"yt-button-renderer");return A?A.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(A){this.dialogHistory_.push(A)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var A=this.popFromHistory();if(A){var H={openPopupAction:{popupType:"DIALOG",popup:{}}};H.openPopupAction.popup[A.renderer]=A.data;this.showingPreviousDialog_=!0;this.openPopup(H)}},
handleOpenPopupAction_:function(A){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var H=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(d){return!!A.openPopupAction.popup[d]}),k=this.getElementName_();
H&&this.data&&(this.pushToHistory({renderer:k,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(A){if(A=_.L(A,EG_))this.loading=!0,_.Ud(this.hostElement,"yt-open-create-family-dialog",[A,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var A=this.hostElement.nodeName.split("-").slice(1).map(function(H){return""+H[0].toUpperCase()+H.slice(1).toLowerCase()}).join("");
return A[0].toLowerCase()+A.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var BUO;var etp;var RR=function(){return _.a.apply(this,arguments)||this};
_.I(RR,_.a);_.q=RR.prototype;_.q.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}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Ud(this.hostElement,"yt-register-create-family-dialog");_.Va(this.hostElement).querySelector("#thumbnail").onShow()};
_.q.fireOnCloseCommand_=function(){var A;((A=this.data)==null?0:A.onCloseCommand)&&_.NT(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.q.onYtServiceRequestSent_=function(A,H){H&&H.endpoint&&_.L(H.endpoint,_.fH)||(this.loading=!0)};
_.q.onYtServiceRequestCompleted_=function(){var A=this.hostElement.parentElement;A.close&&A.close();this.loading=!1};
_.q.openPopupHandler_=function(A){if(A.detail==this){var H;((H=this.data)==null?0:H.onOpenCommands)&&_.NT(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.q.closePopupHandler_=function(A,H){this.fireOnCloseCommand_();if(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1){var k;((k=this.data)==null?0:k.onDismissCommands)&&_.NT(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.q.dataChanged_=function(){this.loading=!1};
RR.prototype.dataChanged_=RR.prototype.dataChanged_;RR.prototype.closePopupHandler_=RR.prototype.closePopupHandler_;RR.prototype.openPopupHandler_=RR.prototype.openPopupHandler_;RR.prototype.onYtServiceRequestCompleted_=RR.prototype.onYtServiceRequestCompleted_;RR.prototype.onYtServiceRequestSent_=RR.prototype.onYtServiceRequestSent_;_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],RR.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(u9n.YtUnlimitedFamilyInterstitialBehavior),_.l("design:type",Object)],RR.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],RR.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],RR.prototype,"loading",void 0);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],RR.prototype,"onYtServiceRequestSent_",null);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],RR.prototype,"onYtServiceRequestCompleted_",null);
_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],RR.prototype,"openPopupHandler_",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],RR.prototype,"closePopupHandler_",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RR.prototype,"dataChanged_",null);
_.E([_.h6({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],RR);
_.Q(RR,"yt-unlimited-family-message-interstitial-renderer",function(){if(etp===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;BUO===void 0&&(BUO=document.createElement("template"));var d=BUO;k.call(H,d.content.cloneNode(!0),A.content.firstChild);etp=A}A=etp;return A},{mode:2});var xX7;var iVp;var Tu=function(){return _.a.apply(this,arguments)||this};
_.I(Tu,_.a);Tu.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"}}}};
Tu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Va(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(A){A.onShow()});
_.Va(this.hostElement).querySelector("#main-thumbnail").onShow()};
Tu.prototype.onButtonTap_=function(A){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(A)};
Tu.prototype.computeMainThumbnailWidth_=function(A){return A&&A.length!==0?72:96};
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Tu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.E([_.P(u9n.YtUnlimitedFamilyInterstitialBehavior),_.l("design:type",Object)],Tu.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Tu.prototype,"data",void 0);
_.E([_.C({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.l("design:type",Number)],Tu.prototype,"mainThumbnailWidth_",void 0);_.E([_.C({value:function(){return this.onButtonTap_.bind(this)}}),
_.l("design:type",Function)],Tu.prototype,"boundButtonTap_",void 0);_.E([_.h6({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Tu);
_.Q(Tu,"yt-unlimited-family-profile-interstitial-renderer",function(){if(iVp===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;xX7===void 0&&(xX7=document.createElement("template"));var d=xX7;k.call(H,d.content.cloneNode(!0),A.content.firstChild);iVp=A}A=iVp;return A},{mode:2});var htG;var OVm;var mq=function(){var A=_.a.apply(this,arguments)||this;A.sliderAriaValueText_=null;A.selectedIndex_=0;A.messages={PAUSE_SLIDER:_.$r("PAUSE_SLIDER",void 0,"Pause Duration")};return A};
_.I(mq,_.a);_.q=mq.prototype;_.q.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_]]"}}}}}};
_.q.onPopupOpened_=function(A){A.detail==this&&_.b("enable_premium_voluntary_pause")&&(_.Ud(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.setDialogData=function(A){this.data=A;this.resetSlider_()};
_.q.dataChanged_=function(){this.data&&this.resetSlider_()};
_.q.onSubmitTap_=function(){if(this.data.confirmCommand){var A=this.data.confirmCommand;_.L(A,_.D6J)&&_.tx(this.hostElement,[A,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.q.onExitButtonTap_=function(){_.Ud(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.q.closePopupHandler_=function(A,H){(H&&H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.handleOnDismissCommands_()};
_.q.onSliderChange_=function(){this.selectedIndex_=_.Va(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.q.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.q.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.q.resetSlider_=function(){if(this.data){var A=this.data.defaultEndOptionIndex||0,H=_.Va(this.hostElement).querySelector("#id-pause-slider");if(H.immediateValue<A)for(;H.immediateValue!=A;)H.increment();else if(A<H.immediateValue)for(;H.immediateValue!=A;)H.decrement();this.selectedIndex_=A;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.q.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.NT(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.q.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.NT(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.q.onYtServiceRequestSent=function(){this.loading=!0};
_.q.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
mq.prototype.onYtServiceRequestCompleted=mq.prototype.onYtServiceRequestCompleted;mq.prototype.onYtServiceRequestSent=mq.prototype.onYtServiceRequestSent;mq.prototype.closePopupHandler_=mq.prototype.closePopupHandler_;mq.prototype.dataChanged_=mq.prototype.dataChanged_;mq.prototype.onPopupOpened_=mq.prototype.onPopupOpened_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],mq.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],mq.prototype,"loading",void 0);_.E([_.C(),_.l("design:type",Number)],mq.prototype,"selectIndexMax_",void 0);_.E([_.C(),_.l("design:type",Object)],mq.prototype,"selectedData_",void 0);
_.E([_.C(),_.l("design:type",Object)],mq.prototype,"sliderAriaValueText_",void 0);_.E([_.C({value:function(){return this.onSubmitTap_.bind(this)}}),
_.l("design:type",Function)],mq.prototype,"onButtonTap_",void 0);_.E([_.C({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.l("design:type",Function)],mq.prototype,"onSecondaryTap_",void 0);_.E([_.C(),_.l("design:type",Object)],mq.prototype,"messages",void 0);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],mq.prototype,"onPopupOpened_",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mq.prototype,"dataChanged_",null);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],mq.prototype,"closePopupHandler_",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],mq.prototype,"onYtServiceRequestSent",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],mq.prototype,"onYtServiceRequestCompleted",null);_.E([_.h6({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],mq);
_.Q(mq,"yt-unplugged-pause-membership-dialog-renderer",function(){if(OVm===void 0){var A=document.createElement("template");_.Y(A,'\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>');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;htG===void 0&&(htG=document.createElement("template"));var d=htG;k.call(H,d.content.cloneNode(!0),A.content.firstChild);OVm=A}A=OVm;return A},{mode:2});var Rtf;var TUn;var JL=function(){return _.a.apply(this,arguments)||this};
_.I(JL,_.a);JL.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Bn("vcBalanceRenderer")}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],JL.prototype,"data",void 0);_.E([_.h6({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],JL);
_.Q(JL,"yt-vc-offer-layout-header-renderer",function(){if(TUn===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;Rtf===void 0&&(Rtf=document.createElement("template"));var d=Rtf;k.call(H,d.content.cloneNode(!0),A.content.firstChild);TUn=A}A=TUn;return A},{mode:2});var mXw;var J2W;var g7m;var bVR;var gg=function(){return _.a.apply(this,arguments)||this};
_.I(gg,_.a);gg.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.nP.Object.defineProperties(gg.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)}}});
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.uGe.YtTappableItemBehavior),_.l("design:type",Object)],gg.prototype,"ytTappableItemBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],gg.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.G("data.accessibilityText"),_.l("design:type",String),_.l("design:paramtypes",[])],gg.prototype,"ariaLabel",null);_.E([_.C({reflectToAttribute:!0}),_.G("data.style"),_.l("design:type",String),_.l("design:paramtypes",[])],gg.prototype,"vcOfferStyle",null);_.E([_.G("data.style","data.titleText"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gg.prototype,"showTitleText",null);_.E([_.h6({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],gg);
_.Q(gg,"yt-vc-offer-renderer",function(){if(bVR===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;g7m===void 0&&(g7m=document.createElement("template"));var d=g7m;k.call(H,d.content.cloneNode(!0),A.content.firstChild);bVR=A}A=bVR;return A},{mode:2});var b6=function(){return _.a.apply(this,arguments)||this};
_.I(b6,_.a);b6.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}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],b6.prototype,"data",void 0);_.E([_.h6({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],b6);
_.Q(b6,"yt-vc-offer-layout-renderer",function(){if(J2W===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;mXw===void 0&&(mXw=document.createElement("template"));var d=mXw;k.call(H,d.content.cloneNode(!0),A.content.firstChild);J2W=A}A=J2W;return A},{mode:2});var LJI;var v7n;var y2w;var j4z;var LW=function(){return _.a.apply(this,arguments)||this};
_.I(LW,_.a);LW.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}}}}}};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],LW.prototype,"data",void 0);_.E([_.h6({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],LW);
_.Q(LW,"yt-ypc-offers-modal-top-bar-renderer",function(){if(j4z===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;y2w===void 0&&(y2w=document.createElement("template"));var d=y2w;k.call(H,d.content.cloneNode(!0),A.content.firstChild);j4z=A}A=j4z;return A},{mode:2});var v1=function(){return _.a.apply(this,arguments)||this};
_.I(v1,_.a);v1.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"}}}}};
v1.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
v1.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var A=this.scrollable;A.attached&&typeof A.attached==="function"&&A.attached()};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],v1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.ol("#scrollable"),_.l("design:type",Object)],v1.prototype,"scrollable",void 0);_.E([_.C(),_.l("design:type",Object)],v1.prototype,"data",void 0);_.E([_.h6({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],v1);
_.Q(v1,"yt-ypc-offers-modal-renderer",function(){if(v7n===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;LJI===void 0&&(LJI=document.createElement("template"));var d=LJI;k.call(H,d.content.cloneNode(!0),A.content.firstChild);v7n=A}A=v7n;return A},{mode:2});var IKp;var YNz;var y2=function(){return _.a.apply(this,arguments)||this};
_.I(y2,_.a);_.q=y2.prototype;_.q.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}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Va(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.q.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Ud(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.q.onYtPopupOpened_=function(A,H){(H==null?void 0:H.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.NT(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.q.onYtPopupClosed_=function(A,H){this.continueButtonTapped||H&&(H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.data.onDismissCommands&&_.NT(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.q.onYtServiceRequestError_=function(A){this.set("showSpinner",!1);_.YH(this.hostElement,A.detail.error.message)};
_.q.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.b("enable_ypc_spinners")?_.Ud(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
y2.prototype.onYtServiceRequestError_=y2.prototype.onYtServiceRequestError_;y2.prototype.onYtPopupClosed_=y2.prototype.onYtPopupClosed_;y2.prototype.onYtPopupOpened_=y2.prototype.onYtPopupOpened_;y2.prototype.onYtServiceRequestCompleted_=y2.prototype.onYtServiceRequestCompleted_;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.l("design:type",Object)],y2.prototype,"data",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],y2.prototype,"showSpinner",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],y2.prototype,"continueButtonTapped",void 0);_.E([_.C({value:function(){return this.onContinueTapped_.bind(this)}}),
_.l("design:type",Function)],y2.prototype,"bindOnContinueTapped_",void 0);_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],y2.prototype,"onYtServiceRequestCompleted_",null);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],y2.prototype,"onYtPopupOpened_",null);
_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],y2.prototype,"onYtPopupClosed_",null);_.E([_.Ze("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],y2.prototype,"onYtServiceRequestError_",null);_.E([_.h6({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],y2);
_.Q(y2,"yt-ypc-upgrade-dialog-renderer",function(){if(YNz===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;IKp===void 0&&(IKp=document.createElement("template"));var d=IKp;k.call(H,d.content.cloneNode(!0),A.content.firstChild);YNz=A}A=YNz;return A},{mode:2});var P1m;var GMx;var jS=function(){return _.a.apply(this,arguments)||this};
_.I(jS,_.a);jS.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
jS.prototype.computeHasButtons_=function(A){return!(!A.dismissButton&&!A.confirmButton)};
jS.prototype.computeStyle_=function(A){return A||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],jS.prototype,"ytEventForwardingBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],jS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],jS.prototype,"positionType",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.l("design:type",Boolean)],jS.prototype,"hasButtons_",void 0);_.E([_.C({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.l("design:type",Boolean)],jS.prototype,"style_",void 0);_.E([_.h6({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],jS);
_.Q(jS,"yt-bubble-hint-renderer",function(){if(GMx===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;P1m===void 0&&(P1m=document.createElement("template"));var d=P1m;k.call(H,d.content.cloneNode(!0),A.content.firstChild);GMx=A}A=GMx;return A},{mode:2});var FJW;var XXf;var IR=function(){var A=_.Zc.apply(this,arguments)||this;A.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return A};
_.I(IR,_.Zc);_.q=IR.prototype;_.q.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.q.attached=function(){var A=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){A.$.thumbnail.onShow();A.$["header-image"].onShow()})};
_.q.handleCheckBoxUpdateAction_=function(A){this.canShowCheckboxEnabledConfirmButton=A};
_.q.computeUseOverlayForSpinner_=function(A,H){return!!A&&H};
_.q.computeShowSpinner_=function(A,H){return A||!!H};
_.q.fireOnCloseActions_=function(){var A,H=_.r(((A=this.data)==null?void 0:A.onClosedActions)||[]);for(A=H.next();!A.done;A=H.next())this.ytRendererBehavior.resolveCommand(A.value)};
_.q.fireOnOpenCommands_=function(A){var H,k=(H=this.data)==null?void 0:H.onOpenCommands;if(k)for(A.stopImmediatePropagation(),A=_.r(k),H=A.next();!H.done;H=A.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.q.fireOnDismissCommands_=function(A){var H,k=(H=this.data)==null?void 0:H.onDismissCommands;if(k)for(A.stopImmediatePropagation(),A=_.r(k),H=A.next();!H.done;H=A.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.q.openPopupHandler_=function(A){A.detail==this&&this.fireOnOpenCommands_(A)};
_.q.closePopupHandler_=function(A,H){_.li(this,"yt-confirm-dialog-close-action",[H]);this.fireOnCloseActions_();(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.fireOnDismissCommands_(A)};
_.q.onHeaderImageChanged_=function(){var A;((A=this.data)==null?0:A.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.q.computeHasHeaderImageWidth_=function(A){return A!=void 0};
_.q.computeHasLoadingMessage=function(A){return!!A};
_.q.onHeaderImageWidthChanged_=function(){var A,H=(A=this.data)==null?void 0:A.headerImageWidth;if(H){if(A=1.25*H*2+H,this.$.main.style.width=A+"px",H=this.$.scroller.firstElementChild)H.style.minWidth=A+"px"}else this.$.main.style.width="100%"};
_.q.onThumbnailChanged_=function(){var A;((A=this.data)==null?0:A.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")};
_.q.onYtNavigate_=function(A){A=_.X_(A);A instanceof Node&&_.EJ(this.$["confirm-button"]).contains(A)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.q.computePrimaryIsCancel_=function(A){return A};
_.q.computeIsCancelButtonHidden_=function(A){return A.skipCancelButton||!A.cancelButton};
_.q.computeIsCheckboxHidden_=function(A){return!A.checkbox};
_.q.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.q.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.q.onYtServiceRequestCompleted_=function(){var A;((A=this.data)==null?0:A.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.nP.Object.defineProperties(IR,{template:{configurable:!0,enumerable:!0,get:function(){if(XXf===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;FJW===void 0&&(FJW=document.createElement("template"));var d=FJW;k.call(H,d.content.cloneNode(!0),A.content.firstChild);XXf=A}A=XXf;return A}}});
IR.prototype.onYtServiceRequestCompleted_=IR.prototype.onYtServiceRequestCompleted_;IR.prototype.onYtServiceRequestSent_=IR.prototype.onYtServiceRequestSent_;IR.prototype.onThumbnailLoaded_=IR.prototype.onThumbnailLoaded_;IR.prototype.onYtNavigate_=IR.prototype.onYtNavigate_;IR.prototype.onThumbnailChanged_=IR.prototype.onThumbnailChanged_;IR.prototype.onHeaderImageWidthChanged_=IR.prototype.onHeaderImageWidthChanged_;IR.prototype.onHeaderImageChanged_=IR.prototype.onHeaderImageChanged_;
IR.prototype.closePopupHandler_=IR.prototype.closePopupHandler_;IR.prototype.openPopupHandler_=IR.prototype.openPopupHandler_;_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],IR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);
_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],IR.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],IR.prototype,"data",void 0);_.E([_.C({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.l("design:type",Boolean)],IR.prototype,"primaryIsCancel",void 0);_.E([_.C({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.l("design:type",Boolean)],IR.prototype,"isCancelButtonHidden",void 0);
_.E([_.C({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.l("design:type",Boolean)],IR.prototype,"isCheckboxHidden",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],IR.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.E([_.C({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.l("design:type",Boolean)],IR.prototype,"useOverlayForSpinner_",void 0);
_.E([_.C({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.l("design:type",Boolean)],IR.prototype,"showSpinner_",void 0);_.E([_.C({value:!1}),_.l("design:type",Boolean)],IR.prototype,"isActionInProgress_",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.l("design:type",Boolean)],IR.prototype,"hasHeaderImageWidth_",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.l("design:type",Boolean)],IR.prototype,"hasLoadingMessage",void 0);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],IR.prototype,"openPopupHandler_",null);_.E([_.Ze("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],IR.prototype,"closePopupHandler_",null);
_.E([_.fF("data.headerImage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IR.prototype,"onHeaderImageChanged_",null);_.E([_.fF("data.headerImageWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IR.prototype,"onHeaderImageWidthChanged_",null);_.E([_.fF("data.thumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IR.prototype,"onThumbnailChanged_",null);
_.E([_.Ze("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],IR.prototype,"onYtNavigate_",null);_.E([_.Ze("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IR.prototype,"onThumbnailLoaded_",null);_.E([_.Ze("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Lj]),_.l("design:returntype")],IR.prototype,"onYtServiceRequestSent_",null);
_.E([_.Ze("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.Gc]),_.l("design:returntype")],IR.prototype,"onYtServiceRequestCompleted_",null);_.E([_.h6({is:"yt-confirm-dialog-renderer",noInjection:!0})],IR);var DXp;var SNm;var Yy=function(){return _.a.apply(this,arguments)||this};
_.I(Yy,_.a);Yy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Va(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Yy.prototype.computeConfirmButton_=function(A){var H={text:A.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};A.confirmNavigationEndpoint?H.navigationEndpoint=A.confirmNavigationEndpoint:A.confirmServiceEndpoint&&(H.serviceEndpoint=A.confirmServiceEndpoint);return H};
Yy.prototype.computeShowTitle_=function(A){return!(A==null||!A.title)};
_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Yy.prototype,"data",void 0);_.E([_.C({computed:"computeShowTitle_(data)"}),_.l("design:type",Boolean)],Yy.prototype,"showTitle",void 0);_.E([_.h6({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Yy);
_.Q(Yy,"yt-fancy-dismissible-dialog-renderer",function(){if(SNm===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;DXp===void 0&&(DXp=document.createElement("template"));var d=DXp;k.call(H,d.content.cloneNode(!0),A.content.firstChild);SNm=A}A=SNm;return A});var C1z;var KJm;var P1=function(){var A=_.a.apply(this,arguments)||this;A.spinnerActive=!1;return A};
_.I(P1,_.a);P1.prototype.created=function(){ur_(2201)};
P1.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
P1.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
P1.prototype.onIronOverlayClosed=P1.prototype.onIronOverlayClosed;P1.prototype.onIronOverlayOpened=P1.prototype.onIronOverlayOpened;_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.LI),_.l("design:type",Object)],P1.prototype,"tpYtIronOverlayBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],P1.prototype,"data",void 0);_.E([_.C(),_.l("design:type",Object)],P1.prototype,"spinnerActive",void 0);
_.E([_.Ze("iron-overlay-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],P1.prototype,"onIronOverlayOpened",null);_.E([_.Ze("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],P1.prototype,"onIronOverlayClosed",null);_.E([_.h6({is:"yt-loading-renderer",disableElementRegistration:!0})],P1);
_.Q(P1,"yt-loading-renderer",function(){if(KJm===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;C1z===void 0&&(C1z=document.createElement("template"));var d=C1z;k.call(H,d.content.cloneNode(!0),A.content.firstChild);KJm=A}A=KJm;return A},{mode:2});var aKn;var c2n;var Gu=function(){var A=_.a.apply(this,arguments)||this;A.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);A.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);A.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.I(Gu,_.a);_.q=Gu.prototype;_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.q.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.q.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.q.openPopupHandler_=function(A){A.detail===this.hostElement&&this.hostElement.hidden&&_.Ud(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.q.onDismissButtonTap_=function(){var A;this.closeOnDismissButton_.has(((A=this.data)==null?void 0:A.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Ud(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.q.onAcceptButtonTap_=function(){var A;this.closeOnAcceptButton_.has(((A=this.data)==null?void 0:A.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Ud(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.q.computeHasHeader_=function(A){return!!A.headerBackgroundImage};
_.q.computeLayoutStyle_=function(A){return A};
_.q.computePopupSize_=function(A){return A};
_.q.computeIconType_=function(A){return A.dialogIcon&&A.dialogIcon.iconType?A.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":A.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":A.dialogIcon.iconType:""};
_.q.computeIsLogo_=function(A){return!!A.dialogIcon&&!!A.dialogIcon.iconType&&(A.dialogIcon.iconType==="YOUTUBE_LOGO"||A.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||A.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.q.computeHasCustomLogo=function(A){return!(A==null||!A.headerForegroundImage)};
_.q.computeCustomLogo=function(A,H){if(A!=null&&A.headerForegroundImage)return A.headerForegroundImageDark?H?A.headerForegroundImageDark:A.headerForegroundImage:A.headerForegroundImage};
_.q.computeHeaderBackgroundImage=function(A,H){if(A!=null&&A.headerBackgroundImage)return H&&(A==null?0:A.headerBackgroundImageDark)?A.headerBackgroundImageDark:A.headerBackgroundImage};
_.q.shouldShowIconContainer=function(A,H){return A&&!H};
_.q.shouldShowNonYouTubeIcon=function(A,H){return!A&&!H};
_.q.getLogoImageId=function(A){var H,k,d;return(A=(H=this.computeCustomLogo(A,this.isDarkTheme))==null?void 0:(k=H.thumbnails)==null?void 0:(d=k[0])==null?void 0:d.height)&&A%31===0?"custom-logo-with-padding":"custom-logo"};
Gu.prototype.openPopupHandler_=Gu.prototype.openPopupHandler_;Gu.prototype.dataChanged_=Gu.prototype.dataChanged_;_.E([_.P(_.KM.YtRendererstamperBehavior),_.l("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.l("design:type",Boolean)],Gu.prototype,"isDarkTheme",void 0);
_.E([_.C({computed:"computeCustomLogo(data, isDarkTheme)"}),_.l("design:type",Object)],Gu.prototype,"customLogo",void 0);_.E([_.C({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.l("design:type",Object)],Gu.prototype,"headerBackgroundImage",void 0);_.E([_.C(),_.l("design:type",Object)],Gu.prototype,"data",void 0);_.E([_.C({computed:"computeHasHeader_(data)"}),_.l("design:type",Boolean)],Gu.prototype,"hasHeader",void 0);
_.E([_.C({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.l("design:type",Object)],Gu.prototype,"layoutStyle",void 0);_.E([_.C({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.l("design:type",Object)],Gu.prototype,"popupSize",void 0);_.E([_.C({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Gu.prototype,"hasLogo",void 0);
_.E([_.C({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Gu.prototype,"hasCustomLogo",void 0);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gu.prototype,"dataChanged_",null);_.E([_.Ze("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Gu.prototype,"openPopupHandler_",null);
_.E([_.h6({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Gu);
_.Q(Gu,"yt-upsell-dialog-renderer",function(){if(c2n===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;aKn===void 0&&(aKn=document.createElement("template"));var d=aKn;k.call(H,d.content.cloneNode(!0),A.content.firstChild);c2n=A}A=c2n;return A},{mode:2});var pXO=_.c(function(A){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.x(_.R,{cond:A.title,then:function(H){return _.x("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},H)}}))},"pl"),Q4O=_.c(function(A){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.x(_.HG,{data:A.closeButton},{buttonViewModel:function(H){return _.x("div",null,_.x(_.U7,{data:H.data}))}}))},"ql"),V_p=_.c(function(A){var H=A.data;
return _.x(_.sD,null,_.x("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.x("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.x(_.R,{cond:function(){return!!H().image&&!!H().title},
then:function(){return _.x(_.GA,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.x("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.x(_.R,{cond:function(){return H().title},
then:function(k){return _.x("h3",{class:"miniAppGameInfoDialogViewModelTitle"},k)}}),_.x(_.R,{cond:function(){return H().primaryGenre},
then:function(k){return _.x("span",{class:"miniAppGameInfoDialogViewModelGenre"},k)}}))),_.x(_.R,{cond:function(){var k=H().description;
return k&&k.length<=150},
then:function(){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.x("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return H().description}))}}))},"rl"),E77=_.c(function(A){var H=A.ageRating;
return _.x("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.x(_.GA,{data:function(){return{sources:[{url:H().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.x("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.x(_.j$,{text:function(){return H().attributedLabel},
noPreWrap:!0})))},"sl"),UXz=_.c(function(A){A=A.infoRows;
var H=_.wj().resolve(_.QR),k=_.b("enable_displaying_ppn");return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.x(_.Ix,{each:A},function(d){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.x(_.R,{cond:function(){return d.label},
then:function(W){return _.x("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},W)}}),_.x(_.R,{cond:function(){return d.attributedLabel},
then:function(W){return _.x("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.x(_.j$,{text:W,noPreWrap:!0}))}}),_.x(_.R,{cond:function(){return d.value},
then:function(W){return _.x("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},W)}}),_.x(_.R,{cond:function(){return d.attributedValue},
then:function(W){return _.x("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.x(_.j$,{text:W,noPreWrap:!0}))}}),_.x(_.R,{cond:function(){return d.ageRating},
then:function(W){return _.x(E77,{ageRating:W})}}))}),_.x(_.R,{cond:function(){return k&&H.clientData.has("post_play_nonce")},
then:function(){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.x("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.x("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},H.getData("post_play_nonce")))}}))},"tl"),lKO=_.c(function(A){var H=A.data;
return _.x("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.x(pXO,{title:function(){return H().dialogTitle}}),_.x(V_p,{data:H}),_.x(_.R,{cond:function(){return H().infoRow},
then:function(k){return _.x(UXz,{infoRows:k})}}),_.x(Q4O,{closeButton:function(){return H().closeButton}}))},"ul");
lKO.idomCompat=!0;_.Sw(lKO,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;return _.x("yt-gulp-triggering-dialog-view-model",{class:_.ER("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.x(_.GA,{data:function(){return H().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.x("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.x("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.x("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.R,{cond:function(){return H().bodyText},
then:function(k){return _.x(_.Ix,{each:k},function(d){return _.x("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.x(_.j$,{text:d}))})}})),_.x("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.x(_.HG,{data:function(){return H().dismissButton}},{buttonViewModel:function(k){return _.x("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.x(_.U7,{data:k.data}))}}),_.x(_.HG,{data:function(){return H().actionButton}},{buttonViewModel:function(k){return _.x("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.x(_.U7,{data:k.data}))}}))))},"vl"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Ih}});var t_f=_.c(function(A){var H=A.data;A=_.DS(function(){return H().agreements},[]);
return _.x("installment-agreements-view-model",{class:_.ER("ytInstallmentAgreementsViewModelHost")},_.x(_.Ix,{each:A},function(k){return _.x("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.x("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.x(_.j$,{text:k.label})),_.x("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.x(_.HG,{data:function(){return k.openButton}},{buttonViewModel:_.U7})))}))},"wl");
t_f.idomCompat=!0;var NUn=_.c(function(A){var H=_.r(_.C0(function(){var M,Z;return((M=A.data().createPlaylistDialogFormSchema)==null?0:(Z=M.initialValues)==null?0:Z.title)?A.data().createPlaylistDialogFormSchema.initialValues.title:""})),k=H.next().value,d=H.next().value;
H=_.r(_.C0(function(){A.data();return!1}));
var W=H.next().value,z=H.next().value;H=_.r(_.C0(function(){A.data();return!1}));
var u=H.next().value,B=H.next().value;H=_.r(_.C0(function(){var M,Z;return(M=A.data().createPlaylistDialogFormSchema)==null?void 0:(Z=M.initialValues)==null?void 0:Z.visibility}));
var h=H.next().value,O=H.next().value;H=_.r(_.C0(function(){A.data();return!1}));
var T=H.next().value,m=H.next().value;H=_.r(_.C0(function(){var M,Z;return(M=A.data().createPlaylistDialogFormSchema)==null?void 0:(Z=M.initialValues)==null?void 0:Z.isCollaborative}));
var J=H.next().value,g=H.next().value,v=_.GP("div");_.CA(function(){var M=v.value.querySelector("textarea");M&&(M.value=k())},"axFRaf");
_.CZ(function(){var M;zFV((M=A.data().createPlaylistDialogFormSchema)==null?void 0:M.id,{onSubmit:function(){var Z=k();var WV=h(),hA=J(),qv=A.data();Z={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:Z,privacyStatus:WV,videoIds:qv.videoIds,sourcePlaylistId:qv.sourcePlaylistId,params:hA?qv.createPlaylistParamsCollaborationEnabled:qv.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.wj().resolve(_.J7).resolveCommand(Z)},
isValid:function(){return W()&&!u()&&!T()}})});
var y=function(M){if(M!==void 0&&(d(M),!W()&&M.length>0&&z(!0),W())){var Z=xBG(A.data());if(Z){var WV=Z.minLength;Z=Z.maxLength;WV&&M.length<WV?B(!0):Z&&M.length>Z?B(!0):B(!1)}}},X=function(){var M=!(!J()||h()!=="PRIVATE");
m(M)},D=function(M){M!==void 0&&(O(M),X())},K=function(){if(T())return hZL(A.data())},N=function(){g(!J());
X()},U=function(){return{validate:function(M){if(W()){var Z=xBG(A.data());
if(Z){var WV=Z.minLength;Z=Z.translations;if(WV&&M.length<WV)return Z==null?void 0:Z.minLengthErrorMessage}}}}},p=function(){var M=xBG(A.data()),Z=M==null?void 0:M.maxLength,WV;
M=M==null?void 0:(WV=M.translations)==null?void 0:WV.maxLengthErrorMessage;if(Z&&M)return{maxChars:Z,errorMessage:M}};
return _.x("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.x("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:v},_.x(_.HG,{data:function(){return A.data().playlistTitle}},{textFormFieldViewModel:function(M){return _.x(XaB,{data:M.data,
text:k,onInput:y,validation:U,characterLimit:p})},
textFieldViewModel:function(M){return _.x(FsG,{data:M.data,text:k,controlledMode:!0,onInput:y,validation:U,characterLimit:p})}})),_.x("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.x(_.HG,{data:function(){return A.data().playlistVisibility}},{dropdownViewModel:function(M){return _.x(E4e,{data:M.data,
onSelected:D,error:K})}})),_.x(_.R,{cond:function(){return!!A.data().playlistCollaborate},
then:function(){return _.x("div",null,_.x(_.HG,{data:function(){return A.data().playlistCollaborate}},{switchListItemViewModel:function(M){return _.x(_.kfB,{data:M.data,
onTap:N})}}))}}))},"yl");var M_W=_.c(function(A){var H=A.data;return _.x("upsell-offer-table-cell-content-view-model",null,_.x("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.x(_.Yl,null,_.x(_.y$,{when:function(){var k;return(k=H().icon)==null?void 0:k.iconType}},function(){return _.x("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.x(_.n3,{icon:function(){var k;
return(k=H().icon)==null?void 0:k.iconType.toString()}}))}),_.x(_.y$,{when:function(){return H().title}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return H().title}})}),_.x(_.y$,{when:function(){return H().subtitle}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return H().subtitle}})}),_.x(_.y$,{when:function(){return H().infoText}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return H().infoText}})}),_.x(_.y$,{when:function(){return H().featureDescription}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return H().featureDescription}})}),_.x(_.y$,{when:function(){return H().note}},function(){return _.x(_.j$,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return H().note}})})),_.x(_.R,{cond:function(){var k;
return(k=H().icon)==null?void 0:k.iconAccessibilityText},
then:function(){return _.x("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var k;return(k=H().icon)==null?void 0:k.iconAccessibilityText})}})))},"zl");
M_W.idomCompat=!0;var n73=_.c(function(A){var H=A.data;var k=A.cellIndex;var d=A.rowIndex;return _.x("upsell-offer-table-cell-view-model",null,_.x("div",{class:_.ER("ytUpsellOfferTableCellViewModelCellWrapper",function(){return H().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":H().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var W,z;return"cell-"+((W=d==null?void 0:d())!=null?W:0)+"-"+((z=k==null?void 0:k())!=null?z:0)},
role:function(){return H().isFirstRow?"columnHeader":H().isFirstColumn?"rowheader":"gridcell"}},_.x(_.HG,{data:function(){return H().contents}},{upsellOfferTableCellContentViewModel:M_W})))},"Al");
n73.idomCompat=!0;var ZVG=_.c(function(A){var H=A.data;var k=A.upsellTableIsFirstRow;var d=A.rowIndex;var W=function(){return(k==null?0:k())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},z=function(){return(k==null?0:k())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.x("ytm-upsell-offer-table-row-view-model",null,_.x("div",{class:function(){return(k==null?0:k())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(d==null?void 0:d())+"-1 cell-"+(d==null?void 0:d())+"-2"}},_.x(_.HG,{data:function(){return H().rowHeaderCell}},{upsellOfferTableCellViewModel:function(u){return _.x("div",{class:W},_.x(n73,{data:u.data,
cellIndex:0,rowIndex:d}))}}),_.x("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.x(_.HG,{data:function(){return H().contentCells}},{upsellOfferTableCellViewModel:function(u,B){return _.x("div",{class:z},_.x(n73,{data:u.data,
cellIndex:function(){return B()+1},
rowIndex:d}))}}))))},"Bl");
ZVG.idomCompat=!0;var fKR=_.c(function(A){var H=A.data;return _.x("ytm-upsell-offer-table-view-model",null,_.x("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.x("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.x(_.HG,{data:function(){return H().rows}},{upsellOfferTableRowViewModel:function(k,d){return _.x(ZVG,{data:k.data,
upsellTableIsFirstRow:function(){return d()===0},
rowIndex:d})}}))))},"Cl");
fKR.idomCompat=!0;var wXI=_.c(function(A){var H=function(){return A.data()},k=_.DS(A.noPadding,!1),d=function(){var z,u;
return(u=(z=H().logo.accessibilityData)==null?void 0:z.label)!=null?u:""},W={};
return _.x("upsell-view-model",{class:_.ER("ytUpsellViewModelHost",(W.ytUpsellViewModelHostNoPadding=function(){return k()},W.ytUpsellViewModelHostWide=function(){return H().offerTable!==void 0},W))},_.x("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.x(_.R,{cond:function(){return _.vG(H().logo)},
then:function(z){return _.x(_.GA,{data:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:d})}})),_.x("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.x(_.j$,{text:function(){return H().title}})),_.x("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.x(_.Ix,{each:function(){var z;
return(z=H().subtitles)!=null?z:[]},
keyBy:"INDEX"},function(z){var u={};return _.x("div",{class:_.ER("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(u.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return H().offerTable!==void 0},u))},_.x(_.j$,{text:z}))})),_.x("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.x(_.Ix,{each:function(){var z;
return(z=H().benefitInfos)!=null?z:[]},
keyBy:"INDEX"},function(z){return _.x(_.R,{cond:function(){return z().info},
then:function(u){return _.x("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.x(_.n3,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.x(_.j$,{text:u}))}})})),_.x(_.R,{cond:function(){return H().offerTable!==void 0},
then:function(){return _.x("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.x(_.HG,{data:function(){return H().offerTable}},{upsellOfferTableViewModel:function(z){return _.x(fKR,{data:z.data})}}))}}),_.x("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.x(_.Ix,{each:function(){var z;
return(z=H().legalInfos)!=null?z:[]},
keyBy:"INDEX"},function(z){var u={};return _.x("div",{class:_.ER("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(u.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return H().offerTable!==void 0},u))},_.x(_.j$,{text:z}))})))},"Dl");var o7f=_.c(function(A){var H=A.data;A={};A=(A.ytMiniAppScoreChallengeViewModelScoreRadial=!0,A.ytMiniAppScoreChallengeViewModelDarkScoreRadial=OOL(),A);return _.x("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.x("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return H().title}),_.x("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return H().subtitle}),_.x("div",{class:_.u2(A)},_.x("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return H().score})),_.x("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return H().prompt}))},"El");var $Xy=function(){this.store=_.FI();this.formId=""};
$Xy.prototype.onInit=function(A){A.formId&&(this.formId=A.formId,this.store.dispatch(_.p8({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
$Xy.prototype.cleanup=function(){this.store.dispatch(_.p8({type:"RESET_COMMAND_MAP"}))};var Aex=_.c(function(A){function H(B){if(B&&(B=_.L(B,_.WG)))return Object.assign({},B,{isSelected:z()})}
var k=_.r(_.C0(function(){var B,h;return(h=(B=_.L(A.data().option,_.WG))==null?void 0:B.isSelected)!=null?h:!1})),d=k.next().value,W=k.next().value,z=d;
_.CZ(function(){var B;zFV((B=A.data().formSchema)==null?void 0:B.id,{onSubmit:function(){var h=_.wj().resolve(_.J7),O=!!A.data().selectedCommand,T=!!A.data().unselectedCommand;if(z()){if(O)var m=A.data().selectedCommand}else T&&(m=A.data().unselectedCommand);m=_.h7(m);H(A.data().option)&&!m?(h="",!O&&T?h="selected ":O&&!T&&(h="unselected "),O=new _.Ti("No "+h+"command found for SelectionListItemFormViewModel"),_.I3(O)):m&&h.resolveCommand(m)},
isValid:function(){return!0}})});
var u=function(){W(!z())};
_.aV(function(){var B,h,O=(B=A.data())==null?void 0:(h=B.formSchema)==null?void 0:h.id;O&&_.$E()().delete(O)});
return _.x("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.x("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.x(_.j$,{text:function(){return A.data().paragraph}})),_.x(_.R,{cond:function(){return H(A.data().option)},
then:function(B){return _.x(_.G$,{data:B,isCompact:!0,hideSelectionTextChevron:!0,onTap:u,disableHorizontalPadding:!0})}}))},"Fl");var HYm=_.c(function(A){var H=A.data;var k=A.disablePadding;var d=A.className;var W=_.GP("yt-dialog-header-view-model"),z=function(){var h=H().imageBanner;a:switch(H().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var O="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:O="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:h,style:O,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},u=function(){return H().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
B=function(){return H().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.CZ(function(){var h=function(){_.Ud(W.value,"yt-refit-popups-action")},O;
(O=W.value)==null||O.addEventListener("image-loaded",h);_.aV(function(){var T;(T=W.value)==null||T.removeEventListener("image-loaded",h)})});
A={};return _.x("yt-dialog-header-view-model",{el:W,class:_.ER(d,(A.ytDialogHeaderViewModelHost=!0,A.ytDialogHeaderViewModelHostDisablePadding=k,A.ytDialogHeaderViewModelHostCentered=B,A))},_.x(_.R,{cond:function(){return H().imageBanner},
then:function(){var h={};return _.x("div",{class:_.ER(d,(h.ytDialogHeaderViewModelBanner=!0,h.ytDialogHeaderViewModelBannerFullBleed=u,h)),style:_.Mt({"max-height":function(){return H().assetContainerMaxHeight!==void 0?H().assetContainerMaxHeight+"px":void 0}})},_.x(_.to,{data:z,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.x(_.R,{cond:function(){return H().headerBlock},
then:function(){var h={};return _.x("div",{class:_.ER("ytDialogHeaderViewModelHeaderBlock",(h.ytDialogHeaderViewModelHeaderBlockCentered=B,h))},_.x(_.HG,{data:function(){return H().headerBlock}},{contentPreviewImageViewModel:function(O){return _.x(_.to,{data:O.data,
notifyOnLoaded:!0})}}))}}),_.x(_.R,{cond:function(){return H().customBanner},
then:function(h){var O={};return _.x("div",{class:_.ER("ytDialogHeaderViewModelCustomAssetContainer",(O.ytDialogHeaderViewModelCustomAssetContainerCentered=B,O))},_.x(_.HG,{data:h},{avatarStackViewModel:_.mE}))}}),_.x(_.R,{cond:function(){return H().headline},
then:function(h){return _.x("h2",null,_.x(_.j$,{text:h,className:"ytDialogHeaderViewModelText"}))}}))},"Gl");
HYm.idomCompat=!0;var saG=_.c(function(A){var H=_.FUW(function(){return A.data().formId}),k=H.submitForm,d=H.isValid;
return _.x("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.x(_.HG,{data:function(){return A.data().panelFooter}},{panelFooterViewModel:function(W){return _.x(JF,{data:W.data,
disablePadding:!0,disablePrimaryButton:function(){return!d()},
onClickPrimaryButton:function(){k()}})}}))},"Hl");var kOR=_.c(function(A){var H=function(){var k,d;return(d=(k=_.L(A.data().rendererContext,_.zF))==null?void 0:k.label)!=null?d:""};
return _.x("yt-dialog-image-content-view-model",{class:_.ER("ytDialogImageContentViewModelHost",A.className)},_.x(_.R,{cond:function(){return _.vG(A.data().image)},
then:function(k){var d={};return _.x("div",{style:_.Mt((d.width=(0,_.v6)(function(){var W;return(W=A.data().imageMaxWidth)!=null?W:""}),d)),
class:"ytDialogImageContentViewModelImage"},_.x(_.GA,{data:k,alt:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.x(_.j$,{text:function(){return A.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Il");var z4W=_.c(function(A){var H=_.SD(A,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),k=H.elRefCallback;A=H.Icon;var d=H.Asset,W=H.assetType,z=H.Title,u=H.LeadingActionHeader,B=H.TrailingActionHeader,h=H.headerPosition,O=H.Content,T=H.buttonLayout,m=H.buttonStyle,J=H.primaryButtonWiz,g=H.secondaryButtonWiz,v=H.contentAlignment,y=H.isFullscreen,X=H.width,D=H.maxHeight,K=H.isHeaderWizDefined,N=H.Header,U=H.isFooterWizDefined,
p=H.Footer;H=_.GP("dialog-layout",function(Cl){k==null||k(Cl)});
var M=J?function(){var Cl={};return J({buttonOverrides:function(){return{style:(m==null?void 0:m())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.ER((Cl["yt-spec-dialog-layout__dialog-layout-button"]=!0,Cl["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(T==null?void 0:T())===0||(T==null?void 0:T())===2},Cl))})}:void 0,Z=g?function(){var Cl={};
return g({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.ER((Cl["yt-spec-dialog-layout__dialog-layout-button"]=!0,Cl["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(T==null?void 0:T())===0||(T==null?void 0:T())===2},Cl))})}:void 0,WV=function(){return(!!z||!!u||!!B)&&h()===0},hA={},qv={},eN={},mr={};
return _.x("dialog-layout",{el:H,class:_.ER((hA["yt-spec-dialog-layout"]=!0,hA["yt-spec-dialog-layout--dialog-layout-fullscreen"]=y,hA["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!y()},hA["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return D()===1},hA["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(W==null?void 0:W())===1},hA)),
style:function(){return(X==null?void 0:X())!==void 0?"width: "+X()+"px;":""}},A?_.x("div",{class:_.ER((qv["yt-spec-dialog-layout__dialog-layout-icon"]=!0,qv["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!d&&h()===1},qv["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return v()===1},qv))},_.x(A,null)):null,_.x(_.R,{cond:K,
then:function(){return N?_.x("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.x(N,null)):null},
else:function(){return _.x(_.sD,null,_.x(_.R,{cond:WV,then:function(){return _.x(dxR,{contentAlignment:v,LeadingActionHeader:u,TrailingActionHeader:B,Title:z,isAboveAsset:!!d})}}),d?_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.x(d,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.x("div",{class:_.ER((eN["yt-spec-dialog-layout__dialog-layout-container"]=!0,eN["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(v==null?void 0:v())===1},
eN["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!z&&!(N&&K())||!!d&&(h==null?void 0:h())===0},eN))},_.x(_.R,{cond:function(){return z&&!N&&(h==null?void 0:h())===1},
then:function(){return _.x(dxR,{contentAlignment:v,LeadingActionHeader:u,TrailingActionHeader:B,Title:z,isAboveAsset:!1})}}),O?_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.x(O,null))):null,_.x(_.R,{cond:U,
then:function(){return p?_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.x(p,null)):null}}),M||Z?_.x(W_7,{footerClasses:_.ER((mr["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,mr["yt-spec-dialog-layout__dialog-layout-footer"]=!0,mr["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(T==null?void 0:T())===2},mr["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(T==null?void 0:T())===1},mr)),
PrimaryButton:M,SecondaryButton:Z}):null))},"Jl"),dxR=_.c(function(A){var H=_.SD(A,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),k=H.contentAlignment,d=H.LeadingActionHeader;A=H.Title;var W=H.TrailingActionHeader,z=H.isAboveAsset,u=H.enableLeadingActionHeader;H={};return _.x("div",{class:_.ER((H["yt-spec-dialog-layout__dialog-header-container"]=!0,H["yt-spec-dialog-layout__dialog-header"]=!0,H["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=z,H["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(k==null?void 0:k())===1&&u()},H))},_.x(_.R,{cond:function(){return u()},
then:function(){return d?_.x("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.x(d,null)):null}}),A?_.x("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.x(A,null)):null,W?_.x("div",null,_.x(W,null)):null)},"Kl"),W_7=_.c(function(A){var H=A.footerClasses;
var k=A.PrimaryButton;A=A.SecondaryButton;return _.x("div",{class:H},A?_.x(A,null):null,k?_.x(k,null):null)},"Ll");var qGn=new _.SE("TIME_PICKER_VIEW_MODEL_TOKEN");var re3=_.c(function(A){var H=A.data;return _.x("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.x("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.x(_.HG,{data:function(){return H().avatar}},{avatarViewModel:_.RW})),_.x("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.j$,{text:function(){return H().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ml");var utp=_.c(function(A){return _.x("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.x(_.j$,{text:function(){return A.data().inviteMessage}})),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.x(_.j$,{text:function(){return A.data().attributedAccountSectionHeaderText}})),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.x(_.HG,{data:function(){return A.data().accountAvatar}},{avatarViewModel:_.RW}),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.x(_.j$,{text:function(){return A.data().accountName}}),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.x(_.j$,{text:function(){return A.data().handle}}))),_.x(_.HG,{data:function(){return A.data().trailingButton}},{buttonViewModel:_.U7})),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.x(_.j$,{text:function(){return A.data().termsOfService}})))},"Nl");var B53=_.c(function(A){var H=A.data;return _.x("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.x("div",{class:"ytAccessConfirmationViewModelContent"},_.x(_.HG,{data:function(){var k;return(k=H().avatar)!=null?k:H().dualAvatar}},{dualAvatarViewModel:function(k){return _.x(_.fyI,{data:k.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(k){return _.x(_.TU,{data:k.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.x("h2",{class:"ytAccessConfirmationViewModelTitle"},_.x(_.j$,{text:function(){return H().title}})),_.x(_.j$,{text:function(){return H().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Ol");var e4W=_.c(function(A){var H=function(){var B,h;return(B=A.data().formSchema)==null?void 0:(h=B.initialValues)==null?void 0:h.selectedLanguages},k=_.r(_.C0(function(){return H()})),d=k.next().value,W=k.next().value,z={};
_.CA(function(){var B=A.data().formSchema,h=B==null?void 0:B.submitConfig;A.data()!==z&&(z=A.data(),B&&h&&WjR(B.id,{isValid:function(){var O,T=(O=d())!=null?O:[],m;O=(m=H())!=null?m:[];if(T.length!==O.length)return!0;m=new Set(O);T=_.r(T);for(O=T.next();!O.done;O=T.next())if(!m.has(O.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:d()||[]}}},
submitConfig:h}))},"iCaJcc");
var u=function(B){var h=B.key;if(h){var O;if(h&&((O=d())==null?0:O.includes(h))){var T;W((T=d())==null?void 0:T.filter(function(m){return m!==h}))}else W([].concat(_.fV(d()||[]),[h]))}};
return _.x("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.x(_.HG,{data:function(){return A.data().checkboxGroup}},{checkboxGroupViewModel:function(B){return _.x(ICG,{data:B.data,
onItemTap:u,selectedKeys:d,controlledMode:!0,disableHorizontalPadding:A.disableHorizontalPadding})}}))},"Ql");var xxB=_.c(function(A){var H=A.data;var k=void 0;A=_.r(_.C0(function(){var T;return((T=_.L(H().content,gGL))==null?void 0:T.defaultSelectedKey)||""}));
var d=A.next().value,W=A.next().value,z,u=function(){W("");var T;(T=k)==null||T.cleanup()};
_.CZ(function(){k=new $Xy;window.addEventListener("yt-popup-closed",u)});
_.CA(function(){if(k&&z!==H().formId&&(k.onInit(H()),(z=H().formId)&&d())){var T=k,m={key:d()};m.command&&T.store.dispatch(GLL(z,m.command))}},"bo7oA");
_.aV(function(){window.removeEventListener("yt-popup-closed",u)});
var B=function(T,m,J){m.key&&J&&m.key!==d()&&(W(m.key),k&&m.command&&k.store.dispatch(GLL(J,m.command)))},h=function(){if(_.L(H().content,gGL))return!(d==null?0:d())},O=_.wj().resolve(_.fZ(qGn));
return _.x("yt-dialog-view-model",{class:_.ER("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.x(z4W,{Header:function(){return _.x(_.HG,{data:function(){return H().header}},{dialogHeaderViewModel:function(T){return _.x(HYm,{data:T.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!H().header},
Content:function(){return _.x(_.HG,{data:function(){return H().customContent?H().customContent:H().content}},Object.assign({},{basicContentViewModel:_.YG,
createPlaylistDialogFormViewModel:NUn,collaborativePlaylistInviteMessageViewModel:utp,preferredLanguageSettingsPanelViewModel:function(T){return _.x(e4W,{data:T.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:o7f,radioButtonGroupViewModel:function(T){var m=T.data;return _.x(yiL,{data:m,selectedKey:d,onSelected:B,groupName:function(){return m().formId}})},
selectionListItemFormViewModel:Aex,upsellViewModel:function(T){return _.x(wXI,{data:T.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:re3,installmentAgreementsViewModel:t_f,accessConfirmationViewModel:B53,listViewModel:function(T){return _.x(_.emB,{data:T.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:kOR},O&&{timePickerViewModel:O}))},
Footer:function(){return _.x(_.HG,{data:function(){return H().footer}},{panelFooterViewModel:function(T){return _.x(JF,{data:T.data,
disablePadding:!0,disablePrimaryButton:h})},
formPanelFooterViewModel:saG,formFooterViewModel:function(T){return _.x(mjL,{data:T.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!H().footer}}))},"Sl");
xxB.idomCompat=!0;_.Sw(xxB,"yt-dialog-view-model",{props:{data:_.Ih},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var iYz=_.c(function(A){var H=A.data;return _.x("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.x(_.R,{cond:function(){return H().title},
then:function(k){return _.x("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.x(_.j$,{text:k,className:"ytPanelHeaderViewModelTitle"}))}}),_.x(_.R,{cond:function(){return H().subtitle},
then:function(k){return _.x(_.j$,{text:k,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Tl"),h4B=_.c(function(A){var H=A.data;
var k=_.B8v(function(){return H().rendererContext});
A={};return _.x("yt-panel-header-view-model",{class:_.ER("ytPanelHeaderViewModelHost",(A.ytPanelHeaderViewModelHostHideDivider=function(){return!!H().shouldHideDivider},A.ytPanelHeaderViewModelHostCompact=function(){return!!H().subtitle},A)),
"aria-label":function(){var d;return(d=k())==null?void 0:d.label}},_.x(_.R,{cond:function(){return _.hc(H().rendererContext)},
then:function(){return _.x(_.nMw,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.i2(H().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.x(iYz,{data:H}))},
else:function(){return _.x(iYz,{data:H})}}),_.x("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.x(_.HG,{data:function(){return H().trailingButtons}},{buttonViewModel:function(d){return _.x(_.U7,{data:d.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Ul");
h4B.idomCompat=!0;var OYB=_.c(function(A){var H=_.lc(function(z){var u;if((u=A.skipContentClick)==null?0:u.call(A))return!1;A.onContentWrapperClick(z);return!0}),k,d,W;
return _.x("div",{class:_.ER("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return A.isAnimating()?"transform: translateY("+A.currentY()+"px);transition: 0.2s":""}},(k=A.header)==null?void 0:k.call(A),_.x("div",{id:A.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Mt({"max-height":(0,_.v6)(A.maxHeightForContentWrapper)}),"on:scroll":_.lc(function(z){return A.onScroll(z),!1}),
"on:touchmove":_.lc(function(z){return z.stopPropagation(),!1})},_.x("div",{el:_.P8(A.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":H},(d=A.body)==null?void 0:d.call(A))),(W=A.footer)==null?void 0:W.call(A))},"Vl");
OYB.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var R4R=_.c(function(A){var H=_.DS(A.leadingLabel),k=_.DS(A.trailingLabel),d=_.DS(A.footerButtonType),W=function(){return H()||k()||A.hasPrimaryButton()||A.hasSecondaryButton()},z={},u=_.ER("yt-spec-bottom-sheet-layout__primary-button",(z["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return d()===0&&A.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return d()===1&&A.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return d()===2&&A.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return d()===3&&A.hasPrimaryButton()},z));
z={};var B=_.ER("yt-spec-bottom-sheet-layout__secondary-button",(z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return d()===1&&A.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return d()===2&&A.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return d()===3&&A.hasPrimaryButton()},z));
return _.x(_.R,{cond:A.hasFooterOverride,then:function(){var h;return _.x(_.sD,null,(h=A.footerOverride)==null?void 0:h.call(A))},
else:function(){return _.x(_.R,{cond:W,then:function(){return _.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.x(_.R,{cond:function(){return H()||k()},
then:function(){var h={};return _.x("div",{class:_.ER("yt-spec-bottom-sheet-layout__footer-label-wrapper",(h["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!A.hasPrimaryButton()},h))},_.x(_.R,{cond:H,
then:function(){return _.x("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},H)}}),_.x(_.R,{cond:k,
then:function(){return _.x("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},k)}}))}}),_.x(_.R,{cond:function(){return A.hasPrimaryButton()||A.hasSecondaryButton()},
then:function(){var h={};return _.x("div",{class:_.ER("yt-spec-bottom-sheet-layout__footer-button-wrapper",(h["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.pkA,h))},_.x(_.R,{cond:function(){return A.hasSecondaryButton()&&d()!==0},
then:function(){var O;return _.x("div",{class:B},(O=A.secondaryButton)==null?void 0:O.call(A))}}),_.x(_.R,{cond:A.hasPrimaryButton,
then:function(){var O;return _.x("div",{class:u},(O=A.primaryButton)==null?void 0:O.call(A))}}))}}))}})}})},"Wl");
R4R.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var T5B=_.c(function(A){var H=_.DS(A.title),k=_.DS(A.subtitle);return _.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:A.headerId,"on:touchstart":_.lc(function(d){var W;(W=A.touchstart)==null||W.call(A,d);return!1}),
"on:touchmove":_.lc(function(d){var W;(W=A.touchmove)==null||W.call(A,d);return!1}),
"on:touchend":_.lc(function(d){var W;(W=A.touchend)==null||W.call(A,d);return!1})},_.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.x(_.R,{cond:A.hasHeaderOverride,
then:function(){var d;return _.x(_.sD,null,(d=A.headerOverride)==null?void 0:d.call(A))},
else:function(){var d={};return _.x("div",{class:_.ER((d["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,d["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=H,d))},_.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.x(_.R,{cond:H,then:function(){return _.x(_.sD,null,_.x("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},H),_.x(_.R,{cond:k,then:function(){return _.x("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
k)}}))}})),_.x(_.R,{cond:function(){return H()&&A.hasActionHeader()},
then:function(){var W;return _.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(W=A.actionHeader)==null?void 0:W.call(A))}}))}}))},"Xl");
T5B.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.c(function(A){function H(WV){if(!N&&typeof MutationObserver!=="undefined"){var hA={childList:!0};"MutationObserver"in window&&(N=new MutationObserver(k.bind(void 0,WV)),N.observe(WV,hA))}}
function k(WV){typeof N!=="undefined"&&(U["content-wrapper"]===void 0&&(U["content-wrapper"]=WV.children[0].clientHeight),y(U["content-wrapper"]),v()>X()||D(v()))}
function d(){g(window.innerHeight);v()>X()||D(v());p.isFullScreen[0]()&&v()>X()?M().dispatch("Snap To Full Screen",{maxHeight:K()}):M().dispatch("Snap To Neutral Position",{maxHeight:X()})}
function W(WV){document.body.style.overscrollBehavior="none";WV.preventDefault();M().dispatch("Touch Start",{event:WV})}
function z(WV){WV.preventDefault();M().dispatch("Touch Move",{event:WV,contentScrollable:v()>X(),fullContentWrapperHeight:K(),contentWrapperHeight:X(),heightMap:U,contentWrapperId:"content-wrapper",header:gXI(A),footer:gXI(A),headerDivHeight:U["bottom-sheet-header"],footerDivHeight:U["bottom-sheet-footer"]})}
function u(){document.body.style.overscrollBehavior="";p.isFullScreen[0]()?p.currentY[0]()>=60?M().dispatch("Snap To Neutral Position",{maxHeight:X()}):M().dispatch("Snap To Full Screen",{maxHeight:K()}):p.currentY[0]()>=60?B():p.currentY[0]()<=-60&&v()>X()?M().dispatch("Snap To Full Screen",{maxHeight:K()}):M().dispatch("Snap To Neutral Position",{maxHeight:X()})}
function B(){M().dispatch("Close Sheet",{clientHeight:J(),maxHeight:0});setTimeout(function(){JK_()},250)}
var h=_.GP("div"),O=_.GP("div"),T=_.r(_.RV(window.innerHeight,void 0,"CmOsU")),m=T.next().value;T=T.next().value;var J=m,g=T;T=_.r(_.RV(0,void 0,"p0Flhb"));m=T.next().value;T=T.next().value;var v=m,y=T;T=_.r(_.C0(function(){var WV=gXI(A);return.6*J()-RZG(WV)-TSB(WV)}));
m=T.next().value;T=T.next().value;var X=m,D=T,K=function(){var WV=gXI(A),hA=J(),qv=U["bottom-sheet-header"],eN=U["bottom-sheet-footer"];return hA-(WV.hasHeaderFn&&qv!==void 0?qv:RZG(WV))-(WV.hasFooterFn&&eN!==void 0?eN:TSB(WV))-24-24},N=null,U={},p={initialY:_.RV(0,void 0,"sxdESd"),
currentY:_.RV(0,void 0,"GZzqeb"),isAnimating:_.RV(!1,void 0,"vJBupc"),isFullScreen:_.RV(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.C0(X)},M=function(){var WV=null;return function(){if(!WV){var hA={initialY:p.initialY[0](),currentY:p.currentY[0](),isAnimating:p.isAnimating[0](),isFullScreen:p.isFullScreen[0](),maxHeightForContentWrapper:p.maxHeightForContentWrapper[0]()};WV=mBe(hA)}return WV}}();
_.CZ(function(){window.addEventListener("resize",d);M().subscribe(function(WV){p.initialY[1](WV.initialY);p.currentY[1](WV.currentY);p.isAnimating[1](WV.isAnimating);p.isFullScreen[1](WV.isFullScreen);p.maxHeightForContentWrapper[1](WV.maxHeightForContentWrapper)});
requestAnimationFrame(function(){h.value&&(U["bottom-sheet-header"]=h.value.clientHeight);O.value&&(U["bottom-sheet-footer"]=O.value.clientHeight)})});
_.aV(function(){window.removeEventListener("resize",d);N&&(N.disconnect(),N=null)});
var Z=_.ER({"bottom-sheet-content-without-icon":function(){var WV;return!((WV=A.shouldShowIcons)==null?0:WV.call(A))}});
return _.x("bottom-sheet-layout",null,_.x(OYB,{contentWrapperId:"content-wrapper",isAnimating:function(){return p.isAnimating[0]()},
currentY:function(){return p.currentY[0]()},
maxHeightForContentWrapper:function(){return p.maxHeightForContentWrapper[0]()},
shouldShowIcons:A.shouldShowIcons,skipContentClick:A.skipContentClick,onScroll:function(){var WV=document.getElementById("bottom-sheet-header"),hA=document.getElementById("content-wrapper");if(WV&&hA){var qv={};qv=(qv["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,qv["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,qv);WV.className=hA.scrollTop>1?_.u2(qv):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:JK_,contentWrapperEl:function(WV){H(WV);requestAnimationFrame(function(){k(WV)})},
header:function(){return _.x("div",{el:h},_.x(T5B,{touchstart:W,touchmove:z,touchend:u,title:A.headerTitle,subtitle:A.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:A.headerFn,hasHeaderOverride:A.hasHeaderFn,actionHeader:A.headerActionHeader,hasActionHeader:A.hasHeaderActionHeader}))},
footer:function(){return _.x("div",{el:O},_.x(R4R,{footerButtonType:A.footerButtonType,leadingLabel:A.footerLeadingLabel,trailingLabel:A.footerTrailingLabel,primaryButton:A.footerPrimaryButton,hasPrimaryButton:A.hasFooterPrimaryButton,secondaryButton:A.footerSecondaryButton,hasSecondaryButton:A.hasFooterSecondaryButton,footerOverride:A.footerFn,hasFooterOverride:A.hasFooterFn}))},
body:function(){return _.x(_.R,{cond:A.hasContentFn,then:function(){var WV;return _.x("div",{class:Z},(WV=A.contentFn)==null?void 0:WV.call(A))}})}}))},"Yl").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var mxB=_.c(function(A){var H=_.wj().resolve(_.x0);return _.x("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.lc(function(){return void H.closeSheet()})},_.x(_.R,{cond:function(){return!!A.header},
then:function(){return _.x("div",{class:"ytContextualSheetLayoutHeaderContainer"},A.header())}}),_.x(_.R,{cond:function(){return!!A.content},
then:function(){return _.x("div",{class:"ytContextualSheetLayoutContentContainer"},A.content())}}),_.x(_.R,{cond:function(){return!!A.footer},
then:function(){return _.x("div",{class:"ytContextualSheetLayoutFooterContainer"},A.footer())}}))},"Zl");
mxB.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var Jey=_.c(function(A){var H=A.data;var k=_.wj().resolve(_.J7),d=_.GP("yt-sheet-view-model",function(W){if(_.b("web_focus_first_element_sheet")||!_.b("sheet_focus_first_killswitch"))return W.addEventListener("focus",function(){kyI(W)}),function(){W.removeEventListener("focus",function(){kyI(W)})}});
A={};return _.x("yt-sheet-view-model",{"on:mousedown":_.lc(function(W){_.b("sheet_focus_first_killswitch")||W.currentTarget!==W.target&&W.preventDefault()}),
"on:focus":_.lc(function(){_.b("sheet_focus_first_killswitch")||kyI(d.value)}),
"on:mouseleave":_.lc(function(){var W,z=H==null?void 0:(W=H())==null?void 0:W.rendererContext,u;(W=(u=_.L(z,_.R5))==null?void 0:u.onHoverEnd)&&k.resolveCommand(W)}),
class:_.ER("ytSheetViewModelHost",(A.ytSheetViewModelContextual=!0,A.ytSheetViewModelDisableBackdropFilter=_.b("web_disable_backdrop_filter"),A)),el:d,tabindex:-1},_.x(_.R,{cond:H,then:function(W){return _.x(mxB,{header:function(){return _.x(_.HG,{data:function(){return W().header}},{panelHeaderViewModel:h4B})},
content:function(){return _.x(_.HG,{data:function(){return W().content}},{listViewModel:function(z){return _.x(_.emB,{data:z.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:wXI,miniAppScoreChallengeViewModel:o7f})},
footer:function(){return _.x(_.HG,{data:function(){return W().footer}},{panelFooterViewModel:JF})}})}}))},"$l");
Jey.idomCompat=!0;_.Sw(Jey,"yt-sheet-view-model",{props:{data:_.Ih}});var bYO=_.c(function(A){var H=function(){var k;return(k=A.data().enableDebuggingFeatures)!=null?k:!1};
return _.x("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.x(_.Ix,{each:function(){var k;return(k=A.data().stickers)!=null?k:[]}},function(k){return _.x(gdx,{data:function(){return k},
debugMode:H})}))},"am"),gdx=_.c(function(A){var H=_.SD(A,{debugMode:!1}).debugMode,k=_.DS(function(){var h;
return(h=A.data().region)==null?void 0:h.w},0),d=_.DS(function(){var h;
return(h=A.data().region)==null?void 0:h.h},0),W=_.DS(function(){var h;
return(h=A.data().region)==null?void 0:h.x},0),z=_.DS(function(){var h;
return(h=A.data().region)==null?void 0:h.y},0),u=_.lc(function(){var h=A.data().onTap;
h&&_.mu(h)}),B={};
return _.x("div",{class:_.ER("ytStoriesStickerLayerViewModelSticker",(B.ytStoriesStickerLayerViewModelDebugMode=H,B)),style:_.Mt({width:function(){return 100*k()+"%"},
height:function(){return 100*d()+"%"},
left:function(){return 100*W()+"%"},
top:function(){return 100*z()+"%"},
"flex-direction":function(){return bO_(A.data().flexDirection)},
"justify-content":function(){return LN_(A.data().justifyContent)},
"align-items":function(){return vX_(A.data().alignItems)}}),
"on:click":u},_.x(_.HG,{data:function(){return A.data().button||A.data().toggleButton}},{buttonViewModel:function(h){return _.x(_.U7,{data:h.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(h){return _.x(_.qc,{data:h.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"bm");var vdw=_.c(function(A){var H=function(){return A.data()},k={},d=_.r(_.RV(!1,void 0,"LkwKDb")),W=d.next().value,z=d.next().value,u=_.DS(function(){return H().backgroundColor},0);
d=_.DS(function(){return H().actionButtons},[]);
var B=_.DS(function(){return H().stickerLayer},{}),h=_.B8v(function(){return H().rendererContext}),O=function(){var m,J;
return{animationRef:k,animationConfig:{autoplay:!1,loop:!1,path:(J=(m=H().foregroundAnimation)==null?void 0:m.url)!=null?J:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){z(!0)},
complete:function(){A.navigateToNextItemOnLottieComplete()}}}},T=function(){var m,J,g,v,y,X,D,K;
return{animationConfig:{autoplay:(X=(m=H().backgroundAnimation)==null?void 0:(J=m.settings)==null?void 0:J.autoplay)!=null?X:!1,loop:(D=(g=H().backgroundAnimation)==null?void 0:(v=g.settings)==null?void 0:v.loop)!=null?D:!1,path:(K=(y=H().backgroundAnimation)==null?void 0:y.url)!=null?K:"",name:"stories_item_background_animation"}}};
_.CA(function(){if(A.isVisible()&&W()){var m;(m=k.lottieEl)==null||m.play();A.animationRef()&&(A.animationRef().lottieEl=k.lottieEl)}else{var J;(J=k.lottieEl)==null||J.stop()}},"dlAj1b");
return _.x("yt-stories-item-view-model",{"aria-label":function(){var m;return(m=h())==null?void 0:m.label},
class:"ytStoriesItemViewModelHost",style:_.Mt({"background-color":function(){return _.h1(u())+";"}})},_.x("div",{class:"ytStoriesItemViewModelAssetContent"},_.x(_.R,{cond:function(){return!!H().backgroundAnimation},
then:function(){return _.x(_.Zb,{data:T,animationName:function(){return T().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.x(_.R,{cond:function(){return!!H().backgroundImage},
then:function(){return _.x(_.GA,{data:function(){return H().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.x(_.R,{cond:function(){return!!H().foregroundAnimation},
then:function(){return _.x(_.Zb,{data:O,animationName:function(){return O().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.x(_.R,{cond:function(){return!!H().foregroundImage},
then:function(){return _.x(_.GA,{data:function(){return H().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.x("div",{class:"ytStoriesItemViewModelTopShadow"}),_.x(_.HG,{data:function(){return B()}},{storiesStickerLayerViewModel:bYO})),_.x("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Mt({"background-color":function(){return _.h1(u())}})},_.x("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.x(_.Ix,{each:d},function(m){return _.x(L_R,{storiesButtonData:function(){return m},
pauseAutoNavigation:A.pauseAutoNavigation})}))))},"dm"),yeG={style:"overlay",
type:"outline"},L_R=_.c(function(A){var H={};return _.x("div",{class:_.ER("ytStoriesItemViewModelActionButton",(H.ytStoriesItemViewModelStretchedActionButton=function(){return A.storiesButtonData().size==="STORIES_BUTTON_SIZE_STRETCH"},H)),
"on:click":_.lc(A.pauseAutoNavigation)},_.x(_.HG,{data:function(){return A.storiesButtonData().button}},{buttonViewModel:function(k){return _.x(_.U7,{data:k.data,
buttonOverrides:yeG})}}))},"em");var jay={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.Sw(_.c(function(A){var H=function(){var eN;return(eN=A.data().startIndex)!=null?eN:0},k=_.r(_.C0(H)),d=k.next().value,W=k.next().value;
k=_.r(_.RV(!1,void 0,"sjy7s"));var z=k.next().value,u=k.next().value,B=function(){var eN;return(eN=A.data().storyItems)!=null?eN:[]},h={},O=_.GP("yt-stories-viewer-view-model"),T=function(){return A.data().dismissButton},m=function(){var eN;
return _.h7((eN=_.L(T(),_.vY))==null?void 0:eN.onTap)},J=_.GP("div"),g,v,y=!1,X=function(){var eN;
(eN=g)==null||eN.cancel();g=D(d()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});g.onfinish=function(){var mr=_.L(B()[d()],CvQ),Cl,pl;mr!=null&&mr.foregroundAnimation&&((mr==null?0:(Cl=mr.foregroundAnimation)==null?0:Cl.url)||(mr==null?0:(pl=mr.foregroundAnimation)==null?0:pl.payload))||(d()!==B().length-1?(W(d()+1),X()):m()&&_.OR(m()))}},D=function(eN){return J.value.children[eN].children[0]},K=function(){for(var eN=0;eN<d();eN++)D(eN).style.transform=
"scaleX(1)"},N=function(){y||(z()?u(!1):(d()===B().length-1&&m()&&_.OR(m()),D(d()).style.transform="scaleX(1)",d()!==B().length-1&&(W(d()+1),X())))},U=function(){y||(z()?u(!1):(D(d()).style.transform="scaleX(0)",d()!==0&&W(d()-1),X()))},p=function(){u(!0)},M=function(){D(d()).style.transform="scaleX(1)";
d()!==B().length-1?(W(d()+1),X()):m()&&_.OR(m())};
k=function(){y=!1;v=setTimeout(function(){u(!0);y=!0},300)};
var Z=function(){clearTimeout(v);y&&z()&&u(!1)};
_.CA(function(){if(z()){var eN;(eN=g)==null||eN.pause();var mr;(mr=h.lottieEl)==null||mr.pause()}else{var Cl;(Cl=g)==null||Cl.play();var pl;(pl=h.lottieEl)==null||pl.play()}},"vAvZob");
_.CA(function(){K();var eN;(eN=O.value)==null||eN.focus();d()===H()&&X()},"uSlfE");
var WV=function(eN){eN.key==="ArrowLeft"?U():eN.key==="ArrowRight"&&N()},hA=function(eN){if(eN.target===O.value){(eN=m())&&_.OR(eN);
clearTimeout(v);var mr;(mr=g)==null||mr.cancel();var Cl;(Cl=h.lottieEl)==null||Cl.stop();window.removeEventListener("keydown",WV);window.removeEventListener("yt-popup-closed",hA)}},qv=function(eN){if(eN.target===O.value){var mr;
(mr=O.value)==null||mr.focus();var Cl;(Cl=h.lottieEl)==null||Cl.play();window.addEventListener("keydown",WV);window.addEventListener("yt-popup-closed",hA)}};
_.CZ(function(){K();X();window.addEventListener("yt-popup-opened",qv)});
return _.x("yt-stories-viewer-view-model",{el:O,class:_.ER("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.x("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.x("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.lc(U),"on:mousedown":_.lc(k),"on:mouseup":_.lc(Z),"on:mouseleave":_.lc(Z)}),_.x("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.lc(N),"on:mousedown":_.lc(k),"on:mouseup":_.lc(Z),"on:mouseleave":_.lc(Z)})),
_.x("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.x(_.HG,{data:B},{storiesItemViewModel:function(eN,mr){var Cl=eN.data;return _.x(_.R,{cond:function(){return Math.abs(mr()-d())<=1},
then:function(){var pl={};return _.x("div",{class:_.ER("ytStoriesViewerViewModelStoryItem",(pl.ytStoriesViewerViewModelActiveStoryItem=function(){return mr()===d()},pl))},_.x(vdw,{data:Cl,
pauseAutoNavigation:p,navigateToNextItemOnLottieComplete:M,isVisible:function(){return mr()===d()},
animationRef:h}))}})}})),_.x("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:J},_.x(_.Ix,{each:B},function(){return _.x("div",{class:"ytStoriesViewerViewModelProgressBar"},_.x("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.x("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.x(_.GA,{data:jay,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.x("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.x(_.HG,{data:function(){return A.data().menuButton}},{buttonViewModel:function(eN){return _.x(_.U7,{data:eN.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.x(_.HG,{data:function(){return A.data().muteButton}},{toggleButtonViewModel:function(eN){return _.x(_.qc,{data:eN.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.x(_.HG,{data:T},{buttonViewModel:function(eN){return _.x(_.U7,{data:eN.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"hm"),"yt-stories-viewer-view-model",{props:{data:_.Ih}});_.Sw(_.c(function(A){var H=A.data;var k=_.GP("yt-gen-ai-feedback-form-view-model"),d=[];return _.x("yt-gen-ai-feedback-form-view-model",{el:k,class:"ytGenAiFeedbackFormViewModelHost"},_.x(_.j$,{text:function(){return H().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.x("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.x(_.HG,{data:function(){return H().feedbackChips}},{toggleButtonViewModel:function(W){var z=W.data;
return _.x(_.qc,{data:z,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(u){var B=z();B=_.L(B,_.jG);B=_.L(B==null?void 0:B.defaultButtonViewModel,_.vY).trackingParams;u?d.push(B):(u=d.indexOf(B),u>-1&&d.splice(u,1))}})}})),_.x(_.j$,{text:function(){return H().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.x("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.x(_.HG,{data:function(){return H().submitButton}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){yK_(k.value,d,H().uniqueId)}})}}),_.x(_.HG,{data:function(){return H().moreFeedbackButton}},{buttonViewModel:function(W){return _.x(_.U7,{data:W.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"im"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Ih},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Fg=function(){return _.a.apply(this,arguments)||this};
_.I(Fg,_.a);Fg.prototype.created=function(){ur_(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(mW_);var A=_.wj().resolve(_.FtG);A&&(A.container=this.ytPopupContainerBehavior);if(A=_.wj().resolve(_.x0))A.container=this.ytPopupContainerBehavior;if(A=_.wj().resolve(_.iB)){var H=this.ytPopupContainerBehavior;A.containerWasInjected?_.Pq(Error("uj")):A.container=H}};
Fg.prototype.ensurePopupBelowPlayer=function(A,H){var k=_.wj().resolve(_.fZ(_.SO));if(!k||!k.isOnWatch()||!_.Kj())return!1;k=k.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.$u().height>k+this.getPopupHeight(A,H)?(A.style.top="auto",A.style.bottom="0px"):(A.style.top=k+"px",A.style.bottom="auto");return!0};
Fg.prototype.getPopupHeight=function(A,H){H&&(A.cachedPopupHeight=0);if(!A.cachedPopupHeight){H=0;var k=A.clientHeight,d=window.getComputedStyle(A);H+=parseInt(d.marginTop,10);H+=parseInt(d.marginBottom,10);A.cachedPopupHeight=k+H}return A.cachedPopupHeight};
Fg.prototype.getElement=function(A){return document.createElement(A)};
_.E([_.P(Dim.YtPopupContainerBehavior),_.l("design:type",Object)],Fg.prototype,"ytPopupContainerBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],Fg.prototype,"ytComponentBehavior",void 0);_.E([_.O6({disableElementRegistration:!0,is:"ytd-popup-container"})],Fg);
_.Q(Fg,"ytd-popup-container",function(){if(v13!==void 0)return v13;var A=document.createElement("template");_.Y(A,"\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");A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);return v13=A},{mode:1});var I8B;var YGp={};YGp.YtLogYpcFlowCommandsBehavior=[_.nM.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(A){_.L(A,p6M)&&(A=_.L(A,p6M))&&(A.serializedTransactionFlowLoggingParams?_.u5l(A.serializedTransactionFlowLoggingParams):A.serializedYpcCancelFlowLoggingParams?(A=A.serializedYpcCancelFlowLoggingParams)&&wG("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",A):A.serializedYpcResumeFlowLoggingParams?(A=A.serializedYpcResumeFlowLoggingParams)&&wG("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",A):A.serializedYpcPauseFlowLoggingParams?(A=A.serializedYpcPauseFlowLoggingParams)&&
wG("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",A):A.serializedYpcRefundFlowLoggingParams?(A=A.serializedYpcRefundFlowLoggingParams)&&KpV("YPC_EVENT_TYPE_START",A):A.serializedYpcDeactivateFlowLoggingParams?(A=A.serializedYpcDeactivateFlowLoggingParams)&&wG("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",A):A.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(A=A.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&wG("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",A))},
handleLogYpcFlowDismiss_:function(A){_.L(A,cme)&&(A=_.L(A,cme),A.serializedTransactionFlowLoggingParams?_.BmW(A.serializedTransactionFlowLoggingParams):A.serializedYpcCancelFlowLoggingParams?(A=A.serializedYpcCancelFlowLoggingParams)&&wG("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",A):A.serializedYpcResumeFlowLoggingParams?(A=A.serializedYpcResumeFlowLoggingParams)&&wG("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",A):A.serializedYpcPauseFlowLoggingParams?(A=A.serializedYpcPauseFlowLoggingParams)&&
wG("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",A):A.serializedYpcRefundFlowLoggingParams&&(A=A.serializedYpcRefundFlowLoggingParams)&&KpV("YPC_EVENT_TYPE_CANCEL",A))}}];var Pfp={};Pfp.YtCancelRecurrenceBehavior=[_.ml.YtComponentBehavior,_.C_1,{attached:function(){var A=this;nwL(this,function(H,k){return A.ypcCancelRecurrenceHandler(H,k)})},
ypcCancelRecurrenceHandler:function(A,H){var k=this;if(!H||!H.ypcCancelRecurrenceEndpoint)return!1;if(!H.ypcCancelRecurrenceEndpoint.params)return _.V$(Error("um")),!0;_.II(this.hostElement);var d=_.yI.instance,W=_.wj().resolve(_.fZ(_.sJ));d&&_.jO(d,H)?_.I9(d,H).then(function(z){k.ypcCancelRecurrenceSuccess_(A,H,{data:z})},function(z){k.ypcCancelRecurrenceFailure_(A,H,z)}).thenCatch(function(){_.V$(Error("vm"))}):W?W.requestDataForServiceEndpoint(H).then(function(z){k.ypcCancelRecurrenceSuccess_(A,
H,z)},function(z){k.ypcCancelRecurrenceFailure_(A,H,z)}).thenCatch(function(){_.V$(Error("vm"))}):_.V$(Error("wm"));
return!0},
ypcCancelRecurrenceSuccess_:function(A,H,k){_.Yq(this.hostElement);k.data||(k={data:k});k.data&&k.data.actions&&_.NT(this.hostElement,k.data.actions,this.hostElement);k.data.messageRenderer?QN_(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(H=H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&wG("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",H);_.Ed(A,"yt-service-request-completed",k)},
ypcCancelRecurrenceFailure_:function(A,H,k){_.Yq(this.hostElement);QN_(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Ed(A,"yt-service-request-error",{error:k,params:[A,H]})}}];var GOw=function(A,H){_.AA.call(this,H)};
_.I(GOw,$2V);var F_n={};F_n.YtCompleteTransactionBehavior=[_.ml.YtComponentBehavior,_.C_1,{attached:function(){var A=this;nwL(this,function(H,k){return A.ypcCompleteTransactionHandler(H,k)})},
completeTransaction:function(A,H){var k=this;H={payments_payload:window.btoa(H.integratorData),buybucket_params:A.data.buybucketParams,offer_params:A.data.offerParams};var d=_.wj().resolve(_.sJ),W=A.data.completeTransactionEndpoint,z=this.get("ypcCompleteTransactionEndpoint.actions",W);z&&_.NT(this.hostElement,z,this.hostElement);return(z=_.yI.instance)&&_.jO(z,W)?_.I9(z,W,H).then(function(u){return!u||(u==null?0:u.error)?(u=k.get("data.serializedTransactionFlowLoggingParams",A),_.qt(new Ba("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
u))):{data:u}}).then(function(u){return k.handleCompleteTransactionSuccess_(u,A)},function(){return k.handleCompleteTransactionFailure_(A)}):d.requestDataForServiceEndpoint(W,H).then(function(u){return k.handleCompleteTransactionSuccess_(u,A)},function(){return k.handleCompleteTransactionFailure_(A)})},
handleCompleteTransactionSuccess_:function(A,H){A.data||(A={data:A});if(A.data.messageRenderer)return _.qt(new GOw(A.data.messageRenderer));if(A.data.trackingParams){var k=_.hx(),d=_.ii();k&&d&&_.v0(k,d,_.db(A.data.trackingParams))}H=this.get("data.serializedTransactionFlowLoggingParams",H);aWL(H);return _.MT(A)},
handleCompleteTransactionFailure_:function(A){A=this.get("data.serializedTransactionFlowLoggingParams",A);_.PM("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A);return _.qt(new Ba("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A))},
ypcCompleteTransactionHandler:function(A,H){var k=this;if(!H.ypcCompleteTransactionEndpoint)return!1;if(!H.ypcCompleteTransactionEndpoint.transactionParams)return _.V$(Error("xm")),!0;H.ypcCompleteTransactionEndpoint&&H.ypcCompleteTransactionEndpoint.gtmData&&_.zB(H.ypcCompleteTransactionEndpoint.gtmData);var d=_.wj().resolve(_.fZ(_.sJ));if(d){_.II(this.hostElement);var W=_.yI.instance;W&&_.jO(W,H)?_.I9(W,H).then(function(z){return!z||(z==null?0:z.error)?(z=k.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
H),_.qt(new Ba("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",z))):{data:z}}).then(function(z){_.Ed(A,"yt-service-request-completed");
k.ypcCompleteTransactionSuccess_(H,z)},function(){return k.ypcCompleteTransactionFailure_(H)}):d.requestDataForServiceEndpoint(H).then(function(z){_.Ed(A,"yt-service-request-completed");
k.ypcCompleteTransactionSuccess_(H,z)},function(){return k.ypcCompleteTransactionFailure_(H)})}return!0},
ypcCompleteTransactionSuccess_:function(A,H){_.Yq(this.hostElement);H.data||(H={data:H});_.Ud(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);H.data.messageRenderer||H.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(A):(_.zB('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",A));H.data.actions&&(A=NH_(H.data.actions),H=MOi(H.data.actions),A.length&&_.tx(this.hostElement,
A),H.length&&_.NT(this.hostElement,H,this.hostElement))},
ypcCompleteTransactionFailure_:function(A){_.Yq(this.hostElement);_.Ud(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",A,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(A,H,k){if(H=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",H))H={serializedTransactionFlowLoggingParams:H},k&&(H.errorType=k),_.yr(A,H),_.jM()}}];var Xyn={};Xyn.YtEndpointHandlerWithYpcBehavior=[_.C_1,_.nM.YtActionHandlerBehavior,[{openWalletDialog:function(A,H,k,d,W,z,u){var B=this,h=_.YE();H=H.replace(/-/g,"+").replace(/_/g,"/");var O=_.sH().get("hl");_.Bpl(_.VG(_.GD),H,h.resolve,W,function(T){z&&z();h.reject(T)},O,function(T){return B.onServerBackendAnalyticEvent_(A,k,T)},this.onDialogClose_.bind(this),d,u);
return h.promise},
openFixFlowDialog:function(A,H,k,d){A=A.replace(/-/g,"+").replace(/_/g,"/");_.VG(_.GD).openFixFlowDialog(A,H,k,d)},
onDialogClose_:function(){_.Ud(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(A,H,k){_.Ed(A,"yt-commerce-action-init-done");H&&_.tx(this.hostElement,[H,{backend_analytics:k}])}}],
_.NY.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(A,H){A=this.get("data.nativeFlowEndpoint",H);H=this.get("data.fallbackEndpoint",H);A?_.tx(this.hostElement,[A]):H&&_.Ed(this.hostElement,"yt-navigate",{endpoint:H})}}],
Pfp.YtCancelRecurrenceBehavior,F_n.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 A=this;nwL(this,function(H,k,d){return A.handleYPCEndpoint(H,k,d)});
this.ypcRegisterActionMapJobId_=_.ma(_.IE,function(){A.registerActionMap(A.buyFlowActionMap_)})},
detached:function(){var A=this;_.IE.cancelJob(this.ypcRegisterActionMapJobId_);_.ma(_.IE,function(){A.unregisterActionMap(A.buyFlowActionMap_)})},
handleYPCEndpoint:function(A,H,k){var d=H.ypcGetCartEndpoint;if(d){_.hZ("commerce_transaction");var W=d.gtmId;W&&_.W2(W);(d=d.gtmData)&&_.zB(d)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",H)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(A,H),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",H)!=null?(this.handleYPCFixInstrumentEndpoint_(A,H),!0):H.ypcPauseSubscriptionCommand?(SXB(this.hostElement,A,H,k),
!0):H.ypcResumeSubscriptionCommand?(aIR(this.hostElement,A,H),!0):H.getPaymentInstrumentsParamsCommand?(FNQ(this.hostElement,A,H),!0):H.ypcHandleTransactionEndpoint?(PP3(this.hostElement,A,H,k),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(A,H){var k=this;_.OH("ttcr",void 0,"commerce_transaction");H=H.ypcGetCartEndpoint;var d=H.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,W=d.encryptedPurchaseParams,z=d.serializedTransactionFlowLoggingParams,u=d.serializedPaymentsClientParams,B=this.createGetCartResponseFromParams_(d,H.offerParams,z);this.changeButtonState(A,!0);_.Rw(this.openWalletDialog(A,W,d.ypcLogWalletAnalyticDataEndpoint,z,function(){k.changeButtonState(A,!1)},function(){k.changeButtonState(A,
!1)},u).then(function(h){return k.handleBuyFlowCompleteCallback_(A,B,h)},function(){return k.handleOnLoadError(B)}).then(function(h){return void k.handlePostPurchaseSuccess_(A,B,h)},function(h){return void k.handlePostPurchaseError_(h)}),function(){k.changeButtonState(A,!1);
A instanceof Element&&_.Ed(A,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(A,H,k){var d=A.completeTransactionEndpoint,W=A.handleTransactionEndpoint;H={data:{offerParams:window.btoa(H),serializedTransactionFlowLoggingParams:k}};W?H.data.handleTransactionEndpoint=W:H.data.completeTransactionEndpoint=d;A.onCartDismissCommand&&(H.data.onCartDismissCommand=A.onCartDismissCommand);return H},
onGetCartServiceRequestCompleted_:function(A,H){var k=this,d=A.target;if(H&&H.data&&H.data.messageRenderer)_.Yq(this.hostElement),this.handleMessageRenderer_(H.data.messageRenderer),this.changeButtonState(d,!1);else{var W=this.get("data.encryptedPurchaseParams",H),z=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",H),u=this.get("data.ypcLogWalletAnalyticDataEndpoint",H),B=this.get("data.serializedPaymentsClientParams",H),h=this.getLoggingParams_(H);if(h||W||z)A.stopPropagation(),_.OH("ttcr",
void 0,"commerce_transaction"),W||_.Yq(this.hostElement),this.changeButtonState(d,!1),z?_.Ud(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.pZ("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:z}}},this]):W&&(this.changeButtonState(d,!0),A=null,A=this.openWalletDialog(d,W,u,h,function(){_.Yq(k.hostElement);k.changeButtonState(d,!1)},function(){_.Yq(k.hostElement);
k.changeButtonState(d,!1)},B),_.Rw(A.then(function(O){return k.handleBuyFlowCompleteCallback_(d,H,O)},function(){return k.handleOnLoadError(H)}).then(function(O){return k.handlePostPurchaseSuccess_(d,H,O)},function(O){return k.handlePostPurchaseError_(O)}),function(){k.changeButtonState(d,!1);
_.Ed(d,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(A,H){H&&H.endpoint&&H.endpoint.ypcGetCartEndpoint&&!H.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)&&_.NT(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)],A.target),_.II(this.hostElement),this.changeButtonState(A.target,!0))},
onServiceRequestError_:function(A,H){if(H&&H.params&&H.params.length){H=_.r(H.params);for(var k=H.next();!k.done;k=H.next())if((k=k.value)&&k.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",k.ypcGetCartEndpoint)&&_.NT(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",k.ypcGetCartEndpoint)],A.target);_.Yq(this.hostElement);this.changeButtonState(A.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(A,H,k){var d=k.integratorData;return d==null||d===""||k.error!=null?(d=this.getLoggingParams_(H),String(k.error)==="-1"?(H.data.onCartDismissCommand&&_.NT(this.hostElement,[H.data.onCartDismissCommand],A),_.qt(new Ba("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",d,!0))):_.qt(new Ba("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",d))):H.data.handleTransactionEndpoint?Gj3(this.hostElement,H.data.handleTransactionEndpoint,{payments_payload:d,funds_guarantee_callback_client_data:k.integratorClientCallbackData}):
this.completeTransaction(H,k)},
handlePostPurchaseSuccess_:function(A,H,k){H=k.data;var d=!1,W,z;if(H&&((W=H.command)==null?0:(z=W.commandExecutorCommand)==null?0:z.commands)){var u,B;W=(u=H.command)==null?void 0:(B=u.commandExecutorCommand)==null?void 0:B.commands;for(u=0;u<W.length;u++)if(_.L(W[u],_.Fg0)){d=!0;break}}d||(H&&H.gtmDatas&&H.gtmDatas.length?_.zB(H.gtmDatas[0]):_.zB('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));k.data&&k.data.actions&&(H=NH_(k.data.actions),k=MOi(k.data.actions),H.length&&
_.tx(this.hostElement,H),k.length&&_.NT(this.hostElement,k,A))},
handlePostPurchaseError_:function(A){A&&A.payload&&A.payload.isUserDismiss||_.I3(Error("zm"))},
handleOnLoadError:function(A){A=this.getLoggingParams_(A);return _.qt(new Ba("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",A))},
getLoggingParams_:function(A){return this.get("data.serializedTransactionFlowLoggingParams",A)},
handleMessageRenderer_:function(A){var H=_.KZ(A,"renderer"),k=_.pZ("openPopupConfig");H==="confirmDialogRenderer"&&k&&_.Ud(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:k.popupTypeMap[H],popup:A}},this])},
handleYPCFixInstrumentEndpoint_:function(A,H){var k=this,d=H.ypcFixInstrumentEndpoint;H=d.encryptedFixInstrumentParameters;this.logFixFopEvent_(d,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(A,!0);this.openFixFlowDialog(H,function(W,z){k.onFixFlowCompleteCallback_(d,W,z)},function(){return k.changeButtonState(A,!1)},function(){k.changeButtonState(A,!1);
k.logFixFopEvent_(d,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(A,H,k){var d=_.UD("payments.business.integration.scenario.FixInstrument");if(H==d.IntegratorCallbackType.ON_COMPLETE){H="FIX_FOP_EVENT_TYPE_CANCEL";var W=null;k.error!=null?k.error!=d.OnCompleteCallbackError.USER_CANCELLED&&(_.NT(this.hostElement,[A.errorAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_FAILURE",W="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.NT(this.hostElement,[A.successAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_SUCCESS");_.NT(this.hostElement,[A.onFinishAction],
this.hostElement);this.logFixFopEvent_(A,H,W)}},
logFixFopEvent_:function(A,H,k){(A=A.serializedFixFopLoggingParams)?(H={eventType:H,serializedFixFopLoggingParams:A},k!=null&&(H.errorType=k),_.yr("fixFopFlow",H),_.jM()):_.I3(Error("Am"))},
changeButtonState:function(A,H){_.b("enable_ypc_spinners")&&A&&(A.is==="yt-button-renderer"||A.is==="ytd-button-renderer")&&(A.disabled=H)}}];var Dx3=function(A){this.JSC$33979_clientRoot=A;this.feedbackCollectorActionMap={"yt-help-dialog-requested":pJe,"yt-feedback-dialog-requested":cKM,"yt-signal-action-help":QMI,"yt-signal-action-send-feedback":VmL,"yt-send-feedback-action":UBe,"yt-user-feedback-endpoint":lIe};_.cq(_.a3.getInstance(),this.feedbackCollectorActionMap,this.JSC$33979_clientRoot)},SGy;var Cfy=function(A){this.JSC$33984_clientRoot=A;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":tmM.bind(null,this.JSC$33984_clientRoot),"yt-signal-action-delete-all-downloads":Mm_,"yt-signal-action-delete-download":nX_,"yt-signal-action-delete-playlist-download":fIL,"yt-signal-action-install-pwa":swi,"yt-signal-action-refresh-downloads":AsI,"yt-offline-video-endpoint":d3_,"yt-offline-playlist-endpoint":zkI,"yt-update-local-app-setting-command":rsB,"yt-offline-orchestration-action-command":B3Q,
"yt-signal-action-undo-delete-download":oXG,"yt-local-watch-history-command":if_,"yt-signal-action-mark-download-to-mobile-edu-shown":OfL};_.cq(_.a3.getInstance(),this.downloadManagerActionMap,this.JSC$33984_clientRoot);_.vM.instance=new _.vM},K_p;var Xg=function(){var A=_.a.apply(this,arguments)||this;A.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_"};A.remoteApi_=null;return A};
_.I(Xg,_.a);_.q=Xg.prototype;
_.q.ready=function(){_.b("polymer_enable_mdx")&&(r8L({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.b("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.b("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.b("enable_cast_short_lived_lounge_token")}),_.$h("yt-remote-connection-change",this.handleConnectionChange_,this),_.$h("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=RRL())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.q.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.q.handleConnectionChange_=function(A){(this.mdxConnected=A)?(A=eRR(),!A&&twM()&&Nbe()&&(A={key:"cast-selector-receiver",name:Nbe()}),A=A.name):A=null;this.receiverName=A;_.CC(this.remoteApi_);(this.remoteApi_=RRL())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.q.handleReceiverAvailabilityChange_=function(){var A=BHG();twM()&&_.r4("yt-remote-cast-available")&&A.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=A.length>0};
_.q.handleRemoteQueueChange_=function(){var A=this.currentVideoId_,H=this.currentListId_,k=Fb(this.remoteApi_);this.currentVideoId_=k.videoId;this.currentListId_=k.listId;this.currentVideoId_&&_.Ud(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.b("polymer_enable_mdx_queue")?this.currentListId_:null,A,H])};
_.q.handleAddToQueueAction_=function(A){A=_.L(A,chV);this.remoteApi_&&(A.videoId?this.remoteApi_.addVideo(A.videoId):A.playlistId&&this.remoteApi_.addPlaylist(A.playlistId))};
_.q.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.q.handleInsertInQueueAction_=function(A){A=_.L(A,p_L);this.remoteApi_&&A.videoId&&this.remoteApi_.JSC$20155_insertVideo(A.videoId)};
_.q.handleRemoveFromQueueAction_=function(A){A=_.L(A,Qei);this.remoteApi_&&A.videoId&&this.remoteApi_.JSC$20155_removeVideo(A.videoId)};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Xg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.l("design:type",Object)],Xg.prototype,"appId",void 0);_.E([_.C(),_.l("design:type",Boolean)],Xg.prototype,"mdxConnected",void 0);_.E([_.C(),_.l("design:type",Boolean)],Xg.prototype,"receiverAvailable",void 0);_.E([_.C(),_.l("design:type",Object)],Xg.prototype,"receiverName",void 0);_.E([_.C(),_.l("design:type",Object)],Xg.prototype,"currentVideoId_",void 0);
_.E([_.C(),_.l("design:type",Object)],Xg.prototype,"currentListId_",void 0);_.E([_.h6({is:"yt-mdx-manager",disableElementRegistration:!0})],Xg);_.Q(Xg,"yt-mdx-manager",void 0,{mode:2});var a8p;var cew;var Da=function(){var A=_.a.apply(this,arguments)||this;A.APP_IDS={ytr:3,ytm:5};A.JSC$23237_timeoutId_=0;A.actionMap={"yt-open-create-family-dialog":"open"};return A};
_.I(Da,_.a);_.q=Da.prototype;_.q.created=function(){ur_(2200)};
_.q.detached=function(){this.observer_&&this.observer_.disconnect()};
_.q.open=function(A,H){var k=this,d=A.serializedYpcFamilyCreateLoggingParams;this.JSC$23237_timeoutId_=setTimeout(this.abort_.bind(this,A.postFlowErrorEndpoint,d),3E4);H&&(this.onReadyCallback_=H);var W=_.Va(this.hostElement).querySelector("#unicorn-iframe");d&&d&&C9Q("ypcFamilyCreateFlowStarted",d);_.xEC("family_creation",function(){var z=_.UD("gapi.family_creation.render");_.UD("gapi.config.update")("iframes/family_creation/url",k.getFamilyCreationUrlWithUnicornParams_());var u=3;A.appId&&A.appId in
k.APP_IDS&&(u=k.APP_IDS[A.appId]);u={authUser:_.pZ("SESSION_INDEX")||0,clientId:u,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.pZ("HL"),initialflow:[4,5,6,7],m:k.isMobile?1:0,onFlowComplete:k.onUnicornFlowComplete_.bind(k,A.postFlowSuccessEndpoint,d),onError:k.onUnicornFlowError_.bind(k,A.postFlowErrorEndpoint,d),onReady:k.onUnicornFlowReady_.bind(k,A.referencePcidParams)};z(W,u)})};
_.q.close=function(){_.Va(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.q.onUnicornFlowComplete_=function(A,H){this.close();H&&H&&C9Q("ypcFamilyCreateFlowSucceeded",H);_.Ed(this.hostElement,"yt-navigate",{endpoint:A})};
_.q.onUnicornFlowError_=function(A,H){this.close();H&&C9Q("ypcFamilyCreateFlowCancelled",H);_.Ed(this.hostElement,"yt-navigate",{endpoint:A})};
_.q.onUnicornFlowReady_=function(A){var H=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();A&&_.UD("gapi.family_creation.setConfig")(0,A);this.observer_=new MutationObserver(function(){_.Va(H.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Va(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Va(this.hostElement).querySelector("#dialog").open()};
_.q.getFamilyCreationUrlWithUnicornParams_=function(){return _.pZ("YTR_FAMILY_CREATION_URL")};
_.q.getCurrentUrl_=function(){return document.location.href};
_.q.abort_=function(A,H){this.clearTimeout_();this.onUnicornFlowError_(A,H)};
_.q.clearTimeout_=function(){clearTimeout(this.JSC$23237_timeoutId_)};
_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],Da.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],Da.prototype,"isMobile",void 0);_.E([_.C(),_.l("design:type",Object)],Da.prototype,"onReadyCallback_",void 0);_.E([_.C(),_.l("design:type",Object)],Da.prototype,"observer_",void 0);_.E([_.h6({is:"yt-create-family-dialog",disableElementRegistration:!0})],Da);
_.Q(Da,"yt-create-family-dialog",function(){if(cew===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);var H=A.content,k=H.insertBefore;a8p===void 0&&(a8p=document.createElement("template"));var d=a8p;k.call(H,d.content.cloneNode(!0),A.content.firstChild);cew=A}A=cew;return A},{mode:2});var pyx;var Qam;var SS=function(){var A=_.a.apply(this,arguments)||this;A.STEP=1;A.BLOCK_ON=80;A.MIN_PROGESS=0;A.MAX_PROGESS=100;return A};
_.I(SS,_.a);_.q=SS.prototype;_.q.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.q.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));_.wj().addProvider({provide:VlI,useValue:this})};
_.q.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.q.finish=function(){var A=this;this.progress=this.MAX_PROGESS;RkR(function(){A.progress==A.MAX_PROGESS&&(A.hostElement.hidden=!0)})};
_.q.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.nP.Object.defineProperties(SS.prototype,{progress:{configurable:!0,enumerable:!0,set:function(A){this.progress_=A;var H="scaleX("+A/this.MAX_PROGESS+")",k=_.Va(this.hostElement).querySelector("#progress").style;k.transform=H;k.webkitTransform=H;this.hostElement.setAttribute("aria-valuenow",String(A))},
get:function(){return this.progress_}}});
_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],SS.prototype,"ytComponentBehavior",void 0);_.E([_.h6({is:"yt-page-navigation-progress",disableElementRegistration:!0})],SS);
_.Q(SS,"yt-page-navigation-progress",function(){if(Qam===void 0){var A=document.createElement("template");_.Y(A,'\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');A.content.insertBefore(_.t().content.cloneNode(!0),
A.content.firstChild);var H=A.content,k=H.insertBefore;pyx===void 0&&(pyx=document.createElement("template"));var d=pyx;k.call(H,d.content.cloneNode(!0),A.content.firstChild);Qam=A}A=Qam;return A},{mode:2});var VtR={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"},EdG={"font-size":"12px","font-style":"italic"},UxB={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.gzM=function(){return _.e(function(A){_.EN(A)})};var l8x=_.c(function(A){var H=function(){return A.data().subtext},k={};
return _.x("snackbar-view-model",{class:_.ER("snackbarViewModelHost",A.className)},_.x("div",{class:_.ER("snackbarViewModelEngagementBarWrapper",A.className)},_.x(_.R,{cond:function(){return A.data().image},
then:function(d){return _.x(_.GA,{data:d,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.x(_.R,{cond:function(){return A.data().imageContent},
then:function(){return _.x("div",{class:"snackbarViewModelAvatarContainer"},_.x(_.HG,{data:function(){return A.data().imageContent}},{decoratedAvatarViewModel:_.TU}))}}),_.x("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.x("div",{class:_.ER((k.snackbarViewModelTitle=!0,k.snackbarViewModelTitleWithSubtext=H,k))},_.x(_.j$,{text:function(){return A.data().text}})),_.x(_.R,{cond:H,
then:function(){return _.x("div",{class:"snackbarViewModelSubtext"},_.x(_.j$,{text:function(){return H()}}))}})),_.x(_.R,{cond:function(){return A.data().buttons},
then:function(){return _.x("div",{class:"snackbarViewModelButtonClassWrapper"},_.x(_.HG,{data:function(){return A.data().buttons}},{buttonViewModel:function(d){return _.x(_.U7,{data:d.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:A.target})}}))}})))},"jm");_.Sw(_.c(function(){function A(K,N,U){v(K);X(U);J("in");T(!0);H(K,N);u=setTimeout(function(){k()},N)}
function H(K,N){var U,p=(U=K.text)==null?void 0:U.content;K=_.i2(K.rendererContext);p&&(N={label:p,command:K,durationMs:N},_.wj().resolve(_.b_).enqueue(N))}
function k(K){J("out");K&&clearTimeout(u)}
function d(){k(!0)}
function W(K){if(K){var N=K.snackbarViewModel,U=K.durationMs,p=K.target;U||(U=3E3);N&&(K=_.wj().resolve(_.fZ(_.JJ)))&&K.enqueue({isOpened:O,open:function(){A(N,U,p)},
close:k},0)}}
var z=_.FQ("snackbar-container"),u=void 0,B=_.r(_.RV(!1,void 0,"mDc5N")),h=B.next().value;B=B.next().value;var O=h,T=B;h=_.r(_.RV("out",void 0,"FpOs5e"));var m=h.next().value,J=h.next().value;h=_.r(_.RV(void 0,void 0,"jIDRob"));var g=h.next().value,v=h.next().value;h=_.r(_.RV(void 0,void 0,"kOA3Mb"));var y=h.next().value,X=h.next().value,D=_.lc(function(){if(m()==="out"){T(!1);v(void 0);X(void 0);var K=_.wj().resolve(_.fZ(_.JJ));K&&KOR(K,0)}});
_.CZ(function(){var K=_.wj().resolve(_.fZ(_.uEB));K&&(K.showSnackbarFn=W,K.closeSnackbarFn=d)});
return _.x("snackbar-container",{class:"ytSnackbarContainerHost",el:z},_.x(_.R,{cond:function(){return O()&&!!g()},
then:function(){var K={};return _.x("div",{class:_.ER("ytSnackbarContainerSnackbarContainer",(K.ytSnackbarContainerMobile=!1,K.ytSnackbarContainerPivotBar=function(){var N;return!((N=_.wj().resolve(_.fZ(_.BW_)))==null||!N())},K.ytSnackbarContainerOpened=function(){return O()&&m()==="in"},K.ytSnackbarContainerClosed=function(){return O()&&m()==="out"},K)),
"on:animationend":D},_.x(l8x,{data:function(){return g()},
target:function(){return y()}}))}}))},"km"),"snackbar-container");_.Sw(_.FXZ,"yt-tooltip");var ttW=_.qiQ.ephemeralActionSelector;_.Sw(_.c(function(){var A=_.oy(ttW);return _.x("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var H;return(H=A())==null?void 0:H.announcement})},"lm"),"yt-ephemeral-actions");var VPI=new Map;var vkB=function(A,H){var k=this;this.handleError=A;this.logEventInternal=H;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){k.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
vkB.prototype.logError=function(A){this.handleError(A)};
vkB.prototype.logEvent=function(A,H){switch(A){case "IDB_DATA_CORRUPTED":_.b("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",H);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",H);break;case "IS_SUPPORTED_COMPLETED":_.b("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",H);break;case "QUOTA_EXCEEDED":N57(this,H);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",H);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":A=Object.assign({},H,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",A)}};
var N57=function(A,H){_.vc.getInstance().estimate().then(function(k){k=Object.assign({},H,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:U3L(k==null?void 0:k.usage),deviceStorageQuotaMbytes:U3L(k==null?void 0:k.quota)});A.logEventInternal("idbQuotaExceeded",k)})};var Mty=_.c(function(A){var H=_.GP("yt-draggable"),k=A.onDrag,d=A.onDragStart,W=A.onDragEnd,z=_.SD(A,{allowClicks:!1,dragThreshold:5}),u=z.dragThreshold,B=z.allowClicks;A=z.children;z=z.className;var h=void 0,O=void 0,T=new _.Ft(0,0),m=!1;_.CZ(function(){h=new _.J9(H.value);O=new _.wo(g);J(h,O);if(B()){_.S31(h,u());var y;(y=H.value)==null||y.addEventListener("click",v,{capture:!0})}_.aV(function(){var X;(X=h)==null||X.dispose();if(B()){var D;(D=H.value)==null||D.removeEventListener("click",v,{capture:!0})}})});
var J=function(y,X){_.Y3(y,"earlycancel",function(){B()&&(m=!1)});
_.Y3(y,"start",function(D){d==null||d(D);D.defaultPrevented||B()&&(m=!0)});
_.Y3(y,"beforedrag",function(D){h&&O&&(D.preventDefault(),T=new _.Ft(D.clientX-h.startX,D.clientY-h.startY),O.start())});
_.Y3(y,"end",function(){X.stop();W==null||W();T=new _.Ft(0,0)})},g=function(){T&&k(T)},v=function(y){m&&(m=!1,y.stopPropagation(),y.preventDefault())};
return _.x("yt-draggable",{el:H,class:_.ER("ytDraggableComponentHost",z)},A)},"mm");var ndI=_.c(function(A){var H=_.r(_.RV(0,void 0,"Qf0tbc")),k=H.next().value,d=H.next().value;H=function(W){var z={},u={};return _.x(Mty,{className:_.ER("ytdMiniplayerComponentResizer",(z.ytdMiniplayerComponentResizerDisabled=function(){return W===A.horizontalAlignment()||W===A.verticalAlignment()},z.ytdMiniplayerComponentResizerNorth=W==="north",z.ytdMiniplayerComponentResizerEast=W==="east",z.ytdMiniplayerComponentResizerSouth=W==="south",z.ytdMiniplayerComponentResizerWest=W==="west",z)),
onDragStart:function(){d(A.currentMiniplayerSize());if(A.onResizeStart)A.onResizeStart()},
onDrag:function(B){W!=="north"&&W!=="west"||B.scale(-1);var h;B=(h=W==="north"||W==="south")?B.y:B.x;var O=A.currentAspectRatio();h&&O>=1?B*=O:!h&&O<1&&(B/=O);h=B;A.onResize(k()+h)}},_.x("div",{class:_.ER("ytdMiniplayerComponentResizerCorner",(u.ytdMiniplayerComponentResizerNorthCorner=W==="north",u.ytdMiniplayerComponentResizerEastCorner=W==="east",u.ytdMiniplayerComponentResizerSouthCorner=W==="south",u.ytdMiniplayerComponentResizerWestCorner=W==="west",u))}))};
return _.x("div",{class:"ytdMiniplayerComponentResizers"},H("north"),H("east"),H("south"),H("west"))},"nm");var ZY7=16/9;_.Sw(_.c(function(){var A=_.GP("ytd-miniplayer"),H=_.r(_.RV(new _.Xt(NaN,NaN),void 0,"i8Divd")),k=H.next().value,d=H.next().value;H=_.r(_.RV(!1,void 0,"M0mb9d"));var W=H.next().value,z=H.next().value;H=_.r(_.RV(!1,void 0,"U2besf"));var u=H.next().value,B=H.next().value;H=_.r(_.RV(!1,void 0,"oMkCO"));var h=H.next().value,O=H.next().value;H=_.r(_.RV(!1,void 0,"LLG3Bf"));var T=H.next().value,m=H.next().value;H=_.r(_.RV(!1,void 0,"m7HPQe"));var J=H.next().value,g=H.next().value;H=_.r(_.RV(!1,void 0,"jUGfuc"));
var v=H.next().value,y=H.next().value;H=_.r(_.RV(ZY7,void 0,"LkUsDe"));var X=H.next().value,D=H.next().value,K=_.r(_.RV(!1,void 0,"xKE3oe"));H=K.next().value;var N=K.next().value;K=_.r(_.RV(!1,void 0,"QQ32Je"));var U=K.next().value,p=K.next().value;K=_.r(_.RV(void 0,void 0,"LRAn3"));var M=K.next().value,Z=K.next().value;K=_.r(_.RV(O_()?"west":"east",void 0,"ZPTxkd"));var WV=K.next().value,hA=K.next().value;K=_.r(_.RV("south",void 0,"XYTr4"));var qv=K.next().value,eN=K.next().value;K=_.r(_.RV(400,
void 0,"hJycJe"));var mr=K.next().value,Cl=K.next().value;K=_.wj().resolve(_.L6).miniplayerPropSignalMap[0];var pl=K.data,UC=K.externalPlaylistData,hk=K.playabilityStatus,eA=K.isReadyToResume,lI=K.isDisabled,Rp=K.watchWhile,vj=K.playerVe,T0=K.expandVe,Y1=K.closeVe,ze=K.readyToResumeVe,Tf=K.readyToResumeCloseVe,QW=K.repositionVe,mG=K.resizeVe;K=_.r(_.C0(eA));var nN=K.next().value,G0=K.next().value,$Z=_.oy(_.yP.persistentPanelVisibleSelector),F9=!1,ww=!1,x1;_.CZ(function(){d(_.$u());A.value.addEventListener("animationend",
function(Vi){Vi.target===A.value&&(g(!1),y(!1))});
ZfB(A.value)});
_.Qr("yt-window-resized",function(Vi){Vi&&d(Vi)});
var lJ=function(){x1&&D(x1.getVideoAspectRatio())},Ni=function(){if(x1){var Vi=x1.getPlayerState()===1;
nN()&&Vi&&G0(!1)}},uJ=function(){var Vi=T0();
if(Vi){var iQ=_.hx(3);iQ&&_.P0(iQ,Vi)}},OB=function(){var Vi=Y1(),iQ=Tf();
Vi&&_.P0(_.hx(3),Vi);eA()&&iQ&&_.P0(_.hx(3),iQ)};
_.Qr("yt-activate-miniplayer",function(Vi){var iQ;return _.e(function(o_){if(o_.nextAddress==1)return W()?o_.return():o_.yield((iQ=_.wj().resolve(_.L6).getPlayerElement())==null?void 0:iQ.getPlayerPromise(),2);x1=o_.yieldResult;if(!x1)return o_.return();!U()&&_.b("kevlar_watch_while_v2")&&(eN(Vi&&!_.b("kevlar_watch_while_bottom_align")?"north":"south"),hA(O_()?"west":"east"));var rO=x1;rO.addEventListener("onVideoDataChange",lJ);rO.addEventListener("onStateChange",Ni);rO.addEventListener("onExpandMiniplayer",
uJ);rO.addEventListener("onCloseMiniplayer",OB);D(x1.getVideoAspectRatio());z(!0);nze()||g(!0);_.EN(o_)})});
_.Qr("yt-deactivate-miniplayer",function(Vi,iQ){return _.e(function(o_){if(!W())return o_.return();z(!1);G0(!1);y(Vi);m(!1);B(!1);if(x1){var rO=x1;rO.removeEventListener("onVideoDataChange",lJ);rO.removeEventListener("onStateChange",Ni);rO.removeEventListener("onExpandMiniplayer",uJ);rO.removeEventListener("onCloseMiniplayer",OB)}nze()||iQ?iQ&&g(!1):g(!0);_.EN(o_)})});
var Ow=function(){return!(Rp()&&_.b("kevlar_watch_while_modern"))},NQ=function(){var Vi;
return!((Vi=UC())==null||!Vi.contents)},Qi=function(){var Vi=mr();
var iQ=k();iQ=Math.min(Math.min(iQ.width,iQ.height)-32,720);var o_=X(),rO=Ow(),O9=NQ()&&u(),a4=Math.min(Vi,iQ);Vi=new _.Xt(192,rO?116:192);o_=new _.Xt(O9?ZY7:o_,1);a4=new _.Xt(a4,rO?a4-76:a4);a4=o_.aspectRatio()>a4.aspectRatio()?a4.width/o_.width:a4.height/o_.height;o_=o_.scale(a4);Vi.width<=o_.width&&Vi.height<=o_.height||(Vi=o_.aspectRatio()<=Vi.aspectRatio()?Vi.width/o_.width:Vi.height/o_.height,o_.scale(Vi),o_.width=Math.min(o_.width,iQ),o_.height=Math.min(o_.height,iQ));return new _.Xt(o_.width,
_.Py(192,o_.height+$3Q(rO,O9),720))},jI=function(){var Vi=Qi(),iQ=Ow(),o_=NQ()&&u();
return new _.Xt(Vi.width,Vi.height-$3Q(iQ,o_))},WX=function(){var Vi=function(iQ){iQ.target===A.value&&T()&&(m(!1),A.value.removeEventListener("transitionend",Vi))};
nze()||(A.value.addEventListener("transitionend",Vi),m(!0));B(!u())};
_.CA(function(){var Vi=vj(),iQ=_.hx(3),o_=_.ii(3);if(iQ&&o_&&Vi){_.v0(iQ,o_,Vi);o_=QW();var rO=mG(),O9=T0(),a4=Y1(),kl=Tf();O9&&a4&&kl&&(_.ym(iQ,Vi,[O9,a4,kl]),_.IN(iQ,[O9,a4]));o_&&rO&&_.ym(iQ,Vi,[o_,rO])}},"UatZXe");
_.CA(function(){var Vi=ze();if(Vi){var iQ=_.hx(0),o_=_.ii(0);iQ&&o_&&(_.v0(iQ,o_,Vi),_.IN(iQ,[Vi]))}},"kTR4R");
K={};return _.x("ytd-miniplayer",{el:A,class:_.ER("ytdMiniplayerComponentHost",(K.ytdMiniplayerComponentVisible=function(){return(W()||J())&&!(Rp()&&_.b("kevlar_watch_while_counterfactual"))},K.ytdMiniplayerComponentAnimatingSnap=h,K.ytdMiniplayerComponentAnimatingPlaylistExpand=T,K.ytdMiniplayerComponentAnimatingFade=J,K),function(){if(J()){var Vi=qv();
var iQ=W(),o_=v();Vi=iQ?Vi==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":o_?Vi==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Vi==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Vi="";return Vi}),
style:_.Mt({top:function(){return qv()==="north"?"16px":""},
right:function(){var Vi=WV(),iQ=$Z();iQ=(iQ===void 0?0:iQ)&&!O_()?400:0;return Vi==="east"?16+iQ+"px":""},
bottom:function(){return qv()==="south"?"16px":""},
left:function(){var Vi=WV(),iQ=$Z();iQ=(iQ===void 0?0:iQ)&&O_()?400:0;return Vi==="west"?16+iQ+"px":""},
width:function(){return Qi().width+"px"},
height:function(){return Qi().height+"px"},
transform:function(){var Vi=M();return Vi?"translate("+Vi.x+"px, "+Vi.y+"px)":""}})},_.x("div",{class:"ytdMiniplayerComponentContent"},_.x(Mty,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Vi){var iQ=ozM(WV(),qv(),k(),Qi(),M()),o_=jI();Math.abs(Vi.clientY-(iQ.y+o_.height))>15?(N(!0),Vi=_.hx(3),iQ=QW(),F9||(F9=!0,Vi&&iQ&&_.IN(Vi,[iQ])),Vi&&iQ&&_.P0(Vi,iQ)):Vi.preventDefault()},
onDrag:function(Vi){Z(Vi)},
onDragEnd:function(){var Vi=fO1(ozM(WV(),qv(),k(),Qi(),M()),k(),Qi()),iQ=wSI(WV(),qv(),k(),Qi(),$Z()),o_=wSI(Vi.horizontalAlignment,Vi.verticalAlignment,k(),Qi(),$Z());o_=new _.Ft(o_.x-iQ.x,o_.y-iQ.y);var rO;iQ=iQ.y+(((rO=M())==null?void 0:rO.y)||0)+Qi().height/2;var O9=function(){WV()===Vi.horizontalAlignment&&qv()===Vi.verticalAlignment||p(!0);hA(Vi.horizontalAlignment);eN(Vi.verticalAlignment);Z(void 0)},a4=function(kl){kl.target===A.value&&h()&&(O(!1),O9(),A.value.removeEventListener("transitionend",
a4))};
N(!1);qv()==="south"&&iQ>k().height?(O9(),_.wj().resolve(_.L6).close()):(A.value.addEventListener("transitionend",a4),O(!0),Z(o_))}},_.x(_.R,{cond:W,
then:function(){return _.x(_.vhe,{isDisabled:lI,playabilityStatus:hk,size:jI})}}),_.x(_.R,{cond:Ow,
then:function(){return _.x(_.b5L,{isReadyToResume:nN,data:pl,expanded:u,onExpandClick:WX,playlistData:UC})}}),_.x(_.R,{cond:H,
then:function(){return _.x("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.x(_.R,{cond:function(){return NQ()&&u()||T()},
then:function(){return _.x(_.u9I,{className:"ytdMiniplayerComponentPlaylistPanel",data:UC,hideHeaderText:!0,withinMiniplayer:!0})}})),_.x(ndI,{onResize:function(Vi){Cl(_.Py(192,Vi,720))},
onResizeStart:function(){var Vi=_.hx(3),iQ=mG();ww||(ww=!0,Vi&&iQ&&_.IN(Vi,[iQ]));Vi&&iQ&&_.P0(Vi,iQ)},
currentAspectRatio:X,currentMiniplayerSize:mr,horizontalAlignment:WV,verticalAlignment:qv}))},"qm"),"ytd-miniplayer",{});var f87=_.yP.persistentPanelVisibleSelector,CW=function(){var A=_.a.apply(this,arguments)||this;A.tabGesturesIsActive=!1;A.persistentPanelEnabled=_.b("enable_ai_companion");A.hasDelegation=!1;A.isFrostedGlassInitialized=!1;A.frostedGlassExp=_.b("web_frosted_glass");A.hasPendingWatchNavigation=!1;A.mastheadHiddenFocusWithinKillswitch=_.b("web_masthead_hidden_focus_within_killswitch");A.clientOnlyWizTooltipsEnabled=_.b("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
A.scrollAtTopInternal=!0;A.guideScrollTop=0;A.isTheaterModeSession=_.Q$("START_IN_THEATER_MODE");A.iMaxTheaterMode=_.b("web_watch_imax_theater_mode");A.isFullWindowSession=_.Q$("START_IN_FULL_WINDOW_MODE");A.hasCreateFamilyDialog=!1;A.mastheadHeight=56;A.networkStatusManager=new _.Qv;A.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"};A.dynamicActionMap={"yt-run-attestation-command":function(H){var k=_.ZVV.instance,d=_.L(H,_.VEZ);return d?_.b("use_rta_manager_for_async")&&
(_.b("attmusi")&&_.b("attmusi_ue")?window.attmp:wuQ())?q4L(k,d,H.clickTrackingParams):zv1(k,d,H.clickTrackingParams):_.qt(Error("si"))}};
A.isFrostedGlassDisabled=!1;A.isChannelOrPlaylistPage=!1;return A};
_.I(CW,_.a);_.q=CW.prototype;_.q.created=function(){var A=_.wj();_.b("kevlar_clear_duplicate_pref_cookie")&&_.ma(_.IE,function(){var H=_.x6.get("PREF");H&&!/f\d=/.test(H)&&(H=_.k6("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=H?"PREF=null;domain="+H+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.b("gzip_gel_with_worker")&&_.S6N();_.b("jspb_serialize_with_worker")&&S33();_.b("web_worker_availability_check")&&EzV();_.b("nwl_init_killswitch")||XNV().then(function(){_.IE.addLowPriorityJob(bjL)});
this.pageManagerAttachedPromise=_.YE();this.ytdAppBehavior.loadDepsPromise=_.Ox([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Nt(this.onThrottledScroll,200,this);_.b("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);yWM();wDi=!!_.UD("ytappsettings.initialized");hWe=_.UD("ytappsettings.previousValue");O8M=_.UD("ytappsettings.previousSnapshotTime");wDi||(wDi=!0,RWL());UNG();lGB();_.cI("DEFERRED_DETACH",
_.b("kevlar_tuner_should_defer_detach"));_.cI("REUSE_COMPONENTS",!0);_.cI("STAMPER_STABLE_LIST",!0);_.cI("SCHEDULED_LAZY_LIST",!0);_.cI("openPopupConfig",T8G);_.cI("useClickHandler",!0);_.b("kevlar_shell_cleanup")&&_.IE.addLowPriorityJob(orL.bind(this,_.k8.caches));_.Q$("IS_SHELL_LOAD")&&_.xB({shellStartupDurationMs:Math.round((0,_.w2)()-tJ())});ysQ(this.networkStatusManager);_.b("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",T3G(VtR)),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!",
T3G(EdG)),console.log("%cVisit http://go/join-youtube-web to apply today.",T3G(UxB)));N6B(A.resolve(_.GPM),1E3)};
_.q.ready=function(){var A=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var H=AxI();H&&!_.b("external_fullscreen_killswitch")&&document.addEventListener(H,this.setFullscreen.bind(this));(H=window.matchMedia("(prefers-color-scheme: dark)"))&&H.addEventListener&&H.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(H=_.wj().resolve(_.fZ(_.nai)))H.subscribe("navigation-start",
function(k){k.destinationPageSubtype==="watch"&&(A.hasPendingWatchNavigation=!0)}),H.subscribe("navigation-end",function(k){k.destinationPageSubtype==="watch"&&(A.hasPendingWatchNavigation=!1)})};
_.q.attached=function(){var A=this;_.Yf().processSignal("ci");_.b("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.SNJ?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.$q(_.vev(),"SUCCESS");this.updateIconSet();_.KH(this.guideInnerContent,!1);_.$f().initVisibilityObserver();this.guideService.guideElement=this.guide;var H=document.createElement("ytd-miniplayer"),k=_.Va(this.hostElement).querySelector("#content");
_.Va(this.hostElement).insertBefore(H,k);_.Yf().processSignal("ma");_.wj().resolve(_.L6).init(H);this.persistentPanelEnabled&&Xoe(this.persistentPanelContainer,"APP");_.Q$("IS_SHELL_LOAD")&&(k=document.createElement("ytd-network-status-banner"),_.Va(this.hostElement).insertBefore(k,H));_.b("kevlar_right_click_on_lockups")&&_.gx._onCaptureClick&&document.addEventListener("contextmenu",_.gx._onCaptureClick.bind(_.gx),!0);var d=function(){var W=_.Db("yt-page-navigation-progress");_.Va(A.hostElement).appendChild(W)};
setTimeout(function(){_.Yf().parkOrScheduleJob(d,0,"eocs",16)},0);
_.b("service_worker_push_enabled")&&_.ma(_.IE,SHi);_.cq(_.a3.getInstance(),this.dynamicActionMap,this.hostElement);_.Ed(this.hostElement,"ytd-app-attached");_.Yf().processSignal("aa");pBQ(this.hostElement);_.nG("gapi.load",_.xEC);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.ma(_.IE,
function(){var W=document.createElement("ytd-video-preview");_.Va(_.Va(A.hostElement).querySelector("#video-preview")).appendChild(W)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.ma(_.IE,function(){bfQ();A.registerWithViewTransitionManager()});
if(_.LF()&&this.isAppDarkTheme()!==_.g4())this.onDarkModeToggledAction();else H=_.bw()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==H&&(_.b("enable_dark_theme_only_on_shorts")?_.J1(_.b("enable_dark_theme_only_on_shorts_control")?window.location.href:_.nZ(window.location.href,{theme:"dark"})):_.Pq(new _.Ti("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(bQi=new gPQ(this.hostElement)),K_p=new Cfy(this.hostElement),SGy=new Dx3(this.hostElement),V5G=new Qte(this.hostElement)};
_.q.getThemeSettingsToLog=function(){var A=_.bw()==="USER_INTERFACE_THEME_DARK";A=_.LF()?_.g4()?"os-dark":"os-light":A?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:A,cookiesEnabled:_.hn()}};
_.q.detached=function(){_.aC(this.guideInnerContent);_.IE.cancelJob(GC1);GC1=0;_.IE.cancelJob(SdL);SdL=0;_.twm(cxM);cxM.length=0;Cie=_.HEW=null;_.$f().dispose();_.b("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.pT(_.a3.getInstance(),bQi.playlistHandlerActionMap,bQi.JSC$33539_clientRoot);_.pT(_.a3.getInstance(),K_p.downloadManagerActionMap,K_p.JSC$33984_clientRoot);_.pT(_.a3.getInstance(),SGy.feedbackCollectorActionMap,SGy.JSC$33979_clientRoot);
for(var A=_.r(V5G.eventListeners),H=A.next();!H.done;H=A.next()){var k=_.r(H.value);H=k.next().value;k=k.next().value;k=_.r(k);for(var d=k.next();!d.done;d=k.next()){var W=_.r(d.value);d=W.next().value;W=W.next().value;H.removeEventListener(d,W)}}_.pT(_.a3.getInstance(),V5G.autonavPauseActionMap,V5G.JSC$21695_clientRoot)};
_.q.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.sH().getFlag(186)};
_.q.computeIsInlinePreviewEnabled=function(A,H,k){return!k&&fhR({miniplayerIsActive:A,miniplayerPlaybackState:H})};
_.q.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.p8({type:"SET_FROSTED_GLASS_MODE",payload:!_.b("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"}))};
_.q.computeIsFrostedGlassDisabled=function(A,H,k,d){return A||H||k||d&&_.b("web_frosted_glass_disable_watch")};
_.q.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.b("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.q.computeIsHomePage=function(A,H){if(!A||H==null||!H.endpoint)return!1;var k;return((k=_.L(H.endpoint,_.fm))==null?void 0:k.browseId)==="FEwhat_to_watch"};
_.q.updateIsChannelOrPlaylistPage=function(){if(_.b("web_frosted_glass")){var A,H,k=(H=(A=_.wj().resolve(_.fZ(_.SO)))==null?void 0:A.getCurrentPage())==null?void 0:H.pageSubtype;this.isChannelOrPlaylistPage=k?["channel","channels","playlist"].includes(k):!1}};
_.q.scheduleFrostedGlassInitialization=function(){var A=this;_.b("web_frosted_glass")&&_.Yf().parkOrScheduleJob(function(){A.isFrostedGlassInitialized=!0},0,RQ(["eocs",
"cr"]),300)};
_.q.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.CvJ(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.p8({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.p8({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.q.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(awB(!0))};
_.q.onYtSignalActionRequestPersistentStorage=function(){if(!_.b("request_persistent_storage_killswitch")){var A=_.wj().resolve(_.$UM);A.cachedPersistStatePromise||(A.cachedPersistStatePromise=ZiQ())}};
_.q.handleYtChannelCreationFormEndpoints=function(A){A&&this.ytComponentBehavior.resolveCommand(A)};
_.q.handleShowEngagementPanelEndpoint=function(A){A&&this.ytComponentBehavior.resolveCommand(A)};
_.q.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(awB(!1))};
_.q.initIconDefs=function(A,H){var k=document.createElement("iron-iconset-svg");k.name=A;A=document.createElementNS("http://www.w3.org/2000/svg","svg");k.appendChild(A);A.appendChild(H);document.body.appendChild(k);return k};
_.q.onWindowResized=function(){_.Ud(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var A=_.l$.getInstance();A.documentWidth_=document.body.clientWidth;y9L(A)};
_.q.onWindowScrolled=function(){var A=_.wj().resolve(_.SO).getCurrentPage();if(A!=null&&A.getScrollTop){var H=this.ytdReduxBehavior,k=H.dispatch;A=A.getScrollTop()<=0;k.call(H,_.p8({type:"SET_SCROLL_AT_TOP",payload:A}))}};
_.q.guideIsVisibleButNotPersistentSelectorChanged=function(){var A=_.wj().resolve(_.SO).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=A.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"),
A.setScrollTop(this.guideScrollTop));_.li(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.q.getCurrentPageScrollableElementType=function(){var A=_.wj().resolve(_.SO).getCurrentPage();if(A&&A.getPageScrollingElement())return A.getPageScrollingElement().nodeName};
_.q.observeGuideVisibility=function(){var A=_.l$.getInstance(),H=this.miniGuideVisible;A.guidePersistentAndVisible_=this.guidePersistentAndVisible;A.miniGuideVisible_=H;y9L(A)};
_.q.observePersistentPanelVisibility=function(){var A=_.l$.getInstance();A.persistentPanelVisible_=this.persistentPanelVisible;y9L(A)};
_.q.handleEduDismissAction=function(A){A&&A.eduDismissAction&&(_.Ud(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.cm0.getInstance(),_.EQ.set(A.eduDismissAction.key+"-dismissed",!0))};
_.q.handleEduImpressionAction=function(A){if(A&&A.eduImpressionAction){var H=_.cm0.getInstance();A=A.eduImpressionAction.key;H.JSC$13505_eduDisplayedThisLoad_[_.arJ[A].setKey||A]=!0;_.EQ.set(A+"-impression",parseInt(_.EQ.get(A+"-impression")||0,10)+1)}};
_.q.onYtSignalActionConfirmMentionsEdu=function(){_.Ud(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.NE.getInstance();_.ty.set("edu-dismissed",!0)};
_.q.onYtSignalActionRecordMentionsEduImpression=function(){_.NE.getInstance();var A=_.ty.set,H=parseInt(_.ty.get("edu-impressions"),10);A.call(_.ty,"edu-impressions",(isFinite(H)?H:0)+1)};
_.q.onYtPageManagerAttached=function(A){var H;((H=_.X_(A))==null?void 0:H.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.q.onInvokeInstrumentManagerAction=function(A,H){MPB(H,A)};
_.q.updateIconSet=function(){var A=this.hostElement.querySelector("#masthead");if(A){var H=_.EJ(A),k=H.querySelector("g#yt-logo-updated");k&&(A=document.createElementNS("http://www.w3.org/2000/svg","defs"),A.appendChild(k.cloneNode(!0)),(H=H.querySelector("g#yt-logo-red-updated"))&&A.appendChild(H.cloneNode(!0)),this.initIconDefs("yt-logos-ext",A))}};
_.q.updateMastheadData=function(){var A=this,H,k,d,W,z;return _.e(function(u){if(u.nextAddress==1){H=A.data;k=A.hostElement.querySelector("#masthead");if(!k)return u.return();_.No(A,function(){k.data=A.topbarData});
if(!A.get("response.topbar",H)||A.get("response.topbar.responseContext.maxAgeSeconds",H)===0)return u.jumpTo(0);if(d=_.wj().resolve(_.u_))return u.yield(d(),6);W=_.wj().resolve(_.ng);return u.yield(W.put("service:topbar:fallback",new _.Zp({innertubeResponse:A.get("response.topbar",H)})),0)}return(z=u.yieldResult)?u.yield(z.put("service:topbar:fallback",new _.Zp({innertubeResponse:A.get("response.topbar",H)})),0):u.jumpTo(0)})};
_.q.computeTopbarData=function(A){if(!A)return null;var H;return this.isShortsPage&&this.topbarData&&!_.L((H=A.response)==null?void 0:H.topbar,TA3)?this.topbarData:A.response&&"topbar"in A.response?_.L(A.response.topbar,TA3)||null:null};
_.q.onSetTheaterModeEnabled=function(A,H){this.isTheaterModeSession=H.enabled;this.setTheaterModeStyles(H.enabled)};
_.q.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.q.onDarkModeToggledAction=function(){var A=_.Nx(window.location.href);if(!_.ACN(A)){(A=!!_.MP(window.location.href).themeRefresh)&&_.Pq(new _.Ti("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!A){RWL();A={themeRefresh:1};var H=_.wj().resolve(_.SO);if(H.isOnWatch()){var k,d;H=((k=H.getPlayerFromWatch())==null?void 0:(d=k.getPlayer())==null?void 0:d.getCurrentTime())||0;H>=1&&(A.time_continue=Math.floor(H))}_.hn()||_.bw()!=="USER_INTERFACE_THEME_DARK"||(A.theme="dark");_.J1(_.nZ(window.location.href,
A))}_.b("web_appshell_refresh_trigger")&&_.k8.caches&&this.refreshAppShellResponse();k=_.Mx(window.location.href);_.o6(_.wj().resolve(_.$L),_.sI(k,"theme"))}};
_.q.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.q.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.q.onPlayerFullscreen=function(A){_.S1();this.playerFullscreen=A};
_.q.setRestrictedMode=function(A){var H=_.sH();_.kB(0,58,A);H.save();_.wj().resolve(_.f1).reload()};
_.q.onPageChanged=function(A){A.detail.newPageType==="ytd-watch-flexy"||A.detail.newPageType==="ytd-watch-fixie"||A.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.hd("WEB_PAGE_TYPE_WATCH")):A.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.hd("WEB_PAGE_TYPE_SHORTS")):A.detail.newPageType==="ytd-browse"&&A.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.hd("WEB_PAGE_TYPE_MINI_APP")):_.b("web_frosted_glass")&&A.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.hd("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.hd("WEB_PAGE_TYPE_UNKNOWN"));A.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.q.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.q.onGuideToggleTap=function(){_.Ed(this.hostElement,"yt-guide-toggle")};
_.q.onGuideToggleHover=function(){_.Ed(this.hostElement,"yt-guide-hover")};
_.q.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.q.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.q.setMastheadTheme=function(){var A=_.EJ(this.hostElement).querySelector("#masthead");A&&(A.dark=A.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),A.isDarkThemeForced=!1)};
_.q.onRequestPanelModeChange=function(A,H){this.hideHeaderShadow=H.mode!=="seamed"};
_.q.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.q.onDrawerIronSelect=function(A){_.X_(A).id==="guide"&&this.processDrawerIronSelect()};
_.q.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var A="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(A="opened"));_.Ed(this.hostElement,"yt-autonav-pause-guide-"+A)};
_.q.onAddElementToApp=function(A){_.Va(this.hostElement).appendChild(A.detail)};
_.q.onThrottledScroll=function(){var A=_.wj().resolve(_.SO).getCurrentPage();A&&(this.scrollAtTopInternal=A.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.q.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.q.setFullscreen=function(){if(_.b("external_fullscreen")||!this.isWatchPage){var A=_.b("kevlar_fullerscreen_root_only_killswitch")?!!_.S1():!!_.S1()&&_.S1()===document.documentElement;A=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(A||this.isFullWindowSession);this.fullscreen!==A&&((this.fullscreen=A)&&_.li(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.F3().dispatch(_.LPj(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Ud(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.q.setFullscreenLoggingForShorts=function(A){var H,k,d;return _.e(function(W){if(W.nextAddress==1)return W.yield((H=_.Kj())==null?void 0:H.getPlayerPromise(),2);k=W.yieldResult;(d=k)==null||d.setAppFullscreen(A);_.EN(W)})};
_.q.updateMastheadCssHeight=function(){var A=this.mastheadHeight;this.fullscreen&&(A=0);_.NH(this.hostElement,{"--ytd-masthead-height":A+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.q.updateNetworkStatusBannerDisplayStatus=function(){var A="unset";this.fullscreen&&(A="none");_.NH(this.hostElement,{"--ytd-network-status-banner-display":A})};
_.q.updateNetworkStatusBannerCssHeight=function(){var A="unset";this.fullscreen&&(A="0px");_.NH(this.hostElement,{"--ytd-network-status-banner-max-height":A})};
_.q.updateScrollAndMasthead=function(A,H,k,d){this.iMaxTheaterMode||(d=!1);var W=_.wj().resolve(_.SO).getCurrentPage();A||H||d?(document.body.classList.add("no-scroll"),W.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.nF(this,this.onScroll)),W.setScrollTop(0),_.NH(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":Mu()+"px"})):k?_.Ed(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Ed(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
W.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.nF(this,this.onScroll)));this.mastheadHidden=A||H||k;this.updateMastheadCssHeight();_.b("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.q.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.q.onYtNavigateAction=function(A){A=this.get("navigateAction.endpoint",A);_.Ed(this.hostElement,"yt-navigate",{endpoint:A})};
_.q.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var A=document.createElement("yt-create-family-dialog");_.Va(this.hostElement).appendChild(A);this.hasCreateFamilyDialog=!0}};
_.q.onSetPushNotificationsEnabledCommand=function(A){var H=this,k=_.L(A,Ov_);k&&typeof k.enabled==="boolean"&&(Notification.permission!=="granted"?P9I().then(function(){Notification.permission==="granted"?(zW3(!k.enabled).then(BEe),k.successAction&&_.tx(H.hostElement,[k.successAction])):k.failureAction&&_.tx(H.hostElement,[k.failureAction])}):(zW3(!k.enabled).then(BEe),k.successAction&&_.tx(this.hostElement,[k.successAction])))};
_.q.onYtSignalActionEnableChromeNotifications=function(){GHL(!0)};
_.q.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.L(this.topbarData.hotkeyDialog,LdQ)}}})};
_.q.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Ud(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.q.onYtEndpointChangeHandler=function(A,H){var k=_.VG(_.Z4);k.pendingPrefetchJob_&&(H=!(!H||H.autonav!="1"),k.pendingPrefetchJob_.resolve(A&&_.sBI(A)?_.kTf(A,H):""),k.pendingPrefetchJob_=null);_.Ud(this.hostElement,"yt-pause-active-page-context");_.Ud(this.hostElement,"ytd-log-youthere-nav");_.Ud(this.hostElement,"yt-prepare-page-dispose")};
_.q.handleCommandWithCommandHandler=function(A,H){_.n0.instance.resolveCommand(A,{form:{element:H}})};
_.q.onYtTimedCommand=function(A){var H=this;A=_.L(A,Nv3);var k=A.command;k&&_.Hp(_.IE,function(){var d=_.L(k,_.fJA);d?(_.n0.instance.resolveCommand(k),H.maybeLogGetAnswerRequestTick(d)):_.NT(H.hostElement,[k],H.hostElement)},A.timeoutMs||0)};
_.q.maybeLogGetAnswerRequestTick=function(A){A&&A.isFirstRequest&&(_.hZ("search_overview_answer"),_.OH("so_rq",void 0,"search_overview_answer"))};
_.q.onYtSignalActionSkipNavigation=function(){var A=_.wj().resolve(_.SO).getCurrentPage();_.UY(A)};
_.q.onYtSignalActionCopyDebugData=function(){dmG()};
_.q.handleEntityUpdateCommand=function(A){_.oN(_.L(A,_.x_p).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.q.logFlowLoggingEventCommand=function(A){if(A=_.L(A,_.GRb))if(A.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var H=A.flowEventNamespace,k=A.flowEventType,d=A.flowType;d&&H&&k&&_.njQ(_.tr(H,k,A.flowEventMetadata),d)}else{H=_.Nm();k=A.flowEventNamespace;d=A.flowEventType;var W=A.flowType;W&&k&&d&&H.logFlowEvent(_.tr(k,d,A.flowEventMetadata),W,A.flowNonce)}};
_.q.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.q.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.q.onTouchStart=function(){var A=_.AU();_.hx()&&_.vn(A.JSC$13627_screenManager,{visualElement:A.ve})};
_.q.handleSelectLanguageCommand=function(A){if(A=_.L(A,zKe).hl){var H=_.sH();H.set("hl",A);H.save();_.wj().resolve(_.f1).reload()}};
_.q.handleConfirmDialogEndpoint=function(A){(A=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&this.ytOpenPopupBehavior.openPopup(A)};
_.q.handleOpenPopupNavigationEndpoints=function(A,H){(A=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&this.ytOpenPopupBehavior.openPopup(A,H)};
_.q.handleSaveCommandToSessionStorage=function(A){if(A=_.L(A,_.MEw)){var H=A.key;H&&A.command&&window.sessionStorage.setItem(H,JSON.stringify(A.command))}};
_.q.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(A){A&&A.active&&A.active.postMessage({type:"refresh_shell"})}).catch(function(A){A.name!=="SecurityError"&&_.I3(A)})};
_.q.onDeviceThemeChanged=function(){var A=_.g4();_.kB(_.sH(),185,A);_.sH().save()};
_.q.handleYtRegisterPromoCommand=function(A){if(_.L(A,hKL)){var H=_.wj().resolve(_.SO).getCurrentPage()||this.hostElement;qrB().registerPromoCommand(_.L(A,hKL),H)}};
_.q.onYtNavigateHomeAction=function(){if(!_.b("kevlar_miniplayer_navigate_home_from_app_killswitch")){var A,H,k,d,W=(d=(A=this.topbarData)==null?void 0:(H=A.logo)==null?void 0:(k=H.topbarLogoRenderer)==null?void 0:k.endpoint)!=null?d:_.kf;this.ytComponentBehavior.resolveCommand(W)}};
_.q.onYtLocationCollectionCommand=function(A){Js_(_.L(A,X_B))};
_.q.onYtGetLocationCommand=function(A){nc_(_.L(A,FPR),this)};
_.q.updateRenderGuideFromBinding=function(A){this.renderGuide=A.detail.value};
_.q.updateGuidePersistentAndVisibleFromBinding=function(A){this.guidePersistentAndVisible=A.detail.value};
_.q.updateMiniGuideVisibleFromBinding=function(A){this.miniGuideVisible=A.detail.value};
_.q.onThemeSelected=function(A,H){var k=_.sH(),d=A||H?A:_.g4(),W=(d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.ACN(_.Nx(window.location.href));_.kB(0,165,A);_.kB(0,174,H);k.save();W&&_.Ud(this.hostElement,"yt-dark-mode-toggled-action",[d]);_.Ud(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.q.getCurrentTheme=function(){return _.LF()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bw()};
_.q.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.q.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.q.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.q.handleShowConsentPrimitive=function(A){var H=this,k,d;return _.e(function(W){if(W.nextAddress==1){try{k=(d=_.Kj())==null?void 0:d.getPlayerPromise()}catch(z){}return W.yield(Qwi(A,k),2)}_.Ud(H.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.EN(W)})};
_.q.handleSelectActiveIdentityEndpointInternal=function(A){_.TD();A=_.L(A,_.xK1);if(A!=null&&A.supportedTokens){A=_.r(A.supportedTokens);for(var H=A.next();!H.done;H=A.next())H=H.value,H.accountSigninToken&&_.J1(H.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.q.handleUpdatePermissionRoleCommand=function(A){if(A=_.L(A,_.BsN)){var H;this.hasDelegation=!((H=_.L(A.renderer,_.uww))==null||!H.status)}};
_.q.registerWithViewTransitionManager=function(){var A=_.wj().resolve(_.fZ(_.uv));if(A){var H,k=(H=this.guide)==null?void 0:H.querySelector("#scrim"),d;H=(d=this.guide)==null?void 0:d.querySelector("#contentContainer");k&&H&&A.isAnyTransitionEnabled&&(d={},A.viewTransitionCoordinator.registerElement(k,(d.slide="app-drawer-scrim-page-transition",d["lockup-to-watch"]="app-drawer-scrim-page-transition",d["learning-journey"]="app-drawer-scrim-page-transition",d)),k={},A.viewTransitionCoordinator.registerElement(H,
(k.slide="app-drawer-container-page-transition",k["lockup-to-watch"]="app-drawer-container-page-transition",k["learning-journey"]="app-drawer-container-page-transition",k)))}};
_.nP.Object.defineProperties(CW.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.b("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.b("kevlar_show_chips_on_scroll"))}}});
_.nP.Object.defineProperties(CW,{template:{configurable:!0,enumerable:!0,get:function(){if(I8B===void 0){var A=document.createElement("template");_.Y(A,'\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');
A.content.insertBefore(_.t().content.cloneNode(!0),A.content.firstChild);I8B=A}A=I8B;return A}}});
CW.prototype.onOpenHotkeyDialog=CW.prototype.onOpenHotkeyDialog;CW.prototype.setFullscreen=CW.prototype.setFullscreen;CW.prototype.onAddElementToApp=CW.prototype.onAddElementToApp;CW.prototype.onDrawerIronSelect=CW.prototype.onDrawerIronSelect;CW.prototype.onGuideOpenButtonHover=CW.prototype.onGuideOpenButtonHover;CW.prototype.onRequestPanelModeChange=CW.prototype.onRequestPanelModeChange;CW.prototype.onPageDataUpdated=CW.prototype.onPageDataUpdated;CW.prototype.onPageChanged=CW.prototype.onPageChanged;
CW.prototype.onSetTheaterModeEnabled=CW.prototype.onSetTheaterModeEnabled;CW.prototype.updateMastheadData=CW.prototype.updateMastheadData;CW.prototype.onYtPageManagerAttached=CW.prototype.onYtPageManagerAttached;CW.prototype.observePersistentPanelVisibility=CW.prototype.observePersistentPanelVisibility;CW.prototype.observeGuideVisibility=CW.prototype.observeGuideVisibility;CW.prototype.guideIsVisibleButNotPersistentSelectorChanged=CW.prototype.guideIsVisibleButNotPersistentSelectorChanged;
CW.prototype.isInlinePreviewEnabledChanged=CW.prototype.isInlinePreviewEnabledChanged;CW.prototype.isWatchPageChanged=CW.prototype.isWatchPageChanged;CW.prototype.dispatchFrostedGlassMode=CW.prototype.dispatchFrostedGlassMode;_.E([_.P(_.TG),_.l("design:type",Object)],CW.prototype,"ytdReduxBehavior",void 0);_.E([_.P(_.qO.YtEventForwardingBehavior),_.l("design:type",Object)],CW.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.P(_.NY.YtOpenPopupBehavior),_.l("design:type",Object)],CW.prototype,"ytOpenPopupBehavior",void 0);_.E([_.P(_.nM.YtActionHandlerBehavior),_.l("design:type",Object)],CW.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.P({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.a3.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.b("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var A;((A=this.actionRouterNode.hostElement)!=null?A:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var A;((A=this.actionRouterNode.hostElement)!=null?A:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(A){this.actionRouter_.handleAction(A.detail)}}),
_.l("design:type",Object)],CW.prototype,"ytActionRouterBehavior",void 0);_.E([_.P(E_I.YtdAppBehavior),_.l("design:type",Object)],CW.prototype,"ytdAppBehavior",void 0);_.E([_.P(_.MY.YtEndpointBehavior),_.l("design:type",Object)],CW.prototype,"ytEndpointBehavior",void 0);_.E([_.P(Xyn.YtEndpointHandlerWithYpcBehavior),_.l("design:type",Object)],CW.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.E([_.P(YGp.YtLogYpcFlowCommandsBehavior),_.l("design:type",Object)],CW.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.E([_.P(_.n.YtRendererBehavior),_.l("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.E([_.P(_.ml.YtComponentBehavior),_.l("design:type",Object)],CW.prototype,"ytComponentBehavior",void 0);_.E([_.C({selector:hAi}),_.l("design:type",Object)],CW.prototype,"tabGesturesIsActive",void 0);_.E([_.C(),_.l("design:type",Boolean)],CW.prototype,"renderGuide",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"guidePersistentAndVisible",void 0);_.E([_.C({selector:xTL}),_.l("design:type",Boolean)],CW.prototype,"guideIsVisibleButNotPersistent",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"standalone",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"miniGuideVisible",void 0);
_.E([_.C(),_.l("design:type",Object)],CW.prototype,"persistentPanelEnabled",void 0);_.E([_.C({selector:f87,reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"persistentPanelVisible",void 0);_.E([_.C({selector:_.XwN}),_.l("design:type",Number)],CW.prototype,"miniplayerPlaybackState",void 0);_.E([_.C({selector:_.hr,reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"miniplayerIsActive",void 0);
_.E([_.C({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.l("design:type",Boolean)],CW.prototype,"isInlinePreviewEnabled",void 0);_.E([_.C(),_.l("design:type",Boolean)],CW.prototype,"isInlinePreviewDisabled",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Q$("START_IN_FULL_WINDOW_MODE")}}),
_.l("design:type",Boolean)],CW.prototype,"mastheadHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"playerFullscreen",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"fullscreen",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"hideHeaderShadow",void 0);
_.E([_.C({value:{GUIDE_ALT_LABEL:_.$r("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.l("design:type",Object)],CW.prototype,"menuStrings",void 0);_.E([_.C({computed:"computeTopbarData(data)"}),_.l("design:type",Object)],CW.prototype,"topbarData",void 0);_.E([_.C({selector:_.YlC,reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"isWatchPage",void 0);_.E([_.C({selector:_.Pub,reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"isShortsPage",void 0);
_.E([_.C({selector:function(A){return _.OA(A)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.l("design:type",Boolean)],CW.prototype,"isMiniAppPage",void 0);_.E([_.C({selector:function(A){return _.OA(A)==="WEB_PAGE_TYPE_BROWSE"}}),
_.l("design:type",Boolean)],CW.prototype,"isBrowsePage",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Boolean)],CW.prototype,"scrolling",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],CW.prototype,"hasDelegation",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],CW.prototype,"guideScrolledByTouch",void 0);_.E([_.C(),_.l("design:type",Object)],CW.prototype,"isFrostedGlassInitialized",void 0);
_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],CW.prototype,"frostedGlassExp",void 0);_.E([_.C({selector:function(A){return A.ui.chipBarIsSticky}}),
_.l("design:type",Boolean)],CW.prototype,"chipBarIsSticky",void 0);_.E([_.C({selector:iHV}),_.l("design:type",Boolean)],CW.prototype,"scrollAtTop",void 0);_.E([_.C({computed:"computeIsHomePage(isBrowsePage, data)"}),_.l("design:type",Boolean)],CW.prototype,"isHomePage",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],CW.prototype,"hasPendingWatchNavigation",void 0);_.E([_.C({reflectToAttribute:!0}),_.l("design:type",Object)],CW.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.E([_.C(),_.l("design:type",Object)],CW.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.E([of("guide"),_.l("design:type",Object)],CW.prototype,"guide",void 0);_.E([of("guide-service"),_.l("design:type",N8R)],CW.prototype,"guideService",void 0);_.E([of("guide-inner-content"),_.l("design:type",HTMLDivElement)],CW.prototype,"guideInnerContent",void 0);_.E([_.ol("#persistent-panel-container"),_.l("design:type",HTMLElement)],CW.prototype,"persistentPanelContainer",void 0);
_.E([_.C({selector:_.DKW}),_.l("design:type",String)],CW.prototype,"frostedGlassMode",void 0);_.E([_.fF("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"dispatchFrostedGlassMode",null);_.E([_.C({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.l("design:type",Object)],CW.prototype,"isFrostedGlassDisabled",void 0);
_.E([_.fF("isWatchPage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"isWatchPageChanged",null);_.E([_.G("isHomePage","chipBarIsSticky","scrollAtTop"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CW.prototype,"applyFrostedGlassToChipBar",null);_.E([_.C(),_.l("design:type",Object)],CW.prototype,"isChannelOrPlaylistPage",void 0);
_.E([_.s6("isInlinePreviewEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"isInlinePreviewEnabledChanged",null);_.E([_.fF("guideIsVisibleButNotPersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.E([_.fF("guidePersistentAndVisible","miniGuideVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"observeGuideVisibility",null);_.E([_.fF("persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"observePersistentPanelVisibility",null);
_.E([_.Ze("attached"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],CW.prototype,"onYtPageManagerAttached",null);_.E([_.fF("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],CW.prototype,"updateMastheadData",null);_.E([_.Ze("yt-set-theater-mode-enabled"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],CW.prototype,"onSetTheaterModeEnabled",null);
_.E([_.Ze("yt-page-type-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],CW.prototype,"onPageChanged",null);_.E([_.Ze("yt-page-data-updated"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"onPageDataUpdated",null);_.E([_.Ze("yt-request-panel-mode-change"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Object]),_.l("design:returntype")],CW.prototype,"onRequestPanelModeChange",null);
_.E([_.Ze("yt-guide-hover"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"onGuideOpenButtonHover",null);_.E([_.Ze("app-drawer-transitioned"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],CW.prototype,"onDrawerIronSelect",null);_.E([_.Ze("yt-add-element-to-app"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],CW.prototype,"onAddElementToApp",null);
_.E([_.Ze("yt-set-fullerscreen-styles"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"setFullscreen",null);_.E([_.Ze("yt-open-hotkey-dialog"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CW.prototype,"onOpenHotkeyDialog",null);_.E([_.O6({is:"ytd-app"})],CW);_.Yf().processSignal("eor");

_.vT();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
